@evanbobo/dsh-agentdoor 0.0.0-stage → 0.2.2-rc.1

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 (1875) hide show
  1. package/LICENSE +21 -0
  2. package/README.en.md +268 -0
  3. package/README.md +243 -2
  4. package/THIRD_PARTY_NOTICES +96 -0
  5. package/assets/provider-icons/antigravity.svg +39 -0
  6. package/assets/provider-icons/claude-code.png +0 -0
  7. package/assets/provider-icons/codebuddy.svg +37 -0
  8. package/assets/provider-icons/codex.png +0 -0
  9. package/assets/provider-icons/command-code.svg +5 -0
  10. package/assets/provider-icons/cursor-cli.svg +1 -0
  11. package/assets/provider-icons/deepseek-harness.svg +9 -0
  12. package/assets/provider-icons/doubao.png +0 -0
  13. package/assets/provider-icons/gemini.png +0 -0
  14. package/assets/provider-icons/grok.png +0 -0
  15. package/assets/provider-icons/kimi.png +0 -0
  16. package/assets/provider-icons/kiro-cli.svg +11 -0
  17. package/assets/provider-icons/minimax-code.svg +4 -0
  18. package/assets/provider-icons/opencode.png +0 -0
  19. package/assets/provider-icons/pi.svg +7 -0
  20. package/assets/provider-icons/qoder-cn.svg +5 -0
  21. package/assets/provider-icons/qoder.svg +5 -0
  22. package/assets/provider-icons/r4.svg +4 -0
  23. package/assets/provider-icons/workbuddy.svg +29 -0
  24. package/assets/provider-icons/zcode.svg +14 -0
  25. package/bin/agent-door-credential.mjs +92 -0
  26. package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts +97 -0
  27. package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts.map +1 -0
  28. package/data/build/dist/bootstrap/dsh-connection-adapter.js +169 -0
  29. package/data/build/dist/bootstrap/dsh-connection-adapter.js.map +1 -0
  30. package/data/build/dist/bootstrap/index.d.ts +38 -0
  31. package/data/build/dist/bootstrap/index.d.ts.map +1 -0
  32. package/data/build/dist/bootstrap/index.js +44 -0
  33. package/data/build/dist/bootstrap/index.js.map +1 -0
  34. package/data/build/dist/client/account-bar.d.ts +14 -0
  35. package/data/build/dist/client/account-bar.d.ts.map +1 -0
  36. package/data/build/dist/client/account-bar.js +541 -0
  37. package/data/build/dist/client/account-bar.js.map +1 -0
  38. package/data/build/dist/client/adapter-catalog-watch.d.ts +16 -0
  39. package/data/build/dist/client/adapter-catalog-watch.d.ts.map +1 -0
  40. package/data/build/dist/client/adapter-catalog-watch.js +91 -0
  41. package/data/build/dist/client/adapter-catalog-watch.js.map +1 -0
  42. package/data/build/dist/client/bundle.js +67698 -0
  43. package/data/build/dist/client/bundle.js.map +1 -0
  44. package/data/build/dist/client/cli-catalog.d.ts +29 -0
  45. package/data/build/dist/client/cli-catalog.d.ts.map +1 -0
  46. package/data/build/dist/client/cli-catalog.js +148 -0
  47. package/data/build/dist/client/cli-catalog.js.map +1 -0
  48. package/data/build/dist/client/cli-management-dialog.d.ts +21 -0
  49. package/data/build/dist/client/cli-management-dialog.d.ts.map +1 -0
  50. package/data/build/dist/client/cli-management-dialog.js +215 -0
  51. package/data/build/dist/client/cli-management-dialog.js.map +1 -0
  52. package/data/build/dist/client/cli-management-terminal.d.ts +9 -0
  53. package/data/build/dist/client/cli-management-terminal.d.ts.map +1 -0
  54. package/data/build/dist/client/cli-management-terminal.js +30 -0
  55. package/data/build/dist/client/cli-management-terminal.js.map +1 -0
  56. package/data/build/dist/client/cli-session-config-cache.d.ts +17 -0
  57. package/data/build/dist/client/cli-session-config-cache.d.ts.map +1 -0
  58. package/data/build/dist/client/cli-session-config-cache.js +62 -0
  59. package/data/build/dist/client/cli-session-config-cache.js.map +1 -0
  60. package/data/build/dist/client/cli-settings-dialog.d.ts +9 -0
  61. package/data/build/dist/client/cli-settings-dialog.d.ts.map +1 -0
  62. package/data/build/dist/client/cli-settings-dialog.js +45 -0
  63. package/data/build/dist/client/cli-settings-dialog.js.map +1 -0
  64. package/data/build/dist/client/cli-slots.d.ts +64 -0
  65. package/data/build/dist/client/cli-slots.d.ts.map +1 -0
  66. package/data/build/dist/client/cli-slots.js +985 -0
  67. package/data/build/dist/client/cli-slots.js.map +1 -0
  68. package/data/build/dist/client/client.command-token.js +32 -0
  69. package/data/build/dist/client/client.command-token.js.map +1 -0
  70. package/data/build/dist/client/client.delegate-command.js +1314 -0
  71. package/data/build/dist/client/client.delegate-command.js.map +1 -0
  72. package/data/build/dist/client/client.editor-engine.js +32557 -0
  73. package/data/build/dist/client/client.editor-engine.js.map +1 -0
  74. package/data/build/dist/client/client.primitives-adapter.js +3740 -0
  75. package/data/build/dist/client/client.primitives-adapter.js.map +1 -0
  76. package/data/build/dist/client/client.rolldown-runtime.js +58 -0
  77. package/data/build/dist/client/client.xterm-engine.js +13061 -0
  78. package/data/build/dist/client/client.xterm-engine.js.map +1 -0
  79. package/data/build/dist/client/command-token.d.ts +13 -0
  80. package/data/build/dist/client/command-token.d.ts.map +1 -0
  81. package/data/build/dist/client/command-token.js +14 -0
  82. package/data/build/dist/client/command-token.js.map +1 -0
  83. package/data/build/dist/client/context-breakdown-dom.d.ts +53 -0
  84. package/data/build/dist/client/context-breakdown-dom.d.ts.map +1 -0
  85. package/data/build/dist/client/context-breakdown-dom.js +171 -0
  86. package/data/build/dist/client/context-breakdown-dom.js.map +1 -0
  87. package/data/build/dist/client/conversation-translation-settings.d.ts +11 -0
  88. package/data/build/dist/client/conversation-translation-settings.d.ts.map +1 -0
  89. package/data/build/dist/client/conversation-translation-settings.js +60 -0
  90. package/data/build/dist/client/conversation-translation-settings.js.map +1 -0
  91. package/data/build/dist/client/credential-reference.d.ts +14 -0
  92. package/data/build/dist/client/credential-reference.d.ts.map +1 -0
  93. package/data/build/dist/client/credential-reference.js +268 -0
  94. package/data/build/dist/client/credential-reference.js.map +1 -0
  95. package/data/build/dist/client/credential-ui-dom.d.ts +18 -0
  96. package/data/build/dist/client/credential-ui-dom.d.ts.map +1 -0
  97. package/data/build/dist/client/credential-ui-dom.js +191 -0
  98. package/data/build/dist/client/credential-ui-dom.js.map +1 -0
  99. package/data/build/dist/client/credentials-settings-section.d.ts +10 -0
  100. package/data/build/dist/client/credentials-settings-section.d.ts.map +1 -0
  101. package/data/build/dist/client/credentials-settings-section.js +204 -0
  102. package/data/build/dist/client/credentials-settings-section.js.map +1 -0
  103. package/data/build/dist/client/debug/ui.d.ts +13 -0
  104. package/data/build/dist/client/debug/ui.d.ts.map +1 -0
  105. package/data/build/dist/client/debug/ui.js +499 -0
  106. package/data/build/dist/client/debug/ui.js.map +1 -0
  107. package/data/build/dist/client/delegate-command.d.ts +17 -0
  108. package/data/build/dist/client/delegate-command.d.ts.map +1 -0
  109. package/data/build/dist/client/delegate-command.js +616 -0
  110. package/data/build/dist/client/delegate-command.js.map +1 -0
  111. package/data/build/dist/client/delegate-plan.d.ts +40 -0
  112. package/data/build/dist/client/delegate-plan.d.ts.map +1 -0
  113. package/data/build/dist/client/delegate-plan.js +63 -0
  114. package/data/build/dist/client/delegate-plan.js.map +1 -0
  115. package/data/build/dist/client/delegate-ui-dom.d.ts +86 -0
  116. package/data/build/dist/client/delegate-ui-dom.d.ts.map +1 -0
  117. package/data/build/dist/client/delegate-ui-dom.js +647 -0
  118. package/data/build/dist/client/delegate-ui-dom.js.map +1 -0
  119. package/data/build/dist/client/dsh-h5-bootstrap.d.ts +66 -0
  120. package/data/build/dist/client/dsh-h5-bootstrap.d.ts.map +1 -0
  121. package/data/build/dist/client/dsh-h5-bootstrap.js +372 -0
  122. package/data/build/dist/client/dsh-h5-bootstrap.js.map +1 -0
  123. package/data/build/dist/client/dsh-runtime-version.d.ts +4 -0
  124. package/data/build/dist/client/dsh-runtime-version.d.ts.map +1 -0
  125. package/data/build/dist/client/dsh-runtime-version.js +11 -0
  126. package/data/build/dist/client/dsh-runtime-version.js.map +1 -0
  127. package/data/build/dist/client/editor-engine.d.ts +4 -0
  128. package/data/build/dist/client/editor-engine.d.ts.map +1 -0
  129. package/data/build/dist/client/editor-engine.js +53 -0
  130. package/data/build/dist/client/editor-engine.js.map +1 -0
  131. package/data/build/dist/client/engine-loader.d.ts +5 -0
  132. package/data/build/dist/client/engine-loader.d.ts.map +1 -0
  133. package/data/build/dist/client/engine-loader.js +35 -0
  134. package/data/build/dist/client/engine-loader.js.map +1 -0
  135. package/data/build/dist/client/external-tool-stream.d.ts +24 -0
  136. package/data/build/dist/client/external-tool-stream.d.ts.map +1 -0
  137. package/data/build/dist/client/external-tool-stream.js +123 -0
  138. package/data/build/dist/client/external-tool-stream.js.map +1 -0
  139. package/data/build/dist/client/features/cli-adapters.d.ts +14 -0
  140. package/data/build/dist/client/features/cli-adapters.d.ts.map +1 -0
  141. package/data/build/dist/client/features/cli-adapters.js +456 -0
  142. package/data/build/dist/client/features/cli-adapters.js.map +1 -0
  143. package/data/build/dist/client/features/credentials.d.ts +3 -0
  144. package/data/build/dist/client/features/credentials.d.ts.map +1 -0
  145. package/data/build/dist/client/features/credentials.js +96 -0
  146. package/data/build/dist/client/features/credentials.js.map +1 -0
  147. package/data/build/dist/client/features/debug.d.ts +4 -0
  148. package/data/build/dist/client/features/debug.d.ts.map +1 -0
  149. package/data/build/dist/client/features/debug.js +26 -0
  150. package/data/build/dist/client/features/debug.js.map +1 -0
  151. package/data/build/dist/client/features/file-management-panel.d.ts +5 -0
  152. package/data/build/dist/client/features/file-management-panel.d.ts.map +1 -0
  153. package/data/build/dist/client/features/file-management-panel.js +41 -0
  154. package/data/build/dist/client/features/file-management-panel.js.map +1 -0
  155. package/data/build/dist/client/features/file-management.d.ts +4 -0
  156. package/data/build/dist/client/features/file-management.d.ts.map +1 -0
  157. package/data/build/dist/client/features/file-management.js +92 -0
  158. package/data/build/dist/client/features/file-management.js.map +1 -0
  159. package/data/build/dist/client/features/index.d.ts +41 -0
  160. package/data/build/dist/client/features/index.d.ts.map +1 -0
  161. package/data/build/dist/client/features/index.js +63 -0
  162. package/data/build/dist/client/features/index.js.map +1 -0
  163. package/data/build/dist/client/features/lan-access-panel.d.ts +5 -0
  164. package/data/build/dist/client/features/lan-access-panel.d.ts.map +1 -0
  165. package/data/build/dist/client/features/lan-access-panel.js +225 -0
  166. package/data/build/dist/client/features/lan-access-panel.js.map +1 -0
  167. package/data/build/dist/client/features/lan-access-status.d.ts +40 -0
  168. package/data/build/dist/client/features/lan-access-status.d.ts.map +1 -0
  169. package/data/build/dist/client/features/lan-access-status.js +118 -0
  170. package/data/build/dist/client/features/lan-access-status.js.map +1 -0
  171. package/data/build/dist/client/features/lan-access.d.ts +12 -0
  172. package/data/build/dist/client/features/lan-access.d.ts.map +1 -0
  173. package/data/build/dist/client/features/lan-access.js +62 -0
  174. package/data/build/dist/client/features/lan-access.js.map +1 -0
  175. package/data/build/dist/client/features/login-protection-panel.d.ts +5 -0
  176. package/data/build/dist/client/features/login-protection-panel.d.ts.map +1 -0
  177. package/data/build/dist/client/features/login-protection-panel.js +96 -0
  178. package/data/build/dist/client/features/login-protection-panel.js.map +1 -0
  179. package/data/build/dist/client/features/login-protection-session.d.ts +8 -0
  180. package/data/build/dist/client/features/login-protection-session.d.ts.map +1 -0
  181. package/data/build/dist/client/features/login-protection-session.js +43 -0
  182. package/data/build/dist/client/features/login-protection-session.js.map +1 -0
  183. package/data/build/dist/client/features/login-protection.d.ts +4 -0
  184. package/data/build/dist/client/features/login-protection.d.ts.map +1 -0
  185. package/data/build/dist/client/features/login-protection.js +23 -0
  186. package/data/build/dist/client/features/login-protection.js.map +1 -0
  187. package/data/build/dist/client/features/mobile-access-panel.d.ts +12 -0
  188. package/data/build/dist/client/features/mobile-access-panel.d.ts.map +1 -0
  189. package/data/build/dist/client/features/mobile-access-panel.js +256 -0
  190. package/data/build/dist/client/features/mobile-access-panel.js.map +1 -0
  191. package/data/build/dist/client/features/mobile-access.d.ts +10 -0
  192. package/data/build/dist/client/features/mobile-access.d.ts.map +1 -0
  193. package/data/build/dist/client/features/mobile-access.js +66 -0
  194. package/data/build/dist/client/features/mobile-access.js.map +1 -0
  195. package/data/build/dist/client/features/plugin-update.d.ts +3 -0
  196. package/data/build/dist/client/features/plugin-update.d.ts.map +1 -0
  197. package/data/build/dist/client/features/plugin-update.js +14 -0
  198. package/data/build/dist/client/features/plugin-update.js.map +1 -0
  199. package/data/build/dist/client/features/reverse-proxy-panel.d.ts +9 -0
  200. package/data/build/dist/client/features/reverse-proxy-panel.d.ts.map +1 -0
  201. package/data/build/dist/client/features/reverse-proxy-panel.js +269 -0
  202. package/data/build/dist/client/features/reverse-proxy-panel.js.map +1 -0
  203. package/data/build/dist/client/features/reverse-proxy.d.ts +11 -0
  204. package/data/build/dist/client/features/reverse-proxy.d.ts.map +1 -0
  205. package/data/build/dist/client/features/reverse-proxy.js +183 -0
  206. package/data/build/dist/client/features/reverse-proxy.js.map +1 -0
  207. package/data/build/dist/client/features/session-translation.d.ts +3 -0
  208. package/data/build/dist/client/features/session-translation.d.ts.map +1 -0
  209. package/data/build/dist/client/features/session-translation.js +124 -0
  210. package/data/build/dist/client/features/session-translation.js.map +1 -0
  211. package/data/build/dist/client/features/subagent-collapsed-lineage.d.ts +9 -0
  212. package/data/build/dist/client/features/subagent-collapsed-lineage.d.ts.map +1 -0
  213. package/data/build/dist/client/features/subagent-collapsed-lineage.js +28 -0
  214. package/data/build/dist/client/features/subagent-collapsed-lineage.js.map +1 -0
  215. package/data/build/dist/client/features/subscription-usage-panel.d.ts +15 -0
  216. package/data/build/dist/client/features/subscription-usage-panel.d.ts.map +1 -0
  217. package/data/build/dist/client/features/subscription-usage-panel.js +118 -0
  218. package/data/build/dist/client/features/subscription-usage-panel.js.map +1 -0
  219. package/data/build/dist/client/features/terminal-enhancement-panel.d.ts +5 -0
  220. package/data/build/dist/client/features/terminal-enhancement-panel.d.ts.map +1 -0
  221. package/data/build/dist/client/features/terminal-enhancement-panel.js +169 -0
  222. package/data/build/dist/client/features/terminal-enhancement-panel.js.map +1 -0
  223. package/data/build/dist/client/features/terminal-enhancement.d.ts +4 -0
  224. package/data/build/dist/client/features/terminal-enhancement.d.ts.map +1 -0
  225. package/data/build/dist/client/features/terminal-enhancement.js +30 -0
  226. package/data/build/dist/client/features/terminal-enhancement.js.map +1 -0
  227. package/data/build/dist/client/features/types.d.ts +99 -0
  228. package/data/build/dist/client/features/types.d.ts.map +1 -0
  229. package/data/build/dist/client/features/types.js +2 -0
  230. package/data/build/dist/client/features/types.js.map +1 -0
  231. package/data/build/dist/client/features/workspace-session-enhancement-panel.d.ts +5 -0
  232. package/data/build/dist/client/features/workspace-session-enhancement-panel.d.ts.map +1 -0
  233. package/data/build/dist/client/features/workspace-session-enhancement-panel.js +121 -0
  234. package/data/build/dist/client/features/workspace-session-enhancement-panel.js.map +1 -0
  235. package/data/build/dist/client/features/workspace-session-enhancement.d.ts +4 -0
  236. package/data/build/dist/client/features/workspace-session-enhancement.d.ts.map +1 -0
  237. package/data/build/dist/client/features/workspace-session-enhancement.js +278 -0
  238. package/data/build/dist/client/features/workspace-session-enhancement.js.map +1 -0
  239. package/data/build/dist/client/file-management-context-menu.d.ts +10 -0
  240. package/data/build/dist/client/file-management-context-menu.d.ts.map +1 -0
  241. package/data/build/dist/client/file-management-context-menu.js +178 -0
  242. package/data/build/dist/client/file-management-context-menu.js.map +1 -0
  243. package/data/build/dist/client/file-management-dom.d.ts +40 -0
  244. package/data/build/dist/client/file-management-dom.d.ts.map +1 -0
  245. package/data/build/dist/client/file-management-dom.js +660 -0
  246. package/data/build/dist/client/file-management-dom.js.map +1 -0
  247. package/data/build/dist/client/file-viewer-copy-path-menu.d.ts +27 -0
  248. package/data/build/dist/client/file-viewer-copy-path-menu.d.ts.map +1 -0
  249. package/data/build/dist/client/file-viewer-copy-path-menu.js +101 -0
  250. package/data/build/dist/client/file-viewer-copy-path-menu.js.map +1 -0
  251. package/data/build/dist/client/font-scale.d.ts +37 -0
  252. package/data/build/dist/client/font-scale.d.ts.map +1 -0
  253. package/data/build/dist/client/font-scale.js +56 -0
  254. package/data/build/dist/client/font-scale.js.map +1 -0
  255. package/data/build/dist/client/git-history-graph.d.ts +81 -0
  256. package/data/build/dist/client/git-history-graph.d.ts.map +1 -0
  257. package/data/build/dist/client/git-history-graph.js +195 -0
  258. package/data/build/dist/client/git-history-graph.js.map +1 -0
  259. package/data/build/dist/client/git-management-settings.d.ts +4 -0
  260. package/data/build/dist/client/git-management-settings.d.ts.map +1 -0
  261. package/data/build/dist/client/git-management-settings.js +73 -0
  262. package/data/build/dist/client/git-management-settings.js.map +1 -0
  263. package/data/build/dist/client/git-management.d.ts +24 -0
  264. package/data/build/dist/client/git-management.d.ts.map +1 -0
  265. package/data/build/dist/client/git-management.js +1209 -0
  266. package/data/build/dist/client/git-management.js.map +1 -0
  267. package/data/build/dist/client/git-panel-styles.d.ts +32 -0
  268. package/data/build/dist/client/git-panel-styles.d.ts.map +1 -0
  269. package/data/build/dist/client/git-panel-styles.js +110 -0
  270. package/data/build/dist/client/git-panel-styles.js.map +1 -0
  271. package/data/build/dist/client/git-workspace-events.d.ts +7 -0
  272. package/data/build/dist/client/git-workspace-events.d.ts.map +1 -0
  273. package/data/build/dist/client/git-workspace-events.js +32 -0
  274. package/data/build/dist/client/git-workspace-events.js.map +1 -0
  275. package/data/build/dist/client/git-worktree-selection.d.ts +89 -0
  276. package/data/build/dist/client/git-worktree-selection.d.ts.map +1 -0
  277. package/data/build/dist/client/git-worktree-selection.js +121 -0
  278. package/data/build/dist/client/git-worktree-selection.js.map +1 -0
  279. package/data/build/dist/client/h5-bootstrap-entry.d.ts +2 -0
  280. package/data/build/dist/client/h5-bootstrap-entry.d.ts.map +1 -0
  281. package/data/build/dist/client/h5-bootstrap-entry.js +17 -0
  282. package/data/build/dist/client/h5-bootstrap-entry.js.map +1 -0
  283. package/data/build/dist/client/html-workspace-files.d.ts +4 -0
  284. package/data/build/dist/client/html-workspace-files.d.ts.map +1 -0
  285. package/data/build/dist/client/html-workspace-files.js +114 -0
  286. package/data/build/dist/client/html-workspace-files.js.map +1 -0
  287. package/data/build/dist/client/index.d.ts +39 -0
  288. package/data/build/dist/client/index.d.ts.map +1 -0
  289. package/data/build/dist/client/index.js +249 -0
  290. package/data/build/dist/client/index.js.map +1 -0
  291. package/data/build/dist/client/lan-access.d.ts +28 -0
  292. package/data/build/dist/client/lan-access.d.ts.map +1 -0
  293. package/data/build/dist/client/lan-access.js +68 -0
  294. package/data/build/dist/client/lan-access.js.map +1 -0
  295. package/data/build/dist/client/locale.d.ts +27 -0
  296. package/data/build/dist/client/locale.d.ts.map +1 -0
  297. package/data/build/dist/client/locale.js +845 -0
  298. package/data/build/dist/client/locale.js.map +1 -0
  299. package/data/build/dist/client/locales/cliManagement.d.ts +3 -0
  300. package/data/build/dist/client/locales/cliManagement.d.ts.map +1 -0
  301. package/data/build/dist/client/locales/cliManagement.js +155 -0
  302. package/data/build/dist/client/locales/cliManagement.js.map +1 -0
  303. package/data/build/dist/client/locales/credentials.d.ts +3 -0
  304. package/data/build/dist/client/locales/credentials.d.ts.map +1 -0
  305. package/data/build/dist/client/locales/credentials.js +93 -0
  306. package/data/build/dist/client/locales/credentials.js.map +1 -0
  307. package/data/build/dist/client/locales/debug.d.ts +9 -0
  308. package/data/build/dist/client/locales/debug.d.ts.map +1 -0
  309. package/data/build/dist/client/locales/debug.js +163 -0
  310. package/data/build/dist/client/locales/debug.js.map +1 -0
  311. package/data/build/dist/client/locales/fileWorkspace.d.ts +9 -0
  312. package/data/build/dist/client/locales/fileWorkspace.d.ts.map +1 -0
  313. package/data/build/dist/client/locales/fileWorkspace.js +153 -0
  314. package/data/build/dist/client/locales/fileWorkspace.js.map +1 -0
  315. package/data/build/dist/client/locales/git.d.ts +9 -0
  316. package/data/build/dist/client/locales/git.d.ts.map +1 -0
  317. package/data/build/dist/client/locales/git.js +263 -0
  318. package/data/build/dist/client/locales/git.js.map +1 -0
  319. package/data/build/dist/client/locales/nativeApproval.d.ts +3 -0
  320. package/data/build/dist/client/locales/nativeApproval.d.ts.map +1 -0
  321. package/data/build/dist/client/locales/nativeApproval.js +51 -0
  322. package/data/build/dist/client/locales/nativeApproval.js.map +1 -0
  323. package/data/build/dist/client/locales/panels.d.ts +9 -0
  324. package/data/build/dist/client/locales/panels.d.ts.map +1 -0
  325. package/data/build/dist/client/locales/panels.js +251 -0
  326. package/data/build/dist/client/locales/panels.js.map +1 -0
  327. package/data/build/dist/client/locales/pluginUpdate.d.ts +3 -0
  328. package/data/build/dist/client/locales/pluginUpdate.d.ts.map +1 -0
  329. package/data/build/dist/client/locales/pluginUpdate.js +131 -0
  330. package/data/build/dist/client/locales/pluginUpdate.js.map +1 -0
  331. package/data/build/dist/client/locales/subagentCollapsed.d.ts +53 -0
  332. package/data/build/dist/client/locales/subagentCollapsed.d.ts.map +1 -0
  333. package/data/build/dist/client/locales/subagentCollapsed.js +95 -0
  334. package/data/build/dist/client/locales/subagentCollapsed.js.map +1 -0
  335. package/data/build/dist/client/locales/terminalAuth.d.ts +9 -0
  336. package/data/build/dist/client/locales/terminalAuth.d.ts.map +1 -0
  337. package/data/build/dist/client/locales/terminalAuth.js +153 -0
  338. package/data/build/dist/client/locales/terminalAuth.js.map +1 -0
  339. package/data/build/dist/client/locales/usage.d.ts +9 -0
  340. package/data/build/dist/client/locales/usage.d.ts.map +1 -0
  341. package/data/build/dist/client/locales/usage.js +311 -0
  342. package/data/build/dist/client/locales/usage.js.map +1 -0
  343. package/data/build/dist/client/mobile-rightbar-tabs-dom.d.ts +29 -0
  344. package/data/build/dist/client/mobile-rightbar-tabs-dom.d.ts.map +1 -0
  345. package/data/build/dist/client/mobile-rightbar-tabs-dom.js +93 -0
  346. package/data/build/dist/client/mobile-rightbar-tabs-dom.js.map +1 -0
  347. package/data/build/dist/client/mobile-rightbar-visibility.d.ts +32 -0
  348. package/data/build/dist/client/mobile-rightbar-visibility.d.ts.map +1 -0
  349. package/data/build/dist/client/mobile-rightbar-visibility.js +188 -0
  350. package/data/build/dist/client/mobile-rightbar-visibility.js.map +1 -0
  351. package/data/build/dist/client/mobile-session-interaction.d.ts +43 -0
  352. package/data/build/dist/client/mobile-session-interaction.d.ts.map +1 -0
  353. package/data/build/dist/client/mobile-session-interaction.js +227 -0
  354. package/data/build/dist/client/mobile-session-interaction.js.map +1 -0
  355. package/data/build/dist/client/mobile-settings-modal-dom.d.ts +49 -0
  356. package/data/build/dist/client/mobile-settings-modal-dom.d.ts.map +1 -0
  357. package/data/build/dist/client/mobile-settings-modal-dom.js +152 -0
  358. package/data/build/dist/client/mobile-settings-modal-dom.js.map +1 -0
  359. package/data/build/dist/client/mobile-sidebar-gestures.d.ts +149 -0
  360. package/data/build/dist/client/mobile-sidebar-gestures.d.ts.map +1 -0
  361. package/data/build/dist/client/mobile-sidebar-gestures.js +623 -0
  362. package/data/build/dist/client/mobile-sidebar-gestures.js.map +1 -0
  363. package/data/build/dist/client/mobile-sidebar-logo.d.ts +18 -0
  364. package/data/build/dist/client/mobile-sidebar-logo.d.ts.map +1 -0
  365. package/data/build/dist/client/mobile-sidebar-logo.js +15 -0
  366. package/data/build/dist/client/mobile-sidebar-logo.js.map +1 -0
  367. package/data/build/dist/client/mobile-sidebar-rail-dom.d.ts +114 -0
  368. package/data/build/dist/client/mobile-sidebar-rail-dom.d.ts.map +1 -0
  369. package/data/build/dist/client/mobile-sidebar-rail-dom.js +452 -0
  370. package/data/build/dist/client/mobile-sidebar-rail-dom.js.map +1 -0
  371. package/data/build/dist/client/mobile-team-panel-dom.d.ts +14 -0
  372. package/data/build/dist/client/mobile-team-panel-dom.d.ts.map +1 -0
  373. package/data/build/dist/client/mobile-team-panel-dom.js +164 -0
  374. package/data/build/dist/client/mobile-team-panel-dom.js.map +1 -0
  375. package/data/build/dist/client/mobile-vibration.d.ts +16 -0
  376. package/data/build/dist/client/mobile-vibration.d.ts.map +1 -0
  377. package/data/build/dist/client/mobile-vibration.js +20 -0
  378. package/data/build/dist/client/mobile-vibration.js.map +1 -0
  379. package/data/build/dist/client/model-catalog-cache.d.ts +28 -0
  380. package/data/build/dist/client/model-catalog-cache.d.ts.map +1 -0
  381. package/data/build/dist/client/model-catalog-cache.js +158 -0
  382. package/data/build/dist/client/model-catalog-cache.js.map +1 -0
  383. package/data/build/dist/client/model-priority-pool.d.ts +23 -0
  384. package/data/build/dist/client/model-priority-pool.d.ts.map +1 -0
  385. package/data/build/dist/client/model-priority-pool.js +245 -0
  386. package/data/build/dist/client/model-priority-pool.js.map +1 -0
  387. package/data/build/dist/client/native-approval-selector.d.ts +22 -0
  388. package/data/build/dist/client/native-approval-selector.d.ts.map +1 -0
  389. package/data/build/dist/client/native-approval-selector.js +39 -0
  390. package/data/build/dist/client/native-approval-selector.js.map +1 -0
  391. package/data/build/dist/client/native-model-translation-menu.d.ts +6 -0
  392. package/data/build/dist/client/native-model-translation-menu.d.ts.map +1 -0
  393. package/data/build/dist/client/native-model-translation-menu.js +62 -0
  394. package/data/build/dist/client/native-model-translation-menu.js.map +1 -0
  395. package/data/build/dist/client/native-translation-default.d.ts +6 -0
  396. package/data/build/dist/client/native-translation-default.d.ts.map +1 -0
  397. package/data/build/dist/client/native-translation-default.js +30 -0
  398. package/data/build/dist/client/native-translation-default.js.map +1 -0
  399. package/data/build/dist/client/native-workspace-store.d.ts +29 -0
  400. package/data/build/dist/client/native-workspace-store.d.ts.map +1 -0
  401. package/data/build/dist/client/native-workspace-store.js +75 -0
  402. package/data/build/dist/client/native-workspace-store.js.map +1 -0
  403. package/data/build/dist/client/popup-dismiss.d.ts +48 -0
  404. package/data/build/dist/client/popup-dismiss.d.ts.map +1 -0
  405. package/data/build/dist/client/popup-dismiss.js +93 -0
  406. package/data/build/dist/client/popup-dismiss.js.map +1 -0
  407. package/data/build/dist/client/provider-icon-assets.d.ts +2 -0
  408. package/data/build/dist/client/provider-icon-assets.d.ts.map +1 -0
  409. package/data/build/dist/client/provider-icon-assets.js +7 -0
  410. package/data/build/dist/client/provider-icon-assets.js.map +1 -0
  411. package/data/build/dist/client/provider-icon-bridge.d.ts +6 -0
  412. package/data/build/dist/client/provider-icon-bridge.d.ts.map +1 -0
  413. package/data/build/dist/client/provider-icon-bridge.js +65 -0
  414. package/data/build/dist/client/provider-icon-bridge.js.map +1 -0
  415. package/data/build/dist/client/provider-icons.d.ts +43 -0
  416. package/data/build/dist/client/provider-icons.d.ts.map +1 -0
  417. package/data/build/dist/client/provider-icons.js +185 -0
  418. package/data/build/dist/client/provider-icons.js.map +1 -0
  419. package/data/build/dist/client/pwa-install-prompt.d.ts +76 -0
  420. package/data/build/dist/client/pwa-install-prompt.d.ts.map +1 -0
  421. package/data/build/dist/client/pwa-install-prompt.js +179 -0
  422. package/data/build/dist/client/pwa-install-prompt.js.map +1 -0
  423. package/data/build/dist/client/pwa-notifications.d.ts +105 -0
  424. package/data/build/dist/client/pwa-notifications.d.ts.map +1 -0
  425. package/data/build/dist/client/pwa-notifications.js +192 -0
  426. package/data/build/dist/client/pwa-notifications.js.map +1 -0
  427. package/data/build/dist/client/quick-phrase-layout.d.ts +60 -0
  428. package/data/build/dist/client/quick-phrase-layout.d.ts.map +1 -0
  429. package/data/build/dist/client/quick-phrase-layout.js +115 -0
  430. package/data/build/dist/client/quick-phrase-layout.js.map +1 -0
  431. package/data/build/dist/client/quick-phrase-slot.d.ts +7 -0
  432. package/data/build/dist/client/quick-phrase-slot.d.ts.map +1 -0
  433. package/data/build/dist/client/quick-phrase-slot.js +405 -0
  434. package/data/build/dist/client/quick-phrase-slot.js.map +1 -0
  435. package/data/build/dist/client/remote-web-context.d.ts +59 -0
  436. package/data/build/dist/client/remote-web-context.d.ts.map +1 -0
  437. package/data/build/dist/client/remote-web-context.js +1037 -0
  438. package/data/build/dist/client/remote-web-context.js.map +1 -0
  439. package/data/build/dist/client/rpc-call.d.ts +4 -0
  440. package/data/build/dist/client/rpc-call.d.ts.map +1 -0
  441. package/data/build/dist/client/rpc-call.js +23 -0
  442. package/data/build/dist/client/rpc-call.js.map +1 -0
  443. package/data/build/dist/client/serial-polling.d.ts +16 -0
  444. package/data/build/dist/client/serial-polling.d.ts.map +1 -0
  445. package/data/build/dist/client/serial-polling.js +50 -0
  446. package/data/build/dist/client/serial-polling.js.map +1 -0
  447. package/data/build/dist/client/service-tier.d.ts +65 -0
  448. package/data/build/dist/client/service-tier.d.ts.map +1 -0
  449. package/data/build/dist/client/service-tier.js +93 -0
  450. package/data/build/dist/client/service-tier.js.map +1 -0
  451. package/data/build/dist/client/session-adapter-cache.d.ts +20 -0
  452. package/data/build/dist/client/session-adapter-cache.d.ts.map +1 -0
  453. package/data/build/dist/client/session-adapter-cache.js +105 -0
  454. package/data/build/dist/client/session-adapter-cache.js.map +1 -0
  455. package/data/build/dist/client/session-changed-files-view.d.ts +37 -0
  456. package/data/build/dist/client/session-changed-files-view.d.ts.map +1 -0
  457. package/data/build/dist/client/session-changed-files-view.js +528 -0
  458. package/data/build/dist/client/session-changed-files-view.js.map +1 -0
  459. package/data/build/dist/client/session-file-links.d.ts +11 -0
  460. package/data/build/dist/client/session-file-links.d.ts.map +1 -0
  461. package/data/build/dist/client/session-file-links.js +52 -0
  462. package/data/build/dist/client/session-file-links.js.map +1 -0
  463. package/data/build/dist/client/session-translation-chat.d.ts +73 -0
  464. package/data/build/dist/client/session-translation-chat.d.ts.map +1 -0
  465. package/data/build/dist/client/session-translation-chat.js +889 -0
  466. package/data/build/dist/client/session-translation-chat.js.map +1 -0
  467. package/data/build/dist/client/session-translation-interactions.d.ts +40 -0
  468. package/data/build/dist/client/session-translation-interactions.d.ts.map +1 -0
  469. package/data/build/dist/client/session-translation-interactions.js +222 -0
  470. package/data/build/dist/client/session-translation-interactions.js.map +1 -0
  471. package/data/build/dist/client/session-translation-pending-dom.d.ts +8 -0
  472. package/data/build/dist/client/session-translation-pending-dom.d.ts.map +1 -0
  473. package/data/build/dist/client/session-translation-pending-dom.js +58 -0
  474. package/data/build/dist/client/session-translation-pending-dom.js.map +1 -0
  475. package/data/build/dist/client/session-translation-retry.d.ts +16 -0
  476. package/data/build/dist/client/session-translation-retry.d.ts.map +1 -0
  477. package/data/build/dist/client/session-translation-retry.js +67 -0
  478. package/data/build/dist/client/session-translation-retry.js.map +1 -0
  479. package/data/build/dist/client/session-translation-rules.d.ts +13 -0
  480. package/data/build/dist/client/session-translation-rules.d.ts.map +1 -0
  481. package/data/build/dist/client/session-translation-rules.js +58 -0
  482. package/data/build/dist/client/session-translation-rules.js.map +1 -0
  483. package/data/build/dist/client/settings-anchor.d.ts +73 -0
  484. package/data/build/dist/client/settings-anchor.d.ts.map +1 -0
  485. package/data/build/dist/client/settings-anchor.js +70 -0
  486. package/data/build/dist/client/settings-anchor.js.map +1 -0
  487. package/data/build/dist/client/settings-bridge.d.ts +62 -0
  488. package/data/build/dist/client/settings-bridge.d.ts.map +1 -0
  489. package/data/build/dist/client/settings-bridge.js +247 -0
  490. package/data/build/dist/client/settings-bridge.js.map +1 -0
  491. package/data/build/dist/client/settings-controls.d.ts +29 -0
  492. package/data/build/dist/client/settings-controls.d.ts.map +1 -0
  493. package/data/build/dist/client/settings-controls.js +80 -0
  494. package/data/build/dist/client/settings-controls.js.map +1 -0
  495. package/data/build/dist/client/settings-promo-styles.d.ts +33 -0
  496. package/data/build/dist/client/settings-promo-styles.d.ts.map +1 -0
  497. package/data/build/dist/client/settings-promo-styles.js +71 -0
  498. package/data/build/dist/client/settings-promo-styles.js.map +1 -0
  499. package/data/build/dist/client/settings-promo.d.ts +16 -0
  500. package/data/build/dist/client/settings-promo.d.ts.map +1 -0
  501. package/data/build/dist/client/settings-promo.js +68 -0
  502. package/data/build/dist/client/settings-promo.js.map +1 -0
  503. package/data/build/dist/client/settings-section.d.ts +31 -0
  504. package/data/build/dist/client/settings-section.d.ts.map +1 -0
  505. package/data/build/dist/client/settings-section.js +140 -0
  506. package/data/build/dist/client/settings-section.js.map +1 -0
  507. package/data/build/dist/client/settings-update.d.ts +8 -0
  508. package/data/build/dist/client/settings-update.d.ts.map +1 -0
  509. package/data/build/dist/client/settings-update.js +57 -0
  510. package/data/build/dist/client/settings-update.js.map +1 -0
  511. package/data/build/dist/client/sidebar-footer-style.d.ts +11 -0
  512. package/data/build/dist/client/sidebar-footer-style.d.ts.map +1 -0
  513. package/data/build/dist/client/sidebar-footer-style.js +6 -0
  514. package/data/build/dist/client/sidebar-footer-style.js.map +1 -0
  515. package/data/build/dist/client/skill-command.d.ts +10 -0
  516. package/data/build/dist/client/skill-command.d.ts.map +1 -0
  517. package/data/build/dist/client/skill-command.js +282 -0
  518. package/data/build/dist/client/skill-command.js.map +1 -0
  519. package/data/build/dist/client/skill-reference-dom.d.ts +38 -0
  520. package/data/build/dist/client/skill-reference-dom.d.ts.map +1 -0
  521. package/data/build/dist/client/skill-reference-dom.js +187 -0
  522. package/data/build/dist/client/skill-reference-dom.js.map +1 -0
  523. package/data/build/dist/client/subagent-collapsed-lineage.d.ts +103 -0
  524. package/data/build/dist/client/subagent-collapsed-lineage.d.ts.map +1 -0
  525. package/data/build/dist/client/subagent-collapsed-lineage.js +664 -0
  526. package/data/build/dist/client/subagent-collapsed-lineage.js.map +1 -0
  527. package/data/build/dist/client/subscription-slot.d.ts +49 -0
  528. package/data/build/dist/client/subscription-slot.d.ts.map +1 -0
  529. package/data/build/dist/client/subscription-slot.js +936 -0
  530. package/data/build/dist/client/subscription-slot.js.map +1 -0
  531. package/data/build/dist/client/terminal/index.d.ts +4 -0
  532. package/data/build/dist/client/terminal/index.d.ts.map +1 -0
  533. package/data/build/dist/client/terminal/index.js +3 -0
  534. package/data/build/dist/client/terminal/index.js.map +1 -0
  535. package/data/build/dist/client/terminal/log-preview.d.ts +14 -0
  536. package/data/build/dist/client/terminal/log-preview.d.ts.map +1 -0
  537. package/data/build/dist/client/terminal/log-preview.js +23 -0
  538. package/data/build/dist/client/terminal/log-preview.js.map +1 -0
  539. package/data/build/dist/client/terminal/model.d.ts +287 -0
  540. package/data/build/dist/client/terminal/model.d.ts.map +1 -0
  541. package/data/build/dist/client/terminal/model.js +1166 -0
  542. package/data/build/dist/client/terminal/model.js.map +1 -0
  543. package/data/build/dist/client/terminal/recovery.d.ts +69 -0
  544. package/data/build/dist/client/terminal/recovery.d.ts.map +1 -0
  545. package/data/build/dist/client/terminal/recovery.js +167 -0
  546. package/data/build/dist/client/terminal/recovery.js.map +1 -0
  547. package/data/build/dist/client/terminal/selection-actions.d.ts +63 -0
  548. package/data/build/dist/client/terminal/selection-actions.d.ts.map +1 -0
  549. package/data/build/dist/client/terminal/selection-actions.js +132 -0
  550. package/data/build/dist/client/terminal/selection-actions.js.map +1 -0
  551. package/data/build/dist/client/terminal/share-menu.d.ts +17 -0
  552. package/data/build/dist/client/terminal/share-menu.d.ts.map +1 -0
  553. package/data/build/dist/client/terminal/share-menu.js +131 -0
  554. package/data/build/dist/client/terminal/share-menu.js.map +1 -0
  555. package/data/build/dist/client/terminal/sharing.d.ts +42 -0
  556. package/data/build/dist/client/terminal/sharing.d.ts.map +1 -0
  557. package/data/build/dist/client/terminal/sharing.js +144 -0
  558. package/data/build/dist/client/terminal/sharing.js.map +1 -0
  559. package/data/build/dist/client/terminal/snapshot.d.ts +32 -0
  560. package/data/build/dist/client/terminal/snapshot.d.ts.map +1 -0
  561. package/data/build/dist/client/terminal/snapshot.js +108 -0
  562. package/data/build/dist/client/terminal/snapshot.js.map +1 -0
  563. package/data/build/dist/client/terminal/styles.d.ts +53 -0
  564. package/data/build/dist/client/terminal/styles.d.ts.map +1 -0
  565. package/data/build/dist/client/terminal/styles.js +134 -0
  566. package/data/build/dist/client/terminal/styles.js.map +1 -0
  567. package/data/build/dist/client/terminal/surface-cache.d.ts +10 -0
  568. package/data/build/dist/client/terminal/surface-cache.d.ts.map +1 -0
  569. package/data/build/dist/client/terminal/surface-cache.js +19 -0
  570. package/data/build/dist/client/terminal/surface-cache.js.map +1 -0
  571. package/data/build/dist/client/terminal/ui.d.ts +20 -0
  572. package/data/build/dist/client/terminal/ui.d.ts.map +1 -0
  573. package/data/build/dist/client/terminal/ui.js +618 -0
  574. package/data/build/dist/client/terminal/ui.js.map +1 -0
  575. package/data/build/dist/client/terminal/xterm-engine.d.ts +4 -0
  576. package/data/build/dist/client/terminal/xterm-engine.d.ts.map +1 -0
  577. package/data/build/dist/client/terminal/xterm-engine.js +5 -0
  578. package/data/build/dist/client/terminal/xterm-engine.js.map +1 -0
  579. package/data/build/dist/client/terminal/xterm-view.d.ts +23 -0
  580. package/data/build/dist/client/terminal/xterm-view.d.ts.map +1 -0
  581. package/data/build/dist/client/terminal/xterm-view.js +790 -0
  582. package/data/build/dist/client/terminal/xterm-view.js.map +1 -0
  583. package/data/build/dist/client/theme.d.ts +75 -0
  584. package/data/build/dist/client/theme.d.ts.map +1 -0
  585. package/data/build/dist/client/theme.js +247 -0
  586. package/data/build/dist/client/theme.js.map +1 -0
  587. package/data/build/dist/client/touch-input-focus.d.ts +30 -0
  588. package/data/build/dist/client/touch-input-focus.d.ts.map +1 -0
  589. package/data/build/dist/client/touch-input-focus.js +209 -0
  590. package/data/build/dist/client/touch-input-focus.js.map +1 -0
  591. package/data/build/dist/client/update-panel-styles.d.ts +29 -0
  592. package/data/build/dist/client/update-panel-styles.d.ts.map +1 -0
  593. package/data/build/dist/client/update-panel-styles.js +69 -0
  594. package/data/build/dist/client/update-panel-styles.js.map +1 -0
  595. package/data/build/dist/client/update-panel.d.ts +7 -0
  596. package/data/build/dist/client/update-panel.d.ts.map +1 -0
  597. package/data/build/dist/client/update-panel.js +52 -0
  598. package/data/build/dist/client/update-panel.js.map +1 -0
  599. package/data/build/dist/client/update-store.d.ts +43 -0
  600. package/data/build/dist/client/update-store.d.ts.map +1 -0
  601. package/data/build/dist/client/update-store.js +207 -0
  602. package/data/build/dist/client/update-store.js.map +1 -0
  603. package/data/build/dist/client/workspace-activity-dom.d.ts +8 -0
  604. package/data/build/dist/client/workspace-activity-dom.d.ts.map +1 -0
  605. package/data/build/dist/client/workspace-activity-dom.js +140 -0
  606. package/data/build/dist/client/workspace-activity-dom.js.map +1 -0
  607. package/data/build/dist/client/workspace-session-archive-dom.d.ts +58 -0
  608. package/data/build/dist/client/workspace-session-archive-dom.d.ts.map +1 -0
  609. package/data/build/dist/client/workspace-session-archive-dom.js +749 -0
  610. package/data/build/dist/client/workspace-session-archive-dom.js.map +1 -0
  611. package/data/build/dist/client/workspace-session-fiber.d.ts +3 -0
  612. package/data/build/dist/client/workspace-session-fiber.d.ts.map +1 -0
  613. package/data/build/dist/client/workspace-session-fiber.js +33 -0
  614. package/data/build/dist/client/workspace-session-fiber.js.map +1 -0
  615. package/data/build/dist/client/workspace-session-logo-dom.d.ts +29 -0
  616. package/data/build/dist/client/workspace-session-logo-dom.d.ts.map +1 -0
  617. package/data/build/dist/client/workspace-session-logo-dom.js +130 -0
  618. package/data/build/dist/client/workspace-session-logo-dom.js.map +1 -0
  619. package/data/build/dist/client/workspace-session-rightbar-dom.d.ts +28 -0
  620. package/data/build/dist/client/workspace-session-rightbar-dom.d.ts.map +1 -0
  621. package/data/build/dist/client/workspace-session-rightbar-dom.js +282 -0
  622. package/data/build/dist/client/workspace-session-rightbar-dom.js.map +1 -0
  623. package/data/build/dist/client/workspace-session-visibility-dom.d.ts +39 -0
  624. package/data/build/dist/client/workspace-session-visibility-dom.d.ts.map +1 -0
  625. package/data/build/dist/client/workspace-session-visibility-dom.js +712 -0
  626. package/data/build/dist/client/workspace-session-visibility-dom.js.map +1 -0
  627. package/data/build/dist/dsh-capabilities/client/agent-permission-presentation-adapter.d.ts +4 -0
  628. package/data/build/dist/dsh-capabilities/client/agent-permission-presentation-adapter.d.ts.map +1 -0
  629. package/data/build/dist/dsh-capabilities/client/agent-permission-presentation-adapter.js +18 -0
  630. package/data/build/dist/dsh-capabilities/client/agent-permission-presentation-adapter.js.map +1 -0
  631. package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.d.ts +8 -0
  632. package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.d.ts.map +1 -0
  633. package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.js +71 -0
  634. package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.js.map +1 -0
  635. package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.d.ts +4 -0
  636. package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.d.ts.map +1 -0
  637. package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.js +8 -0
  638. package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.js.map +1 -0
  639. package/data/build/dist/dsh-capabilities/client/config-forms-adapter.d.ts +64 -0
  640. package/data/build/dist/dsh-capabilities/client/config-forms-adapter.d.ts.map +1 -0
  641. package/data/build/dist/dsh-capabilities/client/config-forms-adapter.js +162 -0
  642. package/data/build/dist/dsh-capabilities/client/config-forms-adapter.js.map +1 -0
  643. package/data/build/dist/dsh-capabilities/client/context-menu-adapter.d.ts +22 -0
  644. package/data/build/dist/dsh-capabilities/client/context-menu-adapter.d.ts.map +1 -0
  645. package/data/build/dist/dsh-capabilities/client/context-menu-adapter.js +33 -0
  646. package/data/build/dist/dsh-capabilities/client/context-menu-adapter.js.map +1 -0
  647. package/data/build/dist/dsh-capabilities/client/conversation-adapter.d.ts +7 -0
  648. package/data/build/dist/dsh-capabilities/client/conversation-adapter.d.ts.map +1 -0
  649. package/data/build/dist/dsh-capabilities/client/conversation-adapter.js +6 -0
  650. package/data/build/dist/dsh-capabilities/client/conversation-adapter.js.map +1 -0
  651. package/data/build/dist/dsh-capabilities/client/global-panel-adapter.d.ts +27 -0
  652. package/data/build/dist/dsh-capabilities/client/global-panel-adapter.d.ts.map +1 -0
  653. package/data/build/dist/dsh-capabilities/client/global-panel-adapter.js +109 -0
  654. package/data/build/dist/dsh-capabilities/client/global-panel-adapter.js.map +1 -0
  655. package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.d.ts +33 -0
  656. package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.d.ts.map +1 -0
  657. package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.js +99 -0
  658. package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.js.map +1 -0
  659. package/data/build/dist/dsh-capabilities/client/interaction-text-dom.d.ts +12 -0
  660. package/data/build/dist/dsh-capabilities/client/interaction-text-dom.d.ts.map +1 -0
  661. package/data/build/dist/dsh-capabilities/client/interaction-text-dom.js +181 -0
  662. package/data/build/dist/dsh-capabilities/client/interaction-text-dom.js.map +1 -0
  663. package/data/build/dist/dsh-capabilities/client/locale-adapter.d.ts +9 -0
  664. package/data/build/dist/dsh-capabilities/client/locale-adapter.d.ts.map +1 -0
  665. package/data/build/dist/dsh-capabilities/client/locale-adapter.js +4 -0
  666. package/data/build/dist/dsh-capabilities/client/locale-adapter.js.map +1 -0
  667. package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.d.ts +21 -0
  668. package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.d.ts.map +1 -0
  669. package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.js +49 -0
  670. package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.js.map +1 -0
  671. package/data/build/dist/dsh-capabilities/client/plugin-reload-adapter.d.ts +4 -0
  672. package/data/build/dist/dsh-capabilities/client/plugin-reload-adapter.d.ts.map +1 -0
  673. package/data/build/dist/dsh-capabilities/client/plugin-reload-adapter.js +6 -0
  674. package/data/build/dist/dsh-capabilities/client/plugin-reload-adapter.js.map +1 -0
  675. package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts +76 -0
  676. package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts.map +1 -0
  677. package/data/build/dist/dsh-capabilities/client/primitives-adapter.js +180 -0
  678. package/data/build/dist/dsh-capabilities/client/primitives-adapter.js.map +1 -0
  679. package/data/build/dist/dsh-capabilities/client/question-history-adapter.d.ts +20 -0
  680. package/data/build/dist/dsh-capabilities/client/question-history-adapter.d.ts.map +1 -0
  681. package/data/build/dist/dsh-capabilities/client/question-history-adapter.js +65 -0
  682. package/data/build/dist/dsh-capabilities/client/question-history-adapter.js.map +1 -0
  683. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts +9 -0
  684. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts.map +1 -0
  685. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js +79 -0
  686. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js.map +1 -0
  687. package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.d.ts +14 -0
  688. package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.d.ts.map +1 -0
  689. package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.js +39 -0
  690. package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.js.map +1 -0
  691. package/data/build/dist/dsh-capabilities/client/sidebar-adapter.d.ts +7 -0
  692. package/data/build/dist/dsh-capabilities/client/sidebar-adapter.d.ts.map +1 -0
  693. package/data/build/dist/dsh-capabilities/client/sidebar-adapter.js +5 -0
  694. package/data/build/dist/dsh-capabilities/client/sidebar-adapter.js.map +1 -0
  695. package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.d.ts +3 -0
  696. package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.d.ts.map +1 -0
  697. package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.js +22 -0
  698. package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.js.map +1 -0
  699. package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.d.ts +32 -0
  700. package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.d.ts.map +1 -0
  701. package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.js +90 -0
  702. package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.js.map +1 -0
  703. package/data/build/dist/dsh-capabilities/client/terminal-sharing-adapter.d.ts +33 -0
  704. package/data/build/dist/dsh-capabilities/client/terminal-sharing-adapter.d.ts.map +1 -0
  705. package/data/build/dist/dsh-capabilities/client/terminal-sharing-adapter.js +186 -0
  706. package/data/build/dist/dsh-capabilities/client/terminal-sharing-adapter.js.map +1 -0
  707. package/data/build/dist/dsh-capabilities/client/theme-adapter.d.ts +6 -0
  708. package/data/build/dist/dsh-capabilities/client/theme-adapter.d.ts.map +1 -0
  709. package/data/build/dist/dsh-capabilities/client/theme-adapter.js +4 -0
  710. package/data/build/dist/dsh-capabilities/client/theme-adapter.js.map +1 -0
  711. package/data/build/dist/dsh-capabilities/client/typert-adapter.d.ts +5 -0
  712. package/data/build/dist/dsh-capabilities/client/typert-adapter.d.ts.map +1 -0
  713. package/data/build/dist/dsh-capabilities/client/typert-adapter.js +4 -0
  714. package/data/build/dist/dsh-capabilities/client/typert-adapter.js.map +1 -0
  715. package/data/build/dist/dsh-capabilities/host/agent-team-adapter.d.ts +81 -0
  716. package/data/build/dist/dsh-capabilities/host/agent-team-adapter.d.ts.map +1 -0
  717. package/data/build/dist/dsh-capabilities/host/agent-team-adapter.js +237 -0
  718. package/data/build/dist/dsh-capabilities/host/agent-team-adapter.js.map +1 -0
  719. package/data/build/dist/dsh-capabilities/host/attachment-store-adapter.d.ts +12 -0
  720. package/data/build/dist/dsh-capabilities/host/attachment-store-adapter.d.ts.map +1 -0
  721. package/data/build/dist/dsh-capabilities/host/attachment-store-adapter.js +10 -0
  722. package/data/build/dist/dsh-capabilities/host/attachment-store-adapter.js.map +1 -0
  723. package/data/build/dist/dsh-capabilities/host/config-forms-adapter.d.ts +40 -0
  724. package/data/build/dist/dsh-capabilities/host/config-forms-adapter.d.ts.map +1 -0
  725. package/data/build/dist/dsh-capabilities/host/config-forms-adapter.js +71 -0
  726. package/data/build/dist/dsh-capabilities/host/config-forms-adapter.js.map +1 -0
  727. package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.d.ts +8 -0
  728. package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.d.ts.map +1 -0
  729. package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.js +24 -0
  730. package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.js.map +1 -0
  731. package/data/build/dist/dsh-capabilities/host/connection-rpc-adapter.d.ts +19 -0
  732. package/data/build/dist/dsh-capabilities/host/connection-rpc-adapter.d.ts.map +1 -0
  733. package/data/build/dist/dsh-capabilities/host/connection-rpc-adapter.js +13 -0
  734. package/data/build/dist/dsh-capabilities/host/connection-rpc-adapter.js.map +1 -0
  735. package/data/build/dist/dsh-capabilities/host/llm-text-adapter.d.ts +27 -0
  736. package/data/build/dist/dsh-capabilities/host/llm-text-adapter.d.ts.map +1 -0
  737. package/data/build/dist/dsh-capabilities/host/llm-text-adapter.js +101 -0
  738. package/data/build/dist/dsh-capabilities/host/llm-text-adapter.js.map +1 -0
  739. package/data/build/dist/dsh-capabilities/host/plugin-update-adapter.d.ts +23 -0
  740. package/data/build/dist/dsh-capabilities/host/plugin-update-adapter.d.ts.map +1 -0
  741. package/data/build/dist/dsh-capabilities/host/plugin-update-adapter.js +79 -0
  742. package/data/build/dist/dsh-capabilities/host/plugin-update-adapter.js.map +1 -0
  743. package/data/build/dist/dsh-capabilities/host/session-activation-adapter.d.ts +17 -0
  744. package/data/build/dist/dsh-capabilities/host/session-activation-adapter.d.ts.map +1 -0
  745. package/data/build/dist/dsh-capabilities/host/session-activation-adapter.js +37 -0
  746. package/data/build/dist/dsh-capabilities/host/session-activation-adapter.js.map +1 -0
  747. package/data/build/dist/dsh-capabilities/host/session-compaction-adapter.d.ts +16 -0
  748. package/data/build/dist/dsh-capabilities/host/session-compaction-adapter.d.ts.map +1 -0
  749. package/data/build/dist/dsh-capabilities/host/session-compaction-adapter.js +94 -0
  750. package/data/build/dist/dsh-capabilities/host/session-compaction-adapter.js.map +1 -0
  751. package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.d.ts +24 -0
  752. package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.d.ts.map +1 -0
  753. package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.js +106 -0
  754. package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.js.map +1 -0
  755. package/data/build/dist/dsh-capabilities/host/session-performance-adapter.d.ts +7 -0
  756. package/data/build/dist/dsh-capabilities/host/session-performance-adapter.d.ts.map +1 -0
  757. package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js +27 -0
  758. package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js.map +1 -0
  759. package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.d.ts +29 -0
  760. package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.d.ts.map +1 -0
  761. package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.js +65 -0
  762. package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.js.map +1 -0
  763. package/data/build/dist/dsh-capabilities/host/session-title-adapter.d.ts +11 -0
  764. package/data/build/dist/dsh-capabilities/host/session-title-adapter.d.ts.map +1 -0
  765. package/data/build/dist/dsh-capabilities/host/session-title-adapter.js +229 -0
  766. package/data/build/dist/dsh-capabilities/host/session-title-adapter.js.map +1 -0
  767. package/data/build/dist/dsh-capabilities/host/settings-scope-adapter.d.ts +8 -0
  768. package/data/build/dist/dsh-capabilities/host/settings-scope-adapter.d.ts.map +1 -0
  769. package/data/build/dist/dsh-capabilities/host/settings-scope-adapter.js +47 -0
  770. package/data/build/dist/dsh-capabilities/host/settings-scope-adapter.js.map +1 -0
  771. package/data/build/dist/dsh-capabilities/host/sidebar-session-compat.d.ts +28 -0
  772. package/data/build/dist/dsh-capabilities/host/sidebar-session-compat.d.ts.map +1 -0
  773. package/data/build/dist/dsh-capabilities/host/sidebar-session-compat.js +123 -0
  774. package/data/build/dist/dsh-capabilities/host/sidebar-session-compat.js.map +1 -0
  775. package/data/build/dist/dsh-capabilities/host/typert-adapter.d.ts +6 -0
  776. package/data/build/dist/dsh-capabilities/host/typert-adapter.d.ts.map +1 -0
  777. package/data/build/dist/dsh-capabilities/host/typert-adapter.js +4 -0
  778. package/data/build/dist/dsh-capabilities/host/typert-adapter.js.map +1 -0
  779. package/data/build/dist/dsh-capabilities/index.d.ts +6 -0
  780. package/data/build/dist/dsh-capabilities/index.d.ts.map +1 -0
  781. package/data/build/dist/dsh-capabilities/index.js +6 -0
  782. package/data/build/dist/dsh-capabilities/index.js.map +1 -0
  783. package/data/build/dist/dsh-capabilities/matrix.d.ts +17 -0
  784. package/data/build/dist/dsh-capabilities/matrix.d.ts.map +1 -0
  785. package/data/build/dist/dsh-capabilities/matrix.js +91 -0
  786. package/data/build/dist/dsh-capabilities/matrix.js.map +1 -0
  787. package/data/build/dist/dsh-capabilities/registry.d.ts +22 -0
  788. package/data/build/dist/dsh-capabilities/registry.d.ts.map +1 -0
  789. package/data/build/dist/dsh-capabilities/registry.js +200 -0
  790. package/data/build/dist/dsh-capabilities/registry.js.map +1 -0
  791. package/data/build/dist/dsh-capabilities/routes.d.ts +17 -0
  792. package/data/build/dist/dsh-capabilities/routes.d.ts.map +1 -0
  793. package/data/build/dist/dsh-capabilities/routes.js +307 -0
  794. package/data/build/dist/dsh-capabilities/routes.js.map +1 -0
  795. package/data/build/dist/dsh-capabilities/settings-store.d.ts +43 -0
  796. package/data/build/dist/dsh-capabilities/settings-store.d.ts.map +1 -0
  797. package/data/build/dist/dsh-capabilities/settings-store.js +39 -0
  798. package/data/build/dist/dsh-capabilities/settings-store.js.map +1 -0
  799. package/data/build/dist/dsh-capabilities/types.d.ts +50 -0
  800. package/data/build/dist/dsh-capabilities/types.d.ts.map +1 -0
  801. package/data/build/dist/dsh-capabilities/types.js +23 -0
  802. package/data/build/dist/dsh-capabilities/types.js.map +1 -0
  803. package/data/build/dist/features/index.d.ts +3 -0
  804. package/data/build/dist/features/index.d.ts.map +1 -0
  805. package/data/build/dist/features/index.js +2 -0
  806. package/data/build/dist/features/index.js.map +1 -0
  807. package/data/build/dist/features/registry.d.ts +87 -0
  808. package/data/build/dist/features/registry.d.ts.map +1 -0
  809. package/data/build/dist/features/registry.js +525 -0
  810. package/data/build/dist/features/registry.js.map +1 -0
  811. package/data/build/dist/host/auth-session.d.ts +49 -0
  812. package/data/build/dist/host/auth-session.d.ts.map +1 -0
  813. package/data/build/dist/host/auth-session.js +208 -0
  814. package/data/build/dist/host/auth-session.js.map +1 -0
  815. package/data/build/dist/host/browser-text.d.ts +30 -0
  816. package/data/build/dist/host/browser-text.d.ts.map +1 -0
  817. package/data/build/dist/host/browser-text.js +119 -0
  818. package/data/build/dist/host/browser-text.js.map +1 -0
  819. package/data/build/dist/host/cli-adapters/acp-cli-driver.d.ts +156 -0
  820. package/data/build/dist/host/cli-adapters/acp-cli-driver.d.ts.map +1 -0
  821. package/data/build/dist/host/cli-adapters/acp-cli-driver.js +705 -0
  822. package/data/build/dist/host/cli-adapters/acp-cli-driver.js.map +1 -0
  823. package/data/build/dist/host/cli-adapters/acp-elicitation.d.ts +31 -0
  824. package/data/build/dist/host/cli-adapters/acp-elicitation.d.ts.map +1 -0
  825. package/data/build/dist/host/cli-adapters/acp-elicitation.js +144 -0
  826. package/data/build/dist/host/cli-adapters/acp-elicitation.js.map +1 -0
  827. package/data/build/dist/host/cli-adapters/antigravity-driver.d.ts +96 -0
  828. package/data/build/dist/host/cli-adapters/antigravity-driver.d.ts.map +1 -0
  829. package/data/build/dist/host/cli-adapters/antigravity-driver.js +608 -0
  830. package/data/build/dist/host/cli-adapters/antigravity-driver.js.map +1 -0
  831. package/data/build/dist/host/cli-adapters/antigravity-performance-projection.d.ts +90 -0
  832. package/data/build/dist/host/cli-adapters/antigravity-performance-projection.d.ts.map +1 -0
  833. package/data/build/dist/host/cli-adapters/antigravity-performance-projection.js +7 -0
  834. package/data/build/dist/host/cli-adapters/antigravity-performance-projection.js.map +1 -0
  835. package/data/build/dist/host/cli-adapters/antigravity-subscription.d.ts +122 -0
  836. package/data/build/dist/host/cli-adapters/antigravity-subscription.d.ts.map +1 -0
  837. package/data/build/dist/host/cli-adapters/antigravity-subscription.js +545 -0
  838. package/data/build/dist/host/cli-adapters/antigravity-subscription.js.map +1 -0
  839. package/data/build/dist/host/cli-adapters/antigravity-updater.d.ts +18 -0
  840. package/data/build/dist/host/cli-adapters/antigravity-updater.d.ts.map +1 -0
  841. package/data/build/dist/host/cli-adapters/antigravity-updater.js +75 -0
  842. package/data/build/dist/host/cli-adapters/antigravity-updater.js.map +1 -0
  843. package/data/build/dist/host/cli-adapters/attachment-utils.d.ts +26 -0
  844. package/data/build/dist/host/cli-adapters/attachment-utils.d.ts.map +1 -0
  845. package/data/build/dist/host/cli-adapters/attachment-utils.js +189 -0
  846. package/data/build/dist/host/cli-adapters/attachment-utils.js.map +1 -0
  847. package/data/build/dist/host/cli-adapters/binary-detection.d.ts +19 -0
  848. package/data/build/dist/host/cli-adapters/binary-detection.d.ts.map +1 -0
  849. package/data/build/dist/host/cli-adapters/binary-detection.js +75 -0
  850. package/data/build/dist/host/cli-adapters/binary-detection.js.map +1 -0
  851. package/data/build/dist/host/cli-adapters/claude-driver.d.ts +88 -0
  852. package/data/build/dist/host/cli-adapters/claude-driver.d.ts.map +1 -0
  853. package/data/build/dist/host/cli-adapters/claude-driver.js +815 -0
  854. package/data/build/dist/host/cli-adapters/claude-driver.js.map +1 -0
  855. package/data/build/dist/host/cli-adapters/claude-model-options.d.ts +17 -0
  856. package/data/build/dist/host/cli-adapters/claude-model-options.d.ts.map +1 -0
  857. package/data/build/dist/host/cli-adapters/claude-model-options.js +109 -0
  858. package/data/build/dist/host/cli-adapters/claude-model-options.js.map +1 -0
  859. package/data/build/dist/host/cli-adapters/claude-performance-projection.d.ts +90 -0
  860. package/data/build/dist/host/cli-adapters/claude-performance-projection.d.ts.map +1 -0
  861. package/data/build/dist/host/cli-adapters/claude-performance-projection.js +7 -0
  862. package/data/build/dist/host/cli-adapters/claude-performance-projection.js.map +1 -0
  863. package/data/build/dist/host/cli-adapters/claude-performance.d.ts +11 -0
  864. package/data/build/dist/host/cli-adapters/claude-performance.d.ts.map +1 -0
  865. package/data/build/dist/host/cli-adapters/claude-performance.js +66 -0
  866. package/data/build/dist/host/cli-adapters/claude-performance.js.map +1 -0
  867. package/data/build/dist/host/cli-adapters/claude-process.d.ts +7 -0
  868. package/data/build/dist/host/cli-adapters/claude-process.d.ts.map +1 -0
  869. package/data/build/dist/host/cli-adapters/claude-process.js +59 -0
  870. package/data/build/dist/host/cli-adapters/claude-process.js.map +1 -0
  871. package/data/build/dist/host/cli-adapters/codebuddy-driver.d.ts +148 -0
  872. package/data/build/dist/host/cli-adapters/codebuddy-driver.d.ts.map +1 -0
  873. package/data/build/dist/host/cli-adapters/codebuddy-driver.js +1958 -0
  874. package/data/build/dist/host/cli-adapters/codebuddy-driver.js.map +1 -0
  875. package/data/build/dist/host/cli-adapters/codebuddy-subscription.d.ts +53 -0
  876. package/data/build/dist/host/cli-adapters/codebuddy-subscription.d.ts.map +1 -0
  877. package/data/build/dist/host/cli-adapters/codebuddy-subscription.js +778 -0
  878. package/data/build/dist/host/cli-adapters/codebuddy-subscription.js.map +1 -0
  879. package/data/build/dist/host/cli-adapters/codex-driver.d.ts +155 -0
  880. package/data/build/dist/host/cli-adapters/codex-driver.d.ts.map +1 -0
  881. package/data/build/dist/host/cli-adapters/codex-driver.js +2226 -0
  882. package/data/build/dist/host/cli-adapters/codex-driver.js.map +1 -0
  883. package/data/build/dist/host/cli-adapters/codex-file-citations.d.ts +13 -0
  884. package/data/build/dist/host/cli-adapters/codex-file-citations.d.ts.map +1 -0
  885. package/data/build/dist/host/cli-adapters/codex-file-citations.js +271 -0
  886. package/data/build/dist/host/cli-adapters/codex-file-citations.js.map +1 -0
  887. package/data/build/dist/host/cli-adapters/codex-performance-projection.d.ts +91 -0
  888. package/data/build/dist/host/cli-adapters/codex-performance-projection.d.ts.map +1 -0
  889. package/data/build/dist/host/cli-adapters/codex-performance-projection.js +8 -0
  890. package/data/build/dist/host/cli-adapters/codex-performance-projection.js.map +1 -0
  891. package/data/build/dist/host/cli-adapters/codex-performance.d.ts +16 -0
  892. package/data/build/dist/host/cli-adapters/codex-performance.d.ts.map +1 -0
  893. package/data/build/dist/host/cli-adapters/codex-performance.js +81 -0
  894. package/data/build/dist/host/cli-adapters/codex-performance.js.map +1 -0
  895. package/data/build/dist/host/cli-adapters/command-code-acp-loader.d.ts +32 -0
  896. package/data/build/dist/host/cli-adapters/command-code-acp-loader.d.ts.map +1 -0
  897. package/data/build/dist/host/cli-adapters/command-code-acp-loader.js +179 -0
  898. package/data/build/dist/host/cli-adapters/command-code-acp-loader.js.map +1 -0
  899. package/data/build/dist/host/cli-adapters/command-code-driver.d.ts +135 -0
  900. package/data/build/dist/host/cli-adapters/command-code-driver.d.ts.map +1 -0
  901. package/data/build/dist/host/cli-adapters/command-code-driver.js +2098 -0
  902. package/data/build/dist/host/cli-adapters/command-code-driver.js.map +1 -0
  903. package/data/build/dist/host/cli-adapters/command-code-history.d.ts +174 -0
  904. package/data/build/dist/host/cli-adapters/command-code-history.d.ts.map +1 -0
  905. package/data/build/dist/host/cli-adapters/command-code-history.js +789 -0
  906. package/data/build/dist/host/cli-adapters/command-code-history.js.map +1 -0
  907. package/data/build/dist/host/cli-adapters/command-code-subscription.d.ts +19 -0
  908. package/data/build/dist/host/cli-adapters/command-code-subscription.d.ts.map +1 -0
  909. package/data/build/dist/host/cli-adapters/command-code-subscription.js +132 -0
  910. package/data/build/dist/host/cli-adapters/command-code-subscription.js.map +1 -0
  911. package/data/build/dist/host/cli-adapters/cursor-driver.d.ts +21 -0
  912. package/data/build/dist/host/cli-adapters/cursor-driver.d.ts.map +1 -0
  913. package/data/build/dist/host/cli-adapters/cursor-driver.js +91 -0
  914. package/data/build/dist/host/cli-adapters/cursor-driver.js.map +1 -0
  915. package/data/build/dist/host/cli-adapters/custom-upstream-classifier.d.ts +67 -0
  916. package/data/build/dist/host/cli-adapters/custom-upstream-classifier.d.ts.map +1 -0
  917. package/data/build/dist/host/cli-adapters/custom-upstream-classifier.js +169 -0
  918. package/data/build/dist/host/cli-adapters/custom-upstream-classifier.js.map +1 -0
  919. package/data/build/dist/host/cli-adapters/delegate-dispatch.d.ts +49 -0
  920. package/data/build/dist/host/cli-adapters/delegate-dispatch.d.ts.map +1 -0
  921. package/data/build/dist/host/cli-adapters/delegate-dispatch.js +112 -0
  922. package/data/build/dist/host/cli-adapters/delegate-dispatch.js.map +1 -0
  923. package/data/build/dist/host/cli-adapters/delegation-authorization.d.ts +19 -0
  924. package/data/build/dist/host/cli-adapters/delegation-authorization.d.ts.map +1 -0
  925. package/data/build/dist/host/cli-adapters/delegation-authorization.js +49 -0
  926. package/data/build/dist/host/cli-adapters/delegation-authorization.js.map +1 -0
  927. package/data/build/dist/host/cli-adapters/delegation-mention-rewrite.d.ts +36 -0
  928. package/data/build/dist/host/cli-adapters/delegation-mention-rewrite.d.ts.map +1 -0
  929. package/data/build/dist/host/cli-adapters/delegation-mention-rewrite.js +126 -0
  930. package/data/build/dist/host/cli-adapters/delegation-mention-rewrite.js.map +1 -0
  931. package/data/build/dist/host/cli-adapters/desktop-app-runtime.d.ts +34 -0
  932. package/data/build/dist/host/cli-adapters/desktop-app-runtime.d.ts.map +1 -0
  933. package/data/build/dist/host/cli-adapters/desktop-app-runtime.js +157 -0
  934. package/data/build/dist/host/cli-adapters/desktop-app-runtime.js.map +1 -0
  935. package/data/build/dist/host/cli-adapters/doubao-app.d.ts +48 -0
  936. package/data/build/dist/host/cli-adapters/doubao-app.d.ts.map +1 -0
  937. package/data/build/dist/host/cli-adapters/doubao-app.js +281 -0
  938. package/data/build/dist/host/cli-adapters/doubao-app.js.map +1 -0
  939. package/data/build/dist/host/cli-adapters/doubao-artifact-store.d.ts +16 -0
  940. package/data/build/dist/host/cli-adapters/doubao-artifact-store.d.ts.map +1 -0
  941. package/data/build/dist/host/cli-adapters/doubao-artifact-store.js +142 -0
  942. package/data/build/dist/host/cli-adapters/doubao-artifact-store.js.map +1 -0
  943. package/data/build/dist/host/cli-adapters/doubao-artifacts.d.ts +16 -0
  944. package/data/build/dist/host/cli-adapters/doubao-artifacts.d.ts.map +1 -0
  945. package/data/build/dist/host/cli-adapters/doubao-artifacts.js +34 -0
  946. package/data/build/dist/host/cli-adapters/doubao-artifacts.js.map +1 -0
  947. package/data/build/dist/host/cli-adapters/doubao-cdp.d.ts +49 -0
  948. package/data/build/dist/host/cli-adapters/doubao-cdp.d.ts.map +1 -0
  949. package/data/build/dist/host/cli-adapters/doubao-cdp.js +177 -0
  950. package/data/build/dist/host/cli-adapters/doubao-cdp.js.map +1 -0
  951. package/data/build/dist/host/cli-adapters/doubao-driver.d.ts +33 -0
  952. package/data/build/dist/host/cli-adapters/doubao-driver.d.ts.map +1 -0
  953. package/data/build/dist/host/cli-adapters/doubao-driver.js +294 -0
  954. package/data/build/dist/host/cli-adapters/doubao-driver.js.map +1 -0
  955. package/data/build/dist/host/cli-adapters/doubao-events.d.ts +21 -0
  956. package/data/build/dist/host/cli-adapters/doubao-events.d.ts.map +1 -0
  957. package/data/build/dist/host/cli-adapters/doubao-events.js +126 -0
  958. package/data/build/dist/host/cli-adapters/doubao-events.js.map +1 -0
  959. package/data/build/dist/host/cli-adapters/doubao-runtime.d.ts +6 -0
  960. package/data/build/dist/host/cli-adapters/doubao-runtime.d.ts.map +1 -0
  961. package/data/build/dist/host/cli-adapters/doubao-runtime.js +176 -0
  962. package/data/build/dist/host/cli-adapters/doubao-runtime.js.map +1 -0
  963. package/data/build/dist/host/cli-adapters/doubao-tools.d.ts +8 -0
  964. package/data/build/dist/host/cli-adapters/doubao-tools.d.ts.map +1 -0
  965. package/data/build/dist/host/cli-adapters/doubao-tools.js +139 -0
  966. package/data/build/dist/host/cli-adapters/doubao-tools.js.map +1 -0
  967. package/data/build/dist/host/cli-adapters/driver.d.ts +82 -0
  968. package/data/build/dist/host/cli-adapters/driver.d.ts.map +1 -0
  969. package/data/build/dist/host/cli-adapters/driver.js +2 -0
  970. package/data/build/dist/host/cli-adapters/driver.js.map +1 -0
  971. package/data/build/dist/host/cli-adapters/dsh-config.d.ts +16 -0
  972. package/data/build/dist/host/cli-adapters/dsh-config.d.ts.map +1 -0
  973. package/data/build/dist/host/cli-adapters/dsh-config.js +153 -0
  974. package/data/build/dist/host/cli-adapters/dsh-config.js.map +1 -0
  975. package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts +73 -0
  976. package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts.map +1 -0
  977. package/data/build/dist/host/cli-adapters/dsh-message-projector.js +514 -0
  978. package/data/build/dist/host/cli-adapters/dsh-message-projector.js.map +1 -0
  979. package/data/build/dist/host/cli-adapters/dsh-model-catalog.d.ts +11 -0
  980. package/data/build/dist/host/cli-adapters/dsh-model-catalog.d.ts.map +1 -0
  981. package/data/build/dist/host/cli-adapters/dsh-model-catalog.js +34 -0
  982. package/data/build/dist/host/cli-adapters/dsh-model-catalog.js.map +1 -0
  983. package/data/build/dist/host/cli-adapters/dsh-tool-history.d.ts +52 -0
  984. package/data/build/dist/host/cli-adapters/dsh-tool-history.d.ts.map +1 -0
  985. package/data/build/dist/host/cli-adapters/dsh-tool-history.js +528 -0
  986. package/data/build/dist/host/cli-adapters/dsh-tool-history.js.map +1 -0
  987. package/data/build/dist/host/cli-adapters/dsh-virtual-providers.d.ts +27 -0
  988. package/data/build/dist/host/cli-adapters/dsh-virtual-providers.d.ts.map +1 -0
  989. package/data/build/dist/host/cli-adapters/dsh-virtual-providers.js +100 -0
  990. package/data/build/dist/host/cli-adapters/dsh-virtual-providers.js.map +1 -0
  991. package/data/build/dist/host/cli-adapters/feature.d.ts +28 -0
  992. package/data/build/dist/host/cli-adapters/feature.d.ts.map +1 -0
  993. package/data/build/dist/host/cli-adapters/feature.js +2418 -0
  994. package/data/build/dist/host/cli-adapters/feature.js.map +1 -0
  995. package/data/build/dist/host/cli-adapters/gemini-driver.d.ts +25 -0
  996. package/data/build/dist/host/cli-adapters/gemini-driver.d.ts.map +1 -0
  997. package/data/build/dist/host/cli-adapters/gemini-driver.js +507 -0
  998. package/data/build/dist/host/cli-adapters/gemini-driver.js.map +1 -0
  999. package/data/build/dist/host/cli-adapters/grok-driver.d.ts +48 -0
  1000. package/data/build/dist/host/cli-adapters/grok-driver.d.ts.map +1 -0
  1001. package/data/build/dist/host/cli-adapters/grok-driver.js +1118 -0
  1002. package/data/build/dist/host/cli-adapters/grok-driver.js.map +1 -0
  1003. package/data/build/dist/host/cli-adapters/grok-performance-projection.d.ts +123 -0
  1004. package/data/build/dist/host/cli-adapters/grok-performance-projection.d.ts.map +1 -0
  1005. package/data/build/dist/host/cli-adapters/grok-performance-projection.js +48 -0
  1006. package/data/build/dist/host/cli-adapters/grok-performance-projection.js.map +1 -0
  1007. package/data/build/dist/host/cli-adapters/grok-usage.d.ts +45 -0
  1008. package/data/build/dist/host/cli-adapters/grok-usage.d.ts.map +1 -0
  1009. package/data/build/dist/host/cli-adapters/grok-usage.js +197 -0
  1010. package/data/build/dist/host/cli-adapters/grok-usage.js.map +1 -0
  1011. package/data/build/dist/host/cli-adapters/http-sse-client.d.ts +22 -0
  1012. package/data/build/dist/host/cli-adapters/http-sse-client.d.ts.map +1 -0
  1013. package/data/build/dist/host/cli-adapters/http-sse-client.js +99 -0
  1014. package/data/build/dist/host/cli-adapters/http-sse-client.js.map +1 -0
  1015. package/data/build/dist/host/cli-adapters/interaction-events.d.ts +11 -0
  1016. package/data/build/dist/host/cli-adapters/interaction-events.d.ts.map +1 -0
  1017. package/data/build/dist/host/cli-adapters/interaction-events.js +80 -0
  1018. package/data/build/dist/host/cli-adapters/interaction-events.js.map +1 -0
  1019. package/data/build/dist/host/cli-adapters/json-rpc-process.d.ts +93 -0
  1020. package/data/build/dist/host/cli-adapters/json-rpc-process.d.ts.map +1 -0
  1021. package/data/build/dist/host/cli-adapters/json-rpc-process.js +375 -0
  1022. package/data/build/dist/host/cli-adapters/json-rpc-process.js.map +1 -0
  1023. package/data/build/dist/host/cli-adapters/kimi-driver.d.ts +25 -0
  1024. package/data/build/dist/host/cli-adapters/kimi-driver.d.ts.map +1 -0
  1025. package/data/build/dist/host/cli-adapters/kimi-driver.js +416 -0
  1026. package/data/build/dist/host/cli-adapters/kimi-driver.js.map +1 -0
  1027. package/data/build/dist/host/cli-adapters/kiro-driver.d.ts +12 -0
  1028. package/data/build/dist/host/cli-adapters/kiro-driver.d.ts.map +1 -0
  1029. package/data/build/dist/host/cli-adapters/kiro-driver.js +18 -0
  1030. package/data/build/dist/host/cli-adapters/kiro-driver.js.map +1 -0
  1031. package/data/build/dist/host/cli-adapters/legacy-session-adapter.d.ts +28 -0
  1032. package/data/build/dist/host/cli-adapters/legacy-session-adapter.d.ts.map +1 -0
  1033. package/data/build/dist/host/cli-adapters/legacy-session-adapter.js +142 -0
  1034. package/data/build/dist/host/cli-adapters/legacy-session-adapter.js.map +1 -0
  1035. package/data/build/dist/host/cli-adapters/legacy-session-settings.d.ts +24 -0
  1036. package/data/build/dist/host/cli-adapters/legacy-session-settings.d.ts.map +1 -0
  1037. package/data/build/dist/host/cli-adapters/legacy-session-settings.js +167 -0
  1038. package/data/build/dist/host/cli-adapters/legacy-session-settings.js.map +1 -0
  1039. package/data/build/dist/host/cli-adapters/log-files.d.ts +3 -0
  1040. package/data/build/dist/host/cli-adapters/log-files.d.ts.map +1 -0
  1041. package/data/build/dist/host/cli-adapters/log-files.js +32 -0
  1042. package/data/build/dist/host/cli-adapters/log-files.js.map +1 -0
  1043. package/data/build/dist/host/cli-adapters/management-installation.d.ts +5 -0
  1044. package/data/build/dist/host/cli-adapters/management-installation.d.ts.map +1 -0
  1045. package/data/build/dist/host/cli-adapters/management-installation.js +131 -0
  1046. package/data/build/dist/host/cli-adapters/management-installation.js.map +1 -0
  1047. package/data/build/dist/host/cli-adapters/management-methods.d.ts +37 -0
  1048. package/data/build/dist/host/cli-adapters/management-methods.d.ts.map +1 -0
  1049. package/data/build/dist/host/cli-adapters/management-methods.js +144 -0
  1050. package/data/build/dist/host/cli-adapters/management-methods.js.map +1 -0
  1051. package/data/build/dist/host/cli-adapters/management-process.d.ts +7 -0
  1052. package/data/build/dist/host/cli-adapters/management-process.d.ts.map +1 -0
  1053. package/data/build/dist/host/cli-adapters/management-process.js +62 -0
  1054. package/data/build/dist/host/cli-adapters/management-process.js.map +1 -0
  1055. package/data/build/dist/host/cli-adapters/management.d.ts +32 -0
  1056. package/data/build/dist/host/cli-adapters/management.d.ts.map +1 -0
  1057. package/data/build/dist/host/cli-adapters/management.js +177 -0
  1058. package/data/build/dist/host/cli-adapters/management.js.map +1 -0
  1059. package/data/build/dist/host/cli-adapters/mcode-catalog.d.ts +23 -0
  1060. package/data/build/dist/host/cli-adapters/mcode-catalog.d.ts.map +1 -0
  1061. package/data/build/dist/host/cli-adapters/mcode-catalog.js +120 -0
  1062. package/data/build/dist/host/cli-adapters/mcode-catalog.js.map +1 -0
  1063. package/data/build/dist/host/cli-adapters/mcode-driver.d.ts +60 -0
  1064. package/data/build/dist/host/cli-adapters/mcode-driver.d.ts.map +1 -0
  1065. package/data/build/dist/host/cli-adapters/mcode-driver.js +621 -0
  1066. package/data/build/dist/host/cli-adapters/mcode-driver.js.map +1 -0
  1067. package/data/build/dist/host/cli-adapters/model-catalog.d.ts +113 -0
  1068. package/data/build/dist/host/cli-adapters/model-catalog.d.ts.map +1 -0
  1069. package/data/build/dist/host/cli-adapters/model-catalog.js +526 -0
  1070. package/data/build/dist/host/cli-adapters/model-catalog.js.map +1 -0
  1071. package/data/build/dist/host/cli-adapters/native-subagent-dispatch.d.ts +159 -0
  1072. package/data/build/dist/host/cli-adapters/native-subagent-dispatch.d.ts.map +1 -0
  1073. package/data/build/dist/host/cli-adapters/native-subagent-dispatch.js +566 -0
  1074. package/data/build/dist/host/cli-adapters/native-subagent-dispatch.js.map +1 -0
  1075. package/data/build/dist/host/cli-adapters/native-subagent-holder.d.ts +4 -0
  1076. package/data/build/dist/host/cli-adapters/native-subagent-holder.d.ts.map +1 -0
  1077. package/data/build/dist/host/cli-adapters/native-subagent-holder.js +4 -0
  1078. package/data/build/dist/host/cli-adapters/native-subagent-holder.js.map +1 -0
  1079. package/data/build/dist/host/cli-adapters/native-team-proxy.d.ts +41 -0
  1080. package/data/build/dist/host/cli-adapters/native-team-proxy.d.ts.map +1 -0
  1081. package/data/build/dist/host/cli-adapters/native-team-proxy.js +140 -0
  1082. package/data/build/dist/host/cli-adapters/native-team-proxy.js.map +1 -0
  1083. package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts +123 -0
  1084. package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts.map +1 -0
  1085. package/data/build/dist/host/cli-adapters/native-team-subagent.js +175 -0
  1086. package/data/build/dist/host/cli-adapters/native-team-subagent.js.map +1 -0
  1087. package/data/build/dist/host/cli-adapters/new-api-subscription.d.ts +75 -0
  1088. package/data/build/dist/host/cli-adapters/new-api-subscription.d.ts.map +1 -0
  1089. package/data/build/dist/host/cli-adapters/new-api-subscription.js +869 -0
  1090. package/data/build/dist/host/cli-adapters/new-api-subscription.js.map +1 -0
  1091. package/data/build/dist/host/cli-adapters/official-provider-subscription.d.ts +29 -0
  1092. package/data/build/dist/host/cli-adapters/official-provider-subscription.d.ts.map +1 -0
  1093. package/data/build/dist/host/cli-adapters/official-provider-subscription.js +361 -0
  1094. package/data/build/dist/host/cli-adapters/official-provider-subscription.js.map +1 -0
  1095. package/data/build/dist/host/cli-adapters/opencode-driver.d.ts +112 -0
  1096. package/data/build/dist/host/cli-adapters/opencode-driver.d.ts.map +1 -0
  1097. package/data/build/dist/host/cli-adapters/opencode-driver.js +1270 -0
  1098. package/data/build/dist/host/cli-adapters/opencode-driver.js.map +1 -0
  1099. package/data/build/dist/host/cli-adapters/opencode-v2-protocol.d.ts +30 -0
  1100. package/data/build/dist/host/cli-adapters/opencode-v2-protocol.d.ts.map +1 -0
  1101. package/data/build/dist/host/cli-adapters/opencode-v2-protocol.js +828 -0
  1102. package/data/build/dist/host/cli-adapters/opencode-v2-protocol.js.map +1 -0
  1103. package/data/build/dist/host/cli-adapters/pi-driver.d.ts +45 -0
  1104. package/data/build/dist/host/cli-adapters/pi-driver.d.ts.map +1 -0
  1105. package/data/build/dist/host/cli-adapters/pi-driver.js +616 -0
  1106. package/data/build/dist/host/cli-adapters/pi-driver.js.map +1 -0
  1107. package/data/build/dist/host/cli-adapters/pi-performance-projection.d.ts +90 -0
  1108. package/data/build/dist/host/cli-adapters/pi-performance-projection.d.ts.map +1 -0
  1109. package/data/build/dist/host/cli-adapters/pi-performance-projection.js +7 -0
  1110. package/data/build/dist/host/cli-adapters/pi-performance-projection.js.map +1 -0
  1111. package/data/build/dist/host/cli-adapters/pi-performance.d.ts +15 -0
  1112. package/data/build/dist/host/cli-adapters/pi-performance.d.ts.map +1 -0
  1113. package/data/build/dist/host/cli-adapters/pi-performance.js +94 -0
  1114. package/data/build/dist/host/cli-adapters/pi-performance.js.map +1 -0
  1115. package/data/build/dist/host/cli-adapters/process-utils.d.ts +53 -0
  1116. package/data/build/dist/host/cli-adapters/process-utils.d.ts.map +1 -0
  1117. package/data/build/dist/host/cli-adapters/process-utils.js +242 -0
  1118. package/data/build/dist/host/cli-adapters/process-utils.js.map +1 -0
  1119. package/data/build/dist/host/cli-adapters/provider-registry.d.ts +33 -0
  1120. package/data/build/dist/host/cli-adapters/provider-registry.d.ts.map +1 -0
  1121. package/data/build/dist/host/cli-adapters/provider-registry.js +83 -0
  1122. package/data/build/dist/host/cli-adapters/provider-registry.js.map +1 -0
  1123. package/data/build/dist/host/cli-adapters/provider-subscription.d.ts +189 -0
  1124. package/data/build/dist/host/cli-adapters/provider-subscription.d.ts.map +1 -0
  1125. package/data/build/dist/host/cli-adapters/provider-subscription.js +1616 -0
  1126. package/data/build/dist/host/cli-adapters/provider-subscription.js.map +1 -0
  1127. package/data/build/dist/host/cli-adapters/qoder-driver.d.ts +86 -0
  1128. package/data/build/dist/host/cli-adapters/qoder-driver.d.ts.map +1 -0
  1129. package/data/build/dist/host/cli-adapters/qoder-driver.js +707 -0
  1130. package/data/build/dist/host/cli-adapters/qoder-driver.js.map +1 -0
  1131. package/data/build/dist/host/cli-adapters/qoder-subscription.d.ts +36 -0
  1132. package/data/build/dist/host/cli-adapters/qoder-subscription.d.ts.map +1 -0
  1133. package/data/build/dist/host/cli-adapters/qoder-subscription.js +207 -0
  1134. package/data/build/dist/host/cli-adapters/qoder-subscription.js.map +1 -0
  1135. package/data/build/dist/host/cli-adapters/r4-subscription.d.ts +13 -0
  1136. package/data/build/dist/host/cli-adapters/r4-subscription.d.ts.map +1 -0
  1137. package/data/build/dist/host/cli-adapters/r4-subscription.js +111 -0
  1138. package/data/build/dist/host/cli-adapters/r4-subscription.js.map +1 -0
  1139. package/data/build/dist/host/cli-adapters/reasoning-content.d.ts +11 -0
  1140. package/data/build/dist/host/cli-adapters/reasoning-content.d.ts.map +1 -0
  1141. package/data/build/dist/host/cli-adapters/reasoning-content.js +79 -0
  1142. package/data/build/dist/host/cli-adapters/reasoning-content.js.map +1 -0
  1143. package/data/build/dist/host/cli-adapters/registry-holder.d.ts +4 -0
  1144. package/data/build/dist/host/cli-adapters/registry-holder.d.ts.map +1 -0
  1145. package/data/build/dist/host/cli-adapters/registry-holder.js +9 -0
  1146. package/data/build/dist/host/cli-adapters/registry-holder.js.map +1 -0
  1147. package/data/build/dist/host/cli-adapters/registry.d.ts +194 -0
  1148. package/data/build/dist/host/cli-adapters/registry.d.ts.map +1 -0
  1149. package/data/build/dist/host/cli-adapters/registry.js +1412 -0
  1150. package/data/build/dist/host/cli-adapters/registry.js.map +1 -0
  1151. package/data/build/dist/host/cli-adapters/rpc-driver-utils.d.ts +17 -0
  1152. package/data/build/dist/host/cli-adapters/rpc-driver-utils.d.ts.map +1 -0
  1153. package/data/build/dist/host/cli-adapters/rpc-driver-utils.js +120 -0
  1154. package/data/build/dist/host/cli-adapters/rpc-driver-utils.js.map +1 -0
  1155. package/data/build/dist/host/cli-adapters/session-performance-projection.d.ts +80 -0
  1156. package/data/build/dist/host/cli-adapters/session-performance-projection.d.ts.map +1 -0
  1157. package/data/build/dist/host/cli-adapters/session-performance-projection.js +108 -0
  1158. package/data/build/dist/host/cli-adapters/session-performance-projection.js.map +1 -0
  1159. package/data/build/dist/host/cli-adapters/session-probe.d.ts +20 -0
  1160. package/data/build/dist/host/cli-adapters/session-probe.d.ts.map +1 -0
  1161. package/data/build/dist/host/cli-adapters/session-probe.js +139 -0
  1162. package/data/build/dist/host/cli-adapters/session-probe.js.map +1 -0
  1163. package/data/build/dist/host/cli-adapters/session-store.d.ts +98 -0
  1164. package/data/build/dist/host/cli-adapters/session-store.d.ts.map +1 -0
  1165. package/data/build/dist/host/cli-adapters/session-store.js +364 -0
  1166. package/data/build/dist/host/cli-adapters/session-store.js.map +1 -0
  1167. package/data/build/dist/host/cli-adapters/skill-filesystem.d.ts +25 -0
  1168. package/data/build/dist/host/cli-adapters/skill-filesystem.d.ts.map +1 -0
  1169. package/data/build/dist/host/cli-adapters/skill-filesystem.js +161 -0
  1170. package/data/build/dist/host/cli-adapters/skill-filesystem.js.map +1 -0
  1171. package/data/build/dist/host/cli-adapters/standard-stream-driver.d.ts +73 -0
  1172. package/data/build/dist/host/cli-adapters/standard-stream-driver.d.ts.map +1 -0
  1173. package/data/build/dist/host/cli-adapters/standard-stream-driver.js +365 -0
  1174. package/data/build/dist/host/cli-adapters/standard-stream-driver.js.map +1 -0
  1175. package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts +39 -0
  1176. package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts.map +1 -0
  1177. package/data/build/dist/host/cli-adapters/stream-normalizer.js +135 -0
  1178. package/data/build/dist/host/cli-adapters/stream-normalizer.js.map +1 -0
  1179. package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.d.ts +34 -0
  1180. package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.d.ts.map +1 -0
  1181. package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.js +38 -0
  1182. package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.js.map +1 -0
  1183. package/data/build/dist/host/cli-adapters/subagent-tool.d.ts +5 -0
  1184. package/data/build/dist/host/cli-adapters/subagent-tool.d.ts.map +1 -0
  1185. package/data/build/dist/host/cli-adapters/subagent-tool.js +185 -0
  1186. package/data/build/dist/host/cli-adapters/subagent-tool.js.map +1 -0
  1187. package/data/build/dist/host/cli-adapters/team-input.d.ts +17 -0
  1188. package/data/build/dist/host/cli-adapters/team-input.d.ts.map +1 -0
  1189. package/data/build/dist/host/cli-adapters/team-input.js +67 -0
  1190. package/data/build/dist/host/cli-adapters/team-input.js.map +1 -0
  1191. package/data/build/dist/host/cli-adapters/tool-observation.d.ts +11 -0
  1192. package/data/build/dist/host/cli-adapters/tool-observation.d.ts.map +1 -0
  1193. package/data/build/dist/host/cli-adapters/tool-observation.js +45 -0
  1194. package/data/build/dist/host/cli-adapters/tool-observation.js.map +1 -0
  1195. package/data/build/dist/host/cli-adapters/update-check.d.ts +34 -0
  1196. package/data/build/dist/host/cli-adapters/update-check.d.ts.map +1 -0
  1197. package/data/build/dist/host/cli-adapters/update-check.js +263 -0
  1198. package/data/build/dist/host/cli-adapters/update-check.js.map +1 -0
  1199. package/data/build/dist/host/cli-adapters/windows-command-environment.d.ts +12 -0
  1200. package/data/build/dist/host/cli-adapters/windows-command-environment.d.ts.map +1 -0
  1201. package/data/build/dist/host/cli-adapters/windows-command-environment.js +53 -0
  1202. package/data/build/dist/host/cli-adapters/windows-command-environment.js.map +1 -0
  1203. package/data/build/dist/host/cli-adapters/workbuddy-credential-bootstrap.d.ts +2 -0
  1204. package/data/build/dist/host/cli-adapters/workbuddy-credential-bootstrap.d.ts.map +1 -0
  1205. package/data/build/dist/host/cli-adapters/workbuddy-credential-bootstrap.js +212 -0
  1206. package/data/build/dist/host/cli-adapters/workbuddy-credential-bootstrap.js.map +1 -0
  1207. package/data/build/dist/host/cli-adapters/zcode-credentials.d.ts +10 -0
  1208. package/data/build/dist/host/cli-adapters/zcode-credentials.d.ts.map +1 -0
  1209. package/data/build/dist/host/cli-adapters/zcode-credentials.js +84 -0
  1210. package/data/build/dist/host/cli-adapters/zcode-credentials.js.map +1 -0
  1211. package/data/build/dist/host/cli-adapters/zcode-driver.d.ts +74 -0
  1212. package/data/build/dist/host/cli-adapters/zcode-driver.d.ts.map +1 -0
  1213. package/data/build/dist/host/cli-adapters/zcode-driver.js +1033 -0
  1214. package/data/build/dist/host/cli-adapters/zcode-driver.js.map +1 -0
  1215. package/data/build/dist/host/cli-adapters/zcode-interactions.d.ts +18 -0
  1216. package/data/build/dist/host/cli-adapters/zcode-interactions.d.ts.map +1 -0
  1217. package/data/build/dist/host/cli-adapters/zcode-interactions.js +97 -0
  1218. package/data/build/dist/host/cli-adapters/zcode-interactions.js.map +1 -0
  1219. package/data/build/dist/host/cli-adapters/zcode-provider-config.d.ts +29 -0
  1220. package/data/build/dist/host/cli-adapters/zcode-provider-config.d.ts.map +1 -0
  1221. package/data/build/dist/host/cli-adapters/zcode-provider-config.js +147 -0
  1222. package/data/build/dist/host/cli-adapters/zcode-provider-config.js.map +1 -0
  1223. package/data/build/dist/host/cli-adapters/zcode-subscription.d.ts +23 -0
  1224. package/data/build/dist/host/cli-adapters/zcode-subscription.d.ts.map +1 -0
  1225. package/data/build/dist/host/cli-adapters/zcode-subscription.js +187 -0
  1226. package/data/build/dist/host/cli-adapters/zcode-subscription.js.map +1 -0
  1227. package/data/build/dist/host/cli-adapters/zcode-telemetry.d.ts +17 -0
  1228. package/data/build/dist/host/cli-adapters/zcode-telemetry.d.ts.map +1 -0
  1229. package/data/build/dist/host/cli-adapters/zcode-telemetry.js +124 -0
  1230. package/data/build/dist/host/cli-adapters/zcode-telemetry.js.map +1 -0
  1231. package/data/build/dist/host/cli-adapters/zcode-update.d.ts +8 -0
  1232. package/data/build/dist/host/cli-adapters/zcode-update.d.ts.map +1 -0
  1233. package/data/build/dist/host/cli-adapters/zcode-update.js +149 -0
  1234. package/data/build/dist/host/cli-adapters/zcode-update.js.map +1 -0
  1235. package/data/build/dist/host/cli-bridge/bridge-holder.d.ts +46 -0
  1236. package/data/build/dist/host/cli-bridge/bridge-holder.d.ts.map +1 -0
  1237. package/data/build/dist/host/cli-bridge/bridge-holder.js +98 -0
  1238. package/data/build/dist/host/cli-bridge/bridge-holder.js.map +1 -0
  1239. package/data/build/dist/host/cli-bridge/bridge-server.d.ts +56 -0
  1240. package/data/build/dist/host/cli-bridge/bridge-server.d.ts.map +1 -0
  1241. package/data/build/dist/host/cli-bridge/bridge-server.js +201 -0
  1242. package/data/build/dist/host/cli-bridge/bridge-server.js.map +1 -0
  1243. package/data/build/dist/host/cli-bridge/command-code-mod.d.ts +52 -0
  1244. package/data/build/dist/host/cli-bridge/command-code-mod.d.ts.map +1 -0
  1245. package/data/build/dist/host/cli-bridge/command-code-mod.js +335 -0
  1246. package/data/build/dist/host/cli-bridge/command-code-mod.js.map +1 -0
  1247. package/data/build/dist/host/cli-bridge/dispatch.d.ts +19 -0
  1248. package/data/build/dist/host/cli-bridge/dispatch.d.ts.map +1 -0
  1249. package/data/build/dist/host/cli-bridge/dispatch.js +199 -0
  1250. package/data/build/dist/host/cli-bridge/dispatch.js.map +1 -0
  1251. package/data/build/dist/host/cli-bridge/fetch-dispatch.d.ts +34 -0
  1252. package/data/build/dist/host/cli-bridge/fetch-dispatch.d.ts.map +1 -0
  1253. package/data/build/dist/host/cli-bridge/fetch-dispatch.js +147 -0
  1254. package/data/build/dist/host/cli-bridge/fetch-dispatch.js.map +1 -0
  1255. package/data/build/dist/host/cli-bridge/injections.d.ts +119 -0
  1256. package/data/build/dist/host/cli-bridge/injections.d.ts.map +1 -0
  1257. package/data/build/dist/host/cli-bridge/injections.js +491 -0
  1258. package/data/build/dist/host/cli-bridge/injections.js.map +1 -0
  1259. package/data/build/dist/host/cli-bridge/mcp-stdio-entry.d.ts +8 -0
  1260. package/data/build/dist/host/cli-bridge/mcp-stdio-entry.d.ts.map +1 -0
  1261. package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js +344 -0
  1262. package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js.map +1 -0
  1263. package/data/build/dist/host/cli-bridge/pi-extension-entry.d.ts +3 -0
  1264. package/data/build/dist/host/cli-bridge/pi-extension-entry.d.ts.map +1 -0
  1265. package/data/build/dist/host/cli-bridge/pi-extension-entry.js +9 -0
  1266. package/data/build/dist/host/cli-bridge/pi-extension-entry.js.map +1 -0
  1267. package/data/build/dist/host/cli-bridge/pi-extension.d.ts +52 -0
  1268. package/data/build/dist/host/cli-bridge/pi-extension.d.ts.map +1 -0
  1269. package/data/build/dist/host/cli-bridge/pi-extension.js +315 -0
  1270. package/data/build/dist/host/cli-bridge/pi-extension.js.map +1 -0
  1271. package/data/build/dist/host/cli-bridge/search-dispatch.d.ts +28 -0
  1272. package/data/build/dist/host/cli-bridge/search-dispatch.d.ts.map +1 -0
  1273. package/data/build/dist/host/cli-bridge/search-dispatch.js +177 -0
  1274. package/data/build/dist/host/cli-bridge/search-dispatch.js.map +1 -0
  1275. package/data/build/dist/host/cli-bridge/team-adapters.d.ts +11 -0
  1276. package/data/build/dist/host/cli-bridge/team-adapters.d.ts.map +1 -0
  1277. package/data/build/dist/host/cli-bridge/team-adapters.js +23 -0
  1278. package/data/build/dist/host/cli-bridge/team-adapters.js.map +1 -0
  1279. package/data/build/dist/host/cli-bridge/team-dispatch.d.ts +36 -0
  1280. package/data/build/dist/host/cli-bridge/team-dispatch.d.ts.map +1 -0
  1281. package/data/build/dist/host/cli-bridge/team-dispatch.js +243 -0
  1282. package/data/build/dist/host/cli-bridge/team-dispatch.js.map +1 -0
  1283. package/data/build/dist/host/cli-bridge/team-tool.d.ts +3 -0
  1284. package/data/build/dist/host/cli-bridge/team-tool.d.ts.map +1 -0
  1285. package/data/build/dist/host/cli-bridge/team-tool.js +18 -0
  1286. package/data/build/dist/host/cli-bridge/team-tool.js.map +1 -0
  1287. package/data/build/dist/host/cli-bridge/web-diagnostics.d.ts +33 -0
  1288. package/data/build/dist/host/cli-bridge/web-diagnostics.d.ts.map +1 -0
  1289. package/data/build/dist/host/cli-bridge/web-diagnostics.js +174 -0
  1290. package/data/build/dist/host/cli-bridge/web-diagnostics.js.map +1 -0
  1291. package/data/build/dist/host/control-api-client.d.ts +84 -0
  1292. package/data/build/dist/host/control-api-client.d.ts.map +1 -0
  1293. package/data/build/dist/host/control-api-client.js +131 -0
  1294. package/data/build/dist/host/control-api-client.js.map +1 -0
  1295. package/data/build/dist/host/credential-store.d.ts +54 -0
  1296. package/data/build/dist/host/credential-store.d.ts.map +1 -0
  1297. package/data/build/dist/host/credential-store.js +124 -0
  1298. package/data/build/dist/host/credential-store.js.map +1 -0
  1299. package/data/build/dist/host/credentials/broker.d.ts +73 -0
  1300. package/data/build/dist/host/credentials/broker.d.ts.map +1 -0
  1301. package/data/build/dist/host/credentials/broker.js +495 -0
  1302. package/data/build/dist/host/credentials/broker.js.map +1 -0
  1303. package/data/build/dist/host/credentials/index.d.ts +4 -0
  1304. package/data/build/dist/host/credentials/index.d.ts.map +1 -0
  1305. package/data/build/dist/host/credentials/index.js +4 -0
  1306. package/data/build/dist/host/credentials/index.js.map +1 -0
  1307. package/data/build/dist/host/credentials/service.d.ts +43 -0
  1308. package/data/build/dist/host/credentials/service.d.ts.map +1 -0
  1309. package/data/build/dist/host/credentials/service.js +432 -0
  1310. package/data/build/dist/host/credentials/service.js.map +1 -0
  1311. package/data/build/dist/host/credentials/store.d.ts +33 -0
  1312. package/data/build/dist/host/credentials/store.d.ts.map +1 -0
  1313. package/data/build/dist/host/credentials/store.js +238 -0
  1314. package/data/build/dist/host/credentials/store.js.map +1 -0
  1315. package/data/build/dist/host/credentials/tool.d.ts +3 -0
  1316. package/data/build/dist/host/credentials/tool.d.ts.map +1 -0
  1317. package/data/build/dist/host/credentials/tool.js +54 -0
  1318. package/data/build/dist/host/credentials/tool.js.map +1 -0
  1319. package/data/build/dist/host/debug.d.ts +79 -0
  1320. package/data/build/dist/host/debug.d.ts.map +1 -0
  1321. package/data/build/dist/host/debug.js +296 -0
  1322. package/data/build/dist/host/debug.js.map +1 -0
  1323. package/data/build/dist/host/dsh-device-runtime.d.ts +45 -0
  1324. package/data/build/dist/host/dsh-device-runtime.d.ts.map +1 -0
  1325. package/data/build/dist/host/dsh-device-runtime.js +155 -0
  1326. package/data/build/dist/host/dsh-device-runtime.js.map +1 -0
  1327. package/data/build/dist/host/dsh-gateway-feature.d.ts +5 -0
  1328. package/data/build/dist/host/dsh-gateway-feature.d.ts.map +1 -0
  1329. package/data/build/dist/host/dsh-gateway-feature.js +78 -0
  1330. package/data/build/dist/host/dsh-gateway-feature.js.map +1 -0
  1331. package/data/build/dist/host/dsh-runtime-version.d.ts +13 -0
  1332. package/data/build/dist/host/dsh-runtime-version.d.ts.map +1 -0
  1333. package/data/build/dist/host/dsh-runtime-version.js +143 -0
  1334. package/data/build/dist/host/dsh-runtime-version.js.map +1 -0
  1335. package/data/build/dist/host/features/auth.d.ts +11 -0
  1336. package/data/build/dist/host/features/auth.d.ts.map +1 -0
  1337. package/data/build/dist/host/features/auth.js +284 -0
  1338. package/data/build/dist/host/features/auth.js.map +1 -0
  1339. package/data/build/dist/host/features/credentials.d.ts +4 -0
  1340. package/data/build/dist/host/features/credentials.d.ts.map +1 -0
  1341. package/data/build/dist/host/features/credentials.js +90 -0
  1342. package/data/build/dist/host/features/credentials.js.map +1 -0
  1343. package/data/build/dist/host/features/debug.d.ts +5 -0
  1344. package/data/build/dist/host/features/debug.d.ts.map +1 -0
  1345. package/data/build/dist/host/features/debug.js +90 -0
  1346. package/data/build/dist/host/features/debug.js.map +1 -0
  1347. package/data/build/dist/host/features/file-management.d.ts +5 -0
  1348. package/data/build/dist/host/features/file-management.d.ts.map +1 -0
  1349. package/data/build/dist/host/features/file-management.js +282 -0
  1350. package/data/build/dist/host/features/file-management.js.map +1 -0
  1351. package/data/build/dist/host/features/git-commit-message.d.ts +5 -0
  1352. package/data/build/dist/host/features/git-commit-message.d.ts.map +1 -0
  1353. package/data/build/dist/host/features/git-commit-message.js +66 -0
  1354. package/data/build/dist/host/features/git-commit-message.js.map +1 -0
  1355. package/data/build/dist/host/features/git-management.d.ts +13 -0
  1356. package/data/build/dist/host/features/git-management.d.ts.map +1 -0
  1357. package/data/build/dist/host/features/git-management.js +576 -0
  1358. package/data/build/dist/host/features/git-management.js.map +1 -0
  1359. package/data/build/dist/host/features/host-status.d.ts +45 -0
  1360. package/data/build/dist/host/features/host-status.d.ts.map +1 -0
  1361. package/data/build/dist/host/features/host-status.js +122 -0
  1362. package/data/build/dist/host/features/host-status.js.map +1 -0
  1363. package/data/build/dist/host/features/index.d.ts +24 -0
  1364. package/data/build/dist/host/features/index.d.ts.map +1 -0
  1365. package/data/build/dist/host/features/index.js +46 -0
  1366. package/data/build/dist/host/features/index.js.map +1 -0
  1367. package/data/build/dist/host/features/interaction-translation.d.ts +10 -0
  1368. package/data/build/dist/host/features/interaction-translation.d.ts.map +1 -0
  1369. package/data/build/dist/host/features/interaction-translation.js +222 -0
  1370. package/data/build/dist/host/features/interaction-translation.js.map +1 -0
  1371. package/data/build/dist/host/features/lan-access-dsh.d.ts +8 -0
  1372. package/data/build/dist/host/features/lan-access-dsh.d.ts.map +1 -0
  1373. package/data/build/dist/host/features/lan-access-dsh.js +129 -0
  1374. package/data/build/dist/host/features/lan-access-dsh.js.map +1 -0
  1375. package/data/build/dist/host/features/plugin-update.d.ts +6 -0
  1376. package/data/build/dist/host/features/plugin-update.d.ts.map +1 -0
  1377. package/data/build/dist/host/features/plugin-update.js +51 -0
  1378. package/data/build/dist/host/features/plugin-update.js.map +1 -0
  1379. package/data/build/dist/host/features/session-prompt-translation.d.ts +10 -0
  1380. package/data/build/dist/host/features/session-prompt-translation.d.ts.map +1 -0
  1381. package/data/build/dist/host/features/session-prompt-translation.js +236 -0
  1382. package/data/build/dist/host/features/session-prompt-translation.js.map +1 -0
  1383. package/data/build/dist/host/features/session-title-optimization.d.ts +5 -0
  1384. package/data/build/dist/host/features/session-title-optimization.d.ts.map +1 -0
  1385. package/data/build/dist/host/features/session-title-optimization.js +32 -0
  1386. package/data/build/dist/host/features/session-title-optimization.js.map +1 -0
  1387. package/data/build/dist/host/features/session-translation-protection.d.ts +26 -0
  1388. package/data/build/dist/host/features/session-translation-protection.d.ts.map +1 -0
  1389. package/data/build/dist/host/features/session-translation-protection.js +213 -0
  1390. package/data/build/dist/host/features/session-translation-protection.js.map +1 -0
  1391. package/data/build/dist/host/features/session-translation-recovery.d.ts +21 -0
  1392. package/data/build/dist/host/features/session-translation-recovery.d.ts.map +1 -0
  1393. package/data/build/dist/host/features/session-translation-recovery.js +123 -0
  1394. package/data/build/dist/host/features/session-translation-recovery.js.map +1 -0
  1395. package/data/build/dist/host/features/session-translation-runtime.d.ts +23 -0
  1396. package/data/build/dist/host/features/session-translation-runtime.d.ts.map +1 -0
  1397. package/data/build/dist/host/features/session-translation-runtime.js +62 -0
  1398. package/data/build/dist/host/features/session-translation-runtime.js.map +1 -0
  1399. package/data/build/dist/host/features/session-translation-service.d.ts +66 -0
  1400. package/data/build/dist/host/features/session-translation-service.d.ts.map +1 -0
  1401. package/data/build/dist/host/features/session-translation-service.js +664 -0
  1402. package/data/build/dist/host/features/session-translation-service.js.map +1 -0
  1403. package/data/build/dist/host/features/session-translation.d.ts +5 -0
  1404. package/data/build/dist/host/features/session-translation.d.ts.map +1 -0
  1405. package/data/build/dist/host/features/session-translation.js +45 -0
  1406. package/data/build/dist/host/features/session-translation.js.map +1 -0
  1407. package/data/build/dist/host/features/terminal-process.d.ts +5 -0
  1408. package/data/build/dist/host/features/terminal-process.d.ts.map +1 -0
  1409. package/data/build/dist/host/features/terminal-process.js +110 -0
  1410. package/data/build/dist/host/features/terminal-process.js.map +1 -0
  1411. package/data/build/dist/host/features/terminal-status.d.ts +20 -0
  1412. package/data/build/dist/host/features/terminal-status.d.ts.map +1 -0
  1413. package/data/build/dist/host/features/terminal-status.js +58 -0
  1414. package/data/build/dist/host/features/terminal-status.js.map +1 -0
  1415. package/data/build/dist/host/features/types.d.ts +65 -0
  1416. package/data/build/dist/host/features/types.d.ts.map +1 -0
  1417. package/data/build/dist/host/features/types.js +2 -0
  1418. package/data/build/dist/host/features/types.js.map +1 -0
  1419. package/data/build/dist/host/host-config.d.ts +17 -0
  1420. package/data/build/dist/host/host-config.d.ts.map +1 -0
  1421. package/data/build/dist/host/host-config.js +13 -0
  1422. package/data/build/dist/host/host-config.js.map +1 -0
  1423. package/data/build/dist/host/host-event-bridge.d.ts +11 -0
  1424. package/data/build/dist/host/host-event-bridge.d.ts.map +1 -0
  1425. package/data/build/dist/host/host-event-bridge.js +16 -0
  1426. package/data/build/dist/host/host-event-bridge.js.map +1 -0
  1427. package/data/build/dist/host/html-workspace-files.d.ts +3 -0
  1428. package/data/build/dist/host/html-workspace-files.d.ts.map +1 -0
  1429. package/data/build/dist/host/html-workspace-files.js +135 -0
  1430. package/data/build/dist/host/html-workspace-files.js.map +1 -0
  1431. package/data/build/dist/host/image-artifact-store.d.ts +21 -0
  1432. package/data/build/dist/host/image-artifact-store.d.ts.map +1 -0
  1433. package/data/build/dist/host/image-artifact-store.js +136 -0
  1434. package/data/build/dist/host/image-artifact-store.js.map +1 -0
  1435. package/data/build/dist/host/index-injection.d.ts +35 -0
  1436. package/data/build/dist/host/index-injection.d.ts.map +1 -0
  1437. package/data/build/dist/host/index-injection.js +78 -0
  1438. package/data/build/dist/host/index-injection.js.map +1 -0
  1439. package/data/build/dist/host/index.d.ts +64 -0
  1440. package/data/build/dist/host/index.d.ts.map +1 -0
  1441. package/data/build/dist/host/index.js +446 -0
  1442. package/data/build/dist/host/index.js.map +1 -0
  1443. package/data/build/dist/host/lan-access-dsh.d.ts +192 -0
  1444. package/data/build/dist/host/lan-access-dsh.d.ts.map +1 -0
  1445. package/data/build/dist/host/lan-access-dsh.js +1322 -0
  1446. package/data/build/dist/host/lan-access-dsh.js.map +1 -0
  1447. package/data/build/dist/host/login-attempt-guard.d.ts +55 -0
  1448. package/data/build/dist/host/login-attempt-guard.d.ts.map +1 -0
  1449. package/data/build/dist/host/login-attempt-guard.js +201 -0
  1450. package/data/build/dist/host/login-attempt-guard.js.map +1 -0
  1451. package/data/build/dist/host/modules/pwa/index.d.ts +7 -0
  1452. package/data/build/dist/host/modules/pwa/index.d.ts.map +1 -0
  1453. package/data/build/dist/host/modules/pwa/index.js +7 -0
  1454. package/data/build/dist/host/modules/pwa/index.js.map +1 -0
  1455. package/data/build/dist/host/modules/pwa/pwa-assets.d.ts +50 -0
  1456. package/data/build/dist/host/modules/pwa/pwa-assets.d.ts.map +1 -0
  1457. package/data/build/dist/host/modules/pwa/pwa-assets.js +182 -0
  1458. package/data/build/dist/host/modules/pwa/pwa-assets.js.map +1 -0
  1459. package/data/build/dist/host/modules/pwa/pwa-client-script.d.ts +10 -0
  1460. package/data/build/dist/host/modules/pwa/pwa-client-script.d.ts.map +1 -0
  1461. package/data/build/dist/host/modules/pwa/pwa-client-script.js +40 -0
  1462. package/data/build/dist/host/modules/pwa/pwa-client-script.js.map +1 -0
  1463. package/data/build/dist/host/modules/pwa/pwa-icons.d.ts +10 -0
  1464. package/data/build/dist/host/modules/pwa/pwa-icons.d.ts.map +1 -0
  1465. package/data/build/dist/host/modules/pwa/pwa-icons.js +185 -0
  1466. package/data/build/dist/host/modules/pwa/pwa-icons.js.map +1 -0
  1467. package/data/build/dist/host/modules/pwa/pwa-push.d.ts +74 -0
  1468. package/data/build/dist/host/modules/pwa/pwa-push.d.ts.map +1 -0
  1469. package/data/build/dist/host/modules/pwa/pwa-push.js +288 -0
  1470. package/data/build/dist/host/modules/pwa/pwa-push.js.map +1 -0
  1471. package/data/build/dist/host/modules/pwa/pwa-session-notifications.d.ts +17 -0
  1472. package/data/build/dist/host/modules/pwa/pwa-session-notifications.d.ts.map +1 -0
  1473. package/data/build/dist/host/modules/pwa/pwa-session-notifications.js +83 -0
  1474. package/data/build/dist/host/modules/pwa/pwa-session-notifications.js.map +1 -0
  1475. package/data/build/dist/host/modules/pwa/pwa-viewport.d.ts +12 -0
  1476. package/data/build/dist/host/modules/pwa/pwa-viewport.d.ts.map +1 -0
  1477. package/data/build/dist/host/modules/pwa/pwa-viewport.js +47 -0
  1478. package/data/build/dist/host/modules/pwa/pwa-viewport.js.map +1 -0
  1479. package/data/build/dist/host/native-session-bridge.d.ts +215 -0
  1480. package/data/build/dist/host/native-session-bridge.d.ts.map +1 -0
  1481. package/data/build/dist/host/native-session-bridge.js +993 -0
  1482. package/data/build/dist/host/native-session-bridge.js.map +1 -0
  1483. package/data/build/dist/host/provider-icon-assets.d.ts +5 -0
  1484. package/data/build/dist/host/provider-icon-assets.d.ts.map +1 -0
  1485. package/data/build/dist/host/provider-icon-assets.js +61 -0
  1486. package/data/build/dist/host/provider-icon-assets.js.map +1 -0
  1487. package/data/build/dist/host/relay-tunnel-runtime.d.ts +130 -0
  1488. package/data/build/dist/host/relay-tunnel-runtime.d.ts.map +1 -0
  1489. package/data/build/dist/host/relay-tunnel-runtime.js +422 -0
  1490. package/data/build/dist/host/relay-tunnel-runtime.js.map +1 -0
  1491. package/data/build/dist/host/remote-web-runtime.d.ts +78 -0
  1492. package/data/build/dist/host/remote-web-runtime.d.ts.map +1 -0
  1493. package/data/build/dist/host/remote-web-runtime.js +607 -0
  1494. package/data/build/dist/host/remote-web-runtime.js.map +1 -0
  1495. package/data/build/dist/host/rpc-table.d.ts +32 -0
  1496. package/data/build/dist/host/rpc-table.d.ts.map +1 -0
  1497. package/data/build/dist/host/rpc-table.js +47 -0
  1498. package/data/build/dist/host/rpc-table.js.map +1 -0
  1499. package/data/build/dist/host/rpc.d.ts +43 -0
  1500. package/data/build/dist/host/rpc.d.ts.map +1 -0
  1501. package/data/build/dist/host/rpc.js +422 -0
  1502. package/data/build/dist/host/rpc.js.map +1 -0
  1503. package/data/build/dist/host/session-changes.d.ts +13 -0
  1504. package/data/build/dist/host/session-changes.d.ts.map +1 -0
  1505. package/data/build/dist/host/session-changes.js +374 -0
  1506. package/data/build/dist/host/session-changes.js.map +1 -0
  1507. package/data/build/dist/host/session-handle-eviction.d.ts +33 -0
  1508. package/data/build/dist/host/session-handle-eviction.d.ts.map +1 -0
  1509. package/data/build/dist/host/session-handle-eviction.js +429 -0
  1510. package/data/build/dist/host/session-handle-eviction.js.map +1 -0
  1511. package/data/build/dist/host/session-migration-repair.d.ts +23 -0
  1512. package/data/build/dist/host/session-migration-repair.d.ts.map +1 -0
  1513. package/data/build/dist/host/session-migration-repair.js +576 -0
  1514. package/data/build/dist/host/session-migration-repair.js.map +1 -0
  1515. package/data/build/dist/host/settings.d.ts +39 -0
  1516. package/data/build/dist/host/settings.d.ts.map +1 -0
  1517. package/data/build/dist/host/settings.js +352 -0
  1518. package/data/build/dist/host/settings.js.map +1 -0
  1519. package/data/build/dist/host/stage0-dev-hmr.d.ts +6 -0
  1520. package/data/build/dist/host/stage0-dev-hmr.d.ts.map +1 -0
  1521. package/data/build/dist/host/stage0-dev-hmr.js +20 -0
  1522. package/data/build/dist/host/stage0-dev-hmr.js.map +1 -0
  1523. package/data/build/dist/host/tar-archive.d.ts +8 -0
  1524. package/data/build/dist/host/tar-archive.d.ts.map +1 -0
  1525. package/data/build/dist/host/tar-archive.js +17 -0
  1526. package/data/build/dist/host/tar-archive.js.map +1 -0
  1527. package/data/build/dist/host/terminal/attachment-registry.d.ts +17 -0
  1528. package/data/build/dist/host/terminal/attachment-registry.d.ts.map +1 -0
  1529. package/data/build/dist/host/terminal/attachment-registry.js +49 -0
  1530. package/data/build/dist/host/terminal/attachment-registry.js.map +1 -0
  1531. package/data/build/dist/host/terminal/backends/conpty-backend.d.ts +39 -0
  1532. package/data/build/dist/host/terminal/backends/conpty-backend.d.ts.map +1 -0
  1533. package/data/build/dist/host/terminal/backends/conpty-backend.js +160 -0
  1534. package/data/build/dist/host/terminal/backends/conpty-backend.js.map +1 -0
  1535. package/data/build/dist/host/terminal/backends/local-pty-backend.d.ts +36 -0
  1536. package/data/build/dist/host/terminal/backends/local-pty-backend.d.ts.map +1 -0
  1537. package/data/build/dist/host/terminal/backends/local-pty-backend.js +192 -0
  1538. package/data/build/dist/host/terminal/backends/local-pty-backend.js.map +1 -0
  1539. package/data/build/dist/host/terminal/backends/tmux-backend.d.ts +80 -0
  1540. package/data/build/dist/host/terminal/backends/tmux-backend.d.ts.map +1 -0
  1541. package/data/build/dist/host/terminal/backends/tmux-backend.js +467 -0
  1542. package/data/build/dist/host/terminal/backends/tmux-backend.js.map +1 -0
  1543. package/data/build/dist/host/terminal/broker/conpty-broker-client.d.ts +27 -0
  1544. package/data/build/dist/host/terminal/broker/conpty-broker-client.d.ts.map +1 -0
  1545. package/data/build/dist/host/terminal/broker/conpty-broker-client.js +154 -0
  1546. package/data/build/dist/host/terminal/broker/conpty-broker-client.js.map +1 -0
  1547. package/data/build/dist/host/terminal/broker/conpty-broker-process.d.ts +10 -0
  1548. package/data/build/dist/host/terminal/broker/conpty-broker-process.d.ts.map +1 -0
  1549. package/data/build/dist/host/terminal/broker/conpty-broker-process.js +147 -0
  1550. package/data/build/dist/host/terminal/broker/conpty-broker-process.js.map +1 -0
  1551. package/data/build/dist/host/terminal/broker/conpty-broker-protocol.d.ts +92 -0
  1552. package/data/build/dist/host/terminal/broker/conpty-broker-protocol.d.ts.map +1 -0
  1553. package/data/build/dist/host/terminal/broker/conpty-broker-protocol.js +134 -0
  1554. package/data/build/dist/host/terminal/broker/conpty-broker-protocol.js.map +1 -0
  1555. package/data/build/dist/host/terminal/controller-factory.d.ts +42 -0
  1556. package/data/build/dist/host/terminal/controller-factory.d.ts.map +1 -0
  1557. package/data/build/dist/host/terminal/controller-factory.js +104 -0
  1558. package/data/build/dist/host/terminal/controller-factory.js.map +1 -0
  1559. package/data/build/dist/host/terminal/index.d.ts +17 -0
  1560. package/data/build/dist/host/terminal/index.d.ts.map +1 -0
  1561. package/data/build/dist/host/terminal/index.js +17 -0
  1562. package/data/build/dist/host/terminal/index.js.map +1 -0
  1563. package/data/build/dist/host/terminal/runtime-adapter.d.ts +109 -0
  1564. package/data/build/dist/host/terminal/runtime-adapter.d.ts.map +1 -0
  1565. package/data/build/dist/host/terminal/runtime-adapter.js +26 -0
  1566. package/data/build/dist/host/terminal/runtime-adapter.js.map +1 -0
  1567. package/data/build/dist/host/terminal/runtime-manager.d.ts +45 -0
  1568. package/data/build/dist/host/terminal/runtime-manager.d.ts.map +1 -0
  1569. package/data/build/dist/host/terminal/runtime-manager.js +270 -0
  1570. package/data/build/dist/host/terminal/runtime-manager.js.map +1 -0
  1571. package/data/build/dist/host/terminal/shell-detection.d.ts +23 -0
  1572. package/data/build/dist/host/terminal/shell-detection.d.ts.map +1 -0
  1573. package/data/build/dist/host/terminal/shell-detection.js +105 -0
  1574. package/data/build/dist/host/terminal/shell-detection.js.map +1 -0
  1575. package/data/build/dist/host/terminal/startup.d.ts +38 -0
  1576. package/data/build/dist/host/terminal/startup.d.ts.map +1 -0
  1577. package/data/build/dist/host/terminal/startup.js +102 -0
  1578. package/data/build/dist/host/terminal/startup.js.map +1 -0
  1579. package/data/build/dist/host/terminal/terminal-controller.d.ts +93 -0
  1580. package/data/build/dist/host/terminal/terminal-controller.d.ts.map +1 -0
  1581. package/data/build/dist/host/terminal/terminal-controller.js +467 -0
  1582. package/data/build/dist/host/terminal/terminal-controller.js.map +1 -0
  1583. package/data/build/dist/host/terminal/terminal-process-service.d.ts +52 -0
  1584. package/data/build/dist/host/terminal/terminal-process-service.d.ts.map +1 -0
  1585. package/data/build/dist/host/terminal/terminal-process-service.js +308 -0
  1586. package/data/build/dist/host/terminal/terminal-process-service.js.map +1 -0
  1587. package/data/build/dist/host/terminal/terminal-process-store.d.ts +45 -0
  1588. package/data/build/dist/host/terminal/terminal-process-store.d.ts.map +1 -0
  1589. package/data/build/dist/host/terminal/terminal-process-store.js +183 -0
  1590. package/data/build/dist/host/terminal/terminal-process-store.js.map +1 -0
  1591. package/data/build/dist/host/terminal/terminal-service.d.ts +150 -0
  1592. package/data/build/dist/host/terminal/terminal-service.d.ts.map +1 -0
  1593. package/data/build/dist/host/terminal/terminal-service.js +1171 -0
  1594. package/data/build/dist/host/terminal/terminal-service.js.map +1 -0
  1595. package/data/build/dist/host/terminal/terminal-store.d.ts +49 -0
  1596. package/data/build/dist/host/terminal/terminal-store.d.ts.map +1 -0
  1597. package/data/build/dist/host/terminal/terminal-store.js +242 -0
  1598. package/data/build/dist/host/terminal/terminal-store.js.map +1 -0
  1599. package/data/build/dist/host/update/application-result.d.ts +3 -0
  1600. package/data/build/dist/host/update/application-result.d.ts.map +1 -0
  1601. package/data/build/dist/host/update/application-result.js +13 -0
  1602. package/data/build/dist/host/update/application-result.js.map +1 -0
  1603. package/data/build/dist/host/update/http.d.ts +7 -0
  1604. package/data/build/dist/host/update/http.d.ts.map +1 -0
  1605. package/data/build/dist/host/update/http.js +55 -0
  1606. package/data/build/dist/host/update/http.js.map +1 -0
  1607. package/data/build/dist/host/update/metadata.d.ts +14 -0
  1608. package/data/build/dist/host/update/metadata.d.ts.map +1 -0
  1609. package/data/build/dist/host/update/metadata.js +75 -0
  1610. package/data/build/dist/host/update/metadata.js.map +1 -0
  1611. package/data/build/dist/host/update/release-notes.d.ts +6 -0
  1612. package/data/build/dist/host/update/release-notes.d.ts.map +1 -0
  1613. package/data/build/dist/host/update/release-notes.js +52 -0
  1614. package/data/build/dist/host/update/release-notes.js.map +1 -0
  1615. package/data/build/dist/host/update/service.d.ts +25 -0
  1616. package/data/build/dist/host/update/service.d.ts.map +1 -0
  1617. package/data/build/dist/host/update/service.js +209 -0
  1618. package/data/build/dist/host/update/service.js.map +1 -0
  1619. package/data/build/dist/host/workspace-file-mutations.d.ts +2 -0
  1620. package/data/build/dist/host/workspace-file-mutations.d.ts.map +1 -0
  1621. package/data/build/dist/host/workspace-file-mutations.js +15 -0
  1622. package/data/build/dist/host/workspace-file-mutations.js.map +1 -0
  1623. package/data/build/dist/host/workspace-root.d.ts +13 -0
  1624. package/data/build/dist/host/workspace-root.d.ts.map +1 -0
  1625. package/data/build/dist/host/workspace-root.js +98 -0
  1626. package/data/build/dist/host/workspace-root.js.map +1 -0
  1627. package/data/build/dist/index.d.ts +40 -0
  1628. package/data/build/dist/index.d.ts.map +1 -0
  1629. package/data/build/dist/index.js +31 -0
  1630. package/data/build/dist/index.js.map +1 -0
  1631. package/data/build/dist/shared/attachment-prompts.d.ts +11 -0
  1632. package/data/build/dist/shared/attachment-prompts.d.ts.map +1 -0
  1633. package/data/build/dist/shared/attachment-prompts.js +17 -0
  1634. package/data/build/dist/shared/attachment-prompts.js.map +1 -0
  1635. package/data/build/dist/shared/attachments.d.ts +18 -0
  1636. package/data/build/dist/shared/attachments.d.ts.map +1 -0
  1637. package/data/build/dist/shared/attachments.js +22 -0
  1638. package/data/build/dist/shared/attachments.js.map +1 -0
  1639. package/data/build/dist/shared/cli-provider-route.d.ts +7 -0
  1640. package/data/build/dist/shared/cli-provider-route.d.ts.map +1 -0
  1641. package/data/build/dist/shared/cli-provider-route.js +13 -0
  1642. package/data/build/dist/shared/cli-provider-route.js.map +1 -0
  1643. package/data/build/dist/shared/codex-performance.d.ts +3 -0
  1644. package/data/build/dist/shared/codex-performance.d.ts.map +1 -0
  1645. package/data/build/dist/shared/codex-performance.js +2 -0
  1646. package/data/build/dist/shared/codex-performance.js.map +1 -0
  1647. package/data/build/dist/shared/contracts/agent-team.d.ts +14 -0
  1648. package/data/build/dist/shared/contracts/agent-team.d.ts.map +1 -0
  1649. package/data/build/dist/shared/contracts/agent-team.js +51 -0
  1650. package/data/build/dist/shared/contracts/agent-team.js.map +1 -0
  1651. package/data/build/dist/shared/contracts/auth.d.ts +122 -0
  1652. package/data/build/dist/shared/contracts/auth.d.ts.map +1 -0
  1653. package/data/build/dist/shared/contracts/auth.js +8 -0
  1654. package/data/build/dist/shared/contracts/auth.js.map +1 -0
  1655. package/data/build/dist/shared/contracts/cli-adapter.d.ts +484 -0
  1656. package/data/build/dist/shared/contracts/cli-adapter.d.ts.map +1 -0
  1657. package/data/build/dist/shared/contracts/cli-adapter.js +2 -0
  1658. package/data/build/dist/shared/contracts/cli-adapter.js.map +1 -0
  1659. package/data/build/dist/shared/contracts/cli-management.d.ts +29 -0
  1660. package/data/build/dist/shared/contracts/cli-management.d.ts.map +1 -0
  1661. package/data/build/dist/shared/contracts/cli-management.js +2 -0
  1662. package/data/build/dist/shared/contracts/cli-management.js.map +1 -0
  1663. package/data/build/dist/shared/contracts/command-code.d.ts +5 -0
  1664. package/data/build/dist/shared/contracts/command-code.d.ts.map +1 -0
  1665. package/data/build/dist/shared/contracts/command-code.js +2 -0
  1666. package/data/build/dist/shared/contracts/command-code.js.map +1 -0
  1667. package/data/build/dist/shared/contracts/config.d.ts +363 -0
  1668. package/data/build/dist/shared/contracts/config.d.ts.map +1 -0
  1669. package/data/build/dist/shared/contracts/config.js +302 -0
  1670. package/data/build/dist/shared/contracts/config.js.map +1 -0
  1671. package/data/build/dist/shared/contracts/credentials.d.ts +73 -0
  1672. package/data/build/dist/shared/contracts/credentials.d.ts.map +1 -0
  1673. package/data/build/dist/shared/contracts/credentials.js +38 -0
  1674. package/data/build/dist/shared/contracts/credentials.js.map +1 -0
  1675. package/data/build/dist/shared/contracts/debug-config.d.ts +28 -0
  1676. package/data/build/dist/shared/contracts/debug-config.d.ts.map +1 -0
  1677. package/data/build/dist/shared/contracts/debug-config.js +78 -0
  1678. package/data/build/dist/shared/contracts/debug-config.js.map +1 -0
  1679. package/data/build/dist/shared/contracts/debug.d.ts +75 -0
  1680. package/data/build/dist/shared/contracts/debug.d.ts.map +1 -0
  1681. package/data/build/dist/shared/contracts/debug.js +121 -0
  1682. package/data/build/dist/shared/contracts/debug.js.map +1 -0
  1683. package/data/build/dist/shared/contracts/dsh-device.d.ts +86 -0
  1684. package/data/build/dist/shared/contracts/dsh-device.d.ts.map +1 -0
  1685. package/data/build/dist/shared/contracts/dsh-device.js +2 -0
  1686. package/data/build/dist/shared/contracts/dsh-device.js.map +1 -0
  1687. package/data/build/dist/shared/contracts/errors.d.ts +30 -0
  1688. package/data/build/dist/shared/contracts/errors.d.ts.map +1 -0
  1689. package/data/build/dist/shared/contracts/errors.js +38 -0
  1690. package/data/build/dist/shared/contracts/errors.js.map +1 -0
  1691. package/data/build/dist/shared/contracts/feature.d.ts +93 -0
  1692. package/data/build/dist/shared/contracts/feature.d.ts.map +1 -0
  1693. package/data/build/dist/shared/contracts/feature.js +2 -0
  1694. package/data/build/dist/shared/contracts/feature.js.map +1 -0
  1695. package/data/build/dist/shared/contracts/file-management.d.ts +6 -0
  1696. package/data/build/dist/shared/contracts/file-management.d.ts.map +1 -0
  1697. package/data/build/dist/shared/contracts/file-management.js +3 -0
  1698. package/data/build/dist/shared/contracts/file-management.js.map +1 -0
  1699. package/data/build/dist/shared/contracts/git.d.ts +129 -0
  1700. package/data/build/dist/shared/contracts/git.d.ts.map +1 -0
  1701. package/data/build/dist/shared/contracts/git.js +29 -0
  1702. package/data/build/dist/shared/contracts/git.js.map +1 -0
  1703. package/data/build/dist/shared/contracts/host-status.d.ts +32 -0
  1704. package/data/build/dist/shared/contracts/host-status.d.ts.map +1 -0
  1705. package/data/build/dist/shared/contracts/host-status.js +2 -0
  1706. package/data/build/dist/shared/contracts/host-status.js.map +1 -0
  1707. package/data/build/dist/shared/contracts/interaction-presentation.d.ts +32 -0
  1708. package/data/build/dist/shared/contracts/interaction-presentation.d.ts.map +1 -0
  1709. package/data/build/dist/shared/contracts/interaction-presentation.js +2 -0
  1710. package/data/build/dist/shared/contracts/interaction-presentation.js.map +1 -0
  1711. package/data/build/dist/shared/contracts/interaction-translation.d.ts +55 -0
  1712. package/data/build/dist/shared/contracts/interaction-translation.d.ts.map +1 -0
  1713. package/data/build/dist/shared/contracts/interaction-translation.js +48 -0
  1714. package/data/build/dist/shared/contracts/interaction-translation.js.map +1 -0
  1715. package/data/build/dist/shared/contracts/lan-access-dsh.d.ts +53 -0
  1716. package/data/build/dist/shared/contracts/lan-access-dsh.d.ts.map +1 -0
  1717. package/data/build/dist/shared/contracts/lan-access-dsh.js +2 -0
  1718. package/data/build/dist/shared/contracts/lan-access-dsh.js.map +1 -0
  1719. package/data/build/dist/shared/contracts/llm-chat.d.ts +18 -0
  1720. package/data/build/dist/shared/contracts/llm-chat.d.ts.map +1 -0
  1721. package/data/build/dist/shared/contracts/llm-chat.js +2 -0
  1722. package/data/build/dist/shared/contracts/llm-chat.js.map +1 -0
  1723. package/data/build/dist/shared/contracts/plugin-update.d.ts +93 -0
  1724. package/data/build/dist/shared/contracts/plugin-update.d.ts.map +1 -0
  1725. package/data/build/dist/shared/contracts/plugin-update.js +128 -0
  1726. package/data/build/dist/shared/contracts/plugin-update.js.map +1 -0
  1727. package/data/build/dist/shared/contracts/session-translation.d.ts +135 -0
  1728. package/data/build/dist/shared/contracts/session-translation.d.ts.map +1 -0
  1729. package/data/build/dist/shared/contracts/session-translation.js +195 -0
  1730. package/data/build/dist/shared/contracts/session-translation.js.map +1 -0
  1731. package/data/build/dist/shared/contracts/signaling.d.ts +67 -0
  1732. package/data/build/dist/shared/contracts/signaling.d.ts.map +1 -0
  1733. package/data/build/dist/shared/contracts/signaling.js +2 -0
  1734. package/data/build/dist/shared/contracts/signaling.js.map +1 -0
  1735. package/data/build/dist/shared/contracts/subscription.d.ts +206 -0
  1736. package/data/build/dist/shared/contracts/subscription.d.ts.map +1 -0
  1737. package/data/build/dist/shared/contracts/subscription.js +15 -0
  1738. package/data/build/dist/shared/contracts/subscription.js.map +1 -0
  1739. package/data/build/dist/shared/contracts/terminal-process.d.ts +65 -0
  1740. package/data/build/dist/shared/contracts/terminal-process.d.ts.map +1 -0
  1741. package/data/build/dist/shared/contracts/terminal-process.js +2 -0
  1742. package/data/build/dist/shared/contracts/terminal-process.js.map +1 -0
  1743. package/data/build/dist/shared/contracts/terminal-share.d.ts +27 -0
  1744. package/data/build/dist/shared/contracts/terminal-share.d.ts.map +1 -0
  1745. package/data/build/dist/shared/contracts/terminal-share.js +2 -0
  1746. package/data/build/dist/shared/contracts/terminal-share.js.map +1 -0
  1747. package/data/build/dist/shared/contracts/terminal.d.ts +141 -0
  1748. package/data/build/dist/shared/contracts/terminal.d.ts.map +1 -0
  1749. package/data/build/dist/shared/contracts/terminal.js +2 -0
  1750. package/data/build/dist/shared/contracts/terminal.js.map +1 -0
  1751. package/data/build/dist/shared/contracts/transport.d.ts +45 -0
  1752. package/data/build/dist/shared/contracts/transport.d.ts.map +1 -0
  1753. package/data/build/dist/shared/contracts/transport.js +3 -0
  1754. package/data/build/dist/shared/contracts/transport.js.map +1 -0
  1755. package/data/build/dist/shared/contracts/version.d.ts +25 -0
  1756. package/data/build/dist/shared/contracts/version.d.ts.map +1 -0
  1757. package/data/build/dist/shared/contracts/version.js +89 -0
  1758. package/data/build/dist/shared/contracts/version.js.map +1 -0
  1759. package/data/build/dist/shared/credential-carrier.d.ts +19 -0
  1760. package/data/build/dist/shared/credential-carrier.d.ts.map +1 -0
  1761. package/data/build/dist/shared/credential-carrier.js +90 -0
  1762. package/data/build/dist/shared/credential-carrier.js.map +1 -0
  1763. package/data/build/dist/shared/debug.d.ts +22 -0
  1764. package/data/build/dist/shared/debug.d.ts.map +1 -0
  1765. package/data/build/dist/shared/debug.js +89 -0
  1766. package/data/build/dist/shared/debug.js.map +1 -0
  1767. package/data/build/dist/shared/delegation-carrier.d.ts +24 -0
  1768. package/data/build/dist/shared/delegation-carrier.d.ts.map +1 -0
  1769. package/data/build/dist/shared/delegation-carrier.js +111 -0
  1770. package/data/build/dist/shared/delegation-carrier.js.map +1 -0
  1771. package/data/build/dist/shared/index.d.ts +29 -0
  1772. package/data/build/dist/shared/index.d.ts.map +1 -0
  1773. package/data/build/dist/shared/index.js +13 -0
  1774. package/data/build/dist/shared/index.js.map +1 -0
  1775. package/data/build/dist/shared/native-approval-modes.d.ts +7 -0
  1776. package/data/build/dist/shared/native-approval-modes.d.ts.map +1 -0
  1777. package/data/build/dist/shared/native-approval-modes.js +38 -0
  1778. package/data/build/dist/shared/native-approval-modes.js.map +1 -0
  1779. package/data/build/dist/shared/provider-icon-resources.d.ts +4 -0
  1780. package/data/build/dist/shared/provider-icon-resources.d.ts.map +1 -0
  1781. package/data/build/dist/shared/provider-icon-resources.js +25 -0
  1782. package/data/build/dist/shared/provider-icon-resources.js.map +1 -0
  1783. package/data/build/dist/shared/request-performance.d.ts +20 -0
  1784. package/data/build/dist/shared/request-performance.d.ts.map +1 -0
  1785. package/data/build/dist/shared/request-performance.js +6 -0
  1786. package/data/build/dist/shared/request-performance.js.map +1 -0
  1787. package/data/build/dist/shared/runtime-environment.d.ts +5 -0
  1788. package/data/build/dist/shared/runtime-environment.d.ts.map +1 -0
  1789. package/data/build/dist/shared/runtime-environment.js +7 -0
  1790. package/data/build/dist/shared/runtime-environment.js.map +1 -0
  1791. package/data/build/dist/shared/session-file-location.d.ts +11 -0
  1792. package/data/build/dist/shared/session-file-location.d.ts.map +1 -0
  1793. package/data/build/dist/shared/session-file-location.js +20 -0
  1794. package/data/build/dist/shared/session-file-location.js.map +1 -0
  1795. package/data/build/dist/shared/session-reference.d.ts +9 -0
  1796. package/data/build/dist/shared/session-reference.d.ts.map +1 -0
  1797. package/data/build/dist/shared/session-reference.js +27 -0
  1798. package/data/build/dist/shared/session-reference.js.map +1 -0
  1799. package/data/build/dist/shared/session-title.d.ts +12 -0
  1800. package/data/build/dist/shared/session-title.d.ts.map +1 -0
  1801. package/data/build/dist/shared/session-title.js +71 -0
  1802. package/data/build/dist/shared/session-title.js.map +1 -0
  1803. package/data/build/dist/shared/terminal-input.d.ts +8 -0
  1804. package/data/build/dist/shared/terminal-input.d.ts.map +1 -0
  1805. package/data/build/dist/shared/terminal-input.js +10 -0
  1806. package/data/build/dist/shared/terminal-input.js.map +1 -0
  1807. package/data/build/dist/shared/translation-effect.d.ts +8 -0
  1808. package/data/build/dist/shared/translation-effect.d.ts.map +1 -0
  1809. package/data/build/dist/shared/translation-effect.js +24 -0
  1810. package/data/build/dist/shared/translation-effect.js.map +1 -0
  1811. package/data/build/dist/shared/translation-indicator.d.ts +26 -0
  1812. package/data/build/dist/shared/translation-indicator.d.ts.map +1 -0
  1813. package/data/build/dist/shared/translation-indicator.js +29 -0
  1814. package/data/build/dist/shared/translation-indicator.js.map +1 -0
  1815. package/data/build/dist/transport/carrier.d.ts +48 -0
  1816. package/data/build/dist/transport/carrier.d.ts.map +1 -0
  1817. package/data/build/dist/transport/carrier.js +319 -0
  1818. package/data/build/dist/transport/carrier.js.map +1 -0
  1819. package/data/build/dist/transport/debug.d.ts +39 -0
  1820. package/data/build/dist/transport/debug.d.ts.map +1 -0
  1821. package/data/build/dist/transport/debug.js +97 -0
  1822. package/data/build/dist/transport/debug.js.map +1 -0
  1823. package/data/build/dist/transport/dsh-envelope.d.ts +41 -0
  1824. package/data/build/dist/transport/dsh-envelope.d.ts.map +1 -0
  1825. package/data/build/dist/transport/dsh-envelope.js +107 -0
  1826. package/data/build/dist/transport/dsh-envelope.js.map +1 -0
  1827. package/data/build/dist/transport/dsh-gateway.d.ts +64 -0
  1828. package/data/build/dist/transport/dsh-gateway.d.ts.map +1 -0
  1829. package/data/build/dist/transport/dsh-gateway.js +254 -0
  1830. package/data/build/dist/transport/dsh-gateway.js.map +1 -0
  1831. package/data/build/dist/transport/dsh-session.d.ts +72 -0
  1832. package/data/build/dist/transport/dsh-session.d.ts.map +1 -0
  1833. package/data/build/dist/transport/dsh-session.js +291 -0
  1834. package/data/build/dist/transport/dsh-session.js.map +1 -0
  1835. package/data/build/dist/transport/dsh-transport.d.ts +59 -0
  1836. package/data/build/dist/transport/dsh-transport.d.ts.map +1 -0
  1837. package/data/build/dist/transport/dsh-transport.js +136 -0
  1838. package/data/build/dist/transport/dsh-transport.js.map +1 -0
  1839. package/data/build/dist/transport/frame.d.ts +132 -0
  1840. package/data/build/dist/transport/frame.d.ts.map +1 -0
  1841. package/data/build/dist/transport/frame.js +168 -0
  1842. package/data/build/dist/transport/frame.js.map +1 -0
  1843. package/data/build/dist/transport/index.d.ts +11 -0
  1844. package/data/build/dist/transport/index.d.ts.map +1 -0
  1845. package/data/build/dist/transport/index.js +11 -0
  1846. package/data/build/dist/transport/index.js.map +1 -0
  1847. package/data/build/dist/transport/multiplexer.d.ts +63 -0
  1848. package/data/build/dist/transport/multiplexer.d.ts.map +1 -0
  1849. package/data/build/dist/transport/multiplexer.js +323 -0
  1850. package/data/build/dist/transport/multiplexer.js.map +1 -0
  1851. package/data/build/dist/transport/webrtc-client.d.ts +75 -0
  1852. package/data/build/dist/transport/webrtc-client.d.ts.map +1 -0
  1853. package/data/build/dist/transport/webrtc-client.js +382 -0
  1854. package/data/build/dist/transport/webrtc-client.js.map +1 -0
  1855. package/data/build/dist/transport/webrtc-host.d.ts +60 -0
  1856. package/data/build/dist/transport/webrtc-host.d.ts.map +1 -0
  1857. package/data/build/dist/transport/webrtc-host.js +259 -0
  1858. package/data/build/dist/transport/webrtc-host.js.map +1 -0
  1859. package/data/build/dist/typert.host.d.ts +25 -0
  1860. package/data/build/dist/typert.host.d.ts.map +1 -0
  1861. package/data/build/dist/typert.host.js +155 -0
  1862. package/data/build/dist/typert.host.js.map +1 -0
  1863. package/data/build/dist/typert.remote-client.d.ts +11 -0
  1864. package/data/build/dist/typert.remote-client.d.ts.map +1 -0
  1865. package/data/build/dist/typert.remote-client.js +7 -0
  1866. package/data/build/dist/typert.remote-client.js.map +1 -0
  1867. package/dsh.bundle.patch +23 -0
  1868. package/package.json +227 -4
  1869. package/profile/README.md +43 -0
  1870. package/profile/cordis.patch.yml +2 -0
  1871. package/profile/package.json +25 -0
  1872. package/profile/scripts/check-dsh-install.mjs +126 -0
  1873. package/profile/version.json +5 -0
  1874. package/scripts/check-dsh-install.mjs +128 -0
  1875. package/version.json +6 -0
