@jingyi0605/codingns4dsh 0.2.1-rc.4 → 0.2.1-rc.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.
Files changed (189) hide show
  1. package/README.en.md +3 -3
  2. package/README.md +3 -3
  3. package/data/build/dist/client/bundle.js +1672 -178
  4. package/data/build/dist/client/bundle.js.map +1 -1
  5. package/data/build/dist/client/cli-session-config-cache.d.ts.map +1 -1
  6. package/data/build/dist/client/cli-session-config-cache.js +9 -3
  7. package/data/build/dist/client/cli-session-config-cache.js.map +1 -1
  8. package/data/build/dist/client/client.native-workspace-store.js +7 -1
  9. package/data/build/dist/client/client.native-workspace-store.js.map +1 -1
  10. package/data/build/dist/client/client.transport.js +244 -50
  11. package/data/build/dist/client/client.transport.js.map +1 -1
  12. package/data/build/dist/client/desktop-assistant.js +242 -48
  13. package/data/build/dist/client/features/cli-adapters.d.ts.map +1 -1
  14. package/data/build/dist/client/features/cli-adapters.js +13 -1
  15. package/data/build/dist/client/features/cli-adapters.js.map +1 -1
  16. package/data/build/dist/client/features/index.d.ts.map +1 -1
  17. package/data/build/dist/client/features/index.js +2 -0
  18. package/data/build/dist/client/features/index.js.map +1 -1
  19. package/data/build/dist/client/features/magpie-management-page.d.ts.map +1 -1
  20. package/data/build/dist/client/features/magpie-management-page.js +80 -31
  21. package/data/build/dist/client/features/magpie-management-page.js.map +1 -1
  22. package/data/build/dist/client/features/magpie-management.d.ts.map +1 -1
  23. package/data/build/dist/client/features/magpie-management.js +3 -2
  24. package/data/build/dist/client/features/magpie-management.js.map +1 -1
  25. package/data/build/dist/client/features/plugin-update.d.ts +3 -0
  26. package/data/build/dist/client/features/plugin-update.d.ts.map +1 -0
  27. package/data/build/dist/client/features/plugin-update.js +8 -0
  28. package/data/build/dist/client/features/plugin-update.js.map +1 -0
  29. package/data/build/dist/client/features/types.d.ts +3 -0
  30. package/data/build/dist/client/features/types.d.ts.map +1 -1
  31. package/data/build/dist/client/locale.d.ts.map +1 -1
  32. package/data/build/dist/client/locale.js +3 -0
  33. package/data/build/dist/client/locale.js.map +1 -1
  34. package/data/build/dist/client/locales/magpie.d.ts.map +1 -1
  35. package/data/build/dist/client/locales/magpie.js +60 -2
  36. package/data/build/dist/client/locales/magpie.js.map +1 -1
  37. package/data/build/dist/client/locales/pluginUpdate.d.ts +3 -0
  38. package/data/build/dist/client/locales/pluginUpdate.d.ts.map +1 -0
  39. package/data/build/dist/client/locales/pluginUpdate.js +131 -0
  40. package/data/build/dist/client/locales/pluginUpdate.js.map +1 -0
  41. package/data/build/dist/client/locales/usage.d.ts.map +1 -1
  42. package/data/build/dist/client/locales/usage.js +2 -0
  43. package/data/build/dist/client/locales/usage.js.map +1 -1
  44. package/data/build/dist/client/magpie-context-meter.d.ts +18 -0
  45. package/data/build/dist/client/magpie-context-meter.d.ts.map +1 -0
  46. package/data/build/dist/client/magpie-context-meter.js +274 -0
  47. package/data/build/dist/client/magpie-context-meter.js.map +1 -0
  48. package/data/build/dist/client/magpie-context-store.d.ts +32 -0
  49. package/data/build/dist/client/magpie-context-store.d.ts.map +1 -0
  50. package/data/build/dist/client/magpie-context-store.js +165 -0
  51. package/data/build/dist/client/magpie-context-store.js.map +1 -0
  52. package/data/build/dist/client/settings-promo-styles.d.ts +5 -0
  53. package/data/build/dist/client/settings-promo-styles.d.ts.map +1 -1
  54. package/data/build/dist/client/settings-promo-styles.js +15 -2
  55. package/data/build/dist/client/settings-promo-styles.js.map +1 -1
  56. package/data/build/dist/client/settings-promo.d.ts +4 -2
  57. package/data/build/dist/client/settings-promo.d.ts.map +1 -1
  58. package/data/build/dist/client/settings-promo.js +4 -4
  59. package/data/build/dist/client/settings-promo.js.map +1 -1
  60. package/data/build/dist/client/settings-section.d.ts +2 -3
  61. package/data/build/dist/client/settings-section.d.ts.map +1 -1
  62. package/data/build/dist/client/settings-section.js +7 -7
  63. package/data/build/dist/client/settings-section.js.map +1 -1
  64. package/data/build/dist/client/settings-update.d.ts +8 -0
  65. package/data/build/dist/client/settings-update.d.ts.map +1 -0
  66. package/data/build/dist/client/settings-update.js +57 -0
  67. package/data/build/dist/client/settings-update.js.map +1 -0
  68. package/data/build/dist/client/subscription-slot.d.ts.map +1 -1
  69. package/data/build/dist/client/subscription-slot.js +47 -21
  70. package/data/build/dist/client/subscription-slot.js.map +1 -1
  71. package/data/build/dist/client/update-panel-styles.d.ts +29 -0
  72. package/data/build/dist/client/update-panel-styles.d.ts.map +1 -0
  73. package/data/build/dist/client/update-panel-styles.js +69 -0
  74. package/data/build/dist/client/update-panel-styles.js.map +1 -0
  75. package/data/build/dist/client/update-panel.d.ts +7 -0
  76. package/data/build/dist/client/update-panel.d.ts.map +1 -0
  77. package/data/build/dist/client/update-panel.js +52 -0
  78. package/data/build/dist/client/update-panel.js.map +1 -0
  79. package/data/build/dist/client/update-store.d.ts +43 -0
  80. package/data/build/dist/client/update-store.d.ts.map +1 -0
  81. package/data/build/dist/client/update-store.js +207 -0
  82. package/data/build/dist/client/update-store.js.map +1 -0
  83. package/data/build/dist/dsh-capabilities/client/plugin-reload-adapter.d.ts +4 -0
  84. package/data/build/dist/dsh-capabilities/client/plugin-reload-adapter.d.ts.map +1 -0
  85. package/data/build/dist/dsh-capabilities/client/plugin-reload-adapter.js +6 -0
  86. package/data/build/dist/dsh-capabilities/client/plugin-reload-adapter.js.map +1 -0
  87. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts +15 -1
  88. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts.map +1 -1
  89. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js +53 -21
  90. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js.map +1 -1
  91. package/data/build/dist/dsh-capabilities/host/plugin-update-adapter.d.ts +22 -0
  92. package/data/build/dist/dsh-capabilities/host/plugin-update-adapter.d.ts.map +1 -0
  93. package/data/build/dist/dsh-capabilities/host/plugin-update-adapter.js +71 -0
  94. package/data/build/dist/dsh-capabilities/host/plugin-update-adapter.js.map +1 -0
  95. package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.d.ts +4 -0
  96. package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.d.ts.map +1 -1
  97. package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.js +16 -1
  98. package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.js.map +1 -1
  99. package/data/build/dist/dsh-capabilities/matrix.d.ts.map +1 -1
  100. package/data/build/dist/dsh-capabilities/matrix.js +4 -0
  101. package/data/build/dist/dsh-capabilities/matrix.js.map +1 -1
  102. package/data/build/dist/dsh-capabilities/routes.d.ts.map +1 -1
  103. package/data/build/dist/dsh-capabilities/routes.js +10 -0
  104. package/data/build/dist/dsh-capabilities/routes.js.map +1 -1
  105. package/data/build/dist/dsh-capabilities/types.d.ts +1 -1
  106. package/data/build/dist/dsh-capabilities/types.d.ts.map +1 -1
  107. package/data/build/dist/dsh-capabilities/types.js.map +1 -1
  108. package/data/build/dist/host/cli-adapters/feature.d.ts.map +1 -1
  109. package/data/build/dist/host/cli-adapters/feature.js +174 -26
  110. package/data/build/dist/host/cli-adapters/feature.js.map +1 -1
  111. package/data/build/dist/host/cli-adapters/magpie-context.d.ts +9 -0
  112. package/data/build/dist/host/cli-adapters/magpie-context.d.ts.map +1 -0
  113. package/data/build/dist/host/cli-adapters/magpie-context.js +128 -0
  114. package/data/build/dist/host/cli-adapters/magpie-context.js.map +1 -0
  115. package/data/build/dist/host/cli-adapters/magpie-update.d.ts.map +1 -1
  116. package/data/build/dist/host/cli-adapters/magpie-update.js +14 -4
  117. package/data/build/dist/host/cli-adapters/magpie-update.js.map +1 -1
  118. package/data/build/dist/host/cli-adapters/magpie-usage.d.ts +12 -2
  119. package/data/build/dist/host/cli-adapters/magpie-usage.d.ts.map +1 -1
  120. package/data/build/dist/host/cli-adapters/magpie-usage.js +114 -50
  121. package/data/build/dist/host/cli-adapters/magpie-usage.js.map +1 -1
  122. package/data/build/dist/host/cli-adapters/registry.d.ts.map +1 -1
  123. package/data/build/dist/host/cli-adapters/registry.js +6 -5
  124. package/data/build/dist/host/cli-adapters/registry.js.map +1 -1
  125. package/data/build/dist/host/features/index.d.ts.map +1 -1
  126. package/data/build/dist/host/features/index.js +2 -0
  127. package/data/build/dist/host/features/index.js.map +1 -1
  128. package/data/build/dist/host/features/plugin-update.d.ts +6 -0
  129. package/data/build/dist/host/features/plugin-update.d.ts.map +1 -0
  130. package/data/build/dist/host/features/plugin-update.js +45 -0
  131. package/data/build/dist/host/features/plugin-update.js.map +1 -0
  132. package/data/build/dist/host/index.d.ts.map +1 -1
  133. package/data/build/dist/host/index.js +31 -1
  134. package/data/build/dist/host/index.js.map +1 -1
  135. package/data/build/dist/host/native-session-bridge.d.ts +8 -0
  136. package/data/build/dist/host/native-session-bridge.d.ts.map +1 -1
  137. package/data/build/dist/host/native-session-bridge.js +43 -0
  138. package/data/build/dist/host/native-session-bridge.js.map +1 -1
  139. package/data/build/dist/host/rpc.d.ts +4 -1
  140. package/data/build/dist/host/rpc.d.ts.map +1 -1
  141. package/data/build/dist/host/rpc.js +33 -7
  142. package/data/build/dist/host/rpc.js.map +1 -1
  143. package/data/build/dist/host/session-handle-eviction.d.ts +29 -0
  144. package/data/build/dist/host/session-handle-eviction.d.ts.map +1 -0
  145. package/data/build/dist/host/session-handle-eviction.js +413 -0
  146. package/data/build/dist/host/session-handle-eviction.js.map +1 -0
  147. package/data/build/dist/host/settings.d.ts.map +1 -1
  148. package/data/build/dist/host/settings.js +12 -1
  149. package/data/build/dist/host/settings.js.map +1 -1
  150. package/data/build/dist/host/update/application-result.d.ts +3 -0
  151. package/data/build/dist/host/update/application-result.d.ts.map +1 -0
  152. package/data/build/dist/host/update/application-result.js +13 -0
  153. package/data/build/dist/host/update/application-result.js.map +1 -0
  154. package/data/build/dist/host/update/http.d.ts +7 -0
  155. package/data/build/dist/host/update/http.d.ts.map +1 -0
  156. package/data/build/dist/host/update/http.js +55 -0
  157. package/data/build/dist/host/update/http.js.map +1 -0
  158. package/data/build/dist/host/update/metadata.d.ts +14 -0
  159. package/data/build/dist/host/update/metadata.d.ts.map +1 -0
  160. package/data/build/dist/host/update/metadata.js +75 -0
  161. package/data/build/dist/host/update/metadata.js.map +1 -0
  162. package/data/build/dist/host/update/release-notes.d.ts +6 -0
  163. package/data/build/dist/host/update/release-notes.d.ts.map +1 -0
  164. package/data/build/dist/host/update/release-notes.js +52 -0
  165. package/data/build/dist/host/update/release-notes.js.map +1 -0
  166. package/data/build/dist/host/update/service.d.ts +25 -0
  167. package/data/build/dist/host/update/service.d.ts.map +1 -0
  168. package/data/build/dist/host/update/service.js +209 -0
  169. package/data/build/dist/host/update/service.js.map +1 -0
  170. package/data/build/dist/shared/contracts/config.d.ts +17 -0
  171. package/data/build/dist/shared/contracts/config.d.ts.map +1 -1
  172. package/data/build/dist/shared/contracts/config.js +8 -0
  173. package/data/build/dist/shared/contracts/config.js.map +1 -1
  174. package/data/build/dist/shared/contracts/magpie-management.d.ts +40 -0
  175. package/data/build/dist/shared/contracts/magpie-management.d.ts.map +1 -1
  176. package/data/build/dist/shared/contracts/plugin-update.d.ts +93 -0
  177. package/data/build/dist/shared/contracts/plugin-update.d.ts.map +1 -0
  178. package/data/build/dist/shared/contracts/plugin-update.js +128 -0
  179. package/data/build/dist/shared/contracts/plugin-update.js.map +1 -0
  180. package/data/build/dist/shared/contracts/subscription.d.ts +3 -0
  181. package/data/build/dist/shared/contracts/subscription.d.ts.map +1 -1
  182. package/data/build/dist/shared/contracts/subscription.js.map +1 -1
  183. package/data/build/dist/shared/contracts/version.d.ts +1 -1
  184. package/data/build/dist/shared/contracts/version.js +1 -1
  185. package/package.json +2 -1
  186. package/profile/README.md +2 -2
  187. package/profile/package.json +2 -2
  188. package/profile/version.json +1 -1
  189. package/version.json +1 -1
