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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +22 -15
  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 +2 -2
  7. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +2 -2
  8. package/dist/_shared/mode-shared-2QJSCUM6.js +2 -2
  9. package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
  10. package/dist/_shared/sdk-RRLVN7ER.js +2 -2
  11. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  12. package/dist/_shared/startup-0-0-4VG2G44V.js +2 -2
  13. package/dist/_shared/startup-0-1-XTIL65D4.js +2 -2
  14. package/dist/_shared/startup-0-2-27OWFHV6.js +7 -6
  15. package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -1
  16. package/dist/_shared/startup-0-3-T4DVFYWX.js +2 -2
  17. package/dist/_shared/startup-0-4-ZMJV547D.js +2 -2
  18. package/dist/_shared/startup-0-5-FD2P735I.js +2 -2
  19. package/dist/_shared/startup-10-0-TDQNBDDL.js +2 -2
  20. package/dist/_shared/startup-15-1-4S7FLMNG.js +2 -2
  21. package/dist/_shared/startup-8-0-34CBHPZH.js +2 -2
  22. package/dist/_shared/startup-8-1-4KANEHRA.js +2 -2
  23. package/dist/_shared/storage-command-7MGXLJGZ.js +2 -2
  24. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  25. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  26. package/dist/builtin/intercom/README.md +4 -4
  27. package/dist/builtin/intercom/index.bundle.mjs +1 -1
  28. package/dist/builtin/intercom/package.json +1 -1
  29. package/dist/builtin/mcp/README.md +28 -4
  30. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  31. package/dist/builtin/mcp/package.json +1 -1
  32. package/dist/builtin/subagents/README.md +3 -3
  33. package/dist/builtin/subagents/package.json +1 -1
  34. package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
  35. package/dist/builtin/web-access/README.md +2 -2
  36. package/dist/builtin/web-access/index.bundle.mjs +1 -1
  37. package/dist/builtin/web-access/package.json +1 -1
  38. package/dist/cli/auth-cli.impl.js +3 -3
  39. package/dist/cli/auth-cli.js +3 -3
  40. package/dist/cli/blueprint-command.impl.js +3 -3
  41. package/dist/cli/blueprint-command.js +3 -3
  42. package/dist/cli/intercom-command.code.js +2 -2
  43. package/dist/cli/intercom-command.impl.js +3 -3
  44. package/dist/cli/intercom-command.js +3 -3
  45. package/dist/cli/list-models.impl.js +3 -3
  46. package/dist/cli/list-models.js +3 -3
  47. package/dist/cli/session-picker.impl.js +3 -3
  48. package/dist/cli/session-picker.js +3 -3
  49. package/dist/cli/startup-ui.impl.js +3 -3
  50. package/dist/cli/startup-ui.js +3 -3
  51. package/dist/cli/storage-command.impl.js +3 -3
  52. package/dist/cli/storage-command.js +3 -3
  53. package/dist/cli/storage-search-session.impl.js +3 -3
  54. package/dist/cli/storage-search-session.js +3 -3
  55. package/dist/cli/team-command.impl.js +3 -3
  56. package/dist/cli/team-command.js +3 -3
  57. package/dist/cli.js +2 -2
  58. package/dist/core/debug.impl.js +3 -3
  59. package/dist/core/debug.js +3 -3
  60. package/dist/core/export-html/card-projection.impl.js +3 -3
  61. package/dist/core/export-html/card-projection.js +3 -3
  62. package/dist/core/export-html/index.code.js +2 -2
  63. package/dist/core/export-html/index.impl.js +3 -3
  64. package/dist/core/export-html/index.js +3 -3
  65. package/dist/core/export-html/json-spans.impl.js +3 -3
  66. package/dist/core/export-html/json-spans.js +3 -3
  67. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  68. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  69. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  70. package/dist/core/export-html/tool-renderer.js +3 -3
  71. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  72. package/dist/core/extensions/jiti-loader.js +3 -3
  73. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  74. package/dist/core/extensions/jiti-static-loader.js +3 -3
  75. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  76. package/dist/core/extensions/loader-host-modules.js +3 -3
  77. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  78. package/dist/core/intercom-broker-control-host.js +3 -3
  79. package/dist/core/intercom-broker-control.code.js +2 -2
  80. package/dist/core/intercom-broker-control.impl.js +3 -3
  81. package/dist/core/intercom-broker-control.js +3 -3
  82. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  83. package/dist/core/package-manager-storage-adapters.js +3 -3
  84. package/dist/core/sdk.impl.js +3 -3
  85. package/dist/core/sdk.js +3 -3
  86. package/dist/core/session-manager-core.js +2 -2
  87. package/dist/core/session-manager-list.impl.js +3 -3
  88. package/dist/core/session-manager-list.js +3 -3
  89. package/dist/core/session-manager.impl.js +3 -3
  90. package/dist/core/session-manager.js +3 -3
  91. package/dist/core/session-storage.impl.js +3 -3
  92. package/dist/core/session-storage.js +3 -3
  93. package/dist/core/storage/index.js +2 -2
  94. package/dist/core/storage/node-sqlite-thread.js +2 -2
  95. package/dist/core/storage/node-sqlite.js +2 -2
  96. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  97. package/dist/core/storage/offline-snapshot-file.js +3 -3
  98. package/dist/core/storage/provider.js +2 -2
  99. package/dist/core/storage/selection.js +2 -2
  100. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  101. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  102. package/dist/core/storage/session/branch-fork-source.js +3 -3
  103. package/dist/core/storage/session/card-view.impl.js +3 -3
  104. package/dist/core/storage/session/card-view.js +3 -3
  105. package/dist/core/storage/session/child-reader.code.js +2 -2
  106. package/dist/core/storage/session/child-reader.impl.js +3 -3
  107. package/dist/core/storage/session/child-reader.js +3 -3
  108. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  109. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  110. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  111. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  112. package/dist/core/storage/session/expanded-child-details.js +3 -3
  113. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  114. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  115. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  116. package/dist/core/storage/session/fork-row-index.js +3 -3
  117. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  118. package/dist/core/storage/session/fork-staging.js +3 -3
  119. package/dist/core/storage/session/fork-window.code.js +2 -2
  120. package/dist/core/storage/session/fork-window.impl.js +3 -3
  121. package/dist/core/storage/session/fork-window.js +3 -3
  122. package/dist/core/storage/session/history-pages.impl.js +3 -3
  123. package/dist/core/storage/session/history-pages.js +3 -3
  124. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  125. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  126. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  127. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  128. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  129. package/dist/core/storage/session/memory-session-store.js +3 -3
  130. package/dist/core/storage/session/pinned-branch-resume.code.js +2 -2
  131. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  132. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  133. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  134. package/dist/core/storage/session/released-history-files.js +3 -3
  135. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  136. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  137. package/dist/core/storage/session/session-resume.impl.js +3 -3
  138. package/dist/core/storage/session/session-resume.js +3 -3
  139. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  140. package/dist/core/storage/session/snapshot-cut.js +3 -3
  141. package/dist/core/storage/session/snapshot-history.code.js +2 -2
  142. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  143. package/dist/core/storage/session/snapshot-history.js +3 -3
  144. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  145. package/dist/core/storage/session/sql-session-store.js +3 -3
  146. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  147. package/dist/core/storage/session/tree-outline.js +3 -3
  148. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  149. package/dist/core/storage/session/tree-presentation.js +3 -3
  150. package/dist/core/storage/storage-status.impl.js +3 -3
  151. package/dist/core/storage/storage-status.js +3 -3
  152. package/dist/core/storage/team.impl.js +3 -3
  153. package/dist/core/storage/team.js +3 -3
  154. package/dist/core/structured-output/index.impl.js +3 -3
  155. package/dist/core/structured-output/index.js +3 -3
  156. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  157. package/dist/core/tasks/task-completion-entry.js +3 -3
  158. package/dist/core/tasks/task-file-history.code.js +2 -2
  159. package/dist/core/tasks/task-file-history.impl.js +3 -3
  160. package/dist/core/tasks/task-file-history.js +3 -3
  161. package/dist/core/tasks/task-reference-archive.code.js +2 -2
  162. package/dist/core/tasks/task-reference-archive.js +3 -3
  163. package/dist/core/tasks/task-reference-identity.js +3 -3
  164. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  165. package/dist/core/tasks/task-reference-stream.js +3 -3
  166. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  167. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  168. package/dist/core/tasks/task-view-source.impl.js +3 -3
  169. package/dist/core/tasks/task-view-source.js +3 -3
  170. package/dist/core/tools/read-url.impl.js +3 -3
  171. package/dist/core/tools/read-url.js +3 -3
  172. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  173. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  174. package/dist/core/worktree-snapshot/errors.js +3 -3
  175. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  176. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  177. package/dist/extensions/codemode/execute.impl.js +3 -3
  178. package/dist/extensions/codemode/execute.js +3 -3
  179. package/dist/extensions/codemode/renderer.impl.js +3 -3
  180. package/dist/extensions/codemode/renderer.js +3 -3
  181. package/dist/extensions/mcp/cli.impl.js +3 -3
  182. package/dist/extensions/mcp/cli.js +3 -3
  183. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  184. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  185. package/dist/extensions/mcp/cli.lazy.js +3 -3
  186. package/dist/extensions/mcp/runtime.impl.js +3 -3
  187. package/dist/extensions/mcp/runtime.js +3 -3
  188. package/dist/main-first-time-setup.impl.js +3 -3
  189. package/dist/main-first-time-setup.js +3 -3
  190. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  191. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  192. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  193. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  194. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  195. package/dist/package-manager-cli.code.js +2 -2
  196. package/dist/package-manager-cli.impl.js +3 -3
  197. package/dist/package-manager-cli.js +3 -3
  198. package/dist/startup-files.json +1 -1
  199. package/dist/utils/startup-database-spare.impl.js +3 -3
  200. package/dist/utils/startup-database-spare.js +3 -3
  201. package/dist/utils/tools-manager.impl.js +3 -3
  202. package/dist/utils/tools-manager.js +3 -3
  203. package/docs/background-tasks.md +8 -5
  204. package/docs/build.md +11 -6
  205. package/docs/changelog.mdx +1 -1
  206. package/docs/codemode.md +10 -2
  207. package/docs/compaction/reference.md +6 -4
  208. package/docs/compaction.md +3 -3
  209. package/docs/containerization.md +13 -5
  210. package/docs/custom-provider/api-reference.md +8 -6
  211. package/docs/custom-provider/oauth.md +4 -4
  212. package/docs/custom-provider/registration.md +3 -3
  213. package/docs/custom-provider.md +8 -8
  214. package/docs/development.md +40 -5
  215. package/docs/docs.json +21 -5
  216. package/docs/environment-variables.md +20 -18
  217. package/docs/extensions/api-reference.md +8 -6
  218. package/docs/extensions/authoring.md +4 -4
  219. package/docs/extensions.md +43 -6
  220. package/docs/guides/configuration.md +21 -1
  221. package/docs/guides/intercom.md +4 -0
  222. package/docs/guides/non-interactive.md +4 -2
  223. package/docs/guides/orchestration.md +4 -2
  224. package/docs/guides/resume-on-any-machine.md +12 -6
  225. package/docs/guides/subagents.md +4 -0
  226. package/docs/guides/team-setup.md +13 -2
  227. package/docs/guides.md +10 -4
  228. package/docs/herdr.md +4 -4
  229. package/docs/index.md +12 -4
  230. package/docs/intercom/operations.md +26 -4
  231. package/docs/intercom/reference.md +25 -3
  232. package/docs/intercom.md +13 -5
  233. package/docs/json.md +2 -0
  234. package/docs/keybindings.md +17 -4
  235. package/docs/libraries/agent-core.md +4 -2
  236. package/docs/libraries/ai.md +71 -53
  237. package/docs/libraries/codemode.md +3 -2
  238. package/docs/libraries/schema.md +5 -2
  239. package/docs/libraries/storage-libsql.md +92 -0
  240. package/docs/libraries/storage-postgres.md +119 -0
  241. package/docs/libraries/telemetry.md +35 -2
  242. package/docs/libraries.md +23 -6
  243. package/docs/llama-cpp.md +2 -2
  244. package/docs/mcp-servers.md +50 -4
  245. package/docs/models/reference.md +13 -9
  246. package/docs/models-configuration.md +7 -7
  247. package/docs/models.md +18 -8
  248. package/docs/orchestration/migrating-workflows.md +2 -2
  249. package/docs/orchestration/patterns.md +8 -8
  250. package/docs/orchestration.md +5 -3
  251. package/docs/packages/authoring.md +3 -1
  252. package/docs/packages/reference.md +3 -1
  253. package/docs/packages.md +5 -3
  254. package/docs/programmatic.md +14 -8
  255. package/docs/prompt-templates.md +5 -3
  256. package/docs/providers/reference.md +7 -7
  257. package/docs/providers.md +22 -10
  258. package/docs/quickstart.md +13 -11
  259. package/docs/reference/cli.md +10 -5
  260. package/docs/reference.md +8 -4
  261. package/docs/rpc/examples.md +47 -0
  262. package/docs/rpc/extension-ui.md +7 -1
  263. package/docs/rpc/protocol.md +3 -2
  264. package/docs/rpc.md +3 -1
  265. package/docs/sdk/reference.md +144 -38
  266. package/docs/sdk/storage.md +614 -0
  267. package/docs/sdk/structured-decisions.md +77 -4
  268. package/docs/sdk/web-server.md +3 -2
  269. package/docs/sdk.md +26 -115
  270. package/docs/security.md +17 -7
  271. package/docs/session-format.md +38 -24
  272. package/docs/sessions.md +21 -15
  273. package/docs/settings.md +17 -14
  274. package/docs/skills.md +47 -3
  275. package/docs/storage.md +38 -24
  276. package/docs/subagents/authoring.md +3 -1
  277. package/docs/subagents/reference.md +8 -2
  278. package/docs/subagents.md +35 -6
  279. package/docs/terminal-setup.md +1 -1
  280. package/docs/themes.md +5 -3
  281. package/docs/tmux.md +4 -4
  282. package/docs/tools.md +11 -0
  283. package/docs/usage.md +25 -15
  284. package/docs/web-access.md +35 -0
  285. package/docs/windows.md +9 -6
  286. package/docs/worktree-snapshots.md +22 -11
  287. package/examples/sdk/11-sessions.ts +4 -4
  288. package/package.json +8 -8
  289. package/schemas/models.schema.json +7 -7
