@bastani/atomic 0.10.11-alpha.1 → 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 (457) hide show
  1. package/CHANGELOG.md +155 -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 +9 -9
  7. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +8 -8
  8. package/dist/_shared/mode-shared-2QJSCUM6.js +9 -9
  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 +5 -5
  16. package/dist/_shared/{sdk-AVFII7NK.js → sdk-B5LEWGGI.js} +2633 -488
  17. package/dist/_shared/sdk-B5LEWGGI.js.map +1 -0
  18. package/dist/_shared/session-data-AHTU7IS6.js +3 -3
  19. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  20. package/dist/_shared/settings-startup-8-DNZ2RIHM.js +1 -1
  21. package/dist/_shared/{settings-startup-4QCVCI53.js → settings-startup-HXQLSUWM.js} +8 -2
  22. package/dist/_shared/settings-startup-HXQLSUWM.js.map +1 -0
  23. package/dist/_shared/{startup-0-0-57KF6LZH.js → startup-0-0-EZUKEP4Q.js} +436 -51
  24. package/dist/_shared/startup-0-0-EZUKEP4Q.js.map +1 -0
  25. package/dist/_shared/{startup-0-1-GIY75K46.js → startup-0-1-RTOHJFDJ.js} +240 -279
  26. package/dist/_shared/startup-0-1-RTOHJFDJ.js.map +1 -0
  27. package/dist/_shared/{startup-0-2-27OWFHV6.js → startup-0-2-5QHPCEON.js} +254 -46
  28. package/dist/_shared/startup-0-2-5QHPCEON.js.map +1 -0
  29. package/dist/_shared/{startup-0-3-T4DVFYWX.js → startup-0-3-4ZYBYQNM.js} +273 -14
  30. package/dist/_shared/startup-0-3-4ZYBYQNM.js.map +1 -0
  31. package/dist/_shared/startup-0-4-ZMJV547D.js +14 -9
  32. package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -1
  33. package/dist/_shared/startup-0-5-YDW47QX6.js +10 -10
  34. package/dist/_shared/startup-0-5-YDW47QX6.js.map +1 -1
  35. package/dist/_shared/startup-10-0-TDQNBDDL.js +9 -9
  36. package/dist/_shared/startup-12-0-55AAXBJZ.js +3 -3
  37. package/dist/_shared/startup-14-0-MLX36RBG.js +6 -7
  38. package/dist/_shared/startup-14-0-MLX36RBG.js.map +1 -1
  39. package/dist/_shared/startup-15-0-YUKGAC63.js +7 -7
  40. package/dist/_shared/startup-15-1-4S7FLMNG.js +22 -30
  41. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  42. package/dist/_shared/startup-8-0-34CBHPZH.js +455 -102
  43. package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
  44. package/dist/_shared/{startup-8-1-X32CYSXB.js → startup-8-1-LZFXSD3Z.js} +162 -1184
  45. package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +1 -0
  46. package/dist/_shared/storage-command-7MGXLJGZ.js +189 -36
  47. package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
  48. package/dist/_shared/storage-status-K7PX2RXA.js +557 -0
  49. package/dist/_shared/storage-status-K7PX2RXA.js.map +1 -0
  50. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  51. package/dist/_shared/team-DOQKICG2.js +376 -0
  52. package/dist/_shared/team-DOQKICG2.js.map +1 -0
  53. package/dist/_shared/tree-outline-MUEPK5B7.js +3 -3
  54. package/dist/builtin/intercom/CHANGELOG.md +34 -0
  55. package/dist/builtin/intercom/README.md +2 -2
  56. package/dist/builtin/intercom/broker/broker.bundle.mjs +1091 -344
  57. package/dist/builtin/intercom/broker/database-wake-up-bus.ts +243 -64
  58. package/dist/builtin/intercom/broker/multinode-router.ts +154 -22
  59. package/dist/builtin/intercom/broker/multinode-state-store.ts +30 -3
  60. package/dist/builtin/intercom/broker/open-broker-state.ts +14 -0
  61. package/dist/builtin/intercom/broker/sql-add-column.ts +29 -5
  62. package/dist/builtin/intercom/broker/sql-ended-child-queue-store.ts +3 -2
  63. package/dist/builtin/intercom/broker/sql-held-send-store.ts +2 -2
  64. package/dist/builtin/intercom/broker/sql-known-session-store.ts +43 -19
  65. package/dist/builtin/intercom/broker/sql-lease-store.ts +208 -101
  66. package/dist/builtin/intercom/broker/sql-outbox-store.ts +516 -102
  67. package/dist/builtin/intercom/broker/sql-pending-ask-store.ts +8 -5
  68. package/dist/builtin/intercom/broker/sql-released-ask-store.ts +12 -5
  69. package/dist/builtin/intercom/broker/sql-restoring-reservation-store.ts +24 -7
  70. package/dist/builtin/intercom/broker/sql-retention.ts +141 -0
  71. package/dist/builtin/intercom/broker/sql-schema.ts +199 -27
  72. package/dist/builtin/intercom/broker/sql-sent-message-authority.ts +74 -19
  73. package/dist/builtin/intercom/broker/wake-up-bus.ts +6 -0
  74. package/dist/builtin/intercom/index.bundle.mjs +2 -3
  75. package/dist/builtin/intercom/package.json +1 -1
  76. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  77. package/dist/builtin/mcp/package.json +1 -1
  78. package/dist/builtin/subagents/CHANGELOG.md +6 -0
  79. package/dist/builtin/subagents/package.json +1 -1
  80. package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
  81. package/dist/builtin/web-access/index.bundle.mjs +2 -10
  82. package/dist/builtin/web-access/package.json +1 -1
  83. package/dist/bun/bundled-sqlite.js +41 -0
  84. package/dist/bun/bundled-sqlite.js.map +1 -0
  85. package/dist/cli/args.js +2 -2
  86. package/dist/cli/auth-cli.code.js +6 -6
  87. package/dist/cli/auth-cli.impl.js +3 -3
  88. package/dist/cli/auth-cli.js +3 -3
  89. package/dist/cli/blueprint-command.code.js +4 -4
  90. package/dist/cli/blueprint-command.impl.js +3 -3
  91. package/dist/cli/blueprint-command.js +3 -3
  92. package/dist/cli/intercom-command.code.js +4 -4
  93. package/dist/cli/intercom-command.code.js.map +1 -1
  94. package/dist/cli/intercom-command.impl.js +3 -3
  95. package/dist/cli/intercom-command.js +3 -3
  96. package/dist/cli/list-models.code.js +2 -2
  97. package/dist/cli/list-models.impl.js +3 -3
  98. package/dist/cli/list-models.js +3 -3
  99. package/dist/cli/session-picker.code.js +2 -2
  100. package/dist/cli/session-picker.impl.js +3 -3
  101. package/dist/cli/session-picker.js +3 -3
  102. package/dist/cli/startup-ui.code.js +2 -2
  103. package/dist/cli/startup-ui.impl.js +3 -3
  104. package/dist/cli/startup-ui.js +3 -3
  105. package/dist/cli/storage-command.impl.js +3 -3
  106. package/dist/cli/storage-command.js +3 -3
  107. package/dist/cli/storage-search-session.code.js +3 -3
  108. package/dist/cli/storage-search-session.impl.js +3 -3
  109. package/dist/cli/storage-search-session.js +3 -3
  110. package/dist/cli/team-command.code.js +20 -114
  111. package/dist/cli/team-command.code.js.map +1 -1
  112. package/dist/cli/team-command.impl.js +3 -3
  113. package/dist/cli/team-command.js +3 -3
  114. package/dist/cli.js +5 -18
  115. package/dist/cli.js.map +1 -1
  116. package/dist/core/agent-rehydrate-errors.d.ts +4 -9
  117. package/dist/core/compaction/compactor.d.ts +3 -3
  118. package/dist/core/debug.code.js +1 -1
  119. package/dist/core/debug.impl.js +3 -3
  120. package/dist/core/debug.js +3 -3
  121. package/dist/core/export-html/card-projection.impl.js +3 -3
  122. package/dist/core/export-html/card-projection.js +3 -3
  123. package/dist/core/export-html/index.code.js +2 -2
  124. package/dist/core/export-html/index.impl.js +3 -3
  125. package/dist/core/export-html/index.js +3 -3
  126. package/dist/core/export-html/json-spans.impl.js +3 -3
  127. package/dist/core/export-html/json-spans.js +3 -3
  128. package/dist/core/export-html/oversized-render-inputs.code.js +1 -1
  129. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  130. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  131. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  132. package/dist/core/export-html/tool-renderer.js +3 -3
  133. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  134. package/dist/core/extensions/jiti-loader.js +3 -3
  135. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  136. package/dist/core/extensions/jiti-static-loader.js +3 -3
  137. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  138. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  139. package/dist/core/extensions/loader-host-modules.js +3 -3
  140. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  141. package/dist/core/extensions/runner-context.js +3 -3
  142. package/dist/core/intercom-broker-control-host.code.js +2 -2
  143. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  144. package/dist/core/intercom-broker-control-host.js +3 -3
  145. package/dist/core/intercom-broker-control.code.js +3 -3
  146. package/dist/core/intercom-broker-control.impl.js +3 -3
  147. package/dist/core/intercom-broker-control.js +3 -3
  148. package/dist/core/package-manager-storage-adapters.code.js +1 -1
  149. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  150. package/dist/core/package-manager-storage-adapters.js +3 -3
  151. package/dist/core/process-start-token.d.ts +8 -0
  152. package/dist/core/process-tree-containment.d.ts +16 -0
  153. package/dist/core/sdk-types.d.ts +1 -2
  154. package/dist/core/sdk-types.js.map +1 -1
  155. package/dist/core/sdk.code.js +4 -4
  156. package/dist/core/sdk.impl.js +3 -3
  157. package/dist/core/sdk.js +3 -3
  158. package/dist/core/session-manager-core.js +27 -15
  159. package/dist/core/session-manager-core.js.map +1 -1
  160. package/dist/core/session-manager-list.impl.js +3 -3
  161. package/dist/core/session-manager-list.js +3 -3
  162. package/dist/core/session-manager.code.js +3 -3
  163. package/dist/core/session-manager.impl.js +3 -3
  164. package/dist/core/session-manager.js +3 -3
  165. package/dist/core/session-open-markers.js +3 -0
  166. package/dist/core/session-open-markers.js.map +1 -0
  167. package/dist/core/session-storage.code.js +1 -1
  168. package/dist/core/session-storage.impl.js +3 -3
  169. package/dist/core/session-storage.js +3 -3
  170. package/dist/core/settings-schema.d.ts +0 -3
  171. package/dist/core/storage/added-exports-0-10-11.js +19 -0
  172. package/dist/core/storage/added-exports-0-10-11.js.map +1 -0
  173. package/dist/core/storage/added-exports.js +3 -0
  174. package/dist/core/storage/added-exports.js.map +1 -1
  175. package/dist/core/storage/creation-time.js +105 -0
  176. package/dist/core/storage/creation-time.js.map +1 -0
  177. package/dist/core/storage/database.d.ts +56 -5
  178. package/dist/core/storage/database.js.map +1 -1
  179. package/dist/core/storage/dialect.d.ts +1 -1
  180. package/dist/core/storage/dialect.js +1 -1
  181. package/dist/core/storage/dialect.js.map +1 -1
  182. package/dist/core/storage/errors.d.ts +13 -13
  183. package/dist/core/storage/errors.js +10 -16
  184. package/dist/core/storage/errors.js.map +1 -1
  185. package/dist/core/storage/fenced-paths.d.ts +11 -0
  186. package/dist/core/storage/fenced-paths.js +11 -0
  187. package/dist/core/storage/fenced-paths.js.map +1 -1
  188. package/dist/core/storage/file-identity.d.ts +2 -0
  189. package/dist/core/storage/file-identity.js +24 -8
  190. package/dist/core/storage/file-identity.js.map +1 -1
  191. package/dist/core/storage/index.d.ts +4 -3
  192. package/dist/core/storage/index.js +5 -3
  193. package/dist/core/storage/index.js.map +1 -1
  194. package/dist/core/storage/libsql-removed.d.ts +71 -0
  195. package/dist/core/storage/libsql-removed.js +123 -0
  196. package/dist/core/storage/libsql-removed.js.map +1 -0
  197. package/dist/core/storage/migrations.d.ts +81 -8
  198. package/dist/core/storage/migrations.js +386 -47
  199. package/dist/core/storage/migrations.js.map +1 -1
  200. package/dist/core/storage/node-sqlite-file-gate.js +0 -15
  201. package/dist/core/storage/node-sqlite-file-gate.js.map +1 -1
  202. package/dist/core/storage/node-sqlite-thread.js +36 -12
  203. package/dist/core/storage/node-sqlite-thread.js.map +1 -1
  204. package/dist/core/storage/node-sqlite.js +135 -3
  205. package/dist/core/storage/node-sqlite.js.map +1 -1
  206. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  207. package/dist/core/storage/offline-snapshot-file.js +3 -3
  208. package/dist/core/storage/prefix.d.ts +1 -1
  209. package/dist/core/storage/prefix.js +14 -2
  210. package/dist/core/storage/prefix.js.map +1 -1
  211. package/dist/core/storage/process-selection.d.ts +5 -5
  212. package/dist/core/storage/provider.js +2 -2
  213. package/dist/core/storage/schema-catalog.d.ts +82 -5
  214. package/dist/core/storage/schema-catalog.js +244 -34
  215. package/dist/core/storage/schema-catalog.js.map +1 -1
  216. package/dist/core/storage/selection.d.ts +7 -82
  217. package/dist/core/storage/selection.js +20 -235
  218. package/dist/core/storage/selection.js.map +1 -1
  219. package/dist/core/storage/session/branch-fork-source.code.js +9 -8
  220. package/dist/core/storage/session/branch-fork-source.code.js.map +1 -1
  221. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  222. package/dist/core/storage/session/branch-fork-source.js +3 -3
  223. package/dist/core/storage/session/card-view.impl.js +3 -3
  224. package/dist/core/storage/session/card-view.js +3 -3
  225. package/dist/core/storage/session/child-reader.code.js +4 -4
  226. package/dist/core/storage/session/child-reader.impl.js +3 -3
  227. package/dist/core/storage/session/child-reader.js +3 -3
  228. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  229. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  230. package/dist/core/storage/session/errors.js +1 -1
  231. package/dist/core/storage/session/expanded-child-details.code.js +3 -3
  232. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  233. package/dist/core/storage/session/expanded-child-details.js +3 -3
  234. package/dist/core/storage/session/fork-detach.d.ts +118 -0
  235. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  236. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  237. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  238. package/dist/core/storage/session/fork-row-index.js +3 -3
  239. package/dist/core/storage/session/fork-schema.js +53 -0
  240. package/dist/core/storage/session/fork-schema.js.map +1 -0
  241. package/dist/core/storage/session/fork-segments.d.ts +58 -0
  242. package/dist/core/storage/session/fork-staging.code.js +5 -8
  243. package/dist/core/storage/session/fork-staging.code.js.map +1 -1
  244. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  245. package/dist/core/storage/session/fork-staging.js +3 -3
  246. package/dist/core/storage/session/fork-sweep.js +61 -0
  247. package/dist/core/storage/session/fork-sweep.js.map +1 -0
  248. package/dist/core/storage/session/fork-window.code.js +4 -4
  249. package/dist/core/storage/session/fork-window.impl.js +3 -3
  250. package/dist/core/storage/session/fork-window.js +3 -3
  251. package/dist/core/storage/session/history-pages.impl.js +3 -3
  252. package/dist/core/storage/session/history-pages.js +3 -3
  253. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  254. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  255. package/dist/core/storage/session/jsonl-session-store.d.ts +42 -2
  256. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  257. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  258. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  259. package/dist/core/storage/session/memory-session-store.js +3 -3
  260. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  261. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  262. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  263. package/dist/core/storage/session/released-history-files.code.js +4 -4
  264. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  265. package/dist/core/storage/session/released-history-files.js +3 -3
  266. package/dist/core/storage/session/resident-fork-rows.code.js +1 -1
  267. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  268. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  269. package/dist/core/storage/session/session-resume.impl.js +3 -3
  270. package/dist/core/storage/session/session-resume.js +3 -3
  271. package/dist/core/storage/session/session-search-index.d.ts +43 -4
  272. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  273. package/dist/core/storage/session/snapshot-cut.js +3 -3
  274. package/dist/core/storage/session/snapshot-history.code.js +4 -4
  275. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  276. package/dist/core/storage/session/snapshot-history.js +3 -3
  277. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  278. package/dist/core/storage/session/sql-session-store.d.ts +394 -20
  279. package/dist/core/storage/session/sql-session-store.impl.js +4 -4
  280. package/dist/core/storage/session/sql-session-store.js +4 -4
  281. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  282. package/dist/core/storage/session/tree-outline.js +3 -3
  283. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  284. package/dist/core/storage/session/tree-presentation.js +3 -3
  285. package/dist/core/storage/session/types.d.ts +22 -0
  286. package/dist/core/storage/sqlite-facade.d.ts +23 -2
  287. package/dist/core/storage/sqlite-facade.js +34 -0
  288. package/dist/core/storage/sqlite-facade.js.map +1 -1
  289. package/dist/core/storage/storage-status.code.js +1 -1
  290. package/dist/core/storage/storage-status.impl.js +3 -3
  291. package/dist/core/storage/storage-status.js +3 -3
  292. package/dist/core/storage/team.code.js +1 -1
  293. package/dist/core/storage/team.d.ts +26 -115
  294. package/dist/core/storage/team.impl.js +3 -3
  295. package/dist/core/storage/team.js +3 -3
  296. package/dist/core/structured-output/index.code.js +1 -1
  297. package/dist/core/structured-output/index.impl.js +3 -3
  298. package/dist/core/structured-output/index.js +3 -3
  299. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  300. package/dist/core/tasks/task-completion-entry.js +3 -3
  301. package/dist/core/tasks/task-file-history.code.js +4 -4
  302. package/dist/core/tasks/task-file-history.impl.js +3 -3
  303. package/dist/core/tasks/task-file-history.js +3 -3
  304. package/dist/core/tasks/task-reference-archive.code.js +5 -5
  305. package/dist/core/tasks/task-reference-archive.js +3 -3
  306. package/dist/core/tasks/task-reference-identity.js +3 -3
  307. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  308. package/dist/core/tasks/task-reference-stream.js +3 -3
  309. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  310. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  311. package/dist/core/tasks/task-view-source.code.js +1 -1
  312. package/dist/core/tasks/task-view-source.impl.js +3 -3
  313. package/dist/core/tasks/task-view-source.js +3 -3
  314. package/dist/core/tools/history-session.d.ts +2 -0
  315. package/dist/core/tools/history-tasks.d.ts +3 -2
  316. package/dist/core/tools/read-url.code.js +4 -4
  317. package/dist/core/tools/read-url.impl.js +3 -3
  318. package/dist/core/tools/read-url.js +3 -3
  319. package/dist/core/worktree-snapshot/blob-store.d.ts +71 -3
  320. package/dist/core/worktree-snapshot/blob-store.js +575 -67
  321. package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
  322. package/dist/core/worktree-snapshot/errors.code.js +3 -3
  323. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  324. package/dist/core/worktree-snapshot/errors.js +3 -3
  325. package/dist/core/worktree-snapshot/fork-blob-guard.js +81 -0
  326. package/dist/core/worktree-snapshot/fork-blob-guard.js.map +1 -0
  327. package/dist/core/worktree-snapshot/fork-snapshot-index.js +162 -0
  328. package/dist/core/worktree-snapshot/fork-snapshot-index.js.map +1 -0
  329. package/dist/core/worktree-snapshot/session-index-reset.code.js +4 -0
  330. package/dist/core/worktree-snapshot/session-index-reset.code.js.map +1 -1
  331. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  332. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  333. package/dist/extensions/codemode/execute.code.js +2 -2
  334. package/dist/extensions/codemode/execute.impl.js +3 -3
  335. package/dist/extensions/codemode/execute.js +3 -3
  336. package/dist/extensions/codemode/renderer.code.js +2 -2
  337. package/dist/extensions/codemode/renderer.impl.js +3 -3
  338. package/dist/extensions/codemode/renderer.js +3 -3
  339. package/dist/extensions/mcp/cli.code.js +3 -3
  340. package/dist/extensions/mcp/cli.impl.js +3 -3
  341. package/dist/extensions/mcp/cli.js +3 -3
  342. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  343. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  344. package/dist/extensions/mcp/cli.lazy.js +3 -3
  345. package/dist/extensions/mcp/runtime.code.js +1 -1
  346. package/dist/extensions/mcp/runtime.impl.js +3 -3
  347. package/dist/extensions/mcp/runtime.js +3 -3
  348. package/dist/index.d.ts +3 -1
  349. package/dist/index.js +8 -8
  350. package/dist/main-first-time-setup.code.js +2 -2
  351. package/dist/main-first-time-setup.impl.js +3 -3
  352. package/dist/main-first-time-setup.js +3 -3
  353. package/dist/main.js +1 -1
  354. package/dist/modes/interactive/components/stored-tree-view.code.js +3 -3
  355. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  356. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  357. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  358. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  359. package/dist/modes/interactive/startup-shell-eligibility.js +1 -1
  360. package/dist/modes/interactive-engine/engine-prewarm.d.ts +1 -1
  361. package/dist/modes/print-mode.js +1 -1
  362. package/dist/package-manager-cli.code.js +7 -7
  363. package/dist/package-manager-cli.impl.js +3 -3
  364. package/dist/package-manager-cli.js +3 -3
  365. package/dist/rpc-entry.js +1 -1
  366. package/dist/startup-files.json +1 -1
  367. package/dist/startup-stages/10.js +1 -1
  368. package/dist/startup-stages/11.js +1 -1
  369. package/dist/startup-stages/12.js +1 -1
  370. package/dist/startup-stages/2.js +2 -3
  371. package/dist/startup-stages/3.js +1 -3
  372. package/dist/startup-stages/4.js +1 -2
  373. package/dist/startup-stages/5.js +1 -1
  374. package/dist/startup-stages/6.js +5 -7
  375. package/dist/startup-stages/7.js +3 -6
  376. package/dist/startup-stages/8.js +7 -2
  377. package/dist/startup-stages/9.js +1 -7
  378. package/dist/startup-stages/stages.json +1 -1
  379. package/dist/utils/compile-cache-deferral.js +8 -13
  380. package/dist/utils/compile-cache-deferral.js.map +1 -1
  381. package/dist/utils/compile-cache-warmup-host.js +3 -4
  382. package/dist/utils/compile-cache-warmup-host.js.map +1 -1
  383. package/dist/utils/compile-cache.js +12 -100
  384. package/dist/utils/compile-cache.js.map +1 -1
  385. package/dist/utils/startup-database-spare.code.js +3 -3
  386. package/dist/utils/startup-database-spare.impl.js +3 -3
  387. package/dist/utils/startup-database-spare.js +3 -3
  388. package/dist/utils/tools-manager.code.js +1 -1
  389. package/dist/utils/tools-manager.impl.js +3 -3
  390. package/dist/utils/tools-manager.js +3 -3
  391. package/dist/utils/worker-threads.js +2 -15
  392. package/dist/utils/worker-threads.js.map +1 -1
  393. package/docs/build.md +3 -3
  394. package/docs/changelog.mdx +1421 -69
  395. package/docs/compaction/reference.md +5 -5
  396. package/docs/compaction.md +7 -9
  397. package/docs/containerization.md +2 -2
  398. package/docs/custom-provider/api-reference.md +1 -1
  399. package/docs/docs.json +37 -10
  400. package/docs/environment-variables.md +0 -2
  401. package/docs/extensions/api-reference.md +4 -4
  402. package/docs/getting-started/installation.md +3 -0
  403. package/docs/guides/configuration.md +1 -1
  404. package/docs/guides/non-interactive.md +1 -1
  405. package/docs/guides/resume-on-any-machine.md +14 -22
  406. package/docs/guides/team-setup.md +56 -83
  407. package/docs/guides.md +2 -4
  408. package/docs/herdr.md +1 -1
  409. package/docs/index.md +1 -1
  410. package/docs/intercom/operations.md +26 -21
  411. package/docs/intercom/reference.md +2 -2
  412. package/docs/intercom.md +1 -1
  413. package/docs/libraries/storage-postgres.md +9 -9
  414. package/docs/libraries.md +2 -3
  415. package/docs/models-configuration.md +2 -2
  416. package/docs/models.md +2 -3
  417. package/docs/packages/authoring.md +7 -7
  418. package/docs/packages.md +1 -1
  419. package/docs/programmatic.md +2 -2
  420. package/docs/quickstart.md +1 -1
  421. package/docs/reference/cli.md +6 -11
  422. package/docs/reference.md +2 -2
  423. package/docs/rpc/extension-ui.md +2 -2
  424. package/docs/sdk/reference.md +5 -4
  425. package/docs/sdk/storage.md +8 -92
  426. package/docs/sdk/structured-decisions.md +1 -1
  427. package/docs/sdk/web-server.md +3 -3
  428. package/docs/sdk.md +14 -4
  429. package/docs/security.md +1 -1
  430. package/docs/session-format.md +5 -5
  431. package/docs/sessions.md +31 -42
  432. package/docs/settings.md +7 -8
  433. package/docs/storage/custom-adapters.md +255 -0
  434. package/docs/storage/jsonl.md +117 -0
  435. package/docs/{guides/postgres-pgbouncer.md → storage/postgres/pgbouncer.md} +73 -68
  436. package/docs/storage/postgres/tuning.md +337 -0
  437. package/docs/storage/postgres.md +556 -0
  438. package/docs/storage/sqlite.md +99 -0
  439. package/docs/storage.md +333 -956
  440. package/docs/subagents/authoring.md +1 -1
  441. package/docs/subagents.md +2 -2
  442. package/docs/tools.md +1 -1
  443. package/docs/worktree-snapshots.md +2 -2
  444. package/package.json +9 -9
  445. package/schemas/models.schema.json +2 -2
  446. package/schemas/settings.schema.json +0 -14
  447. package/dist/_shared/sdk-AVFII7NK.js.map +0 -1
  448. package/dist/_shared/settings-startup-4QCVCI53.js.map +0 -1
  449. package/dist/_shared/startup-0-0-57KF6LZH.js.map +0 -1
  450. package/dist/_shared/startup-0-1-GIY75K46.js.map +0 -1
  451. package/dist/_shared/startup-0-2-27OWFHV6.js.map +0 -1
  452. package/dist/_shared/startup-0-3-T4DVFYWX.js.map +0 -1
  453. package/dist/_shared/startup-8-1-X32CYSXB.js.map +0 -1
  454. package/dist/core/intercom-broker-control.d.ts +0 -129
  455. package/dist/startup-stages/13.js +0 -1
  456. package/docs/guides/postgres-tuning.md +0 -311
  457. package/docs/libraries/storage-libsql.md +0 -97
