@linxin666/dsh-client-ui-plugin-manager 0.4.3 → 0.4.4

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: 3499fa3ccdcdc98c4f8e21dbca5b7811e1fb3cc9
6
- README.zh.md: 26af3100d0bf75f6de4759a21e0ddcf562443fd7
5
+ README.md: 0993b379775c06c6fd6a2c26d0c454f1c3a22d50
6
+ README.zh.md: f3e5ada8df6a2641133bad312206015aa75b1cc3
package/README.md CHANGED
@@ -7,7 +7,7 @@ Update checking for the dsh web GUI's Plugins panel: it contributes the one surf
7
7
  ## What it does
8
8
 
9
9
  - Contributes a check-for-updates block into the official Plugins page (the `plugins.detail.section` seat that page declares), rendered on an installed bundle's page and nowhere else. There is no tab of its own in the Plugins settings section.
10
- - Dual-channel transport: on runtimes with the official installer services (DSHCode and the 1.0.4 checkout web), every operation rides the official `/plugin-installer` and `/plugin-control` loopback RPC channels; on the npm-published web runtime those channels do not exist, so the package's host half mounts a loopback-fenced HTTP gateway that spawns the official `dsh plugin` CLI for installs/removals (the single writer) and writes `disabled` override rows for enablement. An application-owned profile (a packaged Desktop launch) takes the third writer for updates: the official in-process plugin manager the host mounts, because the CLI refuses to write that profile at all.
10
+ - Dual-channel transport: on runtimes with the official installer services (DSHCode and the 1.0.4 checkout web), every operation rides the official `/plugin-installer` and `/plugin-control` loopback RPC channels; on the npm-published web runtime those channels do not exist, so the package's host half mounts a loopback-fenced HTTP gateway that spawns the official `dsh plugin` CLI for installs/removals (the single writer) and writes `disabled` override rows for enablement. An application-owned profile (a packaged Desktop launch) takes the third writer for installs, updates and removals: the official in-process plugin manager the host mounts, because the CLI refuses to write that profile at all.
11
11
  - 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.
12
12
  - 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), show the requirement beside the update action, disable it when the running DSH is below it, and the host update route returns 412 before starting any CLI job when the runtime cannot be verified.
13
13
  - 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.
@@ -53,8 +53,8 @@ The contract source of truth is `src/core/service.ts` (`PluginManagerService`).
53
53
  ## Known limitations
54
54
 
55
55
  - Loopback-only: on a LAN or remote browser the update block renders a local-only notice (the same boundary the official installer page enforces; the gateway refuses non-loopback requests with 403).
56
- - On the npm-published web runtime, gateway writes go through the official CLI. The gateway resolves `dsh` from the host process PATH first, then from `node_modules/.bin` project roots above the running host entry, and finally from the running host package's own `lib/bin.js` — which covers local-wrapper and npx launches and the packaged desktop runtime, where the CLI ships beside the host process and every `.bin` shim directory is stripped from the installer. A Node-script CLI (an npm or homebrew shim, a `.bin` symlink, a `lib/bin.js`) runs under an interpreter resolved without PATH: the `node` installed beside the CLI when the installation ships one, otherwise the host's own interpreter. The CLI's own directory goes first on the child PATH, so the `dsh plugin` run finds the pnpm installed beside it. If no source contains the CLI, writes remain unavailable. CLI output is decoded as bytes in one pass, so a Windows console's code page (CP936/GBK) renders as readable text instead of replacement characters. Installs of git sources can take minutes and run as background jobs. Gateway updates apply only to npm registry sources, resolve the latest version on the host, and succeed only after the same installed package reports that exact version.
57
- - An application-owned profile (the packaged Desktop client) runs updates through the official in-process plugin manager the host mounts, the same writer that profile's official Plugins page drives: the CLI refuses `--profile desktop` outright, and the launcher hands that manager its bundled package-manager invocation. The job, its status polling and its verification are identical to the CLI path — the dependency must still be in the profile and must report the version the route resolved. Every other runtime keeps the CLI as the single writer of installs, updates and removals.
56
+ - On the npm-published web runtime, gateway writes go through the official CLI. The gateway resolves `dsh` from the host process PATH first, then from `node_modules/.bin` project roots above the running host entry, and finally from the running host package's own `lib/bin.js` — which covers local-wrapper and npx launches and the packaged desktop runtime, where the CLI ships beside the host process and every `.bin` shim directory is stripped from the installer. A Node-script CLI (an npm or homebrew shim, a `.bin` symlink, a `lib/bin.js`) runs under an interpreter resolved without PATH: the `node` installed beside the CLI when the installation ships one, otherwise the host's own interpreter. The CLI's own directory goes first on the child PATH, so the `dsh plugin` run finds the pnpm installed beside it. If no source contains the CLI, CLI-backed writes remain unavailable — an application-owned profile writes through the official in-process manager and needs no binary, so its install, update and removal routes never demand one. CLI output is decoded as bytes in one pass, so a Windows console's code page (CP936/GBK) renders as readable text instead of replacement characters. Installs of git sources can take minutes and run as background jobs. Gateway updates apply only to npm registry sources, resolve the latest version on the host, and succeed only after the same installed package reports that exact version.
57
+ - An application-owned profile (the packaged Desktop client) runs installs, updates and removals through the official in-process plugin manager the host mounts, the same writer that profile's official Plugins page drives: the CLI refuses `--profile desktop` outright, and the launcher hands that manager its bundled package-manager invocation. The job, its status polling and its verification are identical to the CLI path — an install must add a dependency the profile did not carry, a removal must drop one, and an update must still report the version the route resolved — while the CLI-specific guards (duplicate-mount stripping, insert-row and boot preflight) stay with the CLI writer, because there the official manager validates and applies the bundle itself. The manager's own verdict is read before the profile is: it resolves a refused run with `application: 'failed'` instead of rejecting, so the job reports that run's real reason (the pnpm diagnostic, or the packages an incompatible-version refusal names) rather than a no-op after an unchanged profile. Every other runtime keeps the CLI as the single writer of installs, updates and removals.
58
58
  - Compatibility gating applies only when the target manifest declares a minimum DSH version; packages without `dsh.engines.dsh` update unchecked, and official-installer runtimes (DSHCode and the checkout web) are not gated here because their updates go through the official installer.