package/CHANGELOG.md CHANGED
@@ -2,6 +2,32 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.10.10-alpha.2] - 2026-11-24
6
+
7
+ 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.
8
+
9
+ **SDK storage and standalone library docs**
10
+
11
+ - **Dedicated SDK storage guide.** 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` ([#6555](https://github.com/bastani-inc/atomic/pull/6555))
12
+ - **Storage adapter library pages and catalog.** Added `/libraries/storage-postgres` and `/libraries/storage-libsql` alongside the six core libraries in `/libraries`, grouped SDK guides under **Build → Embed and integrate → TypeScript SDK**, and added convenience redirects (`/postgres`, `/libsql`, `/turso`, `/decisions`, `/compactors`, `/blueprints`) ([#6555](https://github.com/bastani-inc/atomic/pull/6555))
13
+
14
+ **Discoverability and accuracy**
15
+
16
+ - **Routing tables, signposts, and SDK wiring recipes.** Added "Where to configure what" and CLI-vs-SDK routing tables on storage, sessions, configuration, providers, models, and hub pages, added top-of-page signposts across subagents, Intercom, and orchestration docs, and documented SDK wiring for MCP, skills, tools, codemode, subagents, Intercom, and web access ([#6555](https://github.com/bastani-inc/atomic/pull/6555))
17
+ - **Code-verified doc and schema fixes.** Fixed `SessionManager.listAll()`, `sm.getBranch()`, `sessionManager.forkTo()`, `openSessionById()`, `MemorySessionStore` disk-spilling semantics, JSONL `exactDirectory` layout, PostgreSQL 16+ / `secrets.password` / `listenUrl` rules, `ATOMIC_SKIP_VERSION_CHECK` and `NODE_DISABLE_COMPILE_CACHE` parsing, `decisionModel` / `compactionModel` error triggers, compactor support across `models.json` / `custom-provider` / `models.schema.json`, broken anchors, and package READMEs ([#6555](https://github.com/bastani-inc/atomic/pull/6555))
18
+
19
+ ### Added
20
+
21
+ - 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)).
22
+
23
+ ### Changed
24
+
25
+ - Overhauled 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, and clarified `models.schema.json` / `docs/models-configuration.md` descriptions for chat vs. compactor defaults and overrides ([#6555](https://github.com/bastani-inc/atomic/pull/6555)).
26
+
27
+ ### Fixed
28
+
29
+ - 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)).
30
+
5
31
  ## [0.10.10-alpha.1] - 2026-11-24
6
32
 
7
33
  Atomic adds configurable remote compaction models with live switching and typed compaction errors, remembers your last selected row in the agent panel, drops redundant multi-provider scope warnings, and fixes dozens of CLI, tool, subagent, Intercom, TUI, and Web Access bugs found during a full docs audit.
package/README.md CHANGED
@@ -17,9 +17,9 @@
17
17
 
18
18
  ---
19
19
 
20
- Atomic is a terminal coding-agent runtime. Use built-in tools for file edits and shell commands, codemode to script multi-step checks, and subagents to delegate work to isolated contexts. Extend Atomic with TypeScript [extensions](#extensions), [skills](#skills), [prompt templates](#prompt-templates), and [themes](#themes), or share them as [Atomic packages](#atomic-packages) via npm or git.
20
+ Atomic is a terminal coding-agent runtime. Use built-in tools for file edits and shell commands, [codemode](docs/codemode.md) to script multi-step checks, and [subagents](docs/subagents.md) to delegate work to isolated contexts. Extend Atomic with TypeScript [extensions](#extensions), [skills](#skills), [prompt templates](#prompt-templates), and [themes](#themes), or share them as [Atomic packages](#atomic-packages) via npm or git.
21
21
 
22
- Atomic bundles first-party integrations for subagents, MCP, web access, and Intercom. See [Orchestration](docs/orchestration.md) for multi-step tasks and [Migrating workflows](docs/orchestration/migrating-workflows.md) to convert an earlier workflow file to a skill.
22
+ Atomic bundles first-party integrations for [subagents](docs/subagents.md), [MCP servers](docs/mcp-servers.md), [web access](docs/web-access.md), and [Intercom](docs/intercom.md). Sessions save to local SQLite by default or share state across machines over PostgreSQL or libSQL/Turso ([Storage](docs/storage.md)), with [worktree snapshots](docs/worktree-snapshots.md) and [environment blueprints](docs/guides/resume-on-any-machine.md#set-the-environment-up-with-a-blueprint) for cross-machine resume. See [Orchestration](docs/orchestration.md) for multi-step tasks and [Migrating workflows](docs/orchestration/migrating-workflows.md) to convert an earlier workflow file to a skill.
23
23
 
24
24
  Run Atomic interactively, in print or JSON mode, over RPC for process integration, or embedded through the TypeScript SDK.
25
25
 
@@ -85,7 +85,7 @@ atomic
85
85
 
86
86
  By default, Atomic provides built-in coding tools (`read`, `bash`, `kill`, `edit`, `write`, `find`, `search`, `ask_user_question`, `todo`, `codemode`, plus `powershell` on native Windows when available). `edit` performs exact-text replacement without requiring an earlier `read`. See [docs/tools.md](docs/tools.md).
87
87
 
88
- **Platform guides:** [Windows](docs/windows.md) | [Alpine/musl Linux](docs/getting-started/installation.md#alpine-and-musl-linux-archives) | [Termux (Android)](docs/termux.md) | [tmux](docs/tmux.md) | [Terminal setup](docs/terminal-setup.md) | [Shell aliases](docs/shell-aliases.md)
88
+ **Platform guides:** [Windows](docs/windows.md) | [Alpine/musl Linux](docs/getting-started/installation.md#alpine-and-musl-linux-archives) | [Termux (Android)](docs/termux.md) | [tmux](docs/tmux.md) | [Herdr](docs/herdr.md) | [Terminal setup](docs/terminal-setup.md) | [Shell aliases](docs/shell-aliases.md)
89
89
 
90
90
  ---
91
91
 
@@ -177,7 +177,7 @@ Type `/` in the editor to browse commands. [Extensions](#extensions) register cu
177
177
  | `/changelog` | Show version history |
178
178
  | `/exit`, `/quit` | Exit Atomic |
179
179
 
180
- **Bundled extension commands:** `/agents` (browse subagents), `/mcp` (manage MCP servers), `/intercom` (open session Intercom overlay), `/websearch` (open search curator), `/curator` (toggle or configure the search curator workflow), `/search` (browse stored web search results), `/google-account` (show the active Google account for Gemini Web), and `/llama` (manage `llama.cpp` router models).
180
+ **Bundled extension commands:** `/agents` ([subagents](docs/subagents.md)), `/mcp` ([MCP servers](docs/mcp-servers.md)), `/intercom` ([Intercom](docs/intercom.md)), `/websearch`, `/curator`, `/search`, `/google-account` ([web access](docs/web-access.md)), and `/llama` ([`llama.cpp`](docs/llama-cpp.md) router models).
181
181
 
182
182
  ### Keyboard shortcuts
183
183
 
@@ -211,11 +211,11 @@ Configure `steeringMode` and `followUpMode` (`"one-at-a-time"` default, or `"all
211
211
 
