GHJIVHIDD/dsh-plugin-repoflow ↗★ 0
@dsh-community/dsh-plugin-repoflow
GitHub/Git deployment plugin for DeepSeek Harness (DSH): a Git settings section after model/plugin/agent preset, global GitHub account config, visual repository management (init/create/commit/push/status/log), branch create/switch, commit graph, and 9 git_* model tools for agents.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:GHJIVHIDD/dsh-plugin-repoflow说明文档
阅读完整 README ↗dsh-plugin-repoflow
Deployment-level Git plugin for DeepSeek Harness (DSH) — a Git settings section after 通用设置 / 模型 / 插件 / agent 预设, with global GitHub account configuration and visual local repository management.
中文简介:在设置页「模型 / 插件 / agent 预设」之后新增「Git」入口。全局保存 GitHub 账号信息(用户名 / 邮箱 / Token / Host / 默认可见性),并针对本地目录提供仓库可视化:分支、领先/落后、暂存/未暂存/未跟踪/冲突、最近提交、变更文件,以及初始化、创建 GitHub 仓库、提交、推送等常用操作。
✨ Features / 功能特性
- 设置页入口:与通用设置 / 模型 / 插件 / agent 预设同一视觉语言,注册在
settings.section,顺序在归档之后(order: 40)。 - 全局 GitHub 配置:保存到
~/.dsh/git/config.json(权限0600),Token 不会明文回显。 - 连接测试:通过 GitHub API
/user验证 Token 与 Host 是否可用。 - 仓库可视化:
- 当前分支、ahead / behind、远程仓库
- 已暂存 / 未暂存 / 未跟踪 / 冲突统计
- 最近 12 条提交
- 变更文件列表(porcelain 状态码)
- 常用操作:
初始化仓库:git init -b main,并写入全局用户名 / 邮箱创建 GitHub 仓库并推送:自动初始化(如需要)→ GitHub API 创建仓库 → 设置干净 remote → 创建初始提交(如需要)→ 推送提交:git add -A && git commit推送:使用保存的 Token 通过 HTTP extraheader 推送,不在 remote URL 中写入 Token分支管理:查看本地分支、一键切换分支、创建并切换到新分支提交分支图:git log --graph --oneline --decorate --all图形化展示提交历史与分支拓扑GitHub 仓库列表:连接后自动展示当前账号已有的远程仓库
- 模型工具(Agent 可用):
git_status:仓库状态 / 分支 / 提交图 / 变更文件git_repos:列出 GitHub 账号下已有远程仓库git_init:初始化仓库git_commit:提交全部更改git_push:推送当前分支git_create_repo:创建 GitHub 远程仓库并推送git_branch:列出本地分支git_checkout:切换 / 创建并切换分支git_log:查看图形化提交历史