rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:lzxcs/edit-diff-pro
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
需要 DSH(DeepSeek Harness)与 web profile(dsh web):
# 1. 安装插件(pnpm git 依赖)
dsh plugin --profile web add github:lzxcs/edit-diff-pro
# 2. 在 ~/.dsh/profiles/web/cordis.patch.yml 末尾追加注入块:
- insert:
- id: edit-diff-pro
name: 'edit-diff-pro'
# 3. 重启 DSH Web(托盘菜单 → DSH Web 重启),浏览器 Ctrl+F5 刷新页面
卸载:dsh plugin --profile web remove edit-diff-pro,并删掉 cordis.patch.yml 中的注入块。
Web GUI 插件:把 edit / write 工具调用的 diff 卡片替换为 Claude Code 风格视图。
-、新增行绿色 +,每行显示文件中的绝对行号(新增行显示新行号,其余显示旧行号)。重置默认 恢复主题淡色样式、默认折叠阈值与默认折叠。颜色经 settings 服务持久化到 $DSH_HOME/settings.yaml 的 edit-diff-pro: 段(留空 = 未自定义)。edit-diff-pro: 段的 foldThreshold(20–5000,默认 100)。lib/index.js — Node half:通过 ctx.inject 注册回环路由与 settings 命名空间。GET /__edit-diff-pro/read?path=<path>[&cwd=<root>] → { content }(LF 归一化);GET/POST /__edit-diff-pro/settings → 读取/写入 { colors, foldThreshold, defaultExpanded },经 settings 服务落到
$DSH_HOME/settings.yaml 的 edit-diff-pro: 段;settings.register('edit-diff-pro', passThrough, { base }):让设置页能分发我们的卡片
(modlens 同款 pass-through schema)。lib/client.js — Browser half:window.__ModuleLoader__.load 惰性 CJS 工厂,
require('react'),注册 tool.call.toolview 的 edit / write 两个 key
(priority: -1 影遮内置行),及 settings.plugin.item 的 edit-diff-pro 设置卡片;
颜色经共享 store 广播给所有 diff 卡片,以 CSS 变量 --dshdc-* 落到卡片根节点。package.json dependencies 加 "edit-diff-pro": "file:./edit-diff-pro"。cordis.patch.yml insert 行 { id: edit-diff-pro, name: 'edit-diff-pro' }。pnpm-workspace.yaml packages 加入 edit-diff-pro。pnpm install 后重启 dsh web。维护提示:pnpm 的 hoisted 链接器对
file:依赖会拷贝进 store 而不是软链, 且不会自动重建被删除的链接。本 profile 中node_modules\edit-diff-pro是指向 源码目录的 junction(New-Item -ItemType Junction),因此改lib/client.js后刷新页面即生效(服务端按请求读文件)。若某次pnpm install把它清掉了, 重新执行:New-Item -ItemType Junction -Path "node_modules\edit-diff-pro" -Target "~/.dsh\profiles\web\edit-diff-pro"
读取路由绑定在 dsh 自带的回环 web 服务器上(默认 127.0.0.1),无鉴权;它只读文件, 大小上限 4MB。与内置 fs 工具同一权限面(本机用户可读路径),不额外放开写权限。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。