dsh-purge
YuJunZhiXue/dsh-purge在设置页编辑 prompt-inject.md、管理 AGENTS.md 或 CLAUDE.md 规则集、检查插件更新,并对本机包做可回滚的应用或还原。
DSH 网页端的侧栏 Git 面板:Local Changes 与 All Commits 视图,分支、标签与 Stash 管理,fetch、pull、push 弹窗,带冲突处理的合并,以及输入框上的 zsh 风格分支标记。
English | 中文
An IDE-style Git panel for the DeepSeek Harness web GUI. A sidebar with Local Changes and All Commits, branch / tag / stash management, fetch / pull / push dialogs, merge with conflict handling, and a zsh-style branch marker in the input bar.
dsh plugin --profile web add git+ssh://git@github.com/bitxeno/dsh-git-plus.gitOnce the package is on npm, the registry form works too:
dsh plugin --profile web add dsh-git-plusThe same command updates an existing installation; append @ to pin one. Restart dsh web after installing (a client-only change just needs a browser refresh).
The panel lives in the conversation view as the Git Plus tab.
Sidebar — top nav switches between *Local Changes* and *All Commits*; beneath it a sync toolbar (fetch / pull / push), then the collapsible *Branches / Tags / Stashes / Remotes* groups:
--prune always on).--rebase and --autostash.remote/branch (creating a branch on the remote is one select away); tracking reference (--set-upstream) shows only for new remote branches, with optional --tags and --force./-separated names into folders, with the default branch first (the local default branch; origin/main under Remotes). In Remotes the default branch stays inside its own remote folder and leads it — it is never lifted out of origin.When the panel is narrow — a phone, or a desktop window dragged thin (measured on the panel itself, not the viewport) — the sidebar collapses into a permanent icon rail: the top cell opens the drawer, the next two switch views directly without opening anything, and the four group icons open the drawer already expanded and scrolled to that group. The drawer overlays the content rather than squeezing it; tapping a branch/tag, opening a dialog, tapping the backdrop, or pressing Esc closes it.
Local Changes — stage / unstage / discard per file or in bulk, commit with amend, per-file diffs.
All Commits — commit history with a graph rail, search by message or hash prefix, author and time filters, and a commit detail pane: commit body, change stats, per-file diffs (unified or split, image compare, deferred rendering for large diffs), file tree and raw content. Branch / tag / checkout can be launched from any commit row.
Conflicts — a merge or pull that conflicts returns a banner listing the conflicted files with their resolved state; continue (git add -A + commit) or abort from there.
The input bar shows a zsh-style (branch) marker (toggle in Settings; off state moves a status dot beside the Git tab).
The plugin detail page has two live options: the input-bar branch marker toggle and the default diff view (unified / split). Saved changes apply immediately.
Host options go into the selected profile's cordis.patch.yml:
- id: git-plus
config:
timeoutMs: 8000
networkTimeoutMs: 300000
maxBytes: 4194304
maxChanges: 1000
refreshIntervalMs: 30000
defaultDiffView: unifiedtimeoutMs bounds each local git command (default 8000 ms).networkTimeoutMs bounds network commands — fetch / pull / push (default 300000 ms).maxBytes caps per-command stdout (default 4 MiB).maxChanges caps the change list (default 1000).refreshIntervalMs is the snapshot poll interval (default 30000 ms).A Host config change needs a dsh web restart.
npm install
npm run check # typecheck + unit tests
npm run build # rebuild lib/ (host + client bundles)
npm run deploy:local # rsync lib/ into the local dsh profilelib/ is committed and is what ships; deploy:local deploys it to ~/.dsh/profiles/web/node_modules/dsh-git-plus/lib for local testing.
Releases: push a chore(release): bump version to X.Y.Z commit — the workflow tags vX.Y.Z, creates the GitHub release (notes via changelogithub), and publishes to npm when the NPM_TOKEN secret is configured.
npm publishing is gated on the NPM_TOKEN repository secret — without it the workflow ships GitHub releases only:
dsh-git-plus package with read and write access. Copy it immediately — it is shown only once.gh secret set NPM_TOKEN --repo bitxeno/dsh-git-plus
# paste the token when prompted, then verify:
gh secret list --repo bitxeno/dsh-git-pluslatest dist-tag for stable versions, next for prereleases containing -).Notes: the npm package name must be unclaimed (the first publish creates it; validate beforehand with npm publish --dry-run). To rotate, regenerate the token on npmjs.com and update the secret value.