@michengai/dsh-codex-ui 2.2.7 → 2.3.0

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.3.0] - 2026-11-19
4
+
5
+ - **Host Compatibility Baseline Upgraded to DeepSeek Harness 0.2.2 Series**:
6
+ - Fully adapted to the latest DeepSeek Harness 0.2.2 versions (0.2.2-rc.1 through 0.2.2-rc.5), aligning with the newest host full-screen settings workbench and native sidebar right-click menu experiences;
7
+ - Raised minimum supported host version to 0.2.2-rc.1, dropping legacy support for 0.2.0, 0.2.1, and older versions; removed outdated fallback logic to optimize startup and rendering performance on modern hosts.
8
+
3
9
  ## [2.2.7] - 2026-11-17
4
10
 
5
11
  - **Workspace Header Create Section Button & Inline Insertion (Issue #105)**:
@@ -1,5 +1,11 @@
1
1
  # 更新日志
2
2
 
3
+ ## [2.3.0] - 2026-11-19
4
+
5
+ - **宿主兼容性基线升级至 DeepSeek Harness 0.2.2 全系列**:
6
+ - 深度适配 DeepSeek Harness 0.2.2 最新版本(0.2.2-rc.1 ~ 0.2.2-rc.5),全面对齐最新宿主的全屏设置工作台与侧栏原生右键交互体验;
7
+ - 最低支持版本提升至 0.2.2-rc.1,0.2.0 与 0.2.1 及更早的历史版本不再受支持;移除了旧版遗留兼容回退逻辑,提升插件在最新宿主下的启动速度与界面渲染流畅度。
8
+
3
9
  ## [2.2.7] - 2026-11-17
4
10
 
5
11
  - **侧栏工作区顶栏新增新建分区按钮与就近插入(Issue #105)**:
package/README.de.md CHANGED
@@ -141,8 +141,8 @@ Direkte Aktionen an jeder Konversation: Anheften, Umbenennen, Als ungelesen/gele
141
141
 
142
142
  ## Host-Kompatibilität
143
143
 
144
- * **Unterstützte Generationen**: Vollständige DeepSeek Harness `0.2.x`-Reihe (`>=0.2.0-rc.1 <0.3.0-0`);
145
- * **Geprüfte Builds**: Alle `0.2.x` Release Candidates (`0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`–`0.2.1-rc.5`, `0.2.2-rc.1`–`0.2.2-rc.3`);
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`);
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
@@ -146,8 +146,8 @@ Quick actions directly on session rows: Pin, Rename, Unread marker, Archive, For
146
146
 
147
147
  ## Host Compatibility
148
148
 
149
- * **Supported Generations**: Full DeepSeek Harness `0.2.x` line (`>=0.2.0-rc.1 <0.3.0-0`);
150
- * **Verified Builds**: Supports every `0.2.x` RC (`0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`–`0.2.1-rc.5`, `0.2.2-rc.1`–`0.2.2-rc.3`); intermediate alphas are not part of the support matrix;
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;
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
@@ -141,8 +141,8 @@ Acciones inmediatas en cada conversación: Fijar, Renombrar, Marcar como no leí
141
141
 
142
142
  ## Compatibilidad del Host
143
143
 
144
- * **Versiones Soportadas**: Familia DeepSeek Harness `0.2.x` (`>=0.2.0-rc.1 <0.3.0-0`);
145
- * **Compilaciones Verificadas**: Todos los RC de `0.2.x` (`0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`–`0.2.1-rc.5`, `0.2.2-rc.1`–`0.2.2-rc.3`);
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`);
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
@@ -141,8 +141,8 @@ Actions rapides sur chaque session : Épingler, Renommer, Marquer non lu/lu, Arc
141
141
 
142
142
  ## Compatibilité avec l'Hôte
143
143
 
144
- * **Générations Prises en Charge** : Famille DeepSeek Harness `0.2.x` (`>=0.2.0-rc.1 <0.3.0-0`) ;
145
- * **Versions Validées** : Toutes les versions RC de `0.2.x` (`0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`–`0.2.1-rc.5`, `0.2.2-rc.1`–`0.2.2-rc.3`) ;
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`) ;
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
@@ -141,8 +141,8 @@ Ambient Ground の拡散光グラデーションを採用した Codex Light 配
141
141
 
142
142
  ## ホスト互換性
143
143
 
144
- * **サポート対象世代**:DeepSeek Harness `0.2.x` 全系(`>=0.2.0-rc.1 <0.3.0-0`);
145
- * **検証済みビルド**:すべての `0.2.x` RC(`0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`~`0.2.1-rc.5`, `0.2.2-rc.1`~`0.2.2-rc.3`);
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`);
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
@@ -146,8 +146,8 @@
146
146
 
147
147
  ## 宿主兼容性
148
148
 
149
- * **支持范围**:DeepSeek Harness `0.2.x` 全系列(`>=0.2.0-rc.1 <0.3.0-0`);
150
- * **实测验证**:支持矩阵为全部 `0.2.x` RC(`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-rc.1`~`0.2.1-rc.5`、`0.2.2-rc.1`~`0.2.2-rc.3`);中间版本阿尔法不在支持范围内;
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`);中间版本阿尔法不在支持范围内;
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
@@ -141,8 +141,8 @@ Ações imediatas na lista de conversas: Fixar, Renomear, Marcar como não lido/
141
141
 
142
142
  ## Compatibilidade com o Host
143
143
 
144
- * **Gerações Suportadas**: Linha completa DeepSeek Harness `0.2.x` (`>=0.2.0-rc.1 <0.3.0-0`);
145
- * **Compilações Verificadas**: Todas as versões Release Candidate `0.2.x` (`0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`–`0.2.1-rc.5`, `0.2.2-rc.1`–`0.2.2-rc.3`);
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`);
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
@@ -141,8 +141,8 @@
141
141
 
142
142
  ## Совместимость с хостом
143
143
 
144
- * **Поддерживаемые поколения**: Семейство DeepSeek Harness `0.2.x` (`>=0.2.0-rc.1 <0.3.0-0`);
145
- * **Проверенные сборки**: Все релиз-кандидаты `0.2.x` (`0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`–`0.2.1-rc.5`, `0.2.2-rc.1`–`0.2.2-rc.3`);
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`);
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
@@ -146,8 +146,8 @@
146
146
 
147
147
  ## 宿主兼容性
148
148
 
149
- * **支持范围**:DeepSeek Harness `0.2.x` 全系列(`>=0.2.0-rc.1 <0.3.0-0`);
150
- * **实测验证**:支持矩阵为全部 `0.2.x` RC(`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-rc.1`~`0.2.1-rc.5`、`0.2.2-rc.1`~`0.2.2-rc.3`);中间版本阿尔法不在支持范围内;
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`);中间版本阿尔法不在支持范围内;
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
@@ -324,7 +324,7 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card {
324
324
  },
325
325
  {
326
326
  attribute: "data-dsh-glass-details",
327
- selector: "[class*=\"rightbarCol\"] [data-sidebar-right-panel], [class*=\"detailsCol\"] [class*=\"root\"]",
327
+ selector: "[class*=\"rightbarCol\"] [data-sidebar-right-panel]",
328
328
  first: true
329
329
  },
330
330
  {
@@ -8045,21 +8045,12 @@ html[data-platform="darwin"]:not([data-fullscreen]) [data-shortcut-modal="settin
8045
8045
  background: var(--dsw-alias-bg-layer-2, #18181b) !important;
8046
8046
  }
8047
8047
 
8048
- [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
8049
- background: var(--dsw-alias-bg-layer-2, #18181b) !important;
8050
- }
8051
-
8052
8048
  /* 浅色模式全局兜底:浅底高对比度规范,绝不允许残留或回退暗黑色 */
8053
8049
  body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"],
8054
8050
  html[data-ds-theme-source="light"] [data-shortcut-modal="settings"] {
8055
8051
  background: var(--dsw-alias-bg-base, var(--dsw-static-neutral-bluish-00, #ffffff)) !important;
8056
8052
  }
8057
8053
 
8058
- body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav),
8059
- html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
8060
- background: var(--dsw-alias-bg-layer-1, var(--dsw-static-neutral-bluish-00, #ffffff)) !important;
8061
- }
8062
-
8063
8054
  /* 玻璃质感/原版兼容排版模式(Compat) */
8064
8055
  html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"] {
8065
8056
  background: var(--dsw-alias-bg-base, #151517) !important;
@@ -8068,7 +8059,7 @@ html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"
8068
8059
  }
8069
8060
 
8070
8061
  html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"] > nav,
8071
- html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"] {
8062
+ html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"] > [class*="navTitle"] {
8072
8063
  background: color-mix(
8073
8064
  in srgb,
8074
8065
  var(--dsw-specific-sidebar-fill, #181825) 85%,
@@ -8080,12 +8071,6 @@ html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"
8080
8071
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05) !important;
8081
8072
  }
8082
8073
 
8083
- html[data-dsh-glass]:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
8084
- background: var(--dsw-alias-bg-base, #151517) !important;
8085
- backdrop-filter: none !important;
8086
- -webkit-backdrop-filter: none !important;
8087
- }
8088
-
8089
8074
  /* 云母悬浮模式(Mica Mode):设置面板全面升华为与首页一致的悬浮双岛体系 */
8090
8075
  html[data-dsh-glass-float] body > [role="presentation"]:has(> [data-shortcut-modal="settings"]) {
8091
8076
  background-color: transparent !important;
@@ -8111,57 +8096,12 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"] {
8111
8096
  -webkit-backdrop-filter: none !important;
8112
8097
  }
8113
8098
 
8114
- /* 左侧导航悬浮岛:与首页侧边栏严格对齐几何形态、12px外边距、16px圆角与微高光 */
8115
- html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > nav {
8116
- box-sizing: border-box !important;
8117
- width: calc(var(--dcu-settings-nav-width, 280px) - 24px) !important;
8118
- min-width: calc(var(--dcu-settings-nav-width, 280px) - 24px) !important;
8119
- max-width: calc(var(--dcu-settings-nav-width, 280px) - 24px) !important;
8120
- margin: 8px 12px 12px 12px !important;
8121
- height: calc(100% - 20px) !important;
8122
- max-height: calc(100% - 20px) !important;
8123
- border-radius: 16px !important;
8124
- border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
8125
- box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
8126
- background: var(--dsw-alias-bg-layer-2, var(--dsh-glass-card, #18181b)) !important;
8127
- backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
8128
- -webkit-backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
8129
- overflow: hidden !important;
8130
- }
8131
-
8132
- /* 右侧工作台悬浮岛:独立大圆角卡片,浅色为纯净微光白,深色为深邃灰,与首页悬浮实体完全一致 */
8133
- html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
8134
- margin: 8px 12px 12px 0 !important;
8135
- height: calc(100% - 20px) !important;
8136
- max-height: calc(100% - 20px) !important;
8137
- border-radius: 16px !important;
8138
- border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
8139
- box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
8140
- background: var(--dsw-alias-bg-layer-2, var(--dsw-alias-bg-layer-1, #18181b)) !important;
8141
- backdrop-filter: none !important;
8142
- -webkit-backdrop-filter: none !important;
8143
- overflow: hidden !important;
8144
- }
8145
-
8146
- /* 云母模式下收敛顶部工具栏与内容区 padding,消除脱节大空隙 */
8147
- html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child {
8148
- height: 48px !important;
8149
- min-height: 48px !important;
8150
- padding: 0 24px !important;
8151
- background: var(--dsw-alias-bg-layer-2, var(--dsw-alias-bg-layer-1, #18181b)) !important;
8152
- }
8153
-
8154
- html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) {
8155
- padding: 16px 32px 48px !important;
8156
- background: var(--dsw-alias-bg-layer-2, var(--dsw-alias-bg-layer-1, #18181b)) !important;
8157
- }
8158
-
8159
8099
  html[data-platform="darwin"] [data-shortcut-modal="settings"] > nav {
8160
8100
  background: var(--dsw-specific-sidebar-fill, transparent) !important;
8161
8101
  }
8162
8102
 
8163
8103
  /* 顶部标题与搜索区插槽容器 */
8164
- [data-shortcut-modal="settings"] > nav > :first-child {
8104
+ [data-shortcut-modal="settings"] > [class*="navTitle"] {
8165
8105
  padding: 0 !important;
8166
8106
  display: flex !important;
8167
8107
  flex-direction: column !important;
@@ -8276,8 +8216,7 @@ button.dcu-settings-back-btn:hover,
8276
8216
  }
8277
8217
 
8278
8218
  /* 导航项列表容器 */
8279
- [data-shortcut-modal="settings"] > nav [class*="navList"],
8280
- [data-shortcut-modal="settings"] > nav > :nth-child(2) {
8219
+ [data-shortcut-modal="settings"] > nav [class*="navList"] {
8281
8220
  display: flex !important;
8282
8221
  flex-direction: column !important;
8283
8222
  gap: 2px !important;
@@ -8380,116 +8319,7 @@ button.dcu-settings-back-btn:hover,
8380
8319
  outline-offset: 1px !important;
8381
8320
  }
8382
8321
 
8383
- /* 右侧内容工作区 */
8384
- [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
8385
- display: flex !important;
8386
- min-width: 0 !important;
8387
- flex: 1 1 auto !important;
8388
- flex-direction: column !important;
8389
- background: var(--dsw-alias-bg-layer-2, #18181b) !important;
8390
- height: 100% !important;
8391
- }
8392
-
8393
- [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child {
8394
- box-sizing: border-box !important;
8395
- height: 56px !important;
8396
- min-height: 56px !important;
8397
- padding: 0 32px !important;
8398
- border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.07)) !important;
8399
- display: flex !important;
8400
- align-items: center !important;
8401
- justify-content: space-between !important;
8402
- background: var(--dsw-alias-bg-layer-2, #18181b) !important;
8403
- }
8404
-
8405
- [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child h2,
8406
- [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child span {
8407
- font-size: 16px;
8408
- font-weight: 600;
8409
- color: var(--dsw-alias-label-primary, #f4f4f5) !important;
8410
- letter-spacing: -0.01em;
8411
- }
8412
-
8413
- [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child button,
8414
- [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child a {
8415
- color: var(--dsw-alias-label-secondary, #a1a1aa) !important;
8416
- transition: color 0.15s ease;
8417
- }
8418
-
8419
- [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child button:hover,
8420
- [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child a:hover {
8421
- color: var(--dsw-alias-label-primary, #f4f4f5) !important;
8422
- }
8423
-
8424
- [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) {
8425
- box-sizing: border-box !important;
8426
- min-height: 0 !important;
8427
- flex: 1 1 auto !important;
8428
- overflow-y: auto !important;
8429
- padding: 24px 32px 48px !important;
8430
- background: var(--dsw-alias-bg-layer-2, #18181b) !important;
8431
- display: flex !important;
8432
- flex-direction: column !important;
8433
- align-items: stretch !important;
8434
- }
8435
-
8436
- /* 浅色模式右侧内容区实色与文字按钮高对比度兜底 */
8437
- body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child,
8438
- html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child {
8439
- background: var(--dsw-alias-bg-layer-1, #ffffff) !important;
8440
- border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08)) !important;
8441
- }
8442
-
8443
- body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child h2,
8444
- body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child span,
8445
- html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child h2,
8446
- html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child span {
8447
- color: var(--dsw-alias-label-primary, #18181b) !important;
8448
- }
8449
-
8450
- body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child button,
8451
- body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child a,
8452
- html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child button,
8453
- html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child a {
8454
- color: var(--dsw-alias-label-secondary, #52525b) !important;
8455
- }
8456
-
8457
- body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child button:hover,
8458
- body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child a:hover,
8459
- html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child button:hover,
8460
- html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child a:hover {
8461
- color: var(--dsw-alias-label-primary, #18181b) !important;
8462
- }
8463
-
8464
- body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2),
8465
- html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) {
8466
- background: var(--dsw-alias-bg-layer-1, #ffffff) !important;
8467
- }
8468
-
8469
- /* 右侧设置区固定宽度规范:卡片先吃满列宽、再被 800px 夹住,左右留白相等(不会出现单侧空洞)。
8470
- 实测(scripts/verify-settings-geometry.mjs,1400px 面板):卡片宽 800px、左右各 260px —
8471
- 即「居中收束」而不是贴左;若要改成贴左,需同时去掉下面的 margin-inline: auto。 */
8472
- [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) > * {
8473
- width: 100% !important;
8474
- max-width: 800px !important;
8475
- margin-inline: auto !important;
8476
- box-sizing: border-box !important;
8477
- }
8478
-
8479
- [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) > * > * {
8480
- width: 100% !important;
8481
- max-width: 800px !important;
8482
- margin-inline: auto !important;
8483
- box-sizing: border-box !important;
8484
- }
8485
-
8486
- [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) [class*="section"] {
8487
- width: 100% !important;
8488
- max-width: 800px !important;
8489
- margin-inline: auto !important;
8490
- }
8491
-
8492
- /* 新版宿主平铺 4 块 Grid 布局映射(0.2.1-alpha.3+),杜绝 4 列横向撕裂与多余空条 */
8322
+ /* 宿主平铺 4 块 Grid 布局映射,杜绝 4 列横向撕裂与多余空条 */
8493
8323
  [data-shortcut-modal="settings"]:has(> [class*="options"]) {
8494
8324
  display: grid !important;
8495
8325
  grid-template-columns: var(--dcu-settings-nav-width, 280px) minmax(0, 1fr) !important;
@@ -8767,41 +8597,6 @@ html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-c
8767
8597
  gap: 0 !important;
8768
8598
  }
8769
8599
 
8770
- html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav) {
8771
- margin: 0 !important;
8772
- border-radius: 0 !important;
8773
- border: none !important;
8774
- box-shadow: none !important;
8775
- background: var(--dsw-alias-bg-base, #151517) !important;
8776
- height: 100% !important;
8777
- max-height: 100% !important;
8778
- overflow: hidden !important;
8779
- display: flex !important;
8780
- flex-direction: column !important;
8781
- }
8782
-
8783
- html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav) > :first-child {
8784
- background: transparent !important;
8785
- border: none !important;
8786
- border-bottom: none !important;
8787
- flex: none !important;
8788
- }
8789
-
8790
- html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) {
8791
- margin: 0 !important;
8792
- border-radius: 0 !important;
8793
- border: none !important;
8794
- box-shadow: none !important;
8795
- background: transparent !important;
8796
- overflow-y: auto !important;
8797
- flex: 1 1 auto !important;
8798
- min-height: 0 !important;
8799
- padding-top: 28px !important;
8800
- padding-bottom: 64px !important;
8801
- padding-inline: 48px !important;
8802
- box-sizing: border-box !important;
8803
- }
8804
-
8805
8600
  html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="options"] {
8806
8601
  margin: 0 !important;
8807
8602
  border-radius: 0 !important;
@@ -8826,8 +8621,6 @@ html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortc
8826
8621
  border-right: 1px solid var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08)) !important;
8827
8622
  }
8828
8623
 
8829
- html:not([data-dsh-glass-float]) body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav),
8830
- html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav),
8831
8624
  html:not([data-dsh-glass-float]) body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="options"],
8832
8625
  html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="options"] {
8833
8626
  background: var(--dsw-alias-bg-base, #ffffff) !important;
@@ -8860,29 +8653,6 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collaps
8860
8653
  flex: none !important;
8861
8654
  }
8862
8655
 
8863
- html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > nav {
8864
- box-sizing: border-box !important;
8865
- width: 56px !important;
8866
- min-width: 56px !important;
8867
- max-width: 56px !important;
8868
- margin: 8px 12px 12px 12px !important;
8869
- padding: 12px 0 16px !important;
8870
- border-radius: 16px !important;
8871
- border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
8872
- box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
8873
- background: var(--dsh-glass-card, var(--dsw-alias-bg-layer-1)) !important;
8874
- backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
8875
- -webkit-backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
8876
- overflow-y: auto !important;
8877
- overflow-x: hidden !important;
8878
- scrollbar-width: none !important;
8879
- -ms-overflow-style: none !important;
8880
- display: flex !important;
8881
- flex-direction: column !important;
8882
- align-items: center !important;
8883
- gap: 0 !important;
8884
- }
8885
-
8886
8656
  html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > nav {
8887
8657
  grid-column: 1 !important;
8888
8658
  grid-row: 2 !important;
@@ -8911,16 +8681,6 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collaps
8911
8681
  align-items: center !important;
8912
8682
  }
8913
8683
 
8914
- html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav) {
8915
- margin: 8px 12px 12px 0 !important;
8916
- border-radius: 16px !important;
8917
- border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
8918
- box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
8919
- background: var(--dsw-alias-bg-layer-1) !important;
8920
- overflow-y: auto !important;
8921
- height: calc(100% - 20px) !important;
8922
- }
8923
-
8924
8684
  html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="options"] {
8925
8685
  grid-column: 2 !important;
8926
8686
  grid-row: 1 / -1 !important;
@@ -8948,36 +8708,6 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collaps
8948
8708
  height: 0 !important;
8949
8709
  }
8950
8710
 
8951
- /* 旧版嵌套结构下的返回标题栏,平铺 Grid 宿主下不命中了 nav > :first-child,避免把 navList 错误当成标题 */
8952
- [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > nav > :first-child {
8953
- border: none !important;
8954
- border-radius: 0 !important;
8955
- background: transparent !important;
8956
- box-shadow: none !important;
8957
- padding: 0 !important;
8958
- margin: 0 auto 10px auto !important;
8959
- width: 100% !important;
8960
- display: flex !important;
8961
- justify-content: center !important;
8962
- align-items: center !important;
8963
- }
8964
-
8965
- [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > nav [class*="navList"],
8966
- [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > nav > :nth-child(2) {
8967
- border: none !important;
8968
- background: transparent !important;
8969
- box-shadow: none !important;
8970
- margin: 0 !important;
8971
- padding: 0 !important;
8972
- width: 100% !important;
8973
- display: flex !important;
8974
- flex-direction: column !important;
8975
- align-items: center !important;
8976
- gap: 4px !important;
8977
- scrollbar-width: none !important;
8978
- -ms-overflow-style: none !important;
8979
- }
8980
-
8981
8711
  [data-shortcut-modal="settings"][data-sidebar-collapsed] .dcu-settings-nav-header-root,
8982
8712
  [data-shortcut-modal="settings"][data-sidebar-collapsed] .dcu-settings-nav-header-top {
8983
8713
  align-items: center !important;
@@ -9140,16 +8870,6 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collaps
9140
8870
  pointer-events: auto !important;
9141
8871
  }
9142
8872
 
9143
- html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav) {
9144
- margin: 8px 12px 12px 0 !important;
9145
- border-radius: 16px !important;
9146
- border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
9147
- box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
9148
- background: var(--dsw-alias-bg-layer-1) !important;
9149
- overflow-y: auto !important;
9150
- height: calc(100% - 20px) !important;
9151
- }
9152
-
9153
8873
  [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="options"],
9154
8874
  html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="options"] {
9155
8875
  grid-column: 2 !important;
@@ -9265,60 +8985,6 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collaps
9265
8985
  flex: none !important;
9266
8986
  }
9267
8987
 
9268
- /* 旧版嵌套宿主在 <=768px 下的 nav 单岛体系,与折叠块完全对齐 */
9269
- [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > nav,
9270
- html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > nav {
9271
- box-sizing: border-box !important;
9272
- width: 56px !important;
9273
- min-width: 56px !important;
9274
- max-width: 56px !important;
9275
- margin: 8px 12px 12px 12px !important;
9276
- padding: 12px 0 16px !important;
9277
- border-radius: 16px !important;
9278
- border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
9279
- box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
9280
- background: var(--dsh-glass-card, var(--dsw-alias-bg-layer-1)) !important;
9281
- backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
9282
- -webkit-backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
9283
- overflow-y: auto !important;
9284
- overflow-x: hidden !important;
9285
- scrollbar-width: none !important;
9286
- -ms-overflow-style: none !important;
9287
- display: flex !important;
9288
- flex-direction: column !important;
9289
- align-items: center !important;
9290
- gap: 0 !important;
9291
- }
9292
-
9293
- [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > nav > :first-child {
9294
- border: none !important;
9295
- border-radius: 0 !important;
9296
- background: transparent !important;
9297
- box-shadow: none !important;
9298
- padding: 0 !important;
9299
- margin: 0 auto 10px auto !important;
9300
- width: 100% !important;
9301
- display: flex !important;
9302
- justify-content: center !important;
9303
- align-items: center !important;
9304
- }
9305
-
9306
- [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > nav [class*="navList"],
9307
- [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > nav > :nth-child(2) {
9308
- border: none !important;
9309
- background: transparent !important;
9310
- box-shadow: none !important;
9311
- margin: 0 !important;
9312
- padding: 0 !important;
9313
- width: 100% !important;
9314
- display: flex !important;
9315
- flex-direction: column !important;
9316
- align-items: center !important;
9317
- gap: 4px !important;
9318
- scrollbar-width: none !important;
9319
- -ms-overflow-style: none !important;
9320
- }
9321
-
9322
8988
  .dcu-settings-nav-header-root {
9323
8989
  align-items: center !important;
9324
8990
  justify-content: center !important;
@@ -9370,9 +9036,7 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collaps
9370
9036
  align-items: center !important;
9371
9037
  }
9372
9038
 
9373
- html[data-dsh-glass-float] [data-shortcut-modal="settings"] > nav,
9374
- html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > nav,
9375
- html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > nav {
9039
+ html[data-dsh-glass-float] [data-shortcut-modal="settings"] > nav {
9376
9040
  grid-column: 1 !important;
9377
9041
  grid-row: 2 !important;
9378
9042
  box-sizing: border-box !important;
@@ -9458,42 +9122,6 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collaps
9458
9122
  pointer-events: auto !important;
9459
9123
  }
9460
9124
 
9461
- html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
9462
- margin: 0 !important;
9463
- border-radius: 0 !important;
9464
- border: none !important;
9465
- box-shadow: none !important;
9466
- background: var(--dsw-alias-bg-base, #151517) !important;
9467
- height: 100% !important;
9468
- max-height: 100% !important;
9469
- overflow: hidden !important;
9470
- display: flex !important;
9471
- flex-direction: column !important;
9472
- }
9473
-
9474
- html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child {
9475
- background: transparent !important;
9476
- border: none !important;
9477
- border-bottom: none !important;
9478
- flex: none !important;
9479
- }
9480
-
9481
- /* 右侧设置内容区:普通模式平铺紧贴,云母模式下复刻首页右侧 16px 圆角大卡片独立悬浮岛 */
9482
- html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) {
9483
- margin: 0 !important;
9484
- border-radius: 0 !important;
9485
- border: none !important;
9486
- box-shadow: none !important;
9487
- background: transparent !important;
9488
- overflow-y: auto !important;
9489
- flex: 1 1 auto !important;
9490
- min-height: 0 !important;
9491
- padding-top: 28px !important;
9492
- padding-bottom: 40px !important;
9493
- padding-inline: 20px !important;
9494
- box-sizing: border-box !important;
9495
- }
9496
-
9497
9125
  html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] {
9498
9126
  margin: 0 !important;
9499
9127
  border-radius: 0 !important;
@@ -9509,23 +9137,11 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collaps
9509
9137
  box-sizing: border-box !important;
9510
9138
  }
9511
9139
 
9512
- html:not([data-dsh-glass-float]) body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav),
9513
- html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav),
9514
9140
  html:not([data-dsh-glass-float]) body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"],
9515
9141
  html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] {
9516
9142
  background: var(--dsw-alias-bg-base, #ffffff) !important;
9517
9143
  }
9518
9144
 
9519
- html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
9520
- margin: 8px 12px 12px 0 !important;
9521
- border-radius: 16px !important;
9522
- border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
9523
- box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
9524
- background: var(--dsw-alias-bg-layer-1) !important;
9525
- overflow-y: auto !important;
9526
- height: calc(100% - 20px) !important;
9527
- }
9528
-
9529
9145
  [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"],
9530
9146
  html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] {
9531
9147
  grid-column: 2 !important;
@@ -9919,8 +9535,8 @@ html[data-dcu-mobile-web] [data-shortcut-modal="settings"][role="dialog"] {
9919
9535
  const sidebarWidth = getHostSidebarExpandedWidth(panelEl.ownerDocument || document);
9920
9536
  panelEl.style.setProperty("--dcu-settings-nav-width", `${sidebarWidth}px`);
9921
9537
  }
9922
- const navHeader = panelEl.querySelector(":scope > [class*=\"navTitle\"]") ?? panelEl.querySelector("nav > :first-child");
9923
- const navList = panelEl.querySelector("nav [class*=\"navList\"]") ?? panelEl.querySelector("nav > :nth-child(2)") ?? panelEl.querySelector("nav > :first-child");
9538
+ const navHeader = panelEl.querySelector(":scope > [class*=\"navTitle\"]");
9539
+ const navList = panelEl.querySelector("nav [class*=\"navList\"]");
9924
9540
  if (!navList) return () => {};
9925
9541
  const doc = panelEl.ownerDocument;
9926
9542
  const phone = doc.defaultView?.matchMedia?.(MOBILE_SETTINGS_QUERY);
@@ -10314,7 +9930,7 @@ html[data-dcu-mobile-web] [data-shortcut-modal="settings"][role="dialog"] {
10314
9930
  };
10315
9931
  //#endregion
10316
9932
  //#region src/client/composer/draft-attachments.ts
10317
- /** 统一旧版图片草稿与 0.1.5 的通用附件草稿,保护已有附件不被历史召回覆盖。 */
9933
+ /** 检查通用附件草稿,保护已有附件不被历史召回覆盖。 */
10318
9934
  function hasDraftAttachments(state) {
10319
9935
  return (state.attachmentIds?.length ?? 0) > 0 || (state.imageIds?.length ?? 0) > 0;
10320
9936
  }
@@ -15407,55 +15023,6 @@ body[data-dcu-drag-blocked='true'] [class*="dropAfter"]::after{display:none !imp
15407
15023
  }
15408
15024
  //#endregion
15409
15025
  //#region src/client/sidebar/session-unread/model.ts
15410
- /** 会话行 `data-row-key` 的前缀。 */
15411
- const SESSION_ROW_KEY_PREFIX = "session:";
15412
- /** 宿主行内操作区(CSS Module 哈希前后都保留 `rowActions`)。 */
15413
- const ROW_ACTIONS_SELECTOR = "[class*=\"rowActions\"]";
15414
- /**
15415
- * 从宿主行的 `data-row-key` 解析会话 id。
15416
- *
15417
- * @param key - 行节点的 `data-row-key`。
15418
- * @returns 会话 id;工作区行、其它行与空键返回 undefined。
15419
- */
15420
- function sessionIdOfRowKey(key) {
15421
- if (key === null || key === void 0 || !key.startsWith(SESSION_ROW_KEY_PREFIX)) return void 0;
15422
- const id = key.slice(8);
15423
- return id === "" ? void 0 : id;
15424
- }
15425
- /**
15426
- * 是否有外部插件往操作区塞了非菜单按钮(归档管理器的星标就是这么插的)。
15427
- *
15428
- * @param button - 操作区内的候选按钮。
15429
- * @returns 是外部按钮时返回 true。
15430
- */
15431
- function isForeignButton(button) {
15432
- const className = button.getAttribute("class") ?? "";
15433
- return className.includes("rowStar") || className.includes("dsham_");
15434
- }
15435
- /**
15436
- * 找到会话行的「···」菜单锚点。
15437
- *
15438
- * 两代宿主结构都要认:
15439
- * - 0.2.2+ 给锚点打了 `data-context-menu-trigger`,快捷操作收进 `rowQuickActions`;
15440
- * - 0.2.1 由 `Menu` 原语把锚点包在自己的 `span` 里,归档 / 置顶按钮与它平级。
15441
- * 标记优先,其次按「非快捷操作区的包裹果」、再按「直接子按钮」兜底。空白会话行没有
15442
- * 操作区,返回 null(右击时保留浏览器原生菜单)。
15443
- *
15444
- * @param row - 会话行节点。
15445
- * @returns 菜单锚点按钮或 null。
15446
- */
15447
- function findSessionMenuButton(row) {
15448
- const actions = row.querySelector(ROW_ACTIONS_SELECTOR);
15449
- if (actions === null) return null;
15450
- const marked = actions.querySelector("button[data-context-menu-trigger]");
15451
- if (marked !== null && !isForeignButton(marked)) return marked;
15452
- const notQuickAction = (button) => !isForeignButton(button) && button.closest("[class*=\"rowQuickActions\"]") === null;
15453
- const wrapped = Array.from(actions.querySelectorAll(":scope > span > button")).filter(notQuickAction);
15454
- if (wrapped.length > 0) return wrapped[0] ?? null;
15455
- const direct = Array.from(actions.querySelectorAll(":scope > button")).filter(notQuickAction);
15456
- if (direct.length > 0) return direct[0] ?? null;
15457
- return Array.from(actions.querySelectorAll("button")).filter(notQuickAction)[0] ?? null;
15458
- }
15459
15026
  /**
15460
15027
  * 读取可写的未读集合。
15461
15028
  *
@@ -15535,8 +15102,6 @@ body[data-dcu-drag-blocked='true'] [class*="dropAfter"]::after{display:none !imp
15535
15102
  }
15536
15103
  //#endregion
15537
15104
  //#region src/client/sidebar/session-unread/index.tsx
15538
- /** 宿主会话行菜单槽位(行操作列表)。 */
15539
- const MENU_SLOT = "sidebar.workspaces.session.menu.item";
15540
15105
  /** 槽位内本子插件的行 id:命名空间化,避免与宿主行冲突。 */
15541
15106
  const MENU_ITEM_ID = "codex-ui:session-unread";
15542
15107
  /** 排在置顶(100)之后、重命名(200)之前。 */
@@ -15545,66 +15110,7 @@ body[data-dcu-drag-blocked='true'] [class*="dropAfter"]::after{display:none !imp
15545
15110
  const ICON_UNREAD_KEY = "codex-ui:icon-session-unread";
15546
15111
  const ICON_READ_KEY = "codex-ui:icon-session-read";
15547
15112
  /**
15548
- * 「标记为未读 / 标记为已读」菜单行。
15549
- *
15550
- * 宿主标准 hook 缺一环就整行不渲染:这是可选增强,绝不能让一个缺失的宿主能力
15551
- * 把整份会话菜单拖垮。
15552
- *
15553
- * @param props - 宿主组合 props(见 {@link MarkUnreadMenuProps})。
15554
- * @returns 一行菜单项,或 null(未读不可写 / 已归档 / 正在主视图打开)。
15555
- */
15556
- function MarkUnreadMenuItem(props) {
15557
- const { useMenuOpenState, useSessionStatus, useSessions, useWorkspaces } = props;
15558
- if (typeof useMenuOpenState !== "function" || typeof useSessionStatus !== "function" || typeof useSessions !== "function" || typeof useWorkspaces !== "function" || typeof props.markUnread !== "function" || typeof props.markRead !== "function") return null;
15559
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MarkUnreadMenuRow, { ...props });
15560
- }
15561
- /**
15562
- * 菜单行的渲染主体:hooks 必须无条件调用,因此与能力守卫拆成两个组件。
15563
- *
15564
- * @param props - 已确认具备全部宿主 hook 的组合 props。
15565
- * @returns 菜单项或 null。
15566
- */
15567
- function MarkUnreadMenuRow(props) {
15568
- const { markRead, markUnread, sessionId, t } = props;
15569
- const [, setMenuOpen] = props.useMenuOpenState();
15570
- const unread = props.useSessionStatus((statuses) => statuses.get(sessionId)?.completionUnread === true);
15571
- const busy = props.useSessionStatus((statuses) => isSessionBusy(statuses.get(sessionId)));
15572
- const openInMainView = props.useSessions((list) => isSessionOpenInMainView(list.byId[sessionId]));
15573
- const archived = props.useWorkspaces((state) => isSessionArchived(state.archivedSessionIds, sessionId));
15574
- if (!shouldShowSessionUnreadAction({
15575
- canWrite: typeof props.canWrite === "function" ? props.canWrite() : props.canWrite === true,
15576
- isUnread: unread,
15577
- isArchived: archived,
15578
- isOpenInMainView: openInMainView,
15579
- isBusy: busy
15580
- })) return null;
15581
- const select = (next) => {
15582
- setMenuOpen(false);
15583
- if (next) markUnread(sessionId);
15584
- else markRead(sessionId);
15585
- };
15586
- if (unread) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.MenuItemButton, {
15587
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCheckCircleOutlineRegular, { size: 16 }),
15588
- onSelect: () => select(false),
15589
- children: t("session.markRead")
15590
- });
15591
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.MenuItemButton, {
15592
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, {
15593
- state: "done",
15594
- size: 10
15595
- }),
15596
- onSelect: () => select(true),
15597
- children: t("session.markUnread")
15598
- });
15599
- }
15600
- /**
15601
15113
  * 从客户端 Context 惰性读取宿主 `uiSession`。
15602
- *
15603
- * 故意不列入插件 inject:服务缺失时本能力整体降级,不影响插件其它功能加载;
15604
- * 服务晚到时因为每次点击才读取,标记依然可用。
15605
- *
15606
- * @param ctx - 客户端插件 Context。
15607
- * @returns 宿主服务的最小可用面或 undefined。
15608
15114
  */
15609
15115
  function unreadHostOf(ctx) {
15610
15116
  try {
@@ -15627,16 +15133,11 @@ body[data-dcu-drag-blocked='true'] [class*="dropAfter"]::after{display:none !imp
15627
15133
  return;
15628
15134
  }
15629
15135
  }
15630
- function hostOwnsContextMenu(ctx) {
15631
- return typeof getNativeContextMenuService(ctx)?.open === "function";
15632
- }
15633
15136
  /**
15634
15137
  * 挂载会话未读能力。
15635
15138
  *
15636
- * - DSH 0.2.2+:宿主拥有 contextMenus 服务,直接通过 contextMenus.register(..., order: 150)
15637
- * 注入会话菜单,精准排在置顶(100)之后、重命名(200)之前;同时注入 contextMenu.icon。
15638
- * - DSH 0.2.0 / 0.2.1:老版宿主无 contextMenus 服务,注册 sidebar.workspaces.session.menu.item
15639
- * 并安装文档级 contextmenu 委托点击「···」锚点唤起菜单。
15139
+ * DSH 0.2.2+:宿主拥有 contextMenus 服务,直接通过 contextMenus.register(..., order: 150)
15140
+ * 注入会话菜单,精准排在置顶(100)之后、重命名(200)之前;同时注入 contextMenu.icon。
15640
15141
  *
15641
15142
  * @param ctx - 客户端插件 Context。
15642
15143
  * @returns 卸载函数(重复调用安全)。
@@ -15647,145 +15148,100 @@ body[data-dcu-drag-blocked='true'] [class*="dropAfter"]::after{display:none !imp
15647
15148
  const markUnread = (sessionId) => writeSessionUnread(unreadHostOf(ctx), sessionId, true);
15648
15149
  const markRead = (sessionId) => writeSessionUnread(unreadHostOf(ctx), sessionId, false);
15649
15150
  const nativeContextMenus = getNativeContextMenuService(ctx);
15650
- if (typeof nativeContextMenus?.register === "function") {
15651
- let disposeUnreadIcon;
15652
- let disposeReadIcon;
15653
- if (slots !== void 0 && typeof slots.inject === "function" && typeof slots.register === "function") {
15654
- try {
15655
- const u1 = slots.inject("contextMenu.icon", () => slots.register({
15656
- name: "contextMenu.icon",
15657
- key: ICON_UNREAD_KEY
15658
- }, () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, {
15659
- state: "done",
15660
- size: 10
15661
- })));
15662
- if (typeof u1 === "function") disposeUnreadIcon = u1;
15663
- } catch {}
15664
- try {
15665
- const u2 = slots.inject("contextMenu.icon", () => slots.register({
15666
- name: "contextMenu.icon",
15667
- key: ICON_READ_KEY
15668
- }, () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCheckCircleOutlineRegular, { size: 16 })));
15669
- if (typeof u2 === "function") disposeReadIcon = u2;
15670
- } catch {}
15671
- }
15672
- let unregNative;
15151
+ if (typeof nativeContextMenus?.register !== "function") return () => {};
15152
+ let disposeUnreadIcon;
15153
+ let disposeReadIcon;
15154
+ if (slots !== void 0 && typeof slots.inject === "function" && typeof slots.register === "function") {
15673
15155
  try {
15674
- unregNative = nativeContextMenus.register({
15675
- id: MENU_ITEM_ID,
15676
- target: "session",
15677
- order: MENU_ORDER,
15678
- observe: () => {
15679
- const sessionStatus = unreadHostOf(ctx)?.sessionStatus;
15680
- return [ctx.locale, ...sessionStatus?.subscribe ? [sessionStatus] : []];
15681
- },
15682
- resolve: (target) => {
15683
- const sessionId = target?.sessionId;
15684
- if (!sessionId) return [];
15685
- const unreadHost = unreadHostOf(ctx);
15686
- const canWrite = canMarkSession(unreadHost);
15687
- const isUnread = unreadSetOf(unreadHost)?.has(sessionId) === true;
15688
- let archived = false;
15689
- try {
15690
- const workspaces = ctx.get?.("workspaces") ?? ctx.workspaces;
15691
- archived = isSessionArchived((workspaces?.list?.getSnapshot?.() ?? workspaces?.getSnapshot?.())?.archivedSessionIds, sessionId);
15692
- } catch {}
15693
- let openInMainView = false;
15694
- let busy = false;
15695
- try {
15696
- const sessions = ctx.get?.("sessions") ?? ctx.sessions;
15697
- const list = sessions?.list?.getSnapshot?.() ?? sessions?.getSnapshot?.();
15698
- const sessionItem = list?.byId?.[sessionId] ?? list?.items?.find?.((s) => s.id === sessionId);
15699
- openInMainView = isSessionOpenInMainView(sessionItem);
15700
- const uiSession = unreadHost;
15701
- const statusMap = uiSession?.sessionStatus?.getSnapshot?.() ?? uiSession?.sessionStatus;
15702
- busy = isSessionBusy(statusMap instanceof Map ? statusMap.get(sessionId) : statusMap?.[sessionId] ?? uiSession?.statusOf?.(sessionId), sessionItem);
15703
- } catch {}
15704
- if (!shouldShowSessionUnreadAction({
15705
- canWrite,
15706
- isUnread,
15707
- isArchived: archived,
15708
- isOpenInMainView: openInMainView,
15709
- isBusy: busy
15710
- })) return [];
15711
- const t = ctx.locale?.bind?.("michengai.codexUi") ?? ((k) => k);
15712
- if (isUnread) return [{
15713
- id: "mark-read",
15714
- label: t("session.markRead"),
15715
- icon: { key: ICON_READ_KEY },
15716
- run: () => {
15717
- markRead(sessionId);
15718
- }
15719
- }];
15720
- return [{
15721
- id: "mark-unread",
15722
- label: t("session.markUnread"),
15723
- icon: { key: ICON_UNREAD_KEY },
15724
- run: () => {
15725
- markUnread(sessionId);
15726
- }
15727
- }];
15728
- }
15729
- });
15730
- } catch (error) {
15731
- console.warn("[codex-ui:session-unread] 注册原生 contextMenus 失败,跳过。", error);
15732
- }
15733
- return () => {
15734
- if (disposed) return;
15735
- disposed = true;
15736
- if (typeof unregNative === "function") try {
15737
- unregNative();
15738
- } catch {}
15739
- if (typeof disposeUnreadIcon === "function") try {
15740
- disposeUnreadIcon();
15741
- } catch {}
15742
- if (typeof disposeReadIcon === "function") try {
15743
- disposeReadIcon();
15744
- } catch {}
15745
- };
15156
+ const u1 = slots.inject("contextMenu.icon", () => slots.register({
15157
+ name: "contextMenu.icon",
15158
+ key: ICON_UNREAD_KEY
15159
+ }, () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, {
15160
+ state: "done",
15161
+ size: 10
15162
+ })));
15163
+ if (typeof u1 === "function") disposeUnreadIcon = u1;
15164
+ } catch {}
15165
+ try {
15166
+ const u2 = slots.inject("contextMenu.icon", () => slots.register({
15167
+ name: "contextMenu.icon",
15168
+ key: ICON_READ_KEY
15169
+ }, () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCheckCircleOutlineRegular, { size: 16 })));
15170
+ if (typeof u2 === "function") disposeReadIcon = u2;
15171
+ } catch {}
15746
15172
  }
15747
- if (slots === void 0 || typeof slots.inject !== "function" || typeof slots.register !== "function") return () => {};
15748
- let disposeEntry;
15173
+ let unregNative;
15749
15174
  try {
15750
- disposeEntry = slots.inject(MENU_SLOT, () => slots.register({
15751
- name: MENU_SLOT,
15175
+ unregNative = nativeContextMenus.register({
15752
15176
  id: MENU_ITEM_ID,
15177
+ target: "session",
15753
15178
  order: MENU_ORDER,
15754
- locale: NS,
15755
- inject: () => ({
15756
- markUnread,
15757
- markRead,
15758
- canWrite: () => canMarkSession(unreadHostOf(ctx))
15759
- })
15760
- }, MarkUnreadMenuItem));
15179
+ observe: () => {
15180
+ const sessionStatus = unreadHostOf(ctx)?.sessionStatus;
15181
+ return [ctx.locale, ...sessionStatus?.subscribe ? [sessionStatus] : []];
15182
+ },
15183
+ resolve: (target) => {
15184
+ const sessionId = target?.sessionId;
15185
+ if (!sessionId) return [];
15186
+ const unreadHost = unreadHostOf(ctx);
15187
+ const canWrite = canMarkSession(unreadHost);
15188
+ const isUnread = unreadSetOf(unreadHost)?.has(sessionId) === true;
15189
+ let archived = false;
15190
+ try {
15191
+ const workspaces = ctx.get?.("workspaces") ?? ctx.workspaces;
15192
+ archived = isSessionArchived((workspaces?.list?.getSnapshot?.() ?? workspaces?.getSnapshot?.())?.archivedSessionIds, sessionId);
15193
+ } catch {}
15194
+ let openInMainView = false;
15195
+ let busy = false;
15196
+ try {
15197
+ const sessions = ctx.get?.("sessions") ?? ctx.sessions;
15198
+ const list = sessions?.list?.getSnapshot?.() ?? sessions?.getSnapshot?.();
15199
+ const sessionItem = list?.byId?.[sessionId] ?? list?.items?.find?.((s) => s.id === sessionId);
15200
+ openInMainView = isSessionOpenInMainView(sessionItem);
15201
+ const uiSession = unreadHost;
15202
+ const statusMap = uiSession?.sessionStatus?.getSnapshot?.() ?? uiSession?.sessionStatus;
15203
+ busy = isSessionBusy(statusMap instanceof Map ? statusMap.get(sessionId) : statusMap?.[sessionId] ?? uiSession?.statusOf?.(sessionId), sessionItem);
15204
+ } catch {}
15205
+ if (!shouldShowSessionUnreadAction({
15206
+ canWrite,
15207
+ isUnread,
15208
+ isArchived: archived,
15209
+ isOpenInMainView: openInMainView,
15210
+ isBusy: busy
15211
+ })) return [];
15212
+ const t = ctx.locale?.bind?.("michengai.codexUi") ?? ((k) => k);
15213
+ if (isUnread) return [{
15214
+ id: "mark-read",
15215
+ label: t("session.markRead"),
15216
+ icon: { key: ICON_READ_KEY },
15217
+ run: () => {
15218
+ markRead(sessionId);
15219
+ }
15220
+ }];
15221
+ return [{
15222
+ id: "mark-unread",
15223
+ label: t("session.markUnread"),
15224
+ icon: { key: ICON_UNREAD_KEY },
15225
+ run: () => {
15226
+ markUnread(sessionId);
15227
+ }
15228
+ }];
15229
+ }
15230
+ });
15761
15231
  } catch (error) {
15762
- console.warn("[codex-ui:session-unread] 会话菜单项注册失败,已跳过。", error);
15763
- return () => {};
15232
+ console.warn("[codex-ui:session-unread] 注册原生 contextMenus 失败,跳过。", error);
15764
15233
  }
15765
- const onContextMenu = (event) => {
15766
- if (disposed || event.defaultPrevented) return;
15767
- const target = event.target;
15768
- if (!(target instanceof Element)) return;
15769
- if (target.closest("input, textarea, [contenteditable='true']") !== null) return;
15770
- if (target.closest("[role=\"menu\"]") !== null) return;
15771
- const row = target.closest("[data-row-key]");
15772
- if (row === null || sessionIdOfRowKey(row.getAttribute("data-row-key")) === void 0) return;
15773
- if (hostOwnsContextMenu(ctx) || row.querySelector("[data-context-menu-trigger]") !== null) return;
15774
- const selection = typeof window.getSelection === "function" ? window.getSelection() : null;
15775
- if (selection !== null && selection.toString().trim() !== "") return;
15776
- const menuButton = findSessionMenuButton(row);
15777
- if (menuButton === null) return;
15778
- event.preventDefault();
15779
- menuButton.click();
15780
- };
15781
- document.addEventListener("contextmenu", onContextMenu, true);
15782
15234
  return () => {
15783
15235
  if (disposed) return;
15784
15236
  disposed = true;
15785
- document.removeEventListener("contextmenu", onContextMenu, true);
15786
- if (typeof disposeEntry !== "function") return;
15787
- try {
15788
- disposeEntry();
15237
+ if (typeof unregNative === "function") try {
15238
+ unregNative();
15239
+ } catch {}
15240
+ if (typeof disposeUnreadIcon === "function") try {
15241
+ disposeUnreadIcon();
15242
+ } catch {}
15243
+ if (typeof disposeReadIcon === "function") try {
15244
+ disposeReadIcon();
15789
15245
  } catch {}
15790
15246
  };
15791
15247
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-codex-ui",
3
- "version": "2.2.7",
3
+ "version": "2.3.0",
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": {
@@ -35,7 +35,7 @@
35
35
  "packageManager": "pnpm@11.22.0",
36
36
  "engines": {
37
37
  "node": "^22.19.0 || >=24.0.0",
38
- "dsh": ">=0.2.0-rc.1 <0.3.0-0"
38
+ "dsh": ">=0.2.2-rc.1 <0.3.0-0"
39
39
  },
40
40
  "main": "lib/index.mjs",
41
41
  "types": "lib/index.d.mts",
@@ -137,49 +137,49 @@
137
137
  },
138
138
  "peerDependencies": {
139
139
  "@deepseek-ai/cordis": ">=4.0.2 <5.0.0",
140
- "@deepseek-ai/dsh-client-connection": ">=0.2.0-rc.1 <0.3.0-0",
141
- "@deepseek-ai/dsh-client-locale": ">=0.2.0-rc.1 <0.3.0-0",
142
- "@deepseek-ai/dsh-client-ui-conversation": ">=0.2.0-rc.1 <0.3.0-0",
143
- "@deepseek-ai/dsh-client-ui-input-trigger": ">=0.2.0-rc.1 <0.3.0-0",
144
- "@deepseek-ai/dsh-client-ui-layout": ">=0.2.0-rc.1 <0.3.0-0",
145
- "@deepseek-ai/dsh-client-ui-primitives": ">=0.2.0-rc.1 <0.3.0-0",
146
- "@deepseek-ai/dsh-client-ui-settings": ">=0.2.0-rc.1 <0.3.0-0",
147
- "@deepseek-ai/dsh-client-ui-settings-general": ">=0.2.0-rc.1 <0.3.0-0",
148
- "@deepseek-ai/dsh-client-ui-sidebar": ">=0.2.0-rc.1 <0.3.0-0",
149
- "@deepseek-ai/dsh-client-ui-slots": ">=0.2.0-rc.1 <0.3.0-0",
150
- "@deepseek-ai/dsh-client-ui-theme": ">=0.2.0-rc.1 <0.3.0-0",
151
- "@deepseek-ai/dsh-client-ui-workspace": ">=0.2.0-rc.1 <0.3.0-0",
140
+ "@deepseek-ai/dsh-client-connection": ">=0.2.2-rc.1 <0.3.0-0",
141
+ "@deepseek-ai/dsh-client-locale": ">=0.2.2-rc.1 <0.3.0-0",
142
+ "@deepseek-ai/dsh-client-ui-conversation": ">=0.2.2-rc.1 <0.3.0-0",
143
+ "@deepseek-ai/dsh-client-ui-input-trigger": ">=0.2.2-rc.1 <0.3.0-0",
144
+ "@deepseek-ai/dsh-client-ui-layout": ">=0.2.2-rc.1 <0.3.0-0",
145
+ "@deepseek-ai/dsh-client-ui-primitives": ">=0.2.2-rc.1 <0.3.0-0",
146
+ "@deepseek-ai/dsh-client-ui-settings": ">=0.2.2-rc.1 <0.3.0-0",
147
+ "@deepseek-ai/dsh-client-ui-settings-general": ">=0.2.2-rc.1 <0.3.0-0",
148
+ "@deepseek-ai/dsh-client-ui-sidebar": ">=0.2.2-rc.1 <0.3.0-0",
149
+ "@deepseek-ai/dsh-client-ui-slots": ">=0.2.2-rc.1 <0.3.0-0",
150
+ "@deepseek-ai/dsh-client-ui-theme": ">=0.2.2-rc.1 <0.3.0-0",
151
+ "@deepseek-ai/dsh-client-ui-workspace": ">=0.2.2-rc.1 <0.3.0-0",
152
152
  "react": "^18.2.0",
153
153
  "react-dom": "^18.2.0"
154
154
  },
155
155
  "devDependencies": {
156
156
  "@deepseek-ai/cordis": "4.1.0",
157
- "@deepseek-ai/dsh-api-session-controller": "0.2.2-rc.3",
158
- "@deepseek-ai/dsh-api-workspace-controller": "0.2.2-rc.3",
159
- "@deepseek-ai/dsh-attachment": "0.2.2-rc.3",
160
- "@deepseek-ai/dsh-client-connection": "0.2.2-rc.3",
161
- "@deepseek-ai/dsh-client-locale": "0.2.2-rc.3",
162
- "@deepseek-ai/dsh-client-store": "0.2.2-rc.3",
163
- "@deepseek-ai/dsh-client-test-runtime": "0.2.2-rc.3",
164
- "@deepseek-ai/dsh-client-ui-chat": "0.2.2-rc.3",
165
- "@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.3",
166
- "@deepseek-ai/dsh-client-ui-input-trigger": "0.2.2-rc.3",
167
- "@deepseek-ai/dsh-client-ui-layout": "0.2.2-rc.3",
168
- "@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.3",
169
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.3",
170
- "@deepseek-ai/dsh-client-ui-session": "0.2.2-rc.3",
171
- "@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.3",
172
- "@deepseek-ai/dsh-client-ui-settings-general": "0.2.2-rc.3",
173
- "@deepseek-ai/dsh-client-ui-sidebar": "0.2.2-rc.3",
174
- "@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.3",
175
- "@deepseek-ai/dsh-client-ui-theme": "0.2.2-rc.3",
176
- "@deepseek-ai/dsh-client-ui-workspace": "0.2.2-rc.3",
177
- "@deepseek-ai/dsh-scope": "0.2.2-rc.3",
178
- "@deepseek-ai/dsh-session": "0.2.2-rc.3",
179
- "@deepseek-ai/dsh-subagent": "0.2.2-rc.3",
180
- "@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.3",
181
- "@deepseek-ai/dsh-util-workspace-path": "0.2.2-rc.3",
182
- "@deepseek-ai/dsh-workspace": "0.2.2-rc.3",
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",
183
183
  "@types/jsdom": "^30.0.0",
184
184
  "@types/node": "^26.0.0",
185
185
  "@types/react": "~18.3.1",