@michengai/dsh-codex-ui 0.2.80 → 0.2.81

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/CHANGELOG.md CHANGED
@@ -4,6 +4,27 @@
4
4
 
5
5
  This changelog records the five most recent published releases of DSH Codex UI and its one-click Suite. Earlier changes remain available in the [Git history](https://github.com/MichengAI/dsh-codex-ui/commits/main).
6
6
 
7
+ ## 0.2.81 — 2026-08-24
8
+
9
+ Companion release: `@michengai/dsh-codex-suite@0.1.13`.
10
+
11
+ ### Added
12
+
13
+ - Added an **Update all** action beside Companion management plugins whenever installed plugins have updates available.
14
+ - Kept missing plugins on their existing per-row install path instead of installing them implicitly during a bulk update.
15
+
16
+ ### Reliability and accessibility
17
+
18
+ - Staged every selected package in one Host request and sent a single Desktop hot-update signal after the complete batch, so updating several plugins now reloads the window only once.
19
+ - Preserved individual install and update actions while preventing overlapping requests.
20
+ - Added visible loading feedback, keyboard focus treatment, accessible busy/status announcements, bilingual copy, and regression coverage for the batch selection and endpoint contract.
21
+
22
+ ### Suite 0.1.13
23
+
24
+ - Pinned `@michengai/dsh-codex-ui` to `0.2.81`; all other Suite member pins remain on their currently verified releases.
25
+
26
+ Published packages: [`@michengai/dsh-codex-ui@0.2.81`](https://www.npmjs.com/package/@michengai/dsh-codex-ui/v/0.2.81) and [`@michengai/dsh-codex-suite@0.1.13`](https://www.npmjs.com/package/@michengai/dsh-codex-suite/v/0.1.13).
27
+
7
28
  ## 0.2.80 — 2026-08-23
8
29
 
9
30
  Companion release: `@michengai/dsh-codex-suite@0.1.12`.
@@ -77,13 +98,3 @@ Companion release: `@michengai/dsh-codex-suite@0.1.8`.
77
98
  - Kept the workspace slot mounted across compact and expanded sidebar modes.
78
99
 
79
100
  Release commit: [`b96d5a8`](https://github.com/MichengAI/dsh-codex-ui/commit/b96d5a8).
80
-
81
- ## 0.2.76 — 2026-08-23
82
-
83
- Companion release: `@michengai/dsh-codex-suite@0.1.7`.
84
-
85
- ### Fixed
86
-
87
- - Removed the duplicate drop indicator that could appear while reordering pinned workspaces.
88
-
89
- Release commit: [`e2a38d1`](https://github.com/MichengAI/dsh-codex-ui/commit/e2a38d1).
@@ -4,6 +4,27 @@
4
4
 
5
5
  本日志记录 DSH Codex UI 及其一键 Suite 最近发布的五个版本;更早的变更可查看 [Git 提交历史](https://github.com/MichengAI/dsh-codex-ui/commits/main)。
6
6
 
7
+ ## 0.2.81 — 2026-08-24
8
+
9
+ 配套版本:`@michengai/dsh-codex-suite@0.1.13`。
10
+
11
+ ### 新增
12
+
13
+ - 当已安装插件存在新版本时,在“配套管理插件”标题右侧显示 **全部更新** 操作。
14
+ - 缺失插件继续使用各自的行内安装入口,不会被批量更新隐式安装。
15
+
16
+ ### 可靠性与无障碍
17
+
18
+ - 通过一次 Host 请求登记全部选中版本,并在批次完整写入后只发送一次 Desktop 热更新信号;多个插件更新现在只会重载一次窗口。
19
+ - 保留单插件安装和更新入口,同时阻止重叠请求。
20
+ - 增加可见加载反馈、键盘焦点样式、可访问的忙碌/状态提示、中英文文案,以及批量筛选和接口约束的回归测试。
21
+
22
+ ### Suite 0.1.13
23
+
24
+ - 将 `@michengai/dsh-codex-ui` 固定为 `0.2.81`;其他 Suite 成员继续使用当前已验证版本。
25
+
26
+ 发布包:[`@michengai/dsh-codex-ui@0.2.81`](https://www.npmjs.com/package/@michengai/dsh-codex-ui/v/0.2.81) 与 [`@michengai/dsh-codex-suite@0.1.13`](https://www.npmjs.com/package/@michengai/dsh-codex-suite/v/0.1.13)。
27
+
7
28
  ## 0.2.80 — 2026-08-23
8
29
 
9
30
  配套版本:`@michengai/dsh-codex-suite@0.1.12`。
@@ -77,13 +98,3 @@
77
98
  - 在窄轨态和展开态之间切换时保持工作区插槽挂载。
78
99
 
79
100
  发布提交:[`b96d5a8`](https://github.com/MichengAI/dsh-codex-ui/commit/b96d5a8)。
80
-
81
- ## 0.2.76 — 2026-08-23
82
-
83
- 配套版本:`@michengai/dsh-codex-suite@0.1.7`。
84
-
85
- ### 修复
86
-
87
- - 移除置顶工作区排序时可能重复出现的落点指示线。
88
-
89
- 发布提交:[`e2a38d1`](https://github.com/MichengAI/dsh-codex-ui/commit/e2a38d1)。
package/dist/client.js CHANGED
@@ -3932,7 +3932,7 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
3932
3932
  //#region src/client/AboutSection.tsx
3933
3933
  const endpoint = "/api/michengai/codex-ui/dependencies";
3934
3934
  const stylesheet$2 = `
3935
- .dcu-about{color:var(--dsw-alias-label-primary)}.dcu-about h2{margin:0;font-size:20px;line-height:28px}.dcu-about-intro{margin:6px 0 22px;color:var(--dsw-alias-label-secondary);font-size:13px;line-height:20px}.dcu-about h3{margin:24px 0 8px;font-size:14px;line-height:20px}.dcu-about-features{margin:0;padding-left:20px;color:var(--dsw-alias-label-secondary);font-size:13px;line-height:24px}.dcu-about-dependencies{overflow:hidden;border:1px solid var(--dsw-alias-border-l2);border-radius:10px}.dcu-about-dependency{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px;border-bottom:1px solid var(--dsw-alias-border-l2)}.dcu-about-dependency:last-child{border-bottom:0}.dcu-about-copy{min-width:0;flex:1}.dcu-about-name{font-size:13px;font-weight:600}.dcu-about-package{overflow:hidden;margin-top:2px;color:var(--dsw-alias-label-tertiary);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.dcu-about-status{display:flex;align-items:center;gap:5px;font-size:12px}.dcu-about-status[data-installed=true]{color:var(--dsw-alias-state-success-primary)}.dcu-about-status[data-installed=false]{color:var(--dsw-alias-state-error-primary)}.dcu-about-status[data-update=true]{color:var(--dsw-alias-state-warning-primary)}.dcu-about-install{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--dsw-alias-border-l2);border-radius:7px;padding:6px 9px;background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:12px;cursor:pointer}.dcu-about-install:hover:not(:disabled){background:var(--dsw-specific-menu-item-hover)}.dcu-about-install:disabled{cursor:wait;opacity:.65}.dcu-about-message{margin:10px 0 0;border-radius:8px;padding:9px 10px;background:color-mix(in srgb,var(--dsw-alias-state-business-primary) 12%,transparent);color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}.dcu-about-message[data-error=true]{background:color-mix(in srgb,var(--dsw-alias-state-error-primary) 12%,transparent);color:var(--dsw-alias-state-error-primary)}
3935
+ .dcu-about{color:var(--dsw-alias-label-primary)}.dcu-about h2{margin:0;font-size:20px;line-height:28px}.dcu-about-intro{margin:6px 0 22px;color:var(--dsw-alias-label-secondary);font-size:13px;line-height:20px}.dcu-about h3{margin:24px 0 8px;font-size:14px;line-height:20px}.dcu-about-features{margin:0;padding-left:20px;color:var(--dsw-alias-label-secondary);font-size:13px;line-height:24px}.dcu-about-dependencies-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px}.dcu-about-dependencies-heading h3{margin:0}.dcu-about-dependencies-heading+.dcu-about-intro{margin-bottom:14px}.dcu-about-dependencies{overflow:hidden;border:1px solid var(--dsw-alias-border-l2);border-radius:10px}.dcu-about-dependency{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px;border-bottom:1px solid var(--dsw-alias-border-l2)}.dcu-about-dependency:last-child{border-bottom:0}.dcu-about-copy{min-width:0;flex:1}.dcu-about-name{font-size:13px;font-weight:600}.dcu-about-package{overflow:hidden;margin-top:2px;color:var(--dsw-alias-label-tertiary);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.dcu-about-status{display:flex;align-items:center;gap:5px;font-size:12px}.dcu-about-status[data-installed=true]{color:var(--dsw-alias-state-success-primary)}.dcu-about-status[data-installed=false]{color:var(--dsw-alias-state-error-primary)}.dcu-about-status[data-update=true]{color:var(--dsw-alias-state-warning-primary)}.dcu-about-install{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:32px;border:1px solid var(--dsw-alias-border-l2);border-radius:7px;padding:6px 9px;background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:12px;cursor:pointer}.dcu-about-install:hover:not(:disabled){background:var(--dsw-specific-menu-item-hover)}.dcu-about-install:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}.dcu-about-install:disabled{cursor:wait;opacity:.65}.dcu-about-update-all{min-width:92px}.dcu-about-message{margin:10px 0 0;border-radius:8px;padding:9px 10px;background:color-mix(in srgb,var(--dsw-alias-state-business-primary) 12%,transparent);color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}.dcu-about-message[data-error=true]{background:color-mix(in srgb,var(--dsw-alias-state-error-primary) 12%,transparent);color:var(--dsw-alias-state-error-primary)}
3936
3936
  `;
3937
3937
  function isDependencyStatus(value) {
3938
3938
  if (value === null || typeof value !== "object") return false;
@@ -4030,6 +4030,34 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
4030
4030
  if (alive.current) setInstalling(void 0);
4031
4031
  }
4032
4032
  };
4033
+ const updateAll = async () => {
4034
+ if (installingRef.current !== void 0) return;
4035
+ installingRef.current = "all";
4036
+ setInstalling("all");
4037
+ setMessage(void 0);
4038
+ try {
4039
+ const response = await fetch(`${endpoint}?action=update-all`, { method: "POST" });
4040
+ const payload = await response.json();
4041
+ if (!response.ok || !Array.isArray(payload.dependencies) || !payload.dependencies.every(isDependencyStatus)) throw new Error(typeof payload.error === "string" ? payload.error : t("about.installFailed"));
4042
+ if (!alive.current) return;
4043
+ setDependencies(payload.dependencies);
4044
+ setState("ready");
4045
+ setMessage({
4046
+ error: false,
4047
+ text: payload.restartRequired === false ? t("about.upToDate") : t("about.restartRequired")
4048
+ });
4049
+ } catch (error) {
4050
+ if (!alive.current) return;
4051
+ setMessage({
4052
+ error: true,
4053
+ text: error instanceof Error ? error.message : t("about.installFailed")
4054
+ });
4055
+ } finally {
4056
+ installingRef.current = void 0;
4057
+ if (alive.current) setInstalling(void 0);
4058
+ }
4059
+ };
4060
+ const updateCount = dependencies.filter((dependency) => dependency.installed && dependency.updateAvailable).length;
4033
4061
  const title = (id) => t(`about.dependency.${id}`);
4034
4062
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
4035
4063
  ref: root,
@@ -4054,20 +4082,35 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
4054
4082
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", { children: t("about.feature.navigator") })
4055
4083
  ]
4056
4084
  }),
4057
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: t("about.dependencies") }),
4085
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
4086
+ className: "dcu-about-dependencies-heading",
4087
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: t("about.dependencies") }), state === "ready" && updateCount > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
4088
+ className: "dcu-about-install dcu-about-update-all",
4089
+ type: "button",
4090
+ "aria-busy": installing === "all",
4091
+ disabled: installing !== void 0,
4092
+ onClick: () => {
4093
+ updateAll();
4094
+ },
4095
+ children: [installing === "all" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconLoadingOutline16, { size: 14 }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconDownloadOutline16, { size: 14 }), installing === "all" ? t("about.updatingAll") : t("about.updateAll")]
4096
+ })]
4097
+ }),
4058
4098
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
4059
4099
  className: "dcu-about-intro",
