OSSKn4w7/dsh-plugin-manager ↗★ 0
@osskn4w7/dsh-plugin-manager
Manage DeepSeek Harness plugins from the web GUI and CLI: install, enable/disable, uninstall — no manual config-file editing. Writes your profile's cordis.patch.yml for you and applies changes live through HMR.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:OSSKn4w7/dsh-plugin-manager说明文档
阅读完整 README ↗dsh-plugin-manager
在不改配置文件的前提下管理 DeepSeek Harness 的插件。
原本的流程是:把插件包放进 profile 目录、手改 cordis.patch.yml、重启、反复。
这个插件为 Web GUI 新增一个 插件管理 标签页 —— 就在 设置 → 插件 里,你可以:
- 按 npm 包名安装插件(可附带 JSON 配置);
- 一键启用 / 禁用任意 Loader 条目(即时生效,无需重启);
- 再次卸载插件;
- 查看完整的 Loader 组成树、profile 的依赖与 bundles,以及哪些行是管理器安装的。
它会替你写入 profile 的 cordis.patch.yml(一个带分隔符的自动管理块;你手写的补丁
会逐字节保留),运行中的服务通过用户补丁监听(HMR)立即应用改动。
同时还提供命令行(dsh-plugin-manager)和聊天命令(/plugin)。
组成
| 文件 | 作用 |
|---|---|
lib/index.js | 宿主端:/plugin-manager/api JSON 接口 + /plugin 聊天命令 |
lib/client.js | 浏览器端:设置 → 插件里的「插件管理」标签页 |
lib/core.mjs | 共享逻辑:cordis.patch.yml 管理块读写、pnpm 执行、bundle 归并 |
bin/dsh-plugin-manager.mjs | 独立 CLI(服务停止时也能用) |
安装
npm 包名:@osskn4w7/dsh-plugin-manager
# 方式 A —— 标准 dsh bundle 安装:
dsh plugin --profile web add @osskn4w7/dsh-plugin-manager
# 然后重启 dsh web(bundle 补丁层在启动时加载)
# 方式 B —— 免重启的实时安装(在本目录执行):
dsh-plugin-manager bootstrap --profile web
# 或手动:在 profile 目录 pnpm add file:…,再启用该条目,然后刷新浏览器
两种方式二选一(都用会把条目插入两次)。bootstrap 通过 pnpm 把本包安装进
$DSH_HOME/profiles/web,并把它的 Loader 条目写入 cordis.patch.yml。因为
profile 补丁文件是实时监听的,宿主端会立即激活;刷新一次浏览器即可加载客户端包。
单独使用 CLI(不在插件源码目录时):
npm i -g @osskn4w7/dsh-plugin-manager
dsh-plugin-manager list --profile web
要求:PATH 里有 pnpm、使用 web profile(或任何带 web bundle 的 profile)、
服务默认绑定 loopback。
发布(维护者)
npm 包:@osskn4w7/dsh-plugin-manager;GitHub 仓库:
OSSKn4w7/dsh-plugin-manager。