@bastani/atomic 0.10.11-alpha.2 → 0.10.11-alpha.3

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 (432) hide show
  1. package/CHANGELOG.md +99 -0
  2. package/README.md +5 -8
  3. package/dist/_shared/dist-KOELCESV.js +2 -2
  4. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  5. package/dist/_shared/lib-4PES5P4V.js +2 -2
  6. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +6 -6
  7. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +5 -5
  8. package/dist/_shared/mode-shared-2QJSCUM6.js +6 -6
  9. package/dist/_shared/p0-cli-BB45ZQY6.js +46 -67
  10. package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -1
  11. package/dist/_shared/p1a-prewarm-XIU57JHF.js +7 -8
  12. package/dist/_shared/p1a-prewarm-XIU57JHF.js.map +1 -1
  13. package/dist/_shared/{p1b-elig-ENCUPKKJ.js → p1b-elig-TVB5CBLL.js} +14 -2
  14. package/dist/_shared/{p1b-elig-ENCUPKKJ.js.map → p1b-elig-TVB5CBLL.js.map} +1 -1
  15. package/dist/_shared/runtime-O4KCSG4C.js +3 -3
  16. package/dist/_shared/{sdk-IQMULKFU.js → sdk-B5LEWGGI.js} +340 -163
  17. package/dist/_shared/sdk-B5LEWGGI.js.map +1 -0
  18. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  19. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  20. package/dist/_shared/{startup-0-0-3IXNMFM2.js → startup-0-0-EZUKEP4Q.js} +48 -40
  21. package/dist/_shared/startup-0-0-EZUKEP4Q.js.map +1 -0
  22. package/dist/_shared/{startup-0-1-7T2IAE7J.js → startup-0-1-RTOHJFDJ.js} +195 -42
  23. package/dist/_shared/startup-0-1-RTOHJFDJ.js.map +1 -0
  24. package/dist/_shared/startup-0-2-5QHPCEON.js +33 -43
  25. package/dist/_shared/startup-0-2-5QHPCEON.js.map +1 -1
  26. package/dist/_shared/startup-0-3-4ZYBYQNM.js +5 -5
  27. package/dist/_shared/startup-0-4-ZMJV547D.js +12 -7
  28. package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -1
  29. package/dist/_shared/startup-0-5-YDW47QX6.js +7 -7
  30. package/dist/_shared/startup-0-5-YDW47QX6.js.map +1 -1
  31. package/dist/_shared/startup-10-0-TDQNBDDL.js +6 -6
  32. package/dist/_shared/startup-12-0-55AAXBJZ.js +2 -2
  33. package/dist/_shared/startup-14-0-MLX36RBG.js +4 -5
  34. package/dist/_shared/startup-14-0-MLX36RBG.js.map +1 -1
  35. package/dist/_shared/startup-15-0-YUKGAC63.js +4 -4
  36. package/dist/_shared/startup-15-1-4S7FLMNG.js +19 -27
  37. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  38. package/dist/_shared/startup-8-0-34CBHPZH.js +39 -23
  39. package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
  40. package/dist/_shared/{startup-8-1-X32CYSXB.js → startup-8-1-LZFXSD3Z.js} +90 -1176
  41. package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +1 -0
  42. package/dist/_shared/storage-command-7MGXLJGZ.js +186 -35
  43. package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
  44. package/dist/_shared/storage-status-K7PX2RXA.js +557 -0
  45. package/dist/_shared/storage-status-K7PX2RXA.js.map +1 -0
  46. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  47. package/dist/_shared/team-DOQKICG2.js +376 -0
  48. package/dist/_shared/team-DOQKICG2.js.map +1 -0
  49. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  50. package/dist/builtin/intercom/CHANGELOG.md +23 -0
  51. package/dist/builtin/intercom/README.md +2 -2
  52. package/dist/builtin/intercom/broker/broker.bundle.mjs +913 -289
  53. package/dist/builtin/intercom/broker/database-wake-up-bus.ts +243 -64
  54. package/dist/builtin/intercom/broker/multinode-router.ts +154 -22
  55. package/dist/builtin/intercom/broker/multinode-state-store.ts +30 -3
  56. package/dist/builtin/intercom/broker/open-broker-state.ts +14 -0
  57. package/dist/builtin/intercom/broker/sql-add-column.ts +29 -5
  58. package/dist/builtin/intercom/broker/sql-ended-child-queue-store.ts +3 -2
  59. package/dist/builtin/intercom/broker/sql-held-send-store.ts +2 -2
  60. package/dist/builtin/intercom/broker/sql-known-session-store.ts +43 -19
  61. package/dist/builtin/intercom/broker/sql-lease-store.ts +170 -74
  62. package/dist/builtin/intercom/broker/sql-outbox-store.ts +298 -47
  63. package/dist/builtin/intercom/broker/sql-pending-ask-store.ts +8 -5
  64. package/dist/builtin/intercom/broker/sql-released-ask-store.ts +12 -5
  65. package/dist/builtin/intercom/broker/sql-restoring-reservation-store.ts +24 -7
  66. package/dist/builtin/intercom/broker/sql-retention.ts +141 -0
  67. package/dist/builtin/intercom/broker/sql-schema.ts +136 -19
  68. package/dist/builtin/intercom/broker/sql-sent-message-authority.ts +74 -19
  69. package/dist/builtin/intercom/broker/wake-up-bus.ts +6 -0
  70. package/dist/builtin/intercom/index.bundle.mjs +2 -3
  71. package/dist/builtin/intercom/package.json +1 -1
  72. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  73. package/dist/builtin/mcp/package.json +1 -1
  74. package/dist/builtin/subagents/package.json +1 -1
  75. package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
  76. package/dist/builtin/web-access/index.bundle.mjs +2 -10
  77. package/dist/builtin/web-access/package.json +1 -1
  78. package/dist/bun/bundled-sqlite.js +41 -0
  79. package/dist/bun/bundled-sqlite.js.map +1 -0
  80. package/dist/cli/args.js +2 -2
  81. package/dist/cli/auth-cli.code.js +4 -4
  82. package/dist/cli/auth-cli.impl.js +3 -3
  83. package/dist/cli/auth-cli.js +3 -3
  84. package/dist/cli/blueprint-command.code.js +3 -3
  85. package/dist/cli/blueprint-command.impl.js +3 -3
  86. package/dist/cli/blueprint-command.js +3 -3
  87. package/dist/cli/intercom-command.code.js +3 -3
  88. package/dist/cli/intercom-command.code.js.map +1 -1
  89. package/dist/cli/intercom-command.impl.js +3 -3
  90. package/dist/cli/intercom-command.js +3 -3
  91. package/dist/cli/list-models.code.js +2 -2
  92. package/dist/cli/list-models.impl.js +3 -3
  93. package/dist/cli/list-models.js +3 -3
  94. package/dist/cli/session-picker.code.js +1 -1
  95. package/dist/cli/session-picker.impl.js +3 -3
  96. package/dist/cli/session-picker.js +3 -3
  97. package/dist/cli/startup-ui.code.js +1 -1
  98. package/dist/cli/startup-ui.impl.js +3 -3
  99. package/dist/cli/startup-ui.js +3 -3
  100. package/dist/cli/storage-command.impl.js +3 -3
  101. package/dist/cli/storage-command.js +3 -3
  102. package/dist/cli/storage-search-session.code.js +3 -3
  103. package/dist/cli/storage-search-session.impl.js +3 -3
  104. package/dist/cli/storage-search-session.js +3 -3
  105. package/dist/cli/team-command.code.js +19 -113
  106. package/dist/cli/team-command.code.js.map +1 -1
  107. package/dist/cli/team-command.impl.js +3 -3
  108. package/dist/cli/team-command.js +3 -3
  109. package/dist/cli.js +5 -18
  110. package/dist/cli.js.map +1 -1
  111. package/dist/core/agent-rehydrate-errors.d.ts +4 -9
  112. package/dist/core/compaction/compactor.d.ts +3 -3
  113. package/dist/core/debug.code.js +1 -1
  114. package/dist/core/debug.impl.js +3 -3
  115. package/dist/core/debug.js +3 -3
  116. package/dist/core/export-html/card-projection.impl.js +3 -3
  117. package/dist/core/export-html/card-projection.js +3 -3
  118. package/dist/core/export-html/index.code.js +2 -2
  119. package/dist/core/export-html/index.impl.js +3 -3
  120. package/dist/core/export-html/index.js +3 -3
  121. package/dist/core/export-html/json-spans.impl.js +3 -3
  122. package/dist/core/export-html/json-spans.js +3 -3
  123. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  124. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  125. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  126. package/dist/core/export-html/tool-renderer.js +3 -3
  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 +1 -1
  135. package/dist/core/extensions/runner-context.js +2 -2
  136. package/dist/core/intercom-broker-control-host.code.js +2 -2
  137. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  138. package/dist/core/intercom-broker-control-host.js +3 -3
  139. package/dist/core/intercom-broker-control.code.js +3 -3
  140. package/dist/core/intercom-broker-control.impl.js +3 -3
  141. package/dist/core/intercom-broker-control.js +3 -3
  142. package/dist/core/package-manager-storage-adapters.code.js +1 -1
  143. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  144. package/dist/core/package-manager-storage-adapters.js +3 -3
  145. package/dist/core/process-start-token.d.ts +8 -0
  146. package/dist/core/process-tree-containment.d.ts +16 -0
  147. package/dist/core/sdk-types.d.ts +1 -2
  148. package/dist/core/sdk-types.js.map +1 -1
  149. package/dist/core/sdk.code.js +3 -3
  150. package/dist/core/sdk.impl.js +3 -3
  151. package/dist/core/sdk.js +3 -3
  152. package/dist/core/session-manager-core.js +5 -5
  153. package/dist/core/session-manager-list.impl.js +3 -3
  154. package/dist/core/session-manager-list.js +3 -3
  155. package/dist/core/session-manager.code.js +1 -1
  156. package/dist/core/session-manager.impl.js +3 -3
  157. package/dist/core/session-manager.js +3 -3
  158. package/dist/core/session-storage.code.js +1 -1
  159. package/dist/core/session-storage.impl.js +3 -3
  160. package/dist/core/session-storage.js +3 -3
  161. package/dist/core/settings-schema.d.ts +0 -3
  162. package/dist/core/storage/added-exports-0-10-11.js +19 -0
  163. package/dist/core/storage/added-exports-0-10-11.js.map +1 -0
  164. package/dist/core/storage/creation-time.js +105 -0
  165. package/dist/core/storage/creation-time.js.map +1 -0
  166. package/dist/core/storage/database.d.ts +19 -5
  167. package/dist/core/storage/database.js.map +1 -1
  168. package/dist/core/storage/dialect.d.ts +1 -1
  169. package/dist/core/storage/dialect.js +1 -1
  170. package/dist/core/storage/dialect.js.map +1 -1
  171. package/dist/core/storage/errors.d.ts +13 -13
  172. package/dist/core/storage/errors.js +10 -16
  173. package/dist/core/storage/errors.js.map +1 -1
  174. package/dist/core/storage/fenced-paths.d.ts +11 -0
  175. package/dist/core/storage/fenced-paths.js +11 -0
  176. package/dist/core/storage/fenced-paths.js.map +1 -1
  177. package/dist/core/storage/file-identity.d.ts +2 -0
  178. package/dist/core/storage/file-identity.js +24 -8
  179. package/dist/core/storage/file-identity.js.map +1 -1
  180. package/dist/core/storage/index.d.ts +3 -2
  181. package/dist/core/storage/index.js +5 -3
  182. package/dist/core/storage/index.js.map +1 -1
  183. package/dist/core/storage/libsql-removed.d.ts +71 -0
  184. package/dist/core/storage/libsql-removed.js +123 -0
  185. package/dist/core/storage/libsql-removed.js.map +1 -0
  186. package/dist/core/storage/migrations.d.ts +78 -14
  187. package/dist/core/storage/migrations.js +375 -49
  188. package/dist/core/storage/migrations.js.map +1 -1
  189. package/dist/core/storage/node-sqlite-file-gate.js +0 -15
  190. package/dist/core/storage/node-sqlite-file-gate.js.map +1 -1
  191. package/dist/core/storage/node-sqlite-thread.js +8 -13
  192. package/dist/core/storage/node-sqlite-thread.js.map +1 -1
  193. package/dist/core/storage/node-sqlite.js +51 -3
  194. package/dist/core/storage/node-sqlite.js.map +1 -1
  195. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  196. package/dist/core/storage/offline-snapshot-file.js +3 -3
  197. package/dist/core/storage/prefix.d.ts +1 -1
  198. package/dist/core/storage/prefix.js +9 -2
  199. package/dist/core/storage/prefix.js.map +1 -1
  200. package/dist/core/storage/process-selection.d.ts +5 -5
  201. package/dist/core/storage/provider.js +2 -2
  202. package/dist/core/storage/schema-catalog.d.ts +7 -8
  203. package/dist/core/storage/schema-catalog.js +8 -8
  204. package/dist/core/storage/schema-catalog.js.map +1 -1
  205. package/dist/core/storage/selection.d.ts +7 -82
  206. package/dist/core/storage/selection.js +20 -235
  207. package/dist/core/storage/selection.js.map +1 -1
  208. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  209. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  210. package/dist/core/storage/session/branch-fork-source.js +3 -3
  211. package/dist/core/storage/session/card-view.impl.js +3 -3
  212. package/dist/core/storage/session/card-view.js +3 -3
  213. package/dist/core/storage/session/child-reader.code.js +3 -3
  214. package/dist/core/storage/session/child-reader.impl.js +3 -3
  215. package/dist/core/storage/session/child-reader.js +3 -3
  216. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  217. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  218. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  219. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  220. package/dist/core/storage/session/expanded-child-details.js +3 -3
  221. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  222. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  223. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  224. package/dist/core/storage/session/fork-row-index.js +3 -3
  225. package/dist/core/storage/session/fork-staging.code.js +4 -7
  226. package/dist/core/storage/session/fork-staging.code.js.map +1 -1
  227. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  228. package/dist/core/storage/session/fork-staging.js +3 -3
  229. package/dist/core/storage/session/fork-window.code.js +3 -3
  230. package/dist/core/storage/session/fork-window.impl.js +3 -3
  231. package/dist/core/storage/session/fork-window.js +3 -3
  232. package/dist/core/storage/session/history-pages.impl.js +3 -3
  233. package/dist/core/storage/session/history-pages.js +3 -3
  234. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  235. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  236. package/dist/core/storage/session/jsonl-session-store.d.ts +5 -1
  237. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  238. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  239. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  240. package/dist/core/storage/session/memory-session-store.js +3 -3
  241. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  242. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  243. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  244. package/dist/core/storage/session/released-history-files.code.js +3 -3
  245. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  246. package/dist/core/storage/session/released-history-files.js +3 -3
  247. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  248. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  249. package/dist/core/storage/session/session-resume.impl.js +3 -3
  250. package/dist/core/storage/session/session-resume.js +3 -3
  251. package/dist/core/storage/session/session-search-index.d.ts +43 -4
  252. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  253. package/dist/core/storage/session/snapshot-cut.js +3 -3
  254. package/dist/core/storage/session/snapshot-history.code.js +3 -3
  255. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  256. package/dist/core/storage/session/snapshot-history.js +3 -3
  257. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  258. package/dist/core/storage/session/sql-session-store.d.ts +48 -11
  259. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  260. package/dist/core/storage/session/sql-session-store.js +3 -3
  261. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  262. package/dist/core/storage/session/tree-outline.js +3 -3
  263. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  264. package/dist/core/storage/session/tree-presentation.js +3 -3
  265. package/dist/core/storage/sqlite-facade.d.ts +6 -1
  266. package/dist/core/storage/sqlite-facade.js +1 -0
  267. package/dist/core/storage/sqlite-facade.js.map +1 -1
  268. package/dist/core/storage/storage-status.code.js +1 -1
  269. package/dist/core/storage/storage-status.impl.js +3 -3
  270. package/dist/core/storage/storage-status.js +3 -3
  271. package/dist/core/storage/team.code.js +1 -1
  272. package/dist/core/storage/team.d.ts +26 -115
  273. package/dist/core/storage/team.impl.js +3 -3
  274. package/dist/core/storage/team.js +3 -3
  275. package/dist/core/structured-output/index.code.js +1 -1
  276. package/dist/core/structured-output/index.impl.js +3 -3
  277. package/dist/core/structured-output/index.js +3 -3
  278. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  279. package/dist/core/tasks/task-completion-entry.js +3 -3
  280. package/dist/core/tasks/task-file-history.code.js +3 -3
  281. package/dist/core/tasks/task-file-history.impl.js +3 -3
  282. package/dist/core/tasks/task-file-history.js +3 -3
  283. package/dist/core/tasks/task-reference-archive.code.js +4 -4
  284. package/dist/core/tasks/task-reference-archive.js +3 -3
  285. package/dist/core/tasks/task-reference-identity.js +3 -3
  286. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  287. package/dist/core/tasks/task-reference-stream.js +3 -3
  288. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  289. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  290. package/dist/core/tasks/task-view-source.code.js +1 -1
  291. package/dist/core/tasks/task-view-source.impl.js +3 -3
  292. package/dist/core/tasks/task-view-source.js +3 -3
  293. package/dist/core/tools/history-tasks.d.ts +3 -2
  294. package/dist/core/tools/read-url.code.js +4 -4
  295. package/dist/core/tools/read-url.impl.js +3 -3
  296. package/dist/core/tools/read-url.js +3 -3
  297. package/dist/core/worktree-snapshot/blob-store.d.ts +40 -3
  298. package/dist/core/worktree-snapshot/blob-store.js +414 -21
  299. package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
  300. package/dist/core/worktree-snapshot/errors.code.js +2 -2
  301. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  302. package/dist/core/worktree-snapshot/errors.js +3 -3
  303. package/dist/core/worktree-snapshot/fork-blob-guard.js +81 -0
  304. package/dist/core/worktree-snapshot/fork-blob-guard.js.map +1 -0
  305. package/dist/core/worktree-snapshot/fork-snapshot-index.js +79 -38
  306. package/dist/core/worktree-snapshot/fork-snapshot-index.js.map +1 -1
  307. package/dist/core/worktree-snapshot/session-index-reset.code.js +4 -0
  308. package/dist/core/worktree-snapshot/session-index-reset.code.js.map +1 -1
  309. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  310. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  311. package/dist/extensions/codemode/execute.code.js +1 -1
  312. package/dist/extensions/codemode/execute.impl.js +3 -3
  313. package/dist/extensions/codemode/execute.js +3 -3
  314. package/dist/extensions/codemode/renderer.code.js +2 -2
  315. package/dist/extensions/codemode/renderer.impl.js +3 -3
  316. package/dist/extensions/codemode/renderer.js +3 -3
  317. package/dist/extensions/mcp/cli.code.js +3 -3
  318. package/dist/extensions/mcp/cli.impl.js +3 -3
  319. package/dist/extensions/mcp/cli.js +3 -3
  320. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  321. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  322. package/dist/extensions/mcp/cli.lazy.js +3 -3
  323. package/dist/extensions/mcp/runtime.code.js +1 -1
  324. package/dist/extensions/mcp/runtime.impl.js +3 -3
  325. package/dist/extensions/mcp/runtime.js +3 -3
  326. package/dist/index.d.ts +3 -1
  327. package/dist/index.js +5 -5
  328. package/dist/main-first-time-setup.code.js +1 -1
  329. package/dist/main-first-time-setup.impl.js +3 -3
  330. package/dist/main-first-time-setup.js +3 -3
  331. package/dist/main.js +1 -1
  332. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  333. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  334. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  335. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  336. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  337. package/dist/modes/interactive/startup-shell-eligibility.js +1 -1
  338. package/dist/modes/interactive-engine/engine-prewarm.d.ts +1 -1
  339. package/dist/modes/print-mode.js +1 -1
  340. package/dist/package-manager-cli.code.js +6 -6
  341. package/dist/package-manager-cli.impl.js +3 -3
  342. package/dist/package-manager-cli.js +3 -3
  343. package/dist/rpc-entry.js +1 -1
  344. package/dist/startup-files.json +1 -1
  345. package/dist/startup-stages/10.js +1 -1
  346. package/dist/startup-stages/11.js +1 -1
  347. package/dist/startup-stages/12.js +1 -1
  348. package/dist/startup-stages/2.js +2 -4
  349. package/dist/startup-stages/3.js +1 -3
  350. package/dist/startup-stages/4.js +1 -2
  351. package/dist/startup-stages/5.js +1 -1
  352. package/dist/startup-stages/6.js +5 -7
  353. package/dist/startup-stages/7.js +3 -10
  354. package/dist/startup-stages/8.js +7 -2
  355. package/dist/startup-stages/9.js +1 -7
  356. package/dist/startup-stages/stages.json +1 -1
  357. package/dist/utils/compile-cache-deferral.js +8 -13
  358. package/dist/utils/compile-cache-deferral.js.map +1 -1
  359. package/dist/utils/compile-cache-warmup-host.js +3 -4
  360. package/dist/utils/compile-cache-warmup-host.js.map +1 -1
  361. package/dist/utils/compile-cache.js +12 -100
  362. package/dist/utils/compile-cache.js.map +1 -1
  363. package/dist/utils/startup-database-spare.code.js +2 -2
  364. package/dist/utils/startup-database-spare.impl.js +3 -3
  365. package/dist/utils/startup-database-spare.js +3 -3
  366. package/dist/utils/tools-manager.code.js +1 -1
  367. package/dist/utils/tools-manager.impl.js +3 -3
  368. package/dist/utils/tools-manager.js +3 -3
  369. package/dist/utils/worker-threads.js +2 -15
  370. package/dist/utils/worker-threads.js.map +1 -1
  371. package/docs/build.md +3 -3
  372. package/docs/changelog.mdx +1421 -69
  373. package/docs/compaction/reference.md +5 -5
  374. package/docs/compaction.md +7 -9
  375. package/docs/containerization.md +2 -2
  376. package/docs/custom-provider/api-reference.md +1 -1
  377. package/docs/docs.json +37 -10
  378. package/docs/environment-variables.md +0 -2
  379. package/docs/extensions/api-reference.md +4 -4
  380. package/docs/getting-started/installation.md +3 -0
  381. package/docs/guides/configuration.md +1 -1
  382. package/docs/guides/non-interactive.md +1 -1
  383. package/docs/guides/resume-on-any-machine.md +14 -22
  384. package/docs/guides/team-setup.md +56 -83
  385. package/docs/guides.md +2 -4
  386. package/docs/herdr.md +1 -1
  387. package/docs/index.md +1 -1
  388. package/docs/intercom/operations.md +26 -21
  389. package/docs/intercom/reference.md +2 -2
  390. package/docs/intercom.md +1 -1
  391. package/docs/libraries/storage-postgres.md +9 -9
  392. package/docs/libraries.md +2 -3
  393. package/docs/models-configuration.md +2 -2
  394. package/docs/models.md +2 -3
  395. package/docs/packages/authoring.md +7 -7
  396. package/docs/packages.md +1 -1
  397. package/docs/programmatic.md +2 -2
  398. package/docs/quickstart.md +1 -1
  399. package/docs/reference/cli.md +6 -11
  400. package/docs/reference.md +2 -2
  401. package/docs/rpc/extension-ui.md +2 -2
  402. package/docs/sdk/reference.md +5 -4
  403. package/docs/sdk/storage.md +8 -92
  404. package/docs/sdk/structured-decisions.md +1 -1
  405. package/docs/sdk/web-server.md +3 -3
  406. package/docs/sdk.md +14 -4
  407. package/docs/security.md +1 -1
  408. package/docs/session-format.md +5 -5
  409. package/docs/sessions.md +29 -49
  410. package/docs/settings.md +7 -8
  411. package/docs/storage/custom-adapters.md +255 -0
  412. package/docs/storage/jsonl.md +117 -0
  413. package/docs/{guides/postgres-pgbouncer.md → storage/postgres/pgbouncer.md} +66 -68
  414. package/docs/storage/postgres/tuning.md +337 -0
  415. package/docs/storage/postgres.md +556 -0
  416. package/docs/storage/sqlite.md +99 -0
  417. package/docs/storage.md +326 -990
  418. package/docs/subagents/authoring.md +1 -1
  419. package/docs/subagents.md +2 -2
  420. package/docs/tools.md +1 -1
  421. package/docs/worktree-snapshots.md +2 -2
  422. package/package.json +9 -9
  423. package/schemas/models.schema.json +2 -2
  424. package/schemas/settings.schema.json +0 -14
  425. package/dist/_shared/sdk-IQMULKFU.js.map +0 -1
  426. package/dist/_shared/startup-0-0-3IXNMFM2.js.map +0 -1
  427. package/dist/_shared/startup-0-1-7T2IAE7J.js.map +0 -1
  428. package/dist/_shared/startup-8-1-X32CYSXB.js.map +0 -1
  429. package/dist/core/intercom-broker-control.d.ts +0 -129
  430. package/dist/startup-stages/13.js +0 -1
  431. package/docs/guides/postgres-tuning.md +0 -311
  432. package/docs/libraries/storage-libsql.md +0 -97
