mirror of
https://github.com/luckyyzh/pi-agent-integrated.git
synced 2026-10-03 11:09:34 +00:00
30 lines
577 B
TypeScript
30 lines
577 B
TypeScript
export type GitFileStatusKind =
|
|
| "modified"
|
|
| "added"
|
|
| "deleted"
|
|
| "renamed"
|
|
| "untracked"
|
|
| "conflict";
|
|
|
|
export interface GitFileStatus {
|
|
filePath: string;
|
|
status: GitFileStatusKind;
|
|
code: "M" | "A" | "D" | "R" | "U" | "C";
|
|
indexStatus: string;
|
|
worktreeStatus: string;
|
|
}
|
|
|
|
export interface GitStatusResponse {
|
|
isGitRepository: boolean;
|
|
repositoryRoot: string | null;
|
|
files: GitFileStatus[];
|
|
additions: number;
|
|
deletions: number;
|
|
}
|
|
|
|
export interface GitFileDiffResponse {
|
|
supported: boolean;
|
|
status?: GitFileStatusKind;
|
|
patch?: string;
|
|
}
|