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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/CHANGELOG.md +35 -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-JXBZ3H27.js +72 -39
  6. package/dist/_shared/mode-interactive-sdk-JXBZ3H27.js.map +1 -1
  7. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +57 -18
  8. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
  9. package/dist/_shared/mode-shared-2QJSCUM6.js +59 -14
  10. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
  11. package/dist/_shared/p0-cli-BB45ZQY6.js +2 -2
  12. package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
  13. package/dist/_shared/p1b-elig-BY2G5BUE.js +6 -3
  14. package/dist/_shared/p1b-elig-BY2G5BUE.js.map +1 -1
  15. package/dist/_shared/runtime-O4KCSG4C.js +4 -4
  16. package/dist/_shared/sdk-5ZFNDXUJ.js +208 -54
  17. package/dist/_shared/sdk-5ZFNDXUJ.js.map +1 -1
  18. package/dist/_shared/session-data-AHTU7IS6.js +14 -7
  19. package/dist/_shared/session-data-AHTU7IS6.js.map +1 -1
  20. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  21. package/dist/_shared/settings-startup-HXQLSUWM.js +2 -2
  22. package/dist/_shared/settings-startup-HXQLSUWM.js.map +1 -1
  23. package/dist/_shared/{startup-0-0-FPPQF42L.js → startup-0-0-OWBJIX35.js} +161 -86
  24. package/dist/_shared/startup-0-0-OWBJIX35.js.map +1 -0
  25. package/dist/_shared/{startup-0-1-Q7GBLBEL.js → startup-0-1-DZYE4E5Z.js} +321 -17
  26. package/dist/_shared/startup-0-1-DZYE4E5Z.js.map +1 -0
  27. package/dist/_shared/{startup-0-2-JNYN24UI.js → startup-0-2-WFLTE4SC.js} +113 -6
  28. package/dist/_shared/startup-0-2-WFLTE4SC.js.map +1 -0
  29. package/dist/_shared/startup-0-3-DE2NCS6A.js +47 -23
  30. package/dist/_shared/startup-0-3-DE2NCS6A.js.map +1 -1
  31. package/dist/_shared/{startup-0-4-ZZXFKE55.js → startup-0-4-6XXL4JMZ.js} +37 -13
  32. package/dist/_shared/startup-0-4-6XXL4JMZ.js.map +1 -0
  33. package/dist/_shared/{startup-0-5-WN2IYA25.js → startup-0-5-DNS6FYS7.js} +126 -150
  34. package/dist/_shared/startup-0-5-DNS6FYS7.js.map +1 -0
  35. package/dist/_shared/startup-10-0-O6DAT7U4.js +93 -72
  36. package/dist/_shared/startup-10-0-O6DAT7U4.js.map +1 -1
  37. package/dist/_shared/startup-12-0-55AAXBJZ.js +3 -3
  38. package/dist/_shared/startup-14-0-MLX36RBG.js +5 -5
  39. package/dist/_shared/startup-15-0-E7RYG5YF.js +6 -6
  40. package/dist/_shared/startup-15-1-WQZBOTMZ.js +289 -122
  41. package/dist/_shared/startup-15-1-WQZBOTMZ.js.map +1 -1
  42. package/dist/_shared/startup-8-0-34CBHPZH.js +263 -145
  43. package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
  44. package/dist/_shared/{startup-8-1-QZMXUGHI.js → startup-8-1-VXBL37AI.js} +325 -10
  45. package/dist/_shared/startup-8-1-VXBL37AI.js.map +1 -0
  46. package/dist/_shared/storage-command-7MGXLJGZ.js +11 -273
  47. package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
  48. package/dist/_shared/storage-status-T6FUXRIM.js +4 -4
  49. package/dist/_shared/task-reference-stream-JWMUZSJX.js +1 -1
  50. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  51. package/dist/_shared/team-DOQKICG2.js +2 -2
  52. package/dist/_shared/tree-outline-MUEPK5B7.js +9 -2
  53. package/dist/_shared/tree-outline-MUEPK5B7.js.map +1 -1
  54. package/dist/binary-self-update.js +3 -3
  55. package/dist/builtin/intercom/broker/broker.bundle.mjs +46 -8
  56. package/dist/builtin/intercom/broker/broker.ts +1 -0
  57. package/dist/builtin/intercom/broker/client.ts +5 -1
  58. package/dist/builtin/intercom/broker/departed-children.ts +12 -6
  59. package/dist/builtin/intercom/broker/ended-child-wakes.ts +2 -0
  60. package/dist/builtin/intercom/index.bundle.mjs +130 -264
  61. package/dist/builtin/intercom/message-display.ts +42 -0
  62. package/dist/builtin/intercom/package.json +1 -1
  63. package/dist/builtin/intercom/types.ts +1 -0
  64. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  65. package/dist/builtin/mcp/package.json +1 -1
  66. package/dist/builtin/subagents/package.json +1 -1
  67. package/dist/builtin/subagents/src/extension/index.bundle.mjs +99 -20
  68. package/dist/builtin/web-access/index.bundle.mjs +15 -9
  69. package/dist/builtin/web-access/package.json +1 -1
  70. package/dist/cli/args.js +2 -2
  71. package/dist/cli/auth-cli.code.js +6 -6
  72. package/dist/cli/auth-cli.impl.js +3 -3
  73. package/dist/cli/auth-cli.js +3 -3
  74. package/dist/cli/blueprint-command.code.js +4 -4
  75. package/dist/cli/blueprint-command.impl.js +3 -3
  76. package/dist/cli/blueprint-command.js +3 -3
  77. package/dist/cli/intercom-command.code.js +3 -3
  78. package/dist/cli/intercom-command.impl.js +3 -3
  79. package/dist/cli/intercom-command.js +3 -3
  80. package/dist/cli/list-models.code.js +3 -3
  81. package/dist/cli/list-models.impl.js +3 -3
  82. package/dist/cli/list-models.js +3 -3
  83. package/dist/cli/session-picker.code.js +2 -2
  84. package/dist/cli/session-picker.impl.js +3 -3
  85. package/dist/cli/session-picker.js +3 -3
  86. package/dist/cli/startup-ui.code.js +2 -2
  87. package/dist/cli/startup-ui.impl.js +3 -3
  88. package/dist/cli/startup-ui.js +3 -3
  89. package/dist/cli/storage-command.impl.js +3 -3
  90. package/dist/cli/storage-command.js +3 -3
  91. package/dist/cli/storage-search-session.code.js +2 -2
  92. package/dist/cli/storage-search-session.impl.js +3 -3
  93. package/dist/cli/storage-search-session.js +3 -3
  94. package/dist/cli/team-command.code.js +2 -2
  95. package/dist/cli/team-command.impl.js +3 -3
  96. package/dist/cli/team-command.js +3 -3
  97. package/dist/cli.js +2 -2
  98. package/dist/core/agent-session-runtime.d.ts +14 -3
  99. package/dist/core/agent-session-types.d.ts +5 -1
  100. package/dist/core/debug.impl.js +3 -3
  101. package/dist/core/debug.js +3 -3
  102. package/dist/core/export-html/card-projection.code.js +74 -72
  103. package/dist/core/export-html/card-projection.code.js.map +1 -1
  104. package/dist/core/export-html/card-projection.impl.js +3 -3
  105. package/dist/core/export-html/card-projection.js +3 -3
  106. package/dist/core/export-html/index.code.js +12 -4
  107. package/dist/core/export-html/index.code.js.map +1 -1
  108. package/dist/core/export-html/index.impl.js +3 -3
  109. package/dist/core/export-html/index.js +3 -3
  110. package/dist/core/export-html/json-spans.impl.js +3 -3
  111. package/dist/core/export-html/json-spans.js +3 -3
  112. package/dist/core/export-html/oversized-render-inputs.code.js +1 -1
  113. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  114. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  115. package/dist/core/export-html/template.js +24 -23
  116. package/dist/core/export-html/tool-renderer.code.js +1 -1
  117. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  118. package/dist/core/export-html/tool-renderer.js +3 -3
  119. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  120. package/dist/core/extensions/jiti-loader.js +3 -3
  121. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  122. package/dist/core/extensions/jiti-static-loader.js +3 -3
  123. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  124. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  125. package/dist/core/extensions/loader-host-modules.js +3 -3
  126. package/dist/core/extensions/loader-virtual-modules.js +2 -2
  127. package/dist/core/extensions/runner-context.js +2 -2
  128. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  129. package/dist/core/intercom-broker-control-host.js +3 -3
  130. package/dist/core/intercom-broker-control.code.js +3 -3
  131. package/dist/core/intercom-broker-control.impl.js +3 -3
  132. package/dist/core/intercom-broker-control.js +3 -3
  133. package/dist/core/model-registry.js +2 -2
  134. package/dist/core/package-manager-storage-adapters.code.js +1 -1
  135. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  136. package/dist/core/package-manager-storage-adapters.js +3 -3
  137. package/dist/core/resume/failure.d.ts +1 -1
  138. package/dist/core/sdk.code.js +4 -4
  139. package/dist/core/sdk.impl.js +3 -3
  140. package/dist/core/sdk.js +3 -3
  141. package/dist/core/session-claims.d.ts +13 -2
  142. package/dist/core/session-load-events.d.ts +42 -0
  143. package/dist/core/session-manager-core.d.ts +13 -2
  144. package/dist/core/session-manager-core.js +211 -98
  145. package/dist/core/session-manager-core.js.map +1 -1
  146. package/dist/core/session-manager-errors.d.ts +2 -2
  147. package/dist/core/session-manager-list.impl.js +3 -3
  148. package/dist/core/session-manager-list.js +3 -3
  149. package/dist/core/session-manager.code.js +1 -1
  150. package/dist/core/session-manager.impl.js +3 -3
  151. package/dist/core/session-manager.js +3 -3
  152. package/dist/core/session-storage.code.js +1 -1
  153. package/dist/core/session-storage.impl.js +3 -3
  154. package/dist/core/session-storage.js +3 -3
  155. package/dist/core/settings-manager.js +2 -2
  156. package/dist/core/storage/index.js +2 -2
  157. package/dist/core/storage/node-sqlite-thread.js +2 -2
  158. package/dist/core/storage/node-sqlite.js +2 -2
  159. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  160. package/dist/core/storage/offline-snapshot-file.js +3 -3
  161. package/dist/core/storage/provider.js +2 -2
  162. package/dist/core/storage/schema-catalog.d.ts +2 -1
  163. package/dist/core/storage/schema-catalog.js +25 -6
  164. package/dist/core/storage/schema-catalog.js.map +1 -1
  165. package/dist/core/storage/selection.js +2 -2
  166. package/dist/core/storage/session/branch-fork-source.code.js +17 -4
  167. package/dist/core/storage/session/branch-fork-source.code.js.map +1 -1
  168. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  169. package/dist/core/storage/session/branch-fork-source.js +3 -3
  170. package/dist/core/storage/session/card-view.impl.js +3 -3
  171. package/dist/core/storage/session/card-view.js +3 -3
  172. package/dist/core/storage/session/child-reader.code.js +3 -3
  173. package/dist/core/storage/session/child-reader.impl.js +3 -3
  174. package/dist/core/storage/session/child-reader.js +3 -3
  175. package/dist/core/storage/session/chunked-resume-projection.code.js +1 -1
  176. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  177. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  178. package/dist/core/storage/session/expanded-child-details.code.js +3 -3
  179. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  180. package/dist/core/storage/session/expanded-child-details.js +3 -3
  181. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  182. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  183. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  184. package/dist/core/storage/session/fork-row-index.js +3 -3
  185. package/dist/core/storage/session/fork-staging.code.js +8 -4
  186. package/dist/core/storage/session/fork-staging.code.js.map +1 -1
  187. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  188. package/dist/core/storage/session/fork-staging.js +3 -3
  189. package/dist/core/storage/session/fork-window.code.js +29 -14
  190. package/dist/core/storage/session/fork-window.code.js.map +1 -1
  191. package/dist/core/storage/session/fork-window.impl.js +3 -3
  192. package/dist/core/storage/session/fork-window.js +3 -3
  193. package/dist/core/storage/session/history-pages.impl.js +3 -3
  194. package/dist/core/storage/session/history-pages.js +3 -3
  195. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  196. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  197. package/dist/core/storage/session/jsonl-session-store.d.ts +8 -4
  198. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  199. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  200. package/dist/core/storage/session/memory-session-store.d.ts +3 -3
  201. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  202. package/dist/core/storage/session/memory-session-store.js +3 -3
  203. package/dist/core/storage/session/parent-links.d.ts +122 -0
  204. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  205. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  206. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  207. package/dist/core/storage/session/released-history-files.code.js +3 -3
  208. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  209. package/dist/core/storage/session/released-history-files.js +3 -3
  210. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  211. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  212. package/dist/core/storage/session/session-resume.impl.js +3 -3
  213. package/dist/core/storage/session/session-resume.js +3 -3
  214. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  215. package/dist/core/storage/session/snapshot-cut.js +3 -3
  216. package/dist/core/storage/session/snapshot-history.code.js +5 -6
  217. package/dist/core/storage/session/snapshot-history.code.js.map +1 -1
  218. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  219. package/dist/core/storage/session/snapshot-history.js +3 -3
  220. package/dist/core/storage/session/sql-session-store.d.ts +4 -3
  221. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  222. package/dist/core/storage/session/sql-session-store.js +3 -3
  223. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  224. package/dist/core/storage/session/tree-outline.js +3 -3
  225. package/dist/core/storage/session/tree-presentation.code.js +1 -1
  226. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  227. package/dist/core/storage/session/tree-presentation.js +3 -3
  228. package/dist/core/storage/session/types.d.ts +9 -3
  229. package/dist/core/storage/session/usage-observations.js +1 -1
  230. package/dist/core/storage/storage-status.impl.js +3 -3
  231. package/dist/core/storage/storage-status.js +3 -3
  232. package/dist/core/storage/team.impl.js +3 -3
  233. package/dist/core/storage/team.js +3 -3
  234. package/dist/core/structured-output/index.impl.js +3 -3
  235. package/dist/core/structured-output/index.js +3 -3
  236. package/dist/core/tasks/task-completion-entry.code.js +1 -1
  237. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  238. package/dist/core/tasks/task-completion-entry.js +3 -3
  239. package/dist/core/tasks/task-file-history.code.js +3 -3
  240. package/dist/core/tasks/task-file-history.impl.js +3 -3
  241. package/dist/core/tasks/task-file-history.js +3 -3
  242. package/dist/core/tasks/task-reference-archive.code.js +5 -5
  243. package/dist/core/tasks/task-reference-archive.js +3 -3
  244. package/dist/core/tasks/task-reference-identity.code.js +1 -1
  245. package/dist/core/tasks/task-reference-identity.js +3 -3
  246. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  247. package/dist/core/tasks/task-reference-stream.js +3 -3
  248. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  249. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  250. package/dist/core/tasks/task-view-source.code.js +1 -1
  251. package/dist/core/tasks/task-view-source.impl.js +3 -3
  252. package/dist/core/tasks/task-view-source.js +3 -3
  253. package/dist/core/tools/read-url.code.js +3 -3
  254. package/dist/core/tools/read-url.impl.js +3 -3
  255. package/dist/core/tools/read-url.js +3 -3
  256. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  257. package/dist/core/worktree-snapshot/errors.code.js +3 -3
  258. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  259. package/dist/core/worktree-snapshot/errors.js +3 -3
  260. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  261. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  262. package/dist/extensions/codemode/execute.code.js +2 -2
  263. package/dist/extensions/codemode/execute.impl.js +3 -3
  264. package/dist/extensions/codemode/execute.js +3 -3
  265. package/dist/extensions/codemode/renderer.code.js +12 -7
  266. package/dist/extensions/codemode/renderer.code.js.map +1 -1
  267. package/dist/extensions/codemode/renderer.impl.js +3 -3
  268. package/dist/extensions/codemode/renderer.js +3 -3
  269. package/dist/extensions/mcp/cli.code.js +2 -2
  270. package/dist/extensions/mcp/cli.impl.js +3 -3
  271. package/dist/extensions/mcp/cli.js +3 -3
  272. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  273. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  274. package/dist/extensions/mcp/cli.lazy.js +3 -3
  275. package/dist/extensions/mcp/runtime.impl.js +3 -3
  276. package/dist/extensions/mcp/runtime.js +3 -3
  277. package/dist/index.d.ts +5 -2
  278. package/dist/index.js +7 -7
  279. package/dist/main-first-time-setup.code.js +2 -2
  280. package/dist/main-first-time-setup.impl.js +3 -3
  281. package/dist/main-first-time-setup.js +3 -3
  282. package/dist/main.js +1 -1
  283. package/dist/modes/index.d.ts +1 -1
  284. package/dist/modes/interactive/components/intercom-wake-notice.d.ts +4 -0
  285. package/dist/modes/interactive/components/notice-line.d.ts +1 -1
  286. package/dist/modes/interactive/components/stored-tree-view.code.js +6 -5
  287. package/dist/modes/interactive/components/stored-tree-view.code.js.map +1 -1
  288. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  289. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  290. package/dist/modes/interactive/components/tool-block.d.ts +5 -1
  291. package/dist/modes/interactive/components/user-message-selector-archive.code.js +1 -1
  292. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  293. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  294. package/dist/modes/interactive-engine/isolated-runtime.d.ts +3 -3
  295. package/dist/modes/interactive-engine/protocol.d.ts +0 -4
  296. package/dist/modes/rpc/rpc-client-api.d.ts +5 -0
  297. package/dist/modes/rpc/rpc-types.d.ts +23 -5
  298. package/dist/package-manager-cli.code.js +7 -7
  299. package/dist/package-manager-cli.impl.js +3 -3
  300. package/dist/package-manager-cli.js +3 -3
  301. package/dist/rpc-entry.js +1 -1
  302. package/dist/startup-files.json +1 -1
  303. package/dist/startup-stages/10.js +1 -1
  304. package/dist/startup-stages/12.js +1 -1
  305. package/dist/startup-stages/13.js +2 -1
  306. package/dist/startup-stages/14.js +1 -0
  307. package/dist/startup-stages/4.js +1 -1
  308. package/dist/startup-stages/6.js +1 -1
  309. package/dist/startup-stages/7.js +1 -1
  310. package/dist/startup-stages/8.js +1 -1
  311. package/dist/startup-stages/stages.json +1 -1
  312. package/dist/utils/startup-database-spare.code.js +3 -3
  313. package/dist/utils/startup-database-spare.impl.js +3 -3
  314. package/dist/utils/startup-database-spare.js +3 -3
  315. package/dist/utils/tools-manager.code.js +1 -1
  316. package/dist/utils/tools-manager.impl.js +3 -3
  317. package/dist/utils/tools-manager.js +3 -3
  318. package/docs/.agents/context/DESIGN.md +30 -0
  319. package/docs/changelog.mdx +23 -0
  320. package/docs/docs.json +1 -1
  321. package/docs/guides/subscription-usage.md +3 -3
  322. package/docs/intercom.md +3 -1
  323. package/docs/json.md +3 -3
  324. package/docs/providers.md +2 -0
  325. package/docs/rpc/protocol.md +1 -1
  326. package/docs/sdk.md +2 -0
  327. package/docs/sessions.md +36 -1
  328. package/docs/subagents.md +2 -0
  329. package/package.json +8 -8
  330. package/dist/_shared/startup-0-0-FPPQF42L.js.map +0 -1
  331. package/dist/_shared/startup-0-1-Q7GBLBEL.js.map +0 -1
  332. package/dist/_shared/startup-0-2-JNYN24UI.js.map +0 -1
  333. package/dist/_shared/startup-0-4-ZZXFKE55.js.map +0 -1
  334. package/dist/_shared/startup-0-5-WN2IYA25.js.map +0 -1
  335. package/dist/_shared/startup-8-1-QZMXUGHI.js.map +0 -1
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.20-alpha.1`;
9
+ const key = `${root.href}#0.10.20-alpha.2`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.20-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.1 while this session was running; restart it to keep using /fork.", {
30
+ if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using /fork.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../../../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.20-alpha.1`;
9
+ const key = `${root.href}#0.10.20-alpha.2`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.20-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.1 while this session was running; restart it to keep using /fork.", {
30
+ if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using /fork.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,6 +6,7 @@ import type { ResourceOverlap } from "../../core/diagnostics.ts";
6
6
  import type { SessionRecoveryReason } from "../../core/extensions/session-events.ts";
