@bastani/atomic 0.10.4 → 0.10.5-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (537) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/_shared/compile-cache-warmup-host-RU5L7I7A.js +1 -1
  3. package/dist/_shared/dist-KOELCESV.js +48 -3
  4. package/dist/_shared/fork-row-index-UAUAQRD5.js +47 -2
  5. package/dist/_shared/http-YFAPTIZD.js +16 -4
  6. package/dist/_shared/http-YFAPTIZD.js.map +1 -1
  7. package/dist/_shared/lib-4PES5P4V.js +59 -14
  8. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +1706 -258
  9. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
  10. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +317 -64
  11. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
  12. package/dist/_shared/{mode-shared-HP7GUA7J.js → mode-shared-2QJSCUM6.js} +432 -81
  13. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -0
  14. package/dist/_shared/p0-cli-BB45ZQY6.js +3482 -0
  15. package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -0
  16. package/dist/_shared/p0-cli-GUFK7TPN.js +2 -2838
  17. package/dist/_shared/p0-cli-GUFK7TPN.js.map +1 -1
  18. package/dist/_shared/{p1a-prewarm-YK3KDTLN.js → p1a-prewarm-UQY3X2UK.js} +270 -73
  19. package/dist/_shared/p1a-prewarm-UQY3X2UK.js.map +1 -0
  20. package/dist/_shared/{p1b-elig-PXQA2FYP.js → p1b-elig-ENCUPKKJ.js} +190 -121
  21. package/dist/_shared/p1b-elig-ENCUPKKJ.js.map +1 -0
  22. package/dist/_shared/p2-common-YLSYXMDQ.js +1 -3
  23. package/dist/_shared/p2-common-YLSYXMDQ.js.map +1 -1
  24. package/dist/_shared/p2-shell-TJBYQMCJ.js +1 -1
  25. package/dist/_shared/p2-shell-main-B2WIALFD.js +500 -127
  26. package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
  27. package/dist/_shared/runtime-O4KCSG4C.js +4 -4
  28. package/dist/_shared/sdk-WQIOHVKO.js +56 -11
  29. package/dist/_shared/session-data-AHTU7IS6.js +48 -3
  30. package/dist/_shared/session-manager-list-2BLEEZVG.js +2 -2
  31. package/dist/_shared/settings-startup-65YEWRV2.js.map +1 -1
  32. package/dist/_shared/sql-session-store-5FD3WBMZ.js +57 -12
  33. package/dist/_shared/{startup-0-0-X4NF3GKM.js → startup-0-0-TYUFUOJZ.js} +519 -316
  34. package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +1 -0
  35. package/dist/_shared/{startup-0-1-7QTG6VJZ.js → startup-0-1-D4LGGINF.js} +284 -81
  36. package/dist/_shared/startup-0-1-D4LGGINF.js.map +1 -0
  37. package/dist/_shared/{startup-0-2-KFDYPDJK.js → startup-0-2-SZGQIWHI.js} +483 -154
  38. package/dist/_shared/startup-0-2-SZGQIWHI.js.map +1 -0
  39. package/dist/_shared/startup-0-3-T4DVFYWX.js +340 -110
  40. package/dist/_shared/startup-0-3-T4DVFYWX.js.map +1 -1
  41. package/dist/_shared/startup-0-4-HN5EB4K7.js +261 -59
  42. package/dist/_shared/startup-0-4-HN5EB4K7.js.map +1 -1
  43. package/dist/_shared/startup-0-5-OHJNE6JH.js +421 -148
  44. package/dist/_shared/startup-0-5-OHJNE6JH.js.map +1 -1
  45. package/dist/_shared/startup-10-0-TDQNBDDL.js +62 -11
  46. package/dist/_shared/startup-10-0-TDQNBDDL.js.map +1 -1
  47. package/dist/_shared/startup-12-0-55AAXBJZ.js +3 -3
  48. package/dist/_shared/startup-14-0-MLX36RBG.js +12 -11
  49. package/dist/_shared/startup-14-0-MLX36RBG.js.map +1 -1
  50. package/dist/_shared/startup-15-0-YUKGAC63.js +53 -158
  51. package/dist/_shared/startup-15-0-YUKGAC63.js.map +1 -1
  52. package/dist/_shared/startup-15-1-4S7FLMNG.js +231 -46
  53. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  54. package/dist/_shared/startup-8-0-34CBHPZH.js +115 -35
  55. package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
  56. package/dist/_shared/{startup-8-1-KQJBDKRU.js → startup-8-1-SJW2GMAM.js} +203 -62
  57. package/dist/_shared/startup-8-1-SJW2GMAM.js.map +1 -0
  58. package/dist/_shared/storage-command-7MGXLJGZ.js +55 -10
  59. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +47 -2
  60. package/dist/_shared/tree-outline-MUEPK5B7.js +48 -3
  61. package/dist/builtin/intercom/CHANGELOG.md +21 -0
  62. package/dist/builtin/intercom/README.md +0 -1
  63. package/dist/builtin/intercom/broker/broker-instance.ts +13 -57
  64. package/dist/builtin/intercom/broker/broker-process.ts +30 -10
  65. package/dist/builtin/intercom/broker/broker-routing.ts +12 -2
  66. package/dist/builtin/intercom/broker/broker.bundle.mjs +2557 -498
  67. package/dist/builtin/intercom/broker/broker.ts +164 -55
  68. package/dist/builtin/intercom/broker/client.ts +36 -16
  69. package/dist/builtin/intercom/broker/control.ts +83 -20
  70. package/dist/builtin/intercom/broker/durable-ended-queue.ts +65 -19
  71. package/dist/builtin/intercom/broker/host-command-environment.ts +7 -2
  72. package/dist/builtin/intercom/broker/multinode-router.ts +1675 -387
  73. package/dist/builtin/intercom/broker/multinode-state-store.ts +10 -0
  74. package/dist/builtin/intercom/broker/paths.ts +68 -6
  75. package/dist/builtin/intercom/broker/pending-send-registry.ts +5 -0
  76. package/dist/builtin/intercom/broker/registration-bounds.ts +38 -0
  77. package/dist/builtin/intercom/broker/retiring-broker-check.ts +178 -0
  78. package/dist/builtin/intercom/broker/return-paths.ts +268 -7
  79. package/dist/builtin/intercom/broker/send-handler.ts +253 -28
  80. package/dist/builtin/intercom/broker/send-order-gate.ts +410 -0
  81. package/dist/builtin/intercom/broker/spawn.ts +950 -202
  82. package/dist/builtin/intercom/broker/sql-lease-store.ts +37 -0
  83. package/dist/builtin/intercom/broker/sql-outbox-store.ts +7 -0
  84. package/dist/builtin/intercom/broker/windows-cwd.ts +546 -0
  85. package/dist/builtin/intercom/index.bundle.mjs +3506 -2328
  86. package/dist/builtin/intercom/package.json +1 -1
  87. package/dist/builtin/intercom/retry-policy.ts +4 -0
  88. package/dist/builtin/intercom/types.ts +2 -0
  89. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  90. package/dist/builtin/mcp/package.json +1 -1
  91. package/dist/builtin/subagents/CHANGELOG.md +6 -0
  92. package/dist/builtin/subagents/package.json +1 -1
  93. package/dist/builtin/subagents/src/extension/index.bundle.mjs +336 -86
  94. package/dist/builtin/web-access/index.bundle.mjs +23 -38
  95. package/dist/builtin/web-access/package.json +1 -1
  96. package/dist/bun/cli.js +1 -1
  97. package/dist/bun/cli.js.map +1 -1
  98. package/dist/bun/internal-intercom-broker.js +119 -4
  99. package/dist/bun/internal-intercom-broker.js.map +1 -1
  100. package/dist/bun/register-theme-validator.js +6 -0
  101. package/dist/bun/register-theme-validator.js.map +1 -0
  102. package/dist/cli/args.js +2 -2
  103. package/dist/cli/auth-cli.code.js +1102 -0
  104. package/dist/cli/auth-cli.code.js.map +1 -0
  105. package/dist/cli/auth-cli.impl.js +30 -1096
  106. package/dist/cli/auth-cli.impl.js.map +1 -1
  107. package/dist/cli/auth-cli.js +11 -7
  108. package/dist/cli/blueprint-command.code.js +906 -0
  109. package/dist/cli/blueprint-command.code.js.map +1 -0
  110. package/dist/cli/blueprint-command.impl.js +30 -900
  111. package/dist/cli/blueprint-command.impl.js.map +1 -1
  112. package/dist/cli/blueprint-command.js +11 -7
  113. package/dist/cli/intercom-command.code.js +153 -0
  114. package/dist/cli/intercom-command.code.js.map +1 -0
  115. package/dist/cli/intercom-command.impl.js +33 -105
  116. package/dist/cli/intercom-command.impl.js.map +1 -1
  117. package/dist/cli/intercom-command.js +11 -7
  118. package/dist/cli/list-models.code.js +60 -0
  119. package/dist/cli/list-models.code.js.map +1 -0
  120. package/dist/cli/list-models.impl.js +33 -57
  121. package/dist/cli/list-models.impl.js.map +1 -1
  122. package/dist/cli/list-models.js +11 -7
  123. package/dist/cli/session-picker.code.js +55 -0
  124. package/dist/cli/session-picker.code.js.map +1 -0
  125. package/dist/cli/session-picker.impl.js +33 -52
  126. package/dist/cli/session-picker.impl.js.map +1 -1
  127. package/dist/cli/session-picker.js +11 -7
  128. package/dist/cli/startup-ui.code.js +5 -0
  129. package/dist/cli/startup-ui.code.js.map +1 -0
  130. package/dist/cli/startup-ui.impl.js +35 -4
  131. package/dist/cli/startup-ui.js +11 -7
  132. package/dist/cli/storage-command.code.js +3 -0
  133. package/dist/cli/storage-command.code.js.map +1 -0
  134. package/dist/cli/storage-command.impl.js +35 -2
  135. package/dist/cli/storage-command.js +11 -7
  136. package/dist/cli/storage-search-session.code.js +189 -0
  137. package/dist/cli/storage-search-session.code.js.map +1 -0
  138. package/dist/cli/storage-search-session.impl.js +33 -186
  139. package/dist/cli/storage-search-session.impl.js.map +1 -1
  140. package/dist/cli/storage-search-session.js +11 -7
  141. package/dist/cli/team-command.code.js +217 -0
  142. package/dist/cli/team-command.code.js.map +1 -0
  143. package/dist/cli/team-command.impl.js +32 -213
  144. package/dist/cli/team-command.impl.js.map +1 -1
  145. package/dist/cli/team-command.js +11 -7
  146. package/dist/cli.js +60 -11
  147. package/dist/cli.js.map +1 -1
  148. package/dist/config.js +1 -1
  149. package/dist/core/agent-session-methods.d.ts +4 -3
  150. package/dist/core/agent-session-methods.js.map +1 -1
  151. package/dist/core/agent-session-types.d.ts +5 -0
  152. package/dist/core/compaction/compaction.d.ts +6 -0
  153. package/dist/core/compaction/model-resolver.d.ts +1 -1
  154. package/dist/core/debug.code.js +3 -0
  155. package/dist/core/debug.code.js.map +1 -0
  156. package/dist/core/debug.impl.js +35 -2
  157. package/dist/core/debug.js +11 -7
  158. package/dist/core/default-model-api-prewarm.d.ts +5 -0
  159. package/dist/core/export-html/card-projection.code.js +257 -0
  160. package/dist/core/export-html/card-projection.code.js.map +1 -0
  161. package/dist/core/export-html/card-projection.impl.js +34 -255
  162. package/dist/core/export-html/card-projection.impl.js.map +1 -1
  163. package/dist/core/export-html/card-projection.js +11 -7
  164. package/dist/core/export-html/index.code.js +655 -0
  165. package/dist/core/export-html/index.code.js.map +1 -0
  166. package/dist/core/export-html/index.impl.js +30 -604
  167. package/dist/core/export-html/index.impl.js.map +1 -1
  168. package/dist/core/export-html/index.js +11 -7
  169. package/dist/core/export-html/json-spans.code.js +3 -0
  170. package/dist/core/export-html/json-spans.code.js.map +1 -0
  171. package/dist/core/export-html/json-spans.impl.js +35 -2
  172. package/dist/core/export-html/json-spans.js +11 -7
  173. package/dist/core/export-html/oversized-render-inputs.code.js +125 -0
  174. package/dist/core/export-html/oversized-render-inputs.code.js.map +1 -0
  175. package/dist/core/export-html/oversized-render-inputs.impl.js +31 -120
  176. package/dist/core/export-html/oversized-render-inputs.impl.js.map +1 -1
  177. package/dist/core/export-html/oversized-render-inputs.js +11 -7
  178. package/dist/core/export-html/tool-renderer.code.js +350 -0
  179. package/dist/core/export-html/tool-renderer.code.js.map +1 -0
  180. package/dist/core/export-html/tool-renderer.impl.js +33 -347
  181. package/dist/core/export-html/tool-renderer.impl.js.map +1 -1
  182. package/dist/core/export-html/tool-renderer.js +11 -7
  183. package/dist/core/extensions/jiti-loader.code.js +3 -0
  184. package/dist/core/extensions/jiti-loader.code.js.map +1 -0
  185. package/dist/core/extensions/jiti-loader.impl.js +35 -2
  186. package/dist/core/extensions/jiti-loader.js +11 -7
  187. package/dist/core/extensions/jiti-static-loader.code.js +3 -0
  188. package/dist/core/extensions/jiti-static-loader.code.js.map +1 -0
  189. package/dist/core/extensions/jiti-static-loader.impl.js +35 -2
  190. package/dist/core/extensions/jiti-static-loader.js +11 -7
  191. package/dist/core/extensions/loader-host-modules.code.js +3 -0
  192. package/dist/core/extensions/loader-host-modules.code.js.map +1 -0
  193. package/dist/core/extensions/loader-host-modules.impl.js +35 -2
  194. package/dist/core/extensions/loader-host-modules.js +11 -7
  195. package/dist/core/extensions/loader-virtual-modules.d.ts +1 -6
  196. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  197. package/dist/core/extensions/runner-context.js +3 -3
  198. package/dist/core/extensions/session-events.d.ts +4 -0
  199. package/dist/core/extensions/session-events.js.map +1 -1
  200. package/dist/core/intercom-broker-control-host.code.js +5 -0
  201. package/dist/core/intercom-broker-control-host.code.js.map +1 -0
  202. package/dist/core/intercom-broker-control-host.impl.js +35 -4
  203. package/dist/core/intercom-broker-control-host.js +11 -7
  204. package/dist/core/intercom-broker-control.code.js +63 -0
  205. package/dist/core/intercom-broker-control.code.js.map +1 -0
  206. package/dist/core/intercom-broker-control.d.ts +21 -0
  207. package/dist/core/intercom-broker-control.impl.js +35 -17
  208. package/dist/core/intercom-broker-control.impl.js.map +1 -1
  209. package/dist/core/intercom-broker-control.js +11 -7
  210. package/dist/core/package-manager-storage-adapters.code.js +3 -0
  211. package/dist/core/package-manager-storage-adapters.code.js.map +1 -0
  212. package/dist/core/package-manager-storage-adapters.impl.js +35 -2
  213. package/dist/core/package-manager-storage-adapters.js +11 -7
  214. package/dist/core/process-start-token.d.ts +8 -2
  215. package/dist/core/process-tree-containment.d.ts +27 -0
  216. package/dist/core/queued-message-delivery.d.ts +5 -2
  217. package/dist/core/resume/blueprint/process.d.ts +3 -1
  218. package/dist/core/sdk.code.js +9 -0
  219. package/dist/core/sdk.code.js.map +1 -0
  220. package/dist/core/sdk.impl.js +35 -8
  221. package/dist/core/sdk.js +11 -7
  222. package/dist/core/session-manager-core.d.ts +15 -5
  223. package/dist/core/session-manager-core.js +195 -38
  224. package/dist/core/session-manager-core.js.map +1 -1
  225. package/dist/core/session-manager-list.code.js +3 -0
  226. package/dist/core/session-manager-list.code.js.map +1 -0
  227. package/dist/core/session-manager-list.impl.js +35 -2
  228. package/dist/core/session-manager-list.js +11 -7
  229. package/dist/core/session-manager-types.d.ts +20 -0
  230. package/dist/core/session-manager.code.js +8 -0
  231. package/dist/core/session-manager.code.js.map +1 -0
  232. package/dist/core/session-manager.d.ts +1 -1
  233. package/dist/core/session-manager.impl.js +35 -7
  234. package/dist/core/session-manager.js +11 -7
  235. package/dist/core/session-storage.code.js +3 -0
  236. package/dist/core/session-storage.code.js.map +1 -0
  237. package/dist/core/session-storage.impl.js +35 -2
  238. package/dist/core/session-storage.js +11 -7
  239. package/dist/core/storage/file-identity.d.ts +3 -0
  240. package/dist/core/storage/file-identity.js +296 -86
  241. package/dist/core/storage/file-identity.js.map +1 -1
  242. package/dist/core/storage/index.d.ts +1 -1
  243. package/dist/core/storage/index.js +52 -7
  244. package/dist/core/storage/index.js.map +1 -1
  245. package/dist/core/storage/node-sqlite-thread.js +47 -2
  246. package/dist/core/storage/node-sqlite.js +49 -4
  247. package/dist/core/storage/node-sqlite.js.map +1 -1
  248. package/dist/core/storage/offline-snapshot-file.code.js +37 -0
  249. package/dist/core/storage/offline-snapshot-file.code.js.map +1 -0
  250. package/dist/core/storage/offline-snapshot-file.impl.js +33 -34
  251. package/dist/core/storage/offline-snapshot-file.impl.js.map +1 -1
  252. package/dist/core/storage/offline-snapshot-file.js +11 -7
  253. package/dist/core/storage/provider.js +52 -7
  254. package/dist/core/storage/selection.js +49 -4
  255. package/dist/core/storage/session/branch-fork-source.code.js +146 -0
  256. package/dist/core/storage/session/branch-fork-source.code.js.map +1 -0
  257. package/dist/core/storage/session/branch-fork-source.impl.js +32 -97
  258. package/dist/core/storage/session/branch-fork-source.impl.js.map +1 -1
  259. package/dist/core/storage/session/branch-fork-source.js +11 -7
  260. package/dist/core/storage/session/card-view.code.js +60 -0
  261. package/dist/core/storage/session/card-view.code.js.map +1 -0
  262. package/dist/core/storage/session/card-view.impl.js +34 -58
  263. package/dist/core/storage/session/card-view.impl.js.map +1 -1
  264. package/dist/core/storage/session/card-view.js +11 -7
  265. package/dist/core/storage/session/child-reader.code.js +139 -0
  266. package/dist/core/storage/session/child-reader.code.js.map +1 -0
  267. package/dist/core/storage/session/child-reader.d.ts +1 -0
  268. package/dist/core/storage/session/child-reader.impl.js +33 -91
  269. package/dist/core/storage/session/child-reader.impl.js.map +1 -1
  270. package/dist/core/storage/session/child-reader.js +11 -7
  271. package/dist/core/storage/session/chunked-resume-projection.code.js +3 -0
  272. package/dist/core/storage/session/chunked-resume-projection.code.js.map +1 -0
  273. package/dist/core/storage/session/chunked-resume-projection.impl.js +35 -2
  274. package/dist/core/storage/session/chunked-resume-projection.js +11 -7
  275. package/dist/core/storage/session/expanded-child-details.code.js +684 -0
  276. package/dist/core/storage/session/expanded-child-details.code.js.map +1 -0
  277. package/dist/core/storage/session/expanded-child-details.impl.js +31 -634
  278. package/dist/core/storage/session/expanded-child-details.impl.js.map +1 -1
  279. package/dist/core/storage/session/expanded-child-details.js +11 -7
  280. package/dist/core/storage/session/fork-row-bytes.code.js +3 -0
  281. package/dist/core/storage/session/fork-row-bytes.code.js.map +1 -0
  282. package/dist/core/storage/session/fork-row-bytes.impl.js +35 -2
  283. package/dist/core/storage/session/fork-row-bytes.js +11 -7
  284. package/dist/core/storage/session/fork-row-index.code.js +3 -0
  285. package/dist/core/storage/session/fork-row-index.code.js.map +1 -0
  286. package/dist/core/storage/session/fork-row-index.impl.js +35 -2
  287. package/dist/core/storage/session/fork-row-index.js +11 -7
  288. package/dist/core/storage/session/fork-staging.code.js +580 -0
  289. package/dist/core/storage/session/fork-staging.code.js.map +1 -0
  290. package/dist/core/storage/session/fork-staging.impl.js +30 -574
  291. package/dist/core/storage/session/fork-staging.impl.js.map +1 -1
  292. package/dist/core/storage/session/fork-staging.js +11 -7
  293. package/dist/core/storage/session/fork-window.code.js +522 -0
  294. package/dist/core/storage/session/fork-window.code.js.map +1 -0
  295. package/dist/core/storage/session/fork-window.impl.js +30 -471
  296. package/dist/core/storage/session/fork-window.impl.js.map +1 -1
  297. package/dist/core/storage/session/fork-window.js +11 -7
  298. package/dist/core/storage/session/history-pages.code.js +3 -0
  299. package/dist/core/storage/session/history-pages.code.js.map +1 -0
  300. package/dist/core/storage/session/history-pages.impl.js +35 -2
  301. package/dist/core/storage/session/history-pages.js +11 -7
  302. package/dist/core/storage/session/jsonl-entry-projection.code.js +3 -0
  303. package/dist/core/storage/session/jsonl-entry-projection.code.js.map +1 -0
  304. package/dist/core/storage/session/jsonl-entry-projection.impl.js +35 -2
  305. package/dist/core/storage/session/jsonl-entry-projection.js +11 -7
  306. package/dist/core/storage/session/jsonl-session-store.code.js +3 -0
  307. package/dist/core/storage/session/jsonl-session-store.code.js.map +1 -0
  308. package/dist/core/storage/session/jsonl-session-store.impl.js +35 -2
  309. package/dist/core/storage/session/jsonl-session-store.js +11 -7
  310. package/dist/core/storage/session/memory-session-store.code.js +3 -0
  311. package/dist/core/storage/session/memory-session-store.code.js.map +1 -0
  312. package/dist/core/storage/session/memory-session-store.impl.js +35 -2
  313. package/dist/core/storage/session/memory-session-store.js +11 -7
  314. package/dist/core/storage/session/pinned-branch-resume.code.js +117 -0
  315. package/dist/core/storage/session/pinned-branch-resume.code.js.map +1 -0
  316. package/dist/core/storage/session/pinned-branch-resume.impl.js +33 -69
  317. package/dist/core/storage/session/pinned-branch-resume.impl.js.map +1 -1
  318. package/dist/core/storage/session/pinned-branch-resume.js +11 -7
  319. package/dist/core/storage/session/released-history-files.code.js +465 -0
  320. package/dist/core/storage/session/released-history-files.code.js.map +1 -0
  321. package/dist/core/storage/session/released-history-files.impl.js +32 -461
  322. package/dist/core/storage/session/released-history-files.impl.js.map +1 -1
  323. package/dist/core/storage/session/released-history-files.js +11 -7
  324. package/dist/core/storage/session/resident-fork-rows.code.js +57 -0
  325. package/dist/core/storage/session/resident-fork-rows.code.js.map +1 -0
  326. package/dist/core/storage/session/resident-fork-rows.impl.js +32 -53
  327. package/dist/core/storage/session/resident-fork-rows.impl.js.map +1 -1
  328. package/dist/core/storage/session/resident-fork-rows.js +11 -7
  329. package/dist/core/storage/session/session-resume.code.js +3 -0
  330. package/dist/core/storage/session/session-resume.code.js.map +1 -0
  331. package/dist/core/storage/session/session-resume.impl.js +35 -2
  332. package/dist/core/storage/session/session-resume.js +11 -7
  333. package/dist/core/storage/session/snapshot-cut.code.js +3 -0
  334. package/dist/core/storage/session/snapshot-cut.code.js.map +1 -0
  335. package/dist/core/storage/session/snapshot-cut.impl.js +35 -2
  336. package/dist/core/storage/session/snapshot-cut.js +11 -7
  337. package/dist/core/storage/session/snapshot-history.code.js +107 -0
  338. package/dist/core/storage/session/snapshot-history.code.js.map +1 -0
  339. package/dist/core/storage/session/snapshot-history.impl.js +34 -60
  340. package/dist/core/storage/session/snapshot-history.impl.js.map +1 -1
  341. package/dist/core/storage/session/snapshot-history.js +11 -7
  342. package/dist/core/storage/session/sql-session-store.code.js +3 -0
  343. package/dist/core/storage/session/sql-session-store.code.js.map +1 -0
  344. package/dist/core/storage/session/sql-session-store.impl.js +35 -2
  345. package/dist/core/storage/session/sql-session-store.js +11 -7
  346. package/dist/core/storage/session/tree-outline.code.js +3 -0
  347. package/dist/core/storage/session/tree-outline.code.js.map +1 -0
  348. package/dist/core/storage/session/tree-outline.impl.js +35 -2
  349. package/dist/core/storage/session/tree-outline.js +11 -7
  350. package/dist/core/storage/session/tree-presentation.code.js +342 -0
  351. package/dist/core/storage/session/tree-presentation.code.js.map +1 -0
  352. package/dist/core/storage/session/tree-presentation.impl.js +31 -337
  353. package/dist/core/storage/session/tree-presentation.impl.js.map +1 -1
  354. package/dist/core/storage/session/tree-presentation.js +11 -7
  355. package/dist/core/storage/session/types.d.ts +26 -0
  356. package/dist/core/storage/storage-status.code.js +3 -0
  357. package/dist/core/storage/storage-status.code.js.map +1 -0
  358. package/dist/core/storage/storage-status.impl.js +35 -2
  359. package/dist/core/storage/storage-status.js +11 -7
  360. package/dist/core/storage/team.code.js +3 -0
  361. package/dist/core/storage/team.code.js.map +1 -0
  362. package/dist/core/storage/team.impl.js +35 -2
  363. package/dist/core/storage/team.js +11 -7
  364. package/dist/core/structured-output/index.code.js +3 -0
  365. package/dist/core/structured-output/index.code.js.map +1 -0
  366. package/dist/core/structured-output/index.impl.js +35 -2
  367. package/dist/core/structured-output/index.js +11 -7
  368. package/dist/core/tasks/command-output.d.ts +4 -1
  369. package/dist/core/tasks/supervisor.d.ts +2 -0
  370. package/dist/core/tasks/task-completion-entry.code.js +254 -0
  371. package/dist/core/tasks/task-completion-entry.code.js.map +1 -0
  372. package/dist/core/tasks/task-completion-entry.impl.js +33 -251
  373. package/dist/core/tasks/task-completion-entry.impl.js.map +1 -1
  374. package/dist/core/tasks/task-completion-entry.js +11 -7
  375. package/dist/core/tasks/task-file-history.code.js +424 -0
  376. package/dist/core/tasks/task-file-history.code.js.map +1 -0
  377. package/dist/core/tasks/task-file-history.impl.js +32 -375
  378. package/dist/core/tasks/task-file-history.impl.js.map +1 -1
  379. package/dist/core/tasks/task-file-history.js +11 -7
  380. package/dist/core/tasks/{task-reference-archive.impl.js → task-reference-archive.code.js} +51 -6
  381. package/dist/core/tasks/{task-reference-archive.impl.js.map → task-reference-archive.code.js.map} +1 -1
  382. package/dist/core/tasks/task-reference-archive.js +11 -7
  383. package/dist/core/tasks/{task-reference-identity.impl.js → task-reference-identity.code.js} +1 -1
  384. package/dist/core/tasks/{task-reference-identity.impl.js.map → task-reference-identity.code.js.map} +1 -1
  385. package/dist/core/tasks/task-reference-identity.js +11 -7
  386. package/dist/core/tasks/task-reference-stream.code.js +3 -0
  387. package/dist/core/tasks/task-reference-stream.code.js.map +1 -0
  388. package/dist/core/tasks/task-reference-stream.impl.js +35 -2
  389. package/dist/core/tasks/task-reference-stream.js +11 -7
  390. package/dist/core/tasks/task-unsaved-answer.code.js +3 -0
  391. package/dist/core/tasks/task-unsaved-answer.code.js.map +1 -0
  392. package/dist/core/tasks/task-unsaved-answer.impl.js +35 -2
  393. package/dist/core/tasks/task-unsaved-answer.js +11 -7
  394. package/dist/core/tasks/task-view-source.code.js +3 -0
  395. package/dist/core/tasks/task-view-source.code.js.map +1 -0
  396. package/dist/core/tasks/task-view-source.d.ts +9 -0
  397. package/dist/core/tasks/task-view-source.impl.js +35 -2
  398. package/dist/core/tasks/task-view-source.js +12 -8
  399. package/dist/core/tools/read-url.code.js +1530 -0
  400. package/dist/core/tools/read-url.code.js.map +1 -0
  401. package/dist/core/tools/read-url.impl.js +30 -1524
  402. package/dist/core/tools/read-url.impl.js.map +1 -1
  403. package/dist/core/tools/read-url.js +11 -7
  404. package/dist/core/worktree-snapshot/blob-store.js +50 -5
  405. package/dist/core/worktree-snapshot/errors.code.js +6 -0
  406. package/dist/core/worktree-snapshot/errors.code.js.map +1 -0
  407. package/dist/core/worktree-snapshot/errors.impl.js +35 -5
  408. package/dist/core/worktree-snapshot/errors.js +11 -7
  409. package/dist/core/worktree-snapshot/session-index-reset.code.js +136 -0
  410. package/dist/core/worktree-snapshot/session-index-reset.code.js.map +1 -0
  411. package/dist/core/worktree-snapshot/session-index-reset.impl.js +34 -134
  412. package/dist/core/worktree-snapshot/session-index-reset.impl.js.map +1 -1
  413. package/dist/core/worktree-snapshot/session-index-reset.js +11 -7
  414. package/dist/extensions/codemode/execute.code.js +618 -0
  415. package/dist/extensions/codemode/execute.code.js.map +1 -0
  416. package/dist/extensions/codemode/execute.impl.js +30 -612
  417. package/dist/extensions/codemode/execute.impl.js.map +1 -1
  418. package/dist/extensions/codemode/execute.js +11 -7
  419. package/dist/extensions/codemode/renderer.code.js +110 -0
  420. package/dist/extensions/codemode/renderer.code.js.map +1 -0
  421. package/dist/extensions/codemode/renderer.impl.js +33 -107
  422. package/dist/extensions/codemode/renderer.impl.js.map +1 -1
  423. package/dist/extensions/codemode/renderer.js +11 -7
  424. package/dist/extensions/mcp/cli.code.js +565 -0
  425. package/dist/extensions/mcp/cli.code.js.map +1 -0
  426. package/dist/extensions/mcp/cli.impl.js +32 -561
  427. package/dist/extensions/mcp/cli.impl.js.map +1 -1
  428. package/dist/extensions/mcp/cli.js +11 -7
  429. package/dist/extensions/mcp/cli.lazy.code.js +52 -0
  430. package/dist/extensions/mcp/cli.lazy.code.js.map +1 -0
  431. package/dist/extensions/mcp/cli.lazy.impl.js +36 -7
  432. package/dist/extensions/mcp/cli.lazy.impl.js.map +1 -1
  433. package/dist/extensions/mcp/cli.lazy.js +11 -7
  434. package/dist/extensions/mcp/client/transports/stdio.d.ts +2 -0
  435. package/dist/extensions/mcp/runtime.code.js +5 -0
  436. package/dist/extensions/mcp/runtime.code.js.map +1 -0
  437. package/dist/extensions/mcp/runtime.impl.js +35 -4
  438. package/dist/extensions/mcp/runtime.js +11 -7
  439. package/dist/index.d.ts +1 -1
  440. package/dist/index.js +8 -8
  441. package/dist/main-first-time-setup.code.js +12 -0
  442. package/dist/main-first-time-setup.code.js.map +1 -0
  443. package/dist/main-first-time-setup.impl.js +35 -11
  444. package/dist/main-first-time-setup.impl.js.map +1 -1
  445. package/dist/main-first-time-setup.js +11 -7
  446. package/dist/main.d.ts +1 -1
  447. package/dist/main.js +2 -2
  448. package/dist/modes/interactive/agent-view/agent-view-switcher.d.ts +6 -1
  449. package/dist/modes/interactive/agent-view/contracts.d.ts +4 -0
  450. package/dist/modes/interactive/chat-reader-records.d.ts +1 -1
  451. package/dist/modes/interactive/components/stored-tree-view.code.js +338 -0
  452. package/dist/modes/interactive/components/stored-tree-view.code.js.map +1 -0
  453. package/dist/modes/interactive/components/stored-tree-view.impl.js +33 -290
  454. package/dist/modes/interactive/components/stored-tree-view.impl.js.map +1 -1
  455. package/dist/modes/interactive/components/stored-tree-view.js +11 -7
  456. package/dist/modes/interactive/components/task-selection-state.d.ts +8 -3
  457. package/dist/modes/interactive/components/task-transcript-page.d.ts +1 -0
  458. package/dist/modes/interactive/components/user-message-selector-archive.code.js +191 -0
  459. package/dist/modes/interactive/components/user-message-selector-archive.code.js.map +1 -0
  460. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +34 -189
  461. package/dist/modes/interactive/components/user-message-selector-archive.impl.js.map +1 -1
  462. package/dist/modes/interactive/components/user-message-selector-archive.js +11 -7
  463. package/dist/modes/interactive/interactive-mode-base.d.ts +6 -0
  464. package/dist/modes/interactive/interactive-mode.js +1 -1
  465. package/dist/modes/interactive/interactive-queueing.d.ts +4 -0
  466. package/dist/modes/interactive/interactive-render-chat.d.ts +22 -0
  467. package/dist/modes/interactive/interactive-startup.d.ts +2 -0
  468. package/dist/modes/interactive/program-status-reporter.d.ts +2 -1
  469. package/dist/modes/interactive/startup-shell-eligibility.js +1 -1
  470. package/dist/modes/interactive/steering-queue-controller.d.ts +4 -0
  471. package/dist/modes/interactive/theme/theme-schema-factory.d.ts +26 -0
  472. package/dist/modes/interactive/theme/theme-schema.d.ts +4 -5
  473. package/dist/modes/interactive-engine/engine-prewarm.d.ts +30 -5
  474. package/dist/modes/interactive-engine/engine-prewarm.js +1 -1
  475. package/dist/modes/interactive-engine/isolated-runtime.d.ts +7 -0
  476. package/dist/modes/interactive-engine/protocol.d.ts +32 -1
  477. package/dist/modes/rpc/agent-view-rpc-types.d.ts +12 -1
  478. package/dist/modes/rpc/agent-view-rpc-types.js.map +1 -1
  479. package/dist/modes/rpc/rpc-client-api.d.ts +3 -1
  480. package/dist/modes/rpc/rpc-types.d.ts +12 -0
  481. package/dist/package-manager-cli.code.js +1140 -0
  482. package/dist/package-manager-cli.code.js.map +1 -0
  483. package/dist/package-manager-cli.impl.js +36 -1067
  484. package/dist/package-manager-cli.impl.js.map +1 -1
  485. package/dist/package-manager-cli.js +11 -7
  486. package/dist/rpc-entry.js +2 -2
  487. package/dist/startup-files.json +1 -1
  488. package/dist/startup-stages/10.js +1 -1
  489. package/dist/startup-stages/11.js +1 -1
  490. package/dist/startup-stages/12.js +1 -1
  491. package/dist/startup-stages/13.js +1 -0
  492. package/dist/startup-stages/2.js +1 -7
  493. package/dist/startup-stages/3.js +6 -2
  494. package/dist/startup-stages/4.js +2 -1
  495. package/dist/startup-stages/5.js +1 -7
  496. package/dist/startup-stages/6.js +7 -10
  497. package/dist/startup-stages/7.js +10 -3
  498. package/dist/startup-stages/8.js +3 -6
  499. package/dist/startup-stages/9.js +6 -1
  500. package/dist/startup-stages/stages.json +1 -1
  501. package/dist/utils/canonical-path.js +2 -0
  502. package/dist/utils/canonical-path.js.map +1 -1
  503. package/dist/utils/child-process.d.ts +41 -1
  504. package/dist/utils/compile-cache-warmup-host.js +63 -18
  505. package/dist/utils/compile-cache-warmup-host.js.map +1 -1
  506. package/dist/utils/credential-redaction.d.ts +50 -1
  507. package/dist/utils/interactive-engine-bootstrap.d.ts +2 -0
  508. package/dist/utils/interactive-engine-env.d.ts +2 -0
  509. package/dist/utils/memoize-async.d.ts +32 -0
  510. package/dist/utils/memoize-async.js +91 -0
  511. package/dist/utils/memoize-async.js.map +1 -0
  512. package/dist/utils/photon.js +19 -29
  513. package/dist/utils/photon.js.map +1 -1
  514. package/dist/utils/shell.d.ts +7 -4
  515. package/dist/utils/startup-database-spare.code.js +108 -0
  516. package/dist/utils/startup-database-spare.code.js.map +1 -0
  517. package/dist/utils/startup-database-spare.impl.js +33 -105
  518. package/dist/utils/startup-database-spare.impl.js.map +1 -1
  519. package/dist/utils/startup-database-spare.js +11 -7
  520. package/dist/utils/tools-manager.code.js +3 -0
  521. package/dist/utils/tools-manager.code.js.map +1 -0
  522. package/dist/utils/tools-manager.impl.js +35 -2
  523. package/dist/utils/tools-manager.js +11 -7
  524. package/dist/utils/windows-cwd.js +585 -0
  525. package/dist/utils/windows-cwd.js.map +1 -0
  526. package/docs/extensions.md +1 -1
  527. package/docs/getting-started/installation.md +2 -0
  528. package/docs/intercom/operations.md +1 -0
  529. package/docs/reference/cli.md +1 -1
  530. package/package.json +24 -24
  531. package/dist/_shared/mode-shared-HP7GUA7J.js.map +0 -1
  532. package/dist/_shared/p1a-prewarm-YK3KDTLN.js.map +0 -1
  533. package/dist/_shared/p1b-elig-PXQA2FYP.js.map +0 -1
  534. package/dist/_shared/startup-0-0-X4NF3GKM.js.map +0 -1
  535. package/dist/_shared/startup-0-1-7QTG6VJZ.js.map +0 -1
  536. package/dist/_shared/startup-0-2-KFDYPDJK.js.map +0 -1
  537. package/dist/_shared/startup-8-1-KQJBDKRU.js.map +0 -1
