@bastani/atomic 0.10.19 → 0.10.20-alpha.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 (377) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/dist/_shared/adapter-open-DXXV6ATH.js +22 -0
  3. package/dist/_shared/adapter-open-DXXV6ATH.js.map +1 -0
  4. package/dist/_shared/dist-KOELCESV.js +2 -2
  5. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  6. package/dist/_shared/lib-4PES5P4V.js +2 -2
  7. package/dist/_shared/mode-interactive-sdk-JXBZ3H27.js +484 -229
  8. package/dist/_shared/mode-interactive-sdk-JXBZ3H27.js.map +1 -1
  9. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +63 -16
  10. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
  11. package/dist/_shared/mode-shared-2QJSCUM6.js +61 -16
  12. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
  13. package/dist/_shared/p0-cli-BB45ZQY6.js +2 -2
  14. package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
  15. package/dist/_shared/p1b-elig-BY2G5BUE.js +6 -3
  16. package/dist/_shared/p1b-elig-BY2G5BUE.js.map +1 -1
  17. package/dist/_shared/runtime-O4KCSG4C.js +5 -5
  18. package/dist/_shared/{sdk-BHX35EPK.js → sdk-5ZFNDXUJ.js} +319 -86
  19. package/dist/_shared/sdk-5ZFNDXUJ.js.map +1 -0
  20. package/dist/_shared/session-data-AHTU7IS6.js +15 -7
  21. package/dist/_shared/session-data-AHTU7IS6.js.map +1 -1
  22. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  23. package/dist/_shared/settings-startup-HXQLSUWM.js +2 -2
  24. package/dist/_shared/settings-startup-HXQLSUWM.js.map +1 -1
  25. package/dist/_shared/{startup-0-0-4EDVBK5P.js → startup-0-0-OWBJIX35.js} +162 -44
  26. package/dist/_shared/startup-0-0-OWBJIX35.js.map +1 -0
  27. package/dist/_shared/{startup-0-1-H5IXVRXQ.js → startup-0-1-DZYE4E5Z.js} +462 -37
  28. package/dist/_shared/startup-0-1-DZYE4E5Z.js.map +1 -0
  29. package/dist/_shared/{startup-0-2-YZZOC22D.js → startup-0-2-WFLTE4SC.js} +147 -6
  30. package/dist/_shared/startup-0-2-WFLTE4SC.js.map +1 -0
  31. package/dist/_shared/startup-0-3-DE2NCS6A.js +59 -50
  32. package/dist/_shared/startup-0-3-DE2NCS6A.js.map +1 -1
  33. package/dist/_shared/{startup-0-4-ZMJV547D.js → startup-0-4-6XXL4JMZ.js} +115 -25
  34. package/dist/_shared/startup-0-4-6XXL4JMZ.js.map +1 -0
  35. package/dist/_shared/{startup-0-5-HZX3ZPTP.js → startup-0-5-DNS6FYS7.js} +229 -156
  36. package/dist/_shared/startup-0-5-DNS6FYS7.js.map +1 -0
  37. package/dist/_shared/{startup-10-0-TDQNBDDL.js → startup-10-0-O6DAT7U4.js} +131 -162
  38. package/dist/_shared/startup-10-0-O6DAT7U4.js.map +1 -0
  39. package/dist/_shared/startup-12-0-55AAXBJZ.js +3 -3
  40. package/dist/_shared/startup-14-0-MLX36RBG.js +9 -6
  41. package/dist/_shared/startup-14-0-MLX36RBG.js.map +1 -1
  42. package/dist/_shared/{startup-15-0-YUKGAC63.js → startup-15-0-E7RYG5YF.js} +9 -9
  43. package/dist/_shared/{startup-15-0-YUKGAC63.js.map → startup-15-0-E7RYG5YF.js.map} +1 -1
  44. package/dist/_shared/startup-15-1-WQZBOTMZ.js +340 -128
  45. package/dist/_shared/startup-15-1-WQZBOTMZ.js.map +1 -1
  46. package/dist/_shared/startup-8-0-34CBHPZH.js +279 -151
  47. package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
  48. package/dist/_shared/{startup-8-1-QZMXUGHI.js → startup-8-1-VXBL37AI.js} +352 -27
  49. package/dist/_shared/startup-8-1-VXBL37AI.js.map +1 -0
  50. package/dist/_shared/storage-command-7MGXLJGZ.js +15 -273
  51. package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
  52. package/dist/_shared/{storage-status-K7PX2RXA.js → storage-status-T6FUXRIM.js} +8 -24
  53. package/dist/_shared/{storage-status-K7PX2RXA.js.map → storage-status-T6FUXRIM.js.map} +1 -1
  54. package/dist/_shared/task-reference-stream-JWMUZSJX.js +1 -1
  55. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  56. package/dist/_shared/team-DOQKICG2.js +4 -3
  57. package/dist/_shared/team-DOQKICG2.js.map +1 -1
  58. package/dist/_shared/tree-outline-MUEPK5B7.js +9 -2
  59. package/dist/_shared/tree-outline-MUEPK5B7.js.map +1 -1
  60. package/dist/binary-self-update.js +3 -3
  61. package/dist/builtin/intercom/broker/broker.bundle.mjs +46 -8
  62. package/dist/builtin/intercom/broker/broker.ts +1 -0
  63. package/dist/builtin/intercom/broker/client.ts +5 -1
  64. package/dist/builtin/intercom/broker/departed-children.ts +12 -6
  65. package/dist/builtin/intercom/broker/ended-child-wakes.ts +2 -0
  66. package/dist/builtin/intercom/index.bundle.mjs +130 -264
  67. package/dist/builtin/intercom/message-display.ts +42 -0
  68. package/dist/builtin/intercom/package.json +1 -1
  69. package/dist/builtin/intercom/types.ts +1 -0
  70. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  71. package/dist/builtin/mcp/package.json +1 -1
  72. package/dist/builtin/subagents/package.json +1 -1
  73. package/dist/builtin/subagents/src/extension/index.bundle.mjs +99 -20
  74. package/dist/builtin/web-access/index.bundle.mjs +15 -9
  75. package/dist/builtin/web-access/package.json +1 -1
  76. package/dist/cli/args.js +2 -2
  77. package/dist/cli/auth-cli.code.js +6 -6
  78. package/dist/cli/auth-cli.impl.js +3 -3
  79. package/dist/cli/auth-cli.js +3 -3
  80. package/dist/cli/blueprint-command.code.js +4 -4
  81. package/dist/cli/blueprint-command.impl.js +3 -3
  82. package/dist/cli/blueprint-command.js +3 -3
  83. package/dist/cli/intercom-command.code.js +3 -3
  84. package/dist/cli/intercom-command.impl.js +3 -3
  85. package/dist/cli/intercom-command.js +3 -3
  86. package/dist/cli/list-models.code.js +3 -3
  87. package/dist/cli/list-models.impl.js +3 -3
  88. package/dist/cli/list-models.js +3 -3
  89. package/dist/cli/session-picker.code.js +2 -2
  90. package/dist/cli/session-picker.impl.js +3 -3
  91. package/dist/cli/session-picker.js +3 -3
  92. package/dist/cli/startup-ui.code.js +2 -2
  93. package/dist/cli/startup-ui.impl.js +3 -3
  94. package/dist/cli/startup-ui.js +3 -3
  95. package/dist/cli/storage-command.impl.js +3 -3
  96. package/dist/cli/storage-command.js +3 -3
  97. package/dist/cli/storage-search-session.code.js +3 -3
  98. package/dist/cli/storage-search-session.impl.js +3 -3
  99. package/dist/cli/storage-search-session.js +3 -3
  100. package/dist/cli/team-command.code.js +3 -3
  101. package/dist/cli/team-command.impl.js +3 -3
  102. package/dist/cli/team-command.js +3 -3
  103. package/dist/cli.js +2 -2
  104. package/dist/core/agent-session-runtime.d.ts +16 -4
  105. package/dist/core/agent-session-types.d.ts +5 -1
  106. package/dist/core/debug.impl.js +3 -3
  107. package/dist/core/debug.js +3 -3
  108. package/dist/core/export-html/card-projection.code.js +74 -72
  109. package/dist/core/export-html/card-projection.code.js.map +1 -1
  110. package/dist/core/export-html/card-projection.impl.js +3 -3
  111. package/dist/core/export-html/card-projection.js +3 -3
  112. package/dist/core/export-html/index.code.js +52 -41
  113. package/dist/core/export-html/index.code.js.map +1 -1
  114. package/dist/core/export-html/index.impl.js +3 -3
  115. package/dist/core/export-html/index.js +3 -3
  116. package/dist/core/export-html/json-spans.impl.js +3 -3
  117. package/dist/core/export-html/json-spans.js +3 -3
  118. package/dist/core/export-html/oversized-render-inputs.code.js +1 -1
  119. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  120. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  121. package/dist/core/export-html/template.js +27 -39
  122. package/dist/core/export-html/tool-renderer.code.js +1 -1
  123. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  124. package/dist/core/export-html/tool-renderer.js +3 -3
  125. package/dist/core/extensions/context-types.d.ts +3 -0
  126. package/dist/core/extensions/context-types.js.map +1 -1
  127. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  128. package/dist/core/extensions/jiti-loader.js +3 -3
  129. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  130. package/dist/core/extensions/jiti-static-loader.js +3 -3
  131. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  132. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  133. package/dist/core/extensions/loader-host-modules.js +3 -3
  134. package/dist/core/extensions/loader-virtual-modules.js +2 -2
  135. package/dist/core/extensions/runner-context.d.ts +1 -0
  136. package/dist/core/extensions/runner-context.js +18 -2
  137. package/dist/core/extensions/runner-context.js.map +1 -1
  138. package/dist/core/extensions/runner.d.ts +1 -0
  139. package/dist/core/extensions/runtime-types.d.ts +1 -0
  140. package/dist/core/extensions/runtime-types.js.map +1 -1
  141. package/dist/core/intercom-broker-control-host.code.js +1 -1
  142. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  143. package/dist/core/intercom-broker-control-host.js +3 -3
  144. package/dist/core/intercom-broker-control.code.js +3 -3
  145. package/dist/core/intercom-broker-control.impl.js +3 -3
  146. package/dist/core/intercom-broker-control.js +3 -3
  147. package/dist/core/model-registry.js +2 -2
  148. package/dist/core/model-runtime-streaming.d.ts +3 -1
  149. package/dist/core/model-runtime.d.ts +2 -0
  150. package/dist/core/package-manager-storage-adapters.code.js +1 -1
  151. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  152. package/dist/core/package-manager-storage-adapters.js +3 -3
  153. package/dist/core/resume/failure.d.ts +1 -1
  154. package/dist/core/sdk.code.js +4 -4
  155. package/dist/core/sdk.impl.js +3 -3
  156. package/dist/core/sdk.js +3 -3
  157. package/dist/core/session-claims.d.ts +13 -2
  158. package/dist/core/session-load-events.d.ts +42 -0
  159. package/dist/core/session-manager-core.d.ts +17 -2
  160. package/dist/core/session-manager-core.js +234 -93
  161. package/dist/core/session-manager-core.js.map +1 -1
  162. package/dist/core/session-manager-errors.d.ts +2 -2
  163. package/dist/core/session-manager-history.d.ts +1 -1
  164. package/dist/core/session-manager-list.impl.js +3 -3
  165. package/dist/core/session-manager-list.js +3 -3
  166. package/dist/core/session-manager.code.js +2 -2
  167. package/dist/core/session-manager.impl.js +3 -3
  168. package/dist/core/session-manager.js +3 -3
  169. package/dist/core/session-storage.code.js +1 -1
  170. package/dist/core/session-storage.impl.js +3 -3
  171. package/dist/core/session-storage.js +3 -3
  172. package/dist/core/settings-manager.js +2 -2
  173. package/dist/core/storage/adapter-open.js +3 -0
  174. package/dist/core/storage/adapter-open.js.map +1 -0
  175. package/dist/core/storage/index.js +2 -2
  176. package/dist/core/storage/node-sqlite-thread.js +2 -2
  177. package/dist/core/storage/node-sqlite.js +2 -2
  178. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  179. package/dist/core/storage/offline-snapshot-file.js +3 -3
  180. package/dist/core/storage/prefix.js +1 -0
  181. package/dist/core/storage/prefix.js.map +1 -1
  182. package/dist/core/storage/provider.js +2 -2
  183. package/dist/core/storage/schema-catalog.d.ts +2 -1
  184. package/dist/core/storage/schema-catalog.js +25 -6
  185. package/dist/core/storage/schema-catalog.js.map +1 -1
  186. package/dist/core/storage/selection.js +2 -2
  187. package/dist/core/storage/session/branch-fork-source.code.js +17 -4
  188. package/dist/core/storage/session/branch-fork-source.code.js.map +1 -1
  189. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  190. package/dist/core/storage/session/branch-fork-source.js +3 -3
  191. package/dist/core/storage/session/card-view.impl.js +3 -3
  192. package/dist/core/storage/session/card-view.js +3 -3
  193. package/dist/core/storage/session/child-reader.code.js +7 -7
  194. package/dist/core/storage/session/child-reader.code.js.map +1 -1
  195. package/dist/core/storage/session/child-reader.d.ts +1 -0
  196. package/dist/core/storage/session/child-reader.impl.js +3 -3
  197. package/dist/core/storage/session/child-reader.js +3 -3
  198. package/dist/core/storage/session/chunked-resume-projection.code.js +1 -1
  199. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  200. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  201. package/dist/core/storage/session/expanded-child-details.code.js +3 -3
  202. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  203. package/dist/core/storage/session/expanded-child-details.js +3 -3
  204. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  205. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  206. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  207. package/dist/core/storage/session/fork-row-index.js +3 -3
  208. package/dist/core/storage/session/fork-staging.code.js +9 -5
  209. package/dist/core/storage/session/fork-staging.code.js.map +1 -1
  210. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  211. package/dist/core/storage/session/fork-staging.js +3 -3
  212. package/dist/core/storage/session/fork-window.code.js +29 -13
  213. package/dist/core/storage/session/fork-window.code.js.map +1 -1
  214. package/dist/core/storage/session/fork-window.impl.js +3 -3
  215. package/dist/core/storage/session/fork-window.js +3 -3
  216. package/dist/core/storage/session/history-pages.impl.js +3 -3
  217. package/dist/core/storage/session/history-pages.js +3 -3
  218. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  219. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  220. package/dist/core/storage/session/jsonl-session-store.d.ts +8 -4
  221. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  222. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  223. package/dist/core/storage/session/memory-session-store.d.ts +3 -3
  224. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  225. package/dist/core/storage/session/memory-session-store.js +3 -3
  226. package/dist/core/storage/session/parent-links.d.ts +122 -0
  227. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  228. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  229. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  230. package/dist/core/storage/session/released-history-files.code.js +3 -3
  231. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  232. package/dist/core/storage/session/released-history-files.js +3 -3
  233. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  234. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  235. package/dist/core/storage/session/session-resume.impl.js +3 -3
  236. package/dist/core/storage/session/session-resume.js +3 -3
  237. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  238. package/dist/core/storage/session/snapshot-cut.js +3 -3
  239. package/dist/core/storage/session/snapshot-history.code.js +5 -6
  240. package/dist/core/storage/session/snapshot-history.code.js.map +1 -1
  241. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  242. package/dist/core/storage/session/snapshot-history.js +3 -3
  243. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  244. package/dist/core/storage/session/sql-session-store.d.ts +7 -20
  245. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  246. package/dist/core/storage/session/sql-session-store.js +3 -3
  247. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  248. package/dist/core/storage/session/tree-outline.js +3 -3
  249. package/dist/core/storage/session/tree-presentation.code.js +1 -1
  250. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  251. package/dist/core/storage/session/tree-presentation.js +3 -3
  252. package/dist/core/storage/session/types.d.ts +11 -3
  253. package/dist/core/storage/session/usage-observations.d.ts +27 -0
  254. package/dist/core/storage/session/usage-observations.js +3 -0
  255. package/dist/core/storage/session/usage-observations.js.map +1 -0
  256. package/dist/core/storage/storage-status.code.js +1 -1
  257. package/dist/core/storage/storage-status.impl.js +3 -3
  258. package/dist/core/storage/storage-status.js +3 -3
  259. package/dist/core/storage/team.impl.js +3 -3
  260. package/dist/core/storage/team.js +3 -3
  261. package/dist/core/structured-output/index.code.js +1 -1
  262. package/dist/core/structured-output/index.impl.js +3 -3
  263. package/dist/core/structured-output/index.js +3 -3
  264. package/dist/core/subscription-usage-identity.d.ts +9 -0
  265. package/dist/core/subscription-usage-observations.d.ts +15 -0
  266. package/dist/core/subscription-usage-storage.js +3 -0
  267. package/dist/core/subscription-usage-storage.js.map +1 -0
  268. package/dist/core/subscription-usage.d.ts +20 -3
  269. package/dist/core/tasks/task-completion-entry.code.js +1 -1
  270. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  271. package/dist/core/tasks/task-completion-entry.js +3 -3
  272. package/dist/core/tasks/task-file-history.code.js +3 -3
  273. package/dist/core/tasks/task-file-history.impl.js +3 -3
  274. package/dist/core/tasks/task-file-history.js +3 -3
  275. package/dist/core/tasks/task-reference-archive.code.js +5 -5
  276. package/dist/core/tasks/task-reference-archive.js +3 -3
  277. package/dist/core/tasks/task-reference-identity.code.js +1 -1
  278. package/dist/core/tasks/task-reference-identity.js +3 -3
  279. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  280. package/dist/core/tasks/task-reference-stream.js +3 -3
  281. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  282. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  283. package/dist/core/tasks/task-view-source.code.js +1 -1
  284. package/dist/core/tasks/task-view-source.impl.js +3 -3
  285. package/dist/core/tasks/task-view-source.js +3 -3
  286. package/dist/core/tools/read-url.code.js +3 -3
  287. package/dist/core/tools/read-url.impl.js +3 -3
  288. package/dist/core/tools/read-url.js +3 -3
  289. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  290. package/dist/core/worktree-snapshot/errors.code.js +3 -3
  291. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  292. package/dist/core/worktree-snapshot/errors.js +3 -3
  293. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  294. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  295. package/dist/extensions/codemode/execute.code.js +2 -2
  296. package/dist/extensions/codemode/execute.impl.js +3 -3
  297. package/dist/extensions/codemode/execute.js +3 -3
  298. package/dist/extensions/codemode/renderer.code.js +12 -7
  299. package/dist/extensions/codemode/renderer.code.js.map +1 -1
  300. package/dist/extensions/codemode/renderer.impl.js +3 -3
  301. package/dist/extensions/codemode/renderer.js +3 -3
  302. package/dist/extensions/mcp/cli.code.js +3 -3
  303. package/dist/extensions/mcp/cli.impl.js +3 -3
  304. package/dist/extensions/mcp/cli.js +3 -3
  305. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  306. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  307. package/dist/extensions/mcp/cli.lazy.js +3 -3
  308. package/dist/extensions/mcp/runtime.code.js +1 -1
  309. package/dist/extensions/mcp/runtime.impl.js +3 -3
  310. package/dist/extensions/mcp/runtime.js +3 -3
  311. package/dist/index.d.ts +6 -3
  312. package/dist/index.js +10 -10
  313. package/dist/main-first-time-setup.code.js +2 -2
  314. package/dist/main-first-time-setup.impl.js +3 -3
  315. package/dist/main-first-time-setup.js +3 -3
  316. package/dist/main.js +1 -1
  317. package/dist/modes/index.d.ts +1 -1
  318. package/dist/modes/interactive/components/intercom-wake-notice.d.ts +4 -0
  319. package/dist/modes/interactive/components/notice-line.d.ts +1 -1
  320. package/dist/modes/interactive/components/stored-tree-view.code.js +6 -5
  321. package/dist/modes/interactive/components/stored-tree-view.code.js.map +1 -1
  322. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  323. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  324. package/dist/modes/interactive/components/tool-block.d.ts +5 -1
  325. package/dist/modes/interactive/components/user-message-selector-archive.code.js +1 -1
  326. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  327. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  328. package/dist/modes/interactive-engine/isolated-runtime.d.ts +4 -3
  329. package/dist/modes/print-mode.js +1 -1
  330. package/dist/modes/rpc/rpc-client-api.d.ts +5 -0
  331. package/dist/modes/rpc/rpc-client.d.ts +1 -1
  332. package/dist/modes/rpc/rpc-types.d.ts +26 -3
  333. package/dist/package-manager-cli.code.js +7 -7
  334. package/dist/package-manager-cli.impl.js +3 -3
  335. package/dist/package-manager-cli.js +3 -3
  336. package/dist/rpc-entry.js +1 -1
  337. package/dist/startup-files.json +1 -1
  338. package/dist/startup-stages/10.js +1 -1
  339. package/dist/startup-stages/12.js +1 -1
  340. package/dist/startup-stages/13.js +2 -1
  341. package/dist/startup-stages/14.js +1 -0
  342. package/dist/startup-stages/4.js +1 -1
  343. package/dist/startup-stages/6.js +1 -1
  344. package/dist/startup-stages/7.js +1 -1
  345. package/dist/startup-stages/8.js +1 -1
  346. package/dist/startup-stages/stages.json +1 -1
  347. package/dist/utils/startup-database-spare.code.js +3 -3
  348. package/dist/utils/startup-database-spare.impl.js +3 -3
  349. package/dist/utils/startup-database-spare.js +3 -3
  350. package/dist/utils/tools-manager.code.js +1 -1
  351. package/dist/utils/tools-manager.impl.js +3 -3
  352. package/dist/utils/tools-manager.js +3 -3
  353. package/docs/.agents/context/DESIGN.md +30 -0
  354. package/docs/changelog.mdx +46 -0
  355. package/docs/docs.json +1 -1
  356. package/docs/extensions/api-reference.md +6 -0
  357. package/docs/guides/subscription-usage.md +28 -82
  358. package/docs/intercom.md +3 -1
  359. package/docs/json.md +3 -3
  360. package/docs/providers.md +2 -0
  361. package/docs/reference/cli.md +3 -1
  362. package/docs/rpc/protocol.md +31 -3
  363. package/docs/sdk/reference.md +26 -1
  364. package/docs/sdk.md +2 -0
  365. package/docs/sessions.md +38 -1
  366. package/docs/slash-commands.md +1 -1
  367. package/docs/subagents.md +2 -0
  368. package/docs/usage.md +1 -1
  369. package/package.json +8 -8
  370. package/dist/_shared/sdk-BHX35EPK.js.map +0 -1
  371. package/dist/_shared/startup-0-0-4EDVBK5P.js.map +0 -1
  372. package/dist/_shared/startup-0-1-H5IXVRXQ.js.map +0 -1
  373. package/dist/_shared/startup-0-2-YZZOC22D.js.map +0 -1
  374. package/dist/_shared/startup-0-4-ZMJV547D.js.map +0 -1
  375. package/dist/_shared/startup-0-5-HZX3ZPTP.js.map +0 -1
  376. package/dist/_shared/startup-10-0-TDQNBDDL.js.map +0 -1
  377. package/dist/_shared/startup-8-1-QZMXUGHI.js.map +0 -1