7
7
  import { type SessionTrustDecisions } from "../../core/project-trust-state.ts";
8
8
  import { type QueuedDeliveryEntry, type QueuedMessageLanes, type QueuedMessageReceipt } from "../../core/queued-message-delivery.ts";
9
+ import type { SessionImportResult } from "../../core/storage/session/parent-links.js";
9
10
  import type { AccountUsage, UsageRow } from "../../core/subscription-usage.js";
10
11
  import type { StopAllBackgroundOutcome } from "../../core/tasks/stop-all.ts";
11
12
  import type { ToolStatusReport } from "../../core/tool-status.js";
@@ -64,6 +65,7 @@ export declare class IsolatedInteractiveRuntime extends AgentSessionRuntime {
64
65
  private compactionHoldReported;
65
66
  /** The engine prepares every resume of this session and builds its blueprints; this mirror only restores the same state. */
66
67
  protected resumeBlueprints: "build" | "skip";
68
+ protected sessionClaimMirror: boolean;
67
69
  private readonly patchedSessions;
68
70
  /** Only committed bytes, independent of host-local mutations. Never shared across engine session generations. */
69
71
  private privateMirror?;
@@ -344,9 +346,7 @@ export declare class IsolatedInteractiveRuntime extends AgentSessionRuntime {
344
346
  }): Promise<{
345
347
  cancelled: boolean;
346
348
  }>;
