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

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/lib/client.js CHANGED
@@ -7,7 +7,51 @@ window.__ModuleLoader__.load({
7
7
  let react = require("react");
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
9
9
  let react_dom_client = require("react-dom/client");
10
- let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
10
+ let _deepseek_ai_dsh_client_ui_primitives_client = require("@deepseek-ai/dsh-client-ui-primitives/client");
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",
@@ -70,7 +159,11 @@ window.__ModuleLoader__.load({
70
159
  "panelRow": "ZsMDKq_panelRow",
71
160
  "panelVersion": "ZsMDKq_panelVersion",
72
161
  "pluginManagerIndeterminate": "ZsMDKq_pluginManagerIndeterminate",
162
+ "presetBody": "ZsMDKq_presetBody",
73
163
  "presetCard": "ZsMDKq_presetCard",
164
+ "presetChevron": "ZsMDKq_presetChevron",
165
+ "presetCount": "ZsMDKq_presetCount",
166
+ "presetDetails": "ZsMDKq_presetDetails",
74
167
  "presetGroup": "ZsMDKq_presetGroup",
75
168
  "presetHead": "ZsMDKq_presetHead",
76
169
  "presetList": "ZsMDKq_presetList",
@@ -88,6 +181,7 @@ window.__ModuleLoader__.load({
88
181
  "restartRequired": "ZsMDKq_restartRequired",
89
182
  "restartRequiredLine": "ZsMDKq_restartRequiredLine",
90
183
  "restartRow": "ZsMDKq_restartRow",
184
+ "rowAction": "ZsMDKq_rowAction",
91
185
  "section": "ZsMDKq_section",
92
186
  "title": "ZsMDKq_title",
93
187
  "toolbar": "ZsMDKq_toolbar",
@@ -95,28 +189,13 @@ window.__ModuleLoader__.load({
95
189
  "toolbarHint": "ZsMDKq_toolbarHint",
96
190
  "toolbarSummary": "ZsMDKq_toolbarSummary"
97
191
  };
98
- //#endregion
99
- //#region src/client/PluginUpdatePatch.tsx
100
- /**
101
- * The check-for-updates patch contributed to the official Plugins page.
102
- *
103
- * This package used to own a "Plugin manager" tab inside the Plugins settings
104
- * section (`settings.plugins.tab`). Installing, uninstalling, enabling and
105
- * disabling moved to the official plugin manager page long ago, and the tab's
106
- * remaining half (read-only inventory, install-conflict ledger, boot-failure
107
- * repair conversation, safe-mode banner) is UI no official page renders. It is
108
- * gone; the one capability the official page still lacks is comparing an
109
- * installed plugin against its registry source.
110
- *
111
- * So this package now contributes exactly that, into the seat the official
112
- * Plugins page declares for contributed sections (`plugins.detail.section`,
113
- * a root-scope list rendered on every bundle / row / official-plugin page with
114
- * the page's `subject`). The official page owns the page chrome; this entry
115
- * renders one compact block, only on an installed bundle's page, drawing only
116
- * a plain button and its own section so it carries no dependency on the
117
- * official primitives bundle.
118
- * @module @linxin666/dsh-client-ui-plugin-manager/client
119
- */
192
+ function hasNativeVersionsSection() {
193
+ return typeof document !== "undefined" && document.querySelector("[data-plugin-versions]") !== null;
194
+ }
195
+ function ignoredForPackage(packageName) {
196
+ if (packageName === void 0) return [];
197
+ return loadIgnoredUpdates().filter((entry) => entry.id === packageName);
198
+ }
120
199
  /**
121
200
  * The custom property carrying the determinate fraction (0 to 1). The bar is a
122
201
  * full-width element the stylesheet scales along its own axis, so a progress
@@ -157,6 +236,8 @@ window.__ModuleLoader__.load({
157
236
  const { t, subject, isLoopback, checkUpdates, update, status } = props;
158
237
  const [checked, setChecked] = (0, react.useState)(false);
159
238
  const [found, setFound] = (0, react.useState)(void 0);
239
+ /** Whether the exact offer in found is currently ignored. */
240
+ const [ignored, setIgnored] = (0, react.useState)(false);
160
241
  const [busy, setBusy] = (0, react.useState)(void 0);
161
242
  const [error, setError] = (0, react.useState)(void 0);
162
243
  const [progress, setProgress] = (0, react.useState)({
@@ -170,6 +251,23 @@ window.__ModuleLoader__.load({
170
251
  const busyRef = (0, react.useRef)(false);
171
252
  const name = subject.kind === "bundle" ? subject.pkg.name : void 0;
172
253
  const installed = subject.kind === "bundle" && subject.pkg.installed;
254
+ const [nativeVersions, setNativeVersions] = (0, react.useState)(hasNativeVersionsSection);
255
+ const [storedIgnored, setStoredIgnored] = (0, react.useState)(() => ignoredForPackage(name));
256
+ (0, react.useEffect)(() => {
257
+ setNativeVersions(hasNativeVersionsSection());
258
+ setStoredIgnored(ignoredForPackage(name));
259
+ if (typeof document === "undefined" || document.body === null || typeof MutationObserver !== "function") return;
260
+ const observer = new MutationObserver(() => {
261
+ setNativeVersions(hasNativeVersionsSection());
262
+ });
263
+ observer.observe(document.body, {
264
+ childList: true,
265
+ subtree: true
266
+ });
267
+ return () => {
268
+ observer.disconnect();
269
+ };
270
+ }, [name]);
173
271
  /** Poll update progress while an update is in flight. */
174
272
  (0, react.useEffect)(() => {
175
273
  if (busy !== "update") {
@@ -198,13 +296,53 @@ window.__ModuleLoader__.load({
198
296
  };
199
297
  }, [busy, status]);
200
298
  if (name === void 0 || !installed) return null;
299
+ if (nativeVersions) {
300
+ if (storedIgnored.length === 0) return null;
301
+ const onRestoreStored = (entry) => {
302
+ const next = loadIgnoredUpdates().filter((item) => !(item.id === entry.id && item.version === entry.version));
303
+ saveIgnoredUpdates(next);
304
+ setStoredIgnored(next.filter((item) => item.id === name));
305
+ };
306
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("section", {
307
+ className: plugin_manager_module_css_default.section,
308
+ "data-update-patch": true,
309
+ "data-update-patch-mode": "ignored-only",
310
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
311
+ className: plugin_manager_module_css_default.actionRow,
312
+ children: storedIgnored.map((entry) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
313
+ className: plugin_manager_module_css_default.actionRow,
314
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
315
+ className: plugin_manager_module_css_default.hint,
316
+ "data-update-ignored": true,
317
+ "data-update-latest": entry.version,
318
+ children: [
319
+ t("ignoredUpdate"),
320
+ " (",
321
+ entry.version,
322
+ ")"
323
+ ]
324
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
325
+ type: "button",
326
+ className: plugin_manager_module_css_default.button,
327
+ "data-update-restore": true,
328
+ onClick: () => {
329
+ onRestoreStored(entry);
330
+ },
331
+ children: t("restoreUpdate")
332
+ })]
333
+ }, entry.version))
334
+ })
335
+ });
336
+ }
201
337
  const onCheck = () => {
202
338
  if (busyRef.current) return;
203
339
  busyRef.current = true;
204
340
  setBusy("check");
205
341
  setError(void 0);
206
342
  checkUpdates().then((items) => {
207
- setFound(items.find((item) => item.id === name));
343
+ const update = items.find((item) => item.id === name);
344
+ setFound(update);
345
+ setIgnored(update !== void 0 && isUpdateIgnored(update, loadIgnoredUpdates()));
208
346
  setChecked(true);
209
347
  }).catch((reason) => {
210
348
  setError(t("failed", { reason: messageOf$1(reason) }));
@@ -213,8 +351,18 @@ window.__ModuleLoader__.load({
213
351
  setBusy(void 0);
214
352
  });
215
353
  };
216
- const onUpdate = () => {
354
+ const onIgnore = () => {
355
+ if (busyRef.current || found === void 0) return;
356
+ rememberIgnoredUpdate(loadIgnoredUpdates(), found);
357
+ setIgnored(true);
358
+ };
359
+ const onRestore = () => {
217
360
  if (busyRef.current || found === void 0) return;
361
+ forgetIgnoredUpdate(loadIgnoredUpdates(), found);
362
+ setIgnored(false);
363
+ };
364
+ const onUpdate = () => {
365
+ if (busyRef.current || found === void 0 || ignored) return;
218
366
  busyRef.current = true;
219
367
  setBusy("update");
220
368
  setError(void 0);
@@ -273,12 +421,33 @@ window.__ModuleLoader__.load({
273
421
  "data-update-compat-reason": blocked ? gate : void 0,
274
422
  children: requiresDsh !== void 0 ? t(gate === "open" ? "updateRequiresDsh" : gate === "unverified" ? "updateUnverifiedDsh" : "updateBlockedDsh", { min: displayMinimumVersion(requiresDsh) }) : t("updateUnverifiedDshUnknownRange")
275
423
  }),
276
- found !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
424
+ found !== void 0 && !ignored && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
277
425
  type: "button",
278
426
  className: `${plugin_manager_module_css_default.button} ${plugin_manager_module_css_default.primary}`,
279
427
  disabled: busy !== void 0 || blocked,
280
428
  onClick: onUpdate,
281
429
  children: busy === "update" ? t("updating") : t("update")
430
+ }),
431
+ found !== void 0 && !ignored && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
432
+ type: "button",
433
+ className: plugin_manager_module_css_default.button,
434
+ "data-update-ignore": true,
435
+ disabled: busy !== void 0,
436
+ onClick: onIgnore,
437
+ children: t("ignoreUpdate")
438
+ }),
439
+ found !== void 0 && ignored && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
440
+ className: plugin_manager_module_css_default.hint,
441
+ "data-update-ignored": true,
442
+ children: t("ignoredUpdate")
443
+ }),
444
+ found !== void 0 && ignored && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
445
+ type: "button",
446
+ className: plugin_manager_module_css_default.button,
447
+ "data-update-restore": true,
448
+ disabled: busy !== void 0,
449
+ onClick: onRestore,
450
+ children: t("restoreUpdate")
282
451
  })
283
452
  ]
284
453
  }),
