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

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 (447) hide show
  1. package/CHANGELOG.md +150 -0
  2. package/README.md +5 -8
  3. package/dist/_shared/dist-KOELCESV.js +2 -2
  4. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  5. package/dist/_shared/lib-4PES5P4V.js +2 -2
  6. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +6 -6
  7. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +5 -5
  8. package/dist/_shared/mode-shared-2QJSCUM6.js +6 -6
  9. package/dist/_shared/p0-cli-BB45ZQY6.js +46 -67
  10. package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -1
  11. package/dist/_shared/p1a-prewarm-XIU57JHF.js +7 -8
  12. package/dist/_shared/p1a-prewarm-XIU57JHF.js.map +1 -1
  13. package/dist/_shared/{p1b-elig-ENCUPKKJ.js → p1b-elig-TVB5CBLL.js} +36 -8
  14. package/dist/_shared/p1b-elig-TVB5CBLL.js.map +1 -0
  15. package/dist/_shared/p2-shell-main-B2WIALFD.js +6 -3
  16. package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
  17. package/dist/_shared/runtime-O4KCSG4C.js +3 -3
  18. package/dist/_shared/{sdk-IQMULKFU.js → sdk-B5LEWGGI.js} +1218 -657
  19. package/dist/_shared/sdk-B5LEWGGI.js.map +1 -0
  20. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  21. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  22. package/dist/_shared/{startup-0-0-3IXNMFM2.js → startup-0-0-XJJDOIEC.js} +50 -48
  23. package/dist/_shared/startup-0-0-XJJDOIEC.js.map +1 -0
  24. package/dist/_shared/{startup-0-1-7T2IAE7J.js → startup-0-1-M6OWAYHH.js} +540 -136
  25. package/dist/_shared/startup-0-1-M6OWAYHH.js.map +1 -0
  26. package/dist/_shared/startup-0-2-5QHPCEON.js +47 -48
  27. package/dist/_shared/startup-0-2-5QHPCEON.js.map +1 -1
  28. package/dist/_shared/startup-0-3-4ZYBYQNM.js +5 -5
  29. package/dist/_shared/startup-0-4-ZMJV547D.js +12 -7
  30. package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -1
  31. package/dist/_shared/startup-0-5-YDW47QX6.js +7 -7
  32. package/dist/_shared/startup-0-5-YDW47QX6.js.map +1 -1
  33. package/dist/_shared/startup-10-0-TDQNBDDL.js +6 -6
  34. package/dist/_shared/startup-12-0-55AAXBJZ.js +2 -2
  35. package/dist/_shared/startup-14-0-MLX36RBG.js +4 -5
  36. package/dist/_shared/startup-14-0-MLX36RBG.js.map +1 -1
  37. package/dist/_shared/startup-15-0-YUKGAC63.js +4 -4
  38. package/dist/_shared/startup-15-1-4S7FLMNG.js +19 -27
  39. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  40. package/dist/_shared/startup-8-0-34CBHPZH.js +2144 -249
  41. package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
  42. package/dist/_shared/{startup-8-1-X32CYSXB.js → startup-8-1-LZFXSD3Z.js} +98 -1184
  43. package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +1 -0
  44. package/dist/_shared/storage-command-7MGXLJGZ.js +188 -37
  45. package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
  46. package/dist/_shared/storage-status-K7PX2RXA.js +557 -0
  47. package/dist/_shared/storage-status-K7PX2RXA.js.map +1 -0
  48. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  49. package/dist/_shared/team-DOQKICG2.js +376 -0
  50. package/dist/_shared/team-DOQKICG2.js.map +1 -0
  51. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  52. package/dist/builtin/intercom/CHANGELOG.md +42 -0
  53. package/dist/builtin/intercom/README.md +2 -2
  54. package/dist/builtin/intercom/broker/broker.bundle.mjs +1917 -381
  55. package/dist/builtin/intercom/broker/client.ts +8 -0
  56. package/dist/builtin/intercom/broker/database-wake-up-bus.ts +324 -68
  57. package/dist/builtin/intercom/broker/multinode-router.ts +256 -39
  58. package/dist/builtin/intercom/broker/multinode-state-store.ts +71 -5
  59. package/dist/builtin/intercom/broker/open-broker-state.ts +14 -0
  60. package/dist/builtin/intercom/broker/send-order-gate.ts +5 -2
  61. package/dist/builtin/intercom/broker/sql-add-column.ts +50 -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 +473 -121
  66. package/dist/builtin/intercom/broker/sql-outbox-store.ts +821 -79
  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 +256 -8
  70. package/dist/builtin/intercom/broker/sql-retention.ts +150 -0
  71. package/dist/builtin/intercom/broker/sql-schema.ts +175 -24
  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 +14 -4
  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/skills/skill-creator/eval-viewer/generate_review.py +8 -1
  81. package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
  82. package/dist/builtin/web-access/index.bundle.mjs +2 -10
  83. package/dist/builtin/web-access/package.json +1 -1
  84. package/dist/bun/bundled-sqlite.js +41 -0
  85. package/dist/bun/bundled-sqlite.js.map +1 -0
  86. package/dist/cli/args.js +2 -2
  87. package/dist/cli/auth-cli.code.js +4 -4
  88. package/dist/cli/auth-cli.impl.js +3 -3
  89. package/dist/cli/auth-cli.js +3 -3
  90. package/dist/cli/blueprint-command.code.js +3 -3
  91. package/dist/cli/blueprint-command.impl.js +3 -3
  92. package/dist/cli/blueprint-command.js +3 -3
  93. package/dist/cli/intercom-command.code.js +3 -3
  94. package/dist/cli/intercom-command.code.js.map +1 -1
  95. package/dist/cli/intercom-command.impl.js +3 -3
  96. package/dist/cli/intercom-command.js +3 -3
  97. package/dist/cli/list-models.code.js +2 -2
  98. package/dist/cli/list-models.impl.js +3 -3
  99. package/dist/cli/list-models.js +3 -3
  100. package/dist/cli/session-picker.code.js +1 -1
  101. package/dist/cli/session-picker.impl.js +3 -3
  102. package/dist/cli/session-picker.js +3 -3
  103. package/dist/cli/startup-ui.code.js +1 -1
  104. package/dist/cli/startup-ui.impl.js +3 -3
  105. package/dist/cli/startup-ui.js +3 -3
  106. package/dist/cli/storage-command.impl.js +3 -3
  107. package/dist/cli/storage-command.js +3 -3
  108. package/dist/cli/storage-search-session.code.js +3 -3
  109. package/dist/cli/storage-search-session.impl.js +3 -3
  110. package/dist/cli/storage-search-session.js +3 -3
  111. package/dist/cli/team-command.code.js +19 -113
  112. package/dist/cli/team-command.code.js.map +1 -1
  113. package/dist/cli/team-command.impl.js +3 -3
  114. package/dist/cli/team-command.js +3 -3
  115. package/dist/cli.js +5 -18
  116. package/dist/cli.js.map +1 -1
  117. package/dist/core/agent-rehydrate-errors.d.ts +4 -9
  118. package/dist/core/compaction/compactor.d.ts +3 -3
  119. package/dist/core/debug.code.js +1 -1
  120. package/dist/core/debug.impl.js +3 -3
  121. package/dist/core/debug.js +3 -3
  122. package/dist/core/export-html/card-projection.impl.js +3 -3
  123. package/dist/core/export-html/card-projection.js +3 -3
  124. package/dist/core/export-html/index.code.js +4 -4
  125. package/dist/core/export-html/index.code.js.map +1 -1
  126. package/dist/core/export-html/index.impl.js +3 -3
  127. package/dist/core/export-html/index.js +3 -3
  128. package/dist/core/export-html/json-spans.impl.js +3 -3
  129. package/dist/core/export-html/json-spans.js +3 -3
  130. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  131. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  132. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  133. package/dist/core/export-html/tool-renderer.js +3 -3
  134. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  135. package/dist/core/extensions/jiti-loader.js +3 -3
  136. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  137. package/dist/core/extensions/jiti-static-loader.js +3 -3
  138. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  139. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  140. package/dist/core/extensions/loader-host-modules.js +3 -3
  141. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  142. package/dist/core/extensions/runner-context.js +2 -2
  143. package/dist/core/intercom-broker-control-host.code.js +2 -2
  144. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  145. package/dist/core/intercom-broker-control-host.js +3 -3
  146. package/dist/core/intercom-broker-control.code.js +3 -3
  147. package/dist/core/intercom-broker-control.impl.js +3 -3
  148. package/dist/core/intercom-broker-control.js +3 -3
  149. package/dist/core/package-manager-storage-adapters.code.js +1 -1
  150. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  151. package/dist/core/package-manager-storage-adapters.js +3 -3
  152. package/dist/core/process-start-token.d.ts +12 -3
  153. package/dist/core/process-tree-containment.d.ts +16 -0
  154. package/dist/core/sdk-types.d.ts +1 -2
  155. package/dist/core/sdk-types.js.map +1 -1
  156. package/dist/core/sdk.code.js +3 -3
  157. package/dist/core/sdk.impl.js +3 -3
  158. package/dist/core/sdk.js +3 -3
  159. package/dist/core/session-manager-core.js +5 -5
  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 +1 -1
  163. package/dist/core/session-manager.impl.js +3 -3
  164. package/dist/core/session-manager.js +3 -3
  165. package/dist/core/session-storage.code.js +1 -1
  166. package/dist/core/session-storage.impl.js +3 -3
  167. package/dist/core/session-storage.js +3 -3
  168. package/dist/core/settings-schema.d.ts +0 -3
  169. package/dist/core/storage/added-exports-0-10-11.js +19 -0
  170. package/dist/core/storage/added-exports-0-10-11.js.map +1 -0
  171. package/dist/core/storage/creation-time.js +105 -0
  172. package/dist/core/storage/creation-time.js.map +1 -0
  173. package/dist/core/storage/database.d.ts +25 -5
  174. package/dist/core/storage/database.js.map +1 -1
  175. package/dist/core/storage/dialect.d.ts +1 -1
  176. package/dist/core/storage/dialect.js +1 -1
  177. package/dist/core/storage/dialect.js.map +1 -1
  178. package/dist/core/storage/errors.d.ts +13 -13
  179. package/dist/core/storage/errors.js +10 -16
  180. package/dist/core/storage/errors.js.map +1 -1
  181. package/dist/core/storage/fenced-paths.d.ts +18 -6
  182. package/dist/core/storage/fenced-paths.js +18 -6
  183. package/dist/core/storage/fenced-paths.js.map +1 -1
  184. package/dist/core/storage/file-identity.d.ts +2 -0
  185. package/dist/core/storage/file-identity.js +24 -8
  186. package/dist/core/storage/file-identity.js.map +1 -1
  187. package/dist/core/storage/index.d.ts +3 -2
  188. package/dist/core/storage/index.js +5 -3
  189. package/dist/core/storage/index.js.map +1 -1
  190. package/dist/core/storage/libsql-removed.d.ts +71 -0
  191. package/dist/core/storage/libsql-removed.js +123 -0
  192. package/dist/core/storage/libsql-removed.js.map +1 -0
  193. package/dist/core/storage/migrations.d.ts +78 -14
  194. package/dist/core/storage/migrations.js +375 -49
  195. package/dist/core/storage/migrations.js.map +1 -1
  196. package/dist/core/storage/node-sqlite-file-gate.js +0 -15
  197. package/dist/core/storage/node-sqlite-file-gate.js.map +1 -1
  198. package/dist/core/storage/node-sqlite-thread.js +215 -30
  199. package/dist/core/storage/node-sqlite-thread.js.map +1 -1
  200. package/dist/core/storage/node-sqlite.js +484 -72
  201. package/dist/core/storage/node-sqlite.js.map +1 -1
  202. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  203. package/dist/core/storage/offline-snapshot-file.js +3 -3
  204. package/dist/core/storage/prefix.d.ts +1 -1
  205. package/dist/core/storage/prefix.js +9 -2
  206. package/dist/core/storage/prefix.js.map +1 -1
  207. package/dist/core/storage/process-selection.d.ts +5 -5
  208. package/dist/core/storage/provider.js +2 -2
  209. package/dist/core/storage/schema-catalog.d.ts +76 -15
  210. package/dist/core/storage/schema-catalog.js +359 -68
  211. package/dist/core/storage/schema-catalog.js.map +1 -1
  212. package/dist/core/storage/selection.d.ts +7 -82
  213. package/dist/core/storage/selection.js +20 -235
  214. package/dist/core/storage/selection.js.map +1 -1
  215. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  216. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  217. package/dist/core/storage/session/branch-fork-source.js +3 -3
  218. package/dist/core/storage/session/card-view.impl.js +3 -3
  219. package/dist/core/storage/session/card-view.js +3 -3
  220. package/dist/core/storage/session/child-reader.code.js +3 -3
  221. package/dist/core/storage/session/child-reader.impl.js +3 -3
  222. package/dist/core/storage/session/child-reader.js +3 -3
  223. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  224. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  225. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  226. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  227. package/dist/core/storage/session/expanded-child-details.js +3 -3
  228. package/dist/core/storage/session/fork-detach.d.ts +11 -1
  229. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  230. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  231. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  232. package/dist/core/storage/session/fork-row-index.js +3 -3
  233. package/dist/core/storage/session/fork-staging.code.js +4 -7
  234. package/dist/core/storage/session/fork-staging.code.js.map +1 -1
  235. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  236. package/dist/core/storage/session/fork-staging.js +3 -3
  237. package/dist/core/storage/session/fork-sweep.js +31 -7
  238. package/dist/core/storage/session/fork-sweep.js.map +1 -1
  239. package/dist/core/storage/session/fork-window.code.js +3 -3
  240. package/dist/core/storage/session/fork-window.impl.js +3 -3
  241. package/dist/core/storage/session/fork-window.js +3 -3
  242. package/dist/core/storage/session/history-pages.impl.js +3 -3
  243. package/dist/core/storage/session/history-pages.js +3 -3
  244. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  245. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  246. package/dist/core/storage/session/jsonl-session-lock.d.ts +100 -0
  247. package/dist/core/storage/session/jsonl-session-store.d.ts +46 -24
  248. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  249. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  250. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  251. package/dist/core/storage/session/memory-session-store.js +3 -3
  252. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  253. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  254. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  255. package/dist/core/storage/session/released-history-files.code.js +9 -9
  256. package/dist/core/storage/session/released-history-files.code.js.map +1 -1
  257. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  258. package/dist/core/storage/session/released-history-files.js +3 -3
  259. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  260. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  261. package/dist/core/storage/session/session-resume.impl.js +3 -3
  262. package/dist/core/storage/session/session-resume.js +3 -3
  263. package/dist/core/storage/session/session-search-index.d.ts +52 -5
  264. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  265. package/dist/core/storage/session/snapshot-cut.js +3 -3
  266. package/dist/core/storage/session/snapshot-history.code.js +3 -3
  267. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  268. package/dist/core/storage/session/snapshot-history.js +3 -3
  269. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  270. package/dist/core/storage/session/sql-session-store.d.ts +99 -18
  271. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  272. package/dist/core/storage/session/sql-session-store.js +3 -3
  273. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  274. package/dist/core/storage/session/tree-outline.js +3 -3
  275. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  276. package/dist/core/storage/session/tree-presentation.js +3 -3
  277. package/dist/core/storage/sqlite-facade.d.ts +12 -1
  278. package/dist/core/storage/sqlite-facade.js +310 -33
  279. package/dist/core/storage/sqlite-facade.js.map +1 -1
  280. package/dist/core/storage/sqlite-open-batch.js +10 -0
  281. package/dist/core/storage/sqlite-open-batch.js.map +1 -0
  282. package/dist/core/storage/storage-status.code.js +1 -1
  283. package/dist/core/storage/storage-status.impl.js +3 -3
  284. package/dist/core/storage/storage-status.js +3 -3
  285. package/dist/core/storage/team.code.js +1 -1
  286. package/dist/core/storage/team.d.ts +26 -115
  287. package/dist/core/storage/team.impl.js +3 -3
  288. package/dist/core/storage/team.js +3 -3
  289. package/dist/core/structured-output/index.code.js +1 -1
  290. package/dist/core/structured-output/index.impl.js +3 -3
  291. package/dist/core/structured-output/index.js +3 -3
  292. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  293. package/dist/core/tasks/task-completion-entry.js +3 -3
  294. package/dist/core/tasks/task-file-history.code.js +3 -3
  295. package/dist/core/tasks/task-file-history.impl.js +3 -3
  296. package/dist/core/tasks/task-file-history.js +3 -3
  297. package/dist/core/tasks/task-reference-archive.code.js +4 -4
  298. package/dist/core/tasks/task-reference-archive.js +3 -3
  299. package/dist/core/tasks/task-reference-identity.js +3 -3
  300. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  301. package/dist/core/tasks/task-reference-stream.js +3 -3
  302. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  303. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  304. package/dist/core/tasks/task-view-source.code.js +1 -1
  305. package/dist/core/tasks/task-view-source.impl.js +3 -3
  306. package/dist/core/tasks/task-view-source.js +3 -3
  307. package/dist/core/tools/history-tasks.d.ts +3 -2
  308. package/dist/core/tools/read-url.code.js +4 -4
  309. package/dist/core/tools/read-url.impl.js +3 -3
  310. package/dist/core/tools/read-url.js +3 -3
  311. package/dist/core/worktree-snapshot/blob-store.d.ts +44 -5
  312. package/dist/core/worktree-snapshot/blob-store.js +553 -30
  313. package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
  314. package/dist/core/worktree-snapshot/errors.code.js +2 -2
  315. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  316. package/dist/core/worktree-snapshot/errors.js +3 -3
  317. package/dist/core/worktree-snapshot/fork-blob-guard.js +81 -0
  318. package/dist/core/worktree-snapshot/fork-blob-guard.js.map +1 -0
  319. package/dist/core/worktree-snapshot/fork-snapshot-index.js +208 -50
  320. package/dist/core/worktree-snapshot/fork-snapshot-index.js.map +1 -1
  321. package/dist/core/worktree-snapshot/session-index-reset.code.js +4 -0
  322. package/dist/core/worktree-snapshot/session-index-reset.code.js.map +1 -1
  323. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  324. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  325. package/dist/extensions/codemode/execute.code.js +1 -1
  326. package/dist/extensions/codemode/execute.impl.js +3 -3
  327. package/dist/extensions/codemode/execute.js +3 -3
  328. package/dist/extensions/codemode/renderer.code.js +2 -2
  329. package/dist/extensions/codemode/renderer.impl.js +3 -3
  330. package/dist/extensions/codemode/renderer.js +3 -3
  331. package/dist/extensions/mcp/cli.code.js +3 -3
  332. package/dist/extensions/mcp/cli.impl.js +3 -3
  333. package/dist/extensions/mcp/cli.js +3 -3
  334. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  335. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  336. package/dist/extensions/mcp/cli.lazy.js +3 -3
  337. package/dist/extensions/mcp/runtime.code.js +1 -1
  338. package/dist/extensions/mcp/runtime.impl.js +3 -3
  339. package/dist/extensions/mcp/runtime.js +3 -3
  340. package/dist/index.d.ts +3 -1
  341. package/dist/index.js +5 -5
  342. package/dist/main-first-time-setup.code.js +1 -1
  343. package/dist/main-first-time-setup.impl.js +3 -3
  344. package/dist/main-first-time-setup.js +3 -3
  345. package/dist/main.js +1 -1
  346. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  347. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  348. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  349. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  350. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  351. package/dist/modes/interactive/startup-shell-eligibility.js +1 -1
  352. package/dist/modes/interactive-engine/engine-prewarm.d.ts +1 -1
  353. package/dist/modes/print-mode.js +1 -1
  354. package/dist/package-manager-cli.code.js +6 -6
  355. package/dist/package-manager-cli.impl.js +3 -3
  356. package/dist/package-manager-cli.js +3 -3
  357. package/dist/rpc-entry.js +1 -1
  358. package/dist/startup-files.json +1 -1
  359. package/dist/startup-stages/10.js +1 -1
  360. package/dist/startup-stages/11.js +1 -1
  361. package/dist/startup-stages/12.js +1 -1
  362. package/dist/startup-stages/2.js +2 -4
  363. package/dist/startup-stages/3.js +1 -3
  364. package/dist/startup-stages/4.js +1 -2
  365. package/dist/startup-stages/5.js +1 -1
  366. package/dist/startup-stages/6.js +5 -7
  367. package/dist/startup-stages/7.js +3 -10
  368. package/dist/startup-stages/8.js +7 -2
  369. package/dist/startup-stages/9.js +1 -7
  370. package/dist/startup-stages/stages.json +1 -1
  371. package/dist/utils/compile-cache-deferral.js +8 -13
  372. package/dist/utils/compile-cache-deferral.js.map +1 -1
  373. package/dist/utils/compile-cache-warmup-host.js +3 -4
  374. package/dist/utils/compile-cache-warmup-host.js.map +1 -1
  375. package/dist/utils/compile-cache.js +12 -100
  376. package/dist/utils/compile-cache.js.map +1 -1
  377. package/dist/utils/startup-database-spare.code.js +2 -2
  378. package/dist/utils/startup-database-spare.impl.js +3 -3
  379. package/dist/utils/startup-database-spare.js +3 -3
  380. package/dist/utils/tools-manager.code.js +1 -1
  381. package/dist/utils/tools-manager.impl.js +3 -3
  382. package/dist/utils/tools-manager.js +3 -3
  383. package/dist/utils/worker-threads.js +2 -15
  384. package/dist/utils/worker-threads.js.map +1 -1
  385. package/docs/build.md +3 -3
  386. package/docs/changelog.mdx +1470 -69
  387. package/docs/compaction/reference.md +5 -5
  388. package/docs/compaction.md +7 -9
  389. package/docs/containerization.md +2 -2
  390. package/docs/custom-provider/api-reference.md +1 -1
  391. package/docs/docs.json +37 -10
  392. package/docs/environment-variables.md +0 -2
  393. package/docs/extensions/api-reference.md +4 -4
  394. package/docs/getting-started/installation.md +3 -0
  395. package/docs/guides/configuration.md +1 -1
  396. package/docs/guides/non-interactive.md +1 -1
  397. package/docs/guides/resume-on-any-machine.md +14 -22
  398. package/docs/guides/team-setup.md +56 -83
  399. package/docs/guides.md +2 -4
  400. package/docs/herdr.md +1 -1
  401. package/docs/index.md +1 -1
  402. package/docs/intercom/operations.md +26 -21
  403. package/docs/intercom/reference.md +2 -2
  404. package/docs/intercom.md +1 -1
  405. package/docs/libraries/storage-postgres.md +9 -9
  406. package/docs/libraries.md +2 -3
  407. package/docs/models-configuration.md +2 -2
  408. package/docs/models.md +2 -3
  409. package/docs/packages/authoring.md +7 -7
  410. package/docs/packages.md +1 -1
  411. package/docs/programmatic.md +2 -2
  412. package/docs/quickstart.md +1 -1
  413. package/docs/reference/cli.md +6 -11
  414. package/docs/reference.md +2 -2
  415. package/docs/rpc/extension-ui.md +2 -2
  416. package/docs/sdk/reference.md +5 -4
  417. package/docs/sdk/storage.md +8 -92
  418. package/docs/sdk/structured-decisions.md +1 -1
  419. package/docs/sdk/web-server.md +3 -3
  420. package/docs/sdk.md +14 -4
  421. package/docs/security.md +1 -1
  422. package/docs/session-format.md +5 -5
  423. package/docs/sessions.md +29 -49
  424. package/docs/settings.md +7 -8
  425. package/docs/storage/custom-adapters.md +255 -0
  426. package/docs/storage/jsonl.md +117 -0
  427. package/docs/{guides/postgres-pgbouncer.md → storage/postgres/pgbouncer.md} +66 -68
  428. package/docs/storage/postgres/tuning.md +337 -0
  429. package/docs/storage/postgres.md +556 -0
  430. package/docs/storage/sqlite.md +99 -0
  431. package/docs/storage.md +326 -990
  432. package/docs/subagents/authoring.md +1 -1
  433. package/docs/subagents.md +2 -2
  434. package/docs/tools.md +1 -1
  435. package/docs/worktree-snapshots.md +2 -2
  436. package/package.json +9 -9
  437. package/schemas/models.schema.json +2 -2
  438. package/schemas/settings.schema.json +0 -14
  439. package/dist/_shared/p1b-elig-ENCUPKKJ.js.map +0 -1
  440. package/dist/_shared/sdk-IQMULKFU.js.map +0 -1
  441. package/dist/_shared/startup-0-0-3IXNMFM2.js.map +0 -1
  442. package/dist/_shared/startup-0-1-7T2IAE7J.js.map +0 -1
  443. package/dist/_shared/startup-8-1-X32CYSXB.js.map +0 -1
  444. package/dist/core/intercom-broker-control.d.ts +0 -129
  445. package/dist/startup-stages/13.js +0 -1
  446. package/docs/guides/postgres-tuning.md +0 -311
  447. package/docs/libraries/storage-libsql.md +0 -97
