@deepseek-ai/dsh-tool-diff
DSH 文本对比工具:支持文本、JSON、CSV、Markdown 的结构化对比及补丁验证
AI 分析
为模型提供只读的结构化差异对比(Diff)和内存中补丁验证能力。适合代码审查、文档版本对比以及需要精确展示文本变更的开发辅助任务。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:omdsh-dev/dsh-tool-diff说明文档
阅读完整 README ↗一次性任务(headless)profile —— dsh run 默认使用 headless
dsh plugin --profile headless add "C:/path/to/dsh-tool-diff"
包内 `dsh.bundle.patch` 会在安装后自动把插件加入 profile 的 layer stack(row id:`tool-diff`)。插件缺失的 peer 依赖(`cordis`、`@deepseek-ai/dsh-tools`)由 profile 的 healed `profiles/node_modules` 回退安装提供。
> ⚠️ web 与 headless 是**不同 profile**:web 安装不会自动覆盖 headless;`dsh run` 默认使用 headless profile。Windows 路径使用正斜杠(`C:/...`)。
### 验证安装
```sh
dsh --profile web --dump-config | grep tool-diff
运行验证
dsh run "使用 diff 工具对比两段文本"
手动安装与旧版本兼容
仅适用于不支持 Profile Bundle 的旧快照或插件开发调试环境(本地 junction/symlink、手动编辑 profile 层)。
许可
MIT