@@ -1,16 +1,16 @@
1
1
  import { __name } from "./rolldown-runtime-BGM3D5V3.js";
2
2
  import { APP_NAME, BUILTIN_PACKAGE_DIR_NAMES, CONFIG_DIR_NAME, ENV_CLEAR_ON_SHRINK, ENV_HARDWARE_CURSOR, INTERACTIVE_ENGINE_BOOTSTRAP_FLAG, addHostStorageAdapter, canonicalizePath as canonicalizePath$1, createChildProcessEnvironment, flushPersistentCompileCache, formatPathRelativeToCwdOrAbsolute, getAgentConfigPaths, getAgentDir, getAgentDirs, getBinDir, getBlueprintActionsDir, getCwdRelativePath, getEnvValue, getGlobalBlueprintPath, getHomeDir, getProjectBlueprintPath, getProjectConfigPaths, getReadmePath, hostStorageAdapter, isBunBinary, isBunRuntime, isChildProcessExitStatusUnknownError, isLocalPath, markLifecycleTiming, normalizePath, removeOwnedInteractiveEngineBootstrapAsync, resolvePath, shortenHomePath, splitBom, stripBom, waitForChildProcess, writeInteractiveEngineBootstrapAsync } from "./p0-cli-BB45ZQY6.js";
