WongYuYe/dsh-diff-card1

dsh-diff-card

Per-turn file-change card for DSH Desktop: +N −M badges, aligned diffs, and Mac/Windows file open (system app, Finder/Explorer, VS Code).

包名
dsh-diff-card
版本
0.1.1
许可证
MIT
最近更新
2026年9月8日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:WongYuYe/dsh-diff-card

dsh-diff-card

中文 | English

dsh-diff-card

Awesome DSH Plugin dsh plugin npm License: MIT

DSH Desktop 用的 Codex 风格改动卡:编辑/写入行显示 +N −M,每轮结束列出改过的文件,点开就能审 diff。macOS 和 Windows 都能用系统应用、文件夹或 VS Code 打开文件。不依赖 git。

demo

做什么

  • 编辑、写入工具行带上 +N −M
  • 轮末卡片:已编辑 N 个文件,默认预览 3 条,标题里有合计 +xx −xx
  • 查看更改:展开全部文件并打开 diff;再点一次收起
  • 审核:展开本轮全部 diff
  • 撤销:把本轮文件恢复到改之前(文件若已被别处改过会拒绝)
  • 点某一行:展开/收起这一份 diff
  • 行上的 :系统打开、在文件夹中显示、VS Code、复制绝对/相对路径
  • 覆盖原生 edit / writestr_replace_editor,以及 Code Dispatch 子调用
  • 文案跟随界面语言(中 / 英)

截图

轮末卡片行内徽标与 diff
轮末卡片对齐 diff

安装

dsh plugin --profile desktop add dsh-diff-card

装完刷新 Web GUI,或重启 DSH Desktop。

从源码:

git clone https://github.com/WongYuYe/dsh-diff-card.git
cd dsh-diff-card
pnpm install
dsh plugin --profile desktop add .

需要 DeepSeek Harness >= 0.1.2-rc.1

开发

pnpm install
pnpm build
pnpm typecheck
pnpm check:align
pnpm check:join

发布:把 package.json 改成 X.Y.Z,推 vX.Y.Z tag。GitHub Actions 会打 Release 并用 Trusted Publisher 发到 npm。

基于 HaoyueQin/dsh-diff-stat,补了跨平台打开。

License

MIT