59
59
  - Enablement on the npm runtime reports the effective next-start value: a profile override row wins where present, otherwise the installed bundle's own `disabled` rows decide (the aggregate's inactive-by-default families), and rows no layer mentions are enabled. Enabling a row the bundle disables writes an explicit `disabled: false` override, because deleting the user row would only restore the bundle default; the runtime's loader honors these rows at the next start, but this path is less exercised than the official desktop writer's.
60
60
  - The web build has no in-place restart: changes apply at the next manual restart.
@@ -67,7 +67,7 @@ The contract source of truth is `src/core/service.ts` (`PluginManagerService`).
67
67
 
68
68
  - Trust boundary is the loopback fence: every gateway route requires a loopback socket address, a loopback Host header, and a non-cross-site origin (socket + Host + Origin + `sec-fetch-site`), the same authority the official installer channels enforce. There is no browser-reachable path from a remote origin; rejected requests receive HTTP 403 with `{ ok: false, error: "forbidden: loopback-only" }`.
69
69
  - Mutation routes (install / update / remove / set-enabled) carry no token: the loopback authority *is* the local user, matching the official channels. Any local process can therefore drive plugin installs and removals, and npm installs run package install scripts — treat the gateway as local code execution by design and never expose it beyond loopback.
70
- - Install specs and package ids are rejected when they contain command-shell expansion characters or control characters. On Windows, npm shims are resolved to `node.exe` plus the package `bin.js`; packaged Desktop shims have no adjacent npm layout, so they run through `cmd.exe /d /s /c` with a pre-quoted, verbatim argument envelope. Desktop profile discovery reads the packaged launcher's profile environment value or persisted profile selection, and application-owned profile updates run in the host half through the mounted official `pluginManager` service — the same writer that profile's official Plugins page drives through its own RPC face — under the same loopback fence and user click.
70
+ - Install specs and package ids are rejected when they contain command-shell expansion characters or control characters. On Windows, npm shims are resolved to `node.exe` plus the package `bin.js`; packaged Desktop shims have no adjacent npm layout, so they run through `cmd.exe /d /s /c` with a pre-quoted, verbatim argument envelope. Desktop profile discovery reads the packaged launcher's profile environment value or persisted profile selection, and application-owned profile installs, updates and removals run in the host half through the mounted official `pluginManager` service — the same writer that profile's official Plugins page drives through its own RPC face — under the same loopback fence and user click.
71
71
  - Mutations are serialized through one queue, so concurrent jobs never interleave their before/after profile captures. An install is only `done` when the new dependency actually landed in the profile (and a removal only when it is gone); a success exit code alone is never trusted.
72
72
  - Enablement re-reads the current profile manifest under that mutation queue and rejects stale or unknown package ids with `404` before writing, so a panel row left behind by an uninstall cannot create an orphan `disabled` override.
