@linxin666/dsh-client-ui-plugin-manager 0.4.21 → 0.4.22

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: 2ce866ba0567ceb470ae9aa1ec16f43e80b5b5a9
6
- README.zh.md: c885b32d9d9fe5bf6a1bd874266d9b13dc1f69f9
5
+ README.md: 7b47892df51e0b4a4fb905e5826e2139ceb09d9c
6
+ README.zh.md: 5e408c5bbda8e0cd4a21feb64df9a9015137499a
package/README.md CHANGED
@@ -5,7 +5,7 @@ English | [中文](README.zh.md)
5
5
  <p align="center">
6
6
  <img src="https://img.shields.io/npm/v/@linxin666/dsh-client-ui-plugin-manager?style=flat-square" alt="Version">
7
7
  &nbsp;
8
- <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.3-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
8
+ <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.3--alpha.2-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
9
9
  &nbsp;
10
10
  <img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
11
11
  </p>
@@ -19,8 +19,9 @@ An update and lifecycle manager for DeepSeek Harness (DSH) Web GUI and official
19
19
 
20
20
  ## What it does
21
21
 
22
- - 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.
22
+ - 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 settings section of its own.
23
23
  - Adds a list-level toolbar beside that page's **Installed** heading. The heading is the page's own chrome and the page declares no seat beside it (its extension points are `plugins.detail.*`, `plugins.item`, `plugins.bundle.config`, `plugins.row.config` and `plugins.bundle.activation`), so the toolbar is inserted into that element and kept in place through the family's shared body-mutation hub. One click checks every installed plugin; the panel lists the third-party rows that have a newer release, with the declared DSH minimum for any row this runtime is too old for; **Update all** applies the eligible rows in one host job, in order, with per-row progress — a row the host refuses is named in place with its own reason and the run carries on with the rows behind it; **Restart now** then makes the update effective (see the restart note under Known limitations). Official `@deepseek-ai/` packages are never updated in bulk — their version belongs to the DSH installation.
24
+ - **Exact-version update ignore**: each offered row in the list panel and each found update in the per-bundle block carries **Ignore this version**. The rule is stored in this browser as a plugin id plus the offered version, so it excludes only that offer from **Update all** and the single-package action; other plugins continue normally and a newer release appears again. Ignored rows remain listed in a separate section with **Restore update**. Unavailable or malformed local storage degrades to an empty or session-local rule rather than blocking update checks.
24
25
  - 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.
25
26
  - 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
27
  - 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.
@@ -78,8 +79,6 @@ The contract source of truth is `src/core/service.ts` (`PluginManagerService`).
78
79
  - 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.
79
80
  - 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.
80
81
  - 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.
83
82
 
84
83
  ## Security model
85
84
 
package/README.zh.md CHANGED
@@ -5,7 +5,7 @@
5
5
  <p align="center">
6
6
  <img src="https://img.shields.io/npm/v/@linxin666/dsh-client-ui-plugin-manager?style=flat-square" alt="Version">
7
7
  &nbsp;
8
- <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.3-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
8
+ <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.3--alpha.2-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
9
9
  &nbsp;
10
10
  <img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
11
11
  </p>
@@ -19,8 +19,9 @@
19
19
 
20
20
  ## 功能
21
21
 
22
- - 向官方插件页注入「检查更新」区块(该页声明的 `plugins.detail.section` 席位),只渲染在已安装组合包的页面上;「插件」设置分区不再有本包自己的 Tab。
22
+ - 向官方插件页注入「检查更新」区块(该页声明的 `plugins.detail.section` 席位),只渲染在已安装组合包的页面上;设置里不注册本包自己的分区。
23
23
  - 在该页 **已安装** 标题旁加一条列表级工具条。该标题是官方页面自己的 chrome,页面并未为它声明席位(扩展点是 `plugins.detail.*`、`plugins.item`、`plugins.bundle.config`、`plugins.row.config` 与 `plugins.bundle.activation`),因此工具条直接插入该元素,并靠家族共享的 body mutation hub 保持就位。一次点击检查全部已装插件;面板列出有新版本的第三方插件(当前运行时版本不够的行附上其声明的 DSH 最低版本);「全部更新」用一个 host 任务按顺序应用合格行并显示逐行进度——被拒的行就地写明原因,整批继续跑后面的行;随后「立即重启」使更新生效(见「已知限制」中的重启说明)。官方 `@deepseek-ai/` 包绝不参与批量更新——它们的版本属于 DSH 安装本身。