@@ -0,0 +1,1412 @@
1
+ import { isNativeApprovalMode } from '../../shared/native-approval-modes.js';
2
+ import { invalidateCommandEnvironment, withCommandSignal } from './process-utils.js';
3
+ import { failedDetection } from './binary-detection.js';
4
+ import { AgentDoorRpcError } from '../rpc-table.js';
5
+ import { debugInfo } from '../../shared/debug.js';
6
+ import { AgentDoorCliSessionStore } from './session-store.js';
7
+ import { readLegacyImportedAdapterPreferences } from './legacy-session-settings.js';
8
+ import { knownAntigravityContextWindow, knownClaudeContextWindow, knownCodexContextWindow, knownCommandCodeContextWindow, knownOpenCodeContextWindow } from './model-catalog.js';
9
+ import { toCliProviderId } from '../../shared/cli-provider-route.js';
10
+ export class AgentDoorCliAdapterRegistry {
11
+ modelSelectionListeners = new Set();
12
+ drivers = new Map();
13
+ sessions = new Map();
14
+ lastUsages = new Map();
15
+ enabled = new Map();
16
+ providerProbeTtlMs;
17
+ missingConfirmationDelayMs;
18
+ providerProbeTimeoutMs;
19
+ providerProbeConcurrency;
20
+ probes = new Map();
21
+ executingSessions = new Map();
22
+ maintenanceAdapters = new Set();
23
+ archivingSessions = new Set();
24
+ detectionCache = new Map();
25
+ detectionRefreshes = new Map();
26
+ modelCache = new Map();
27
+ modelFailures = new Map();
28
+ modelRefreshes = new Map();
29
+ modelGenerations = new Map();
30
+ /**
31
+ * 上次构建目录时驱动声明的 Provider 配置指纹。
32
+ *
33
+ * 与安装探测指纹不同:用户在外部工具里切换供应商或登录状态时,CLI 可执行文件
34
+ * 完全没变,`detectionFingerprint` 因此不变,长 TTL 的目录缓存会把旧的账号判定
35
+ * 一直沿用下去——界面就会长期缺少依赖该判定的控件(Codex 官方订阅的 Fast 档位
36
+ * 开关正是如此)。这里按驱动声明的指纹在每次读取目录时校验,配置一变立即失效。
37
+ */
38
+ catalogFingerprints = new Map();
39
+ /**
40
+ * 已切到下一个 DSH step、但仍在继续产出 Provider 流的运行。
41
+ *
42
+ * 通用切分由 Registry 持有活迭代器;驱动自行分段的适配器(Codex、Command Code)
43
+ * 把进程和段状态留在驱动内,这里只登记续段意图,用 null 迭代器区分两者。
44
+ */
45
+ segmentedTurns = new Map();
46
+ cacheGeneration = 0;
47
+ startupTimer;
48
+ lifetime = new AbortController();
49
+ originalDetections = new Map();
50
+ detectionStates = new Map();
51
+ detectionTimes = new Map();
52
+ disposed = false;
53
+ constructor(drivers, enabled = {}, options = {}) {
54
+ this.sessionStore = options.sessionStore;
55
+ this.nativeSessions = options.nativeSessions;
56
+ this.settings = options.settings;
57
+ this.providerProbeTtlMs = options.providerProbeTtlMs ?? 60_000;
58
+ this.missingConfirmationDelayMs = options.missingConfirmationDelayMs ?? 2_000;
59
+ this.providerProbeTimeoutMs = Math.max(1, options.providerProbeTimeoutMs ?? 10_000);
60
+ this.providerProbeConcurrency = Math.max(1, Math.floor(options.providerProbeConcurrency ?? 4));
61
+ const configuredPreferences = options.settings?.get().agentAdapterPreferences;
62
+ const legacyPreferences = options.settings === undefined ? {} : readLegacyImportedAdapterPreferences();
63
+ const mergedPreferences = mergePreferenceRecords(legacyPreferences, configuredPreferences);
64
+ this.syncPreferences(mergedPreferences);
65
+ // DSH 0.1.7 不会把旧 `agentdoor` 设置段自动映射到 scoped Config entry。
66
+ // 先用旧值恢复当前进程,再把缺失值写入新配置,后续重启即可走正常路径。
67
+ if (options.settings !== undefined && hasMissingPreferences(configuredPreferences, legacyPreferences)) {
68
+ this.persistPreferences();
69
+ }
70
+ for (const driver of drivers) {
71
+ if (this.drivers.has(driver.descriptor.id))
72
+ throw new Error(`重复 Agent: ${driver.descriptor.id}`);
73
+ this.drivers.set(driver.descriptor.id, driver);
74
+ // 驱动在模型查询和执行前的自检也必须复用同一缓存,不能绕过注册表反复启动 CLI。
75
+ this.originalDetections.set(driver.descriptor.id, driver.detect);
76
+ driver.detect = () => this.readDetection(driver);
77
+ this.enabled.set(driver.descriptor.id, enabled[driver.descriptor.id] !== false);
78
+ }
79
+ for (const record of this.sessionStore?.list({ includeArchived: true }) ?? []) {
80
+ const { dshSessionId: _dshSessionId, title: _title, cwd: _cwd, status: _status, providerState: _providerState, providerCheckedAt: _providerCheckedAt, providerStateReason: _providerStateReason, createdAt: _createdAt, updatedAt: _updatedAt, lastError: _lastError, ...config } = record;
81
+ this.sessions.set(record.dshSessionId, config);
82
+ }
83
+ }
84
+ sessionStore;
85
+ nativeSessions;
86
+ settings;
87
+ preferences = new Map();
88
+ preferenceWritesPending = 0;
89
+ /** 设置服务更新必须按选择顺序落盘;并发 update 会让旧快照覆盖新模型/档位。 */
90
+ preferenceWriteTail = Promise.resolve();
91
+ /** 启动让出首屏,只检测一次;模型目录留到首次使用时异步加载。 */
92
+ warmCatalog() {
93
+ if (this.disposed || this.startupTimer !== undefined)
94
+ return;
95
+ this.startupTimer = setTimeout(() => {
96
+ for (const driver of this.drivers.values())
97
+ void this.readDetection(driver);
98
+ }, 1_000);
99
+ unrefTimer(this.startupTimer);
100
+ }
101
+ /** 普通目录查询只读内存,不等待 CLI,也不触发过期刷新。 */
102
+ async catalog() {
103
+ return [...this.drivers.values()].map((driver) => {
104
+ const id = driver.descriptor.id;
105
+ const checkedAt = this.detectionTimes.get(id);
106
+ return {
107
+ ...driver.descriptor, enabled: this.isEnabled(id),
108
+ ...(this.detectionCache.get(id)?.value ?? { installed: false, version: null, command: null }),
109
+ detectionState: this.detectionStates.get(id) ?? 'pending',
110
+ ...(checkedAt === undefined ? {} : { checkedAt }),
111
+ };
112
+ });
113
+ }
114
+ /** 真正执行用户选择时,只等待这些目标的首轮检测,避免把 pending 误判成未安装。 */
115
+ async catalogForUse(adapterIds) {
116
+ await Promise.all([...new Set(adapterIds)].map((id) => {
117
+ const driver = this.drivers.get(id);
118
+ return driver === undefined || !this.isEnabled(id) ? undefined : this.readDetection(driver);
119
+ }));
120
+ return this.catalog();
121
+ }
122
+ /** 仅设置页显式重新检测;并发请求合并,已有模型在重新检测后按需刷新。 */
123
+ async refreshCatalog(adapterId) {
124
+ if (this.disposed)
125
+ throw new Error('Agent 注册表已关闭');
126
+ const drivers = adapterId === undefined ? [...this.drivers.values()] : [this.requireDriver(adapterId)];
127
+ invalidateCommandEnvironment();
128
+ await Promise.all(drivers.map(async (driver) => {
129
+ await this.refreshDetection(driver);
130
+ this.invalidateModelCache(driver.descriptor.id);
131
+ }));
132
+ return this.catalog();
133
+ }
134
+ /** Serialize installation changes against active and suspended Agent turns. */
135
+ beginMaintenance(adapterId) {
136
+ if (this.disposed)
137
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_MANAGEMENT_UNAVAILABLE', 'The Agent registry is stopped.');
138
+ this.requireDriver(adapterId);
139
+ if (this.maintenanceAdapters.has(adapterId)
140
+ || [...this.executingSessions.values()].includes(adapterId)
141
+ || [...this.segmentedTurns.values()].some((turn) => turn.adapterId === adapterId)) {
142
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_MANAGEMENT_BUSY', 'Wait for this Agent to finish its active tasks before installing or updating it.');
143
+ }
144
+ this.maintenanceAdapters.add(adapterId);
145
+ return () => { this.maintenanceAdapters.delete(adapterId); };
146
+ }
147
+ async models(adapterId) {
148
+ const driver = this.requireEnabledDriver(adapterId);
149
+ // Provider 配置(供应商、登录方式、默认档位)变化时必须先作废目录,否则
150
+ // 账号级判定会跟着 10 分钟 TTL 一起被沿用,界面上的档位开关等控件长期缺失。
151
+ if (this.invalidateOnCatalogFingerprintChange(adapterId, driver)) {
152
+ return this.refreshModels(driver);
153
+ }
154
+ const cached = this.modelCache.get(adapterId);
155
+ if (cached !== undefined) {
156
+ return cached.value;
157
+ }
158
+ const failure = this.modelFailures.get(adapterId);
159
+ if (failure !== undefined) {
160
+ throw failure.error;
161
+ }
162
+ return this.refreshModels(driver);
163
+ }
164
+ /** 读取当前外部会话绑定 Agent 的 Skill 目录;不把路径或文件内容暴露给 Client。 */
165
+ async listSkills(sessionId, options = {}) {
166
+ const session = this.getSession(sessionId);
167
+ // DSH 原生 Skill 由 DSH 自己的 `skills/list` Remote 提供;外部目录 RPC
168
+ // 对它以及旧 Client 误请求的适配器统一视为空目录,避免能力探测刷错误日志。
169
+ if (session.adapterId === 'dsh')
170
+ return [];
171
+ const driver = this.requireEnabledDriver(session.adapterId);
172
+ if (!driver.descriptor.capabilities?.includes('skills') || typeof driver.listSkills !== 'function')
173
+ return [];
174
+ const storedCwd = this.sessionStore?.get(sessionId)?.cwd;
175
+ const cwd = options.cwd ?? storedCwd;
176
+ return driver.listSkills({
177
+ sessionId,
178
+ ...(cwd === undefined ? {} : { cwd }),
179
+ ...(options.forceReload === true ? { forceReload: true } : {}),
180
+ ...(options.signal === undefined ? {} : { signal: options.signal }),
181
+ });
182
+ }
183
+ setEnabled(adapterId, enabled) {
184
+ this.requireDriver(adapterId);
185
+ const previous = this.isEnabled(adapterId);
186
+ this.enabled.set(adapterId, enabled);
187
+ if (previous === enabled)
188
+ return enabled;
189
+ for (const listener of this.modelSelectionListeners)
190
+ listener();
191
+ return enabled;
192
+ }
193
+ /** Observe route and adapter availability changes before the next model step. */
194
+ onModelSelectionChanged(listener) {
195
+ this.modelSelectionListeners.add(listener);
196
+ return () => { this.modelSelectionListeners.delete(listener); };
197
+ }
198
+ applyEnabledSettings(settings) {
199
+ for (const adapterId of this.enabled.keys())
200
+ this.setEnabled(adapterId, settings?.[adapterId] !== false);
201
+ }
202
+ isEnabled(adapterId) {
203
+ return this.enabled.get(adapterId) ?? false;
204
+ }
205
+ /** 返回当前启用的外部 Provider 路由,供 DSH 虚拟 Provider 注册使用。 */
206
+ enabledAdapterIds() {
207
+ return [...this.drivers.keys()].filter((adapterId) => this.isEnabled(adapterId));
208
+ }
209
+ enabledSnapshot() {
210
+ return Object.fromEntries(this.enabled.entries());
211
+ }
212
+ /**
213
+ * DSH 0.2 的 Team 必须由原生 TeamService 创建 continuable child、mailbox
214
+ * 和 task board。当前外部 CLI 仍是独立进程,不能伪装成原生成员;统一返回
215
+ * 可诊断结果,避免 Client 把普通 CLI 会话误显示成 Team 成员。
216
+ */
217
+ teamDiagnostic() {
218
+ return {
219
+ supported: false,
220
+ code: 'DSH_TEAM_NATIVE_UNAVAILABLE',
221
+ message: '当前插件仅提供外部 CLI 会话适配器,尚未接入 DSH 0.2 原生 Agent Team 生命周期。',
222
+ };
223
+ }
224
+ setSession(sessionId, config, options = {}) {
225
+ if (sessionId.trim() === '')
226
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_INVALID_SESSION', 'sessionId 不能为空');
227
+ // dsh 是 DSH 自带的默认 Agent,不对应一个外部驱动,但仍需要作为会话
228
+ // 配置保存值,方便 Client 从外部 CLI 切回默认 Agent。
229
+ if (config.adapterId !== 'dsh')
230
+ this.requireEnabledDriver(config.adapterId);
231
+ const storedTeam = this.sessionStore?.get(sessionId);
232
+ const previous = this.sessions.get(sessionId) ?? (storedTeam?.adapterId === config.adapterId ? this.getSession(sessionId) : undefined);
233
+ const sameAdapter = previous?.adapterId === config.adapterId;
234
+ if (config.nativeApprovalMode !== undefined && !isNativeApprovalMode(config.adapterId, config.nativeApprovalMode)) {
235
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_INVALID_SESSION', 'Unsupported native approval mode');
236
+ }
237
+ if (previous !== undefined && !sameAdapter)
238
+ this.lastUsages.delete(sessionId);
239
+ const remembered = this.preferences.get(config.adapterId) ?? this.findRememberedPreference(config.adapterId);
240
+ // A resolved child route owns its complete model selection. An omitted
241
+ // effort must remain omitted instead of borrowing another model's choice.
242
+ const previousSelection = options.inheritSelection === false ? undefined : sameAdapter ? previous : undefined;
243
+ const ownsNativeTeamSelection = config.adapterId === 'dsh' && Boolean(config.teamId ?? previous?.teamId);
244
+ const rememberedSelection = options.inheritSelection === false || ownsNativeTeamSelection ? undefined : remembered;
245
+ // Only a new binding may borrow a remembered mode. Old sessions keep their permissions.
246
+ const isolated = config.teamId || previous?.teamId || config.parentSessionId || previous?.parentSessionId || config.origin === 'subagent' || previous?.origin === 'subagent';
247
+ const nativeApprovalMode = config.nativeApprovalMode ?? (sameAdapter ? previousSelection?.nativeApprovalMode : isolated ? undefined : rememberedSelection?.nativeApprovalMode);
248
+ const providerSessionId = config.providerSessionId?.trim();
249
+ const providerIdentityChanged = providerSessionId !== undefined
250
+ && providerSessionId !== previous?.providerSessionId;
251
+ const normalized = {
252
+ adapterId: config.adapterId,
253
+ ...(nativeApprovalMode === undefined ? {} : { nativeApprovalMode }),
254
+ ...(config.modelId?.trim()
255
+ ? { modelId: config.modelId.trim() }
256
+ : previousSelection?.modelId
257
+ ? { modelId: previousSelection.modelId }
258
+ : rememberedSelection?.modelId
259
+ ? { modelId: rememberedSelection.modelId }
260
+ : {}),
261
+ ...(config.effortId?.trim()
262
+ ? { effortId: config.effortId.trim() }
263
+ : previousSelection?.effortId
264
+ ? { effortId: previousSelection.effortId }
265
+ : rememberedSelection?.effortId
266
+ ? { effortId: rememberedSelection.effortId }
267
+ : {}),
268
+ // 服务档位是“显式选择”而不是“可回退的最近值”:`default` 表示标准速度,
269
+ // 与 undefined(Host 没有该选择)语义不同,必须原样保留,不能被记忆值覆盖。
270
+ ...(config.serviceTierId?.trim()
271
+ ? { serviceTierId: config.serviceTierId.trim() }
272
+ : previousSelection?.serviceTierId
273
+ ? { serviceTierId: previousSelection.serviceTierId }
274
+ : rememberedSelection?.serviceTierId
275
+ ? { serviceTierId: rememberedSelection.serviceTierId }
276
+ : {}),
277
+ ...(config.translationEnabled !== undefined
278
+ ? { translationEnabled: config.translationEnabled }
279
+ : sameAdapter && previous?.translationEnabled !== undefined
280
+ ? { translationEnabled: previous.translationEnabled }
281
+ : remembered?.translationEnabled !== undefined
282
+ ? { translationEnabled: remembered.translationEnabled }
283
+ : {}),
284
+ ...(config.providerId?.trim()
285
+ ? { providerId: config.providerId.trim() }
286
+ : sameAdapter && previous?.providerId
287
+ ? { providerId: previous.providerId }
288
+ : {}),
289
+ ...(providerSessionId ? { providerSessionId } : sameAdapter && previous?.providerSessionId ? { providerSessionId: previous.providerSessionId } : {}),
290
+ ...(config.rawStoreRef?.trim()
291
+ ? { rawStoreRef: config.rawStoreRef.trim() }
292
+ : sameAdapter && !providerIdentityChanged && previous?.rawStoreRef
293
+ ? { rawStoreRef: previous.rawStoreRef }
294
+ : {}),
295
+ ...(config.parentSessionId?.trim()
296
+ ? { parentSessionId: config.parentSessionId.trim() }
297
+ : sameAdapter && previous?.parentSessionId ? { parentSessionId: previous.parentSessionId } : {}),
298
+ ...(config.origin === 'user' || config.origin === 'subagent' || config.origin === 'plugin'
299
+ ? { origin: config.origin }
300
+ : sameAdapter && previous?.origin ? { origin: previous.origin } : {}),
301
+ ...(config.delegationDepth !== undefined && Number.isSafeInteger(config.delegationDepth) && config.delegationDepth >= 0
302
+ ? { delegationDepth: config.delegationDepth }
303
+ : sameAdapter && previous?.delegationDepth !== undefined ? { delegationDepth: previous.delegationDepth } : {}),
304
+ ...(config.continuationId?.trim()
305
+ ? { continuationId: config.continuationId.trim() }
306
+ : sameAdapter && previous?.continuationId ? { continuationId: previous.continuationId } : {}),
307
+ ...(config.teamId?.trim()
308
+ ? { teamId: config.teamId.trim() }
309
+ : sameAdapter && previous?.teamId ? { teamId: previous.teamId } : {}),
310
+ ...(config.teamMemberId?.trim()
311
+ ? { teamMemberId: config.teamMemberId.trim() }
312
+ : sameAdapter && previous?.teamMemberId ? { teamMemberId: previous.teamMemberId } : {}),
313
+ ...(config.credentialRefs !== undefined
314
+ ? { credentialRefs: config.credentialRefs }
315
+ : sameAdapter && previous?.credentialRefs !== undefined ? { credentialRefs: previous.credentialRefs } : {}),
316
+ };
317
+ this.sessions.set(sessionId, normalized);
318
+ this.sessionStore?.upsert(sessionId, normalized);
319
+ if (options.rememberPreference !== false && normalized.teamId === undefined && normalized.parentSessionId === undefined && normalized.origin !== 'subagent')
320
+ this.rememberPreference(config.adapterId, normalized);
321
+ return normalized;
322
+ }
323
+ /** 设置服务变更后重新载入适配器级默认选择。 */
324
+ syncPreferences(value) {
325
+ if (value === undefined || this.preferenceWritesPending > 0)
326
+ return;
327
+ // 0.1.7 ConfigForms 在 entry 重新描述的瞬间可能只返回默认空字典;
328
+ // 不能让这次短暂快照抹掉当前进程已经恢复的选择。
329
+ if (Object.keys(value).length === 0 && this.preferences.size > 0)
330
+ return;
331
+ this.preferences.clear();
332
+ for (const [rawAdapterId, preference] of Object.entries(value)) {
333
+ const adapterId = rawAdapterId === 'codebuddy-cn' ? 'codebuddy' : rawAdapterId;
334
+ const modelId = preference?.modelId?.trim();
335
+ const effortId = preference?.effortId?.trim();
336
+ const serviceTierId = preference?.serviceTierId?.trim();
337
+ const nativeApprovalMode = isNativeApprovalMode(adapterId, preference?.nativeApprovalMode) ? preference.nativeApprovalMode : undefined;
338
+ if (modelId === undefined && effortId === undefined && serviceTierId === undefined && preference?.translationEnabled === undefined && nativeApprovalMode === undefined)
339
+ continue;
340
+ this.preferences.set(adapterId, {
341
+ ...(modelId ? { modelId } : {}),
342
+ ...(effortId ? { effortId } : {}),
343
+ ...(serviceTierId ? { serviceTierId } : {}),
344
+ ...(preference.translationEnabled === undefined ? {} : { translationEnabled: preference.translationEnabled }),
345
+ ...(nativeApprovalMode === undefined ? {} : { nativeApprovalMode }),
346
+ });
347
+ }
348
+ }
349
+ findRememberedPreference(adapterId) {
350
+ const records = this.sessionStore?.list({ includeArchived: true, adapterId }).filter(record => record.teamId === undefined && record.parentSessionId === undefined && record.origin !== 'subagent') ?? [];
351
+ for (const record of records) {
352
+ if (record.modelId !== undefined || record.effortId !== undefined || record.serviceTierId !== undefined || record.translationEnabled !== undefined || record.nativeApprovalMode !== undefined) {
353
+ const preference = {
354
+ ...(record.modelId ? { modelId: record.modelId } : {}),
355
+ ...(record.effortId ? { effortId: record.effortId } : {}),
356
+ ...(record.serviceTierId ? { serviceTierId: record.serviceTierId } : {}),
357
+ ...(record.translationEnabled === undefined ? {} : { translationEnabled: record.translationEnabled }),
358
+ ...(record.nativeApprovalMode === undefined ? {} : { nativeApprovalMode: record.nativeApprovalMode }),
359
+ };
360
+ this.preferences.set(adapterId, preference);
361
+ return preference;
362
+ }
363
+ }
364
+ return undefined;
365
+ }
366
+ rememberPreference(adapterId, config) {
367
+ const previous = this.preferences.get(adapterId);
368
+ const modelId = config.modelId?.trim() || previous?.modelId;
369
+ const effortId = config.effortId?.trim() || previous?.effortId;
370
+ const serviceTierId = config.serviceTierId?.trim() || previous?.serviceTierId;
371
+ const translationEnabled = config.translationEnabled ?? previous?.translationEnabled;
372
+ const nativeApprovalMode = config.nativeApprovalMode ?? previous?.nativeApprovalMode;
373
+ if (previous?.modelId === modelId && previous?.effortId === effortId && previous?.serviceTierId === serviceTierId && previous?.translationEnabled === translationEnabled && previous?.nativeApprovalMode === nativeApprovalMode)
374
+ return;
375
+ const preference = {
376
+ ...previous,
377
+ ...(modelId ? { modelId } : {}),
378
+ ...(effortId ? { effortId } : {}),
379
+ ...(serviceTierId ? { serviceTierId } : {}),
380
+ ...(translationEnabled === undefined ? {} : { translationEnabled }),
381
+ ...(nativeApprovalMode === undefined ? {} : { nativeApprovalMode }),
382
+ };
383
+ this.preferences.set(adapterId, preference);
384
+ this.persistPreferences();
385
+ }
386
+ persistPreferences() {
387
+ if (this.settings === undefined)
388
+ return;
389
+ const snapshot = preferenceSnapshot(this.preferences);
390
+ this.preferenceWritesPending += 1;
391
+ this.preferenceWriteTail = this.preferenceWriteTail
392
+ .catch(() => undefined)
393
+ .then(() => this.settings.update({ agentAdapterPreferences: snapshot }))
394
+ .catch(() => undefined)
395
+ .finally(() => { this.preferenceWritesPending -= 1; });
396
+ }
397
+ /**
398
+ * 会话索引。迁移 fork 子会话的继承绑定需要在 Registry 外部补写记录,
399
+ * 因此这里暴露只读引用,避免调用方自己再建一份索引。
400
+ */
401
+ get sessionRecords() {
402
+ return this.sessionStore;
403
+ }
404
+ /** 读取宿主原生 Session;身份判断必须优先使用其 header。 */
405
+ nativeSession(sessionId) {
406
+ try {
407
+ return this.nativeSessions?.get(sessionId);
408
+ }
409
+ catch {
410
+ return undefined;
411
+ }
412
+ }
413
+ getSession(sessionId) {
414
+ const teamRecord = this.sessions.get(sessionId) ?? this.sessionStore?.get(sessionId);
415
+ if (teamRecord?.teamId && teamRecord.adapterId !== 'dsh' && !this.isEnabled(teamRecord.adapterId)) {
416
+ throw new AgentDoorRpcError('TEAM_ADAPTER_UNAVAILABLE', 'The Team participant adapter is disabled.');
417
+ }
418
+ const session = this.sessions.get(sessionId);
419
+ if (session !== undefined && (session.adapterId === 'dsh' || this.isEnabled(session.adapterId))) {
420
+ if (session.adapterId === 'dsh')
421
+ return mergeDshNativeSelection(session, this.nativeSessions?.get(sessionId), this.nativeSessions?.modelSelection?.(sessionId));
422
+ // Provider 绑定可能在 llm/stream 的 session-binding 事件中先写入持久化索引,
423
+ // 而旧的内存配置仍被页面复用;补齐缺失字段,避免续接时重新开空会话。
424
+ return { ...mergeStoredSessionFields(session, this.sessionStore?.get(sessionId)), ...lastUsageField(this.lastUsages.get(sessionId)) };
425
+ }
426
+ // 迁移可能在 Registry 构造之后才完成(用户点击打开旧会话、或 fork 子会话
427
+ // 刚被加载)。此时必须读取 SessionStore,否则子会话会被当成 DSH 主会话,
428
+ // 用户看到的仍是“默认 DSH Agent”。
429
+ const stored = this.sessionStore?.get(sessionId);
430
+ if (stored !== undefined && (stored.adapterId === 'dsh' ? stored.teamId !== undefined : this.isEnabled(stored.adapterId))) {
431
+ const config = {
432
+ adapterId: stored.adapterId,
433
+ ...(stored.nativeApprovalMode === undefined ? {} : { nativeApprovalMode: stored.nativeApprovalMode }),
434
+ ...(stored.modelId === undefined ? {} : { modelId: stored.modelId }),
435
+ ...(stored.effortId === undefined ? {} : { effortId: stored.effortId }),
436
+ ...(stored.serviceTierId === undefined ? {} : { serviceTierId: stored.serviceTierId }),
437
+ ...(stored.translationEnabled === undefined ? {} : { translationEnabled: stored.translationEnabled }),
438
+ ...(stored.providerId === undefined ? {} : { providerId: stored.providerId }),
439
+ ...(stored.providerSessionId === undefined ? {} : { providerSessionId: stored.providerSessionId }),
440
+ ...(stored.rawStoreRef === undefined ? {} : { rawStoreRef: stored.rawStoreRef }),
441
+ ...(stored.parentSessionId === undefined ? {} : { parentSessionId: stored.parentSessionId }),
442
+ ...(stored.origin === undefined ? {} : { origin: stored.origin }),
443
+ ...(stored.teamId === undefined ? {} : { teamId: stored.teamId }),
444
+ ...(stored.teamMemberId === undefined ? {} : { teamMemberId: stored.teamMemberId }),
445
+ ...(stored.credentialRefs === undefined ? {} : { credentialRefs: stored.credentialRefs }),
446
+ };
447
+ this.sessions.set(sessionId, config);
448
+ return { ...config, ...lastUsageField(this.lastUsages.get(sessionId)) };
449
+ }
450
+ const remembered = this.preferences.get('dsh') ?? this.findRememberedPreference('dsh');
451
+ return mergeDshNativeSelection({
452
+ adapterId: 'dsh',
453
+ ...(remembered?.modelId ? { modelId: remembered.modelId } : {}),
454
+ ...(remembered?.effortId ? { effortId: remembered.effortId } : {}),
455
+ ...(remembered?.serviceTierId ? { serviceTierId: remembered.serviceTierId } : {}),
456
+ // 原生会话没有插件会话索引,翻译开关按适配器偏好持久化并在这里回读。
457
+ ...(remembered?.translationEnabled === undefined ? {} : { translationEnabled: remembered.translationEnabled }),
458
+ }, this.nativeSessions?.get(sessionId), this.nativeSessions?.modelSelection?.(sessionId));
459
+ }
460
+ /** 只有已验证能维护连续事件流的驱动,Host 才把工具边界映射到 DSH step。 */
461
+ supportsSegmentedTurns(adapterId) {
462
+ const driver = this.drivers.get(adapterId);
463
+ return driver?.supportsSegmentedTurns === true || driver?.supportsStreamStepSplitting === true;
464
+ }
465
+ /** Qoder 等 ACP 驱动由 Registry 挂起同一个迭代器完成通用工具分步。 */
466
+ supportsToolStepSplitting(adapterId) {
467
+ return this.drivers.get(adapterId)?.supportsToolStepSplitting === true;
468
+ }
469
+ supportsCompaction(sessionId) {
470
+ return typeof this.drivers.get(this.getSession(sessionId).adapterId)?.compact === 'function';
471
+ }
472
+ /** Shares the execution lock with normal turns, installation and suspended steps. */
473
+ async compact(sessionId, cwd, signal) {
474
+ signal.throwIfAborted();
475
+ if (this.disposed)
476
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_UNAVAILABLE', 'Agent adapters have been stopped.');
477
+ const config = this.getSession(sessionId);
478
+ const driver = this.requireEnabledDriver(config.adapterId);
479
+ if (!driver.compact)
480
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_UNSUPPORTED', 'Native compaction is unavailable for this Agent.');
481
+ if (this.executingSessions.has(sessionId) || this.segmentedTurns.has(sessionId)
482
+ || this.maintenanceAdapters.has(config.adapterId) || this.archivingSessions.has(sessionId)) {
483
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_MANAGEMENT_BUSY', 'The Agent or session is busy.');
484
+ }
485
+ if (!config.providerSessionId)
486
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_INVALID_SESSION', 'There is no provider conversation to compact yet.');
487
+ this.executingSessions.set(sessionId, config.adapterId);
488
+ try {
489
+ const result = await driver.compact({
490
+ sessionId, providerSessionId: config.providerSessionId,
491
+ ...(cwd === undefined ? {} : { cwd }),
492
+ ...(config.modelId === undefined ? {} : { modelId: config.modelId }),
493
+ ...(config.effortId === undefined ? {} : { effortId: config.effortId }),
494
+ signal: AbortSignal.any([signal, this.lifetime.signal]),
495
+ });
496
+ // Until the next real usage report, do not present pre-compaction usage as current.
497
+ if (result.compacted)
498
+ this.lastUsages.delete(sessionId);
499
+ return result;
500
+ }
501
+ finally {
502
+ this.executingSessions.delete(sessionId);
503
+ }
504
+ }
505
+ /** 供原生 Subagent Provider 执行首轮;不创建普通外部会话索引。 */
506
+ async *runSubagentTurn(input) {
507
+ if (this.maintenanceAdapters.has(input.adapterId) || this.executingSessions.has(input.sessionId)) {
508
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_MANAGEMENT_BUSY', 'This Agent or session is already busy.');
509
+ }
510
+ const driver = this.requireEnabledDriver(input.adapterId);
511
+ this.executingSessions.set(input.sessionId, input.adapterId);
512
+ try {
513
+ yield* driver.executeTurn(withCodexContextWindow(input, input.adapterId));
514
+ }
515
+ finally {
516
+ this.executingSessions.delete(input.sessionId);
517
+ }
518
+ }
519
+ /** 子会话 Provider 绑定完成后立即落盘,确保冷恢复不会丢失适配器身份。 */
520
+ async flushSessionBindings() {
521
+ await this.sessionStore?.flush();
522
+ }
523
+ async *execute(input) {
524
+ if (this.maintenanceAdapters.has(input.adapterId)) {
525
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_MANAGEMENT_BUSY', 'This Agent is being installed or updated. Wait for it to finish.');
526
+ }
527
+ const driver = this.requireEnabledDriver(input.adapterId);
528
+ let driverInput = withTurnPermission(withCodexContextWindow(input, input.adapterId), input.permission);
529
+ if (this.archivingSessions.has(input.sessionId)) {
530
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_INVALID_SESSION', '外部会话正在归档,不能开始新一轮执行');
531
+ }
532
+ if (this.executingSessions.has(input.sessionId)) {
533
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_INVALID_SESSION', '外部会话已有一轮执行正在进行');
534
+ }
535
+ this.executingSessions.set(input.sessionId, input.adapterId);
536
+ const previous = this.sessions.get(input.sessionId) ?? this.sessionStore?.get(input.sessionId);
537
+ if (previous !== undefined && previous.adapterId !== input.adapterId)
538
+ this.lastUsages.delete(input.sessionId);
539
+ let current = {
540
+ ...(previous ?? { adapterId: input.adapterId }),
541
+ ...(input.modelId?.trim() ? { modelId: input.modelId.trim() } : {}),
542
+ ...(input.effortId?.trim() ? { effortId: input.effortId.trim() } : {}),
543
+ ...(input.serviceTierId?.trim() ? { serviceTierId: input.serviceTierId.trim() } : {}),
544
+ ...(input.translationEnabled !== undefined ? { translationEnabled: input.translationEnabled } : {}),
545
+ // 续接请求自身带有 Provider 身份时必须写回当前内存配置;否则首轮
546
+ // 恰好发生在页面恢复/迁移窗口内,会在下一轮丢失 --resume 所需的 ID。
547
+ ...(input.providerSessionId?.trim() ? { providerSessionId: input.providerSessionId.trim() } : {}),
548
+ ...(input.rawStoreRef?.trim() ? { rawStoreRef: input.rawStoreRef.trim() } : {}),
549
+ };
550
+ // 除了 Client 的 session/set,Host 内部和未来的调用方也可能直接执行一轮。
551
+ // 最近使用应由真实执行参数更新,不能依赖某个 UI 一定先发 RPC。
552
+ if (current.teamId === undefined)
553
+ this.rememberPreference(input.adapterId, input);
554
+ // 手动 next() 不会自动转发外层的 return();本轮持有的迭代器必须在 finally 关闭。
555
+ // 只有显式交给 segmentedTurns 的流才能跨 DSH step 保留。
556
+ let iterator;
557
+ let nativeSessionReady = false;
558
+ const pendingToolCalls = new Set();
559
+ try {
560
+ const stored = this.sessionStore?.get(input.sessionId);
561
+ if (stored?.status === 'archived') {
562
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_INVALID_SESSION', '外部会话已归档,不能继续执行');
563
+ }
564
+ if (stored !== undefined && (stored.providerSessionId !== undefined || stored.rawStoreRef !== undefined)) {
565
+ await this.refreshProviderState(stored, true);
566
+ if (this.sessionStore?.get(input.sessionId)?.providerState === 'missing') {
567
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_SESSION_MISSING', '外部 Agent 原始会话已删除,无法继续恢复');
568
+ }
569
+ }
570
+ const suspended = this.segmentedTurns.get(input.sessionId);
571
+ const resumingSegmentedTurn = suspended?.adapterId === input.adapterId;
572
+ if (resumingSegmentedTurn)
573
+ driverInput = withTurnPermission(driverInput, suspended.permission);
574
+ let deferredPeerInput = resumingSegmentedTurn ? suspended?.deferredPeerInput : undefined;
575
+ if (resumingSegmentedTurn && input.peerInput) {
576
+ if (suspended?.iterator !== null && driver.steer !== undefined) {
577
+ await driver.steer(input.sessionId, input.prompt);
578
+ }
579
+ else if (driver.steer === undefined) {
580
+ deferredPeerInput = deferredPeerInput ? {
581
+ ...input, prompt: `${deferredPeerInput.prompt}\n\n${input.prompt}`,
582
+ attachments: [...(deferredPeerInput.attachments ?? []), ...(input.attachments ?? [])],
583
+ } : input;
584
+ }
585
+ }
586
+ // 驱动自行分段时,续段必须由 Host 显式声明;驱动不能靠猜输入形状决定是否
587
+ // 复用旧进程,否则注入失败后的新用户消息会被拼进上一次运行。
588
+ const resumingDriverTurn = resumingSegmentedTurn && suspended !== undefined && suspended.iterator === null;
589
+ const resumedDriverInput = resumingDriverTurn && suspended?.runtimeEnv !== undefined
590
+ ? {
591
+ ...driverInput,
592
+ // A segmented turn keeps its original execution context. Combining a
593
+ // refreshed broker token with the old endpoint (or vice versa) can
594
+ // invalidate credentials midway through the same provider turn.
595
+ runtimeEnv: suspended.runtimeEnv,
596
+ }
597
+ : driverInput;
598
+ if (resumingDriverTurn)
599
+ this.segmentedTurns.delete(input.sessionId);
600
+ const refreshed = this.sessions.get(input.sessionId);
601
+ if (refreshed !== previous && refreshed?.adapterId === current.adapterId)
602
+ current = { ...current, ...refreshed };
603
+ this.sessions.set(input.sessionId, current);
604
+ this.sessionStore?.upsert(input.sessionId, {
605
+ ...current,
606
+ adapterId: input.adapterId,
607
+ ...(input.cwd ? { cwd: input.cwd } : {}),
608
+ status: 'active',
609
+ ...(resumingSegmentedTurn ? {} : { title: input.prompt }),
610
+ });
611
+ // Agent Loop 通常已经创建了同名 DSH 原生会话;直接调用 Registry 时才按需补建。
612
+ // 原生服务失败不能阻断外部 Agent,消息仍由现有 llm/stream 链路处理。
613
+ try {
614
+ nativeSessionReady = await this.nativeSessions?.ensure(input.sessionId, input.cwd) === input.sessionId;
615
+ }
616
+ catch { /* Optional native projection is unavailable. */ }
617
+ // 每轮都写入稳定的适配器身份。旧日志只有通用 agent-door-external 标记,
618
+ // 这条 request/context 是升级后自动迁移时唯一可靠的回填依据。
619
+ try {
620
+ const contextWindow = input.adapterId === 'codex'
621
+ ? driverInput.modelContextWindow
622
+ : input.adapterId === 'command-code'
623
+ ? knownCommandCodeContextWindow(input.modelId)
624
+ : input.adapterId === 'antigravity'
625
+ ? knownAntigravityContextWindow(input.modelId)
626
+ : input.adapterId === 'opencode'
627
+ ? knownOpenCodeContextWindow(input.modelId)
628
+ : input.adapterId === 'claude-code'
629
+ ? knownClaudeContextWindow(input.modelId)
630
+ : undefined;
631
+ if (nativeSessionReady)
632
+ this.nativeSessions?.appendRequestContext?.(input.sessionId, {
633
+ provider: toCliProviderId(input.adapterId),
634
+ model: input.modelId ?? input.adapterId,
635
+ ...(contextWindow === undefined ? {} : { contextWindow, confirmed: true, source: 'catalog' }),
636
+ });
637
+ }
638
+ catch { /* 原生历史写入失败不应阻断外部 Agent */ }
639
+ if (suspended !== undefined && suspended.adapterId !== input.adapterId) {
640
+ this.segmentedTurns.delete(input.sessionId);
641
+ if (suspended.iterator !== null)
642
+ await closeAgentIterator(suspended.iterator);
643
+ try {
644
+ this.drivers.get(suspended.adapterId)?.discardSegmentedTurn?.(input.sessionId);
645
+ }
646
+ catch { /* 切换适配器不能被旧驱动清理失败阻断 */ }
647
+ }
648
+ // 通用切分要在复用时立刻撤销登记,否则耗尽后的旧迭代器会被下一条用户消息再次消费。
649
+ if (resumingSegmentedTurn && suspended !== undefined && suspended.iterator !== null) {
650
+ this.segmentedTurns.delete(input.sessionId);
651
+ iterator = suspended.iterator;
652
+ }
653
+ else {
654
+ iterator = driver.executeTurn({ ...resumedDriverInput, ...(resumingDriverTurn ? { resumeSegmentedTurn: true } : {}) })[Symbol.asyncIterator]();
655
+ }
656
+ while (true) {
657
+ const next = await iterator.next();
658
+ // A CLI may deliver a tool result only after cancellation. Never retain
659
+ // that aborted iterator for a subsequent DSH step or user prompt.
660
+ if (input.signal?.aborted) {
661
+ this.segmentedTurns.delete(input.sessionId);
662
+ this.sessionStore?.upsert(input.sessionId, { ...this.sessions.get(input.sessionId) ?? current, status: 'idle' });
663
+ yield { type: 'finish', reason: 'cancel' };
664
+ return;
665
+ }
666
+ if (next.done || next.value.type === 'finish') {
667
+ if (deferredPeerInput) {
668
+ if (!next.done && next.value.type === 'finish' && next.value.reason !== 'stop') {
669
+ throw new AgentDoorRpcError('TEAM_DELIVERY_UNCERTAIN', 'The provider turn ended unsuccessfully before pending Team input could be delivered. Inspect the session before resending.');
670
+ }
671
+ await closeAgentIterator(iterator);
672
+ const pending = deferredPeerInput;
673
+ deferredPeerInput = undefined;
674
+ iterator = driver.executeTurn(withTurnPermission(withCodexContextWindow({ ...pending, ...(current.providerSessionId ? { providerSessionId: current.providerSessionId } : {}), resumeSegmentedTurn: false }, input.adapterId), driverInput.permission))[Symbol.asyncIterator]();
675
+ continue;
676
+ }
677
+ if (next.done) {
678
+ iterator = undefined;
679
+ break;
680
+ }
681
+ }
682
+ const event = next.value;
683
+ if (event.type === 'tool-event' && event.callId !== undefined) {
684
+ if (event.status === 'completed' || event.status === 'failed')
685
+ pendingToolCalls.delete(event.callId);
686
+ else if (event.status === 'started' || event.status === 'running')
687
+ pendingToolCalls.add(event.callId);
688
+ }
689
+ if (event.type === 'usage')
690
+ this.lastUsages.set(input.sessionId, usageSnapshot(event));
691
+ if (event.type === 'session-binding') {
692
+ const latest = this.sessions.get(input.sessionId);
693
+ if (latest?.adapterId === current.adapterId)
694
+ current = { ...current, ...latest };
695
+ const providerIdentityChanged = event.providerSessionId !== current.providerSessionId;
696
+ const { rawStoreRef: previousRawStoreRef, ...currentWithoutRawStoreRef } = current;
697
+ const nextConfig = {
698
+ ...currentWithoutRawStoreRef,
699
+ providerSessionId: event.providerSessionId,
700
+ ...(event.rawStoreRef
701
+ ? { rawStoreRef: event.rawStoreRef }
702
+ : !providerIdentityChanged && previousRawStoreRef
703
+ ? { rawStoreRef: previousRawStoreRef }
704
+ : {}),
705
+ };
706
+ this.sessions.set(input.sessionId, nextConfig);
707
+ current = nextConfig;
708
+ this.sessionStore?.upsert(input.sessionId, {
709
+ ...nextConfig,
710
+ status: 'active',
711
+ providerState: 'available',
712
+ providerCheckedAt: new Date().toISOString(),
713
+ });
714
+ // 首次或重绑的 Provider ID 必须先落盘,避免崩溃后丢失续接身份。
715
+ if (providerIdentityChanged)
716
+ await this.sessionStore?.flush();
717
+ }
718
+ if (event.type === 'finish') {
719
+ this.segmentedTurns.delete(input.sessionId);
720
+ this.sessionStore?.upsert(input.sessionId, { ...this.sessions.get(input.sessionId) ?? current, status: event.reason === 'error' ? 'error' : 'idle' });
721
+ }
722
+ // Explicit boundaries preserve the driver's grouping of messages and tool batches.
723
+ if (event.type === 'step-boundary') {
724
+ const segmentedRuntimeEnv = resumedDriverInput.runtimeEnv;
725
+ if (driver.supportsStreamStepSplitting === true) {
726
+ this.segmentedTurns.set(input.sessionId, {
727
+ adapterId: input.adapterId,
728
+ iterator,
729
+ permission: resumedDriverInput.permission,
730
+ ...(deferredPeerInput ? { deferredPeerInput } : {}),
731
+ ...(segmentedRuntimeEnv === undefined ? {} : { runtimeEnv: segmentedRuntimeEnv }),
732
+ });
733
+ }
734
+ else {
735
+ await closeAgentIterator(iterator);
736
+ // Driver-owned segments resume through a new executeTurn call.
737
+ this.segmentedTurns.set(input.sessionId, {
738
+ adapterId: input.adapterId,
739
+ iterator: null,
740
+ permission: resumedDriverInput.permission,
741
+ ...(deferredPeerInput ? { deferredPeerInput } : {}),
742
+ ...(segmentedRuntimeEnv === undefined ? {} : { runtimeEnv: segmentedRuntimeEnv }),
743
+ });
744
+ }
745
+ iterator = undefined;
746
+ yield event;
747
+ return;
748
+ }
749
+ if (input.splitToolSteps
750
+ && driver.supportsSegmentedTurns !== true
751
+ && driver.supportsStreamStepSplitting !== true
752
+ && event.type === 'tool-event'
753
+ && pendingToolCalls.size === 0
754
+ && (event.status === 'completed' || event.status === 'failed')) {
755
+ // 并行工具必须整批结算后再分步,否则本步投影器的 finalize 会把
756
+ // 尚未返回的工具提前写为空成功,下一步又丢失其参数并重复声明。
757
+ // 先保存迭代器再 yield。即使调用方在工具事件后提前关闭流,
758
+ // 下一次 DSH step 仍能从同一个 Provider 进程继续读取正文。
759
+ this.segmentedTurns.set(input.sessionId, {
760
+ adapterId: input.adapterId,
761
+ iterator,
762
+ permission: resumedDriverInput.permission,
763
+ ...(deferredPeerInput ? { deferredPeerInput } : {}),
764
+ ...(resumedDriverInput.runtimeEnv === undefined ? {} : { runtimeEnv: resumedDriverInput.runtimeEnv }),
765
+ });
766
+ // 所有权交给续段表,当前调用结束不得关闭需要继续消费的 Provider 流。
767
+ iterator = undefined;
768
+ yield event;
769
+ if (input.signal?.aborted) {
770
+ this.discardSegmentedTurn(input.sessionId);
771
+ yield { type: 'finish', reason: 'cancel' };
772
+ return;
773
+ }
774
+ yield { type: 'step-boundary' };
775
+ return;
776
+ }
777
+ yield event;
778
+ }
779
+ this.segmentedTurns.delete(input.sessionId);
780
+ }
781
+ catch (error) {
782
+ this.sessionStore?.upsert(input.sessionId, {
783
+ ...this.sessions.get(input.sessionId) ?? current,
784
+ status: 'error',
785
+ lastError: error instanceof Error ? error.message : String(error),
786
+ });
787
+ throw error;
788
+ }
789
+ finally {
790
+ if (iterator !== undefined)
791
+ await closeAgentIterator(iterator);
792
+ this.executingSessions.delete(input.sessionId);
793
+ try {
794
+ if (nativeSessionReady)
795
+ await this.nativeSessions?.flush(input.sessionId);
796
+ }
797
+ catch { /* DSH 自身检查点策略负责重试 */ }
798
+ }
799
+ }
800
+ async listSessions(options = {}) {
801
+ const candidates = this.sessionStore?.list(options) ?? [];
802
+ await forEachConcurrent(candidates, this.providerProbeConcurrency, (record) => this.refreshProviderState(record, false));
803
+ return (this.sessionStore?.list(options) ?? [])
804
+ .filter((record) => record.adapterId !== 'dsh')
805
+ .map(({ rawStoreRef: _rawStoreRef, ...record }) => record);
806
+ }
807
+ /** 读取 Provider 原生会话;当前只对实现了 Command Code History 的驱动开放。 */
808
+ async listProviderSessions(adapterId, workspacePath) {
809
+ return this.requireHistoryDriver(adapterId).detectSessions(workspacePath);
810
+ }
811
+ async listProviderSessionsDetailed(adapterId, workspacePath) {
812
+ return this.requireHistoryDriver(adapterId).detectSessionsDetailed(workspacePath);
813
+ }
814
+ async readProviderHistory(adapterId, providerSessionId, rawStoreRef, cursor, limit, direction = 'forward') {
815
+ return this.requireHistoryDriver(adapterId).readSessionHistory(providerSessionId, rawStoreRef, cursor, limit, direction);
816
+ }
817
+ async readProviderHistoryDelta(adapterId, providerSessionId, rawStoreRef, cursor, limit, direction = 'forward') {
818
+ return this.requireHistoryDriver(adapterId).readSessionHistoryDelta(providerSessionId, rawStoreRef, cursor, limit, direction);
819
+ }
820
+ async readProviderSessionTitle(adapterId, providerSessionId, rawStoreRef) {
821
+ return this.requireHistoryDriver(adapterId).readSessionTitle(providerSessionId, rawStoreRef);
822
+ }
823
+ async renameProviderSessionTitle(adapterId, providerSessionId, rawStoreRef, title) {
824
+ return this.requireHistoryDriver(adapterId).renameSessionTitle(providerSessionId, rawStoreRef, title);
825
+ }
826
+ async updateProviderSessionArchive(adapterId, providerSessionId, rawStoreRef, isArchived) {
827
+ return this.requireHistoryDriver(adapterId).updateSessionArchiveState(providerSessionId, rawStoreRef, isArchived);
828
+ }
829
+ async deleteProviderSession(adapterId, providerSessionId, rawStoreRef) {
830
+ return this.requireHistoryDriver(adapterId).deleteSession(providerSessionId, rawStoreRef);
831
+ }
832
+ async readProviderContextUsage(adapterId, providerSessionId, rawStoreRef) {
833
+ return this.requireHistoryDriver(adapterId).readContextUsage(providerSessionId, rawStoreRef);
834
+ }
835
+ async readProviderSessionStats(adapterId, providerSessionId, rawStoreRef) {
836
+ return this.requireHistoryDriver(adapterId).readSessionStats(providerSessionId, rawStoreRef);
837
+ }
838
+ async forkProviderSession(adapterId, providerSessionId, workspacePath, options) {
839
+ return this.requireHistoryDriver(adapterId).forkSession(providerSessionId, workspacePath, options);
840
+ }
841
+ async startProviderSession(adapterId, workspacePath, options = {}) {
842
+ return this.requireHistoryDriver(adapterId).startSession(workspacePath, options);
843
+ }
844
+ async resumeProviderSession(adapterId, providerSessionId, rawStoreRef) {
845
+ return this.requireHistoryDriver(adapterId).resumeSession(providerSessionId, rawStoreRef);
846
+ }
847
+ async sendProviderMessage(adapterId, providerSessionId, rawStoreRef, content) {
848
+ return this.requireHistoryDriver(adapterId).sendMessage(providerSessionId, rawStoreRef, content);
849
+ }
850
+ async archiveSession(sessionId) {
851
+ const current = this.sessionStore?.get(sessionId);
852
+ if (current === undefined)
853
+ return undefined;
854
+ if (current.status === 'active' || this.executingSessions.has(sessionId)) {
855
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_INVALID_SESSION', '外部会话正在执行,不能归档');
856
+ }
857
+ if (this.archivingSessions.has(sessionId)) {
858
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_INVALID_SESSION', '外部会话正在归档');
859
+ }
860
+ this.archivingSessions.add(sessionId);
861
+ let providerArchived = false;
862
+ try {
863
+ const historyDriver = this.drivers.get(current.adapterId);
864
+ if (current.providerSessionId !== undefined && current.rawStoreRef !== undefined && typeof historyDriver?.updateSessionArchiveState === 'function') {
865
+ await historyDriver.updateSessionArchiveState(current.providerSessionId, current.rawStoreRef, true);
866
+ providerArchived = true;
867
+ }
868
+ // 完整 DSH 中先改变原生侧栏可见性;调用失败时不修改插件索引,避免两边状态分叉。
869
+ if (this.nativeSessions !== undefined) {
870
+ const archived = await this.nativeSessions.archive?.(sessionId) ?? false;
871
+ if (!archived) {
872
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_UNAVAILABLE', 'DSH 原生会话归档服务不可用,未修改外部会话索引');
873
+ }
874
+ }
875
+ const record = this.sessionStore?.archive(sessionId);
876
+ if (record === undefined)
877
+ return undefined;
878
+ const { rawStoreRef: _rawStoreRef, ...safe } = record;
879
+ return safe;
880
+ }
881
+ catch (error) {
882
+ // Provider 元数据先写是为了避免 DSH 已归档而 Provider 仍显示活动;原生归档
883
+ // 失败时尽力回滚文件标记,不能让两套索引长期分叉。
884
+ if (providerArchived && current.providerSessionId !== undefined && current.rawStoreRef !== undefined) {
885
+ const historyDriver = this.drivers.get(current.adapterId);
886
+ const rollback = historyDriver?.updateSessionArchiveState?.(current.providerSessionId, current.rawStoreRef, false);
887
+ await rollback?.catch(() => undefined);
888
+ }
889
+ throw error;
890
+ }
891
+ finally {
892
+ this.archivingSessions.delete(sessionId);
893
+ }
894
+ }
895
+ async respondPermission(sessionId, response) {
896
+ const session = this.requireSession(sessionId);
897
+ const driver = this.requireEnabledDriver(session.adapterId);
898
+ if (driver.respondPermission === undefined)
899
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_UNSUPPORTED', '当前 Agent 不支持权限回传');
900
+ await driver.respondPermission(sessionId, response);
901
+ }
902
+ async respondQuestion(sessionId, response) {
903
+ const session = this.requireSession(sessionId);
904
+ const driver = this.requireEnabledDriver(session.adapterId);
905
+ if (driver.respondQuestion === undefined)
906
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_UNSUPPORTED', '当前 Agent 不支持问题回传');
907
+ await driver.respondQuestion(sessionId, response);
908
+ }
909
+ async steer(sessionId, prompt, followUp = false) {
910
+ const session = this.requireSession(sessionId);
911
+ const driver = this.requireEnabledDriver(session.adapterId);
912
+ const handler = followUp ? driver.followUp : driver.steer;
913
+ if (handler === undefined)
914
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_UNSUPPORTED', '当前 Agent 不支持运行中消息');
915
+ await handler.call(driver, sessionId, prompt);
916
+ }
917
+ async interrupt(sessionId) {
918
+ const session = this.requireSession(sessionId);
919
+ const driver = this.requireEnabledDriver(session.adapterId);
920
+ if (driver.interrupt === undefined)
921
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_UNSUPPORTED', '当前 Agent 不支持中断');
922
+ await driver.interrupt(sessionId);
923
+ }
924
+ /** 丢弃等待下一步的 Provider 流,避免取消后的旧正文进入新回合。 */
925
+ discardSegmentedTurn(sessionId) {
926
+ const suspended = this.segmentedTurns.get(sessionId);
927
+ if (suspended === undefined)
928
+ return;
929
+ this.segmentedTurns.delete(sessionId);
930
+ if (suspended.iterator !== null)
931
+ void closeAgentIterator(suspended.iterator);
932
+ // 驱动自行分段时进程留在驱动内,必须显式通知它结束悬挂的 Provider 运行。
933
+ try {
934
+ this.drivers.get(suspended.adapterId)?.discardSegmentedTurn?.(sessionId);
935
+ }
936
+ catch { /* 取消流程不能被清理失败阻断 */ }
937
+ }
938
+ async dispose() {
939
+ if (this.disposed)
940
+ return;
941
+ this.disposed = true;
942
+ this.modelSelectionListeners.clear();
943
+ this.lifetime.abort();
944
+ this.cacheGeneration += 1;
945
+ clearTimeout(this.startupTimer);
946
+ for (const [id, detect] of this.originalDetections)
947
+ this.drivers.get(id).detect = detect;
948
+ this.detectionCache.clear();
949
+ this.modelCache.clear();
950
+ this.modelFailures.clear();
951
+ this.modelGenerations.clear();
952
+ this.catalogFingerprints.clear();
953
+ await Promise.all([...this.segmentedTurns.values()].map(({ iterator }) => iterator === null ? Promise.resolve() : closeAgentIterator(iterator)));
954
+ this.segmentedTurns.clear();
955
+ this.lastUsages.clear();
956
+ await Promise.all([...this.drivers.values()].map((driver) => driver.dispose?.()));
957
+ await this.preferenceWriteTail;
958
+ }
959
+ async readDetection(driver) {
960
+ const adapterId = driver.descriptor.id;
961
+ const cached = this.detectionCache.get(adapterId);
962
+ if (cached !== undefined) {
963
+ // 仅实际使用时重试失败状态,列表仍然只读;确实未安装的 Agent 不后台轮询。
964
+ const checkedAt = this.detectionTimes.get(adapterId);
965
+ const retry = this.detectionStates.get(adapterId) === 'error' && checkedAt !== undefined && Date.now() - Date.parse(checkedAt) >= 30_000;
966
+ if (!retry)
967
+ return cached.value;
968
+ }
969
+ return this.refreshDetection(driver);
970
+ }
971
+ /** 同一适配器只允许一个探测;刷新失败时保留最后一次可用状态。 */
972
+ refreshDetection(driver) {
973
+ const adapterId = driver.descriptor.id;
974
+ const running = this.detectionRefreshes.get(adapterId);
975
+ if (running !== undefined)
976
+ return running;
977
+ if (this.disposed)
978
+ return Promise.resolve(this.detectionCache.get(adapterId)?.value ?? { installed: false, version: null, command: null });
979
+ this.detectionStates.set(adapterId, 'running');
980
+ const generation = this.cacheGeneration;
981
+ const previous = this.detectionCache.get(adapterId);
982
+ const refresh = (async () => {
983
+ let detection;
984
+ let failed = false;
985
+ try {
986
+ const detected = await withCommandSignal(this.lifetime.signal, () => this.originalDetections.get(adapterId).call(driver));
987
+ const getDiagnostic = driver.getDiscoveryDiagnostic;
988
+ const diagnostic = getDiagnostic === undefined ? undefined : getDiagnostic.call(driver);
989
+ detection = diagnostic === undefined ? detected : { ...detected, diagnostic };
990
+ const failure = detected.detectionFailure ?? driver.getDiscoveryFailure?.();
991
+ if (!detected.installed && failure !== undefined) {
992
+ failed = true;
993
+ detection = detectionError(failure, previous?.value, diagnostic);
994
+ }
995
+ }
996
+ catch {
997
+ failed = true;
998
+ detection = detectionError('launch', previous?.value);
999
+ }
1000
+ if (this.disposed || generation !== this.cacheGeneration)
1001
+ return detection;
1002
+ this.detectionCache.set(adapterId, { value: detection });
1003
+ this.detectionStates.set(adapterId, failed ? 'error' : 'ready');
1004
+ this.detectionTimes.set(adapterId, new Date().toISOString());
1005
+ if (previous !== undefined && detectionFingerprint(previous.value) !== detectionFingerprint(detection)) {
1006
+ this.invalidateModelCache(adapterId);
1007
+ }
1008
+ return detection;
1009
+ })().finally(() => {
1010
+ if (this.detectionRefreshes.get(adapterId) === refresh)
1011
+ this.detectionRefreshes.delete(adapterId);
1012
+ });
1013
+ this.detectionRefreshes.set(adapterId, refresh);
1014
+ return refresh;
1015
+ }
1016
+ /** 模型目录合并并发请求;缓存由手动检测或配置变化失效,不后台定时重跑。 */
1017
+ refreshModels(driver) {
1018
+ const adapterId = driver.descriptor.id;
1019
+ const running = this.modelRefreshes.get(adapterId);
1020
+ if (running !== undefined)
1021
+ return running;
1022
+ const generation = this.cacheGeneration;
1023
+ const modelGeneration = this.modelGenerations.get(adapterId) ?? 0;
1024
+ const previous = this.modelCache.get(adapterId);
1025
+ const refresh = (async () => {
1026
+ const probeFingerprint = readCatalogFingerprint(driver);
1027
+ try {
1028
+ // 指纹必须在探测开始前捕获:若在 listModels() 返回后再读,探测期间发生的
1029
+ // 第二次供应商切换会被记成“已应用”,而目录其实来自切换前的配置,之后
1030
+ // 指纹比对会一直命中,旧判定又被锁进缓存。
1031
+ const catalog = await withCommandSignal(this.lifetime.signal, () => driver.listModels());
1032
+ if (this.disposed || generation !== this.cacheGeneration)
1033
+ return previous?.value ?? catalog;
1034
+ if (modelGeneration !== (this.modelGenerations.get(adapterId) ?? 0))
1035
+ return this.models(adapterId);
1036
+ this.modelFailures.delete(adapterId);
1037
+ const hasModels = catalogHasModels(catalog);
1038
+ const keepPrevious = !hasModels && previous !== undefined && catalogHasModels(previous.value);
1039
+ const value = keepPrevious ? previous.value : catalog;
1040
+ // 指纹与目录一起落库:只有真正代表这份目录的配置才会在下次比对时命中。
1041
+ if (probeFingerprint !== undefined)
1042
+ this.catalogFingerprints.set(adapterId, probeFingerprint);
1043
+ this.modelCache.set(adapterId, { value });
1044
+ return value;
1045
+ }
1046
+ catch (error) {
1047
+ if (this.disposed || generation !== this.cacheGeneration) {
1048
+ if (previous !== undefined)
1049
+ return previous.value;
1050
+ throw error;
1051
+ }
1052
+ if (modelGeneration !== (this.modelGenerations.get(adapterId) ?? 0))
1053
+ return this.models(adapterId);
1054
+ if (probeFingerprint !== undefined)
1055
+ this.catalogFingerprints.set(adapterId, probeFingerprint);
1056
+ if (previous !== undefined) {
1057
+ this.modelCache.set(adapterId, { value: previous.value });
1058
+ return previous.value;
1059
+ }
1060
+ this.modelFailures.set(adapterId, { error });
1061
+ throw error;
1062
+ }
1063
+ })().finally(() => {
1064
+ if (this.modelRefreshes.get(adapterId) === refresh)
1065
+ this.modelRefreshes.delete(adapterId);
1066
+ });
1067
+ this.modelRefreshes.set(adapterId, refresh);
1068
+ return refresh;
1069
+ }
1070
+ invalidateModelCache(adapterId) {
1071
+ this.modelGenerations.set(adapterId, (this.modelGenerations.get(adapterId) ?? 0) + 1);
1072
+ this.modelRefreshes.delete(adapterId);
1073
+ this.modelCache.delete(adapterId);
1074
+ this.modelFailures.delete(adapterId);
1075
+ this.catalogFingerprints.delete(adapterId);
1076
+ }
1077
+ /**
1078
+ * 比对驱动的 Provider 配置指纹,变化时立即作废该适配器的目录缓存。
1079
+ *
1080
+ * 返回 true 表示调用方必须等待一次全新探测,不能复用任何旧值——包括
1081
+ * stale-while-revalidate 的旧值:账号判定从「第三方」变成「官方订阅」时,
1082
+ * 继续先回旧值会让界面在本次渲染里仍然缺少依赖该判定的控件。
1083
+ *
1084
+ * 驱动没有声明 `catalogFingerprint` 或当前读不到配置(返回 undefined)时保持
1085
+ * 原行为,不把「无法判断」当成「已变化」,避免目录退化成每次都重新探测。
1086
+ */
1087
+ invalidateOnCatalogFingerprintChange(adapterId, driver) {
1088
+ const fingerprint = readCatalogFingerprint(driver);
1089
+ if (fingerprint === undefined)
1090
+ return false;
1091
+ // 指纹在目录构建成功时写入,因此这里的旧值一定对应缓存里的那份目录。
1092
+ const previous = this.catalogFingerprints.get(adapterId);
1093
+ if (previous === undefined || previous === fingerprint)
1094
+ return false;
1095
+ debugInfo('dsh-agentdoor: cli catalog fingerprint changed', { adapterId });
1096
+ this.invalidateModelCache(adapterId);
1097
+ return true;
1098
+ }
1099
+ async refreshProviderState(record, force) {
1100
+ if (record.status === 'archived')
1101
+ return;
1102
+ if (!force && record.status === 'active')
1103
+ return;
1104
+ if (!force && isFreshProviderState(record.providerCheckedAt, this.providerProbeTtlMs))
1105
+ return;
1106
+ if (record.providerSessionId === undefined && record.rawStoreRef === undefined)
1107
+ return;
1108
+ const driver = this.drivers.get(record.adapterId);
1109
+ if (driver?.probeSession === undefined)
1110
+ return;
1111
+ const probeKey = providerProbeKey(record);
1112
+ const running = this.probes.get(probeKey);
1113
+ if (running !== undefined)
1114
+ return running;
1115
+ const probe = this.runProviderProbe(record, driver).finally(() => {
1116
+ if (this.probes.get(probeKey) === probe)
1117
+ this.probes.delete(probeKey);
1118
+ });
1119
+ this.probes.set(probeKey, probe);
1120
+ return probe;
1121
+ }
1122
+ async runProviderProbe(record, driver) {
1123
+ const input = {
1124
+ ...(record.providerSessionId ? { providerSessionId: record.providerSessionId } : {}),
1125
+ ...(record.rawStoreRef ? { rawStoreRef: record.rawStoreRef } : {}),
1126
+ ...(record.cwd ? { cwd: record.cwd } : {}),
1127
+ };
1128
+ let result;
1129
+ try {
1130
+ result = await this.probeWithTimeout(driver, input);
1131
+ if (result.state === 'missing') {
1132
+ await delay(this.missingConfirmationDelayMs);
1133
+ result = await this.probeWithTimeout(driver, input);
1134
+ }
1135
+ }
1136
+ catch (error) {
1137
+ result = {
1138
+ state: 'unknown',
1139
+ reason: `会话探测失败: ${error instanceof Error ? error.message : String(error)}`,
1140
+ };
1141
+ }
1142
+ // 探测期间绑定可能已经切换;旧结果不得覆盖新 Provider 会话。
1143
+ const current = this.sessionStore?.get(record.dshSessionId);
1144
+ if (current === undefined || current.adapterId !== record.adapterId)
1145
+ return;
1146
+ if (current.providerSessionId !== record.providerSessionId || current.rawStoreRef !== record.rawStoreRef)
1147
+ return;
1148
+ this.sessionStore?.updateProviderState(record.dshSessionId, {
1149
+ state: result.state,
1150
+ checkedAt: new Date().toISOString(),
1151
+ reason: result.reason,
1152
+ ...(result.rawStoreRef ? { rawStoreRef: result.rawStoreRef } : {}),
1153
+ });
1154
+ }
1155
+ async probeWithTimeout(driver, input) {
1156
+ const controller = new AbortController();
1157
+ let timer;
1158
+ const timeout = new Promise((resolve) => {
1159
+ timer = setTimeout(() => {
1160
+ controller.abort();
1161
+ resolve({ state: 'unreachable', reason: `Provider 会话探测超过 ${this.providerProbeTimeoutMs}ms` });
1162
+ }, this.providerProbeTimeoutMs);
1163
+ });
1164
+ try {
1165
+ return await Promise.race([
1166
+ driver.probeSession({ ...input, signal: controller.signal }),
1167
+ timeout,
1168
+ ]);
1169
+ }
1170
+ finally {
1171
+ if (timer !== undefined)
1172
+ clearTimeout(timer);
1173
+ }
1174
+ }
1175
+ requireDriver(adapterId) {
1176
+ const driver = this.drivers.get(adapterId);
1177
+ if (driver === undefined)
1178
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_UNAVAILABLE', `Agent 不可用: ${adapterId}`);
1179
+ return driver;
1180
+ }
1181
+ requireHistoryDriver(adapterId) {
1182
+ const driver = this.requireEnabledDriver(adapterId);
1183
+ if (typeof driver.detectSessions !== 'function'
1184
+ || typeof driver.detectSessionsDetailed !== 'function'
1185
+ || typeof driver.readSessionHistory !== 'function'
1186
+ || typeof driver.readSessionHistoryDelta !== 'function'
1187
+ || typeof driver.readSessionTitle !== 'function'
1188
+ || typeof driver.renameSessionTitle !== 'function'
1189
+ || typeof driver.updateSessionArchiveState !== 'function'
1190
+ || typeof driver.deleteSession !== 'function'
1191
+ || typeof driver.readContextUsage !== 'function'
1192
+ || typeof driver.readSessionStats !== 'function'
1193
+ || typeof driver.forkSession !== 'function'
1194
+ || typeof driver.startSession !== 'function'
1195
+ || typeof driver.resumeSession !== 'function'
1196
+ || typeof driver.sendMessage !== 'function') {
1197
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_UNSUPPORTED', `Agent 不支持 Provider History: ${adapterId}`);
1198
+ }
1199
+ return driver;
1200
+ }
1201
+ requireEnabledDriver(adapterId) {
1202
+ const driver = this.requireDriver(adapterId);
1203
+ if (!this.isEnabled(adapterId))
1204
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_DISABLED', `Agent 已停用: ${adapterId}`);
1205
+ return driver;
1206
+ }
1207
+ requireSession(sessionId) {
1208
+ const session = this.sessions.get(sessionId);
1209
+ if (session === undefined || session.adapterId === 'dsh')
1210
+ throw new AgentDoorRpcError('AGENT_DOOR_CLI_INVALID_SESSION', '会话未绑定外部 Agent');
1211
+ return session;
1212
+ }
1213
+ }
1214
+ function isFreshProviderState(checkedAt, ttlMs) {
1215
+ if (checkedAt === undefined || ttlMs <= 0)
1216
+ return false;
1217
+ const timestamp = Date.parse(checkedAt);
1218
+ return Number.isFinite(timestamp) && Date.now() - timestamp < ttlMs;
1219
+ }
1220
+ function providerProbeKey(record) {
1221
+ return JSON.stringify([
1222
+ record.dshSessionId,
1223
+ record.adapterId,
1224
+ record.providerSessionId ?? null,
1225
+ record.rawStoreRef ?? null,
1226
+ ]);
1227
+ }
1228
+ function delay(milliseconds) {
1229
+ return milliseconds <= 0 ? Promise.resolve() : new Promise((resolve) => setTimeout(resolve, milliseconds));
1230
+ }
1231
+ async function closeAgentIterator(iterator) {
1232
+ try {
1233
+ await iterator.return?.();
1234
+ }
1235
+ catch { /* 驱动清理失败不能阻断 Registry 释放 */ }
1236
+ }
1237
+ async function forEachConcurrent(values, concurrency, task) {
1238
+ let nextIndex = 0;
1239
+ const workerCount = Math.min(concurrency, values.length);
1240
+ const workers = Array.from({ length: workerCount }, async () => {
1241
+ while (nextIndex < values.length) {
1242
+ const index = nextIndex;
1243
+ nextIndex += 1;
1244
+ await task(values[index]);
1245
+ }
1246
+ });
1247
+ await Promise.all(workers);
1248
+ }
1249
+ function detectionFingerprint(detection) {
1250
+ return JSON.stringify([detection.installed, detection.runtimeState, detection.command, detection.version, detection.diagnostic]);
1251
+ }
1252
+ /**
1253
+ * 读取驱动的 Provider 配置指纹。
1254
+ *
1255
+ * 驱动未声明该方法、抛错或返回空白时一律视为「无法判断」,调用方不得据此失效
1256
+ * 缓存——指纹只是让配置变化立刻生效的加速手段,不能成为目录可用的前提。
1257
+ */
1258
+ function readCatalogFingerprint(driver) {
1259
+ const read = driver.catalogFingerprint;
1260
+ if (read === undefined)
1261
+ return undefined;
1262
+ try {
1263
+ const value = read.call(driver);
1264
+ return typeof value === 'string' && value.trim() !== '' ? value : undefined;
1265
+ }
1266
+ catch {
1267
+ return undefined;
1268
+ }
1269
+ }
1270
+ function catalogHasModels(catalog) {
1271
+ return catalog.fallback !== true && catalog.groups.some((group) => group.models.length > 0);
1272
+ }
1273
+ function mergePreferenceRecords(legacy, configured) {
1274
+ const merged = {};
1275
+ for (const [adapterId, preference] of Object.entries(legacy)) {
1276
+ const normalized = normalizePreference(preference);
1277
+ if (normalized !== undefined)
1278
+ merged[adapterId] = normalized;
1279
+ }
1280
+ for (const [adapterId, preference] of Object.entries(configured ?? {})) {
1281
+ const normalized = normalizePreference(preference);
1282
+ if (normalized === undefined)
1283
+ continue;
1284
+ merged[adapterId] = { ...merged[adapterId], ...normalized };
1285
+ }
1286
+ return merged;
1287
+ }
1288
+ function normalizePreference(value) {
1289
+ if (value === undefined)
1290
+ return undefined;
1291
+ const modelId = value.modelId?.trim();
1292
+ const effortId = value.effortId?.trim();
1293
+ const serviceTierId = value.serviceTierId?.trim();
1294
+ if (modelId === undefined && effortId === undefined && serviceTierId === undefined && value.translationEnabled === undefined && value.nativeApprovalMode === undefined)
1295
+ return undefined;
1296
+ return {
1297
+ ...(modelId ? { modelId } : {}),
1298
+ ...(effortId ? { effortId } : {}),
1299
+ ...(serviceTierId ? { serviceTierId } : {}),
1300
+ ...(value.translationEnabled === undefined ? {} : { translationEnabled: value.translationEnabled }),
1301
+ ...(value.nativeApprovalMode === undefined ? {} : { nativeApprovalMode: value.nativeApprovalMode }),
1302
+ };
1303
+ }
1304
+ function hasMissingPreferences(configured, legacy) {
1305
+ for (const [adapterId, legacyPreference] of Object.entries(legacy)) {
1306
+ const current = configured?.[adapterId];
1307
+ if (legacyPreference.modelId !== undefined && !hasText(current?.modelId))
1308
+ return true;
1309
+ if (legacyPreference.effortId !== undefined && !hasText(current?.effortId))
1310
+ return true;
1311
+ if (legacyPreference.serviceTierId !== undefined && !hasText(current?.serviceTierId))
1312
+ return true;
1313
+ if (legacyPreference.translationEnabled !== undefined && current?.translationEnabled === undefined)
1314
+ return true;
1315
+ }
1316
+ return false;
1317
+ }
1318
+ function hasText(value) {
1319
+ return value?.trim() !== '' && value !== undefined;
1320
+ }
1321
+ function preferenceSnapshot(preferences) {
1322
+ return Object.fromEntries([...preferences.entries()].map(([adapterId, preference]) => [adapterId, { ...preference }]));
1323
+ }
1324
+ /** Overlay DSH's current native route so subscription checks use the selected model. */
1325
+ function mergeDshNativeSelection(config, session, currentSelection) {
1326
+ if (config.adapterId !== 'dsh')
1327
+ return config;
1328
+ const root = asRecord(session);
1329
+ const rows = asRecord(root?.record)?.rows;
1330
+ const selectionRow = asRecord(asRecord(rows)?.modelSelection);
1331
+ const selection = asRecord(currentSelection) ?? asRecord(root?.modelSelection) ?? selectionRow;
1332
+ const value = asRecord(selection?.val) ?? selection;
1333
+ const lastUsed = asRecord(value?.lastUsed);
1334
+ const next = asRecord(value?.next);
1335
+ const pending = asRecord(value?.pending);
1336
+ const direct = stringValue(value?.provider) !== undefined && stringValue(value?.model) !== undefined ? value : undefined;
1337
+ // Prefer the explicit pending/next route; lastUsed can describe a previous
1338
+ // model until DSH consumes the newly selected one.
1339
+ const candidate = direct ?? pending ?? next ?? lastUsed;
1340
+ if (candidate === null)
1341
+ return config;
1342
+ const providerId = stringValue(candidate.provider);
1343
+ const modelId = stringValue(candidate.model);
1344
+ const effortId = stringValue(candidate.reasoningEffort);
1345
+ return {
1346
+ ...config,
1347
+ ...(providerId === undefined ? {} : { providerId }),
1348
+ ...(modelId === undefined ? {} : { modelId }),
1349
+ ...(effortId === undefined ? {} : { effortId }),
1350
+ };
1351
+ }
1352
+ /** 以内存配置为主、用持久化记录补齐 Provider 续接所需的身份字段。 */
1353
+ function mergeStoredSessionFields(config, stored) {
1354
+ if (stored === undefined || stored.adapterId !== config.adapterId)
1355
+ return config;
1356
+ return {
1357
+ ...config,
1358
+ ...(config.providerSessionId === undefined && stored.providerSessionId !== undefined ? { providerSessionId: stored.providerSessionId } : {}),
1359
+ ...(config.rawStoreRef === undefined && stored.rawStoreRef !== undefined ? { rawStoreRef: stored.rawStoreRef } : {}),
1360
+ ...(config.modelId === undefined && stored.modelId !== undefined ? { modelId: stored.modelId } : {}),
1361
+ ...(config.effortId === undefined && stored.effortId !== undefined ? { effortId: stored.effortId } : {}),
1362
+ ...(config.serviceTierId === undefined && stored.serviceTierId !== undefined ? { serviceTierId: stored.serviceTierId } : {}),
1363
+ ...(config.translationEnabled === undefined && stored.translationEnabled !== undefined ? { translationEnabled: stored.translationEnabled } : {}),
1364
+ };
1365
+ }
1366
+ function withTurnPermission(input, permission) {
1367
+ const { permission: _refreshed, ...rest } = input;
1368
+ return permission === undefined ? rest : { ...rest, permission: { ...permission } };
1369
+ }
1370
+ function withCodexContextWindow(input, adapterId) {
1371
+ if (adapterId !== 'codex')
1372
+ return input;
1373
+ const supplied = input.modelContextWindow;
1374
+ const contextWindow = typeof supplied === 'number' && Number.isSafeInteger(supplied) && supplied > 0
1375
+ ? supplied
1376
+ : knownCodexContextWindow(input.modelId);
1377
+ return contextWindow === undefined ? input : { ...input, modelContextWindow: contextWindow };
1378
+ }
1379
+ function usageSnapshot(event) {
1380
+ return {
1381
+ inputTokens: event.inputTokens,
1382
+ outputTokens: event.outputTokens,
1383
+ ...(event.totalTokens === undefined ? {} : { totalTokens: event.totalTokens }),
1384
+ ...(event.contextWindow === undefined ? {} : { contextWindow: event.contextWindow }),
1385
+ ...(event.contextTokens === undefined ? {} : { contextTokens: event.contextTokens }),
1386
+ ...(event.contextUsageRatio === undefined ? {} : { contextUsageRatio: event.contextUsageRatio }),
1387
+ ...(event.providerCredits === undefined ? {} : { providerCredits: event.providerCredits }),
1388
+ capturedAt: Date.now(),
1389
+ };
1390
+ }
1391
+ function lastUsageField(usage) {
1392
+ return usage === undefined ? {} : { lastUsage: usage };
1393
+ }
1394
+ function asRecord(value) {
1395
+ return typeof value === 'object' && value !== null && !Array.isArray(value) ? value : null;
1396
+ }
1397
+ function stringValue(value) {
1398
+ return typeof value === 'string' && value.trim() !== '' ? value.trim() : undefined;
1399
+ }
1400
+ function unrefTimer(timer) {
1401
+ const nodeTimer = timer;
1402
+ nodeTimer.unref?.();
1403
+ }
1404
+ /** 短暂探测失败保留最后一次成功入口,失败原因始终来自本次探测。 */
1405
+ function detectionError(reason, previous, diagnostic) {
1406
+ return {
1407
+ ...failedDetection(reason),
1408
+ ...(previous?.installed ? { installed: true, version: previous.version, command: previous.command } : {}),
1409
+ ...(diagnostic === undefined ? {} : { diagnostic }),
1410
+ };
1411
+ }
1412
+ //# sourceMappingURL=registry.js.map