3
- import { BLUEPRINT_CONTEXT_TYPE, BlueprintBuildFailedError, BlueprintError, BlueprintInvalidError, BlueprintStepFailedError, BlueprintStepTimedOutError, BlueprintUsesUnsupportedError, CACHE_WARMING_MODES, COMMAND_FOREGROUND_BUDGET_MS, CompactionConfigError, DEFAULT_BUILTIN_SELECTION_EXTRA_TOOLS, DEFAULT_MAX_BYTES, EditInputError, EditMatchError, EditTargetError, FileToolAbortedError, HostListenerFailures, LONG_LIVED_COMMANDS, Minimatch, RESTART_CANCELLED_MESSAGE, STALE_EXTENSION_CONTEXT_MESSAGE, ShellTimeoutError, SqliteSelectorConnection, SubscriptionChildUnavailableError, SubscriptionClosedError, SubscriptionConfigError, TASK_MARKS, TaskMessageError, TaskMessageTimeoutError, WriteSelectorError, activeToolExecutionStarts, allToolNames, announceBlueprintBuildWaiting, applyBashSessionEnvironment, asyncScope, attachJsonlLineReader, attachLineReader, bindSavedTaskOrigins, blueprintBuildShared, canonicalEventBusFor, chatPosition, clearAssignmentIfClosed, clearLockHolder, clearLockHolderAsync, convertBufferWithMarkit, convertFileWithMarkit, createGitEnvironment, defaultToolNamesFor, defineTool, detectSupportedImageMimeTypeFromFile, displayTodoId, expandSearchUrl, experimentalToolSamplingProperty, filterSearchOutputByLineRange, formatReadLineRange as formatReadLineRange$1, formatSelectedLines, formatSize, formatTimeoutSeconds as formatTimeoutSeconds$1, formatTodoId, frozenClocks, getManifestFromPackageJson, getTextOutput, getTodoPath, getTodoStatus, getTodoTitle, getTodosDir, getTodosDirLabel, getToolListError, handOverBuildTimings, holdDeprecationWarnings, holdToolsUntilBuilt, hostInputError, invalidArgText, invalidateNativeSearchCache, isBlueprintError, isGitProvisionError, isGitUnavailableError, isPathInside, isPlainObject as isPlainObject$1, isReadResourceSelector, isReadableUrlPath, isTodoClosed, isToolModifier, isValidBudgetMs, keptTaskHint, linkPath, literalPathLike, loadNativeSearchBinding, mergeReadRanges, nativeModuleProblem, normalizePathLikeInput, normalizeTodoId, normalizeWaitPolicy, noteSavedSeq, originalHistoryNote, prepareLockTakeover, prepareWaitableToolInput, projectTrustHandlerRegistered, projectTrustedBeforeExtensions, readTaskOutputTail, receiveChatReceipt, recordLockHolder, recordLockHolderAsync, registerCanonicalEventBus, releaseDeprecationWarnings, renderBlueprintContext, renderToolPath, replaceTabs, reportContained, resolvePhysicalPathAsync, savedReadLines, scopedBackgroundTasks, searchPosition, selectExactReadRanges, selectReadRanges, serializeJsonLine, settingsFileNoticeKey, settingsInternals, shortenPath, sleep, sliceHead, snapshotBashSessionEnvironment, sortTodos, spawnHostProcess, splitLineRangeSelector, splitPathLikeGlob, splitReadLineSelector, splitTodosByAssignment, startShellDeadline, startToolTimer, str, stringEntries, takeOverDeadHolder, takeOverDeadHolderAsync, takeQueuedDeliveryChange, taskResumer, toolTimerText, truncateHead, truncateLine, validateTodoId, warnDeprecation, withFileMutationQueue, withResolvingFileMutationQueue } from "./startup-0-0-4EDVBK5P.js";
4
- import { EMPTY_OUTPUT_TEXT, HistorySearchPositions, MAX_INDEXED_ENTRY_CHARS, ResumeTimingsRecorder, SEARCH_PART_CHARS, SessionStorageSelectionSchema, TaskElapsedClocks, TaskToolError, WorkspaceDriftError, WorkspaceRestoreError, WorkspaceSnapshotError, bindTaskClock, bindTaskClockSource, blueprintDigest, buildDirectoryTree, buildDirectoryTreeFromOperations, cancelReceiptSentence, captureRegistrationInvocation, compareCreated, compareFrozen, conflictEntries, convertToLlm, createBranchSummaryMessage, createCustomMessage, diffLines, ensureTool, entryLines, execCommand, findWorkspaceError, formatResumeTimings, invocationExtension, invocationRuntime, isWorkspaceConfigError, isWorkspaceDriftError, isWorkspaceError, isWorkspaceGitError, isWorkspaceSnapshotError, lifecycleScopeForOwner, normalizeAzureSettings, openEventSubscription, originalRegistrationCallback, ownedSettingsManagers, parseArgs, parseConflictBytes, parseInteractiveEngineMessage, parseSkillUri, presentTaskError, prewarmModelApi, readConflictUrl, readLedger, readLocalFileChunks, recordBlueprintStep, recordResumeTimings, recordSettingsWrite, refreshConflictFile, registerConflictBlocks, registerFactoryStartupHandler, renderTodoCall, renderTodoResult, repositoryKey, resolveInstalledGit, resolveInvocationRuntime, rootKey, selectReadLinesFromChunks, selectReadLinesFromList, serializeInteractiveEngineFrame, serializeTodoForAgent, serializeTodoListForAgent, sessionPosition, settingsWriteOwner, splitSearchTextParts, startupSourceId, taskClockOf, taskClockRunning, timeCheckoutRestore, timestamp, transcriptHeaderLines, unpackIds, unreadablePathError, updateLedger, validateEventSource, validateSubscriptionAdmission, waitResultTail, waitStatus, withWorktreeLockProgress, withoutSearchPosition, workspaceKey, writeRenderers } from "./startup-0-1-H5IXVRXQ.js";
3
+ import { BLUEPRINT_CONTEXT_TYPE, BlueprintBuildFailedError, BlueprintError, BlueprintInvalidError, BlueprintStepFailedError, BlueprintStepTimedOutError, BlueprintUsesUnsupportedError, CACHE_WARMING_MODES, COMMAND_FOREGROUND_BUDGET_MS, CompactionConfigError, DEFAULT_BUILTIN_SELECTION_EXTRA_TOOLS, DEFAULT_MAX_BYTES, EditInputError, EditMatchError, EditTargetError, FileToolAbortedError, HostListenerFailures, LONG_LIVED_COMMANDS, Minimatch, RESTART_CANCELLED_MESSAGE, STALE_EXTENSION_CONTEXT_MESSAGE, ShellTimeoutError, SqliteSelectorConnection, SubscriptionChildUnavailableError, SubscriptionClosedError, SubscriptionConfigError, TASK_MARKS, TaskMessageError, TaskMessageTimeoutError, WriteSelectorError, activeToolExecutionStarts, allToolNames, announceBlueprintBuildWaiting, applyBashSessionEnvironment, asyncScope, attachJsonlLineReader, attachLineReader, bindSavedTaskOrigins, blueprintBuildShared, canonicalEventBusFor, chatEpoch, chatPosition, clearAssignmentIfClosed, clearLockHolder, clearLockHolderAsync, convertBufferWithMarkit, convertFileWithMarkit, createGitEnvironment, defaultToolNamesFor, defineTool, detectSupportedImageMimeTypeFromFile, displayTodoId, expandSearchUrl, experimentalToolSamplingProperty, filterSearchOutputByLineRange, formatReadLineRange as formatReadLineRange$1, formatSelectedLines, formatSize, formatTimeoutSeconds as formatTimeoutSeconds$1, formatTodoId, frozenClocks, getManifestFromPackageJson, getTextOutput, getTodoPath, getTodoStatus, getTodoTitle, getTodosDir, getTodosDirLabel, getToolListError, handOverBuildTimings, holdDeprecationWarnings, holdToolsUntilBuilt, hostInputError, invalidArgText, invalidateNativeSearchCache, isBlueprintError, isGitProvisionError, isGitUnavailableError, isPathInside, isPlainObject as isPlainObject$1, isReadResourceSelector, isReadableUrlPath, isTodoClosed, isToolModifier, isValidBudgetMs, keptTaskHint, linkPath, literalPathLike, loadNativeSearchBinding, mergeReadRanges, nativeModuleProblem, normalizePathLikeInput, normalizeTodoId, normalizeWaitPolicy, noteSavedSeq, originalHistoryNote, prepareLockTakeover, prepareWaitableToolInput, projectTrustHandlerRegistered, projectTrustedBeforeExtensions, readTaskOutputTail, receiveChatReceipt, recordLockHolder, recordLockHolderAsync, registerCanonicalEventBus, releaseDeprecationWarnings, renderBlueprintContext, renderToolPath, replaceTabs, reportContained, resolvePhysicalPathAsync, savedReadLines, scopedBackgroundTasks, searchPosition, selectExactReadRanges, selectReadRanges, serializeJsonLine, settingsFileNoticeKey, settingsInternals, shortenPath, sleep, sliceHead, snapshotBashSessionEnvironment, sortTodos, spawnHostProcess, splitLineRangeSelector, splitPathLikeGlob, splitReadLineSelector, splitTodosByAssignment, startShellDeadline, startToolTimer, str, stringEntries, takeOverDeadHolder, takeOverDeadHolderAsync, takeQueuedDeliveryChange, taskResumer, toolTimerText, truncateHead, truncateLine, validateTodoId, warnDeprecation, withFileMutationQueue, withResolvingFileMutationQueue } from "./startup-0-0-OWBJIX35.js";
4
+ import { EMPTY_OUTPUT_TEXT, HistorySearchPositions, MAX_INDEXED_ENTRY_CHARS, ResumeTimingsRecorder, SEARCH_PART_CHARS, SessionStorageSelectionSchema, StorageImportIncompleteError, StorageTransferError, TaskElapsedClocks, TaskToolError, WorkspaceDriftError, WorkspaceRestoreError, WorkspaceSnapshotError, assertSessionBlobStore, bindTaskClock, bindTaskClockSource, blueprintDigest, buildDirectoryTree, buildDirectoryTreeFromOperations, cancelReceiptSentence, captureRegistrationInvocation, compareCreated, compareFrozen, conflictEntries, convertToLlm, createBranchSummaryMessage, createCustomMessage, diffLines, ensureTool, entryLines, execCommand, findWorkspaceError, formatResumeTimings, inlineToolOutput, invocationExtension, invocationRuntime, isWorkspaceConfigError, isWorkspaceDriftError, isWorkspaceError, isWorkspaceGitError, isWorkspaceSnapshotError, lifecycleScopeForOwner, normalizeAzureSettings, openEventSubscription, originalRegistrationCallback, ownedSettingsManagers, parseArgs, parseConflictBytes, parseInteractiveEngineMessage, parseSkillUri, prepareImportedSessionParents, presentTaskError, prewarmModelApi, readConflictUrl, readLedger, readLocalFileChunks, readTransferDirectory, recordBlueprintStep, recordResumeTimings, recordSettingsWrite, refreshConflictFile, registerConflictBlocks, registerFactoryStartupHandler, renderTodoCall, renderTodoResult, repositoryKey, resolveInstalledGit, resolveInvocationRuntime, rootKey, selectReadLinesFromChunks, selectReadLinesFromList, serializeInteractiveEngineFrame, serializeTodoForAgent, serializeTodoListForAgent, sessionPosition, settingsWriteOwner, splitSearchTextParts, startupSourceId, storeSessionBlobs, takeInlineToolOutput, taskClockOf, taskClockRunning, timeCheckoutRestore, timestamp, transcriptHeaderLines, transferFile, unpackIds, unreadablePathError, updateLedger, validateEventSource, validateSubscriptionAdmission, waitResultTail, waitStatus, withWorktreeLockProgress, withoutSearchPosition, workspaceKey, writeLinesAtomically, writeRenderers } from "./startup-0-1-DZYE4E5Z.js";
5
5
  import { CodeHighlighter, FS_WATCH_RETRY_DELAY_MS, applyEarlyInputChunk, closeWatcher, getLanguageFromPath, graphemeAt, highlightCode, isSafeFsWatchPathError, keepStartupDialogDraft, migrateKeybindingsConfig, parenthesizedKeyHint, recordTimingLines, sanitizeTerminalText, singleLineDisplayText, slashCommandHint, terminalDisplayText, theme, watchWithErrorHandlerAsync, withEarlyInputHeldForStartupDialog } from "./p2-shell-main-B2WIALFD.js";
