feat: 添加 Git 工具集和重组描述文件目录结构
Git 工具集: - 新增 10 个 Git 工具: status, diff, log, branch, add, commit, push, pull, checkout, stash - 新增 GitPermissionChecker 权限检查器 - 读操作默认允许,写操作需要用户确认 目录结构优化: - 重组 descriptions 目录,按工具类别分子目录 (shell, filesystem, web, git, todo) - 更新 load_description.ts 支持子目录加载 - 更新 build 脚本支持递归复制描述文件
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
临时保存工作区的变更,方便切换分支或拉取更新。
|
||||
|
||||
参数说明:
|
||||
- action: 操作类型
|
||||
- push: 保存当前变更(默认)
|
||||
- pop: 恢复最近的暂存并删除记录
|
||||
- apply: 恢复暂存但保留记录
|
||||
- list: 列出所有暂存
|
||||
- drop: 删除指定暂存
|
||||
- clear: 清除所有暂存
|
||||
- show: 显示暂存的详细内容
|
||||
- message: 暂存说明(push 时可用)
|
||||
- index: 暂存索引(pop/apply/drop 时可用,默认 0 即最近的)
|
||||
- include_untracked: 包含未跟踪的文件
|
||||
|
||||
使用流程:
|
||||
1. git_stash 保存当前工作
|
||||
2. 切换分支或拉取更新
|
||||
3. git_stash with action: "pop" 恢复工作
|
||||
Reference in New Issue
Block a user