deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
DeepSeek Harness (DSH) 插件管理器:在 WebUI 设置 → 插件 → 插件管理 里可视化查看、临时打开、关闭其他插件。
profile/package.json 里安装的社区插件 + 你自己在 cordis.patch.yml 里加的条目(如 MCP 桥梁)。entry.update({ disabled })(与官方 dsh-market 主题开关同一条路)。默认在切换后自动刷新网页,让带前端界面的插件(桌宠、侧边栏等)也立即完全生效;也可在面板里切到手动刷新模式(选择保存在浏览器 localStorage)。<profile>/.plugin-manager/state.json,下次启动时自动回放为关闭,直到你把它打开。npx)在任意终端执行(默认安装到 web profile):
npx -y @deepseek-ai/dsh plugin --profile web add https://github.com/Retr67/dsh-plugin-manager.git
该命令会:① 安装依赖;② 检测到包声明了
dsh.bundle,自动把插件加进dsh.profile.bundles(下次启动自动加载)。
如果你的 dsh 已全局可用,也可以直接:
dsh plugin --profile web add https://github.com/Retr67/dsh-plugin-manager.git
把 web 换成你的 profile 名:
npx -y @deepseek-ai/dsh plugin --profile myprofile add https://github.com/Retr67/dsh-plugin-manager.git
dsh web(让插件加载),并刷新浏览器页面。npx -y @deepseek-ai/dsh plugin --profile web remove dsh-plugin-manager
dsh-plugin-manager/
├── package.json # dsh.bundle + dsh.client 声明
├── cordis.patch.yml # 挂载 plugin-manager 主机条目
├── dsh/
│ ├── index.js # 主机端:HTTP API + loader 枚举/开关 + 状态持久化
│ └── client.js # 浏览器端:注册 设置→插件→插件管理 标签页(React)
├── install.ps1 # Windows 一键安装脚本(内部即标准 npx 命令)
├── install.sh # POSIX 一键安装脚本(内部即标准 npx 命令)
├── README.md
└── LICENSE # MIT
install.ps1 / install.sh 只是标准命令的便捷封装,默认安装源是上面的 GitHub 仓库;不以自定义
file:路径作为主安装方式。
package.json 的 dsh.profile.bundles 做热增删(那需要重启生效),而是对运行中的 loader entry 做热开关——这是 dsh-market 主题切换验证过的做法。internal/plugin 事件)同样移植自 dsh-market。disabled,管理器会自动改为开关其子条目。| 方法 | 路径 | 说明 |
|---|---|---|
| GET | /plugin-manager/list |
返回插件列表与开关状态 |
| POST | /plugin-manager/toggle |
{ id, enabled } 热开关某个插件 |
| POST | /plugin-manager/reset |
恢复所有被保持关闭的插件 |
POST 接口(toggle/reset)做了 Origin === Host 的同源校验;GET 列表是只读、且只暴露在回环地址绑定的 web server 上,不再要求 Origin 头(同源 GET fetch 默认不携带 Origin,要求它会导致面板报 untrusted origin)。
plugin-manager)不会被关闭;系统组件不会提供开关。MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: plugin-manager。