package/CHANGELOG.md CHANGED
@@ -2,6 +2,156 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.10.11-alpha.4] - 2026-11-27
6
+
7
+ JSONL sessions now sync to disk before acknowledging saves while reading unlocked and writing concurrently across sessions, SQLite and PostgreSQL cut round trips and lock contention across opens, reads, deletes, and fork detaches, Intercom batches renewals, releases, wake-ups, and settlements, and macOS gains process-start tracking for instant resume recovery.
8
+
9
+ **JSONL storage**
10
+
11
+ - **Saves sync to disk before acknowledging, with group commit.** Concurrent saves share one write per session file and sync files in parallel before acknowledging; new, forked, and rewritten files sync before linking or renaming and sync their directory afterward. On macOS this uses plain `fsync(2)` via `@bastani/atomic-natives` (`fsyncDescriptor`), matching SQLite's default. Crash recovery handles zero-filled mid-file pages cleanly and validates `.idx` sidecars against lost earlier pages ([#6700](https://github.com/bastani-inc/atomic/pull/6700), [#6686](https://github.com/bastani-inc/atomic/issues/6686), [#6717](https://github.com/bastani-inc/atomic/issues/6717)).
12
+ - **Session reads run without the directory lock.** `load`, `readTail`, `readRange`, and `readResume` read through a single handle and check afterward that `.session.lock` is absent and the path stat is unchanged, retrying under the lock if a writer raced. Eight concurrent reader processes ran 100 tail reads each in 61 ms instead of 478 ms on Node and 62 ms instead of 787 ms on Bun ([#6721](https://github.com/bastani-inc/atomic/pull/6721), [#6719](https://github.com/bastani-inc/atomic/issues/6719)).
13
+ - **Kernel advisory locks and per-session-file stripes.** Writers now coordinate through OS advisory locks (`flock` on Unix, `LockFileEx` on Windows) and 32 striped per-file locks while keeping `<dir>/.session.lock` compatible with older builds. Recovering after a killed writer dropped from ~10.2 s to ~5 ms, and 8 processes saving to distinct sessions ran 3.3× faster ([#6732](https://github.com/bastani-inc/atomic/pull/6732), [#6718](https://github.com/bastani-inc/atomic/issues/6718)).
14
+
15
+ **SQLite and PostgreSQL storage**
16
+
17
+ - **Pipelined SQLite writes, off-commit WAL checkpoints, and batched opens.** File-backed SQLite write transactions bundle leading statements with `BEGIN IMMEDIATE` and final writes with `COMMIT`, handle lock-holder writes and queue checks on the connection thread, move `PRAGMA wal_checkpoint(PASSIVE)` off the commit path while bounding `-wal` files to 4 MiB, and batch schema setup on open into one write transaction (new session store: 4 locks / 31 waits → 1 lock / 7 waits; new Intercom broker: 24 locks / 103 waits → 1 lock / 10 waits) ([#6698](https://github.com/bastani-inc/atomic/pull/6698), [#6731](https://github.com/bastani-inc/atomic/pull/6731), [#6727](https://github.com/bastani-inc/atomic/pull/6727), [#6730](https://github.com/bastani-inc/atomic/pull/6730), [#6706](https://github.com/bastani-inc/atomic/issues/6706), [#6707](https://github.com/bastani-inc/atomic/issues/6707), [#6709](https://github.com/bastani-inc/atomic/issues/6709)).
18
+ - **Fewer round trips and narrower locks on PostgreSQL sessions.** Deleting or replacing an indexed session drops from 13 / 12 round trips to 3; session `load`, `list`, `findMostRecent`, `findEntrySeq`, `readEntrySizes`, `readForkWindow`, stale `readTail`, and fork `readResume` pipeline their schema and row reads (1.5×–3.0× faster at 80 ms latency); and session deletes and tombstone sweeps lock only the target session instead of the whole database (-42% to -44% p95 append latency under concurrent deletes) ([#6697](https://github.com/bastani-inc/atomic/pull/6697), [#6728](https://github.com/bastani-inc/atomic/pull/6728), [#6733](https://github.com/bastani-inc/atomic/pull/6733), [#6710](https://github.com/bastani-inc/atomic/issues/6710)).
19
+ - **Faster fork detaches, snapshot blob puts, and warm history searches.** Paged fork-detach link checks now scale linearly with pages (detaching two 20,000-entry forks dropped from 5.69 s to 2.63 s on PostgreSQL and 328 ms to 279 ms on Node SQLite), small snapshot blob puts take 1 SQLite thread wait / 1 PostgreSQL round trip instead of 10 / 2, and warm `history://` candidate reads batch state + first window into one read-only transaction ([#6692](https://github.com/bastani-inc/atomic/pull/6692), [#6699](https://github.com/bastani-inc/atomic/pull/6699), [#6695](https://github.com/bastani-inc/atomic/pull/6695), [#6696](https://github.com/bastani-inc/atomic/pull/6696), [#6705](https://github.com/bastani-inc/atomic/issues/6705), [#6708](https://github.com/bastani-inc/atomic/issues/6708)).
20
+
21
+ **Intercom**
22
+
23
+ - **Batched heartbeats, scans, releases, wake-ups, and SQLite settlements.** Brokers now check idle hosted recipients in one read (21×–37× faster at 50–200 brokers), renew all in-flight message claims, membership/presence leases, and restoring reservations in one statement per tick (up to 12.3× faster p50 at 200 brokers), release departing sessions' claims in one statement, batch wake-up publishes and embed non-reply outcome hints inside delivery settlement (1 round trip instead of 4), group-commit delivery settlements on SQLite, and send post-commit notices off the serial call queue via `StorageNotifications.send` ([#6690](https://github.com/bastani-inc/atomic/pull/6690), [#6693](https://github.com/bastani-inc/atomic/pull/6693), [#6722](https://github.com/bastani-inc/atomic/pull/6722), [#6724](https://github.com/bastani-inc/atomic/pull/6724), [#6725](https://github.com/bastani-inc/atomic/pull/6725), [#6726](https://github.com/bastani-inc/atomic/pull/6726), [#6734](https://github.com/bastani-inc/atomic/pull/6734), [#6712](https://github.com/bastani-inc/atomic/issues/6712), [#6713](https://github.com/bastani-inc/atomic/issues/6713), [#6714](https://github.com/bastani-inc/atomic/issues/6714), [#6715](https://github.com/bastani-inc/atomic/issues/6715), [#6716](https://github.com/bastani-inc/atomic/issues/6716)).
24
+
25
+ **Fixes**
26
+
27
+ - **Dropped PostgreSQL connections after `COMMIT` are never retried.** Fixed two bugs where a connection drop after `COMMIT` was written (either after a savepoint-recovered statement error or in a `leadingOnly` transaction) could be misclassified as `"not-applied"` and re-executed ([#6723](https://github.com/bastani-inc/atomic/pull/6723), [#6711](https://github.com/bastani-inc/atomic/issues/6711)).
28
+ - **Immediate resume recovery and faster review viewer on macOS.** Atomic now reads process creation times on macOS so resuming after a killed host stops leftover build steps at once instead of waiting 5 minutes and distinguishes dead lock holders from reused PIDs, and the skill-creator review viewer no longer stalls on a reverse DNS lookup of `127.0.0.1` ([#6694](https://github.com/bastani-inc/atomic/pull/6694), [#6687](https://github.com/bastani-inc/atomic/pull/6687), [#6704](https://github.com/bastani-inc/atomic/issues/6704), [#6691](https://github.com/bastani-inc/atomic/issues/6691)).
29
+ - **Intercom reply redelivery and local reply ordering.** Transient durable-inbox save failures no longer strand same-connection redeliveries of reply or ask-failure outcomes, and plain local sends behind an active local reply on a contended store no longer overtake that reply when a healthy database write exceeds 300 ms ([#6729](https://github.com/bastani-inc/atomic/pull/6729), [#6736](https://github.com/bastani-inc/atomic/pull/6736), [#6712](https://github.com/bastani-inc/atomic/issues/6712)).
30
+
31
+ ### Added
32
+
33
+ - `StorageNotifications` in `@bastani/atomic/storage` adds an optional `send(notices)` method for sending already-committed notifications together outside the database facade's serial call queue ([#6712](https://github.com/bastani-inc/atomic/issues/6712)).
34
+
35
+ ### Changed
36
+
37
+ - On PostgreSQL, deleting a session now locks only that session and its search index instead of the whole database, so unrelated session writers keep running beside deletes; post-delete tombstone sweeps also scope their lock to each tombstoned session, and the `detachForks`, `resumeForkDetaches`, and `sweepForkTombstones` schema gates and discovery queries now run read-only without taking a write lock (cutting idle gate and sweep checks from 10 to 1–2 round trips, and fork detaches from 51 to 39–41 round trips). Rebuilding a stale resume index now reuses the row read with the transaction start, folds the revision check into one conditional `UPDATE … RETURNING`, and pipelines the follow-up read, cutting stale `readTail` and fork `readResume` from 9–10 to 7 round trips. With 8 writers appending alongside deletes at 20 ms latency, append p95 fell from 218 ms to 123 ms directly and from 211 ms to 122 ms through PgBouncer ([#6710](https://github.com/bastani-inc/atomic/issues/6710)).
38
+ - On PostgreSQL, session reads take fewer round trips, both directly and through PgBouncer in transaction mode: loading a session drops from 2 awaited round trips to 1, listing sessions or finding the most recent session for a directory drops from 3 to 2 (and listing all sessions from 2 to 1), looking up an entry sequence drops from 3 to 1 (or 2 after a concurrent schema or fork change), and reading entry sizes or a fork window drops from 3 awaited round trips to 2. Looking up an entry sequence also folds the snapshot-index completeness check into a single statement on both SQLite and PostgreSQL. At 80 ms latency, loading a session took 84 ms instead of 162 ms, listing a directory took 163 ms instead of 244 ms, finding an entry sequence took 81 ms instead of 244 ms, and reading entry sizes or a fork window took 162 ms instead of 240 ms ([#6710](https://github.com/bastani-inc/atomic/issues/6710)).
39
+ - On PostgreSQL, deleting or replacing an indexed session now takes 3 round trips instead of 13 for a delete and 12 for a replace, both directly and through PgBouncer in transaction mode. The session's per-table deletes and rewrite now go out with the commit in one request, and forgetting its search index sends its savepoint, deletes and release together. At 80 ms latency, deleting a session took about 0.25 seconds instead of 1.03 seconds and replacing one took about 0.25 seconds instead of 0.96 seconds ([#6697](https://github.com/bastani-inc/atomic/pull/6697), [#6710](https://github.com/bastani-inc/atomic/issues/6710)).
40
+ - Checking a detached fork's worktree snapshot links now reads the fork's links in one pass and looks up each entry's parent once, so the check takes about half the time it first did: 1.9 ms instead of 3.7 ms on SQLite, and 6.4 ms instead of 10.7 ms on PostgreSQL, for a fork of 1,000 entries ([#6692](https://github.com/bastani-inc/atomic/pull/6692), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
41
+ - On file-backed SQLite stores, write transactions now run their leading statements in the same connection-thread request as `BEGIN IMMEDIATE`, bundle their final writes (`transactionFinisher`) in the same request as `COMMIT` (or a group-commit member's `RELEASE`), send single-step `leadingOnly` transactions (such as Intercom lease acquisitions) with `COMMIT` in one request, send each group-commit member's `SAVEPOINT` with its leading statements, and handle write-lock holder record updates and writers'-queue directory checks on the connection thread to remove two thread-pool waits per uncontended commit. Creating a session and appending to it now wait for the connection thread 2 times instead of 4, `leadingOnly` lease writes wait once instead of 4 times (~1.5x faster median latency), and 100 concurrent appenders wait 201 times per batch instead of 402, with durability unchanged (WAL, `synchronous=FULL`) ([#6698](https://github.com/bastani-inc/atomic/pull/6698), [#6731](https://github.com/bastani-inc/atomic/pull/6731), [#6706](https://github.com/bastani-inc/atomic/issues/6706)).
42
+ - Batched the search-state lookup and first candidate window of a `history://` index search into one read-only transaction, cutting warm search candidate queries from 2 thread waits to 1 on SQLite and from 2 round trips across separate snapshots to 1 round trip in one snapshot on PostgreSQL ([#6695](https://github.com/bastani-inc/atomic/pull/6695), [#6708](https://github.com/bastani-inc/atomic/issues/6708)).
43
+ - Detaching long shared-history forks a page at a time now scales linearly with the number of pages instead of redoing work over earlier pages. Each page's link statement counts children only past the page's start for the IDs the page copies, the per-page link check tests earlier rows against the page's ID set once, rows whose parent comes from a remaining segment look the segment up once instead of twice, and segment lookups and segment duplicate checks are skipped when no segments remain (or before the earliest remaining segment). Detaching a 20,000-entry parent's two forks with the default 2,000-row pages dropped from 328 ms to 279 ms on Node SQLite (peak write-lock hold 39.5 ms to 31.4 ms), 344 ms to 298 ms on Bun SQLite, and 5.69 s to 2.63 s on PostgreSQL (163 ms to 97 ms for 1,000 entries) ([#6699](https://github.com/bastani-inc/atomic/pull/6699), [#6705](https://github.com/bastani-inc/atomic/issues/6705), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
44
+ - Storing small batches of worktree snapshot blobs (fewer than 256 statements and at most 1 MiB total) now sends the inserts and `COMMIT` with the transaction's start. On file-backed SQLite stores, putting 8 small blobs now waits for the connection thread once instead of 10 times (2 times with transaction finishers alone) while taking the write lock once. On PostgreSQL (direct and behind PgBouncer), a small snapshot blob put now takes 1 round trip instead of 2; in an interleaved benchmark of 8-blob puts behind PgBouncer at 40 ms RTT, median latency dropped from 120 ms to 81 ms, and on localhost from 0.54 ms to 0.40 ms. Larger or chunked puts keep the existing fallback path ([#6696](https://github.com/bastani-inc/atomic/pull/6696), [#6708](https://github.com/bastani-inc/atomic/issues/6708)).
45
+ - Reading a JSONL session (`load`, `readTail`, `readRange` and `readResume`) no longer takes the directory lock when no writer is active, so readers across processes no longer queue behind one another or stall concurrent writers. Each read opens or reuses one handle, stats it first, reads the header and entries through that same handle, and verifies afterward that `.session.lock` is absent and the path stat still matches on device, inode, size and timestamps; if either check fails, or the file has a legacy header, it retries under the lock. On a 200-entry session with a kept handle, a warm tail, range or resume read takes 6 file-system requests instead of 7 and a whole-session load 5 instead of 10; 8 concurrent reader processes finished 100 tail reads each in about 61 ms instead of 478 ms on Node and 62 ms instead of 787 ms on Bun, and a writer sharing the directory with 4 active readers finished 50 saves in 44 ms instead of 190 ms on Node ([#6719](https://github.com/bastani-inc/atomic/issues/6719)).
46
+ - Writing to a JSONL session store now coordinates through operating-system advisory locks (`flock` on Unix, `LockFileEx` on Windows) and per-session-file striped locks instead of serializing the whole directory behind a single `proper-lockfile` lock. New writers hold `<dir>/.session.lock` together as a group so older builds remain excluded and unlocked readers still detect active writers, while writes and syncs to different session files proceed concurrently across 32 striped lock files (with an exclusive create lock for claim-and-link). When a writer process is killed, the kernel releases its advisory locks immediately and the next writer cleans up `.session.lock` at once instead of waiting for the 10-second stale window. On durable ext4 disk, recovering after a `SIGKILL`ed holder dropped from ~10.2 s to ~5 ms, and multi-process concurrent saves to distinct sessions improved from 846 ms to 443 ms (4 processes × 20 saves, 1.9×) and from 1,264 ms to 388 ms (8 processes × 15 saves, 3.3×) ([#6718](https://github.com/bastani-inc/atomic/issues/6718)).
47
+ - Opening a SQLite session store or Intercom broker on a new or upgraded database now batches all needed schema setup—tables, missing columns, indexes, snapshot triggers, search tables and schema stamps—into a single write transaction through `tryMaintenance`, keeping the poll-until-done fallback when another process holds the write lock. Opening a new session store now takes 1 write lock and 7 thread waits instead of 4 locks and 31 waits (median 29.9 ms vs 37.3 ms on Node 24; 23.1 ms vs 28.8 ms on Bun 1.4.5), opening a new Intercom broker takes 1 write lock and 10 waits instead of 24 locks and 103 waits (51.3 ms vs 64.6 ms on Node 24; 41.2 ms vs 56.8 ms on Bun 1.4.5), and the broker's second open now takes 0 locks and 8 waits instead of 1 lock and 12 waits. With 8 concurrent hosts opening a fresh session store and broker together, total write locks dropped from 60 to 2 (80.1 ms vs 128.5 ms on Node 24; 77.8 ms vs 108.2 ms on Bun 1.4.5) ([#6709](https://github.com/bastani-inc/atomic/issues/6709)).
48
+ - On local SQLite stores, write-ahead log checkpointing now runs off the commit path and shrinks overgrown `-wal` files back to 4 MiB once long readers end. Writable connections raise `wal_autocheckpoint` to 10,000 pages as a safety net, set `journal_size_limit` to 4 MiB, and run `PRAGMA wal_checkpoint(PASSIVE)` on the connection thread after answering the caller whenever no transaction is open and the `-wal` file grew past 4 MiB since the last check. In interleaved benchmarks after a held reader grew the WAL to 17.8 MiB, the first commit after the reader ended dropped from 10.1 ms to 1.2 ms on Node and 8.4 ms to 1.0 ms on Bun, and the `-wal` file shrank back to 4.0 MiB instead of staying 17.8 MiB ([#6707](https://github.com/bastani-inc/atomic/issues/6707)).
49
+
50
+ ### Fixed
51
+
52
+ - On macOS, resuming a session whose blueprint build was cut off because Atomic was killed no longer waits 5 minutes for a build step that is still running. Atomic now reads when a process started on macOS too, so the next resume can tell the leftover step is that build's and stop it at once. Session claims, worktree leases and other locks on macOS also tell a process that died from a later one given its process ID. Locks written by earlier versions, which name no start, are judged by process ID as before ([#6704](https://github.com/bastani-inc/atomic/issues/6704)).
53
+ - Fixed pipelined storage transactions (such as PostgreSQL) blaming a failure already recovered by `ROLLBACK TO SAVEPOINT` when `COMMIT` later fails or loses its connection, which could misclassify an ambiguous commit failure as `"not-applied"` and retry an already-committed transaction. The facade now keeps the commit's own recognized failure, skips calls recovered by a fulfilled `ROLLBACK TO SAVEPOINT`, and lets drivers notify it immediately before writing `COMMIT` in `leadingOnly` transactions ([#6711](https://github.com/bastani-inc/atomic/issues/6711)).
54
+ - A session saved in a JSONL directory is no longer lost or left empty by a power cut or system crash just after Atomic saved it. Each save now waits until its entries are synced to disk before acknowledging, and concurrent saves share one lock, one write per session file, and parallel syncs across sessions in the group. A new, forked, or rewritten session file is synced before it is linked or renamed into place, and its directory is synced after. On macOS this uses plain `fsync(2)` through `@bastani/atomic-natives` (`fsyncDescriptor`), matching the default SQLite store and the standalone binary instead of Node.js's `fcntl(F_FULLFSYNC)`; Linux uses `fdatasync(2)` and Windows uses `FlushFileBuffers`. A save whose sync fails is truncated back and rejected without failing other sessions in the same group that already synced. Crash recovery also ignores zero-filled unwritten pages before EOF and strips them on the next append, ensures `.idx` sidecars are written only after syncing the session file and validates them against lost earlier pages on load, reuses kept handles when catching up foreign appends, and batches chat-record index and slot opens. On Linux, 200 sequential saves took 103 ms vs 54 ms on Node.js (112 ms vs 67 ms on Bun), while 20 sessions making 25 concurrent saves finished in 83 ms vs 109 ms on Node.js (82 ms vs 104 ms on Bun) and batched chat-record saves took 13 ms vs 40 ms ([#6686](https://github.com/bastani-inc/atomic/issues/6686), [#6717](https://github.com/bastani-inc/atomic/issues/6717)).
55
+
56
+ ## [0.10.11-alpha.3] - 2026-11-26
57
+
58
+ 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.
59
+
60
+ **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)).
61
+
62
+ **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)).
63
+
64
+ **Storage and Intercom**
65
+
66
+ - **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)).
67
+ - **`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)).
68
+ - **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)).
69
+ - **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)).
70
+ - **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)).
71
+ - **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)).
72
+ - **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)).
73
+ - **`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)).
74
+ - **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)).
75
+ - **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)).
76
+ - **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)).
77
+ - **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)).
78
+ - **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)).
79
+
80
+ **Docs**
81
+
82
+ - **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)).
83
+ - **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)).
84
+
85
+ **Fixes**
86
+
87
+ - **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)).
88
+ - **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)).
89
+ - **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)).
90
+ - **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)).
91
+ - **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)).
92
+ - **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)).
93
+ - **`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)).
94
+ - **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)).
95
+ - **`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)).
96
+ - **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)).
97
+ - **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)).
98
+ - **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)).
99
+ - **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)).
100
+ - **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)).
101
+ - **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)).
102
+
103
+ ### Breaking Changes
104
+
105
+ - 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)).
106
+ - Removed the libSQL team setup, with these replacements ([#6624](https://github.com/bastani-inc/atomic/pull/6624)):
107
+ - `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.
108
+ - `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.
109
+ - 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.
110
+ - `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`.
111
+ - The `teamJoin` setting that `atomic team join` wrote is no longer read. You can delete it.
112
+
113
+ ### Added
114
+
115
+ - 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)).
116
+ - `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)).
117
+
118
+ ### Changed
119
+
120
+ - 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)).
121
+ - 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)).
122
+ - 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)).
123
+ - 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)).
124
+ - 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)).
125
+ - 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)).
126
+ - 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)).
127
+ - 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)).
128
+ - 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)).
129
+ - 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)).
130
+ - 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)).
131
+
132
+ ### Fixed
133
+
134
+ - 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)).
135
+ - 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)).
136
+ - 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)).
137
+ - 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)).
138
+ - 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)).
139
+ - 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)).
140
+ - 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)).
141
+ - 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)).
142
+ - 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)).
143
+ - 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)).
144
+ - 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)).
145
+ - 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)).
146
+ - 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)).
147
+ - 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)).
148
+ - 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)).
149
+
150
+ ### Removed
151
+
152
+ - Removed the `@bastani/atomic-storage-libsql` adapter. It is no longer published with Atomic releases ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
153
+ - `atomic storage join` and `atomic storage migrate --db` now take only `postgres://` and `postgresql://` URLs ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
154
+
5
155
  ## [0.10.11-alpha.2] - 2026-11-26