73
73
  - Conflict handling is owner-aware: a duplicate entry id or an insert row naming an unresolvable package rolls the *new* package back through the official remove path. The gateway never writes `disabled` rows for a shared id (such rows cannot stop the loader's duplicate check and would flag the existing owner).
package/README.zh.md CHANGED
@@ -7,7 +7,7 @@
7
7
  ## 功能
8
8
 
9
9
  - 向官方插件页注入「检查更新」区块(该页声明的 `plugins.detail.section` 席位),只渲染在已安装组合包的页面上;「插件」设置分区不再有本包自己的 Tab。
10
- - 双通道传输:带官方安装器服务的运行时(DSHCode 与 1.0.4 checkout 版 web)走官方 `/plugin-installer`、`/plugin-control` loopback RPC 通道;npm 发布的官方 web 没有这些通道,本包的 host 半区挂载 loopback 门禁的 HTTP 网关——安装/卸载 spawn 官方 `dsh plugin` CLI(唯一写入器),启停写入 `disabled` 覆盖行。应用自有 profile(打包桌面启动)的更新走第三种写入器:宿主挂载的官方进程内插件管理器,因为 CLI 完全拒绝写该 profile。
10
+ - 双通道传输:带官方安装器服务的运行时(DSHCode 与 1.0.4 checkout 版 web)走官方 `/plugin-installer`、`/plugin-control` loopback RPC 通道;npm 发布的官方 web 没有这些通道,本包的 host 半区挂载 loopback 门禁的 HTTP 网关——安装/卸载 spawn 官方 `dsh plugin` CLI(唯一写入器),启停写入 `disabled` 覆盖行。应用自有 profile(打包桌面启动)的安装、更新与卸载走第三种写入器:宿主挂载的官方进程内插件管理器,因为 CLI 完全拒绝写该 profile。
11
11
  - 检测旧聚合包 `@linxin666/dsh-web-ui-all`,把更新动作转换为到 `@linxin666/dsh-web-all` 的事务迁移;网关先移除旧包、安装精确版本的新包、恢复旧聚合包的层顺序,并在 `--dump-config` 通过后才报告成功。
12
12
  - 更新前校验 DSH 运行时兼容(issue #754):更新检查读取最新版本清单声明的 DSH 最低版本(`dsh.engines.dsh`,兼容回退读顶层 `engines.dsh`),在更新动作旁显示要求,运行 DSH 低于要求时禁用它;host 更新路由在启动任何 CLI 任务前若无法核实时也会返回 412 并拒绝。
13
13
  - npm 运行时保护下次启动:安装后网关校验依赖真实落盘、拒绝重复入口 id 认领与引用不可解析包的 insert 行,并用 CLI 的 `--dump-config` 做组合预检;冲突或失败的安装会经官方 remove 路径自动回滚,绝不触碰现有插件。
@@ -53,8 +53,8 @@ dsh plugin --profile web add link:$(pwd)/packages/dsh-plugin-manager
53
53
  ## 已知限制
54
54
 
55
55
  - 仅限本机:LAN 或远程浏览器只显示「仅限本机操作」提示(与官方安装器页同一边界;网关对非 loopback 请求返回 403)。
56
- - npm 发布的官方 web 上,网关写入经官方 CLI 执行。网关先从 host 进程 PATH 解析 `dsh`,再从运行中 host 入口上层各项目根的 `node_modules/.bin` 回退查找,最后回退到运行中 host 包自身的 `lib/bin.js`——覆盖本地包装器与 npx 启动,以及桌面安装包运行时(CLI 与 host 进程同处一树,且安装包会剥除所有 `.bin` shim 目录);Node 脚本形式的 CLI(npm/homebrew shim、`.bin` 符号链接、`lib/bin.js`)由不依赖 PATH 的解释器执行——安装包里 CLI 旁有 `node` 时用它,否则用 host 自身的解释器;CLI 所在目录放在子进程 PATH 首位,使 `dsh plugin` 运行能找到同处安装的 pnpm。全部来源都没有 CLI 时才不可写。CLI 输出按字节一次性解码,Windows 中文控制台(CP936/GBK)的报错文本可读而不再是替换字符。git 源安装可能耗时数分钟,以后台任务运行。网关更新只适用于 npm registry 源,由 host 解析最新版本,且仅当同一已装包报告该精确版本时才算成功。
57
- - 应用自有 profile(打包桌面客户端)的更新走宿主挂载的官方进程内插件管理器——即该 profile 官方插件页所用的同一个写入器:CLI 直接拒绝 `--profile desktop`,启动器则把自带的包管理器调用交给该管理器。任务、状态轮询与校验与 CLI 路径一致:依赖必须仍在 profile 中,且必须报告路由解析出的版本。其余运行时的安装、更新与卸载仍以 CLI 为唯一写入器。
56
+ - npm 发布的官方 web 上,网关写入经官方 CLI 执行。网关先从 host 进程 PATH 解析 `dsh`,再从运行中 host 入口上层各项目根的 `node_modules/.bin` 回退查找,最后回退到运行中 host 包自身的 `lib/bin.js`——覆盖本地包装器与 npx 启动,以及桌面安装包运行时(CLI 与 host 进程同处一树,且安装包会剥除所有 `.bin` shim 目录);Node 脚本形式的 CLI(npm/homebrew shim、`.bin` 符号链接、`lib/bin.js`)由不依赖 PATH 的解释器执行——安装包里 CLI 旁有 `node` 时用它,否则用 host 自身的解释器;CLI 所在目录放在子进程 PATH 首位,使 `dsh plugin` 运行能找到同处安装的 pnpm。全部来源都没有 CLI 时,走 CLI 的写入才不可用——应用自有 profile 由官方进程内管理器写入,不需要任何二进制,其安装、更新与卸载路由也不要求它。CLI 输出按字节一次性解码,Windows 中文控制台(CP936/GBK)的报错文本可读而不再是替换字符。git 源安装可能耗时数分钟,以后台任务运行。网关更新只适用于 npm registry 源,由 host 解析最新版本,且仅当同一已装包报告该精确版本时才算成功。
57
+ - 应用自有 profile(打包桌面客户端)的安装、更新与卸载走宿主挂载的官方进程内插件管理器——即该 profile 官方插件页所用的同一个写入器:CLI 直接拒绝 `--profile desktop`,启动器则把自带的包管理器调用交给该管理器。任务、状态轮询与校验与 CLI 路径一致:安装必须新增一条此前没有的依赖、卸载必须删除一条依赖、更新必须报告路由解析出的版本;而 CLI 专属的守卫(重复挂载剥离、insert 行与启动预检)仍留在 CLI 写入器一侧,因为该路径下官方管理器会自行校验并应用 bundle。管理器返回的判定会先于 profile 被读取:被拒绝的运行以 `application: 'failed'` 解析而不是抛错,因此任务上报该运行的真实原因(pnpm 诊断文本,或 `incompatible-version` 拒绝点名的包),而不是在 profile 未变之后给出一句空转文案。其余运行时的安装、更新与卸载仍以 CLI 为唯一写入器。
58
58
  - 兼容性门禁只在目标清单声明了最低 DSH 版本时生效;未声明 `dsh.engines.dsh` 的包更新不被检查,官方安装器运行时(DSHCode 与 checkout 版 web)不经过本门禁(其更新走官方安装器)。
59
59
  - npm 运行时上的启停显示下次启动的真实生效值:profile 覆盖行优先,其次由所装 bundle 自带的 `disabled` 行决定(聚合包的按需开启家族),两层都未提及的行视为启用。开启一个被 bundle 停用的行会写入显式 `disabled: false` 覆盖行——只删除用户行只会退回 bundle 默认值;该运行时 loader 在下次启动时认读这些行,但这条路径不如官方桌面写入器经过充分锻炼。
60
60
  - web 端无壳内重启:变更在下次手动重启后生效。
@@ -67,7 +67,7 @@ dsh plugin --profile web add link:$(pwd)/packages/dsh-plugin-manager
67
67
 
68
68
  - 信任边界是 loopback 门禁:每条网关路由都要求 loopback socket 地址、loopback Host 头与非跨站来源(socket + Host + Origin + `sec-fetch-site` 四重),与官方安装器通道同一权威。远程来源的浏览器没有可达路径;被拒请求返回 HTTP 403 与 `{ ok: false, error: "forbidden: loopback-only" }`。
69
69
  - 变更类路由(install / update / remove / set-enabled)不带 token:loopback 权威即本机用户,与官方通道同模型。因此任何本机进程都能驱动插件安装与卸载,且 npm 安装会执行包的 install 脚本——请将本网关视为「设计上即本机代码执行」,绝不暴露到 loopback 之外。
70
- - 安装 spec 与包 id 含命令行展开字符或控制字符时一律拒绝。Windows 下,npm shim 会解析为 `node.exe` 加包内 `bin.js`;DSH Desktop 打包 shim 附近没有 npm 布局,因此通过带完整预引用、逐字参数封套的 `cmd.exe /d /s /c` 执行。桌面 profile 从打包启动器环境值或持久化的 profile 选择中读取;应用自有 profile 的更新由 host 半区直接调用宿主挂载的官方 `pluginManager` 服务(与官方插件页经自身 RPC 面驱动的是同一个写入器),其权威同样是 loopback 门禁加用户点击。
70
+ - 安装 spec 与包 id 含命令行展开字符或控制字符时一律拒绝。Windows 下,npm shim 会解析为 `node.exe` 加包内 `bin.js`;DSH Desktop 打包 shim 附近没有 npm 布局,因此通过带完整预引用、逐字参数封套的 `cmd.exe /d /s /c` 执行。桌面 profile 从打包启动器环境值或持久化的 profile 选择中读取;应用自有 profile 的安装、更新与卸载由 host 半区直接调用宿主挂载的官方 `pluginManager` 服务(与官方插件页经自身 RPC 面驱动的是同一个写入器),其权威同样是 loopback 门禁加用户点击。
71
71
  - 变更经同一队列串行,并发任务的 before/after profile 快照绝不交错。安装只有在依赖真实落入 profile 后才判 done(卸载以依赖消失为准),绝不轻信成功退出码。
72
72
  - 启停操作会在该变更队列内重新读取最新 profile 清单,并在写入前以 `404` 拒绝过期或未知的包 id,因此卸载后遗留在面板里的旧行不会制造孤儿 `disabled` 覆盖。
73
73
  - 冲突处置是 owner-aware 的:重复入口 id 或引用不可解析包的 insert 行会经官方 remove 路径回滚**新**包;网关绝不对共享 id 写 `disabled` 行(那既阻止不了 loader 的重复检查,又会误伤现有插件)。
package/lib/client.js CHANGED
@@ -437,7 +437,7 @@ window.__ModuleLoader__.load({
437
437
  /** The building package's version, when the bundle carries it. */
438
438
  function bakedVersion() {
439
439
  try {
440
- return "0.4.3";
440
+ return "0.4.4";
441
441
  } catch {
442
442
  return;
443
443
  }
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { spawn } from "node:child_process";
2
2
  import { closeSync, existsSync, openSync, readFileSync, readSync } from "node:fs";
3
3
  import { copyFile, readFile, rename, writeFile } from "node:fs/promises";
4
- import { basename, dirname, isAbsolute, join, posix, sep, win32 } from "node:path";
4
+ import { basename, dirname, isAbsolute, join, normalize, posix, sep, win32 } from "node:path";
5
5
  import { isMap, isScalar, isSeq, parseDocument } from "yaml";
6
6
  import { homedir } from "node:os";
7
7
  import { isAbsolute as isAbsolute$1, join as join$1 } from "node:path/posix";
@@ -676,16 +676,18 @@ function launchedFacts(launched, desktopLauncher, env) {
676
676
  if (name !== "") assertSafeProfileName(name);
677
677
  const profileRoot = join(resolveDshHome(env), "profiles");
678
678
  const profileDir = dir !== "" ? dir : join(profileRoot, name);
679
- if (!isAbsolute(profileDir) || profileDir.split(sep).includes("..")) throw new Error(`plugin-manager: published profile directory is not a safe absolute path ${JSON.stringify(launched.dir ?? "")}`);
680
- if (name !== "" && name !== basename(profileDir)) throw new Error(`plugin-manager: published profile name and directory disagree ${JSON.stringify(name)} vs ${JSON.stringify(profileDir)}`);
681
- const ownPatchPath = join(profileDir, "cordis.patch.yml");
679
+ if (!isAbsolute(profileDir) || profileDir.split(/[\/\\]/).includes("..")) throw new Error(`plugin-manager: published profile directory is not a safe absolute path ${JSON.stringify(launched.dir ?? "")}`);
680
+ const dirBase = profileDir.split(/[\/\\]/).filter(Boolean).pop() ?? basename(profileDir);
681
+ if (name !== "" && name !== dirBase) throw new Error(`plugin-manager: published profile name and directory disagree ${JSON.stringify(name)} vs ${JSON.stringify(profileDir)}`);
682
+ const isPosixLiteral = profileDir.includes("/") && !profileDir.includes("\\");
683
+ const ownPatchPath = isPosixLiteral ? `${profileDir}/cordis.patch.yml` : join(profileDir, "cordis.patch.yml");
682
684
  const publishedPatchPath = typeof launched.patchPath === "string" ? launched.patchPath.trim() : "";
683
- if (publishedPatchPath !== "" && publishedPatchPath !== ownPatchPath) throw new Error(`plugin-manager: published patch path is not the launched profile's own patch file ${JSON.stringify(launched.patchPath)}`);
685
+ if (publishedPatchPath !== "" && publishedPatchPath !== ownPatchPath && normalize(publishedPatchPath) !== normalize(ownPatchPath)) throw new Error(`plugin-manager: published patch path is not the launched profile's own patch file ${JSON.stringify(launched.patchPath)}`);
684
686
  return {
685
- profileName: name !== "" ? name : basename(profileDir),
687
+ profileName: name !== "" ? name : dirBase,
686
688
  profileDir,
687
689
  patchPath: ownPatchPath,
688
- packageJsonPath: join(profileDir, "package.json"),
690
+ packageJsonPath: isPosixLiteral ? `${profileDir}/package.json` : join(profileDir, "package.json"),
689
691
  desktop: desktopLauncher
690
692
  };
691
693
  }
@@ -1041,6 +1043,11 @@ function createOutputCapture(maxBytes) {
1041
1043
  * CLI changed (the conflict ledger). The npm web runtime has no installer
1042
1044
  * service, so this gateway is its write path; on runtimes with official
1043
1045
  * channels the browser half never calls it.
1046
+ *
1047
+ * One exception: an application-owned profile (a packaged Desktop launch)
1048
+ * cannot be written by the CLI at all — the official launcher refuses it — so
1049
+ * installs, updates and removals there run through the official in-process
1050
+ * plugin manager instead (see {@link NativePluginManager}).
1044
1051
  * @module @linxin666/dsh-client-ui-plugin-manager/host
1045
1052
  */
1046
1053
  /** Hard deadline for one CLI add (git clones can take minutes). */
@@ -1298,6 +1305,27 @@ async function detectOfficialChannels(binary, profileName, env = process.env, sp
1298
1305
  }) !== 0) return false;
1299
1306
  return OFFICIAL_INSTALLER_PATTERN.test(output.read());
1300
1307
  }
1308
+ /**
1309
+ * The official manager's own failure text for one run, or undefined when its
1310
+ * verdict is not a failure. The manager resolves a failed run instead of
1311
+ * rejecting it, so this is the only place its refusal can be read — the profile
1312
+ * re-read afterwards can only say that nothing moved, never why.
1313
+ * @param outcome - the resolved value of `installBundle` / `removeBundle`.
1314
+ * @returns the failure text to report, or undefined for a run that did not fail.
1315
+ */
1316
+ function nativeManagerFailure(outcome) {
1317
+ if (typeof outcome !== "object" || outcome === null) return void 0;
1318
+ const verdict = outcome;
1319
+ if (verdict.application === "cancelled") return "本次操作已取消(profile 未改动)";
1320
+ if (verdict.application !== "failed") return void 0;
1321
+ const failure = verdict.error;
1322
+ const diagnostic = typeof failure?.diagnostic === "string" ? failure.diagnostic.trim() : "";
1323
+ if (diagnostic !== "") return diagnostic;
1324
+ const incompatible = failure?.incompatible;
1325
+ if (Array.isArray(incompatible) && incompatible.length > 0) return incompatible.map((item) => `${item.name ?? "未知包"}@${item.version ?? "未知版本"} 与 dsh ${item.runtimeVersion ?? "当前版本"} 不兼容`).join(";");
1326
+ const code = failure?.code;
1327
+ return typeof code === "string" && code !== "" ? `官方插件管理器拒绝执行(${code})` : "官方插件管理器报告失败";
1328
+ }
1301
1329
  /** The gateway: serializes CLI operations through one job table and one mutation queue. */
1302
1330
  var CliGateway = class {
1303
1331
  facts;
@@ -1360,6 +1388,16 @@ var CliGateway = class {
1360
1388
  if (this.facts.desktop !== true) return void 0;
1361
1389
  return this.deps.nativeManager?.();
1362
1390
  }
1391
+ /**
1392
+ * Whether this gateway will write through the official in-process manager
1393
+ * instead of the CLI (an application-owned profile, see
1394
+ * {@link nativeManager}). The HTTP layer reads it so its CLI-availability
1395
+ * guard never rejects a job the CLI is not going to run.
1396
+ * @returns true when the native writer serves installs, updates and removals.
1397
+ */
1398
+ usesNativeWriter() {
1399
+ return this.nativeManager() !== void 0;
1400
+ }
1363
1401
  /** Run one CLI command to completion and return the bounded output. */
1364
1402
  async runCli(binary, args, timeoutMs) {
1365
1403
  const output = createOutputCapture(MAX_OUTPUT_BYTES);
@@ -1537,7 +1575,12 @@ var CliGateway = class {
1537
1575
  spawnCli(binary, args) {
1538
1576
  return (this.deps.spawnImpl ?? spawnDsh)(binary, args, this.env);
1539
1577
  }
1540
- /** Start an install; the caller polls {@link status}. */
1578
+ /**
1579
+ * Start an install; the caller polls {@link status}. An application-owned
1580
+ * profile runs it through the official in-process manager instead of the CLI
1581
+ * (see {@link nativeManager}), exactly like {@link update}; the job table,
1582
+ * polling contract and profile verification are identical either way.
1583
+ */
1541
1584
  install(spec) {
1542
1585
  const job = {
1543
1586
  id: `job-${++this.counter}`,
@@ -1553,6 +1596,11 @@ var CliGateway = class {
1553
1596
  this.retainFinished(job.id);
1554
1597
  return { jobId: job.id };
1555
1598
  }
1599
+ const native = this.nativeManager();
1600
+ if (native !== void 0) {
1601
+ this.enqueueNativeInstall(job, native);
1602
+ return { jobId: job.id };
1603
+ }
1556
1604
  this.enqueue(() => this.run(job, [
1557
1605
  "plugin",
1558
1606
  "--profile",
@@ -1600,6 +1648,62 @@ var CliGateway = class {
1600
1648
  ], ADD_TIMEOUT_MS));
1601
1649
  return { jobId: job.id };
1602
1650
  }
1651
+ /** Start an install through the official in-process manager. */
1652
+ enqueueNativeInstall(job, native) {
1653
+ this.enqueue(async () => {
1654
+ try {
1655
+ await this.runNativeInstall(job, native);
1656
+ } catch (error) {
1657
+ job.phase = "error";
1658
+ job.error = `plugin-manager: 官方插件管理器安装失败:${error instanceof Error ? error.message : String(error)}`;
1659
+ }
1660
+ this.retainFinished(job.id);
1661
+ });
1662
+ }
1663
+ /**
1664
+ * Run one install through the official in-process manager (an
1665
+ * application-owned profile, where the CLI refuses to write). The manager
1666
+ * resolves the registry, runs pnpm with the launcher's bundled toolchain and
1667
+ * applies the bundle, then this reads the profile the same way the CLI path
1668
+ * does: the install is only `done` once the profile carries a dependency it
1669
+ * did not carry before, so a green manager call that added nothing is still
1670
+ * reported as a failure. Its resolved verdict is read first
1671
+ * ({@link nativeManagerFailure}): the manager folds a refused run into that
1672
+ * value instead of rejecting, and only the verdict names the reason. The
1673
+ * CLI-specific guards are deliberately absent — the official manager
1674
+ * validates and applies the bundle itself, exactly as it does for the
1675
+ * official Plugins page.
1676
+ * @param job - the install job being settled.
1677
+ * @param native - the official manager.
1678
+ */
1679
+ async runNativeInstall(job, native) {
1680
+ const before = await this.capture();
1681
+ const refusal = nativeManagerFailure(await native.installBundle(job.spec, {
1682
+ enabled: true,
1683
+ requestId: job.id
1684
+ }));
1685
+ if (refusal !== void 0) {
1686
+ job.phase = "error";
1687
+ job.error = `plugin-manager: 官方插件管理器安装失败:${refusal}`;
1688
+ return;
1689
+ }
1690
+ const after = await this.capture();
1691
+ const name = this.newDependency(before, after);
1692
+ if (name === void 0) {
1693
+ job.phase = "error";
1694
+ job.error = "plugin-manager: 官方插件管理器报告成功,但 profile 未新增任何依赖(安装未生效)";
1695
+ return;
1696
+ }
1697
+ const manifest = await readProfileManifest(this.facts.packageJsonPath);
1698
+ job.plugin = await buildPluginRow(this.facts, name, manifest.dependencies[name] ?? job.spec, after.layer.rows);
1699
+ job.conflicts = significantChanges(diffLayer(before.layer, after.layer)).map((change) => ({
1700
+ id: change.id,
1701
+ name: change.id,
1702
+ from: change.from,
1703
+ to: change.to
1704
+ }));
1705
+ job.phase = "done";
1706
+ }
1603
1707
  /** Start an in-place update through the official in-process manager. */
1604
1708
  enqueueNativeUpdate(job, native) {
1605
1709
  this.enqueue(async () => {
@@ -1619,6 +1723,10 @@ var CliGateway = class {
1619
1723
  * this reads the profile the same way the CLI path does: the dependency must
1620
1724
  * still be there and the installed version must be the one the route resolved,
1621
1725
  * so a green manager call that changed nothing is still reported as a failure.
1726
+ * Its resolved verdict is read first ({@link nativeManagerFailure}): a refused
1727
+ * run (pnpm exited non-zero, an incompatible version, a cancellation) resolves
1728
+ * with `application: 'failed'`, and only that verdict carries the reason — the
1729
+ * profile re-read can only show that the version did not move.
1622
1730
  * @param job - the update job being settled.
1623
1731
  * @param native - the official manager.
1624
1732
  */
@@ -1631,10 +1739,15 @@ var CliGateway = class {
1631
1739
  return;
1632
1740
  }
1633
1741
  const before = await this.capture();
1634
- await native.installBundle(job.spec, {
1742
+ const refusal = nativeManagerFailure(await native.installBundle(job.spec, {
1635
1743
  enabled: true,
1636
1744
  requestId: job.id
1637
- });
1745
+ }));
1746
+ if (refusal !== void 0) {
1747
+ job.phase = "error";
1748
+ job.error = `plugin-manager: 官方插件管理器更新失败:${refusal}`;
1749
+ return;
1750
+ }
1638
1751
  const after = await this.capture();
1639
1752
  if (!after.dependencies.includes(targetId)) {
1640
1753
  job.phase = "error";
@@ -1690,7 +1803,11 @@ var CliGateway = class {
1690
1803
  });
1691
1804
  return { jobId: job.id };
1692
1805
  }
1693
- /** Start a removal; the caller polls {@link status}. */
1806
+ /**
1807
+ * Start a removal; the caller polls {@link status}. An application-owned
1808
+ * profile removes through the official in-process manager, the same writer
1809
+ * the install and update paths use there (the CLI refuses that profile).
1810
+ */
1694
1811
  remove(id) {
1695
1812
  const job = {
1696
1813
  id: `job-${++this.counter}`,
@@ -1706,6 +1823,11 @@ var CliGateway = class {
1706
1823
  this.retainFinished(job.id);
1707
1824
  return { jobId: job.id };
1708
1825
  }
1826
+ const native = this.nativeManager();
1827
+ if (native !== void 0) {
1828
+ this.enqueueNativeRemove(job, native);
1829
+ return { jobId: job.id };
1830
+ }
1709
1831
  this.enqueue(() => this.run(job, [
1710
1832
  "plugin",
1711
1833
  "--profile",
@@ -1715,6 +1837,51 @@ var CliGateway = class {
1715
1837
  ], REMOVE_TIMEOUT_MS));
1716
1838
  return { jobId: job.id };
1717
1839
  }
1840
+ /** Start a removal through the official in-process manager. */
1841
+ enqueueNativeRemove(job, native) {
1842
+ this.enqueue(async () => {
1843
+ try {
1844
+ await this.runNativeRemove(job, native);
1845
+ } catch (error) {
1846
+ job.phase = "error";
1847
+ job.error = `plugin-manager: 官方插件管理器卸载失败:${error instanceof Error ? error.message : String(error)}`;
1848
+ }
1849
+ this.retainFinished(job.id);
1850
+ });
1851
+ }
1852
+ /**
1853
+ * Run one removal through the official in-process manager (an
1854
+ * application-owned profile, where the CLI refuses to write). The removal is
1855
+ * only `done` once a dependency the profile carried before is gone, exactly
1856
+ * the verification the CLI path performs. Its resolved verdict is read first
1857
+ * ({@link nativeManagerFailure}): a refused removal resolves with
1858
+ * `application: 'failed'` rather than rejecting.
1859
+ * @param job - the removal job being settled.
1860
+ * @param native - the official manager.
1861
+ */
1862
+ async runNativeRemove(job, native) {
1863
+ const before = await this.capture();
1864
+ const refusal = nativeManagerFailure(await native.removeBundle(job.spec));
1865
+ if (refusal !== void 0) {
1866
+ job.phase = "error";
1867
+ job.error = `plugin-manager: 官方插件管理器卸载失败:${refusal}`;
1868
+ return;
1869
+ }
1870
+ const after = await this.capture();
1871
+ if (before.dependencies.find((candidate) => !after.dependencies.includes(candidate)) === void 0) {
1872
+ job.phase = "error";
1873
+ job.error = "plugin-manager: 官方插件管理器报告成功,但依赖仍在 profile 中(卸载未生效)";
1874
+ return;
1875
+ }
1876
+ job.plugin = await this.rowFor("remove", job.spec, before, after);
1877
+ job.conflicts = significantChanges(diffLayer(before.layer, after.layer)).map((change) => ({
1878
+ id: change.id,
1879
+ name: change.id,
1880
+ from: change.from,
1881
+ to: change.to
1882
+ }));
1883
+ job.phase = "done";
1884
+ }
1718
1885
  /**
1719
1886
  * Read one job's current state (a shallow copy). Finished jobs beyond the
1720
1887
  * ring cap are evicted and read as not-found, the same as an id that never
@@ -2480,7 +2647,7 @@ function makeGatewayRoutes(deps) {
2480
2647
  writeJson(res, 400, { error: unsafeSpec });
2481
2648
  return;
2482
2649
  }
2483
- if (!deps.cliAvailable()) {
2650
+ if (!deps.cliAvailable() && !gateway.usesNativeWriter()) {
2484
2651
  writeJson(res, 500, { error: "plugin-manager: dsh CLI not found on PATH" });
2485
2652
  return;
2486
2653
  }
@@ -2501,7 +2668,7 @@ function makeGatewayRoutes(deps) {
2501
2668
  writeJson(res, 400, { error: unsafe });
2502
2669
  return;
2503
2670
  }
2504
- if (!deps.cliAvailable()) {
2671
+ if (!deps.cliAvailable() && !gateway.usesNativeWriter()) {
2505
2672
  writeJson(res, 500, { error: "plugin-manager: dsh CLI not found on PATH" });
2506
2673
  return;
2507
2674
  }
@@ -2598,7 +2765,7 @@ function makeGatewayRoutes(deps) {
2598
2765
  writeJson(res, 400, { error: unsafeId });
2599
2766
  return;
2600
2767
  }
2601
- if (!deps.cliAvailable()) {
2768
+ if (!deps.cliAvailable() && !gateway.usesNativeWriter()) {
2602
2769
  writeJson(res, 500, { error: "plugin-manager: dsh CLI not found on PATH" });
2603
2770
  return;
2604
2771
  }
@@ -6,6 +6,11 @@
6
6
  * CLI changed (the conflict ledger). The npm web runtime has no installer
7
7
  * service, so this gateway is its write path; on runtimes with official
8
8
  * channels the browser half never calls it.
9
+ *
10
+ * One exception: an application-owned profile (a packaged Desktop launch)
11
+ * cannot be written by the CLI at all — the official launcher refuses it — so
12
+ * installs, updates and removals there run through the official in-process
13
+ * plugin manager instead (see {@link NativePluginManager}).
9
14
  * @module @linxin666/dsh-client-ui-plugin-manager/host
10
15
  */
11
16
  import type { InstalledPluginItem } from '../core/protocol.ts';
@@ -147,13 +152,59 @@ export interface NativePluginManager {
147
152
  * Install or update one package spec through the official manager.
148
153
  * @param spec - package spec (e.g. `@scope/pkg@1.2.3`).
149
154
  * @param options - activation choice and the request id the run is tracked under.
150
- * @returns the manager's own diagnostics (the caller re-reads the profile).
155
+ * @returns the manager's own verdict ({@link NativeManagerOutcome}); the caller
156
+ * re-reads the profile as well, but must read this first — a refusal resolves.
151
157
  */
152
158
  installBundle(spec: string, options?: {
153
159
  enabled?: boolean;
154
160
  requestId?: string;
155
161
  }): Promise<unknown>;
162
+ /**
163
+ * Remove one profile-owned bundle through the official manager.
164
+ * @param name - installed dependency (bundle) name.
165
+ * @returns the manager's own verdict ({@link NativeManagerOutcome}); the caller
166
+ * re-reads the profile as well, but must read this first — a refusal resolves.
167
+ */
168
+ removeBundle(name: string): Promise<unknown>;
156
169
  }
170
+ /**
171
+ * The verdict the official in-process manager returns for one mutation. Its
172
+ * internal `change()` wrapper never rejects a failed operation: it folds the
173
+ * failure into this resolved value (`application: 'failed'` plus `error`), so a
174
+ * resolved promise is not proof the profile moved. Reading only whether the
175
+ * call threw reported a refused pnpm run as "the manager succeeded but nothing
176
+ * changed" and hid the real reason (2026-09-29: `dsh-better-sidebar` update
177
+ * blocked by `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION`). Contract observation,
178
+ * shape mirrored from `@deepseek-ai/dsh-plugin-manager`.
179
+ */
180
+ export interface NativeManagerOutcome {
181
+ /** `applied` or `restart-required` on success, `cancelled`, or `failed`. */
182
+ application?: string;
183
+ /** Whether the profile files differ from before the run. */
184
+ changed?: boolean;
185
+ /** Present when `application` is `failed`. */
186
+ error?: {
187
+ /** The manager's own failure code (`operation-error`, `incompatible-version`, …). */
188
+ code?: string;
189
+ /** Raw failure text for `operation-error` (the pnpm output tail). */
190
+ diagnostic?: string;
191
+ /** Packages an `incompatible-version` refusal names. */
192
+ incompatible?: readonly {
193
+ name?: string;
194
+ version?: string;
195
+ runtimeVersion?: string;
196
+ }[];
197
+ };
198
+ }
199
+ /**
200
+ * The official manager's own failure text for one run, or undefined when its
201
+ * verdict is not a failure. The manager resolves a failed run instead of
202
+ * rejecting it, so this is the only place its refusal can be read — the profile
203
+ * re-read afterwards can only say that nothing moved, never why.
204
+ * @param outcome - the resolved value of `installBundle` / `removeBundle`.
205
+ * @returns the failure text to report, or undefined for a run that did not fail.
206
+ */
207
+ export declare function nativeManagerFailure(outcome: unknown): string | undefined;
157
208
  /** The gateway: serializes CLI operations through one job table and one mutation queue. */
158
209
  export declare class CliGateway {
159
210
  private readonly facts;
@@ -200,6 +251,14 @@ export declare class CliGateway {
200
251
  * @returns the manager, or undefined when the CLI should run.
201
252
  */
202
253
  private nativeManager;
254
+ /**
255
+ * Whether this gateway will write through the official in-process manager
256
+ * instead of the CLI (an application-owned profile, see
257
+ * {@link nativeManager}). The HTTP layer reads it so its CLI-availability
258
+ * guard never rejects a job the CLI is not going to run.
259
+ * @returns true when the native writer serves installs, updates and removals.
260
+ */
261
+ usesNativeWriter(): boolean;
203
262
  /** Run one CLI command to completion and return the bounded output. */
204
263
  private runCli;
205
264
  /** Full package spec used when restoring a legacy dependency. */
@@ -210,7 +269,12 @@ export declare class CliGateway {
210
269
  private rollbackMigration;
211
270
  /** Spawn the CLI, through the test seam when present. */
212
271
  private spawnCli;
213
- /** Start an install; the caller polls {@link status}. */
272
+ /**
273
+ * Start an install; the caller polls {@link status}. An application-owned
274
+ * profile runs it through the official in-process manager instead of the CLI
275
+ * (see {@link nativeManager}), exactly like {@link update}; the job table,
276
+ * polling contract and profile verification are identical either way.
277
+ */
214
278
  install(spec: string): {
215
279
  jobId: string;
216
280
  };
@@ -223,6 +287,25 @@ export declare class CliGateway {
223
287
  update(id: string, version: string): {
224
288
  jobId: string;
225
289
  };
290
+ /** Start an install through the official in-process manager. */
291
+ private enqueueNativeInstall;
292
+ /**
293
+ * Run one install through the official in-process manager (an
294
+ * application-owned profile, where the CLI refuses to write). The manager
295
+ * resolves the registry, runs pnpm with the launcher's bundled toolchain and
296
+ * applies the bundle, then this reads the profile the same way the CLI path
297
+ * does: the install is only `done` once the profile carries a dependency it
298
+ * did not carry before, so a green manager call that added nothing is still
299
+ * reported as a failure. Its resolved verdict is read first
300
+ * ({@link nativeManagerFailure}): the manager folds a refused run into that
301
+ * value instead of rejecting, and only the verdict names the reason. The
302
+ * CLI-specific guards are deliberately absent — the official manager
303
+ * validates and applies the bundle itself, exactly as it does for the
304
+ * official Plugins page.
305
+ * @param job - the install job being settled.
306
+ * @param native - the official manager.
307
+ */
308
+ private runNativeInstall;
226
309
  /** Start an in-place update through the official in-process manager. */
227
310
  private enqueueNativeUpdate;
228
311
  /**
@@ -232,6 +315,10 @@ export declare class CliGateway {
232
315
  * this reads the profile the same way the CLI path does: the dependency must
233
316
  * still be there and the installed version must be the one the route resolved,
234
317
  * so a green manager call that changed nothing is still reported as a failure.
318
+ * Its resolved verdict is read first ({@link nativeManagerFailure}): a refused
319
+ * run (pnpm exited non-zero, an incompatible version, a cancellation) resolves
320
+ * with `application: 'failed'`, and only that verdict carries the reason — the
321
+ * profile re-read can only show that the version did not move.
235
322
  * @param job - the update job being settled.
236
323
  * @param native - the official manager.
237
324
  */
@@ -240,10 +327,27 @@ export declare class CliGateway {
240
327
  migrate(sourceId: string, targetId: string, targetVersion: string, targetSpec: string): {
241
328
  jobId: string;
242
329
  };
243
- /** Start a removal; the caller polls {@link status}. */
330
+ /**
331
+ * Start a removal; the caller polls {@link status}. An application-owned
332
+ * profile removes through the official in-process manager, the same writer
333
+ * the install and update paths use there (the CLI refuses that profile).
334
+ */
244
335
  remove(id: string): {
245
336
  jobId: string;
246
337
  };
338
+ /** Start a removal through the official in-process manager. */
339
+ private enqueueNativeRemove;
340
+ /**
341
+ * Run one removal through the official in-process manager (an
342
+ * application-owned profile, where the CLI refuses to write). The removal is
343
+ * only `done` once a dependency the profile carried before is gone, exactly
344
+ * the verification the CLI path performs. Its resolved verdict is read first
345
+ * ({@link nativeManagerFailure}): a refused removal resolves with
346
+ * `application: 'failed'` rather than rejecting.
347
+ * @param job - the removal job being settled.
348
+ * @param native - the official manager.
349
+ */
350
+ private runNativeRemove;
247
351
  /**
248
352
  * Read one job's current state (a shallow copy). Finished jobs beyond the
249
353
  * ring cap are evicted and read as not-found, the same as an id that never
@@ -17,7 +17,11 @@ export declare const GATEWAY_PREFIX = "/api/plugin-manager";
17
17
  export interface GatewayRouteDeps {
18
18
  facts: ProfileFacts;
19
19
  gateway: CliGateway;
20
- /** Resolve the dsh binary presence (the CLI is the write path). */
20
+ /**
21
+ * Resolve the dsh binary presence. Only the CLI-backed writer needs it: an
22
+ * application-owned profile writes through the official in-process manager
23
+ * (`gateway.usesNativeWriter()`), so its routes must not demand a binary.
24
+ */
21
25
  cliAvailable: () => boolean;
22
26
  /** Registry fetch seam for update checks (test seam); the default reads the
23
27
  * `/<name>/latest` manifest including the `dsh` / `engines` metadata. */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@linxin666/dsh-client-ui-plugin-manager",
3
3
  "description": "Update checking for the dsh web GUI's official Plugins page: compares installed plugins against the version their registry source serves, gates the update on the DSH runtime minimum the release declares, and drives the update through the official installer channel or this package's loopback CLI gateway.",
4
- "version": "0.4.3",
4
+ "version": "0.4.4",
5
5
  "icon": "icon.svg",
6
6
  "type": "module",
7
7
  "main": "lib/index.js",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "dsh": {
22
22
  "engines": {
23
- "dsh": ">=0.1.7-rc.2"
23
+ "dsh": ">=0.2.0-rc.1"
24
24
  },
25
25
  "bundle": {
26
26
  "patch": "./cordis.patch.yml"
@@ -34,21 +34,21 @@
34
34
  }
35
35
  },
36
36
  "peerDependencies": {
37
- "@deepseek-ai/dsh": ">=0.1.7-rc.2",
37
+ "@deepseek-ai/dsh": ">=0.2.0-rc.1",
38
38
  "react": "^18.2.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@deepseek-ai/cordis": "^4.0.4",
42
- "@deepseek-ai/dsh-api-session-controller": "^0.1.7-rc.2",
43
- "@deepseek-ai/dsh-api-workspace-controller": "^0.1.7-rc.2",
44
- "@deepseek-ai/dsh-client-connection": "^0.1.7-rc.2",
45
- "@deepseek-ai/dsh-client-locale": "^0.1.7-rc.2",
46
- "@deepseek-ai/dsh-client-ui-primitives": "^0.1.7-rc.2",
47
- "@deepseek-ai/dsh-client-ui-renderer": "^0.1.7-rc.2",
48
- "@deepseek-ai/dsh-client-ui-settings": "^0.1.7-rc.2",
49
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.7-rc.2",
50
- "@deepseek-ai/dsh-client-ui-workspace": "^0.1.7-rc.2",
51
- "@deepseek-ai/dsh-host-webserver": "^0.1.7-rc.2",
42
+ "@deepseek-ai/dsh-api-session-controller": "^0.2.0-rc.1",
43
+ "@deepseek-ai/dsh-api-workspace-controller": "^0.2.0-rc.1",
44
+ "@deepseek-ai/dsh-client-connection": "^0.2.0-rc.1",
45
+ "@deepseek-ai/dsh-client-locale": "^0.2.0-rc.1",
46
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.2.0-rc.1",
47
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.2.0-rc.1",
48
+ "@deepseek-ai/dsh-client-ui-settings": "^0.2.0-rc.1",
49
+ "@deepseek-ai/dsh-client-ui-slots": "^0.2.0-rc.1",
50
+ "@deepseek-ai/dsh-client-ui-workspace": "^0.2.0-rc.1",
51
+ "@deepseek-ai/dsh-host-webserver": "^0.2.0-rc.1",
52
52
  "@testing-library/react": "^16.1.0",
53
53
  "@types/node": "^22.20.0",
54
54
  "@types/react": "~18.3.1",