@linxin666/dsh-client-ui-plugin-manager 0.4.11 → 0.4.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # node scripts/verify-docs.mjs --write <dir>
5
- README.md: 5d35d6f70cb0a3d917c56cab48e34e1c9592d8db
6
- README.zh.md: cb538a8fb9b665d762c5b44698c88285a3027da8
5
+ README.md: 39fc8e1dab10231041dc758dbca533901af77912
6
+ README.zh.md: fc15799cfeb3a7cfb93b91f8037c6bf1dc825952
package/README.md CHANGED
@@ -25,6 +25,8 @@ An update and lifecycle manager for DeepSeek Harness (DSH) Web GUI and official
25
25
  - Detects the legacy aggregate `@linxin666/dsh-web-ui-all` and converts its update action into a transactional migration to `@linxin666/dsh-web-all`; the gateway removes the legacy package, installs the current package at an exact version, restores the legacy layer position, and verifies `--dump-config` before reporting success.
26
26
  - Verifies DSH runtime compatibility before npm updates (issue #754): update checks read the declared minimum DSH version from the latest manifest (`dsh.engines.dsh` with a top-level `engines.dsh` fallback), evaluate it as a node-semver range with the call the official boot gate makes — `semver.satisfies(host, range, { includePrerelease: true })` — so `||` alternatives, `^` and `~`, whitespace-separated comparators and x-ranges decide here exactly as they decide at boot, and show the requirement beside the update action. A requirement the running DSH does not satisfy disables the action and says to upgrade DSH. A requirement the host could not verify — an unreadable running version, or a declaration that is not a range node-semver parses — is a different verdict with its own copy: it names no cause and never sends the user to upgrade a DSH that was never compared. Neither verdict lets the update run, and the host update route answers 412 before starting any CLI job in both cases.
27
27
  - Protects the next boot on the npm runtime: after each install the gateway verifies the dependency actually landed, rejects duplicate entry-id claims and insert rows naming unresolvable packages, and composes the profile with the CLI's `--dump-config` preflight; a conflicting or failing install is rolled back through the official remove path and the existing plugins are never touched.
28
+ - Adds a "Built-in plugins" group at the bottom of the official Plugins page list; as the page declares no bottom extension slot, this group is inserted directly into the page DOM as a dedicated container with an independent React root (matching the update toolbar) and automatically resets or detaches on page rerenders and panel switches. By default the group lists only Loader rows not inserted by patches of any installed bundle (8 rows in this deployment), using a subtraction formula that surfaces rows declared in profile patch insert blocks (such as Computer Use's `computer-use` and `computer-use-cua-driver-native`) that were previously invisible in the official page; a control beside the group heading can expand it to append all remaining Loader rows (230 rows in this deployment) into the same list, where each owned row displays "From <bundle package name>" to indicate that it also appears on that bundle's details page. Expanding and collapsing only switches between the two already-read collections without re-reading, writing, or changing the enabled state of any row; switch behavior is identical across both scopes: each row provides a toggle switch calling official `pluginManager` remote `setPluginEnabled` to write the profile patch layer with hot-application (profiles with HMR require no restart); rows judged read-only by the official manager (`management-required` or `unaddressable`) render disabled switches with the lock type explained rather than maintaining a custom whitelist; accepted toggles re-read the Loader to verify state, and failures display copy mapped from official `error.code`.
29
+ - Provides a read-only "Agent presets" block beneath the built-in plugins group, displaying each preset's composed rows and status (enabled, disabled, or conditionally enabled with expression) without switches since preset rows are determined by composition.
28
30
 
29
31
  ## Install
30
32
 
@@ -76,6 +78,8 @@ The contract source of truth is `src/core/service.ts` (`PluginManagerService`).
76
78
  - The npm runtime's boot preflight (`--dump-config`) catches composition failures, and the static insert check catches insert rows naming packages that resolve nowhere; runtime import/apply failures still surface only at the next real start.
77
79
  - Duplicate-mount safeguard (gateway mode): the official CLI's bundle reconciliation re-adds every bundle-declaring dependency to `dsh.profile.bundles` after any install/remove — including packages the composition already mounts through a patch row (a bundle that mounts an external plugin by row), which would double-mount and fail the next boot (`duplicate prefix route`). After every successful CLI mutation the gateway strips exactly the newly added, already-row-mounted bundles entries back out (the manifest write goes through backup + tmp + atomic rename), reports one notice per stripped entry on the job result, and leaves normal installs' bundles entries — and every entry the user had before — untouched.
78
80
  - The wire shapes mirror the official installer protocol; on drift the tolerant parsers degrade to error rows rather than misbehaving.
81
+ - Settings "Built-in plugins" section retired: this package's `cordis.patch.yml` includes a top-level bare row `- id: ui-settings-plugins` with `disabled: true`, which the aggregation layer applies after `@deepseek-ai/dsh-web-app` to override and retire that settings section; management is consolidated into the "Built-in plugins" group on the official Plugins page, and disabling this package restores that settings section.
82
+ - Residual official Plugins page notice: the explanatory copy on the official Plugins page still states that built-in plugins can be viewed in Settings → Built-in plugins, though that entrance has been retired by this package; this text belongs to the official bundle and cannot be modified by this repository.
79
83
 
80
84
  ## Security model
81
85
 
package/README.zh.md CHANGED
@@ -25,6 +25,8 @@
25
25
  - 检测旧聚合包 `@linxin666/dsh-web-ui-all`,把更新动作转换为到 `@linxin666/dsh-web-all` 的事务迁移;网关先移除旧包、安装精确版本的新包、恢复旧聚合包的层顺序,并在 `--dump-config` 通过后才报告成功。
26
26
  - 更新前校验 DSH 运行时兼容(issue #754):更新检查读取最新版本清单声明的 DSH 最低版本(`dsh.engines.dsh`,兼容回退读顶层 `engines.dsh`),按 node-semver 范围求值——用的正是官方启动门禁那一句 `semver.satisfies(host, range, { includePrerelease: true })`,因此 `||` 备选、`^` 与 `~`、空格分隔的多比较器与 x-range 在这里的判定与启动时完全一致——并在更新动作旁显示要求。运行 DSH 确实不满足要求时禁用更新并提示升级 DSH。宿主无法核验要求时(运行版本读不出来,或声明不是 node-semver 能解析的范围)是另一种结论,有独立文案:不预设原因,也绝不把用户推去升级一个从未参与比较的 DSH。两种结论都不放行更新,host 更新路由在两种情况下都会在启动任何 CLI 任务前返回 412。
27
27
  - npm 运行时保护下次启动:安装后网关校验依赖真实落盘、拒绝重复入口 id 认领与引用不可解析包的 insert 行,并用 CLI 的 `--dump-config` 做组合预检;冲突或失败的安装会经官方 remove 路径自动回滚,绝不触碰现有插件。
28
+ - 在官方「插件」页列表最下方挂载「内置插件」分组,因官方页面未提供列表底部扩展槽位,该分组与检查更新工具条一样作为独立 React root 容器插入官方 DOM,在页面重绘或切换面板时自动复位或摘除。分组默认只列「没有任何已安装 bundle 的补丁所插入」的 Loader 行(本部署是 8 行),采用减法口径使 profile 补丁 insert 块中的行(例如 Computer Use 的 `computer-use` 与 `computer-use-cua-driver-native`)得以正常呈现;分组标题旁的控件可以展开,展开后在同一列表里追加其余全部 Loader 行(本部署是 230 行),每条已归属行会显示「来自 <bundle 包名>」,说明它同时出现在那个组合包的详情页里。展开/收起只切换已读取到的两个集合,不重新读取、不写入、不改任何行的启停状态;两种范围下开关行为一致:每行提供启停开关,调用官方 `pluginManager` 远端的 `setPluginEnabled` 写入 profile 补丁层并热应用(带 HMR 的 profile 无需重启);官方 manager 判定为只读的行(`management-required` / `unaddressable`)显示为禁用开关并标明锁类型,本包不自建白名单;切换被接受后界面重读 Loader 确认状态,失败则按官方 `error.code` 呈现提示。
29
+ - 在内置插件分组下方提供只读的「Agent 预设」区块,列出每个预设的组合行与状态(启用、停用、条件启用及表达式);由于预设行由组合决定,此处不提供启停开关。
28
30
 
29
31
  ## 安装
30
32
 
@@ -76,6 +78,8 @@ dsh plugin --profile web add link:$(pwd)/packages/dsh-plugin-manager
76
78
  - npm 运行时的启动预检(`--dump-config`)能抓组合失败,静态 insert 检查能抓引用不存在包的 insert 行;真正的运行时 import/apply 失败仍要到下次启动才暴露。
77
79
  - 重复挂载保护(网关模式):官方 CLI 的 bundle 对账会在任何安装/卸载后把所有声明 `dsh.bundle` 的依赖重新加进 `dsh.profile.bundles`——包括组合树里已由 patch 行挂载的包(bundle 以 patch 行挂载外部插件时),下次启动会重复挂载而失败(`duplicate prefix route`)。每次 CLI 变更成功后,网关只把「本次新增且已被 patch 行挂载」的 bundles 条目剥除(清单写入走备份 + tmp + 原子 rename),并在任务结果上为每个被剥除的条目发一条 notice;正常安装的 bundles 条目与用户此前已有的条目一律不动。
78
80
  - wire 形状镜像官方安装器协议;漂移时宽容解析器降级为错误行,不误操作。
81
+ - 设置界面「内置插件」分区下线:本包 `cordis.patch.yml` 包含一条顶层裸行 `- id: ui-settings-plugins` 并置 `disabled: true`,聚合层在 `@deepseek-ai/dsh-web-app` 之后应用因此覆盖生效,下线原设置分区;相关管理能力集中移至官方「插件」页的「内置插件」分组,禁用本包即可恢复原设置分区。
82
+ - 官方插件页提示文案残留:官方「插件」页说明文案仍写有「内置插件列表及运行状态可在『设置 → 内置插件』中查看」,但该设置入口已被本包下线;该提示属于官方 bundle 的既有文案,本仓库无法修改。
79
83
 
80
84
  ## 安全模型
81
85
 
package/cordis.patch.yml CHANGED
@@ -18,3 +18,12 @@
18
18
  - insert:
19
19
  - id: ui-plugin-manager-update-check
20
20
  name: '@linxin666/dsh-client-ui-plugin-manager'
21
+
22
+ # The official @deepseek-ai/dsh-client-ui-settings-plugins section listed the
23
+ # built-in rows in Settings; they now render at the bottom of the official Plugins
24
+ # page, beside the manager that toggles them, so that settings-only view is retired.
25
+ # A top-level bare row patches an already-mounted row by id — it spends none of the
26
+ # loader's id namespace, and the aggregate carries it into the profile patch
27
+ # verbatim, applying this layer after @deepseek-ai/dsh-web-app.
28
+ - id: ui-settings-plugins
29
+ disabled: true