Size: 541 B Modified: 1/07/2026 11:29 PM
namespace KaiChat.Services;

public interface IGitService
{
    Task<GitResult> StageAllAsync();
    Task<GitResult> StagePathAsync(string repoRelativePath);
    Task<GitResult> CommitAsync(string message, string? body = null);
    Task<GitResult> StatusAsync();
    Task<GitResult> AutoCommitAsync(string summary, string? filePath = null);
    string RepoPath { get; }
}

public class GitResult
{
    public bool Success { get; set; }
    public string Output { get; set; } = "";
    public string Error { get; set; } = "";
}
Offline