6
6
  import { parseJsonFileContent } from "./p1-shared-RG5I5LJ6.js";
7
7
  import { ProjectTrustStore, failureDebugFields, hasProjectTrustInputsAsync, inLockTurn, matchesOnSameLineCI, redactUrlCredentials, releaseLock, releaseLockSync, renameReplacing, renameReplacingAsync, renameWithRetry, reportDebugAsync, waitForLock, waitForLockSync } from "./p1b-elig-BY2G5BUE.js";
8
- import { FILE_HEADERS_ONLY, InteractiveEngineMonitor, ModelConfig, RpcTerminalDrain, TodoParams, addShellOutputPreview, assertSessionOpen, bindTaskChatPage, captureTaskChatFile, chatPageRequest, createTwoFilesPatch, drainSessionWork, dropWrongTypedSettings, estimateTokens, formatKillCall, formatPatch, formatTruncationNotice, formatWorkingElapsed, getNativeMcpToolIdentity, getPowerShellConfigAsync, getShellConfigAsync, getShellEnvAsync, hasCallingSessionWork, invalidSettingMessage, isPowerShellAvailable, isResumePreconditionError, isTodoOperationError, killChildProcessTree, loadTaskOwnTranscriptEntries, markNativeMcpToolDefinition, rebuildKillResult, rebuildShellWaitResult, selectProcessStorageSteps, sessionGenerationClosing, sessionLifetime, spawnShellProcess, structuredPatch, taskChatPage, taskExtensionStatuses, taskOwnTranscriptEntries, taskTranscriptSource, trackDetachedChildPid, trackDetachedChildProcess, trackSessionWork, untrackDetachedChildPid, watchTaskExtensionStatuses, wrapToolDefinition } from "./startup-0-2-YZZOC22D.js";
8
+ import { FILE_HEADERS_ONLY, InteractiveEngineMonitor, ModelConfig, RpcTerminalDrain, TodoParams, addShellOutputPreview, assertSessionOpen, bindTaskChatPage, captureTaskChatFile, chatPageRequest, createTwoFilesPatch, drainSessionWork, dropWrongTypedSettings, estimateTokens, formatKillCall, formatPatch, formatTruncationNotice, formatWorkingElapsed, getNativeMcpToolIdentity, getPowerShellConfigAsync, getShellConfigAsync, getShellEnvAsync, hasCallingSessionWork, invalidSettingMessage, isPowerShellAvailable, isResumePreconditionError, isTodoOperationError, killChildProcessTree, loadTaskOwnTranscriptEntries, markNativeMcpToolDefinition, rebuildKillResult, rebuildShellWaitResult, selectProcessStorageSteps, sessionGenerationClosing, sessionLifetime, spawnShellProcess, structuredPatch, taskChatPage, taskExtensionStatuses, taskOwnTranscriptEntries, taskTranscriptSource, trackDetachedChildPid, trackDetachedChildProcess, trackSessionWork, untrackDetachedChildPid, watchTaskExtensionStatuses, wrapToolDefinition } from "./startup-0-2-WFLTE4SC.js";
9
9
  import { appendToLog, applyContextEdit, assertExtensionAction, buildProcessStarting, extensionWorkOpen, findSessionOpenHolder, getBaseDirsForScope, getOwnerTaskSession, getOwnerTaskStore, inExtensionCleanup, isResumeFailure, isRetiredExtensionCleanup, isTaskTurnInterrupted, loadArchiveSnapshot, logTail, migrateAzureProvider, migrateAzureProviderAsync, onExtensionSessionQuit, openStepLog, processImage, resolvePathFromBase, resolveWorktreeSnapshotSettings, runLoggedProcess, sessionEntryToContextMessages, sha256Hex, startElapsedMs, stripLeadingCdCommandAsync, taskResumedTurns, trackExtensionWork, watchOwnerTaskStoreBinding, withTodoLock } from "./startup-0-3-DE2NCS6A.js";
10
10
  import { DecisionConfigError, SessionHistoryNotLoadedError, asAcceptedRequestFailure, isDecisionConfigError, markRpcTransportFailure, rpcTransportError } from "./settings-startup-HXQLSUWM.js";