6
156
 
7
157
  Forks in a SQLite, libSQL or PostgreSQL session store now read their parent's history instead of copying it, and session and Intercom stores make fewer round trips.
package/README.md CHANGED
@@ -19,7 +19,7 @@
19
19
 
20
20
  Atomic is a terminal coding-agent runtime. Use built-in tools for file edits and shell commands, [codemode](docs/codemode.md) to script multi-step checks, and [subagents](docs/subagents.md) to delegate work to isolated contexts. Extend Atomic with TypeScript [extensions](#extensions), [skills](#skills), [prompt templates](#prompt-templates), and [themes](#themes), or share them as [Atomic packages](#atomic-packages) via npm or git.
21
21
 
22
- Atomic bundles first-party integrations for [subagents](docs/subagents.md), [MCP servers](docs/mcp-servers.md), [web access](docs/web-access.md), and [Intercom](docs/intercom.md). Sessions save to local SQLite by default or share state across machines over PostgreSQL or libSQL/Turso ([Storage](docs/storage.md)), with [worktree snapshots](docs/worktree-snapshots.md) and [environment blueprints](docs/guides/resume-on-any-machine.md#set-the-environment-up-with-a-blueprint) for cross-machine resume. See [Orchestration](docs/orchestration.md) for multi-step tasks and [Migrating workflows](docs/orchestration/migrating-workflows.md) to convert an earlier workflow file to a skill.
22
+ Atomic bundles first-party integrations for [subagents](docs/subagents.md), [MCP servers](docs/mcp-servers.md), [web access](docs/web-access.md), and [Intercom](docs/intercom.md). Sessions save to local SQLite by default, or several machines can share them through one PostgreSQL database ([Storage](docs/storage.md)), with [worktree snapshots](docs/worktree-snapshots.md) and [environment blueprints](docs/guides/resume-on-any-machine.md#set-the-environment-up-with-a-blueprint) for cross-machine resume. See [Orchestration](docs/orchestration.md) for multi-step tasks and [Migrating workflows](docs/orchestration/migrating-workflows.md) to convert an earlier workflow file to a skill.
23
23
 
24
24
  Run Atomic interactively, in print or JSON mode, over RPC for process integration, or embedded through the TypeScript SDK.
25
25
 
@@ -215,7 +215,7 @@ Sessions store an append-only tree of entries (`id` and `parentId`), enabling in
215
215
 
216
216
  ### Management
217
217
 
218
- Sessions auto-save per working directory in the default local SQLite store (`~/.atomic/workflows/journal.sqlite`), or in a shared PostgreSQL or Turso/libSQL database via [Storage backends](docs/storage.md). Legacy `~/.atomic/agent/sessions/` and `~/.pi/agent/sessions/` JSONL files remain readable.
218
+ Sessions auto-save per working directory in the default local SQLite store (`~/.atomic/workflows/journal.sqlite`), or in a shared PostgreSQL database. See [Storage](docs/storage.md). Legacy `~/.atomic/agent/sessions/` and `~/.pi/agent/sessions/` JSONL files remain readable.
219
219
 
220
220
  ```bash
221
221
  atomic -c # Continue the most recent session
@@ -428,7 +428,7 @@ See [docs/packages.md](docs/packages.md).
428
428
  import { createAgentSession } from "@bastani/atomic";
429
429
 
430
430
  // Builds a ModelRuntime from the active agent directory's auth.json and models.json by default.
431
- // Pass `sessionStore` for SQLite, JSONL, in-memory, libSQL/Turso, or PostgreSQL persistence.
431
+ // Pass `sessionStore` for SQLite, JSONL, in-memory, or PostgreSQL persistence.
432
432
  const { session } = await createAgentSession({
433
433
  sessionStore: { kind: "sqlite", path: "./sessions.sqlite" },
434
434
  });
@@ -440,7 +440,7 @@ try {
440
440
  }
441
441
  ```
442
442
 
443
- - **Storage backends:** Configure SQLite, JSONL, in-memory, libSQL/Turso (`@bastani/atomic-storage-libsql`), and PostgreSQL 16+ (`@bastani/atomic-storage-postgres`) with `createAgentSession()` or `createAgentSessionRuntime()`. See [SDK storage backends](docs/sdk/storage.md) ([docs.bastani.ai/sdk/storage](https://docs.bastani.ai/sdk/storage)).
443
+ - **Storage backends:** Configure SQLite, JSONL, in-memory, and PostgreSQL 16+ (`@bastani/atomic-storage-postgres`) stores with `createAgentSession()` or `createAgentSessionRuntime()`. See [SDK storage backends](docs/sdk/storage.md) ([docs.bastani.ai/sdk/storage](https://docs.bastani.ai/sdk/storage)).
444
444
  - **Structured decisions:** Make typed, schema-validated classifier or chat decisions without starting a session using `decide()` and `generateStructuredOutput()`. See [Structured decisions](docs/sdk/structured-decisions.md).
445
445
  - **Multi-session runtimes and guides:** See [docs/sdk.md](docs/sdk.md), [docs/sdk/web-server.md](docs/sdk/web-server.md), and [examples/sdk/](examples/sdk/).
446
446
 
@@ -493,7 +493,7 @@ atomic config [-l] # Enable/disable package resources
493
493
  atomic auth <login|logout|check|print-api-key|print-bearer-token>
494
494
  atomic mcp <add|remove|list|login|logout>
495
495
  atomic storage <status|join|migrate|move-snapshot-chunks|search-session|export|import>
496
- atomic team <join|status|leave>
496
+ atomic team status
497
497
  atomic intercom <status|restart|upgrade>
498
498
  atomic blueprint <cache-key|prebuild> # Environment blueprint cache keys and worktree prebuilds
499
499
  ```
@@ -627,8 +627,6 @@ When both an `ATOMIC_*` variable and its legacy `PI_*` alias are set, the `ATOMI
627
627
  | `ATOMIC_CODING_AGENT_SESSION_DIR` | Non-empty value selects a JSONL session directory (overridden by `--session-dir` and `--no-session`; no legacy `PI_*` alias). |
628
628
  | `ATOMIC_STORAGE` | Shared storage selection JSON for sessions and Intercom. |
629
629
  | `ATOMIC_SESSIONS_STORAGE` | Session-only storage selection JSON (conflicts with `ATOMIC_CODING_AGENT_SESSION_DIR`). |
630
- | `ATOMIC_PROFILE` | Set to `ci` to select the team database from `ATOMIC_TEAM_*` without writing settings. |
631
- | `ATOMIC_TEAM_URL`, `ATOMIC_TEAM_TOKEN`, `ATOMIC_TEAM_TOKEN_FILE`, `ATOMIC_TEAM_PREFIX` | Team database settings used with `ATOMIC_PROFILE=ci`. |
632
630
  | `ATOMIC_PACKAGE_DIR` | Override package directory (for Nix/Guix store paths; legacy `PI_PACKAGE_DIR`). |
633
631
  | `ATOMIC_OFFLINE` | Set to `1`, `true`, or `yes` to disable startup network calls (`0`/`false` stays online; legacy `PI_OFFLINE`). |
634
632
  | `ATOMIC_SKIP_VERSION_CHECK` | Skip startup version check (legacy `PI_SKIP_VERSION_CHECK`). |
@@ -666,5 +664,4 @@ MIT
666
664
  - [@bastani/atomic-codemode](https://www.npmjs.com/package/@bastani/atomic-codemode): Sandboxed JavaScript execution for tool scripting
667
665
  - [@bastani/atomic-schema](https://www.npmjs.com/package/@bastani/atomic-schema): TypeScript-first JSON Schema builder and validator
668
666
  - [@bastani/atomic-telemetry](https://www.npmjs.com/package/@bastani/atomic-telemetry): Vendor-neutral telemetry contracts, metrics, and trace renderers ([docs](docs/libraries/telemetry.md))
669
- - [@bastani/atomic-storage-libsql](https://www.npmjs.com/package/@bastani/atomic-storage-libsql): Optional Turso / libSQL storage adapter ([docs](docs/libraries/storage-libsql.md))
670
667
  - [@bastani/atomic-storage-postgres](https://www.npmjs.com/package/@bastani/atomic-storage-postgres): Optional PostgreSQL 16+ storage adapter ([docs](docs/libraries/storage-postgres.md))
@@ -31842,7 +31842,7 @@ function __atomicOnDemandFailed(error, feature) {
31842
31842
  return (async () => {
31843
31843
  const root = new URL("../", import.meta.url);
31844
31844
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
31845
- const key = `${root.href}#0.10.11-alpha.2`;
31845
+ const key = `${root.href}#0.10.11-alpha.4`;
31846
31846
  let release = releases.get(key);
31847
31847
  if (release === undefined) {
31848
31848
  const current = (async () => {
@@ -31870,7 +31870,7 @@ function __atomicOnDemandFailed(error, feature) {
31870
31870
  } catch {
31871
31871
  // No installation to read, as in a bundle of the package: the release the process runs decides.
31872
31872
  }
31873
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : undefined;
31873
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.4" ? installed : running !== undefined && running.version !== "0.10.11-alpha.4" ? "0.10.11-alpha.4" : undefined;
31874
31874
  if (updatedTo === undefined) throw error;
31875
31875
  const application = typeof running?.name === "string" ? running.name : "atomic";
31876
31876
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -40,7 +40,7 @@ function __atomicOnDemandFailed(error, feature) {
40
40
  return (async () => {
41
41
  const root = new URL("../", import.meta.url);
42
42
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
43
- const key = `${root.href}#0.10.11-alpha.2`;
43
+ const key = `${root.href}#0.10.11-alpha.4`;
44
44
  let release = releases.get(key);
45
45
  if (release === undefined) {
46
46
  const current = (async () => {
@@ -68,7 +68,7 @@ function __atomicOnDemandFailed(error, feature) {
68
68
  } catch {
69
69
  // No installation to read, as in a bundle of the package: the release the process runs decides.
70
70
  }
71
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : undefined;
71
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.4" ? installed : running !== undefined && running.version !== "0.10.11-alpha.4" ? "0.10.11-alpha.4" : undefined;
72
72
  if (updatedTo === undefined) throw error;
73
73
  const application = typeof running?.name === "string" ? running.name : "atomic";
74
74
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -5131,7 +5131,7 @@ function __atomicOnDemandFailed(error, feature) {
5131
5131
  return (async () => {
5132
5132
  const root = new URL("../", import.meta.url);
5133
5133
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
5134
- const key = `${root.href}#0.10.11-alpha.2`;
5134
+ const key = `${root.href}#0.10.11-alpha.4`;
5135
5135
  let release = releases.get(key);
5136
5136
  if (release === undefined) {
5137
5137
  const current = (async () => {
@@ -5159,7 +5159,7 @@ function __atomicOnDemandFailed(error, feature) {
5159
5159
  } catch {
5160
5160
  // No installation to read, as in a bundle of the package: the release the process runs decides.
5161
5161
  }
5162
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : undefined;
5162
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.4" ? installed : running !== undefined && running.version !== "0.10.11-alpha.4" ? "0.10.11-alpha.4" : undefined;
5163
5163
  if (updatedTo === undefined) throw error;
5164
5164
  const application = typeof running?.name === "string" ? running.name : "atomic";
5165
5165
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -1,16 +1,16 @@
1
1
  import { __name } from "./rolldown-runtime-BGM3D5V3.js";
2
2
  import { APP_NAME, APP_TITLE, CHANGELOG_URL, CONFIG_DIR_NAME, UpdatedInstallError, VERSION, VERSION_ADOPTION_ENDPOINT, canonicalizePathAsync, createChildProcessEnvironment, createModuleRequire, detectInstallChangeAsync, engineHeapRuntimeArgsForHost, findHelperExecutableAsync, getAgentDir, getAuthPath, getChangelogPath, getCwdRelativePath, getDebugLogPath, getDocsPath, getShareViewerUrl, helperLaunchAsync, isModuleLoadFailure, loadOnDemand, markLifecycleTiming, missingHelperOptions, processCompileCacheDeferral, setDebugSetting, shortenHomePath, updatedInstallError } from "./p0-cli-BB45ZQY6.js";
3
- import { BUILTIN_SLASH_COMMANDS, BUNDLED_EXTENSION_SLASH_COMMANDS, CountdownTimer, DynamicBorder, MissingSessionCwdError, NO_QUEUED_MESSAGES, TrustDecisionSelector, asyncScope, carryRowSource, chatPosition, chatReceipt, deduplicateDiagnostics, findProviderDefaultModel, formatMissingSessionCwdPrompt, formatNoModelsAvailableMessage, getEngineSessionStats, getMissingSessionCwdOptions, getPiUserAgent, isGitUnavailableError, isInstallTelemetryEnabled, isInteractiveEngineResourceReadinessError, isPathInside, isTrustDecision, isUnknownModel, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, noteRowSource, noteSavedSeq, onSessionProviderRequestDispatched, parseSlashCommand, placeTranscriptFrame, projectTrustWarningVisible, queuedMessagesUnderWay, quitAsInteractiveApp, recordStartupThinkingLevel, rowSource, safeTrustChoiceIndex, savedRowKey, savedSeqOf, setDeprecationWarningSink, setMarkitDiagnosticSink, shouldRenderEngineDiagnosticAsChatError, takeQueuedMessagesDroppedAt, usageCostBreakdown, userMessageOrigin, yieldToEventLoop, yieldToTimerTurn } from "./startup-0-0-3IXNMFM2.js";
4
- import { ExtensionInputComponent, ExtensionSelectorComponent, ReopenedCompletionHeaders, cancelInitialBinding, createCustomMessage, ensurePngTranscoder, ensureTool, formatResumeTimings, formatToolStatus, getBuiltinExtensionEntryLabel, getPromptCacheTtlMs as getPromptCacheTtlMs$1, initialBindScope, isOfflineModeEnabled, isVerbatimCompactionMessage, isWorkspaceError, latestResumeTimings, normalizeMessageContent, prewarmModelApi, readHostInputFormRequest, registerInitialBindings, stripVerbatimCompactionPrefix, taskPromptHost, thinkingLevelForModelSwitch } from "./startup-0-1-7T2IAE7J.js";
3
+ import { BUILTIN_SLASH_COMMANDS, BUNDLED_EXTENSION_SLASH_COMMANDS, CountdownTimer, DynamicBorder, MissingSessionCwdError, NO_QUEUED_MESSAGES, TrustDecisionSelector, asyncScope, carryRowSource, chatPosition, chatReceipt, deduplicateDiagnostics, findProviderDefaultModel, formatMissingSessionCwdPrompt, formatNoModelsAvailableMessage, getEngineSessionStats, getMissingSessionCwdOptions, getPiUserAgent, isGitUnavailableError, isInstallTelemetryEnabled, isInteractiveEngineResourceReadinessError, isPathInside, isTrustDecision, isUnknownModel, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, noteRowSource, noteSavedSeq, onSessionProviderRequestDispatched, parseSlashCommand, placeTranscriptFrame, projectTrustWarningVisible, queuedMessagesUnderWay, quitAsInteractiveApp, recordStartupThinkingLevel, rowSource, safeTrustChoiceIndex, savedRowKey, savedSeqOf, setDeprecationWarningSink, setMarkitDiagnosticSink, shouldRenderEngineDiagnosticAsChatError, takeQueuedMessagesDroppedAt, usageCostBreakdown, userMessageOrigin, yieldToEventLoop, yieldToTimerTurn } from "./startup-0-0-XJJDOIEC.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-M6OWAYHH.js";
5
5
  import { KeybindingsManager as KeybindingsManager$1, OVERLAY_ACTIVE_ROW_MARKER, Theme, clickableKeyTextHint, consumeStartupInput, formatKeyText, getAvailableThemes, getAvailableThemesWithPaths, getEditorTheme, getMarkdownTheme, getThemeByName, isNavHelpKey, keyDisplayText, keyHint, keyText, keyTextHint, loadAllHighlightLanguages, navEntryKeyParts, onThemeChange, recordTimeSinceReset, refreshCustomThemes, renderNavKeyOverlay, setRegisteredThemes, slashCommandHint, stopThemeWatcher, theme } from "./p2-shell-main-B2WIALFD.js";
6
- import { ProjectTrustStore, failureDebugFields, getProjectTrustPathAsync, hasTrustRequiringProjectResourcesAsync, reportDebugAsync } from "./p1b-elig-ENCUPKKJ.js";
6
+ import { ProjectTrustStore, failureDebugFields, getProjectTrustPathAsync, hasTrustRequiringProjectResourcesAsync, reportDebugAsync } from "./p1b-elig-TVB5CBLL.js";
7
7
  import { WorkingRunMeter, compactionMeta, findExactModelReferenceMatch, getPowerShellConfigAsync, killSupervisedProcessTrees, killTrackedDetachedChildren, runInProgress, sessionLifetime, showStartupInput, showStartupSelector, taskTranscriptSource } from "./startup-0-2-5QHPCEON.js";
8
8
  import { AtomicWorkedStatusComponent, AtomicWorkingLoader, DEFAULT_WORKING_MESSAGE, buildContextEntries, getOwnerTaskStore, isResumeFailure, parseGitUrl, resolveModelScopeFromModels, resolveModelScopeWithDiagnostics, sessionEntryToDisplayMessages, watchAtomicWorkingClock, watchOwnerTaskStoreBinding } from "./startup-0-3-4ZYBYQNM.js";
9
9
  import { SESSION_HISTORY_SCAN_ENTRIES, findDecisionError, isDecisionConfigError, isRpcRequestAcceptedFailure, isRpcTransportFailure } from "./settings-startup-HXQLSUWM.js";
10
10
  import { readAhead } from "./startup-8-0-34CBHPZH.js";
11
11
  import { CredentialSynchronizationError, DefaultPackageManager, chunkedToolResult, chunkedToolResultEntry, findInitialModel, firstSubagentAttempt, getSkillCatalog, isOAuthLoginCancelled, resolveRestoredModelReference, uncachedCopilotModelHint } from "./startup-0-5-YDW47QX6.js";
12
12
  import { formatModelLabel } from "./startup-0-4-ZMJV547D.js";
13
- import { ENGINE_SHUTDOWN_GRACE_MS, FooterDataProvider, appendBoundedStderr, compareWorktreeSnapshot, currentWorktreeSnapshots, describeExportedSnapshots, describeLastCapture, describeSnapshotExport, describeWorktreeRestoreStatus, describeWorktreeSnapshot, dismissedAgentPanelItems, ownerTaskViewSource, sourceError, subscribeAgentPanel, worktreeRestoreNotices } from "./startup-8-1-X32CYSXB.js";
13
+ import { ENGINE_SHUTDOWN_GRACE_MS, FooterDataProvider, appendBoundedStderr, compareWorktreeSnapshot, currentWorktreeSnapshots, describeExportedSnapshots, describeLastCapture, describeSnapshotExport, describeWorktreeRestoreStatus, describeWorktreeSnapshot, dismissedAgentPanelItems, ownerTaskViewSource, sourceError, subscribeAgentPanel, worktreeRestoreNotices } from "./startup-8-1-LZFXSD3Z.js";
14
14
  import { tryExecuteSessionSlashCommand } from "./startup-15-0-YUKGAC63.js";
15
15
  import { SessionManager } from "./startup-10-0-TDQNBDDL.js";
16
16
  import { IsolatedInteractiveRuntime, SessionImportFileNotFoundError, parseSkillBlock, sessionCloseReason } from "./startup-15-1-4S7FLMNG.js";
@@ -28170,7 +28170,7 @@ function __atomicOnDemandFailed(error, feature) {
28170
28170
  return (async () => {
28171
28171
  const root = new URL("../", import.meta.url);
28172
28172
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
28173
- const key = `${root.href}#0.10.11-alpha.2`;
28173
+ const key = `${root.href}#0.10.11-alpha.4`;
28174
28174
  let release = releases.get(key);
28175
28175
  if (release === undefined) {
28176
28176
  const current = (async () => {
@@ -28198,7 +28198,7 @@ function __atomicOnDemandFailed(error, feature) {
28198
28198
  } catch {
28199
28199
  // No installation to read, as in a bundle of the package: the release the process runs decides.
28200
28200
  }
28201
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : undefined;
28201
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.4" ? installed : running !== undefined && running.version !== "0.10.11-alpha.4" ? "0.10.11-alpha.4" : undefined;
28202
28202
  if (updatedTo === undefined) throw error;
28203
28203
  const application = typeof running?.name === "string" ? running.name : "atomic";
28204
28204
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -1,14 +1,14 @@
1
1
  import "./rolldown-runtime-BGM3D5V3.js";
2
- import { CompactionConfigError, QueuedDeliveryRelay, THINKING_LEVELS, attachJsonlLineReader, bindSavedReadLines, chatReceipt, flushRawStdout, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, onBlueprintBuildFinished, onBlueprintBuildWaiting, outputExtensionLoadErrors, quitAsInteractiveApp, rawStdoutWriteFailed, sliceTail, takeOverStdout, transcriptLayoutOf, userMessageOrigin, waitForRawStdoutBackpressure, withQueuedDeliveryChange, writeRawStdout, yieldToEventLoop } from "./startup-0-0-3IXNMFM2.js";
2
+ import { CompactionConfigError, QueuedDeliveryRelay, THINKING_LEVELS, attachJsonlLineReader, bindSavedReadLines, chatReceipt, flushRawStdout, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, onBlueprintBuildFinished, onBlueprintBuildWaiting, outputExtensionLoadErrors, quitAsInteractiveApp, rawStdoutWriteFailed, sliceTail, takeOverStdout, transcriptLayoutOf, userMessageOrigin, waitForRawStdoutBackpressure, withQueuedDeliveryChange, writeRawStdout, yieldToEventLoop } from "./startup-0-0-XJJDOIEC.js";
3
3
  import { flushLifecycleTraceAtQuit, getAgentDir, loadOnDemand, markLifecycleTiming, setDebugSetting, startedWithHangupIgnored } from "./p0-cli-BB45ZQY6.js";
4
4
  import { TuiMainScreen, bindBundledHintCommands, isKeyRelease, runAsHintActivation, setCapabilityOverrides, setKeybindings } from "@bastani/atomic-tui";
5
5
  import { KeybindingsManager as KeybindingsManager$1, getEditorTheme, theme } from "./p2-shell-main-B2WIALFD.js";
6
- import { ensurePngTranscoder, hasQuitStoppableCommands, isJsonValue, killQuitStoppableCommandsNow, parseEngineExplicitQuitCommand, parseInteractiveEngineCommand, prewarmModelApi, runCallback, runSynchronousCallback, serializeInteractiveEngineMessage, settingsWriteOwner, taskPromptHost } from "./startup-0-1-7T2IAE7J.js";
6
+ import { ensurePngTranscoder, hasQuitStoppableCommands, isJsonValue, killQuitStoppableCommandsNow, parseEngineExplicitQuitCommand, parseInteractiveEngineCommand, prewarmModelApi, runCallback, runSynchronousCallback, serializeInteractiveEngineMessage, settingsWriteOwner, taskPromptHost } from "./startup-0-1-M6OWAYHH.js";
7
7
  import { interactiveEngineStartupEnv, isInteractiveEngineChild } from "./p1a-prewarm-XIU57JHF.js";
8
8
  import { CONSOLE_CLOSED_EXIT_CODE, CONSOLE_CLOSED_SHUTDOWN_MS, ChatSessionHost, CustomMessageComponent, KeybindingsReloadCoordinator, RETAINED_TOOL_RENDERERS, STOP_ALL_STATUS_KEY, ToolExecutionComponent, agentPanelReturning, bindAgentPanel, createRpcErrorResponse, createRpcSuccessResponse, disposeRenderer, engineTaskInspectorUi, exitWithStatus, formatRpcErrorMessage, handleSetViewedAgent, installEngineAgentViewBridge, markHintRoutesAsEngine, onTaskDismissed, openLocalAgentViewPort, readTaskCompletionHistory, readTaskPrompts, retainedToolRenderer, rpcShutdownErrorEvent, runHintRoute, runRendererCleanup, sameRows, showAgentPanel, showEngineTaskInspector, stopAllBackgroundWork, themedChatHostStyle, withBlockRenderTime } from "./mode-shared-2QJSCUM6.js";
9
9
  import { killTrackedDetachedChildren, taskTranscriptSource, watchTaskTranscriptBindings } from "./startup-0-2-5QHPCEON.js";
10
10
  import { getOwnerTaskStore, isTaskTurnInterrupted, startInteractiveEngineLiveness, watchOwnerTaskStoreBinding } from "./startup-0-3-4ZYBYQNM.js";
11
- import { FooterDataProvider, dismissedAgentPanelItems, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, onOwnerTaskAction, ownerTaskViewSource, sourceError, subscribeAgentPanel } from "./startup-8-1-X32CYSXB.js";
11
+ import { FooterDataProvider, dismissedAgentPanelItems, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, onOwnerTaskAction, ownerTaskViewSource, sourceError, subscribeAgentPanel } from "./startup-8-1-LZFXSD3Z.js";
12
12
  import { writeSync } from "node:fs";
13
13
  import { ToolBlock } from "./startup-0-4-ZMJV547D.js";
14
14
  import { AsyncLocalStorage } from "node:async_hooks";
@@ -4175,7 +4175,7 @@ function __atomicOnDemandFailed(error, feature) {
4175
4175
  return (async () => {
4176
4176
  const root = new URL("../", import.meta.url);
4177
4177
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
4178
- const key = `${root.href}#0.10.11-alpha.2`;
4178
+ const key = `${root.href}#0.10.11-alpha.4`;
4179
4179
  let release = releases.get(key);
4180
4180
  if (release === undefined) {
4181
4181
  const current = (async () => {
@@ -4203,7 +4203,7 @@ function __atomicOnDemandFailed(error, feature) {
4203
4203
  } catch {
4204
4204
  // No installation to read, as in a bundle of the package: the release the process runs decides.
4205
4205
  }
4206
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : undefined;
4206
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.4" ? installed : running !== undefined && running.version !== "0.10.11-alpha.4" ? "0.10.11-alpha.4" : undefined;
4207
4207
  if (updatedTo === undefined) throw error;
4208
4208
  const application = typeof running?.name === "string" ? running.name : "atomic";
4209
4209
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -1,9 +1,9 @@
1
1
  import { __name } from "./rolldown-runtime-BGM3D5V3.js";
2
2
  import { APP_NAME, CONFIG_DIR_NAME, DebugError, ENV_OFFLINE, ENV_SKIP_VERSION_CHECK, PACKAGE_NAME, canonicalizePathAsync, createChildProcessEnvironment, createModuleRequire, getAgentDir, getBundledInteractiveAssetPathAsync, getEnvValue, getPathComparisonKey, helperLaunchAsync, missingHelperOptions, serializeDebugError, shortenHomePath, stripBom } from "./p0-cli-BB45ZQY6.js";
3
- import { BUILTIN_SLASH_COMMANDS, CompactionError, CountdownTimer, DEFAULT_MAX_BYTES, DynamicBorder, FramedSelector, HOST_NOTICE_TYPE, INTERACTIVE_MODEL_REFRESH_TIMEOUT_MS, Selector, TASK_MARKS, TaskMessageError, VERBATIM_COMPACTION_STRATEGY, addHistoryUsageToTotals, addUsageToTotals, allToolNames, areExperimentalFeaturesEnabled, backgroundTaskScope, bindSavedTaskRowKey, carryRowSource, chatReceipt, chatReceiptWrite, createUsageTotals, defaultModelPerProvider, fetchWithRetry, formatReadLineRange, formatTokenCount, getEngineSessionStats, getTextOutput, getToolExecutionStartedAt, hostNoticeForEvent, isMissingSessionCwdError, isTaskMessageError, keptTaskId, noteRowSource, noteSavedSeq, parseSlashCommand, queueUpdateDeliveries, queuedReceiptsUnderWay, queuedTextsUnderWay, raceWithAbortSignal, replaceTabs, rowSource, savedReadLines, savedRowKey, savedRowSpan, savedSeqOf, savedTaskRowKey, savedTaskRows, serializeCompactionError, serializeMissingSessionCwdError, sessionWaitsToRetry, sqliteSessionResumeArgs, taskMark, taskOutcomeStatus } from "./startup-0-0-3IXNMFM2.js";
4
- import { ExtensionInputComponent, ExtensionSelectorComponent, SUMMARY_COMPACTION_PREFIX, TaskElapsedClocks, bindTaskClock, createVerbatimCompactionMessage, ensurePngTranscoder, getToolPath, heldPrompts, isVerbatimCompactionMessage, reopenedCompletionName, repairOrphanToolResults, shownSpanMs, stripVerbatimCompactionPrefix, taskClockOf, taskClockRunning, taskClocksFor, taskElapsedMs, thinkingLevelForModelSwitch } from "./startup-0-1-7T2IAE7J.js";
3
+ import { BUILTIN_SLASH_COMMANDS, CompactionError, CountdownTimer, DEFAULT_MAX_BYTES, DynamicBorder, FramedSelector, HOST_NOTICE_TYPE, INTERACTIVE_MODEL_REFRESH_TIMEOUT_MS, Selector, TASK_MARKS, TaskMessageError, VERBATIM_COMPACTION_STRATEGY, addHistoryUsageToTotals, addUsageToTotals, allToolNames, areExperimentalFeaturesEnabled, backgroundTaskScope, bindSavedTaskRowKey, carryRowSource, chatReceipt, chatReceiptWrite, createUsageTotals, defaultModelPerProvider, fetchWithRetry, formatReadLineRange, formatTokenCount, getEngineSessionStats, getTextOutput, getToolExecutionStartedAt, hostNoticeForEvent, isMissingSessionCwdError, isTaskMessageError, keptTaskId, noteRowSource, noteSavedSeq, parseSlashCommand, queueUpdateDeliveries, queuedReceiptsUnderWay, queuedTextsUnderWay, raceWithAbortSignal, replaceTabs, rowSource, savedReadLines, savedRowKey, savedRowSpan, savedSeqOf, savedTaskRowKey, savedTaskRows, serializeCompactionError, serializeMissingSessionCwdError, sessionWaitsToRetry, sqliteSessionResumeArgs, taskMark, taskOutcomeStatus } from "./startup-0-0-XJJDOIEC.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-M6OWAYHH.js";
5
5
  import { CodeHighlighter, KeybindingsManager as KeybindingsManager$1, NAV_CONFIRM_WINDOW_MS, SYSTEM_THEME_NAME, TwoPressConfirm, clickableKeyTextHint, colorEnvironment, formatKeyText, getCurrentThemeName, getEditorTheme, getGlobalTheme, getMarkdownTheme, getTerminalTheme, initTheme, isLightTheme, isNavHelpKey, keyDisplayText, keyHint, keyHintIfBound, keyText, keyTextHint, keybindingIdentity, markTerminalColorsPending, navActionText, navFirstKeyText, navKeyText, parenthesizedKeyHint, parseAutoThemeSetting, renderNavHintLine, renderNavKeyOverlay, resolveThemeSetting, sanitizeTerminalText, setTerminalColorScheme, setTerminalColors, setTheme, setThemeInstance, singleLineDisplayText, slashCommandHint, terminalDisplayText, theme } from "./p2-shell-main-B2WIALFD.js";
6
- import { isDebugEnabled, projectTrustOptionsFor } from "./p1b-elig-ENCUPKKJ.js";
6
+ import { isDebugEnabled, projectTrustOptionsFor } from "./p1b-elig-TVB5CBLL.js";
7
7
  import { AgentTokenMeter, WorkingRunMeter, agentTokenTotal, compactionMeta, formatWorkingElapsed, loadTaskOwnTranscriptHistory, normalizeWorkingRunSnapshot, observedTaskChatWrite, runInProgress, taskChatPage, taskOwnTranscriptEntries, taskTranscriptSource, withTaskChatRows } from "./startup-0-2-5QHPCEON.js";
8
8
  import { AtomicWorkedStatusComponent, AtomicWorkingStatusComponent, DEFAULT_WORKING_MESSAGE, OwnerTaskStore, assertSessionNotOpenElsewhere, atomicWorkingFrame, atomicWorkingGlyph, getOwnerTaskSession, getOwnerTaskStore, isTaskTurnInterrupted, parseGitUrl, setTaskTurnInterrupted, watchAtomicWorkingClock, watchOwnerTaskStoreBinding, workingMessageColumns } from "./startup-0-3-4ZYBYQNM.js";
9
9
  import { isRpcRequestAcceptedFailure } from "./settings-startup-HXQLSUWM.js";
@@ -11,7 +11,7 @@ import { lastAssistantAnswer } from "./startup-8-0-34CBHPZH.js";
11
11
  import { CredentialSynchronizationError, QuestionnaireSession, buildItemsForQuestion, childOfAttempt, completionTitleDescription, completionTitleText, firstSubagentAttempt, formatTaskHeartbeatDuration, formatTaskHeartbeatStatus, getSkillCatalog, isResumableStop, latestSubagentAttempt, latestSubagentAttempts, releasedWaitingOn, require_semver, settledTaskResumeId, supersededSettledAttempts, taskHeartbeatKindLabel, taskNoticeLine, waitingReleasedShells, waitingReleasedTools } from "./startup-0-5-YDW47QX6.js";
12
12
  import { DETAIL_FIRST_PREFIX, DETAIL_PREFIX, NoticeLine, STATUS_MARKERS, TOOL_BLOCK_LIMITS, ToolBlock, ToolBlockMarkdown, ToolBlockRecords, collapseToolBlockLines, componentNeedsWorkingClock, formatModelLabel, isToolBlock, markdownPreviewRows } from "./startup-0-4-ZMJV547D.js";
13
13
  import { SETTINGS_DEFAULTS } from "./p2-common-YLSYXMDQ.js";
14
- import { EVENT_REPORT_MESSAGE_TYPE, agentPanelExtensionItems, agentPanelSourceHubOf, agentPanelSourcesGeneration, agentPanelTaskId, answerAgentPanelItem, builtinToolBlockPresentation, copyPanelItemStableKey, createLoadedToolDefinition, dismissedAgentPanelItems, formatToolBlockElapsed, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, isInterruptedPanelTask, launchedTaskViewSource, lazyTaskPanelItem, liveTaskRowOrigin, markInterruptedPanelTask, materializePanelItem, modelHasReasoning, notifyAgentPanelChanged, openAgentPanelItem, ownerTaskViewSource, panelItemStableKey, pathExists, plainNoticeBlock, promptAnswerOptionsOf, readTaskDetailForView, readTaskPageForChat, readTaskPageForView, retainTaskWindowReader, sampleAgentPanelSources, savedBoundaryCursor, shortTaskTitle, sourceError, stopAgentPanelItem, subscribeAgentPanel, subscribeAgentPanelExtensions, taskCursorsAround, taskPanelItem, taskPanelItems, taskPanelModel, taskPanelRole, taskPanelState, taskRunGeneration, taskTranscriptFragments } from "./startup-8-1-X32CYSXB.js";
14
+ import { EVENT_REPORT_MESSAGE_TYPE, agentPanelExtensionItems, agentPanelSourceHubOf, agentPanelSourcesGeneration, agentPanelTaskId, answerAgentPanelItem, builtinToolBlockPresentation, copyPanelItemStableKey, createLoadedToolDefinition, dismissedAgentPanelItems, formatToolBlockElapsed, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, isInterruptedPanelTask, launchedTaskViewSource, lazyTaskPanelItem, liveTaskRowOrigin, markInterruptedPanelTask, materializePanelItem, modelHasReasoning, notifyAgentPanelChanged, openAgentPanelItem, ownerTaskViewSource, panelItemStableKey, pathExists, plainNoticeBlock, promptAnswerOptionsOf, readTaskDetailForView, readTaskPageForChat, readTaskPageForView, retainTaskWindowReader, sampleAgentPanelSources, savedBoundaryCursor, shortTaskTitle, sourceError, stopAgentPanelItem, subscribeAgentPanel, subscribeAgentPanelExtensions, taskCursorsAround, taskPanelItem, taskPanelItems, taskPanelModel, taskPanelRole, taskPanelState, taskRunGeneration, taskTranscriptFragments } from "./startup-8-1-LZFXSD3Z.js";
15
15
  import { queuedMessageReceipt, queuedMessageReceiptId, queuedMessageSaved } from "./startup-15-0-YUKGAC63.js";
16
16
  import { SessionManager } from "./startup-10-0-TDQNBDDL.js";
17
17
  import { isTruthyEnvFlag } from "./p1a-prewarm-XIU57JHF.js";
@@ -27319,7 +27319,7 @@ function __atomicOnDemandFailed(error, feature) {
27319
27319
  return (async () => {
27320
27320
  const root = new URL("../", import.meta.url);
27321
27321
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
27322
- const key = `${root.href}#0.10.11-alpha.2`;
27322
+ const key = `${root.href}#0.10.11-alpha.4`;
27323
27323
  let release = releases.get(key);
27324
27324
  if (release === undefined) {
27325
27325
  const current = (async () => {
@@ -27347,7 +27347,7 @@ function __atomicOnDemandFailed(error, feature) {
27347
27347
  } catch {
27348
27348
  // No installation to read, as in a bundle of the package: the release the process runs decides.
27349
27349
  }
27350
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : undefined;
27350
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.4" ? installed : running !== undefined && running.version !== "0.10.11-alpha.4" ? "0.10.11-alpha.4" : 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}.`, {