@bastani/atomic 0.10.10 → 0.10.11-alpha.1

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 (380) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/README.md +1 -1
  3. package/dist/_shared/dist-KOELCESV.js +2 -2
  4. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  5. package/dist/_shared/lib-4PES5P4V.js +2 -2
  6. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +8 -10
  7. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
  8. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +6 -6
  9. package/dist/_shared/mode-shared-2QJSCUM6.js +52 -15
  10. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
  11. package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
  12. package/dist/_shared/runtime-O4KCSG4C.js +3 -3
  13. package/dist/_shared/{sdk-RRLVN7ER.js → sdk-AVFII7NK.js} +757 -233
  14. package/dist/_shared/sdk-AVFII7NK.js.map +1 -0
  15. package/dist/_shared/session-data-AHTU7IS6.js +3 -3
  16. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  17. package/dist/_shared/{startup-0-0-4VG2G44V.js → startup-0-0-57KF6LZH.js} +94 -42
  18. package/dist/_shared/startup-0-0-57KF6LZH.js.map +1 -0
  19. package/dist/_shared/{startup-0-1-XTIL65D4.js → startup-0-1-GIY75K46.js} +75 -13
  20. package/dist/_shared/startup-0-1-GIY75K46.js.map +1 -0
  21. package/dist/_shared/startup-0-2-27OWFHV6.js +72 -7
  22. package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -1
  23. package/dist/_shared/startup-0-3-T4DVFYWX.js +4 -4
  24. package/dist/_shared/startup-0-4-ZMJV547D.js +4 -4
  25. package/dist/_shared/{startup-0-5-FD2P735I.js → startup-0-5-YDW47QX6.js} +27 -69
  26. package/dist/_shared/startup-0-5-YDW47QX6.js.map +1 -0
  27. package/dist/_shared/startup-10-0-TDQNBDDL.js +6 -6
  28. package/dist/_shared/startup-12-0-55AAXBJZ.js +3 -3
  29. package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
  30. package/dist/_shared/startup-15-0-YUKGAC63.js +31 -7
  31. package/dist/_shared/startup-15-0-YUKGAC63.js.map +1 -1
  32. package/dist/_shared/startup-15-1-4S7FLMNG.js +7 -6
  33. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  34. package/dist/_shared/startup-8-0-34CBHPZH.js +4 -4
  35. package/dist/_shared/{startup-8-1-4KANEHRA.js → startup-8-1-X32CYSXB.js} +1219 -714
  36. package/dist/_shared/startup-8-1-X32CYSXB.js.map +1 -0
  37. package/dist/_shared/storage-command-7MGXLJGZ.js +14 -8
  38. package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
  39. package/dist/_shared/task-reference-stream-JWMUZSJX.js +1 -1
  40. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  41. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  42. package/dist/builtin/intercom/CHANGELOG.md +18 -0
  43. package/dist/builtin/intercom/broker/broker.bundle.mjs +993 -362
  44. package/dist/builtin/intercom/broker/database-wake-up-bus.ts +103 -24
  45. package/dist/builtin/intercom/broker/multinode-router.ts +42 -21
  46. package/dist/builtin/intercom/broker/multinode-state-store.ts +22 -1
  47. package/dist/builtin/intercom/broker/open-broker-state.ts +82 -31
  48. package/dist/builtin/intercom/broker/paths.ts +8 -4
  49. package/dist/builtin/intercom/broker/released-asker-remote-replies.ts +18 -6
  50. package/dist/builtin/intercom/broker/sql-add-column.ts +4 -1
  51. package/dist/builtin/intercom/broker/sql-ended-child-queue-store.ts +65 -44
  52. package/dist/builtin/intercom/broker/sql-held-send-store.ts +11 -3
  53. package/dist/builtin/intercom/broker/sql-known-session-store.ts +24 -12
  54. package/dist/builtin/intercom/broker/sql-lease-store.ts +375 -65
  55. package/dist/builtin/intercom/broker/sql-outbox-store.ts +270 -101
  56. package/dist/builtin/intercom/broker/sql-pending-ask-store.ts +20 -9
  57. package/dist/builtin/intercom/broker/sql-released-ask-store.ts +14 -6
  58. package/dist/builtin/intercom/broker/sql-restoring-reservation-store.ts +27 -11
  59. package/dist/builtin/intercom/broker/sql-schema.ts +139 -1
  60. package/dist/builtin/intercom/broker/sql-sent-message-authority.ts +97 -34
  61. package/dist/builtin/intercom/index.bundle.mjs +11 -8
  62. package/dist/builtin/intercom/package.json +1 -1
  63. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  64. package/dist/builtin/mcp/package.json +1 -1
  65. package/dist/builtin/subagents/CHANGELOG.md +12 -0
  66. package/dist/builtin/subagents/package.json +1 -1
  67. package/dist/builtin/subagents/skills/skill-creator/SKILL.md +1 -1
  68. package/dist/builtin/subagents/src/extension/index.bundle.mjs +62 -23
  69. package/dist/builtin/web-access/index.bundle.mjs +1 -1
  70. package/dist/builtin/web-access/package.json +1 -1
  71. package/dist/cli/args.js +2 -2
  72. package/dist/cli/auth-cli.code.js +4 -4
  73. package/dist/cli/auth-cli.impl.js +3 -3
  74. package/dist/cli/auth-cli.js +3 -3
  75. package/dist/cli/blueprint-command.code.js +3 -3
  76. package/dist/cli/blueprint-command.impl.js +3 -3
  77. package/dist/cli/blueprint-command.js +3 -3
  78. package/dist/cli/intercom-command.code.js +2 -2
  79. package/dist/cli/intercom-command.impl.js +3 -3
  80. package/dist/cli/intercom-command.js +3 -3
  81. package/dist/cli/list-models.code.js +2 -2
  82. package/dist/cli/list-models.impl.js +3 -3
  83. package/dist/cli/list-models.js +3 -3
  84. package/dist/cli/session-picker.code.js +1 -1
  85. package/dist/cli/session-picker.impl.js +3 -3
  86. package/dist/cli/session-picker.js +3 -3
  87. package/dist/cli/startup-ui.code.js +1 -1
  88. package/dist/cli/startup-ui.impl.js +3 -3
  89. package/dist/cli/startup-ui.js +3 -3
  90. package/dist/cli/storage-command.impl.js +3 -3
  91. package/dist/cli/storage-command.js +3 -3
  92. package/dist/cli/storage-search-session.code.js +3 -3
  93. package/dist/cli/storage-search-session.impl.js +3 -3
  94. package/dist/cli/storage-search-session.js +3 -3
  95. package/dist/cli/team-command.code.js +2 -2
  96. package/dist/cli/team-command.impl.js +3 -3
  97. package/dist/cli/team-command.js +3 -3
  98. package/dist/cli.js +2 -2
  99. package/dist/core/agent-session-methods.d.ts +3 -0
  100. package/dist/core/agent-session-methods.js.map +1 -1
  101. package/dist/core/agent-session.d.ts +1 -0
  102. package/dist/core/compaction/compactor.d.ts +2 -0
  103. package/dist/core/debug.impl.js +3 -3
  104. package/dist/core/debug.js +3 -3
  105. package/dist/core/export-html/card-projection.code.js +1 -1
  106. package/dist/core/export-html/card-projection.impl.js +3 -3
  107. package/dist/core/export-html/card-projection.js +3 -3
  108. package/dist/core/export-html/index.code.js +2 -2
  109. package/dist/core/export-html/index.impl.js +3 -3
  110. package/dist/core/export-html/index.js +3 -3
  111. package/dist/core/export-html/json-spans.impl.js +3 -3
  112. package/dist/core/export-html/json-spans.js +3 -3
  113. package/dist/core/export-html/oversized-render-inputs.code.js +1 -1
  114. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  115. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  116. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  117. package/dist/core/export-html/tool-renderer.js +3 -3
  118. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  119. package/dist/core/extensions/jiti-loader.js +3 -3
  120. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  121. package/dist/core/extensions/jiti-static-loader.js +3 -3
  122. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  123. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  124. package/dist/core/extensions/loader-host-modules.js +3 -3
  125. package/dist/core/extensions/loader-virtual-modules.js +2 -2
  126. package/dist/core/extensions/runner-context.js +3 -3
  127. package/dist/core/extensions/runner-context.js.map +1 -1
  128. package/dist/core/intercom-broker-control-host.code.js +1 -1
  129. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  130. package/dist/core/intercom-broker-control-host.js +3 -3
  131. package/dist/core/intercom-broker-control.code.js +3 -3
  132. package/dist/core/intercom-broker-control.impl.js +3 -3
  133. package/dist/core/intercom-broker-control.js +3 -3
  134. package/dist/core/model-registry.js +1 -1
  135. package/dist/core/model-resolver-defaults.d.ts +3 -2
  136. package/dist/core/package-manager-storage-adapters.code.js +1 -1
  137. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  138. package/dist/core/package-manager-storage-adapters.js +3 -3
  139. package/dist/core/sdk.code.js +3 -4
  140. package/dist/core/sdk.impl.js +3 -3
  141. package/dist/core/sdk.js +3 -3
  142. package/dist/core/session-manager-core.d.ts +5 -2
  143. package/dist/core/session-manager-core.js +17 -13
  144. package/dist/core/session-manager-core.js.map +1 -1
  145. package/dist/core/session-manager-list.impl.js +3 -3
  146. package/dist/core/session-manager-list.js +3 -3
  147. package/dist/core/session-manager.code.js +1 -1
  148. package/dist/core/session-manager.impl.js +3 -3
  149. package/dist/core/session-manager.js +3 -3
  150. package/dist/core/session-storage.code.js +1 -1
  151. package/dist/core/session-storage.impl.js +3 -3
  152. package/dist/core/session-storage.js +3 -3
  153. package/dist/core/storage/added-exports.d.ts +6 -0
  154. package/dist/core/storage/added-exports.js +16 -0
  155. package/dist/core/storage/added-exports.js.map +1 -0
  156. package/dist/core/storage/database.d.ts +16 -0
  157. package/dist/core/storage/database.js.map +1 -1
  158. package/dist/core/storage/fenced-paths.d.ts +47 -0
  159. package/dist/core/storage/fenced-paths.js +53 -0
  160. package/dist/core/storage/fenced-paths.js.map +1 -1
  161. package/dist/core/storage/file-identity.js +31 -2
  162. package/dist/core/storage/file-identity.js.map +1 -1
  163. package/dist/core/storage/index.d.ts +3 -0
  164. package/dist/core/storage/index.js +5 -2
  165. package/dist/core/storage/index.js.map +1 -1
  166. package/dist/core/storage/migrations.d.ts +22 -0
  167. package/dist/core/storage/migrations.js +55 -0
  168. package/dist/core/storage/migrations.js.map +1 -1
  169. package/dist/core/storage/node-sqlite-thread.js +19 -6
  170. package/dist/core/storage/node-sqlite-thread.js.map +1 -1
  171. package/dist/core/storage/node-sqlite.js +53 -4
  172. package/dist/core/storage/node-sqlite.js.map +1 -1
  173. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  174. package/dist/core/storage/offline-snapshot-file.js +3 -3
  175. package/dist/core/storage/prefix.d.ts +3 -2
  176. package/dist/core/storage/prefix.js +18 -2
  177. package/dist/core/storage/prefix.js.map +1 -1
  178. package/dist/core/storage/provider.js +2 -2
  179. package/dist/core/storage/schema-catalog.d.ts +42 -0
  180. package/dist/core/storage/schema-catalog.js +141 -0
  181. package/dist/core/storage/schema-catalog.js.map +1 -0
  182. package/dist/core/storage/selection.js +2 -2
  183. package/dist/core/storage/session/branch-fork-source.code.js +41 -20
  184. package/dist/core/storage/session/branch-fork-source.code.js.map +1 -1
  185. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  186. package/dist/core/storage/session/branch-fork-source.js +3 -3
  187. package/dist/core/storage/session/card-view.impl.js +3 -3
  188. package/dist/core/storage/session/card-view.js +3 -3
  189. package/dist/core/storage/session/child-reader.code.js +3 -3
  190. package/dist/core/storage/session/child-reader.impl.js +3 -3
  191. package/dist/core/storage/session/child-reader.js +3 -3
  192. package/dist/core/storage/session/chunked-resume-projection.code.js +1 -1
  193. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  194. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  195. package/dist/core/storage/session/expanded-child-details.code.js +3 -3
  196. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  197. package/dist/core/storage/session/expanded-child-details.js +3 -3
  198. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  199. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  200. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  201. package/dist/core/storage/session/fork-row-index.js +3 -3
  202. package/dist/core/storage/session/fork-staging.code.js +176 -36
  203. package/dist/core/storage/session/fork-staging.code.js.map +1 -1
  204. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  205. package/dist/core/storage/session/fork-staging.js +3 -3
  206. package/dist/core/storage/session/fork-window.code.js +3 -3
  207. package/dist/core/storage/session/fork-window.impl.js +3 -3
  208. package/dist/core/storage/session/fork-window.js +3 -3
  209. package/dist/core/storage/session/history-pages.impl.js +3 -3
  210. package/dist/core/storage/session/history-pages.js +3 -3
  211. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  212. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  213. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  214. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  215. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  216. package/dist/core/storage/session/memory-session-store.js +3 -3
  217. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  218. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  219. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  220. package/dist/core/storage/session/released-history-files.code.js +2 -2
  221. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  222. package/dist/core/storage/session/released-history-files.js +3 -3
  223. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  224. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  225. package/dist/core/storage/session/session-resume.impl.js +3 -3
  226. package/dist/core/storage/session/session-resume.js +3 -3
  227. package/dist/core/storage/session/session-search-index.d.ts +5 -0
  228. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  229. package/dist/core/storage/session/snapshot-cut.js +3 -3
  230. package/dist/core/storage/session/snapshot-history.code.js +3 -3
  231. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  232. package/dist/core/storage/session/snapshot-history.js +3 -3
  233. package/dist/core/storage/session/sql-chat-records.d.ts +15 -0
  234. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  235. package/dist/core/storage/session/sql-session-store.d.ts +102 -5
  236. package/dist/core/storage/session/sql-session-store.impl.js +4 -4
  237. package/dist/core/storage/session/sql-session-store.js +4 -4
  238. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  239. package/dist/core/storage/session/tree-outline.js +3 -3
  240. package/dist/core/storage/session/tree-presentation.code.js +1 -1
  241. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  242. package/dist/core/storage/session/tree-presentation.js +3 -3
  243. package/dist/core/storage/session/types.d.ts +14 -0
  244. package/dist/core/storage/sqlite-facade.d.ts +37 -5
  245. package/dist/core/storage/sqlite-facade.js +351 -18
  246. package/dist/core/storage/sqlite-facade.js.map +1 -1
  247. package/dist/core/storage/statement-sequence.d.ts +83 -0
  248. package/dist/core/storage/statement-sequence.js +21 -0
  249. package/dist/core/storage/statement-sequence.js.map +1 -1
  250. package/dist/core/storage/storage-status.code.js +1 -1
  251. package/dist/core/storage/storage-status.impl.js +3 -3
  252. package/dist/core/storage/storage-status.js +3 -3
  253. package/dist/core/storage/team.code.js +1 -1
  254. package/dist/core/storage/team.impl.js +3 -3
  255. package/dist/core/storage/team.js +3 -3
  256. package/dist/core/structured-output/index.code.js +1 -1
  257. package/dist/core/structured-output/index.impl.js +3 -3
  258. package/dist/core/structured-output/index.js +3 -3
  259. package/dist/core/tasks/task-completion-entry.code.js +1 -1
  260. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  261. package/dist/core/tasks/task-completion-entry.js +3 -3
  262. package/dist/core/tasks/task-file-history.code.js +3 -3
  263. package/dist/core/tasks/task-file-history.impl.js +3 -3
  264. package/dist/core/tasks/task-file-history.js +3 -3
  265. package/dist/core/tasks/task-reference-archive.code.js +4 -4
  266. package/dist/core/tasks/task-reference-archive.js +3 -3
  267. package/dist/core/tasks/task-reference-identity.js +3 -3
  268. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  269. package/dist/core/tasks/task-reference-stream.js +3 -3
  270. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  271. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  272. package/dist/core/tasks/task-view-source.code.js +1 -1
  273. package/dist/core/tasks/task-view-source.impl.js +3 -3
  274. package/dist/core/tasks/task-view-source.js +3 -3
  275. package/dist/core/tools/bash.d.ts +8 -4
  276. package/dist/core/tools/history-session.d.ts +5 -0
  277. package/dist/core/tools/history-tasks.d.ts +123 -0
  278. package/dist/core/tools/kill.d.ts +5 -2
  279. package/dist/core/tools/powershell.d.ts +2 -2
  280. package/dist/core/tools/read-url.code.js +3 -3
  281. package/dist/core/tools/read-url.impl.js +3 -3
  282. package/dist/core/tools/read-url.js +3 -3
  283. package/dist/core/tools/read.d.ts +12 -2
  284. package/dist/core/tools/resource-selectors.d.ts +2 -0
  285. package/dist/core/tools/search.d.ts +12 -2
  286. package/dist/core/worktree-snapshot/blob-store.d.ts +14 -2
  287. package/dist/core/worktree-snapshot/blob-store.js +69 -16
  288. package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
  289. package/dist/core/worktree-snapshot/errors.code.js +2 -2
  290. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  291. package/dist/core/worktree-snapshot/errors.js +3 -3
  292. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  293. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  294. package/dist/extensions/codemode/execute.code.js +2 -2
  295. package/dist/extensions/codemode/execute.impl.js +3 -3
  296. package/dist/extensions/codemode/execute.js +3 -3
  297. package/dist/extensions/codemode/renderer.code.js +2 -2
  298. package/dist/extensions/codemode/renderer.impl.js +3 -3
  299. package/dist/extensions/codemode/renderer.js +3 -3
  300. package/dist/extensions/mcp/cli.code.js +3 -3
  301. package/dist/extensions/mcp/cli.impl.js +3 -3
  302. package/dist/extensions/mcp/cli.js +3 -3
  303. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  304. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  305. package/dist/extensions/mcp/cli.lazy.js +3 -3
  306. package/dist/extensions/mcp/runtime.code.js +1 -1
  307. package/dist/extensions/mcp/runtime.impl.js +3 -3
  308. package/dist/extensions/mcp/runtime.js +3 -3
  309. package/dist/index.js +5 -5
  310. package/dist/main-first-time-setup.code.js +1 -1
  311. package/dist/main-first-time-setup.impl.js +3 -3
  312. package/dist/main-first-time-setup.js +3 -3
  313. package/dist/main.js +1 -1
  314. package/dist/modes/interactive/components/agent-panel.d.ts +1 -0
  315. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  316. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  317. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  318. package/dist/modes/interactive/components/task-inspector.d.ts +2 -0
  319. package/dist/modes/interactive/components/user-message-selector-archive.code.js +1 -1
  320. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  321. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  322. package/dist/modes/interactive/interactive-mode-helpers.d.ts +2 -2
  323. package/dist/modes/print-mode.js +1 -1
  324. package/dist/modes/rpc/agent-panel-bridge.d.ts +5 -0
  325. package/dist/package-manager-cli.code.js +6 -6
  326. package/dist/package-manager-cli.impl.js +3 -3
  327. package/dist/package-manager-cli.js +3 -3
  328. package/dist/rpc-entry.js +1 -1
  329. package/dist/startup-files.json +1 -1
  330. package/dist/startup-stages/0.js +1 -1
  331. package/dist/startup-stages/1.js +1 -1
  332. package/dist/startup-stages/10.js +1 -1
  333. package/dist/startup-stages/12.js +1 -1
  334. package/dist/startup-stages/2.js +8 -1
  335. package/dist/startup-stages/3.js +1 -6
  336. package/dist/startup-stages/5.js +1 -1
  337. package/dist/startup-stages/7.js +1 -5
  338. package/dist/utils/startup-database-spare.code.js +2 -2
  339. package/dist/utils/startup-database-spare.impl.js +3 -3
  340. package/dist/utils/startup-database-spare.js +3 -3
  341. package/dist/utils/tools-manager.code.js +1 -1
  342. package/dist/utils/tools-manager.impl.js +3 -3
  343. package/dist/utils/tools-manager.js +3 -3
  344. package/docs/background-tasks.md +123 -23
  345. package/docs/compaction.md +18 -0
  346. package/docs/docs.json +2 -0
  347. package/docs/environment-variables.md +1 -1
  348. package/docs/getting-started/installation.md +9 -2
  349. package/docs/guides/postgres-pgbouncer.md +339 -0
  350. package/docs/guides/postgres-tuning.md +311 -0
  351. package/docs/guides/resume-on-any-machine.md +2 -2
  352. package/docs/guides.md +2 -0
  353. package/docs/index.md +1 -1
  354. package/docs/libraries/agent-core.md +1 -1
  355. package/docs/libraries/ai.md +2 -2
  356. package/docs/libraries/codemode.md +1 -1
  357. package/docs/libraries/storage-libsql.md +6 -1
  358. package/docs/libraries/storage-postgres.md +11 -6
  359. package/docs/libraries/tui.md +1 -1
  360. package/docs/libraries.md +2 -2
  361. package/docs/programmatic.md +1 -1
  362. package/docs/quickstart.md +1 -1
  363. package/docs/sdk/storage.md +1 -1
  364. package/docs/sdk/web-server.md +1 -3
  365. package/docs/sdk.md +1 -7
  366. package/docs/sessions.md +58 -2
  367. package/docs/settings.md +20 -1
  368. package/docs/skills/authoring.md +1 -1
  369. package/docs/skills.md +79 -6
  370. package/docs/storage.md +262 -12
  371. package/docs/subagents/reference.md +2 -2
  372. package/docs/subagents.md +4 -3
  373. package/docs/tools.md +44 -10
  374. package/docs/windows.md +1 -1
  375. package/package.json +9 -9
  376. package/dist/_shared/sdk-RRLVN7ER.js.map +0 -1
  377. package/dist/_shared/startup-0-0-4VG2G44V.js.map +0 -1
  378. package/dist/_shared/startup-0-1-XTIL65D4.js.map +0 -1
  379. package/dist/_shared/startup-0-5-FD2P735I.js.map +0 -1
  380. package/dist/_shared/startup-8-1-4KANEHRA.js.map +0 -1
