dsh-plugin-manager

by chuyue-yue

0 工具与能力github 检测到 manifest package.json#dsh收录于 08-17

DSH 插件管理器:在「设置 → 插件」下新增 Install Plugins 页签,通过 dsh plugin 命令即可安装或移除插件

A plugin manager for DSH (DeepSeek Harness): adds an Install Plugins tab under Settings → Plugins , letting you add or remove plugins by typing a dsh plugin command or a…

安装

dsh plugin --profile web add github:chuyue-yue/dsh-plugin-manager

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

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 路径,方便排查问题。

环境要求

安装

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.json
  • dsh.client 声明 client 端注入(platform: web、immediately: true);
  • dsh.bundle.patch 声明 bundle 激活层,dsh plugin add 会将其自动加入 dsh.profile.bundles,无需手工编辑 cordis.patch.yml。

License

MIT

原始 README: https://github.com/chuyue-yue/dsh-plugin-manager/blob/main/README.zh-CN.md ↗