@jingyi0605/codingns4dsh 0.2.1-beta.12 → 0.2.1-beta.14

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 (584) hide show
  1. package/README.en.md +5 -5
  2. package/README.md +6 -9
  3. package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts +1 -1
  4. package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts.map +1 -1
  5. package/data/build/dist/bootstrap/index.d.ts +1 -1
  6. package/data/build/dist/bootstrap/index.d.ts.map +1 -1
  7. package/data/build/dist/client/account-bar.d.ts.map +1 -1
  8. package/data/build/dist/client/account-bar.js +24 -70
  9. package/data/build/dist/client/account-bar.js.map +1 -1
  10. package/data/build/dist/client/adapter-catalog-watch.d.ts +1 -1
  11. package/data/build/dist/client/adapter-catalog-watch.d.ts.map +1 -1
  12. package/data/build/dist/client/adapter-catalog-watch.js +2 -2
  13. package/data/build/dist/client/adapter-catalog-watch.js.map +1 -1
  14. package/data/build/dist/client/bundle.js +40225 -25580
  15. package/data/build/dist/client/bundle.js.map +1 -1
  16. package/data/build/dist/client/cli-management-dialog.d.ts +21 -0
  17. package/data/build/dist/client/cli-management-dialog.d.ts.map +1 -0
  18. package/data/build/dist/client/cli-management-dialog.js +215 -0
  19. package/data/build/dist/client/cli-management-dialog.js.map +1 -0
  20. package/data/build/dist/client/cli-management-terminal.d.ts +9 -0
  21. package/data/build/dist/client/cli-management-terminal.d.ts.map +1 -0
  22. package/data/build/dist/client/cli-management-terminal.js +30 -0
  23. package/data/build/dist/client/cli-management-terminal.js.map +1 -0
  24. package/data/build/dist/client/cli-settings-dialog.d.ts +9 -0
  25. package/data/build/dist/client/cli-settings-dialog.d.ts.map +1 -0
  26. package/data/build/dist/client/cli-settings-dialog.js +45 -0
  27. package/data/build/dist/client/cli-settings-dialog.js.map +1 -0
  28. package/data/build/dist/client/cli-settings-rpc.js +1 -1
  29. package/data/build/dist/client/cli-settings-rpc.js.map +1 -1
  30. package/data/build/dist/client/cli-slots.d.ts +4 -0
  31. package/data/build/dist/client/cli-slots.d.ts.map +1 -1
  32. package/data/build/dist/client/cli-slots.js +26 -10
  33. package/data/build/dist/client/cli-slots.js.map +1 -1
  34. package/data/build/dist/client/client.editor-engine.js +4 -1
  35. package/data/build/dist/client/client.editor-engine.js.map +1 -1
  36. package/data/build/dist/client/client.model-catalog-cache.js +9 -1
  37. package/data/build/dist/client/client.model-catalog-cache.js.map +1 -1
  38. package/data/build/dist/client/client.native-workspace-store.js +9 -15
  39. package/data/build/dist/client/client.native-workspace-store.js.map +1 -1
  40. package/data/build/dist/client/client.primitives-adapter.js +53 -0
  41. package/data/build/dist/client/client.primitives-adapter.js.map +1 -1
  42. package/data/build/dist/client/client.session-translation.js +16 -0
  43. package/data/build/dist/client/client.session-translation.js.map +1 -1
  44. package/data/build/dist/client/client.transport.js +487 -44
  45. package/data/build/dist/client/client.transport.js.map +1 -1
  46. package/data/build/dist/client/conversation-translation-settings.d.ts +2 -1
  47. package/data/build/dist/client/conversation-translation-settings.d.ts.map +1 -1
  48. package/data/build/dist/client/conversation-translation-settings.js +7 -5
  49. package/data/build/dist/client/conversation-translation-settings.js.map +1 -1
  50. package/data/build/dist/client/desktop-assistant.js +595 -152
  51. package/data/build/dist/client/editor-engine.d.ts +1 -1
  52. package/data/build/dist/client/editor-engine.d.ts.map +1 -1
  53. package/data/build/dist/client/editor-engine.js +4 -1
  54. package/data/build/dist/client/editor-engine.js.map +1 -1
  55. package/data/build/dist/client/features/cli-adapters.d.ts +3 -1
  56. package/data/build/dist/client/features/cli-adapters.d.ts.map +1 -1
  57. package/data/build/dist/client/features/cli-adapters.js +183 -105
  58. package/data/build/dist/client/features/cli-adapters.js.map +1 -1
  59. package/data/build/dist/client/features/file-management.d.ts.map +1 -1
  60. package/data/build/dist/client/features/file-management.js +2 -0
  61. package/data/build/dist/client/features/file-management.js.map +1 -1
  62. package/data/build/dist/client/features/index.d.ts.map +1 -1
  63. package/data/build/dist/client/features/index.js +2 -0
  64. package/data/build/dist/client/features/index.js.map +1 -1
  65. package/data/build/dist/client/features/mobile-access.d.ts.map +1 -1
  66. package/data/build/dist/client/features/mobile-access.js +7 -0
  67. package/data/build/dist/client/features/mobile-access.js.map +1 -1
  68. package/data/build/dist/client/features/peer-host.d.ts.map +1 -1
  69. package/data/build/dist/client/features/peer-host.js +3 -0
  70. package/data/build/dist/client/features/peer-host.js.map +1 -1
  71. package/data/build/dist/client/features/quick-apps.d.ts +3 -0
  72. package/data/build/dist/client/features/quick-apps.d.ts.map +1 -0
  73. package/data/build/dist/client/features/quick-apps.js +14 -0
  74. package/data/build/dist/client/features/quick-apps.js.map +1 -0
  75. package/data/build/dist/client/features/workspace-session-enhancement.d.ts.map +1 -1
  76. package/data/build/dist/client/features/workspace-session-enhancement.js +6 -0
  77. package/data/build/dist/client/features/workspace-session-enhancement.js.map +1 -1
  78. package/data/build/dist/client/git-management.d.ts.map +1 -1
  79. package/data/build/dist/client/git-management.js +11 -30
  80. package/data/build/dist/client/git-management.js.map +1 -1
  81. package/data/build/dist/client/git-panel-styles.d.ts +4 -0
  82. package/data/build/dist/client/git-panel-styles.d.ts.map +1 -1
  83. package/data/build/dist/client/git-panel-styles.js +14 -0
  84. package/data/build/dist/client/git-panel-styles.js.map +1 -1
  85. package/data/build/dist/client/html-workspace-files.d.ts +4 -0
  86. package/data/build/dist/client/html-workspace-files.d.ts.map +1 -0
  87. package/data/build/dist/client/html-workspace-files.js +114 -0
  88. package/data/build/dist/client/html-workspace-files.js.map +1 -0
  89. package/data/build/dist/client/locale.d.ts.map +1 -1
  90. package/data/build/dist/client/locale.js +14 -0
  91. package/data/build/dist/client/locale.js.map +1 -1
  92. package/data/build/dist/client/locales/cliManagement.d.ts +3 -0
  93. package/data/build/dist/client/locales/cliManagement.d.ts.map +1 -0
  94. package/data/build/dist/client/locales/cliManagement.js +155 -0
  95. package/data/build/dist/client/locales/cliManagement.js.map +1 -0
  96. package/data/build/dist/client/locales/fileWorkspace.d.ts.map +1 -1
  97. package/data/build/dist/client/locales/fileWorkspace.js +4 -0
  98. package/data/build/dist/client/locales/fileWorkspace.js.map +1 -1
  99. package/data/build/dist/client/locales/panels.js +2 -2
  100. package/data/build/dist/client/locales/panels.js.map +1 -1
  101. package/data/build/dist/client/locales/quickApps.d.ts +132 -0
  102. package/data/build/dist/client/locales/quickApps.d.ts.map +1 -0
  103. package/data/build/dist/client/locales/quickApps.js +154 -0
  104. package/data/build/dist/client/locales/quickApps.js.map +1 -0
  105. package/data/build/dist/client/mobile-team-panel-dom.d.ts +14 -0
  106. package/data/build/dist/client/mobile-team-panel-dom.d.ts.map +1 -0
  107. package/data/build/dist/client/mobile-team-panel-dom.js +164 -0
  108. package/data/build/dist/client/mobile-team-panel-dom.js.map +1 -0
  109. package/data/build/dist/client/native-model-translation-menu.d.ts.map +1 -1
  110. package/data/build/dist/client/native-model-translation-menu.js +3 -1
  111. package/data/build/dist/client/native-model-translation-menu.js.map +1 -1
  112. package/data/build/dist/client/provider-icons.d.ts.map +1 -1
  113. package/data/build/dist/client/provider-icons.js +3 -1
  114. package/data/build/dist/client/provider-icons.js.map +1 -1
  115. package/data/build/dist/client/quick-apps/browser-storage.d.ts +24 -0
  116. package/data/build/dist/client/quick-apps/browser-storage.d.ts.map +1 -0
  117. package/data/build/dist/client/quick-apps/browser-storage.js +114 -0
  118. package/data/build/dist/client/quick-apps/browser-storage.js.map +1 -0
  119. package/data/build/dist/client/quick-apps/client.d.ts +31 -0
  120. package/data/build/dist/client/quick-apps/client.d.ts.map +1 -0
  121. package/data/build/dist/client/quick-apps/client.js +68 -0
  122. package/data/build/dist/client/quick-apps/client.js.map +1 -0
  123. package/data/build/dist/client/quick-apps/document.d.ts +26 -0
  124. package/data/build/dist/client/quick-apps/document.d.ts.map +1 -0
  125. package/data/build/dist/client/quick-apps/document.js +110 -0
  126. package/data/build/dist/client/quick-apps/document.js.map +1 -0
  127. package/data/build/dist/client/quick-apps/file-picker.d.ts +14 -0
  128. package/data/build/dist/client/quick-apps/file-picker.d.ts.map +1 -0
  129. package/data/build/dist/client/quick-apps/file-picker.js +51 -0
  130. package/data/build/dist/client/quick-apps/file-picker.js.map +1 -0
  131. package/data/build/dist/client/quick-apps/launcher.d.ts +7 -0
  132. package/data/build/dist/client/quick-apps/launcher.d.ts.map +1 -0
  133. package/data/build/dist/client/quick-apps/launcher.js +252 -0
  134. package/data/build/dist/client/quick-apps/launcher.js.map +1 -0
  135. package/data/build/dist/client/quick-apps/presentation.d.ts +16 -0
  136. package/data/build/dist/client/quick-apps/presentation.d.ts.map +1 -0
  137. package/data/build/dist/client/quick-apps/presentation.js +31 -0
  138. package/data/build/dist/client/quick-apps/presentation.js.map +1 -0
  139. package/data/build/dist/client/quick-apps/reorder-animation.d.ts +6 -0
  140. package/data/build/dist/client/quick-apps/reorder-animation.d.ts.map +1 -0
  141. package/data/build/dist/client/quick-apps/reorder-animation.js +50 -0
  142. package/data/build/dist/client/quick-apps/reorder-animation.js.map +1 -0
  143. package/data/build/dist/client/quick-apps/reorder.d.ts +26 -0
  144. package/data/build/dist/client/quick-apps/reorder.d.ts.map +1 -0
  145. package/data/build/dist/client/quick-apps/reorder.js +128 -0
  146. package/data/build/dist/client/quick-apps/reorder.js.map +1 -0
  147. package/data/build/dist/client/quick-apps/styles.d.ts +3 -0
  148. package/data/build/dist/client/quick-apps/styles.d.ts.map +1 -0
  149. package/data/build/dist/client/quick-apps/styles.js +143 -0
  150. package/data/build/dist/client/quick-apps/styles.js.map +1 -0
  151. package/data/build/dist/client/quick-apps/ui.d.ts +20 -0
  152. package/data/build/dist/client/quick-apps/ui.d.ts.map +1 -0
  153. package/data/build/dist/client/quick-apps/ui.js +21 -0
  154. package/data/build/dist/client/quick-apps/ui.js.map +1 -0
  155. package/data/build/dist/client/quick-apps/viewer.d.ts +16 -0
  156. package/data/build/dist/client/quick-apps/viewer.d.ts.map +1 -0
  157. package/data/build/dist/client/quick-apps/viewer.js +165 -0
  158. package/data/build/dist/client/quick-apps/viewer.js.map +1 -0
  159. package/data/build/dist/client/quick-apps/workspace-picker.d.ts +19 -0
  160. package/data/build/dist/client/quick-apps/workspace-picker.d.ts.map +1 -0
  161. package/data/build/dist/client/quick-apps/workspace-picker.js +30 -0
  162. package/data/build/dist/client/quick-apps/workspace-picker.js.map +1 -0
  163. package/data/build/dist/client/session-translation-chat.d.ts +1 -1
  164. package/data/build/dist/client/session-translation-chat.d.ts.map +1 -1
  165. package/data/build/dist/client/session-translation-chat.js +26 -22
  166. package/data/build/dist/client/session-translation-chat.js.map +1 -1
  167. package/data/build/dist/client/sidebar-footer-style.d.ts +13 -0
  168. package/data/build/dist/client/sidebar-footer-style.d.ts.map +1 -0
  169. package/data/build/dist/client/sidebar-footer-style.js +54 -0
  170. package/data/build/dist/client/sidebar-footer-style.js.map +1 -0
  171. package/data/build/dist/client/style.css +219 -219
  172. package/data/build/dist/client/terminal/model.d.ts.map +1 -1
  173. package/data/build/dist/client/terminal/model.js +2 -1
  174. package/data/build/dist/client/terminal/model.js.map +1 -1
  175. package/data/build/dist/client/workspace-session-rightbar-dom.d.ts.map +1 -1
  176. package/data/build/dist/client/workspace-session-rightbar-dom.js +12 -21
  177. package/data/build/dist/client/workspace-session-rightbar-dom.js.map +1 -1
  178. package/data/build/dist/client/workspace-session-visibility-dom.d.ts +3 -0
  179. package/data/build/dist/client/workspace-session-visibility-dom.d.ts.map +1 -1
  180. package/data/build/dist/client/workspace-session-visibility-dom.js +5 -4
  181. package/data/build/dist/client/workspace-session-visibility-dom.js.map +1 -1
  182. package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.d.ts +4 -0
  183. package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.d.ts.map +1 -0
  184. package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.js +8 -0
  185. package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.js.map +1 -0
  186. package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts +18 -0
  187. package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts.map +1 -1
  188. package/data/build/dist/dsh-capabilities/client/primitives-adapter.js +21 -0
  189. package/data/build/dist/dsh-capabilities/client/primitives-adapter.js.map +1 -1
  190. package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.d.ts +18 -0
  191. package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.d.ts.map +1 -0
  192. package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.js +11 -0
  193. package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.js.map +1 -0
  194. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts +8 -0
  195. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts.map +1 -0
  196. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js +100 -0
  197. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js.map +1 -0
  198. package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.d.ts +3 -0
  199. package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.d.ts.map +1 -0
  200. package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.js +22 -0
  201. package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.js.map +1 -0
  202. package/data/build/dist/dsh-capabilities/host/agent-team-adapter.d.ts +52 -0
  203. package/data/build/dist/dsh-capabilities/host/agent-team-adapter.d.ts.map +1 -0
  204. package/data/build/dist/dsh-capabilities/host/agent-team-adapter.js +109 -0
  205. package/data/build/dist/dsh-capabilities/host/agent-team-adapter.js.map +1 -0
  206. package/data/build/dist/dsh-capabilities/host/quick-app-credentials.d.ts +11 -0
  207. package/data/build/dist/dsh-capabilities/host/quick-app-credentials.d.ts.map +1 -0
  208. package/data/build/dist/dsh-capabilities/host/quick-app-credentials.js +97 -0
  209. package/data/build/dist/dsh-capabilities/host/quick-app-credentials.js.map +1 -0
  210. package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.d.ts +36 -0
  211. package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.d.ts.map +1 -0
  212. package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.js +164 -0
  213. package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.js.map +1 -0
  214. package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.d.ts +44 -0
  215. package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.d.ts.map +1 -0
  216. package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.js +240 -0
  217. package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.js.map +1 -0
  218. package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.d.ts +37 -0
  219. package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.d.ts.map +1 -0
  220. package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.js +35 -0
  221. package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.js.map +1 -0
  222. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.d.ts +13 -0
  223. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.d.ts.map +1 -0
  224. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.js +30 -0
  225. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.js.map +1 -0
  226. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.d.ts +21 -0
  227. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.d.ts.map +1 -0
  228. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.js +132 -0
  229. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.js.map +1 -0
  230. package/data/build/dist/dsh-capabilities/host/quick-app-transport.d.ts +10 -0
  231. package/data/build/dist/dsh-capabilities/host/quick-app-transport.d.ts.map +1 -0
  232. package/data/build/dist/dsh-capabilities/host/quick-app-transport.js +33 -0
  233. package/data/build/dist/dsh-capabilities/host/quick-app-transport.js.map +1 -0
  234. package/data/build/dist/dsh-capabilities/host/session-performance-adapter.d.ts +7 -0
  235. package/data/build/dist/dsh-capabilities/host/session-performance-adapter.d.ts.map +1 -0
  236. package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js +18 -0
  237. package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js.map +1 -0
  238. package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.d.ts +13 -0
  239. package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.d.ts.map +1 -0
  240. package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.js +24 -0
  241. package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.js.map +1 -0
  242. package/data/build/dist/dsh-capabilities/matrix.d.ts.map +1 -1
  243. package/data/build/dist/dsh-capabilities/matrix.js +16 -8
  244. package/data/build/dist/dsh-capabilities/matrix.js.map +1 -1
  245. package/data/build/dist/dsh-capabilities/routes.d.ts +1 -0
  246. package/data/build/dist/dsh-capabilities/routes.d.ts.map +1 -1
  247. package/data/build/dist/dsh-capabilities/routes.js +27 -6
  248. package/data/build/dist/dsh-capabilities/routes.js.map +1 -1
  249. package/data/build/dist/dsh-capabilities/types.d.ts +1 -1
  250. package/data/build/dist/dsh-capabilities/types.d.ts.map +1 -1
  251. package/data/build/dist/dsh-capabilities/types.js.map +1 -1
  252. package/data/build/dist/host/cli-adapters/acp-cli-driver.d.ts.map +1 -1
  253. package/data/build/dist/host/cli-adapters/acp-cli-driver.js +6 -3
  254. package/data/build/dist/host/cli-adapters/acp-cli-driver.js.map +1 -1
  255. package/data/build/dist/host/cli-adapters/binary-detection.d.ts.map +1 -1
  256. package/data/build/dist/host/cli-adapters/binary-detection.js +7 -3
  257. package/data/build/dist/host/cli-adapters/binary-detection.js.map +1 -1
  258. package/data/build/dist/host/cli-adapters/claude-driver.d.ts +1 -0
  259. package/data/build/dist/host/cli-adapters/claude-driver.d.ts.map +1 -1
  260. package/data/build/dist/host/cli-adapters/claude-driver.js +183 -20
  261. package/data/build/dist/host/cli-adapters/claude-driver.js.map +1 -1
  262. package/data/build/dist/host/cli-adapters/codex-driver.d.ts +18 -0
  263. package/data/build/dist/host/cli-adapters/codex-driver.d.ts.map +1 -1
  264. package/data/build/dist/host/cli-adapters/codex-driver.js +110 -11
  265. package/data/build/dist/host/cli-adapters/codex-driver.js.map +1 -1
  266. package/data/build/dist/host/cli-adapters/codex-performance-projection.d.ts +91 -0
  267. package/data/build/dist/host/cli-adapters/codex-performance-projection.d.ts.map +1 -0
  268. package/data/build/dist/host/cli-adapters/codex-performance-projection.js +8 -0
  269. package/data/build/dist/host/cli-adapters/codex-performance-projection.js.map +1 -0
  270. package/data/build/dist/host/cli-adapters/codex-performance.d.ts +16 -0
  271. package/data/build/dist/host/cli-adapters/codex-performance.d.ts.map +1 -0
  272. package/data/build/dist/host/cli-adapters/codex-performance.js +81 -0
  273. package/data/build/dist/host/cli-adapters/codex-performance.js.map +1 -0
  274. package/data/build/dist/host/cli-adapters/command-code-acp-loader.d.ts.map +1 -1
  275. package/data/build/dist/host/cli-adapters/command-code-acp-loader.js +11 -1
  276. package/data/build/dist/host/cli-adapters/command-code-acp-loader.js.map +1 -1
  277. package/data/build/dist/host/cli-adapters/command-code-driver.js +3 -2
  278. package/data/build/dist/host/cli-adapters/command-code-driver.js.map +1 -1
  279. package/data/build/dist/host/cli-adapters/desktop-app-runtime.d.ts +3 -1
  280. package/data/build/dist/host/cli-adapters/desktop-app-runtime.d.ts.map +1 -1
  281. package/data/build/dist/host/cli-adapters/desktop-app-runtime.js +41 -4
  282. package/data/build/dist/host/cli-adapters/desktop-app-runtime.js.map +1 -1
  283. package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts.map +1 -1
  284. package/data/build/dist/host/cli-adapters/dsh-message-projector.js +19 -5
  285. package/data/build/dist/host/cli-adapters/dsh-message-projector.js.map +1 -1
  286. package/data/build/dist/host/cli-adapters/dsh-virtual-providers.d.ts.map +1 -1
  287. package/data/build/dist/host/cli-adapters/dsh-virtual-providers.js +3 -2
  288. package/data/build/dist/host/cli-adapters/dsh-virtual-providers.js.map +1 -1
  289. package/data/build/dist/host/cli-adapters/feature.d.ts +2 -0
  290. package/data/build/dist/host/cli-adapters/feature.d.ts.map +1 -1
  291. package/data/build/dist/host/cli-adapters/feature.js +164 -34
  292. package/data/build/dist/host/cli-adapters/feature.js.map +1 -1
  293. package/data/build/dist/host/cli-adapters/gemini-driver.d.ts.map +1 -1
  294. package/data/build/dist/host/cli-adapters/gemini-driver.js +4 -2
  295. package/data/build/dist/host/cli-adapters/gemini-driver.js.map +1 -1
  296. package/data/build/dist/host/cli-adapters/grok-driver.d.ts +6 -0
  297. package/data/build/dist/host/cli-adapters/grok-driver.d.ts.map +1 -1
  298. package/data/build/dist/host/cli-adapters/grok-driver.js +327 -30
  299. package/data/build/dist/host/cli-adapters/grok-driver.js.map +1 -1
  300. package/data/build/dist/host/cli-adapters/grok-performance-projection.d.ts +123 -0
  301. package/data/build/dist/host/cli-adapters/grok-performance-projection.d.ts.map +1 -0
  302. package/data/build/dist/host/cli-adapters/grok-performance-projection.js +48 -0
  303. package/data/build/dist/host/cli-adapters/grok-performance-projection.js.map +1 -0
  304. package/data/build/dist/host/cli-adapters/grok-usage.d.ts +45 -0
  305. package/data/build/dist/host/cli-adapters/grok-usage.d.ts.map +1 -0
  306. package/data/build/dist/host/cli-adapters/grok-usage.js +197 -0
  307. package/data/build/dist/host/cli-adapters/grok-usage.js.map +1 -0
  308. package/data/build/dist/host/cli-adapters/legacy-session-adapter.d.ts.map +1 -1
  309. package/data/build/dist/host/cli-adapters/legacy-session-adapter.js +20 -3
  310. package/data/build/dist/host/cli-adapters/legacy-session-adapter.js.map +1 -1
  311. package/data/build/dist/host/cli-adapters/management-installation.d.ts +5 -0
  312. package/data/build/dist/host/cli-adapters/management-installation.d.ts.map +1 -0
  313. package/data/build/dist/host/cli-adapters/management-installation.js +131 -0
  314. package/data/build/dist/host/cli-adapters/management-installation.js.map +1 -0
  315. package/data/build/dist/host/cli-adapters/management-methods.d.ts +37 -0
  316. package/data/build/dist/host/cli-adapters/management-methods.d.ts.map +1 -0
  317. package/data/build/dist/host/cli-adapters/management-methods.js +144 -0
  318. package/data/build/dist/host/cli-adapters/management-methods.js.map +1 -0
  319. package/data/build/dist/host/cli-adapters/management-process.d.ts +7 -0
  320. package/data/build/dist/host/cli-adapters/management-process.d.ts.map +1 -0
  321. package/data/build/dist/host/cli-adapters/management-process.js +62 -0
  322. package/data/build/dist/host/cli-adapters/management-process.js.map +1 -0
  323. package/data/build/dist/host/cli-adapters/management.d.ts +32 -0
  324. package/data/build/dist/host/cli-adapters/management.d.ts.map +1 -0
  325. package/data/build/dist/host/cli-adapters/management.js +177 -0
  326. package/data/build/dist/host/cli-adapters/management.js.map +1 -0
  327. package/data/build/dist/host/cli-adapters/mcode-driver.d.ts.map +1 -1
  328. package/data/build/dist/host/cli-adapters/mcode-driver.js +11 -4
  329. package/data/build/dist/host/cli-adapters/mcode-driver.js.map +1 -1
  330. package/data/build/dist/host/cli-adapters/model-catalog.d.ts +1 -0
  331. package/data/build/dist/host/cli-adapters/model-catalog.d.ts.map +1 -1
  332. package/data/build/dist/host/cli-adapters/model-catalog.js +62 -0
  333. package/data/build/dist/host/cli-adapters/model-catalog.js.map +1 -1
  334. package/data/build/dist/host/cli-adapters/native-subagent-dispatch.d.ts +1 -1
  335. package/data/build/dist/host/cli-adapters/native-subagent-dispatch.d.ts.map +1 -1
  336. package/data/build/dist/host/cli-adapters/native-subagent-dispatch.js +11 -3
  337. package/data/build/dist/host/cli-adapters/native-subagent-dispatch.js.map +1 -1
  338. package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts +7 -1
  339. package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts.map +1 -1
  340. package/data/build/dist/host/cli-adapters/native-team-subagent.js +4 -2
  341. package/data/build/dist/host/cli-adapters/native-team-subagent.js.map +1 -1
  342. package/data/build/dist/host/cli-adapters/opencode-driver.d.ts +22 -0
  343. package/data/build/dist/host/cli-adapters/opencode-driver.d.ts.map +1 -1
  344. package/data/build/dist/host/cli-adapters/opencode-driver.js +105 -17
  345. package/data/build/dist/host/cli-adapters/opencode-driver.js.map +1 -1
  346. package/data/build/dist/host/cli-adapters/process-utils.d.ts +2 -0
  347. package/data/build/dist/host/cli-adapters/process-utils.d.ts.map +1 -1
  348. package/data/build/dist/host/cli-adapters/process-utils.js +16 -11
  349. package/data/build/dist/host/cli-adapters/process-utils.js.map +1 -1
  350. package/data/build/dist/host/cli-adapters/registry.d.ts +7 -1
  351. package/data/build/dist/host/cli-adapters/registry.d.ts.map +1 -1
  352. package/data/build/dist/host/cli-adapters/registry.js +98 -30
  353. package/data/build/dist/host/cli-adapters/registry.js.map +1 -1
  354. package/data/build/dist/host/cli-adapters/session-performance-projection.d.ts +74 -0
  355. package/data/build/dist/host/cli-adapters/session-performance-projection.d.ts.map +1 -0
  356. package/data/build/dist/host/cli-adapters/session-performance-projection.js +83 -0
  357. package/data/build/dist/host/cli-adapters/session-performance-projection.js.map +1 -0
  358. package/data/build/dist/host/cli-adapters/standard-stream-driver.d.ts.map +1 -1
  359. package/data/build/dist/host/cli-adapters/standard-stream-driver.js +4 -0
  360. package/data/build/dist/host/cli-adapters/standard-stream-driver.js.map +1 -1
  361. package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts +3 -1
  362. package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts.map +1 -1
  363. package/data/build/dist/host/cli-adapters/stream-normalizer.js +2 -0
  364. package/data/build/dist/host/cli-adapters/stream-normalizer.js.map +1 -1
  365. package/data/build/dist/host/cli-adapters/subagent-tool.js +1 -1
  366. package/data/build/dist/host/cli-adapters/subagent-tool.js.map +1 -1
  367. package/data/build/dist/host/cli-adapters/team-input.d.ts +17 -0
  368. package/data/build/dist/host/cli-adapters/team-input.d.ts.map +1 -0
  369. package/data/build/dist/host/cli-adapters/team-input.js +67 -0
  370. package/data/build/dist/host/cli-adapters/team-input.js.map +1 -0
  371. package/data/build/dist/host/cli-adapters/update-check.d.ts +34 -0
  372. package/data/build/dist/host/cli-adapters/update-check.d.ts.map +1 -0
  373. package/data/build/dist/host/cli-adapters/update-check.js +263 -0
  374. package/data/build/dist/host/cli-adapters/update-check.js.map +1 -0
  375. package/data/build/dist/host/cli-adapters/zcode-driver.d.ts.map +1 -1
  376. package/data/build/dist/host/cli-adapters/zcode-driver.js +6 -1
  377. package/data/build/dist/host/cli-adapters/zcode-driver.js.map +1 -1
  378. package/data/build/dist/host/cli-adapters/zcode-update.d.ts +8 -0
  379. package/data/build/dist/host/cli-adapters/zcode-update.d.ts.map +1 -0
  380. package/data/build/dist/host/cli-adapters/zcode-update.js +149 -0
  381. package/data/build/dist/host/cli-adapters/zcode-update.js.map +1 -0
  382. package/data/build/dist/host/cli-bridge/bridge-holder.d.ts +14 -0
  383. package/data/build/dist/host/cli-bridge/bridge-holder.d.ts.map +1 -1
  384. package/data/build/dist/host/cli-bridge/bridge-holder.js +53 -6
  385. package/data/build/dist/host/cli-bridge/bridge-holder.js.map +1 -1
  386. package/data/build/dist/host/cli-bridge/bridge-server.d.ts +4 -0
  387. package/data/build/dist/host/cli-bridge/bridge-server.d.ts.map +1 -1
  388. package/data/build/dist/host/cli-bridge/bridge-server.js +34 -6
  389. package/data/build/dist/host/cli-bridge/bridge-server.js.map +1 -1
  390. package/data/build/dist/host/cli-bridge/command-code-mod.d.ts.map +1 -1
  391. package/data/build/dist/host/cli-bridge/command-code-mod.js +43 -0
  392. package/data/build/dist/host/cli-bridge/command-code-mod.js.map +1 -1
  393. package/data/build/dist/host/cli-bridge/dispatch.js +1 -1
  394. package/data/build/dist/host/cli-bridge/dispatch.js.map +1 -1
  395. package/data/build/dist/host/cli-bridge/injections.d.ts +3 -0
  396. package/data/build/dist/host/cli-bridge/injections.d.ts.map +1 -1
  397. package/data/build/dist/host/cli-bridge/injections.js +23 -7
  398. package/data/build/dist/host/cli-bridge/injections.js.map +1 -1
  399. package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js +22 -3
  400. package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js.map +1 -1
  401. package/data/build/dist/host/cli-bridge/team-adapters.d.ts +11 -0
  402. package/data/build/dist/host/cli-bridge/team-adapters.d.ts.map +1 -0
  403. package/data/build/dist/host/cli-bridge/team-adapters.js +22 -0
  404. package/data/build/dist/host/cli-bridge/team-adapters.js.map +1 -0
  405. package/data/build/dist/host/cli-bridge/team-dispatch.d.ts +28 -0
  406. package/data/build/dist/host/cli-bridge/team-dispatch.d.ts.map +1 -0
  407. package/data/build/dist/host/cli-bridge/team-dispatch.js +208 -0
  408. package/data/build/dist/host/cli-bridge/team-dispatch.js.map +1 -0
  409. package/data/build/dist/host/cli-bridge/team-tool.d.ts +3 -0
  410. package/data/build/dist/host/cli-bridge/team-tool.d.ts.map +1 -0
  411. package/data/build/dist/host/cli-bridge/team-tool.js +18 -0
  412. package/data/build/dist/host/cli-bridge/team-tool.js.map +1 -0
  413. package/data/build/dist/host/features/file-management.d.ts.map +1 -1
  414. package/data/build/dist/host/features/file-management.js +8 -0
  415. package/data/build/dist/host/features/file-management.js.map +1 -1
  416. package/data/build/dist/host/features/index.d.ts.map +1 -1
  417. package/data/build/dist/host/features/index.js +2 -0
  418. package/data/build/dist/host/features/index.js.map +1 -1
  419. package/data/build/dist/host/features/lan-access-dsh.js +1 -1
  420. package/data/build/dist/host/features/lan-access-dsh.js.map +1 -1
  421. package/data/build/dist/host/features/peer-host.d.ts.map +1 -1
  422. package/data/build/dist/host/features/peer-host.js +7 -0
  423. package/data/build/dist/host/features/peer-host.js.map +1 -1
  424. package/data/build/dist/host/features/quick-apps.d.ts +4 -0
  425. package/data/build/dist/host/features/quick-apps.d.ts.map +1 -0
  426. package/data/build/dist/host/features/quick-apps.js +158 -0
  427. package/data/build/dist/host/features/quick-apps.js.map +1 -0
  428. package/data/build/dist/host/features/session-prompt-translation.d.ts +1 -1
  429. package/data/build/dist/host/features/session-prompt-translation.d.ts.map +1 -1
  430. package/data/build/dist/host/features/session-prompt-translation.js +13 -4
  431. package/data/build/dist/host/features/session-prompt-translation.js.map +1 -1
  432. package/data/build/dist/host/features/session-translation-protection.d.ts +6 -0
  433. package/data/build/dist/host/features/session-translation-protection.d.ts.map +1 -1
  434. package/data/build/dist/host/features/session-translation-protection.js +21 -0
  435. package/data/build/dist/host/features/session-translation-protection.js.map +1 -1
  436. package/data/build/dist/host/features/session-translation-recovery.d.ts +3 -2
  437. package/data/build/dist/host/features/session-translation-recovery.d.ts.map +1 -1
  438. package/data/build/dist/host/features/session-translation-recovery.js +6 -3
  439. package/data/build/dist/host/features/session-translation-recovery.js.map +1 -1
  440. package/data/build/dist/host/features/session-translation-service.d.ts +3 -0
  441. package/data/build/dist/host/features/session-translation-service.d.ts.map +1 -1
  442. package/data/build/dist/host/features/session-translation-service.js +14 -8
  443. package/data/build/dist/host/features/session-translation-service.js.map +1 -1
  444. package/data/build/dist/host/features/types.d.ts +10 -0
  445. package/data/build/dist/host/features/types.d.ts.map +1 -1
  446. package/data/build/dist/host/html-workspace-files.d.ts +3 -0
  447. package/data/build/dist/host/html-workspace-files.d.ts.map +1 -0
  448. package/data/build/dist/host/html-workspace-files.js +135 -0
  449. package/data/build/dist/host/html-workspace-files.js.map +1 -0
  450. package/data/build/dist/host/index.d.ts.map +1 -1
  451. package/data/build/dist/host/index.js +27 -2
  452. package/data/build/dist/host/index.js.map +1 -1
  453. package/data/build/dist/host/lan-access-dsh.d.ts +5 -1
  454. package/data/build/dist/host/lan-access-dsh.d.ts.map +1 -1
  455. package/data/build/dist/host/lan-access-dsh.js +43 -2
  456. package/data/build/dist/host/lan-access-dsh.js.map +1 -1
  457. package/data/build/dist/host/modules/peer-host/quick-app-gateway.d.ts +5 -0
  458. package/data/build/dist/host/modules/peer-host/quick-app-gateway.d.ts.map +1 -0
  459. package/data/build/dist/host/modules/peer-host/quick-app-gateway.js +27 -0
  460. package/data/build/dist/host/modules/peer-host/quick-app-gateway.js.map +1 -0
  461. package/data/build/dist/host/modules/quick-apps/browse.d.ts +5 -0
  462. package/data/build/dist/host/modules/quick-apps/browse.d.ts.map +1 -0
  463. package/data/build/dist/host/modules/quick-apps/browse.js +37 -0
  464. package/data/build/dist/host/modules/quick-apps/browse.js.map +1 -0
  465. package/data/build/dist/host/modules/quick-apps/code-revision.d.ts +4 -0
  466. package/data/build/dist/host/modules/quick-apps/code-revision.d.ts.map +1 -0
  467. package/data/build/dist/host/modules/quick-apps/code-revision.js +39 -0
  468. package/data/build/dist/host/modules/quick-apps/code-revision.js.map +1 -0
  469. package/data/build/dist/host/modules/quick-apps/documents.d.ts +14 -0
  470. package/data/build/dist/host/modules/quick-apps/documents.d.ts.map +1 -0
  471. package/data/build/dist/host/modules/quick-apps/documents.js +87 -0
  472. package/data/build/dist/host/modules/quick-apps/documents.js.map +1 -0
  473. package/data/build/dist/host/modules/quick-apps/errors.d.ts +8 -0
  474. package/data/build/dist/host/modules/quick-apps/errors.d.ts.map +1 -0
  475. package/data/build/dist/host/modules/quick-apps/errors.js +15 -0
  476. package/data/build/dist/host/modules/quick-apps/errors.js.map +1 -0
  477. package/data/build/dist/host/modules/quick-apps/file-api.d.ts +30 -0
  478. package/data/build/dist/host/modules/quick-apps/file-api.d.ts.map +1 -0
  479. package/data/build/dist/host/modules/quick-apps/file-api.js +149 -0
  480. package/data/build/dist/host/modules/quick-apps/file-api.js.map +1 -0
  481. package/data/build/dist/host/modules/quick-apps/launches.d.ts +35 -0
  482. package/data/build/dist/host/modules/quick-apps/launches.d.ts.map +1 -0
  483. package/data/build/dist/host/modules/quick-apps/launches.js +80 -0
  484. package/data/build/dist/host/modules/quick-apps/launches.js.map +1 -0
  485. package/data/build/dist/host/modules/quick-apps/paths.d.ts +14 -0
  486. package/data/build/dist/host/modules/quick-apps/paths.d.ts.map +1 -0
  487. package/data/build/dist/host/modules/quick-apps/paths.js +72 -0
  488. package/data/build/dist/host/modules/quick-apps/paths.js.map +1 -0
  489. package/data/build/dist/host/modules/quick-apps/registry.d.ts +30 -0
  490. package/data/build/dist/host/modules/quick-apps/registry.d.ts.map +1 -0
  491. package/data/build/dist/host/modules/quick-apps/registry.js +186 -0
  492. package/data/build/dist/host/modules/quick-apps/registry.js.map +1 -0
  493. package/data/build/dist/host/modules/quick-apps/remote.d.ts +38 -0
  494. package/data/build/dist/host/modules/quick-apps/remote.d.ts.map +1 -0
  495. package/data/build/dist/host/modules/quick-apps/remote.js +238 -0
  496. package/data/build/dist/host/modules/quick-apps/remote.js.map +1 -0
  497. package/data/build/dist/host/modules/quick-apps/service.d.ts +27 -0
  498. package/data/build/dist/host/modules/quick-apps/service.d.ts.map +1 -0
  499. package/data/build/dist/host/modules/quick-apps/service.js +174 -0
  500. package/data/build/dist/host/modules/quick-apps/service.js.map +1 -0
  501. package/data/build/dist/host/modules/quick-apps/static-handler.d.ts +8 -0
  502. package/data/build/dist/host/modules/quick-apps/static-handler.d.ts.map +1 -0
  503. package/data/build/dist/host/modules/quick-apps/static-handler.js +190 -0
  504. package/data/build/dist/host/modules/quick-apps/static-handler.js.map +1 -0
  505. package/data/build/dist/host/native-session-bridge.d.ts +5 -0
  506. package/data/build/dist/host/native-session-bridge.d.ts.map +1 -1
  507. package/data/build/dist/host/native-session-bridge.js +3 -0
  508. package/data/build/dist/host/native-session-bridge.js.map +1 -1
  509. package/data/build/dist/host/rpc.d.ts.map +1 -1
  510. package/data/build/dist/host/rpc.js +8 -3
  511. package/data/build/dist/host/rpc.js.map +1 -1
  512. package/data/build/dist/host/session-migration-repair.js +48 -35
  513. package/data/build/dist/host/session-migration-repair.js.map +1 -1
  514. package/data/build/dist/host/settings.d.ts.map +1 -1
  515. package/data/build/dist/host/settings.js +13 -0
  516. package/data/build/dist/host/settings.js.map +1 -1
  517. package/data/build/dist/host/workspace-file-mutations.d.ts +2 -0
  518. package/data/build/dist/host/workspace-file-mutations.d.ts.map +1 -0
  519. package/data/build/dist/host/workspace-file-mutations.js +15 -0
  520. package/data/build/dist/host/workspace-file-mutations.js.map +1 -0
  521. package/data/build/dist/shared/cli-provider-route.d.ts +7 -0
  522. package/data/build/dist/shared/cli-provider-route.d.ts.map +1 -0
  523. package/data/build/dist/shared/cli-provider-route.js +13 -0
  524. package/data/build/dist/shared/cli-provider-route.js.map +1 -0
  525. package/data/build/dist/shared/codex-performance.d.ts +3 -0
  526. package/data/build/dist/shared/codex-performance.d.ts.map +1 -0
  527. package/data/build/dist/shared/codex-performance.js +2 -0
  528. package/data/build/dist/shared/codex-performance.js.map +1 -0
  529. package/data/build/dist/shared/contracts/agent-team.d.ts +14 -0
  530. package/data/build/dist/shared/contracts/agent-team.d.ts.map +1 -0
  531. package/data/build/dist/shared/contracts/agent-team.js +48 -0
  532. package/data/build/dist/shared/contracts/agent-team.js.map +1 -0
  533. package/data/build/dist/shared/contracts/cli-adapter.d.ts +35 -0
  534. package/data/build/dist/shared/contracts/cli-adapter.d.ts.map +1 -1
  535. package/data/build/dist/shared/contracts/cli-management.d.ts +29 -0
  536. package/data/build/dist/shared/contracts/cli-management.d.ts.map +1 -0
  537. package/data/build/dist/shared/contracts/cli-management.js +2 -0
  538. package/data/build/dist/shared/contracts/cli-management.js.map +1 -0
  539. package/data/build/dist/shared/contracts/config.d.ts +2 -0
  540. package/data/build/dist/shared/contracts/config.d.ts.map +1 -1
  541. package/data/build/dist/shared/contracts/config.js.map +1 -1
  542. package/data/build/dist/shared/contracts/errors.d.ts +2 -2
  543. package/data/build/dist/shared/contracts/errors.d.ts.map +1 -1
  544. package/data/build/dist/shared/contracts/quick-apps.d.ts +68 -0
  545. package/data/build/dist/shared/contracts/quick-apps.d.ts.map +1 -0
  546. package/data/build/dist/shared/contracts/quick-apps.js +4 -0
  547. package/data/build/dist/shared/contracts/quick-apps.js.map +1 -0
  548. package/data/build/dist/shared/contracts/session-translation.d.ts +8 -3
  549. package/data/build/dist/shared/contracts/session-translation.d.ts.map +1 -1
  550. package/data/build/dist/shared/contracts/session-translation.js +14 -0
  551. package/data/build/dist/shared/contracts/session-translation.js.map +1 -1
  552. package/data/build/dist/shared/contracts/version.d.ts +9 -15
  553. package/data/build/dist/shared/contracts/version.d.ts.map +1 -1
  554. package/data/build/dist/shared/contracts/version.js +8 -14
  555. package/data/build/dist/shared/contracts/version.js.map +1 -1
  556. package/data/build/dist/shared/peer-host-http-routes.d.ts +4 -0
  557. package/data/build/dist/shared/peer-host-http-routes.d.ts.map +1 -1
  558. package/data/build/dist/shared/peer-host-http-routes.js +4 -0
  559. package/data/build/dist/shared/peer-host-http-routes.js.map +1 -1
  560. package/data/build/dist/shared/quick-app-browser-storage.d.ts +33 -0
  561. package/data/build/dist/shared/quick-app-browser-storage.d.ts.map +1 -0
  562. package/data/build/dist/shared/quick-app-browser-storage.js +33 -0
  563. package/data/build/dist/shared/quick-app-browser-storage.js.map +1 -0
  564. package/data/build/dist/shared/quick-app-proxy-path.d.ts +6 -0
  565. package/data/build/dist/shared/quick-app-proxy-path.d.ts.map +1 -0
  566. package/data/build/dist/shared/quick-app-proxy-path.js +18 -0
  567. package/data/build/dist/shared/quick-app-proxy-path.js.map +1 -0
  568. package/data/build/dist/shared/quick-app-storage-bootstrap.d.ts +9 -0
  569. package/data/build/dist/shared/quick-app-storage-bootstrap.d.ts.map +1 -0
  570. package/data/build/dist/shared/quick-app-storage-bootstrap.js +186 -0
  571. package/data/build/dist/shared/quick-app-storage-bootstrap.js.map +1 -0
  572. package/data/build/dist/shared/quick-apps-bootstrap-locale.d.ts +7 -0
  573. package/data/build/dist/shared/quick-apps-bootstrap-locale.d.ts.map +1 -0
  574. package/data/build/dist/shared/quick-apps-bootstrap-locale.js +10 -0
  575. package/data/build/dist/shared/quick-apps-bootstrap-locale.js.map +1 -0
  576. package/data/build/dist/shared/request-performance.d.ts +15 -0
  577. package/data/build/dist/shared/request-performance.d.ts.map +1 -0
  578. package/data/build/dist/shared/request-performance.js +3 -0
  579. package/data/build/dist/shared/request-performance.js.map +1 -0
  580. package/package.json +32 -32
  581. package/profile/README.md +2 -2
  582. package/profile/package.json +3 -3
  583. package/profile/version.json +3 -3
  584. package/version.json +3 -3
