Bundle
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).
- Source
- WongYuYe
- stars
- 1 stars
- License
- MIT
- Updated
- Updated yesterday
Readme
# dsh-diff-card 中文 | [English](README.en.md) [](https://awesome-dsh-plugin.com) [](https://www.npmjs.com/package/dsh-diff-card) [](LICENSE) 给 [DSH Desktop](https://github.com/anywhere-labs/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 子调用 - 文案跟随界面语言(中 / 英) ## 安装 ```sh dsh plugin --profile desktop add dsh-diff-card ``` 装完刷新 Web GUI,或重启 DSH Desktop。需要 DeepSeek Harness `>= 0.1.2-rc.1`。 从源码: ```sh git clone https://github.com/WongYuYe/dsh-diff-card.git cd dsh-diff-card pnpm install dsh plugin --profile desktop add . ``` ## 开发 ```sh pnpm install pnpm build pnpm typecheck pnpm check:align pnpm check:join ``` ## License MIT
Install
dsh plugin --profile web add github:WongYuYe/dsh-diff-card
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-diff-card from the hub
- This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.