dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:XYZ1024-alt/dsh-git-diff
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Adds a Git changes tab to the right Sidebar of the DeepSeek Harness web UI (dsh web), next to the built-in Files and Terminal tabs.
M / A / D / R / C / T / U (untracked) / ! (conflict) badges. Paths that are already staged are marked.Version 1.x drew its own Files and History panels. DSH now ships both natively: the Files tab, and turn navigation in the chat. 2.0 therefore keeps only the git view and rebuilds it on the right-Sidebar tab API.
An expanded path shows two aligned columns: HEAD on the left, the working tree on the right.
>=0.2.1-rc.2 <0.3.0 with the web profile.git on PATH in the Session's execution environment.The package is a DeepSeek Harness bundle. Its cordis.patch.yml registers one row, which loads both the Host half (lib/index.js) and the browser half (lib/client.js).
# from GitHub (pin a commit for reproducibility: ...#<commit-sha>)
dsh plugin --profile web add github:XYZ1024-alt/dsh-git-diff
# or from a local checkout, run in its parent directory
dsh plugin --profile web add ./dsh-git-diff
The built JavaScript in lib/ is committed, so installation does not run a build. Reload the page after installing. Remove the plugin with dsh plugin --profile web remove dsh-git-diff.
The plugin registers two read-only GET routes, /api/dsh-git-diff/status and /api/dsh-git-diff/diff, as exact Fetch routes on DSH's shared /api channel. Before a request reaches them, DSH's Connection applies its Host/Origin trust checks and browser authentication, and only owner Peers get through.
git status currently reports as changed, and only inside the repository root.pnpm install
pnpm check # typecheck (Host and client separately), Biome, build lib/
| Path | Role |
|---|---|
src/contract.ts |
Zod schemas for the wire responses, shared by both halves |
src/routes.ts |
Route paths |
src/host/ |
Host plugin: Session to working directory, git through ctx.subprocess, file reads through ctx.fs |
src/client/index.ts |
Browser plugin entry: tab type, guide entry, tab body registration |
src/client/GitChangesBody.tsx |
Tab body: branch header, change list, per-path diff loading |
src/client/split-diff.ts |
Side-by-side row model: local patches from diff, paired old/new lines, folded gaps |
src/client/SplitDiff.tsx |
Two-column diff renderer |
src/client/api.ts |
Browser adapter over the Host routes, parsed with the shared contract |
src/client/locales.ts |
English and Chinese dictionaries |
scripts/build.mjs |
esbuild: ESM Host bundle and client bundle in the DSH module-loader envelope, with CSS-module styles injected |
The client bundle imports only from the Web shell's platform modules (react, zod, @deepseek-ai/dsh-client-ui-primitives, and so on). Everything else, including swr and diff, is bundled. The build fails when the client imports any other @deepseek-ai/* package at runtime.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。