erduotong/dsh-plugin-graph ↗★ 2
dsh-plugin-graph
Web settings surface for DeepSeek Harness: a force-directed relationship graph of client plugins — inject dependencies and slot registrations. / DSH 设置页插件关系图谱(力导向图)。
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:erduotong/dsh-plugin-graph说明文档
阅读完整 README ↗dsh-plugin-graph
DeepSeek Harness(DSH)Web 设置页插件:以力导向图(Koishi / Obsidian 风格)可视化客户端插件之间的关系。
Tip: 这是一个dsh自己写的项目,还在快速完善中 如有好的想法,欢迎提出Issue~
功能
- 力导向图画布:节点自动物理布局,节点按度数缩放。
- 两类节点:
- 插件节点(蓝色圆点)—— 来自启动清单
window.__DSH_BOOT__与插槽注册表; - 插槽节点(琥珀色菱形)—— 来自实时插槽注册表
ctx.slots.snapshot()。
- 插件节点(蓝色圆点)—— 来自启动清单
- 三类彩色边:
- 蓝色
inject—— 插件对其它包的依赖; - 绿色
declares—— 插槽声明者; - 琥珀色
registers—— 注册到插槽的插件。
- 蓝色
- 交互:拖拽节点(重新加热布局)、拖拽空白平移、滚轮缩放、悬停高亮相邻节点并弹出信息框(显示依赖/被依赖、声明者/注册者)。
- 放大查看:画布右上角展开按钮,打开全屏模态框,支持 Esc / 遮罩 / × 关闭。
- 只读快照:不订阅任何事件,挂载与手动刷新时重建图。
快速上手
1. 前置条件
- 已安装 DeepSeek Harness,并至少启动过一次 Web 界面(会生成
~/.dsh/profiles/web)。
2. 安装插件
二选一:
方式 A:从 npm registry 安装(推荐一般用户使用)
dsh plugin --profile web add dsh-plugin-graph
方式 B:从本地源码目录安装(开发 / 未发布时)
dsh plugin --profile web add /path/to/dsh-plugin-graph
dsh plugin add会把包装进 profile 的package.json依赖并链接到~/.dsh/profiles/web/node_modules。请不要用裸npm i dsh-plugin-graph安装——那只会装进当前目录的node_modules,dsh 并不知道它。
本包自带 dsh.bundle 声明(cordis.patch.yml 配置层),dsh plugin add 后会自动追加到 profile 的 dsh.profile.bundles 层叠,启动时由包自带的 patch 挂载 ui-plugin-graph 行——无需手动编辑 cordis.patch.yml。
升级提示:如果在旧版本(无
dsh.bundle)时手动往cordis.patch.yml加过insert: - id: ui-plugin-graph,请删除该条目,避免与 bundle 自带的挂载重复。
3. 重启并打开
- 重启 dsh Web 进程(配置变更和 loader 条目都需要重启才生效)。
- 打开设置页(侧边栏底部「设置」)→ 找到 「插件关系图谱」 入口(位于 Agent 预设之后)。
- 点击进入,即看到力导向图。