dsh-plugin-toggle
English | 中文
DeepSeek Harness (DSH) Web GUI 的插件开关面板。
打开 设置 → 插件 → 插件开关。每个已加载插件一张卡片,包含:
- 简述(来自该包
package.json 的 description)
- 已启用 / 已禁用 + 运行阶段(运行中 / 待启动 / 失败 / …)
- 启动 / 关闭(仅运行时生效,不改写
cordis.yml)
- 模糊搜索(名称 / 模块 / ID / 简述;支持子串与子序列)
核心 / 界面插件(webserver、connection、session、agent 等)标为 核心插件,禁止从此处关闭,避免页面失联。
安装
dsh plugin --profile web add github:DamonKoy/dsh-plugin-toggle
重启 dsh web,打开 设置 → 插件 → 插件开关。
或把仓库加进 profile 依赖并声明 bundle:
{
"dependencies": {
"dsh-plugin-toggle": "github:DamonKoy/dsh-plugin-toggle"
},
"dsh": {
"profile": {
"bundles": ["dsh-plugin-toggle"]
}
}
}
在 profile 目录执行 pnpm install,然后重启 dsh web。
你会得到
HTTP 接口(同源)
POST 仅接受同源请求。
目录
dsh-plugin-toggle/
lib/index.js 宿主:基于 Cordis Loader 的 list / set 路由
client/client.js 客户端:设置页标签(ModuleLoader factory)
cordis.patch.yml Bundle 插入(`id: plugin-toggle`)
客户端 exports.inject 必须是服务名 slots(不是包名)。写成包名会导致 client fiber 永久 pending。
许可
MIT