@michengai/dsh-codex-ui 2.4.3 → 2.4.5

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
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.4.5] - 2026-11-25
4
+
5
+ - **Improve Workspace Section Recovery and Real-Time Synchronization**:
6
+ - Enhanced workspace section loading to automatically restore existing section headers upon mid-session login or credential refresh without requiring a page reload;
7
+ - Refined the automatic save mechanism when quickly rearranging workspace sections, ensuring the newest order and membership always persist reliably;
8
+ - Strengthened coordination with the latest host connection authentication services for consistent stability across host environments.
9
+
10
+ ## [2.4.4] - 2026-11-24
11
+
12
+ - **Full Compatibility with DeepSeek Harness 0.2.3 Series**:
13
+ - Upgraded core compatibility baseline to seamlessly support DeepSeek Harness 0.2.3 and Cordis 4.2.0 runtime;
14
+ - Fixed an issue where custom dragged input width on new conversations did not consistently inherit across session transitions, ensuring width preferences stay seamlessly applied;
15
+ - Fixed an issue where background status probes and composer prediction completions could be blocked under strict host network admission policies, ensuring instant ghost suggestions.
16
+ - **Enhanced Modular Sidebar and Menu Compatibility**:
17
+ - Fully adapted to the latest modular sidebar accordion expansion, ensuring additional panel items open and switch cleanly;
18
+ - Refined input suggestion menu padding and attachment thumbnail spacing across light/dark themes and responsive viewports for consistent visual aesthetics.
19
+
3
20
  ## [2.4.3] - 2026-11-22
4
21
 