@@ -58,7 +58,7 @@ When a background task ends, Atomic adds one unshaded notice line to the launchi
58
58
 
59
59
  - Green `●` completed
60
60
  - `✗` failed
61
- - Red `◯` stopped (user stops, execution timeouts, and paused or quit subagents awaiting resume)
61
+ - Red `◯` stopped (user stops, shells stopped by their `timeout`, and paused or quit subagents awaiting resume)
62
62
  - Dim `◌` [released while waiting](/subagents#released-subagents)
63
63
 
64
64
  Each notice names the task or agent, its outcome, and how long it ran. A collapsed subagent notice shows the first wrapped line of its result; a shell notice shows only its summary line. Press `Ctrl+O` to expand the shell's retained output lines or the subagent's full retained result:
@@ -85,38 +85,112 @@ Main chat and subagent views render the same notice format. Long titles shorten
85
85
 
86
86
  ## Background shells
87
87
 
88
- Model [`bash`](/tools#bash) calls on POSIX and native Windows, and `powershell` calls on native Windows, run under your session's background task manager. Subagent shells are managed by the launching main session; see [Shells started by subagents](#shells-started-by-subagents). A command that runs past its foreground observation budget returns a task ID and keeps running in the background while its execution timeout keeps counting.
88
+ When the model runs a command with [`bash`](/tools#bash) (or [`powershell`](/tools#powershell) on Windows), Atomic watches its output for a short while. If the command is still running when that time is up, Atomic stops watching and the command goes on **in the background**: it keeps running while you and the model carry on, and its result arrives later as a message in the chat. Each background command gets a **task ID**, a short name such as `task-1-0-3` that you use to check on it or stop it. Shells that subagents start are managed by your main session; see [Shells started by subagents](#shells-started-by-subagents).
89
+
90
+ ### What changed in this release
91
+
92
+ - **Before:** a command stopped after 5 minutes (300 seconds) unless the model asked for longer, and it could ask for 1 hour (3600 seconds) at most. A longer job had to be split into shorter commands.
93
+ - **Now:** a command has no time limit. It runs until it finishes, someone stops it, or the session closes. A deadline is still available when you want one, and it can be as long as you like.
94
+ - **New:** a session runs at most 64 commands at once, so a runaway loop cannot start commands without end.
95
+
96
+ ### What happens when you run a long command
89
97
 
90
98
  ```ts
91
- // Ordinary commands wait for the session's default observation budget (10 seconds).
92
- bash({ command: "npm run check" })
99
+ // An ordinary command: Atomic watches it for up to 10 seconds, then lets it go on in the background.
100
+ bash({ command: "npm test" })
93
101
 
94
- // Start a build in the background when you have independent work to do.
95
- bash({ command: "npm run build", wait: { kind: "background" }, timeout: 600 })
102
+ // Go to the background at once, when there is other work to do meanwhile.
103
+ bash({ command: "npm run build", wait: { kind: "background" } })
96
104
 
97
- // Wait longer when the test result is needed next; execution timeout is separate.
98
- bash({ command: "npm test", wait: { kind: "foreground", budgetMs: 30000 }, timeout: 600 })
105
+ // Watch for up to 30 seconds first, when the result is needed next.
106
+ bash({ command: "npm test", wait: { kind: "foreground", budgetMs: 30000 } })
99
107
  ```
100
108
 
101
- Execution `timeout` is measured in seconds and is independent of observation `budgetMs`. Valid values are greater than `0` and up to `3600` seconds (default `300`), rounded to the nearest millisecond with a 1 ms minimum; invalid values fail before the command starts. A backgrounded launch names the timeout that will stop it:
109
+ How long Atomic watches (`wait`) only decides when the call returns. It never stops the command.
110
+
111
+ **What you see.** The tool line in the chat turns into:
102
112
 
103
113
  ```text
104
- Command is still running (task task-1-0-3). Its execution timeout stops it after 300 seconds; launch it with a larger timeout (up to 3600 seconds) for a longer run.
114
+ ⧗ Bash(npm run build) · background
115
+ ⎿ Running in background · /tasks to manage
105
116
  ```
106
117
 
107
- When the timeout expires, `wait` returns an error ending `Task <id> was cancelled (timed out after 300 seconds).` The completion notice uses the red `◯` stopped mark and reads `Background shell timed out after 300 seconds` with `Stop reason: execution-timeout (timed out after 300 seconds)`. For runs longer than 5 minutes, pass an explicit `timeout` up to `3600`; split longer work into shorter commands.
118
+ The model is told the task ID and what will stop the command:
119
+
120
+ ```text
121
+ Command is still running (task task-1-0-3). It has no time limit: it runs until it exits, kill stops it, or this session ends.
122
+ ```
108
123
 
109
- Observe an existing shell task without running the command again:
124
+ When the command finishes, a completion message with its exit code and the end of its output appears in the chat, and the model reads it on its next turn.
125
+
126
+ ### Check on it, wait for it, stop it
110
127
 
111
128
  ```ts
112
- bash({ action: "wait", id: taskId })
113
- powershell({ action: "wait", id: taskId })
129
+ // Check on it: wait at most 5 seconds and show the output so far.
130
+ bash({ action: "wait", id: "task-1-0-3", budgetMs: 5000 })
131
+
132
+ // Wait for it: wait as long as the session's default (10 seconds) allows, then return again.
133
+ bash({ action: "wait", id: "task-1-0-3" })
134
+
135
+ // Stop it.
136
+ kill({ id: "task-1-0-3" })
114
137
  ```
115
138
 
116
- - Pass the exact task ID from the same session. Omit `budgetMs` for the default observation budget, or pass `0` to check immediately without waiting.
117
- - The transcript shows one status line above the output matching `/tasks`: `● completed · exit 0`, `✗ exited 1`, `⧗ still running · showing output so far`, or red `◯ cancelled`. Truncated output includes a dim line with the path to the full output file.
118
- - While running, repeated yielded waits advance through retained output in bounded pages (returning no new output once caught up). Settled waits return all retained output again, with labelled gaps and truncation.
119
- - Do not combine `action: "wait"` with `command`, `timeout`, `wait`, `env`, `cwd`, or `pty`. Unknown or foreign IDs fail with `No background task "<id>" in this session`. Cancelling a wait releases observation only and never changes the command's execution timeout.
139
+ Use `powershell({ action: "wait", id })` the same way for a PowerShell command. A wait that returns before the command ends shows `⧗ still running · showing output so far`; waiting never stops or restarts the command. You can also open `/tasks` to see every running command with how long it has run, read its output, and press `x` to stop it. `Ctrl+X Ctrl+K` stops every background command and subagent in the session at once.
140
+
141
+ ### Set a deadline
142
+
143
+ If a command must not run longer than a known time, give it a `timeout` in seconds. Any positive number works, with no upper limit. Leaving `timeout` out is what gives a command no time limit. `0`, a negative number, or anything that is not a number is refused before the command starts, with a message saying to leave `timeout` out for no limit.
144
+
145
+ ```ts
146
+ // Stop the end-to-end tests if they are still running after 2 hours.
147
+ bash({ command: "npm run e2e", wait: { kind: "background" }, timeout: 7200 })
148
+ ```
149
+
150
+ The model is told the deadline when the command goes to the background:
151
+
152
+ ```text
153
+ Command is still running (task task-1-0-4). Its timeout stops it after 7200 seconds.
154
+ ```
155
+
156
+ When the deadline passes, Atomic stops the command. Its completion message reads `Background shell timed out after 7200 seconds`, and a wait on it ends with `Task task-1-0-4 was cancelled (timed out after 7200 seconds).`
157
+
158
+ ### Long-running servers and watchers
159
+
160
+ Some commands are meant to keep running while you work: a dev web server, a file watcher, a local database, or a tunnel. Start one in the background:
161
+
162
+ ```ts
163
+ bash({ command: "npm run dev", wait: { kind: "background" } })
164
+ ```
165
+
166
+ - **It keeps running.** Nothing stops it on a timer. It runs until you stop it with `kill`, it exits on its own (for example, it crashes), or the session ends.
167
+ - **Check its output later** with a short wait, which shows what it has printed so far and leaves it running:
168
+
169
+ ```ts
170
+ bash({ action: "wait", id: "task-1-0-5", budgetMs: 1000 })
171
+ ```
172
+
173
+ - **Stop it** with `kill({ id: "task-1-0-5" })`, or from `/tasks`.
174
+ - **It counts toward the limit** of 64 commands running at once, for as long as it runs.
175
+ - **Heartbeats.** Every 15 minutes by default, Atomic reminds the model that it is still running; see [Task heartbeats](#task-heartbeats). Turn them off for a server with `heartbeatMs: 0`.
176
+ - **When the session ends**, Atomic stops it together with everything it started. When you resume the session later, the server does **not** start again: the chat shows `Background shell stopped (session closed)` for it, and you or the model run the command again if you still need it. If Atomic itself crashes, the server and its child processes are stopped as well, and a resumed session says the command no longer runs because Atomic restarted.
177
+
178
+ ### How many commands run at once
179
+
180
+ One session runs at most **64** commands at the same time, counting the shells its subagents start. The limit stops a runaway loop that keeps starting commands and never ends them. A command that is being stopped no longer counts. At the limit, a new command does not start, and the call fails with:
181
+
182
+ ```text
183
+ 64 commands are already running in this session, the most it runs at once. Stop one you no longer need with kill or /tasks, or wait for one to finish, then run this command again.
184
+ ```
185
+
186
+ Nothing already running is stopped to make room.
187
+
188
+ ### More about waiting
189
+
190
+ - Pass the exact task ID from the same session. An unknown ID fails with `No background task "<id>" in this session`.
191
+ - A wait on a finished command shows one status line above the output, the same as `/tasks`: `● completed · exit 0`, `✗ exited 1`, or a red `◯ cancelled`. Long output ends with a dim line naming the file that holds all of it.
192
+ - While a command runs, each new wait shows the output printed since the last one. A wait on a finished command shows all the output again.
193
+ - A wait takes only `action`, `id`, and `budgetMs`. Cancelling a wait ends only the wait: the command keeps running, with the same deadline, if it has one.
120
194
 
121
195
  ### Stop a shell task from a tool call
122
196
 
@@ -126,7 +200,7 @@ Call `kill` with the exact task ID returned by `bash` or `powershell`:
126
200
  kill({ id: taskId })
127
201
  ```
128
202
 
129
- Pass the task ID only, never a process ID, shell name, or subagent ID. `/tasks` stop controls remain available alongside `kill`.
203
+ Pass the task ID only, never a process ID, shell name, or subagent ID. `/tasks` stop controls remain available alongside `kill`. `kill` also stops a slow search of past sessions by its ID, such as `kill({ id: "history-3" })`. See [Slow history searches](/sessions#slow-history-searches).
130
204
 
131
205
  The transcript shows `◼ stopping · cancellation requested`, `◯ cancelled`, or `● already completed · exit 0`. The structured result includes `taskId`, `decision`, `execution`, and `cleanup`. A cancellation request starts teardown rather than guaranteeing that every child process has exited immediately; wait until execution has settled and process cleanup is confirmed before assuming files or ports are free. If the command finished before `kill` ran, the original outcome is preserved.
132
206
 
@@ -146,6 +220,24 @@ Subagents can run background `bash` and `powershell` commands. Those shells are
146
220
 
147
221
  Processes started in an external terminal outside Atomic are not tracked in `/tasks`.
148
222
 
223
+ ## Background history searches
224
+
225
+ A `read` or `search` of `history://` (your past sessions) that takes longer than about 10 seconds also goes on in the background, like a shell command. It gets a task ID such as `history-3`, and it has **no time limit**: it runs until it finishes, you stop it, or the session closes or reloads. Before this release, such a search stopped after a few seconds and returned a `continue with` link instead.
226
+
227
+ ```ts
228
+ search({ pattern: "connection refused", paths: "history://sessions", wait: { kind: "background" } })
229
+ search({ action: "wait", id: "history-3", budgetMs: 5000 }) // check on it
230
+ kill({ id: "history-3" }) // stop it
231
+ ```
232
+
233
+ A session runs at most 4 history searches and reads at once, separately from its 64 commands: they run inside Atomic and share one pattern matcher, so more at once would only slow each other down. At the limit, the call fails with:
234
+
235
+ ```text
236
+ 4 history searches and reads are already running in this session, the most it runs at once. Stop one you no longer need with kill, or wait for one to finish, then run this one again.
237
+ ```
238
+
239
+ History searches take no `timeout`, are not restarted when a session is resumed, and do not appear in `/tasks`. See [Slow history searches](/sessions#slow-history-searches) for what the model sees and how results arrive.
240
+
149
241
  ## Choose how long to wait
150
242
 
151
243
  The agent chooses foreground-first or background observation for each shell call. Every subagent runs in the background; wait on one with `subagent({ action: "wait", id })` when the next step depends on its result. Neither choice requires extra confirmation or changes tool permissions.
@@ -203,9 +295,17 @@ The main footer shows `↓ N agents` for the panel's subagent rows, and `N needs
203
295
 
204
296
  Main-chat background shells are counted in the footer and inspected through [`/tasks`](#open-the-task-inspector). A subagent's own running shells appear as indented rows (`⧗ shell <command>`) directly beneath that subagent and leave once they finish or when their parent subagent leaves.
205
297
 
206
- Press `↓` on an empty prompt to focus the panel from either `main` or a subagent (while a viewed subagent's question form has focus, `↓` moves its selection instead). Returning to the panel with `↓` selects your most recently selected subagent row and restores its scroll position, falling back to the nearest surviving row if that subagent left (and resetting to the top row once the panel empties):
298
+ Press `↓` on an empty prompt to focus the panel from either `main` or a subagent (while a viewed subagent's question form has focus, `↓` moves its selection instead).
299
+
300
+ The panel remembers the row you chose last, so `↓` takes you back to it:
301
+
302
+ - If you last chose `main`, `↓` selects `main` again. If the panel no longer shows a `main` row, it selects the first row.
303
+ - If you open a subagent from `/tasks` with `Enter` or a click, the panel selects that subagent next time. Moving through `/tasks` and leaving with `Esc` does not change the remembered row.
304
+ - If the remembered subagent has left the panel, the nearest remaining row is selected. Once the panel is empty, the next visit starts at the top row.
305
+
306
+ The panel also keeps the scroll position you left it at. In the focused panel:
207
307
 
208
- - `↑` and `↓` select rows, including `main` and nested shell rows. The selected row shows `∀` before its mark in default text color.
308
+ - `↑` and `↓` select rows, including `main` and nested shell rows. `↓` on the last row moves back to the first row and scrolls to the top. The selected row shows `∀` before its mark in default text color.
209
309
  - `Enter` or `→` on a subagent switches the chat screen to that subagent and returns focus to the prompt.
210
310
  - `Enter` or `→` on `main` switches back to the main chat and returns focus to the prompt.
211
311
  - `Enter` or `→` on a nested shell opens that shell's output in `/tasks` without changing the viewed agent (`←` returns to the focused panel).
@@ -346,7 +446,7 @@ Shell output is sampled every 30 seconds from the last 2 KiB of output, reportin
346
446
  - A heartbeat queues like a steering message without interrupting streaming text. In an idle chat it starts a turn immediately, including after an `Esc` interrupt (sending only the heartbeat and held incoming messages, without resuming the interrupted response). If you queued a message and interrupted with `Ctrl+C`, the heartbeat waits so your text is not sent automatically. Set [`tasks.heartbeatWakesIdleSession`](/settings#tasks) to `false` to prevent heartbeats from waking an idle chat.
347
447
  - Heartbeats also yield an active `action: "wait"` call while the waited task keeps running.
348
448
  - Heartbeats go to the session managing the task. Because a subagent's shells run under the launching main session, their heartbeats go to the main session.
349
- - A shell's execution `timeout` (300 seconds by default) still ends it, so a shell emits heartbeats only when it runs past its cadence.
449
+ - A shell has no time limit unless its launch set a `timeout`, so a long-running shell keeps sending heartbeats until it finishes or is stopped.
350
450
 
351
451
  ### Choose the cadence
352
452
 
@@ -354,7 +454,7 @@ Set `heartbeatMs` on `bash`, `powershell`, or `subagent`. Omit it for the chat d
354
454
 
355
455
  ```ts
356
456
  // A long end-to-end run checked every 5 minutes.
357
- bash({ command: "npm run e2e", wait: { kind: "background" }, timeout: 3600, heartbeatMs: 300000 })
457
+ bash({ command: "npm run e2e", wait: { kind: "background" }, heartbeatMs: 300000 })
358
458
 
359
459
  // A deliberately long investigation that should not heartbeat.
360
460
  subagent({ agent: "codebase-analyzer", task: "Map every caller of the auth module.", heartbeatMs: 0 })
@@ -117,6 +117,24 @@ Compaction starts
117
117
 
118
118
  Atomic prints a one-line notice (`Compaction model not used (<reason>); context cleared instead`) without exposing your API key or sensitive headers. Pressing `Escape` or calling `abortCompaction()` during a compactor request also clears the context with reason `request aborted`. A takeover by `/compact`, closing the session, or an extension returning `{ cancel: true }` cancels compaction completely.
119
119
 
120
+ #### When the compactor cannot reach its server
121
+
122
+ If Atomic cannot connect to the compactor's server, the notice gives the reason the connection failed. For example, when the server's host name cannot be found:
123
+
124
+ ```text
125
+ Compaction model not used (morph/morph-compactor failed: fetch failed: getaddrinfo ENOTFOUND api.morphllm.com); context cleared instead
126
+ ```
127
+
128
+ Check your network connection, proxy or VPN, and the compactor's address.
129
+
130
+ A DNS filter such as NextDNS, Pi-hole, or AdGuard can also block the compactor. These filters answer `0.0.0.0` or `::` for a domain they block, so the connection never reaches the real server. When the server's host name resolves only to those addresses, the notice says so and names the domain to allow:
131
+
132
+ ```text
133
+ Compaction model not used (morph/morph-compactor failed: fetch failed: ERR_SSL_TLSV1_ALERT_INTERNAL_ERROR: tlsv1 alert internal error (api.morphllm.com resolves to 0.0.0.0, the address DNS filters such as NextDNS, Pi-hole or AdGuard return for blocked domains; allow api.morphllm.com in the resolver)); context cleared instead
134
+ ```
135
+
136
+ To fix it, add that domain to your DNS filter's allowlist. Until then, compaction keeps working by clearing the context.
137
+
120
138
  ## Compaction model
121
139
 
122
140
  Open `/settings` and select **Compaction model** to choose **Automatic** or any registered compactor model. Changes made in `/settings` (or via `session.setCompactionModel()` / RPC `set_compaction_model`) take effect immediately in your active session without running `/reload` or restarting Atomic. Both built-in `morph/morph-compactor` and any custom remote compactor models you define in `~/.atomic/agent/models.json` or an extension appear in this searchable list automatically, matching the **Decision model** and `/model` pickers (authenticated models appear first; unauthenticated ones show `requires /login <provider>`). The selector updates project settings when a project override already exists, and global settings otherwise. You can also edit `compactionModel` in `~/.atomic/agent/settings.json` or a trusted project's `.atomic/settings.json`:
package/docs/docs.json CHANGED
@@ -46,6 +46,8 @@
46
46
  "background-tasks",
47
47
  "guides/intercom",
48
48
  "guides/team-setup",
49
+ "guides/postgres-pgbouncer",
50
+ "guides/postgres-tuning",
49
51
  "computer-use",
50
52
  "verification"
51
53
  ]
@@ -87,7 +87,7 @@ Variables use different parsing rules depending on their category:
87
87
  | `ATOMIC_CODEMODE_MAX_WORKERS` | `PI_CODEMODE_MAX_WORKERS` | Positive integer maximum live codemode workers per Atomic process (default `2`, each capped at 256 MiB; invalid values fall back to `2`). Extra scripts queue until a slot opens. See [Codemode](/codemode) |
88
88
  | `ATOMIC_HOST_SPAWN` | None | Set to `child-process` to launch helper processes (Git snapshots, `rg`, `fd`, worktree setup, and standalone shell commands) through standard Node child spawning instead of Atomic's native spawner. Useful for troubleshooting process-spawning issues on Linux or Windows |
89
89
  | `ATOMIC_TASK_CGROUP` | None | Exact `0` disables Linux cgroup v2 process-tree containment for background shell tasks. See [Lifetime, retention, and cleanup](/background-tasks#lifetime-retention-and-cleanup) |
90
- | `NODE_COMPILE_CACHE` | None | Override the directory for Node's persistent compile cache, enabled automatically on Node 22.8+ to speed up startup. On Windows, a cold default cache warms in a background helper during interactive runs; setting `NODE_COMPILE_CACHE` lets Node write it on exit instead |
90
+ | `NODE_COMPILE_CACHE` | None | Override the directory for Node's persistent compile cache, enabled automatically on Node.js to speed up startup. On Windows, a cold default cache warms in a background helper during interactive runs; setting `NODE_COMPILE_CACHE` lets Node write it on exit instead |
91
91
  | `NODE_DISABLE_COMPILE_CACHE` | None | Any defined value (including empty string `""`) prevents Node from enabling the compile cache |
92
92
  | `NAPI_RS_NATIVE_LIBRARY_PATH` | None | Path to a custom `@bastani/atomic-natives` `.node` addon binary; bypasses the release version check |
93
93
 
@@ -10,7 +10,7 @@ description: "Install Atomic with a package manager or standalone release archiv
10
10
 
11
11
  ## Package managers
12
12
 
13
- Install globally with npm, pnpm, or Bun (requires Node.js 22.19+, or Bun 1.4.2+ for Bun installs):
13
+ Install globally with npm, pnpm, or Bun (requires [Node.js 24.20.0 or newer](#nodejs-version), or Bun 1.4.2+ for Bun installs):
14
14
 
15
15
  ```bash
16
16
  npm install -g @bastani/atomic
@@ -22,13 +22,20 @@ npm install -g @bastani/atomic
22
22
  - Package managers select the matching platform native package (`@bastani/atomic-natives-<platform>`) automatically.
23
23
  - Sessions save locally in `~/.atomic/workflows/journal.sqlite` with no database server needed. To share sessions across machines, see [Sharing storage across hosts](/storage#sharing-storage-across-hosts).
24
24
 
25
+ ### Node.js version
26
+
27
+ Package-manager installs need Node.js 24 LTS, version 24.20.0 or newer. The [release archive](#release-archive) bundles its own runtime and needs no Node.js.
28
+
29
+ - **Why 24.20.0:** Node.js releases before 24.15.0 bundle a SQLite version with a bug that can corrupt Atomic's session database ([SQLite WAL-reset bug](https://www.sqlite.org/wal.html#walresetbug)). Node.js 24.17.0 through 24.19.0 reject valid certificates for IPv6 addresses such as an `https://[::1]` proxy ([nodejs/node#64145](https://github.com/nodejs/node/pull/64145)); 24.20.0 fixes both.
30
+ - **Check your version:** Run `node --version`. It must print `v24.20.0` or a later `v24` release, or a newer major version.
31
+ - **Upgrade:** Install the current Node.js 24 LTS release from [nodejs.org](https://nodejs.org/en/download), or with a version manager: `nvm install 24`, `fnm install 24`, or `mise use -g node@24`. Then reinstall Atomic with `npm install -g @bastani/atomic` so it runs on the new Node.js.
32
+
25
33
  ### Package manager troubleshooting
26
34
 
27
35
  - **Optional native packages:** Do not omit optional dependencies (`npm install --omit=optional`, `pnpm install --no-optional`, or `bun install --omit=optional`) in a project. Without your platform's native package, Atomic stops at startup with an error naming the missing package; reinstall without those flags to fix it. Global npm installs still pull transitive optional native packages even with `--omit=optional`.
28
36
  - **Dependency resolution:** Atomic pins its direct dependencies to exact versions and does not bundle a lockfile, so your package manager resolves sub-dependencies at install time. Use the [release archive](#release-archive) if you want the exact dependency tree the release was tested with.
29
37
  - **Older Linux lockfiles:** On Linux, `npm ci` from an older project lockfile that omits C-library tags can install both the glibc and musl native packages. Atomic loads the matching one automatically.
30
38
  - **Mismatched native module after an update:** Atomic stops if its native module comes from a different release. If you updated Atomic while it was running, restart it. Otherwise reinstall to repair the installation. A long-running SDK program that stopped this way keeps refusing new sessions until restarted. This version check applies to packaged releases and skips standalone binaries, source checkouts, `NAPI_RS_NATIVE_LIBRARY_PATH` overrides, and apps that bundle the SDK without pinning `@bastani/atomic-natives`.
31
- - **Node 22 overhead:** On Node 22, async operations have higher overhead than on Node 24 or Bun. Run Atomic on Node 24 or later to avoid this overhead. Do not set `NODE_OPTIONS=--experimental-async-context-frame`: Node 24 and later refuse to start with that option, and commands Atomic runs inherit `NODE_OPTIONS`.
32
39
 
33
40
  ## Release archive
34
41