DeepSeek Harness plugin

dsh-plugin-toggle-huntersx

第三方插件开关:在设置页启用/禁用第三方插件(改写各 profile 的 cordis.patch.yml,DSH 热重载立即生效)

Jump to install

Source facts

Repository
huntersxy/dsh-plugin-toggle
Latest update
Aug 16, 2026
Category
Tools & Capabilities
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/huntersxy/dsh-plugin-toggle
Plugin: dsh-plugin-toggle-huntersx
Author: huntersxy

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-plugin-toggle

第三方插件开关 —— 在 DSH Web 设置页里启用/禁用第三方插件。

A settings-page toggle for third-party plugins in DeepSeek Harness Web.

安装

dsh plugin --profile web add dsh-plugin-toggle

或本地包:

dsh plugin --profile web add ./dsh-plugin-toggle-0.1.0.tgz

安装后重启 dsh web。设置 → 插件 → 「第三方插件」页签即可使用。

功能

  • 插件开关:列出每个 profile 中非官方(第三方)插件行(bundle 栈里非 @deepseek-ai/* 的 bundle + 用户补丁插入的行),带版本/描述/状态,一键启用/禁用。
  • 热重载生效:开关直接改写 profile 的 cordis.patch.ymldisabled: true 标记),DSH 监视该文件并热重载,无需重启;状态持久,重启后保持。⚠ 若插件的 bundle 补丁含配置/表达式行(非纯 insert),热禁用可能不完整——列表会显示 ⚠ 提示,禁用时也会提醒"重启进程后完全生效"。
  • 刷新页面:页签底部提供「刷新页面」按钮(纯客户端 location.reload()),修改插件/配置后刷新 Web 界面。

工作原理

  • Host:注册自定义 Web 路由 POST /plugin-toggle/api/<method>list / set-enabled),读取各 profile 的 bundle 栈与补丁文件,改写补丁。路由仅接受同源请求。
  • Client__ModuleLoader__ bundle,注册到 settings.plugins.tab(页签 id third-party)。
  • 为什么不用内置 settings RPC:DSH 的 api-proxy 对第三方 settings 命名空间有写死的暴露白名单(WEB_SETTINGS_NAMESPACES),第三方插件无法通过该通道写入,因此本插件采用与 dsh-better-sidebar 一致的自定义路由通道。

局限

  • 列表来自 profile 补丁文件的静态解析:只管理 bundle 栈中非 @deepseek-ai/* 的 bundle 行与用户补丁插入的行;include: 运行时前缀会自动归一化。
  • 修改 bundle 栈(安装/卸载插件)需要重启进程生效(页面上的刷新按钮只刷新页面,不重启进程)。

发布(CI)

v* 标签自动发布到 npm(GitHub Actions + npm Trusted Publishing(OIDC),无需任何 token):

# bump package.json 版本号并提交后:
git tag v0.1.1
git push origin v0.1.1

一次性配置(npm 侧,约 1 分钟)

1. 打开 https://www.npmjs.com/package/dsh-plugin-toggle → SettingsTrusted Publishing; 2. Connect a publisher → 选 GitHub Actions → 仓库填 huntersxy/dsh-plugin-toggle,工作流名填 publish-npm.yml(或留空允许任意); 3. 保存。此后打 v* 标签,CI 通过 OIDC 换短期凭证自动发布(带 SLSA provenance 签名),没有 token 需要存储或轮换

参考:npm 官方 Trusted Publishing 说明

License

MIT