24
+ - **按版本忽略更新**:列表面板中的每个更新行与组合包详情页查到的更新都提供「忽略此版本」。规则以「插件 id + 提供的版本」保存在当前浏览器,只把这一条从「全部更新」与单包更新中排除;其他插件照常更新,出现更新版本后会重新显示。被忽略的行保留在独立区域,可点「恢复更新」撤销。本地存储不可用或内容损坏时降级为空规则或当前会话内规则,不阻断更新检查。
24
25
  - 双通道传输:带官方安装器服务的运行时(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。
25
26
  - 检测旧聚合包 `@linxin666/dsh-web-ui-all`,把更新动作转换为到 `@linxin666/dsh-web-all` 的事务迁移;网关先移除旧包、安装精确版本的新包、恢复旧聚合包的层顺序,并在 `--dump-config` 通过后才报告成功。
26
27
  - 更新前校验 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。
@@ -78,8 +79,6 @@ dsh plugin --profile web add link:$(pwd)/packages/dsh-plugin-manager
78
79
  - npm 运行时的启动预检(`--dump-config`)能抓组合失败,静态 insert 检查能抓引用不存在包的 insert 行;真正的运行时 import/apply 失败仍要到下次启动才暴露。
79
80
  - 重复挂载保护(网关模式):官方 CLI 的 bundle 对账会在任何安装/卸载后把所有声明 `dsh.bundle` 的依赖重新加进 `dsh.profile.bundles`——包括组合树里已由 patch 行挂载的包(bundle 以 patch 行挂载外部插件时),下次启动会重复挂载而失败(`duplicate prefix route`)。每次 CLI 变更成功后,网关只把「本次新增且已被 patch 行挂载」的 bundles 条目剥除(清单写入走备份 + tmp + 原子 rename),并在任务结果上为每个被剥除的条目发一条 notice;正常安装的 bundles 条目与用户此前已有的条目一律不动。
80
81
  - wire 形状镜像官方安装器协议;漂移时宽容解析器降级为错误行,不误操作。
81
- - 设置界面「内置插件」分区下线:本包 `cordis.patch.yml` 包含一条顶层裸行 `- id: ui-settings-plugins` 并置 `disabled: true`,聚合层在 `@deepseek-ai/dsh-web-app` 之后应用因此覆盖生效,下线原设置分区;相关管理能力集中移至官方「插件」页的「内置插件」分组,禁用本包即可恢复原设置分区。
82
- - 官方插件页提示文案残留:官方「插件」页说明文案仍写有「内置插件列表及运行状态可在『设置 → 内置插件』中查看」,但该设置入口已被本包下线;该提示属于官方 bundle 的既有文案,本仓库无法修改。
83
82
 
84
83
  ## 安全模型
85
84
 
package/cordis.patch.yml CHANGED
@@ -18,12 +18,3 @@
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
package/lib/client.js CHANGED
@@ -8,6 +8,50 @@ window.__ModuleLoader__.load({
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
9
9
  let react_dom_client = require("react-dom/client");
10
10
  let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
11
+ //#region src/core/updates.ts
12
+ /** The npm scope DSH's own packages are published under. */
13
+ const OFFICIAL_SCOPE = "@deepseek-ai/";
14
+ /** Whether this exact offer is ignored; a newer version does not match. */
15
+ function isUpdateIgnored(item, ignored) {
16
+ return ignored.some((entry) => entry.id === item.id && entry.version === item.latest);
17
+ }
18
+ /** Rows still offered to the user and to the bulk-update queue. */
19
+ function unignoredUpdates(items, ignored) {
20
+ return items.filter((item) => !isUpdateIgnored(item, ignored));
21
+ }
22
+ /** Rows currently hidden by an exact-version ignore rule. */
23
+ function ignoredUpdates(items, ignored) {
24
+ return items.filter((item) => isUpdateIgnored(item, ignored));
25
+ }
26
+ /** Add an idempotent exact-version ignore rule. */
27
+ function withIgnoredUpdate(current, item) {
28
+ if (isUpdateIgnored(item, current)) return [...current];
29
+ return [...current, {
30
+ id: item.id,
31
+ version: item.latest
32
+ }];
33
+ }
34
+ /** Remove this exact offer's ignore rule, leaving other plugins untouched. */
35
+ function withoutIgnoredUpdate(current, item) {
36
+ return current.filter((entry) => entry.id !== item.id || entry.version !== item.latest);
37
+ }
38
+ /** Whether a package id is a third-party plugin rather than a DSH-shipped one. */
39
+ function isThirdPartyPlugin(id) {
40
+ return !id.startsWith(OFFICIAL_SCOPE);
41
+ }
42
+ /** The third-party update rows, in host order. */
43
+ function thirdPartyUpdates(items) {
44
+ return items.filter((item) => isThirdPartyPlugin(item.id));
45
+ }
46
+ /** Whether the running DSH host satisfies the row's declared minimum. */
47
+ function isUpdateApplicable(item) {
48
+ return item.compatible !== false;
49
+ }
50
+ /** The third-party rows this runtime can actually apply. */
51
+ function applicableUpdates(items) {
52
+ return thirdPartyUpdates(items).filter(isUpdateApplicable);
53
+ }
54
+ //#endregion
11
55
  //#region src/core/version.ts
12
56
  const MINIMUM_RANGE_PATTERN = /^>=\s*(v?\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?)$/;
13
57
  /**
@@ -25,16 +69,61 @@ window.__ModuleLoader__.load({
25
69
  return match === null ? minimum.trim() : match[1].replace(/^v/, "");
26
70
  }
27
71
  //#endregion
28
- //#region \0dsh-css:packages/dsh-plugin-manager/src/client/plugin-manager.module.css.mjs
29
- const css = ".ZsMDKq_section{max-width:760px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:10px;display:flex}.ZsMDKq_title{margin:0;font-size:13px;font-weight:600;line-height:20px}.ZsMDKq_notice{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:8px;flex-direction:column;gap:8px;padding:16px;display:flex}.ZsMDKq_notice p{color:var(--dsw-alias-label-secondary);margin:0}.ZsMDKq_hint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px}.ZsMDKq_actionRow{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.ZsMDKq_button{font:inherit;cursor:pointer;border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm,6px);color:var(--dsw-alias-label-primary);background:0 0;padding:5px 12px;font-size:12.5px;line-height:18px}.ZsMDKq_button:hover:enabled{background:var(--dsw-alias-interactive-bg-hover)}.ZsMDKq_button:disabled{cursor:default;opacity:.55}.ZsMDKq_button:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.ZsMDKq_primary{color:var(--dsw-alias-label-primary-foreground);background:var(--dsw-alias-button-primary-fill);border-color:var(--dsw-alias-button-primary-fill)}.ZsMDKq_primary:hover:enabled{background:var(--dsw-alias-button-primary-hover);border-color:var(--dsw-alias-button-primary-hover)}.ZsMDKq_latest{color:var(--dsw-alias-state-business-primary);font-size:12px}.ZsMDKq_compatHint{color:var(--dsw-alias-label-tertiary);font-size:12px}.ZsMDKq_compatBlocked{color:var(--dsw-alias-label-danger);font-size:12px}.ZsMDKq_ok{color:var(--dsw-alias-state-success-primary);margin:0;font-size:12px}.ZsMDKq_error{color:var(--dsw-alias-label-danger);word-break:break-word;margin:0;font-size:12px}.ZsMDKq_progressRow{flex-direction:column;gap:6px;display:flex}.ZsMDKq_progressTrack{background:var(--dsw-alias-bg-layer-2);border-radius:3px;height:6px;overflow:hidden}.ZsMDKq_progressBar{transform-origin:0;width:100%;height:100%;transform:scaleX(var(--plugin-manager-progress,0));background:var(--dsw-alias-state-business-primary);transition:transform .2s}.ZsMDKq_progressBar[data-indeterminate=true]{width:40%;animation:1.2s ease-in-out infinite ZsMDKq_pluginManagerIndeterminate;transform:none}@keyframes ZsMDKq_pluginManagerIndeterminate{0%{transform:translate(-100%)}to{transform:translate(250%)}}@media (prefers-reduced-motion:reduce){.ZsMDKq_progressBar{transition:none}.ZsMDKq_progressBar[data-indeterminate=true]{width:40%;animation:none;transform:none}}.ZsMDKq_restartRow{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-brand);border-radius:8px;padding:10px 12px}.ZsMDKq_restartRow p{color:var(--dsw-alias-brand-primary);margin:0}.ZsMDKq_mount{align-self:center;margin-left:auto;position:relative}.ZsMDKq_toolbar{color:var(--dsw-alias-label-primary);align-items:center;gap:8px;font-size:12.5px;line-height:18px;display:flex;position:relative}.ZsMDKq_toolbarButton{font:inherit;cursor:pointer;border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm,6px);color:var(--dsw-alias-label-primary);background:0 0;padding:3px 10px}.ZsMDKq_toolbarButton:hover:enabled{background:var(--dsw-alias-interactive-bg-hover)}.ZsMDKq_toolbarButton:disabled{cursor:default;opacity:.55}.ZsMDKq_toolbarButton:focus-visible,.ZsMDKq_toolbarSummary:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.ZsMDKq_toolbarSummary{font:inherit;cursor:pointer;color:var(--dsw-alias-label-secondary);background:0 0;border:0;padding:3px 2px}.ZsMDKq_toolbarSummary:hover{color:var(--dsw-alias-label-primary)}.ZsMDKq_toolbarHint{max-width:320px;color:var(--dsw-alias-label-tertiary)}.ZsMDKq_panel{z-index:40;border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);width:max-content;min-width:260px;max-width:min(440px,60vw);max-height:320px;box-shadow:var(--dsw-shadow-lv3,0 8px 24px #00000024);text-align:left;border-radius:10px;flex-direction:column;gap:8px;padding:12px;display:flex;position:absolute;top:calc(100% + 6px);right:0;overflow:auto}.ZsMDKq_panelActions{justify-content:flex-end;gap:8px;display:flex}.ZsMDKq_panelList{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.ZsMDKq_panelRow{flex-wrap:wrap;align-items:baseline;gap:6px;display:flex}.ZsMDKq_panelName{font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);word-break:break-all;font-size:12px}.ZsMDKq_panelVersion{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;font-size:12px}.ZsMDKq_restartRequired{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.ZsMDKq_restartRequiredLine{color:var(--dsw-alias-label-secondary);font-size:12px}.ZsMDKq_builtinMount{min-width:0}.ZsMDKq_builtinGroup{min-width:0;color:var(--dsw-alias-label-primary);flex-direction:column;gap:8px;display:flex}.ZsMDKq_builtinHead{align-items:center;gap:8px;min-width:0;display:flex}.ZsMDKq_builtinTitle{min-width:0;margin:0;font-size:14px;font-weight:500;line-height:22px}.ZsMDKq_builtinCount{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;flex:none;font-size:12px;line-height:18px}.ZsMDKq_builtinScope{font:inherit;cursor:pointer;color:var(--dsw-alias-label-secondary);background:0 0;border:0;flex:none;margin-inline-start:auto;padding:3px 2px;font-size:12px;line-height:18px}.ZsMDKq_builtinScope:hover{color:var(--dsw-alias-label-primary)}.ZsMDKq_builtinScope:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.ZsMDKq_builtinTools{align-items:stretch;width:100%;min-width:0;padding:6px 0 4px;display:flex}.ZsMDKq_builtinTools .ZsMDKq_builtinSearch{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md,8px);width:auto;min-width:0;max-width:none;min-height:34px;font:inherit;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);flex:1 1 0;padding:6px 12px;font-size:12px;line-height:18px}.ZsMDKq_builtinTools .ZsMDKq_builtinSearch:hover{border-color:var(--dsw-alias-border-l3)}.ZsMDKq_builtinTools .ZsMDKq_builtinSearch::placeholder{color:var(--dsw-alias-label-tertiary)}.ZsMDKq_builtinTools .ZsMDKq_builtinSearch:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.ZsMDKq_builtinList{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.ZsMDKq_builtinRow{border-bottom:.5px solid var(--dsw-alias-border-l2);align-items:flex-start;gap:12px;min-width:0;padding:12px 2px;display:flex}.ZsMDKq_builtinRow:last-child{border-bottom:0}.ZsMDKq_builtinPagination{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 16px;padding:12px 2px 6px;display:flex}.ZsMDKq_builtinPageInfo{text-align:center;min-width:140px;color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;flex:0 auto;padding:0 4px;font-size:12px;line-height:18px}.ZsMDKq_builtinMain{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ZsMDKq_builtinName{overflow-wrap:anywhere;font-size:13px;line-height:20px}.ZsMDKq_builtinModule{font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);color:var(--dsw-alias-label-tertiary);overflow-wrap:anywhere;font-size:12px;line-height:18px}.ZsMDKq_builtinOwner{color:var(--dsw-alias-label-tertiary);overflow-wrap:anywhere;font-size:12px;line-height:18px}.ZsMDKq_builtinReason{color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere;font-size:12px;line-height:18px}.ZsMDKq_presetGroup{border-top:.5px solid var(--dsw-alias-border-l2);flex-direction:column;gap:6px;min-width:0;padding-top:12px;display:flex}.ZsMDKq_presetTitle{margin:0;font-size:13px;font-weight:500;line-height:20px}.ZsMDKq_presetList{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.ZsMDKq_presetCard{flex-direction:column;gap:2px;min-width:0;display:flex}.ZsMDKq_presetHead{align-items:baseline;gap:6px;min-width:0;display:flex}.ZsMDKq_presetName{overflow-wrap:anywhere;font-size:13px;line-height:20px}.ZsMDKq_presetTag{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.ZsMDKq_presetRows{flex-direction:column;gap:2px;margin:0;padding:0 0 0 12px;list-style:none;display:flex}.ZsMDKq_presetRow{align-items:baseline;gap:8px;min-width:0;font-size:12px;line-height:18px;display:flex}.ZsMDKq_presetRowName{font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere}.ZsMDKq_presetRowState{color:var(--dsw-alias-label-tertiary);flex:none}";
30
- const tagId = "@linxin666/dsh-client-ui-plugin-manager/packages/dsh-plugin-manager/src/client/plugin-manager.module.css";
31
- if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
32
- const tag = document.createElement("style");
33
- tag.dataset.plugin = "@linxin666/dsh-client-ui-plugin-manager";
34
- tag.dataset.pluginCss = tagId;
35
- tag.textContent = css;
36
- document.head.appendChild(tag);
72
+ //#region src/client/ignored-updates.ts
73
+ /** localStorage key for the versioned ignore-list document. */
74
+ const IGNORED_UPDATES_STORAGE_KEY = "dsh.plugin-manager.ignored-updates.v1";
75
+ function browserStorage() {
76
+ try {
77
+ return globalThis.localStorage;
78
+ } catch {
79
+ return;
80
+ }
81
+ }
82
+ /** Read valid unique rules; malformed or unavailable storage yields an empty list. */
83
+ function loadIgnoredUpdates(storage = browserStorage()) {
84
+ if (storage === void 0) return [];
85
+ try {
86
+ const parsed = JSON.parse(storage.getItem("dsh.plugin-manager.ignored-updates.v1") ?? "[]");
87
+ if (!Array.isArray(parsed)) return [];
88
+ const result = [];
89
+ const seen = /* @__PURE__ */ new Set();
90
+ for (const value of parsed) {
91
+ if (typeof value !== "object" || value === null) continue;
92
+ const row = value;
93
+ if (typeof row.id !== "string" || row.id === "" || typeof row.version !== "string" || row.version === "") continue;
94
+ const key = JSON.stringify([row.id, row.version]);
95
+ if (seen.has(key)) continue;
96
+ seen.add(key);
97
+ result.push({
98
+ id: row.id,
99
+ version: row.version
100
+ });
101
+ }
102
+ return result;
103
+ } catch {
104
+ return [];
105
+ }
106
+ }
107
+ /** Persist the list when storage permits; the in-memory answer remains usable either way. */
108
+ function saveIgnoredUpdates(ignored, storage = browserStorage()) {
109
+ try {
110
+ storage?.setItem(IGNORED_UPDATES_STORAGE_KEY, JSON.stringify(ignored));
111
+ } catch {}
112
+ }
113
+ /** Ignore one exact offer and persist the resulting independent list. */
114
+ function rememberIgnoredUpdate(current, item) {
115
+ const next = withIgnoredUpdate(current, item);
116
+ saveIgnoredUpdates(next);
117
+ return next;
37
118
  }
119
+ /** Restore one exact offer and persist the resulting independent list. */
120
+ function forgetIgnoredUpdate(current, item) {
121
+ const next = withoutIgnoredUpdate(current, item);
122
+ saveIgnoredUpdates(next);
123
+ return next;
124
+ }
125
+ //#endregion
126
+ //#region \0dsh-css:packages/dsh-plugin-manager/src/client/plugin-manager.module.css.mjs
38
127
  var plugin_manager_module_css_default = {
39
128
  "actionRow": "ZsMDKq_actionRow",
40
129
  "builtinCount": "ZsMDKq_builtinCount",
@@ -88,6 +177,7 @@ window.__ModuleLoader__.load({
88
177
  "restartRequired": "ZsMDKq_restartRequired",
89
178
  "restartRequiredLine": "ZsMDKq_restartRequiredLine",
90
179
  "restartRow": "ZsMDKq_restartRow",
180
+ "rowAction": "ZsMDKq_rowAction",
91
181
  "section": "ZsMDKq_section",
92
182
  "title": "ZsMDKq_title",
93
183
  "toolbar": "ZsMDKq_toolbar",
@@ -157,6 +247,8 @@ window.__ModuleLoader__.load({
157
247
  const { t, subject, isLoopback, checkUpdates, update, status } = props;
158
248
  const [checked, setChecked] = (0, react.useState)(false);
159
249
  const [found, setFound] = (0, react.useState)(void 0);
250
+ /** Whether the exact offer in found is currently ignored. */
251
+ const [ignored, setIgnored] = (0, react.useState)(false);
160
252
  const [busy, setBusy] = (0, react.useState)(void 0);
161
253
  const [error, setError] = (0, react.useState)(void 0);
162
254
  const [progress, setProgress] = (0, react.useState)({
@@ -204,7 +296,9 @@ window.__ModuleLoader__.load({
204
296
  setBusy("check");
205
297
  setError(void 0);
206
298
  checkUpdates().then((items) => {
207
- setFound(items.find((item) => item.id === name));
299
+ const update = items.find((item) => item.id === name);
300
+ setFound(update);
301
+ setIgnored(update !== void 0 && isUpdateIgnored(update, loadIgnoredUpdates()));
208
302
  setChecked(true);
209
303
  }).catch((reason) => {
210
304
  setError(t("failed", { reason: messageOf$1(reason) }));
@@ -213,8 +307,18 @@ window.__ModuleLoader__.load({
213
307
  setBusy(void 0);
214
308
  });
215
309
  };
216
- const onUpdate = () => {
310
+ const onIgnore = () => {
217
311
  if (busyRef.current || found === void 0) return;
312
+ rememberIgnoredUpdate(loadIgnoredUpdates(), found);
313
+ setIgnored(true);
314
+ };
315
+ const onRestore = () => {
316
+ if (busyRef.current || found === void 0) return;
317
+ forgetIgnoredUpdate(loadIgnoredUpdates(), found);
318
+ setIgnored(false);
319
+ };
320
+ const onUpdate = () => {
321
+ if (busyRef.current || found === void 0 || ignored) return;
218
322
  busyRef.current = true;
219
323
  setBusy("update");
220
324
  setError(void 0);
@@ -273,12 +377,33 @@ window.__ModuleLoader__.load({
273
377
  "data-update-compat-reason": blocked ? gate : void 0,
274
378
  children: requiresDsh !== void 0 ? t(gate === "open" ? "updateRequiresDsh" : gate === "unverified" ? "updateUnverifiedDsh" : "updateBlockedDsh", { min: displayMinimumVersion(requiresDsh) }) : t("updateUnverifiedDshUnknownRange")
275
379
  }),
276
- found !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
380
+ found !== void 0 && !ignored && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
277
381
  type: "button",
278
382
  className: `${plugin_manager_module_css_default.button} ${plugin_manager_module_css_default.primary}`,
279
383
  disabled: busy !== void 0 || blocked,
280
384
  onClick: onUpdate,
281
385
  children: busy === "update" ? t("updating") : t("update")
386
+ }),
387
+ found !== void 0 && !ignored && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
388
+ type: "button",
389
+ className: plugin_manager_module_css_default.button,
390
+ "data-update-ignore": true,
391
+ disabled: busy !== void 0,
392
+ onClick: onIgnore,
393
+ children: t("ignoreUpdate")
394
+ }),
395
+ found !== void 0 && ignored && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
396
+ className: plugin_manager_module_css_default.hint,
397
+ "data-update-ignored": true,
398
+ children: t("ignoredUpdate")
399
+ }),
400
+ found !== void 0 && ignored && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
401
+ type: "button",
402
+ className: plugin_manager_module_css_default.button,
403
+ "data-update-restore": true,
404
+ disabled: busy !== void 0,
405
+ onClick: onRestore,
406
+ children: t("restoreUpdate")
282
407
  })
283
408
  ]
284
409
  }),
@@ -1114,26 +1239,6 @@ window.__ModuleLoader__.load({
1114
1239
  });
1115
1240
  }
1116
1241
  //#endregion
1117
- //#region src/core/updates.ts
1118
- /** The npm scope DSH's own packages are published under. */
1119
- const OFFICIAL_SCOPE = "@deepseek-ai/";
1120
- /** Whether a package id is a third-party plugin rather than a DSH-shipped one. */
1121
- function isThirdPartyPlugin(id) {
1122
- return !id.startsWith(OFFICIAL_SCOPE);
1123
- }
1124
- /** The third-party update rows, in host order. */
1125
- function thirdPartyUpdates(items) {
1126
- return items.filter((item) => isThirdPartyPlugin(item.id));
1127
- }
1128
- /** Whether the running DSH host satisfies the row's declared minimum. */
1129
- function isUpdateApplicable(item) {
1130
- return item.compatible !== false;
1131
- }
1132
- /** The third-party rows this runtime can actually apply. */
1133
- function applicableUpdates(items) {
1134
- return thirdPartyUpdates(items).filter(isUpdateApplicable);
1135
- }
1136
- //#endregion
1137
1242
  //#region src/client/PluginListToolbar.tsx
1138
1243
  /**
1139
1244
  * The list-level toolbar: check every installed third-party plugin for a newer
@@ -1181,6 +1286,8 @@ window.__ModuleLoader__.load({
1181
1286
  const [checked, setChecked] = (0, react.useState)(false);
1182
1287
  /** Every third-party row the last check reported, including the applied ones. */
1183
1288
  const [rows, setRows] = (0, react.useState)([]);
1289
+ /** Exact-version offers hidden by the user; the rows remain available for restore. */
1290
+ const [ignored, setIgnored] = (0, react.useState)(() => loadIgnoredUpdates());
1184
1291
  const [applied, setApplied] = (0, react.useState)([]);
1185
1292
  /**
1186
1293
  * Updates this run applied whose new version the running host has not loaded,
@@ -1203,7 +1310,9 @@ window.__ModuleLoader__.load({
1203
1310
  const [restartMode, setRestartMode] = (0, react.useState)(void 0);
1204
1311
  /** Synchronous in-flight mirror of the phase: a click and a keypress can land in one frame. */
1205
1312
  const busyRef = (0, react.useRef)(false);
1206
- const pending = applicableUpdates(rows);
1313
+ const visibleRows = unignoredUpdates(rows, ignored);
1314
+ const ignoredRows = ignoredUpdates(rows, ignored);
1315
+ const pending = applicableUpdates(visibleRows);
1207
1316
  /** Close the flyout on Escape, the shell's own dismissal gesture. */
1208
1317
  (0, react.useEffect)(() => {
1209
1318
  if (panel === "none") return;
@@ -1221,6 +1330,7 @@ window.__ModuleLoader__.load({
1221
1330
  setPhase("checking");
1222
1331
  setError(void 0);
1223
1332
  setRestartMode(void 0);
1333
+ setIgnored(loadIgnoredUpdates());
1224
1334
  checkUpdates().then((items) => {
1225
1335
  const thirdParty = thirdPartyUpdates(items);
1226
1336
  setRows(thirdParty);
@@ -1237,9 +1347,17 @@ window.__ModuleLoader__.load({
1237
1347
  setPhase("idle");
1238
1348
  });
1239
1349
  };
1350
+ const onIgnore = (row) => {
1351
+ if (busyRef.current) return;
1352
+ setIgnored(rememberIgnoredUpdate(ignored, row));
1353
+ };
1354
+ const onRestore = (row) => {
1355
+ if (busyRef.current) return;
1356
+ setIgnored(forgetIgnoredUpdate(ignored, row));
1357
+ };
1240
1358
  const onUpdateAll = () => {
1241
1359
  if (busyRef.current) return;
1242
- const queue = applicableUpdates(rows);
1360
+ const queue = applicableUpdates(unignoredUpdates(rows, ignored));
1243
1361
  if (queue.length === 0) return;
1244
1362
  busyRef.current = true;
1245
1363
  setPhase("updating");
@@ -1334,7 +1452,7 @@ window.__ModuleLoader__.load({
1334
1452
  children: error
1335
1453
  });
1336
1454
  /** What is still pending after a partial run (the applied rows leave the list). */
1337
- const remaining = rows.length;
1455
+ const remaining = visibleRows.length;
1338
1456
  const failedCount = failures.length;
1339
1457
  /**
1340
1458
  * One line for the whole run: the row in flight, what is still pending, and —
@@ -1426,13 +1544,13 @@ window.__ModuleLoader__.load({
1426
1544
  })]
1427
1545
  }, item.id))
1428
1546
  }),
1429
- rows.length === 0 && applied.length === 0 && error === void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
1547
+ visibleRows.length === 0 && applied.length === 0 && error === void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
1430
1548
  className: plugin_manager_module_css_default.hint,
1431
1549
  children: t("noUpdates")
1432
1550
  }),
1433
- rows.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
1551
+ visibleRows.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
1434
1552
  className: plugin_manager_module_css_default.panelList,
1435
- children: rows.map((row) => {
1553
+ children: visibleRows.map((row) => {
1436
1554
  const gate = dshGateOf(row);
1437
1555
  const failure = failures.find((item) => item.id === row.id);
1438
1556
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
@@ -1461,11 +1579,58 @@ window.__ModuleLoader__.load({
1461
1579
  className: plugin_manager_module_css_default.compatBlocked,
1462
1580
  "data-update-row-error": failure.id,
1463
1581
  children: t("updateFailedRow", { reason: failure.error })
1582
+ }),
1583
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
1584
+ type: "button",
1585
+ className: `${plugin_manager_module_css_default.toolbarButton} ${plugin_manager_module_css_default.rowAction}`,
1586
+ "data-update-ignore": row.id,
1587
+ disabled: busy,
1588
+ onClick: () => {
1589
+ onIgnore(row);
1590
+ },
1591
+ children: t("ignoreUpdate")
1464
1592
  })
1465
1593
  ]
1466
1594
  }, row.id);
1467
1595
  })
1468
1596
  }),
1597
+ ignoredRows.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1598
+ "data-ignored-updates": true,
1599
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
1600
+ className: plugin_manager_module_css_default.hint,
1601
+ children: t("ignoredUpdates", { count: String(ignoredRows.length) })
1602
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
1603
+ className: plugin_manager_module_css_default.panelList,
1604
+ children: ignoredRows.map((row) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
1605
+ className: plugin_manager_module_css_default.panelRow,
1606
+ "data-ignored-update-row": row.id,
1607
+ children: [
1608
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1609
+ className: plugin_manager_module_css_default.panelName,
1610
+ children: row.id
1611
+ }),
1612
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
1613
+ className: plugin_manager_module_css_default.panelVersion,
1614
+ children: [
1615
+ row.current,
1616
+ " → ",
1617
+ row.latest
1618
+ ]
1619
+ }),
1620
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
1621
+ type: "button",
1622
+ className: `${plugin_manager_module_css_default.toolbarButton} ${plugin_manager_module_css_default.rowAction}`,
1623
+ "data-update-restore": row.id,
1624
+ disabled: busy,
1625
+ onClick: () => {
1626
+ onRestore(row);
1627
+ },
1628
+ children: t("restoreUpdate")
1629
+ })
1630
+ ]
1631
+ }, row.id))
1632
+ })]
1633
+ }),
1469
1634
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1470
1635
  className: plugin_manager_module_css_default.panelActions,
1471
1636
  children: [pending.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
@@ -1612,6 +1777,10 @@ window.__ModuleLoader__.load({
1612
1777
  "updateFailedUnknown": "宿主没有说明失败原因",
1613
1778
  "updateRestartRequired": "已更新到 {version},需重启 DSH 后生效",
1614
1779
  "updatesPanelTitle": "插件更新",
1780
+ "ignoreUpdate": "忽略此版本",
1781
+ "ignoredUpdate": "已忽略此版本。",
1782
+ "ignoredUpdates": "已忽略 {count} 个版本",
1783
+ "restoreUpdate": "恢复更新",
1615
1784
  "thirdPartyOnly": "只检查第三方插件;官方 @deepseek-ai/ 包随 DSH 本体升级。",
1616
1785
  "restartNow": "立即重启",
1617
1786
  "restarting": "正在重启…",
@@ -1693,6 +1862,10 @@ window.__ModuleLoader__.load({
1693
1862
  "updateFailedUnknown": "The host gave no reason",
1694
1863
  "updateRestartRequired": "Updated to {version}; restart DSH for it to take effect",
1695
1864
  "updatesPanelTitle": "Plugin updates",
1865
+ "ignoreUpdate": "Ignore this version",
1866
+ "ignoredUpdate": "This version is ignored.",
1867
+ "ignoredUpdates": "{count} ignored versions",
1868
+ "restoreUpdate": "Restore update",
1696
1869
  "thirdPartyOnly": "Third-party plugins only; @deepseek-ai/ packages upgrade with DSH itself.",
1697
1870
  "restartNow": "Restart now",
1698
1871
  "restarting": "Restarting…",
@@ -2011,7 +2184,7 @@ window.__ModuleLoader__.load({
2011
2184
  /** The building package's version, when the bundle carries it. */
2012
2185
  function bakedVersion() {
2013
2186
  try {
2014
- return "0.4.21";
2187
+ return "0.4.22";
2015
2188
  } catch {
2016
2189
  return;
2017
2190
  }
@@ -2433,7 +2606,8 @@ window.__ModuleLoader__.load({
2433
2606
  exports.createPluginManagerFace = createPluginManagerFace;
2434
2607
  exports.inject = inject;
2435
2608
  return module.exports;
2436
- }
2609
+ },
2610
+ meta: () => ({ stylesheets: { "packages/dsh-plugin-manager/src/client/plugin-manager.module.css": { text: () => ".ZsMDKq_section{max-width:760px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:10px;display:flex}.ZsMDKq_title{margin:0;font-size:13px;font-weight:600;line-height:20px}.ZsMDKq_notice{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:8px;flex-direction:column;gap:8px;padding:16px;display:flex}.ZsMDKq_notice p{color:var(--dsw-alias-label-secondary);margin:0}.ZsMDKq_hint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px}.ZsMDKq_actionRow{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.ZsMDKq_button{font:inherit;cursor:pointer;border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm,6px);color:var(--dsw-alias-label-primary);background:0 0;padding:5px 12px;font-size:12.5px;line-height:18px}.ZsMDKq_button:hover:enabled{background:var(--dsw-alias-interactive-bg-hover)}.ZsMDKq_button:disabled{cursor:default;opacity:.55}.ZsMDKq_button:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.ZsMDKq_primary{color:var(--dsw-alias-label-primary-foreground);background:var(--dsw-alias-button-primary-fill);border-color:var(--dsw-alias-button-primary-fill)}.ZsMDKq_primary:hover:enabled{background:var(--dsw-alias-button-primary-hover);border-color:var(--dsw-alias-button-primary-hover)}.ZsMDKq_latest{color:var(--dsw-alias-state-business-primary);font-size:12px}.ZsMDKq_compatHint{color:var(--dsw-alias-label-tertiary);font-size:12px}.ZsMDKq_compatBlocked{color:var(--dsw-alias-label-danger);font-size:12px}.ZsMDKq_ok{color:var(--dsw-alias-state-success-primary);margin:0;font-size:12px}.ZsMDKq_error{color:var(--dsw-alias-label-danger);word-break:break-word;margin:0;font-size:12px}.ZsMDKq_progressRow{flex-direction:column;gap:6px;display:flex}.ZsMDKq_progressTrack{background:var(--dsw-alias-bg-layer-2);border-radius:3px;height:6px;overflow:hidden}.ZsMDKq_progressBar{transform-origin:0;width:100%;height:100%;transform:scaleX(var(--plugin-manager-progress,0));background:var(--dsw-alias-state-business-primary);transition:transform .2s}.ZsMDKq_progressBar[data-indeterminate=true]{width:40%;animation:1.2s ease-in-out infinite ZsMDKq_pluginManagerIndeterminate;transform:none}@keyframes ZsMDKq_pluginManagerIndeterminate{0%{transform:translate(-100%)}to{transform:translate(250%)}}@media (prefers-reduced-motion:reduce){.ZsMDKq_progressBar{transition:none}.ZsMDKq_progressBar[data-indeterminate=true]{width:40%;animation:none;transform:none}}.ZsMDKq_restartRow{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-brand);border-radius:8px;padding:10px 12px}.ZsMDKq_restartRow p{color:var(--dsw-alias-brand-primary);margin:0}.ZsMDKq_mount{align-self:center;margin-left:auto;position:relative}.ZsMDKq_toolbar{color:var(--dsw-alias-label-primary);align-items:center;gap:8px;font-size:12.5px;line-height:18px;display:flex;position:relative}.ZsMDKq_toolbarButton{font:inherit;cursor:pointer;border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm,6px);color:var(--dsw-alias-label-primary);background:0 0;padding:3px 10px}.ZsMDKq_toolbarButton:hover:enabled{background:var(--dsw-alias-interactive-bg-hover)}.ZsMDKq_toolbarButton:disabled{cursor:default;opacity:.55}.ZsMDKq_toolbarButton:focus-visible,.ZsMDKq_toolbarSummary:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.ZsMDKq_toolbarSummary{font:inherit;cursor:pointer;color:var(--dsw-alias-label-secondary);background:0 0;border:0;padding:3px 2px}.ZsMDKq_toolbarSummary:hover{color:var(--dsw-alias-label-primary)}.ZsMDKq_toolbarHint{max-width:320px;color:var(--dsw-alias-label-tertiary)}.ZsMDKq_panel{z-index:40;border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);width:max-content;min-width:260px;max-width:min(440px,60vw);max-height:320px;box-shadow:var(--dsw-shadow-lv3,0 8px 24px #00000024);text-align:left;border-radius:10px;flex-direction:column;gap:8px;padding:12px;display:flex;position:absolute;top:calc(100% + 6px);right:0;overflow:auto}.ZsMDKq_panelActions{justify-content:flex-end;gap:8px;display:flex}.ZsMDKq_panelList{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.ZsMDKq_panelRow{flex-wrap:wrap;align-items:baseline;gap:6px;display:flex}.ZsMDKq_panelName{font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);word-break:break-all;font-size:12px}.ZsMDKq_panelVersion{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;font-size:12px}.ZsMDKq_rowAction{flex:none;margin-inline-start:auto}.ZsMDKq_restartRequired{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.ZsMDKq_restartRequiredLine{color:var(--dsw-alias-label-secondary);font-size:12px}.ZsMDKq_builtinMount{min-width:0}.ZsMDKq_builtinGroup{min-width:0;color:var(--dsw-alias-label-primary);flex-direction:column;gap:8px;display:flex}.ZsMDKq_builtinHead{align-items:center;gap:8px;min-width:0;display:flex}.ZsMDKq_builtinTitle{min-width:0;margin:0;font-size:14px;font-weight:500;line-height:22px}.ZsMDKq_builtinCount{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;flex:none;font-size:12px;line-height:18px}.ZsMDKq_builtinScope{font:inherit;cursor:pointer;color:var(--dsw-alias-label-secondary);background:0 0;border:0;flex:none;margin-inline-start:auto;padding:3px 2px;font-size:12px;line-height:18px}.ZsMDKq_builtinScope:hover{color:var(--dsw-alias-label-primary)}.ZsMDKq_builtinScope:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.ZsMDKq_builtinTools{align-items:stretch;width:100%;min-width:0;padding:6px 0 4px;display:flex}.ZsMDKq_builtinTools .ZsMDKq_builtinSearch{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md,8px);width:auto;min-width:0;max-width:none;min-height:34px;font:inherit;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);flex:1 1 0;padding:6px 12px;font-size:12px;line-height:18px}.ZsMDKq_builtinTools .ZsMDKq_builtinSearch:hover{border-color:var(--dsw-alias-border-l3)}.ZsMDKq_builtinTools .ZsMDKq_builtinSearch::placeholder{color:var(--dsw-alias-label-tertiary)}.ZsMDKq_builtinTools .ZsMDKq_builtinSearch:focus-visible{border-color:var(--dsw-alias-state-business-primary);outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.ZsMDKq_builtinList{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.ZsMDKq_builtinRow{border-bottom:.5px solid var(--dsw-alias-border-l2);align-items:flex-start;gap:12px;min-width:0;padding:12px 2px;display:flex}.ZsMDKq_builtinRow:last-child{border-bottom:0}.ZsMDKq_builtinPagination{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 16px;padding:12px 2px 6px;display:flex}.ZsMDKq_builtinPageInfo{text-align:center;min-width:140px;color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;flex:0 auto;padding:0 4px;font-size:12px;line-height:18px}.ZsMDKq_builtinMain{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ZsMDKq_builtinName{overflow-wrap:anywhere;font-size:13px;line-height:20px}.ZsMDKq_builtinModule{font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);color:var(--dsw-alias-label-tertiary);overflow-wrap:anywhere;font-size:12px;line-height:18px}.ZsMDKq_builtinOwner{color:var(--dsw-alias-label-tertiary);overflow-wrap:anywhere;font-size:12px;line-height:18px}.ZsMDKq_builtinReason{color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere;font-size:12px;line-height:18px}.ZsMDKq_presetGroup{border-top:.5px solid var(--dsw-alias-border-l2);flex-direction:column;gap:6px;min-width:0;padding-top:12px;display:flex}.ZsMDKq_presetTitle{margin:0;font-size:13px;font-weight:500;line-height:20px}.ZsMDKq_presetList{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.ZsMDKq_presetCard{flex-direction:column;gap:2px;min-width:0;display:flex}.ZsMDKq_presetHead{align-items:baseline;gap:6px;min-width:0;display:flex}.ZsMDKq_presetName{overflow-wrap:anywhere;font-size:13px;line-height:20px}.ZsMDKq_presetTag{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.ZsMDKq_presetRows{flex-direction:column;gap:2px;margin:0;padding:0 0 0 12px;list-style:none;display:flex}.ZsMDKq_presetRow{align-items:baseline;gap:8px;min-width:0;font-size:12px;line-height:18px;display:flex}.ZsMDKq_presetRowName{font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere}.ZsMDKq_presetRowState{color:var(--dsw-alias-label-tertiary);flex:none}" } } })
2437
2611
  });
2438
2612
 
2439
2613
  //# sourceMappingURL=client.js.map