返回目录
模型与 MCP 插件

dsh-gitview

yugapor/dsh-gitview

Git changes, diffs, history and CI in the DeepSeek Harness sidebar.

Stars
0
Forks
1
Issues
2
更新
14 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:yugapor/dsh-gitview

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-gitview

A Git panel for the DeepSeek Harness Web sidebar.

  • Working-tree changes, staging and commits
  • Unified or side-by-side diffs with syntax highlighting
  • Commit graph, branches, blame and reflog
  • CI status for GitHub, GitLab and Gitea; step details for GitHub Actions
  • Optional commit-message generation using the session's selected model
  • A wide Git tab beside Chat and Trajectory, with a Review mode (stage, commit, side-by-side diff) and a Repository mode (history, branches, CI)

Install

Requires Node.js 24+, Git, pnpm, and one of the DSH versions listed under engines.dsh in package.json (each one is install-tested in CI). Other DSH versions are not tested; rdsh installs this plugin by default and moves DSH along its rc channel, so new tags are checked weekly against that list. Desktop is not tested.

dsh plugin --profile web add dsh-gitview

Restart DSH with your existing options and port, then open Git in the right sidebar or as a tab beside Chat and Trajectory. Do not enable an older manually installed Git panel alongside this package.

To remove:

dsh plugin --profile web remove dsh-gitview

Placement

Settings → General → Git view placement chooses the right sidebar, the conversation tab, or both (default). The choice is stored per browser, not per user or session.

CI and AI

GitHub uses the host's gh authentication. GitLab and Gitea use GITLAB_TOKEN and GITEA_TOKEN; without credentials, public CI is attempted. Self-hosted services require an explicit provider and token-environment-variable mapping in the plugin configuration.

CI is polled while the panel is visible and focused. Checks left pending for over 24 hours are marked as overdue, not successful. This plugin does not rerun or cancel CI.

Commit-message generation sends staged changes to the selected model provider and may incur charges. It does not commit automatically. Ask AI adds CI metadata to your chat draft without sending it; logs are not attached. Authentication tokens are not returned to the browser.

Development

The browser half is written in src/client/ and built into lib/client.js, which is committed because the Host serves it verbatim:

npm ci
npm run build   # src/client → lib/client.js
npm run check   # types, a stale-build check, syntax
npm test

Tests need js-yaml@4.3.2 available through NODE_PATH. Package verification also needs pnpm and a DSH listed in engines.dsh (DSH_BIN selects the binary):

npm run test:package

This builds a .tgz, checks its contents, and tests standard installation, configuration composition and removal in a temporary DSH profile. It does not start a server or call a model. The verified package is saved in dist/. GitHub Actions runs these checks once per listed DSH version and retains the package artifacts for 14 days. After a push to main passes every listed version, CI publishes the package.json version to npm through trusted publishing and creates its v<version> release, unless npm already has that version.

To see whether npm has published a DSH version the list does not cover yet:

npm run test:track

The same check runs weekly in GitHub Actions. To add a version: install it, run DSH_BIN=<path> npm run test:package, then add the version to engines.dsh and both peerDependencies in package.json.

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。