dsh-tool-diff
Structured comparison and unified diffs for text/JSON/CSV/Markdown.
文本/JSON/CSV/Markdown 结构化比较与 unified diff。
How to install
dsh plugin add github:omdsh-dev/dsh-tool-diff About
dsh-tool-diff English DSH Diff 文本差异工具插件 —— 文本 / JSON / CSV / Markdown 结构化比较与 unified diff 生成。零依赖、纯函数、只读。 动机 Agent 需要对比两份内容(配置片段、API 响应、表格、文档修订)时,现有路径是起 bash 进程调用系统 diff 或手写比较逻辑: 1. **每次调用都起进程**——Windows 上尤其昂贵 2. **系统 diff 不懂结构**——JSON 只能给整段文本差异,看不出 $.user.name 这样的路径级变更 3. **手写比较代码不可验证**——边界(引号内逗号、嵌套数组、标题重命名)极易出错 本插件提供确定性、零依赖、纯函数的差异比较:一次函数调用,毫秒级返回结构化 JSON 报告或标准 unified diff。 安全模型 **零依赖**:Myers 行级 diff、RFC 4180 解析器、JSON 递归比较全部手写 **只读**:不读文件、不写文件、不联网、不调 git;patch action 只在内存中生成并校验补丁,绝不落盘 **预算**: 输入单侧 ≤ 256 KiB(超限直接报错) 输出 ≤ 64 KiB(超限按 maxChanges 与字节预算截断并置 truncated) Myers diagonal 预算 2000 + 蛇步总预算 …
Recommendation signals
Meta
- License
- MIT
- Language
- TypeScript
- GitHub stars
- 4
- mo. downloads
- –
- Last push
- 2026-09-10
- Created
- 2026-08-09
Links
Basic safety check
- Findings
- curated 收录但无 npm 包/安装命令
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- data-comparison, diff, dsh, dsh-plugin, unified-diff
Related plugins
mobile-mcp
mobile-next/mobile-mcp
Model Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices)
davinci-resolve-mcp
samuelgursky/davinci-resolve-mcp
MCP server integration for DaVinci Resolve Studio
ssh-mcp
tufantunc/ssh-mcp
MCP server exposing SSH control for Linux servers via Model Context Protocol.