@@ -15,7 +15,8 @@ export declare class ProgramStatusReporter {
15
15
  private lastReport;
16
16
  private readonly getTerminal;
17
17
  private readonly getSessionName;
18
- constructor(getTerminal: () => Terminal, getSessionName: () => string | undefined);
18
+ private readonly canReport;
19
+ constructor(getTerminal: () => Terminal, getSessionName: () => string | undefined, canReport?: () => boolean);
19
20
  handleEvent(event: AgentSessionEvent | JsonAgentSessionEvent): void;
20
21
  handleUIPrompt(event: UIPromptStartEvent | UIPromptEndEvent | undefined): void;
21
22
  setBlocked(source: string, status: BlockedStatus | undefined): void;
@@ -1,3 +1,3 @@
1
1
  import "../../_shared/rolldown-runtime-BGM3D5V3.js";
2
- export { planStartupShell } from "../../_shared/p1b-elig-PXQA2FYP.js";
2
+ export { planStartupShell } from "../../_shared/p1b-elig-ENCUPKKJ.js";
3
3
  //# sourceMappingURL=startup-shell-eligibility.js.map
@@ -29,6 +29,8 @@ export interface SteeringPromptOptions {
29
29
  preflightResult?: (success: boolean, disposition?: PromptDisposition) => void;
30
30
  /** When the message is queued, the id the target queues it with. */
31
31
  queuedMessageId?: string;
32
+ /** Ephemeral send id linking this prompt submission to its relayed user `message_start`. */
33
+ originSendId?: string;
32
34
  }
33
35
  export interface SteeringClearOptions {
34
36
  preserveUnprotectedCustomMessages?: boolean;
@@ -93,6 +95,8 @@ export interface SteeringSubmitOptions {
93
95
  onAnswered?: (success: boolean, disposition?: PromptDisposition) => void;
94
96
  /** Called as soon as the target's call for an accepted submission returns, before `submit` settles. */
95
97
  onSent?: () => void;
98
+ /** Ephemeral send id linking this prompt submission to its relayed user `message_start`. */
99
+ originSendId?: string;
96
100
  }
97
101
  /**
98
102
  * What became of a submission.
@@ -0,0 +1,26 @@
1
+ import type { Type as TypeBoxType } from "@bastani/atomic-ai/utils/typebox/index";
2
+ import { type ThemeColorValues } from "./theme-tokens.ts";
3
+ export type ColorValue = string | number;
4
+ type TypeBuilder = typeof TypeBoxType;
5
+ export declare function createColorValueSchema(Type: TypeBuilder, description?: string): TypeBoxType.TUnion<[TypeBoxType.TString, TypeBoxType.TInteger]>;
6
+ export declare function createThemeJsonSchema(Type: TypeBuilder): TypeBoxType.TObject<{
7
+ $schema: TypeBoxType.TOptional<TypeBoxType.TString>;
8
+ name: TypeBoxType.TString;
9
+ vars: TypeBoxType.TOptional<TypeBoxType.TRecord<"^.*$", TypeBoxType.TUnion<[TypeBoxType.TString, TypeBoxType.TInteger]>>>;
10
+ colors: TypeBoxType.TUnsafe<ThemeColorValues<ColorValue>>;
11
+ workingIndicator: TypeBoxType.TOptional<TypeBoxType.TObject<{
12
+ dark: TypeBoxType.TOptional<TypeBoxType.TUnion<[TypeBoxType.TString, TypeBoxType.TInteger]>>;
13
+ lift: TypeBoxType.TOptional<TypeBoxType.TUnion<[TypeBoxType.TString, TypeBoxType.TInteger]>>;
14
+ muted: TypeBoxType.TOptional<TypeBoxType.TUnion<[TypeBoxType.TString, TypeBoxType.TInteger]>>;
15
+ accent: TypeBoxType.TOptional<TypeBoxType.TUnion<[TypeBoxType.TString, TypeBoxType.TInteger]>>;
16
+ bright: TypeBoxType.TOptional<TypeBoxType.TUnion<[TypeBoxType.TString, TypeBoxType.TInteger]>>;
17
+ peak: TypeBoxType.TOptional<TypeBoxType.TUnion<[TypeBoxType.TString, TypeBoxType.TInteger]>>;
18
+ }>>;
19
+ export: TypeBoxType.TOptional<TypeBoxType.TObject<{
20
+ pageBg: TypeBoxType.TOptional<TypeBoxType.TUnion<[TypeBoxType.TString, TypeBoxType.TInteger]>>;
21
+ cardBg: TypeBoxType.TOptional<TypeBoxType.TUnion<[TypeBoxType.TString, TypeBoxType.TInteger]>>;
22
+ infoBg: TypeBoxType.TOptional<TypeBoxType.TUnion<[TypeBoxType.TString, TypeBoxType.TInteger]>>;
23
+ }>>;
24
+ }>;
25
+ export {};
26
+ //# sourceMappingURL=theme-schema-factory.d.ts.map
@@ -1,12 +1,11 @@
1
1
  import { type Static, Type } from "@bastani/atomic-ai/utils/typebox/index";
2
- import { type ThemeColorValues } from "./theme-tokens.ts";
3
2
  export declare const ColorValueSchema: Type.TUnion<[Type.TString, Type.TInteger]>;
4
3
  export type ColorValue = Static<typeof ColorValueSchema>;
5
4
  export declare const ThemeJsonSchema: Type.TObject<{
6
5
  $schema: Type.TOptional<Type.TString>;
7
6
  name: Type.TString;
8
7
  vars: Type.TOptional<Type.TRecord<"^.*$", Type.TUnion<[Type.TString, Type.TInteger]>>>;
9
- colors: Type.TUnsafe<ThemeColorValues<string | number>>;
8
+ colors: Type.TUnsafe<import("./theme-tokens.ts").ThemeColorValues<import("./theme-schema-factory.ts").ColorValue>>;
10
9
  workingIndicator: Type.TOptional<Type.TObject<{
11
10
  dark: Type.TOptional<Type.TUnion<[Type.TString, Type.TInteger]>>;
12
11
  lift: Type.TOptional<Type.TUnion<[Type.TString, Type.TInteger]>>;
@@ -26,7 +25,7 @@ export declare const validateThemeJson: import("@bastani/atomic-ai/utils/typebox
26
25
  $schema: Type.TOptional<Type.TString>;
27
26
  name: Type.TString;
28
27
  vars: Type.TOptional<Type.TRecord<"^.*$", Type.TUnion<[Type.TString, Type.TInteger]>>>;
29
- colors: Type.TUnsafe<ThemeColorValues<string | number>>;
28
+ colors: Type.TUnsafe<import("./theme-tokens.ts").ThemeColorValues<import("./theme-schema-factory.ts").ColorValue>>;
30
29
  workingIndicator: Type.TOptional<Type.TObject<{
31
30
  dark: Type.TOptional<Type.TUnion<[Type.TString, Type.TInteger]>>;
32
31
  lift: Type.TOptional<Type.TUnion<[Type.TString, Type.TInteger]>>;
@@ -44,7 +43,7 @@ export declare const validateThemeJson: import("@bastani/atomic-ai/utils/typebox
44
43
  $schema?: string | undefined;
45
44
  name: string;
46
45
  vars?: Record<string, string | number> | undefined;
47
- colors: ThemeColorValues<string | number>;
46
+ colors: import("./theme-tokens.ts").ThemeColorValues<import("./theme-schema-factory.ts").ColorValue>;
48
47
  workingIndicator?: {
49
48
  dark?: string | number | undefined;
50
49
  lift?: string | number | undefined;
@@ -62,7 +61,7 @@ export declare const validateThemeJson: import("@bastani/atomic-ai/utils/typebox
62
61
  $schema?: string | undefined;
63
62
  name: string;
64
63
  vars?: Record<string, string | number> | undefined;
65
- colors: ThemeColorValues<string | number>;
64
+ colors: import("./theme-tokens.ts").ThemeColorValues<import("./theme-schema-factory.ts").ColorValue>;
66
65
  workingIndicator?: {
67
66
  dark?: string | number | undefined;
68
67
  lift?: string | number | undefined;
@@ -58,11 +58,20 @@ export declare const INTERACTIVE_ENGINE_PREWARM_WRITE_CACHE_FLAG = "--internal-e
58
58
  * this module's namespace, as {@link INTERACTIVE_ENGINE_PREWARM_WRITE_CACHE_FLAG} is; an earlier version ignores it.
59
59
  */
60
60
  export declare const INTERACTIVE_ENGINE_PREWARM_DEFAULT_MODEL_API_FLAG = "--internal-engine-prewarm-default-model-api";
61
+ /**
62
+ * Follows {@link INTERACTIVE_ENGINE_PREWARM_FLAG}, after `=`, with a per-spawn nonce that opts a same-build prewarmed
63
+ * child into writing one `prewarm_ready` JSON line (its build identity, nonce, and env-handoff capability) to stdout
64
+ * before waiting on stdin. An earlier host never passes this flag, so a newer child leaves its stdout untouched; an
65
+ * earlier child ignores this flag and writes nothing, so a newer host never adopts it.
66
+ */
67
+ export declare const INTERACTIVE_ENGINE_PREWARM_HANDOFF_FLAG = "--internal-engine-prewarm-handoff";
61
68
  /**
62
69
  * The longest encoding of a host's arguments a prewarmed child is given, well within every platform's command line.
63
70
  * A host with longer arguments, such as a long first message, gives none: its child loads nothing before it is adopted.
64
71
  */
65
72
  export declare const PREWARM_HOST_ARGUMENTS_MAX_LENGTH = 8192;
73
+ /** The per-spawn handoff nonce a prewarmed child was started with, if its host opted into verified handoff. */
74
+ export declare function prewarmHandoffNonce(argv: readonly string[]): string | undefined;
66
75
  /** The host's arguments a prewarmed child was started with, if its host gave it them. */
67
76
  export declare function prewarmHostArguments(argv: readonly string[]): string[] | undefined;
68
77
  /**
@@ -84,6 +93,8 @@ export interface PrewarmOptions {
84
93
  readonly launch?: EngineLaunch;
85
94
  /** `"unchanged"` unless given. */
86
95
  readonly basis?: PrewarmLaunchBasis;
96
+ /** Expected build identity for the prewarmed child, unless derived from this running build. */
97
+ readonly buildIdentity?: string;
87
98
  }
88
99
  /**
89
100
  * Whether this process is an interactive host about to start an engine child: a terminal on both ends, at least two
@@ -102,15 +113,29 @@ export declare function prewarmInteractiveEngine(args: readonly string[], option
102
113
  /** Stop the prewarmed child, if any: this host starts no engine, or a different one. */
103
114
  export declare function discardPrewarmedEngine(): void;
104
115
  /**
105
- * The prewarmed child started as `launch` would start, now running with `engineArgs`; or undefined, after discarding
106
- * any prewarmed child, when there is none or it would differ from a fresh one. `onBasis` learns the adopted child's
116
+ * Wait briefly for an already-spawned prewarmed child to finish emitting its `prewarm_ready` announcement before
117
+ * `adoptPrewarmedEngine()` runs. Returns immediately with no timer when no prewarm is active or when the child has
118
+ * already announced (the normal case); bounded so an older release that never announces is discarded without stalling.
119
+ */
120
+ export declare function waitForPrewarmedEngineReady(timeoutMs?: number): Promise<void>;
121
+ /**
122
+ * The prewarmed child started as `launch` would start (or, in a build-stamped install whose child advertised a matching
123
+ * build identity and env-handoff capability, differing only in settings-derived environment keys which travel in the
124
+ * stdin handshake), now running with `engineArgs`; or undefined, after discarding any prewarmed child, when there is
125
+ * none or it would differ from a fresh one. In unstamped builds (such as a direct source checkout), keeps exact-launch
126
+ * matching only and never adopts across an environment edit. `onBasis` learns the adopted child's
107
127
  * {@link PrewarmLaunchBasis}. A callback, rather than another return value or export, so that a host whose module of an
108
128
  * earlier version is still loaded beside a later one keeps working either way: an earlier version ignores it.
109
129
  */
110
130
  export declare function adoptPrewarmedEngine(launch: EngineLaunch, engineArgs: readonly string[], onBasis?: (basis: PrewarmLaunchBasis) => void): ChildProcess | undefined;
111
131
  /**
112
- * In a prewarmed child: the engine arguments its host sends as the first stdin line. Everything after that line stays
113
- * on stdin for the engine. Exits quietly when the host closes stdin without adopting this child.
132
+ * In a prewarmed child: if this build is stamped (or an explicit `buildIdentity` is supplied) and the host opted into
133
+ * verified handoff via {@link INTERACTIVE_ENGINE_PREWARM_HANDOFF_FLAG}, advertises this build's identity and
134
+ * env-handoff capability as one JSON line on stdout before reading the engine arguments (plus any settings-derived
135
+ * environment updates) from the first stdin line. Everything after that line stays on stdin for the engine. Exits
136
+ * quietly when the host closes stdin without adopting this child.
114
137
  */
115
- export declare function readPrewarmedEngineArgs(): Promise<string[]>;
138
+ export declare function readPrewarmedEngineArgs(options?: {
139
+ readonly buildIdentity?: string;
140
+ }): Promise<string[]>;
116
141
  //# sourceMappingURL=engine-prewarm.d.ts.map
@@ -1,3 +1,3 @@
1
1
  import "../../_shared/rolldown-runtime-BGM3D5V3.js";
2
- export { INTERACTIVE_ENGINE_PREWARM_DEFAULT_MODEL_API_FLAG, INTERACTIVE_ENGINE_PREWARM_WRITE_CACHE_FLAG, PREWARM_HOST_ARGUMENTS_MAX_LENGTH, adoptPrewarmedEngine, discardPrewarmedEngine, engineLaunch, interactiveEngineClientOptions, interactiveEngineEnvOverrides, prewarmHostArguments, prewarmInteractiveEngine, prewarmInteractiveEngineForArgs, readPrewarmedEngineArgs, sameEngineLaunch, shouldPrewarmInteractiveEngine, startupBenchmarkEngineEnv } from "../../_shared/p1a-prewarm-YK3KDTLN.js";
2
+ export { INTERACTIVE_ENGINE_PREWARM_DEFAULT_MODEL_API_FLAG, INTERACTIVE_ENGINE_PREWARM_HANDOFF_FLAG, INTERACTIVE_ENGINE_PREWARM_WRITE_CACHE_FLAG, PREWARM_HOST_ARGUMENTS_MAX_LENGTH, adoptPrewarmedEngine, discardPrewarmedEngine, engineLaunch, interactiveEngineClientOptions, interactiveEngineEnvOverrides, prewarmHandoffNonce, prewarmHostArguments, prewarmInteractiveEngine, prewarmInteractiveEngineForArgs, readPrewarmedEngineArgs, sameEngineLaunch, shouldPrewarmInteractiveEngine, startupBenchmarkEngineEnv, waitForPrewarmedEngineReady } from "../../_shared/p1a-prewarm-UQY3X2UK.js";
3
3
  //# sourceMappingURL=engine-prewarm.js.map
@@ -1,7 +1,9 @@
1
1
  import type { AuthInteraction } from "@bastani/atomic-ai";
2
2
  import type { AgentSession, ClearedQueue } from "../../core/agent-session.js";
3
3
  import { AgentSessionRuntime, type CreateAgentSessionRuntimeFactory } from "../../core/agent-session-runtime.ts";
4
+ import type { SessionRecoveryReport } from "../../core/agent-session-types.js";
4
5
  import type { ResourceOverlap } from "../../core/diagnostics.ts";
6
+ import type { SessionRecoveryReason } from "../../core/extensions/session-events.ts";
5
7
  import { type SessionTrustDecisions } from "../../core/project-trust-state.ts";
6
8
  import { type QueuedDeliveryEntry, type QueuedMessageLanes, type QueuedMessageReceipt } from "../../core/queued-message-delivery.ts";
7
9
  import type { StopAllBackgroundOutcome } from "../../core/tasks/stop-all.ts";
@@ -222,6 +224,11 @@ export declare class IsolatedInteractiveRuntime extends AgentSessionRuntime {
222
224
  getReadyEngineChildPid(): number | undefined;
223
225
  getEngineGeneration(): number;
224
226
  isRecovering(): boolean;
227
+ /**
228
+ * Run only the background-restore phase (`session_recovery_restore`) in a replacement engine child after a crash.
229
+ * Older engines without the command, transport losses from a second crash, or disposal degrade cleanly to a no-op.
230
+ */
231
+ startPendingRecoveryRestore(reason?: SessionRecoveryReason): Promise<SessionRecoveryReport>;
225
232
  /** Subscribe to host-local engine generation death (see engine-generation.ts). */
226
233
  onGenerationEnded(listener: InteractiveEngineGenerationEndedListener): () => void;
227
234
  /**
@@ -145,10 +145,22 @@ export type InteractiveEngineMessage = {
145
145
  viewId: string;
146
146
  status: AgentViewStatus;
147
147
  }
148
+ /**
149
+ * A subagent's session was stopped, cleared, ended non-resumably, or received input by another path, so any
150
+ * pending lost-queue restore held by the host for that child is dropped.
151
+ */
152
+ | {
153
+ type: "engine_agent_queue_invalidated";
154
+ sessionId: string;
155
+ sessionFile?: string;
156
+ reason: "stopped" | "cleared" | "session-ended" | "sent-elsewhere";
157
+ }
148
158
  /** The engine's agent panel or `/tasks` asks the host to show a subagent, or main when `taskId` is null. */
149
159
  | {
150
160
  type: "engine_view_agent";
151
161
  taskId: string | null;
162
+ /** Monotonic positive integer per engine bridge/generation identifying this request; omitted by older engines. */
163
+ requestId?: number;
152
164
  /** The request closes `/tasks`: the host keeps its prompt and panel as painted until the subagent is shown. */
153
165
  keepScreen?: true;
154
166
  /**
@@ -182,6 +194,8 @@ export type InteractiveEngineMessage = {
182
194
  componentId: string;
183
195
  overlay: boolean;
184
196
  purpose?: "prompt" | "navigation";
197
+ /** When true, the engine acknowledges `engine_custom_click` / `engine_custom_click_settle` carrying `ackId`. */
198
+ acksClicks?: true;
185
199
  deferInlineCustomUiFocus?: boolean;
186
200
  handlesCtrlC?: boolean;
187
201
  handlesInternalUiAction?: boolean;
@@ -216,11 +230,20 @@ export type InteractiveEngineMessage = {
216
230
  rowKeys?: string[];
217
231
  /** How a viewed subagent's transcript laid out this frame, so the host can place it in another height. */
218
232
  layout?: TranscriptFrameLayout;
233
+ /**
234
+ * Host preview sequence number when this frame was rendered under a speculative `panelOnView` preview;
235
+ * omitted on committed frames and by older engines.
236
+ */
237
+ previewSeq?: number;
219
238
  } | {
220
239
  type: "engine_custom_input_result";
221
240
  componentId: string;
222
241
  requestId: number;
223
242
  handled: boolean;
243
+ } | {
244
+ type: "engine_custom_click_result";
245
+ componentId: string;
246
+ ackId: number;
224
247
  } | {
225
248
  type: "engine_custom_invalidate";
226
249
  componentId: string;
@@ -348,6 +371,8 @@ export type InteractiveEngineCommand = {
348
371
  clickId?: number;
349
372
  /** The host explicitly cancels every deferred click it does not settle. */
350
373
  cancelsClicks?: true;
374
+ /** Host-assigned acknowledgement id; when present, the engine replies with `engine_custom_click_result`. */
375
+ ackId?: number;
351
376
  x: number;
352
377
  y: number;
353
378
  width: number;
@@ -359,7 +384,13 @@ export type InteractiveEngineCommand = {
359
384
  * double- or triple-click is never settled.
360
385
  */
361
386
  | {
362
- type: "engine_custom_click_settle" | "engine_custom_click_cancel";
387
+ type: "engine_custom_click_settle";
388
+ componentId: string;
389
+ clickId: number;
390
+ /** Host-assigned acknowledgement id; when present, the engine replies with `engine_custom_click_result`. */
391
+ ackId?: number;
392
+ } | {
393
+ type: "engine_custom_click_cancel";
363
394
  componentId: string;
364
395
  clickId: number;
365
396
  } | {
@@ -57,11 +57,22 @@ export type AgentViewRpcCommand =
57
57
  type: "get_task_prompts";
58
58
  taskId: string;
59
59
  }
60
- /** What the host's screen shows, for the engine's agent panel and `/tasks`: a subagent, or main without `taskId`. */
60
+ /**
61
+ * What the host's screen shows (or is speculatively previewing for `panelOnView`), for the engine's agent panel
62
+ * and `/tasks`: a subagent, or main without `taskId`.
63
+ */
61
64
  | {
62
65
  id?: string;
63
66
  type: "set_viewed_agent";
64
67
  taskId?: string;
68
+ /** Panel-only speculative preview while `openPort` is in flight; does not change committed view or settle `/tasks`. */
69
+ preview?: true;
70
+ /** Monotonic positive host sequence number for this view/preview transition. */
71
+ viewSeq?: number;
72
+ /** Engine `engine_view_agent.requestId` that initiated this speculative preview. */
73
+ requestId?: number;
74
+ /** Highest engine `engine_view_agent.requestId` whose outcome has settled on the host. */
75
+ settledRequestId?: number;
65
76
  };
66
77
  export type AgentViewRpcCommandType = AgentViewRpcCommand["type"];
67
78
  /** A command as a client sends it: the request id is the client's. */
@@ -1 +1 @@
1
- {"version":3,"file":"agent-view-rpc-types.js","sourceRoot":"","sources":["../../../src/modes/rpc/agent-view-rpc-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6EH,MAAM,wBAAwB,GAAwB,IAAI,GAAG,CAA0B;IACtF,iBAAiB;IACjB,kBAAkB;IAClB,mBAAmB;IACnB,mBAAmB;IACnB,wBAAwB;IACxB,kBAAkB;IAClB,qBAAqB;IACrB,yBAAyB;IACzB,kBAAkB;IAClB,kBAAkB;CAClB,CAAC,CAAC;AAEH,MAAM,UAAU,qBAAqB,CAAC,OAAkC;IACvE,OAAO,wBAAwB,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACnD,CAAC","sourcesContent":["/**\n * The commands an interactive host sends its isolated engine to show one of the engine's subagents on the host's main\n * screen: its transcript in the transcript area, and the host's prompt retargeted to it.\n */\n\nimport type { ClearedQueue, PromptDisposition } from \"../../core/agent-session-types.js\";\nimport type { TaskViewResult } from \"../../core/tasks/task-view-source.js\";\nimport type { AgentViewCommands, AgentViewStatus, PausedTaskMessages } from \"../interactive/agent-view/contracts.ts\";\nimport type { SteeringSubmitLane } from \"../interactive/steering-queue-controller.ts\";\n\nexport type AgentViewRpcCommand =\n\t/** Open a view of the subagent `taskId` is an attempt of: its status, and its transcript as a remote component. */\n\t| { id?: string; type: \"agent_view_open\"; taskId: string }\n\t| { id?: string; type: \"agent_view_close\"; viewId: string }\n\t/** Send `message` to the viewed subagent: queued in `streamingBehavior`'s lane, or starting its next turn. */\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"agent_view_prompt\";\n\t\t\tviewId: string;\n\t\t\tmessage: string;\n\t\t\tstreamingBehavior?: \"steer\" | \"followUp\";\n\t }\n\t/** Continue the paused or finished viewed subagent with `message`. */\n\t| { id?: string; type: \"agent_view_resume\"; viewId: string; message: string; lane: SteeringSubmitLane }\n\t| { id?: string; type: \"agent_view_clear_queue\"; viewId: string }\n\t/** Esc: pause the viewed subagent, taking its queued messages back. */\n\t| { id?: string; type: \"agent_view_pause\"; viewId: string }\n\t| { id?: string; type: \"agent_view_commands\"; viewId: string }\n\t| { id?: string; type: \"agent_view_last_message\"; viewId: string }\n\t/** The subagent's own delivered user messages, oldest first. */\n\t| { id?: string; type: \"get_task_prompts\"; taskId: string }\n\t/** What the host's screen shows, for the engine's agent panel and `/tasks`: a subagent, or main without `taskId`. */\n\t| { id?: string; type: \"set_viewed_agent\"; taskId?: string };\n\nexport type AgentViewRpcCommandType = AgentViewRpcCommand[\"type\"];\n\n/** A command as a client sends it: the request id is the client's. */\nexport type AgentViewRpcCommandBody = AgentViewRpcCommand extends infer C\n\t? C extends AgentViewRpcCommand\n\t\t? Omit<C, \"id\">\n\t\t: never\n\t: never;\n\nexport interface AgentViewOpenData {\n\treadonly viewId: string;\n\t/** The remote component the engine opened with `placement: \"transcript\"` for this view. */\n\treadonly componentId: string;\n\treadonly status: AgentViewStatus;\n}\n\nexport type AgentViewRpcResponse =\n\t| { id?: string; type: \"response\"; command: \"agent_view_open\"; success: true; data: AgentViewOpenData }\n\t| { id?: string; type: \"response\"; command: \"agent_view_close\"; success: true }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"agent_view_prompt\";\n\t\t\tsuccess: true;\n\t\t\tdata: { disposition?: PromptDisposition };\n\t }\n\t| { id?: string; type: \"response\"; command: \"agent_view_resume\"; success: true }\n\t| { id?: string; type: \"response\"; command: \"agent_view_clear_queue\"; success: true; data: ClearedQueue }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"agent_view_pause\";\n\t\t\tsuccess: true;\n\t\t\tdata: TaskViewResult<PausedTaskMessages>;\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"agent_view_commands\";\n\t\t\tsuccess: true;\n\t\t\tdata: AgentViewCommands | null;\n\t }\n\t| { id?: string; type: \"response\"; command: \"agent_view_last_message\"; success: true; data: { text?: string } }\n\t| { id?: string; type: \"response\"; command: \"get_task_prompts\"; success: true; data: { prompts: string[] } }\n\t| { id?: string; type: \"response\"; command: \"set_viewed_agent\"; success: true };\n\nconst AGENT_VIEW_COMMAND_TYPES: ReadonlySet<string> = new Set<AgentViewRpcCommandType>([\n\t\"agent_view_open\",\n\t\"agent_view_close\",\n\t\"agent_view_prompt\",\n\t\"agent_view_resume\",\n\t\"agent_view_clear_queue\",\n\t\"agent_view_pause\",\n\t\"agent_view_commands\",\n\t\"agent_view_last_message\",\n\t\"get_task_prompts\",\n\t\"set_viewed_agent\",\n]);\n\nexport function isAgentViewRpcCommand(command: { readonly type: string }): command is AgentViewRpcCommand {\n\treturn AGENT_VIEW_COMMAND_TYPES.has(command.type);\n}\n"]}
1
+ {"version":3,"file":"agent-view-rpc-types.js","sourceRoot":"","sources":["../../../src/modes/rpc/agent-view-rpc-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA4FH,MAAM,wBAAwB,GAAwB,IAAI,GAAG,CAA0B;IACtF,iBAAiB;IACjB,kBAAkB;IAClB,mBAAmB;IACnB,mBAAmB;IACnB,wBAAwB;IACxB,kBAAkB;IAClB,qBAAqB;IACrB,yBAAyB;IACzB,kBAAkB;IAClB,kBAAkB;CAClB,CAAC,CAAC;AAEH,MAAM,UAAU,qBAAqB,CAAC,OAAkC;IACvE,OAAO,wBAAwB,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACnD,CAAC","sourcesContent":["/**\n * The commands an interactive host sends its isolated engine to show one of the engine's subagents on the host's main\n * screen: its transcript in the transcript area, and the host's prompt retargeted to it.\n */\n\nimport type { ClearedQueue, PromptDisposition } from \"../../core/agent-session-types.js\";\nimport type { TaskViewResult } from \"../../core/tasks/task-view-source.js\";\nimport type { AgentViewCommands, AgentViewStatus, PausedTaskMessages } from \"../interactive/agent-view/contracts.ts\";\nimport type { SteeringSubmitLane } from \"../interactive/steering-queue-controller.ts\";\n\nexport type AgentViewRpcCommand =\n\t/** Open a view of the subagent `taskId` is an attempt of: its status, and its transcript as a remote component. */\n\t| { id?: string; type: \"agent_view_open\"; taskId: string }\n\t| { id?: string; type: \"agent_view_close\"; viewId: string }\n\t/** Send `message` to the viewed subagent: queued in `streamingBehavior`'s lane, or starting its next turn. */\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"agent_view_prompt\";\n\t\t\tviewId: string;\n\t\t\tmessage: string;\n\t\t\tstreamingBehavior?: \"steer\" | \"followUp\";\n\t }\n\t/** Continue the paused or finished viewed subagent with `message`. */\n\t| { id?: string; type: \"agent_view_resume\"; viewId: string; message: string; lane: SteeringSubmitLane }\n\t| { id?: string; type: \"agent_view_clear_queue\"; viewId: string }\n\t/** Esc: pause the viewed subagent, taking its queued messages back. */\n\t| { id?: string; type: \"agent_view_pause\"; viewId: string }\n\t| { id?: string; type: \"agent_view_commands\"; viewId: string }\n\t| { id?: string; type: \"agent_view_last_message\"; viewId: string }\n\t/** The subagent's own delivered user messages, oldest first. */\n\t| { id?: string; type: \"get_task_prompts\"; taskId: string }\n\t/**\n\t * What the host's screen shows (or is speculatively previewing for `panelOnView`), for the engine's agent panel\n\t * and `/tasks`: a subagent, or main without `taskId`.\n\t */\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"set_viewed_agent\";\n\t\t\ttaskId?: string;\n\t\t\t/** Panel-only speculative preview while `openPort` is in flight; does not change committed view or settle `/tasks`. */\n\t\t\tpreview?: true;\n\t\t\t/** Monotonic positive host sequence number for this view/preview transition. */\n\t\t\tviewSeq?: number;\n\t\t\t/** Engine `engine_view_agent.requestId` that initiated this speculative preview. */\n\t\t\trequestId?: number;\n\t\t\t/** Highest engine `engine_view_agent.requestId` whose outcome has settled on the host. */\n\t\t\tsettledRequestId?: number;\n\t };\n\nexport type AgentViewRpcCommandType = AgentViewRpcCommand[\"type\"];\n\n/** A command as a client sends it: the request id is the client's. */\nexport type AgentViewRpcCommandBody = AgentViewRpcCommand extends infer C\n\t? C extends AgentViewRpcCommand\n\t\t? Omit<C, \"id\">\n\t\t: never\n\t: never;\n\nexport interface AgentViewOpenData {\n\treadonly viewId: string;\n\t/** The remote component the engine opened with `placement: \"transcript\"` for this view. */\n\treadonly componentId: string;\n\treadonly status: AgentViewStatus;\n}\n\nexport type AgentViewRpcResponse =\n\t| { id?: string; type: \"response\"; command: \"agent_view_open\"; success: true; data: AgentViewOpenData }\n\t| { id?: string; type: \"response\"; command: \"agent_view_close\"; success: true }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"agent_view_prompt\";\n\t\t\tsuccess: true;\n\t\t\tdata: { disposition?: PromptDisposition };\n\t }\n\t| { id?: string; type: \"response\"; command: \"agent_view_resume\"; success: true }\n\t| { id?: string; type: \"response\"; command: \"agent_view_clear_queue\"; success: true; data: ClearedQueue }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"agent_view_pause\";\n\t\t\tsuccess: true;\n\t\t\tdata: TaskViewResult<PausedTaskMessages>;\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"agent_view_commands\";\n\t\t\tsuccess: true;\n\t\t\tdata: AgentViewCommands | null;\n\t }\n\t| { id?: string; type: \"response\"; command: \"agent_view_last_message\"; success: true; data: { text?: string } }\n\t| { id?: string; type: \"response\"; command: \"get_task_prompts\"; success: true; data: { prompts: string[] } }\n\t| { id?: string; type: \"response\"; command: \"set_viewed_agent\"; success: true };\n\nconst AGENT_VIEW_COMMAND_TYPES: ReadonlySet<string> = new Set<AgentViewRpcCommandType>([\n\t\"agent_view_open\",\n\t\"agent_view_close\",\n\t\"agent_view_prompt\",\n\t\"agent_view_resume\",\n\t\"agent_view_clear_queue\",\n\t\"agent_view_pause\",\n\t\"agent_view_commands\",\n\t\"agent_view_last_message\",\n\t\"get_task_prompts\",\n\t\"set_viewed_agent\",\n]);\n\nexport function isAgentViewRpcCommand(command: { readonly type: string }): command is AgentViewRpcCommand {\n\treturn AGENT_VIEW_COMMAND_TYPES.has(command.type);\n}\n"]}
@@ -28,7 +28,7 @@ export declare abstract class RpcClientApi {
28
28
  * Send a prompt and return its disposition once accepted.
29
29
  * If the disposition is "handled", no run started for this prompt, so don't wait for agent_settled.
30
30
  */
31
- prompt(message: string, images?: ImageContent[], streamingBehavior?: "steer" | "followUp", queuedMessageId?: string): Promise<PromptDisposition>;
31
+ prompt(message: string, images?: ImageContent[], streamingBehavior?: "steer" | "followUp", queuedMessageId?: string, originSendId?: string): Promise<PromptDisposition>;
32
32
  steer(message: string, images?: ImageContent[]): Promise<QueuedInputDisposition>;
33
33
  followUp(message: string, images?: ImageContent[]): Promise<QueuedInputDisposition>;
34
34
  abort(): Promise<void>;
@@ -103,6 +103,8 @@ export declare abstract class RpcClientApi {
103
103
  abortBash(requestId?: string): Promise<void>;
104
104
  /** Recover work an earlier process left unfinished; call once the transcript is shown. */
105
105
  startPendingRecovery(reason?: SessionRecoveryReason): Promise<SessionRecoveryReport>;
106
+ /** Restore background subagents after an isolated-engine crash without replaying deliveries or prompting. */
107
+ startPendingRecoveryRestore(reason?: SessionRecoveryReason): Promise<SessionRecoveryReport>;
106
108
  getSessionStats(): Promise<SessionStats>;
107
109
  /** Which tools are active, which are not (and why), and which selected names nothing registered. */
108
110
  getTools(): Promise<ToolStatusReport>;
@@ -119,6 +119,8 @@ export type RpcCommand = {
119
119
  streamingBehavior?: "steer" | "followUp";
120
120
  /** When the message is queued, the id it is queued with, which the client names it by (see `PromptOptions`). */
121
121
  queuedMessageId?: string;
122
+ /** Ephemeral host send id echoed back on user `message_start` for exact echo matching (see `PromptOptions`). */
123
+ originSendId?: string;
122
124
  } | {
123
125
  id?: string;
124
126
  type: "steer";
@@ -384,6 +386,10 @@ export type RpcCommand = {
384
386
  id?: string;
385
387
  type: "start_pending_recovery";
386
388
  reason?: SessionRecoveryReason;
389
+ } | {
390
+ id?: string;
391
+ type: "start_pending_recovery_restore";
392
+ reason?: SessionRecoveryReason;
387
393
  } | {
388
394
  id?: string;
389
395
  type: "get_shortcuts";
@@ -909,6 +915,12 @@ export type RpcResponse = {
909
915
  command: "start_pending_recovery";
910
916
  success: true;
911
917
  data: SessionRecoveryReport;
918
+ } | {
919
+ id?: string;
920
+ type: "response";
921
+ command: "start_pending_recovery_restore";
922
+ success: true;
923
+ data: SessionRecoveryReport;
912
924
  } | {
913
925
  id?: string;
914
926
  type: "response";