@jingyi0605/codingns4dsh 0.2.1-beta.8 → 0.2.1-rc.2

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 (938) hide show
  1. package/README.en.md +8 -6
  2. package/README.md +14 -7
  3. package/assets/provider-icons/magpie.png +0 -0
  4. package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts +1 -1
  5. package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts.map +1 -1
  6. package/data/build/dist/bootstrap/dsh-peer-host-preboot-shim.d.ts.map +1 -1
  7. package/data/build/dist/bootstrap/dsh-peer-host-preboot-shim.js +26 -1
  8. package/data/build/dist/bootstrap/dsh-peer-host-preboot-shim.js.map +1 -1
  9. package/data/build/dist/bootstrap/index.d.ts +1 -1
  10. package/data/build/dist/bootstrap/index.d.ts.map +1 -1
  11. package/data/build/dist/client/account-bar.d.ts.map +1 -1
  12. package/data/build/dist/client/account-bar.js +57 -91
  13. package/data/build/dist/client/account-bar.js.map +1 -1
  14. package/data/build/dist/client/adapter-catalog-watch.d.ts +10 -2
  15. package/data/build/dist/client/adapter-catalog-watch.d.ts.map +1 -1
  16. package/data/build/dist/client/adapter-catalog-watch.js +16 -4
  17. package/data/build/dist/client/adapter-catalog-watch.js.map +1 -1
  18. package/data/build/dist/client/avatar/desktop-bridge.js +1 -1
  19. package/data/build/dist/client/avatar/desktop-bridge.js.map +1 -1
  20. package/data/build/dist/client/avatar/desktop-view.d.ts +3 -1
  21. package/data/build/dist/client/avatar/desktop-view.d.ts.map +1 -1
  22. package/data/build/dist/client/avatar/desktop-view.js +31 -12
  23. package/data/build/dist/client/avatar/desktop-view.js.map +1 -1
  24. package/data/build/dist/client/avatar/notification-bubble.d.ts +7 -1
  25. package/data/build/dist/client/avatar/notification-bubble.d.ts.map +1 -1
  26. package/data/build/dist/client/avatar/notification-bubble.js +68 -33
  27. package/data/build/dist/client/avatar/notification-bubble.js.map +1 -1
  28. package/data/build/dist/client/bundle.js +54814 -34268
  29. package/data/build/dist/client/bundle.js.map +1 -1
  30. package/data/build/dist/client/cli-management-dialog.d.ts +21 -0
  31. package/data/build/dist/client/cli-management-dialog.d.ts.map +1 -0
  32. package/data/build/dist/client/cli-management-dialog.js +215 -0
  33. package/data/build/dist/client/cli-management-dialog.js.map +1 -0
  34. package/data/build/dist/client/cli-management-terminal.d.ts +9 -0
  35. package/data/build/dist/client/cli-management-terminal.d.ts.map +1 -0
  36. package/data/build/dist/client/cli-management-terminal.js +30 -0
  37. package/data/build/dist/client/cli-management-terminal.js.map +1 -0
  38. package/data/build/dist/client/cli-settings-dialog.d.ts +9 -0
  39. package/data/build/dist/client/cli-settings-dialog.d.ts.map +1 -0
  40. package/data/build/dist/client/cli-settings-dialog.js +45 -0
  41. package/data/build/dist/client/cli-settings-dialog.js.map +1 -0
  42. package/data/build/dist/client/cli-settings-rpc.js +1 -1
  43. package/data/build/dist/client/cli-settings-rpc.js.map +1 -1
  44. package/data/build/dist/client/cli-slots.d.ts +17 -3
  45. package/data/build/dist/client/cli-slots.d.ts.map +1 -1
  46. package/data/build/dist/client/cli-slots.js +321 -38
  47. package/data/build/dist/client/cli-slots.js.map +1 -1
  48. package/data/build/dist/client/client.assistant-configuration-view.js +4 -3
  49. package/data/build/dist/client/client.assistant-configuration-view.js.map +1 -1
  50. package/data/build/dist/client/client.assistant-notifications.js.map +1 -1
  51. package/data/build/dist/client/client.delegate-command.js +50 -32
  52. package/data/build/dist/client/client.delegate-command.js.map +1 -1
  53. package/data/build/dist/client/client.editor-engine.js +4 -1
  54. package/data/build/dist/client/client.editor-engine.js.map +1 -1
  55. package/data/build/dist/client/{client.model-catalog-cache.js → client.magpie-model-tag.js} +241 -12
  56. package/data/build/dist/client/client.magpie-model-tag.js.map +1 -0
  57. package/data/build/dist/client/client.moss-voice-output.js +415 -0
  58. package/data/build/dist/client/client.moss-voice-output.js.map +1 -0
  59. package/data/build/dist/client/client.native-workspace-store.js +103 -17
  60. package/data/build/dist/client/client.native-workspace-store.js.map +1 -1
  61. package/data/build/dist/client/client.primitives-adapter.js +128 -0
  62. package/data/build/dist/client/client.primitives-adapter.js.map +1 -1
  63. package/data/build/dist/client/client.react-dom.js +0 -404
  64. package/data/build/dist/client/client.react-dom.js.map +1 -1
  65. package/data/build/dist/client/client.session-translation.js +173 -0
  66. package/data/build/dist/client/client.session-translation.js.map +1 -0
  67. package/data/build/dist/client/client.transport.js +813 -48
  68. package/data/build/dist/client/client.transport.js.map +1 -1
  69. package/data/build/dist/client/conversation-translation-settings.d.ts +11 -0
  70. package/data/build/dist/client/conversation-translation-settings.d.ts.map +1 -0
  71. package/data/build/dist/client/conversation-translation-settings.js +54 -0
  72. package/data/build/dist/client/conversation-translation-settings.js.map +1 -0
  73. package/data/build/dist/client/delegate-command.d.ts.map +1 -1
  74. package/data/build/dist/client/delegate-command.js +36 -7
  75. package/data/build/dist/client/delegate-command.js.map +1 -1
  76. package/data/build/dist/client/desktop-assistant.js +1408 -544
  77. package/data/build/dist/client/editor-engine.d.ts +1 -1
  78. package/data/build/dist/client/editor-engine.d.ts.map +1 -1
  79. package/data/build/dist/client/editor-engine.js +4 -1
  80. package/data/build/dist/client/editor-engine.js.map +1 -1
  81. package/data/build/dist/client/features/assistant-notification-store.d.ts +1 -1
  82. package/data/build/dist/client/features/assistant-notification-store.d.ts.map +1 -1
  83. package/data/build/dist/client/features/assistant-notification-store.js +1 -1
  84. package/data/build/dist/client/features/assistant-notification-store.js.map +1 -1
  85. package/data/build/dist/client/features/cli-adapters.d.ts +3 -1
  86. package/data/build/dist/client/features/cli-adapters.d.ts.map +1 -1
  87. package/data/build/dist/client/features/cli-adapters.js +207 -112
  88. package/data/build/dist/client/features/cli-adapters.js.map +1 -1
  89. package/data/build/dist/client/features/file-management.d.ts.map +1 -1
  90. package/data/build/dist/client/features/file-management.js +18 -0
  91. package/data/build/dist/client/features/file-management.js.map +1 -1
  92. package/data/build/dist/client/features/global-voice-assistant.d.ts.map +1 -1
  93. package/data/build/dist/client/features/global-voice-assistant.js +12 -6
  94. package/data/build/dist/client/features/global-voice-assistant.js.map +1 -1
  95. package/data/build/dist/client/features/index.d.ts +1 -0
  96. package/data/build/dist/client/features/index.d.ts.map +1 -1
  97. package/data/build/dist/client/features/index.js +5 -0
  98. package/data/build/dist/client/features/index.js.map +1 -1
  99. package/data/build/dist/client/features/lan-access-panel.d.ts.map +1 -1
  100. package/data/build/dist/client/features/lan-access-panel.js +1 -0
  101. package/data/build/dist/client/features/lan-access-panel.js.map +1 -1
  102. package/data/build/dist/client/features/mobile-access.d.ts.map +1 -1
  103. package/data/build/dist/client/features/mobile-access.js +7 -0
  104. package/data/build/dist/client/features/mobile-access.js.map +1 -1
  105. package/data/build/dist/client/features/peer-host.d.ts.map +1 -1
  106. package/data/build/dist/client/features/peer-host.js +105 -17
  107. package/data/build/dist/client/features/peer-host.js.map +1 -1
  108. package/data/build/dist/client/features/quick-apps.d.ts +3 -0
  109. package/data/build/dist/client/features/quick-apps.d.ts.map +1 -0
  110. package/data/build/dist/client/features/quick-apps.js +14 -0
  111. package/data/build/dist/client/features/quick-apps.js.map +1 -0
  112. package/data/build/dist/client/features/session-translation.d.ts +3 -0
  113. package/data/build/dist/client/features/session-translation.d.ts.map +1 -0
  114. package/data/build/dist/client/features/session-translation.js +117 -0
  115. package/data/build/dist/client/features/session-translation.js.map +1 -0
  116. package/data/build/dist/client/features/workspace-session-enhancement.d.ts.map +1 -1
  117. package/data/build/dist/client/features/workspace-session-enhancement.js +6 -0
  118. package/data/build/dist/client/features/workspace-session-enhancement.js.map +1 -1
  119. package/data/build/dist/client/file-management-dom.d.ts +20 -1
  120. package/data/build/dist/client/file-management-dom.d.ts.map +1 -1
  121. package/data/build/dist/client/file-management-dom.js +94 -18
  122. package/data/build/dist/client/file-management-dom.js.map +1 -1
  123. package/data/build/dist/client/file-viewer-copy-path-menu.d.ts +27 -0
  124. package/data/build/dist/client/file-viewer-copy-path-menu.d.ts.map +1 -0
  125. package/data/build/dist/client/file-viewer-copy-path-menu.js +101 -0
  126. package/data/build/dist/client/file-viewer-copy-path-menu.js.map +1 -0
  127. package/data/build/dist/client/git-management-settings.d.ts +4 -0
  128. package/data/build/dist/client/git-management-settings.d.ts.map +1 -0
  129. package/data/build/dist/client/git-management-settings.js +73 -0
  130. package/data/build/dist/client/git-management-settings.js.map +1 -0
  131. package/data/build/dist/client/git-management.d.ts +2 -1
  132. package/data/build/dist/client/git-management.d.ts.map +1 -1
  133. package/data/build/dist/client/git-management.js +55 -34
  134. package/data/build/dist/client/git-management.js.map +1 -1
  135. package/data/build/dist/client/git-panel-styles.d.ts +4 -0
  136. package/data/build/dist/client/git-panel-styles.d.ts.map +1 -1
  137. package/data/build/dist/client/git-panel-styles.js +14 -0
  138. package/data/build/dist/client/git-panel-styles.js.map +1 -1
  139. package/data/build/dist/client/html-workspace-files.d.ts +4 -0
  140. package/data/build/dist/client/html-workspace-files.d.ts.map +1 -0
  141. package/data/build/dist/client/html-workspace-files.js +114 -0
  142. package/data/build/dist/client/html-workspace-files.js.map +1 -0
  143. package/data/build/dist/client/index.d.ts.map +1 -1
  144. package/data/build/dist/client/index.js +6 -1
  145. package/data/build/dist/client/index.js.map +1 -1
  146. package/data/build/dist/client/locale.d.ts.map +1 -1
  147. package/data/build/dist/client/locale.js +22 -2
  148. package/data/build/dist/client/locale.js.map +1 -1
  149. package/data/build/dist/client/locales/cliManagement.d.ts +3 -0
  150. package/data/build/dist/client/locales/cliManagement.d.ts.map +1 -0
  151. package/data/build/dist/client/locales/cliManagement.js +155 -0
  152. package/data/build/dist/client/locales/cliManagement.js.map +1 -0
  153. package/data/build/dist/client/locales/fileWorkspace.d.ts.map +1 -1
  154. package/data/build/dist/client/locales/fileWorkspace.js +8 -0
  155. package/data/build/dist/client/locales/fileWorkspace.js.map +1 -1
  156. package/data/build/dist/client/locales/git.d.ts.map +1 -1
  157. package/data/build/dist/client/locales/git.js +30 -2
  158. package/data/build/dist/client/locales/git.js.map +1 -1
  159. package/data/build/dist/client/locales/panels.d.ts.map +1 -1
  160. package/data/build/dist/client/locales/panels.js +154 -0
  161. package/data/build/dist/client/locales/panels.js.map +1 -1
  162. package/data/build/dist/client/locales/peerHost.d.ts.map +1 -1
  163. package/data/build/dist/client/locales/peerHost.js +2 -0
  164. package/data/build/dist/client/locales/peerHost.js.map +1 -1
  165. package/data/build/dist/client/locales/quickApps.d.ts +136 -0
  166. package/data/build/dist/client/locales/quickApps.d.ts.map +1 -0
  167. package/data/build/dist/client/locales/quickApps.js +162 -0
  168. package/data/build/dist/client/locales/quickApps.js.map +1 -0
  169. package/data/build/dist/client/locales/usage.d.ts.map +1 -1
  170. package/data/build/dist/client/locales/usage.js +98 -0
  171. package/data/build/dist/client/locales/usage.js.map +1 -1
  172. package/data/build/dist/client/magpie-model-tag.d.ts +8 -0
  173. package/data/build/dist/client/magpie-model-tag.d.ts.map +1 -0
  174. package/data/build/dist/client/magpie-model-tag.js +50 -0
  175. package/data/build/dist/client/magpie-model-tag.js.map +1 -0
  176. package/data/build/dist/client/mobile-team-panel-dom.d.ts +14 -0
  177. package/data/build/dist/client/mobile-team-panel-dom.d.ts.map +1 -0
  178. package/data/build/dist/client/mobile-team-panel-dom.js +164 -0
  179. package/data/build/dist/client/mobile-team-panel-dom.js.map +1 -0
  180. package/data/build/dist/client/model-catalog-cache.d.ts.map +1 -1
  181. package/data/build/dist/client/model-catalog-cache.js +66 -12
  182. package/data/build/dist/client/model-catalog-cache.js.map +1 -1
  183. package/data/build/dist/client/model-priority-pool.d.ts +23 -0
  184. package/data/build/dist/client/model-priority-pool.d.ts.map +1 -0
  185. package/data/build/dist/client/model-priority-pool.js +245 -0
  186. package/data/build/dist/client/model-priority-pool.js.map +1 -0
  187. package/data/build/dist/client/native-model-translation-menu.d.ts +13 -0
  188. package/data/build/dist/client/native-model-translation-menu.d.ts.map +1 -0
  189. package/data/build/dist/client/native-model-translation-menu.js +159 -0
  190. package/data/build/dist/client/native-model-translation-menu.js.map +1 -0
  191. package/data/build/dist/client/native-translation-default.d.ts +6 -0
  192. package/data/build/dist/client/native-translation-default.d.ts.map +1 -0
  193. package/data/build/dist/client/native-translation-default.js +30 -0
  194. package/data/build/dist/client/native-translation-default.js.map +1 -0
  195. package/data/build/dist/client/provider-icons.d.ts.map +1 -1
  196. package/data/build/dist/client/provider-icons.js +3 -1
  197. package/data/build/dist/client/provider-icons.js.map +1 -1
  198. package/data/build/dist/client/quick-apps/browser-storage.d.ts +24 -0
  199. package/data/build/dist/client/quick-apps/browser-storage.d.ts.map +1 -0
  200. package/data/build/dist/client/quick-apps/browser-storage.js +114 -0
  201. package/data/build/dist/client/quick-apps/browser-storage.js.map +1 -0
  202. package/data/build/dist/client/quick-apps/client.d.ts +31 -0
  203. package/data/build/dist/client/quick-apps/client.d.ts.map +1 -0
  204. package/data/build/dist/client/quick-apps/client.js +68 -0
  205. package/data/build/dist/client/quick-apps/client.js.map +1 -0
  206. package/data/build/dist/client/quick-apps/document.d.ts +26 -0
  207. package/data/build/dist/client/quick-apps/document.d.ts.map +1 -0
  208. package/data/build/dist/client/quick-apps/document.js +110 -0
  209. package/data/build/dist/client/quick-apps/document.js.map +1 -0
  210. package/data/build/dist/client/quick-apps/file-picker.d.ts +14 -0
  211. package/data/build/dist/client/quick-apps/file-picker.d.ts.map +1 -0
  212. package/data/build/dist/client/quick-apps/file-picker.js +51 -0
  213. package/data/build/dist/client/quick-apps/file-picker.js.map +1 -0
  214. package/data/build/dist/client/quick-apps/launcher.d.ts +7 -0
  215. package/data/build/dist/client/quick-apps/launcher.d.ts.map +1 -0
  216. package/data/build/dist/client/quick-apps/launcher.js +267 -0
  217. package/data/build/dist/client/quick-apps/launcher.js.map +1 -0
  218. package/data/build/dist/client/quick-apps/presentation.d.ts +16 -0
  219. package/data/build/dist/client/quick-apps/presentation.d.ts.map +1 -0
  220. package/data/build/dist/client/quick-apps/presentation.js +47 -0
  221. package/data/build/dist/client/quick-apps/presentation.js.map +1 -0
  222. package/data/build/dist/client/quick-apps/rail-preference.d.ts +5 -0
  223. package/data/build/dist/client/quick-apps/rail-preference.d.ts.map +1 -0
  224. package/data/build/dist/client/quick-apps/rail-preference.js +19 -0
  225. package/data/build/dist/client/quick-apps/rail-preference.js.map +1 -0
  226. package/data/build/dist/client/quick-apps/reorder-animation.d.ts +6 -0
  227. package/data/build/dist/client/quick-apps/reorder-animation.d.ts.map +1 -0
  228. package/data/build/dist/client/quick-apps/reorder-animation.js +50 -0
  229. package/data/build/dist/client/quick-apps/reorder-animation.js.map +1 -0
  230. package/data/build/dist/client/quick-apps/reorder.d.ts +26 -0
  231. package/data/build/dist/client/quick-apps/reorder.d.ts.map +1 -0
  232. package/data/build/dist/client/quick-apps/reorder.js +128 -0
  233. package/data/build/dist/client/quick-apps/reorder.js.map +1 -0
  234. package/data/build/dist/client/quick-apps/styles.d.ts +3 -0
  235. package/data/build/dist/client/quick-apps/styles.d.ts.map +1 -0
  236. package/data/build/dist/client/quick-apps/styles.js +153 -0
  237. package/data/build/dist/client/quick-apps/styles.js.map +1 -0
  238. package/data/build/dist/client/quick-apps/ui.d.ts +20 -0
  239. package/data/build/dist/client/quick-apps/ui.d.ts.map +1 -0
  240. package/data/build/dist/client/quick-apps/ui.js +21 -0
  241. package/data/build/dist/client/quick-apps/ui.js.map +1 -0
  242. package/data/build/dist/client/quick-apps/viewer.d.ts +16 -0
  243. package/data/build/dist/client/quick-apps/viewer.d.ts.map +1 -0
  244. package/data/build/dist/client/quick-apps/viewer.js +165 -0
  245. package/data/build/dist/client/quick-apps/viewer.js.map +1 -0
  246. package/data/build/dist/client/quick-apps/workspace-picker.d.ts +19 -0
  247. package/data/build/dist/client/quick-apps/workspace-picker.d.ts.map +1 -0
  248. package/data/build/dist/client/quick-apps/workspace-picker.js +30 -0
  249. package/data/build/dist/client/quick-apps/workspace-picker.js.map +1 -0
  250. package/data/build/dist/client/session-file-links.d.ts +11 -0
  251. package/data/build/dist/client/session-file-links.d.ts.map +1 -0
  252. package/data/build/dist/client/{peer-host-file-links.js → session-file-links.js} +13 -3
  253. package/data/build/dist/client/session-file-links.js.map +1 -0
  254. package/data/build/dist/client/session-translation-chat.d.ts +72 -0
  255. package/data/build/dist/client/session-translation-chat.d.ts.map +1 -0
  256. package/data/build/dist/client/session-translation-chat.js +874 -0
  257. package/data/build/dist/client/session-translation-chat.js.map +1 -0
  258. package/data/build/dist/client/session-translation-interactions.d.ts +31 -0
  259. package/data/build/dist/client/session-translation-interactions.d.ts.map +1 -0
  260. package/data/build/dist/client/session-translation-interactions.js +158 -0
  261. package/data/build/dist/client/session-translation-interactions.js.map +1 -0
  262. package/data/build/dist/client/session-translation-pending-dom.d.ts +8 -0
  263. package/data/build/dist/client/session-translation-pending-dom.d.ts.map +1 -0
  264. package/data/build/dist/client/session-translation-pending-dom.js +58 -0
  265. package/data/build/dist/client/session-translation-pending-dom.js.map +1 -0
  266. package/data/build/dist/client/session-translation-retry.d.ts +16 -0
  267. package/data/build/dist/client/session-translation-retry.d.ts.map +1 -0
  268. package/data/build/dist/client/session-translation-retry.js +66 -0
  269. package/data/build/dist/client/session-translation-retry.js.map +1 -0
  270. package/data/build/dist/client/session-translation-rules.d.ts +13 -0
  271. package/data/build/dist/client/session-translation-rules.d.ts.map +1 -0
  272. package/data/build/dist/client/session-translation-rules.js +58 -0
  273. package/data/build/dist/client/session-translation-rules.js.map +1 -0
  274. package/data/build/dist/client/sidebar-footer-style.d.ts +13 -0
  275. package/data/build/dist/client/sidebar-footer-style.d.ts.map +1 -0
  276. package/data/build/dist/client/sidebar-footer-style.js +54 -0
  277. package/data/build/dist/client/sidebar-footer-style.js.map +1 -0
  278. package/data/build/dist/client/style.css +276 -276
  279. package/data/build/dist/client/subscription-slot.d.ts +6 -2
  280. package/data/build/dist/client/subscription-slot.d.ts.map +1 -1
  281. package/data/build/dist/client/subscription-slot.js +373 -21
  282. package/data/build/dist/client/subscription-slot.js.map +1 -1
  283. package/data/build/dist/client/terminal/model.d.ts.map +1 -1
  284. package/data/build/dist/client/terminal/model.js +2 -1
  285. package/data/build/dist/client/terminal/model.js.map +1 -1
  286. package/data/build/dist/client/workspace-session-archive-dom.d.ts +1 -0
  287. package/data/build/dist/client/workspace-session-archive-dom.d.ts.map +1 -1
  288. package/data/build/dist/client/workspace-session-archive-dom.js +68 -8
  289. package/data/build/dist/client/workspace-session-archive-dom.js.map +1 -1
  290. package/data/build/dist/client/workspace-session-rightbar-dom.d.ts.map +1 -1
  291. package/data/build/dist/client/workspace-session-rightbar-dom.js +12 -21
  292. package/data/build/dist/client/workspace-session-rightbar-dom.js.map +1 -1
  293. package/data/build/dist/client/workspace-session-visibility-dom.d.ts +3 -0
  294. package/data/build/dist/client/workspace-session-visibility-dom.d.ts.map +1 -1
  295. package/data/build/dist/client/workspace-session-visibility-dom.js +66 -17
  296. package/data/build/dist/client/workspace-session-visibility-dom.js.map +1 -1
  297. package/data/build/dist/dsh-capabilities/client/assistant-session-navigation-adapter.d.ts +1 -1
  298. package/data/build/dist/dsh-capabilities/client/assistant-session-navigation-adapter.d.ts.map +1 -1
  299. package/data/build/dist/dsh-capabilities/client/assistant-session-navigation-adapter.js +28 -2
  300. package/data/build/dist/dsh-capabilities/client/assistant-session-navigation-adapter.js.map +1 -1
  301. package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.d.ts +8 -0
  302. package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.d.ts.map +1 -0
  303. package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.js +71 -0
  304. package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.js.map +1 -0
  305. package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.d.ts +4 -0
  306. package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.d.ts.map +1 -0
  307. package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.js +8 -0
  308. package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.js.map +1 -0
  309. package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.d.ts +30 -0
  310. package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.d.ts.map +1 -0
  311. package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.js +93 -0
  312. package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.js.map +1 -0
  313. package/data/build/dist/dsh-capabilities/client/interaction-text-dom.d.ts +12 -0
  314. package/data/build/dist/dsh-capabilities/client/interaction-text-dom.d.ts.map +1 -0
  315. package/data/build/dist/dsh-capabilities/client/interaction-text-dom.js +181 -0
  316. package/data/build/dist/dsh-capabilities/client/interaction-text-dom.js.map +1 -0
  317. package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.d.ts +19 -0
  318. package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.d.ts.map +1 -0
  319. package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.js +39 -0
  320. package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.js.map +1 -0
  321. package/data/build/dist/dsh-capabilities/client/peer-host-attachment-adapter.d.ts +3 -0
  322. package/data/build/dist/dsh-capabilities/client/peer-host-attachment-adapter.d.ts.map +1 -0
  323. package/data/build/dist/dsh-capabilities/client/peer-host-attachment-adapter.js +27 -0
  324. package/data/build/dist/dsh-capabilities/client/peer-host-attachment-adapter.js.map +1 -0
  325. package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts +36 -0
  326. package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts.map +1 -1
  327. package/data/build/dist/dsh-capabilities/client/primitives-adapter.js +88 -0
  328. package/data/build/dist/dsh-capabilities/client/primitives-adapter.js.map +1 -1
  329. package/data/build/dist/dsh-capabilities/client/question-history-adapter.d.ts +20 -0
  330. package/data/build/dist/dsh-capabilities/client/question-history-adapter.d.ts.map +1 -0
  331. package/data/build/dist/dsh-capabilities/client/question-history-adapter.js +65 -0
  332. package/data/build/dist/dsh-capabilities/client/question-history-adapter.js.map +1 -0
  333. package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.d.ts +18 -0
  334. package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.d.ts.map +1 -0
  335. package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.js +11 -0
  336. package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.js.map +1 -0
  337. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts +9 -0
  338. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts.map +1 -0
  339. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js +75 -0
  340. package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js.map +1 -0
  341. package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.d.ts +3 -0
  342. package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.d.ts.map +1 -0
  343. package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.js +22 -0
  344. package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.js.map +1 -0
  345. package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.d.ts +32 -0
  346. package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.d.ts.map +1 -0
  347. package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.js +90 -0
  348. package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.js.map +1 -0
  349. package/data/build/dist/dsh-capabilities/host/agent-team-adapter.d.ts +52 -0
  350. package/data/build/dist/dsh-capabilities/host/agent-team-adapter.d.ts.map +1 -0
  351. package/data/build/dist/dsh-capabilities/host/agent-team-adapter.js +109 -0
  352. package/data/build/dist/dsh-capabilities/host/agent-team-adapter.js.map +1 -0
  353. package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.d.ts +10 -0
  354. package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.d.ts.map +1 -0
  355. package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.js +34 -0
  356. package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.js.map +1 -0
  357. package/data/build/dist/dsh-capabilities/host/native-dispatch-adapter.d.ts +21 -0
  358. package/data/build/dist/dsh-capabilities/host/native-dispatch-adapter.d.ts.map +1 -0
  359. package/data/build/dist/dsh-capabilities/host/native-dispatch-adapter.js +11 -0
  360. package/data/build/dist/dsh-capabilities/host/native-dispatch-adapter.js.map +1 -0
  361. package/data/build/dist/dsh-capabilities/host/quick-app-credentials.d.ts +11 -0
  362. package/data/build/dist/dsh-capabilities/host/quick-app-credentials.d.ts.map +1 -0
  363. package/data/build/dist/dsh-capabilities/host/quick-app-credentials.js +97 -0
  364. package/data/build/dist/dsh-capabilities/host/quick-app-credentials.js.map +1 -0
  365. package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.d.ts +36 -0
  366. package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.d.ts.map +1 -0
  367. package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.js +164 -0
  368. package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.js.map +1 -0
  369. package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.d.ts +44 -0
  370. package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.d.ts.map +1 -0
  371. package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.js +240 -0
  372. package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.js.map +1 -0
  373. package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.d.ts +37 -0
  374. package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.d.ts.map +1 -0
  375. package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.js +35 -0
  376. package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.js.map +1 -0
  377. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.d.ts +13 -0
  378. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.d.ts.map +1 -0
  379. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.js +30 -0
  380. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.js.map +1 -0
  381. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.d.ts +21 -0
  382. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.d.ts.map +1 -0
  383. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.js +132 -0
  384. package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.js.map +1 -0
  385. package/data/build/dist/dsh-capabilities/host/quick-app-transport.d.ts +10 -0
  386. package/data/build/dist/dsh-capabilities/host/quick-app-transport.d.ts.map +1 -0
  387. package/data/build/dist/dsh-capabilities/host/quick-app-transport.js +33 -0
  388. package/data/build/dist/dsh-capabilities/host/quick-app-transport.js.map +1 -0
  389. package/data/build/dist/dsh-capabilities/host/session-activation-adapter.d.ts +17 -0
  390. package/data/build/dist/dsh-capabilities/host/session-activation-adapter.d.ts.map +1 -0
  391. package/data/build/dist/dsh-capabilities/host/session-activation-adapter.js +37 -0
  392. package/data/build/dist/dsh-capabilities/host/session-activation-adapter.js.map +1 -0
  393. package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.d.ts +17 -0
  394. package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.d.ts.map +1 -0
  395. package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.js +45 -0
  396. package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.js.map +1 -0
  397. package/data/build/dist/dsh-capabilities/host/session-performance-adapter.d.ts +7 -0
  398. package/data/build/dist/dsh-capabilities/host/session-performance-adapter.d.ts.map +1 -0
  399. package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js +18 -0
  400. package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js.map +1 -0
  401. package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.d.ts +28 -0
  402. package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.d.ts.map +1 -0
  403. package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.js +31 -0
  404. package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.js.map +1 -0
  405. package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.d.ts +13 -0
  406. package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.d.ts.map +1 -0
  407. package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.js +24 -0
  408. package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.js.map +1 -0
  409. package/data/build/dist/dsh-capabilities/matrix.d.ts.map +1 -1
  410. package/data/build/dist/dsh-capabilities/matrix.js +22 -5
  411. package/data/build/dist/dsh-capabilities/matrix.js.map +1 -1
  412. package/data/build/dist/dsh-capabilities/routes.d.ts +1 -0
  413. package/data/build/dist/dsh-capabilities/routes.d.ts.map +1 -1
  414. package/data/build/dist/dsh-capabilities/routes.js +47 -3
  415. package/data/build/dist/dsh-capabilities/routes.js.map +1 -1
  416. package/data/build/dist/dsh-capabilities/types.d.ts +1 -1
  417. package/data/build/dist/dsh-capabilities/types.d.ts.map +1 -1
  418. package/data/build/dist/dsh-capabilities/types.js.map +1 -1
  419. package/data/build/dist/host/cli-adapters/acp-cli-driver.d.ts +21 -0
  420. package/data/build/dist/host/cli-adapters/acp-cli-driver.d.ts.map +1 -1
  421. package/data/build/dist/host/cli-adapters/acp-cli-driver.js +106 -6
  422. package/data/build/dist/host/cli-adapters/acp-cli-driver.js.map +1 -1
  423. package/data/build/dist/host/cli-adapters/antigravity-driver.js +1 -1
  424. package/data/build/dist/host/cli-adapters/antigravity-driver.js.map +1 -1
  425. package/data/build/dist/host/cli-adapters/attachment-utils.d.ts +4 -3
  426. package/data/build/dist/host/cli-adapters/attachment-utils.d.ts.map +1 -1
  427. package/data/build/dist/host/cli-adapters/attachment-utils.js +9 -8
  428. package/data/build/dist/host/cli-adapters/attachment-utils.js.map +1 -1
  429. package/data/build/dist/host/cli-adapters/binary-detection.d.ts.map +1 -1
  430. package/data/build/dist/host/cli-adapters/binary-detection.js +7 -3
  431. package/data/build/dist/host/cli-adapters/binary-detection.js.map +1 -1
  432. package/data/build/dist/host/cli-adapters/claude-driver.d.ts +1 -0
  433. package/data/build/dist/host/cli-adapters/claude-driver.d.ts.map +1 -1
  434. package/data/build/dist/host/cli-adapters/claude-driver.js +184 -21
  435. package/data/build/dist/host/cli-adapters/claude-driver.js.map +1 -1
  436. package/data/build/dist/host/cli-adapters/codex-driver.d.ts +28 -1
  437. package/data/build/dist/host/cli-adapters/codex-driver.d.ts.map +1 -1
  438. package/data/build/dist/host/cli-adapters/codex-driver.js +198 -34
  439. package/data/build/dist/host/cli-adapters/codex-driver.js.map +1 -1
  440. package/data/build/dist/host/cli-adapters/codex-performance-projection.d.ts +91 -0
  441. package/data/build/dist/host/cli-adapters/codex-performance-projection.d.ts.map +1 -0
  442. package/data/build/dist/host/cli-adapters/codex-performance-projection.js +8 -0
  443. package/data/build/dist/host/cli-adapters/codex-performance-projection.js.map +1 -0
  444. package/data/build/dist/host/cli-adapters/codex-performance.d.ts +16 -0
  445. package/data/build/dist/host/cli-adapters/codex-performance.d.ts.map +1 -0
  446. package/data/build/dist/host/cli-adapters/codex-performance.js +81 -0
  447. package/data/build/dist/host/cli-adapters/codex-performance.js.map +1 -0
  448. package/data/build/dist/host/cli-adapters/command-code-acp-loader.d.ts +12 -2
  449. package/data/build/dist/host/cli-adapters/command-code-acp-loader.d.ts.map +1 -1
  450. package/data/build/dist/host/cli-adapters/command-code-acp-loader.js +158 -3
  451. package/data/build/dist/host/cli-adapters/command-code-acp-loader.js.map +1 -1
  452. package/data/build/dist/host/cli-adapters/command-code-driver.d.ts +8 -2
  453. package/data/build/dist/host/cli-adapters/command-code-driver.d.ts.map +1 -1
  454. package/data/build/dist/host/cli-adapters/command-code-driver.js +39 -7
  455. package/data/build/dist/host/cli-adapters/command-code-driver.js.map +1 -1
  456. package/data/build/dist/host/cli-adapters/command-code-history.d.ts +27 -0
  457. package/data/build/dist/host/cli-adapters/command-code-history.d.ts.map +1 -1
  458. package/data/build/dist/host/cli-adapters/command-code-history.js +131 -1
  459. package/data/build/dist/host/cli-adapters/command-code-history.js.map +1 -1
  460. package/data/build/dist/host/cli-adapters/delegation-mention-rewrite.js +9 -9
  461. package/data/build/dist/host/cli-adapters/delegation-mention-rewrite.js.map +1 -1
  462. package/data/build/dist/host/cli-adapters/desktop-app-runtime.d.ts +3 -1
  463. package/data/build/dist/host/cli-adapters/desktop-app-runtime.d.ts.map +1 -1
  464. package/data/build/dist/host/cli-adapters/desktop-app-runtime.js +41 -4
  465. package/data/build/dist/host/cli-adapters/desktop-app-runtime.js.map +1 -1
  466. package/data/build/dist/host/cli-adapters/driver.d.ts +2 -0
  467. package/data/build/dist/host/cli-adapters/driver.d.ts.map +1 -1
  468. package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts +16 -1
  469. package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts.map +1 -1
  470. package/data/build/dist/host/cli-adapters/dsh-message-projector.js +120 -13
  471. package/data/build/dist/host/cli-adapters/dsh-message-projector.js.map +1 -1
  472. package/data/build/dist/host/cli-adapters/dsh-tool-history.js +3 -2
  473. package/data/build/dist/host/cli-adapters/dsh-tool-history.js.map +1 -1
  474. package/data/build/dist/host/cli-adapters/dsh-virtual-providers.d.ts.map +1 -1
  475. package/data/build/dist/host/cli-adapters/dsh-virtual-providers.js +3 -2
  476. package/data/build/dist/host/cli-adapters/dsh-virtual-providers.js.map +1 -1
  477. package/data/build/dist/host/cli-adapters/feature.d.ts +4 -0
  478. package/data/build/dist/host/cli-adapters/feature.d.ts.map +1 -1
  479. package/data/build/dist/host/cli-adapters/feature.js +806 -53
  480. package/data/build/dist/host/cli-adapters/feature.js.map +1 -1
  481. package/data/build/dist/host/cli-adapters/gemini-driver.d.ts.map +1 -1
  482. package/data/build/dist/host/cli-adapters/gemini-driver.js +5 -3
  483. package/data/build/dist/host/cli-adapters/gemini-driver.js.map +1 -1
  484. package/data/build/dist/host/cli-adapters/grok-driver.d.ts +7 -0
  485. package/data/build/dist/host/cli-adapters/grok-driver.d.ts.map +1 -1
  486. package/data/build/dist/host/cli-adapters/grok-driver.js +558 -98
  487. package/data/build/dist/host/cli-adapters/grok-driver.js.map +1 -1
  488. package/data/build/dist/host/cli-adapters/grok-performance-projection.d.ts +123 -0
  489. package/data/build/dist/host/cli-adapters/grok-performance-projection.d.ts.map +1 -0
  490. package/data/build/dist/host/cli-adapters/grok-performance-projection.js +48 -0
  491. package/data/build/dist/host/cli-adapters/grok-performance-projection.js.map +1 -0
  492. package/data/build/dist/host/cli-adapters/grok-usage.d.ts +45 -0
  493. package/data/build/dist/host/cli-adapters/grok-usage.d.ts.map +1 -0
  494. package/data/build/dist/host/cli-adapters/grok-usage.js +197 -0
  495. package/data/build/dist/host/cli-adapters/grok-usage.js.map +1 -0
  496. package/data/build/dist/host/cli-adapters/kimi-driver.js +2 -2
  497. package/data/build/dist/host/cli-adapters/kimi-driver.js.map +1 -1
  498. package/data/build/dist/host/cli-adapters/legacy-session-adapter.d.ts.map +1 -1
  499. package/data/build/dist/host/cli-adapters/legacy-session-adapter.js +20 -3
  500. package/data/build/dist/host/cli-adapters/legacy-session-adapter.js.map +1 -1
  501. package/data/build/dist/host/cli-adapters/legacy-session-settings.d.ts.map +1 -1
  502. package/data/build/dist/host/cli-adapters/legacy-session-settings.js +7 -2
  503. package/data/build/dist/host/cli-adapters/legacy-session-settings.js.map +1 -1
  504. package/data/build/dist/host/cli-adapters/magpie-session-routing.d.ts +9 -0
  505. package/data/build/dist/host/cli-adapters/magpie-session-routing.d.ts.map +1 -0
  506. package/data/build/dist/host/cli-adapters/magpie-session-routing.js +90 -0
  507. package/data/build/dist/host/cli-adapters/magpie-session-routing.js.map +1 -0
  508. package/data/build/dist/host/cli-adapters/magpie-usage.d.ts +90 -0
  509. package/data/build/dist/host/cli-adapters/magpie-usage.d.ts.map +1 -0
  510. package/data/build/dist/host/cli-adapters/magpie-usage.js +986 -0
  511. package/data/build/dist/host/cli-adapters/magpie-usage.js.map +1 -0
  512. package/data/build/dist/host/cli-adapters/management-installation.d.ts +5 -0
  513. package/data/build/dist/host/cli-adapters/management-installation.d.ts.map +1 -0
  514. package/data/build/dist/host/cli-adapters/management-installation.js +131 -0
  515. package/data/build/dist/host/cli-adapters/management-installation.js.map +1 -0
  516. package/data/build/dist/host/cli-adapters/management-methods.d.ts +37 -0
  517. package/data/build/dist/host/cli-adapters/management-methods.d.ts.map +1 -0
  518. package/data/build/dist/host/cli-adapters/management-methods.js +144 -0
  519. package/data/build/dist/host/cli-adapters/management-methods.js.map +1 -0
  520. package/data/build/dist/host/cli-adapters/management-process.d.ts +7 -0
  521. package/data/build/dist/host/cli-adapters/management-process.d.ts.map +1 -0
  522. package/data/build/dist/host/cli-adapters/management-process.js +62 -0
  523. package/data/build/dist/host/cli-adapters/management-process.js.map +1 -0
  524. package/data/build/dist/host/cli-adapters/management.d.ts +32 -0
  525. package/data/build/dist/host/cli-adapters/management.d.ts.map +1 -0
  526. package/data/build/dist/host/cli-adapters/management.js +177 -0
  527. package/data/build/dist/host/cli-adapters/management.js.map +1 -0
  528. package/data/build/dist/host/cli-adapters/mcode-driver.d.ts.map +1 -1
  529. package/data/build/dist/host/cli-adapters/mcode-driver.js +12 -5
  530. package/data/build/dist/host/cli-adapters/mcode-driver.js.map +1 -1
  531. package/data/build/dist/host/cli-adapters/model-catalog.d.ts +1 -0
  532. package/data/build/dist/host/cli-adapters/model-catalog.d.ts.map +1 -1
  533. package/data/build/dist/host/cli-adapters/model-catalog.js +70 -7
  534. package/data/build/dist/host/cli-adapters/model-catalog.js.map +1 -1
  535. package/data/build/dist/host/cli-adapters/native-subagent-dispatch.d.ts +1 -1
  536. package/data/build/dist/host/cli-adapters/native-subagent-dispatch.d.ts.map +1 -1
  537. package/data/build/dist/host/cli-adapters/native-subagent-dispatch.js +13 -5
  538. package/data/build/dist/host/cli-adapters/native-subagent-dispatch.js.map +1 -1
  539. package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts +7 -1
  540. package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts.map +1 -1
  541. package/data/build/dist/host/cli-adapters/native-team-subagent.js +6 -3
  542. package/data/build/dist/host/cli-adapters/native-team-subagent.js.map +1 -1
  543. package/data/build/dist/host/cli-adapters/opencode-driver.d.ts +26 -2
  544. package/data/build/dist/host/cli-adapters/opencode-driver.d.ts.map +1 -1
  545. package/data/build/dist/host/cli-adapters/opencode-driver.js +183 -48
  546. package/data/build/dist/host/cli-adapters/opencode-driver.js.map +1 -1
  547. package/data/build/dist/host/cli-adapters/opencode-v2-protocol.d.ts +1 -1
  548. package/data/build/dist/host/cli-adapters/opencode-v2-protocol.d.ts.map +1 -1
  549. package/data/build/dist/host/cli-adapters/opencode-v2-protocol.js +67 -7
  550. package/data/build/dist/host/cli-adapters/opencode-v2-protocol.js.map +1 -1
  551. package/data/build/dist/host/cli-adapters/pi-driver.d.ts.map +1 -1
  552. package/data/build/dist/host/cli-adapters/pi-driver.js +45 -11
  553. package/data/build/dist/host/cli-adapters/pi-driver.js.map +1 -1
  554. package/data/build/dist/host/cli-adapters/process-utils.d.ts +2 -0
  555. package/data/build/dist/host/cli-adapters/process-utils.d.ts.map +1 -1
  556. package/data/build/dist/host/cli-adapters/process-utils.js +16 -11
  557. package/data/build/dist/host/cli-adapters/process-utils.js.map +1 -1
  558. package/data/build/dist/host/cli-adapters/provider-subscription.d.ts +5 -1
  559. package/data/build/dist/host/cli-adapters/provider-subscription.d.ts.map +1 -1
  560. package/data/build/dist/host/cli-adapters/provider-subscription.js +90 -25
  561. package/data/build/dist/host/cli-adapters/provider-subscription.js.map +1 -1
  562. package/data/build/dist/host/cli-adapters/registry.d.ts +7 -1
  563. package/data/build/dist/host/cli-adapters/registry.d.ts.map +1 -1
  564. package/data/build/dist/host/cli-adapters/registry.js +163 -56
  565. package/data/build/dist/host/cli-adapters/registry.js.map +1 -1
  566. package/data/build/dist/host/cli-adapters/session-performance-projection.d.ts +74 -0
  567. package/data/build/dist/host/cli-adapters/session-performance-projection.d.ts.map +1 -0
  568. package/data/build/dist/host/cli-adapters/session-performance-projection.js +83 -0
  569. package/data/build/dist/host/cli-adapters/session-performance-projection.js.map +1 -0
  570. package/data/build/dist/host/cli-adapters/session-store.d.ts +1 -0
  571. package/data/build/dist/host/cli-adapters/session-store.d.ts.map +1 -1
  572. package/data/build/dist/host/cli-adapters/session-store.js +3 -0
  573. package/data/build/dist/host/cli-adapters/session-store.js.map +1 -1
  574. package/data/build/dist/host/cli-adapters/standard-stream-driver.d.ts.map +1 -1
  575. package/data/build/dist/host/cli-adapters/standard-stream-driver.js +4 -0
  576. package/data/build/dist/host/cli-adapters/standard-stream-driver.js.map +1 -1
  577. package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts +3 -1
  578. package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts.map +1 -1
  579. package/data/build/dist/host/cli-adapters/stream-normalizer.js +2 -0
  580. package/data/build/dist/host/cli-adapters/stream-normalizer.js.map +1 -1
  581. package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.d.ts +26 -0
  582. package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.d.ts.map +1 -0
  583. package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.js +30 -0
  584. package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.js.map +1 -0
  585. package/data/build/dist/host/cli-adapters/subagent-tool.d.ts.map +1 -1
  586. package/data/build/dist/host/cli-adapters/subagent-tool.js +7 -6
  587. package/data/build/dist/host/cli-adapters/subagent-tool.js.map +1 -1
  588. package/data/build/dist/host/cli-adapters/team-input.d.ts +17 -0
  589. package/data/build/dist/host/cli-adapters/team-input.d.ts.map +1 -0
  590. package/data/build/dist/host/cli-adapters/team-input.js +67 -0
  591. package/data/build/dist/host/cli-adapters/team-input.js.map +1 -0
  592. package/data/build/dist/host/cli-adapters/update-check.d.ts +34 -0
  593. package/data/build/dist/host/cli-adapters/update-check.d.ts.map +1 -0
  594. package/data/build/dist/host/cli-adapters/update-check.js +263 -0
  595. package/data/build/dist/host/cli-adapters/update-check.js.map +1 -0
  596. package/data/build/dist/host/cli-adapters/zcode-driver.d.ts.map +1 -1
  597. package/data/build/dist/host/cli-adapters/zcode-driver.js +7 -2
  598. package/data/build/dist/host/cli-adapters/zcode-driver.js.map +1 -1
  599. package/data/build/dist/host/cli-adapters/zcode-update.d.ts +8 -0
  600. package/data/build/dist/host/cli-adapters/zcode-update.d.ts.map +1 -0
  601. package/data/build/dist/host/cli-adapters/zcode-update.js +149 -0
  602. package/data/build/dist/host/cli-adapters/zcode-update.js.map +1 -0
  603. package/data/build/dist/host/cli-bridge/bridge-holder.d.ts +14 -0
  604. package/data/build/dist/host/cli-bridge/bridge-holder.d.ts.map +1 -1
  605. package/data/build/dist/host/cli-bridge/bridge-holder.js +53 -6
  606. package/data/build/dist/host/cli-bridge/bridge-holder.js.map +1 -1
  607. package/data/build/dist/host/cli-bridge/bridge-server.d.ts +8 -0
  608. package/data/build/dist/host/cli-bridge/bridge-server.d.ts.map +1 -1
  609. package/data/build/dist/host/cli-bridge/bridge-server.js +65 -8
  610. package/data/build/dist/host/cli-bridge/bridge-server.js.map +1 -1
  611. package/data/build/dist/host/cli-bridge/command-code-mod.d.ts.map +1 -1
  612. package/data/build/dist/host/cli-bridge/command-code-mod.js +149 -21
  613. package/data/build/dist/host/cli-bridge/command-code-mod.js.map +1 -1
  614. package/data/build/dist/host/cli-bridge/dispatch.js +20 -20
  615. package/data/build/dist/host/cli-bridge/dispatch.js.map +1 -1
  616. package/data/build/dist/host/cli-bridge/fetch-dispatch.d.ts +23 -0
  617. package/data/build/dist/host/cli-bridge/fetch-dispatch.d.ts.map +1 -0
  618. package/data/build/dist/host/cli-bridge/fetch-dispatch.js +73 -0
  619. package/data/build/dist/host/cli-bridge/fetch-dispatch.js.map +1 -0
  620. package/data/build/dist/host/cli-bridge/injections.d.ts +46 -0
  621. package/data/build/dist/host/cli-bridge/injections.d.ts.map +1 -1
  622. package/data/build/dist/host/cli-bridge/injections.js +205 -7
  623. package/data/build/dist/host/cli-bridge/injections.js.map +1 -1
  624. package/data/build/dist/host/cli-bridge/mcp-stdio-entry.d.ts +1 -1
  625. package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js +122 -27
  626. package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js.map +1 -1
  627. package/data/build/dist/host/cli-bridge/pi-extension-entry.d.ts +3 -0
  628. package/data/build/dist/host/cli-bridge/pi-extension-entry.d.ts.map +1 -0
  629. package/data/build/dist/host/cli-bridge/pi-extension-entry.js +9 -0
  630. package/data/build/dist/host/cli-bridge/pi-extension-entry.js.map +1 -0
  631. package/data/build/dist/host/cli-bridge/pi-extension.d.ts +52 -0
  632. package/data/build/dist/host/cli-bridge/pi-extension.d.ts.map +1 -0
  633. package/data/build/dist/host/cli-bridge/pi-extension.js +311 -0
  634. package/data/build/dist/host/cli-bridge/pi-extension.js.map +1 -0
  635. package/data/build/dist/host/cli-bridge/search-dispatch.d.ts +20 -0
  636. package/data/build/dist/host/cli-bridge/search-dispatch.d.ts.map +1 -0
  637. package/data/build/dist/host/cli-bridge/search-dispatch.js +61 -0
  638. package/data/build/dist/host/cli-bridge/search-dispatch.js.map +1 -0
  639. package/data/build/dist/host/cli-bridge/team-adapters.d.ts +11 -0
  640. package/data/build/dist/host/cli-bridge/team-adapters.d.ts.map +1 -0
  641. package/data/build/dist/host/cli-bridge/team-adapters.js +23 -0
  642. package/data/build/dist/host/cli-bridge/team-adapters.js.map +1 -0
  643. package/data/build/dist/host/cli-bridge/team-dispatch.d.ts +28 -0
  644. package/data/build/dist/host/cli-bridge/team-dispatch.d.ts.map +1 -0
  645. package/data/build/dist/host/cli-bridge/team-dispatch.js +208 -0
  646. package/data/build/dist/host/cli-bridge/team-dispatch.js.map +1 -0
  647. package/data/build/dist/host/cli-bridge/team-tool.d.ts +3 -0
  648. package/data/build/dist/host/cli-bridge/team-tool.d.ts.map +1 -0
  649. package/data/build/dist/host/cli-bridge/team-tool.js +18 -0
  650. package/data/build/dist/host/cli-bridge/team-tool.js.map +1 -0
  651. package/data/build/dist/host/desktop-assistant/controller.d.ts +1 -0
  652. package/data/build/dist/host/desktop-assistant/controller.d.ts.map +1 -1
  653. package/data/build/dist/host/desktop-assistant/controller.js +21 -3
  654. package/data/build/dist/host/desktop-assistant/controller.js.map +1 -1
  655. package/data/build/dist/host/desktop-assistant/mac-agent.d.ts.map +1 -1
  656. package/data/build/dist/host/desktop-assistant/mac-agent.js +15 -3
  657. package/data/build/dist/host/desktop-assistant/mac-agent.js.map +1 -1
  658. package/data/build/dist/host/desktop-assistant/win-agent.d.ts.map +1 -1
  659. package/data/build/dist/host/desktop-assistant/win-agent.js +21 -3
  660. package/data/build/dist/host/desktop-assistant/win-agent.js.map +1 -1
  661. package/data/build/dist/host/features/assistant-notifications.d.ts.map +1 -1
  662. package/data/build/dist/host/features/assistant-notifications.js +12 -4
  663. package/data/build/dist/host/features/assistant-notifications.js.map +1 -1
  664. package/data/build/dist/host/features/file-management.d.ts.map +1 -1
  665. package/data/build/dist/host/features/file-management.js +10 -1
  666. package/data/build/dist/host/features/file-management.js.map +1 -1
  667. package/data/build/dist/host/features/git-commit-message.d.ts +5 -0
  668. package/data/build/dist/host/features/git-commit-message.d.ts.map +1 -0
  669. package/data/build/dist/host/features/git-commit-message.js +66 -0
  670. package/data/build/dist/host/features/git-commit-message.js.map +1 -0
  671. package/data/build/dist/host/features/git-management.d.ts +11 -2
  672. package/data/build/dist/host/features/git-management.d.ts.map +1 -1
  673. package/data/build/dist/host/features/git-management.js +61 -7
  674. package/data/build/dist/host/features/git-management.js.map +1 -1
  675. package/data/build/dist/host/features/global-voice-rpc.d.ts.map +1 -1
  676. package/data/build/dist/host/features/global-voice-rpc.js +2 -3
  677. package/data/build/dist/host/features/global-voice-rpc.js.map +1 -1
  678. package/data/build/dist/host/features/index.d.ts +1 -0
  679. package/data/build/dist/host/features/index.d.ts.map +1 -1
  680. package/data/build/dist/host/features/index.js +5 -0
  681. package/data/build/dist/host/features/index.js.map +1 -1
  682. package/data/build/dist/host/features/interaction-translation.d.ts +10 -0
  683. package/data/build/dist/host/features/interaction-translation.d.ts.map +1 -0
  684. package/data/build/dist/host/features/interaction-translation.js +219 -0
  685. package/data/build/dist/host/features/interaction-translation.js.map +1 -0
  686. package/data/build/dist/host/features/lan-access-dsh.d.ts.map +1 -1
  687. package/data/build/dist/host/features/lan-access-dsh.js +3 -3
  688. package/data/build/dist/host/features/lan-access-dsh.js.map +1 -1
  689. package/data/build/dist/host/features/peer-host.d.ts.map +1 -1
  690. package/data/build/dist/host/features/peer-host.js +24 -10
  691. package/data/build/dist/host/features/peer-host.js.map +1 -1
  692. package/data/build/dist/host/features/quick-apps.d.ts +4 -0
  693. package/data/build/dist/host/features/quick-apps.d.ts.map +1 -0
  694. package/data/build/dist/host/features/quick-apps.js +158 -0
  695. package/data/build/dist/host/features/quick-apps.js.map +1 -0
  696. package/data/build/dist/host/features/session-prompt-translation.d.ts +10 -0
  697. package/data/build/dist/host/features/session-prompt-translation.d.ts.map +1 -0
  698. package/data/build/dist/host/features/session-prompt-translation.js +227 -0
  699. package/data/build/dist/host/features/session-prompt-translation.js.map +1 -0
  700. package/data/build/dist/host/features/session-translation-protection.d.ts +22 -0
  701. package/data/build/dist/host/features/session-translation-protection.d.ts.map +1 -0
  702. package/data/build/dist/host/features/session-translation-protection.js +204 -0
  703. package/data/build/dist/host/features/session-translation-protection.js.map +1 -0
  704. package/data/build/dist/host/features/session-translation-recovery.d.ts +21 -0
  705. package/data/build/dist/host/features/session-translation-recovery.d.ts.map +1 -0
  706. package/data/build/dist/host/features/session-translation-recovery.js +125 -0
  707. package/data/build/dist/host/features/session-translation-recovery.js.map +1 -0
  708. package/data/build/dist/host/features/session-translation-runtime.d.ts +16 -0
  709. package/data/build/dist/host/features/session-translation-runtime.d.ts.map +1 -0
  710. package/data/build/dist/host/features/session-translation-runtime.js +85 -0
  711. package/data/build/dist/host/features/session-translation-runtime.js.map +1 -0
  712. package/data/build/dist/host/features/session-translation-service.d.ts +46 -0
  713. package/data/build/dist/host/features/session-translation-service.d.ts.map +1 -0
  714. package/data/build/dist/host/features/session-translation-service.js +490 -0
  715. package/data/build/dist/host/features/session-translation-service.js.map +1 -0
  716. package/data/build/dist/host/features/session-translation.d.ts +5 -0
  717. package/data/build/dist/host/features/session-translation.d.ts.map +1 -0
  718. package/data/build/dist/host/features/session-translation.js +40 -0
  719. package/data/build/dist/host/features/session-translation.js.map +1 -0
  720. package/data/build/dist/host/features/types.d.ts +13 -0
  721. package/data/build/dist/host/features/types.d.ts.map +1 -1
  722. package/data/build/dist/host/html-workspace-files.d.ts +3 -0
  723. package/data/build/dist/host/html-workspace-files.d.ts.map +1 -0
  724. package/data/build/dist/host/html-workspace-files.js +135 -0
  725. package/data/build/dist/host/html-workspace-files.js.map +1 -0
  726. package/data/build/dist/host/image-artifact-store.d.ts +21 -0
  727. package/data/build/dist/host/image-artifact-store.d.ts.map +1 -0
  728. package/data/build/dist/host/image-artifact-store.js +136 -0
  729. package/data/build/dist/host/image-artifact-store.js.map +1 -0
  730. package/data/build/dist/host/index.d.ts.map +1 -1
  731. package/data/build/dist/host/index.js +35 -39
  732. package/data/build/dist/host/index.js.map +1 -1
  733. package/data/build/dist/host/lan-access-dsh.d.ts +14 -2
  734. package/data/build/dist/host/lan-access-dsh.d.ts.map +1 -1
  735. package/data/build/dist/host/lan-access-dsh.js +81 -13
  736. package/data/build/dist/host/lan-access-dsh.js.map +1 -1
  737. package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.d.ts +2 -2
  738. package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.d.ts.map +1 -1
  739. package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.js +10 -9
  740. package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.js.map +1 -1
  741. package/data/build/dist/host/modules/peer-host/peer-host-native-protocol.d.ts +1 -1
  742. package/data/build/dist/host/modules/peer-host/peer-host-native-protocol.d.ts.map +1 -1
  743. package/data/build/dist/host/modules/peer-host/peer-host-native-protocol.js +2 -0
  744. package/data/build/dist/host/modules/peer-host/peer-host-native-protocol.js.map +1 -1
  745. package/data/build/dist/host/modules/peer-host/peer-host-native-streams.d.ts +3 -3
  746. package/data/build/dist/host/modules/peer-host/peer-host-native-streams.d.ts.map +1 -1
  747. package/data/build/dist/host/modules/peer-host/peer-host-native-streams.js +26 -14
  748. package/data/build/dist/host/modules/peer-host/peer-host-native-streams.js.map +1 -1
  749. package/data/build/dist/host/modules/peer-host/quick-app-gateway.d.ts +5 -0
  750. package/data/build/dist/host/modules/peer-host/quick-app-gateway.d.ts.map +1 -0
  751. package/data/build/dist/host/modules/peer-host/quick-app-gateway.js +27 -0
  752. package/data/build/dist/host/modules/peer-host/quick-app-gateway.js.map +1 -0
  753. package/data/build/dist/host/modules/quick-apps/browse.d.ts +5 -0
  754. package/data/build/dist/host/modules/quick-apps/browse.d.ts.map +1 -0
  755. package/data/build/dist/host/modules/quick-apps/browse.js +37 -0
  756. package/data/build/dist/host/modules/quick-apps/browse.js.map +1 -0
  757. package/data/build/dist/host/modules/quick-apps/code-revision.d.ts +4 -0
  758. package/data/build/dist/host/modules/quick-apps/code-revision.d.ts.map +1 -0
  759. package/data/build/dist/host/modules/quick-apps/code-revision.js +39 -0
  760. package/data/build/dist/host/modules/quick-apps/code-revision.js.map +1 -0
  761. package/data/build/dist/host/modules/quick-apps/documents.d.ts +14 -0
  762. package/data/build/dist/host/modules/quick-apps/documents.d.ts.map +1 -0
  763. package/data/build/dist/host/modules/quick-apps/documents.js +87 -0
  764. package/data/build/dist/host/modules/quick-apps/documents.js.map +1 -0
  765. package/data/build/dist/host/modules/quick-apps/egress.d.ts +35 -0
  766. package/data/build/dist/host/modules/quick-apps/egress.d.ts.map +1 -0
  767. package/data/build/dist/host/modules/quick-apps/egress.js +244 -0
  768. package/data/build/dist/host/modules/quick-apps/egress.js.map +1 -0
  769. package/data/build/dist/host/modules/quick-apps/errors.d.ts +8 -0
  770. package/data/build/dist/host/modules/quick-apps/errors.d.ts.map +1 -0
  771. package/data/build/dist/host/modules/quick-apps/errors.js +15 -0
  772. package/data/build/dist/host/modules/quick-apps/errors.js.map +1 -0
  773. package/data/build/dist/host/modules/quick-apps/file-api.d.ts +30 -0
  774. package/data/build/dist/host/modules/quick-apps/file-api.d.ts.map +1 -0
  775. package/data/build/dist/host/modules/quick-apps/file-api.js +149 -0
  776. package/data/build/dist/host/modules/quick-apps/file-api.js.map +1 -0
  777. package/data/build/dist/host/modules/quick-apps/launches.d.ts +35 -0
  778. package/data/build/dist/host/modules/quick-apps/launches.d.ts.map +1 -0
  779. package/data/build/dist/host/modules/quick-apps/launches.js +80 -0
  780. package/data/build/dist/host/modules/quick-apps/launches.js.map +1 -0
  781. package/data/build/dist/host/modules/quick-apps/paths.d.ts +14 -0
  782. package/data/build/dist/host/modules/quick-apps/paths.d.ts.map +1 -0
  783. package/data/build/dist/host/modules/quick-apps/paths.js +72 -0
  784. package/data/build/dist/host/modules/quick-apps/paths.js.map +1 -0
  785. package/data/build/dist/host/modules/quick-apps/registry.d.ts +30 -0
  786. package/data/build/dist/host/modules/quick-apps/registry.d.ts.map +1 -0
  787. package/data/build/dist/host/modules/quick-apps/registry.js +195 -0
  788. package/data/build/dist/host/modules/quick-apps/registry.js.map +1 -0
  789. package/data/build/dist/host/modules/quick-apps/remote.d.ts +38 -0
  790. package/data/build/dist/host/modules/quick-apps/remote.d.ts.map +1 -0
  791. package/data/build/dist/host/modules/quick-apps/remote.js +238 -0
  792. package/data/build/dist/host/modules/quick-apps/remote.js.map +1 -0
  793. package/data/build/dist/host/modules/quick-apps/service.d.ts +27 -0
  794. package/data/build/dist/host/modules/quick-apps/service.d.ts.map +1 -0
  795. package/data/build/dist/host/modules/quick-apps/service.js +174 -0
  796. package/data/build/dist/host/modules/quick-apps/service.js.map +1 -0
  797. package/data/build/dist/host/modules/quick-apps/static-handler.d.ts +8 -0
  798. package/data/build/dist/host/modules/quick-apps/static-handler.d.ts.map +1 -0
  799. package/data/build/dist/host/modules/quick-apps/static-handler.js +213 -0
  800. package/data/build/dist/host/modules/quick-apps/static-handler.js.map +1 -0
  801. package/data/build/dist/host/native-session-bridge.d.ts +23 -2
  802. package/data/build/dist/host/native-session-bridge.d.ts.map +1 -1
  803. package/data/build/dist/host/native-session-bridge.js +57 -15
  804. package/data/build/dist/host/native-session-bridge.js.map +1 -1
  805. package/data/build/dist/host/rpc.d.ts.map +1 -1
  806. package/data/build/dist/host/rpc.js +24 -13
  807. package/data/build/dist/host/rpc.js.map +1 -1
  808. package/data/build/dist/host/session-changes.d.ts.map +1 -1
  809. package/data/build/dist/host/session-changes.js +201 -14
  810. package/data/build/dist/host/session-changes.js.map +1 -1
  811. package/data/build/dist/host/session-migration-repair.js +48 -35
  812. package/data/build/dist/host/session-migration-repair.js.map +1 -1
  813. package/data/build/dist/host/settings.d.ts.map +1 -1
  814. package/data/build/dist/host/settings.js +37 -0
  815. package/data/build/dist/host/settings.js.map +1 -1
  816. package/data/build/dist/host/workspace-file-mutations.d.ts +2 -0
  817. package/data/build/dist/host/workspace-file-mutations.d.ts.map +1 -0
  818. package/data/build/dist/host/workspace-file-mutations.js +15 -0
  819. package/data/build/dist/host/workspace-file-mutations.js.map +1 -0
  820. package/data/build/dist/host/workspace-root.d.ts +14 -0
  821. package/data/build/dist/host/workspace-root.d.ts.map +1 -0
  822. package/data/build/dist/host/workspace-root.js +99 -0
  823. package/data/build/dist/host/workspace-root.js.map +1 -0
  824. package/data/build/dist/shared/assistant-notifications.d.ts +2 -2
  825. package/data/build/dist/shared/assistant-notifications.d.ts.map +1 -1
  826. package/data/build/dist/shared/attachment-prompts.d.ts +11 -0
  827. package/data/build/dist/shared/attachment-prompts.d.ts.map +1 -0
  828. package/data/build/dist/shared/attachment-prompts.js +17 -0
  829. package/data/build/dist/shared/attachment-prompts.js.map +1 -0
  830. package/data/build/dist/shared/cli-provider-route.d.ts +7 -0
  831. package/data/build/dist/shared/cli-provider-route.d.ts.map +1 -0
  832. package/data/build/dist/shared/cli-provider-route.js +13 -0
  833. package/data/build/dist/shared/cli-provider-route.js.map +1 -0
  834. package/data/build/dist/shared/codex-performance.d.ts +3 -0
  835. package/data/build/dist/shared/codex-performance.d.ts.map +1 -0
  836. package/data/build/dist/shared/codex-performance.js +2 -0
  837. package/data/build/dist/shared/codex-performance.js.map +1 -0
  838. package/data/build/dist/shared/contracts/agent-team.d.ts +14 -0
  839. package/data/build/dist/shared/contracts/agent-team.d.ts.map +1 -0
  840. package/data/build/dist/shared/contracts/agent-team.js +48 -0
  841. package/data/build/dist/shared/contracts/agent-team.js.map +1 -0
  842. package/data/build/dist/shared/contracts/cli-adapter.d.ts +86 -2
  843. package/data/build/dist/shared/contracts/cli-adapter.d.ts.map +1 -1
  844. package/data/build/dist/shared/contracts/cli-management.d.ts +29 -0
  845. package/data/build/dist/shared/contracts/cli-management.d.ts.map +1 -0
  846. package/data/build/dist/shared/contracts/cli-management.js +2 -0
  847. package/data/build/dist/shared/contracts/cli-management.js.map +1 -0
  848. package/data/build/dist/shared/contracts/config.d.ts +13 -1
  849. package/data/build/dist/shared/contracts/config.d.ts.map +1 -1
  850. package/data/build/dist/shared/contracts/config.js +6 -0
  851. package/data/build/dist/shared/contracts/config.js.map +1 -1
  852. package/data/build/dist/shared/contracts/errors.d.ts +2 -2
  853. package/data/build/dist/shared/contracts/errors.d.ts.map +1 -1
  854. package/data/build/dist/shared/contracts/git.d.ts +17 -0
  855. package/data/build/dist/shared/contracts/git.d.ts.map +1 -1
  856. package/data/build/dist/shared/contracts/git.js +27 -1
  857. package/data/build/dist/shared/contracts/git.js.map +1 -1
  858. package/data/build/dist/shared/contracts/interaction-presentation.d.ts +32 -0
  859. package/data/build/dist/shared/contracts/interaction-presentation.d.ts.map +1 -0
  860. package/data/build/dist/shared/contracts/interaction-presentation.js +2 -0
  861. package/data/build/dist/shared/contracts/interaction-presentation.js.map +1 -0
  862. package/data/build/dist/shared/contracts/interaction-translation.d.ts +53 -0
  863. package/data/build/dist/shared/contracts/interaction-translation.d.ts.map +1 -0
  864. package/data/build/dist/shared/contracts/interaction-translation.js +44 -0
  865. package/data/build/dist/shared/contracts/interaction-translation.js.map +1 -0
  866. package/data/build/dist/shared/contracts/quick-apps.d.ts +70 -0
  867. package/data/build/dist/shared/contracts/quick-apps.d.ts.map +1 -0
  868. package/data/build/dist/shared/contracts/quick-apps.js +4 -0
  869. package/data/build/dist/shared/contracts/quick-apps.js.map +1 -0
  870. package/data/build/dist/shared/contracts/session-translation.d.ts +131 -0
  871. package/data/build/dist/shared/contracts/session-translation.d.ts.map +1 -0
  872. package/data/build/dist/shared/contracts/session-translation.js +167 -0
  873. package/data/build/dist/shared/contracts/session-translation.js.map +1 -0
  874. package/data/build/dist/shared/contracts/subscription.d.ts +87 -0
  875. package/data/build/dist/shared/contracts/subscription.d.ts.map +1 -1
  876. package/data/build/dist/shared/contracts/subscription.js.map +1 -1
  877. package/data/build/dist/shared/contracts/version.d.ts +9 -15
  878. package/data/build/dist/shared/contracts/version.d.ts.map +1 -1
  879. package/data/build/dist/shared/contracts/version.js +8 -14
  880. package/data/build/dist/shared/contracts/version.js.map +1 -1
  881. package/data/build/dist/shared/delegation-carrier.js +6 -6
  882. package/data/build/dist/shared/delegation-carrier.js.map +1 -1
  883. package/data/build/dist/shared/desktop-assistant.d.ts +10 -4
  884. package/data/build/dist/shared/desktop-assistant.d.ts.map +1 -1
  885. package/data/build/dist/shared/desktop-assistant.js +28 -8
  886. package/data/build/dist/shared/desktop-assistant.js.map +1 -1
  887. package/data/build/dist/shared/index.d.ts +3 -1
  888. package/data/build/dist/shared/index.d.ts.map +1 -1
  889. package/data/build/dist/shared/index.js +3 -1
  890. package/data/build/dist/shared/index.js.map +1 -1
  891. package/data/build/dist/shared/peer-host-http-routes.d.ts +4 -0
  892. package/data/build/dist/shared/peer-host-http-routes.d.ts.map +1 -1
  893. package/data/build/dist/shared/peer-host-http-routes.js +4 -0
  894. package/data/build/dist/shared/peer-host-http-routes.js.map +1 -1
  895. package/data/build/dist/shared/provider-icon-resources.d.ts.map +1 -1
  896. package/data/build/dist/shared/provider-icon-resources.js +1 -0
  897. package/data/build/dist/shared/provider-icon-resources.js.map +1 -1
  898. package/data/build/dist/shared/quick-app-browser-storage.d.ts +33 -0
  899. package/data/build/dist/shared/quick-app-browser-storage.d.ts.map +1 -0
  900. package/data/build/dist/shared/quick-app-browser-storage.js +33 -0
  901. package/data/build/dist/shared/quick-app-browser-storage.js.map +1 -0
  902. package/data/build/dist/shared/quick-app-network-allow.d.ts +8 -0
  903. package/data/build/dist/shared/quick-app-network-allow.d.ts.map +1 -0
  904. package/data/build/dist/shared/quick-app-network-allow.js +192 -0
  905. package/data/build/dist/shared/quick-app-network-allow.js.map +1 -0
  906. package/data/build/dist/shared/quick-app-network-bootstrap.d.ts +9 -0
  907. package/data/build/dist/shared/quick-app-network-bootstrap.d.ts.map +1 -0
  908. package/data/build/dist/shared/quick-app-network-bootstrap.js +134 -0
  909. package/data/build/dist/shared/quick-app-network-bootstrap.js.map +1 -0
  910. package/data/build/dist/shared/quick-app-proxy-path.d.ts +6 -0
  911. package/data/build/dist/shared/quick-app-proxy-path.d.ts.map +1 -0
  912. package/data/build/dist/shared/quick-app-proxy-path.js +18 -0
  913. package/data/build/dist/shared/quick-app-proxy-path.js.map +1 -0
  914. package/data/build/dist/shared/quick-app-storage-bootstrap.d.ts +9 -0
  915. package/data/build/dist/shared/quick-app-storage-bootstrap.d.ts.map +1 -0
  916. package/data/build/dist/shared/quick-app-storage-bootstrap.js +189 -0
  917. package/data/build/dist/shared/quick-app-storage-bootstrap.js.map +1 -0
  918. package/data/build/dist/shared/quick-apps-bootstrap-locale.d.ts +7 -0
  919. package/data/build/dist/shared/quick-apps-bootstrap-locale.d.ts.map +1 -0
  920. package/data/build/dist/shared/quick-apps-bootstrap-locale.js +10 -0
  921. package/data/build/dist/shared/quick-apps-bootstrap-locale.js.map +1 -0
  922. package/data/build/dist/shared/request-performance.d.ts +15 -0
  923. package/data/build/dist/shared/request-performance.d.ts.map +1 -0
  924. package/data/build/dist/shared/request-performance.js +3 -0
  925. package/data/build/dist/shared/request-performance.js.map +1 -0
  926. package/data/build/dist/shared/translation-indicator.d.ts +26 -0
  927. package/data/build/dist/shared/translation-indicator.d.ts.map +1 -0
  928. package/data/build/dist/shared/translation-indicator.js +29 -0
  929. package/data/build/dist/shared/translation-indicator.js.map +1 -0
  930. package/package.json +36 -35
  931. package/profile/README.md +2 -2
  932. package/profile/package.json +3 -3
  933. package/profile/version.json +3 -3
  934. package/version.json +3 -3
  935. package/data/build/dist/client/client.model-catalog-cache.js.map +0 -1
  936. package/data/build/dist/client/peer-host-file-links.d.ts +0 -8
  937. package/data/build/dist/client/peer-host-file-links.d.ts.map +0 -1
  938. package/data/build/dist/client/peer-host-file-links.js.map +0 -1
