healing1/dsh-web-plugin-manager ↗★ 0
dsh-web-plugin-manager
Manage DeepSeek Harness (DSH) plugins from the Web UI: list, enable/disable, install/remove, environments, and a GitHub-awesome-driven marketplace.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:healing1/dsh-web-plugin-manager说明文档
阅读完整 README ↗dsh-web-plugin-manager
在 Web UI 中一键管理 DeepSeek Harness (DSH) 插件:查看、实时启停、安装/卸载、更新检测、健康检查(依赖/冲突/兼容性分析)、环境管理、插件市场。bundle 与非 bundle 插件全覆盖。
⚠️ 强烈建议:先装管理器,再装其他插件
本插件管理器自带质量门与健康检查(安装时全链依赖扫描 + bundle patch 行校验 + 安装即回滚;安装后可做依赖图/冲突/循环/peer 兼容性分析)。在安装其他插件之前,先把管理器本身装进 profile——这样后续每一个插件的安装都会经过检测,能显著减少"装上就炸、重启起不来"的情况。即使某个插件有问题,质量门也会在安装时拦截并回滚,profile 保持可启动。
若已存在未经验证的插件导致 profile 无法启动:先用
dsh --profile --patch等方式排查,或手动清理对应依赖/cordis.patch.yml行后,再安装管理器接管。
安装
# 方式一(推荐):从 npm 安装(务必带 @latest)
dsh plugin --profile add dsh-web-plugin-manager@latest
# 方式二:从源码构建
cd /path/to/dsh-web-plugin-manager
pnpm install && pnpm run build
dsh plugin --profile add .
⚠️ 不带
@latest的add是 pnpm 语义:若 profile 里已声明过旧版本(如^0.1.2),会保留旧 specifier 不升级;dsh plugin update也只在该范围内重解析。已装过旧版想升级到最新,用add dsh-web-plugin-manager@latest(或先 remove 再 add)。
重启 profile 后,Web UI 的 设置 会出现 插件管理 标签页与 市场 一级菜单。
CLI(dshpm)
用户让 AI 安装插件时,AI 默认会跑裸 dsh plugin add / pnpm add——这绕过了全部防护。本包提供 dshpm bin(随插件安装进入 profile 的 node_modules,也可 node /node_modules/dsh-web-plugin-manager/dist/cli.js 直接调用),所有变更走与 Web UI 完全相同的受保护链路(质量门 + 自动回滚 + 分析 + insert 行维护):
dshpm install
--profile # npm 名 / github:user/repo / git URL / tarball / 本地路径
dshpm remove --profile # insert 行 + 包依赖一并清理
dshpm update --profile # 升级到 @latest(重写 specifier,质量门+回滚)
dshpm mount --profile # 补挂载官方 CLI 手动安装的未挂载依赖
dshpm list --profile # bundle 层栈 / 已装包 / insert 行
dshpm analyze --profile # 健康检查,有问题退出码 1
配合注入的提示词与工具守卫,AI 会在尝试裸命令前/时被引导到 plugin_install 工具或 dshpm。
功能
| 能力 | 说明 |
|---|---|
| 查看 | 合并展示层栈/依赖/挂载行/运行条目;手动安装未挂载的依赖显示「未挂载」并可一键挂载 |
| 实时启停 | managed 块编辑 patch,经 loader 直接应用,实时生效、重启后持久 |