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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/_shared/dist-KOELCESV.js +2 -2
  3. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  4. package/dist/_shared/lib-4PES5P4V.js +2 -2
  5. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +7 -7
  6. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +7 -7
  7. package/dist/_shared/mode-shared-2QJSCUM6.js +7 -7
  8. package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
  9. package/dist/_shared/runtime-O4KCSG4C.js +5 -5
  10. package/dist/_shared/{sdk-AVFII7NK.js → sdk-IQMULKFU.js} +2438 -470
  11. package/dist/_shared/sdk-IQMULKFU.js.map +1 -0
  12. package/dist/_shared/session-data-AHTU7IS6.js +3 -3
  13. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  14. package/dist/_shared/settings-startup-8-DNZ2RIHM.js +1 -1
  15. package/dist/_shared/{settings-startup-4QCVCI53.js → settings-startup-HXQLSUWM.js} +8 -2
  16. package/dist/_shared/settings-startup-HXQLSUWM.js.map +1 -0
  17. package/dist/_shared/{startup-0-0-57KF6LZH.js → startup-0-0-3IXNMFM2.js} +392 -15
  18. package/dist/_shared/startup-0-0-3IXNMFM2.js.map +1 -0
  19. package/dist/_shared/{startup-0-1-GIY75K46.js → startup-0-1-7T2IAE7J.js} +51 -243
  20. package/dist/_shared/startup-0-1-7T2IAE7J.js.map +1 -0
  21. package/dist/_shared/{startup-0-2-27OWFHV6.js → startup-0-2-5QHPCEON.js} +225 -7
  22. package/dist/_shared/startup-0-2-5QHPCEON.js.map +1 -0
  23. package/dist/_shared/{startup-0-3-T4DVFYWX.js → startup-0-3-4ZYBYQNM.js} +273 -14
  24. package/dist/_shared/startup-0-3-4ZYBYQNM.js.map +1 -0
  25. package/dist/_shared/startup-0-4-ZMJV547D.js +6 -6
  26. package/dist/_shared/startup-0-5-YDW47QX6.js +7 -7
  27. package/dist/_shared/startup-10-0-TDQNBDDL.js +7 -7
  28. package/dist/_shared/startup-12-0-55AAXBJZ.js +2 -2
  29. package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
  30. package/dist/_shared/startup-15-0-YUKGAC63.js +5 -5
  31. package/dist/_shared/startup-15-1-4S7FLMNG.js +7 -7
  32. package/dist/_shared/startup-8-0-34CBHPZH.js +421 -84
  33. package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
  34. package/dist/_shared/startup-8-1-X32CYSXB.js +77 -13
  35. package/dist/_shared/startup-8-1-X32CYSXB.js.map +1 -1
  36. package/dist/_shared/storage-command-7MGXLJGZ.js +7 -5
  37. package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
  38. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  39. package/dist/_shared/tree-outline-MUEPK5B7.js +3 -3
  40. package/dist/builtin/intercom/CHANGELOG.md +11 -0
  41. package/dist/builtin/intercom/broker/broker.bundle.mjs +205 -82
  42. package/dist/builtin/intercom/broker/sql-lease-store.ts +38 -27
  43. package/dist/builtin/intercom/broker/sql-outbox-store.ts +228 -65
  44. package/dist/builtin/intercom/broker/sql-schema.ts +82 -27
  45. package/dist/builtin/intercom/index.bundle.mjs +1 -1
  46. package/dist/builtin/intercom/package.json +1 -1
  47. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  48. package/dist/builtin/mcp/package.json +1 -1
  49. package/dist/builtin/subagents/CHANGELOG.md +6 -0
  50. package/dist/builtin/subagents/package.json +1 -1
  51. package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
  52. package/dist/builtin/web-access/index.bundle.mjs +1 -1
  53. package/dist/builtin/web-access/package.json +1 -1
  54. package/dist/cli/args.js +2 -2
  55. package/dist/cli/auth-cli.code.js +4 -4
  56. package/dist/cli/auth-cli.impl.js +3 -3
  57. package/dist/cli/auth-cli.js +3 -3
  58. package/dist/cli/blueprint-command.code.js +2 -2
  59. package/dist/cli/blueprint-command.impl.js +3 -3
  60. package/dist/cli/blueprint-command.js +3 -3
  61. package/dist/cli/intercom-command.code.js +3 -3
  62. package/dist/cli/intercom-command.impl.js +3 -3
  63. package/dist/cli/intercom-command.js +3 -3
  64. package/dist/cli/list-models.code.js +2 -2
  65. package/dist/cli/list-models.impl.js +3 -3
  66. package/dist/cli/list-models.js +3 -3
  67. package/dist/cli/session-picker.code.js +2 -2
  68. package/dist/cli/session-picker.impl.js +3 -3
  69. package/dist/cli/session-picker.js +3 -3
  70. package/dist/cli/startup-ui.code.js +2 -2
  71. package/dist/cli/startup-ui.impl.js +3 -3
  72. package/dist/cli/startup-ui.js +3 -3
  73. package/dist/cli/storage-command.impl.js +3 -3
  74. package/dist/cli/storage-command.js +3 -3
  75. package/dist/cli/storage-search-session.code.js +2 -2
  76. package/dist/cli/storage-search-session.impl.js +3 -3
  77. package/dist/cli/storage-search-session.js +3 -3
  78. package/dist/cli/team-command.code.js +2 -2
  79. package/dist/cli/team-command.impl.js +3 -3
  80. package/dist/cli/team-command.js +3 -3
  81. package/dist/cli.js +2 -2
  82. package/dist/core/debug.impl.js +3 -3
  83. package/dist/core/debug.js +3 -3
  84. package/dist/core/export-html/card-projection.impl.js +3 -3
  85. package/dist/core/export-html/card-projection.js +3 -3
  86. package/dist/core/export-html/index.code.js +2 -2
  87. package/dist/core/export-html/index.impl.js +3 -3
  88. package/dist/core/export-html/index.js +3 -3
  89. package/dist/core/export-html/json-spans.impl.js +3 -3
  90. package/dist/core/export-html/json-spans.js +3 -3
  91. package/dist/core/export-html/oversized-render-inputs.code.js +1 -1
  92. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  93. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  94. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  95. package/dist/core/export-html/tool-renderer.js +3 -3
  96. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  97. package/dist/core/extensions/jiti-loader.js +3 -3
  98. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  99. package/dist/core/extensions/jiti-static-loader.js +3 -3
  100. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  101. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  102. package/dist/core/extensions/loader-host-modules.js +3 -3
  103. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  104. package/dist/core/extensions/runner-context.js +2 -2
  105. package/dist/core/intercom-broker-control-host.code.js +1 -1
  106. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  107. package/dist/core/intercom-broker-control-host.js +3 -3
  108. package/dist/core/intercom-broker-control.code.js +3 -3
  109. package/dist/core/intercom-broker-control.impl.js +3 -3
  110. package/dist/core/intercom-broker-control.js +3 -3
  111. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  112. package/dist/core/package-manager-storage-adapters.js +3 -3
  113. package/dist/core/sdk.code.js +3 -3
  114. package/dist/core/sdk.impl.js +3 -3
  115. package/dist/core/sdk.js +3 -3
  116. package/dist/core/session-manager-core.js +26 -14
  117. package/dist/core/session-manager-core.js.map +1 -1
  118. package/dist/core/session-manager-list.impl.js +3 -3
  119. package/dist/core/session-manager-list.js +3 -3
  120. package/dist/core/session-manager.code.js +3 -3
  121. package/dist/core/session-manager.impl.js +3 -3
  122. package/dist/core/session-manager.js +3 -3
  123. package/dist/core/session-open-markers.js +3 -0
  124. package/dist/core/session-open-markers.js.map +1 -0
  125. package/dist/core/session-storage.impl.js +3 -3
  126. package/dist/core/session-storage.js +3 -3
  127. package/dist/core/storage/added-exports.js +3 -0
  128. package/dist/core/storage/added-exports.js.map +1 -1
  129. package/dist/core/storage/database.d.ts +37 -0
  130. package/dist/core/storage/database.js.map +1 -1
  131. package/dist/core/storage/index.d.ts +1 -1
  132. package/dist/core/storage/index.js +2 -2
  133. package/dist/core/storage/index.js.map +1 -1
  134. package/dist/core/storage/migrations.d.ts +12 -3
  135. package/dist/core/storage/migrations.js +24 -11
  136. package/dist/core/storage/migrations.js.map +1 -1
  137. package/dist/core/storage/node-sqlite-thread.js +31 -2
  138. package/dist/core/storage/node-sqlite-thread.js.map +1 -1
  139. package/dist/core/storage/node-sqlite.js +86 -2
  140. package/dist/core/storage/node-sqlite.js.map +1 -1
  141. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  142. package/dist/core/storage/offline-snapshot-file.js +3 -3
  143. package/dist/core/storage/prefix.js +5 -0
  144. package/dist/core/storage/prefix.js.map +1 -1
  145. package/dist/core/storage/provider.js +2 -2
  146. package/dist/core/storage/schema-catalog.d.ts +82 -4
  147. package/dist/core/storage/schema-catalog.js +242 -32
  148. package/dist/core/storage/schema-catalog.js.map +1 -1
  149. package/dist/core/storage/selection.js +2 -2
  150. package/dist/core/storage/session/branch-fork-source.code.js +9 -8
  151. package/dist/core/storage/session/branch-fork-source.code.js.map +1 -1
  152. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  153. package/dist/core/storage/session/branch-fork-source.js +3 -3
  154. package/dist/core/storage/session/card-view.impl.js +3 -3
  155. package/dist/core/storage/session/card-view.js +3 -3
  156. package/dist/core/storage/session/child-reader.code.js +4 -4
  157. package/dist/core/storage/session/child-reader.impl.js +3 -3
  158. package/dist/core/storage/session/child-reader.js +3 -3
  159. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  160. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  161. package/dist/core/storage/session/errors.js +1 -1
  162. package/dist/core/storage/session/expanded-child-details.code.js +3 -3
  163. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  164. package/dist/core/storage/session/expanded-child-details.js +3 -3
  165. package/dist/core/storage/session/fork-detach.d.ts +118 -0
  166. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  167. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  168. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  169. package/dist/core/storage/session/fork-row-index.js +3 -3
  170. package/dist/core/storage/session/fork-schema.js +53 -0
  171. package/dist/core/storage/session/fork-schema.js.map +1 -0
  172. package/dist/core/storage/session/fork-segments.d.ts +58 -0
  173. package/dist/core/storage/session/fork-staging.code.js +3 -3
  174. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  175. package/dist/core/storage/session/fork-staging.js +3 -3
  176. package/dist/core/storage/session/fork-sweep.js +61 -0
  177. package/dist/core/storage/session/fork-sweep.js.map +1 -0
  178. package/dist/core/storage/session/fork-window.code.js +4 -4
  179. package/dist/core/storage/session/fork-window.impl.js +3 -3
  180. package/dist/core/storage/session/fork-window.js +3 -3
  181. package/dist/core/storage/session/history-pages.impl.js +3 -3
  182. package/dist/core/storage/session/history-pages.js +3 -3
  183. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  184. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  185. package/dist/core/storage/session/jsonl-session-store.d.ts +37 -1
  186. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  187. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  188. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  189. package/dist/core/storage/session/memory-session-store.js +3 -3
  190. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  191. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  192. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  193. package/dist/core/storage/session/released-history-files.code.js +3 -3
  194. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  195. package/dist/core/storage/session/released-history-files.js +3 -3
  196. package/dist/core/storage/session/resident-fork-rows.code.js +1 -1
  197. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  198. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  199. package/dist/core/storage/session/session-resume.impl.js +3 -3
  200. package/dist/core/storage/session/session-resume.js +3 -3
  201. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  202. package/dist/core/storage/session/snapshot-cut.js +3 -3
  203. package/dist/core/storage/session/snapshot-history.code.js +4 -4
  204. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  205. package/dist/core/storage/session/snapshot-history.js +3 -3
  206. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  207. package/dist/core/storage/session/sql-session-store.d.ts +349 -12
  208. package/dist/core/storage/session/sql-session-store.impl.js +4 -4
  209. package/dist/core/storage/session/sql-session-store.js +4 -4
  210. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  211. package/dist/core/storage/session/tree-outline.js +3 -3
  212. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  213. package/dist/core/storage/session/tree-presentation.js +3 -3
  214. package/dist/core/storage/session/types.d.ts +22 -0
  215. package/dist/core/storage/sqlite-facade.d.ts +17 -1
  216. package/dist/core/storage/sqlite-facade.js +33 -0
  217. package/dist/core/storage/sqlite-facade.js.map +1 -1
  218. package/dist/core/storage/storage-status.impl.js +3 -3
  219. package/dist/core/storage/storage-status.js +3 -3
  220. package/dist/core/storage/team.impl.js +3 -3
  221. package/dist/core/storage/team.js +3 -3
  222. package/dist/core/structured-output/index.code.js +1 -1
  223. package/dist/core/structured-output/index.impl.js +3 -3
  224. package/dist/core/structured-output/index.js +3 -3
  225. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  226. package/dist/core/tasks/task-completion-entry.js +3 -3
  227. package/dist/core/tasks/task-file-history.code.js +4 -4
  228. package/dist/core/tasks/task-file-history.impl.js +3 -3
  229. package/dist/core/tasks/task-file-history.js +3 -3
  230. package/dist/core/tasks/task-reference-archive.code.js +4 -4
  231. package/dist/core/tasks/task-reference-archive.js +3 -3
  232. package/dist/core/tasks/task-reference-identity.js +3 -3
  233. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  234. package/dist/core/tasks/task-reference-stream.js +3 -3
  235. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  236. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  237. package/dist/core/tasks/task-view-source.impl.js +3 -3
  238. package/dist/core/tasks/task-view-source.js +3 -3
  239. package/dist/core/tools/history-session.d.ts +2 -0
  240. package/dist/core/tools/read-url.code.js +2 -2
  241. package/dist/core/tools/read-url.impl.js +3 -3
  242. package/dist/core/tools/read-url.js +3 -3
  243. package/dist/core/worktree-snapshot/blob-store.d.ts +31 -0
  244. package/dist/core/worktree-snapshot/blob-store.js +164 -49
  245. package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
  246. package/dist/core/worktree-snapshot/errors.code.js +3 -3
  247. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  248. package/dist/core/worktree-snapshot/errors.js +3 -3
  249. package/dist/core/worktree-snapshot/fork-snapshot-index.js +121 -0
  250. package/dist/core/worktree-snapshot/fork-snapshot-index.js.map +1 -0
  251. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  252. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  253. package/dist/extensions/codemode/execute.code.js +2 -2
  254. package/dist/extensions/codemode/execute.impl.js +3 -3
  255. package/dist/extensions/codemode/execute.js +3 -3
  256. package/dist/extensions/codemode/renderer.code.js +1 -1
  257. package/dist/extensions/codemode/renderer.impl.js +3 -3
  258. package/dist/extensions/codemode/renderer.js +3 -3
  259. package/dist/extensions/mcp/cli.code.js +2 -2
  260. package/dist/extensions/mcp/cli.impl.js +3 -3
  261. package/dist/extensions/mcp/cli.js +3 -3
  262. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  263. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  264. package/dist/extensions/mcp/cli.lazy.js +3 -3
  265. package/dist/extensions/mcp/runtime.code.js +1 -1
  266. package/dist/extensions/mcp/runtime.impl.js +3 -3
  267. package/dist/extensions/mcp/runtime.js +3 -3
  268. package/dist/index.js +6 -6
  269. package/dist/main-first-time-setup.code.js +2 -2
  270. package/dist/main-first-time-setup.impl.js +3 -3
  271. package/dist/main-first-time-setup.js +3 -3
  272. package/dist/modes/interactive/components/stored-tree-view.code.js +3 -3
  273. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  274. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  275. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  276. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  277. package/dist/modes/print-mode.js +1 -1
  278. package/dist/package-manager-cli.code.js +5 -5
  279. package/dist/package-manager-cli.impl.js +3 -3
  280. package/dist/package-manager-cli.js +3 -3
  281. package/dist/rpc-entry.js +1 -1
  282. package/dist/startup-files.json +1 -1
  283. package/dist/startup-stages/2.js +1 -0
  284. package/dist/startup-stages/5.js +1 -1
  285. package/dist/startup-stages/7.js +5 -1
  286. package/dist/startup-stages/8.js +2 -2
  287. package/dist/utils/startup-database-spare.code.js +3 -3
  288. package/dist/utils/startup-database-spare.impl.js +3 -3
  289. package/dist/utils/startup-database-spare.js +3 -3
  290. package/dist/utils/tools-manager.code.js +1 -1
  291. package/dist/utils/tools-manager.impl.js +3 -3
  292. package/dist/utils/tools-manager.js +3 -3
  293. package/docs/guides/postgres-pgbouncer.md +14 -7
  294. package/docs/guides/postgres-tuning.md +9 -9
  295. package/docs/sessions.md +9 -0
  296. package/docs/storage.md +47 -6
  297. package/package.json +8 -8
  298. package/dist/_shared/sdk-AVFII7NK.js.map +0 -1
  299. package/dist/_shared/settings-startup-4QCVCI53.js.map +0 -1
  300. package/dist/_shared/startup-0-0-57KF6LZH.js.map +0 -1
  301. package/dist/_shared/startup-0-1-GIY75K46.js.map +0 -1
  302. package/dist/_shared/startup-0-2-27OWFHV6.js.map +0 -1
  303. package/dist/_shared/startup-0-3-T4DVFYWX.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,62 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.10.11-alpha.2] - 2026-11-26