package/CHANGELOG.md CHANGED
@@ -2,6 +2,161 @@
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
+
104
+ ## [0.10.11-alpha.2] - 2026-11-26
105
+
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.
107
+
108
+ **Breaking change:** Once no older Atomic has a session open on a session database, Atomic upgrades it so that forks share their parent's history. Older Atomic versions then stop opening that database with "this store needs a newer Atomic". Upgrade every machine and CI job that shares a database. On PostgreSQL, a role that cannot create tables keeps copying forks until the owner runs `atomic storage migrate`. To take sessions back to an older version, export them with `atomic storage export` and import them with that version into a new store ([#6600](https://github.com/bastani-inc/atomic/pull/6600), [#6614](https://github.com/bastani-inc/atomic/pull/6614)).
109
+
110
+ **Forks**
111
+
112
+ - **A fork costs the same as a new session.** `/fork`, `/clone`, `atomic --fork` and forked subagents store only where the fork starts and read the parent's entries from the parent. Creating a fork takes the same round trips as creating a session, whatever the parent's length or how many forks deep it is. A subagent fork of a 500-entry session takes 8 round trips instead of 1,012 on PostgreSQL and on a libSQL server, and 12 instead of 1,018 on SQLite. 50 forks at once on PostgreSQL finish in 119 ms instead of 2.6 s. The store no longer holds a second copy of the parent's history. A fork lists, searches, resumes and keeps worktree snapshots as a copy does, and later changes to the parent never show up in it ([#6602](https://github.com/bastani-inc/atomic/pull/6602), [#6608](https://github.com/bastani-inc/atomic/pull/6608), [#6601](https://github.com/bastani-inc/atomic/pull/6601), [#6614](https://github.com/bastani-inc/atomic/pull/6614)).
113
+ - **Deleting a parent keeps its forks whole.** A deleted session leaves every list and search at once. The store keeps the entries its forks read until the last of those forks is deleted. Rewriting a parent first gives each fork its own copy ([#6598](https://github.com/bastani-inc/atomic/pull/6598)).
114
+ - **Exports stay standalone.** `atomic storage export`, `/export`, `/share`, HTML export and moving sessions to another store write each fork's full history, so the copy needs none of the sessions it came from ([#6598](https://github.com/bastani-inc/atomic/pull/6598)).
115
+
116
+ **Faster stores**
117
+
118
+ - **Faster PostgreSQL store opens.** Opening a session store whose tables are up to date takes 2 round trips instead of 5, and an Intercom broker takes 1 instead of 3. At 80 ms latency, reopening a session store takes about a quarter of a second less ([#6606](https://github.com/bastani-inc/atomic/pull/6606)).
119
+ - **One round trip per save on PostgreSQL.** After you run `atomic storage migrate` as the owner role, saving new entries to a session takes 1 round trip instead of 2, because a database function does the whole save. At 80 ms latency the median save took 108 ms instead of 193 ms. Older Atomic releases keep working on a database that has the function ([#6604](https://github.com/bastani-inc/atomic/pull/6604)).
120
+ - **Prepared statements behind PgBouncer.** Atomic now keeps statements prepared behind PgBouncer 1.21 or later when its `max_prepared_statements` is above 0, which is the default from 1.24, so the server parses each statement once. It finds this out on its first connection with no extra round trip. Behind other poolers they stay off, and a `maxPreparedStatements` you set still wins ([#6604](https://github.com/bastani-inc/atomic/pull/6604)).
121
+ - **Faster `history://` searches.** A search of a past session that Atomic has indexed reads the matching entries, and the lines shown around them, in one request instead of one request per entry. At 80 ms latency a search with 8 matches took 0.5 s instead of 2.8 s on PostgreSQL, and 0.5 s instead of 2.9 s on a libSQL server. A larger benchmark search took 9 round trips instead of 97. A custom `SessionStore` receives the entries to read in the new `seqs` field of `readEntryRange` ([#6607](https://github.com/bastani-inc/atomic/pull/6607)).
122
+ - **libSQL reads share requests.** On a libSQL server, single reads made at the same time go out together in one request. With 8 reads at once, the server got 2 requests instead of 8, and the first burst opened no new connection instead of 5 ([#6607](https://github.com/bastani-inc/atomic/pull/6607)).
123
+ - **No write lock to reopen a broker on SQLite and libSQL.** Reopening an Intercom broker whose tables are set up no longer takes the database's write lock, so brokers that start together no longer wait for each other. On a libSQL server 80 ms away, a reopen takes 0.4 s instead of 0.6 s. A process's first chat record skips the lock the same way. If anything changes the tables later, including an older Atomic, the next open checks them again ([#6609](https://github.com/bastani-inc/atomic/pull/6609)).
124
+ - **Faster writes to libSQL files.** On a local libSQL `file:` database, each connection keeps up to 256 prepared statements and reuses them. Saving a new 500-entry session takes 6.3 ms instead of 66 ms, and saving one entry about 0.2 ms instead of 0.4 ms ([#6613](https://github.com/bastani-inc/atomic/pull/6613)).
125
+ - **Faster local SQLite reads.** Reading a session's latest entries or resuming it from a local SQLite file waits for the database's background thread 2 or 3 times instead of 4 or 5 ([#6609](https://github.com/bastani-inc/atomic/pull/6609)).
126
+ - **Faster JSONL sessions.** On macOS and Linux, Atomic keeps a session's JSONL file open while it writes, and puts entries saved at the same moment into one write. Saving an entry takes 7 file operations instead of 18, and ten saves at once take 7 instead of 180. A folder of 201 sessions reopens in about 9 ms instead of about 640 ms ([#6605](https://github.com/bastani-inc/atomic/pull/6605)).
127
+
128
+ **Intercom**
129
+
130
+ - **Brokers pick up waiting messages faster.** With multi-node routing, taking a session's waiting messages takes 1 round trip instead of 3 on PostgreSQL, about 100 ms instead of 280 ms at 80 ms latency. On a libSQL server it takes 2 round trips instead of 3, and on a SQLite file 2 calls instead of 5 to 9 ([#6610](https://github.com/bastani-inc/atomic/pull/6610), [#6615](https://github.com/bastani-inc/atomic/pull/6615)).
131
+ - **Intercom records deliveries together.** With multi-node routing on PostgreSQL, messages that recipients confirm at about the same time are recorded as delivered in one transaction of 2 round trips, instead of 2 round trips for each message. At 80 ms latency, four confirmations took 0.19 s instead of 0.55 s and opened no extra database connections ([#6606](https://github.com/bastani-inc/atomic/pull/6606)).
132
+
133
+ **Fixes**
134
+
135
+ - **No `Storage unavailable` errors under load on a libSQL server.** Atomic now closes a database's idle connection to the server after 5 seconds, and sends a request again when the server turns it away as busy. In a test with 100 agents writing at once, 1 run in 6 failed before and none of 8 after ([#6616](https://github.com/bastani-inc/atomic/pull/6616)).
136
+ - **Forks copy only the pieces each long entry uses.** Forking a session that holds leftover pieces of long entries, which an older Atomic can leave behind, no longer copies them into the fork or fails with `Missing chunk of session entry` ([#6611](https://github.com/bastani-inc/atomic/pull/6611)).
137
+ - **Intercom keeps one session's messages in order on PostgreSQL.** When a broker was slow to renew its hold on an earlier message, another broker could take that message over while the first delivered a later one. Brokers now take turns on one session's messages ([#6610](https://github.com/bastani-inc/atomic/pull/6610)).
138
+
139
+ ### Breaking Changes
140
+
141
+ - After this release upgrades a session database so that forks share history, older Atomic versions can't open that database any more. They stop with "this store needs a newer Atomic". The upgrade happens by itself, but only once no older Atomic version has a session open on that database, so a machine you haven't upgraded yet keeps working until its sessions end. Upgrade every machine that shares a database. To take sessions back to an older version, export them with `atomic storage export` and import them with that version into a new store. See [Older Atomic versions](docs/storage.md#older-atomic-versions) ([#6600](https://github.com/bastani-inc/atomic/pull/6600), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
142
+
143
+ ### Added
144
+
145
+ - Forks now share their parent's history instead of copying it, so forking a long session costs about as much as forking a short one. This covers `/fork`, `/clone`, `atomic --fork` and subagents started with `context: "fork"`, in local SQLite files and in shared libSQL and PostgreSQL databases. There is nothing to turn on. A fork reads, searches, resumes and exports as a copy did, and changing or deleting its parent never changes it. Exporting a session or moving it to another store still writes a full copy that doesn't depend on any other session. On PostgreSQL, if Atomic connects with a role that can't create tables, forks keep copying until the database owner runs `atomic storage migrate`. See [Shared-history forks](docs/storage.md#shared-history-forks) ([#6600](https://github.com/bastani-inc/atomic/pull/6600), [#6602](https://github.com/bastani-inc/atomic/pull/6602), [#6608](https://github.com/bastani-inc/atomic/pull/6608), [#6601](https://github.com/bastani-inc/atomic/pull/6601), [#6598](https://github.com/bastani-inc/atomic/pull/6598), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
146
+
147
+ ### Changed
148
+
149
+ - On PostgreSQL, opening a session store whose tables are up to date now waits for 2 round trips instead of 5, and an Intercom broker for 1 instead of 3. The first query that opens the database also reads the list of Atomic's tables and their recorded versions, so the store does not read them again, and the snapshot index's two checks go out together. At 80 ms latency, reopening a session store takes about a quarter of a second less ([#6606](https://github.com/bastani-inc/atomic/pull/6606), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
150
+ - On SQLite and libSQL, opening an Intercom broker whose tables are already set up no longer takes the database's write lock, so brokers that start together no longer wait for each other. The same goes for a session's first chat record in each process. Atomic records which version of each store's tables it set up, along with SQLite's own count of schema changes. It writes that record during the second open of a database, in the write transaction that open already takes, so the first open of a new database costs what it did before. If anything changes the tables later, including an older Atomic, the next open checks them again instead of trusting the record ([#6609](https://github.com/bastani-inc/atomic/pull/6609), [#6612](https://github.com/bastani-inc/atomic/pull/6612), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
151
+ - Reading a session from a local SQLite file now waits for the database's background thread 2 or 3 times instead of 4 or 5. A read starts with its first queries in one message and doesn't wait for its final commit ([#6609](https://github.com/bastani-inc/atomic/pull/6609), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
152
+ - Sessions saved as JSONL files make fewer file operations. On macOS and Linux, Atomic keeps a session's file open while the session is being written, and closes it after 30 seconds without a write, when the session is released, or when Atomic exits. Entries saved at the same moment go into the file in one write, so ten saves at once cost about as much as one. Saving an entry takes 7 file operations instead of 18, ten saves at once 7 instead of 180, and reading a session's latest entries 7 instead of 22. Reopening a folder of sessions only checks each file's size and time instead of reading it again. A folder of 201 sessions reopens in about 9 ms instead of about 640 ms. `history://` reads of a session's last entries read from the end of the file instead of from the start. Saved files, crash recovery and locking between Atomic processes work as before ([#6605](https://github.com/bastani-inc/atomic/pull/6605), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
153
+ - On PostgreSQL, saving new entries to a session takes 1 round trip instead of 2 after you run `atomic storage migrate` as the owner role. The migration adds a database function that does the whole save inside the database, and lets the runtime role run it. Saves through it store exactly what they stored before. Until the migration runs, and for long entries stored in chunks, saves take 2 round trips as before. If another process changed the session since this process last saved it, the function notices, writes nothing, and the save goes the old way. Older Atomic versions keep working against a database that has the function ([#6604](https://github.com/bastani-inc/atomic/pull/6604), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
154
+ - Searching a past session (`history://`) a second time, once Atomic has indexed it, now reads the entries that match, and the lines shown around them, in one request instead of one request per entry. Results, their order, where a result is cut short and the link to continue are the same as before. At 80 ms latency a search with 8 matches took 5 round trips instead of 28. It took 0.5 s instead of 2.8 s on PostgreSQL, and 0.5 s instead of 2.9 s on a libSQL server. In the SDK, `SessionStore.readEntryRange` now gets a list of sequence numbers in `seqs`. A custom store should return only the entries at those numbers. One that returns the whole range still gives the same results, but reads more. See [Custom `SessionStore` contracts](docs/storage.md#custom-sessionstore-contracts) ([#6607](https://github.com/bastani-inc/atomic/pull/6607), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
155
+
156
+ ### Fixed
157
+
158
+ - Forking a session that holds leftover pieces of long entries, which an older Atomic version can leave behind, no longer copies them into the fork or fails with `Missing chunk of session entry`. A fork copies only the pieces each entry uses ([#6611](https://github.com/bastani-inc/atomic/pull/6611), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
159
+
5
160
  ## [0.10.11-alpha.1] - 2026-11-25
6
161
 
7
162
  Many agents can now share one PostgreSQL or libSQL database without waiting for each other, forks cost about the same however long the session is, and shell commands and history searches now run until they finish.
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.1`;
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.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : 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.1`;
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.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : 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.1`;
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.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : 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-57KF6LZH.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-GIY75K46.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";
7
- import { WorkingRunMeter, compactionMeta, findExactModelReferenceMatch, getPowerShellConfigAsync, killSupervisedProcessTrees, killTrackedDetachedChildren, runInProgress, sessionLifetime, showStartupInput, showStartupSelector, taskTranscriptSource } from "./startup-0-2-27OWFHV6.js";
8
- import { AtomicWorkedStatusComponent, AtomicWorkingLoader, DEFAULT_WORKING_MESSAGE, buildContextEntries, getOwnerTaskStore, isResumeFailure, parseGitUrl, resolveModelScopeFromModels, resolveModelScopeWithDiagnostics, sessionEntryToDisplayMessages, watchAtomicWorkingClock, watchOwnerTaskStoreBinding } from "./startup-0-3-T4DVFYWX.js";
9
- import { SESSION_HISTORY_SCAN_ENTRIES, findDecisionError, isDecisionConfigError, isRpcRequestAcceptedFailure, isRpcTransportFailure } from "./settings-startup-4QCVCI53.js";
6
+ import { ProjectTrustStore, failureDebugFields, getProjectTrustPathAsync, hasTrustRequiringProjectResourcesAsync, reportDebugAsync } from "./p1b-elig-TVB5CBLL.js";
7
+ import { WorkingRunMeter, compactionMeta, findExactModelReferenceMatch, getPowerShellConfigAsync, killSupervisedProcessTrees, killTrackedDetachedChildren, runInProgress, sessionLifetime, showStartupInput, showStartupSelector, taskTranscriptSource } from "./startup-0-2-5QHPCEON.js";
8
+ import { AtomicWorkedStatusComponent, AtomicWorkingLoader, DEFAULT_WORKING_MESSAGE, buildContextEntries, getOwnerTaskStore, isResumeFailure, parseGitUrl, resolveModelScopeFromModels, resolveModelScopeWithDiagnostics, sessionEntryToDisplayMessages, watchAtomicWorkingClock, watchOwnerTaskStoreBinding } from "./startup-0-3-4ZYBYQNM.js";
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.1`;
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.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : 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-57KF6LZH.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-GIY75K46.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
- import { killTrackedDetachedChildren, taskTranscriptSource, watchTaskTranscriptBindings } from "./startup-0-2-27OWFHV6.js";
10
- import { getOwnerTaskStore, isTaskTurnInterrupted, startInteractiveEngineLiveness, watchOwnerTaskStoreBinding } from "./startup-0-3-T4DVFYWX.js";
11
- import { FooterDataProvider, dismissedAgentPanelItems, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, onOwnerTaskAction, ownerTaskViewSource, sourceError, subscribeAgentPanel } from "./startup-8-1-X32CYSXB.js";
9
+ import { killTrackedDetachedChildren, taskTranscriptSource, watchTaskTranscriptBindings } from "./startup-0-2-5QHPCEON.js";
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-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";
@@ -18,7 +18,7 @@ import { HOST_STARTED_SESSION } from "./startup-15-1-4S7FLMNG.js";
18
18
  import { findQueuedMessages, findQueuedMessagesInFile, findQueuedMessagesInStore, firstHistoryCursor } from "./startup-8-0-34CBHPZH.js";
19
19
  import { SessionManager } from "./startup-10-0-TDQNBDDL.js";
20
20
  import { CredentialSynchronizationError, createAuthInteraction, getSkillCatalog, isOAuthLoginCancelled, normalizeOAuthLoginError } from "./startup-0-5-YDW47QX6.js";
21
- import { SESSION_HISTORY_SCAN_ENTRIES } from "./settings-startup-4QCVCI53.js";
21
+ import { SESSION_HISTORY_SCAN_ENTRIES } from "./settings-startup-HXQLSUWM.js";
22
22
  import { getExtensionRuntimeEventBus } from "./startup-14-0-MLX36RBG.js";
23
23
  import * as crypto from "node:crypto";
24
24
  import { randomUUID } from "node:crypto";
@@ -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.1`;
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.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : 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,17 +1,17 @@
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-57KF6LZH.js";
4
- import { ExtensionInputComponent, ExtensionSelectorComponent, SUMMARY_COMPACTION_PREFIX, TaskElapsedClocks, assertSessionNotOpenElsewhere, bindTaskClock, createVerbatimCompactionMessage, ensurePngTranscoder, getToolPath, heldPrompts, isVerbatimCompactionMessage, reopenedCompletionName, repairOrphanToolResults, shownSpanMs, stripVerbatimCompactionPrefix, taskClockOf, taskClockRunning, taskClocksFor, taskElapsedMs, thinkingLevelForModelSwitch } from "./startup-0-1-GIY75K46.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";
7
- import { AgentTokenMeter, WorkingRunMeter, agentTokenTotal, compactionMeta, formatWorkingElapsed, loadTaskOwnTranscriptHistory, normalizeWorkingRunSnapshot, observedTaskChatWrite, runInProgress, taskChatPage, taskOwnTranscriptEntries, taskTranscriptSource, withTaskChatRows } from "./startup-0-2-27OWFHV6.js";
8
- import { AtomicWorkedStatusComponent, AtomicWorkingStatusComponent, DEFAULT_WORKING_MESSAGE, OwnerTaskStore, atomicWorkingFrame, atomicWorkingGlyph, getOwnerTaskSession, getOwnerTaskStore, isTaskTurnInterrupted, parseGitUrl, setTaskTurnInterrupted, watchAtomicWorkingClock, watchOwnerTaskStoreBinding, workingMessageColumns } from "./startup-0-3-T4DVFYWX.js";
9
- import { isRpcRequestAcceptedFailure } from "./settings-startup-4QCVCI53.js";
6
+ import { isDebugEnabled, projectTrustOptionsFor } from "./p1b-elig-TVB5CBLL.js";
7
+ import { AgentTokenMeter, WorkingRunMeter, agentTokenTotal, compactionMeta, formatWorkingElapsed, loadTaskOwnTranscriptHistory, normalizeWorkingRunSnapshot, observedTaskChatWrite, runInProgress, taskChatPage, taskOwnTranscriptEntries, taskTranscriptSource, withTaskChatRows } from "./startup-0-2-5QHPCEON.js";
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
+ import { isRpcRequestAcceptedFailure } from "./settings-startup-HXQLSUWM.js";
10
10
  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.1`;
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.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : 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}.`, {