@bastani/atomic 0.10.10-alpha.2 → 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 (381) hide show
  1. package/CHANGELOG.md +142 -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 +24 -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 +20 -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/CHANGELOG.md +9 -0
  70. package/dist/builtin/web-access/index.bundle.mjs +1 -1
  71. package/dist/builtin/web-access/package.json +1 -1
  72. package/dist/cli/args.js +2 -2
  73. package/dist/cli/auth-cli.code.js +4 -4
  74. package/dist/cli/auth-cli.impl.js +3 -3
  75. package/dist/cli/auth-cli.js +3 -3
  76. package/dist/cli/blueprint-command.code.js +3 -3
  77. package/dist/cli/blueprint-command.impl.js +3 -3
  78. package/dist/cli/blueprint-command.js +3 -3
  79. package/dist/cli/intercom-command.code.js +2 -2
  80. package/dist/cli/intercom-command.impl.js +3 -3
  81. package/dist/cli/intercom-command.js +3 -3
  82. package/dist/cli/list-models.code.js +2 -2
  83. package/dist/cli/list-models.impl.js +3 -3
  84. package/dist/cli/list-models.js +3 -3
  85. package/dist/cli/session-picker.code.js +1 -1
  86. package/dist/cli/session-picker.impl.js +3 -3
  87. package/dist/cli/session-picker.js +3 -3
  88. package/dist/cli/startup-ui.code.js +1 -1
  89. package/dist/cli/startup-ui.impl.js +3 -3
  90. package/dist/cli/startup-ui.js +3 -3
  91. package/dist/cli/storage-command.impl.js +3 -3
  92. package/dist/cli/storage-command.js +3 -3
  93. package/dist/cli/storage-search-session.code.js +3 -3
  94. package/dist/cli/storage-search-session.impl.js +3 -3
  95. package/dist/cli/storage-search-session.js +3 -3
  96. package/dist/cli/team-command.code.js +2 -2
  97. package/dist/cli/team-command.impl.js +3 -3
  98. package/dist/cli/team-command.js +3 -3
  99. package/dist/cli.js +2 -2
  100. package/dist/core/agent-session-methods.d.ts +3 -0
  101. package/dist/core/agent-session-methods.js.map +1 -1
  102. package/dist/core/agent-session.d.ts +1 -0
  103. package/dist/core/compaction/compactor.d.ts +2 -0
  104. package/dist/core/debug.impl.js +3 -3
  105. package/dist/core/debug.js +3 -3
  106. package/dist/core/export-html/card-projection.code.js +1 -1
  107. package/dist/core/export-html/card-projection.impl.js +3 -3
  108. package/dist/core/export-html/card-projection.js +3 -3
  109. package/dist/core/export-html/index.code.js +2 -2
  110. package/dist/core/export-html/index.impl.js +3 -3
  111. package/dist/core/export-html/index.js +3 -3
  112. package/dist/core/export-html/json-spans.impl.js +3 -3
  113. package/dist/core/export-html/json-spans.js +3 -3
  114. package/dist/core/export-html/oversized-render-inputs.code.js +1 -1
  115. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  116. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  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 +3 -3
  128. package/dist/core/extensions/runner-context.js.map +1 -1
  129. package/dist/core/intercom-broker-control-host.code.js +1 -1
  130. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  131. package/dist/core/intercom-broker-control-host.js +3 -3
  132. package/dist/core/intercom-broker-control.code.js +3 -3
  133. package/dist/core/intercom-broker-control.impl.js +3 -3
  134. package/dist/core/intercom-broker-control.js +3 -3
  135. package/dist/core/model-registry.js +1 -1
  136. package/dist/core/model-resolver-defaults.d.ts +3 -2
  137. package/dist/core/package-manager-storage-adapters.code.js +1 -1
  138. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  139. package/dist/core/package-manager-storage-adapters.js +3 -3
  140. package/dist/core/sdk.code.js +3 -4
  141. package/dist/core/sdk.impl.js +3 -3
  142. package/dist/core/sdk.js +3 -3
  143. package/dist/core/session-manager-core.d.ts +5 -2
  144. package/dist/core/session-manager-core.js +17 -13
  145. package/dist/core/session-manager-core.js.map +1 -1
  146. package/dist/core/session-manager-list.impl.js +3 -3
  147. package/dist/core/session-manager-list.js +3 -3
  148. package/dist/core/session-manager.code.js +1 -1
  149. package/dist/core/session-manager.impl.js +3 -3
  150. package/dist/core/session-manager.js +3 -3
  151. package/dist/core/session-storage.code.js +1 -1
  152. package/dist/core/session-storage.impl.js +3 -3
  153. package/dist/core/session-storage.js +3 -3
  154. package/dist/core/storage/added-exports.d.ts +6 -0
  155. package/dist/core/storage/added-exports.js +16 -0
  156. package/dist/core/storage/added-exports.js.map +1 -0
  157. package/dist/core/storage/database.d.ts +16 -0
  158. package/dist/core/storage/database.js.map +1 -1
  159. package/dist/core/storage/fenced-paths.d.ts +47 -0
  160. package/dist/core/storage/fenced-paths.js +53 -0
  161. package/dist/core/storage/fenced-paths.js.map +1 -1
  162. package/dist/core/storage/file-identity.js +31 -2
  163. package/dist/core/storage/file-identity.js.map +1 -1
  164. package/dist/core/storage/index.d.ts +3 -0
  165. package/dist/core/storage/index.js +5 -2
  166. package/dist/core/storage/index.js.map +1 -1
  167. package/dist/core/storage/migrations.d.ts +22 -0
  168. package/dist/core/storage/migrations.js +55 -0
  169. package/dist/core/storage/migrations.js.map +1 -1
  170. package/dist/core/storage/node-sqlite-thread.js +19 -6
  171. package/dist/core/storage/node-sqlite-thread.js.map +1 -1
  172. package/dist/core/storage/node-sqlite.js +53 -4
  173. package/dist/core/storage/node-sqlite.js.map +1 -1
  174. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  175. package/dist/core/storage/offline-snapshot-file.js +3 -3
  176. package/dist/core/storage/prefix.d.ts +3 -2
  177. package/dist/core/storage/prefix.js +18 -2
  178. package/dist/core/storage/prefix.js.map +1 -1
  179. package/dist/core/storage/provider.js +2 -2
  180. package/dist/core/storage/schema-catalog.d.ts +42 -0
  181. package/dist/core/storage/schema-catalog.js +141 -0
  182. package/dist/core/storage/schema-catalog.js.map +1 -0
  183. package/dist/core/storage/selection.js +2 -2
  184. package/dist/core/storage/session/branch-fork-source.code.js +41 -20
  185. package/dist/core/storage/session/branch-fork-source.code.js.map +1 -1
  186. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  187. package/dist/core/storage/session/branch-fork-source.js +3 -3
  188. package/dist/core/storage/session/card-view.impl.js +3 -3
  189. package/dist/core/storage/session/card-view.js +3 -3
  190. package/dist/core/storage/session/child-reader.code.js +3 -3
  191. package/dist/core/storage/session/child-reader.impl.js +3 -3
  192. package/dist/core/storage/session/child-reader.js +3 -3
  193. package/dist/core/storage/session/chunked-resume-projection.code.js +1 -1
  194. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  195. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  196. package/dist/core/storage/session/expanded-child-details.code.js +3 -3
  197. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  198. package/dist/core/storage/session/expanded-child-details.js +3 -3
  199. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  200. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  201. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  202. package/dist/core/storage/session/fork-row-index.js +3 -3
  203. package/dist/core/storage/session/fork-staging.code.js +176 -36
  204. package/dist/core/storage/session/fork-staging.code.js.map +1 -1
  205. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  206. package/dist/core/storage/session/fork-staging.js +3 -3
  207. package/dist/core/storage/session/fork-window.code.js +3 -3
  208. package/dist/core/storage/session/fork-window.impl.js +3 -3
  209. package/dist/core/storage/session/fork-window.js +3 -3
  210. package/dist/core/storage/session/history-pages.impl.js +3 -3
  211. package/dist/core/storage/session/history-pages.js +3 -3
  212. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  213. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  214. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  215. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  216. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  217. package/dist/core/storage/session/memory-session-store.js +3 -3
  218. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  219. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  220. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  221. package/dist/core/storage/session/released-history-files.code.js +2 -2
  222. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  223. package/dist/core/storage/session/released-history-files.js +3 -3
  224. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  225. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  226. package/dist/core/storage/session/session-resume.impl.js +3 -3
  227. package/dist/core/storage/session/session-resume.js +3 -3
  228. package/dist/core/storage/session/session-search-index.d.ts +5 -0
  229. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  230. package/dist/core/storage/session/snapshot-cut.js +3 -3
  231. package/dist/core/storage/session/snapshot-history.code.js +3 -3
  232. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  233. package/dist/core/storage/session/snapshot-history.js +3 -3
  234. package/dist/core/storage/session/sql-chat-records.d.ts +15 -0
  235. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  236. package/dist/core/storage/session/sql-session-store.d.ts +102 -5
  237. package/dist/core/storage/session/sql-session-store.impl.js +4 -4
  238. package/dist/core/storage/session/sql-session-store.js +4 -4
  239. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  240. package/dist/core/storage/session/tree-outline.js +3 -3
  241. package/dist/core/storage/session/tree-presentation.code.js +1 -1
  242. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  243. package/dist/core/storage/session/tree-presentation.js +3 -3
  244. package/dist/core/storage/session/types.d.ts +14 -0
  245. package/dist/core/storage/sqlite-facade.d.ts +37 -5
  246. package/dist/core/storage/sqlite-facade.js +351 -18
  247. package/dist/core/storage/sqlite-facade.js.map +1 -1
  248. package/dist/core/storage/statement-sequence.d.ts +83 -0
  249. package/dist/core/storage/statement-sequence.js +21 -0
  250. package/dist/core/storage/statement-sequence.js.map +1 -1
  251. package/dist/core/storage/storage-status.code.js +1 -1
  252. package/dist/core/storage/storage-status.impl.js +3 -3
  253. package/dist/core/storage/storage-status.js +3 -3
  254. package/dist/core/storage/team.code.js +1 -1
  255. package/dist/core/storage/team.impl.js +3 -3
  256. package/dist/core/storage/team.js +3 -3
  257. package/dist/core/structured-output/index.code.js +1 -1
  258. package/dist/core/structured-output/index.impl.js +3 -3
  259. package/dist/core/structured-output/index.js +3 -3
  260. package/dist/core/tasks/task-completion-entry.code.js +1 -1
  261. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  262. package/dist/core/tasks/task-completion-entry.js +3 -3
  263. package/dist/core/tasks/task-file-history.code.js +3 -3
  264. package/dist/core/tasks/task-file-history.impl.js +3 -3
  265. package/dist/core/tasks/task-file-history.js +3 -3
  266. package/dist/core/tasks/task-reference-archive.code.js +4 -4
  267. package/dist/core/tasks/task-reference-archive.js +3 -3
  268. package/dist/core/tasks/task-reference-identity.js +3 -3
  269. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  270. package/dist/core/tasks/task-reference-stream.js +3 -3
  271. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  272. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  273. package/dist/core/tasks/task-view-source.code.js +1 -1
  274. package/dist/core/tasks/task-view-source.impl.js +3 -3
  275. package/dist/core/tasks/task-view-source.js +3 -3
  276. package/dist/core/tools/bash.d.ts +8 -4
  277. package/dist/core/tools/history-session.d.ts +5 -0
  278. package/dist/core/tools/history-tasks.d.ts +123 -0
  279. package/dist/core/tools/kill.d.ts +5 -2
  280. package/dist/core/tools/powershell.d.ts +2 -2
  281. package/dist/core/tools/read-url.code.js +3 -3
  282. package/dist/core/tools/read-url.impl.js +3 -3
  283. package/dist/core/tools/read-url.js +3 -3
  284. package/dist/core/tools/read.d.ts +12 -2
  285. package/dist/core/tools/resource-selectors.d.ts +2 -0
  286. package/dist/core/tools/search.d.ts +12 -2
  287. package/dist/core/worktree-snapshot/blob-store.d.ts +14 -2
  288. package/dist/core/worktree-snapshot/blob-store.js +69 -16
  289. package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
  290. package/dist/core/worktree-snapshot/errors.code.js +2 -2
  291. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  292. package/dist/core/worktree-snapshot/errors.js +3 -3
  293. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  294. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  295. package/dist/extensions/codemode/execute.code.js +2 -2
  296. package/dist/extensions/codemode/execute.impl.js +3 -3
  297. package/dist/extensions/codemode/execute.js +3 -3
  298. package/dist/extensions/codemode/renderer.code.js +2 -2
  299. package/dist/extensions/codemode/renderer.impl.js +3 -3
  300. package/dist/extensions/codemode/renderer.js +3 -3
  301. package/dist/extensions/mcp/cli.code.js +3 -3
  302. package/dist/extensions/mcp/cli.impl.js +3 -3
  303. package/dist/extensions/mcp/cli.js +3 -3
  304. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  305. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  306. package/dist/extensions/mcp/cli.lazy.js +3 -3
  307. package/dist/extensions/mcp/runtime.code.js +1 -1
  308. package/dist/extensions/mcp/runtime.impl.js +3 -3
  309. package/dist/extensions/mcp/runtime.js +3 -3
  310. package/dist/index.js +5 -5
  311. package/dist/main-first-time-setup.code.js +1 -1
  312. package/dist/main-first-time-setup.impl.js +3 -3
  313. package/dist/main-first-time-setup.js +3 -3
  314. package/dist/main.js +1 -1
  315. package/dist/modes/interactive/components/agent-panel.d.ts +1 -0
  316. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  317. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  318. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  319. package/dist/modes/interactive/components/task-inspector.d.ts +2 -0
  320. package/dist/modes/interactive/components/user-message-selector-archive.code.js +1 -1
  321. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  322. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  323. package/dist/modes/interactive/interactive-mode-helpers.d.ts +2 -2
  324. package/dist/modes/print-mode.js +1 -1
  325. package/dist/modes/rpc/agent-panel-bridge.d.ts +5 -0
  326. package/dist/package-manager-cli.code.js +6 -6
  327. package/dist/package-manager-cli.impl.js +3 -3
  328. package/dist/package-manager-cli.js +3 -3
  329. package/dist/rpc-entry.js +1 -1
  330. package/dist/startup-files.json +1 -1
  331. package/dist/startup-stages/0.js +1 -1
  332. package/dist/startup-stages/1.js +1 -1
  333. package/dist/startup-stages/10.js +1 -1
  334. package/dist/startup-stages/12.js +1 -1
  335. package/dist/startup-stages/2.js +8 -1
  336. package/dist/startup-stages/3.js +1 -6
  337. package/dist/startup-stages/5.js +1 -1
  338. package/dist/startup-stages/7.js +1 -5
  339. package/dist/utils/startup-database-spare.code.js +2 -2
  340. package/dist/utils/startup-database-spare.impl.js +3 -3
  341. package/dist/utils/startup-database-spare.js +3 -3
  342. package/dist/utils/tools-manager.code.js +1 -1
  343. package/dist/utils/tools-manager.impl.js +3 -3
  344. package/dist/utils/tools-manager.js +3 -3
  345. package/docs/background-tasks.md +123 -23
  346. package/docs/compaction.md +18 -0
  347. package/docs/docs.json +2 -0
  348. package/docs/environment-variables.md +1 -1
  349. package/docs/getting-started/installation.md +9 -2
  350. package/docs/guides/postgres-pgbouncer.md +339 -0
  351. package/docs/guides/postgres-tuning.md +311 -0
  352. package/docs/guides/resume-on-any-machine.md +2 -2
  353. package/docs/guides.md +2 -0
  354. package/docs/index.md +1 -1
  355. package/docs/libraries/agent-core.md +1 -1
  356. package/docs/libraries/ai.md +2 -2
  357. package/docs/libraries/codemode.md +1 -1
  358. package/docs/libraries/storage-libsql.md +6 -1
  359. package/docs/libraries/storage-postgres.md +11 -6
  360. package/docs/libraries/tui.md +1 -1
  361. package/docs/libraries.md +2 -2
  362. package/docs/programmatic.md +1 -1
  363. package/docs/quickstart.md +1 -1
  364. package/docs/sdk/storage.md +1 -1
  365. package/docs/sdk/web-server.md +1 -3
  366. package/docs/sdk.md +1 -7
  367. package/docs/sessions.md +58 -2
  368. package/docs/settings.md +20 -1
  369. package/docs/skills/authoring.md +1 -1
  370. package/docs/skills.md +79 -6
  371. package/docs/storage.md +262 -12
  372. package/docs/subagents/reference.md +2 -2
  373. package/docs/subagents.md +4 -3
  374. package/docs/tools.md +44 -10
  375. package/docs/windows.md +1 -1
  376. package/package.json +9 -9
  377. package/dist/_shared/sdk-RRLVN7ER.js.map +0 -1
  378. package/dist/_shared/startup-0-0-4VG2G44V.js.map +0 -1
  379. package/dist/_shared/startup-0-1-XTIL65D4.js.map +0 -1
  380. package/dist/_shared/startup-0-5-FD2P735I.js.map +0 -1
  381. package/dist/_shared/startup-8-1-4KANEHRA.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,148 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.10.11-alpha.1] - 2026-11-25