@@ -7811,7 +7811,7 @@
7811
7811
  * 只放该域新增的键;合并与命名空间注册由 ../locale.ts 统一完成。
7812
7812
  * 规范见 docs/开发规范/20260930-前端文案国际化规范.md。
7813
7813
  */
7814
- const en$17 = {
7814
+ const en$18 = {
7815
7815
  "debug.title": "Debug",
7816
7816
  "debug.guideDescription": "Start workspace commands, check ports, and open services",
7817
7817
  "debug.readingWorkspace": "Reading workspace…",
@@ -7889,7 +7889,7 @@
7889
7889
  "feature.debug.label": "Workspace debugging",
7890
7890
  "feature.debug.description": "Launch terminals and check services"
7891
7891
  };
7892
- const zh$17 = {
7892
+ const zh$18 = {
7893
7893
  "debug.title": "调试",
7894
7894
  "debug.guideDescription": "启动工作区命令、检查端口并访问服务",
7895
7895
  "debug.readingWorkspace": "正在读取工作区…",
@@ -7970,7 +7970,7 @@
7970
7970
  //#endregion
7971
7971
  //#region src/client/locales/assistantDebug.ts
7972
7972
  /** 全局助理调试页词典;状态名与 JSON 只在明确的调试区域展示。 */
7973
- const zh$16 = {
7973
+ const zh$17 = {
7974
7974
  "assistant.debug.open": "全局项目状态调试",
7975
7975
  "assistant.debug.title": "全局助理管理状态调试",
7976
7976
  "assistant.debug.description": "独立检查工作区范围、会话状态和文字指令,无需启动语音。",
@@ -8150,7 +8150,7 @@
8150
8150
  "assistant.debug.analysisState.cancelled": "总结已停止,原始索引材料已保留",
8151
8151
  "assistant.debug.rawEvidence": "以下是原始会话摘录,作为总结证据保留,不是 LLM 生成的进展判断。"
8152
8152
  };
8153
- const en$16 = {
8153
+ const en$17 = {
8154
8154
  "assistant.debug.open": "Global project state debug",
8155
8155
  "assistant.debug.title": "Global assistant management debug",
8156
8156
  "assistant.debug.description": "Inspect workspace scope, session state and text commands without starting voice.",
@@ -8332,7 +8332,7 @@
8332
8332
  };
8333
8333
  //#endregion
8334
8334
  //#region src/client/locales/assistantAvatar.ts
8335
- const en$15 = {
8335
+ const en$16 = {
8336
8336
  "avatar.portraitTitle": "Avatar",
8337
8337
  "avatar.portraitEdit": "Adjust avatar",
8338
8338
  "avatar.portraitLocalHint": "Saved in this browser for this character; conversation and sidebar avatars update together.",
@@ -8468,7 +8468,7 @@
8468
8468
  "avatar.desktopFallback": "Desktop companion unavailable; showing inside this window.",
8469
8469
  "avatar.dragHint": "Drag to move; click to open the assistant."
8470
8470
  };
8471
- const zh$15 = {
8471
+ const zh$16 = {
8472
8472
  "avatar.portraitTitle": "头像",
8473
8473
  "avatar.portraitEdit": "微调头像",
8474
8474
  "avatar.portraitLocalHint": "按形象保存在当前浏览器,对话与侧栏头像同步更新。",
@@ -8612,7 +8612,7 @@
8612
8612
  * 只放该域新增的键;合并与命名空间注册由 ../locale.ts 统一完成。
8613
8613
  * 规范见 docs/开发规范/20260930-前端文案国际化规范.md。
8614
8614
  */
8615
- const en$14 = {
8615
+ const en$15 = {
8616
8616
  "htmlFiles.confirmConnect": "Allow this HTML page to read, save, and delete files in these locations?\n\nPage: {path}\n\n{scopes}\n\nAccess lasts until this preview is closed or reloaded.",
8617
8617
  "htmlFiles.cancelled": "Workspace file connection cancelled.",
8618
8618
  "fileMenu.expandFolder": "Expand folder",
@@ -8685,7 +8685,7 @@
8685
8685
  "pwaPrompt.dismiss": "Not now",
8686
8686
  "pwaPrompt.iosHint": "Tap \"Share\" then \"Add to Home Screen\" to install."
8687
8687
  };
8688
- const zh$14 = {
8688
+ const zh$15 = {
8689
8689
  "htmlFiles.confirmConnect": "允许此 HTML 页面读取、保存和删除以下位置中的文件吗?\n\n页面:{path}\n\n{scopes}\n\n授权在关闭或重新加载预览后失效。",
8690
8690
  "htmlFiles.cancelled": "已取消工作区文件连接。",
8691
8691
  "fileMenu.expandFolder": "展开文件夹",
@@ -8766,7 +8766,7 @@
8766
8766
  * 只放该域新增的键;合并与命名空间注册由 ../locale.ts 统一完成。
8767
8767
  * 规范见 docs/开发规范/20260930-前端文案国际化规范.md。
8768
8768
  */
8769
- const en$13 = {
8769
+ const en$14 = {
8770
8770
  "feature.gitManagement.label": "Git repository management",
8771
8771
  "feature.gitManagement.description": "View changes and manage commits",
8772
8772
  "git.tabTitle": "Git",
@@ -8888,7 +8888,7 @@
8888
8888
  "git.unknownTime": "Unknown time",
8889
8889
  "git.dateLabel": "{month}/{day}"
8890
8890
  };
8891
- const zh$13 = {
8891
+ const zh$14 = {
8892
8892
  "feature.gitManagement.label": "Git 仓库管理",
8893
8893
  "feature.gitManagement.description": "查看改动并管理提交",
8894
8894
  "git.tabTitle": "Git",
@@ -9018,7 +9018,7 @@
9018
9018
  * 只放该域新增的键;合并与命名空间注册由 ../locale.ts 统一完成。
9019
9019
  * 规范见 docs/开发规范/20260930-前端文案国际化规范.md。
9020
9020
  */
9021
- const en$12 = {
9021
+ const en$13 = {
9022
9022
  "common.listSeparator": ", ",
9023
9023
  "settings.unknownVersion": "Unknown version",
9024
9024
  "settings.maintenanceDisabled": "This module is disabled by maintenance policy; the setting will not start it.",
@@ -9119,7 +9119,7 @@
9119
9119
  "translation.adapter.cursor": "Cursor",
9120
9120
  "translation.adapter.kiro": "Kiro"
9121
9121
  };
9122
- const zh$12 = {
9122
+ const zh$13 = {
9123
9123
  "common.listSeparator": "、",
9124
9124
  "settings.unknownVersion": "未知版本",
9125
9125
  "settings.maintenanceDisabled": "该模块当前由维护策略停用,设置不会启动它。",
@@ -9228,7 +9228,7 @@
9228
9228
  * 只放该域新增的键;合并与命名空间注册由 ../locale.ts 统一完成。
9229
9229
  * 规范见 docs/开发规范/20260930-前端文案国际化规范.md。
9230
9230
  */
9231
- const en$11 = {
9231
+ const en$12 = {
9232
9232
  "feature.peerHost.label": "Manage other DSH Hosts",
9233
9233
  "feature.peerHost.description": "Aggregate sessions from multiple Hosts",
9234
9234
  "peerHost.panelTitle": "Manage other DSH Hosts",
@@ -9309,7 +9309,7 @@
9309
9309
  "peerHost.stateActive": "The preboot shim has taken over the page Transport; the native Connection of this page keeps reusing the same instance.",
9310
9310
  "peerHost.statePending": "The preboot shim is installed with CodingNS; it takes effect as soon as PeerHost is enabled, and native workspaces read the aggregate Transport directly."
9311
9311
  };
9312
- const zh$11 = {
9312
+ const zh$12 = {
9313
9313
  "feature.peerHost.label": "管理其他 DSH Host",
9314
9314
  "feature.peerHost.description": "聚合多个 Host 会话",
9315
9315
  "peerHost.panelTitle": "管理其他 DSH Host",
@@ -9398,7 +9398,7 @@
9398
9398
  * 只放该域新增的键;合并与命名空间注册由 ../locale.ts 统一完成。
9399
9399
  * 规范见 docs/开发规范/20260930-前端文案国际化规范.md。
9400
9400
  */
9401
- const en$10 = {
9401
+ const en$11 = {
9402
9402
  "peerHostWorkspace.tabLocal": "Local folders",
9403
9403
  "peerHostWorkspace.tabRemote": "Remote HOST",
9404
9404
  "peerHostWorkspace.sourceLabel": "Workspace source",
@@ -9444,7 +9444,7 @@
9444
9444
  "peerHostWorkspace.hintNotReady": "“{host}” is currently “{status}”; finish connecting it in the management panel first.",
9445
9445
  "peerHostWorkspace.manageHosts": "Manage other DSH Hosts"
9446
9446
  };
9447
- const zh$10 = {
9447
+ const zh$11 = {
9448
9448
  "peerHostWorkspace.tabLocal": "本机文件夹",
9449
9449
  "peerHostWorkspace.tabRemote": "远程 HOST",
9450
9450
  "peerHostWorkspace.sourceLabel": "工作区来源",
@@ -9498,7 +9498,7 @@
9498
9498
  * 只放该域新增的键;合并与命名空间注册由 ../locale.ts 统一完成。
9499
9499
  * 规范见 docs/开发规范/20260930-前端文案国际化规范.md。
9500
9500
  */
9501
- const en$9 = {
9501
+ const en$10 = {
9502
9502
  "terminalShare.title": "Share terminal output to a conversation",
9503
9503
  "terminalShare.menuTitle": "Share to a conversation",
9504
9504
  "terminalShare.more": "More conversations",
@@ -9571,7 +9571,7 @@
9571
9571
  "loginProtection.errorTimeoutRange": "The session timeout must be between 60 and 604800 seconds",
9572
9572
  "loginProtection.errorScopesRequired": "Select at least one scope"
9573
9573
  };
9574
- const zh$9 = {
9574
+ const zh$10 = {
9575
9575
  "terminalShare.title": "分享终端输出至会话",
9576
9576
  "terminalShare.menuTitle": "分享至会话",
9577
9577
  "terminalShare.more": "更多会话",
@@ -9652,7 +9652,7 @@
9652
9652
  * 只放该域新增的键;合并与命名空间注册由 ../locale.ts 统一完成。
9653
9653
  * 规范见 docs/开发规范/20260930-前端文案国际化规范.md。
9654
9654
  */
9655
- const en$8 = {
9655
+ const en$9 = {
9656
9656
  "usage.r4StatsPeriod": "Account usage · UTC",
9657
9657
  "usage.r4TodayIoTokens": "Input + output tokens today",
9658
9658
  "usage.r4WeekRequests": "Requests · last 7 days",
@@ -9773,6 +9773,7 @@
9773
9773
  "usage.magpieTabRoute": "Route + quota",
9774
9774
  "usage.magpieAggregateTitle": "Gateway usage",
9775
9775
  "usage.magpieSessionTitle": "This Agent session",
9776
+ "usage.magpieSessionTodayTitle": "This Agent session · today",
9776
9777
  "usage.magpieRouteTitle": "Latest route",
9777
9778
  "usage.magpieUsageUnavailable": "Magpie usage is unavailable.",
9778
9779
  "usage.magpieRequests": "Requests",
@@ -9857,7 +9858,7 @@
9857
9858
  "usage.magpieRequestsTitle": "Magpie requests",
9858
9859
  "usage.magpieRequestsClose": "Close"
9859
9860
  };
9860
- const zh$8 = {
9861
+ const zh$9 = {
9861
9862
  "usage.r4StatsPeriod": "账户用量 · UTC",
9862
9863
  "usage.r4TodayIoTokens": "今日输入与输出 Token",
9863
9864
  "usage.r4WeekRequests": "近 7 天请求数",
@@ -9978,6 +9979,7 @@
9978
9979
  "usage.magpieTabRoute": "路由 + 配额",
9979
9980
  "usage.magpieAggregateTitle": "网关用量",
9980
9981
  "usage.magpieSessionTitle": "当前 Agent 会话",
9982
+ "usage.magpieSessionTodayTitle": "当前 Agent 会话 · 今日",
9981
9983
  "usage.magpieRouteTitle": "最近路由",
9982
9984
  "usage.magpieUsageUnavailable": "暂时无法读取 Magpie 用量。",
9983
9985
  "usage.magpieRequests": "请求数",
@@ -10064,7 +10066,7 @@
10064
10066
  };
10065
10067
  //#endregion
10066
10068
  //#region src/client/locales/voiceModels.ts
10067
- const en$7 = {
10069
+ const en$8 = {
10068
10070
  "voice.models.prepared": "Model resources are ready. Save the configuration to use this recognition model.",
10069
10071
  "voice.settings.input": "Speech input",
10070
10072
  "voice.settings.output": "Speech output",
@@ -10107,7 +10109,7 @@
10107
10109
  "voice.models.localHint": "Models are stored on this Host. Verification tests model loading and recognition without using your microphone.",
10108
10110
  "voice.models.close": "Close"
10109
10111
  };
10110
- const zh$7 = {
10112
+ const zh$8 = {
10111
10113
  "voice.models.prepared": "模型资源已准备好,保存配置后使用此识别模型。",
10112
10114
  "voice.settings.input": "语音输入",
10113
10115
  "voice.settings.output": "语音输出",
@@ -10153,7 +10155,7 @@
10153
10155
  //#endregion
10154
10156
  //#region src/client/locales/assistantTts.ts
10155
10157
  /** 独立音色面板词典;官方名称保留原文,元数据标签随界面语言翻译。 */
10156
- const en$6 = {
10158
+ const en$7 = {
10157
10159
  "tts.wizardPrepareResources": "Prepare voice resources",
10158
10160
  "tts.wizardDraftReady": "Voice resources are ready. Configuration changes apply after saving.",
10159
10161
  "tts.prepare": "Prepare MOSS resources",
@@ -10230,7 +10232,7 @@
10230
10232
  "tts.saveParameters": "Save speech controls",
10231
10233
  "tts.resetParameters": "Restore and save defaults"
10232
10234
  };
10233
- const zh$6 = {
10235
+ const zh$7 = {
10234
10236
  "tts.wizardPrepareResources": "准备语音资源",
10235
10237
  "tts.wizardDraftReady": "语音资源已就绪,配置保存后生效。",
10236
10238
  "tts.prepare": "准备 MOSS 资源",
@@ -10310,7 +10312,7 @@
10310
10312
  //#endregion
10311
10313
  //#region src/client/locales/assistantWorkbench.ts
10312
10314
  /** 生命周期工作台文案;高级资源管理复用原有词典。 */
10313
- const zh$5 = {
10315
+ const zh$6 = {
10314
10316
  "awb.notifications.title": "会话提醒",
10315
10317
  "awb.notifications.hint": "在悬浮助理旁显示提醒,查看会话后标记已读。",
10316
10318
  "awb.notifications.enabled": "启用会话提醒",
@@ -10478,7 +10480,7 @@
10478
10480
  "awb.prompts": "提示词",
10479
10481
  "awb.unavailableSelection": "原选择暂不可用:{id}"
10480
10482
  };
10481
- const en$5 = {
10483
+ const en$6 = {
10482
10484
  "awb.notifications.title": "Session notices",
10483
10485
  "awb.notifications.hint": "Show notices beside the floating assistant. Viewing a session marks its notice as read.",
10484
10486
  "awb.notifications.enabled": "Enable session notices",
@@ -10656,7 +10658,7 @@
10656
10658
  * 注册仍使用同一份 zh/en。
10657
10659
  * 规范见 docs/开发规范/20260930-前端文案国际化规范.md。
10658
10660
  */
10659
- const zh$4 = {
10661
+ const zh$5 = {
10660
10662
  "subagentCollapsed.inactive.one": "已停止 {count} 个子智能体",
10661
10663
  "subagentCollapsed.inactive.other": "已停止 {count} 个子智能体",
10662
10664
  "subagentCollapsed.inactive.expand": "展开已停止的子智能体",
@@ -10699,7 +10701,7 @@
10699
10701
  "subagentCollapsed.open.sidebar": "在侧边栏打开",
10700
10702
  "subagentCollapsed.open.sidebar.aria": "在侧边栏打开 {label}"
10701
10703
  };
10702
- const en$4 = {
10704
+ const en$5 = {
10703
10705
  "subagentCollapsed.inactive.one": "{count} stopped subagent",
10704
10706
  "subagentCollapsed.inactive.other": "{count} stopped subagents",
10705
10707
  "subagentCollapsed.inactive.expand": "Show stopped subagents",
@@ -10755,7 +10757,7 @@
10755
10757
  };
10756
10758
  //#endregion
10757
10759
  //#region src/client/locales/quickApps.ts
10758
- const en$3 = {
10760
+ const en$4 = {
10759
10761
  "quickApps.storagePreview": "App data is saved in this browser. IndexedDB and URLs starting with / are not supported in this view.",
10760
10762
  "quickApps.storageFailed": "App data could not be saved in this browser: {message}",
10761
10763
  "quickApps.sandboxPreview": "Workspace preview. Browser storage and URLs starting with / may not work in this view.",
@@ -10888,7 +10890,7 @@
10888
10890
  "quickApps.status.missing-workspace": "The original workspace is unavailable.",
10889
10891
  "quickApps.status.missing-file": "The entry file or application folder is missing or cannot be accessed."
10890
10892
  };
10891
- const zh$3 = {
10893
+ const zh$4 = {
10892
10894
  "quickApps.storagePreview": "应用数据保存在当前浏览器中。此视图不支持 IndexedDB 和以 / 开头的网址。",
10893
10895
  "quickApps.storageFailed": "无法在当前浏览器中保存应用数据:{message}",
10894
10896
  "quickApps.sandboxPreview": "工作区预览:浏览器存储和以 / 开头的网址可能无法在此视图中使用。",
@@ -11023,7 +11025,7 @@
11023
11025
  };
11024
11026
  //#endregion
11025
11027
  //#region src/client/locales/cliManagement.ts
11026
- const en$2 = {
11028
+ const en$3 = {
11027
11029
  "cli.team.label": "Team eligibility",
11028
11030
  "cli.team.leadAndMember": "Collaborator and Lead",
11029
11031
  "cli.team.member": "Collaborator",
@@ -11100,7 +11102,7 @@
11100
11102
  "cli.manage.retryStatus": "Retry status",
11101
11103
  "cli.manage.reviewAgain": "Review another operation"
11102
11104
  };
11103
- const zh$2 = {
11105
+ const zh$3 = {
11104
11106
  "cli.team.label": "团队适配能力",
11105
11107
  "cli.team.leadAndMember": "协作者和管理者",
11106
11108
  "cli.team.member": "协作者",
@@ -11180,10 +11182,37 @@
11180
11182
  //#endregion
11181
11183
  //#region src/client/locales/magpie.ts
11182
11184
  /** Copy for the optional Magpie usage dashboard. */
11183
- const en$1 = {
11185
+ const en$2 = {
11184
11186
  "feature.magpieManagement.label": "Magpie management and usage",
11185
11187
  "feature.magpieManagement.description": "Enable to add a separate Magpie Management page below Plugins in the global sidebar.",
11186
11188
  "magpie.sidebarLabel": "Magpie",
11189
+ "magpie.context.system": "System prompt",
11190
+ "magpie.context.tools": "Tools",
11191
+ "magpie.context.memory": "Memory",
11192
+ "magpie.context.files": "Files",
11193
+ "magpie.context.results": "Tool results",
11194
+ "magpie.context.chat": "Conversation content",
11195
+ "magpie.context.usedPercent": "Context used {percent}%",
11196
+ "magpie.context.window": "Context window",
11197
+ "magpie.context.used": "Used context",
11198
+ "magpie.context.native": "DSH context",
11199
+ "magpie.context.nativeTools": "Tool definitions",
11200
+ "magpie.context.nativeMessages": "Conversation messages",
11201
+ "magpie.context.nativeComposition": "Estimated composition (share of total)",
11202
+ "magpie.context.modelWindow": "Model window {value}",
11203
+ "magpie.context.cache": "Prompt cache",
11204
+ "magpie.context.hit": "hit",
11205
+ "magpie.context.close": "Close context",
11206
+ "magpie.context.composition": "Context composition",
11207
+ "magpie.context.content": "Content",
11208
+ "magpie.context.all": "All",
11209
+ "magpie.context.allCount": "All · {count}",
11210
+ "magpie.context.empty": "No content available",
11211
+ "magpie.context.rounds": "{count} rounds",
11212
+ "magpie.context.requests": "{count} requests",
11213
+ "magpie.context.request": "Request {count}",
11214
+ "magpie.context.earlierRounds": "Earlier {count} rounds",
11215
+ "magpie.context.round": "Round {count}",
11187
11216
  "magpie.usage": "Usage",
11188
11217
  "magpie.routing": "Routing",
11189
11218
  "magpie.statTokens": "Tokens",
@@ -11230,8 +11259,10 @@
11230
11259
  "magpie.refreshing": "Refreshing…",
11231
11260
  "magpie.update.title": "Magpie update",
11232
11261
  "magpie.update.open": "Magpie {version}; open update details",
11262
+ "magpie.update.openAvailable": "Magpie {version}; update {latest} available; open update details",
11263
+ "magpie.update.badge": "New",
11233
11264
  "magpie.update.close": "Close Magpie update details",
11234
- "magpie.update.description": "Automatic checks observe Magpie in the background. Download and restart only run after you confirm a manual update.",
11265
+ "magpie.update.description": "Opening this page checks for updates automatically. Download and restart only run after you confirm a manual update.",
11235
11266
  "magpie.update.unavailable": "Magpie update status is unavailable.",
11236
11267
  "magpie.update.unsupported": "This Magpie version does not expose a supported update API.",
11237
11268
  "magpie.update.invalid": "Magpie returned an update response CodingNS cannot safely read.",
@@ -11501,10 +11532,37 @@
11501
11532
  "magpie.install.customApply": "Detect this path",
11502
11533
  "magpie.install.disabledNote": "Magpie management stays off until a working Magpie CLI is detected."
11503
11534
  };
11504
- const zh$1 = {
11535
+ const zh$2 = {
11505
11536
  "feature.magpieManagement.label": "Magpie 管理与用量",
11506
11537
  "feature.magpieManagement.description": "启用后,会在全局侧栏的「插件」下方添加独立的 Magpie 管理页面。",
11507
11538
  "magpie.sidebarLabel": "Magpie",
11539
+ "magpie.context.system": "系统提示词",
11540
+ "magpie.context.tools": "工具",
11541
+ "magpie.context.memory": "记忆",
11542
+ "magpie.context.files": "文件",
11543
+ "magpie.context.results": "工具结果",
11544
+ "magpie.context.chat": "会话内容",
11545
+ "magpie.context.usedPercent": "上下文已用 {percent}%",
11546
+ "magpie.context.window": "上下文窗口",
11547
+ "magpie.context.used": "已用上下文",
11548
+ "magpie.context.native": "DSH 上下文",
11549
+ "magpie.context.nativeTools": "工具定义",
11550
+ "magpie.context.nativeMessages": "对话消息",
11551
+ "magpie.context.nativeComposition": "估算组成(占估算总量的比例)",
11552
+ "magpie.context.modelWindow": "模型窗口 {value}",
11553
+ "magpie.context.cache": "提示词缓存",
11554
+ "magpie.context.hit": "命中",
11555
+ "magpie.context.close": "关闭上下文",
11556
+ "magpie.context.composition": "上下文组成",
11557
+ "magpie.context.content": "内容",
11558
+ "magpie.context.all": "全部",
11559
+ "magpie.context.allCount": "全部 · {count}",
11560
+ "magpie.context.empty": "没有可显示的内容",
11561
+ "magpie.context.rounds": "{count} 轮",
11562
+ "magpie.context.requests": "{count} 个请求",
11563
+ "magpie.context.request": "请求 {count}",
11564
+ "magpie.context.earlierRounds": "更早的 {count} 轮",
11565
+ "magpie.context.round": "第 {count} 轮",
11508
11566
  "magpie.usage": "用量",
11509
11567
  "magpie.routing": "路由",
11510
11568
  "magpie.statTokens": "Token",
@@ -11551,8 +11609,10 @@
11551
11609
  "magpie.refreshing": "正在刷新…",
11552
11610
  "magpie.update.title": "Magpie 更新",
11553
11611
  "magpie.update.open": "Magpie {version};打开更新详情",
11612
+ "magpie.update.openAvailable": "Magpie {version};发现新版本 {latest};打开更新详情",
11613
+ "magpie.update.badge": "新",
11554
11614
  "magpie.update.close": "关闭 Magpie 更新详情",
11555
- "magpie.update.description": "后台会自动观察 Magpie 的更新状态;只有你确认手动更新后,才会下载或重启。",
11615
+ "magpie.update.description": "打开管理页时会自动检查更新;只有你确认手动更新后,才会下载或重启。",
11556
11616
  "magpie.update.unavailable": "暂时无法读取 Magpie 更新状态。",
11557
11617
  "magpie.update.unsupported": "当前 Magpie 版本没有可支持的更新 API。",
11558
11618
  "magpie.update.invalid": "Magpie 返回了 CodingNS 无法安全读取的更新数据。",
@@ -11823,6 +11883,138 @@
11823
11883
  "magpie.install.disabledNote": "检测到可用的 Magpie CLI 前,Magpie 管理保持关闭。"
11824
11884
  };
11825
11885
  //#endregion
11886
+ //#region src/client/locales/pluginUpdate.ts
11887
+ const en$1 = {
11888
+ "update.localeTag": "en-US",
11889
+ "update.newVersionBadge": "New",
11890
+ "update.toggleDetails": "Show or hide update details",
11891
+ "update.newVersion": "New version {version}",
11892
+ "update.title": "Plugin updates",
11893
+ "update.description": "Check npm releases and review the exact GitHub tag.",
11894
+ "update.hostVersion": "Running Host:",
11895
+ "update.clientVersion": "Running Client:",
11896
+ "update.installedVersion": "Installed package:",
11897
+ "update.unknown": "Unknown",
11898
+ "update.activationHelp": "Package installation and live code activation are reported separately. This DSH version cannot confirm a Desktop Client reload.",
11899
+ "update.channel": "Release channel",
11900
+ "update.latest": "npm latest",
11901
+ "update.next": "npm next (prerelease)",
11902
+ "update.exact": "Exact version",
11903
+ "update.exactVersion": "Exact npm version",
11904
+ "update.check": "Check for updates",
11905
+ "update.checking": "Checking npm and GitHub...",
11906
+ "update.requestError": "The request could not be completed. Retry the check or review native DSH Plugins.",
11907
+ "update.previousResult": "Previous check shown. Check again before updating.",
11908
+ "update.targetVersion": "Target version:",
11909
+ "update.publishedAt": "Published:",
11910
+ "update.releasePublishedAt": "GitHub release published:",
11911
+ "update.commit": "Source commit:",
11912
+ "update.compatibility": "DSH compatibility:",
11913
+ "update.openRelease": "Open exact GitHub release",
11914
+ "update.noNotes": "Release notes are unavailable for this exact tag.",
11915
+ "update.nativeFallback": "Use native DSH Plugins to review package status and complete any required update or restart.",
11916
+ "update.review": "Review update",
11917
+ "update.confirmTitle": "Confirm the exact package update",
11918
+ "update.confirmHelp": "Install Codingns4DSH {version} through the DSH package manager? The new Host and Client code may require a DSH restart.",
11919
+ "update.confirm": "Confirm and update",
11920
+ "update.back": "Back",
11921
+ "update.cancel": "Request cancellation",
11922
+ "update.refreshStatus": "Refresh operation status",
11923
+ "update.operationHelp": "DSH owns this operation. Closing settings does not cancel it. Cancellation is confirmed only after DSH finishes restoring the package files.",
11924
+ "update.packageState": "Package:",
11925
+ "update.hostActivation": "Host activation:",
11926
+ "update.clientActivation": "Client activation:",
11927
+ "update.checkState.up-to-date": "This channel is up to date.",
11928
+ "update.checkState.update-available": "A newer version is available.",
11929
+ "update.checkState.no-newer-version": "This channel is older than the running or installed version.",
11930
+ "update.checkState.incompatible": "This target is incompatible with the running DSH.",
11931
+ "update.checkState.compatibility-unknown": "Target compatibility could not be confirmed. Updating is blocked.",
11932
+ "update.checkState.unavailable": "Update information is unavailable.",
11933
+ "update.checkState.unsupported": "This runtime does not support checking the active version.",
11934
+ "update.compatibilityState.compatible": "Compatible",
11935
+ "update.compatibilityState.incompatible": "Incompatible",
11936
+ "update.compatibilityState.unknown": "Unknown",
11937
+ "update.phase.installing": "Installing through DSH...",
11938
+ "update.phase.cancelling": "Waiting for DSH cancellation...",
11939
+ "update.phase.applying": "DSH is applying the package...",
11940
+ "update.phase.completed": "Operation completed",
11941
+ "update.application.applied-without-desktop-restart": "Host and Client are active at the target version.",
11942
+ "update.application.restart-required": "Package installed; restart required to activate the code.",
11943
+ "update.application.activation-unknown": "Live activation could not be confirmed.",
11944
+ "update.application.failed": "The update failed. Review package status before retrying.",
11945
+ "update.application.cancelled": "DSH cancelled the update.",
11946
+ "update.application.unsupported": "Use native DSH Plugins to update this package.",
11947
+ "update.package.installed": "Installed",
11948
+ "update.package.unchanged": "Unchanged",
11949
+ "update.package.rolled-back": "Profile files restored by DSH",
11950
+ "update.package.unknown": "Unknown; review native DSH Plugins"
11951
+ };
11952
+ const zh$1 = {
11953
+ "update.localeTag": "zh-CN",
11954
+ "update.newVersionBadge": "新版本",
11955
+ "update.toggleDetails": "展开或收起更新详情",
11956
+ "update.newVersion": "新版本 {version}",
11957
+ "update.title": "插件更新",
11958
+ "update.description": "检查 npm 发布版本,并查看对应的 GitHub 标签。",
11959
+ "update.hostVersion": "运行中的 Host:",
11960
+ "update.clientVersion": "运行中的 Client:",
11961
+ "update.installedVersion": "已安装的软件包:",
11962
+ "update.unknown": "未知",
11963
+ "update.activationHelp": "软件包安装状态与运行时代码激活状态分开显示。当前 DSH 版本无法确认 Desktop Client 是否已重新加载。",
11964
+ "update.channel": "发布渠道",
11965
+ "update.latest": "npm latest(稳定版)",
11966
+ "update.next": "npm next(预发布版)",
11967
+ "update.exact": "指定版本",
11968
+ "update.exactVersion": "npm 指定版本号",
11969
+ "update.check": "检查更新",
11970
+ "update.checking": "正在检查 npm 和 GitHub……",
11971
+ "update.requestError": "请求未完成。请重试,或到 DSH 原生插件页面查看状态。",
11972
+ "update.previousResult": "显示的是上一次检查结果。更新前请重新检查。",
11973
+ "update.targetVersion": "目标版本:",
11974
+ "update.publishedAt": "npm 发布时间:",
11975
+ "update.releasePublishedAt": "GitHub 发布时间:",
11976
+ "update.commit": "源代码提交:",
11977
+ "update.compatibility": "DSH 兼容性:",
11978
+ "update.openRelease": "打开对应的 GitHub Release",
11979
+ "update.noNotes": "该精确标签没有可用的 Release notes。",
11980
+ "update.nativeFallback": "请到 DSH 原生插件页面查看软件包状态,并完成必要的更新或重启。",
11981
+ "update.review": "查看更新",
11982
+ "update.confirmTitle": "确认更新指定软件包",
11983
+ "update.confirmHelp": "通过 DSH 软件包管理器安装 Codingns4DSH {version}?新的 Host 和 Client 代码可能需要重启 DSH 才能生效。",
11984
+ "update.confirm": "确认并更新",
11985
+ "update.back": "返回",
11986
+ "update.cancel": "请求取消",
11987
+ "update.refreshStatus": "刷新操作状态",
11988
+ "update.operationHelp": "此操作由 DSH 管理。关闭设置不会取消操作;只有 DSH 完成软件包恢复后,取消才会被确认。",
11989
+ "update.packageState": "软件包状态:",
11990
+ "update.hostActivation": "Host 激活状态:",
11991
+ "update.clientActivation": "Client 激活状态:",
11992
+ "update.checkState.up-to-date": "此渠道已经是最新版本。",
11993
+ "update.checkState.update-available": "发现新版本。",
11994
+ "update.checkState.no-newer-version": "此渠道版本低于当前运行或已安装版本。",
11995
+ "update.checkState.incompatible": "此目标版本与当前 DSH 不兼容。",
11996
+ "update.checkState.compatibility-unknown": "无法确认目标版本兼容性,更新已阻止。",
11997
+ "update.checkState.unavailable": "更新信息暂不可用。",
11998
+ "update.checkState.unsupported": "当前运行环境不支持检查活动版本。",
11999
+ "update.compatibilityState.compatible": "兼容",
12000
+ "update.compatibilityState.incompatible": "不兼容",
12001
+ "update.compatibilityState.unknown": "未知",
12002
+ "update.phase.installing": "正在通过 DSH 安装……",
12003
+ "update.phase.cancelling": "正在等待 DSH 完成取消……",
12004
+ "update.phase.applying": "DSH 正在应用软件包……",
12005
+ "update.phase.completed": "操作已完成",
12006
+ "update.application.applied-without-desktop-restart": "Host 和 Client 已运行目标版本。",
12007
+ "update.application.restart-required": "软件包已安装;需要重启才能激活新代码。",
12008
+ "update.application.activation-unknown": "无法确认运行时代码是否已激活。",
12009
+ "update.application.failed": "更新失败。请先检查软件包状态再重试。",
12010
+ "update.application.cancelled": "DSH 已取消更新。",
12011
+ "update.application.unsupported": "请使用 DSH 原生插件页面更新此软件包。",
12012
+ "update.package.installed": "已安装",
12013
+ "update.package.unchanged": "未改变",
12014
+ "update.package.rolled-back": "DSH 已恢复配置文件",
12015
+ "update.package.unknown": "未知;请检查 DSH 原生插件页面"
12016
+ };
12017
+ //#endregion
11826
12018
  //#region src/client/locale.ts
11827
12019
  /** Codingns4DSH 自有词典命名空间。词典缺少的语言由 DSH 自动回退到英文。 */
11828
12020
  const CODINGNS_LOCALE_NS = "codingns";
@@ -12744,19 +12936,20 @@
12744
12936
  };
12745
12937
  ({
12746
12938
  ...CORE_EN,
12747
- ...en$15,
12748
12939
  ...en$16,
12749
- ...en$13,
12750
12940
  ...en$17,
12941
+ ...en$14,
12942
+ ...en$18,
12943
+ ...en$12,
12751
12944
  ...en$11,
12752
- ...en$10,
12945
+ ...en$9,
12753
12946
  ...en$8,
12754
12947
  ...en$7,
12755
12948
  ...en$6,
12949
+ ...en$15,
12950
+ ...en$10,
12951
+ ...en$13,
12756
12952
  ...en$5,
12757
- ...en$14,
12758
- ...en$9,
12759
- ...en$12,
12760
12953
  ...en$4,
12761
12954
  ...en$3,
12762
12955
  ...en$2,
@@ -12764,19 +12957,20 @@
12764
12957
  });
12765
12958
  const zh = {
12766
12959
  ...CORE_ZH,
12767
- ...zh$15,
12768
12960
  ...zh$16,
12769
- ...zh$13,
12770
12961
  ...zh$17,
12962
+ ...zh$14,
12963
+ ...zh$18,
12964
+ ...zh$12,
12771
12965
  ...zh$11,
12772
- ...zh$10,
12966
+ ...zh$9,
12773
12967
  ...zh$8,
12774
12968
  ...zh$7,
12775
12969
  ...zh$6,
12970
+ ...zh$15,
12971
+ ...zh$10,
12972
+ ...zh$13,
12776
12973
  ...zh$5,
12777
- ...zh$14,
12778
- ...zh$9,
12779
- ...zh$12,
12780
12974
  ...zh$4,
12781
12975
  ...zh$3,
12782
12976
  ...zh$2,
@@ -1 +1 @@
1
- {"version":3,"file":"cli-adapters.d.ts","sourceRoot":"","sources":["../../../../../src/client/features/cli-adapters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAA;AAMxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAA;AA4FhF,mDAAmD;AACnD,eAAO,MAAM,kBAAkB,EAAE,2BAqDhC,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,GAAG,YAAY,CAoBvE;AAED,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,iBAAiB,GAAG,YAAY,CA0E9G;AAED,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,iBAAiB,GAAG,YAAY,CAwP3G"}
1
+ {"version":3,"file":"cli-adapters.d.ts","sourceRoot":"","sources":["../../../../../src/client/features/cli-adapters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAA;AAMxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAA;AA8FhF,mDAAmD;AACnD,eAAO,MAAM,kBAAkB,EAAE,2BA+DhC,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,GAAG,YAAY,CAoBvE;AAED,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,iBAAiB,GAAG,YAAY,CA0E9G;AAED,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,iBAAiB,GAAG,YAAY,CAwP3G"}
@@ -10,6 +10,8 @@ import { readNativeTranslationDefault } from '../native-translation-default.js';
10
10
  import { startContextBreakdownDom } from '../context-breakdown-dom.js';
11
11
  import { fetchSessionAdapters, replaceSessionAdapters, sessionAdapterId, subscribeSessionAdapters } from '../session-adapter-cache.js';
12
12
  import { createDshCapabilityRegistry } from '../../dsh-capabilities/routes.js';
13
+ import { MagpieContextMeter } from '../magpie-context-meter.js';
14
+ import { useMagpieContext } from '../magpie-context-store.js';
13
15
  import { providerIconUrl } from '../provider-icons.js';
14
16
  import { notifyAdapterCatalogChanged, subscribeAdapterCatalogChanged, watchAdapterCatalog } from '../adapter-catalog-watch.js';
15
17
  import { getModelCatalogCache, invalidateModelCatalogCache, loadModelCatalog } from '../model-catalog-cache.js';
@@ -120,7 +122,17 @@ export const cliAdaptersFeature = {
120
122
  const performance = createDshCapabilityRegistry(context.services.dshVersion, 'client', uiContext)
121
123
  .getProfile(uiContext).capabilities.get('session.external-performance')?.value;
122
124
  if (performance !== undefined)
123
- context.resources.add(performance.install(sessionId => useSyncExternalStore(subscribeSessionAdapters, () => sessionAdapterId(sessionId), () => sessionAdapterId(sessionId)), createElement, { useMemo, useSyncExternalStore }));
125
+ context.resources.add(performance.install(sessionId => useSyncExternalStore(subscribeSessionAdapters, () => sessionAdapterId(sessionId), () => sessionAdapterId(sessionId)), createElement, { useMemo, useSyncExternalStore }, {
126
+ magpieContext: {
127
+ component: MagpieContextMeter,
128
+ rpc: context.services.rpc,
129
+ locale: context.services.locale,
130
+ useSnapshot: (rpc, sessionId) => {
131
+ const state = useMagpieContext(rpc, sessionId);
132
+ return state.status === 'ready' ? state.value : null;
133
+ },
134
+ },
135
+ }));
124
136
  const { registerDelegateCommand } = await import('../delegate-command.js');
125
137
  context.resources.add(registerDelegateCommand(uiContext, {
126
138
  rpc: context.services.rpc,