全部插件

DSH / BUNDLE / CLIENT-UI

dsh-local-plugin-switch

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

可安装组合包UI 与客户端插件社区 · Topic 自动分析Web UI

概览

dsh-local-plugin-switch

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

README / ZH

插件文档

目录摘要

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

dsh.pub 核对固定版本的组合包契约、运行时事实与分发语义;完整 README 请查看源仓库。

在 GitHub 阅读完整 README

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` 模板里已列出该行——需先按上面「部署」拷贝并挂载。