package/CHANGELOG.md CHANGED
@@ -2,6 +2,105 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.10.11-alpha.3] - 2026-11-26
6
+
7
+ Atomic drops libSQL storage and keeps SQLite, PostgreSQL and JSONL, many agents open and share one PostgreSQL database with less waiting, and the storage docs get one page per backend.
8
+
9
+ **Breaking change:** Atomic no longer supports libSQL storage, which covers Turso, self-hosted `sqld` and libSQL `file:` databases. A setting, environment variable, flag or URL that still names libSQL stops Atomic with a `libsql-removed` error that says how to move. To keep your sessions, export them with 0.10.11-alpha.2, for example `npx -y @bastani/atomic@0.10.11-alpha.2 storage export ~/moved --storage-file old-storage.json`, where `old-storage.json` holds your old `storage` setting. 0.10.10 cannot read a database that 0.10.11-alpha.2 has already upgraded. Then import the sessions with this release into PostgreSQL or into local SQLite with `atomic storage import ~/moved`, and run `atomic remove npm:@bastani/atomic-storage-libsql`. See [Moving off libSQL](https://docs.bastani.ai/storage#moving-off-libsql) ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
10
+
11
+ **Breaking change:** `atomic team join`, `atomic team leave`, `ATOMIC_PROFILE=ci` and the `ATOMIC_TEAM_*` variables are removed with libSQL. Join a PostgreSQL database with `atomic storage join postgres://… --password-file <path>`, and in CI set `ATOMIC_STORAGE` to a PostgreSQL selection. The SDK's `joinTeam()`, `leaveTeam()` and `teamProfileSelection()` now always throw `libsql-removed`. Pass `createAgentSession({ storage })` a PostgreSQL selection instead ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
12
+
13
+ **Storage and Intercom**
14
+
15
+ - **Many agents can open a new database at once.** On a new PostgreSQL database, one agent creates each table while the others wait for it without holding a lock or a connection. At 80 ms latency behind PgBouncer, 25 agents opening a session store and an Intercom broker on an empty database took 15 seconds instead of 258, and 100 agents all opened in 24 seconds, where 97 used to fail after waiting 30 seconds for a lock. One agent alone opens an empty database in 161 round trips instead of 391. On a new SQLite file, 100 agents opened in about 6 seconds instead of 32 ([#6679](https://github.com/bastani-inc/atomic/pull/6679)).
16
+ - **`atomic storage join` takes PostgreSQL URLs only.** It and `atomic storage migrate --db` accept `postgres://` and `postgresql://`. The `@bastani/atomic-storage-libsql` package is no longer published ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
17
+ - **Intercom retries lock timeouts on a busy PostgreSQL database.** A send, a registration renewal, taking waiting messages or confirming a delivery now tries again, up to 5 times, when a lock timeout or deadlock ended it before it wrote anything. A send takes 1 round trip instead of 3 and holds the recipient's lock only while the database runs it. In a load test with 200 agents through PgBouncer, lock timeouts fell from 112 to none ([#6626](https://github.com/bastani-inc/atomic/pull/6626)).
18
+ - **Messages to an offline session stop queueing.** With multi-node routing on PostgreSQL, a message to a session its sender found offline takes 1 round trip instead of about 4 and no longer holds up other messages to that session. With 50 senders to one session at 80 ms latency, the median message took under 1 s instead of about 23 s. Registering a session or a broker takes 1 round trip instead of 3. A broker retrying the cleanup of an ended subagent's delivered messages no longer blocks other writers of the database ([#6636](https://github.com/bastani-inc/atomic/pull/6636)).
19
+ - **One statement text per call on PostgreSQL.** Statements that look up a list of values, and the statement that records several delivered messages, now send the list as one value. PostgreSQL then plans each statement once per connection, and `pg_stat_statements` shows one line for it instead of dozens ([#6644](https://github.com/bastani-inc/atomic/pull/6644)).
20
+ - **Smaller writes per save on PostgreSQL.** Saving a new entry now updates the worktree snapshot index row in place, so the table's other indexes stay about 40% smaller. Atomic changes the index the first time it opens the database as the owner role, or when you run `atomic storage migrate`. On a store with more than about 150,000 index rows, only `atomic storage migrate` changes it, without stopping saves ([#6653](https://github.com/bastani-inc/atomic/pull/6653), [#6680](https://github.com/bastani-inc/atomic/pull/6680)).
21
+ - **Search indexing no longer stalls saves on PostgreSQL.** The write that filled PostgreSQL's 4 MB list of pending search text used to move the whole list into the index while it held the session's lock. Atomic now empties the list in the background on a connection that holds no session lock. A history search's index writes also no longer hold the session's lock, so with searches indexing 8 sessions while agents wrote to them, the median save took 55 ms instead of 109 ms. Run `atomic storage migrate` as the owner role to apply the list settings to an existing database ([#6638](https://github.com/bastani-inc/atomic/pull/6638), [#6654](https://github.com/bastani-inc/atomic/pull/6654)).
22
+ - **`atomic storage migrate` tunes PostgreSQL for you.** It sets autovacuum on the busiest small tables, which the tuning guide used to ask you to do by hand, and switches large values to `lz4` compression when the server supports it. In a test with large values from real session history, compressing them took about 60% less time and reading them back 17% to 50% less. A value you set yourself is kept ([#6642](https://github.com/bastani-inc/atomic/pull/6642)).
23
+ - **Fewer round trips before `atomic storage migrate`.** On PostgreSQL, until migrate sets the free-space setting on the sessions and Intercom lease tables, a process checks it once instead of at every store open. A runtime role then opens the session store in 4 round trips instead of 5 ([#6635](https://github.com/bastani-inc/atomic/pull/6635)).
24
+ - **Wake-ups go only to the broker they are for.** With multi-node routing on PostgreSQL, each broker listens on a channel of its own, and a wake-up names the recipient, so the broker reads only that recipient's queue. Sends to one broker that arrive together share one wake-up. Atomic sends a wake-up right after its commit instead of inside it, so commits that send one no longer run one at a time. With 50 or 200 senders, PostgreSQL committed 1.2 to 3.2 times as many wake-ups per second. Brokers of earlier releases still wake and are woken during an upgrade. In the SDK, `StorageNotifications.notify` takes an optional `unless` read ([#6655](https://github.com/bastani-inc/atomic/pull/6655)).
25
+ - **One broker cleans up the shared database.** With multi-node routing, one broker at a time cleans up delivered messages and old records every 5 minutes, through indexes, instead of every broker every 30 seconds. With 200 brokers on PostgreSQL, cleanup ran 24 statements a minute instead of 3,377 and read no rows by full table scans instead of 194 million a minute. The index of waiting messages covers only undelivered ones, 0.2 MB instead of 22.6 MB in the same test ([#6675](https://github.com/bastani-inc/atomic/pull/6675)).
26
+ - **Less disk work for Intercom on PostgreSQL.** The lease renewals each broker sends every 10 seconds no longer wait for the server to write them to disk, and a lost renewal is repeated by the next one. In a benchmark the server flushed its log about 90% less often for these writes. The short notices that wake a broker when a message arrives now live in an unlogged table, so each writes about 70% less to the server's log. A crash loses only notices, never messages. An existing database switches when `atomic storage migrate` runs as the owner role. Storage adapters get a `relaxedDurability` transaction option for writes like these ([#6633](https://github.com/bastani-inc/atomic/pull/6633), [#6639](https://github.com/bastani-inc/atomic/pull/6639)).
27
+ - **The macOS binary brings its own SQLite.** The standalone `atomic` binary on macOS now uses its own copy of SQLite 3.53.4, the version Node.js 24.20 includes, instead of the one that comes with macOS. `atomic storage status` shows the SQLite version on a `library:` line ([#6641](https://github.com/bastani-inc/atomic/pull/6641)).
28
+
29
+ **Docs**
30
+
31
+ - **One docs page per storage backend.** The storage docs now have their own pages for SQLite, JSONL, PostgreSQL setup, PgBouncer, PostgreSQL server tuning and custom adapters, under one Storage group. Old guide links redirect to the new pages. Each page says what it is for, and its settings, commands and error messages were checked against the code ([#6619](https://github.com/bastani-inc/atomic/pull/6619), [#6656](https://github.com/bastani-inc/atomic/pull/6656)).
32
+ - **The docs site changelog is current again.** The [changelog](https://docs.bastani.ai/changelog) page is now built from each release's summary and lists every release. It had stopped at July 31, 2026 ([#6621](https://github.com/bastani-inc/atomic/pull/6621)).
33
+
34
+ **Fixes**
35
+
36
+ - **Messages keep their order when a session changes machines.** When a session moved to the machine of a session sending it messages, a new message from that sender could arrive before older ones still waiting for it. A new message now waits until the sender's older messages have arrived ([#6651](https://github.com/bastani-inc/atomic/pull/6651), [#6637](https://github.com/bastani-inc/atomic/issues/6637)).
37
+ - **Resume after a kill no longer waits 5 minutes.** Resuming a session whose worktree build was cut off, because Atomic was killed just as a build step started, no longer waits 5 minutes before building a fresh worktree on Linux and Windows ([#6684](https://github.com/bastani-inc/atomic/pull/6684)).
38
+ - **Compaction keeps long output.** A compaction model such as `morph/morph-compactor` no longer has its output thrown away as "output too long". Before, output over 32,000 estimated tokens failed and the context was cleared, so a 275,000-token result on a 1M-token model was lost. Only limits you set apply: `maxTokens` on the compactor model, or the endpoint's own options in `compactionParams`, such as Morph's `compression_ratio`. Atomic no longer compacts long output again before every tool call ([#6649](https://github.com/bastani-inc/atomic/pull/6649), [#6671](https://github.com/bastani-inc/atomic/pull/6671)).
39
+ - **JSONL sessions survive backdated files on macOS.** A session kept in JSONL files no longer stops accepting messages with "Session conflict" after the file's modified date is set earlier, for example by `touch`, a backup tool that restores dates, or a clock that moves back ([#6647](https://github.com/bastani-inc/atomic/pull/6647), [#6661](https://github.com/bastani-inc/atomic/pull/6661), [#4319](https://github.com/bastani-inc/atomic/issues/4319)).
40
+ - **Extension commands end when Atomic is killed.** An extension's `pi.exec` command still running when Atomic is killed now ends with the processes it started on macOS, and on Linux its child processes end too ([#6648](https://github.com/bastani-inc/atomic/pull/6648)).
41
+ - **A clear message on an older Node.js.** On a Node.js older than 24.20.0, `atomic` now stops as soon as it starts and names the version it needs, with a link to [Node.js version](https://docs.bastani.ai/getting-started/installation#nodejs-version), instead of failing later with an error that doesn't name the cause. The release archive brings its own runtime and is unaffected ([#6629](https://github.com/bastani-inc/atomic/pull/6629)).
42
+ - **`bash` with `pty: true` keeps up on macOS.** A command's terminal output no longer slows to about 150 KB/s. A command that printed 1 MB took about 6.5 seconds and now takes under half a second ([#6634](https://github.com/bastani-inc/atomic/pull/6634)).
43
+ - **Commands start faster on macOS, without `MallocStackLogging` lines.** The task supervisor starts commands with `posix_spawn` instead of `fork()`. With a 3 GB host, starting a command took 0.5 ms instead of 4.4 ms, and the host's JavaScript thread no longer stalls 9 to 18 ms each time. The interactive TUI no longer shows "MallocStackLogging: can't turn off malloc stack logging" for each command after the Mac has been under memory pressure. A command now gets only its standard input, output and error, not other open descriptors ([#6643](https://github.com/bastani-inc/atomic/pull/6643), [#6668](https://github.com/bastani-inc/atomic/pull/6668)).
44
+ - **`atomic storage status` reads closed SQLite stores on macOS.** The standalone `atomic` binary no longer reports a healthy local SQLite store as failed with "unable to open database file (SQLite code 14)" after every Atomic process has closed it, for example right after `atomic storage import` ([#6622](https://github.com/bastani-inc/atomic/pull/6622)).
45
+ - **In-place updates keep running processes working.** A process still running 0.10.10 or 0.10.11-alpha.1 code after `npm install -g` or `bun add -g` no longer fails to open a PostgreSQL session store with "this store needs a newer Atomic" once forks share history there ([#6631](https://github.com/bastani-inc/atomic/pull/6631)).
46
+ - **Reads see the same store's earlier writes.** A session read, and an Intercom broker's reads of sessions and presences, now wait for writes the same store or broker started before them, so they no longer miss a just-appended entry or a just-taken presence ([#6632](https://github.com/bastani-inc/atomic/pull/6632)).
47
+ - **In-place updates keep fork snapshots.** A process still running 0.10.10 or 0.10.11-alpha.1 code after an in-place update no longer deletes worktree snapshots that a fork shares with its parent. The database refuses to delete a snapshot a fork still uses ([#6657](https://github.com/bastani-inc/atomic/pull/6657)).
48
+ - **A fork under a deleted session's ID starts empty.** It no longer shows the deleted session's history, and deleting the last fork that still reads the old history no longer removes the new session's entries. Forking one of its forks back into its ID works instead of failing with "Invalid fork segment" ([#6660](https://github.com/bastani-inc/atomic/pull/6660), [#6676](https://github.com/bastani-inc/atomic/pull/6676)).
49
+ - **Sessions list in the order they registered.** With multi-node routing on PostgreSQL, a broker started before `atomic storage migrate` no longer gives a session registration the same number as another broker, so session lists keep registration order. If the sequence is dropped, registering a session keeps working ([#6630](https://github.com/bastani-inc/atomic/pull/6630)).
50
+ - **A slow `history://` pattern no longer holds up other searches.** A background search whose pattern takes minutes to check moves aside after a fifth of a second, so other history reads and searches carry on instead of running out of time ([#6627](https://github.com/bastani-inc/atomic/pull/6627)).
51
+
52
+ ### Breaking Changes
53
+
54
+ - Atomic no longer supports libSQL, which covers Turso, self-hosted `sqld` and libSQL `file:` databases. A `storage` or `sessions.storage` setting, an `ATOMIC_STORAGE`, `ATOMIC_SESSIONS_STORAGE`, `--storage` or SDK selection, or a URL that still names libSQL now stops Atomic at once with a `libsql-removed` error that says how to move. Nothing falls back to another store. To keep your sessions, export them with 0.10.11-alpha.2, which reads every libSQL database: `npx -y @bastani/atomic@0.10.11-alpha.2 storage export ~/moved --storage-file old-storage.json`, with `old-storage.json` holding your old `storage` setting. Then import them with this release, into PostgreSQL (`atomic storage join postgres://…` and `atomic storage import ~/moved --storage-file new-storage.json`) or into local SQLite (`atomic storage import ~/moved`). Forks keep their whole history and worktree snapshots keep their content. Finally run `atomic remove npm:@bastani/atomic-storage-libsql`. See [Moving off libSQL](https://docs.bastani.ai/storage#moving-off-libsql) ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
55
+ - Removed the libSQL team setup, with these replacements ([#6624](https://github.com/bastani-inc/atomic/pull/6624)):
56
+ - `atomic team join` and `atomic team leave` now fail with `libsql-removed`. Join a PostgreSQL database with `atomic storage join postgres://… --password-file <path>`. To keep sessions on the machine while Intercom uses the shared database, add `"sessions": { "storage": {} }` to global settings. To leave, remove `storage` and `sessions.storage` and run `atomic intercom restart`. `atomic team status` still works.
57
+ - `ATOMIC_PROFILE=ci` and `ATOMIC_TEAM_URL`, `ATOMIC_TEAM_TOKEN`, `ATOMIC_TEAM_TOKEN_FILE` and `ATOMIC_TEAM_PREFIX` now fail startup when set. Set `ATOMIC_STORAGE` to a PostgreSQL selection instead, with the password in an `{ "env": "<VAR>" }` secret.
58
+ - The SDK's `joinTeam()`, `leaveTeam()` and `teamProfileSelection()` now always throw `TeamProfileConfigError` with code `libsql-removed`. They stay exported, deprecated, only so a running process that an in-place update catches does not crash. The SDK no longer exports the `JoinTeamOptions`, `LeaveTeamOptions`, `TeamJoinResult`, `TeamLeaveResult`, `TeamBrokerRestart`, `TeamKeptSetting`, `TeamSettingKey`, `TeamProfileSelectionOptions` and `TeamStorageSelection` types. Pass `createAgentSession({ storage })` a PostgreSQL selection, with the password as `inMemorySecret(password)`. `getTeamProfile()` still works.
59
+ - `LIBSQL_ADAPTER_PACKAGE`, `TEAM_PROFILE_ENV`, `TEAM_URL_ENV`, `TEAM_TOKEN_ENV`, `TEAM_TOKEN_FILE_ENV`, `TEAM_PREFIX_ENV`, `SHARED_STORAGE_JOIN_HINT` and `TEAM_JOIN_COMMAND` are deprecated and will be removed. Nothing uses them any more: Atomic refuses the adapter and the variables they name. Use `POSTGRES_ADAPTER_PACKAGE` and `POSTGRES_STORAGE_JOIN_HINT`.
60
+ - The `teamJoin` setting that `atomic team join` wrote is no longer read. You can delete it.
61
+
62
+ ### Added
63
+
64
+ - Storage adapters receive a new transaction option, `relaxedDurability`, for writes whose loss in a server crash is harmless, such as lease renewals. A driver may answer the commit before the write reaches disk, or ignore the option. The PostgreSQL adapter turns `synchronous_commit` off for that transaction only. See [custom storage adapters](docs/storage/custom-adapters.md) ([#6633](https://github.com/bastani-inc/atomic/pull/6633), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
65
+ - `StorageNotifications.notify` in `@bastani/atomic/storage` takes an optional third argument, `unless`, a read. When it is given, the notification goes out only if that read returns no row when the notification is sent. Adapters that do not support it send the notification anyway ([#6655](https://github.com/bastani-inc/atomic/pull/6655)).
66
+
67
+ ### Changed
68
+
69
+ - On PostgreSQL, `atomic storage migrate` now tunes two kinds of tables for you. It tells autovacuum to clean the small busy tables `session_sessions`, `intercom_leases` and `snapshot_session_links` after a fixed number of dead rows, which the tuning guide used to ask you to set by hand. In a test with 20,000 sessions, `session_sessions` held about a third as many dead rows on average. It also switches large session entries, stored files and Intercom messages to `lz4` compression when the server supports it. In a test with large values built from real session history and source files, compressing them took about 60% less time and reading them back 17% to 50% less, while the space they took changed by less than 20%. A value you set on one of these tables yourself is kept. See the [tuning guide](docs/storage/postgres/tuning.md) ([#6642](https://github.com/bastani-inc/atomic/pull/6642), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
70
+ - On PostgreSQL, writing history-search text no longer stalls now and then. PostgreSQL keeps new search text in a holding list and later moves the whole list into the index. The write that filled the list, about 4 MB, used to do that move itself while it held the session's lock, so that write and the session's saves waited for it. In a benchmark that indexed 4 to 8 sessions while agents wrote to them, 10 to 15 writes per run did this. Atomic now raises the list's limit to 64 MB and empties it in the background, on a connection that holds no session's lock, after every 128,000 characters of search text. Autovacuum also empties it after every 1,000 new rows. In the same benchmark the list never grew past 7 MB, so no write emptied it. Searches find new text as before, whether it has been moved or not. Run `atomic storage migrate` as the owner role to apply the settings to an existing database. Agents that connect as a runtime role leave the emptying to autovacuum, so keep autovacuum on ([#6638](https://github.com/bastani-inc/atomic/pull/6638)).
71
+ - On a Node.js older than 24.20.0, `atomic` now stops as soon as it starts and says which version it needs, with a link to [Node.js version](https://docs.bastani.ai/getting-started/installation#nodejs-version), instead of failing later with an error that doesn't name the cause. This applies to installs with npm, pnpm, Yarn or Bun. The release archive brings its own runtime and is unaffected ([#6629](https://github.com/bastani-inc/atomic/pull/6629)).
72
+ - On PostgreSQL, until `atomic storage migrate` sets `fillfactor` on the sessions table and the Intercom lease table, a process now checks each table's setting once instead of every time it opens a store. A role that may not change those tables, such as a runtime role, then opens the session store in 4 round trips instead of 5 from its second open on. Once migrate has set it, no open checks it, as before ([#6635](https://github.com/bastani-inc/atomic/pull/6635), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
73
+ - On macOS, the standalone `atomic` binary now uses its own copy of SQLite 3.53.4, the version Node.js 24.20 includes, instead of the SQLite that comes with macOS, whose version depends on your macOS release. You don't need to do anything. The copy ships in the release archive as `lib/libsqlite3.dylib`. `atomic storage status` now shows the SQLite version in use on a `library:` line. If the copy can't be loaded, Atomic prints one warning and uses the system's SQLite instead ([#6641](https://github.com/bastani-inc/atomic/pull/6641)).
74
+ - On PostgreSQL, saving to a session no longer waits while a history search indexes that session. The search's writes to the index used to hold the session's lock, so the agent writing the session stopped until they finished. They now take a lock of the session's index instead, which only a rewrite of the whole session also takes, so a rewrite and an index write still take turns and search never shows text from before the rewrite. In a benchmark on a busy machine, with history searches indexing 8 sessions while agents wrote to them, the median save took 55 ms instead of 109 ms and the 95th percentile 154 ms instead of 353 ms, about the same as with no indexing at all (51 ms and 180 ms) ([#6654](https://github.com/bastani-inc/atomic/pull/6654)).
75
+ - On PostgreSQL, statements that look up a list of values, such as reading chat records, refreshing the session list, reading a fork's entries or locking its sources, now send the list as one value. Each statement then has the same text however long the list is, so PostgreSQL parses and plans it once per connection instead of once per list length, and `pg_stat_statements` shows one line for it instead of dozens. Reading chat records for 1 to 20 lines used to show up as 20 different statements, and now shows up as 1 ([#6644](https://github.com/bastani-inc/atomic/pull/6644), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
76
+ - On PostgreSQL, saving a new entry to a session writes less to the database. Each save updated a row of the worktree snapshot index in a way that also rewrote that row's entries in the table's other indexes. Now PostgreSQL updates the row in place, and those indexes stay about 40% smaller. In a test of 4,000 saves, none were updated in place before and over 98% were after. Atomic changes the index the first time it opens the database as the owner role, or when you run `atomic storage migrate`. On a database with more than about 150,000 snapshot index rows, only `atomic storage migrate` changes it, and it does so without stopping saves. On 3 million rows, saves waited up to 0.9 s while an open changed the index, and at most 42 ms while `atomic storage migrate` did. Older Atomic versions keep working on the changed database. In exchange, snapshot cleanup now reads all of a session's entries since its first snapshot to find where its branches end, which took 1 to 3 ms for a session of 20,000 entries ([#6653](https://github.com/bastani-inc/atomic/pull/6653), [#6680](https://github.com/bastani-inc/atomic/pull/6680)).
77
+ - Many agents can now open a new PostgreSQL database at once without queueing for its lock. One of them creates each table while the others wait for it without holding a lock or a database connection; before, every agent's setup held the whole database's lock in turn. At 80 ms latency behind PgBouncer, 25 agents that each opened a session store and an Intercom broker on an empty database took 15 seconds instead of 258, and none waited for a lock for more than 0.1 seconds, where before 982 lock waits lasted over a second and the longest 21 seconds. 100 agents all opened in 24 seconds, where before 97 of them failed after waiting 30 seconds for a lock. One agent alone opens an empty database in 161 round trips instead of 391. On a new SQLite file, 100 agents opened in about 6 seconds instead of 32, with about 600 write transactions instead of 3,300. Opening a database that is already set up costs the same as before, and running `atomic storage migrate` before you start the agents still skips the setup entirely ([#6679](https://github.com/bastani-inc/atomic/pull/6679)).
78
+ - The storage docs now have one page per backend, for SQLite, JSONL, PostgreSQL setup, PgBouncer, PostgreSQL server tuning and custom adapters, and the old guide links redirect to them ([#6619](https://github.com/bastani-inc/atomic/pull/6619), [#6656](https://github.com/bastani-inc/atomic/pull/6656)).
79
+ - The docs site's changelog page is now built from each release's summary and lists every release ([#6621](https://github.com/bastani-inc/atomic/pull/6621)).
80
+
81
+ ### Fixed
82
+
83
+ - Resuming a session whose blueprint build was cut off because Atomic was killed just as a build step started no longer waits 5 minutes before building a fresh worktree. On Linux and Windows the build lock now records the step's start in the same write that names the step, so the next resume can tell the leftover step is that build's and stop it at once ([#6684](https://github.com/bastani-inc/atomic/pull/6684)).
84
+ - Rebuilding the worktree snapshot index now gives forks that share their parent's history the same links their saves wrote, so snapshot cleanup keeps the same snapshots before and after a rebuild. Before, a fork's entry could come out differently when its session had two entries with the same ID, or an entry whose parent was stored after it. That happens with imported sessions, or after a fork copied its parent's entries in below its own. A save and a rebuild now find an entry's parent with the same lookup, among the entries before it, and the first of two entries with one ID wins in both. Copying a parent's entries into a fork still links them with one statement per block of copied entries, and then checks the fork's links in the same request that rewrites what the fork reads, so it takes the same number of statements whatever the fork's length: detaching a 1,000-entry parent's two forks takes 43 statements on SQLite (41 before) and 51 round trips on PostgreSQL (54 before). Only a fork whose entries share an ID, or name a parent stored after them, is linked again entry by entry ([#6669](https://github.com/bastani-inc/atomic/pull/6669), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
85
+ - A session read now sees a write to that session that the same store started earlier, even if the caller did not wait for the write to finish. Since 0.10.11-alpha.1, reads in a SQLite file or PostgreSQL session store go through a separate reader connection. Because of that, calling `store.append(...)` without awaiting it and then `store.load(...)` could return the session without the appended entries. A read now waits for the same store's unfinished writes to that session first. With none pending, it waits for nothing ([#6632](https://github.com/bastani-inc/atomic/pull/6632)).
86
+ - An extension's `pi.exec` command that was still running when Atomic was killed (for example with `kill -9`, or by the system when memory runs out) no longer keeps running on macOS when the session runs in Atomic's own process, as it does for a project left untrusted. It now ends with the processes it started, as it already did with the default isolated engine. On Linux those processes now end too; before, only the command itself did. A program the command started detached, and anything a command that already finished left running, still keep running ([#6648](https://github.com/bastani-inc/atomic/pull/6648)).
87
+ - On macOS, the standalone `atomic` binary no longer reports a healthy local SQLite store as failed with "unable to open database file (SQLite code 14)" in `atomic storage status` after every Atomic process had closed it, for example right after `atomic storage import`. macOS's SQLite, which that binary uses, would not open a store read-only once its last connection had removed the `-wal` file ([#6622](https://github.com/bastani-inc/atomic/pull/6622)).
88
+ - A process still running Atomic 0.10.10 or 0.10.11-alpha.1 after an in-place update (`npm install -g`, `bun add -g`) no longer fails to open a PostgreSQL session store with "this store needs a newer Atomic" once forks share history in that database. It opens the store, and its forks share their parent's history as in a new process ([#6631](https://github.com/bastani-inc/atomic/pull/6631)).
89
+ - On macOS, a session kept in JSONL session files no longer stops accepting new messages with a "Session conflict" error after the file's modified date is set to an earlier date, for example by `touch` or by a backup or sync tool that restores dates. macOS moves a file's creation date back with it, and Atomic used that date to recognize the session file. Sessions, their indexes and saved diagnostics from earlier versions keep working after the update ([#6647](https://github.com/bastani-inc/atomic/pull/6647), [#4319](https://github.com/bastani-inc/atomic/issues/4319)).
90
+ - A background search of past sessions (`history://`) with a pattern that takes minutes to check no longer holds up other history reads and searches. They used to wait behind it, and could stop with "the time budget ran out" or never finish. Now a slow pattern check moves aside after a fifth of a second, and the other searches carry on ([#6627](https://github.com/bastani-inc/atomic/pull/6627)).
91
+ - On macOS, the interactive TUI no longer shows a line such as "node(31280) MallocStackLogging: can't turn off malloc stack logging because it was not enabled." for each command a session or subagent runs. After the Mac comes under memory pressure, macOS prints it for every process Atomic starts. It's harmless, and Atomic now drops it from the engine's output ([#6643](https://github.com/bastani-inc/atomic/pull/6643)).
92
+ - A session forked under the ID of a deleted session now starts empty, as a session created under that ID already did. Before, if forks still read the deleted session's history, the new session showed that old history mixed into its own. Deleting the last of those forks then also removed the new session's own entries. On PostgreSQL, creating a session under such an ID also no longer deadlocks with a fork of one of those forks made at the same time, including a fork of a fork made while the session was being created. Previously one side was rolled back and ran again ([#6660](https://github.com/bastani-inc/atomic/pull/6660), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
93
+ - A compaction model such as `morph/morph-compactor` no longer has its output thrown away for being long. Before, output over 32,000 estimated tokens (or half of the automatic trigger), or output that left the context above the automatic trigger, failed with "output too long" and the context was cleared instead, so a 275,000-token result on a 1M-token model was lost. A compaction model's output now has no built-in size limit. Only limits you configure apply: `maxTokens` on the compactor model, which has no default, or the endpoint's own options in `compactionParams`, such as Morph's `compression_ratio`. If the output still leaves the context past the automatic trigger, Atomic doesn't compact it again before every tool call in the same turn. If the provider then reports the context is too long, Atomic compacts and retries once, as for any context, and then shows the provider's error. The request timeout still defaults to 120 seconds. Compacted text from an extension's `session_before_compact` hook keeps its limits ([#6649](https://github.com/bastani-inc/atomic/pull/6649), [#6671](https://github.com/bastani-inc/atomic/pull/6671)).
94
+ - On macOS, an agent directory can no longer open another agent directory's session database through a hard link once the database's modified date has been set to an earlier date ([#6661](https://github.com/bastani-inc/atomic/pull/6661), [#4319](https://github.com/bastani-inc/atomic/issues/4319)).
95
+ - Forking one of a deleted session's forks back into the deleted session's ID now works. It used to fail with "Invalid fork segment" ([#6676](https://github.com/bastani-inc/atomic/pull/6676), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
96
+ - A process still running Atomic 0.10.10 or 0.10.11-alpha.1 after an in-place update no longer deletes worktree snapshots that a fork shares with its parent when it cleans up old snapshots, for example after the parent session is deleted. The database now refuses to delete a snapshot that a fork still uses, so the fork can still restore it. Once no fork uses it, it is cleaned up as before ([#6657](https://github.com/bastani-inc/atomic/pull/6657)).
97
+ - On PostgreSQL, replacing a session's history in a session store no longer deadlocks with a fork of one of that session's forks made at the same time. Previously one of the two was rolled back and ran again ([#6682](https://github.com/bastani-inc/atomic/pull/6682), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
98
+
99
+ ### Removed
100
+
101
+ - Removed the `@bastani/atomic-storage-libsql` adapter. It is no longer published with Atomic releases ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
102
+ - `atomic storage join` and `atomic storage migrate --db` now take only `postgres://` and `postgresql://` URLs ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
103
+
5
104
  ## [0.10.11-alpha.2] - 2026-11-26
6
105
 
7
106
  Forks in a SQLite, libSQL or PostgreSQL session store now read their parent's history instead of copying it, and session and Intercom stores make fewer round trips.
package/README.md CHANGED
@@ -19,7 +19,7 @@
19
19
 
20
20
  Atomic is a terminal coding-agent runtime. Use built-in tools for file edits and shell commands, [codemode](docs/codemode.md) to script multi-step checks, and [subagents](docs/subagents.md) to delegate work to isolated contexts. Extend Atomic with TypeScript [extensions](#extensions), [skills](#skills), [prompt templates](#prompt-templates), and [themes](#themes), or share them as [Atomic packages](#atomic-packages) via npm or git.
21
21
 
22
- Atomic bundles first-party integrations for [subagents](docs/subagents.md), [MCP servers](docs/mcp-servers.md), [web access](docs/web-access.md), and [Intercom](docs/intercom.md). Sessions save to local SQLite by default or share state across machines over PostgreSQL or libSQL/Turso ([Storage](docs/storage.md)), with [worktree snapshots](docs/worktree-snapshots.md) and [environment blueprints](docs/guides/resume-on-any-machine.md#set-the-environment-up-with-a-blueprint) for cross-machine resume. See [Orchestration](docs/orchestration.md) for multi-step tasks and [Migrating workflows](docs/orchestration/migrating-workflows.md) to convert an earlier workflow file to a skill.
22
+ Atomic bundles first-party integrations for [subagents](docs/subagents.md), [MCP servers](docs/mcp-servers.md), [web access](docs/web-access.md), and [Intercom](docs/intercom.md). Sessions save to local SQLite by default, or several machines can share them through one PostgreSQL database ([Storage](docs/storage.md)), with [worktree snapshots](docs/worktree-snapshots.md) and [environment blueprints](docs/guides/resume-on-any-machine.md#set-the-environment-up-with-a-blueprint) for cross-machine resume. See [Orchestration](docs/orchestration.md) for multi-step tasks and [Migrating workflows](docs/orchestration/migrating-workflows.md) to convert an earlier workflow file to a skill.
23
23
 
24
24
  Run Atomic interactively, in print or JSON mode, over RPC for process integration, or embedded through the TypeScript SDK.
25
25
 
@@ -215,7 +215,7 @@ Sessions store an append-only tree of entries (`id` and `parentId`), enabling in
215
215
 
216
216
  ### Management
217
217
 
218
- Sessions auto-save per working directory in the default local SQLite store (`~/.atomic/workflows/journal.sqlite`), or in a shared PostgreSQL or Turso/libSQL database via [Storage backends](docs/storage.md). Legacy `~/.atomic/agent/sessions/` and `~/.pi/agent/sessions/` JSONL files remain readable.
218
+ Sessions auto-save per working directory in the default local SQLite store (`~/.atomic/workflows/journal.sqlite`), or in a shared PostgreSQL database. See [Storage](docs/storage.md). Legacy `~/.atomic/agent/sessions/` and `~/.pi/agent/sessions/` JSONL files remain readable.
219
219
 
220
220
  ```bash
221
221
  atomic -c # Continue the most recent session
@@ -428,7 +428,7 @@ See [docs/packages.md](docs/packages.md).
428
428
  import { createAgentSession } from "@bastani/atomic";
429
429
 
430
430
  // Builds a ModelRuntime from the active agent directory's auth.json and models.json by default.
431
- // Pass `sessionStore` for SQLite, JSONL, in-memory, libSQL/Turso, or PostgreSQL persistence.
431
+ // Pass `sessionStore` for SQLite, JSONL, in-memory, or PostgreSQL persistence.
432
432
  const { session } = await createAgentSession({
433
433
  sessionStore: { kind: "sqlite", path: "./sessions.sqlite" },
434
434
  });
@@ -440,7 +440,7 @@ try {
440
440
  }
441
441
  ```
442
442
 
443
- - **Storage backends:** Configure SQLite, JSONL, in-memory, libSQL/Turso (`@bastani/atomic-storage-libsql`), and PostgreSQL 16+ (`@bastani/atomic-storage-postgres`) with `createAgentSession()` or `createAgentSessionRuntime()`. See [SDK storage backends](docs/sdk/storage.md) ([docs.bastani.ai/sdk/storage](https://docs.bastani.ai/sdk/storage)).
443
+ - **Storage backends:** Configure SQLite, JSONL, in-memory, and PostgreSQL 16+ (`@bastani/atomic-storage-postgres`) stores with `createAgentSession()` or `createAgentSessionRuntime()`. See [SDK storage backends](docs/sdk/storage.md) ([docs.bastani.ai/sdk/storage](https://docs.bastani.ai/sdk/storage)).
444
444
  - **Structured decisions:** Make typed, schema-validated classifier or chat decisions without starting a session using `decide()` and `generateStructuredOutput()`. See [Structured decisions](docs/sdk/structured-decisions.md).
445
445
  - **Multi-session runtimes and guides:** See [docs/sdk.md](docs/sdk.md), [docs/sdk/web-server.md](docs/sdk/web-server.md), and [examples/sdk/](examples/sdk/).
446
446
 
@@ -493,7 +493,7 @@ atomic config [-l] # Enable/disable package resources
493
493
  atomic auth <login|logout|check|print-api-key|print-bearer-token>
494
494
  atomic mcp <add|remove|list|login|logout>
495
495
  atomic storage <status|join|migrate|move-snapshot-chunks|search-session|export|import>
496
- atomic team <join|status|leave>
496
+ atomic team status
497
497
  atomic intercom <status|restart|upgrade>
498
498
  atomic blueprint <cache-key|prebuild> # Environment blueprint cache keys and worktree prebuilds
499
499
  ```
@@ -627,8 +627,6 @@ When both an `ATOMIC_*` variable and its legacy `PI_*` alias are set, the `ATOMI
627
627
  | `ATOMIC_CODING_AGENT_SESSION_DIR` | Non-empty value selects a JSONL session directory (overridden by `--session-dir` and `--no-session`; no legacy `PI_*` alias). |
628
628
  | `ATOMIC_STORAGE` | Shared storage selection JSON for sessions and Intercom. |
629
629
  | `ATOMIC_SESSIONS_STORAGE` | Session-only storage selection JSON (conflicts with `ATOMIC_CODING_AGENT_SESSION_DIR`). |
630
- | `ATOMIC_PROFILE` | Set to `ci` to select the team database from `ATOMIC_TEAM_*` without writing settings. |
631
- | `ATOMIC_TEAM_URL`, `ATOMIC_TEAM_TOKEN`, `ATOMIC_TEAM_TOKEN_FILE`, `ATOMIC_TEAM_PREFIX` | Team database settings used with `ATOMIC_PROFILE=ci`. |
632
630
  | `ATOMIC_PACKAGE_DIR` | Override package directory (for Nix/Guix store paths; legacy `PI_PACKAGE_DIR`). |
633
631
  | `ATOMIC_OFFLINE` | Set to `1`, `true`, or `yes` to disable startup network calls (`0`/`false` stays online; legacy `PI_OFFLINE`). |
634
632
  | `ATOMIC_SKIP_VERSION_CHECK` | Skip startup version check (legacy `PI_SKIP_VERSION_CHECK`). |
@@ -666,5 +664,4 @@ MIT
666
664
  - [@bastani/atomic-codemode](https://www.npmjs.com/package/@bastani/atomic-codemode): Sandboxed JavaScript execution for tool scripting
667
665
  - [@bastani/atomic-schema](https://www.npmjs.com/package/@bastani/atomic-schema): TypeScript-first JSON Schema builder and validator
668
666
  - [@bastani/atomic-telemetry](https://www.npmjs.com/package/@bastani/atomic-telemetry): Vendor-neutral telemetry contracts, metrics, and trace renderers ([docs](docs/libraries/telemetry.md))
669
- - [@bastani/atomic-storage-libsql](https://www.npmjs.com/package/@bastani/atomic-storage-libsql): Optional Turso / libSQL storage adapter ([docs](docs/libraries/storage-libsql.md))
670
667
  - [@bastani/atomic-storage-postgres](https://www.npmjs.com/package/@bastani/atomic-storage-postgres): Optional PostgreSQL 16+ storage adapter ([docs](docs/libraries/storage-postgres.md))
@@ -31842,7 +31842,7 @@ function __atomicOnDemandFailed(error, feature) {
31842
31842
  return (async () => {
31843
31843
  const root = new URL("../", import.meta.url);
31844
31844
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
31845
- const key = `${root.href}#0.10.11-alpha.2`;
31845
+ const key = `${root.href}#0.10.11-alpha.3`;
31846
31846
  let release = releases.get(key);
31847
31847
  if (release === undefined) {
31848
31848
  const current = (async () => {
@@ -31870,7 +31870,7 @@ function __atomicOnDemandFailed(error, feature) {
31870
31870
  } catch {
31871
31871
  // No installation to read, as in a bundle of the package: the release the process runs decides.
31872
31872
  }
31873
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : undefined;
31873
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.3" ? installed : running !== undefined && running.version !== "0.10.11-alpha.3" ? "0.10.11-alpha.3" : undefined;
31874
31874
  if (updatedTo === undefined) throw error;
31875
31875
  const application = typeof running?.name === "string" ? running.name : "atomic";
31876
31876
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -40,7 +40,7 @@ function __atomicOnDemandFailed(error, feature) {
40
40
  return (async () => {
41
41
  const root = new URL("../", import.meta.url);
42
42
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
43
- const key = `${root.href}#0.10.11-alpha.2`;
43
+ const key = `${root.href}#0.10.11-alpha.3`;
44
44
  let release = releases.get(key);
45
45
  if (release === undefined) {
46
46
  const current = (async () => {
@@ -68,7 +68,7 @@ function __atomicOnDemandFailed(error, feature) {
68
68
  } catch {
69
69
  // No installation to read, as in a bundle of the package: the release the process runs decides.
70
70
  }
71
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : undefined;
71
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.3" ? installed : running !== undefined && running.version !== "0.10.11-alpha.3" ? "0.10.11-alpha.3" : undefined;
72
72
  if (updatedTo === undefined) throw error;
73
73
  const application = typeof running?.name === "string" ? running.name : "atomic";
74
74
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -5131,7 +5131,7 @@ function __atomicOnDemandFailed(error, feature) {
5131
5131
  return (async () => {
5132
5132
  const root = new URL("../", import.meta.url);
5133
5133
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
5134
- const key = `${root.href}#0.10.11-alpha.2`;
5134
+ const key = `${root.href}#0.10.11-alpha.3`;
5135
5135
  let release = releases.get(key);
5136
5136
  if (release === undefined) {
5137
5137
  const current = (async () => {
@@ -5159,7 +5159,7 @@ function __atomicOnDemandFailed(error, feature) {
5159
5159
  } catch {
5160
5160
  // No installation to read, as in a bundle of the package: the release the process runs decides.
5161
5161
  }
5162
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : undefined;
5162
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.3" ? installed : running !== undefined && running.version !== "0.10.11-alpha.3" ? "0.10.11-alpha.3" : undefined;
5163
5163
  if (updatedTo === undefined) throw error;
5164
5164
  const application = typeof running?.name === "string" ? running.name : "atomic";
5165
5165
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -1,16 +1,16 @@
1
1
  import { __name } from "./rolldown-runtime-BGM3D5V3.js";
2
2
  import { APP_NAME, APP_TITLE, CHANGELOG_URL, CONFIG_DIR_NAME, UpdatedInstallError, VERSION, VERSION_ADOPTION_ENDPOINT, canonicalizePathAsync, createChildProcessEnvironment, createModuleRequire, detectInstallChangeAsync, engineHeapRuntimeArgsForHost, findHelperExecutableAsync, getAgentDir, getAuthPath, getChangelogPath, getCwdRelativePath, getDebugLogPath, getDocsPath, getShareViewerUrl, helperLaunchAsync, isModuleLoadFailure, loadOnDemand, markLifecycleTiming, missingHelperOptions, processCompileCacheDeferral, setDebugSetting, shortenHomePath, updatedInstallError } from "./p0-cli-BB45ZQY6.js";
3
- import { BUILTIN_SLASH_COMMANDS, BUNDLED_EXTENSION_SLASH_COMMANDS, CountdownTimer, DynamicBorder, MissingSessionCwdError, NO_QUEUED_MESSAGES, TrustDecisionSelector, asyncScope, carryRowSource, chatPosition, chatReceipt, deduplicateDiagnostics, findProviderDefaultModel, formatMissingSessionCwdPrompt, formatNoModelsAvailableMessage, getEngineSessionStats, getMissingSessionCwdOptions, getPiUserAgent, isGitUnavailableError, isInstallTelemetryEnabled, isInteractiveEngineResourceReadinessError, isPathInside, isTrustDecision, isUnknownModel, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, noteRowSource, noteSavedSeq, onSessionProviderRequestDispatched, parseSlashCommand, placeTranscriptFrame, projectTrustWarningVisible, queuedMessagesUnderWay, quitAsInteractiveApp, recordStartupThinkingLevel, rowSource, safeTrustChoiceIndex, savedRowKey, savedSeqOf, setDeprecationWarningSink, setMarkitDiagnosticSink, shouldRenderEngineDiagnosticAsChatError, takeQueuedMessagesDroppedAt, usageCostBreakdown, userMessageOrigin, yieldToEventLoop, yieldToTimerTurn } from "./startup-0-0-3IXNMFM2.js";
4
- import { ExtensionInputComponent, ExtensionSelectorComponent, ReopenedCompletionHeaders, cancelInitialBinding, createCustomMessage, ensurePngTranscoder, ensureTool, formatResumeTimings, formatToolStatus, getBuiltinExtensionEntryLabel, getPromptCacheTtlMs as getPromptCacheTtlMs$1, initialBindScope, isOfflineModeEnabled, isVerbatimCompactionMessage, isWorkspaceError, latestResumeTimings, normalizeMessageContent, prewarmModelApi, readHostInputFormRequest, registerInitialBindings, stripVerbatimCompactionPrefix, taskPromptHost, thinkingLevelForModelSwitch } from "./startup-0-1-7T2IAE7J.js";
3
+ import { BUILTIN_SLASH_COMMANDS, BUNDLED_EXTENSION_SLASH_COMMANDS, CountdownTimer, DynamicBorder, MissingSessionCwdError, NO_QUEUED_MESSAGES, TrustDecisionSelector, asyncScope, carryRowSource, chatPosition, chatReceipt, deduplicateDiagnostics, findProviderDefaultModel, formatMissingSessionCwdPrompt, formatNoModelsAvailableMessage, getEngineSessionStats, getMissingSessionCwdOptions, getPiUserAgent, isGitUnavailableError, isInstallTelemetryEnabled, isInteractiveEngineResourceReadinessError, isPathInside, isTrustDecision, isUnknownModel, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, noteRowSource, noteSavedSeq, onSessionProviderRequestDispatched, parseSlashCommand, placeTranscriptFrame, projectTrustWarningVisible, queuedMessagesUnderWay, quitAsInteractiveApp, recordStartupThinkingLevel, rowSource, safeTrustChoiceIndex, savedRowKey, savedSeqOf, setDeprecationWarningSink, setMarkitDiagnosticSink, shouldRenderEngineDiagnosticAsChatError, takeQueuedMessagesDroppedAt, usageCostBreakdown, userMessageOrigin, yieldToEventLoop, yieldToTimerTurn } from "./startup-0-0-EZUKEP4Q.js";
4
+ import { ExtensionInputComponent, ExtensionSelectorComponent, ReopenedCompletionHeaders, cancelInitialBinding, createCustomMessage, ensurePngTranscoder, ensureTool, formatResumeTimings, formatToolStatus, getBuiltinExtensionEntryLabel, getPromptCacheTtlMs as getPromptCacheTtlMs$1, initialBindScope, isOfflineModeEnabled, isVerbatimCompactionMessage, isWorkspaceError, latestResumeTimings, normalizeMessageContent, prewarmModelApi, readHostInputFormRequest, registerInitialBindings, stripVerbatimCompactionPrefix, taskPromptHost, thinkingLevelForModelSwitch } from "./startup-0-1-RTOHJFDJ.js";
5
5
  import { KeybindingsManager as KeybindingsManager$1, OVERLAY_ACTIVE_ROW_MARKER, Theme, clickableKeyTextHint, consumeStartupInput, formatKeyText, getAvailableThemes, getAvailableThemesWithPaths, getEditorTheme, getMarkdownTheme, getThemeByName, isNavHelpKey, keyDisplayText, keyHint, keyText, keyTextHint, loadAllHighlightLanguages, navEntryKeyParts, onThemeChange, recordTimeSinceReset, refreshCustomThemes, renderNavKeyOverlay, setRegisteredThemes, slashCommandHint, stopThemeWatcher, theme } from "./p2-shell-main-B2WIALFD.js";
6
- import { ProjectTrustStore, failureDebugFields, getProjectTrustPathAsync, hasTrustRequiringProjectResourcesAsync, reportDebugAsync } from "./p1b-elig-ENCUPKKJ.js";
6
+ import { ProjectTrustStore, failureDebugFields, getProjectTrustPathAsync, hasTrustRequiringProjectResourcesAsync, reportDebugAsync } from "./p1b-elig-TVB5CBLL.js";
7
7
  import { WorkingRunMeter, compactionMeta, findExactModelReferenceMatch, getPowerShellConfigAsync, killSupervisedProcessTrees, killTrackedDetachedChildren, runInProgress, sessionLifetime, showStartupInput, showStartupSelector, taskTranscriptSource } from "./startup-0-2-5QHPCEON.js";
8
8
  import { AtomicWorkedStatusComponent, AtomicWorkingLoader, DEFAULT_WORKING_MESSAGE, buildContextEntries, getOwnerTaskStore, isResumeFailure, parseGitUrl, resolveModelScopeFromModels, resolveModelScopeWithDiagnostics, sessionEntryToDisplayMessages, watchAtomicWorkingClock, watchOwnerTaskStoreBinding } from "./startup-0-3-4ZYBYQNM.js";
9
9
  import { SESSION_HISTORY_SCAN_ENTRIES, findDecisionError, isDecisionConfigError, isRpcRequestAcceptedFailure, isRpcTransportFailure } from "./settings-startup-HXQLSUWM.js";
10
10
  import { readAhead } from "./startup-8-0-34CBHPZH.js";
11
11
  import { CredentialSynchronizationError, DefaultPackageManager, chunkedToolResult, chunkedToolResultEntry, findInitialModel, firstSubagentAttempt, getSkillCatalog, isOAuthLoginCancelled, resolveRestoredModelReference, uncachedCopilotModelHint } from "./startup-0-5-YDW47QX6.js";
12
12
  import { formatModelLabel } from "./startup-0-4-ZMJV547D.js";
13
- import { ENGINE_SHUTDOWN_GRACE_MS, FooterDataProvider, appendBoundedStderr, compareWorktreeSnapshot, currentWorktreeSnapshots, describeExportedSnapshots, describeLastCapture, describeSnapshotExport, describeWorktreeRestoreStatus, describeWorktreeSnapshot, dismissedAgentPanelItems, ownerTaskViewSource, sourceError, subscribeAgentPanel, worktreeRestoreNotices } from "./startup-8-1-X32CYSXB.js";
13
+ import { ENGINE_SHUTDOWN_GRACE_MS, FooterDataProvider, appendBoundedStderr, compareWorktreeSnapshot, currentWorktreeSnapshots, describeExportedSnapshots, describeLastCapture, describeSnapshotExport, describeWorktreeRestoreStatus, describeWorktreeSnapshot, dismissedAgentPanelItems, ownerTaskViewSource, sourceError, subscribeAgentPanel, worktreeRestoreNotices } from "./startup-8-1-LZFXSD3Z.js";
14
14
  import { tryExecuteSessionSlashCommand } from "./startup-15-0-YUKGAC63.js";
15
15
  import { SessionManager } from "./startup-10-0-TDQNBDDL.js";
16
16
  import { IsolatedInteractiveRuntime, SessionImportFileNotFoundError, parseSkillBlock, sessionCloseReason } from "./startup-15-1-4S7FLMNG.js";
@@ -28170,7 +28170,7 @@ function __atomicOnDemandFailed(error, feature) {
28170
28170
  return (async () => {
28171
28171
  const root = new URL("../", import.meta.url);
28172
28172
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
28173
- const key = `${root.href}#0.10.11-alpha.2`;
28173
+ const key = `${root.href}#0.10.11-alpha.3`;
28174
28174
  let release = releases.get(key);
28175
28175
  if (release === undefined) {
28176
28176
  const current = (async () => {
@@ -28198,7 +28198,7 @@ function __atomicOnDemandFailed(error, feature) {
28198
28198
  } catch {
28199
28199
  // No installation to read, as in a bundle of the package: the release the process runs decides.
28200
28200
  }
28201
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : undefined;
28201
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.3" ? installed : running !== undefined && running.version !== "0.10.11-alpha.3" ? "0.10.11-alpha.3" : undefined;
28202
28202
  if (updatedTo === undefined) throw error;
28203
28203
  const application = typeof running?.name === "string" ? running.name : "atomic";
28204
28204
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -1,14 +1,14 @@
1
1
  import "./rolldown-runtime-BGM3D5V3.js";
2
- import { CompactionConfigError, QueuedDeliveryRelay, THINKING_LEVELS, attachJsonlLineReader, bindSavedReadLines, chatReceipt, flushRawStdout, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, onBlueprintBuildFinished, onBlueprintBuildWaiting, outputExtensionLoadErrors, quitAsInteractiveApp, rawStdoutWriteFailed, sliceTail, takeOverStdout, transcriptLayoutOf, userMessageOrigin, waitForRawStdoutBackpressure, withQueuedDeliveryChange, writeRawStdout, yieldToEventLoop } from "./startup-0-0-3IXNMFM2.js";
2
+ import { CompactionConfigError, QueuedDeliveryRelay, THINKING_LEVELS, attachJsonlLineReader, bindSavedReadLines, chatReceipt, flushRawStdout, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, onBlueprintBuildFinished, onBlueprintBuildWaiting, outputExtensionLoadErrors, quitAsInteractiveApp, rawStdoutWriteFailed, sliceTail, takeOverStdout, transcriptLayoutOf, userMessageOrigin, waitForRawStdoutBackpressure, withQueuedDeliveryChange, writeRawStdout, yieldToEventLoop } from "./startup-0-0-EZUKEP4Q.js";
3
3
  import { flushLifecycleTraceAtQuit, getAgentDir, loadOnDemand, markLifecycleTiming, setDebugSetting, startedWithHangupIgnored } from "./p0-cli-BB45ZQY6.js";
4
4
  import { TuiMainScreen, bindBundledHintCommands, isKeyRelease, runAsHintActivation, setCapabilityOverrides, setKeybindings } from "@bastani/atomic-tui";
5
5
  import { KeybindingsManager as KeybindingsManager$1, getEditorTheme, theme } from "./p2-shell-main-B2WIALFD.js";
6
- import { ensurePngTranscoder, hasQuitStoppableCommands, isJsonValue, killQuitStoppableCommandsNow, parseEngineExplicitQuitCommand, parseInteractiveEngineCommand, prewarmModelApi, runCallback, runSynchronousCallback, serializeInteractiveEngineMessage, settingsWriteOwner, taskPromptHost } from "./startup-0-1-7T2IAE7J.js";
6
+ import { ensurePngTranscoder, hasQuitStoppableCommands, isJsonValue, killQuitStoppableCommandsNow, parseEngineExplicitQuitCommand, parseInteractiveEngineCommand, prewarmModelApi, runCallback, runSynchronousCallback, serializeInteractiveEngineMessage, settingsWriteOwner, taskPromptHost } from "./startup-0-1-RTOHJFDJ.js";
7
7
  import { interactiveEngineStartupEnv, isInteractiveEngineChild } from "./p1a-prewarm-XIU57JHF.js";
8
8
  import { CONSOLE_CLOSED_EXIT_CODE, CONSOLE_CLOSED_SHUTDOWN_MS, ChatSessionHost, CustomMessageComponent, KeybindingsReloadCoordinator, RETAINED_TOOL_RENDERERS, STOP_ALL_STATUS_KEY, ToolExecutionComponent, agentPanelReturning, bindAgentPanel, createRpcErrorResponse, createRpcSuccessResponse, disposeRenderer, engineTaskInspectorUi, exitWithStatus, formatRpcErrorMessage, handleSetViewedAgent, installEngineAgentViewBridge, markHintRoutesAsEngine, onTaskDismissed, openLocalAgentViewPort, readTaskCompletionHistory, readTaskPrompts, retainedToolRenderer, rpcShutdownErrorEvent, runHintRoute, runRendererCleanup, sameRows, showAgentPanel, showEngineTaskInspector, stopAllBackgroundWork, themedChatHostStyle, withBlockRenderTime } from "./mode-shared-2QJSCUM6.js";
9
9
  import { killTrackedDetachedChildren, taskTranscriptSource, watchTaskTranscriptBindings } from "./startup-0-2-5QHPCEON.js";
10
10
  import { getOwnerTaskStore, isTaskTurnInterrupted, startInteractiveEngineLiveness, watchOwnerTaskStoreBinding } from "./startup-0-3-4ZYBYQNM.js";
11
- import { FooterDataProvider, dismissedAgentPanelItems, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, onOwnerTaskAction, ownerTaskViewSource, sourceError, subscribeAgentPanel } from "./startup-8-1-X32CYSXB.js";
11
+ import { FooterDataProvider, dismissedAgentPanelItems, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, onOwnerTaskAction, ownerTaskViewSource, sourceError, subscribeAgentPanel } from "./startup-8-1-LZFXSD3Z.js";
12
12
  import { writeSync } from "node:fs";
13
13
  import { ToolBlock } from "./startup-0-4-ZMJV547D.js";
14
14
  import { AsyncLocalStorage } from "node:async_hooks";
@@ -4175,7 +4175,7 @@ function __atomicOnDemandFailed(error, feature) {
4175
4175
  return (async () => {
4176
4176
  const root = new URL("../", import.meta.url);
4177
4177
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
4178
- const key = `${root.href}#0.10.11-alpha.2`;
4178
+ const key = `${root.href}#0.10.11-alpha.3`;
4179
4179
  let release = releases.get(key);
4180
4180
  if (release === undefined) {
4181
4181
  const current = (async () => {
@@ -4203,7 +4203,7 @@ function __atomicOnDemandFailed(error, feature) {
4203
4203
  } catch {
4204
4204
  // No installation to read, as in a bundle of the package: the release the process runs decides.
4205
4205
  }
4206
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : undefined;
4206
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.3" ? installed : running !== undefined && running.version !== "0.10.11-alpha.3" ? "0.10.11-alpha.3" : undefined;
4207
4207
  if (updatedTo === undefined) throw error;
4208
4208
  const application = typeof running?.name === "string" ? running.name : "atomic";
4209
4209
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -1,9 +1,9 @@
1
1
  import { __name } from "./rolldown-runtime-BGM3D5V3.js";
2
2
  import { APP_NAME, CONFIG_DIR_NAME, DebugError, ENV_OFFLINE, ENV_SKIP_VERSION_CHECK, PACKAGE_NAME, canonicalizePathAsync, createChildProcessEnvironment, createModuleRequire, getAgentDir, getBundledInteractiveAssetPathAsync, getEnvValue, getPathComparisonKey, helperLaunchAsync, missingHelperOptions, serializeDebugError, shortenHomePath, stripBom } from "./p0-cli-BB45ZQY6.js";
3
- import { BUILTIN_SLASH_COMMANDS, CompactionError, CountdownTimer, DEFAULT_MAX_BYTES, DynamicBorder, FramedSelector, HOST_NOTICE_TYPE, INTERACTIVE_MODEL_REFRESH_TIMEOUT_MS, Selector, TASK_MARKS, TaskMessageError, VERBATIM_COMPACTION_STRATEGY, addHistoryUsageToTotals, addUsageToTotals, allToolNames, areExperimentalFeaturesEnabled, backgroundTaskScope, bindSavedTaskRowKey, carryRowSource, chatReceipt, chatReceiptWrite, createUsageTotals, defaultModelPerProvider, fetchWithRetry, formatReadLineRange, formatTokenCount, getEngineSessionStats, getTextOutput, getToolExecutionStartedAt, hostNoticeForEvent, isMissingSessionCwdError, isTaskMessageError, keptTaskId, noteRowSource, noteSavedSeq, parseSlashCommand, queueUpdateDeliveries, queuedReceiptsUnderWay, queuedTextsUnderWay, raceWithAbortSignal, replaceTabs, rowSource, savedReadLines, savedRowKey, savedRowSpan, savedSeqOf, savedTaskRowKey, savedTaskRows, serializeCompactionError, serializeMissingSessionCwdError, sessionWaitsToRetry, sqliteSessionResumeArgs, taskMark, taskOutcomeStatus } from "./startup-0-0-3IXNMFM2.js";
4
- import { ExtensionInputComponent, ExtensionSelectorComponent, SUMMARY_COMPACTION_PREFIX, TaskElapsedClocks, bindTaskClock, createVerbatimCompactionMessage, ensurePngTranscoder, getToolPath, heldPrompts, isVerbatimCompactionMessage, reopenedCompletionName, repairOrphanToolResults, shownSpanMs, stripVerbatimCompactionPrefix, taskClockOf, taskClockRunning, taskClocksFor, taskElapsedMs, thinkingLevelForModelSwitch } from "./startup-0-1-7T2IAE7J.js";
3
+ import { BUILTIN_SLASH_COMMANDS, CompactionError, CountdownTimer, DEFAULT_MAX_BYTES, DynamicBorder, FramedSelector, HOST_NOTICE_TYPE, INTERACTIVE_MODEL_REFRESH_TIMEOUT_MS, Selector, TASK_MARKS, TaskMessageError, VERBATIM_COMPACTION_STRATEGY, addHistoryUsageToTotals, addUsageToTotals, allToolNames, areExperimentalFeaturesEnabled, backgroundTaskScope, bindSavedTaskRowKey, carryRowSource, chatReceipt, chatReceiptWrite, createUsageTotals, defaultModelPerProvider, fetchWithRetry, formatReadLineRange, formatTokenCount, getEngineSessionStats, getTextOutput, getToolExecutionStartedAt, hostNoticeForEvent, isMissingSessionCwdError, isTaskMessageError, keptTaskId, noteRowSource, noteSavedSeq, parseSlashCommand, queueUpdateDeliveries, queuedReceiptsUnderWay, queuedTextsUnderWay, raceWithAbortSignal, replaceTabs, rowSource, savedReadLines, savedRowKey, savedRowSpan, savedSeqOf, savedTaskRowKey, savedTaskRows, serializeCompactionError, serializeMissingSessionCwdError, sessionWaitsToRetry, sqliteSessionResumeArgs, taskMark, taskOutcomeStatus } from "./startup-0-0-EZUKEP4Q.js";
4
+ import { ExtensionInputComponent, ExtensionSelectorComponent, SUMMARY_COMPACTION_PREFIX, TaskElapsedClocks, bindTaskClock, createVerbatimCompactionMessage, ensurePngTranscoder, getToolPath, heldPrompts, isVerbatimCompactionMessage, reopenedCompletionName, repairOrphanToolResults, shownSpanMs, stripVerbatimCompactionPrefix, taskClockOf, taskClockRunning, taskClocksFor, taskElapsedMs, thinkingLevelForModelSwitch } from "./startup-0-1-RTOHJFDJ.js";
5
5
  import { CodeHighlighter, KeybindingsManager as KeybindingsManager$1, NAV_CONFIRM_WINDOW_MS, SYSTEM_THEME_NAME, TwoPressConfirm, clickableKeyTextHint, colorEnvironment, formatKeyText, getCurrentThemeName, getEditorTheme, getGlobalTheme, getMarkdownTheme, getTerminalTheme, initTheme, isLightTheme, isNavHelpKey, keyDisplayText, keyHint, keyHintIfBound, keyText, keyTextHint, keybindingIdentity, markTerminalColorsPending, navActionText, navFirstKeyText, navKeyText, parenthesizedKeyHint, parseAutoThemeSetting, renderNavHintLine, renderNavKeyOverlay, resolveThemeSetting, sanitizeTerminalText, setTerminalColorScheme, setTerminalColors, setTheme, setThemeInstance, singleLineDisplayText, slashCommandHint, terminalDisplayText, theme } from "./p2-shell-main-B2WIALFD.js";
6
- import { isDebugEnabled, projectTrustOptionsFor } from "./p1b-elig-ENCUPKKJ.js";
6
+ import { isDebugEnabled, projectTrustOptionsFor } from "./p1b-elig-TVB5CBLL.js";
7
7
  import { AgentTokenMeter, WorkingRunMeter, agentTokenTotal, compactionMeta, formatWorkingElapsed, loadTaskOwnTranscriptHistory, normalizeWorkingRunSnapshot, observedTaskChatWrite, runInProgress, taskChatPage, taskOwnTranscriptEntries, taskTranscriptSource, withTaskChatRows } from "./startup-0-2-5QHPCEON.js";
8
8
  import { AtomicWorkedStatusComponent, AtomicWorkingStatusComponent, DEFAULT_WORKING_MESSAGE, OwnerTaskStore, assertSessionNotOpenElsewhere, atomicWorkingFrame, atomicWorkingGlyph, getOwnerTaskSession, getOwnerTaskStore, isTaskTurnInterrupted, parseGitUrl, setTaskTurnInterrupted, watchAtomicWorkingClock, watchOwnerTaskStoreBinding, workingMessageColumns } from "./startup-0-3-4ZYBYQNM.js";
9
9
  import { isRpcRequestAcceptedFailure } from "./settings-startup-HXQLSUWM.js";
@@ -11,7 +11,7 @@ import { lastAssistantAnswer } from "./startup-8-0-34CBHPZH.js";
11
11
  import { CredentialSynchronizationError, QuestionnaireSession, buildItemsForQuestion, childOfAttempt, completionTitleDescription, completionTitleText, firstSubagentAttempt, formatTaskHeartbeatDuration, formatTaskHeartbeatStatus, getSkillCatalog, isResumableStop, latestSubagentAttempt, latestSubagentAttempts, releasedWaitingOn, require_semver, settledTaskResumeId, supersededSettledAttempts, taskHeartbeatKindLabel, taskNoticeLine, waitingReleasedShells, waitingReleasedTools } from "./startup-0-5-YDW47QX6.js";
12
12
  import { DETAIL_FIRST_PREFIX, DETAIL_PREFIX, NoticeLine, STATUS_MARKERS, TOOL_BLOCK_LIMITS, ToolBlock, ToolBlockMarkdown, ToolBlockRecords, collapseToolBlockLines, componentNeedsWorkingClock, formatModelLabel, isToolBlock, markdownPreviewRows } from "./startup-0-4-ZMJV547D.js";
13
13
  import { SETTINGS_DEFAULTS } from "./p2-common-YLSYXMDQ.js";
14
- import { EVENT_REPORT_MESSAGE_TYPE, agentPanelExtensionItems, agentPanelSourceHubOf, agentPanelSourcesGeneration, agentPanelTaskId, answerAgentPanelItem, builtinToolBlockPresentation, copyPanelItemStableKey, createLoadedToolDefinition, dismissedAgentPanelItems, formatToolBlockElapsed, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, isInterruptedPanelTask, launchedTaskViewSource, lazyTaskPanelItem, liveTaskRowOrigin, markInterruptedPanelTask, materializePanelItem, modelHasReasoning, notifyAgentPanelChanged, openAgentPanelItem, ownerTaskViewSource, panelItemStableKey, pathExists, plainNoticeBlock, promptAnswerOptionsOf, readTaskDetailForView, readTaskPageForChat, readTaskPageForView, retainTaskWindowReader, sampleAgentPanelSources, savedBoundaryCursor, shortTaskTitle, sourceError, stopAgentPanelItem, subscribeAgentPanel, subscribeAgentPanelExtensions, taskCursorsAround, taskPanelItem, taskPanelItems, taskPanelModel, taskPanelRole, taskPanelState, taskRunGeneration, taskTranscriptFragments } from "./startup-8-1-X32CYSXB.js";
14
+ import { EVENT_REPORT_MESSAGE_TYPE, agentPanelExtensionItems, agentPanelSourceHubOf, agentPanelSourcesGeneration, agentPanelTaskId, answerAgentPanelItem, builtinToolBlockPresentation, copyPanelItemStableKey, createLoadedToolDefinition, dismissedAgentPanelItems, formatToolBlockElapsed, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, isInterruptedPanelTask, launchedTaskViewSource, lazyTaskPanelItem, liveTaskRowOrigin, markInterruptedPanelTask, materializePanelItem, modelHasReasoning, notifyAgentPanelChanged, openAgentPanelItem, ownerTaskViewSource, panelItemStableKey, pathExists, plainNoticeBlock, promptAnswerOptionsOf, readTaskDetailForView, readTaskPageForChat, readTaskPageForView, retainTaskWindowReader, sampleAgentPanelSources, savedBoundaryCursor, shortTaskTitle, sourceError, stopAgentPanelItem, subscribeAgentPanel, subscribeAgentPanelExtensions, taskCursorsAround, taskPanelItem, taskPanelItems, taskPanelModel, taskPanelRole, taskPanelState, taskRunGeneration, taskTranscriptFragments } from "./startup-8-1-LZFXSD3Z.js";
15
15
  import { queuedMessageReceipt, queuedMessageReceiptId, queuedMessageSaved } from "./startup-15-0-YUKGAC63.js";
16
16
  import { SessionManager } from "./startup-10-0-TDQNBDDL.js";
17
17
  import { isTruthyEnvFlag } from "./p1a-prewarm-XIU57JHF.js";
@@ -27319,7 +27319,7 @@ function __atomicOnDemandFailed(error, feature) {
27319
27319
  return (async () => {
27320
27320
  const root = new URL("../", import.meta.url);
27321
27321
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
27322
- const key = `${root.href}#0.10.11-alpha.2`;
27322
+ const key = `${root.href}#0.10.11-alpha.3`;
27323
27323
  let release = releases.get(key);
27324
27324
  if (release === undefined) {
27325
27325
  const current = (async () => {
@@ -27347,7 +27347,7 @@ function __atomicOnDemandFailed(error, feature) {
27347
27347
  } catch {
27348
27348
  // No installation to read, as in a bundle of the package: the release the process runs decides.
27349
27349
  }
27350
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : undefined;
27350
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.3" ? installed : running !== undefined && running.version !== "0.10.11-alpha.3" ? "0.10.11-alpha.3" : undefined;
27351
27351
  if (updatedTo === undefined) throw error;
27352
27352
  const application = typeof running?.name === "string" ? running.name : "atomic";
27353
27353
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -14,8 +14,45 @@ import { pathExists } from "../utils/path-exists.js";
14
14
  import { appendFileSync, existsSync as existsSync$1, mkdirSync as mkdirSync$1, readFileSync as readFileSync$1, rmSync as rmSync$1 } from "node:fs";
15
15
  import { Worker } from "node:worker_threads";
16
16
  import { EVAL_WORKER_BUILTIN, evalWorkerExecArgv } from "../utils/worker-threads.js";
17
- import { cachedDataVersionTag, getHeapStatistics, setFlagsFromString } from "node:v8";
17
+ import { cachedDataVersionTag, getHeapStatistics } from "node:v8";
18
18
  import { nodeOptionsFromEnvironment, splitNodeOptions, startupNodeOptions } from "@bastani/atomic-codemode/node-options";
19
+ // dist/utils/node-version-floor.js
20
+ /**
21
+ * The oldest Node.js an npm install of Atomic runs on: the floor of package.json's `engines.node`. npm only warns when
22
+ * the running Node.js is older, and Atomic would then fail later with an error that does not name the cause, so the CLI
23
+ * refuses it at startup instead. The release archive runs on the Bun runtime it bundles, which this does not check.
24
+ */
25
+ const MINIMUM_NODE_VERSION = "24.20.0";
26
+ /** The installation guide's section on which Node.js version Atomic needs and how to upgrade. */
27
+ const NODE_VERSION_GUIDE_URL = "https://docs.bastani.ai/getting-started/installation#nodejs-version";
28
+ function versionParts(version) {
29
+ return version.replace(/^v/, "").split(/[.+-]/, 3).map((part) => Number.parseInt(part, 10) || 0);
30
+ }
31
+ /** The message refusing this runtime when it is Node.js older than `MINIMUM_NODE_VERSION`, otherwise `undefined`. */
32
+ function unsupportedNodeVersionMessage(versions) {
33
+ if (versions.bun !== void 0) return void 0;
34
+ const running = versionParts(versions.node);
35
+ const floor = versionParts(MINIMUM_NODE_VERSION);
36
+ for (let index = 0; index < floor.length; index++) {
37
+ const difference = (running[index] ?? 0) - (floor[index] ?? 0);
38
+ if (difference > 0) return void 0;
39
+ if (difference < 0) return [
40
+ `Atomic needs Node.js ${MINIMUM_NODE_VERSION} or newer, but this is Node.js ${versions.node}.`,
41
+ "Install the current Node.js 24 LTS release, then reinstall Atomic with `npm install -g @bastani/atomic`.",
42
+ `See ${NODE_VERSION_GUIDE_URL}`
43
+ ].join("\n");
44
+ }
45
+ }
46
+ // dist/node-version-check.js
47
+ /**
48
+ * Refuses a Node.js older than Atomic's floor before the rest of the CLI loads. `cli.ts` imports this module first, so it
49
+ * runs before the modules that would fail on that Node.js.
50
+ */
51
+ const message = unsupportedNodeVersionMessage(process.versions);
52
+ if (message !== void 0) {
53
+ process.stderr.write(`${message}\n`);
54
+ process.exit(1);
55
+ }
19
56
  // dist/core/builtin-install-layout.js
20
57
  const BUILTIN_PACKAGE_DIR_NAMES = [
21
58
  "subagents",
@@ -2213,9 +2250,7 @@ var compile_cache_exports = /* @__PURE__ */ __exportAll({
2213
2250
  compileCacheWarmMarker: () => compileCacheWarmMarker,
2214
2251
  currentCompileCacheWarmMarker: () => currentCompileCacheWarmMarker,
2215
2252
  enablePersistentCompileCache: () => enablePersistentCompileCache,
2216
- engineCompileCacheResetHeapMb: () => engineCompileCacheResetHeapMb,
2217
2253
  flushPersistentCompileCache: () => flushPersistentCompileCache,
2218
- hostAutoSizedEngineHeap: () => hostAutoSizedEngineHeap,
2219
2254
  isCiValue: () => isCiValue,
2220
2255
  startsCompileCacheHelper: () => startsCompileCacheHelper
2221
2256
  });
@@ -2223,7 +2258,6 @@ const __atomicDistModuleUrl$2 = new URL("../utils/compile-cache.js", import.meta
2223
2258
  const compileCacheApi = nodeModule;
2224
2259
  const COMPILE_CACHE_ENGINE_WARMUP_ENV = "ATOMIC_INTERNAL_COMPILE_CACHE_WARMUP";
2225
2260
  const COMPILE_CACHE_ENGINE_MATCH_HOST_ENV = "ATOMIC_INTERNAL_COMPILE_CACHE_MATCH_HOST";
2226
- const ENGINE_WORKER_HEAP_MB_SYMBOL = /* @__PURE__ */ Symbol.for("atomic.engine-worker-heap-mb.v1");
2227
2261
  function compileCacheStartMode(input) {
2228
2262
  if (input.platform !== "win32" || input.runtimeIsBun || input.unsupported) return "enable";
2229
2263
  if (input.alreadyEnabled || input.disabled || !input.interactive || !input.helperRuntime) return "enable";
@@ -2238,12 +2272,6 @@ function isCiValue(value) {
2238
2272
  return normalized !== "" && normalized !== "0" && normalized !== "false";
2239
2273
  }
2240
2274
  const HEAP_SIZE_FLAG = /^--max[-_]old[-_]space[-_]size=\d+$/;
2241
- const HEAP_SIZE_OPTION_NAMES = /* @__PURE__ */ new Set([
2242
- "--max-old-space-size",
2243
- "--max-old-space-size-percentage",
2244
- "--max-heap-size"
2245
- ]);
2246
- const V8_HEAP_SIZE_OPTION_NAMES = /* @__PURE__ */ new Set(["--max-old-space-size", "--max-heap-size"]);
2247
2275
  const PRELOAD_FLAGS = /* @__PURE__ */ new Set([
2248
2276
  "-r",
2249
2277
  "--require",
@@ -2251,37 +2279,6 @@ const PRELOAD_FLAGS = /* @__PURE__ */ new Set([
2251
2279
  "--loader",
2252
2280
  "--experimental-loader"
2253
2281
  ]);
2254
- function flagsSetHeapSize(flags) {
2255
- for (const flag of flags) {
2256
- if (flag === "--") break;
2257
- if (!flag.startsWith("-")) continue;
2258
- const dashes = flag.startsWith("--") ? 2 : 1;
2259
- const equals = flag.indexOf("=");
2260
- const name = `--${(equals === -1 ? flag : flag.slice(0, equals)).slice(dashes).replaceAll("_", "-")}`;
2261
- if (!HEAP_SIZE_OPTION_NAMES.has(name)) continue;
2262
- if (dashes === 1 && !V8_HEAP_SIZE_OPTION_NAMES.has(name)) continue;
2263
- return true;
2264
- }
2265
- return false;
2266
- }
2267
- function parseAutoHeapMb(flag) {
2268
- if (!HEAP_SIZE_FLAG.test(flag)) return void 0;
2269
- const mb = Number(flag.slice(flag.indexOf("=") + 1));
2270
- return Number.isSafeInteger(mb) && mb > 0 ? mb : void 0;
2271
- }
2272
- function hostAutoSizedEngineHeap(hostExecArgv, nodeOptions, engineRuntimeArgs) {
2273
- if (flagsSetHeapSize(hostExecArgv)) return false;
2274
- const words = splitNodeOptions(nodeOptions ?? "");
2275
- if (!words || flagsSetHeapSize(words)) return false;
2276
- return engineRuntimeArgs.filter((flag) => parseAutoHeapMb(flag) !== void 0 && !hostExecArgv.includes(flag)).length === 1;
2277
- }
2278
- function engineCompileCacheResetHeapMb(input) {
2279
- if (input.runtimeIsBun || input.unsupported || input.alreadyEnabled || input.disabled || !input.matchHostTag) return;
2280
- const words = splitNodeOptions(input.nodeOptions ?? "");
2281
- if (!words || flagsSetHeapSize(words)) return void 0;
2282
- const heapValues = input.execArgv.map(parseAutoHeapMb).filter((mb) => mb !== void 0);
2283
- return heapValues.length === 1 ? heapValues[0] : void 0;
2284
- }
2285
2282
  function keptFlags(flags) {
2286
2283
  const kept = [];
2287
2284
  for (let index = 0; index < flags.length; index++) {
@@ -2340,21 +2337,6 @@ function enablePersistentCompileCache(options = {}) {
2340
2337
  const unsupported = typeof compileCacheApi.enableCompileCache !== "function";
2341
2338
  const alreadyEnabled = compileCacheApi.getCompileCacheDir?.() !== void 0;
2342
2339
  const disabled = process.env.NODE_DISABLE_COMPILE_CACHE !== void 0;
2343
- const resetHeapMb = engineCompileCacheResetHeapMb({
2344
- runtimeIsBun,
2345
- unsupported,
2346
- alreadyEnabled,
2347
- disabled,
2348
- matchHostTag: options.matchHostTag === true,
2349
- execArgv: process.execArgv,
2350
- nodeOptions: process.env.NODE_OPTIONS
2351
- });
2352
- if (resetHeapMb !== void 0) try {
2353
- const beforeTag = cachedDataVersionTag();
2354
- setFlagsFromString("--max-old-space-size=0");
2355
- if (cachedDataVersionTag() === beforeTag) setFlagsFromString(`--max-old-space-size=${resetHeapMb}`);
2356
- else globalThis[ENGINE_WORKER_HEAP_MB_SYMBOL] = resetHeapMb;
2357
- } catch {}
2358
2340
  const runtime = compileCacheHelperRuntime(process.execArgv, process.env);
2359
2341
  const buildId = compileCacheBuildId(`${__atomicDistModuleUrl$2}\0${options.build ?? ""}`);
2360
2342
  if (compileCacheStartMode({
@@ -2399,22 +2381,19 @@ const deferrals = compile_cache_exports;
2399
2381
  function processCompileCacheDeferral() {
2400
2382
  return deferrals.compileCacheDeferral?.();
2401
2383
  }
2384
+ /**
2385
+ * Gives an engine child no environment. Node.js 22 engines needed it to align their compile-cache tag with their host's
2386
+ * (#6222); still exported because a process of 0.10.4 that an in-place update caught imports it from this module's
2387
+ * shared file.
2388
+ */
2389
+ function engineCompileCacheMatchHostEnv(_engineRuntimeArgs) {
2390
+ return {};
2391
+ }
2402
2392
  /** The environment an engine child gets when this process leaves its cold cache to a helper that warms the engine's too. */
2403
2393
  function engineCompileCacheWarmupEnv() {
2404
2394
  const name = deferrals.COMPILE_CACHE_ENGINE_WARMUP_ENV;
2405
2395
  return name !== void 0 && processCompileCacheDeferral() ? { [name]: "1" } : {};
2406
2396
  }
2407
- /**
2408
- * The environment an auto-sized Node engine child gets so on Node 22 it aligns its compile-cache tag with the
2409
- * untouched host (#6222). Omitted on Bun or when the host itself passed an explicit heap size.
2410
- */
2411
- function engineCompileCacheMatchHostEnv(engineRuntimeArgs) {
2412
- if ("bun" in process.versions) return {};
2413
- const name = deferrals.COMPILE_CACHE_ENGINE_MATCH_HOST_ENV;
2414
- const check = deferrals.hostAutoSizedEngineHeap;
2415
- if (name === void 0 || check === void 0) return {};
2416
- return check(process.execArgv, process.env.NODE_OPTIONS, engineRuntimeArgs) ? { [name]: "1" } : {};
2417
- }
2418
2397
  // dist/utils/windows-cwd.js
2419
2398
  /** Safe Win32 path length threshold for `CreateProcessW` `lpCurrentDirectory` without an extended `\\?\` prefix. */
2420
2399
  const SAFE_WINDOWS_CWD_LENGTH = 248;