11
- import { JsonlSessionStore, LegacySessionStore, checkedCustomMessage, checkedCustomType, checkedLabel, getLastConversationMessageId, getLatestSessionSummary, historyPageGeneration, readSessionRange, storeSnapshotIndex, transcriptCursorWithin } from "./startup-8-0-34CBHPZH.js";
12
- import { TASK_COMPLETION_MESSAGE_TYPE, admitPooledWorktree, adoptPrebuiltSeed, assertRpcSuccess, authForStream, captureLocatedCheckout, captureWorktreeSnapshot, carryOverDegradedWork, childOfAttempt, chunkedToolResult, chunkedToolResultEntry, claimIdleWorktree, completionTitleDescription, confirmPooledWorktreeLease, createLoadedAskUserQuestionToolDefinition, createToolNameMatcher, defaultResumePreflightIo, discardPooledWorktree, evictIdleWorktrees, executeNativePty, executeSupervisedCommand, expandSkillCommand, extensionsCanDecideProjectTrust, getExistingGitInstallPathAsync, getManagedNpmInstallPath, gitText, holdRestoredWorktree, holdsSessionSnapshotRef, hostPlatform, inheritWorkspace, isHeadOnlyAdvance, isMcpToolName, isRecoverableRestoreFailure, keepSessionSnapshotCommit, loadSnapshotPathPolicy, locateCheckout, lookupOwnedTask, nextCaptureTick, parseBlueprint, parseSource, pendingLfsDownload, pooledWorktreeHolder, readRepositoryConfig, recordPooledWorktreeState, recordWorktreeCapture, releaseRestoredWorktree, releaseSessionSnapshotRefs, removeRestoredWorktree, require_dist, restoreBestWorktree, restoreDegradedWorktree, restoreDegradedWorktreeAt, restoreWorktree, restoreWorktreeAt, retireSessionSnapshotRefs, runGit, selectDocument, setAsideWorktree, snapshotRestoreWarnings, unrestoredRecord, validateBashWait, validateTaskHeartbeatMs, verifyWorktree, waitForSupervisedCommand, waitingReleasedTools, withScratchDirectory, withoutSupersededAttempts, worktreeSetAside, writeWorkingTree } from "./startup-0-5-HZX3ZPTP.js";
13
- import { OutputAccumulator, SNAPSHOT_COLLECTION_SESSION_DELAY_MS, TOOL_BLOCK_LIMITS, ToolBlockRecords, applyModelsJson, cancelledBuilds, canonicalPaths, canonicalizeWorktreePathAsync, collapseToolBlockLines, defaultWorktreeSnapshotStoreDir, migrateAuthJsonConfigValues, migrateAuthJsonConfigValuesAsync, migrateModelsJsonConfigValues, migrateModelsJsonConfigValuesAsync, renderDiff, runCanonicalSteps, runCanonicalStepsAsync, sameRemote, scheduleSnapshotCollection, settleOtherBuilds, taskTranscriptPageWithCuts, withBuildLocks } from "./startup-0-4-ZMJV547D.js";
11
+ import { JsonlSessionStore, LegacySessionStore, checkedCustomMessage, checkedCustomType, checkedLabel, getLastConversationMessageId, getLatestSessionSummary, historyPageGeneration, isCurrentSessionHeader, readSessionRange, storeSnapshotIndex, transcriptCursorWithin } from "./startup-8-0-34CBHPZH.js";
12
+ import { TASK_COMPLETION_MESSAGE_TYPE, admitPooledWorktree, adoptPrebuiltSeed, assertRpcSuccess, authForStream, captureLocatedCheckout, captureWorktreeSnapshot, carryOverDegradedWork, childOfAttempt, chunkedToolResult, chunkedToolResultEntry, claimIdleWorktree, completionTitleDescription, confirmPooledWorktreeLease, createLoadedAskUserQuestionToolDefinition, createToolNameMatcher, defaultResumePreflightIo, discardPooledWorktree, evictIdleWorktrees, executeNativePty, executeSupervisedCommand, expandSkillCommand, extensionsCanDecideProjectTrust, getExistingGitInstallPathAsync, getManagedNpmInstallPath, gitText, holdRestoredWorktree, holdsSessionSnapshotRef, hostPlatform, inheritWorkspace, isHeadOnlyAdvance, isMcpToolName, isRecoverableRestoreFailure, keepSessionSnapshotCommit, loadSnapshotPathPolicy, locateCheckout, lookupOwnedTask, nextCaptureTick, parseBlueprint, parseSource, pendingLfsDownload, pooledWorktreeHolder, readRepositoryConfig, recordPooledWorktreeState, recordWorktreeCapture, releaseRestoredWorktree, releaseSessionSnapshotRefs, removeRestoredWorktree, require_dist, restoreBestWorktree, restoreDegradedWorktree, restoreDegradedWorktreeAt, restoreWorktree, restoreWorktreeAt, retireSessionSnapshotRefs, runGit, selectDocument, setAsideWorktree, snapshotRestoreWarnings, unrestoredRecord, validateBashWait, validateTaskHeartbeatMs, verifyWorktree, waitForSupervisedCommand, waitingReleasedTools, withScratchDirectory, withoutSupersededAttempts, worktreeSetAside, writeWorkingTree } from "./startup-0-5-DNS6FYS7.js";
13
+ import { OutputAccumulator, SNAPSHOT_COLLECTION_SESSION_DELAY_MS, TOOL_BLOCK_LIMITS, ToolBlockRecords, applyModelsJson, cancelledBuilds, canonicalPaths, canonicalizeWorktreePathAsync, collapseToolBlockLines, defaultWorktreeSnapshotStoreDir, migrateAuthJsonConfigValues, migrateAuthJsonConfigValuesAsync, migrateModelsJsonConfigValues, migrateModelsJsonConfigValuesAsync, renderDiff, runCanonicalSteps, runCanonicalStepsAsync, sameRemote, scheduleSnapshotCollection, settleOtherBuilds, taskTranscriptPageWithCuts, withBuildLocks } from "./startup-0-4-6XXL4JMZ.js";
14
14
  import { SETTINGS_DEFAULTS } from "./p2-common-YLSYXMDQ.js";
15
15
  import { adoptPrewarmedEngine, engineLaunch, waitForPrewarmedEngineReady } from "./p1a-prewarm-XIU57JHF.js";
16
16
  import { parseHttpIdleTimeoutMs } from "./http-YFAPTIZD.js";
@@ -39,6 +39,7 @@ import lockfile from "proper-lockfile";
39
39
  import { completeSimple } from "@bastani/atomic-ai/compat";
40
40
  import { randomUUID as randomUUID$1 } from "crypto";
41
41
  import { createInterface } from "node:readline";
42
+ import { SessionConflictError, SessionExistsError } from "../core/storage/session/errors.js";
42
43
  import { DEGRADED_RESTORE_RETENTION_DAYS, snapshotBlobHashes } from "../core/worktree-snapshot/blob-store.js";
43
44
  import { StorageProvider } from "../core/storage/provider.js";
44
45
  import { isProxy } from "node:util/types";
@@ -24911,24 +24912,17 @@ function collectEntriesForBranchSummary(session, oldLeafId, targetId) {
24911
24912
  entries: [],
24912
24913
  commonAncestorId: null
24913
24914
  };
24914
- const oldPath = new Set(session.getBranch(oldLeafId).map((e) => e.id));
24915
+ const oldBranch = session.getBranch(oldLeafId);
24916
+ const oldPath = new Set(oldBranch.map((e) => e.id));
24915
24917
  const targetPath = session.getBranch(targetId);
24916
24918
  let commonAncestorId = null;
24917
24919
  for (let i = targetPath.length - 1; i >= 0; i--) if (oldPath.has(targetPath[i].id)) {
24918
24920
  commonAncestorId = targetPath[i].id;
24919
24921
  break;
24920
24922
  }
24921
- const entries = [];
24922
- let current = oldLeafId;
24923
- while (current && current !== commonAncestorId) {
24924
- const entry = session.getEntry(current);
24925
- if (!entry) break;
24926
- entries.push(entry);
24927
- current = entry.parentId;
24928
- }
24929
- entries.reverse();
24923
+ const common = oldBranch.findIndex((entry) => entry.id === commonAncestorId);
24930
24924
  return {
24931
- entries,
24925
+ entries: oldBranch.slice(common + 1),
24932
24926
  commonAncestorId
24933
24927
  };
24934
24928
  }
@@ -25485,12 +25479,13 @@ async function navigateTree(targetId, options = {}) {
25485
25479
  let newLeafId;
25486
25480
  let editorText;
25487
25481
  if (targetEntry.type === "message" && targetEntry.message.role === "user") {
25488
- newLeafId = targetEntry.parentId;
25482
+ newLeafId = await this.sessionManager.readParentId(targetEntry);
25489
25483
  editorText = this._extractUserMessageText(targetEntry.message.content);
25490
25484
  } else if (targetEntry.type === "custom_message") {
25491
- newLeafId = targetEntry.parentId;
25485
+ newLeafId = await this.sessionManager.readParentId(targetEntry);
25492
25486
  editorText = typeof targetEntry.content === "string" ? targetEntry.content : targetEntry.content.filter((c) => c.type === "text").map((c) => c.text).join("");
25493
25487
  } else newLeafId = targetId;
25488
+ assertSessionOpen(this);
25494
25489
  let summaryEntry;
25495
25490
  if (summaryText) {
25496
25491
  const summaryId = await this.sessionManager.branchWithSummary(newLeafId, summaryText, summaryDetails, fromExtension, summaryUsage, oldLeafId ?? "root");
@@ -26003,7 +25998,15 @@ function migrateAuthToAuthJson() {
26003
25998
  } catch {}
26004
25999
  if (Object.keys(migrated).length > 0) {
26005
26000
  mkdirSync(dirname(authPath), { recursive: true });
26006
- writeFileSync(authPath, JSON.stringify(migrated, null, 2), { mode: 384 });
26001
+ try {
26002
+ writeFileSync(authPath, JSON.stringify(migrated, null, 2), {
26003
+ mode: 384,
26004
+ flag: "wx"
26005
+ });
26006
+ } catch (error) {
26007
+ if (error.code === "EEXIST") return [];
26008
+ throw error;
26009
+ }
26007
26010
  }
26008
26011
  return providers;
26009
26012
  }
@@ -26043,7 +26046,15 @@ async function migrateAuthToAuthJsonAsync() {
26043
26046
  } catch {}
26044
26047
  if (Object.keys(migrated).length > 0) {
26045
26048
  await mkdir$2(dirname(authPath), { recursive: true });
26046
- await writeFile$1(authPath, JSON.stringify(migrated, null, 2), { mode: 384 });
26049
+ try {
26050
+ await writeFile$1(authPath, JSON.stringify(migrated, null, 2), {
26051
+ mode: 384,
26052
+ flag: "wx"
26053
+ });
26054
+ } catch (error) {
26055
+ if (error.code === "EEXIST") return [];
26056
+ throw error;
26057
+ }
26047
26058
  }
26048
26059
  return providers;
26049
26060
  }