4060
4100
  children: t("about.dependenciesDescription")
4061
4101
  }),
4062
4102
  state === "loading" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
4063
4103
  className: "dcu-about-message",
4104
+ role: "status",
4064
4105
  children: t("about.loading")
4065
4106
  }) : state === "failed" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
4066
4107
  className: "dcu-about-message",
4067
4108
  "data-error": "true",
4109
+ role: "alert",
4068
4110
  children: t("about.statusFailed")
4069
4111
  }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
4070
4112
  className: "dcu-about-dependencies",
4113
+ "aria-busy": installing !== void 0,
4071
4114
  children: dependencies.map((dependency) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("article", {
4072
4115
  className: "dcu-about-dependency",
4073
4116
  children: [
@@ -4106,6 +4149,7 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
4106
4149
  message !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
4107
4150
  className: "dcu-about-message",
4108
4151
  "data-error": message.error,
4152
+ role: message.error ? "alert" : "status",
4109
4153
  children: message.text
4110
4154
  })
4111
4155
  ]
@@ -4289,7 +4333,7 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
4289
4333
  "about.feature.conversation": "保留原生消息、工具调用、输入、权限和模型选择,仅调整容器视觉",
4290
4334
  "about.feature.navigator": "当前会话提供轮次缩略导航,可快速跳转至每一次用户提问",
4291
4335
  "about.dependencies": "配套管理插件",
4292
- "about.dependenciesDescription": "每个配套插件都单独安装和更新,互不影响。可分别检查 Codex UI、专家、技能、归档、IM、定时任务和第三方插件市场。",
4336
+ "about.dependenciesDescription": "每个配套插件都可单独安装和更新,也可一键更新所有可更新项。可分别检查 Codex UI、专家、技能、归档、IM、定时任务和第三方插件市场。",
4293
4337
  "about.loading": "正在读取依赖安装状态…",
4294
4338
  "about.statusFailed": "暂时无法读取依赖安装状态。",
4295
4339
  "about.installed": "已安装",
@@ -4298,6 +4342,9 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
4298
4342
  "about.install": "安装",
4299
4343
  "about.update": "更新",
4300
4344
  "about.installing": "安装中",
4345
+ "about.updateAll": "全部更新",
4346
+ "about.updatingAll": "更新中",
4347
+ "about.upToDate": "所有已安装插件均为最新版本。",
4301
4348
  "about.installFailed": "依赖安装失败,请稍后重试。",
4302
4349
  "about.restartRequired": "正在热更新插件,窗口会自动刷新。",
4303
4350
  "about.dependency.dsh": "DeepSeek Harness",
@@ -4408,7 +4455,7 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
4408
4455
  "about.feature.conversation": "Keeps native messages, tool calls, composer, permissions, and model selection while refining the container visuals",
4409
4456
  "about.feature.navigator": "Navigate directly to each user prompt with the current conversation turn navigator",
4410
4457
  "about.dependencies": "Companion management plugins",
4411
- "about.dependenciesDescription": "Each companion plugin is installed and updated separately. Check Codex UI, expert, skill, archive, IM, scheduled-task, and marketplace plugins on their own.",
4458
+ "about.dependenciesDescription": "Install or update each companion plugin separately, or update every available plugin at once. Check Codex UI, expert, skill, archive, IM, scheduled-task, and marketplace plugins on their own.",
4412
4459
  "about.loading": "Loading dependency status…",
4413
4460
  "about.statusFailed": "Dependency status is temporarily unavailable.",
4414
4461
  "about.installed": "Installed",
@@ -4417,6 +4464,9 @@ header [data-dcu-title-folder] svg,header [data-dcu-title-more] svg{display:bloc
4417
4464
  "about.install": "Install",
4418
4465
  "about.update": "Update",
4419
4466
  "about.installing": "Installing",
4467
+ "about.updateAll": "Update all",
4468
+ "about.updatingAll": "Updating",
4469
+ "about.upToDate": "All installed plugins are up to date.",
4420
4470
  "about.installFailed": "Dependency installation failed. Try again later.",
4421
4471
  "about.restartRequired": "Updating plugins now. The window will refresh automatically.",
4422
4472
  "about.dependency.dsh": "DeepSeek Harness",
package/dist/index.mjs CHANGED
@@ -419,38 +419,74 @@ async function installDependency(id, requestHotUpdate = requestDesktopHotUpdate)
419
419
  if (installing) throw new Error("已有依赖安装正在进行,请等待完成后再试。");
420
420
  installing = true;
421
421
  try {
422
- return await installDependencyLocked(id, requestHotUpdate);
422
+ return await installDependenciesLocked([id], requestHotUpdate);
423
423
  } finally {
424
424
  installing = false;
425
425
  }
426
426
  }
427
- async function installDependencyLocked(id, requestHotUpdate) {
428
- const dependency = managedDependency(id);
429
- if (dependency === void 0) throw new Error("不支持安装该依赖。");
430
- const latestVersion = await npmLatestVersion(dependency.packageName);
431
- if (latestVersion === void 0) throw new Error("无法获取 npm 最新版本,请检查网络或 npm registry 后重试。");
427
+ /** 只挑选已安装且确有新版本的插件,缺失插件仍交给各行的“安装”按钮。 */
428
+ function updatableDependencyIds(statuses) {
429
+ return statuses.filter((status) => status.installed && status.updateAvailable).map((status) => status.id);
430
+ }
431
+ /** 把所有待更新版本一次写入清单,最后只请求一次桌面热更新。 */
432
+ async function updateAllDependencies(requestHotUpdate = requestDesktopHotUpdate) {
433
+ if (installing) throw new Error("已有依赖安装正在进行,请等待完成后再试。");
434
+ installing = true;
435
+ try {
436
+ const current = await dependencyStatuses();
437
+ const ids = updatableDependencyIds(current);
438
+ if (ids.length === 0) return {
439
+ dependencies: current,
440
+ updatedCount: 0
441
+ };
442
+ return {
443
+ dependencies: await installDependenciesLocked(ids, requestHotUpdate),
444
+ updatedCount: ids.length
445
+ };
446
+ } finally {
447
+ installing = false;
448
+ }
449
+ }
450
+ async function installDependenciesLocked(ids, requestHotUpdate) {
451
+ const dependencies = [...new Set(ids)].map((id) => {
452
+ const dependency = managedDependency(id);
453
+ if (dependency === void 0) throw new Error("不支持安装该依赖。");
454
+ return dependency;
455
+ });
432
456
  const declared = await declaredPluginNames();
433
- const target = resolveDshPluginTarget(dependency.packageName, declared);
434
- const targetVersion = target === dependency.packageName ? latestVersion : await npmLatestVersion(target);
435
- if (targetVersion === void 0) throw new Error("无法获取 npm 最新版本,请检查网络或 npm registry 后重试。");
436
- const remove = pluginsToRemoveBeforeInstall(declared, target);
437
- await ensureLatestReleaseAllowed(target, targetVersion);
438
- if (!isOfficialRuntimePackage(target)) await recordDeclaredVersion(target, targetVersion);
439
- await recordPendingUpdate(target, targetVersion);
457
+ const targets = await Promise.all(dependencies.map(async (dependency) => {
458
+ const latestVersion = await npmLatestVersion(dependency.packageName);
459
+ if (latestVersion === void 0) throw new Error("无法获取 npm 最新版本,请检查网络或 npm registry 后重试。");
460
+ const packageName = resolveDshPluginTarget(dependency.packageName, declared);
461
+ const version = packageName === dependency.packageName ? latestVersion : await npmLatestVersion(packageName);
462
+ if (version === void 0) throw new Error("无法获取 npm 最新版本,请检查网络或 npm registry 后重试。");
463
+ return {
464
+ packageName,
465
+ version
466
+ };
467
+ }));
468
+ const remove = [...new Set(targets.flatMap((target) => pluginsToRemoveBeforeInstall(declared, target.packageName)))];
469
+ for (const target of targets) {
470
+ await ensureLatestReleaseAllowed(target.packageName, target.version);
471
+ if (!isOfficialRuntimePackage(target.packageName)) await recordDeclaredVersion(target.packageName, target.version);
472
+ await recordPendingUpdate(target.packageName, target.version);
473
+ }
440
474
  if (remove.length > 0) await runDshPlugin(["remove", ...remove]);
441
475
  if (requestHotUpdate()) return dependencyStatuses();
442
- try {
443
- await runDshPlugin([
444
- "add",
445
- `${target}@${targetVersion}`,
446
- "--registry=https://registry.npmjs.org/"
447
- ]);
448
- } catch (error) {
449
- if (isRestartableInstallError(error)) return dependencyStatuses();
450
- throw error;
476
+ for (const target of targets) {
477
+ try {
478
+ await runDshPlugin([
479
+ "add",
480
+ `${target.packageName}@${target.version}`,
481
+ "--registry=https://registry.npmjs.org/"
482
+ ]);
483
+ } catch (error) {
484
+ if (isRestartableInstallError(error)) return dependencyStatuses();
485
+ throw error;
486
+ }
487
+ if (await installedPackageVersion(target.packageName) !== target.version) return dependencyStatuses();
488
+ await removePendingUpdate(target.packageName);
451
489
  }
452
- if (await installedPackageVersion(target) !== targetVersion) return dependencyStatuses();
453
- await removePendingUpdate(target);
454
490
  return dependencyStatuses();
455
491
  }
456
492
  //#endregion
@@ -662,6 +698,25 @@ function apply(ctx) {
662
698
  response.end(JSON.stringify({ error: "已拒绝跨站请求。" }));
663
699
  return;
664
700
  }
701
+ if (url.searchParams.get("action") === "update-all") {
702
+ let restartAfterResponse = false;
703
+ const { dependencies, updatedCount } = await updateAllDependencies(() => {
704
+ restartAfterResponse = typeof process.send === "function";
705
+ return restartAfterResponse;
706
+ });
707
+ response.writeHead(200, {
708
+ "content-type": "application/json; charset=utf-8",
709
+ "cache-control": "no-store"
710
+ });
711
+ response.end(JSON.stringify({
712
+ dependencies,
713
+ restartRequired: updatedCount > 0
714
+ }));
715
+ if (restartAfterResponse) setTimeout(() => {
716
+ requestDesktopHotUpdate();
717
+ }, 150).unref?.();
718
+ return;
719
+ }
665
720
  let restartAfterResponse = false;
666
721
  const dependencies = await installDependency(url.searchParams.get("dependency"), () => {
667
722
  restartAfterResponse = typeof process.send === "function";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-codex-ui",
3
- "version": "0.2.80",
3
+ "version": "0.2.81",
4
4
  "description": "以 Codex 风格重构 DSH Web 侧栏的独立客户端插件",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -53,11 +53,6 @@
53
53
  "platform": "web"
54
54
  }
55
55
  },
56
- "scripts": {
57
- "build": "tsc --noEmit && tsdown",
58
- "typecheck": "tsc --noEmit",
59
- "test": "pnpm run typecheck && vitest run tests/client-runtime.integration.spec.ts && tsdown && node tests/run-assertions.mjs"
60
- },
61
56
  "peerDependencies": {
62
57
  "@deepseek-ai/cordis": ">=4.0.1 <5.0.0",
63
58
  "@deepseek-ai/dsh-client-locale": ">=0.1.0-rc.0 <0.2.0",
@@ -103,5 +98,10 @@
103
98
  "tsx": "^4.22.4",
104
99
  "typescript": "^6.0.3",
105
100
  "vitest": "^4.1.8"
101
+ },
102
+ "scripts": {
103
+ "build": "tsc --noEmit && tsdown",
104
+ "typecheck": "tsc --noEmit",
105
+ "test": "pnpm run typecheck && vitest run tests/client-runtime.integration.spec.ts && tsdown && node tests/run-assertions.mjs"
106
106
  }
107
- }
107
+ }