@@ -0,0 +1,109 @@
1
+ const MEMBER_METHODS = ['membership', 'listMembers', 'sendMessage', 'listTasks', 'getTask', 'createTask', 'updateTask', 'waitForChange'];
2
+ export function supportsExternalAgentTeam(context, lead = false) {
3
+ const service = read(context, 'agentTeams');
4
+ return hasMethods(service, [...MEMBER_METHODS, ...(lead ? ['spawnTeammate', 'interrupt'] : [])])
5
+ && hasMethods(read(context, 'agents'), ['get', 'list'])
6
+ && hasMethods(read(context, 'subagents'), ['registerProvider', 'startActivation', 'sendMessage']);
7
+ }
8
+ export function createAgentTeamAdapter(context) {
9
+ return new DshAgentTeamAdapter(read(context, 'agentTeams'), read(context, 'agents'), () => read(context, 'sessionController'));
10
+ }
11
+ /** Exact Agent identity and all DSH-specific calls stay at this boundary. */
12
+ export class DshAgentTeamAdapter {
13
+ service;
14
+ agents;
15
+ controller;
16
+ lifetime = new AbortController();
17
+ supportsLead;
18
+ constructor(service, agents, controller) {
19
+ this.service = service;
20
+ this.agents = agents;
21
+ this.controller = controller;
22
+ this.supportsLead = hasMethods(service, ['spawnTeammate', 'interrupt']);
23
+ }
24
+ get signal() { return this.lifetime.signal; }
25
+ async nativeRoute(model, effort, provider) {
26
+ // The catalog service may be published after the Team service or replaced
27
+ // during reload. Resolve it at the operation boundary, not at activation.
28
+ const controller = (typeof this.controller === 'function' ? this.controller() : this.controller);
29
+ if (!controller?.modelCatalog)
30
+ throw teamError('TEAM_NATIVE_ROUTE_UNAVAILABLE', 'A native DSH model catalog is required for mixed Teams.');
31
+ const catalog = await controller.modelCatalog();
32
+ const selectedModel = model ?? catalog.default?.model;
33
+ const selectedProvider = provider ?? (model === undefined ? catalog.default?.provider : undefined);
34
+ const matches = (catalog.groups ?? []).flatMap(group => group.id.startsWith('codingns-cli-') || selectedProvider && group.id !== selectedProvider ? []
35
+ : (group.models ?? []).filter(item => item.id === selectedModel).map(item => ({ provider: group.id, item })));
36
+ if (matches.length !== 1)
37
+ throw teamError('TEAM_NATIVE_ROUTE_UNAVAILABLE', 'Select an unambiguous native DSH provider and model.');
38
+ const match = matches[0];
39
+ const reasoningEffort = effort ?? (model === undefined && match.provider === catalog.default?.provider ? catalog.default?.reasoningEffort : undefined);
40
+ if (reasoningEffort && !match.item.reasoning?.efforts?.some(item => item.id === reasoningEffort))
41
+ throw teamError('TEAM_MODEL_UNSUPPORTED', 'The requested native effort is unavailable.');
42
+ return { provider: match.provider, model: match.item.id, ...(reasoningEffort ? { reasoningEffort } : {}) };
43
+ }
44
+ resolveAgent(sessionId) {
45
+ if (this.signal.aborted || sessionId.trim() === '')
46
+ return undefined;
47
+ const direct = this.agents.get(sessionId);
48
+ if (isAgent(direct) && this.isCurrent(direct) && sessionIdOf(direct) === sessionId)
49
+ return direct;
50
+ return this.agents.list().find((candidate) => isAgent(candidate)
51
+ && this.isCurrent(candidate) && sessionIdOf(candidate) === sessionId);
52
+ }
53
+ identity(agent) {
54
+ this.signal.throwIfAborted();
55
+ if (!this.isCurrent(agent))
56
+ throw teamError('TEAM_CALLER_UNAVAILABLE', 'The calling Agent is no longer live.');
57
+ const member = this.service.membership(agent);
58
+ if ((member?.role !== 'lead' && member?.role !== 'teammate') || typeof member.id !== 'string' || typeof member.name !== 'string') {
59
+ throw teamError('TEAM_NOT_MEMBER', 'The calling Agent is not a native Team member.');
60
+ }
61
+ return { sessionId: sessionIdOf(agent), teamId: member.id, role: member.role, name: member.name };
62
+ }
63
+ invoke(agent, action, input, signal) {
64
+ const identity = this.identity(agent);
65
+ if ((action === 'spawn' || action === 'interrupt' || action === 'task_update' && input.action === 'reassign') && identity.role !== 'lead') {
66
+ throw teamError('TEAM_LEAD_REQUIRED', 'Only the Team Lead may perform this operation.');
67
+ }
68
+ const combined = signal ? AbortSignal.any([signal, this.signal]) : this.signal;
69
+ combined.throwIfAborted();
70
+ switch (action) {
71
+ case 'status': return { identity, supportsLead: this.supportsLead };
72
+ case 'members': return this.service.listMembers(agent);
73
+ case 'message': return this.service.sendMessage(agent, { ...input, signal: combined });
74
+ case 'tasks': return this.service.listTasks(agent);
75
+ case 'task': return this.service.getTask(agent, String(input.taskId));
76
+ case 'task_create': return this.service.createTask(agent, input);
77
+ case 'task_update': return this.service.updateTask(agent, input);
78
+ case 'wait': return this.service.waitForChange(agent, Number(input.timeoutMs), combined);
79
+ case 'spawn':
80
+ if (!this.service.spawnTeammate)
81
+ throw teamError('TEAM_OPERATION_UNAVAILABLE', 'Teammate creation is unavailable.');
82
+ return this.service.spawnTeammate(agent, { ...input, signal: combined });
83
+ case 'interrupt':
84
+ if (!this.service.interrupt)
85
+ throw teamError('TEAM_OPERATION_UNAVAILABLE', 'Team interruption is unavailable.');
86
+ return this.service.interrupt(agent, String(input.target));
87
+ }
88
+ }
89
+ dispose() { this.lifetime.abort(teamError('TEAM_SERVICE_UNAVAILABLE', 'The native Team service was removed.')); }
90
+ isCurrent(agent) { return this.agents.get(agent.id) === agent; }
91
+ }
92
+ export function sessionIdOf(agent) { return agent.session?.header?.id?.trim() || agent.id; }
93
+ export function teamError(code, message) { return Object.assign(new Error(message), { code }); }
94
+ function isAgent(value) { return typeof value === 'object' && value !== null && typeof Reflect.get(value, 'id') === 'string'; }
95
+ function hasMethods(value, methods) {
96
+ return value !== null && (typeof value === 'object' || typeof value === 'function') && methods.every(method => typeof Reflect.get(value, method) === 'function');
97
+ }
98
+ function read(context, name) {
99
+ if (typeof context !== 'object' || context === null)
100
+ return undefined;
101
+ try {
102
+ const get = Reflect.get(context, 'get');
103
+ return typeof get === 'function' ? get.call(context, name) : Reflect.get(context, name);
104
+ }
105
+ catch {
106
+ return undefined;
107
+ }
108
+ }
109
+ //# sourceMappingURL=agent-team-adapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-team-adapter.js","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/host/agent-team-adapter.ts"],"names":[],"mappings":"AAyBA,MAAM,cAAc,GAAG,CAAC,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,eAAe,CAAC,CAAA;AAExI,MAAM,UAAU,yBAAyB,CAAC,OAAgB,EAAE,IAAI,GAAG,KAAK;IACtE,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,CAAA;IAC3C,OAAO,UAAU,CAAC,OAAO,EAAE,CAAC,GAAG,cAAc,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;WAC3F,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;WACpD,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,EAAE,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,aAAa,CAAC,CAAC,CAAA;AACrG,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,OAAgB;IACrD,OAAO,IAAI,mBAAmB,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,CAA2B,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAsB,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAA;AAC/K,CAAC;AAED,6EAA6E;AAC7E,M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,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA,CAAC,CAAC;AAEzI,SAAS,OAAO,CAAC,KAAc,IAAwB,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,QAAQ,CAAA,CAAC,CAAC;AAC3J,SAAS,UAAU,CAAC,KAAc,EAAE,OAA0B;IAC5D,OAAO,KAAK,KAAK,IAAI,IAAI,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,UAAU,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,UAAU,CAAC,CAAA;AAClK,CAAC;AACD,SAAS,IAAI,CAAC,OAAgB,EAAE,IAAY;IAC1C,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI;QAAE,OAAO,SAAS,CAAA;IACrE,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;QACvC,OAAO,OAAO,GAAG,KAAK,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;IACzF,CAAC;IAAC,MAAM,CAAC;QAAC,OAAO,SAAS,CAAA;IAAC,CAAC;AAC9B,CAAC"}
@@ -0,0 +1,10 @@
1
+ /** Only Connection may derive identity from credentials. Never read it from an RPC payload. */
2
+ export declare function admitCodingNsPeer(connection: unknown, headers: unknown): {
3
+ peer: unknown;
4
+ } | {
5
+ rejection: number;
6
+ };
7
+ export declare function isCodingNsOwnerPeer(connection: unknown, peer: unknown): boolean;
8
+ /** Internal host calls borrow the host-owned peer; callers retain ownership of supplied peers. */
9
+ export declare function nativeDispatchPeer(connection: unknown, caller?: unknown): unknown;
10
+ //# sourceMappingURL=connection-peer-adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection-peer-adapter.d.ts","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/host/connection-peer-adapter.ts"],"names":[],"mappings":"AAOA,+FAA+F;AAC/F,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAWlH;AAED,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAM/E;AAED,kGAAkG;AAClG,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAOjF"}
@@ -0,0 +1,34 @@
1
+ /** Only Connection may derive identity from credentials. Never read it from an RPC payload. */
2
+ export function admitCodingNsPeer(connection, headers) {
3
+ const service = connection;
4
+ const admission = typeof service.admit === 'function'
5
+ ? service.admit({ headers })
6
+ : (() => {
7
+ const rejection = service.requestRejection?.({ headers });
8
+ return rejection === undefined ? { peer: service.operator } : { rejection };
9
+ })();
10
+ if ('rejection' in admission)
11
+ return admission;
12
+ // Plugin settings and external agent controls have always been owner-only.
13
+ return isCodingNsOwnerPeer(connection, admission.peer) ? admission : { rejection: 403 };
14
+ }
15
+ export function isCodingNsOwnerPeer(connection, peer) {
16
+ const service = connection;
17
+ const candidate = peer;
18
+ if (candidate?.signal?.aborted || candidate?.authenticated === false || candidate?.authorized === false || candidate?.scope?.kind === 'session' || candidate?.kind === 'session')
19
+ return false;
20
+ if (service?.browserPeer !== undefined)
21
+ return candidate?.principal?.kind === 'owner';
22
+ return service?.operator === undefined || peer === service.operator;
23
+ }
24
+ /** Internal host calls borrow the host-owned peer; callers retain ownership of supplied peers. */
25
+ export function nativeDispatchPeer(connection, caller) {
26
+ const service = connection;
27
+ const peer = caller ?? service?.browserPeer ?? service?.operator;
28
+ if (service?.browserPeer !== undefined && peer === undefined)
29
+ throw new Error('DSH requires a live peer');
30
+ const signal = peer?.signal;
31
+ signal?.throwIfAborted();
32
+ return peer;
33
+ }
34
+ //# sourceMappingURL=connection-peer-adapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection-peer-adapter.js","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/host/connection-peer-adapter.ts"],"names":[],"mappings":"AAOA,+FAA+F;AAC/F,MAAM,UAAU,iBAAiB,CAAC,UAAmB,EAAE,OAAgB;IACrE,MAAM,OAAO,GAAG,UAA6B,CAAA;IAC7C,MAAM,SAAS,GAAG,OAAO,OAAO,CAAC,KAAK,KAAK,UAAU;QACnD,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;QAC5B,CAAC,CAAC,CAAC,GAAG,EAAE;YACN,MAAM,SAAS,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;YACzD,OAAO,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAA;QAC7E,CAAC,CAAC,EAAE,CAAA;IACN,IAAI,WAAW,IAAI,SAAS;QAAE,OAAO,SAAS,CAAA;IAC9C,2EAA2E;IAC3E,OAAO,mBAAmB,CAAC,UAAU,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAA;AACzF,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,UAAmB,EAAE,IAAa;IACpE,MAAM,OAAO,GAAG,UAAyC,CAAA;IACzD,MAAM,SAAS,GAAG,IAAoK,CAAA;IACtL,IAAI,SAAS,EAAE,MAAM,EAAE,OAAO,IAAI,SAAS,EAAE,aAAa,KAAK,KAAK,IAAI,SAAS,EAAE,UAAU,KAAK,KAAK,IAAI,SAAS,EAAE,KAAK,EAAE,IAAI,KAAK,SAAS,IAAI,SAAS,EAAE,IAAI,KAAK,SAAS;QAAE,OAAO,KAAK,CAAA;IAC9L,IAAI,OAAO,EAAE,WAAW,KAAK,SAAS;QAAE,OAAO,SAAS,EAAE,SAAS,EAAE,IAAI,KAAK,OAAO,CAAA;IACrF,OAAO,OAAO,EAAE,QAAQ,KAAK,SAAS,IAAI,IAAI,KAAK,OAAO,CAAC,QAAQ,CAAA;AACrE,CAAC;AAED,kGAAkG;AAClG,MAAM,UAAU,kBAAkB,CAAC,UAAmB,EAAE,MAAgB;IACtE,MAAM,OAAO,GAAG,UAAyC,CAAA;IACzD,MAAM,IAAI,GAAG,MAAM,IAAI,OAAO,EAAE,WAAW,IAAI,OAAO,EAAE,QAAQ,CAAA;IAChE,IAAI,OAAO,EAAE,WAAW,KAAK,SAAS,IAAI,IAAI,KAAK,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;IACzG,MAAM,MAAM,GAAI,IAA6C,EAAE,MAAM,CAAA;IACrE,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,OAAO,IAAI,CAAA;AACb,CAAC"}
@@ -0,0 +1,21 @@
1
+ interface GatewayRequest {
2
+ readonly namespace: string;
3
+ readonly method: string;
4
+ readonly args: Record<string, unknown>;
5
+ readonly signal?: AbortSignal;
6
+ readonly peer?: unknown;
7
+ }
8
+ export interface NativeGateway {
9
+ invoke(request: GatewayRequest): Promise<unknown>;
10
+ stream(request: GatewayRequest): AsyncIterable<unknown>;
11
+ readonly wireStream?: {
12
+ open(endpoint: string, payload: unknown, uplink: AsyncIterable<unknown>, peer: unknown, signal: AbortSignal): Promise<AsyncIterable<unknown>>;
13
+ };
14
+ }
15
+ /** Explicit peers work on both Gateway generations; legacy hosts may omit one. */
16
+ export declare function nativePeerRequest(connection: unknown, caller?: unknown): {
17
+ peer?: unknown;
18
+ };
19
+ export declare function nativeSharedFetch(connection: unknown, request: Request, caller?: unknown): Promise<Response>;
20
+ export {};
21
+ //# sourceMappingURL=native-dispatch-adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native-dispatch-adapter.d.ts","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/host/native-dispatch-adapter.ts"],"names":[],"mappings":"AAEA,UAAU,cAAc;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IACjD,MAAM,CAAC,OAAO,EAAE,cAAc,GAAG,aAAa,CAAC,OAAO,CAAC,CAAA;IACvD,QAAQ,CAAC,UAAU,CAAC,EAAE;QAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAA;KAAE,CAAA;CACxK;AAED,kFAAkF;AAClF,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CAG3F;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAG5G"}
@@ -0,0 +1,11 @@
1
+ import { nativeDispatchPeer } from './connection-peer-adapter.js';
2
+ /** Explicit peers work on both Gateway generations; legacy hosts may omit one. */
3
+ export function nativePeerRequest(connection, caller) {
4
+ const peer = nativeDispatchPeer(connection, caller);
5
+ return peer === undefined ? {} : { peer };
6
+ }
7
+ export function nativeSharedFetch(connection, request, caller) {
8
+ const service = connection;
9
+ return service.createSharedFetchHandler('/api').fetch(request, nativeDispatchPeer(connection, caller));
10
+ }
11
+ //# sourceMappingURL=native-dispatch-adapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native-dispatch-adapter.js","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/host/native-dispatch-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAgBjE,kFAAkF;AAClF,MAAM,UAAU,iBAAiB,CAAC,UAAmB,EAAE,MAAgB;IACrE,MAAM,IAAI,GAAG,kBAAkB,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;IACnD,OAAO,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAA;AAC3C,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,UAAmB,EAAE,OAAgB,EAAE,MAAgB;IACvF,MAAM,OAAO,GAAG,UAA2H,CAAA;IAC3I,OAAO,OAAO,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,kBAAkB,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAA;AACxG,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { IncomingMessage, ServerResponse } from 'node:http';
2
+ /** Shared credential landing page; application files are never rewritten. */
3
+ export declare function quickAppCredentials(origin: string, uiOrigin: string, cookieName: string): {
4
+ handle(request: IncomingMessage, response: ServerResponse): Promise<boolean>;
5
+ activate(credential: string, entryPath: string): Promise<{
6
+ url: string;
7
+ }>;
8
+ dispose(): void;
9
+ };
10
+ export declare function endQuickAppResponse(response: ServerResponse, status: number): void;
11
+ //# sourceMappingURL=quick-app-credentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quick-app-credentials.d.ts","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/host/quick-app-credentials.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAShE,6EAA6E;AAC7E,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;oBAK9D,eAAe,YAAY,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;yBAkCvD,MAAM,aAAa,MAAM,GAAG,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;;EAQlF;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAIlF"}
@@ -0,0 +1,97 @@
1
+ import { createHash, randomBytes, timingSafeEqual } from 'node:crypto';
2
+ import { QUICK_APP_LIMITS } from '../../shared/contracts/quick-apps.js';
3
+ import { quickAppBootstrapEn, quickAppBootstrapZh } from '../../shared/quick-apps-bootstrap-locale.js';
4
+ const bootstrapPath = '/__quickapp/bootstrap';
5
+ const exchangePath = '/__quickapp/exchange';
6
+ const readyPath = '/__quickapp/ready';
7
+ const hash = (value) => createHash('sha256').update(value).digest();
8
+ /** Shared credential landing page; application files are never rewritten. */
9
+ export function quickAppCredentials(origin, uiOrigin, cookieName) {
10
+ let active = true;
11
+ let activation;
12
+ let credentialDigest;
13
+ return {
14
+ async handle(request, response) {
15
+ const path = request.url;
16
+ if (path !== bootstrapPath && path !== exchangePath && path !== readyPath)
17
+ return false;
18
+ if (!active) {
19
+ endQuickAppResponse(response, 410);
20
+ return true;
21
+ }
22
+ if (path === bootstrapPath && request.method === 'GET') {
23
+ if (!activation || activation.expires <= Date.now()) {
24
+ activation = undefined;
25
+ endQuickAppResponse(response, 410);
26
+ return true;
27
+ }
28
+ const nonce = randomBytes(18).toString('base64url');
29
+ const copy = /^zh(?:\b|-)/iu.test(request.headers['accept-language'] ?? '') ? quickAppBootstrapZh : quickAppBootstrapEn;
30
+ response.setHeader('Content-Type', 'text/html; charset=utf-8');
31
+ response.setHeader('Content-Security-Policy', `default-src 'none'; script-src 'nonce-${nonce}'; connect-src 'self'; frame-ancestors ${uiOrigin}; base-uri 'none'; form-action 'none'`);
32
+ response.end(`<!doctype html><meta name="viewport" content="width=device-width,initial-scale=1"><p id="status">${copy['quickApps.opening']}</p><script nonce="${nonce}">(async()=>{const ticket=location.hash.slice(1);history.replaceState(null,'',location.pathname);try{const r=await fetch('${exchangePath}',{method:'POST',headers:{'Content-Type':'text/plain'},body:ticket,credentials:'include'});if(!r.ok)throw 0;const next=await r.text();const ready=await fetch('${readyPath}',{credentials:'include'});if(!ready.ok)throw 0;location.replace(next)}catch{document.querySelector('#status').textContent=${JSON.stringify(copy['quickApps.bootstrapFailed'])}}})()</script>`);
33
+ return true;
34
+ }
35
+ if (path === exchangePath) {
36
+ if (request.method !== 'POST' || request.headers.origin !== origin || request.headers['content-type'] !== 'text/plain'
37
+ || !activation || activation.expires <= Date.now()) {
38
+ endQuickAppResponse(response, 403);
39
+ return true;
40
+ }
41
+ const ticket = await readTicket(request);
42
+ if (!ticket || !active || !activation || !timingSafeEqual(activation.digest, hash(ticket))) {
43
+ endQuickAppResponse(response, 403);
44
+ return true;
45
+ }
46
+ const grant = activation;
47
+ activation = undefined;
48
+ credentialDigest = hash(grant.credential);
49
+ response.setHeader('Set-Cookie', `${cookieName}=${grant.credential}; Path=/; Secure; HttpOnly; SameSite=None; Partitioned; Max-Age=${QUICK_APP_LIMITS.lifetimeMs / 1000}`);
50
+ response.setHeader('Content-Type', 'text/plain; charset=utf-8');
51
+ response.end(grant.entryPath);
52
+ return true;
53
+ }
54
+ if (path === readyPath) {
55
+ const cookies = request.headers.cookie?.split(';').map(value => value.trim()).filter(value => value.startsWith(`${cookieName}=`)) ?? [];
56
+ const supplied = cookies.length === 1 ? cookies[0].slice(cookieName.length + 1) : '';
57
+ endQuickAppResponse(response, request.method === 'GET' && credentialDigest && timingSafeEqual(credentialDigest, hash(supplied)) ? 204 : 401);
58
+ return true;
59
+ }
60
+ endQuickAppResponse(response, 405);
61
+ return true;
62
+ },
63
+ async activate(credential, entryPath) {
64
+ if (!active || activation || credentialDigest || !/^\/(?!\/)/u.test(entryPath) || /[\r\n#?]/u.test(entryPath))
65
+ throw new Error('Invalid app activation.');
66
+ const ticket = randomBytes(32).toString('base64url');
67
+ activation = { digest: hash(ticket), credential, entryPath, expires: Date.now() + 60_000 };
68
+ return { url: `${origin}${bootstrapPath}#${ticket}` };
69
+ },
70
+ dispose() { active = false; activation = undefined; credentialDigest = undefined; },
71
+ };
72
+ }
73
+ export function endQuickAppResponse(response, status) {
74
+ if (response.headersSent) {
75
+ response.destroy();
76
+ return;
77
+ }
78
+ response.setHeader('Cache-Control', 'no-store');
79
+ response.writeHead(status);
80
+ response.end();
81
+ }
82
+ async function readTicket(request) {
83
+ if (Number(request.headers['content-length'] ?? 0) > 128) {
84
+ request.resume();
85
+ return undefined;
86
+ }
87
+ let body = '';
88
+ for await (const chunk of request.iterator({ destroyOnReturn: false })) {
89
+ body += String(chunk);
90
+ if (body.length > 128) {
91
+ request.resume();
92
+ return undefined;
93
+ }
94
+ }
95
+ return /^[A-Za-z0-9_-]{43}$/u.test(body) ? body : undefined;
96
+ }
97
+ //# sourceMappingURL=quick-app-credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quick-app-credentials.js","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/host/quick-app-credentials.ts"],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M,CAAC,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC;QAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QAAC,OAAO,SAAS,CAAA;IAAC,CAAC;IAChG,IAAI,IAAI,GAAG,EAAE,CAAA;IACb,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,OAAO,CAAC,QAAQ,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACvE,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,CAAA;QACrB,IAAI,IAAI,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC;YAAC,OAAO,CAAC,MAAM,EAAE,CAAC;YAAC,OAAO,SAAS,CAAA;QAAC,CAAC;IAC/D,CAAC;IACD,OAAO,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAA;AAC7D,CAAC"}
@@ -0,0 +1,36 @@
1
+ import type { IncomingMessage, ServerResponse } from 'node:http';
2
+ import type { QuickAppOriginLease, QuickAppOriginProvider } from './quick-app-origin-adapter.js';
3
+ /** Operator-owned configuration, never settings mirrored to browsers or an RPC argument. */
4
+ export interface QuickAppHttpsConfig {
5
+ readonly appDomain: string;
6
+ readonly uiOrigins: readonly string[];
7
+ readonly listenHost: string;
8
+ readonly listenPort: number;
9
+ readonly publicPort: number;
10
+ readonly certFile: string;
11
+ readonly keyFile: string;
12
+ }
13
+ export declare function parseQuickAppHttpsConfig(value: unknown): QuickAppHttpsConfig;
14
+ /** No listener is started until an authenticated user opens an HTML app. */
15
+ export declare function configuredQuickAppHttpsProvider(configPath?: string | undefined): Promise<QuickAppHttpsProvider | undefined>;
16
+ export declare function boundedFile(path: string, limit: number): Promise<string>;
17
+ /** Dedicated TLS virtual-host listener. It never serves or proxies privileged DSH routes. */
18
+ export declare class QuickAppHttpsProvider implements QuickAppOriginProvider {
19
+ private readonly config;
20
+ private readonly tls;
21
+ private readonly routes;
22
+ private server;
23
+ private pending;
24
+ private stopped;
25
+ constructor(config: QuickAppHttpsConfig, tls: {
26
+ cert: string;
27
+ key: string;
28
+ });
29
+ available(uiOrigin?: string): boolean;
30
+ open(handler: (request: IncomingMessage, response: ServerResponse) => void, uiOrigin?: string): Promise<QuickAppOriginLease>;
31
+ dispose(): Promise<void>;
32
+ private listen;
33
+ private closeListener;
34
+ private serialize;
35
+ }
36
+ //# sourceMappingURL=quick-app-https-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quick-app-https-provider.d.ts","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/host/quick-app-https-provider.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAEhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AAIhG,4FAA4F;AAC5F,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAA;IACrC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB;AAKD,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,mBAAmB,CAqB5E;AAED,4EAA4E;AAC5E,wBAAsB,+BAA+B,CAAC,UAAU,qBAA+C,GAAG,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAQ3J;AAED,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAU9E;AAID,6FAA6F;AAC7F,qBAAa,qBAAsB,YAAW,sBAAsB;IAKtD,OAAO,CAAC,QAAQ,CAAC,MAAM;IAAuB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAJ9E,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAClD,OAAO,CAAC,MAAM,CAAoB;IAClC,OAAO,CAAC,OAAO,CAAmC;IAClD,OAAO,CAAC,OAAO,CAAQ;gBACM,MAAM,EAAE,mBAAmB,EAAmB,GAAG,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE;IAS7G,SAAS,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO;IACrC,IAAI,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,cAAc,KAAK,IAAI,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAwB5H,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;YAIV,MAAM;YAsBN,aAAa;IAM3B,OAAO,CAAC,SAAS;CAKlB"}
@@ -0,0 +1,164 @@
1
+ import { randomBytes, X509Certificate } from 'node:crypto';
2
+ import { isAbsolute } from 'node:path';
3
+ import { isIP } from 'node:net';
4
+ import { createServer } from 'node:https';
5
+ import { QUICK_APP_LIMITS } from '../../shared/contracts/quick-apps.js';
6
+ import { endQuickAppResponse as end, quickAppCredentials } from './quick-app-credentials.js';
7
+ const cookieName = '__Host-quickapp';
8
+ const unavailable = () => Object.assign(new Error('Quick Apps HTTPS configuration is unavailable or invalid.'), { code: 'QUICK_APP_ORIGIN_UNAVAILABLE' });
9
+ export function parseQuickAppHttpsConfig(value) {
10
+ if (!value || typeof value !== 'object' || Array.isArray(value))
11
+ throw unavailable();
12
+ const config = value;
13
+ const keys = ['appDomain', 'uiOrigins', 'listenHost', 'listenPort', 'publicPort', 'certFile', 'keyFile'];
14
+ if (Object.keys(config).some(key => !keys.includes(key)) || typeof config.appDomain !== 'string'
15
+ || config.appDomain.length > 190 || !/^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z]{2,}$/u.test(config.appDomain)
16
+ || config.appDomain.split('.').some(label => label.length > 63)
17
+ || config.appDomain === 'localhost' || config.appDomain.endsWith('.localhost') || isIP(config.appDomain)
18
+ || !isIP(config.listenHost) || ![config.listenPort, config.publicPort].every(port => Number.isInteger(port) && port > 0 && port < 65536)
19
+ || ![config.certFile, config.keyFile].every(path => typeof path === 'string' && isAbsolute(path))
20
+ || !Array.isArray(config.uiOrigins) || config.uiOrigins.length < 1 || config.uiOrigins.length > 16)
21
+ throw unavailable();
22
+ for (const origin of config.uiOrigins) {
23
+ let ui;
24
+ try {
25
+ ui = new URL(origin);
26
+ }
27
+ catch {
28
+ throw unavailable();
29
+ }
30
+ if (ui.origin !== origin || !['http:', 'https:'].includes(ui.protocol) || ui.username || ui.password
31
+ || ui.hostname === config.appDomain || ui.hostname.endsWith(`.${config.appDomain}`)
32
+ // Conservatively reject even sibling sites under a multi-label public suffix.
33
+ // Different final two DNS labels ensure UI Domain cookies cannot reach app pages.
34
+ || ui.hostname.split('.').slice(-2).join('.') === config.appDomain.split('.').slice(-2).join('.'))
35
+ throw unavailable();
36
+ }
37
+ return structuredClone(config);
38
+ }
39
+ /** No listener is started until an authenticated user opens an HTML app. */
40
+ export async function configuredQuickAppHttpsProvider(configPath = process.env.CODINGNS_QUICK_APPS_HTTPS_CONFIG) {
41
+ if (!configPath)
42
+ return undefined;
43
+ try {
44
+ if (!isAbsolute(configPath))
45
+ throw unavailable();
46
+ const config = parseQuickAppHttpsConfig(JSON.parse(await boundedFile(configPath, 32 * 1024)));
47
+ const [cert, key] = await Promise.all([boundedFile(config.certFile, 128 * 1024), boundedFile(config.keyFile, 64 * 1024)]);
48
+ return new QuickAppHttpsProvider(config, { cert, key });
49
+ }
50
+ catch {
51
+ throw unavailable();
52
+ }
53
+ }
54
+ export async function boundedFile(path, limit) {
55
+ const { open } = await import('node:fs/promises');
56
+ const file = await open(path, 'r');
57
+ try {
58
+ if (!(await file.stat()).isFile())
59
+ throw unavailable();
60
+ const bytes = Buffer.alloc(limit + 1);
61
+ const { bytesRead } = await file.read(bytes, 0, bytes.length, 0);
62
+ if (bytesRead > limit)
63
+ throw unavailable();
64
+ return bytes.subarray(0, bytesRead).toString('utf8');
65
+ }
66
+ finally {
67
+ await file.close();
68
+ }
69
+ }
70
+ /** Dedicated TLS virtual-host listener. It never serves or proxies privileged DSH routes. */
71
+ export class QuickAppHttpsProvider {
72
+ config;
73
+ tls;
74
+ routes = new Map();
75
+ server;
76
+ pending = Promise.resolve();
77
+ stopped = false;
78
+ constructor(config, tls) {
79
+ this.config = config;
80
+ this.tls = tls;
81
+ parseQuickAppHttpsConfig(config);
82
+ const certificate = new X509Certificate(tls.cert);
83
+ if (!certificate.checkHost(`probe.${config.appDomain}`) || Date.parse(certificate.validTo) <= Date.now()
84
+ || Date.parse(certificate.validFrom) > Date.now())
85
+ throw unavailable();
86
+ // Validate the key pair before reporting the configured transport as available.
87
+ const probe = createServer({ ...tls, minVersion: 'TLSv1.2' });
88
+ probe.close();
89
+ }
90
+ available(uiOrigin) { return !this.stopped && typeof uiOrigin === 'string' && this.config.uiOrigins.includes(uiOrigin); }
91
+ open(handler, uiOrigin) {
92
+ return this.serialize(async () => {
93
+ if (!this.available(uiOrigin) || this.routes.size >= QUICK_APP_LIMITS.launches)
94
+ throw unavailable();
95
+ await this.listen();
96
+ // Random names are never reused, including across Host/module restarts.
97
+ const hostname = `${randomBytes(24).toString('hex')}.${this.config.appDomain}`;
98
+ const origin = `https://${hostname}${this.config.publicPort === 443 ? '' : `:${this.config.publicPort}`}`;
99
+ const host = new URL(origin).host;
100
+ const credentials = quickAppCredentials(origin, uiOrigin, cookieName);
101
+ const route = { host, handle: async (request, response) => {
102
+ if (!await credentials.handle(request, response))
103
+ handler(request, response);
104
+ } };
105
+ this.routes.set(hostname, route);
106
+ return {
107
+ origin, uiOrigin: uiOrigin, ownerHostId: 'local', remote: true, cookieName,
108
+ activate: credentials.activate,
109
+ dispose: () => this.serialize(async () => {
110
+ credentials.dispose();
111
+ this.routes.delete(hostname);
112
+ if (this.routes.size === 0)
113
+ await this.closeListener();
114
+ }),
115
+ };
116
+ });
117
+ }
118
+ dispose() {
119
+ this.stopped = true;
120
+ return this.serialize(async () => { this.routes.clear(); await this.closeListener(); });
121
+ }
122
+ async listen() {
123
+ if (this.server)
124
+ return;
125
+ const server = createServer({ ...this.tls, minVersion: 'TLSv1.2', handshakeTimeout: 10_000, maxHeaderSize: 16 * 1024 }, (request, response) => {
126
+ response.setHeader('Cache-Control', 'no-store');
127
+ response.setHeader('Referrer-Policy', 'no-referrer');
128
+ response.setHeader('X-Content-Type-Options', 'nosniff');
129
+ const sni = request.socket.servername;
130
+ const route = typeof sni === 'string' ? this.routes.get(sni) : undefined;
131
+ // Never trust forwarded Host/Origin headers; TLS terminates at this listener.
132
+ if (!route || request.headers.host !== route.host || request.rawHeaders.filter((_, i) => i % 2 === 0 && request.rawHeaders[i].toLowerCase() === 'host').length !== 1)
133
+ return end(response, 421);
134
+ void route.handle(request, response).catch(() => end(response, 400));
135
+ });
136
+ server.requestTimeout = 15_000;
137
+ server.headersTimeout = 10_000;
138
+ server.timeout = 30_000;
139
+ server.keepAliveTimeout = 5_000;
140
+ server.maxRequestsPerSocket = 100;
141
+ server.maxConnections = 256;
142
+ await new Promise((resolve, reject) => {
143
+ server.once('error', reject);
144
+ server.listen(this.config.listenPort, this.config.listenHost, () => { server.removeListener('error', reject); resolve(); });
145
+ }).catch(() => { server.close(); throw unavailable(); });
146
+ // Listener failures must not take down unrelated Host modules.
147
+ server.on('error', () => { void this.dispose(); });
148
+ this.server = server;
149
+ }
150
+ async closeListener() {
151
+ const server = this.server;
152
+ this.server = undefined;
153
+ if (!server)
154
+ return;
155
+ server.closeAllConnections();
156
+ await new Promise(resolve => server.close(() => resolve()));
157
+ }
158
+ serialize(operation) {
159
+ const result = this.pending.catch(() => undefined).then(operation);
160
+ this.pending = result.then(() => undefined, () => undefined);
161
+ return result;
162
+ }
163
+ }
164
+ //# sourceMappingURL=quick-app-https-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quick-app-https-provider.js","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/host/quick-app-https-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAE,YAAY,EAAe,MAAM,YAAY,CAAA;AAItD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAA;AACvE,OAAO,EAAE,mBAAmB,IAAI,GAAG,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAa5F,MAAM,UAAU,GAAG,iBAAiB,CAAA;AACpC,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,2DAA2D,CAAC,EAAE,EAAE,IAAI,EAAE,8BAA8B,EAAE,CAAC,CAAA;AAEzJ,MAAM,UAAU,wBAAwB,CAAC,KAAc;IACrD,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,MAAM,WAAW,EAAE,CAAA;IACpF,MAAM,MAAM,GAAG,KAA4B,CAAA;IAC3C,MAAM,IAAI,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,CAAC,CAAA;IACxG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG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SAAS,CAAA;QACnD,IAAI,CAAC,MAAM;YAAE,OAAM;QACnB,MAAM,CAAC,mBAAmB,EAAE,CAAA;QAC5B,MAAM,IAAI,OAAO,CAAO,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,CAAA;IACnE,CAAC;IACO,SAAS,CAAI,SAA2B;QAC9C,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QAClE,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAA;QAC5D,OAAO,MAAM,CAAA;IACf,CAAC;CACF"}
@@ -0,0 +1,44 @@
1
+ import type { IncomingMessage, ServerResponse } from 'node:http';
2
+ import { type QuickAppRuntimeReason } from '../../shared/contracts/quick-apps.js';
3
+ import type { QuickAppLanTransport, QuickAppOriginLease, QuickAppOriginProvider } from './quick-app-origin-adapter.js';
4
+ export interface QuickAppLanPortsConfig {
5
+ readonly transport: 'lan-ports';
6
+ readonly publicHost: string;
7
+ readonly uiOrigins: readonly string[];
8
+ readonly ports: readonly [number, number];
9
+ readonly stateDirectory: string;
10
+ readonly certFile: string;
11
+ readonly keyFile: string;
12
+ }
13
+ export declare function parseQuickAppLanPortsConfig(value: unknown): QuickAppLanPortsConfig;
14
+ /** Browsers cannot forge these headers; they are an origin fence, never authentication. */
15
+ export declare function sameBrowserOrigin(headers: Record<string, string | string[] | undefined>, origin: string): boolean;
16
+ /** Dedicated app HTTPS ports on the existing LAN bind address; no DSH forwarding. */
17
+ export declare class QuickAppLanPortsProvider implements QuickAppOriginProvider, QuickAppLanTransport {
18
+ private readonly tls;
19
+ readonly isolation: "lan-port";
20
+ private listenHost;
21
+ private stopped;
22
+ private pending;
23
+ private readonly active;
24
+ private readonly reserved;
25
+ private allocationFailure;
26
+ private generation;
27
+ private readonly config;
28
+ constructor(config: QuickAppLanPortsConfig, tls: {
29
+ cert: string;
30
+ key: string;
31
+ });
32
+ /** Read persistent reservations before availability is advertised. Never delete this history. */
33
+ initialize(): Promise<void>;
34
+ started(listenHost: string): void;
35
+ stopping(): Promise<void>;
36
+ dispose(): Promise<void>;
37
+ available(uiOrigin?: string): boolean;
38
+ protects(uiOrigin?: string): boolean;
39
+ diagnostic(uiOrigin?: string): QuickAppRuntimeReason | undefined;
40
+ permits(headers: Record<string, string>, method: string, path: string): boolean;
41
+ open(handler: (request: IncomingMessage, response: ServerResponse) => void, uiOrigin?: string): Promise<QuickAppOriginLease>;
42
+ private allocate;
43
+ }
44
+ //# sourceMappingURL=quick-app-lan-ports.d.ts.map