5
22
  - **Improve Prediction Ghost Text Visibility and Layering (Issue #110)**:
@@ -1,5 +1,22 @@
1
1
  # 更新日志
2
2
 
3
+ ## [2.4.5] - 2026-11-25
4
+
5
+ - **工作区分区恢复与实时同步体验优化**:
6
+ - 优化工作区分区加载机制,会话中途登录或授权刷新后自动恢复已有分区列表,无需手动刷新页面;
7
+ - 优化快速连续拖拽调整工作区分组时的自动保存机制,确保最新调整的分组归属始终完整保存不遗漏;
8
+ - 增强与宿主最新连接鉴权机制的协同,提升在各类宿主环境下的运行稳定性。
9
+
10
+ ## [2.4.4] - 2026-11-24
11
+
12
+ - **全面适配 DeepSeek Harness 0.2.3 最新版本**:
13
+ - 深度兼容 DeepSeek Harness 0.2.3(含 Cordis 4.2.0)最新版本,全面支持最新宿主的生命周期与路由架构,保障界面各项功能稳定流畅;
14
+ - 解决最新宿主下新建对话时输入框拖拽宽度可能无法正确继承的问题,确保左右拖拽调整的宽度在新建页与已有会话中无缝同步生效;
15
+ - 解决最新宿主网络安全鉴权策略更新后,插件探活与智能预测请求可能遭遇未授权拦截的问题,保证输入补全提示稳定即时响应。
16
+ - **优化侧边栏新版本兼容与交互体验**:
17
+ - 全面兼容最新宿主侧边栏的折叠收纳手风琴机制,支持在侧边栏扩展更多面板时平滑展开与切换;
18
+ - 优化深浅主题及移动端视口下建议菜单与附件缩略图的排版间距,保证视觉呼吸感与一致性。
19
+
3
20
  ## [2.4.3] - 2026-11-22
4
21
 
5
22
  - **提升输入预测幽灵建议文本的层级显示效果(Issue #110)**:
package/README.de.md CHANGED
@@ -142,7 +142,7 @@ Direkte Aktionen an jeder Konversation: Anheften, Umbenennen, Als ungelesen/gele
142
142
  ## Host-Kompatibilität
143
143
 
144
144
  * **Unterstützte Generationen**: Vollständige DeepSeek Harness `0.2.x`-Reihe (`>=0.2.2-rc.1 <0.3.0-0`);
145
- * **Geprüfte Builds**: Alle `0.2.2` Release Candidates (`0.2.2-rc.1`–`0.2.2-rc.5`);
145
+ * **Geprüfte Builds**: Alle `0.2.2` Release Candidates (`0.2.2-rc.1`–`0.2.2-rc.5`) übernehmen die Prüfung aus 2.4.4; `0.2.3` (`0.2.3-alpha.2`) ist mit dem aktuellen Authentifizierungs-Fix geprüft;
146
146
  * **Laufzeit-Anforderungen**: Node.js `^22.19.0 || >=24.0.0`, pnpm `^11.0.0`.
147
147
 
148
148
  > ⚠️ **Wichtiger Hinweis**: Aktivieren Sie Codex UI und `ds-bot` nicht gleichzeitig, da beide Modifikationen an der Seitenleiste vornehmen.
package/README.en.md CHANGED
@@ -147,7 +147,7 @@ Quick actions directly on session rows: Pin, Rename, Unread marker, Archive, For
147
147
  ## Host Compatibility
148
148
 
149
149
  * **Supported Generations**: Full DeepSeek Harness `0.2.x` line (`>=0.2.2-rc.1 <0.3.0-0`);
150
- * **Verified Builds**: Supports every `0.2.2` RC (`0.2.2-rc.1`–`0.2.2-rc.5`); intermediate alphas are not part of the support matrix;
150
+ * **Verified Builds**: Every `0.2.2` RC (`0.2.2-rc.1`–`0.2.2-rc.5`) carries over the verification from 2.4.4; `0.2.3` (`0.2.3-alpha.2`) is verified with the current authentication fix;
151
151
  * **Runtime Requirements**: Node.js `^22.19.0 || >=24.0.0`, pnpm `^11.0.0`.
152
152
 
153
153
  > ⚠️ **Notice**: Do not enable Codex UI and `ds-bot` concurrently. Both redesign sidebar and session slots with overlapping layout mechanics. Disable or uninstall one before enabling the other.
package/README.es.md CHANGED
@@ -142,7 +142,7 @@ Acciones inmediatas en cada conversación: Fijar, Renombrar, Marcar como no leí
142
142
  ## Compatibilidad del Host
143
143
 
144
144
  * **Versiones Soportadas**: Familia DeepSeek Harness `0.2.x` (`>=0.2.2-rc.1 <0.3.0-0`);
145
- * **Compilaciones Verificadas**: Todos los RC de `0.2.2` (`0.2.2-rc.1`–`0.2.2-rc.5`);
145
+ * **Compilaciones Verificadas**: Todos los RC de `0.2.2` (`0.2.2-rc.1`–`0.2.2-rc.5`) mantienen la verificación de 2.4.4; `0.2.3` (`0.2.3-alpha.2`) está verificado con la corrección de autenticación actual;
146
146
  * **Requisitos de Entorno**: Node.js `^22.19.0 || >=24.0.0`, pnpm `^11.0.0`.
147
147
 
148
148
  > ⚠️ **Aviso**: No active simultáneamente Codex UI y `ds-bot`. Ambos rediseñan ranuras de la barra lateral con mecánicas que pueden solaparse.
package/README.fr.md CHANGED
@@ -142,7 +142,7 @@ Actions rapides sur chaque session : Épingler, Renommer, Marquer non lu/lu, Arc
142
142
  ## Compatibilité avec l'Hôte
143
143
 
144
144
  * **Générations Prises en Charge** : Famille DeepSeek Harness `0.2.x` (`>=0.2.2-rc.1 <0.3.0-0`) ;
145
- * **Versions Validées** : Toutes les versions RC de `0.2.2` (`0.2.2-rc.1`–`0.2.2-rc.5`) ;
145
+ * **Versions Validées** : Toutes les versions RC de `0.2.2` (`0.2.2-rc.1`–`0.2.2-rc.5`) reprennent la validation de 2.4.4 ; `0.2.3` (`0.2.3-alpha.2`) est validé avec le correctif d'authentification actuel ;
146
146
  * **Prérequis d'Exécution** : Node.js `^22.19.0 || >=24.0.0`, pnpm `^11.0.0`.
147
147
 
148
148
  > ⚠️ **Attention** : N'activez pas simultanément Codex UI et `ds-bot`. Les deux extensions modifient les emplacements de la barre latérale avec des risques d'interférence.
package/README.ja.md CHANGED
@@ -142,7 +142,7 @@ Ambient Ground の拡散光グラデーションを採用した Codex Light 配
142
142
  ## ホスト互換性
143
143
 
144
144
  * **サポート対象世代**:DeepSeek Harness `0.2.x` 全系(`>=0.2.2-rc.1 <0.3.0-0`);
145
- * **検証済みビルド**:すべての `0.2.2` RC(`0.2.2-rc.1`~`0.2.2-rc.5`);
145
+ * **検証済みビルド**:すべての `0.2.2` RC(`0.2.2-rc.1`~`0.2.2-rc.5`)は 2.4.4 の検証結果を引き継ぎ、`0.2.3`(`0.2.3-alpha.2`)は現在の認証修正で検証済みです;
146
146
  * **実行要件**:Node.js `^22.19.0 || >=24.0.0`、pnpm `^11.0.0`。
147
147
 
148
148
  > ⚠️ **注意事項**:Codex UI と `ds-bot` を同時に有効化しないでください。サイドバーやセッションスロットの再設計が競合します。一方を有効にする前に、もう一方を無効化またはアンインストールしてください。
package/README.md CHANGED
@@ -147,7 +147,7 @@
147
147
  ## 宿主兼容性
148
148
 
149
149
  * **支持范围**:DeepSeek Harness `0.2.x` 全系列(`>=0.2.2-rc.1 <0.3.0-0`);
150
- * **实测验证**:支持矩阵为全部 `0.2.2` RC(`0.2.2-rc.1`~`0.2.2-rc.5`);中间版本阿尔法不在支持范围内;
150
+ * **实测验证**:`0.2.2` RC 全系列(`0.2.2-rc.1`~`0.2.2-rc.5`)沿用 2.4.4 的实测结论,`0.2.3`(`0.2.3-alpha.2`)为当前认证修复后的实测版本;
151
151
  * **环境要求**:Node.js `^22.19.0 || >=24.0.0`,pnpm `^11.0.0`。
152
152
 
153
153
  > ⚠️ **互斥提示**:请勿同时启用 Codex UI 与 `ds-bot`。两者均重塑侧栏与主会话插槽,功能重叠。启用前请先停用或卸载另一个。
package/README.pt.md CHANGED
@@ -142,7 +142,7 @@ Ações imediatas na lista de conversas: Fixar, Renomear, Marcar como não lido/
142
142
  ## Compatibilidade com o Host
143
143
 
144
144
  * **Gerações Suportadas**: Linha completa DeepSeek Harness `0.2.x` (`>=0.2.2-rc.1 <0.3.0-0`);
145
- * **Compilações Verificadas**: Todas as versões Release Candidate `0.2.2` (`0.2.2-rc.1`–`0.2.2-rc.5`);
145
+ * **Compilações Verificadas**: Todas as versões Release Candidate `0.2.2` (`0.2.2-rc.1`–`0.2.2-rc.5`) mantêm a verificação do 2.4.4; `0.2.3` (`0.2.3-alpha.2`) está verificado com a correção de autenticação atual;
146
146
  * **Requisitos de Execução**: Node.js `^22.19.0 || >=24.0.0`, pnpm `^11.0.0`.
147
147
 
148
148
  > ⚠️ **Aviso**: Não habilite o Codex UI e o `ds-bot` simultaneamente, pois ambos alteram os slots da barra lateral com potenciais conflitos.
package/README.ru.md CHANGED
@@ -142,7 +142,7 @@
142
142
  ## Совместимость с хостом
143
143
 
144
144
  * **Поддерживаемые поколения**: Семейство DeepSeek Harness `0.2.x` (`>=0.2.2-rc.1 <0.3.0-0`);
145
- * **Проверенные сборки**: Все релиз-кандидаты `0.2.2` (`0.2.2-rc.1`–`0.2.2-rc.5`);
145
+ * **Проверенные сборки**: Все релиз-кандидаты `0.2.2` (`0.2.2-rc.1`–`0.2.2-rc.5`) сохраняют результат проверки из 2.4.4; `0.2.3` (`0.2.3-alpha.2`) проверен с текущим исправлением аутентификации;
146
146
  * **Требования к окружению**: Node.js `^22.19.0 || >=24.0.0`, pnpm `^11.0.0`.
147
147
 
148
148
  > ⚠️ **Предупреждение**: Не включайте одновременно Codex UI и `ds-bot`, так как они оба модифицируют боковую панель.
package/README.zh-CN.md CHANGED
@@ -147,7 +147,7 @@
147
147
  ## 宿主兼容性
148
148
 
149
149
  * **支持范围**:DeepSeek Harness `0.2.x` 全系列(`>=0.2.2-rc.1 <0.3.0-0`);
150
- * **实测验证**:支持矩阵为全部 `0.2.2` RC(`0.2.2-rc.1`~`0.2.2-rc.5`);中间版本阿尔法不在支持范围内;
150
+ * **实测验证**:`0.2.2` RC 全系列(`0.2.2-rc.1`~`0.2.2-rc.5`)沿用 2.4.4 的实测结论,`0.2.3`(`0.2.3-alpha.2`)为当前认证修复后的实测版本;
151
151
  * **环境要求**:Node.js `^22.19.0 || >=24.0.0`,pnpm `^11.0.0`。
152
152
 
153
153
  > ⚠️ **互斥提示**:请勿同时启用 Codex UI 与 `ds-bot`。两者均重塑侧栏与主会话插槽,功能重叠。启用前请先停用或卸载另一个。
package/lib/client.js CHANGED
@@ -10787,13 +10787,15 @@ html[data-dcu-mobile-web] [data-shortcut-modal="settings"][role="dialog"] {
10787
10787
  }
10788
10788
  for (const root of document.querySelectorAll("[data-phase=hero]")) {
10789
10789
  if (mounted.has(root) || !root.querySelector("[data-conversation-scroll]")) continue;
10790
+ const body = root.querySelector("[class*=\"_body\"]:has([data-conversation-scroll])") ?? root.querySelector("[class*=\"_body\"]");
10790
10791
  const clamp = (value) => Math.min(Math.max(640, value), Math.max(640, root.clientWidth - 176));
10791
10792
  const current = () => {
10792
- const raw = getComputedStyle(root).getPropertyValue("--dsh-chat-user-width") || getComputedStyle(root).getPropertyValue("--dsh-chat-content-width");
10793
+ const raw = body?.style.getPropertyValue("--dsh-chat-user-width") || getComputedStyle(root).getPropertyValue("--dsh-chat-user-width") || getComputedStyle(root).getPropertyValue("--dsh-chat-content-width");
10793
10794
  return clamp(parseFloat(raw) || 640);
10794
10795
  };
10795
10796
  const publish = (width, save) => {
10796
10797
  const value = clamp(width);
10798
+ body?.style.setProperty("--dsh-chat-user-width", `${value}px`);
10797
10799
  root.style.setProperty("--dsh-chat-user-width", `${value}px`);
10798
10800
  root.style.setProperty("--dsh-chat-content-width", `${value}px`);
10799
10801
  if (save) try {
@@ -10803,6 +10805,7 @@ html[data-dcu-mobile-web] [data-shortcut-modal="settings"][role="dialog"] {
10803
10805
  }
10804
10806
  };
10805
10807
  const initialWidth = current();
10808
+ body?.style.setProperty("--dsh-chat-user-width", `${initialWidth}px`);
10806
10809
  root.style.setProperty("--dsh-chat-user-width", `${initialWidth}px`);
10807
10810
  root.style.setProperty("--dsh-chat-content-width", `${initialWidth}px`);
10808
10811
  const handles = ["left", "right"].map((side) => {
@@ -11335,7 +11338,7 @@ html[data-dcu-mobile-web] [data-shortcut-modal="settings"][role="dialog"] {
11335
11338
  const cycleRef = react.default.useRef(null);
11336
11339
  const currentRef = react.default.useRef("");
11337
11340
  const request = react.default.useCallback(async (mode, draftText) => {
11338
- if (sessionId === void 0 || sessionId === null) return;
11341
+ if (!sessionId || typeof sessionId !== "string" || !sessionId.trim()) return;
11339
11342
  if (typeof document !== "undefined" && document.hidden) return;
11340
11343
  abortRef.current?.abort();
11341
11344
  const controller = new AbortController();
@@ -11763,6 +11766,7 @@ html[data-dcu-mobile-web] [data-shortcut-modal="settings"][role="dialog"] {
11763
11766
  /** 新建页底部输入布局;保留宿主节点、插槽与 active 会话底部信息。 */
11764
11767
  const NEW_CONVERSATION_STYLE = `
11765
11768
  [data-phase=hero]:has([data-conversation-scroll]){container:dcu-new-conversation / inline-size}
11769
+ [data-phase=hero] [class*="_body"]{--dsh-chat-user-width:inherit}
11766
11770
  [data-phase=hero] [data-conversation-scroll][class]{--dsh-composer-side-clearance:16px;justify-content:flex-start;scrollbar-gutter:stable both-edges}
11767
11771
  [data-phase=hero] [data-composer-seat]{flex:1 0 auto;min-height:100%}
11768
11772
  [data-phase=hero] [data-composer-seat]>:has([class*="_composerHero"]){display:flex;flex:1;flex-direction:column}
@@ -13665,19 +13669,32 @@ html[data-dcu-mobile-web] [data-shortcut-modal="settings"][role="dialog"] {
13665
13669
  } else for (let index = 0; index < desired.length; index += 1) if (order[index] !== desired[index]) move(desired[index], order[index]);
13666
13670
  return moves;
13667
13671
  }
13672
+ //#endregion
13673
+ //#region src/client/sidebar/sections/store.ts
13674
+ /**
13675
+ * 工作区分区的客户端存取层。
13676
+ *
13677
+ * 分区结构与成员归属存在**宿主**(`/api/michengai/dsh-codex-ui/sections`),
13678
+ * 浏览器只用 localStorage 记折叠、展开这类视图偏好——与 Codex 的分层一致
13679
+ * (宿主 DB 存 `thread_sections` / `thread_section_id`,Electron atom state 存折叠与顺序偏好)。
13680
+ */
13681
+ /** 保留失败状态,让侧栏区分访问被拒绝和宿主暂时不可用。 */
13682
+ var SectionsLoadError = class extends Error {
13683
+ status;
13684
+ constructor(status) {
13685
+ super(`Sections store unavailable: HTTP ${status}`);
13686
+ this.status = status;
13687
+ }
13688
+ };
13668
13689
  let transport = {
13669
13690
  async load() {
13670
- try {
13671
- const response = await fetch(CODEX_UI_API_ENDPOINTS.sections, {
13672
- credentials: "same-origin",
13673
- headers: { accept: "application/json" }
13674
- });
13675
- if (!response.ok) return null;
13676
- const text = await response.text();
13677
- return text.trim() === "" ? null : text;
13678
- } catch {
13679
- return null;
13680
- }
13691
+ const response = await fetch(CODEX_UI_API_ENDPOINTS.sections, {
13692
+ credentials: "same-origin",
13693
+ headers: { accept: "application/json" }
13694
+ });
13695
+ if (!response.ok) throw new SectionsLoadError(response.status);
13696
+ const text = await response.text();
13697
+ return text.trim() === "" ? null : text;
13681
13698
  },
13682
13699
  async save(body) {
13683
13700
  try {
@@ -13695,7 +13712,7 @@ html[data-dcu-mobile-web] [data-shortcut-modal="settings"][role="dialog"] {
13695
13712
  /**
13696
13713
  * 读取宿主里的分区文档。
13697
13714
  *
13698
- * @returns 原始 JSON 文本;读取失败时返回 `null`,调用方按默认结构启动,不影响侧栏渲染。
13715
+ * @returns 原始 JSON 文本;仅成功读取空内容时返回 `null`,读取失败时抛出异常。
13699
13716
  */
13700
13717
  async function loadSectionsDocument() {
13701
13718
  return transport.load();
@@ -13703,14 +13720,16 @@ html[data-dcu-mobile-web] [data-shortcut-modal="settings"][role="dialog"] {
13703
13720
  let pending;
13704
13721
  let timer;
13705
13722
  let inFlight;
13723
+ let retried = false;
13706
13724
  async function flush() {
13707
13725
  const body = pending;
13708
13726
  pending = void 0;
13709
13727
  if (body === void 0) return;
13710
- if (!await transport.save(body) && pending === void 0) {
13728
+ if (!await transport.save(body) && !retried && pending === void 0) {
13729
+ retried = true;
13711
13730
  pending = body;
13712
13731
  scheduleSave();
13713
- }
13732
+ } else retried = false;
13714
13733
  }
13715
13734
  /** 立刻把待写内容发出去(切换页面、卸载时使用)。 */
13716
13735
  async function flushSectionsSave() {
@@ -13726,7 +13745,10 @@ html[data-dcu-mobile-web] [data-shortcut-modal="settings"][role="dialog"] {
13726
13745
  if (timer !== void 0) window.clearTimeout(timer);
13727
13746
  timer = window.setTimeout(() => {
13728
13747
  timer = void 0;
13729
- if (inFlight !== void 0) return;
13748
+ if (inFlight !== void 0) {
13749
+ if (pending !== void 0) scheduleSave();
13750
+ return;
13751
+ }
13730
13752
  inFlight = flush().finally(() => {
13731
13753
  inFlight = void 0;
13732
13754
  });
@@ -13739,6 +13761,7 @@ html[data-dcu-mobile-web] [data-shortcut-modal="settings"][role="dialog"] {
13739
13761
  */
13740
13762
  function scheduleSectionsSave(body) {
13741
13763
  pending = body;
13764
+ retried = false;
13742
13765
  scheduleSave();
13743
13766
  }
13744
13767
  //#endregion
@@ -14313,19 +14336,53 @@ body[data-dcu-drag-blocked='true'] [class*="dropAfter"]::after{display:none !imp
14313
14336
  }
14314
14337
  };
14315
14338
  const domOrder = () => collectProjectBlocks(list ?? document, list).map((block) => block.workspaceId);
14339
+ let hostReloadAttempts = 0;
14340
+ const MAX_HOST_RELOAD_ATTEMPTS = 5;
14341
+ /** 登录 / 权限态可能在会话中途变化:401 时低频再试几次,避免「登录后分区永久消失」。 */
14342
+ let authReloadAttempts = 0;
14343
+ const MAX_AUTH_RELOAD_ATTEMPTS = 3;
14344
+ const AUTH_RELOAD_DELAY = 2e4;
14316
14345
  /**
14317
14346
  * 从宿主导入分区文档。
14318
14347
  *
14319
- * 宿主读不到(接口未就绪、首次运行)时按默认结构启动:只有「置顶 + 项目」两个内置分区,
14348
+ * 宿主返回 200 且内容为空(首次运行)时按默认结构启动:只有「置顶 + 项目」两个内置分区,
14320
14349
  * 首次同步会把宿主现有工作区顺序采纳进「项目」,与以前的全新安装行为一致。
14350
+ * 若宿主未就绪抛出异常(503、网络错误等):不标记 sectionsLoaded,不触发 persist() 存盘,
14351
+ * 避免启动竞态下用空结构冲掉用户已有的真实分区,并在指数退避(最多 5 次)后安排恢复尝试。
14352
+ * 401 另走一条低频重试(最多 3 次、间隔 20s),覆盖「登录态在会话中途变化」的场景;
14353
+ * 403 / 404 这类不会自行恢复的客户端状态直接放弃,由页面重新挂载时再加载。
14321
14354
  */
14322
14355
  async function loadStateFromHost() {
14323
14356
  let raw = null;
14324
14357
  try {
14325
14358
  raw = await loadSectionsDocument();
14326
- } catch {
14327
- raw = null;
14359
+ } catch (error) {
14360
+ const status = error instanceof SectionsLoadError ? error.status : 0;
14361
+ if (status === 401) {
14362
+ if (!disposed && !sectionsLoaded) {
14363
+ if (authReloadAttempts < MAX_AUTH_RELOAD_ATTEMPTS) {
14364
+ authReloadAttempts++;
14365
+ window.setTimeout(() => {
14366
+ if (!disposed && !sectionsLoaded) loadStateFromHost();
14367
+ }, AUTH_RELOAD_DELAY);
14368
+ } else console.warn("[Codex UI] 工作区分区需要登录后才能加载,已停止自动重试。");
14369
+ }
14370
+ return;
14371
+ }
14372
+ if (status !== 0 && status < 500) return;
14373
+ if (!disposed && !sectionsLoaded) {
14374
+ hostReloadAttempts++;
14375
+ if (hostReloadAttempts <= MAX_HOST_RELOAD_ATTEMPTS) {
14376
+ const delay = Math.min(2e3 * Math.pow(2, hostReloadAttempts - 1), 3e4);
14377
+ window.setTimeout(() => {
14378
+ if (!disposed && !sectionsLoaded) loadStateFromHost();
14379
+ }, delay);
14380
+ } else console.warn("[Codex UI] 工作区分区宿主连接持续不可用,已停止后台恢复重试。");
14381
+ }
14382
+ return;
14328
14383
  }
14384
+ hostReloadAttempts = 0;
14385
+ authReloadAttempts = 0;
14329
14386
  state = normalizeSections(parseSections(raw) ?? { sections: [] });
14330
14387
  committedState = state;
14331
14388
  sectionsLoaded = true;
@@ -1,4 +1,5 @@
1
1
  import { r as CODEX_UI_API_ENDPOINTS, t as isSubPluginDisabledOnDisk$1 } from "./profile-resolver-DSHfL3KW.mjs";
2
+ import { t as captureScopedConnection } from "./host-services-k-J3TuxA.mjs";
2
3
  //#region src/composer-prediction-format.ts
3
4
  const PREDICTION_CUES = {
4
5
  next: "Predict the user's next message.",
@@ -83,6 +84,24 @@ function apply$1(ctx, config) {
83
84
  const options = resolveOptions(config);
84
85
  const cache = /* @__PURE__ */ new Map();
85
86
  const inflight = /* @__PURE__ */ new Set();
87
+ let injectedSessions;
88
+ if (typeof ctx.inject === "function") try {
89
+ ctx.inject(["sessions"], (sessCtx) => {
90
+ injectedSessions = sessCtx.sessions ?? (typeof sessCtx.get === "function" ? sessCtx.get("sessions") : void 0);
91
+ if (typeof sessCtx.on === "function") sessCtx.on("dispose", () => {
92
+ injectedSessions = void 0;
93
+ });
94
+ });
95
+ } catch {}
96
+ const scopedConnection = captureScopedConnection(ctx);
97
+ const servicesFallback = {
98
+ get sessions() {
99
+ return injectedSessions;
100
+ },
101
+ get connection() {
102
+ return scopedConnection();
103
+ }
104
+ };
86
105
  const getWebServer = () => ctx.webServer ?? ctx.get?.("webServer");
87
106
  ctx.effect(() => () => {
88
107
  for (const controller of inflight) controller.abort();
@@ -95,7 +114,8 @@ function apply$1(ctx, config) {
95
114
  return ws.register({
96
115
  kind: "exact",
97
116
  path: ENDPOINT,
98
- handler: (request, response) => serveJson(ctx, options, cache, inflight, request, response)
117
+ auth: "anonymous",
118
+ handler: (request, response) => serveJson(ctx, options, cache, inflight, request, response, servicesFallback)
99
119
  });
100
120
  });
101
121
  ctx.effect(() => {
@@ -104,7 +124,8 @@ function apply$1(ctx, config) {
104
124
  return ws.register({
105
125
  kind: "exact",
106
126
  path: STREAM_ENDPOINT,
107
- handler: (request, response) => serveStream(ctx, options, cache, inflight, request, response)
127
+ auth: "anonymous",
128
+ handler: (request, response) => serveStream(ctx, options, cache, inflight, request, response, servicesFallback)
108
129
  });
109
130
  });
110
131
  }
@@ -131,9 +152,9 @@ function resolveOptions(config) {
131
152
  function textOption(value, maximum) {
132
153
  return typeof value === "string" && value.length <= maximum ? value.trim() : "";
133
154
  }
134
- async function serveJson(ctx, options, cache, inflight, request, response) {
155
+ async function serveJson(ctx, options, cache, inflight, request, response, servicesFallback) {
135
156
  try {
136
- const plan = await planRequest(ctx, request, response);
157
+ const plan = await planRequest(ctx, request, response, servicesFallback);
137
158
  if (plan === null) return;
138
159
  if (plan.error !== void 0) {
139
160
  respond(response, plan.status, {
@@ -163,16 +184,18 @@ async function serveJson(ctx, options, cache, inflight, request, response) {
163
184
  });
164
185
  }
165
186
  } catch (error) {
166
- respond(response, 500, {
187
+ const reason = describeError(error);
188
+ ctx.logger?.warn?.("[Codex UI] 预测处理异常:%s", reason);
189
+ respond(response, 200, {
167
190
  suggestion: null,
168
191
  suggestions: [],
169
- reason: describeError(error)
192
+ reason
170
193
  });
171
194
  }
172
195
  }
173
- async function serveStream(ctx, options, cache, inflight, request, response) {
196
+ async function serveStream(ctx, options, cache, inflight, request, response, servicesFallback) {
174
197
  try {
175
- const plan = await planRequest(ctx, request, response);
198
+ const plan = await planRequest(ctx, request, response, servicesFallback);
176
199
  if (plan === null) return;
177
200
  if (plan.error !== void 0) {
178
201
  respond(response, plan.status, {
@@ -215,24 +238,31 @@ async function serveStream(ctx, options, cache, inflight, request, response) {
215
238
  closeStream(response);
216
239
  }
217
240
  } catch (error) {
241
+ const reason = describeError(error);
242
+ ctx.logger?.warn?.("[Codex UI] 预测流处理异常:%s", reason);
218
243
  if (response.headersSent === true) closeStream(response);
219
- else respond(response, 500, {
244
+ else respond(response, 200, {
220
245
  suggestion: null,
221
246
  suggestions: [],
222
- reason: describeError(error)
247
+ reason
223
248
  });
224
249
  }
225
250
  }
226
- function getService(ctx, name) {
251
+ function getService(ctx, name, fallback) {
227
252
  try {
228
253
  if (typeof ctx?.get === "function") {
229
254
  const svc = ctx.get(name);
230
255
  if (svc !== void 0) return svc;
231
256
  }
232
- return ctx?.[name];
233
- } catch {
234
- return;
235
- }
257
+ } catch {}
258
+ try {
259
+ const reflectSvc = ctx?.reflect?.get?.(name, false);
260
+ if (reflectSvc !== void 0) return reflectSvc;
261
+ } catch {}
262
+ try {
263
+ if (ctx?.[name] !== void 0) return ctx[name];
264
+ } catch {}
265
+ return fallback;
236
266
  }
237
267
  /** Short, safe reason text for a client that only displays nothing. */
238
268
  function describeError(error) {
@@ -243,14 +273,28 @@ function describeError(error) {
243
273
  * Read and validate one request body, resolving the live Session it names.
244
274
  * @returns `null` when the response was already written, a plan, or an error.
245
275
  */
246
- async function planRequest(ctx, request, response) {
247
- const connection = getService(ctx, "connection");
248
- const admission = connection?.admit ? connection.admit(request) : { peer: { principal: { kind: "owner" } } };
249
- if (admission && "rejection" in admission) return {
250
- status: admission.rejection,
251
- error: admission.rejection === 401 ? "unauthorized" : "forbidden"
276
+ async function planRequest(ctx, request, response, servicesFallback) {
277
+ const connection = servicesFallback?.connection ?? getService(ctx, "connection");
278
+ let admission;
279
+ try {
280
+ admission = connection?.admit?.(request);
281
+ } catch (error) {
282
+ ctx.logger?.warn?.("[Codex UI] 预测请求认证异常:%s", describeError(error));
283
+ return {
284
+ status: 503,
285
+ error: "authentication-unavailable"
286
+ };
287
+ }
288
+ if (!admission || admission.rejection === 503) return {
289
+ status: 503,
290
+ error: "authentication-unavailable"
291
+ };
292
+ if (admission.rejection === 401) return {
293
+ status: 401,
294
+ error: "unauthorized"
252
295
  };
253
- if ((admission?.peer?.principal?.kind ?? "owner") !== "owner") return {
296
+ const peer = admission.peer;
297
+ if (admission.rejection !== void 0 || peer?.principal?.kind !== "owner") return {
254
298
  status: 403,
255
299
  error: "forbidden"
256
300
  };
@@ -288,11 +332,14 @@ async function planRequest(ctx, request, response) {
288
332
  status: 400,
289
333
  error: "missing-session"
290
334
  };
291
- const sessions = getService(ctx, "sessions");
292
- if (!sessions || typeof sessions.get !== "function") return {
293
- status: 503,
294
- error: "no-sessions-service"
295
- };
335
+ const sessions = getService(ctx, "sessions", servicesFallback?.sessions);
336
+ if (!sessions || typeof sessions.get !== "function") {
337
+ ctx.logger?.warn?.("[Codex UI] 预测请求跳过:未找到有效的 sessions 服务。");
338
+ return {
339
+ status: 200,
340
+ error: "no-sessions-service"
341
+ };
342
+ }
296
343
  const session = sessions.get(sessionId);
297
344
  if (session === void 0) return {
298
345
  status: 200,
@@ -885,6 +932,7 @@ function apply(ctx, config) {
885
932
  const disposeStatus = webServer.register({
886
933
  kind: "exact",
887
934
  path: statusEndpoint,
935
+ auth: "anonymous",
888
936
  handler: (_request, response) => {
889
937
  const disabled = isSubPluginDisabledOnDisk("codex-ui-composer", void 0, ctx);
890
938
  response.writeHead(200, {
@@ -900,6 +948,7 @@ function apply(ctx, config) {
900
948
  const disposeModels = webServer.register({
901
949
  kind: "exact",
902
950
  path: CODEX_UI_API_ENDPOINTS.composerModels,
951
+ auth: "anonymous",
903
952
  handler: async (_request, response) => {
904
953
  try {
905
954
  const providers = await collectModelCatalog(ctx);
@@ -571,6 +571,7 @@ function apply(ctx) {
571
571
  const dispose = webServer.register({
572
572
  kind: "prefix",
573
573
  path: endpoint,
574
+ auth: "anonymous",
574
575
  handler
575
576
  });
576
577
  return () => {
@@ -0,0 +1,25 @@
1
+ //#region src/host-services.ts
2
+ /** 新宿主的 admit 会访问关联认证服务;仅此子作用域依赖它,旧宿主不受启动门控。 */
3
+ function captureScopedConnection(ctx) {
4
+ let connection;
5
+ ctx.inject?.(["connection", "connection.authentication"], (authCtx) => {
6
+ authCtx.effect(() => {
7
+ connection = authCtx.get("connection");
8
+ return () => {
9
+ connection = void 0;
10
+ };
11
+ });
12
+ });
13
+ return () => connection;
14
+ }
15
+ function requireService(ctx, key, method) {
16
+ const service = ctx.get(key);
17
+ if (service === null || typeof service !== "object" || typeof service[method] !== "function") throw new Error(`michengai-codex-ui 需要宿主服务 “${key}.${String(method)}”`);
18
+ return service;
19
+ }
20
+ /** 在唯一的宿主边界校验服务能力;宿主 API 变更时立即失败,不会静默返回 503。 */
21
+ function hostServices(ctx) {
22
+ return { webServer: requireService(ctx, "webServer", "register") };
23
+ }
24
+ //#endregion
25
+ export { hostServices as n, captureScopedConnection as t };
package/lib/index.d.mts CHANGED
@@ -1,4 +1,24 @@
1
1
  import { Context } from "@deepseek-ai/cordis";
2
+ //#region src/host-services.d.ts
3
+ type HttpRequest = {
4
+ method?: string;
5
+ url?: string;
6
+ /** Node 原生请求头(小写键名),用于跨站请求判定。 */
7
+ headers?: Record<string, string | string[] | undefined>;
8
+ [Symbol.asyncIterator]?: () => AsyncIterator<Uint8Array | string>;
9
+ };
10
+ type ConnectionServiceLike = {
11
+ requestRejection?: (request: {
12
+ headers?: HttpRequest['headers'];
13
+ }) => 401 | 403 | undefined;
14
+ admit?: (request: {
15
+ headers?: HttpRequest['headers'];
16
+ }) => {
17
+ rejection?: 401 | 403 | 503;
18
+ peer?: unknown;
19
+ } | undefined;
20
+ };
21
+ //#endregion
2
22
  //#region src/index.d.ts
3
23
  /**
4
24
  * composer 子插件被停用时,由主插件补一个只读状态兜底端点。
@@ -22,8 +42,28 @@ declare function publicDependencyError(error: unknown): string;
22
42
  declare class RequestBodyTooLargeError extends Error {}
23
43
  /** 有界读取 Node HTTP body;偏好接口只接受很小的 JSON。 */
24
44
  declare function readRequestBody(request: HostRequest, maxBytes?: number): Promise<string>;
45
+ type HostResponse = {
46
+ writeHead(status: number, headers?: Record<string, string>): void;
47
+ end(body?: string): void;
48
+ };
49
+ type AuthenticationStatus = 401 | 403 | 503;
50
+ type AuthenticationErrorBody = (status: AuthenticationStatus, message: string) => Record<string, unknown>;
51
+ /**
52
+ * 解析可用于校验业务请求的连接服务。
53
+ *
54
+ * @internal 仅供用例直接验收宿主契约,不属于本包的公开 API。
55
+ */
56
+ declare function resolveConnectionService(ctx: Context, injectedConn?: ConnectionServiceLike): ConnectionServiceLike | undefined;
57
+ /**
58
+ * 所有业务 REST 依赖 connection >=0.1.2-rc.1 的 Host/Origin/Fetch Metadata 与登录检查。
59
+ * 必须在读取请求体及执行副作用前调用;不得将 undefined 以外的拒绝结果当作放行。
60
+ * 发布包信任边界由 tests/business-rest-auth.assert.ts 的真实宿主契约用例验证。
61
+ *
62
+ * @internal 仅供用例直接验收宿主契约,不属于本包的公开 API。
63
+ */
64
+ declare function authenticateBusinessRequest(ctx: Context, request: HostRequest, response: HostResponse, errorBody?: AuthenticationErrorBody, peer?: unknown, localConnection?: ConnectionServiceLike): boolean;
25
65
  declare const inject: string[];
26
66
  /** 提供不泄露地址、命令和凭证的连接器目录。 */
27
67
  declare function apply(ctx: Context): void;
28
68
  //#endregion
29
- export { RequestBodyTooLargeError, apply, inject, publicDependencyError, readRequestBody, registerComposerStatusFallback };
69
+ export { type ConnectionServiceLike, RequestBodyTooLargeError, apply, authenticateBusinessRequest, inject, publicDependencyError, readRequestBody, registerComposerStatusFallback, resolveConnectionService };
package/lib/index.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  import { n as resolveCurrentProfile, r as CODEX_UI_API_ENDPOINTS, t as isSubPluginDisabledOnDisk } from "./profile-resolver-DSHfL3KW.mjs";
2
+ import { n as hostServices, t as captureScopedConnection } from "./host-services-k-J3TuxA.mjs";
2
3
  import { existsSync, mkdirSync, readFileSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
3
4
  import { readFile } from "node:fs/promises";
4
5
  import { homedir } from "node:os";
@@ -544,17 +545,6 @@ async function installDependenciesLocked(ids, runtime) {
544
545
  }
545
546
  }
546
547
  //#endregion
547
- //#region src/host-services.ts
548
- function requireService(ctx, key, method) {
549
- const service = ctx.get(key);
550
- if (service === null || typeof service !== "object" || typeof service[method] !== "function") throw new Error(`michengai-codex-ui 需要宿主服务 “${key}.${String(method)}”`);
551
- return service;
552
- }
553
- /** 在唯一的宿主边界校验服务能力;宿主 API 变更时立即失败,不会静默返回 503。 */
554
- function hostServices(ctx) {
555
- return { webServer: requireService(ctx, "webServer", "register") };
556
- }
557
- //#endregion
558
548
  //#region src/sections-store.ts
559
549
  /**
560
550
  * 工作区分区的宿主侧存储。
@@ -674,6 +664,7 @@ function registerComposerStatusFallback(ctx) {
674
664
  return hostServices(ctx).webServer.register({
675
665
  kind: "exact",
676
666
  path: CODEX_UI_API_ENDPOINTS.composer,
667
+ auth: "anonymous",
677
668
  handler: async (request, response) => {
678
669
  if (request.method && request.method !== "GET") {
679
670
  response.writeHead(405, {
@@ -722,11 +713,24 @@ async function readRequestBody(request, maxBytes = 32768) {
722
713
  return Buffer.concat(chunks).toString("utf8");
723
714
  }
724
715
  /**
716
+ * 解析可用于校验业务请求的连接服务。
717
+ *
718
+ * @internal 仅供用例直接验收宿主契约,不属于本包的公开 API。
719
+ */
720
+ function resolveConnectionService(ctx, injectedConn) {
721
+ if (injectedConn && (typeof injectedConn.admit === "function" || typeof injectedConn.requestRejection === "function")) return injectedConn;
722
+ const connection = ctx.get?.("connection");
723
+ if (connection && (typeof connection.admit === "function" || typeof connection.requestRejection === "function")) return connection;
724
+ }
725
+ /**
725
726
  * 所有业务 REST 依赖 connection >=0.1.2-rc.1 的 Host/Origin/Fetch Metadata 与登录检查。
726
727
  * 必须在读取请求体及执行副作用前调用;不得将 undefined 以外的拒绝结果当作放行。
727
728
  * 发布包信任边界由 tests/business-rest-auth.assert.ts 的真实宿主契约用例验证。
729
+ *
730
+ * @internal 仅供用例直接验收宿主契约,不属于本包的公开 API。
728
731
  */
729
- function authenticateBusinessRequest(ctx, request, response, errorBody = (_status, message) => ({ error: message })) {
732
+ function authenticateBusinessRequest(ctx, request, response, errorBody = (_status, message) => ({ error: message }), peer, localConnection) {
733
+ if (peer) return true;
730
734
  const reject = (status, message) => {
731
735
  response.writeHead(status, {
732
736
  "content-type": "application/json; charset=utf-8",
@@ -736,13 +740,20 @@ function authenticateBusinessRequest(ctx, request, response, errorBody = (_statu
736
740
  return false;
737
741
  };
738
742
  try {
739
- const connection = ctx.get("connection");
740
- if (typeof connection?.requestRejection !== "function") {
741
- ctx.logger.warn("Codex UI 业务 REST 认证不可用:缺少 connection.requestRejection。");
743
+ const connection = resolveConnectionService(ctx, localConnection);
744
+ if (!connection || typeof connection.requestRejection !== "function" && typeof connection.admit !== "function") {
745
+ ctx.logger.warn("Codex UI 业务 REST 认证不可用:缺少 connection 认证接口。");
742
746
  return reject(503, "宿主认证服务暂不可用。");
743
747
  }
744
- const rejection = connection.requestRejection(request);
745
- if (rejection !== void 0) return reject(rejection, rejection === 401 ? "请先登录 DSH。" : "已拒绝不可信或跨站请求。");
748
+ let rejection;
749
+ if (typeof connection.admit === "function") {
750
+ const admission = connection.admit(request);
751
+ if (admission && typeof admission === "object") {
752
+ if ("rejection" in admission && admission.rejection !== void 0) rejection = admission.rejection;
753
+ else if (!("peer" in admission) || !admission.peer) rejection = 403;
754
+ } else rejection = 503;
755
+ } else if (typeof connection.requestRejection === "function") rejection = connection.requestRejection(request);
756
+ if (rejection !== void 0) return reject(rejection, rejection === 401 ? "请先登录 DSH。" : rejection === 503 ? "宿主认证服务暂不可用。" : "已拒绝不可信或跨站请求。");
746
757
  return true;
747
758
  } catch (error) {
748
759
  const reason = error instanceof Error ? `${error.name}: ${error.message}` : typeof error;
@@ -757,6 +768,7 @@ const inject = [
757
768
  ];
758
769
  /** 提供不泄露地址、命令和凭证的连接器目录。 */
759
770
  function apply(ctx) {
771
+ const scopedConnection = captureScopedConnection(ctx);
760
772
  const host = hostServices(ctx);
761
773
  ctx.effect(() => {
762
774
  if (typeof ctx.on !== "function") return () => {};
@@ -774,8 +786,9 @@ function apply(ctx) {
774
786
  const disposeDependencies = host.webServer.register({
775
787
  kind: "exact",
776
788
  path: dependenciesEndpoint,
777
- handler: async (request, response) => {
778
- if (!authenticateBusinessRequest(ctx, request, response)) return;
789
+ auth: "anonymous",
790
+ handler: async (request, response, peer) => {
791
+ if (!authenticateBusinessRequest(ctx, request, response, void 0, peer, scopedConnection())) return;
779
792
  const url = new URL(request.url ?? "/", "http://localhost");
780
793
  try {
781
794
  if (request.method === "GET") {
@@ -852,8 +865,9 @@ function apply(ctx) {
852
865
  const disposeSections = host.webServer.register({
853
866
  kind: "exact",
854
867
  path: CODEX_UI_API_ENDPOINTS.sections,
855
- handler: async (request, response) => {
856
- if (!authenticateBusinessRequest(ctx, request, response)) return;
868
+ auth: "anonymous",
869
+ handler: async (request, response, peer) => {
870
+ if (!authenticateBusinessRequest(ctx, request, response, void 0, peer, scopedConnection())) return;
857
871
  const json = (status, body) => {
858
872
  response.writeHead(status, {
859
873
  "content-type": "application/json; charset=utf-8",
@@ -913,4 +927,4 @@ function apply(ctx) {
913
927
  }, "michengai-codex-ui: catalogs");
914
928
  }
915
929
  //#endregion
916
- export { RequestBodyTooLargeError, apply, inject, publicDependencyError, readRequestBody, registerComposerStatusFallback };
930
+ export { RequestBodyTooLargeError, apply, authenticateBusinessRequest, inject, publicDependencyError, readRequestBody, registerComposerStatusFallback, resolveConnectionService };
@@ -15,6 +15,7 @@ function apply(ctx) {
15
15
  const dispose = webServer.register({
16
16
  kind: "exact",
17
17
  path: endpoint,
18
+ auth: "anonymous",
18
19
  handler: (_request, response) => {
19
20
  const disabled = isSubPluginDisabledOnDisk("codex-ui-settings-skin", void 0, ctx);
20
21
  response.writeHead(200, {
@@ -24,6 +24,7 @@ function apply(ctx) {
24
24
  const dispose = webServer.register({
25
25
  kind: "exact",
26
26
  path: endpoint,
27
+ auth: "anonymous",
27
28
  handler: (_request, response) => {
28
29
  const disabled = isSubPluginDisabledOnDisk(SUB_PLUGIN_ID, void 0, ctx);
29
30
  response.writeHead(200, {
@@ -24,6 +24,7 @@ function apply(ctx) {
24
24
  const dispose = webServer.register({
25
25
  kind: "exact",
26
26
  path: endpoint,
27
+ auth: "anonymous",
27
28
  handler: (_request, response) => {
28
29
  const disabled = isSubPluginDisabledOnDisk(SUB_PLUGIN_ID, void 0, ctx);
29
30
  response.writeHead(200, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-codex-ui",
3
- "version": "2.4.3",
3
+ "version": "2.4.5",
4
4
  "description": "DSH Codex UI — 为 DeepSeek Harness 提供极速历史召回、全屏设置皮肤、原生物理毛玻璃换肤、模块化侧栏与桌面原生窗口菜单 · Input enhancement, settings skin, native glass theme, modular sidebar, and desktop titlebar menu for DSH",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -153,33 +153,33 @@
153
153
  "react-dom": "^18.2.0"
154
154
  },
155
155
  "devDependencies": {
156
- "@deepseek-ai/cordis": "4.1.0",
157
- "@deepseek-ai/dsh-api-session-controller": "0.2.2-rc.5",
158
- "@deepseek-ai/dsh-api-workspace-controller": "0.2.2-rc.5",
159
- "@deepseek-ai/dsh-attachment": "0.2.2-rc.5",
160
- "@deepseek-ai/dsh-client-connection": "0.2.2-rc.5",
161
- "@deepseek-ai/dsh-client-locale": "0.2.2-rc.5",
162
- "@deepseek-ai/dsh-client-store": "0.2.2-rc.5",
163
- "@deepseek-ai/dsh-client-test-runtime": "0.2.2-rc.5",
164
- "@deepseek-ai/dsh-client-ui-chat": "0.2.2-rc.5",
165
- "@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.5",
166
- "@deepseek-ai/dsh-client-ui-input-trigger": "0.2.2-rc.5",
167
- "@deepseek-ai/dsh-client-ui-layout": "0.2.2-rc.5",
168
- "@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.5",
169
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.5",
170
- "@deepseek-ai/dsh-client-ui-session": "0.2.2-rc.5",
171
- "@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.5",
172
- "@deepseek-ai/dsh-client-ui-settings-general": "0.2.2-rc.5",
173
- "@deepseek-ai/dsh-client-ui-sidebar": "0.2.2-rc.5",
174
- "@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.5",
175
- "@deepseek-ai/dsh-client-ui-theme": "0.2.2-rc.5",
176
- "@deepseek-ai/dsh-client-ui-workspace": "0.2.2-rc.5",
177
- "@deepseek-ai/dsh-scope": "0.2.2-rc.5",
178
- "@deepseek-ai/dsh-session": "0.2.2-rc.5",
179
- "@deepseek-ai/dsh-subagent": "0.2.2-rc.5",
180
- "@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.5",
181
- "@deepseek-ai/dsh-util-workspace-path": "0.2.2-rc.5",
182
- "@deepseek-ai/dsh-workspace": "0.2.2-rc.5",
156
+ "@deepseek-ai/cordis": "4.2.0-alpha.1",
157
+ "@deepseek-ai/dsh-api-session-controller": "0.2.3-alpha.2",
158
+ "@deepseek-ai/dsh-api-workspace-controller": "0.2.3-alpha.2",
159
+ "@deepseek-ai/dsh-attachment": "0.2.3-alpha.2",
160
+ "@deepseek-ai/dsh-client-connection": "0.2.3-alpha.2",
161
+ "@deepseek-ai/dsh-client-locale": "0.2.3-alpha.2",
162
+ "@deepseek-ai/dsh-client-store": "0.2.3-alpha.2",
163
+ "@deepseek-ai/dsh-client-test-runtime": "0.2.3-alpha.2",
164
+ "@deepseek-ai/dsh-client-ui-chat": "0.2.3-alpha.2",
165
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.3-alpha.2",
166
+ "@deepseek-ai/dsh-client-ui-input-trigger": "0.2.3-alpha.2",
167
+ "@deepseek-ai/dsh-client-ui-layout": "0.2.3-alpha.2",
168
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.3-alpha.2",
169
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.3-alpha.2",
170
+ "@deepseek-ai/dsh-client-ui-session": "0.2.3-alpha.2",
171
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.3-alpha.2",
172
+ "@deepseek-ai/dsh-client-ui-settings-general": "0.2.3-alpha.2",
173
+ "@deepseek-ai/dsh-client-ui-sidebar": "0.2.3-alpha.2",
174
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.3-alpha.2",
175
+ "@deepseek-ai/dsh-client-ui-theme": "0.2.3-alpha.2",
176
+ "@deepseek-ai/dsh-client-ui-workspace": "0.2.3-alpha.2",
177
+ "@deepseek-ai/dsh-scope": "0.2.3-alpha.2",
178
+ "@deepseek-ai/dsh-session": "0.2.3-alpha.2",
179
+ "@deepseek-ai/dsh-subagent": "0.2.3-alpha.2",
180
+ "@deepseek-ai/dsh-typert-protocol": "0.2.3-alpha.2",
181
+ "@deepseek-ai/dsh-util-workspace-path": "0.2.3-alpha.2",
182
+ "@deepseek-ai/dsh-workspace": "0.2.3-alpha.2",
183
183
  "@types/jsdom": "^30.0.0",
184
184
  "@types/node": "^26.0.0",
185
185
  "@types/react": "~18.3.1",