rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:evanfang0054/dsh-mermaid-zoom
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Mermaid 图交互增强插件,适用于 DeepSeek Harness (DSH) Web GUI。
给 GUI 中 dsh-genui 渲染的 mermaid 图([data-genui-mermaid] 容器)加上:
纯浏览器端 DOM 增强,不依赖任何宿主服务;MutationObserver 自动接管流式渲染完成的图。缩放范围 0.4x – 10x。
包声明了 dsh.bundle,通过 dsh 官方 CLI 安装会自动挂载到 profile 的 bundle 栈,无需手改配置文件:
dsh plugin --profile web add dsh-mermaid-zoom
安装完成并重启 dsh web 即生效(dsh 不在 PATH 时用 npx -y @deepseek-ai/dsh plugin ...)。
也可以只把这个包作为普通依赖装进 profile,再手写一条 insert 记录:
cd ~/.dsh/profiles/web # 或你实际的 profile 目录
pnpm add dsh-mermaid-zoom
然后在 cordis.patch.yml 中插入:
- insert:
- id: dsh-mermaid-zoom
name: 'dsh-mermaid-zoom'
⚠️ 两种方式二选一:如果已经用「方式二」挂载过,改用「方式一」前请先从
cordis.patch.yml删除那行 insert,避免双挂载(两份客户端、两份工具栏处理逻辑)。
git clone https://github.com/evanfang0054/dsh-mermaid-zoom.git
cd dsh-mermaid-zoom
npm test # node --test tests/
结构:
lib/index.js — 宿主半身(无操作,能力全在客户端)lib/client.js — 客户端半身(DOM 增强、事件绑定、PNG 导出)lib/core.mjs — 纯逻辑核心(不触碰 DOM,可被 node --test 直接测)CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。