@@ -593,6 +762,10 @@ window.__ModuleLoader__.load({
593
762
  if (row.enabled === "conditional") return row.condition === void 0 ? t("presetRowConditionalUnnamed") : t("presetRowConditional", { condition: row.condition });
594
763
  return row.enabled ? t("presetRowOn") : t("presetRowOff");
595
764
  }
765
+ /** How many of a preset's rows the composition switches on outright. */
766
+ function presetEnabledCount(preset) {
767
+ return preset.rows.filter((row) => row.enabled === true).length;
768
+ }
596
769
  /**
597
770
  * Read one manager list, treating a refused or failed read as unknown. A row
598
771
  * whose writability could not be read is shown locked, never writable.
@@ -899,7 +1072,7 @@ window.__ModuleLoader__.load({
899
1072
  children: reason
900
1073
  })
901
1074
  ]
902
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Switch, {
1075
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives_client.Switch, {
903
1076
  checked,
904
1077
  label: t("builtinToggle", { name: title }),
905
1078
  disabled: locked || pending !== void 0 || remote.manager === null,
@@ -952,38 +1125,59 @@ window.__ModuleLoader__.load({
952
1125
  children: t("presetGroup")
953
1126
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
954
1127
  className: plugin_manager_module_css_default.presetList,
955
- children: presets.map((preset) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
1128
+ children: presets.map((preset) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
956
1129
  className: plugin_manager_module_css_default.presetCard,
957
1130
  "data-dsh-part": "preset",
958
1131
  "data-preset-id": preset.id,
959
1132
  "data-default": preset.isDefault ? "yes" : "no",
960
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
961
- className: plugin_manager_module_css_default.presetHead,
962
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
963
- className: plugin_manager_module_css_default.presetName,
964
- children: preset.name ?? preset.id
965
- }), preset.isDefault && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
966
- className: plugin_manager_module_css_default.presetTag,
967
- children: t("presetDefault")
1133
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
1134
+ className: plugin_manager_module_css_default.presetDetails,
1135
+ open: preset.broken === void 0 ? void 0 : true,
1136
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("summary", {
1137
+ className: plugin_manager_module_css_default.presetHead,
1138
+ children: [
1139
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1140
+ className: plugin_manager_module_css_default.presetName,
1141
+ children: preset.name ?? preset.id
1142
+ }),
1143
+ preset.isDefault && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1144
+ className: plugin_manager_module_css_default.presetTag,
1145
+ children: t("presetDefault")
1146
+ }),
1147
+ preset.broken === void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1148
+ className: plugin_manager_module_css_default.presetCount,
1149
+ children: t("presetSummary", {
1150
+ total: String(preset.rows.length),
1151
+ on: String(presetEnabledCount(preset))
1152
+ })
1153
+ }),
1154
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1155
+ className: plugin_manager_module_css_default.presetChevron,
1156
+ "aria-hidden": "true"
1157
+ })
1158
+ ]
1159
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1160
+ className: plugin_manager_module_css_default.presetBody,
1161
+ children: preset.broken === void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
1162
+ className: plugin_manager_module_css_default.presetRows,
1163
+ children: preset.rows.map((row, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
1164
+ className: plugin_manager_module_css_default.presetRow,
1165
+ "data-dsh-part": "preset-row",
1166
+ "data-preset-state": presetRowState(row),
1167
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1168
+ className: plugin_manager_module_css_default.presetRowName,
1169
+ children: row.moduleName
1170
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1171
+ className: plugin_manager_module_css_default.presetRowState,
1172
+ children: presetRowText(row, t)
1173
+ })]
1174
+ }, row.entryId ?? `${preset.id}:${String(index)}`))
1175
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
1176
+ className: plugin_manager_module_css_default.hint,
1177
+ children: t("presetBroken", { reason: preset.broken })
1178
+ })
968
1179
  })]
969
- }), preset.broken === void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
970
- className: plugin_manager_module_css_default.presetRows,
971
- children: preset.rows.map((row, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
972
- className: plugin_manager_module_css_default.presetRow,
973
- "data-dsh-part": "preset-row",
974
- "data-preset-state": presetRowState(row),
975
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
976
- className: plugin_manager_module_css_default.presetRowName,
977
- children: row.moduleName
978
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
979
- className: plugin_manager_module_css_default.presetRowState,
980
- children: presetRowText(row, t)
981
- })]
982
- }, row.entryId ?? `${preset.id}:${String(index)}`))
983
- }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
984
- className: plugin_manager_module_css_default.hint,
985
- children: t("presetBroken", { reason: preset.broken })
986
- })]
1180
+ })
987
1181
  }, preset.id))
988
1182
  })]
989
1183
  })
@@ -1114,26 +1308,6 @@ window.__ModuleLoader__.load({
1114
1308
  });
1115
1309
  }
1116
1310
  //#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
1311
  //#region src/client/PluginListToolbar.tsx
1138
1312
  /**
1139
1313
  * The list-level toolbar: check every installed third-party plugin for a newer
@@ -1181,6 +1355,8 @@ window.__ModuleLoader__.load({
1181
1355
  const [checked, setChecked] = (0, react.useState)(false);
1182
1356
  /** Every third-party row the last check reported, including the applied ones. */
1183
1357
  const [rows, setRows] = (0, react.useState)([]);
1358
+ /** Exact-version offers hidden by the user; the rows remain available for restore. */
1359
+ const [ignored, setIgnored] = (0, react.useState)(() => loadIgnoredUpdates());
1184
1360
  const [applied, setApplied] = (0, react.useState)([]);
1185
1361
  /**
1186
1362
  * Updates this run applied whose new version the running host has not loaded,
@@ -1203,7 +1379,9 @@ window.__ModuleLoader__.load({
1203
1379
  const [restartMode, setRestartMode] = (0, react.useState)(void 0);
1204
1380
  /** Synchronous in-flight mirror of the phase: a click and a keypress can land in one frame. */
1205
1381
  const busyRef = (0, react.useRef)(false);
1206
- const pending = applicableUpdates(rows);
1382
+ const visibleRows = unignoredUpdates(rows, ignored);
1383
+ const ignoredRows = ignoredUpdates(rows, ignored);
1384
+ const pending = applicableUpdates(visibleRows);
1207
1385
  /** Close the flyout on Escape, the shell's own dismissal gesture. */
1208
1386
  (0, react.useEffect)(() => {
1209
1387
  if (panel === "none") return;
@@ -1221,6 +1399,7 @@ window.__ModuleLoader__.load({
1221
1399
  setPhase("checking");
1222
1400
  setError(void 0);
1223
1401
  setRestartMode(void 0);
1402
+ setIgnored(loadIgnoredUpdates());
1224
1403
  checkUpdates().then((items) => {
1225
1404
  const thirdParty = thirdPartyUpdates(items);
1226
1405
  setRows(thirdParty);
@@ -1237,9 +1416,17 @@ window.__ModuleLoader__.load({
1237
1416
  setPhase("idle");
1238
1417
  });
1239
1418
  };
1419
+ const onIgnore = (row) => {
1420
+ if (busyRef.current) return;
1421
+ setIgnored(rememberIgnoredUpdate(ignored, row));
1422
+ };
1423
+ const onRestore = (row) => {
1424
+ if (busyRef.current) return;
1425
+ setIgnored(forgetIgnoredUpdate(ignored, row));
1426
+ };
1240
1427
  const onUpdateAll = () => {
1241
1428
  if (busyRef.current) return;
1242
- const queue = applicableUpdates(rows);
1429
+ const queue = applicableUpdates(unignoredUpdates(rows, ignored));
1243
1430
  if (queue.length === 0) return;
1244
1431
  busyRef.current = true;
1245
1432
  setPhase("updating");
@@ -1334,7 +1521,7 @@ window.__ModuleLoader__.load({
1334
1521
  children: error
1335
1522
  });
1336
1523
  /** What is still pending after a partial run (the applied rows leave the list). */
1337
- const remaining = rows.length;
1524
+ const remaining = visibleRows.length;
1338
1525
  const failedCount = failures.length;
1339
1526
  /**
1340
1527
  * One line for the whole run: the row in flight, what is still pending, and —
@@ -1426,13 +1613,13 @@ window.__ModuleLoader__.load({
1426
1613
  })]
1427
1614
  }, item.id))
1428
1615
  }),
1429
- rows.length === 0 && applied.length === 0 && error === void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
1616
+ visibleRows.length === 0 && applied.length === 0 && error === void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
1430
1617
  className: plugin_manager_module_css_default.hint,
1431
1618
  children: t("noUpdates")
1432
1619
  }),
1433
- rows.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
1620
+ visibleRows.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
1434
1621
  className: plugin_manager_module_css_default.panelList,
1435
- children: rows.map((row) => {
1622
+ children: visibleRows.map((row) => {
1436
1623
  const gate = dshGateOf(row);
1437
1624
  const failure = failures.find((item) => item.id === row.id);
1438
1625
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
@@ -1461,11 +1648,58 @@ window.__ModuleLoader__.load({
1461
1648
  className: plugin_manager_module_css_default.compatBlocked,
1462
1649
  "data-update-row-error": failure.id,
1463
1650
  children: t("updateFailedRow", { reason: failure.error })
1651
+ }),
1652
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
1653
+ type: "button",
1654
+ className: `${plugin_manager_module_css_default.toolbarButton} ${plugin_manager_module_css_default.rowAction}`,
1655
+ "data-update-ignore": row.id,
1656
+ disabled: busy,
1657
+ onClick: () => {
1658
+ onIgnore(row);
1659
+ },
1660
+ children: t("ignoreUpdate")
1464
1661
  })
1465
1662
  ]
1466
1663
  }, row.id);
1467
1664
  })
1468
1665
  }),
1666
+ ignoredRows.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1667
+ "data-ignored-updates": true,
1668
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
1669
+ className: plugin_manager_module_css_default.hint,
1670
+ children: t("ignoredUpdates", { count: String(ignoredRows.length) })
1671
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
1672
+ className: plugin_manager_module_css_default.panelList,
1673
+ children: ignoredRows.map((row) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
1674
+ className: plugin_manager_module_css_default.panelRow,
1675
+ "data-ignored-update-row": row.id,
1676
+ children: [
1677
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1678
+ className: plugin_manager_module_css_default.panelName,
1679
+ children: row.id
1680
+ }),
1681
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
1682
+ className: plugin_manager_module_css_default.panelVersion,
1683
+ children: [
1684
+ row.current,
1685
+ " → ",
1686
+ row.latest
1687
+ ]
1688
+ }),
1689
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
1690
+ type: "button",
1691
+ className: `${plugin_manager_module_css_default.toolbarButton} ${plugin_manager_module_css_default.rowAction}`,
1692
+ "data-update-restore": row.id,
1693
+ disabled: busy,
1694
+ onClick: () => {
1695
+ onRestore(row);
1696
+ },
1697
+ children: t("restoreUpdate")
1698
+ })
1699
+ ]
1700
+ }, row.id))
1701
+ })]
1702
+ }),
1469
1703
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1470
1704
  className: plugin_manager_module_css_default.panelActions,
1471
1705
  children: [pending.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
@@ -1612,6 +1846,10 @@ window.__ModuleLoader__.load({
1612
1846
  "updateFailedUnknown": "宿主没有说明失败原因",
1613
1847
  "updateRestartRequired": "已更新到 {version},需重启 DSH 后生效",
1614
1848
  "updatesPanelTitle": "插件更新",
1849
+ "ignoreUpdate": "忽略此版本",
1850
+ "ignoredUpdate": "已忽略此版本。",
1851
+ "ignoredUpdates": "已忽略 {count} 个版本",
1852
+ "restoreUpdate": "恢复更新",
1615
1853
  "thirdPartyOnly": "只检查第三方插件;官方 @deepseek-ai/ 包随 DSH 本体升级。",
1616
1854
  "restartNow": "立即重启",
1617
1855
  "restarting": "正在重启…",
@@ -1663,6 +1901,7 @@ window.__ModuleLoader__.load({
1663
1901
  "presetGroup": "Agent 预设",
1664
1902
  "presetDefault": "默认",
1665
1903
  "presetBroken": "无法读取该预设的组合:{reason}",
1904
+ "presetSummary": "共 {total} 行,{on} 行已开启",
1666
1905
  "presetRowOn": "已开启",
1667
1906
  "presetRowOff": "已关闭",
1668
1907
  "presetRowConditional": "条件启用:{condition}",
@@ -1693,6 +1932,10 @@ window.__ModuleLoader__.load({
1693
1932
  "updateFailedUnknown": "The host gave no reason",
1694
1933
  "updateRestartRequired": "Updated to {version}; restart DSH for it to take effect",
1695
1934
  "updatesPanelTitle": "Plugin updates",
1935
+ "ignoreUpdate": "Ignore this version",
1936
+ "ignoredUpdate": "This version is ignored.",
1937
+ "ignoredUpdates": "{count} ignored versions",
1938
+ "restoreUpdate": "Restore update",
1696
1939
  "thirdPartyOnly": "Third-party plugins only; @deepseek-ai/ packages upgrade with DSH itself.",
1697
1940
  "restartNow": "Restart now",
1698
1941
  "restarting": "Restarting…",
@@ -1744,6 +1987,7 @@ window.__ModuleLoader__.load({
1744
1987
  "presetGroup": "Agent presets",
1745
1988
  "presetDefault": "Default",
1746
1989
  "presetBroken": "This preset composition cannot be read: {reason}",
1990
+ "presetSummary": "{total} rows, {on} on",
1747
1991
  "presetRowOn": "On",
1748
1992
  "presetRowOff": "Off",
1749
1993
  "presetRowConditional": "Conditional: {condition}",
@@ -2011,7 +2255,7 @@ window.__ModuleLoader__.load({
2011
2255
  /** The building package's version, when the bundle carries it. */
2012
2256
  function bakedVersion() {
2013
2257
  try {
2014
- return "0.4.21";
2258
+ return "0.4.23";
2015
2259
  } catch {
2016
2260
  return;
2017
2261
  }
@@ -2433,7 +2677,8 @@ window.__ModuleLoader__.load({
2433
2677
  exports.createPluginManagerFace = createPluginManagerFace;
2434
2678
  exports.inject = inject;
2435
2679
  return module.exports;
2436
- }
2680
+ },
2681
+ 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:8px;min-width:0;padding-top:12px;display:flex}.ZsMDKq_presetTitle{margin:0;font-size:13px;font-weight:500;line-height:20px}.ZsMDKq_presetList{border:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);border-radius:8px;flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.ZsMDKq_presetCard{min-width:0}.ZsMDKq_presetCard+.ZsMDKq_presetCard{border-top:.5px solid var(--dsw-alias-border-l2)}.ZsMDKq_presetDetails{min-width:0}.ZsMDKq_presetHead{cursor:pointer;border-radius:7px;align-items:center;gap:8px;min-width:0;padding:6px 10px;list-style:none;display:flex}.ZsMDKq_presetHead:hover{background:var(--dsw-alias-interactive-bg-hover)}.ZsMDKq_presetHead: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_presetHead::-webkit-details-marker{display:none}.ZsMDKq_presetName{overflow-wrap:anywhere;font-size:13px;font-weight:500;line-height:20px}.ZsMDKq_presetTag{background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-secondary);border-radius:999px;flex:none;padding:0 6px;font-size:11px;line-height:16px}.ZsMDKq_presetCount{color:var(--dsw-alias-label-tertiary);white-space:nowrap;flex:none;margin-left:auto;font-size:12px;line-height:18px}.ZsMDKq_presetChevron{border-right:1.5px solid var(--dsw-alias-label-tertiary);border-bottom:1.5px solid var(--dsw-alias-label-tertiary);flex:none;width:6px;height:6px;margin:0 2px;transition:transform .12s;transform:rotate(-45deg)}.ZsMDKq_presetDetails[open] .ZsMDKq_presetChevron{transform:rotate(45deg)}.ZsMDKq_presetBody{padding:0 10px 8px 22px}.ZsMDKq_presetRows{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:2px 20px;margin:0;padding:0;list-style:none;display:grid}.ZsMDKq_presetRow{grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:8px;min-width:0;font-size:12px;line-height:18px;display:grid}.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);text-align:right}" } } })
2437
2682
  });
2438
2683
 
2439
2684
  //# sourceMappingURL=client.js.map