@@ -15,6 +15,8 @@ import { QoderCliDriver } from './qoder-driver.js';
15
15
  import { AntigravityDriver } from './antigravity-driver.js';
16
16
  import { DoubaoAppDriver } from './doubao-driver.js';
17
17
  import { CodingNsCliAdapterRegistry } from './registry.js';
18
+ import { CliManagementService } from './management.js';
19
+ import { CliUpdateCheckService } from './update-check.js';
18
20
  import { CodingNsCliSessionStore } from './session-store.js';
19
21
  import { CodingNsDshMessageProjector } from './dsh-message-projector.js';
20
22
  import { CommandCodeSubscriptionService } from './command-code-subscription.js';
@@ -24,7 +26,7 @@ import { setAdapterRegistry } from './registry-holder.js';
24
26
  import { createDshVirtualProviderRegistration } from './dsh-virtual-providers.js';
25
27
  import { dispatchBridgeSubagent } from '../cli-bridge/dispatch.js';
26
28
  import { startSubagentBridgeServer } from '../cli-bridge/bridge-server.js';
27
- import { setSubagentBridge } from '../cli-bridge/bridge-holder.js';
29
+ import { getSubagentBridge, setSubagentBridge } from '../cli-bridge/bridge-holder.js';
28
30
  import { delegateCapability, dispatchDelegateSubagent } from './delegate-dispatch.js';