347
- importFromJsonl(inputPath: string, cwdOverride?: string): Promise<{
348
- cancelled: boolean;
349
- }>;
349
+ importFromJsonl(inputPath: string, cwdOverride?: string): Promise<SessionImportResult>;
350
350
  fork(entryId: string, options?: {
351
351
  position?: "before" | "at";
352
352
  }): Promise<{
@@ -195,10 +195,6 @@ export type InteractiveEngineMessage = {
195
195
  type: "engine_request_accepted";
196
196
  requestId: string;
197
197
  command: string;
198
- } | {
199
- type: "engine_session_load_progress";
200
- requestId: string;
201
- message: string;
202
198
  } | {
203
199
  type: "engine_custom_open";
204
200
  componentId: string;
@@ -131,6 +131,11 @@ export declare abstract class RpcClientApi {
131
131
  clone(): Promise<{
132
132
  cancelled: boolean;
133
133
  }>;
134
+ importFromJsonl(inputPath: string, cwdOverride?: string): Promise<{
135
+ cancelled: boolean;
136
+ notices?: readonly RpcResumeNotice[];
137
+ }>;
138
+ reload(): Promise<void>;
134
139
  getForkMessages(): Promise<Array<{
135
140
  entryId: string;
136
141
  text: string;
@@ -21,6 +21,7 @@ import type { AuthStatus } from "../../core/provider-composer.ts";
21
21
  import type { SerializedMissingSessionCwdError } from "../../core/session-cwd.ts";
22
22
  import type { BranchSummaryEntry, SessionEntry, SessionInfo, SessionSummaryEntry, SessionTreeNode } from "../../core/session-manager.ts";
23
23
  import type { SourceInfo } from "../../core/source-info.ts";
24
+ import type { SessionDuplicateEntryError, SessionImportResult, SessionInvalidParentError } from "../../core/storage/session/parent-links.js";
24
25
  import type { OversizedSessionEntry, SessionHistoryPage } from "../../core/storage/session/types.js";
25
26
  import type { AccountUsage, UsageRow } from "../../core/subscription-usage.js";
26
27
  import type { StopAllBackgroundOutcome } from "../../core/tasks/stop-all.ts";
@@ -114,6 +115,10 @@ export interface RpcHistoryChunk {
114
115
  readonly data: string;
115
116
  readonly nextOffset?: number;
116
117
  }
118
+ export type RpcSessionLoadEvent = import("../../core/session-load-events.js").SessionLoadEvent & {
119
+ /** The request that loaded the session, when the load was requested by a command with an id. */
120
+ readonly id?: string;
121
+ };
117
122
  export type RpcCommand = {
118
123
  id?: string;
119
124
  type: "prompt";
@@ -344,8 +349,6 @@ export type RpcCommand = {
344
349
  * peer's value is ignored.
345
350
  */
346
351
  startedSession?: boolean;
347
- /** Requests correlated phase messages on the interactive engine's private channel. */
348
- reportLoadProgress?: true;
349
352
  } | {
350
353
  id?: string;
351
354
  type: "import_session";
@@ -841,8 +844,7 @@ export type RpcResponse = {
841
844
  type: "response";
842
845
  command: "import_session";
843
846
  success: true;
844
- data: {
845
- cancelled: boolean;
847
+ data: SessionImportResult & {
846
848
  notices?: readonly RpcResumeNotice[];
847
849
  };
848
850
  } | {
@@ -1047,12 +1049,28 @@ export type RpcErrorDetails = {
1047
1049
  } | {
1048
1050
  errorCode: "debug_error";
1049
1051
  errorDetails: SerializedDebugError;
1052
+ } | {
1053
+ errorCode: "damaged_parent_link";
1054
+ errorDetails: Pick<SessionInvalidParentError, "entryId" | "parentId" | "reason">;
1055
+ } | {
1056
+ errorCode: "duplicate_history_entry";
1057
+ errorDetails: Pick<SessionDuplicateEntryError, "entryId">;
1058
+ } | {
1059
+ errorCode: "session_already_open";
1060
+ errorDetails: {
1061
+ sessionId: string;
1062
+ pid: number;
1063
+ host: string;
1064
+ exitCode: number;
1065
+ };
1050
1066
  } | {
1051
1067
  errorCode: "missing_session_cwd";
1052
1068
  errorDetails: SerializedMissingSessionCwdError;
1053
1069
  };
1054
1070
  /** Events streamed by RPC mode as session activity occurs. */
1055
- export type RpcEvent = JsonAgentSessionEvent;
1071
+ export type RpcEvent = Exclude<JsonAgentSessionEvent, {
1072
+ loadId: string;
1073
+ }> | RpcSessionLoadEvent;
1056
1074
  /** Exit code of an RPC process whose shutdown failed after a clean stdin close or shutdown request. */
1057
1075
  export declare const RPC_SHUTDOWN_FAILED_EXIT_CODE = 1;
1058
1076
  /** The last line an RPC process writes when disposing its session failed; the process then exits with `exitCode`. */
@@ -6,14 +6,14 @@ import chalk from "chalk";
6
6
  import { Container, Input, Markdown, ProcessTerminal, Spacer, TuiMainScreen, getKeybindings, matchesKey, setCapabilityOverrides, setKeybindings, truncateToWidth, visibleWidth } from "@bastani/atomic-tui";
7
7
  import { KeybindingsManager as KeybindingsManager$1, getMarkdownTheme, initTheme, navActionText, renderNavHintLine, stopThemeWatcher, theme } from "./_shared/p2-shell-main-B2WIALFD.js";
8
8
  import { APP_NAME, CONFIG_DIR_NAME, ENV_PACKAGE_DIR, ENV_SELF_UPDATE_COMMAND, PACKAGE_NAME, VERSION, detectInstallChange, detectInstallMethod, getAgentConfigPaths, getAgentDir, getConfiguredSelfUpdateArgv, getEnvNames, getPackageDir, getSelfUpdateCommand, getSelfUpdateUnavailableInstruction, isLocalPath, makeConfiguredSelfUpdateCommand, processLaunch, processLaunchAsync, resolvePath, shortenHomePath, spawnLaunchedProcess, spawnLaunchedProcessSync } from "./_shared/p0-cli-BB45ZQY6.js";
9
- import { DynamicBorder, cleanupWindowsSelfUpdateQuarantine, handlePackageCommandParseOutcome, isWindowsInstallDirectoryLockError, parsePackageCommand, quarantineWindowsNativeDependencies } from "./_shared/startup-0-0-FPPQF42L.js";
9
+ import { DynamicBorder, cleanupWindowsSelfUpdateQuarantine, handlePackageCommandParseOutcome, isWindowsInstallDirectoryLockError, parsePackageCommand, quarantineWindowsNativeDependencies } from "./_shared/startup-0-0-OWBJIX35.js";
10
10
  import { createProjectTrustContext } from "./_shared/startup-0-3-DE2NCS6A.js";
11
11
  import { parseConfigCommand } from "./_shared/config-command-parser-XRBNVMBV.js";
12
- import { AuthStorage } from "./_shared/startup-0-4-ZZXFKE55.js";
13
- import { DefaultPackageManager, ModelRuntime } from "./_shared/startup-0-5-WN2IYA25.js";
14
- import { formatPackageInstallWarning, isOfflineModeEnabled } from "./_shared/startup-0-1-Q7GBLBEL.js";
12
+ import { AuthStorage } from "./_shared/startup-0-4-6XXL4JMZ.js";
13
+ import { DefaultPackageManager, ModelRuntime } from "./_shared/startup-0-5-DNS6FYS7.js";
14
+ import { formatPackageInstallWarning, isOfflineModeEnabled } from "./_shared/startup-0-1-DZYE4E5Z.js";
15
15
  import { DefaultResourceLoader, resolveProjectTrusted } from "./_shared/startup-14-0-MLX36RBG.js";
16
- import { SettingsManager } from "./_shared/startup-8-1-QZMXUGHI.js";
16
+ import { SettingsManager } from "./_shared/startup-8-1-VXBL37AI.js";
17
17
  import { ProjectTrustStore, hasProjectTrustInputs } from "./_shared/p1b-elig-BY2G5BUE.js";
18
18
  import { formatVersionCheckError, getLatestPiRelease, isNewerPackageVersion } from "./_shared/mode-shared-2QJSCUM6.js";
19
19
  // dist/modes/interactive/components/config-selector-project-scope.js
@@ -1122,7 +1122,7 @@ function __atomicOnDemandFailed(error, feature) {
1122
1122
  return (async () => {
1123
1123
  const root = new URL("./", import.meta.url);
1124
1124
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
1125
- const key = `${root.href}#0.10.20-alpha.1`;
1125
+ const key = `${root.href}#0.10.20-alpha.2`;
1126
1126
  let release = releases.get(key);
1127
1127
  if (release === undefined) {
1128
1128
  const current = (async () => {
@@ -1150,7 +1150,7 @@ function __atomicOnDemandFailed(error, feature) {
1150
1150
  } catch {
1151
1151
  // No installation to read, as in a bundle of the package: the release the process runs decides.
1152
1152
  }
1153
- const updatedTo = typeof installed === "string" && installed !== "0.10.20-alpha.1" ? installed : running !== undefined && running.version !== "0.10.20-alpha.1" ? "0.10.20-alpha.1" : undefined;
1153
+ const updatedTo = typeof installed === "string" && installed !== "0.10.20-alpha.2" ? installed : running !== undefined && running.version !== "0.10.20-alpha.2" ? "0.10.20-alpha.2" : undefined;
1154
1154
  if (updatedTo === undefined) throw error;
1155
1155
  const application = typeof running?.name === "string" ? running.name : "atomic";
1156
1156
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("./", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.20-alpha.1`;
9
+ const key = `${root.href}#0.10.20-alpha.2`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.20-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.1 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("./", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.20-alpha.1`;
9
+ const key = `${root.href}#0.10.20-alpha.2`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.20-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.1 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
32
32
  cause: error,
33
33
  });
34
34
  }
package/dist/rpc-entry.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import "./_shared/rolldown-runtime-BGM3D5V3.js";
3
- import { insertForcedOptionsBeforeTerminator } from "./_shared/startup-0-1-Q7GBLBEL.js";
3
+ import { insertForcedOptionsBeforeTerminator } from "./_shared/startup-0-1-DZYE4E5Z.js";
4
4
  import { exitOnDecisionConfigError } from "./_shared/settings-startup-8-DNZ2RIHM.js";
5
5
  import { APP_NAME, ATOMIC_AI_AGENT } from "./_shared/p0-cli-BB45ZQY6.js";
6
6
  import { configureHttpDispatcher } from "./_shared/http-YFAPTIZD.js";
@@ -1 +1 @@
1
- {"version":2,"self":"@bastani/atomic","packages":[["@bastani/atomic",-1],["@bastani/atomic-tui",0],["@bastani/atomic-codemode",0],["proper-lockfile",0],["graceful-fs",3],["retry",3],["signal-exit",3],["get-east-asian-width",1],["marked",1],["marked-cjk-friendly",1],["chalk",0],["@bastani/atomic-ai",0],["@bastani/atomic-schema",11],["@bastani/atomic-agent-core",0],["glob",0]],"files":[[0,"dist/modes/interactive-engine/engine-prewarm.js"],[0,"dist/_shared/rolldown-runtime-BGM3D5V3.js"],[0,"dist/_shared/p1a-prewarm-XIU57JHF.js"],[0,"dist/__atomic_timers/index.js"],[0,"dist/_shared/p0-cli-BB45ZQY6.js"],[1,"dist/helper-programs/index.js"],[1,"dist/_main-ea49a2e6.js"],[1,"dist/_rolldown-runtime-e937a250.js"],[1,"dist/_lazy-eb232bf4.js"],[0,"dist/utils/canonical-path.js"],[0,"dist/utils/path-exists.js"],[0,"dist/utils/worker-threads.js"],[2,"dist/node-options.js"],[0,"dist/_shared/p1-shared-RG5I5LJ6.js"],[0,"dist/core/storage/node-sqlite-thread.js"],[0,"dist/core/storage/dialect.js"],[0,"dist/modes/interactive/startup-shell-eligibility.js"],[0,"dist/_shared/p1b-elig-BY2G5BUE.js"],[3,"index.js"],[0,"dist/_shared/p1-elig-shell-WWRO3L2R.js"],[3,"lib/lockfile.js"],[4,"graceful-fs.js"],[4,"polyfills.js"],[4,"legacy-streams.js"],[4,"clone.js"],[5,"index.js"],[5,"lib/retry.js"],[5,"lib/retry_operation.js"],[6,"index.js"],[6,"signals.js"],[3,"lib/mtime-precision.js"],[3,"lib/adapter.js"],[0,"dist/modes/interactive/startup-shell.js"],[0,"dist/_shared/p2-shell-TJBYQMCJ.js"],[1,"dist/index.js"],[1,"dist/_main-e4228e6a.js"],[1,"dist/_main-e85c88b3.js"],[7,"index.js"],[7,"lookup.js"],[7,"lookup-data.js"],[7,"utilities.js"],[1,"dist/_main-edb90e85.js"],[1,"dist/_main-edf509ab.js"],[1,"dist/_main-e9d2ce9e.js"],[1,"dist/__atomic_timers/index.js"],[1,"dist/_main-e881e236.js"],[1,"dist/_main-ec15befe.js"],[1,"dist/_main-e101663a.js"],[8,"lib/marked.esm.js"],[9,"dist/index.js"],[1,"dist/_main-e4a71c51.js"],[1,"dist/_main-ec8edda6.js"],[1,"dist/native-modifiers.js"],[1,"dist/native-platform.js"],[1,"dist/native-module-path.js"],[1,"dist/_main-e41da700.js"],[0,"dist/_shared/p2-shell-main-B2WIALFD.js"],[10,"source/index.js"],[10,"source/utilities.js"],[10,"source/vendor/ansi-styles/index.js"],[10,"source/vendor/supports-color/index.js"],[0,"dist/utils/memoize-async.js"],[0,"dist/_shared/p2-common-YLSYXMDQ.js"],[0,"dist/utils/startup-stages.js"],[0,"dist/_shared/p3a-stages-66VAGJL3.js"],[0,"dist/core/http-dispatcher.js"],[0,"dist/_shared/http-undici-FVPTZA4G.js"],[0,"dist/_shared/http-YFAPTIZD.js"],[11,"dist/utils/node-http-proxy.js"],[11,"dist/_main-e25f9883.js"],[11,"dist/_rolldown-runtime-ee51c298.js"],[11,"dist/utils/tls-certificate.js"],[11,"dist/_main-ee338024.js"],[11,"dist/_main-e6f8289d.js"],[11,"dist/__atomic_timers/index.js"],[11,"dist/utils/request-admission.js"],[0,"dist/main.js"],[0,"dist/_shared/startup-8-1-QZMXUGHI.js"],[0,"dist/_shared/startup-0-0-FPPQF42L.js"],[0,"dist/_shared/settings-startup-HXQLSUWM.js"],[0,"dist/core/storage/errors.js"],[1,"dist/builtin-command-names.js"],[0,"dist/core/storage/creation-time.js"],[0,"dist/_shared/startup-0-1-Q7GBLBEL.js"],[11,"dist/index.js"],[11,"dist/_main-ebebe042.js"],[11,"dist/_main-efb2d8b1.js"],[11,"dist/_main-e1febd93.js"],[11,"dist/_main-e19a4fd4.js"],[11,"dist/_main-ebd8ef17.js"],[11,"dist/_main-e86630a4.js"],[12,"dist/index.js"],[12,"dist/_main-ed41ae74.js"],[12,"dist/formats/index.js"],[11,"dist/_main-e47cd2cb.js"],[0,"dist/core/storage/prefix.js"],[11,"dist/compat.js"],[11,"dist/_main-eeae5f76.js"],[11,"dist/_main-ea63adcc.js"],[11,"dist/_main-ef7e00b0.js"],[11,"dist/_main-e2767acc.js"],[11,"dist/_main-e8dca082.js"],[11,"dist/_main-ef44fc21.js"],[11,"dist/_main-e1f98913.js"],[11,"dist/_main-ecad4dcf.js"],[11,"dist/_main-ed949a21.js"],[11,"dist/_main-eb02ee9d.js"],[11,"dist/_main-ea8fff80.js"],[11,"dist/_main-e980bcd9.js"],[11,"dist/_main-e43e618b.js"],[11,"dist/_main-e3317d05.js"],[11,"dist/providers/github-copilot.js"],[11,"dist/utils/responses-errors/codes.js"],[11,"dist/api/azure-openai-config.js"],[11,"dist/utils/provider-env.js"],[11,"dist/utils/typebox/index.js"],[11,"dist/_lazy-e29165e9.js"],[0,"dist/core/storage/added-exports.js"],[0,"dist/core/storage/migrations.js"],[0,"dist/core/storage/added-exports-0-10-11.js"],[0,"dist/core/storage/schema-catalog.js"],[0,"dist/core/storage/statement-sequence.js"],[0,"dist/core/storage/fenced-paths.js"],[0,"dist/core/storage/postgres-locks.js"],[0,"dist/core/storage/sqlite-open-batch.js"],[11,"dist/providers/model-schema.js"],[11,"dist/api/transform-messages.js"],[0,"dist/_shared/startup-0-2-JNYN24UI.js"],[11,"dist/utils/provider-retry.js"],[11,"dist/utils/retry-hints.js"],[13,"dist/index.js"],[13,"dist/_main-e21a102a.js"],[13,"dist/_rolldown-runtime-e937a250.js"],[13,"dist/_main-e35ec52a.js"],[0,"dist/core/storage/file-identity.js"],[11,"dist/api/llama-cpp-classify.lazy.js"],[11,"dist/_lazy-e5876bb5.js"],[11,"dist/api/typesafe-system-one.lazy.js"],[11,"dist/providers/compat-schema.js"],[11,"dist/utils/typebox/compile.js"],[11,"dist/utils/models-dev-catalog.js"],[11,"dist/_lazy-ef8fa05f.js"],[11,"dist/api/anthropic-assistant-content.js"],[11,"dist/utils/typebox/value.js"],[0,"dist/core/storage/libsql-removed.js"],[0,"dist/core/storage/selection.js"],[0,"dist/_shared/startup-0-3-DE2NCS6A.js"],[11,"dist/utils/provider-waits/timeout.js"],[2,"dist/declarations.js"],[2,"dist/identifier.js"],[2,"dist/source.js"],[11,"dist/utils/retry-sleep.js"],[0,"dist/_shared/startup-8-0-34CBHPZH.js"],[0,"dist/core/storage/session/errors.js"],[0,"dist/core/storage/node-sqlite.js"],[0,"dist/core/storage/node-sqlite-file-gate.js"],[0,"dist/core/storage/write-ahead-log.js"],[0,"dist/_shared/startup-0-5-WN2IYA25.js"],[0,"dist/_shared/startup-0-4-ZZXFKE55.js"],[0,"dist/core/worktree-snapshot/blob-store.js"],[0,"dist/core/storage/statement-batches.js"],[0,"dist/core/worktree-snapshot/collection-claim.js"],[0,"dist/core/worktree-snapshot/fork-blob-guard.js"],[0,"dist/core/worktree-snapshot/fork-snapshot-index.js"],[0,"dist/core/storage/session/fork-schema.js"],[0,"dist/core/worktree-snapshot/snapshot-epoch.js"],[0,"dist/core/worktree-snapshot/snapshot-epoch-migration.js"],[0,"dist/core/storage/provider.js"],[14,"dist/esm/index.min.js"],[11,"dist/providers/all.js"],[11,"dist/providers/openrouter.js"],[11,"dist/api/openai-codex-responses.js"],[11,"dist/_lazy-efef7863.js"],[11,"dist/_lazy-ed51826a.js"],[11,"dist/providers/github-copilot-env.js"],[0,"dist/_shared/startup-15-1-WQZBOTMZ.js"],[0,"dist/_shared/startup-15-0-E7RYG5YF.js"],[0,"dist/_shared/startup-14-0-MLX36RBG.js"],[0,"dist/_shared/startup-10-0-O6DAT7U4.js"],[0,"dist/core/session-manager-core.js"],[11,"dist/api/strict-tool-limits.js"],[0,"dist/_shared/session-manager-list-2BLEEZVG.js"],[0,"dist/_shared/startup-12-0-55AAXBJZ.js"],[0,"dist/core/extensions/runner-context.js"],[0,"dist/core/model-registry.js"],[11,"dist/api/anthropic-serialized-body.js"],[0,"dist/cli/settings-startup.js"],[0,"dist/_shared/settings-startup-8-DNZ2RIHM.js"],[0,"dist/modes/interactive/interactive-mode.js"],[0,"dist/_shared/mode-shared-2QJSCUM6.js"],[0,"dist/_shared/mode-interactive-sdk-JXBZ3H27.js"],[1,"dist/layout-node.js"],[1,"dist/layout.js"],[0,"dist/modes/rpc/rpc-mode.js"],[0,"dist/_shared/mode-rpc-sdk-IOPGDYR4.js"],[0,"dist/index.js"],[0,"dist/_shared/sdk-5ZFNDXUJ.js"],[0,"dist/core/storage/schema.js"],[11,"dist/api/cloudflare-gateway-binding.js"],[0,"dist/core/storage/sqlite-facade.js"],[11,"dist/utils/oauth-page.js"],[0,"dist/core/storage/index.js"],[0,"dist/core/extensions/loader-virtual-modules.js"],[0,"dist/builtin/intercom/index.bundle.mjs"],[0,"dist/builtin/subagents/src/extension/index.bundle.mjs"],[0,"dist/builtin/mcp/index.bundle.mjs"],[0,"dist/builtin/web-access/index.bundle.mjs"]]}
1
+ {"version":2,"self":"@bastani/atomic","packages":[["@bastani/atomic",-1],["@bastani/atomic-tui",0],["@bastani/atomic-codemode",0],["proper-lockfile",0],["graceful-fs",3],["retry",3],["signal-exit",3],["get-east-asian-width",1],["marked",1],["marked-cjk-friendly",1],["chalk",0],["@bastani/atomic-ai",0],["@bastani/atomic-schema",11],["@bastani/atomic-agent-core",0],["glob",0]],"files":[[0,"dist/modes/interactive-engine/engine-prewarm.js"],[0,"dist/_shared/rolldown-runtime-BGM3D5V3.js"],[0,"dist/_shared/p1a-prewarm-XIU57JHF.js"],[0,"dist/__atomic_timers/index.js"],[0,"dist/_shared/p0-cli-BB45ZQY6.js"],[1,"dist/helper-programs/index.js"],[1,"dist/_main-ea49a2e6.js"],[1,"dist/_rolldown-runtime-e937a250.js"],[1,"dist/_lazy-eb232bf4.js"],[0,"dist/utils/canonical-path.js"],[0,"dist/utils/path-exists.js"],[0,"dist/utils/worker-threads.js"],[2,"dist/node-options.js"],[0,"dist/_shared/p1-shared-RG5I5LJ6.js"],[0,"dist/core/storage/node-sqlite-thread.js"],[0,"dist/core/storage/dialect.js"],[0,"dist/modes/interactive/startup-shell-eligibility.js"],[0,"dist/_shared/p1b-elig-BY2G5BUE.js"],[3,"index.js"],[0,"dist/_shared/p1-elig-shell-WWRO3L2R.js"],[3,"lib/lockfile.js"],[4,"graceful-fs.js"],[4,"polyfills.js"],[4,"legacy-streams.js"],[4,"clone.js"],[5,"index.js"],[5,"lib/retry.js"],[5,"lib/retry_operation.js"],[6,"index.js"],[6,"signals.js"],[3,"lib/mtime-precision.js"],[3,"lib/adapter.js"],[0,"dist/modes/interactive/startup-shell.js"],[0,"dist/_shared/p2-shell-TJBYQMCJ.js"],[1,"dist/index.js"],[1,"dist/_main-e4228e6a.js"],[1,"dist/_main-e85c88b3.js"],[7,"index.js"],[7,"lookup.js"],[7,"lookup-data.js"],[7,"utilities.js"],[1,"dist/_main-edb90e85.js"],[1,"dist/_main-edf509ab.js"],[1,"dist/_main-e9d2ce9e.js"],[1,"dist/__atomic_timers/index.js"],[1,"dist/_main-e881e236.js"],[1,"dist/_main-ec15befe.js"],[1,"dist/_main-e101663a.js"],[8,"lib/marked.esm.js"],[9,"dist/index.js"],[1,"dist/_main-e4a71c51.js"],[1,"dist/_main-ec8edda6.js"],[1,"dist/native-modifiers.js"],[1,"dist/native-platform.js"],[1,"dist/native-module-path.js"],[1,"dist/_main-e41da700.js"],[0,"dist/_shared/p2-shell-main-B2WIALFD.js"],[10,"source/index.js"],[10,"source/utilities.js"],[10,"source/vendor/ansi-styles/index.js"],[10,"source/vendor/supports-color/index.js"],[0,"dist/utils/memoize-async.js"],[0,"dist/_shared/p2-common-YLSYXMDQ.js"],[0,"dist/utils/startup-stages.js"],[0,"dist/_shared/p3a-stages-66VAGJL3.js"],[0,"dist/core/http-dispatcher.js"],[0,"dist/_shared/http-undici-FVPTZA4G.js"],[0,"dist/_shared/http-YFAPTIZD.js"],[11,"dist/utils/node-http-proxy.js"],[11,"dist/_main-ec5a5445.js"],[11,"dist/_rolldown-runtime-ee51c298.js"],[11,"dist/utils/tls-certificate.js"],[11,"dist/_main-efac17ee.js"],[11,"dist/_main-e6f8289d.js"],[11,"dist/__atomic_timers/index.js"],[11,"dist/utils/request-admission.js"],[0,"dist/main.js"],[0,"dist/_shared/startup-8-1-VXBL37AI.js"],[0,"dist/_shared/startup-0-0-OWBJIX35.js"],[0,"dist/_shared/settings-startup-HXQLSUWM.js"],[0,"dist/core/storage/errors.js"],[1,"dist/builtin-command-names.js"],[0,"dist/core/storage/creation-time.js"],[0,"dist/_shared/startup-0-1-DZYE4E5Z.js"],[11,"dist/index.js"],[11,"dist/_main-ebebe042.js"],[11,"dist/_main-efb2d8b1.js"],[11,"dist/_main-e1febd93.js"],[11,"dist/_main-e19a4fd4.js"],[11,"dist/_main-e70dcffe.js"],[11,"dist/_main-e86630a4.js"],[12,"dist/index.js"],[12,"dist/_main-ed41ae74.js"],[12,"dist/formats/index.js"],[11,"dist/_main-e3bc630e.js"],[0,"dist/core/storage/prefix.js"],[11,"dist/compat.js"],[11,"dist/_main-e12659fc.js"],[11,"dist/_main-e601ecdc.js"],[11,"dist/_main-e89bcd33.js"],[11,"dist/_main-eea67c13.js"],[11,"dist/_main-ed09601d.js"],[11,"dist/_main-e45c3af5.js"],[11,"dist/_main-ed5225e2.js"],[11,"dist/_main-e66d4ce2.js"],[11,"dist/_main-ee49c2c5.js"],[11,"dist/_main-e226f88c.js"],[11,"dist/_main-eda755b0.js"],[11,"dist/_main-e980bcd9.js"],[11,"dist/_main-e797e6c7.js"],[11,"dist/_main-eb1f69d6.js"],[11,"dist/providers/github-copilot.js"],[11,"dist/utils/responses-errors/codes.js"],[11,"dist/api/azure-openai-config.js"],[11,"dist/utils/provider-env.js"],[11,"dist/utils/typebox/index.js"],[11,"dist/_lazy-e29165e9.js"],[0,"dist/core/storage/added-exports.js"],[0,"dist/core/storage/migrations.js"],[0,"dist/core/storage/added-exports-0-10-11.js"],[0,"dist/core/storage/schema-catalog.js"],[0,"dist/core/storage/statement-sequence.js"],[0,"dist/core/storage/fenced-paths.js"],[0,"dist/core/storage/postgres-locks.js"],[0,"dist/core/storage/sqlite-open-batch.js"],[11,"dist/providers/model-schema.js"],[11,"dist/api/transform-messages.js"],[0,"dist/_shared/startup-0-2-WFLTE4SC.js"],[11,"dist/utils/provider-retry.js"],[11,"dist/utils/retry-hints.js"],[13,"dist/index.js"],[13,"dist/_main-e21a102a.js"],[13,"dist/_rolldown-runtime-e937a250.js"],[13,"dist/_main-e35ec52a.js"],[0,"dist/core/storage/file-identity.js"],[11,"dist/api/llama-cpp-classify.lazy.js"],[11,"dist/_lazy-e5876bb5.js"],[11,"dist/api/typesafe-system-one.lazy.js"],[11,"dist/providers/compat-schema.js"],[11,"dist/utils/typebox/compile.js"],[11,"dist/utils/models-dev-catalog.js"],[11,"dist/_lazy-e5eca303.js"],[11,"dist/api/anthropic-assistant-content.js"],[11,"dist/utils/typebox/value.js"],[0,"dist/core/storage/libsql-removed.js"],[0,"dist/core/storage/selection.js"],[0,"dist/_shared/startup-0-3-DE2NCS6A.js"],[11,"dist/utils/provider-waits/timeout.js"],[2,"dist/declarations.js"],[2,"dist/identifier.js"],[2,"dist/source.js"],[11,"dist/utils/retry-sleep.js"],[0,"dist/_shared/startup-8-0-34CBHPZH.js"],[0,"dist/core/storage/session/errors.js"],[0,"dist/core/storage/node-sqlite.js"],[0,"dist/core/storage/node-sqlite-file-gate.js"],[0,"dist/core/storage/write-ahead-log.js"],[0,"dist/_shared/startup-0-5-DNS6FYS7.js"],[0,"dist/_shared/startup-0-4-6XXL4JMZ.js"],[0,"dist/core/worktree-snapshot/blob-store.js"],[0,"dist/core/storage/statement-batches.js"],[0,"dist/core/worktree-snapshot/collection-claim.js"],[0,"dist/core/worktree-snapshot/fork-blob-guard.js"],[0,"dist/core/worktree-snapshot/fork-snapshot-index.js"],[0,"dist/core/storage/session/fork-schema.js"],[0,"dist/core/worktree-snapshot/snapshot-epoch.js"],[0,"dist/core/worktree-snapshot/snapshot-epoch-migration.js"],[0,"dist/core/storage/provider.js"],[14,"dist/esm/index.min.js"],[11,"dist/providers/all.js"],[11,"dist/providers/openrouter.js"],[11,"dist/api/openai-codex-responses.js"],[11,"dist/_lazy-eb9fde8f.js"],[11,"dist/_lazy-e86f2992.js"],[11,"dist/providers/github-copilot-env.js"],[0,"dist/_shared/startup-15-1-WQZBOTMZ.js"],[0,"dist/_shared/startup-15-0-E7RYG5YF.js"],[0,"dist/_shared/startup-14-0-MLX36RBG.js"],[0,"dist/_shared/startup-10-0-O6DAT7U4.js"],[0,"dist/core/session-manager-core.js"],[11,"dist/api/strict-tool-limits.js"],[0,"dist/_shared/session-manager-list-2BLEEZVG.js"],[0,"dist/_shared/startup-12-0-55AAXBJZ.js"],[0,"dist/core/extensions/runner-context.js"],[0,"dist/core/model-registry.js"],[11,"dist/api/anthropic-serialized-body.js"],[0,"dist/cli/settings-startup.js"],[0,"dist/_shared/settings-startup-8-DNZ2RIHM.js"],[0,"dist/modes/interactive/interactive-mode.js"],[0,"dist/_shared/mode-shared-2QJSCUM6.js"],[0,"dist/_shared/mode-interactive-sdk-JXBZ3H27.js"],[1,"dist/layout-node.js"],[1,"dist/layout.js"],[0,"dist/modes/rpc/rpc-mode.js"],[0,"dist/_shared/mode-rpc-sdk-IOPGDYR4.js"],[0,"dist/index.js"],[0,"dist/_shared/sdk-5ZFNDXUJ.js"],[0,"dist/core/storage/schema.js"],[11,"dist/api/cloudflare-gateway-binding.js"],[0,"dist/core/storage/sqlite-facade.js"],[11,"dist/utils/oauth-page.js"],[0,"dist/core/storage/index.js"],[0,"dist/core/extensions/loader-virtual-modules.js"],[0,"dist/builtin/intercom/index.bundle.mjs"],[0,"dist/builtin/subagents/src/extension/index.bundle.mjs"],[0,"dist/builtin/mcp/index.bundle.mjs"],[0,"dist/builtin/web-access/index.bundle.mjs"]]}
@@ -1 +1 @@
1
- import "../_shared/startup-0-5-WN2IYA25.js";
1
+ import "../_shared/startup-0-5-DNS6FYS7.js";
@@ -1 +1 @@
1
- import "../_shared/startup-8-1-QZMXUGHI.js";
1
+ import "../_shared/startup-8-1-VXBL37AI.js";
@@ -1 +1,2 @@
1
- import "../main.js";
1
+ import "../_shared/startup-15-0-E7RYG5YF.js";
2
+ import "@bastani/atomic-ai/api/anthropic-serialized-body";
@@ -0,0 +1 @@
1
+ import "../main.js";
@@ -1 +1 @@
1
- import "../_shared/startup-0-0-FPPQF42L.js";
1
+ import "../_shared/startup-0-0-OWBJIX35.js";
@@ -1,4 +1,4 @@
1
- import "../_shared/startup-0-1-Q7GBLBEL.js";
1
+ import "../_shared/startup-0-1-DZYE4E5Z.js";
2
2
  import "@bastani/atomic-ai/utils/provider-retry";
3
3
  import "@bastani/atomic-ai/utils/retry-hints";
4
4
  import "@bastani/atomic-agent-core";
@@ -1,4 +1,4 @@
1
- import "../_shared/startup-0-2-JNYN24UI.js";
1
+ import "../_shared/startup-0-2-WFLTE4SC.js";
2
2
  import "../_shared/startup-0-3-DE2NCS6A.js";
3
3
  import "../core/storage/node-sqlite-file-gate.js";
4
4
  import "../core/storage/write-ahead-log.js";
@@ -1,3 +1,3 @@
1
1
  import "../_shared/startup-8-0-34CBHPZH.js";
2
- import "../_shared/startup-0-4-ZZXFKE55.js";
2
+ import "../_shared/startup-0-4-6XXL4JMZ.js";
3
3
  import "../core/storage/provider.js";
@@ -1 +1 @@
1
- {"version":1,"stages":14}
1
+ {"version":1,"stages":15}
@@ -1,11 +1,11 @@
1
1
  import "../_shared/rolldown-runtime-BGM3D5V3.js";
2
2
  import { readFileSync } from "node:fs";
3
3
  import { join } from "node:path";
4
- import { parseArgs } from "../_shared/startup-0-1-Q7GBLBEL.js";
4
+ import { parseArgs } from "../_shared/startup-0-1-DZYE4E5Z.js";
5
5
  import { CONFIG_DIR_NAME, ENV_AGENT_DIR, INTERACTIVE_ENGINE_PREWARM_NO_DATABASE, getEnvNames, isPlainInteractiveSessionInvocation, normalizePath, stripBom } from "../_shared/p0-cli-BB45ZQY6.js";
6
6
  import { parseConfigCommand } from "../_shared/config-command-parser-XRBNVMBV.js";
7
- import { previewProcessStorageSelection, previewSessionSettingSelection } from "../_shared/startup-0-2-JNYN24UI.js";
8
- import { parsePackageCommand } from "../_shared/startup-0-0-FPPQF42L.js";
7
+ import { previewProcessStorageSelection, previewSessionSettingSelection } from "../_shared/startup-0-2-WFLTE4SC.js";
8
+ import { parsePackageCommand } from "../_shared/startup-0-0-OWBJIX35.js";
9
9
  // dist/utils/startup-database-spare.js
10
10
  const DIRECT_SUBCOMMANDS = /* @__PURE__ */ new Set([
11
11
  "auth",
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.20-alpha.1`;
9
+ const key = `${root.href}#0.10.20-alpha.2`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.20-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.1 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.20-alpha.1`;
9
+ const key = `${root.href}#0.10.20-alpha.2`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.20-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.1 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -1,3 +1,3 @@
1
1
  import "../_shared/rolldown-runtime-BGM3D5V3.js";
2
- export { GIT_RELEASE, detectLinuxLibc, ensureTool, getGitDistributionTarget, getGitInstallDir, getGitReleaseMarker, getGitShellEnvironment, getGitShellEnvironmentAsync, getGitStatus, getGitStatusAsync, getLatestVersion, getToolEnv, getToolPath, parseGitVersion, plainStatMtimeMs, resetGitProvisionStateForTest, resolveGit, resolveGitSync, resolveInstalledGit, withGitProvisionSettingsForTest } from "../_shared/startup-0-1-Q7GBLBEL.js";
2
+ export { GIT_RELEASE, detectLinuxLibc, ensureTool, getGitDistributionTarget, getGitInstallDir, getGitReleaseMarker, getGitShellEnvironment, getGitShellEnvironmentAsync, getGitStatus, getGitStatusAsync, getLatestVersion, getToolEnv, getToolPath, parseGitVersion, plainStatMtimeMs, resetGitProvisionStateForTest, resolveGit, resolveGitSync, resolveInstalledGit, withGitProvisionSettingsForTest } from "../_shared/startup-0-1-DZYE4E5Z.js";
3
3
  //# sourceMappingURL=tools-manager.code.js.map
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.20-alpha.1`;
9
+ const key = `${root.href}#0.10.20-alpha.2`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.20-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.1 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.20-alpha.1`;
9
+ const key = `${root.href}#0.10.20-alpha.2`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.20-alpha.1") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.1 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: Atomic Docs
3
+ description: Web documentation for the Atomic coding-agent runtime.
4
+ colors:
5
+ primary: "#1E40AF"
6
+ light: "#60A5FA"
7
+ dark: "#2563EB"
8
+ ---
9
+
10
+ # Design System: Atomic Docs
11
+
12
+ ## Overview
13
+
14
+ The docs use Mintlify's `mint` theme. Keep the focus on reading and completing a task; the terminal design system does not apply here.
15
+
16
+ ## Colors
17
+
18
+ [`docs.json`](../../docs.json) defines the brand colors, logo, and favicon. Use the configured colors through Mintlify rather than adding a page-specific palette.
19
+
20
+ ## Typography
21
+
22
+ Use Mintlify's default typography and standard Markdown headings and code blocks. Don't add a separate font or type scale.
23
+
24
+ ## Layout
25
+
26
+ Use the Learn, Build, and Reference navigation in `docs.json`. Let Mintlify handle spacing and responsive layout.
27
+
28
+ ## Components
29
+
30
+ Use the existing Mintlify components: `Steps` for procedures, `Tabs` for platform or shell alternatives, `Card` for links to related guides, and callouts for important notes and warnings.
@@ -10,6 +10,29 @@ description: "What's new in Atomic"
10
10
  The publish-release skill regenerates this page as part of preparing the release PR.
11
11
  */}
12
12
 
13
+ <Update label="November 29, 2026" description="0.10.20-alpha.2">
14
+
15
+ Atomic makes sessions safer to open, import, and restore, and gives apps and scripts a way to show progress while they wait.
16
+
17
+ **Opening and restoring sessions**
18
+
19
+ - **Show session loading progress in apps and scripts.** The SDK, RPC, and CLI JSON now report when a load starts, makes progress, and ends. Read JSON records by their `type`, since loading events can appear before the session header ([#6877](https://github.com/bastani-inc/atomic/pull/6877)).
20
+ - **Keep your current session if another process holds the one you want.** Atomic refuses to open a session that is already in use instead of letting two processes write to it ([#6883](https://github.com/bastani-inc/atomic/pull/6883)).
21
+ - **Recover damaged history without losing messages.** Atomic reconnects broken history links to the previous saved entry and fixes repeated IDs on import. Imports tell you what was repaired ([#6878](https://github.com/bastani-inc/atomic/pull/6878)).
22
+ - **Restore several optional checkouts at once.** One checkout no longer gets skipped when several are restored together ([#6885](https://github.com/bastani-inc/atomic/pull/6885)).
23
+
24
+ **Subscription usage**
25
+
26
+ - **See how to scroll in `/usage`.** The footer always shows the arrow-key hint, even when the list fits on screen ([#6881](https://github.com/bastani-inc/atomic/pull/6881)).
27
+
28
+ **Reading the conversation**
29
+
30
+ - **See the rest of long messages and notices.** Intercom messages, subagent wake notices and resume results show a short preview. When something is left out, press `Ctrl+O` or your own expand shortcut to see it all ([#6890](https://github.com/bastani-inc/atomic/pull/6890)).
31
+ - **No repeated thinking-drop notices.** Resuming a session with broken history links no longer shows the same notice twice ([#6888](https://github.com/bastani-inc/atomic/pull/6888)).
32
+ - **Less setup work on Windows.** Opening a session no longer redoes Intercom's database setup after another session finished setting up the same database ([#6886](https://github.com/bastani-inc/atomic/issues/6886), [#6889](https://github.com/bastani-inc/atomic/pull/6889)).
33
+
34
+ </Update>
35
+
13
36
  <Update label="November 28, 2026" description="0.10.20-alpha.1">
14
37
 
15
38
  Atomic remembers your subscription usage across sessions and makes long conversations faster and easier to reopen.
package/docs/docs.json CHANGED
@@ -31,7 +31,6 @@
31
31
  "group": "Use Atomic daily",
32
32
  "pages": [
33
33
  "usage",
34
- "guides/subscription-usage",
35
34
  "guides/non-interactive",
36
35
  "guides/configuration",
37
36
  "sessions",
@@ -84,6 +83,7 @@
84
83
  "pages": [
85
84
  "models/choose-a-model",
86
85
  "providers",
86
+ "guides/subscription-usage",
87
87
  "llama-cpp"
88
88
  ]
89
89
  },
@@ -4,7 +4,7 @@ sidebarTitle: "Subscription usage"
4
4
  description: "See how much of your AI subscriptions you have used and when the limits reset."
5
5
  ---
6
6
 
7
- Type `/usage` to see your signed-in subscription accounts while a reply keeps running. API-key accounts do not appear. Each account shows how much of its allowance you have used and when it resets. If Atomic has no figures yet, the account says **Not available**.
7
+ Type `/usage` to see how much of each signed-in subscription’s allowance you’ve used and when it resets, without interrupting a reply. If Atomic has no figures yet, the account says **Not available**.
8
8
 
9
9
  ```text
10
10
  Subscription usage
@@ -15,12 +15,12 @@ Subscription usage
15
15
  OpenAI Codex · openai-codex
16
16
  Not available
17
17
 
18
- Esc close r refresh
18
+ ↑ ↓ scroll Esc close r refresh
19
19
  ```
20
20
 
21
21
  New figures can appear while the panel is open. Atomic remembers the last figures it received. If a window has reset since then, it shows `0% used` without guessing the next reset time. Times are local.
22
22
 
23
- Press `r` to check again or `Esc` to close. When the panel shows `↑ ↓ scroll`, use the arrow keys or mouse wheel. The **Fullscreen scrollbar** setting applies to the panel and the chat. Checking usage never spends reset credits. For this chat’s token counts and costs, use `/session` instead.
23
+ Use the up and down arrows or the mouse wheel to scroll. Press `Esc` to close or `r` to refresh. The **Fullscreen scrollbar** setting applies to the panel and the chat. Checking usage never spends reset credits. For this chat’s token counts and costs, use `/session` instead.
24
24
 
25
25
  ## Check from a script
26
26
 
package/docs/intercom.md CHANGED
@@ -43,7 +43,9 @@ Sent messages are recorded in session history and confirmed with a notification.
43
43
 
44
44
  ### From the agent
45
45
 
46
- Agents list sessions and exchange messages through the `intercom` tool. Tool calls and results render as compact transcript rows so message flows stay easy to scan:
46
+ Agents list sessions and exchange messages through the `intercom` tool. The chat shows whether a message was delivered and a short preview. When you see an expand hint, press `Ctrl+O` or your own expand shortcut to read the full message and see the delivery details. In fullscreen mode, you can also click to expand it.
47
+
48
+ If a message wakes a subagent, expand the notice in the chat that launched it to see the full message, who sent it, and which subagent woke up.
47
49
 
48
50
  ```typescript
49
51
  // List active sessions
package/docs/json.md CHANGED
@@ -19,18 +19,18 @@ Need to send follow-up commands to a live process or embed Atomic in Node.js? Co
19
19
  - **Per-process storage isolation:** Pass `--storage '<json>'`, `--storage-file <path>`, or `--session-store <path>` (with optional `--session-prefix <prefix>`), or set `ATOMIC_STORAGE` or `ATOMIC_SESSIONS_STORAGE` in the environment, to isolate script or CI runs without changing saved settings. See [Selecting storage per process](/storage#selecting-storage-per-process).
20
20
 
21
21
  <Note>
22
- If a saved default `provider/model` names an unsupported provider or a storage override fails with `StorageConfigError`, JSON mode writes the diagnostic to stderr, leaves stdout completely empty so downstream JSON parsers never see non-JSON text, and exits with code `1`. Supported providers with an unknown model or missing credentials fall back through normal model selection.
22
+ If a saved default `provider/model` names an unsupported provider or a storage override fails with `StorageConfigError`, JSON mode writes the diagnostic to stderr and exits with code `1`. Stdout can contain loading events, but not a model reply. Supported providers with an unknown model or missing credentials fall back through normal model selection.
23
23
  </Note>
24
24
 
25
25
  ## Output format
26
26
 
27
- Each line on stdout is one JSON object terminated by `\n`. Atomic emits the session header before session events (including when `--no-session` is passed, which emits the in-memory session header):
27
+ Each line on stdout is one JSON object terminated by `\n`. [Loading events](/sessions#show-your-own-loading-indicator) come before the session header. Look for `type: "session"` rather than assuming it’s the first line. With `--no-session` the header describes the in-memory session:
28
28
 
29
29
  ```json
30
30
  {"type":"session","version":4,"id":"uuid","createdAt":"2026-01-01T00:00:00.000Z","cwd":"/path"}
31
31
  ```
32
32
 
33
- When resuming a session whose worktree blueprint build is running in another process, a runner-level `blueprint_build_waiting` event can arrive **before** the session header.
33
+ When resuming a session whose worktree blueprint build is running in another process, a `blueprint_build_waiting` event can also arrive before the session header.
34
34
 
35
35
  Session events follow as they occur:
36
36
 
package/docs/providers.md CHANGED
@@ -25,6 +25,8 @@ OpenRouter, Atomic's preferred partner, appears first in `/login`, `/logout`, an
25
25
 
26
26
  Run `/login <provider>` (such as `/login openrouter` or `/login kimi-coding`) to open a provider directly. When a provider offers both sign-in and an API key, Atomic prompts with **Use a subscription** (or **Use an account**) and **Use an API key**.
27
27
 
28
+ Once signed in, run `/usage` to see how much of each subscription you've used. See [Check subscription usage](/guides/subscription-usage).
29
+
28
30
  To sign in from the shell without starting a session, run `atomic auth login <provider>`. Pass `--no-browser` for a device-code or non-browser flow (such as over SSH), or `--api-key` to store an API key without echoing it. See [Credential commands](/reference/cli#credential-commands).
29
31
 
30
32
  - **Browser callback sign-in (OpenRouter, Claude, OpenAI, ChatGPT Codex, and compatible extension providers):** Opens a browser login and listens on a local callback port. On remote or headless machines where the browser cannot reach localhost, paste the final redirect URL or authorization code into the prompt instead.