DeepSeek Harness Web 插件集合。每个插件一个目录,通过 profile 的
dsh.profile.bundles 挂载到 dsh 进程。
| 插件 | 说明 | 文档 |
|---|---|---|
dsh-d2-diagram |
把 d2_render 工具生成的 D2 图表内联显示在对话中,支持缩放、平移、源码查看与下载 |
中文 · English |
dsh-mermaid-diagram |
注册 mermaid_render 工具,把 Mermaid 源码渲染为 SVG 并在对话中显示,支持缩放、平移、源码查看与下载 |
中文 · English |
- 每个插件一个目录,例如
dsh-d2-diagram/; package.json声明dsh.client(Web 客户端入口,exports["./client"]指向 bundle) 与dsh.bundle.patch(profile bundle 的 patch 层);cordis.patch.yml是 bundle 的 patch 层:纯显示插件通常为空数组,需要宿主行时 在其中插入;lib/client.js由 harness 的 client-modules 服务直接以/plugins/<id>/client.js提供,无需构建步骤;- 每个插件提供
README.md(默认中文)与README.en.md(英文)两份文档。
在目标 profile(如 ~/.dsh/profiles/web)中声明 link 依赖并把插件加入
dsh.profile.bundles:
- 修改
lib/client.js后刷新页面即可生效(bundle 以no-cache提供); - 重启
dsh进程后,boot 清单中的 rev 会重新哈希; - 运行中的进程按启动时记录的路径读取 bundle,文件重建后无需重启即可被服务。