29
31
  import { guardNativeSubagentParentTurn, markNativeSubagentParentTurnStarted, setMaxNativeSubagentsPerParent } from './native-subagent-dispatch.js';
30
32
  import { containsDelegationCarrier, delegationAdapterIds, rewriteDelegationMessages } from './delegation-mention-rewrite.js';
@@ -34,11 +36,20 @@ import { hasLegacySessionAdapterHint } from './legacy-session-adapter.js';
34
36
  import { DSH_NATIVE_SESSION_ADAPTER_ID, formatSessionTranslationOutput, readSessionTranslationMetrics, } from '../../shared/contracts/session-translation.js';
35
37
  import { createInteractionTranslation } from '../features/interaction-translation.js';
36
38
  import { createSessionTranslationRecovery, SessionTranslationCancelled } from '../features/session-translation-recovery.js';
39
+ import { isSessionTranslationInputEnabled } from '../features/session-translation-service.js';
37
40
  import { ASSISTANT_AGENT_PREFIX } from '../../dsh-capabilities/host/assistant-agent-adapter.js';
38
41
  import { createDshCapabilityRegistry } from '../../dsh-capabilities/routes.js';
39
42
  import { attachmentFileNotice } from '../../shared/attachment-prompts.js';
40
43
  import { sessionPromptScope } from '../../dsh-capabilities/host/session-prompt-adapter.js';
