dsh-diff-card

uitested: passnpmMIT

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

下载量 / Downloads
790
依赖体积 / node_modules
31.96 MB
测试时间 / Tested
2026-11-07
DSH 版本 / Version
0.2.2-rc.1

Install

dsh plugin --profile web add dsh-diff-card

Sandbox test results

StageResult
1 install✓
2 list✓
3 mount✓
4 boot—

Four stages run in an isolated sandbox: install (network on) → list → mount → boot (last three with no network).

README

dsh-diff-card

中文 | [English](README.en.md)

![Awesome DSH Plugin](https://awesome-dsh-plugin.com)

![npm](https://www.npmjs.com/package/dsh-diff-card)

![License: MIT](LICENSE)

给 DSH Desktop 用的改动卡。智能体改完文件后,工具行显示 +N −M,轮末列出本轮改过的文件,点开就能审 diff。macOS 和 Windows 都能用系统应用、文件夹或 VS Code 打开文件。

<p align="center">

<img src="docs/demo.png" alt="轮末改动卡" width="720">

</p>

功能

  • 编辑 / 写入行显示 +N −M
  • 轮末卡片「已编辑 N 个文件」,默认预览 3 条,标题带合计 +xx −xx
  • 点某一行:展开或收起这份 diff
  • 查看更改:展开全部文件并打开 diff,再点一次收起
  • 审核:展开本轮全部 diff
  • 撤销:把本轮文件恢复到改之前(文件若已被别处改过会拒绝);成功后按钮变成 恢复,再点一次把撤销掉的改动写回。撤销和恢复都会弹出轻量确认
  • 行上的 ▾:系统打开、在文件夹中显示、VS Code、复制绝对 / 相对路径
  • 覆盖 edit、write、str_replace_editor 和 Code Dispatch 子调用
  • 文案跟随界面语言(中 / 英)

安装

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

装完刷新 Web GUI,或重启 DSH Desktop。需要 DeepSeek Harness >= 0.1.2-rc.1。

从源码:

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

开发

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

License

MIT

Rendered from the README published on npm. Formatted only, not edited.

Versions

Published on npm::5,最后更新 2026-09-15

Links

GitHub · Homepage · npm

Same category