
Security News
PHP Foundation Says Chainguard Broke Security Embargo Ahead of Emergency Patches
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.
dsh-edit-diff
Advanced tools
质量 diff:接管 edit/write 工具卡片,行级去重与行内高亮,消除相同内容在删除与新增两区的重复;兼容 PTC 模式,标准可安装的 dsh 客户端插件
接管 DSH 浏览器的 edit / write 工具卡片,用近线性行级 diff 做真正的差异展示,消除内置 DiffBlock 把「未变化的相同行」在删除区红 - 行和新增区绿 + 行各渲染一遍的重复。
纯浏览器端 client 插件,单击即换新渲染,不碰 DSH 源码。
DeepSeek Harness 内置的 DiffBlock 展示工具改动时有个毛病:它拿到旧文件全文和新文件全文,就把旧的全染成红色 - 行、新的全染成绿色 + 行——完全不做行级匹配。
结果呢?一次只改了一小段的 edit,一堆根本没变的注释、空行、样板代码,在红绿两区各出现一遍,仿佛同一句话被说了两次。大文件改起来更是重复加刷屏,想扫一眼真正改了什么,得靠肉眼在一大摊重复里找不同。
这哪行。改个文件就该像看 git diff 一样:只亮出真正的差异,相同行不该凑热闹。
于是这个插件接管了 edit 和 write 两个工具卡片,用近线性算法算出真实差异,相同行一行不渲染,替换行还把改动到的具体字符用下划线标出来。一眼就知道到底改了什么。
- 与新增行绿 +,消除重复。--dsw-* 主题变量,视觉上就是原生卡片。- /+ 前缀;底部 └ +A -R · N file(s) 变更统计。edit / write 双双接管,覆盖新建只显示绿色新增,纯删、多 hunk 等场景。run_code 子调用中的 edit / write 同样显示去重 diff,通过 callId 中的 :code: 标记识别子调用。注意 write 是全文件覆写,无旧内容,只能显示全新增;想看精确 diff 应使用 edit。edit 只改动一小段后的实际效果:

✎ Edit · dsh-cache-billing\src\client.ts,右侧 chevron 可点开收起。- 与新增行绿色 +,完全相同行不重复渲染。峰谷价标注 改成 峰谷价标注附模型名,改动到的字符 附模型名 以下划线加粗标出;右下角为复制按钮。└ +1 -1 · 1 file,列明净增删行数与文件数。dsh plugin --profile web add github:better-er/dsh-edit-diff
或安装 npm 发布的版本:dsh plugin --profile web add dsh-edit-diff。
一条命令装完即生效,自动挂载,重启 DSH web 后启用,无需手工编辑任何组合文件。
dsh plugin --profile web remove dsh-edit-diff
彻底移除,重启 DSH web 后不再加载。
dsh.client,导出 ./client。dsh.bundle,因此也是一个自挂载的 bundle 层插件:用 dsh plugin --profile <name> add 从 GitHub 安装后,会被自动识别为 profile layer 并挂载,无需手工写组合 entry。lib/index.js 是无操作的 no-op 主机插件标准双面包约定。tool.call.toolview 的 edit 与 write 两个 key。priority: -1低于内置 file-mutation-toolview 的默认 0,用更低优先级遮蔽默认渲染,而不是在同一优先级上 clash。callId 包含 :code: 判断是否为 run_code 子调用,从 argsRaw 中提取 old_string/new_string 即 edit 或 content 即 write 动态构建 diff。lib/client.js 是按 DSH client bundle 产出的注册式模块,源码即产物,改完即用。FAQs
「DSH·质量 diff」:接管 edit/write 及 extraTools 配置的其他工具卡片:行级去重与行内高亮,消除相同内容在删除与新增两区的重复;兼容 PTC 模式,标准可安装的 dsh 客户端插件
The npm package dsh-edit-diff receives a total of 226 weekly downloads. As such, dsh-edit-diff popularity was classified as not popular.
We found that dsh-edit-diff demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.

Security News
PHP releases emergency patches for two critical RCE vulnerabilities as agencies urge organizations to take unpatched sites offline.

Threat Research
/Security News
A supply chain attack compromised LiteLLM 1.107.0 on PyPI and Docker, spreading malware that steals cloud credentials, developer secrets, and AI provider keys.