41
44
  import { createSessionPromptTranslation } from '../features/session-prompt-translation.js';
45
+ import { codexPerformanceProjection } from './codex-performance-projection.js';
46
+ import { grokContextProjection, grokPerformanceProjection } from './grok-performance-projection.js';
47
+ import { fromCliProviderId, toCliProviderId } from '../../shared/cli-provider-route.js';
48
+ import { DshAgentTeamAdapter } from '../../dsh-capabilities/host/agent-team-adapter.js';
49
+ import { CodingNsTeamDispatcher } from '../cli-bridge/team-dispatch.js';
50
+ import { createAgentTeamTool } from '../cli-bridge/team-tool.js';
51
+ import { TeamInputTracker, isTeamInputMessage, pendingPeerInput } from './team-input.js';
52
+ import { withTeamSupport } from '../cli-bridge/team-adapters.js';
42
53
  export function createCliAdaptersFeature(options = {}) {
43
54
  return {
44
55
  descriptor: {
@@ -47,7 +58,12 @@ export function createCliAdaptersFeature(options = {}) {
47
58
  enabledByDefault: true,
48
59
  dependencies: [],
49
60
  runtime: 'host',
50
- requires: [{ capability: 'session.external-model-selection', required: false, fallback: 'degrade' }],
61
+ requires: [
62
+ { capability: 'agent-team.external-member', required: false, fallback: 'degrade' },
63
+ { capability: 'agent-team.external-lead', required: false, fallback: 'degrade' },
64
+ { capability: 'session.external-model-selection', required: false, fallback: 'degrade' },
65
+ { capability: 'session.external-performance', required: false, fallback: 'degrade' },
66
+ ],
51
67
  },
52
68
  async start(context) {
53
69
  const lifetime = new AbortController();
@@ -63,6 +79,15 @@ export function createCliAdaptersFeature(options = {}) {
63
79
  const sessionStore = options.registry?.sessionRecords
64
80
  ?? new CodingNsCliSessionStore(context.services.settings === undefined ? {} : { settings: context.services.settings });
65
81
  const nativeSessions = context.services.nativeSessions;
82
+ if (context.services.dshContext !== undefined && context.services.dshVersion !== undefined) {
83
+ const performance = createDshCapabilityRegistry(context.services.dshVersion, 'host', context.services.dshContext)
84
+ .getProfile(context.services.dshContext).capabilities.get('session.external-performance')?.value;
85
+ if (performance !== undefined) {
86
+ for (const projection of [codexPerformanceProjection, grokPerformanceProjection, grokContextProjection]) {
87
+ context.resources.add(performance.install(projection));
88
+ }
89
+ }
90
+ }
66
91
  const translation = context.services.sessionTranslation;
67
92
  // 启动只恢复持久化索引;旧会话在打开时迁移,禁止在首屏扫描全部历史。
68
93
  const registry = options.registry ?? new CodingNsCliAdapterRegistry([
@@ -90,6 +115,45 @@ export function createCliAdaptersFeature(options = {}) {
90
115
  ...(context.services.nativeSessions === undefined ? {} : { nativeSessions: context.services.nativeSessions }),
91
116
  });
92
117
  setAdapterRegistry(registry);
118
+ const teamInputs = new TeamInputTracker();
119
+ context.resources.add(() => teamInputs.clear());
120
+ let teamAdapter;
121
+ const teamDispatcher = new CodingNsTeamDispatcher({
122
+ adapter: () => teamAdapter,
123
+ registry,
124
+ enabled: () => !lifetime.signal.aborted && normalizeSubagentBridgeSettings(context.services.settings?.get().subagentBridge).enabled,
125
+ });
126
+ const versionSupported = context.services.dshVersion !== undefined && !createDshCapabilityRegistry(context.services.dshVersion, 'host', {}).getProfile({}).diagnostics.some(item => item.capability === 'agent-team.external-member' && item.code === 'CAPABILITY_VERSION_UNSUPPORTED');
127
+ const teamCatalog = (catalog) => withTeamSupport(catalog, !versionSupported ? 'version' : !normalizeSubagentBridgeSettings(context.services.settings?.get().subagentBridge).enabled ? 'disabled' : !teamAdapter ? 'profile' : undefined, teamAdapter?.supportsLead);
128
+ const dshContext = context.services.dshContext;
129
+ if (dshContext?.inject && context.services.dshVersion) {
130
+ const teamScope = dshContext.inject(['agentTeams', 'agents', 'subagents', 'tools'], scoped => {
131
+ const capability = createDshCapabilityRegistry(context.services.dshVersion, 'host', scoped).getProfile(scoped).capabilities.get('agent-team.external-member');
132
+ if (capability?.status !== 'ready')
133
+ return;
134
+ const adapter = capability.value;
135
+ teamAdapter = adapter;
136
+ const tools = scoped.get('tools');
137
+ const unregister = tools.register(createAgentTeamTool(teamDispatcher));
138
+ scoped.effect(() => () => {
139
+ adapter.dispose();
140
+ if (teamAdapter === adapter)
141
+ teamAdapter = undefined;
142
+ if (typeof unregister === 'function')
143
+ unregister();
144
+ }, 'CodingNS native Team bridge');
145
+ });
146
+ context.resources.add(() => teamScope.dispose());
147
+ }
148
+ if (dshContext?.on) {
149
+ const stopCreated = dshContext.on('agent/created', ((payload) => {
150
+ const agent = asRecord(payload)?.agent;
151
+ if (agent && typeof agent.id === 'string')
152
+ teamDispatcher.initializeNativeChild(agent);
153
+ }), { global: true });
154
+ if (typeof stopCreated === 'function')
155
+ context.resources.add(stopCreated);
156
+ }
93
157
  context.resources.add(() => {
94
158
  if (registry === undefined)
95
159
  return;
@@ -97,9 +161,9 @@ export function createCliAdaptersFeature(options = {}) {
97
161
  });
98
162
  registry.applyEnabledSettings(context.services.settings?.get().agentAdapters);
99
163
  const virtualProviders = createDshVirtualProviderRegistration(context.services.dshContext);
100
- virtualProviders?.setProviders(registry.enabledAdapterIds());
101
164
  if (virtualProviders !== undefined)
102
165
  context.resources.add(() => virtualProviders.dispose());
166
+ virtualProviders?.setProviders(registry.enabledAdapterIds());
103
167
  if (context.services.dshContext !== undefined && context.services.dshVersion !== undefined) {
104
168
  const selection = createDshCapabilityRegistry(context.services.dshVersion, 'host', context.services.dshContext)
105
169
  .getProfile(context.services.dshContext).capabilities.get('session.external-model-selection')
@@ -107,12 +171,20 @@ export function createCliAdaptersFeature(options = {}) {
107
171
  if (selection !== undefined)
108
172
  context.resources.add(selection.install((sessionId) => {
109
173
  const config = registry.getSession(sessionId);
174
+ if (config.adapterId === 'dsh' && config.teamId && config.providerId && config.modelId)
175
+ return {
176
+ provider: config.providerId, model: config.modelId, ...(config.effortId ? { reasoningEffort: config.effortId } : {}),
177
+ };
110
178
  if (config.adapterId === 'dsh' || !registry.isEnabled(config.adapterId))
111
179
  return undefined;
112
- return { provider: config.adapterId, model: config.modelId?.trim() || 'provider-default' };
180
+ return { provider: toCliProviderId(config.adapterId), model: config.modelId?.trim() || 'provider-default' };
113
181
  }));
114
182
  }
115
183
  registry.warmCatalog();
184
+ const management = new CliManagementService(registry);
185
+ context.resources.add(() => management.dispose());
186
+ const updates = new CliUpdateCheckService(options.updateCheck);
187
+ context.resources.add(() => updates.dispose());
116
188
  // 外部适配器没有经过 DSH 原生 Agent Loop,必须把同一套运行状态投影给
117
189
  // subagentCatalog。这里集中去重,避免 llm/stream、原生 session/event 和
118
190
  // agent/status 同时到达时反复刷新同一个子 Agent。
@@ -166,17 +238,23 @@ export function createCliAdaptersFeature(options = {}) {
166
238
  if (adapter !== undefined)
167
239
  context.resources.add(adapter.install((assembly, scope) => promptTranslation.translateAssembly(assembly, scope)));
168
240
  }
169
- registerDelegationAgentHooks(context.services.dshContext, registry, context.resources, publishExternalStatus, translation, translationRecovery, promptTranslation, nativeSessions);
241
+ registerDelegationAgentHooks(context.services.dshContext, registry, context.resources, publishExternalStatus, translation, translationRecovery, promptTranslation, nativeSessions, teamInputs);
170
242
  const interactionTranslation = createInteractionTranslation(translation, sessionId => registry.getSession(sessionId));
171
243
  context.resources.add(() => interactionTranslation.dispose());
172
244
  context.resources.add(context.services.rpc.register('cli', (action, payload, rpcContext) => {
173
245
  const rpcSignal = asRecord(rpcContext)?.signal;
174
246
  const signal = isAbortSignal(rpcSignal) ? rpcSignal : undefined;
175
247
  switch (action) {
176
- case 'catalog': return registry.catalog();
248
+ case 'management/plan':
249
+ case 'management/start':
250
+ case 'management/status':
251
+ case 'management/cancel': return management.rpc(action, payload);
252
+ case 'catalog': return registry.catalog().then(catalog => updates.catalog(teamCatalog(catalog)));
177
253
  case 'catalog/refresh': return registry.refreshCatalog(asRecord(payload)?.adapterId === undefined ? undefined : readAdapterId(payload)).then((catalog) => {
178
254
  subscriptions = buildSubscriptions(context.services.settings?.get());
179
- return catalog;
255
+ return asRecord(payload)?.checkUpdates === true
256
+ ? updates.refresh(teamCatalog(catalog), asRecord(payload)?.adapterId)
257
+ : updates.catalog(teamCatalog(catalog));
180
258
  });
181
259
  case 'models': {
182
260
  const adapterId = readAdapterId(payload);
@@ -276,6 +354,8 @@ export function createCliAdaptersFeature(options = {}) {
276
354
  try {
277
355
  const agents = readOptionalContextService(context.services.dshContext, 'agents');
278
356
  const server = await startSubagentBridgeServer({
357
+ teamAccess: (sessionId) => teamDispatcher.access(sessionId),
358
+ teamDispatch: (sessionId, input, signal) => teamDispatcher.dispatch(sessionId, input, signal),
279
359
  dispatch: (request) => dispatchBridgeSubagent(request, {
280
360
  agents: agents,
281
361
  nativeSessions: context.services.nativeSessions,
@@ -314,7 +394,7 @@ export function createCliAdaptersFeature(options = {}) {
314
394
  virtualProviders?.setProviders(registry.enabledAdapterIds());
315
395
  registry.syncPreferences(next.agentAdapterPreferences);
316
396
  sessionStore.sync(next.cliSessions);
317
- translationRecovery.cancelDisabled(next.sessionTranslation?.nativeEnabled === true, next.sessionTranslation?.inputEnabled !== false);
397
+ translationRecovery.cancelDisabled(next.sessionTranslation);
318
398
  const nextSubscriptionSettings = JSON.stringify(next.subscriptionUsage ?? null);
319
399
  if (nextSubscriptionSettings !== subscriptionSettings) {
320
400
  subscriptionSettings = nextSubscriptionSettings;
@@ -373,7 +453,7 @@ export function createCliAdaptersFeature(options = {}) {
373
453
  }
374
454
  else if (sessionId !== '')
375
455
  clearDelegationAuthorization(sessionId);
376
- const selectedExternalAdapter = selectExternalAdapter(dshSelection.providerId, inferMessageAdapter(messages), registry);
456
+ const selectedExternalAdapter = storedConfig.adapterId === 'dsh' && storedConfig.teamId ? undefined : selectExternalAdapter(fromCliProviderId(dshSelection.providerId), inferMessageAdapter(messages), registry);
377
457
  // DSH 的 modelSelection 只描述 DSH 自己那条模型路由(例如 glor/deepseek)。
378
458
  // 只有它明确指向即将接管的外部适配器时,model/effort 才属于该适配器;
379
459
  // 当适配器是从会话历史推断出来的(fork 子会话继承父会话的外部消息,而
@@ -381,7 +461,7 @@ export function createCliAdaptersFeature(options = {}) {
381
461
  // 写进外部 Agent——Codex 会用它 thread/start 并直接 404,整个会话从此
382
462
  // 无法继续。此时必须留空,由适配器自己的偏好决定模型。
383
463
  const selectionOwnedByAdapter = selectedExternalAdapter !== undefined
384
- && dshSelection.providerId === selectedExternalAdapter;
464
+ && (fromCliProviderId(dshSelection.providerId) ?? dshSelection.providerId) === selectedExternalAdapter;
385
465
  let config = storedConfig.adapterId === 'dsh' && selectedExternalAdapter !== undefined
386
466
  ? {
387
467
  adapterId: selectedExternalAdapter,
@@ -395,6 +475,9 @@ export function createCliAdaptersFeature(options = {}) {
395
475
  if (sessionId !== '' && storedConfig.adapterId === 'dsh' && selectedExternalAdapter !== undefined) {
396
476
  config = registry.setSession(sessionId, config);
397
477
  }
478
+ if (config.teamId && !teamDispatcher.identity(sessionId)) {
479
+ throw Object.assign(new Error('The native Team identity is unavailable. Restore its Team profile and adapter before continuing.'), { code: 'TEAM_SERVICE_UNAVAILABLE' });
480
+ }
398
481
  if (config.adapterId === 'dsh') {
399
482
  const selection = dshSelection;
400
483
  if (sessionId !== '' && (selection.modelId !== undefined || selection.effortId !== undefined)) {
@@ -416,13 +499,13 @@ export function createCliAdaptersFeature(options = {}) {
416
499
  return;
417
500
  }
418
501
  const cwd = resolveSessionCwd(context.services.nativeSessions, sessionId, value);
419
- const turnInput = extractTurnInput(messages, context.services.dshContext);
502
+ const turnInput = extractTurnInput(messages, context.services.dshContext, teamInputs.take(sessionId, messages));
420
503
  const turnOptions = readCliTurnOptions(value);
421
504
  const runtimeEnv = readCliRuntimeEnv(value);
422
505
  const requestSignal = isAbortSignal(value?.signal)
423
506
  ? AbortSignal.any([value.signal, lifetime.signal])
424
507
  : lifetime.signal;
425
- const translationLanguage = translation?.enabled && translation.inputEnabled !== false && config.translationEnabled === true ? readInputTargetLanguage(translation) : undefined;
508
+ const translationLanguage = translation?.enabled && isSessionTranslationInputEnabled(translation, config.adapterId) && config.translationEnabled === true ? readInputTargetLanguage(translation) : undefined;
426
509
  let translatedPrompt = turnInput.translationPrompt;
427
510
  if (turnInput.translatePrompt && turnInput.translationPrompt.trim() !== '' && translationLanguage !== undefined) {
428
511
  try {
@@ -449,6 +532,7 @@ export function createCliAdaptersFeature(options = {}) {
449
532
  sessionId,
450
533
  messages: turnInput.messages,
451
534
  prompt,
535
+ ...(turnInput.peerInput ? { peerInput: true } : {}),
452
536
  ...(translationLanguage === undefined ? {} : { translationLanguage }),
453
537
  ...(turnInput.attachments.length === 0 ? {} : { attachments: turnInput.attachments }),
454
538
  ...(permission === undefined ? {} : { permission }),
@@ -548,6 +632,8 @@ export function createCliAdaptersFeature(options = {}) {
548
632
  sessionStore.dispose();
549
633
  // Close native interaction cards before unloading their provider transports.
550
634
  lifetime.abort();
635
+ updates.dispose();
636
+ await management.dispose();
551
637
  await registry.dispose();
552
638
  await sessionStore.flush();
553
639
  setAdapterRegistry(undefined);
@@ -602,7 +688,7 @@ function createExternalSessionStatusPublisher(events, registry, sessionStore) {
602
688
  * `messages`,会直接抛出只读属性异常。`agent/pre-step` 返回的新消息保留用户原文,并把
603
689
  * 译文写入 source 元数据;外部适配器再据此构造发给 Agent 的译文。
604
690
  */
605
- function registerDelegationAgentHooks(dshContext, registry, resources, publishExternalStatus, translation, translationRecovery, promptTranslation, nativeSessions) {
691
+ function registerDelegationAgentHooks(dshContext, registry, resources, publishExternalStatus, translation, translationRecovery, promptTranslation, nativeSessions, teamInputs) {
606
692
  if (dshContext === undefined || typeof dshContext.on !== 'function')
607
693
  return;
608
694
  const disposers = [];
@@ -630,10 +716,15 @@ function registerDelegationAgentHooks(dshContext, registry, resources, publishEx
630
716
  catch {
631
717
  return config;
632
718
  }
719
+ if (session.adapterId === 'dsh' && session.teamId && session.providerId && session.modelId) {
720
+ const { reasoningEffort: _effort, ...nativeConfig } = config;
721
+ return { ...nativeConfig, provider: session.providerId, model: session.modelId, ...(session.effortId ? { reasoningEffort: session.effortId } : {}) };
722
+ }
723
+ const providerAdapter = fromCliProviderId(config.provider);
633
724
  const configuredAdapter = session.adapterId !== 'dsh' && registry.isEnabled(session.adapterId)
634
725
  ? session.adapterId
635
- : typeof config.provider === 'string' && registry.isEnabled(config.provider)
636
- ? config.provider
726
+ : providerAdapter !== undefined && registry.isEnabled(providerAdapter)
727
+ ? providerAdapter
637
728
  : undefined;
638
729
  if (configuredAdapter === undefined)
639
730
  return config;
@@ -649,7 +740,7 @@ function registerDelegationAgentHooks(dshContext, registry, resources, publishEx
649
740
  // UNSUPPORTED_REASONING_EFFORT 拒绝整轮;外部 Agent 的思考强度由适配器自己的
650
741
  // effortId 偏好驱动,因此这里必须丢弃继承值,只改写 provider/model。
651
742
  const { reasoningEffort: _inheritedReasoningEffort, ...routeConfig } = config;
652
- return { ...routeConfig, provider: configuredAdapter, model };
743
+ return { ...routeConfig, provider: toCliProviderId(configuredAdapter), model };
653
744
  });
654
745
  register('agent/pre-step', async (payload, next) => {
655
746
  const record = asRecord(payload);
@@ -674,8 +765,6 @@ function registerDelegationAgentHooks(dshContext, registry, resources, publishEx
674
765
  return { kind: 'reject' };
675
766
  throw error;
676
767
  }
677
- if (translatedInput !== undefined)
678
- messages = [...translatedInput];
679
768
  const decision = await next();
680
769
  if (!isEnterPreStepDecision(decision))
681
770
  return decision;
@@ -683,8 +772,9 @@ function registerDelegationAgentHooks(dshContext, registry, resources, publishEx
683
772
  // instructions before the human message, so a positional prefix loses data.
684
773
  const incoming = Array.isArray(record?.messages) ? record.messages.filter(isMessage) : [];
685
774
  const replaced = new Set();
775
+ const replacements = translatedInput ?? messages;
686
776
  const accepted = delegation?.kind === 'rewritten' || translatedInput !== undefined
687
- ? decision.messages.map(message => {
777
+ ? decision.messages.flatMap(message => {
688
778
  const index = incoming.findIndex((original, position) => !replaced.has(position) && (original === message || typeof original.id === 'string' && original.id === message.id
689
779
  // Legacy callers can return detached messages without durable IDs.
690
780
  || original.id === undefined && message.id === undefined && original.role === message.role
@@ -692,11 +782,17 @@ function registerDelegationAgentHooks(dshContext, registry, resources, publishEx
692
782
  && JSON.stringify(original.content) === JSON.stringify(message.content)));
693
783
  if (index >= 0)
694
784
  replaced.add(index);
695
- return index < 0 ? message : messages[index] ?? message;
785
+ if (index < 0)
786
+ return [message];
787
+ const replacement = replacements[index];
788
+ return replacement === undefined ? [] : [replacement];
696
789
  }) : decision.messages;
697
790
  try {
698
791
  const scope = sessionPromptScope(record?.agent, isAbortSignal(record?.signal) ? record.signal : undefined);
699
- return { ...decision, messages: await promptTranslation.translateMessages(accepted, scope) };
792
+ const translated = await promptTranslation.translateMessages(accepted, scope);
793
+ if (registry.getSession(sessionId).adapterId !== 'dsh')
794
+ teamInputs?.accept(sessionId, translated);
795
+ return { ...decision, messages: translated };
700
796
  }
701
797
  catch (error) {
702
798
  if (error instanceof SessionTranslationCancelled || record?.signal?.aborted === true)
@@ -719,6 +815,8 @@ function registerDelegationAgentHooks(dshContext, registry, resources, publishEx
719
815
  });
720
816
  register('agent/disposed', (payload) => {
721
817
  const sessionId = readAgentSessionId(asRecord(payload)?.agent);
818
+ teamInputs?.release(sessionId);
819
+ getSubagentBridge()?.revokeTeamSession?.(sessionId);
722
820
  translationRecovery.cancelSession(sessionId);
723
821
  // disposed 只代表运行时释放;subagentCatalog 没有删除语义,保留目录项并
724
822
  // 把它标成 idle,后续若 DSH 重新激活会再次收到 running。
@@ -857,11 +955,11 @@ function isMeaningfulDshChunk(value) {
857
955
  const record = asRecord(value);
858
956
  if (record === null)
859
957
  return false;
860
- if (record.type === 'text-delta' || record.type === 'reasoning-delta' || record.type === 'usage' || record.type === 'tool-call' || record.type === 'tool-result')
958
+ if (record.type === 'text-delta' || record.type === 'reasoning-delta' || record.type === 'usage' || record.type === 'tool-call-delta' || record.type === 'tool-call' || record.type === 'tool-result')
861
959
  return true;
862
960
  if (record.type === 'block-end') {
863
961
  const block = asRecord(record.block);
864
- return typeof block?.text === 'string' && block.text !== '';
962
+ return block?.type === 'tool-call' || block?.type === 'tool-result' || typeof block?.text === 'string' && block.text !== '';
865
963
  }
866
964
  return false;
867
965
  }
@@ -1061,13 +1159,14 @@ function selectExternalAdapter(selectedProvider, messageAdapter, registry) {
1061
1159
  function inferMessageAdapter(messages) {
1062
1160
  for (let index = messages.length - 1; index >= 0; index -= 1) {
1063
1161
  const source = asRecord(messages[index].source);
1064
- // 旧会话和 DSH 原生投影的 source 形状不完全一致;只要是模型消息就读取
1065
- // provider,最终仍由 selectExternalAdapter 校验是否为已启用外部适配器。
1066
1162
  if (source?.kind !== 'model')
1067
1163
  continue;
1068
- const provider = source.provider;
1069
- if (typeof provider === 'string' && provider.trim() !== '')
1070
- return provider.trim();
1164
+ const provider = typeof source.provider === 'string' ? source.provider.trim() : undefined;
1165
+ // Legacy raw providers need explicit plugin metadata; native API brands can
1166
+ // have the same names as CLI adapters. The latest model source is decisive.
1167
+ return fromCliProviderId(provider)
1168
+ ?? (typeof source.adapterId === 'string' ? source.adapterId : undefined)
1169
+ ?? (source.plugin === 'codingns4dsh' ? provider : undefined);
1071
1170
  }
1072
1171
  return undefined;
1073
1172
  }
@@ -1105,15 +1204,36 @@ async function translateSteerPrompt(translationRecovery, registry, sessionId, pr
1105
1204
  * 记录在 source 元数据中供 Client 详情按钮读取。外部 CLI 边界也会移除该元数据。
1106
1205
  */
1107
1206
  async function translatePreStepInput(translation, translationRecovery, registry, sessionId, messages, dshContext, signal, nativeSession) {
1108
- if (translation === undefined || !translation.enabled || translation.inputEnabled === false || sessionId.trim() === '')
1207
+ if (translation === undefined || !translation.enabled || sessionId.trim() === '')
1109
1208
  return undefined;
1209
+ if (messages.some(isTeamInputMessage)) {
1210
+ const next = [];
1211
+ for (const message of messages) {
1212
+ // Team protocol text keeps its sender and machine-owned body. Human
1213
+ // messages accepted at the same boundary still use submission recovery.
1214
+ try {
1215
+ const translated = isHumanUserMessage(message)
1216
+ ? await translatePreStepInput(translation, translationRecovery, registry, sessionId, [message], dshContext, signal, nativeSession)
1217
+ : undefined;
1218
+ next.push(translated?.[0] ?? message);
1219
+ }
1220
+ catch (error) {
1221
+ if (!(error instanceof SessionTranslationCancelled) || signal?.aborted)
1222
+ throw error;
1223
+ // Cancelling one submission does not cancel independently accepted
1224
+ // Team work. Keep the original positions until pre-step producers merge.
1225
+ next.push(undefined);
1226
+ }
1227
+ }
1228
+ return next.some((message, index) => message !== messages[index]) ? next : undefined;
1229
+ }
1110
1230
  const messageIndex = findLatestHumanMessage(messages);
1111
1231
  const current = messageIndex < 0 ? undefined : messages[messageIndex];
1112
1232
  if (current === undefined || readInputTranslation(current.source) !== undefined)
1113
1233
  return undefined;
1114
1234
  if (nativeSession !== undefined) {
1115
1235
  // DSH 原生会话:消息本身就是发给 Provider 的正文,直接替换为译文并把原文留在元数据。
1116
- if (nativeSession.translationEnabled !== true)
1236
+ if (nativeSession.translationEnabled !== true || !isSessionTranslationInputEnabled(translation, nativeSession.adapterId))
1117
1237
  return undefined;
1118
1238
  const input = extractTurnInput(messages, dshContext);
1119
1239
  if (input.prompt.trim() === '')
@@ -1147,7 +1267,7 @@ async function translatePreStepInput(translation, translationRecovery, registry,
1147
1267
  catch {
1148
1268
  return undefined;
1149
1269
  }
1150
- if (session.adapterId === 'dsh' || session.translationEnabled !== true)
1270
+ if (session.adapterId === 'dsh' || session.translationEnabled !== true || !isSessionTranslationInputEnabled(translation, session.adapterId))
1151
1271
  return undefined;
1152
1272
  const input = extractTurnInput(messages, dshContext);
1153
1273
  if (input.prompt.trim() === '')
@@ -1351,7 +1471,16 @@ async function* translateNativeStream(stream, translation, bilingual, signal) {
1351
1471
  }
1352
1472
  }
1353
1473
  }
1354
- function extractTurnInput(messages, dshContext) {
1474
+ function extractTurnInput(messages, dshContext, acceptedPeerInput = pendingPeerInput(messages)) {
1475
+ if (acceptedPeerInput.some(isTeamInputMessage)) {
1476
+ const parts = acceptedPeerInput.map(message => {
1477
+ const part = extractMessageInput(message.content, dshContext);
1478
+ const translated = isHumanUserMessage(message) ? readInputTranslation(message.source) : undefined;
1479
+ return translated ? { ...part, prompt: translated.translated } : part;
1480
+ });
1481
+ const prompt = parts.map(part => part.prompt).filter(text => text.trim() !== '').join('\n\n');
1482
+ return { prompt, peerInput: true, translationPrompt: prompt, untranslatedPrompt: '', attachments: parts.flatMap(part => part.attachments), translatePrompt: false, messages: stripInputTranslationDisplay(messages) };
1483
+ }
1355
1484
  for (let index = messages.length - 1; index >= 0; index -= 1) {
1356
1485
  const message = messages[index];
1357
1486
  if (message !== undefined && isInjectedStepNotice(message)) {
@@ -1374,9 +1503,10 @@ function extractTurnInput(messages, dshContext) {
1374
1503
  : messages.filter((_candidate, candidateIndex) => !referenceIndexes.includes(candidateIndex));
1375
1504
  const translatedInput = readInputTranslation(message.source);
1376
1505
  if (translatedInput !== undefined) {
1506
+ const prompt = [translatedInput.translated, ...referenceText].join('\n\n');
1377
1507
  return {
1378
- prompt: translatedInput.translated,
1379
- translationPrompt: translatedInput.translated,
1508
+ prompt,
1509
+ translationPrompt: prompt,
1380
1510
  untranslatedPrompt: '',
1381
1511
  attachments: direct.attachments,
1382
1512
  translatePrompt: false,