dsh-plugins
其他 活跃维护

dsh-plugins

neoeto/dsh-plugins

作为工具链扩展资源库,收录多类开箱即用的功能组件,覆盖数据处理、模型调用、任务编排等常见开发需求,所有插件均遵循统一接口规范,无需额外适配即可快速集成到现有工具链,大幅降低功能扩展成本。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
None
开源协议
36 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:neoeto/dsh-plugins
git clone https://github.com/neoeto/dsh-plugins.git
git clone git@github.com:neoeto/dsh-plugins.git
README.md main

dsh-plugins

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

// ~/.dsh/profiles/web/package.json
{
  "dependencies": {
    "dsh-d2-diagram": "link:/path/to/dsh-plugins/dsh-d2-diagram"
  },
  "dsh": {
    "profile": {
      "bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-d2-diagram"]
    }
  }
}

开发与验证

  • 修改 lib/client.js 后刷新页面即可生效(bundle 以 no-cache 提供);
  • 重启 dsh 进程后,boot 清单中的 rev 会重新哈希;
  • 运行中的进程按启动时记录的路径读取 bundle,文件重建后无需重启即可被服务。