@sugan01/dsh-web-ui-git-status
v0.1.0
Published
Git commit/status surface for DeepSeek Harness Web: a session-header trigger opening the commit status line, over the host HTTP route.
Readme
@sugan01/dsh-web-ui-git-status
Git 提交/状态插件(DeepSeek Harness Web):会话头部出现一个 g 触发按钮,点开显示当前仓库的未提交更改 + 提交历史时间线。
安装
dsh plugin --profile web add @sugan01/dsh-web-ui-git-status
# 或本地路径 / tarball
dsh plugin --profile web add file:/path/to/dsh-web-ui-git-status装完重启 DSH 进程即自动加载。
使用
- 会话头部右侧会出现一个
g图标按钮(在每个会话的标题栏动作区); - 点击展开状态面板:上方未提交更改(暂存/未暂存/未跟踪),下方提交历史(最新在底部);
- 面板每 5 秒自动刷新,可手动 ⟳ 刷新、× 收起。
技术说明
- 宿主半通过
webServer注册GET /api/git-status?sessionId=<id>,用workspaceRegistry解析会话的工作区目录,再跑只读 git 命令(status --porcelain/log)返回快照; - 浏览器半用
fetch调该接口,不依赖@Remote(因此可作第三方 bundle 一条命令安装); - 无任何写操作,纯只读展示。
已知限制
- 面板数据 5 秒轮询,会话切换时重新拉取;
- 非 git 仓库或无工作区的会话显示提示文案。
