| 1 | namespace CascadeIDE.Services; |
| 2 | |
| 3 | /// <summary>Git в каталоге workspace (ide_execute_command). Аргументы — как в git-mcp (GitMcp.Core).</summary> |
| 4 | public static partial class IdeCommands |
| 5 | { |
| 6 | /// <summary>Git status в каталоге решения/workspace (git status --short --branch). returns: json.</summary> |
| 7 | public const string GitStatus = "git_status"; |
| 8 | /// <summary>Git diff в каталоге решения/workspace. args: path?:string, staged?:boolean; returns: json; example: {"path":"README.md","staged":false}.</summary> |
| 9 | public const string GitDiff = "git_diff"; |
| 10 | /// <summary>Git log в каталоге решения/workspace. args: n?:integer; returns: json; example: {"n":20}.</summary> |
| 11 | public const string GitLog = "git_log"; |
| 12 | /// <summary>Git fetch в каталоге решения/workspace. args: remote?:string, all?:boolean, prune?:boolean, dry_run?:boolean; returns: json; example: {"prune":true,"dry_run":true}.</summary> |
| 13 | public const string GitFetch = "git_fetch"; |
| 14 | /// <summary>Git pull в каталоге решения/workspace. args: remote?:string, branch?:string, ff_only?:boolean, dry_run?:boolean; returns: json; example: {"ff_only":true}.</summary> |
| 15 | public const string GitPull = "git_pull"; |
| 16 | /// <summary>Git branch в каталоге решения/workspace. args: action?:string, name?:string, start_point?:string, force?:boolean; returns: json; example: {"action":"list"}.</summary> |
| 17 | public const string GitBranch = "git_branch"; |
| 18 | /// <summary>Git show в каталоге решения/workspace. args: rev:string, path?:string, stat_only?:boolean; returns: json; example: {"rev":"HEAD","stat_only":true}.</summary> |
| 19 | public const string GitShow = "git_show"; |
| 20 | /// <summary>Git submodule в каталоге решения/workspace. args: action?:string, path?:string, recursive?:boolean; returns: json; example: {"action":"status"}.</summary> |
| 21 | public const string GitSubmodule = "git_submodule"; |
| 22 | /// <summary>Git preflight в каталоге решения/workspace. args: staged?:boolean, include_untracked?:boolean, include_patches?:boolean; returns: json; example: {"staged":false,"include_untracked":true,"include_patches":true}.</summary> |
| 23 | public const string GitPreflight = "git_preflight"; |
| 24 | /// <summary>Git preflight safe-fix (renormalize) в каталоге решения/workspace. args: include_patches?:boolean; returns: json; example: {"include_patches":true}.</summary> |
| 25 | public const string GitPreflightFixSafe = "git_preflight_fix_safe"; |
| 26 | /// <summary>Git commit в каталоге решения/workspace. args: message:string, paths?:string[]; returns: text; example: {"message":"chore: update","paths":["a.txt"]}.</summary> |
| 27 | public const string GitCommit = "git_commit"; |
| 28 | /// <summary>Git push в каталоге решения/workspace. args: remote?:string, branch?:string, dry_run?:boolean; returns: text; example: {"remote":"origin","branch":"main","dry_run":true}.</summary> |
| 29 | public const string GitPush = "git_push"; |
| 30 | } |
| 31 | |