6
+
7
+ 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.
8
+
9
+ **Breaking change:** Once no older Atomic has a session open on a session database, Atomic upgrades it so that forks share their parent's history. Older Atomic versions then stop opening that database with "this store needs a newer Atomic". Upgrade every machine and CI job that shares a database. On PostgreSQL, a role that cannot create tables keeps copying forks until the owner runs `atomic storage migrate`. To take sessions back to an older version, export them with `atomic storage export` and import them with that version into a new store ([#6600](https://github.com/bastani-inc/atomic/pull/6600), [#6614](https://github.com/bastani-inc/atomic/pull/6614)).
10
+
11
+ **Forks**
12
+
13
+ - **A fork costs the same as a new session.** `/fork`, `/clone`, `atomic --fork` and forked subagents store only where the fork starts and read the parent's entries from the parent. Creating a fork takes the same round trips as creating a session, whatever the parent's length or how many forks deep it is. A subagent fork of a 500-entry session takes 8 round trips instead of 1,012 on PostgreSQL and on a libSQL server, and 12 instead of 1,018 on SQLite. 50 forks at once on PostgreSQL finish in 119 ms instead of 2.6 s. The store no longer holds a second copy of the parent's history. A fork lists, searches, resumes and keeps worktree snapshots as a copy does, and later changes to the parent never show up in it ([#6602](https://github.com/bastani-inc/atomic/pull/6602), [#6608](https://github.com/bastani-inc/atomic/pull/6608), [#6601](https://github.com/bastani-inc/atomic/pull/6601), [#6614](https://github.com/bastani-inc/atomic/pull/6614)).
14
+ - **Deleting a parent keeps its forks whole.** A deleted session leaves every list and search at once. The store keeps the entries its forks read until the last of those forks is deleted. Rewriting a parent first gives each fork its own copy ([#6598](https://github.com/bastani-inc/atomic/pull/6598)).
15
+ - **Exports stay standalone.** `atomic storage export`, `/export`, `/share`, HTML export and moving sessions to another store write each fork's full history, so the copy needs none of the sessions it came from ([#6598](https://github.com/bastani-inc/atomic/pull/6598)).
16
+
17
+ **Faster stores**
18
+
19
+ - **Faster PostgreSQL store opens.** Opening a session store whose tables are up to date takes 2 round trips instead of 5, and an Intercom broker takes 1 instead of 3. At 80 ms latency, reopening a session store takes about a quarter of a second less ([#6606](https://github.com/bastani-inc/atomic/pull/6606)).
20
+ - **One round trip per save on PostgreSQL.** After you run `atomic storage migrate` as the owner role, saving new entries to a session takes 1 round trip instead of 2, because a database function does the whole save. At 80 ms latency the median save took 108 ms instead of 193 ms. Older Atomic releases keep working on a database that has the function ([#6604](https://github.com/bastani-inc/atomic/pull/6604)).
21
+ - **Prepared statements behind PgBouncer.** Atomic now keeps statements prepared behind PgBouncer 1.21 or later when its `max_prepared_statements` is above 0, which is the default from 1.24, so the server parses each statement once. It finds this out on its first connection with no extra round trip. Behind other poolers they stay off, and a `maxPreparedStatements` you set still wins ([#6604](https://github.com/bastani-inc/atomic/pull/6604)).
22
+ - **Faster `history://` searches.** A search of a past session that Atomic has indexed reads the matching entries, and the lines shown around them, in one request instead of one request per entry. At 80 ms latency a search with 8 matches took 0.5 s instead of 2.8 s on PostgreSQL, and 0.5 s instead of 2.9 s on a libSQL server. A larger benchmark search took 9 round trips instead of 97. A custom `SessionStore` receives the entries to read in the new `seqs` field of `readEntryRange` ([#6607](https://github.com/bastani-inc/atomic/pull/6607)).
23
+ - **libSQL reads share requests.** On a libSQL server, single reads made at the same time go out together in one request. With 8 reads at once, the server got 2 requests instead of 8, and the first burst opened no new connection instead of 5 ([#6607](https://github.com/bastani-inc/atomic/pull/6607)).
24
+ - **No write lock to reopen a broker on SQLite and libSQL.** Reopening an Intercom broker whose tables are set up no longer takes the database's write lock, so brokers that start together no longer wait for each other. On a libSQL server 80 ms away, a reopen takes 0.4 s instead of 0.6 s. A process's first chat record skips the lock the same way. If anything changes the tables later, including an older Atomic, the next open checks them again ([#6609](https://github.com/bastani-inc/atomic/pull/6609)).
25
+ - **Faster writes to libSQL files.** On a local libSQL `file:` database, each connection keeps up to 256 prepared statements and reuses them. Saving a new 500-entry session takes 6.3 ms instead of 66 ms, and saving one entry about 0.2 ms instead of 0.4 ms ([#6613](https://github.com/bastani-inc/atomic/pull/6613)).
26
+ - **Faster local SQLite reads.** Reading a session's latest entries or resuming it from a local SQLite file waits for the database's background thread 2 or 3 times instead of 4 or 5 ([#6609](https://github.com/bastani-inc/atomic/pull/6609)).
27
+ - **Faster JSONL sessions.** On macOS and Linux, Atomic keeps a session's JSONL file open while it writes, and puts entries saved at the same moment into one write. Saving an entry takes 7 file operations instead of 18, and ten saves at once take 7 instead of 180. A folder of 201 sessions reopens in about 9 ms instead of about 640 ms ([#6605](https://github.com/bastani-inc/atomic/pull/6605)).
28
+
29
+ **Intercom**
30
+
31
+ - **Brokers pick up waiting messages faster.** With multi-node routing, taking a session's waiting messages takes 1 round trip instead of 3 on PostgreSQL, about 100 ms instead of 280 ms at 80 ms latency. On a libSQL server it takes 2 round trips instead of 3, and on a SQLite file 2 calls instead of 5 to 9 ([#6610](https://github.com/bastani-inc/atomic/pull/6610), [#6615](https://github.com/bastani-inc/atomic/pull/6615)).
32
+ - **Intercom records deliveries together.** With multi-node routing on PostgreSQL, messages that recipients confirm at about the same time are recorded as delivered in one transaction of 2 round trips, instead of 2 round trips for each message. At 80 ms latency, four confirmations took 0.19 s instead of 0.55 s and opened no extra database connections ([#6606](https://github.com/bastani-inc/atomic/pull/6606)).
33
+
34
+ **Fixes**
35
+
36
+ - **No `Storage unavailable` errors under load on a libSQL server.** Atomic now closes a database's idle connection to the server after 5 seconds, and sends a request again when the server turns it away as busy. In a test with 100 agents writing at once, 1 run in 6 failed before and none of 8 after ([#6616](https://github.com/bastani-inc/atomic/pull/6616)).
37
+ - **Forks copy only the pieces each long entry uses.** Forking a session that holds leftover pieces of long entries, which an older Atomic can leave behind, no longer copies them into the fork or fails with `Missing chunk of session entry` ([#6611](https://github.com/bastani-inc/atomic/pull/6611)).
38
+ - **Intercom keeps one session's messages in order on PostgreSQL.** When a broker was slow to renew its hold on an earlier message, another broker could take that message over while the first delivered a later one. Brokers now take turns on one session's messages ([#6610](https://github.com/bastani-inc/atomic/pull/6610)).
39
+
40
+ ### Breaking Changes
41
+
42
+ - After this release upgrades a session database so that forks share history, older Atomic versions can't open that database any more. They stop with "this store needs a newer Atomic". The upgrade happens by itself, but only once no older Atomic version has a session open on that database, so a machine you haven't upgraded yet keeps working until its sessions end. Upgrade every machine that shares a database. To take sessions back to an older version, export them with `atomic storage export` and import them with that version into a new store. See [Older Atomic versions](docs/storage.md#older-atomic-versions) ([#6600](https://github.com/bastani-inc/atomic/pull/6600), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
43
+
44
+ ### Added
45
+
46
+ - Forks now share their parent's history instead of copying it, so forking a long session costs about as much as forking a short one. This covers `/fork`, `/clone`, `atomic --fork` and subagents started with `context: "fork"`, in local SQLite files and in shared libSQL and PostgreSQL databases. There is nothing to turn on. A fork reads, searches, resumes and exports as a copy did, and changing or deleting its parent never changes it. Exporting a session or moving it to another store still writes a full copy that doesn't depend on any other session. On PostgreSQL, if Atomic connects with a role that can't create tables, forks keep copying until the database owner runs `atomic storage migrate`. See [Shared-history forks](docs/storage.md#shared-history-forks) ([#6600](https://github.com/bastani-inc/atomic/pull/6600), [#6602](https://github.com/bastani-inc/atomic/pull/6602), [#6608](https://github.com/bastani-inc/atomic/pull/6608), [#6601](https://github.com/bastani-inc/atomic/pull/6601), [#6598](https://github.com/bastani-inc/atomic/pull/6598), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
47
+
48
+ ### Changed
49
+
50
+ - On PostgreSQL, opening a session store whose tables are up to date now waits for 2 round trips instead of 5, and an Intercom broker for 1 instead of 3. The first query that opens the database also reads the list of Atomic's tables and their recorded versions, so the store does not read them again, and the snapshot index's two checks go out together. At 80 ms latency, reopening a session store takes about a quarter of a second less ([#6606](https://github.com/bastani-inc/atomic/pull/6606), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
51
+ - On SQLite and libSQL, opening an Intercom broker whose tables are already set up no longer takes the database's write lock, so brokers that start together no longer wait for each other. The same goes for a session's first chat record in each process. Atomic records which version of each store's tables it set up, along with SQLite's own count of schema changes. It writes that record during the second open of a database, in the write transaction that open already takes, so the first open of a new database costs what it did before. If anything changes the tables later, including an older Atomic, the next open checks them again instead of trusting the record ([#6609](https://github.com/bastani-inc/atomic/pull/6609), [#6612](https://github.com/bastani-inc/atomic/pull/6612), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
52
+ - Reading a session from a local SQLite file now waits for the database's background thread 2 or 3 times instead of 4 or 5. A read starts with its first queries in one message and doesn't wait for its final commit ([#6609](https://github.com/bastani-inc/atomic/pull/6609), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
53
+ - Sessions saved as JSONL files make fewer file operations. On macOS and Linux, Atomic keeps a session's file open while the session is being written, and closes it after 30 seconds without a write, when the session is released, or when Atomic exits. Entries saved at the same moment go into the file in one write, so ten saves at once cost about as much as one. Saving an entry takes 7 file operations instead of 18, ten saves at once 7 instead of 180, and reading a session's latest entries 7 instead of 22. Reopening a folder of sessions only checks each file's size and time instead of reading it again. A folder of 201 sessions reopens in about 9 ms instead of about 640 ms. `history://` reads of a session's last entries read from the end of the file instead of from the start. Saved files, crash recovery and locking between Atomic processes work as before ([#6605](https://github.com/bastani-inc/atomic/pull/6605), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
54
+ - On PostgreSQL, saving new entries to a session takes 1 round trip instead of 2 after you run `atomic storage migrate` as the owner role. The migration adds a database function that does the whole save inside the database, and lets the runtime role run it. Saves through it store exactly what they stored before. Until the migration runs, and for long entries stored in chunks, saves take 2 round trips as before. If another process changed the session since this process last saved it, the function notices, writes nothing, and the save goes the old way. Older Atomic versions keep working against a database that has the function ([#6604](https://github.com/bastani-inc/atomic/pull/6604), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
55
+ - Searching a past session (`history://`) a second time, once Atomic has indexed it, now reads the entries that match, and the lines shown around them, in one request instead of one request per entry. Results, their order, where a result is cut short and the link to continue are the same as before. At 80 ms latency a search with 8 matches took 5 round trips instead of 28. It took 0.5 s instead of 2.8 s on PostgreSQL, and 0.5 s instead of 2.9 s on a libSQL server. In the SDK, `SessionStore.readEntryRange` now gets a list of sequence numbers in `seqs`. A custom store should return only the entries at those numbers. One that returns the whole range still gives the same results, but reads more. See [Custom `SessionStore` contracts](docs/storage.md#custom-sessionstore-contracts) ([#6607](https://github.com/bastani-inc/atomic/pull/6607), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
56
+
57
+ ### Fixed
58
+
59
+ - Forking a session that holds leftover pieces of long entries, which an older Atomic version can leave behind, no longer copies them into the fork or fails with `Missing chunk of session entry`. A fork copies only the pieces each entry uses ([#6611](https://github.com/bastani-inc/atomic/pull/6611), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
60
+
5
61
  ## [0.10.11-alpha.1] - 2026-11-25
6
62
 
7
63
  Many agents can now share one PostgreSQL or libSQL database without waiting for each other, forks cost about the same however long the session is, and shell commands and history searches now run until they finish.
@@ -31842,7 +31842,7 @@ function __atomicOnDemandFailed(error, feature) {
31842
31842
  return (async () => {
31843
31843
  const root = new URL("../", import.meta.url);
31844
31844
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
31845
- const key = `${root.href}#0.10.11-alpha.1`;
31845
+ const key = `${root.href}#0.10.11-alpha.2`;
31846
31846
  let release = releases.get(key);
31847
31847
  if (release === undefined) {
31848
31848
  const current = (async () => {
@@ -31870,7 +31870,7 @@ function __atomicOnDemandFailed(error, feature) {
31870
31870
  } catch {
31871
31871
  // No installation to read, as in a bundle of the package: the release the process runs decides.
31872
31872
  }
31873
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : undefined;
31873
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : undefined;
31874
31874
  if (updatedTo === undefined) throw error;
31875
31875
  const application = typeof running?.name === "string" ? running.name : "atomic";
31876
31876
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -40,7 +40,7 @@ function __atomicOnDemandFailed(error, feature) {
40
40
  return (async () => {
41
41
  const root = new URL("../", import.meta.url);
42
42
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
43
- const key = `${root.href}#0.10.11-alpha.1`;
43
+ const key = `${root.href}#0.10.11-alpha.2`;
44
44
  let release = releases.get(key);
45
45
  if (release === undefined) {
46
46
  const current = (async () => {
@@ -68,7 +68,7 @@ function __atomicOnDemandFailed(error, feature) {
68
68
  } catch {
69
69
  // No installation to read, as in a bundle of the package: the release the process runs decides.
70
70
  }
71
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : undefined;
71
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : undefined;
72
72
  if (updatedTo === undefined) throw error;
73
73
  const application = typeof running?.name === "string" ? running.name : "atomic";
74
74
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -5131,7 +5131,7 @@ function __atomicOnDemandFailed(error, feature) {
5131
5131
  return (async () => {
5132
5132
  const root = new URL("../", import.meta.url);
5133
5133
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
5134
- const key = `${root.href}#0.10.11-alpha.1`;
5134
+ const key = `${root.href}#0.10.11-alpha.2`;
5135
5135
  let release = releases.get(key);
5136
5136
  if (release === undefined) {
5137
5137
  const current = (async () => {
@@ -5159,7 +5159,7 @@ function __atomicOnDemandFailed(error, feature) {
5159
5159
  } catch {
5160
5160
  // No installation to read, as in a bundle of the package: the release the process runs decides.
5161
5161
  }
5162
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : undefined;
5162
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : 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,12 +1,12 @@
1
1
  import { __name } from "./rolldown-runtime-BGM3D5V3.js";
2
2
  import { APP_NAME, APP_TITLE, CHANGELOG_URL, CONFIG_DIR_NAME, UpdatedInstallError, VERSION, VERSION_ADOPTION_ENDPOINT, canonicalizePathAsync, createChildProcessEnvironment, createModuleRequire, detectInstallChangeAsync, engineHeapRuntimeArgsForHost, findHelperExecutableAsync, getAgentDir, getAuthPath, getChangelogPath, getCwdRelativePath, getDebugLogPath, getDocsPath, getShareViewerUrl, helperLaunchAsync, isModuleLoadFailure, loadOnDemand, markLifecycleTiming, missingHelperOptions, processCompileCacheDeferral, setDebugSetting, shortenHomePath, updatedInstallError } from "./p0-cli-BB45ZQY6.js";
3
- import { BUILTIN_SLASH_COMMANDS, BUNDLED_EXTENSION_SLASH_COMMANDS, CountdownTimer, DynamicBorder, MissingSessionCwdError, NO_QUEUED_MESSAGES, TrustDecisionSelector, asyncScope, carryRowSource, chatPosition, chatReceipt, deduplicateDiagnostics, findProviderDefaultModel, formatMissingSessionCwdPrompt, formatNoModelsAvailableMessage, getEngineSessionStats, getMissingSessionCwdOptions, getPiUserAgent, isGitUnavailableError, isInstallTelemetryEnabled, isInteractiveEngineResourceReadinessError, isPathInside, isTrustDecision, isUnknownModel, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, noteRowSource, noteSavedSeq, onSessionProviderRequestDispatched, parseSlashCommand, placeTranscriptFrame, projectTrustWarningVisible, queuedMessagesUnderWay, quitAsInteractiveApp, recordStartupThinkingLevel, rowSource, safeTrustChoiceIndex, savedRowKey, savedSeqOf, setDeprecationWarningSink, setMarkitDiagnosticSink, shouldRenderEngineDiagnosticAsChatError, takeQueuedMessagesDroppedAt, usageCostBreakdown, userMessageOrigin, yieldToEventLoop, yieldToTimerTurn } from "./startup-0-0-57KF6LZH.js";
4
- import { ExtensionInputComponent, ExtensionSelectorComponent, ReopenedCompletionHeaders, cancelInitialBinding, createCustomMessage, ensurePngTranscoder, ensureTool, formatResumeTimings, formatToolStatus, getBuiltinExtensionEntryLabel, getPromptCacheTtlMs as getPromptCacheTtlMs$1, initialBindScope, isOfflineModeEnabled, isVerbatimCompactionMessage, isWorkspaceError, latestResumeTimings, normalizeMessageContent, prewarmModelApi, readHostInputFormRequest, registerInitialBindings, stripVerbatimCompactionPrefix, taskPromptHost, thinkingLevelForModelSwitch } from "./startup-0-1-GIY75K46.js";
3
+ import { BUILTIN_SLASH_COMMANDS, BUNDLED_EXTENSION_SLASH_COMMANDS, CountdownTimer, DynamicBorder, MissingSessionCwdError, NO_QUEUED_MESSAGES, TrustDecisionSelector, asyncScope, carryRowSource, chatPosition, chatReceipt, deduplicateDiagnostics, findProviderDefaultModel, formatMissingSessionCwdPrompt, formatNoModelsAvailableMessage, getEngineSessionStats, getMissingSessionCwdOptions, getPiUserAgent, isGitUnavailableError, isInstallTelemetryEnabled, isInteractiveEngineResourceReadinessError, isPathInside, isTrustDecision, isUnknownModel, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, noteRowSource, noteSavedSeq, onSessionProviderRequestDispatched, parseSlashCommand, placeTranscriptFrame, projectTrustWarningVisible, queuedMessagesUnderWay, quitAsInteractiveApp, recordStartupThinkingLevel, rowSource, safeTrustChoiceIndex, savedRowKey, savedSeqOf, setDeprecationWarningSink, setMarkitDiagnosticSink, shouldRenderEngineDiagnosticAsChatError, takeQueuedMessagesDroppedAt, usageCostBreakdown, userMessageOrigin, yieldToEventLoop, yieldToTimerTurn } from "./startup-0-0-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";
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
6
  import { ProjectTrustStore, failureDebugFields, getProjectTrustPathAsync, hasTrustRequiringProjectResourcesAsync, reportDebugAsync } from "./p1b-elig-ENCUPKKJ.js";
7
- import { WorkingRunMeter, compactionMeta, findExactModelReferenceMatch, getPowerShellConfigAsync, killSupervisedProcessTrees, killTrackedDetachedChildren, runInProgress, sessionLifetime, showStartupInput, showStartupSelector, taskTranscriptSource } from "./startup-0-2-27OWFHV6.js";
8
- import { AtomicWorkedStatusComponent, AtomicWorkingLoader, DEFAULT_WORKING_MESSAGE, buildContextEntries, getOwnerTaskStore, isResumeFailure, parseGitUrl, resolveModelScopeFromModels, resolveModelScopeWithDiagnostics, sessionEntryToDisplayMessages, watchAtomicWorkingClock, watchOwnerTaskStoreBinding } from "./startup-0-3-T4DVFYWX.js";
9
- import { SESSION_HISTORY_SCAN_ENTRIES, findDecisionError, isDecisionConfigError, isRpcRequestAcceptedFailure, isRpcTransportFailure } from "./settings-startup-4QCVCI53.js";
7
+ import { WorkingRunMeter, compactionMeta, findExactModelReferenceMatch, getPowerShellConfigAsync, killSupervisedProcessTrees, killTrackedDetachedChildren, runInProgress, sessionLifetime, showStartupInput, showStartupSelector, taskTranscriptSource } from "./startup-0-2-5QHPCEON.js";
8
+ import { AtomicWorkedStatusComponent, AtomicWorkingLoader, DEFAULT_WORKING_MESSAGE, buildContextEntries, getOwnerTaskStore, isResumeFailure, parseGitUrl, resolveModelScopeFromModels, resolveModelScopeWithDiagnostics, sessionEntryToDisplayMessages, watchAtomicWorkingClock, watchOwnerTaskStoreBinding } from "./startup-0-3-4ZYBYQNM.js";
9
+ import { SESSION_HISTORY_SCAN_ENTRIES, findDecisionError, isDecisionConfigError, isRpcRequestAcceptedFailure, isRpcTransportFailure } from "./settings-startup-HXQLSUWM.js";
10
10
  import { readAhead } from "./startup-8-0-34CBHPZH.js";
11
11
  import { CredentialSynchronizationError, DefaultPackageManager, chunkedToolResult, chunkedToolResultEntry, findInitialModel, firstSubagentAttempt, getSkillCatalog, isOAuthLoginCancelled, resolveRestoredModelReference, uncachedCopilotModelHint } from "./startup-0-5-YDW47QX6.js";
12
12
  import { formatModelLabel } from "./startup-0-4-ZMJV547D.js";
@@ -28170,7 +28170,7 @@ function __atomicOnDemandFailed(error, feature) {
28170
28170
  return (async () => {
28171
28171
  const root = new URL("../", import.meta.url);
28172
28172
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
28173
- const key = `${root.href}#0.10.11-alpha.1`;
28173
+ const key = `${root.href}#0.10.11-alpha.2`;
28174
28174
  let release = releases.get(key);
28175
28175
  if (release === undefined) {
28176
28176
  const current = (async () => {
@@ -28198,7 +28198,7 @@ function __atomicOnDemandFailed(error, feature) {
28198
28198
  } catch {
28199
28199
  // No installation to read, as in a bundle of the package: the release the process runs decides.
28200
28200
  }
28201
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : undefined;
28201
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : 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,13 +1,13 @@
1
1
  import "./rolldown-runtime-BGM3D5V3.js";
2
- import { CompactionConfigError, QueuedDeliveryRelay, THINKING_LEVELS, attachJsonlLineReader, bindSavedReadLines, chatReceipt, flushRawStdout, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, onBlueprintBuildFinished, onBlueprintBuildWaiting, outputExtensionLoadErrors, quitAsInteractiveApp, rawStdoutWriteFailed, sliceTail, takeOverStdout, transcriptLayoutOf, userMessageOrigin, waitForRawStdoutBackpressure, withQueuedDeliveryChange, writeRawStdout, yieldToEventLoop } from "./startup-0-0-57KF6LZH.js";
2
+ import { CompactionConfigError, QueuedDeliveryRelay, THINKING_LEVELS, attachJsonlLineReader, bindSavedReadLines, chatReceipt, flushRawStdout, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, onBlueprintBuildFinished, onBlueprintBuildWaiting, outputExtensionLoadErrors, quitAsInteractiveApp, rawStdoutWriteFailed, sliceTail, takeOverStdout, transcriptLayoutOf, userMessageOrigin, waitForRawStdoutBackpressure, withQueuedDeliveryChange, writeRawStdout, yieldToEventLoop } from "./startup-0-0-3IXNMFM2.js";
3
3
  import { flushLifecycleTraceAtQuit, getAgentDir, loadOnDemand, markLifecycleTiming, setDebugSetting, startedWithHangupIgnored } from "./p0-cli-BB45ZQY6.js";
4
4
  import { TuiMainScreen, bindBundledHintCommands, isKeyRelease, runAsHintActivation, setCapabilityOverrides, setKeybindings } from "@bastani/atomic-tui";
5
5
  import { KeybindingsManager as KeybindingsManager$1, getEditorTheme, theme } from "./p2-shell-main-B2WIALFD.js";
6
- import { ensurePngTranscoder, hasQuitStoppableCommands, isJsonValue, killQuitStoppableCommandsNow, parseEngineExplicitQuitCommand, parseInteractiveEngineCommand, prewarmModelApi, runCallback, runSynchronousCallback, serializeInteractiveEngineMessage, settingsWriteOwner, taskPromptHost } from "./startup-0-1-GIY75K46.js";
6
+ import { ensurePngTranscoder, hasQuitStoppableCommands, isJsonValue, killQuitStoppableCommandsNow, parseEngineExplicitQuitCommand, parseInteractiveEngineCommand, prewarmModelApi, runCallback, runSynchronousCallback, serializeInteractiveEngineMessage, settingsWriteOwner, taskPromptHost } from "./startup-0-1-7T2IAE7J.js";
7
7
  import { interactiveEngineStartupEnv, isInteractiveEngineChild } from "./p1a-prewarm-XIU57JHF.js";
8
8
  import { CONSOLE_CLOSED_EXIT_CODE, CONSOLE_CLOSED_SHUTDOWN_MS, ChatSessionHost, CustomMessageComponent, KeybindingsReloadCoordinator, RETAINED_TOOL_RENDERERS, STOP_ALL_STATUS_KEY, ToolExecutionComponent, agentPanelReturning, bindAgentPanel, createRpcErrorResponse, createRpcSuccessResponse, disposeRenderer, engineTaskInspectorUi, exitWithStatus, formatRpcErrorMessage, handleSetViewedAgent, installEngineAgentViewBridge, markHintRoutesAsEngine, onTaskDismissed, openLocalAgentViewPort, readTaskCompletionHistory, readTaskPrompts, retainedToolRenderer, rpcShutdownErrorEvent, runHintRoute, runRendererCleanup, sameRows, showAgentPanel, showEngineTaskInspector, stopAllBackgroundWork, themedChatHostStyle, withBlockRenderTime } from "./mode-shared-2QJSCUM6.js";
9
- import { killTrackedDetachedChildren, taskTranscriptSource, watchTaskTranscriptBindings } from "./startup-0-2-27OWFHV6.js";
10
- import { getOwnerTaskStore, isTaskTurnInterrupted, startInteractiveEngineLiveness, watchOwnerTaskStoreBinding } from "./startup-0-3-T4DVFYWX.js";
9
+ import { killTrackedDetachedChildren, taskTranscriptSource, watchTaskTranscriptBindings } from "./startup-0-2-5QHPCEON.js";
10
+ import { getOwnerTaskStore, isTaskTurnInterrupted, startInteractiveEngineLiveness, watchOwnerTaskStoreBinding } from "./startup-0-3-4ZYBYQNM.js";
11
11
  import { FooterDataProvider, dismissedAgentPanelItems, isBuiltinToolCallRenderer, isBuiltinToolResultRenderer, onOwnerTaskAction, ownerTaskViewSource, sourceError, subscribeAgentPanel } from "./startup-8-1-X32CYSXB.js";
12
12
  import { writeSync } from "node:fs";
13
13
  import { ToolBlock } from "./startup-0-4-ZMJV547D.js";
@@ -18,7 +18,7 @@ import { HOST_STARTED_SESSION } from "./startup-15-1-4S7FLMNG.js";
18
18
  import { findQueuedMessages, findQueuedMessagesInFile, findQueuedMessagesInStore, firstHistoryCursor } from "./startup-8-0-34CBHPZH.js";
19
19
  import { SessionManager } from "./startup-10-0-TDQNBDDL.js";
20
20
  import { CredentialSynchronizationError, createAuthInteraction, getSkillCatalog, isOAuthLoginCancelled, normalizeOAuthLoginError } from "./startup-0-5-YDW47QX6.js";
21
- import { SESSION_HISTORY_SCAN_ENTRIES } from "./settings-startup-4QCVCI53.js";
21
+ import { SESSION_HISTORY_SCAN_ENTRIES } from "./settings-startup-HXQLSUWM.js";
22
22
  import { getExtensionRuntimeEventBus } from "./startup-14-0-MLX36RBG.js";
23
23
  import * as crypto from "node:crypto";
24
24
  import { randomUUID } from "node:crypto";
@@ -4175,7 +4175,7 @@ function __atomicOnDemandFailed(error, feature) {
4175
4175
  return (async () => {
4176
4176
  const root = new URL("../", import.meta.url);
4177
4177
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
4178
- const key = `${root.href}#0.10.11-alpha.1`;
4178
+ const key = `${root.href}#0.10.11-alpha.2`;
4179
4179
  let release = releases.get(key);
4180
4180
  if (release === undefined) {
4181
4181
  const current = (async () => {
@@ -4203,7 +4203,7 @@ function __atomicOnDemandFailed(error, feature) {
4203
4203
  } catch {
4204
4204
  // No installation to read, as in a bundle of the package: the release the process runs decides.
4205
4205
  }
4206
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : undefined;
4206
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : 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,12 +1,12 @@
1
1
  import { __name } from "./rolldown-runtime-BGM3D5V3.js";
2
2
  import { APP_NAME, CONFIG_DIR_NAME, DebugError, ENV_OFFLINE, ENV_SKIP_VERSION_CHECK, PACKAGE_NAME, canonicalizePathAsync, createChildProcessEnvironment, createModuleRequire, getAgentDir, getBundledInteractiveAssetPathAsync, getEnvValue, getPathComparisonKey, helperLaunchAsync, missingHelperOptions, serializeDebugError, shortenHomePath, stripBom } from "./p0-cli-BB45ZQY6.js";
3
- import { BUILTIN_SLASH_COMMANDS, CompactionError, CountdownTimer, DEFAULT_MAX_BYTES, DynamicBorder, FramedSelector, HOST_NOTICE_TYPE, INTERACTIVE_MODEL_REFRESH_TIMEOUT_MS, Selector, TASK_MARKS, TaskMessageError, VERBATIM_COMPACTION_STRATEGY, addHistoryUsageToTotals, addUsageToTotals, allToolNames, areExperimentalFeaturesEnabled, backgroundTaskScope, bindSavedTaskRowKey, carryRowSource, chatReceipt, chatReceiptWrite, createUsageTotals, defaultModelPerProvider, fetchWithRetry, formatReadLineRange, formatTokenCount, getEngineSessionStats, getTextOutput, getToolExecutionStartedAt, hostNoticeForEvent, isMissingSessionCwdError, isTaskMessageError, keptTaskId, noteRowSource, noteSavedSeq, parseSlashCommand, queueUpdateDeliveries, queuedReceiptsUnderWay, queuedTextsUnderWay, raceWithAbortSignal, replaceTabs, rowSource, savedReadLines, savedRowKey, savedRowSpan, savedSeqOf, savedTaskRowKey, savedTaskRows, serializeCompactionError, serializeMissingSessionCwdError, sessionWaitsToRetry, sqliteSessionResumeArgs, taskMark, taskOutcomeStatus } from "./startup-0-0-57KF6LZH.js";
4
- import { ExtensionInputComponent, ExtensionSelectorComponent, SUMMARY_COMPACTION_PREFIX, TaskElapsedClocks, assertSessionNotOpenElsewhere, bindTaskClock, createVerbatimCompactionMessage, ensurePngTranscoder, getToolPath, heldPrompts, isVerbatimCompactionMessage, reopenedCompletionName, repairOrphanToolResults, shownSpanMs, stripVerbatimCompactionPrefix, taskClockOf, taskClockRunning, taskClocksFor, taskElapsedMs, thinkingLevelForModelSwitch } from "./startup-0-1-GIY75K46.js";
3
+ import { BUILTIN_SLASH_COMMANDS, CompactionError, CountdownTimer, DEFAULT_MAX_BYTES, DynamicBorder, FramedSelector, HOST_NOTICE_TYPE, INTERACTIVE_MODEL_REFRESH_TIMEOUT_MS, Selector, TASK_MARKS, TaskMessageError, VERBATIM_COMPACTION_STRATEGY, addHistoryUsageToTotals, addUsageToTotals, allToolNames, areExperimentalFeaturesEnabled, backgroundTaskScope, bindSavedTaskRowKey, carryRowSource, chatReceipt, chatReceiptWrite, createUsageTotals, defaultModelPerProvider, fetchWithRetry, formatReadLineRange, formatTokenCount, getEngineSessionStats, getTextOutput, getToolExecutionStartedAt, hostNoticeForEvent, isMissingSessionCwdError, isTaskMessageError, keptTaskId, noteRowSource, noteSavedSeq, parseSlashCommand, queueUpdateDeliveries, queuedReceiptsUnderWay, queuedTextsUnderWay, raceWithAbortSignal, replaceTabs, rowSource, savedReadLines, savedRowKey, savedRowSpan, savedSeqOf, savedTaskRowKey, savedTaskRows, serializeCompactionError, serializeMissingSessionCwdError, sessionWaitsToRetry, sqliteSessionResumeArgs, taskMark, taskOutcomeStatus } from "./startup-0-0-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";
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
6
  import { isDebugEnabled, projectTrustOptionsFor } from "./p1b-elig-ENCUPKKJ.js";
7
- import { AgentTokenMeter, WorkingRunMeter, agentTokenTotal, compactionMeta, formatWorkingElapsed, loadTaskOwnTranscriptHistory, normalizeWorkingRunSnapshot, observedTaskChatWrite, runInProgress, taskChatPage, taskOwnTranscriptEntries, taskTranscriptSource, withTaskChatRows } from "./startup-0-2-27OWFHV6.js";
8
- import { AtomicWorkedStatusComponent, AtomicWorkingStatusComponent, DEFAULT_WORKING_MESSAGE, OwnerTaskStore, atomicWorkingFrame, atomicWorkingGlyph, getOwnerTaskSession, getOwnerTaskStore, isTaskTurnInterrupted, parseGitUrl, setTaskTurnInterrupted, watchAtomicWorkingClock, watchOwnerTaskStoreBinding, workingMessageColumns } from "./startup-0-3-T4DVFYWX.js";
9
- import { isRpcRequestAcceptedFailure } from "./settings-startup-4QCVCI53.js";
7
+ import { AgentTokenMeter, WorkingRunMeter, agentTokenTotal, compactionMeta, formatWorkingElapsed, loadTaskOwnTranscriptHistory, normalizeWorkingRunSnapshot, observedTaskChatWrite, runInProgress, taskChatPage, taskOwnTranscriptEntries, taskTranscriptSource, withTaskChatRows } from "./startup-0-2-5QHPCEON.js";
8
+ import { AtomicWorkedStatusComponent, AtomicWorkingStatusComponent, DEFAULT_WORKING_MESSAGE, OwnerTaskStore, assertSessionNotOpenElsewhere, atomicWorkingFrame, atomicWorkingGlyph, getOwnerTaskSession, getOwnerTaskStore, isTaskTurnInterrupted, parseGitUrl, setTaskTurnInterrupted, watchAtomicWorkingClock, watchOwnerTaskStoreBinding, workingMessageColumns } from "./startup-0-3-4ZYBYQNM.js";
9
+ import { isRpcRequestAcceptedFailure } from "./settings-startup-HXQLSUWM.js";
10
10
  import { lastAssistantAnswer } from "./startup-8-0-34CBHPZH.js";
11
11
  import { CredentialSynchronizationError, QuestionnaireSession, buildItemsForQuestion, childOfAttempt, completionTitleDescription, completionTitleText, firstSubagentAttempt, formatTaskHeartbeatDuration, formatTaskHeartbeatStatus, getSkillCatalog, isResumableStop, latestSubagentAttempt, latestSubagentAttempts, releasedWaitingOn, require_semver, settledTaskResumeId, supersededSettledAttempts, taskHeartbeatKindLabel, taskNoticeLine, waitingReleasedShells, waitingReleasedTools } from "./startup-0-5-YDW47QX6.js";
12
12
  import { DETAIL_FIRST_PREFIX, DETAIL_PREFIX, NoticeLine, STATUS_MARKERS, TOOL_BLOCK_LIMITS, ToolBlock, ToolBlockMarkdown, ToolBlockRecords, collapseToolBlockLines, componentNeedsWorkingClock, formatModelLabel, isToolBlock, markdownPreviewRows } from "./startup-0-4-ZMJV547D.js";
@@ -27319,7 +27319,7 @@ function __atomicOnDemandFailed(error, feature) {
27319
27319
  return (async () => {
27320
27320
  const root = new URL("../", import.meta.url);
27321
27321
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
27322
- const key = `${root.href}#0.10.11-alpha.1`;
27322
+ const key = `${root.href}#0.10.11-alpha.2`;
27323
27323
  let release = releases.get(key);
27324
27324
  if (release === undefined) {
27325
27325
  const current = (async () => {
@@ -27347,7 +27347,7 @@ function __atomicOnDemandFailed(error, feature) {
27347
27347
  } catch {
27348
27348
  // No installation to read, as in a bundle of the package: the release the process runs decides.
27349
27349
  }
27350
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : undefined;
27350
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.2" ? installed : running !== undefined && running.version !== "0.10.11-alpha.2" ? "0.10.11-alpha.2" : 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}.`, {
@@ -204,7 +204,7 @@ const INTERACTIVE_ENGINE_PREWARM_DEFAULT_MODEL_API_FLAG = `${INTERACTIVE_ENGINE_
204
204
  const INTERACTIVE_ENGINE_PREWARM_HANDOFF_FLAG = `${INTERACTIVE_ENGINE_PREWARM_FLAG}-handoff`;
205
205
  const PREWARM_HOST_ARGUMENTS_MAX_LENGTH = 8192;
206
206
  const PREWARM_READY_MAX_BYTES = 4096;
207
- const PREWARM_BUILD_STAMP = "947792eeeab1775ef34b10b61c19be";
207
+ const PREWARM_BUILD_STAMP = "50f6b06c3fb2a6667480b5996446f5";
208
208
  const PREWARM_BUILD_STAMP_UNSTAMPED = ["__ATOMIC_PREWARM", "BUILD_STAMP__"].join("_");
209
209
  function prewarmBuildIdentity() {
210
210
  if (PREWARM_BUILD_STAMP === PREWARM_BUILD_STAMP_UNSTAMPED) return void 0;
@@ -568,7 +568,7 @@ function __atomicOnDemandFailed(error, feature) {
568
568
  return (async () => {
569
569
  const root = new URL("../", import.meta.url);
570
570
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
571
- const key = `${root.href}#0.10.11-alpha.1`;
571
+ const key = `${root.href}#0.10.11-alpha.2`;
572
572
  let release = releases.get(key);
573
573
  if (release === undefined) {
574
574
  const current = (async () => {
@@ -596,7 +596,7 @@ function __atomicOnDemandFailed(error, feature) {
596
596
  } catch {
597
597
  // No installation to read, as in a bundle of the package: the release the process runs decides.
598
598
  }
599
- const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : undefined;
599
+ 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;
600
600
  if (updatedTo === undefined) throw error;
601
601
  const application = typeof running?.name === "string" ? running.name : "atomic";
602
602
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -4,11 +4,11 @@ import { basename, dirname, join, resolve } from "node:path";
4
4
  import { setTimeout as setTimeout$1 } from "node:timers/promises";
5
5
  import { pathToFileURL } from "node:url";
6
6
  import { VERSION } from "./p0-cli-BB45ZQY6.js";
7
- import { McpOAuthAuthorizationRequiredError, OAuthTemporarilyUnavailableError, createMcpAuthProvider, mcpRequestTimeoutMs, resolveMcpServerUrl } from "./sdk-AVFII7NK.js";
8
- import { McpClient } from "./startup-0-1-GIY75K46.js";
9
- import { McpAuthRequiredError, McpHttpError, McpSessionExpiredError, StreamableHttpTransport } from "./startup-0-2-27OWFHV6.js";
10
- import { StdioTransport, resolveConfigValueOrThrowAsync, resolveHeadersOrThrowAsync } from "./startup-0-3-T4DVFYWX.js";
11
- import { JSON_RPC_ERROR_CODES, McpError, redactOAuthErrorText, redactOAuthErrorTextCapped, sliceTail } from "./startup-0-0-57KF6LZH.js";
7
+ import { McpOAuthAuthorizationRequiredError, OAuthTemporarilyUnavailableError, createMcpAuthProvider, mcpRequestTimeoutMs, resolveMcpServerUrl } from "./sdk-IQMULKFU.js";
8
+ import { McpClient } from "./startup-0-1-7T2IAE7J.js";
9
+ import { McpAuthRequiredError, McpHttpError, McpSessionExpiredError, StreamableHttpTransport } from "./startup-0-2-5QHPCEON.js";
10
+ import { StdioTransport, resolveConfigValueOrThrowAsync, resolveHeadersOrThrowAsync } from "./startup-0-3-4ZYBYQNM.js";
11
+ import { JSON_RPC_ERROR_CODES, McpError, redactOAuthErrorText, redactOAuthErrorTextCapped, sliceTail } from "./startup-0-0-3IXNMFM2.js";
12
12
  import "./startup-0-4-ZMJV547D.js";
13
13
  import { appendFile, mkdir, rename, stat } from "node:fs/promises";
14
14
  // dist/extensions/mcp/log.js