@@ -26887,6 +26898,16 @@ var RpcClientApi = class {
26887
26898
  async clone() {
26888
26899
  return this.data(await this.request({ type: "clone" }));
26889
26900
  }
26901
+ async importFromJsonl(inputPath, cwdOverride) {
26902
+ return this.data(await this.request({
26903
+ type: "import_session",
26904
+ inputPath,
26905
+ cwdOverride
26906
+ }));
26907
+ }
26908
+ async reload() {
26909
+ this.data(await this.request({ type: "reload" }));
26910
+ }
26890
26911
  async getForkMessages() {
26891
26912
  return this.data(await this.request({ type: "get_fork_messages" })).messages;
26892
26913
  }
@@ -27818,8 +27839,8 @@ var RpcClient = class extends RpcClientApi {
27818
27839
  await this.start(permit);
27819
27840
  await this.waitForInteractiveEngineBound();
27820
27841
  }
27821
- async requestInternal(command) {
27822
- return this.data(await this.request(command));
27842
+ async requestInternal(command, onRequestId) {
27843
+ return this.data(await this.request(command, onRequestId));
27823
27844
  }
27824
27845
  userBashWithUpdates(command, onUpdate, options) {
27825
27846
  return runUserBashWithUpdates(this, command, onUpdate, options, (body, onId) => this.request(body, onId));
@@ -28195,6 +28216,310 @@ async function prewarmInteractiveEngineRpcMode() {
28195
28216
  await import("../modes/rpc/rpc-mode.js").catch((error) => __atomicOnDemandFailed(error, "this feature"));
28196
28217
  } catch {}
28197
28218
  }
28219
+ // dist/core/session-transfer.js
28220
+ /**
28221
+ * Sessions as format-4 JSONL files for `atomic storage export` and `import` (#4720): each session is written to
28222
+ * `<dir>/<sessionId>.jsonl` in the format JSONL session storage keeps and `atomic --import` reads, with the tool outputs
28223
+ * and worktree snapshot content it references carried inline as `/export <file>.jsonl` carries them, and read back with
28224
+ * the same parser.
28225
+ */
28226
+ function storeLocation(store) {
28227
+ return store.descriptor.location;
28228
+ }
28229
+ function newestFirst(left, right) {
28230
+ const modified = Date.parse(right.modifiedAt) - Date.parse(left.modifiedAt);
28231
+ if (modified !== 0) return modified;
28232
+ return left.id < right.id ? -1 : left.id > right.id ? 1 : 0;
28233
+ }
28234
+ /**
28235
+ * A session's export file, line by line: the header, then every entry in append order, with the snapshot records,
28236
+ * snapshot content and tool outputs the store holds carried inline, each once. Tool outputs are read one at a time.
28237
+ */
28238
+ async function* sessionExportLines(store, snapshot) {
28239
+ yield JSON.stringify({
28240
+ type: "session",
28241
+ ...snapshot.header
28242
+ });
28243
+ const records = /* @__PURE__ */ new Map();
28244
+ for (const entry of snapshot.entries) if (entry.type === "worktree_snapshot" && entry.snapshot !== void 0 && !records.has(entry.snapshotId)) records.set(entry.snapshotId, entry.snapshot);
28245
+ const entries = await inlineSnapshotBlobs(snapshot.entries, records, sessionSnapshotBlobs(store.snapshotBlobs, snapshot.entries));
28246
+ for await (const entry of inlineToolOutput(entries, store, snapshot.header.id)) yield JSON.stringify(entry);
28247
+ }
28248
+ /**
28249
+ * Exports the sessions of `store`, every project's and internal ones included, to
28250
+ * `<directory>/<sessionId>.jsonl`, one file per session. Each file is written whole or not at all; the same session
28251
+ * gives the same bytes, and a file that already holds them is not rewritten.
28252
+ */
28253
+ async function exportSessions(store, directory, options = {}) {
28254
+ let summaries = [];
28255
+ for await (const summary of store.list({ includeInternal: true })) summaries.push(summary);
28256
+ if (options.since !== void 0) {
28257
+ const since = options.since;
28258
+ summaries = summaries.filter((summary) => Date.parse(summary.modifiedAt) >= since);
28259
+ }
28260
+ summaries.sort(newestFirst);
28261
+ if (options.limit !== void 0) summaries = summaries.slice(0, options.limit);
28262
+ await mkdir(directory, { recursive: true });
28263
+ const written = [];
28264
+ const unchanged = [];
28265
+ for (const summary of summaries) {
28266
+ const snapshot = await store.load(summary.id);
28267
+ (await writeLinesAtomically(transferFile(directory, summary.id), sessionExportLines(store, snapshot)) === "written" ? written : unchanged).push(summary.id);
28268
+ }
28269
+ return {
28270
+ written,
28271
+ unchanged
28272
+ };
28273
+ }
28274
+ /** Checks one export file with the parser JSONL session storage and `atomic --import` use. */
28275
+ async function parseSessionFile(source, { file, lines }) {
28276
+ const fail = (line, reason, cause) => {
28277
+ throw new StorageTransferError({
28278
+ path: file,
28279
+ ...line === void 0 ? {} : { line },
28280
+ reason,
28281
+ cause
28282
+ });
28283
+ };
28284
+ if (lines.length === 0) return fail(1, "is empty; expected a session header");
28285
+ const parsed = [];
28286
+ for (const { line, text } of lines) {
28287
+ if (text.trim() === "") fail(line, "is empty");
28288
+ let value;
28289
+ try {
28290
+ value = JSON.parse(text);
28291
+ } catch (error) {
28292
+ return fail(line, `is not valid JSON (${error.message})`);
28293
+ }
28294
+ if (typeof value !== "object" || value === null || Array.isArray(value)) fail(line, "is not a JSON object");
28295
+ parsed.push(value);
28296
+ }
28297
+ const first = parsed[0];
28298
+ if (first.type !== "session") fail(1, `is not an Atomic session export: its type is ${JSON.stringify(first.type ?? null)}, not "session"`);
28299
+ if (!isCurrentSessionHeader(first)) fail(1, `has unsupported session format version ${JSON.stringify(first.version ?? null)}; this Atomic reads version 4`);
28300
+ let loaded;
28301
+ try {
28302
+ loaded = await source.loadFile(file);
28303
+ } catch (error) {
28304
+ return fail(void 0, `is not a valid session: ${error.message}`, error);
28305
+ }
28306
+ let prepared;
28307
+ try {
28308
+ prepared = prepareImportedSessionParents(loaded.header.id, loaded.entries);
28309
+ } catch (error) {
28310
+ return fail(void 0, error.message, error);
28311
+ }
28312
+ try {
28313
+ const { entries, blobs } = takeInlineToolOutput(prepared.entries, loaded.header.id);
28314
+ await adoptInlineSnapshotBlobs(entries, void 0);
28315
+ return {
28316
+ file,
28317
+ header: loaded.header,
28318
+ entries,
28319
+ original: loaded.entries,
28320
+ blobs,
28321
+ repaired: prepared.repaired
28322
+ };
28323
+ } catch (error) {
28324
+ return fail(void 0, `carries content that does not match its hash: ${error.message}`);
28325
+ }
28326
+ }
28327
+ /**
28328
+ * Reads and checks every `*.jsonl` session export file in `directory`; nothing is written. A directory that does not
28329
+ * exist holds no sessions. Throws `StorageTransferError` with the file, and the line where there is one, for the first
28330
+ * file that is not a valid format-4 session.
28331
+ */
28332
+ async function readSessionExports(directory) {
28333
+ const files = await readTransferDirectory(directory);
28334
+ if (files.length === 0) return [];
28335
+ const source = await JsonlSessionStore.open(directory, {
28336
+ exactDirectory: true,
28337
+ scanExisting: false
28338
+ });
28339
+ try {
28340
+ const parsed = [];
28341
+ const seen = /* @__PURE__ */ new Map();
28342
+ for (const lines of files) {
28343
+ const session = await parseSessionFile(source, lines);
28344
+ const earlier = seen.get(session.header.id);
28345
+ if (earlier !== void 0) throw new StorageTransferError({
28346
+ path: session.file,
28347
+ line: 1,
28348
+ id: session.header.id,
28349
+ reason: `session ${session.header.id} is also in ${earlier}; keep one file per session`
28350
+ });
28351
+ seen.set(session.header.id, session.file);
28352
+ parsed.push(session);
28353
+ }
28354
+ return parsed;
28355
+ } finally {
28356
+ await source.close();
28357
+ }
28358
+ }
28359
+ function pendingIds(sessions) {
28360
+ return sessions.map((planned) => planned.session.header.id);
28361
+ }
28362
+ /**
28363
+ * The fields import compares between an entry of a file and the stored entry at the same position: its ID, its
28364
+ * parent and its type, as `--import` and session storage identify entries. Everything else may differ, so a file a
28365
+ * tool redacted strings in imports as the session it came from.
28366
+ */
28367
+ function sameEntry(stored, exported) {
28368
+ return stored.id === exported.id && stored.parentId === exported.parentId && stored.type === exported.type;
28369
+ }
28370
+ /**
28371
+ * Compares every session of `sessions` with the store's copy, writing nothing. A session is identified by its header
28372
+ * ID, as `atomic --import` identifies it: one the store lacks is added; one whose entries the store holds the first
28373
+ * part of gets the rest; one the store holds every entry of is left alone. A session created at another time, or one
28374
+ * whose entries continued differently in the store, fails with the file and line.
28375
+ */
28376
+ async function planSessionImport(store, sessions) {
28377
+ const planned = [];
28378
+ const location = storeLocation(store);
28379
+ for (const session of sessions) {
28380
+ const { header, entries, file } = session;
28381
+ const fail = (line, reason) => {
28382
+ throw new StorageTransferError({
28383
+ path: file,
28384
+ line,
28385
+ id: header.id,
28386
+ reason
28387
+ });
28388
+ };
28389
+ if (await store.readHeader(header.id) === void 0) {
28390
+ assertBlobs(store, session);
28391
+ planned.push({
28392
+ session,
28393
+ action: "add",
28394
+ storedEntries: 0,
28395
+ storedSeq: 0
28396
+ });
28397
+ continue;
28398
+ }
28399
+ const stored = await store.load(header.id);
28400
+ if (stored.header.createdAt !== header.createdAt) fail(1, `session ${header.id} in ${location} was created at another time; it is a different session with the same ID`);
28401
+ const shared = Math.min(stored.entries.length, entries.length);
28402
+ const storedRepair = prepareImportedSessionParents(header.id, stored.entries);
28403
+ let mustRepair = storedRepair.repaired.length > 0;
28404
+ for (let index = 0; index < shared; index++) {
28405
+ if (sameEntry(storedRepair.entries[index], entries[index])) continue;
28406
+ if (sameEntry(stored.entries[index], session.original[index])) {
28407
+ mustRepair = true;
28408
+ continue;
28409
+ }
28410
+ fail(index + 2, `entry ${index + 1} differs from entry ${index + 1} of session ${header.id} in ${location}: the session continued differently there`);
28411
+ }
28412
+ const action = mustRepair ? "repair" : entries.length > stored.entries.length ? "update" : "unchanged";
28413
+ const imported = mustRepair ? {
28414
+ ...session,
28415
+ header: stored.header,
28416
+ entries: [...storedRepair.entries.map((entry, index) => index < shared && !sameEntry(entry, entries[index]) ? {
28417
+ ...entry,
28418
+ id: entries[index].id,
28419
+ parentId: entries[index].parentId
28420
+ } : entry), ...entries.slice(shared)],
28421
+ repaired: [...session.repaired.map((repair) => ({
28422
+ ...repair,
28423
+ source: "file"
28424
+ })), ...storedRepair.repaired.map((repair) => ({
28425
+ ...repair,
28426
+ source: "storage"
28427
+ }))]
28428
+ } : session;
28429
+ if (action !== "unchanged") assertBlobs(store, imported);
28430
+ planned.push({
28431
+ session: imported,
28432
+ action,
28433
+ storedEntries: stored.entries.length,
28434
+ storedSeq: stored.lastSeq,
28435
+ storedEpoch: stored.epoch ?? chatEpoch(stored.header)
28436
+ });
28437
+ }
28438
+ return {
28439
+ store,
28440
+ sessions: planned
28441
+ };
28442
+ }
28443
+ function assertBlobs(store, session) {
28444
+ try {
28445
+ assertSessionBlobStore(store, session.header.id, session.blobs.length);
28446
+ } catch (error) {
28447
+ throw new StorageTransferError({
28448
+ path: session.file,
28449
+ id: session.header.id,
28450
+ reason: error.message,
28451
+ cause: error
28452
+ });
28453
+ }
28454
+ }
28455
+ /**
28456
+ * Writes what `plan` decided, one session at a time. Each write expects the store to hold exactly what the plan
28457
+ * compared: a session another process created or added entries to since fails with the file, and nothing of it is
28458
+ * written. Session storage has no lock an import can hold across sessions, so when a write fails after earlier writes,
28459
+ * `StorageImportIncompleteError` names what was written and what was not; importing again writes only what is missing. A session the store already holds in full
28460
+ * gets the tool outputs of the file it lacks, so a rerun also finishes a session whose outputs an interrupted import
28461
+ * did not store.
28462
+ */
28463
+ async function applySessionImport(plan) {
28464
+ const { store } = plan;
28465
+ const report = {
28466
+ added: [],
28467
+ updated: [],
28468
+ unchanged: []
28469
+ };
28470
+ const pending = plan.sessions.filter((planned) => planned.action !== "unchanged");
28471
+ /** `error`, naming what this import wrote before it when it wrote anything, and the sessions it did not write. */
28472
+ const failure = (error, notWritten) => {
28473
+ const sessionsWritten = [...report.added, ...report.updated];
28474
+ if (sessionsWritten.length === 0) return error;
28475
+ return new StorageImportIncompleteError(error, {
28476
+ written: { sessions: sessionsWritten },
28477
+ notWritten: { sessions: notWritten }
28478
+ });
28479
+ };
28480
+ for (const planned of plan.sessions) {
28481
+ if (planned.action !== "unchanged") continue;
28482
+ const { header, blobs } = planned.session;
28483
+ try {
28484
+ for (const blob of blobs) if (await store.getBlob?.(header.id, blob.hash) === void 0) await store.putBlob?.(header.id, blob.read());
28485
+ } catch (caught) {
28486
+ throw failure(caught, [header.id, ...pendingIds(pending)]);
28487
+ }
28488
+ report.unchanged.push(header.id);
28489
+ }
28490
+ for (const [index, planned] of pending.entries()) {
28491
+ const { header, file, blobs } = planned.session;
28492
+ try {
28493
+ const entries = await adoptInlineSnapshotBlobs(planned.session.entries, store.snapshotBlobs);
28494
+ if (planned.action === "add") {
28495
+ await store.create(header, entries);
28496
+ await storeSessionBlobs(store, header.id, blobs);
28497
+ } else {
28498
+ for (const blob of blobs) await store.putBlob(header.id, blob.read());
28499
+ const options = {
28500
+ expectSeq: planned.storedSeq,
28501
+ ...planned.storedEpoch === void 0 ? {} : { epoch: planned.storedEpoch }
28502
+ };
28503
+ if (planned.action === "repair") await store.replace(header.id, header, entries, options);
28504
+ else await store.append(header.id, entries.slice(planned.storedEntries), options);
28505
+ }
28506
+ } catch (caught) {
28507
+ throw failure(caught instanceof SessionConflictError || caught instanceof SessionExistsError ? new StorageTransferError({
28508
+ path: file,
28509
+ line: 1,
28510
+ id: header.id,
28511
+ reason: `session ${header.id} changed in ${storeLocation(store)} after the import compared it (another process wrote to it); it was not imported`,
28512
+ cause: caught
28513
+ }) : caught, pendingIds(pending.slice(index)));
28514
+ }
28515
+ (planned.action === "add" ? report.added : report.updated).push(header.id);
28516
+ }
28517
+ const repaired = plan.sessions.flatMap(({ session }) => session.repaired);
28518
+ return {
28519
+ ...report,
28520
+ ...repaired.length === 0 ? {} : { repaired }
28521
+ };
28522
+ }
28198
28523
  // dist/core/tools/artifacts.js
28199
28524
  /**
28200
28525
  * Session artifact storage, mirrored from oh-my-pi's
@@ -28271,16 +28596,16 @@ function getArtifactManager(artifactsDir) {
28271
28596
  }
28272
28597
  return manager;
28273
28598
  }
28274
- export { ACTIONS_GITHUB_BASE_URL_ENV, BASH_SHELL_PRESENTATION, BLUEPRINT_FULL_BUILD_MAX_AGE_MS, BLUEPRINT_STEP_TIMEOUT_MS, DEGRADED_RESTORE_RETENTION_DAYS, ENGINE_SESSION_STORAGE_FLAG, ENGINE_SHUTDOWN_GRACE_MS, EVENT_REPORT_MESSAGE_TYPE, EVENT_SUBSCRIPTION_CHILD_ENTRY_TYPE, EVENT_SUBSCRIPTION_ENTRY_TYPE, EVENT_SUBSCRIPTION_PROCESSED_ENTRY_TYPE, FileSettingsStorage, FooterDataProvider, HistoryTaskRegistry, InMemorySettingsStorage, RpcClient, SETUP_COMMAND_ALIAS, SUBSCRIPTION_REPORT_TOOL_NAME, SessionWorktreeSnapshotRecorder, SettingsFileChangedError, SettingsManager, adoptInlineSnapshotBlobs, agentPanelExtensionItems, agentPanelItems, agentPanelSourceHubOf, agentPanelSourcesGeneration, agentPanelTaskId, agentSessionSummaryMethods, agentSessionTreeMethods, answerAgentPanelItem, appendBoundedStderr, applyReadLineSelection, applyToolModifiers, bashToolSystemPromptContribution, bindTaskTranscriptFragments, blueprintNotices, blueprintRepository, boundExtensionRuntimes, buildInteractiveEngineArgs, builtinToolBlockPresentation, canIsolateSessionStore, cancelSessionSubscriptions, checkoutsNeedingRebuild, collectEntriesForBranchSummary, compareWorktreeSnapshot, composeInternalRouters, continueSessionWhereItWorked, copyPanelItemStableKey, createBashTool, createBashToolDefinition, createCodingTools, createEditTool, createEditToolDefinition, createExtensionAPI, createExtensionRuntime, createFindTool, createFindToolDefinition, createHistoryRouter, createKillTool, createKillToolDefinition, createLoadedToolDefinition, createLocalBashOperations, createLocalPowerShellOperations, createLsTool, createLsToolDefinition, createPowerShellTool, createPowerShellToolDefinition, createReadOnlyTools, createReadTool, createReadToolDefinition, createSearchTool, createSearchToolDefinition, createSubscriberReportTool, createToolDefinitionsFor, createWriteTool, createWriteToolDefinition, currentWorktreeRestoreNotices, currentWorktreeRootMappings, currentWorktreeSnapshots, decodeReadableUrl, defaultToolSelectionFor, degradedRestorePin, deleteSessionWithSnapshotRefs, describeBlueprints, describeExportedSnapshots, describeLastCapture, describeSnapshotExport, describeWorktreeRestoreStatus, describeWorktreeSnapshot, discardDegradedRestore, dismissedAgentPanelItems, drainExtensionAPIWork, editToolSystemPromptContribution, extractDocumentMarkdown, findToolSystemPromptContribution, findUnansweredToolCall, formatDegradedRestoreNotice, formatEventReport, formatToolBlockElapsed, formatUnrestoredNotice, formatWorktreeRestoreNotice, formatWorktreeRestoreWarning, generateBranchSummary, generateDiffString, generateUnifiedPatch, getArtifactManager, getEngineSessionStorage, hasSubagentCaptures, hostStoragePackagesRegistered, inheritChildSessionOptionsWithDefaults, inheritedRemotes, inlineSnapshotBlobs, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, isDocumentPath, isInside$1 as isInside, isInterruptedPanelTask, isPlainRuntimeMetadataCommand, latestSessionSnapshot, latestSessionSnapshotAsync, launchedTaskViewSource, lazyTaskPanelItem, liveTaskRowOrigin, loadProjectContextFiles, loadProjectContextFilesAsync, lsToolSystemPromptContribution, mapPathForCwd, mapPathForCwdAsync, mapRestoredPath, mapRestoredPathAsync, markInterruptedPanelTask, materializePanelItem, modelHasReasoning, needsRebuild, notifyAgentPanelChanged, notifyAgentPanelSourceHubRebound, onOwnerTaskAction, openAgentPanelItem, openSessionInWorktree, ownerTaskViewSource, panelItemStableKey, parentHistoryNotices, parseActionReference, pathExists, plainNoticeBlock, prepareBranchEntries, prepareInitialMessage, prepareSessionResume, prewarmHostDefaultModelApi, prewarmInteractiveEngineRpcMode, projectSettingsChooseSessionStorage, promptAnswerOptionsOf, readTaskDetailForView, readTaskPageForChat, readTaskPageForView, readToolSystemPromptContribution, recordBlueprintContext, recordRestoredWorktreeContext, registerHostStoragePackages, registerHostStoragePackagesAsync, releaseSessionWorktrees, removeSavedModelRoutingSettings, removeSavedModelRoutingSettingsAsync, resolveAppMode, resolveCliPaths, resolveExcludedToolsForAppMode, resolveExistingPromptSourcePath, resolveExistingPromptSourcePaths, resolvePackageStorageAdapter, resolvePromptInput, resolveSessionStore, resumeSessionWorktree, resumeStoreDir, retainTaskWindowReader, retireExtensionAPI, runAction, runBlueprintBuild, runExtensionAPICleanup, runMigrations, runMigrationsAsync, runResourceRegistrationBatch, sampleAgentPanelSources, savedBoundaryCursor, savedProjectTrust, savedProjectTrustAsync, sealExtensionAPI, searchToolSystemPromptContribution, seedEventPrompt, selectSessionSetting, selectSessionStorage, selectSessionStorageWithSettings, selectSessionStorageWithSettingsAsync, serializeConversation, sessionManagerContinuesIn, sessionManagerRunsInRecordedCheckout, sessionResumeOptions, sessionSnapshotBlobs, sessionStorageSettingsDiffer, setUpResumedBlueprints, settingsFileTarget, settingsFileTargetAsync, shellCommandPrefixFor, shortTaskTitle, shouldStartRpcCatalogRefresh, showDeprecationWarnings, snapshotBlobInliner, sourceError, stopAgentPanelItem, subscribeAgentPanel, subscribeAgentPanelExtensions, subscribeSession, takeEngineSessionStorageArg, taskCursorsAround, taskPanelItem, taskPanelItems, taskPanelModel, taskPanelRole, taskPanelState, taskRunGeneration, taskTranscriptFile, taskTranscriptFragments, taskTranscriptUnsavedAnswer, toPrintOutputMode, toolsWithReport, withTaskTranscriptArchive, withWorktreeRestoreNotices, withWorktreeRootMappings, worktreeNeedsRestore, worktreeRestoreNotices, writeSettingsFile, writeSettingsFileAsync, writeToolSystemPromptContribution };
28599
+ export { ACTIONS_GITHUB_BASE_URL_ENV, BASH_SHELL_PRESENTATION, BLUEPRINT_FULL_BUILD_MAX_AGE_MS, BLUEPRINT_STEP_TIMEOUT_MS, DEGRADED_RESTORE_RETENTION_DAYS, ENGINE_SESSION_STORAGE_FLAG, ENGINE_SHUTDOWN_GRACE_MS, EVENT_REPORT_MESSAGE_TYPE, EVENT_SUBSCRIPTION_CHILD_ENTRY_TYPE, EVENT_SUBSCRIPTION_ENTRY_TYPE, EVENT_SUBSCRIPTION_PROCESSED_ENTRY_TYPE, FileSettingsStorage, FooterDataProvider, HistoryTaskRegistry, InMemorySettingsStorage, RpcClient, SETUP_COMMAND_ALIAS, SUBSCRIPTION_REPORT_TOOL_NAME, SessionWorktreeSnapshotRecorder, SettingsFileChangedError, SettingsManager, adoptInlineSnapshotBlobs, agentPanelExtensionItems, agentPanelItems, agentPanelSourceHubOf, agentPanelSourcesGeneration, agentPanelTaskId, agentSessionSummaryMethods, agentSessionTreeMethods, answerAgentPanelItem, appendBoundedStderr, applyReadLineSelection, applySessionImport, applyToolModifiers, bashToolSystemPromptContribution, bindTaskTranscriptFragments, blueprintNotices, blueprintRepository, boundExtensionRuntimes, buildInteractiveEngineArgs, builtinToolBlockPresentation, canIsolateSessionStore, cancelSessionSubscriptions, checkoutsNeedingRebuild, collectEntriesForBranchSummary, compareWorktreeSnapshot, composeInternalRouters, continueSessionWhereItWorked, copyPanelItemStableKey, createBashTool, createBashToolDefinition, createCodingTools, createEditTool, createEditToolDefinition, createExtensionAPI, createExtensionRuntime, createFindTool, createFindToolDefinition, createHistoryRouter, createKillTool, createKillToolDefinition, createLoadedToolDefinition, createLocalBashOperations, createLocalPowerShellOperations, createLsTool, createLsToolDefinition, createPowerShellTool, createPowerShellToolDefinition, createReadOnlyTools, createReadTool, createReadToolDefinition, createSearchTool, createSearchToolDefinition, createSubscriberReportTool, createToolDefinitionsFor, createWriteTool, createWriteToolDefinition, currentWorktreeRestoreNotices, currentWorktreeRootMappings, currentWorktreeSnapshots, decodeReadableUrl, defaultToolSelectionFor, degradedRestorePin, deleteSessionWithSnapshotRefs, describeBlueprints, describeExportedSnapshots, describeLastCapture, describeSnapshotExport, describeWorktreeRestoreStatus, describeWorktreeSnapshot, discardDegradedRestore, dismissedAgentPanelItems, drainExtensionAPIWork, editToolSystemPromptContribution, exportSessions, extractDocumentMarkdown, findToolSystemPromptContribution, findUnansweredToolCall, formatDegradedRestoreNotice, formatEventReport, formatToolBlockElapsed, formatUnrestoredNotice, formatWorktreeRestoreNotice, formatWorktreeRestoreWarning, generateBranchSummary, generateDiffString, generateUnifiedPatch, getArtifactManager, getEngineSessionStorage, hasSubagentCaptures, hostStoragePackagesRegistered, inheritChildSessionOptionsWithDefaults, inheritedRemotes, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, isDocumentPath, isInside$1 as isInside, isInterruptedPanelTask, isPlainRuntimeMetadataCommand, latestSessionSnapshot, latestSessionSnapshotAsync, launchedTaskViewSource, lazyTaskPanelItem, liveTaskRowOrigin, loadProjectContextFiles, loadProjectContextFilesAsync, lsToolSystemPromptContribution, mapPathForCwd, mapPathForCwdAsync, mapRestoredPath, mapRestoredPathAsync, markInterruptedPanelTask, materializePanelItem, modelHasReasoning, needsRebuild, notifyAgentPanelChanged, notifyAgentPanelSourceHubRebound, onOwnerTaskAction, openAgentPanelItem, openSessionInWorktree, ownerTaskViewSource, panelItemStableKey, parentHistoryNotices, parseActionReference, pathExists, plainNoticeBlock, planSessionImport, prepareBranchEntries, prepareInitialMessage, prepareSessionResume, prewarmHostDefaultModelApi, prewarmInteractiveEngineRpcMode, projectSettingsChooseSessionStorage, promptAnswerOptionsOf, readSessionExports, readTaskDetailForView, readTaskPageForChat, readTaskPageForView, readToolSystemPromptContribution, recordBlueprintContext, recordRestoredWorktreeContext, registerHostStoragePackages, registerHostStoragePackagesAsync, releaseSessionWorktrees, removeSavedModelRoutingSettings, removeSavedModelRoutingSettingsAsync, resolveAppMode, resolveCliPaths, resolveExcludedToolsForAppMode, resolveExistingPromptSourcePath, resolveExistingPromptSourcePaths, resolvePackageStorageAdapter, resolvePromptInput, resolveSessionStore, resumeSessionWorktree, resumeStoreDir, retainTaskWindowReader, retireExtensionAPI, runAction, runBlueprintBuild, runExtensionAPICleanup, runMigrations, runMigrationsAsync, runResourceRegistrationBatch, sampleAgentPanelSources, savedBoundaryCursor, savedProjectTrust, savedProjectTrustAsync, sealExtensionAPI, searchToolSystemPromptContribution, seedEventPrompt, selectSessionSetting, selectSessionStorage, selectSessionStorageWithSettings, selectSessionStorageWithSettingsAsync, serializeConversation, sessionManagerContinuesIn, sessionManagerRunsInRecordedCheckout, sessionResumeOptions, sessionSnapshotBlobs, sessionStorageSettingsDiffer, setUpResumedBlueprints, settingsFileTarget, settingsFileTargetAsync, shellCommandPrefixFor, shortTaskTitle, shouldStartRpcCatalogRefresh, showDeprecationWarnings, snapshotBlobInliner, sourceError, stopAgentPanelItem, subscribeAgentPanel, subscribeAgentPanelExtensions, subscribeSession, takeEngineSessionStorageArg, taskCursorsAround, taskPanelItem, taskPanelItems, taskPanelModel, taskPanelRole, taskPanelState, taskRunGeneration, taskTranscriptFile, taskTranscriptFragments, taskTranscriptUnsavedAnswer, toPrintOutputMode, toolsWithReport, withTaskTranscriptArchive, withWorktreeRestoreNotices, withWorktreeRootMappings, worktreeNeedsRestore, worktreeRestoreNotices, writeSettingsFile, writeSettingsFileAsync, writeToolSystemPromptContribution };
28275
28600
 
28276
- //# sourceMappingURL=startup-8-1-QZMXUGHI.js.map
28601
+ //# sourceMappingURL=startup-8-1-VXBL37AI.js.map
28277
28602
  // __atomicOnDemandFailed: written by the build (scripts/in-place-update-gate.mjs). An import of this release's code on
28278
28603
  // demand that fails in a process an in-place update left running says to restart.
28279
28604
  function __atomicOnDemandFailed(error, feature) {
28280
28605
  return (async () => {
28281
28606
  const root = new URL("../", import.meta.url);
28282
28607
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
28283
- const key = `${root.href}#0.10.19`;
28608
+ const key = `${root.href}#0.10.20-alpha.2`;
28284
28609
  let release = releases.get(key);
28285
28610
  if (release === undefined) {
28286
28611
  const current = (async () => {
@@ -28308,7 +28633,7 @@ function __atomicOnDemandFailed(error, feature) {
28308
28633
  } catch {
28309
28634
  // No installation to read, as in a bundle of the package: the release the process runs decides.
28310
28635
  }
28311
- const updatedTo = typeof installed === "string" && installed !== "0.10.19" ? installed : running !== undefined && running.version !== "0.10.19" ? "0.10.19" : undefined;
28636
+ const updatedTo = typeof installed === "string" && installed !== "0.10.20-alpha.2" ? installed : running !== undefined && running.version !== "0.10.20-alpha.2" ? "0.10.20-alpha.2" : undefined;
28312
28637
  if (updatedTo === undefined) throw error;
28313
28638
  const application = typeof running?.name === "string" ? running.name : "atomic";
28314
28639
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {