All plugins

DSH / BUNDLE / CLIENT-UI

dsh-local-plugin-switch

v0.1.0jcleener / dsh-local-plugin-switchb3b4c09702

InstallableBundlesUI & client pluginsCommunity · Topic auto-analysisWeb UI

Overview

dsh-local-plugin-switch

Settings page — toggle local plugins on/off (live + durable via cordis.patch.yml).

README / EN

Package documentation

Registry summary

Settings page — toggle local plugins on/off (live + durable via cordis.patch.yml).

dsh.pub verifies the pinned bundle contract, runtime facts, and distribution semantics. The complete README remains in the source repository.

Read the full README on GitHub

LIMITATIONS

Known limitations

- **只处理非分组条目**:`entry.options.group` 为真的条目在列表与开关里都被跳过。 - **补丁写回是行级启发式,不是 YAML 解析器**:只识别 `- id: X` 紧跟两空格缩进的 `disabled: true|false`;行 id 必须匹配 `/^[A-Za-z0-9_.-]+$/`,否则写入失败并返回 reason。 文件末尾若是顶层 flow 结构(以 `[`/`{` 起头)会拒绝追加。 - **受保护清单硬编码**在 `lib/index.js`(注释说明移植自 dsh-market),按 `cordis:`、`@deepseek-ai/cordis-plugin-`、`@deepseek-ai/dsh-*` 等前缀匹配; 清单没覆盖到的内置模块在页面上是可开关的。 - **`toggle` 只做同源校验**(`Origin` 的 host 等于 `Host`),本机任意工具都可直接 POST。 - 客户端 `lib/client.js` `require('@deepseek-ai/dsh-client-ui-primitives')` 取到 `primitives` 后**未使用**(UI 全部用 `react/jsx-runtime` 手写);`dsh.client.inject` 里的 `dsh-client-locale` / `dsh-client-runtime` 也未在该 bundle 中 `require`——属声明与实现 不一致,不影响运行。 - **部署现状(撰写本 README 时的快照)**:本机 `$env:DSH_HOME\profiles\web\cordis.patch.yml` 中尚无本插件的 insert 行,`profiles\web\node_modules\` 下也没有该包目录;工作区 `config\profiles-web\cordis.patch.yml` 模板里已列出该行——需先按上面「部署」拷贝并挂载。