nieyunliang/dsh-git-component

nieyunliang★ 0JavaScriptLast synced: 2026-08-16

Open on GitHub

Git panel for the DeepSeek Harness Web GUI — floating right-side panel with working-tree changes, diff viewer, commit & push, AI commit-message autofill.

README excerpt

dsh-git-component — Git 面板(DeepSeek Harness WebUI 插件) DeepSeek Harness Web GUI 的 Git 插件:悬浮在窗口右侧的面板,实时查看当前更改(已暂存 / 未暂存 / 未跟踪),支持提交、提交并推送、推送,提交信息留空时自动用 AI 生成。 A Git plugin for the DeepSeek Harness Web GUI: a floating right-side panel showing your working-tree changes, with commit / commit-and-push / push and AI commit-message autofill. 功能 / Features - 右侧悬浮面板(376px 宽,透明卡片风),可折叠为 Git 分支小图标 - 三个分组: 已暂存 / 未暂存 / 未跟踪 (porcelain v1 精确解析,含重命名) - 点击文件内联查看 diff(最多 400 行) - 提交 / 提交并推送 / 推送 - 提交信息留空 → 自动用当前默认模型生成中文提交信息(≤60 字,单行) - 15 秒自动刷新;跟随当前会话的工作目录(切换会话/工作区自动重载) - 操作通过宿主 shell 执行 git,尊重沙箱策略; GIT TERMINAL PROMPT=0 禁止交互 安装 / Install 从 GitHub(git 源,推荐): 从本地源码目录(开发/测试,需在插件父目录执行): dsh plugin add 会自动把声明了 dsh.bundle.patch 的包加入该 profile 的 dsh.profile.bundles 层(即 dsh plugin --profile web --dump-config 里能看到 git-component 这一行)。之后 重启 webui 进程生效(Node 模块缓存不会热替换旧代码)。 注意:git 源安装需要 pnpm 允许构建脚本( prepare ),如被拦截请按 pnpm 提示在 profile 的 pnpm-workspace.yaml 的 allowBuilds 中加入对应 key 后重试。 要求: web profile(提供 webServer 与 shell 服务)、Node ≥ 22、Git ≥ 2.x。 插件零运行时依赖(不 import 任何包,直接消费 Cordis ctx )。 使用 / Usage 1. 重启后打开 WebUI,右侧出现 Git 面板(右上角小分支图标可展开/收起) 2. 面板显示当前仓库的三个分组与变更文件;点击文件看 diff 3. 提交:填入信息后点「提交」或「提交并推送」(Ctrl/⌘+Enter 提交) 4. …

View full README on GitHub →
Skins / UIdeepseek-harnessdsh-plugingitwebuiterminal

Category