
Product
Socket Threat Intel Now Shows Which Malware Campaigns Were Blocked or Detected
Socket Threat Intel now shows which malware campaigns were blocked or detected in your organization, with links to scans and Firewall events.
dsh-edit-diff
Advanced tools
质量 diff 展示:接管 edit/write 工具卡片,用近线性行级 diff + 行内字符高亮,消除相同内容在删除/新增两区的重复(标准可安装 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 等场景。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。lib/client.js 是按 DSH client bundle 产出的注册式模块,源码即产物,改完即用。lib/client.js 的 factory 必须以 return module.exports 结尾,否则模块导出为 undefined,DSH 启动即 fail-loud。FAQs
「DSH·质量 diff」:接管 edit/write 及 extraTools 配置的其他工具卡片:行级去重与行内高亮,消除相同内容在删除与新增两区的重复;兼容 PTC 模式,标准可安装的 dsh 客户端插件
The npm package dsh-edit-diff receives a total of 176 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.

Product
Socket Threat Intel now shows which malware campaigns were blocked or detected in your organization, with links to scans and Firewall events.

Security News
Fixes for eMudhra and Brotli are out. Getting them everywhere they’re needed means tracking down bundled libraries, runtimes, and certificate stores.

Threat Research
/Security News
Socket uncovered secret-stealing workflows that ran in LiteLLM’s GitHub repository 11 days before the supply chain attack on PyPI and Docker.