212
212
  ## Sessions
213
213
 
214
- Sessions store an append-only tree of entries (`id` and `parentId`), enabling in-place branching in one session. See [docs/session-format.md](docs/session-format.md).
214
+ Sessions store an append-only tree of entries (`id` and `parentId`), enabling in-place branching in one session. See [docs/session-format.md](docs/session-format.md), [docs/storage.md](docs/storage.md), [docs/worktree-snapshots.md](docs/worktree-snapshots.md), and [Resume on any machine & blueprints](docs/guides/resume-on-any-machine.md#set-the-environment-up-with-a-blueprint).
215
215
 
216
216
  ### Management
217
217
 
218
- Sessions auto-save per working directory in the default local SQLite store (`~/.atomic/workflows/journal.sqlite`). Legacy `~/.atomic/agent/sessions/` and `~/.pi/agent/sessions/` JSONL files remain readable.
218
+ Sessions auto-save per working directory in the default local SQLite store (`~/.atomic/workflows/journal.sqlite`), or in a shared PostgreSQL or Turso/libSQL database via [Storage backends](docs/storage.md). Legacy `~/.atomic/agent/sessions/` and `~/.pi/agent/sessions/` JSONL files remain readable.
219
219
 
220
220
  ```bash
221
221
  atomic -c # Continue the most recent session
@@ -244,7 +244,7 @@ Run `/session` interactively to copy the current session ID for `--session`, `--
244
244
 
245
245
  ### Compaction
246
246
 
247
- When a session approaches the context limit, compaction clears the active context window without a model call by default. Atomic leaves a recovery pointer telling the agent where earlier history lives and what to recover first (`<keepContext>` spans, requests, and constraints) using `read` and `search`. Setting `compactionModel` (such as `morph/morph-compactor`) replaces the context with that model's summary instead.
247
+ When a session approaches the context limit, compaction clears the active context window without a model call by default. Atomic leaves a recovery pointer telling the agent where earlier history lives and what to recover first (`<keepContext>` spans, requests, and constraints) using `read` and `search`. Setting `compactionModel` (such as `morph/morph-compactor` or a [custom remote compactor](docs/compaction.md#customize-morph-or-add-a-remote-compactor)) replaces the context with that model's summary instead.
248
248
 
249
249
  - **Manual:** Run `/compact [instructions]` (instructions guide what the agent recovers first).
250
250
  - **Automatic:** Enabled by default on context overflow (compacts and retries once) or near the limit. Configure in `/settings` or `settings.json`.
@@ -425,17 +425,24 @@ See [docs/packages.md](docs/packages.md).
425
425
  ### SDK
426
426
 
427
427
  ```typescript
428
- import { createAgentSession, SessionManager } from "@bastani/atomic";
428
+ import { createAgentSession } from "@bastani/atomic";
429
429
 
430
430
  // Builds a ModelRuntime from the active agent directory's auth.json and models.json by default.
431
+ // Pass `sessionStore` for SQLite, JSONL, in-memory, libSQL/Turso, or PostgreSQL persistence.
431
432
  const { session } = await createAgentSession({
432
- sessionManager: SessionManager.inMemory(),
433
+ sessionStore: { kind: "sqlite", path: "./sessions.sqlite" },
433
434
  });
434
435
 
435
- await session.prompt("What files are in the current directory?");
436
+ try {
437
+ await session.prompt("What files are in the current directory?");
438
+ } finally {
439
+ await session.dispose();
440
+ }
436
441
  ```
437
442
 
438
- For multi-session runtime replacement, use `createAgentSessionRuntime()` and `AgentSessionRuntime`. See [docs/sdk.md](docs/sdk.md) and [examples/sdk/](examples/sdk/).
443
+ - **Storage backends:** Configure SQLite, JSONL, in-memory, libSQL/Turso (`@bastani/atomic-storage-libsql`), and PostgreSQL 16+ (`@bastani/atomic-storage-postgres`) with `createAgentSession()` or `createAgentSessionRuntime()`. See [SDK storage backends](docs/sdk/storage.md) ([docs.bastani.ai/sdk/storage](https://docs.bastani.ai/sdk/storage)).
444
+ - **Structured decisions:** Make typed, schema-validated classifier or chat decisions without starting a session using `decide()` and `generateStructuredOutput()`. See [Structured decisions](docs/sdk/structured-decisions.md).
445
+ - **Multi-session runtimes and guides:** See [docs/sdk.md](docs/sdk.md), [docs/sdk/web-server.md](docs/sdk/web-server.md), and [examples/sdk/](examples/sdk/).
439
446
 
440
447
  ### RPC mode
441
448
 
@@ -488,7 +495,7 @@ atomic mcp <add|remove|list|login|logout>
488
495
  atomic storage <status|join|migrate|move-snapshot-chunks|search-session|export|import>
489
496
  atomic team <join|status|leave>
490
497
  atomic intercom <status|restart|upgrade>
491
- atomic blueprint <cache-key|prebuild>
498
+ atomic blueprint <cache-key|prebuild> # Environment blueprint cache keys and worktree prebuilds
492
499
  ```
493
500
 
494
501
  Run `atomic <command> --help` for full subcommand options, or see [docs/reference/cli.md](docs/reference/cli.md).
@@ -658,6 +665,6 @@ MIT
658
665
  - [@bastani/atomic-tui](https://www.npmjs.com/package/@bastani/atomic-tui): Differential terminal UI library
659
666
  - [@bastani/atomic-codemode](https://www.npmjs.com/package/@bastani/atomic-codemode): Sandboxed JavaScript execution for tool scripting
660
667
  - [@bastani/atomic-schema](https://www.npmjs.com/package/@bastani/atomic-schema): TypeScript-first JSON Schema builder and validator
661
- - [@bastani/atomic-telemetry](https://www.npmjs.com/package/@bastani/atomic-telemetry): Typed OpenTelemetry span helpers and renderers
662
- - [@bastani/atomic-storage-libsql](https://www.npmjs.com/package/@bastani/atomic-storage-libsql): Optional Turso / libSQL storage adapter
663
- - [@bastani/atomic-storage-postgres](https://www.npmjs.com/package/@bastani/atomic-storage-postgres): Optional PostgreSQL storage adapter
668
+ - [@bastani/atomic-telemetry](https://www.npmjs.com/package/@bastani/atomic-telemetry): Vendor-neutral telemetry contracts, metrics, and trace renderers ([docs](docs/libraries/telemetry.md))
669
+ - [@bastani/atomic-storage-libsql](https://www.npmjs.com/package/@bastani/atomic-storage-libsql): Optional Turso / libSQL storage adapter ([docs](docs/libraries/storage-libsql.md))
670
+ - [@bastani/atomic-storage-postgres](https://www.npmjs.com/package/@bastani/atomic-storage-postgres): Optional PostgreSQL 16+ storage adapter ([docs](docs/libraries/storage-postgres.md))
@@ -31842,7 +31842,7 @@ function __atomicOnDemandFailed(error, feature) {
31842
31842
  return (async () => {
31843
31843
  const root = new URL("../", import.meta.url);
31844
31844
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
31845
- const key = `${root.href}#0.10.10-alpha.1`;
31845
+ const key = `${root.href}#0.10.10-alpha.2`;
31846
31846
  let release = releases.get(key);
31847
31847
  if (release === undefined) {
31848
31848
  const current = (async () => {
@@ -31870,7 +31870,7 @@ function __atomicOnDemandFailed(error, feature) {
31870
31870
  } catch {
31871
31871
  // No installation to read, as in a bundle of the package: the release the process runs decides.
31872
31872
  }
31873
- const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.1" ? installed : running !== undefined && running.version !== "0.10.10-alpha.1" ? "0.10.10-alpha.1" : undefined;
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;
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.1`;
43
+ const key = `${root.href}#0.10.10-alpha.2`;
44
44
  let release = releases.get(key);
45
45
  if (release === undefined) {
46
46
  const current = (async () => {
@@ -68,7 +68,7 @@ function __atomicOnDemandFailed(error, feature) {
68
68
  } catch {
69
69
  // No installation to read, as in a bundle of the package: the release the process runs decides.
70
70
  }
71
- const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.1" ? installed : running !== undefined && running.version !== "0.10.10-alpha.1" ? "0.10.10-alpha.1" : undefined;
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;
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.1`;
5134
+ const key = `${root.href}#0.10.10-alpha.2`;
5135
5135
  let release = releases.get(key);
5136
5136
  if (release === undefined) {
5137
5137
  const current = (async () => {
@@ -5159,7 +5159,7 @@ function __atomicOnDemandFailed(error, feature) {
5159
5159
  } catch {
5160
5160
  // No installation to read, as in a bundle of the package: the release the process runs decides.
5161
5161
  }
5162
- const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.1" ? installed : running !== undefined && running.version !== "0.10.10-alpha.1" ? "0.10.10-alpha.1" : undefined;
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;
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}.`, {
@@ -28172,7 +28172,7 @@ function __atomicOnDemandFailed(error, feature) {
28172
28172
  return (async () => {
28173
28173
  const root = new URL("../", import.meta.url);
28174
28174
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
28175
- const key = `${root.href}#0.10.10-alpha.1`;
28175
+ const key = `${root.href}#0.10.10-alpha.2`;
28176
28176
  let release = releases.get(key);
28177
28177
  if (release === undefined) {
28178
28178
  const current = (async () => {
@@ -28200,7 +28200,7 @@ function __atomicOnDemandFailed(error, feature) {
28200
28200
  } catch {
28201
28201
  // No installation to read, as in a bundle of the package: the release the process runs decides.
28202
28202
  }
28203
- const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.1" ? installed : running !== undefined && running.version !== "0.10.10-alpha.1" ? "0.10.10-alpha.1" : undefined;
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;
28204
28204
  if (updatedTo === undefined) throw error;
28205
28205
  const application = typeof running?.name === "string" ? running.name : "atomic";
28206
28206
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -4175,7 +4175,7 @@ function __atomicOnDemandFailed(error, feature) {
4175
4175
  return (async () => {
4176
4176
  const root = new URL("../", import.meta.url);
4177
4177
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
4178
- const key = `${root.href}#0.10.10-alpha.1`;
4178
+ const key = `${root.href}#0.10.10-alpha.2`;
4179
4179
  let release = releases.get(key);
4180
4180
  if (release === undefined) {
4181
4181
  const current = (async () => {
@@ -4203,7 +4203,7 @@ function __atomicOnDemandFailed(error, feature) {
4203
4203
  } catch {
4204
4204
  // No installation to read, as in a bundle of the package: the release the process runs decides.
4205
4205
  }
4206
- const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.1" ? installed : running !== undefined && running.version !== "0.10.10-alpha.1" ? "0.10.10-alpha.1" : undefined;
4206
+ 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;
4207
4207
  if (updatedTo === undefined) throw error;
4208
4208
  const application = typeof running?.name === "string" ? running.name : "atomic";
4209
4209
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -27282,7 +27282,7 @@ function __atomicOnDemandFailed(error, feature) {
27282
27282
  return (async () => {
27283
27283
  const root = new URL("../", import.meta.url);
27284
27284
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
27285
- const key = `${root.href}#0.10.10-alpha.1`;
27285
+ const key = `${root.href}#0.10.10-alpha.2`;
27286
27286
  let release = releases.get(key);
27287
27287
  if (release === undefined) {
27288
27288
  const current = (async () => {
@@ -27310,7 +27310,7 @@ function __atomicOnDemandFailed(error, feature) {
27310
27310
  } catch {
27311
27311
  // No installation to read, as in a bundle of the package: the release the process runs decides.
27312
27312
  }
27313
- const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.1" ? installed : running !== undefined && running.version !== "0.10.10-alpha.1" ? "0.10.10-alpha.1" : undefined;
27313
+ 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;
27314
27314
  if (updatedTo === undefined) throw error;
27315
27315
  const application = typeof running?.name === "string" ? running.name : "atomic";
27316
27316
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -204,7 +204,7 @@ const INTERACTIVE_ENGINE_PREWARM_DEFAULT_MODEL_API_FLAG = `${INTERACTIVE_ENGINE_
204
204
  const INTERACTIVE_ENGINE_PREWARM_HANDOFF_FLAG = `${INTERACTIVE_ENGINE_PREWARM_FLAG}-handoff`;
205
205
  const PREWARM_HOST_ARGUMENTS_MAX_LENGTH = 8192;
206
206
  const PREWARM_READY_MAX_BYTES = 4096;
207
- const PREWARM_BUILD_STAMP = "35cd8315956c812c472356b688aa9a";
207
+ const PREWARM_BUILD_STAMP = "bf024ae920a0762266a3cc2a9f1aa4";
208
208
  const PREWARM_BUILD_STAMP_UNSTAMPED = ["__ATOMIC_PREWARM", "BUILD_STAMP__"].join("_");
209
209
  function prewarmBuildIdentity() {
210
210
  if (PREWARM_BUILD_STAMP === PREWARM_BUILD_STAMP_UNSTAMPED) return void 0;
@@ -568,7 +568,7 @@ function __atomicOnDemandFailed(error, feature) {
568
568
  return (async () => {
569
569
  const root = new URL("../", import.meta.url);
570
570
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
571
- const key = `${root.href}#0.10.10-alpha.1`;
571
+ const key = `${root.href}#0.10.10-alpha.2`;
572
572
  let release = releases.get(key);
573
573
  if (release === undefined) {
574
574
  const current = (async () => {
@@ -596,7 +596,7 @@ function __atomicOnDemandFailed(error, feature) {
596
596
  } catch {
597
597
  // No installation to read, as in a bundle of the package: the release the process runs decides.
598
598
  }
599
- const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.1" ? installed : running !== undefined && running.version !== "0.10.10-alpha.1" ? "0.10.10-alpha.1" : undefined;
599
+ 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;
600
600
  if (updatedTo === undefined) throw error;
601
601
  const application = typeof running?.name === "string" ? running.name : "atomic";
602
602
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -10286,7 +10286,7 @@ function __atomicOnDemandFailed(error, feature) {
10286
10286
  return (async () => {
10287
10287
  const root = new URL("../", import.meta.url);
10288
10288
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
10289
- const key = `${root.href}#0.10.10-alpha.1`;
10289
+ const key = `${root.href}#0.10.10-alpha.2`;
10290
10290
  let release = releases.get(key);
10291
10291
  if (release === undefined) {
10292
10292
  const current = (async () => {
@@ -10314,7 +10314,7 @@ function __atomicOnDemandFailed(error, feature) {
10314
10314
  } catch {
10315
10315
  // No installation to read, as in a bundle of the package: the release the process runs decides.
10316
10316
  }
10317
- const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.1" ? installed : running !== undefined && running.version !== "0.10.10-alpha.1" ? "0.10.10-alpha.1" : undefined;
10317
+ 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;
10318
10318
  if (updatedTo === undefined) throw error;
10319
10319
  const application = typeof running?.name === "string" ? running.name : "atomic";
10320
10320
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -221,7 +221,7 @@ function __atomicOnDemandFailed(error, feature) {
221
221
  return (async () => {
222
222
  const root = new URL("../", import.meta.url);
223
223
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
224
- const key = `${root.href}#0.10.10-alpha.1`;
224
+ const key = `${root.href}#0.10.10-alpha.2`;
225
225
  let release = releases.get(key);
226
226
  if (release === undefined) {
227
227
  const current = (async () => {
@@ -249,7 +249,7 @@ function __atomicOnDemandFailed(error, feature) {
249
249
  } catch {
250
250
  // No installation to read, as in a bundle of the package: the release the process runs decides.
251
251
  }
252
- const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.1" ? installed : running !== undefined && running.version !== "0.10.10-alpha.1" ? "0.10.10-alpha.1" : undefined;
252
+ 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;
253
253
  if (updatedTo === undefined) throw error;
254
254
  const application = typeof running?.name === "string" ? running.name : "atomic";
255
255
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -19644,7 +19644,7 @@ function __atomicOnDemandFailed(error, feature) {
19644
19644
  return (async () => {
19645
19645
  const root = new URL("../", import.meta.url);
19646
19646
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
19647
- const key = `${root.href}#0.10.10-alpha.1`;
19647
+ const key = `${root.href}#0.10.10-alpha.2`;
19648
19648
  let release = releases.get(key);
19649
19649
  if (release === undefined) {
19650
19650
  const current = (async () => {
@@ -19672,7 +19672,7 @@ function __atomicOnDemandFailed(error, feature) {
19672
19672
  } catch {
19673
19673
  // No installation to read, as in a bundle of the package: the release the process runs decides.
19674
19674
  }
19675
- const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.1" ? installed : running !== undefined && running.version !== "0.10.10-alpha.1" ? "0.10.10-alpha.1" : undefined;
19675
+ 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;
19676
19676
  if (updatedTo === undefined) throw error;
19677
19677
  const application = typeof running?.name === "string" ? running.name : "atomic";
19678
19678
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -19441,7 +19441,7 @@ function __atomicOnDemandFailed(error, feature) {
19441
19441
  return (async () => {
19442
19442
  const root = new URL("../", import.meta.url);
19443
19443
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
19444
- const key = `${root.href}#0.10.10-alpha.1`;
19444
+ const key = `${root.href}#0.10.10-alpha.2`;
19445
19445
  let release = releases.get(key);
19446
19446
  if (release === undefined) {
19447
19447
  const current = (async () => {
@@ -19469,7 +19469,7 @@ function __atomicOnDemandFailed(error, feature) {
19469
19469
  } catch {
19470
19470
  // No installation to read, as in a bundle of the package: the release the process runs decides.
19471
19471
  }
19472
- const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.1" ? installed : running !== undefined && running.version !== "0.10.10-alpha.1" ? "0.10.10-alpha.1" : undefined;
19472
+ 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;
19473
19473
  if (updatedTo === undefined) throw error;
19474
19474
  const application = typeof running?.name === "string" ? running.name : "atomic";
19475
19475
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
@@ -10148,9 +10148,10 @@ const ModelTypeFieldSchema = Type$1.Union([Type$1.Literal("chat"), Type$1.Litera
10148
10148
  const HeadersSchema = Type$1.Record(Type$1.String(), Type$1.String(), { description: "Request headers. Values resolve like apiKey." });
10149
10149
  const ModelFieldDescriptions = {
10150
10150
  name: "Display name, also matched by --model patterns.",
10151
- reasoning: "Whether the model supports thinking.",
10152
- contextWindow: "Context window in tokens.",
10153
- maxTokens: "Maximum output tokens."
10151
+ reasoning: "Whether the model supports thinking. Applies only to chat models.",
10152
+ contextWindow: "Context window in tokens. Applies only to chat models.",
10153
+ maxTokens: "Maximum output tokens. Defaults to 16384 for chat models. When omitted on compactor models, defaults to 32000 estimated tokens, capped at 50% of the automatic trigger.",
10154
+ maxTokensOverride: "Maximum output tokens. On compactor models, sets the upper bound on compacted output in estimated tokens, capped at 50% of the automatic trigger."
10154
10155
  };
10155
10156
  /** Everything pi-ai defines for compatibility, plus Atomic's alias for the grammar-tool capability. */
10156
10157
  const ModelsJsonCompatSchema = Type$1.Object({
@@ -10227,7 +10228,7 @@ const ModelOverrideSchema = Type$1.Object({
10227
10228
  })),
10228
10229
  maxTokens: Type$1.Optional(Type$1.Number({
10229
10230
  exclusiveMinimum: 0,
10230
- description: ModelFieldDescriptions.maxTokens
10231
+ description: ModelFieldDescriptions.maxTokensOverride
10231
10232
  })),
10232
10233
  timeoutMs: Type$1.Optional(CompactorTimeoutFieldSchema),
10233
10234
  samplingParams: Type$1.Optional(SamplingParamsFieldSchema),
@@ -12218,7 +12219,7 @@ function __atomicOnDemandFailed(error, feature) {
12218
12219
  return (async () => {
12219
12220
  const root = new URL("../", import.meta.url);
12220
12221
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
12221
- const key = `${root.href}#0.10.10-alpha.1`;
12222
+ const key = `${root.href}#0.10.10-alpha.2`;
12222
12223
  let release = releases.get(key);
12223
12224
  if (release === undefined) {
12224
12225
  const current = (async () => {
@@ -12246,7 +12247,7 @@ function __atomicOnDemandFailed(error, feature) {
12246
12247
  } catch {
12247
12248
  // No installation to read, as in a bundle of the package: the release the process runs decides.
12248
12249
  }
12249
- const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.1" ? installed : running !== undefined && running.version !== "0.10.10-alpha.1" ? "0.10.10-alpha.1" : undefined;
12250
+ 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;
12250
12251
  if (updatedTo === undefined) throw error;
12251
12252
  const application = typeof running?.name === "string" ? running.name : "atomic";
12252
12253
  const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {