dsh-plugin-installer-ui
> English
DSH(DeepSeek Harness)插件管理器:在「设置 → 插件」中新增「安装插件」页签,输入 dsh plugin 命令或包名即可在线添加 / 移除插件,无需手动编辑配置文件。
功能简介
- 在线安装 / 移除插件:在「设置 → 插件 → 安装插件」页签中输入包名或完整命令,一键执行
dsh plugin --profile web add/remove <spec>,实时显示执行输出与结果状态。
- Host 端:注册
POST /api/plugin-manager/install与GET /api/plugin-manager/status
HTTP 路由,代理执行 dsh plugin 命令(含命令解析、包名安全校验、超时保护)。
- Client 端:在「设置 → 插件」页签组中注入「安装插件」标签页(输入框 + 添加 / 移除按钮 + 执行输出)。
- 环境诊断:页签底部显示 node 版本、目标 profile 与 DSH_HOME 路径,方便排查问题。
环境要求
- DeepSeek Harness(DSH)已安装
- pnpm(
dsh plugin命令基于 pnpm 转发)
安装
dsh plugin --profile web add dsh-plugin-installer-ui也可以从 GitHub 直接安装(无需发布到 npm):
dsh plugin --profile web add github:chuyue-yue/dsh-plugin-manager
# 或固定版本:
dsh plugin --profile web add https://github.com/chuyue-yue/dsh-plugin-manager/archive/refs/tags/v1.0.0.tar.gz安装完成后 重启 dsh web 服务,刷新页面,即可在 设置 → 插件 看到「安装插件」页签。
使用
在「安装插件」页签中输入(支持三种格式):
| 输入 | 效果 |
|---|---|
dsh plugin --profile web add <包名> | 安装插件(完整命令) |
<包名> | 安装插件(默认执行 add) |
remove <包名> | 移除插件 |
> 安装依赖网络与 pnpm;若提示找不到 pnpm,请先安装 pnpm 后重试。
卸载
dsh plugin --profile web remove dsh-plugin-installer-ui开发
dsh-plugin-installer-ui/
├── lib/
│ ├── index.js # host 端:HTTP 路由(install / status)
│ └── client.js # client 端:「安装插件」页签
├── cordis.patch.yml # bundle 激活层(dsh plugin add 后自动挂载)
└── package.jsondsh.client声明 client 端注入(platform: web、immediately: true);dsh.bundle.patch声明 bundle 激活层,dsh plugin add会将其自动加入
dsh.profile.bundles,无需手工编辑 cordis.patch.yml。
License
MIT