6
+
7
+ Many agents can now share one PostgreSQL or libSQL database without waiting for each other, forks cost about the same however long the session is, and shell commands and history searches now run until they finish.
8
+
9
+ **Breaking change:** Atomic and its npm packages now need Node.js 24.20.0 or newer. Run `node --version`. If it is older, install the current Node.js 24 LTS release from [nodejs.org](https://nodejs.org/en/download) or with `nvm install 24`, `fnm install 24` or `mise use -g node@24`, then reinstall Atomic with `npm install -g @bastani/atomic`. If you installed with `install.sh` or `install.ps1`, you need no change, because those installs bring their own runtime. Node.js releases before 24.15.0 bundle a SQLite bug that can corrupt the session database, and 24.17.0 through 24.19.0 reject valid certificates for IPv6 addresses ([#6579](https://github.com/bastani-inc/atomic/pull/6579)).
10
+
11
+ **Shared databases**
12
+
13
+ - **Agents on one PostgreSQL database stop queueing.** A session save now locks only its own session and takes 2 round trips instead of 7 or more. In a load test with 100 agents at 80 ms latency, a save took 164 ms instead of 52 to 57 seconds, and 200 agents ran without lock timeouts. Run `atomic storage migrate` once before you start many agents ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
14
+ - **Faster startup.** On PostgreSQL, opening a session store whose tables are up to date takes 5 round trips instead of 43 and takes no lock. On SQLite and libSQL it reads the schema in one statement: reopening an Intercom broker on a libSQL server 80 ms away takes 0.6 s instead of more than 6 s, and on a local SQLite file it takes 1 write lock instead of 30 ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6599](https://github.com/bastani-inc/atomic/pull/6599)).
15
+ - **Forks no longer copy entry by entry.** A fork within one database is copied by the database in a few statements, so its cost barely grows with the session's length. At 80 ms latency, a subagent fork of a 500-entry session takes 1.2 s instead of 17.8 s, and a clone 2.6 s instead of 33 s. Two handles on the same database count as one store. Forks from another store read it in larger requests and no longer wait for each other ([#6596](https://github.com/bastani-inc/atomic/pull/6596), [#6591](https://github.com/bastani-inc/atomic/pull/6591)).
16
+ - **Faster reads and snapshots.** Reading a session's latest entries or resuming it takes 2 round trips instead of 5 or 6 on PostgreSQL, and about half the time on libSQL. Back-to-back reads reuse one PostgreSQL connection. Storing five snapshot blobs takes 172 ms instead of 585 ms ([#6599](https://github.com/bastani-inc/atomic/pull/6599), [#6588](https://github.com/bastani-inc/atomic/pull/6588)).
17
+ - **Fewer PostgreSQL connections.** Every store a process opens on the same database shares one connection pool, and reads use their own pool of up to 2 connections. The new `readerMaxConnections`, `maxPreparedStatements`, `connectTimeoutMs`, `idleTimeoutMs` and `keepAliveIdleMs` options tune them. New guides cover [PostgreSQL tuning for many agents](https://docs.bastani.ai/guides/postgres-tuning) and [PgBouncer](https://docs.bastani.ai/guides/postgres-pgbouncer) ([#6588](https://github.com/bastani-inc/atomic/pull/6588)).
18
+ - **`atomic storage migrate` sets up every table.** It now creates the chat-record table and Intercom's queue for ended subagents, so a database role that cannot create tables keeps turn diagnostics and messages for ended subagents. It also leaves free space on the busiest tables' pages, so frequent row updates stay cheap ([#6588](https://github.com/bastani-inc/atomic/pull/6588)).
19
+ - **Faster SQLite and libSQL.** Local SQLite reuses up to 256 prepared statements per connection. On a libSQL server, reads made at once run at the same time, up to the new `concurrency` option (20 by default), and a transaction takes 2 requests instead of 6. The new `keepAliveMs` option keeps idle connections to a self-hosted libSQL server open ([#6588](https://github.com/bastani-inc/atomic/pull/6588)).
20
+ - **Intercom across hosts stops waiting.** With multi-node routing on PostgreSQL, sends to different sessions no longer wait for each other: with 50 brokers sending at once, the median send took 0.27 seconds instead of 12. A broker starts in about 3 round trips instead of about 100, checks for messages less often while database notifications work, and `intercom list` shows other hosts' sessions while writes are busy ([#6588](https://github.com/bastani-inc/atomic/pull/6588)).
21
+ - **Storage SDK additions.** `SqliteDatabase.openReader()` returns a read handle with its own connection on SQLite files, libSQL and PostgreSQL. `@bastani/atomic/storage` exports `withStorageSchemaCatalog`, `schemaCatalogOf`, `storageSchemaCurrent`, `ensureTableFillfactor` and `transactionFinisher`, so your own stores can use the same schema check and pipelined commits ([#6588](https://github.com/bastani-inc/atomic/pull/6588)).
22
+
23
+ **Long-running work**
24
+
25
+ - **Shell commands have no default time limit.** `bash` and `powershell` commands no longer stop after 5 minutes. Builds, test runs, dev servers and watchers run until they finish or you stop them with `kill` or `/tasks`. `timeout` still sets a deadline, now with no upper limit. A session runs at most 64 commands at once ([#6574](https://github.com/bastani-inc/atomic/pull/6574), [#6581](https://github.com/bastani-inc/atomic/pull/6581)).
26
+ - **Slow `history://` reads and searches keep running.** They no longer stop after 3 seconds. After 10 seconds the agent gets a task ID and keeps working, and the result arrives when it is ready ([#6563](https://github.com/bastani-inc/atomic/pull/6563)).
27
+
28
+ **Skills and subagents**
29
+
30
+ - **Skills listed by `skill://` address.** The model's instructions name each skill as `skill://<name>` instead of the full path to its `SKILL.md`, so your home folder no longer appears in every prompt and the addresses keep working after a skill moves or a session resumes on another computer. `read`, `search`, `find` and `bash` open these addresses, and a subagent given a skill gets its address too ([#6589](https://github.com/bastani-inc/atomic/pull/6589)).
31
+ - **Subagents always use the parent's session store.** A subagent saves its session where its parent does, whatever its folder, worktree or project settings, including after a restart. `sessionDir` and `defaultSessionDir` are ignored with a warning. Forked subagents are left out of `/resume`, like fresh ones ([#6594](https://github.com/bastani-inc/atomic/pull/6594)).
32
+ - **The agent panel remembers `main` and `/tasks` choices.** `↓` from an empty prompt returns to the row you chose last, including `main` and a subagent you opened from `/tasks`. `↓` on the last row moves to the first ([#6564](https://github.com/bastani-inc/atomic/pull/6564)).
33
+ - **Expanded subagent cards show the work.** Expanding a subagent that waits on a tool call shows its task and its tool calls, with the waited-on call marked `◌` ([#6562](https://github.com/bastani-inc/atomic/pull/6562)).
34
+ - **Clearer subagent model errors.** The error says whether the model does not exist or `enabledModels` leaves it out, and names the exact ID to add for a Fast or Ultrafast version ([#6569](https://github.com/bastani-inc/atomic/pull/6569)).
35
+
36
+ **Fixes**
37
+
38
+ - **macOS stops Atomic's commands when Atomic dies**, including background servers ([#5057](https://github.com/bastani-inc/atomic/issues/5057), [#6580](https://github.com/bastani-inc/atomic/pull/6580)).
39
+ - **Compaction network errors name the cause**, including DNS filters such as NextDNS, Pi-hole or AdGuard blocking the server ([#6561](https://github.com/bastani-inc/atomic/pull/6561)).
40
+ - **A default model after a provider retires one.** Atomic picks another model from that provider's catalog ([#6582](https://github.com/bastani-inc/atomic/pull/6582)).
41
+ - **Intercom starts with a long relative agent directory** on macOS and Linux ([#6585](https://github.com/bastani-inc/atomic/pull/6585)).
42
+ - **Backups of a custom agent directory stay separate** from the moved original's session store ([#5242](https://github.com/bastani-inc/atomic/issues/5242), [#6570](https://github.com/bastani-inc/atomic/pull/6570)).
43
+ - **Turso writes after a pause** no longer fail with `ECONNRESET` on Bun, including the `atomic` binary ([#6588](https://github.com/bastani-inc/atomic/pull/6588)).
44
+ - **Stall reports on macOS include stacks again** after the Mac has slept ([#6583](https://github.com/bastani-inc/atomic/pull/6583)).
45
+
46
+ ### Breaking Changes
47
+
48
+ - Atomic now needs Node.js 24.20.0 or newer, in the Node.js 24 LTS line, when you install it with npm, pnpm, Yarn, or Bun. Check with `node --version`. If it is older, install the current Node.js 24 LTS release from [nodejs.org](https://nodejs.org/en/download) or with `nvm install 24`, `fnm install 24`, or `mise use -g node@24`, then reinstall Atomic with `npm install -g @bastani/atomic`. The release archive (`install.sh` or `install.ps1`) ships its own runtime and needs no Node.js. Node.js releases before 24.15.0 bundle a SQLite version with a [bug that can corrupt](https://www.sqlite.org/wal.html#walresetbug) Atomic's session database, because Atomic opens it with a writer and a reader at once. 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)). See [Node.js version](docs/getting-started/installation.md#nodejs-version) ([#6579](https://github.com/bastani-inc/atomic/pull/6579)).
49
+
50
+ ### Added
51
+
52
+ - In the SDK, `SessionManager.captureFork(leafId, { internal: true })` creates the fork as an internal session, left out of `/resume`, `-r`, `-c` and the `history://sessions` list. Subagent forks use it ([#6594](https://github.com/bastani-inc/atomic/pull/6594)).
53
+ - Slow reads and searches of past sessions (`history://`) now keep running in the background instead of stopping after 3 seconds. If one is still running after 10 seconds, the default wait, the agent gets a task ID such as `history-3` and keeps working. The result arrives later as a completion notice. A read or search has no time limit. It runs until it finishes, the agent stops it, or the session closes. A result too large to return at once still ends with a link to read the rest. The agent can wait for the task or stop it by its ID. A session runs at most 4 at once, and a fifth is refused with a message saying how to free a place ([#6563](https://github.com/bastani-inc/atomic/pull/6563), [#6574](https://github.com/bastani-inc/atomic/pull/6574)).
54
+ - New guides: [Tune PostgreSQL for many agents](docs/guides/postgres-tuning.md) and [Run many agents on PostgreSQL with PgBouncer](docs/guides/postgres-pgbouncer.md) ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
55
+ - In the SDK, `@bastani/atomic/storage` now exports `withStorageSchemaCatalog`, `schemaCatalogOf`, `storageSchemaCurrent` and `ensureTableFillfactor`, so a custom store can check its schema without a lock and set a table's fillfactor the same way Atomic does. It also exports `transactionFinisher`, which returns the function that sends a transaction's last writes with its `COMMIT` on a pipelined connection, or `undefined` for any other connection ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
56
+
57
+ ### Changed
58
+
59
+ - On PostgreSQL, calls from one process that cannot conflict now run at the same time on separate connections, instead of one at a time. A transaction sends its statements without waiting for each answer, so saving entries to a session takes 2 round trips instead of 7 or more. A read-only transaction returns as soon as its reads are answered ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
60
+ - In the SDK, `SqliteDatabase.openReader()` now works for SQLite file databases and for drivers that provide the new `SqliteDriver.openReader` hook. It returns a read handle with its own connection and call queue, which closes with the database ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
61
+ - Local SQLite databases reuse prepared statements, up to 256 per connection, instead of preparing each statement again ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
62
+ - On PostgreSQL, agents that write different sessions of one shared database no longer wait for each other. A session write now locks only its own session, and session loads and history reads use a read-only snapshot that does not wait for writers' locks ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
63
+ - On PostgreSQL, opening a session store whose tables are up to date takes about 5 round trips instead of 43, and takes no lock. Many processes that start together against one database no longer wait for each other's schema checks. A missing table or column is still created, and a newer schema is still refused. A process's first chat record uses the same check, so it no longer waits for other writers ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
64
+ - On PostgreSQL, creating or replacing a session with entries sends them without waiting for each answer. Subagents that fork a session from another store no longer wait for each other, and no longer wait for or hold up writes to other sessions. Before, every such fork waited for all the others while it copied its rows into the shared staging table, so many forks at once could take minutes and some failed with a lock timeout. Now each fork locks only its own staged rows and the new child session. Each batch of rows takes 2 round trips instead of one per row, and publishing the child takes 3. In a test with 20 forks at once and 80 ms latency, the median fork took 13 seconds instead of 100, and none of 60 failed, where 9 had before ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6591](https://github.com/bastani-inc/atomic/pull/6591), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
65
+ - On PostgreSQL, storing or refreshing worktree snapshot blobs, which happens on every turn while snapshots are on, no longer takes the database-wide lock, so it no longer waits for or holds up session writes. Each now takes 2 round trips. At 80 ms latency, storing five blobs dropped from 585 ms to 172 ms ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
66
+ - On PostgreSQL, `atomic storage migrate` now sets `fillfactor = 80` on the sessions table, which leaves 20% free space on each page, so the update each save makes to a session's row is cheaper. It applies to pages written afterwards. A runtime role without DDL privileges keeps working and leaves the change to the table's owner ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
67
+ - In the agent panel, `↓` on the last row now moves back to the first row and scrolls to the top. `↑` on the first row still returns to the prompt ([#6564](https://github.com/bastani-inc/atomic/pull/6564)).
68
+ - `bash` and `powershell` commands no longer stop after 5 minutes when no `timeout` is given. A command runs until it finishes, someone stops it with `kill` or `/tasks`, or its session closes, so long builds, test runs, dev servers, file watchers and tunnels keep going. `timeout` still sets a deadline in seconds, now with no upper limit instead of 1 hour, and the advice to split longer runs into shorter commands is gone. To guard against runaway launches, a session runs at most 64 commands at once, its subagents' shells included. At that limit a new command is refused with a message saying how to free a place, and nothing running is stopped. See [Background shells](docs/background-tasks.md#background-shells) ([#6574](https://github.com/bastani-inc/atomic/pull/6574)).
69
+ - The skill list in the model's instructions now gives each skill's location as a short `skill://<name>` address instead of the full path to its `SKILL.md`, so your home folder no longer appears in every prompt and the list keeps working when a skill moves or a session resumes on another computer. `read`, `search`, `find` and `bash` resolve these addresses for every skill Atomic loads: bundled, package, user, project and extension skills. `skill://<name>/<path>` opens a file in the skill's folder, `skill://<name>:10-40` reads a few lines, and bash replaces an unquoted address with the real path, so a skill's script runs as `bash skill://<name>/scripts/<file>`. When two skills share a name, the plain address opens the skill that wins, and `skill://<name>@user` or `@builtin` picks one. `/skill:` commands record the same address, and reading a whole skill starts with `Base directory for this skill: skill://<name>/`. Full paths recorded by earlier sessions keep working. See [Skill addresses](docs/skills.md#skill-addresses) ([#6589](https://github.com/bastani-inc/atomic/pull/6589)).
70
+ - On local SQLite and libSQL (Turso), opening a session store or an Intercom broker whose tables are current reads the schema in one statement instead of checking each table and column on its own, and no longer takes the database's write lock for each store's table setup. Against a libSQL server 80 ms away, reopening a broker took 6 requests and 0.6 s instead of 74 requests and more than 6 s, and a session store 8 requests over one connection instead of 40 requests over up to 18 new connections. On a local SQLite file a broker opens with 1 write lock instead of 30, so it no longer queues behind other processes' writes 30 times ([#6599](https://github.com/bastani-inc/atomic/pull/6599), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
71
+ - On PostgreSQL and libSQL, reading a session's tail, resuming it or finding its latest compaction no longer reads the session's row on its own first: the row goes out with the read's start, and the entries it names go out together. At 80 ms on PostgreSQL a tail took 175 ms instead of 375 ms and a resume 176 ms instead of 451 ms; on libSQL 211 ms instead of 430 ms and 215 ms instead of 522 ms. On PostgreSQL each page a `history://` search reads costs one round trip instead of two ([#6599](https://github.com/bastani-inc/atomic/pull/6599), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
72
+ - Forking or cloning a session within one session database no longer copies it one entry and one blob at a time. The database copies the stored entries, their chunks, search text and tool output blobs in a few statements, so a fork takes about the same number of round trips however long the session is. On PostgreSQL at 80 ms latency, cloning a 500-entry session took 29 round trips and 2.6 s instead of 378 round trips and 33 s, and a subagent fork of a 500-entry session took 15 round trips and 1.2 s instead of 210 and 17.8 s. Session stores opened separately on the same database with the same table prefix, such as two handles in one process, now count as the same store, so a fork between them uses the same fast copy instead of staging every entry: 2.2 s instead of 112 s for 500 entries. A fork into a store with another table prefix or database, which is still staged, reads its source in fewer, larger requests: 6.5 s instead of 112 s for 500 entries ([#6596](https://github.com/bastani-inc/atomic/pull/6596), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
73
+
74
+ ### Fixed
75
+
76
+ - `atomic storage migrate` now creates the session chat records' table, so a PostgreSQL runtime role without DDL privileges saves turn diagnostics instead of silently dropping them. A table that an earlier release created is used as it is ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
77
+ - `atomic storage migrate` now also creates Intercom's ended-subagent queue tables, so a runtime role without DDL privileges keeps messages for ended subagents in the shared database instead of failing with `permission denied for schema atomic` and keeping them in memory only ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
78
+ - On macOS, commands started by Atomic, including background servers, are now stopped when the Atomic process dies ([#5057](https://github.com/bastani-inc/atomic/issues/5057), [#6580](https://github.com/bastani-inc/atomic/pull/6580)).
79
+ - If a provider retires Atomic's preferred chat model, Atomic selects another model from that provider's catalog instead of leaving you without a default after login ([#6582](https://github.com/bastani-inc/atomic/pull/6582)).
80
+ - The agent panel now remembers when you choose `main`. The next `↓` from an empty prompt selects `main` again instead of the subagent you had selected before it ([#6564](https://github.com/bastani-inc/atomic/pull/6564)).
81
+ - Opening a subagent from `/tasks` with `Enter` or a click now makes it the agent panel's remembered row, so the next `↓` from an empty prompt selects it ([#6564](https://github.com/bastani-inc/atomic/pull/6564)).
82
+ - Expanding the card of a subagent that is waiting on a tool call now shows its task and its tool calls, with the waited-on call marked `◌`, instead of only the card's first line. A card with no prompt to show leaves out the Prompt section instead of showing `(none)`, and a card with nothing more to show no longer offers to expand ([#6562](https://github.com/bastani-inc/atomic/pull/6562)).
83
+ - When the compaction model cannot reach its server, the notice now gives the reason instead of only `fetch failed`. If the server's host name resolves only to `0.0.0.0` or `::`, which is how DNS filters such as NextDNS, Pi-hole, and AdGuard block a domain, the notice says so and names the domain to allow ([#6561](https://github.com/bastani-inc/atomic/pull/6561)).
84
+ - If you use a custom agent directory (`ATOMIC_CODING_AGENT_DIR`), move its parent folder, and then copy the agent directory as a backup, the backup no longer takes over the session store in the parent folder. This could happen when the file system gave the backup's files the ID of a deleted file ([#5242](https://github.com/bastani-inc/atomic/issues/5242), [#6570](https://github.com/bastani-inc/atomic/pull/6570)).
85
+ - On macOS, the event-loop stall reports that `ATOMIC_EVENT_LOOP_BLOCK_MS` turns on include stacks again after the Mac has slept. The profiler's clock and Node.js's clock drift apart while a Mac sleeps, and Atomic now lines them up ([#6583](https://github.com/bastani-inc/atomic/pull/6583)).
86
+
87
+
88
+ ## [0.10.10] - 2026-11-24
89
+
90
+ Atomic adds configurable remote compaction models with live switching and typed compaction errors, introduces a dedicated SDK storage backends guide with standalone PostgreSQL and libSQL library docs, remembers your last selected row in the agent panel, drops redundant multi-provider scope warnings, and fixes CLI, tool, subagent, Intercom, TUI, Web Access, and documentation gaps across all packages.
91
+
92
+ **Compaction and model switching**
93
+
94
+ - **Configurable remote compactor models.** Configure built-in Morph or custom remote compaction endpoints per model in `~/.atomic/agent/models.json` or via `atomic.registerProvider()` (`type: "compactor"`, `compactionParams`, `endpointPath`, `timeoutMs`, `maxTokens`, and resolved `headers` with auth-header redaction), auto-discovered in `/settings` under **Compaction model** with **Automatic** fallback on every failure ([#6553](https://github.com/bastani-inc/atomic/pull/6553))
95
+ - **Live compaction and decision model switching.** Switching **Compaction model** or **Decision model** in `/settings`, via `session.setCompactionModel()` / `session.setDecisionModel()`, or via RPC `set_compaction_model` / `set_decision_model` takes effect immediately without `/reload` or restarting ([#6553](https://github.com/bastani-inc/atomic/pull/6553))
96
+ - **Typed `CompactionError` SDK family.** Import `CompactionError`, `CompactionConfigError`, `CompactionCancelledError`, `CompactionStateError`, `CompactorFailure`, type guards, and cross-process serialization/rehydration helpers from `@bastani/atomic`, with automatic RPC `compaction_error` rehydration ([#6553](https://github.com/bastani-inc/atomic/pull/6553))
97
+
98
+ **Agent panel, subagents, and Intercom**
99
+
100
+ - **Sticky agent-panel selection.** Pressing down into the agent panel now restores your most recently selected subagent row and scroll position instead of always jumping back to the top ([#6552](https://github.com/bastani-inc/atomic/pull/6552))
101
+ - **Subagent scope parity and YAML frontmatter.** Subagents share `@bastani/atomic`'s `resolveModelScopeFromModels` matcher, accept YAML list syntax in agent frontmatter, deduplicate user-scope agent discovery consistently, and bare `--models` / `enabledModels` patterns matching multiple providers no longer emit a redundant ambiguity warning ([#6552](https://github.com/bastani-inc/atomic/pull/6552), [#6553](https://github.com/bastani-inc/atomic/pull/6553))
102
+ - **Intercom leave-group fallback.** Leaving a session's last named Intercom group now returns to its resolved registration group (such as `project:<owner>/<repo>`) instead of silently joining `"default"` ([#6552](https://github.com/bastani-inc/atomic/pull/6552))
103
+
104
+ **SDK storage, documentation, and cross-package fixes**
105
+
106
+ - **Dedicated SDK storage and library docs.** Added `/sdk/storage` with complete `createAgentSession()`, `createAgentSessionRuntime()`, `SessionManager`, and `StorageError` recipes for local SQLite, JSONL, in-memory, `@bastani/atomic-storage-postgres` (PostgreSQL 16+), and `@bastani/atomic-storage-libsql`, added `/libraries/storage-postgres` and `/libraries/storage-libsql` alongside the core libraries, overhauled Mintlify navigation and cross-linking across all tabs, and audited all user-facing guides and package READMEs for readability, accuracy, and accessibility ([#6551](https://github.com/bastani-inc/atomic/pull/6551), [#6555](https://github.com/bastani-inc/atomic/pull/6555))
107
+ - **Docs-audit bug fixes across packages.** Fixed piped stdin concatenation, `ATOMIC_*` vs `PI_*` env precedence, invalid CLI storage flag handling, case-insensitive `:thinking` suffixes, `.sqlite3`/`.db3` selectors in `read`/`search`, `/export` quote handling, Herdr `/reload` pane release, async skill loading, theme hot-reload and truecolor detection, OSC 7501 exit cleanup in `@bastani/atomic-tui`, Web Access Gemini/YouTube/shortcut fixes, and exposed `atomic-ai` as a CLI bin on `@bastani/atomic-ai` ([#6552](https://github.com/bastani-inc/atomic/pull/6552))
108
+
109
+ **Breaking change:** `CompactorRequest.baseUrl` is now required, custom compactor models must declare an explicit `api` at the provider or model level (built-in Morph defines `"morph-compact"`), and `requestCompactorOutput()` no longer injects hard-coded Morph body defaults (`compression_ratio`, `preserve_recent`, `include_markers`, `include_line_ranges`)—omit `compactionParams` to use the remote API's own defaults or set `compactionParams` on the compactor model in `models.json`. `CompactorApi` in `@bastani/atomic-ai` is now an open `string` (removed `KnownCompactorApi`), and `COMPACTOR_COMPRESSION_RATIO` is deprecated.
110
+
111
+ ### Breaking Changes
112
+
113
+ - `CompactorRequest.baseUrl` is now required (no default Morph URL is injected), custom compactor models in `models.json` or `atomic.registerProvider()` now require an explicit `api` at the provider or model level unless overriding an existing compactor model (`morph/morph-compactor` continues to define `"morph-compact"`), and `requestCompactorOutput()` no longer injects hard-coded Morph body defaults (`compression_ratio`, `preserve_recent`, `include_markers`, `include_line_ranges`). Omit `compactionParams` to use the remote API's own defaults, or configure `compactionParams` per compactor model. `COMPACTOR_COMPRESSION_RATIO` is deprecated (kept only as a root export for 0.10.x in-place update compatibility) ([#6553](https://github.com/bastani-inc/atomic/pull/6553)).
114
+
115
+ ### Added
116
+
117
+ - Per-model configuration for built-in Morph and custom remote compactor endpoints in `~/.atomic/agent/models.json` (`"type": "compactor"`, `compactionParams`, `endpointPath`, `timeoutMs`, `maxTokens`, and resolved `headers` with sensitive auth-header redaction) and via `atomic.registerProvider()` (`ProviderCompactorModelConfig`), auto-discovered in `/settings` under **Compaction model** across both in-process and isolated interactive modes ([#6553](https://github.com/bastani-inc/atomic/pull/6553)).
118
+ - Live switching for `compactionModel` and `decisionModel` without `/reload` or restart via `/settings`, `session.setCompactionModel()`, `session.setDecisionModel()`, and RPC `set_compaction_model` / `set_decision_model` ([#6553](https://github.com/bastani-inc/atomic/pull/6553)).
119
+ - Typed `CompactionError` SDK error family (`CompactionError`, `CompactionConfigError`, `CompactionCancelledError`, `CompactionStateError`, and `CompactorFailure` extending `CompactionError`), cross-realm guards (`isCompactionError`, `isCompactionConfigError`, `isCompactionCancelledError`, `isCompactionStateError`, `isCompactorFailure`, `findCompactionError`, `isRetryableCompactionError`), serialization/rehydration (`serializeCompactionError`, `parseSerializedCompactionError`, `rehydrateCompactionError`), RPC `compaction_error` rehydration, and root exports for `CompactorModel`, `CompactorApi`, `ProviderCompactorModelConfig` (plus chat/image/classifier variants), `COMPACTOR_LINE_WIDTH`, `COMPACTED_OUTPUT_MAX_TRIGGER_SHARE`, `compactedOutputTokenCap`, `classifyCompactionModel`, `estimateTextTokens`, and `wrapLongLines` ([#6553](https://github.com/bastani-inc/atomic/pull/6553)).
120
+ - Exported `NativeModuleUnavailableError` from `@bastani/atomic` for SDK callers, and added `promptCache` and `samplingParamsByThinkingLevel` to `ProviderChatModelConfig` and `compat` to `ProviderClassifierModelConfig` in public extension provider types ([#6552](https://github.com/bastani-inc/atomic/pull/6552)).
121
+ - Added the dedicated `/sdk/storage` guide (`docs/sdk/storage.md`) and standalone storage-adapter library pages (`docs/libraries/storage-postgres.md` and `docs/libraries/storage-libsql.md`) in the bundled documentation and Mintlify navigation, plus convenience redirects (`/postgres`, `/postgresql`, `/libsql`, `/turso`, `/decisions`, `/structured-decisions`, `/compactors`, `/blueprints`) ([#6555](https://github.com/bastani-inc/atomic/pull/6555)).
122
+
123
+ ### Changed
124
+
125
+ - Standardized the default `/settings` **Compaction model** picker label to **Automatic** (matching **Decision model**), sorted authenticated compactor providers first with per-provider `requires /login <provider>` hints, and ensured every compactor failure mode falls back cleanly to **Automatic** (context cleared) ([#6553](https://github.com/bastani-inc/atomic/pull/6553)).
126
+ - `resolveModelScopeFromModels()` (`--models` / `enabledModels`) no longer emits a redundant `"ambiguous"` warning when a bare ID or pattern matches multiple authenticated providers ([#6553](https://github.com/bastani-inc/atomic/pull/6553)).
127
+ - Returning to the focused agent panel with the down-arrow key now restores the most recently selected subagent row and scroll position (falling back to the nearest surviving row if it left, and resetting to the top row once the panel empties) ([#6552](https://github.com/bastani-inc/atomic/pull/6552)).
128
+ - Audited and overhauled bundled user-facing documentation, Mintlify navigation, hub pages, routing tables, Learn/Build/Reference signposts, SDK wiring guides (MCP, skills, tools, codemode, subagents, Intercom, web access), and workspace package READMEs for human readability, discoverability, and accessibility, and clarified `models.schema.json` / `docs/models-configuration.md` descriptions for chat vs. compactor defaults and overrides ([#6551](https://github.com/bastani-inc/atomic/pull/6551), [#6553](https://github.com/bastani-inc/atomic/pull/6553), [#6555](https://github.com/bastani-inc/atomic/pull/6555)).
129
+
130
+ ### Fixed
131
+
132
+ - Piped stdin is now separated from CLI prompt text by a blank line when neither side already ends or starts with whitespace instead of concatenating them together ([#6552](https://github.com/bastani-inc/atomic/pull/6552)).
133
+ - `ATOMIC_NO_PTY` and `ATOMIC_EXPERIMENTAL` now take precedence over legacy `PI_NO_PTY` and `PI_EXPERIMENTAL` when explicitly set to `0`, and `ATOMIC_OFFLINE=0`/`false` and `ATOMIC_SKIP_VERSION_CHECK=0`/`false` no longer disable update checks or telemetry ([#6552](https://github.com/bastani-inc/atomic/pull/6552)).
134
+ - Invalid CLI storage flags now print a clean error and exit with code 1 instead of crashing with an unhandled `StorageConfigError` stack trace ([#6552](https://github.com/bastani-inc/atomic/pull/6552)).
135
+ - Thinking-level suffixes on `--model`, `--models`, `enabledModels`, and `fallbackModels` now match case-insensitively (for example `:HIGH` resolves to `high`) ([#6552](https://github.com/bastani-inc/atomic/pull/6552)).
136
+ - Non-string `compactionModel` values now throw a validation error when read instead of silently falling back to `"auto"`, and compaction overflow diagnostics report `>=` consistently with the boundary check ([#6552](https://github.com/bastani-inc/atomic/pull/6552)).
137
+ - `read` and `search` resource selectors now recognize `.sqlite3` and `.db3` files (including Windows drive-letter paths in `search`) ([#6552](https://github.com/bastani-inc/atomic/pull/6552)).
138
+ - `/export` now reports an error on unclosed quotes instead of silently falling back to HTML export and matches `.jsonl` extensions case-insensitively ([#6552](https://github.com/bastani-inc/atomic/pull/6552)).
139
+ - RPC `set_thinking_level` and `set_scoped_models` now validate inputs and return structured RPC errors instead of clamping invalid thinking levels or writing malformed `enabledModels` entries ([#6552](https://github.com/bastani-inc/atomic/pull/6552)).
140
+ - Disabling `herdr.enabled` and running `/reload` now releases any retired Herdr pane registration instead of leaving a stale entry after exit ([#6552](https://github.com/bastani-inc/atomic/pull/6552)).
141
+ - Async skill loading now matches sync skill loading by ignoring non-skill `.md` files (such as `README.md`) without spurious warnings and guarding non-string YAML frontmatter fields ([#6552](https://github.com/bastani-inc/atomic/pull/6552)).
142
+ - Theme hot-reload now watches the active theme's actual file path (supporting project, package, `--theme`, and renamed themes), restored legacy theme symbol sharing, and `hexColorAnsi()` now honors terminal color mode detection and `terminal.trueColor` / `ATOMIC_TRUE_COLOR` ([#6552](https://github.com/bastani-inc/atomic/pull/6552)).
143
+ - Truncated MCP tool results now direct models to read the output file with a line range selector (`:1-200`) instead of unsupported `offset`/`limit` parameters, and CLI `--help` and `/debug` descriptions now match parser and log-file behavior ([#6552](https://github.com/bastani-inc/atomic/pull/6552)).
144
+ - Lazy Web Access shortcut loading now uses Atomic's user config path resolution and returns defaults without falling back to legacy `.pi/web-search.json` when `~/.atomic/web-search.json` is malformed ([#6552](https://github.com/bastani-inc/atomic/pull/6552)).
145
+ - Corrected verified documentation discrepancies against runtime behavior across `docs/sdk/reference.md`, `docs/sdk.md`, `docs/storage.md`, `docs/sessions.md`, `docs/session-format.md`, `docs/settings.md`, `docs/environment-variables.md`, `docs/models/reference.md`, `docs/custom-provider/`, `docs/intercom/operations.md`, `docs/libraries/*.md`, and `examples/sdk/11-sessions.ts` (awaited `dispose()` calls), and fixed all broken doc anchors ([#6555](https://github.com/bastani-inc/atomic/pull/6555)).
146
+
5
147
  ## [0.10.10-alpha.2] - 2026-11-24
6
148
 
7
149
  Atomic adds a dedicated SDK storage backends guide and standalone PostgreSQL and libSQL library docs, improves Mintlify navigation and cross-linking across all tabs, and fixes code-verified documentation and schema description gaps.
package/README.md CHANGED
@@ -59,7 +59,7 @@ Full documentation: [docs.bastani.ai](https://docs.bastani.ai/) | Contributing:
59
59
 
60
60
  ## Quick start
61
61
 
62
- Install globally with npm, pnpm, or Bun (Node.js 22.19+ or Bun 1.4.5+):
62
+ Install globally with npm, pnpm, or Bun (Node.js 24 LTS, version 24.20.0 or newer, or Bun 1.4.5+). Check with `node --version`; [Node.js version](docs/getting-started/installation.md#nodejs-version) explains why and how to upgrade:
63
63
 
64
64
  ```bash
65
65
  npm install -g @bastani/atomic
@@ -31842,7 +31842,7 @@ function __atomicOnDemandFailed(error, feature) {
31842
31842
  return (async () => {
31843
31843
  const root = new URL("../", import.meta.url);
31844
31844
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
31845
- const key = `${root.href}#0.10.10-alpha.2`;
31845
+ const key = `${root.href}#0.10.11-alpha.1`;
31846
31846
  let release = releases.get(key);
31847
31847
  if (release === undefined) {
31848
31848
  const current = (async () => {
@@ -31870,7 +31870,7 @@ function __atomicOnDemandFailed(error, feature) {
31870
31870
  } catch {
31871
31871
  // No installation to read, as in a bundle of the package: the release the process runs decides.
31872
31872
  }
31873
- const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.2" ? installed : running !== undefined && running.version !== "0.10.10-alpha.2" ? "0.10.10-alpha.2" : undefined;
31873
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : undefined;
31874
31874
  if (updatedTo === undefined) throw error;
31875
31875
  const application = typeof running?.name === "string" ? running.name : "atomic";
31876
31876
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -40,7 +40,7 @@ function __atomicOnDemandFailed(error, feature) {
40
40
  return (async () => {
41
41
  const root = new URL("../", import.meta.url);
42
42
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
43
- const key = `${root.href}#0.10.10-alpha.2`;
43
+ const key = `${root.href}#0.10.11-alpha.1`;
44
44
  let release = releases.get(key);
45
45
  if (release === undefined) {
46
46
  const current = (async () => {
@@ -68,7 +68,7 @@ function __atomicOnDemandFailed(error, feature) {
68
68
  } catch {
69
69
  // No installation to read, as in a bundle of the package: the release the process runs decides.
70
70
  }
71
- const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.2" ? installed : running !== undefined && running.version !== "0.10.10-alpha.2" ? "0.10.10-alpha.2" : undefined;
71
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : undefined;
72
72
  if (updatedTo === undefined) throw error;
73
73
  const application = typeof running?.name === "string" ? running.name : "atomic";
74
74
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -5131,7 +5131,7 @@ function __atomicOnDemandFailed(error, feature) {
5131
5131
  return (async () => {
5132
5132
  const root = new URL("../", import.meta.url);
5133
5133
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
5134
- const key = `${root.href}#0.10.10-alpha.2`;
5134
+ const key = `${root.href}#0.10.11-alpha.1`;
5135
5135
  let release = releases.get(key);
5136
5136
  if (release === undefined) {
5137
5137
  const current = (async () => {
@@ -5159,7 +5159,7 @@ function __atomicOnDemandFailed(error, feature) {
5159
5159
  } catch {
5160
5160
  // No installation to read, as in a bundle of the package: the release the process runs decides.
5161
5161
  }
5162
- const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.2" ? installed : running !== undefined && running.version !== "0.10.10-alpha.2" ? "0.10.10-alpha.2" : undefined;
5162
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : undefined;
5163
5163
  if (updatedTo === undefined) throw error;
5164
5164
  const application = typeof running?.name === "string" ? running.name : "atomic";
5165
5165
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -1,16 +1,16 @@
1
1
  import { __name } from "./rolldown-runtime-BGM3D5V3.js";
2
2
  import { APP_NAME, APP_TITLE, CHANGELOG_URL, CONFIG_DIR_NAME, UpdatedInstallError, VERSION, VERSION_ADOPTION_ENDPOINT, canonicalizePathAsync, createChildProcessEnvironment, createModuleRequire, detectInstallChangeAsync, engineHeapRuntimeArgsForHost, findHelperExecutableAsync, getAgentDir, getAuthPath, getChangelogPath, getCwdRelativePath, getDebugLogPath, getDocsPath, getShareViewerUrl, helperLaunchAsync, isModuleLoadFailure, loadOnDemand, markLifecycleTiming, missingHelperOptions, processCompileCacheDeferral, setDebugSetting, shortenHomePath, updatedInstallError } from "./p0-cli-BB45ZQY6.js";
3
- import { BUILTIN_SLASH_COMMANDS, BUNDLED_EXTENSION_SLASH_COMMANDS, CountdownTimer, DynamicBorder, MissingSessionCwdError, NO_QUEUED_MESSAGES, TrustDecisionSelector, asyncScope, carryRowSource, chatPosition, chatReceipt, deduplicateDiagnostics, defaultModelPerProvider, formatMissingSessionCwdPrompt, formatNoModelsAvailableMessage, getEngineSessionStats, getMissingSessionCwdOptions, getPiUserAgent, isGitUnavailableError, isInstallTelemetryEnabled, isInteractiveEngineResourceReadinessError, isPathInside, isTrustDecision, isUnknownModel, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, noteRowSource, noteSavedSeq, onSessionProviderRequestDispatched, parseSlashCommand, placeTranscriptFrame, projectTrustWarningVisible, queuedMessagesUnderWay, quitAsInteractiveApp, recordStartupThinkingLevel, rowSource, safeTrustChoiceIndex, savedRowKey, savedSeqOf, setDeprecationWarningSink, setMarkitDiagnosticSink, shouldRenderEngineDiagnosticAsChatError, takeQueuedMessagesDroppedAt, usageCostBreakdown, userMessageOrigin, yieldToEventLoop, yieldToTimerTurn } from "./startup-0-0-4VG2G44V.js";
4
- import { ExtensionInputComponent, ExtensionSelectorComponent, ReopenedCompletionHeaders, cancelInitialBinding, createCustomMessage, ensurePngTranscoder, ensureTool, formatResumeTimings, formatToolStatus, getBuiltinExtensionEntryLabel, getPromptCacheTtlMs as getPromptCacheTtlMs$1, initialBindScope, isOfflineModeEnabled, isVerbatimCompactionMessage, isWorkspaceError, latestResumeTimings, normalizeMessageContent, prewarmModelApi, readHostInputFormRequest, registerInitialBindings, stripVerbatimCompactionPrefix, taskPromptHost, thinkingLevelForModelSwitch } from "./startup-0-1-XTIL65D4.js";
3
+ import { BUILTIN_SLASH_COMMANDS, BUNDLED_EXTENSION_SLASH_COMMANDS, CountdownTimer, DynamicBorder, MissingSessionCwdError, NO_QUEUED_MESSAGES, TrustDecisionSelector, asyncScope, carryRowSource, chatPosition, chatReceipt, deduplicateDiagnostics, findProviderDefaultModel, formatMissingSessionCwdPrompt, formatNoModelsAvailableMessage, getEngineSessionStats, getMissingSessionCwdOptions, getPiUserAgent, isGitUnavailableError, isInstallTelemetryEnabled, isInteractiveEngineResourceReadinessError, isPathInside, isTrustDecision, isUnknownModel, keepDroppedQueuedMessages, markEventLoopShutdown, markEventLoopStartupComplete, noteRowSource, noteSavedSeq, onSessionProviderRequestDispatched, parseSlashCommand, placeTranscriptFrame, projectTrustWarningVisible, queuedMessagesUnderWay, quitAsInteractiveApp, recordStartupThinkingLevel, rowSource, safeTrustChoiceIndex, savedRowKey, savedSeqOf, setDeprecationWarningSink, setMarkitDiagnosticSink, shouldRenderEngineDiagnosticAsChatError, takeQueuedMessagesDroppedAt, usageCostBreakdown, userMessageOrigin, yieldToEventLoop, yieldToTimerTurn } from "./startup-0-0-57KF6LZH.js";
4
+ import { ExtensionInputComponent, ExtensionSelectorComponent, ReopenedCompletionHeaders, cancelInitialBinding, createCustomMessage, ensurePngTranscoder, ensureTool, formatResumeTimings, formatToolStatus, getBuiltinExtensionEntryLabel, getPromptCacheTtlMs as getPromptCacheTtlMs$1, initialBindScope, isOfflineModeEnabled, isVerbatimCompactionMessage, isWorkspaceError, latestResumeTimings, normalizeMessageContent, prewarmModelApi, readHostInputFormRequest, registerInitialBindings, stripVerbatimCompactionPrefix, taskPromptHost, thinkingLevelForModelSwitch } from "./startup-0-1-GIY75K46.js";
5
5
  import { KeybindingsManager as KeybindingsManager$1, OVERLAY_ACTIVE_ROW_MARKER, Theme, clickableKeyTextHint, consumeStartupInput, formatKeyText, getAvailableThemes, getAvailableThemesWithPaths, getEditorTheme, getMarkdownTheme, getThemeByName, isNavHelpKey, keyDisplayText, keyHint, keyText, keyTextHint, loadAllHighlightLanguages, navEntryKeyParts, onThemeChange, recordTimeSinceReset, refreshCustomThemes, renderNavKeyOverlay, setRegisteredThemes, slashCommandHint, stopThemeWatcher, theme } from "./p2-shell-main-B2WIALFD.js";
6
6
  import { ProjectTrustStore, failureDebugFields, getProjectTrustPathAsync, hasTrustRequiringProjectResourcesAsync, reportDebugAsync } from "./p1b-elig-ENCUPKKJ.js";
7
7
  import { WorkingRunMeter, compactionMeta, findExactModelReferenceMatch, getPowerShellConfigAsync, killSupervisedProcessTrees, killTrackedDetachedChildren, runInProgress, sessionLifetime, showStartupInput, showStartupSelector, taskTranscriptSource } from "./startup-0-2-27OWFHV6.js";
8
8
  import { AtomicWorkedStatusComponent, AtomicWorkingLoader, DEFAULT_WORKING_MESSAGE, buildContextEntries, getOwnerTaskStore, isResumeFailure, parseGitUrl, resolveModelScopeFromModels, resolveModelScopeWithDiagnostics, sessionEntryToDisplayMessages, watchAtomicWorkingClock, watchOwnerTaskStoreBinding } from "./startup-0-3-T4DVFYWX.js";
9
9
  import { SESSION_HISTORY_SCAN_ENTRIES, findDecisionError, isDecisionConfigError, isRpcRequestAcceptedFailure, isRpcTransportFailure } from "./settings-startup-4QCVCI53.js";
10
10
  import { readAhead } from "./startup-8-0-34CBHPZH.js";
11
- import { CredentialSynchronizationError, DefaultPackageManager, chunkedToolResult, chunkedToolResultEntry, findInitialModel, firstSubagentAttempt, getSkillCatalog, isOAuthLoginCancelled, resolveRestoredModelReference, uncachedCopilotModelHint } from "./startup-0-5-FD2P735I.js";
11
+ import { CredentialSynchronizationError, DefaultPackageManager, chunkedToolResult, chunkedToolResultEntry, findInitialModel, firstSubagentAttempt, getSkillCatalog, isOAuthLoginCancelled, resolveRestoredModelReference, uncachedCopilotModelHint } from "./startup-0-5-YDW47QX6.js";
12
12
  import { formatModelLabel } from "./startup-0-4-ZMJV547D.js";
13
- import { ENGINE_SHUTDOWN_GRACE_MS, FooterDataProvider, appendBoundedStderr, compareWorktreeSnapshot, currentWorktreeSnapshots, describeExportedSnapshots, describeLastCapture, describeSnapshotExport, describeWorktreeRestoreStatus, describeWorktreeSnapshot, dismissedAgentPanelItems, ownerTaskViewSource, sourceError, subscribeAgentPanel, worktreeRestoreNotices } from "./startup-8-1-4KANEHRA.js";
13
+ import { ENGINE_SHUTDOWN_GRACE_MS, FooterDataProvider, appendBoundedStderr, compareWorktreeSnapshot, currentWorktreeSnapshots, describeExportedSnapshots, describeLastCapture, describeSnapshotExport, describeWorktreeRestoreStatus, describeWorktreeSnapshot, dismissedAgentPanelItems, ownerTaskViewSource, sourceError, subscribeAgentPanel, worktreeRestoreNotices } from "./startup-8-1-X32CYSXB.js";
14
14
  import { tryExecuteSessionSlashCommand } from "./startup-15-0-YUKGAC63.js";
15
15
  import { SessionManager } from "./startup-10-0-TDQNBDDL.js";
16
16
  import { IsolatedInteractiveRuntime, SessionImportFileNotFoundError, parseSkillBlock, sessionCloseReason } from "./startup-15-1-4S7FLMNG.js";
@@ -27225,11 +27225,9 @@ InteractiveModeBase.prototype.completeProviderAuthentication = async function(pr
27225
27225
  const providerModels = this.session.modelRuntime.getAvailableSnapshot().filter((model) => model.provider === providerId);
27226
27226
  if (providerId === "llama.cpp") selectionError = llamaCppPostLoginGuidance(actionLabel, providerModels.length);
27227
27227
  else if (!hasDefaultModelProvider(providerId)) selectionError = `${actionLabel}, but no default model is configured for provider "${providerId}". Use /model to select a model.`;
27228
- else if (providerModels.length === 0) selectionError = `${actionLabel}, but no models are available for that provider. Use /model to select a model.`;
27229
27228
  else {
27230
- const defaultModelId = defaultModelPerProvider[providerId];
27231
- selectedModel = providerModels.find((model) => model.id === defaultModelId);
27232
- if (!selectedModel) selectionError = `${actionLabel}, but its default model "${defaultModelId}" is not available. Use /model to select a model.`;
27229
+ selectedModel = findProviderDefaultModel(providerId, providerModels);
27230
+ if (!selectedModel) selectionError = `${actionLabel}, but no models are available for that provider. Use /model to select a model.`;
27233
27231
  else try {
27234
27232
  await this.session.setModel(selectedModel);
27235
27233
  } catch (error) {
@@ -28172,7 +28170,7 @@ function __atomicOnDemandFailed(error, feature) {
28172
28170
  return (async () => {
28173
28171
  const root = new URL("../", import.meta.url);
28174
28172
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
28175
- const key = `${root.href}#0.10.10-alpha.2`;
28173
+ const key = `${root.href}#0.10.11-alpha.1`;
28176
28174
  let release = releases.get(key);
28177
28175
  if (release === undefined) {
28178
28176
  const current = (async () => {
@@ -28200,7 +28198,7 @@ function __atomicOnDemandFailed(error, feature) {
28200
28198
  } catch {
28201
28199
  // No installation to read, as in a bundle of the package: the release the process runs decides.
28202
28200
  }
28203
- const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.2" ? installed : running !== undefined && running.version !== "0.10.10-alpha.2" ? "0.10.10-alpha.2" : undefined;
28201
+ const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : undefined;
28204
28202
  if (updatedTo === undefined) throw error;
28205
28203
  const application = typeof running?.name === "string" ? running.name : "atomic";
28206
28204
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {