@bastani/atomic 0.10.10-alpha.1 → 0.10.10

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 (292) hide show
  1. package/CHANGELOG.md +85 -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/CHANGELOG.md +6 -0
  27. package/dist/builtin/intercom/README.md +4 -4
  28. package/dist/builtin/intercom/index.bundle.mjs +1 -1
  29. package/dist/builtin/intercom/package.json +1 -1
  30. package/dist/builtin/mcp/README.md +28 -4
  31. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  32. package/dist/builtin/mcp/package.json +1 -1
  33. package/dist/builtin/subagents/CHANGELOG.md +8 -0
  34. package/dist/builtin/subagents/README.md +3 -3
  35. package/dist/builtin/subagents/package.json +1 -1
  36. package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
  37. package/dist/builtin/web-access/CHANGELOG.md +9 -0
  38. package/dist/builtin/web-access/README.md +2 -2
  39. package/dist/builtin/web-access/index.bundle.mjs +1 -1
  40. package/dist/builtin/web-access/package.json +1 -1
  41. package/dist/cli/auth-cli.impl.js +3 -3
  42. package/dist/cli/auth-cli.js +3 -3
  43. package/dist/cli/blueprint-command.impl.js +3 -3
  44. package/dist/cli/blueprint-command.js +3 -3
  45. package/dist/cli/intercom-command.code.js +2 -2
  46. package/dist/cli/intercom-command.impl.js +3 -3
  47. package/dist/cli/intercom-command.js +3 -3
  48. package/dist/cli/list-models.impl.js +3 -3
  49. package/dist/cli/list-models.js +3 -3
  50. package/dist/cli/session-picker.impl.js +3 -3
  51. package/dist/cli/session-picker.js +3 -3
  52. package/dist/cli/startup-ui.impl.js +3 -3
  53. package/dist/cli/startup-ui.js +3 -3
  54. package/dist/cli/storage-command.impl.js +3 -3
  55. package/dist/cli/storage-command.js +3 -3
  56. package/dist/cli/storage-search-session.impl.js +3 -3
  57. package/dist/cli/storage-search-session.js +3 -3
  58. package/dist/cli/team-command.impl.js +3 -3
  59. package/dist/cli/team-command.js +3 -3
  60. package/dist/cli.js +2 -2
  61. package/dist/core/debug.impl.js +3 -3
  62. package/dist/core/debug.js +3 -3
  63. package/dist/core/export-html/card-projection.impl.js +3 -3
  64. package/dist/core/export-html/card-projection.js +3 -3
  65. package/dist/core/export-html/index.code.js +2 -2
  66. package/dist/core/export-html/index.impl.js +3 -3
  67. package/dist/core/export-html/index.js +3 -3
  68. package/dist/core/export-html/json-spans.impl.js +3 -3
  69. package/dist/core/export-html/json-spans.js +3 -3
  70. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  71. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  72. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  73. package/dist/core/export-html/tool-renderer.js +3 -3
  74. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  75. package/dist/core/extensions/jiti-loader.js +3 -3
  76. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  77. package/dist/core/extensions/jiti-static-loader.js +3 -3
  78. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  79. package/dist/core/extensions/loader-host-modules.js +3 -3
  80. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  81. package/dist/core/intercom-broker-control-host.js +3 -3
  82. package/dist/core/intercom-broker-control.code.js +2 -2
  83. package/dist/core/intercom-broker-control.impl.js +3 -3
  84. package/dist/core/intercom-broker-control.js +3 -3
  85. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  86. package/dist/core/package-manager-storage-adapters.js +3 -3
  87. package/dist/core/sdk.impl.js +3 -3
  88. package/dist/core/sdk.js +3 -3
  89. package/dist/core/session-manager-core.js +2 -2
  90. package/dist/core/session-manager-list.impl.js +3 -3
  91. package/dist/core/session-manager-list.js +3 -3
  92. package/dist/core/session-manager.impl.js +3 -3
  93. package/dist/core/session-manager.js +3 -3
  94. package/dist/core/session-storage.impl.js +3 -3
  95. package/dist/core/session-storage.js +3 -3
  96. package/dist/core/storage/index.js +2 -2
  97. package/dist/core/storage/node-sqlite-thread.js +2 -2
  98. package/dist/core/storage/node-sqlite.js +2 -2
  99. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  100. package/dist/core/storage/offline-snapshot-file.js +3 -3
  101. package/dist/core/storage/provider.js +2 -2
  102. package/dist/core/storage/selection.js +2 -2
  103. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  104. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  105. package/dist/core/storage/session/branch-fork-source.js +3 -3
  106. package/dist/core/storage/session/card-view.impl.js +3 -3
  107. package/dist/core/storage/session/card-view.js +3 -3
  108. package/dist/core/storage/session/child-reader.code.js +2 -2
  109. package/dist/core/storage/session/child-reader.impl.js +3 -3
  110. package/dist/core/storage/session/child-reader.js +3 -3
  111. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  112. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  113. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  114. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  115. package/dist/core/storage/session/expanded-child-details.js +3 -3
  116. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  117. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  118. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  119. package/dist/core/storage/session/fork-row-index.js +3 -3
  120. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  121. package/dist/core/storage/session/fork-staging.js +3 -3
  122. package/dist/core/storage/session/fork-window.code.js +2 -2
  123. package/dist/core/storage/session/fork-window.impl.js +3 -3
  124. package/dist/core/storage/session/fork-window.js +3 -3
  125. package/dist/core/storage/session/history-pages.impl.js +3 -3
  126. package/dist/core/storage/session/history-pages.js +3 -3
  127. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  128. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  129. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  130. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  131. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  132. package/dist/core/storage/session/memory-session-store.js +3 -3
  133. package/dist/core/storage/session/pinned-branch-resume.code.js +2 -2
  134. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  135. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  136. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  137. package/dist/core/storage/session/released-history-files.js +3 -3
  138. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  139. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  140. package/dist/core/storage/session/session-resume.impl.js +3 -3
  141. package/dist/core/storage/session/session-resume.js +3 -3
  142. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  143. package/dist/core/storage/session/snapshot-cut.js +3 -3
  144. package/dist/core/storage/session/snapshot-history.code.js +2 -2
  145. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  146. package/dist/core/storage/session/snapshot-history.js +3 -3
  147. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  148. package/dist/core/storage/session/sql-session-store.js +3 -3
  149. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  150. package/dist/core/storage/session/tree-outline.js +3 -3
  151. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  152. package/dist/core/storage/session/tree-presentation.js +3 -3
  153. package/dist/core/storage/storage-status.impl.js +3 -3
  154. package/dist/core/storage/storage-status.js +3 -3
  155. package/dist/core/storage/team.impl.js +3 -3
  156. package/dist/core/storage/team.js +3 -3
  157. package/dist/core/structured-output/index.impl.js +3 -3
  158. package/dist/core/structured-output/index.js +3 -3
  159. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  160. package/dist/core/tasks/task-completion-entry.js +3 -3
  161. package/dist/core/tasks/task-file-history.code.js +2 -2
  162. package/dist/core/tasks/task-file-history.impl.js +3 -3
  163. package/dist/core/tasks/task-file-history.js +3 -3
  164. package/dist/core/tasks/task-reference-archive.code.js +2 -2
  165. package/dist/core/tasks/task-reference-archive.js +3 -3
  166. package/dist/core/tasks/task-reference-identity.js +3 -3
  167. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  168. package/dist/core/tasks/task-reference-stream.js +3 -3
  169. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  170. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  171. package/dist/core/tasks/task-view-source.impl.js +3 -3
  172. package/dist/core/tasks/task-view-source.js +3 -3
  173. package/dist/core/tools/read-url.impl.js +3 -3
  174. package/dist/core/tools/read-url.js +3 -3
  175. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  176. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  177. package/dist/core/worktree-snapshot/errors.js +3 -3
  178. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  179. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  180. package/dist/extensions/codemode/execute.impl.js +3 -3
  181. package/dist/extensions/codemode/execute.js +3 -3
  182. package/dist/extensions/codemode/renderer.impl.js +3 -3
  183. package/dist/extensions/codemode/renderer.js +3 -3
  184. package/dist/extensions/mcp/cli.impl.js +3 -3
  185. package/dist/extensions/mcp/cli.js +3 -3
  186. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  187. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  188. package/dist/extensions/mcp/cli.lazy.js +3 -3
  189. package/dist/extensions/mcp/runtime.impl.js +3 -3
  190. package/dist/extensions/mcp/runtime.js +3 -3
  191. package/dist/main-first-time-setup.impl.js +3 -3
  192. package/dist/main-first-time-setup.js +3 -3
  193. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  194. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  195. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  196. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  197. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  198. package/dist/package-manager-cli.code.js +2 -2
  199. package/dist/package-manager-cli.impl.js +3 -3
  200. package/dist/package-manager-cli.js +3 -3
  201. package/dist/startup-files.json +1 -1
  202. package/dist/utils/startup-database-spare.impl.js +3 -3
  203. package/dist/utils/startup-database-spare.js +3 -3
  204. package/dist/utils/tools-manager.impl.js +3 -3
  205. package/dist/utils/tools-manager.js +3 -3
  206. package/docs/background-tasks.md +8 -5
  207. package/docs/build.md +11 -6
  208. package/docs/changelog.mdx +1 -1
  209. package/docs/codemode.md +10 -2
  210. package/docs/compaction/reference.md +6 -4
  211. package/docs/compaction.md +3 -3
  212. package/docs/containerization.md +13 -5
  213. package/docs/custom-provider/api-reference.md +8 -6
  214. package/docs/custom-provider/oauth.md +4 -4
  215. package/docs/custom-provider/registration.md +3 -3
  216. package/docs/custom-provider.md +8 -8
  217. package/docs/development.md +40 -5
  218. package/docs/docs.json +21 -5
  219. package/docs/environment-variables.md +20 -18
  220. package/docs/extensions/api-reference.md +8 -6
  221. package/docs/extensions/authoring.md +4 -4
  222. package/docs/extensions.md +43 -6
  223. package/docs/guides/configuration.md +21 -1
  224. package/docs/guides/intercom.md +4 -0
  225. package/docs/guides/non-interactive.md +4 -2
  226. package/docs/guides/orchestration.md +4 -2
  227. package/docs/guides/resume-on-any-machine.md +12 -6
  228. package/docs/guides/subagents.md +4 -0
  229. package/docs/guides/team-setup.md +13 -2
  230. package/docs/guides.md +10 -4
  231. package/docs/herdr.md +4 -4
  232. package/docs/index.md +12 -4
  233. package/docs/intercom/operations.md +26 -4
  234. package/docs/intercom/reference.md +25 -3
  235. package/docs/intercom.md +13 -5
  236. package/docs/json.md +2 -0
  237. package/docs/keybindings.md +17 -4
  238. package/docs/libraries/agent-core.md +4 -2
  239. package/docs/libraries/ai.md +71 -53
  240. package/docs/libraries/codemode.md +3 -2
  241. package/docs/libraries/schema.md +5 -2
  242. package/docs/libraries/storage-libsql.md +92 -0
  243. package/docs/libraries/storage-postgres.md +119 -0
  244. package/docs/libraries/telemetry.md +35 -2
  245. package/docs/libraries.md +23 -6
  246. package/docs/llama-cpp.md +2 -2
  247. package/docs/mcp-servers.md +50 -4
  248. package/docs/models/reference.md +13 -9
  249. package/docs/models-configuration.md +7 -7
  250. package/docs/models.md +18 -8
  251. package/docs/orchestration/migrating-workflows.md +2 -2
  252. package/docs/orchestration/patterns.md +8 -8
  253. package/docs/orchestration.md +5 -3
  254. package/docs/packages/authoring.md +3 -1
  255. package/docs/packages/reference.md +3 -1
  256. package/docs/packages.md +5 -3
  257. package/docs/programmatic.md +14 -8
  258. package/docs/prompt-templates.md +5 -3
  259. package/docs/providers/reference.md +7 -7
  260. package/docs/providers.md +22 -10
  261. package/docs/quickstart.md +13 -11
  262. package/docs/reference/cli.md +10 -5
  263. package/docs/reference.md +8 -4
  264. package/docs/rpc/examples.md +47 -0
  265. package/docs/rpc/extension-ui.md +7 -1
  266. package/docs/rpc/protocol.md +3 -2
  267. package/docs/rpc.md +3 -1
  268. package/docs/sdk/reference.md +144 -38
  269. package/docs/sdk/storage.md +614 -0
  270. package/docs/sdk/structured-decisions.md +77 -4
  271. package/docs/sdk/web-server.md +3 -2
  272. package/docs/sdk.md +26 -115
  273. package/docs/security.md +17 -7
  274. package/docs/session-format.md +38 -24
  275. package/docs/sessions.md +21 -15
  276. package/docs/settings.md +17 -14
  277. package/docs/skills.md +47 -3
  278. package/docs/storage.md +38 -24
  279. package/docs/subagents/authoring.md +3 -1
  280. package/docs/subagents/reference.md +8 -2
  281. package/docs/subagents.md +35 -6
  282. package/docs/terminal-setup.md +1 -1
  283. package/docs/themes.md +5 -3
  284. package/docs/tmux.md +4 -4
  285. package/docs/tools.md +11 -0
  286. package/docs/usage.md +25 -15
  287. package/docs/web-access.md +35 -0
  288. package/docs/windows.md +9 -6
  289. package/docs/worktree-snapshots.md +22 -11
  290. package/examples/sdk/11-sessions.ts +4 -4
  291. package/package.json +8 -8
  292. package/schemas/models.schema.json +7 -7
package/docs/providers.md CHANGED
@@ -6,7 +6,19 @@ description: "Sign in with subscriptions, configure API keys, verify credentials
6
6
 
7
7
  Atomic connects to subscription providers through OAuth and to API-key providers through `~/.atomic/agent/auth.json` or environment variables. Built-in catalogs ship with Atomic; configured providers refresh newer catalogs independently and cache them in `~/.atomic/agent/models-store.json` for offline use.
8
8
 
9
- For credential precedence, terminal stop reasons, and GitHub Copilot SDK error classes, see the [Provider reference](/providers/reference). For streaming transport modes (`auto`, `websocket-cached`, `websocket`, `sse`), see [Message delivery settings](/settings#message-delivery).
9
+ For first-time login steps, see [Authentication](/getting-started/authentication). For credential precedence, terminal stop reasons, and GitHub Copilot SDK error classes, see the [Provider reference](/providers/reference). For streaming transport modes (`auto`, `websocket-cached`, `websocket`, `sse`), see [Message delivery settings](/settings#message-delivery).
10
+
11
+ ## Where to look on this page
12
+
13
+ | Topic | Section or page |
14
+ | --- | --- |
15
+ | OAuth subscriptions, `/login`, token refresh, and `atomic auth check` | [Subscriptions](#subscriptions) |
16
+ | Provider environment variables, `auth.json`, and `!command` / `$VAR` key resolution | [API keys](#api-keys) and [Auth file](#auth-file) |
17
+ | Cloud and gateway providers (NVIDIA NIM, Azure, Bedrock, Cloudflare, Vertex AI) | [Cloud and gateway providers](#cloud-and-gateway-providers) |
18
+ | Local GGUF router server (`llama.cpp`) | [llama.cpp](#llama-cpp) and [Local models with llama.cpp](/llama-cpp) |
19
+ | Specialized providers (OpenAI Decisions and Images, TypeSafe Jev, Morph compaction) | [OpenAI Decisions and Images](#subscription-and-api-key-at-the-same-time), [TypeSafe Jev](#typesafe-jev), [Morph compaction](#morph-compaction) |
20
+ | Custom endpoints, proxies, OAuth flows, and custom streaming APIs | [Custom providers](#custom-providers), [Configure custom models](/models), [Build custom providers](/custom-provider) |
21
+ | Credential precedence, stop reasons, and Copilot SDK error helpers | [Provider reference](/providers/reference) and [SDK API keys and OAuth](/sdk/reference#api-keys-and-oauth) |
10
22
 
11
23
  ## Subscriptions
12
24
 
@@ -67,7 +79,7 @@ Run `/login openai`, then choose **API key** or **Sign in with ChatGPT**. ChatGP
67
79
 
68
80
  Complete the browser callback, or paste the final callback URL into the login dialog on a remote machine. If your browser cannot reach `127.0.0.1:1455`, copy the full address-bar URL (including `code`, `state`, and `client_id`) and paste it into Atomic. Atomic creates a global device identity on first use that project settings do not override. A saved login does not verify model entitlement or quota.
69
81
 
70
- For SDK-level `models.login()` options such as `agentName`, see [Provider reference](/providers/reference#sdk-login-options).
82
+ For SDK-level `models.login()` options such as `agentName`, see [Provider reference](/providers/reference#sdk-login-options), [SDK API keys and OAuth](/sdk/reference#api-keys-and-oauth), and [`@bastani/atomic-ai`](/libraries/ai).
71
83
 
72
84
  ### Subscription and API key at the same time
73
85
 
@@ -81,7 +93,7 @@ The GPT-6 Luna Decisions classifier (`openai-decisions`) has no login of its own
81
93
 
82
94
  OpenAI image models (`openai-images`, such as `openai-images/gpt-image-2.6-flare`) follow the same key order and also skip ChatGPT sign-in. If you only signed in with ChatGPT, save a key via `/login openai-api` or set `OPENAI_API_KEY` to enable image generation.
83
95
 
84
- GPT Image 2.6 models (`gpt-image-2.6-flare` and `gpt-image-2.6-sunburst`) support SVG (`outputFormat: "svg"`) and animated GIF (`outputFormat: "gif"`, 2 to 16 frames). SVG needs no extra option: when your account requires `svg.model` and the request omits it, Atomic retries once with `gpt-6.1-sol`. Pass `svg: { model }` to select a specific authoring model, which Atomic always sends as given. SVG generation takes tens of seconds, so avoid a short `timeoutMs`. Use these models from [codemode](/codemode#generate-images) or an [extension](/extensions/api-reference#ctx-modelregistry-/-ctx-model-/-ctx-scopedmodels).
96
+ GPT Image 2.6 models (`gpt-image-2.6-flare` and `gpt-image-2.6-sunburst`) support SVG (`outputFormat: "svg"`) and animated GIF (`outputFormat: "gif"`, 2 to 16 frames). SVG needs no extra option: when your account requires `svg.model` and the request omits it, Atomic retries once with `gpt-6.1-sol`. Pass `svg: { model }` to select a specific authoring model, which Atomic always sends as given. SVG generation takes tens of seconds, so avoid a short `timeoutMs`. Use these models from [codemode](/codemode#generate-images) or an [extension](/extensions/api-reference#ctx-modelregistry-ctx-model-ctx-scopedmodels).
85
97
 
86
98
  ### OpenAI Codex
87
99
 
@@ -196,7 +208,7 @@ If an SDK session or `atomic -p` run has no cached Copilot catalog and cannot fi
196
208
 
197
209
  #### Which models are shown
198
210
 
199
- After Atomic reads your account's `/models` list with an OAuth login or saved API key, built-in Copilot models absent from that list are hidden across `/model`, `--list-models`, scoped models, and cycling. Discovered models stay visible.
211
+ After Atomic reads your account's `/models` list with an OAuth login or saved API key, built-in Copilot models absent from that list are hidden across `/model`, `--list-models`, [scoped models](/settings#enabledmodels), and cycling. Discovered models stay visible.
200
212
 
201
213
  Each credential keeps its own saved list (stored beside the key in `auth.json`), and provider aliases created with `registerProviderAlias` filter by their own credential's list. Saving a new API key with `/login` clears the previous list until the next network refresh.
202
214
 
@@ -233,7 +245,7 @@ Run `/login` again or `atomic update --models` after plan changes.
233
245
 
234
246
  #### Errors
235
247
 
236
- Atomic classifies every failed Copilot request into a typed error class so retries and [model fallback](/settings#retry) react to the failure cause rather than error text:
248
+ Atomic classifies every failed Copilot request into a typed error class so [retries](/settings#retry) and [model fallback](/settings#fallbackmodels) react to the failure cause rather than error text:
237
249
 
238
250
  - **Immediate fallback (no retry):** unavailable model, exhausted quota, invalid request, or authentication failure.
239
251
  - **Retry, then fallback:** rate limit (honors `Retry-After`), service unavailable (408/5xx/529), cut stream, empty response, or unrecognized response.
@@ -253,7 +265,7 @@ GitHub Copilot response stream ended early: claude-opus-5.5 (stream-ended-early)
253
265
  Streams cut during long thinking or very large tool calls often fail at the same point on retry. Atomic treats any attempt that ran **5 minutes or more** before cutting off as a long attempt:
254
266
 
255
267
  - A long cut gets at most one more retry on the same model; shorter cuts keep the normal [`retry.maxRetries`](/settings#retry) budget.
256
- - A second consecutive long cut stops retrying that model and moves to `fallbackModels` (which can include the same model at a lower effort, such as `github-copilot/claude-opus-5.5:medium`), or ends with the error.
268
+ - A second consecutive long cut stops retrying that model and moves to [`fallbackModels`](/settings#fallbackmodels) (which can include the same model at a lower effort, such as `github-copilot/claude-opus-5.5:medium`), or ends with the error.
257
269
  - Partial output from a cut stream is never replayed; every retry restarts the turn.
258
270
 
259
271
  Messages stream error events follow their provider error type (`invalid_request_error` is non-retryable; `rate_limit_error`, `overloaded_error`, and `api_error` are retryable; unknown event types become `unrecognized-response`). Cancelled requests and pre-response connection failures use Atomic's standard network handling.
@@ -332,7 +344,7 @@ export ANTHROPIC_API_KEY=sk-ant-...
332
344
  atomic
333
345
  ```
334
346
 
335
- For the full precedence order (`--api-key` > `auth.json` > extension or `models.json` `apiKey` > built-in environment variable), see [Credential resolution order](/providers/reference#resolution-order).
347
+ For the full precedence order (`--api-key` > `auth.json` > extension or `models.json` `apiKey` > built-in environment variable), see [Credential resolution order](/providers/reference#resolution-order). For non-provider environment variables, see [Environment variables](/environment-variables).
336
348
 
337
349
  After login, `/model` uses the cached catalog immediately while a background refresh runs with a 15-second deadline. If a provider is slow or offline, Atomic keeps the last usable snapshot; see [Catalog freshness and precedence](/models/reference#catalog-freshness-and-precedence).
338
350
 
@@ -392,7 +404,7 @@ Provider notes:
392
404
  - **Xiaomi MiMo:** Reasoning models on `xiaomi` and `xiaomi-token-plan-*` support only `off` and `high`.
393
405
  - **Kimi For Coding:** Uses OpenAI Chat Completions at `https://api.kimi.com/coding/v1`. Include `/v1` when overriding `baseUrl` in `models.json`. Kimi Code models always think, so `off` is not selectable.
394
406
 
395
- Use `--list-models` to check the latest catalog entries for any provider.
407
+ Use [`--list-models`](/reference/cli#model-options) to check the latest catalog entries for any provider.
396
408
 
397
409
  #### Auth file
398
410
 
@@ -621,7 +633,7 @@ binding = "AI"
621
633
  CLOUDFLARE_GATEWAY_ID = "your-gateway-slug"
622
634
  ```
623
635
 
624
- Register an inline provider override where `env` is in scope so `streamSimple` uses the binding transport:
636
+ Register an inline provider override where `env` is in scope so `streamSimple` uses the binding transport (see [SDK](/sdk) and [`@bastani/atomic-ai`](/libraries/ai)):
625
637
 
626
638
  ```typescript
627
639
  import {
@@ -715,7 +727,7 @@ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
715
727
  export GOOGLE_CLOUD_API_KEY=your-api-key
716
728
  ```
717
729
 
718
- ## llama.cpp
730
+ ## llama.cpp {#llama-cpp}
719
731
 
720
732
  For router-mode discovery, load/unload management, and Hugging Face downloads with a local llama.cpp server, see [Local models with llama.cpp](/llama-cpp). Configure the server with `/login llama.cpp` or `LLAMA_BASE_URL` and manage models with `/llama`.
721
733
 
@@ -17,7 +17,7 @@ Follow these four pages in order for full setup instructions, or use the quick c
17
17
 
18
18
  ## Prerequisites
19
19
 
20
- - **Package install:** Node.js 22.19 or newer with npm or pnpm, or Bun 1.4.2+ for Bun installs.
20
+ - **Package install:** Node.js 22.19 or newer with npm or pnpm, or Bun 1.4.5+ for Bun installs.
21
21
  - **Release archive install:** macOS and Linux need `tar` and either `curl` or `wget`; Windows uses built-in PowerShell commands. This path does not need Node.js or a package manager.
22
22
  - **Model provider:** A supported subscription login (`/login`) or API key.
23
23
 
@@ -155,13 +155,15 @@ Piped stdin is separated from CLI prompt text by a newline. Use `--mode json` fo
155
155
  ## Next steps
156
156
 
157
157
  - **[Interactive mode](/usage).** Learn slash commands, shortcuts, and message queueing.
158
- - **[Orchestration](/orchestration).** Combine codemode, subagents, and skills for multi-step work.
159
- - **[Skills](/skills).** Run reusable procedures with `/skill:<name>`.
160
- - **[Providers](/providers).** Configure provider logins, API keys, and cloud endpoints.
161
- - **[Settings](/settings).** Configure global and project preferences.
162
- - **[Keybindings](/keybindings).** Review default shortcuts and remap keys.
163
- - **[Atomic packages](/packages).** Install shared extensions, skills, prompts, and themes.
164
- - **[Security](/security).** Read project trust, tool permissions, and credential export rules before trusting a project or installing third-party packages.
165
- - **[Containerization](/containerization).** Run Atomic inside a container or sandbox.
166
-
167
- Platform guides: [Windows](/windows), [Termux](/termux), [tmux](/tmux), [Terminal setup](/terminal-setup), and [Shell aliases](/shell-aliases).
158
+ - **[Sessions](/sessions) and [Worktree snapshots](/worktree-snapshots).** Branch conversations, restore repository checkouts, and [resume on any machine with blueprints](/guides/resume-on-any-machine#set-the-environment-up-with-a-blueprint).
159
+ - **[Storage backends](/storage).** Keep local SQLite or switch to shared PostgreSQL or Turso/libSQL (or see [SDK storage backends](/sdk/storage) for embedded apps).
160
+ - **[Compaction](/compaction).** Manage long sessions and configure [custom remote compactors](/compaction#customize-morph-or-add-a-remote-compactor).
161
+ - **[MCP servers](/mcp-servers).** Connect external tools and data sources over Model Context Protocol.
162
+ - **[Subagents](/subagents), [Intercom](/intercom), and [Orchestration](/orchestration).** Delegate independent tasks, coordinate live sessions, and verify multi-step work.
163
+ - **[Skills](/skills) and [Atomic packages](/packages).** Run reusable procedures with `/skill:<name>` and share extensions, skills, prompts, and themes.
164
+ - **[Providers](/providers), [Settings](/settings), and [Keybindings](/keybindings).** Configure models, preferences, and keyboard shortcuts.
165
+ - **[Programmatic modes](/programmatic) and [Structured decisions](/sdk/structured-decisions).** Embed Atomic via the TypeScript SDK, `decide()`, RPC, or JSON mode.
166
+ - **[Security](/security) and [Containerization](/containerization).** Review project trust, tool permissions, and container isolation before trusting third-party projects or packages.
167
+ - **[Diagnostics and debugging](/development).** Capture debug snapshots, trace stalls, and file bug reports.
168
+
169
+ Platform guides: [Windows](/windows), [Termux](/termux), [tmux](/tmux), [Herdr](/herdr), [Terminal setup](/terminal-setup), and [Shell aliases](/shell-aliases).
@@ -24,8 +24,8 @@ atomic --print -- "- leading-dash prompt"
24
24
  | Flag | Description |
25
25
  | --- | --- |
26
26
  | *(default)* | Interactive mode (fullscreen TUI) when both stdin and stdout are a TTY |
27
- | `-p`, `--print` | Print response and exit |
28
- | `--mode text\|json\|rpc` | Choose output or protocol mode (`json` streams JSON lines, see [JSON mode](/json); `rpc` runs stdin/stdout RPC, see [RPC mode](/rpc)) |
27
+ | `-p`, `--print` | Print response and exit (see [Non-interactive mode](/guides/non-interactive)) |
28
+ | `--mode text\|json\|rpc` | Choose output or protocol mode (`json` streams JSON lines, see [JSON mode](/json); `rpc` runs stdin/stdout RPC, see [RPC mode](/rpc)). For TypeScript hosts, use the [SDK](/sdk) |
29
29
  | `--export <in> [out]` | Export a session to HTML (defaults to `<stem>.html` next to `<in>`), print `Exported to: <path>`, and exit `0` |
30
30
 
31
31
  **`--mode text` vs. automatic print mode:** Passing `--mode text` alone in an interactive terminal still launches interactive mode; it selects plain-text output for print mode (or overrides an earlier `--mode json`). Conversely, if stdin or stdout is not a TTY (such as piping into `atomic` or redirecting `atomic > out.txt`), Atomic automatically switches to print mode even without `-p`. Both print mode and `--mode json` automatically exclude `ask_user_question`.
@@ -44,6 +44,8 @@ Once piped input starts arriving, Atomic waits until EOF. If a pipe sends nothin
44
44
 
45
45
  ## Model options
46
46
 
47
+ Configure provider logins and API keys in [Model providers](/providers), or add custom models and overrides in [Configure custom models](/models).
48
+
47
49
  | Option | Description |
48
50
  | --- | --- |
49
51
  | `--provider <name>` | Provider to search for `--model`, such as `anthropic`, `openai`, or `google`; requires `--model` |
@@ -103,7 +105,8 @@ In print mode, all fallback notices go to **stderr** (keeping stdout clean for s
103
105
  - `--session-id` cannot combine with `--session`, `--continue`, or `--resume`. IDs must start and end with an ASCII letter or digit and contain only ASCII letters, digits, `.`, `_`, or `-`.
104
106
  - `--session-store` cannot combine with `--session-dir` or `--no-session`.
105
107
  - `--session-prefix` requires `--session-store`.
106
- - `--storage` cannot combine with `--storage-file`.
108
+ - `--storage` cannot combine with `--storage-file`, and neither accepts `{ "dir": "..." }`.
109
+ - `--storage` and `--storage-file` cannot combine with a non-empty `ATOMIC_CODING_AGENT_SESSION_DIR` (startup fails with `StorageConfigError` and `conflicting-overrides`; unset the variable or pass an explicit session flag). See [Storage and team variables](/environment-variables#storage-and-team-variables).
107
110
  - Invalid CLI storage flags exit cleanly with `Error: ...` and exit code `1`.
108
111
 
109
112
  See [Choosing a store](/sessions#choosing-a-store) for full precedence and conflict details.
@@ -267,7 +270,9 @@ atomic auth print-api-key --model <model> [--provider <p>]
267
270
  atomic auth print-bearer-token --model <model> [--provider <p>] [--min-expiry <dur>]
268
271
  ```
269
272
 
270
- `atomic auth login <provider>` signs in to a provider in an interactive terminal and exits without starting a session. It opens the browser for account sign-in like `/login <provider>`, or prints instructions for another sign-in method when available. Providers without account sign-in prompt for an API key.
273
+ `atomic auth login <provider>` signs in to a provider in an interactive terminal and exits without starting a session. It opens the browser for account sign-in like `/login <provider>`, or prints instructions for another sign-in method when available. Providers without account sign-in prompt for an API key. See [Subscriptions](/providers#subscriptions) and [Credential resolution order](/providers/reference#resolution-order).
274
+
275
+ `atomic auth login` does not load extensions. For extension-registered providers (including bundled [`llama.cpp`](/llama-cpp)), sign in inside an interactive session with `/login <provider>`.
271
276
 
272
277
  `<provider>` accepts a provider ID or display name such as `openai` or `OpenAI`. An ambiguous name (such as a `models.json` provider sharing a built-in display name) is rejected with the matching IDs; an exact provider ID always matches that provider. After sign-in, Atomic refreshes that provider's model catalog. If the refresh fails, times out after 15 seconds, or is interrupted with `Ctrl+C`, the login stays saved and refreshes on the next start.
273
278
 
@@ -278,7 +283,7 @@ atomic auth print-bearer-token --model <model> [--provider <p>] [--min-expiry <d
278
283
 
279
284
  `atomic auth logout <provider>` removes credentials saved by `atomic auth login` or `/login` while leaving environment variables and `models.json` unchanged. For built-in or `models.json` providers, it exits `0` even when nothing is stored. Extensions are not loaded; remove an extension provider's credentials by its provider ID (once none remain stored, that ID exits `1` as an unknown provider).
280
285
 
281
- `atomic auth check` verifies the effective credential for a provider or model before starting a session. Pass at least one of `--provider` or `--model`. It prints `ready`, `not_ready`, or `invalid` to stdout and exits `0`, `1`, or `2`. `--json` adds the resolved provider, credential kind, and any failure reason. By default, checks never print credential material.
286
+ `atomic auth check` verifies the effective credential for a provider or model before starting a session (see [Verify readiness before a session](/providers#verify-readiness-before-a-session)). Pass at least one of `--provider` or `--model`. It prints `ready`, `not_ready`, or `invalid` to stdout and exits `0`, `1`, or `2`. `--json` adds the resolved provider, credential kind, and any failure reason. By default, checks never print credential material.
282
287
 
283
288
  `--credentials` opts in to credential export from `atomic auth check`. It requires `--provider` or an exact `--model` target. A fuzzy model match on a ready provider returns `invalid` (exit `2`) instead of exporting a credential you did not name; on a non-ready provider it stays `not_ready` (exit `1`).
284
289
 
package/docs/reference.md CHANGED
@@ -21,10 +21,12 @@ Look up exact commands, settings, configuration schemas, tool behaviors, and API
21
21
 
22
22
  - [Provider reference](/providers/reference) covers stop reasons and credential resolution order.
23
23
  - [Model configuration reference](/models/reference) covers provider and model overrides, variants, and API compatibility.
24
- - [Models configuration](/models-configuration) lists the generated `models.json` field reference.
24
+ - [Models configuration](/models-configuration) lists the generated `models.json` field reference (including [remote compaction models](/models#remote-compaction-models)).
25
25
  - [Session format](/session-format) specifies the JSONL format, entry types, and `SessionManager` API.
26
- - [Compaction reference](/compaction/reference) covers parameters, saved boundaries, hooks, exports, settings, and historical formats.
27
- - [Storage](/storage) covers local SQLite, shared libSQL and PostgreSQL databases, adapters, and CLI commands.
26
+ - [Compaction reference](/compaction/reference) covers parameters, saved boundaries, custom compactor contracts, hooks, exports, settings, and historical formats.
27
+ - [Storage](/storage) covers local SQLite, shared libSQL ([`@bastani/atomic-storage-libsql`](/libraries/storage-libsql)) and PostgreSQL ([`@bastani/atomic-storage-postgres`](/libraries/storage-postgres)) databases, adapters, CLI commands, and typed storage errors. For programmatic backend recipes, see [SDK storage backends](/sdk/storage).
28
+ - [Worktree snapshots SDK & errors](/worktree-snapshots#sdk) documents snapshot capture/restore functions, garbage collection, and `WorkspaceError` classes.
29
+ - [Environment blueprints](/guides/resume-on-any-machine#set-the-environment-up-with-a-blueprint) documents `.atomic/blueprint.yaml`, `atomic blueprint cache-key`, and `atomic blueprint prebuild`.
28
30
 
29
31
  ## Customization reference
30
32
 
@@ -40,8 +42,10 @@ Look up exact commands, settings, configuration schemas, tool behaviors, and API
40
42
  - [Extension events](/extensions/events) lists every extension event and its payload.
41
43
  - [Provider API reference](/custom-provider/api-reference) specifies custom provider configuration and model definition options.
42
44
  - [SDK API reference](/sdk/reference) covers options, loaders, return values, run modes, and exports.
45
+ - [SDK storage backends](/sdk/storage) documents `sessionStore`, `storage`, `resolveSessionStore()`, `StorageProvider`, and `createAgentSessionRuntime()` storage wiring.
43
46
  - [Structured decisions](/sdk/structured-decisions) documents `decide()`, structured output tools, and provider limits.
44
- - [RPC protocol](/rpc/protocol) documents RPC commands, events, types, and errors.
47
+ - [RPC protocol](/rpc/protocol) and [RPC extension UI](/rpc/extension-ui) document RPC commands, events, UI dialogs, types, and errors.
48
+ - [JSON event stream](/json) documents `--mode json` event output.
45
49
  - [TUI API reference](/tui/reference) specifies component, focusable, input, and rendering interfaces.
46
50
 
47
51
  ## Platform setup
@@ -94,6 +94,53 @@ const unsubscribeUi = client.onExtensionUIRequest((request) => {
94
94
 
95
95
  More TypeScript examples live in the repository under [`examples/rpc-client.ts`](https://github.com/bastani-inc/atomic/blob/main/packages/coding-agent/examples/rpc-client.ts), [`examples/rpc-extension-ui.ts`](https://github.com/bastani-inc/atomic/blob/main/packages/coding-agent/examples/rpc-extension-ui.ts), and [`examples/extensions/rpc-demo.ts`](https://github.com/bastani-inc/atomic/blob/main/packages/coding-agent/examples/extensions/rpc-demo.ts).
96
96
 
97
+ ### Isolating subprocess storage
98
+
99
+ Pass `--storage-file <path>`, `--session-store <path>`, or `ATOMIC_STORAGE` in `RpcClientOptions` to give each RPC subprocess its own session store without editing user settings (see [Selecting storage per process](/storage#selecting-storage-per-process) and [SDK storage guide](/sdk/storage)):
100
+
101
+ ```typescript
102
+ import { fileURLToPath } from "node:url";
103
+ import { RpcClient } from "@bastani/atomic";
104
+
105
+ const client = new RpcClient({
106
+ runtimeExecutable: process.execPath,
107
+ cliPath: fileURLToPath(import.meta.resolve("@bastani/atomic/rpc-entry")),
108
+ args: ["--session-store", "./rpc-sessions.sqlite", "--session-prefix", "job_"],
109
+ // Or select shared storage via env (or args: ["--storage-file", "/etc/atomic/storage.json"]):
110
+ // env: { ...process.env, ATOMIC_STORAGE: JSON.stringify({ path: "./rpc-sessions.sqlite" }) },
111
+ });
112
+ ```
113
+
114
+ Invalid storage flags or environment values fail subprocess startup with `StorageConfigError` before RPC commands are accepted.
115
+
116
+ ### Catching rehydrated typed errors
117
+
118
+ `RpcClient` automatically rehydrates structured `errorCode` responses (`"compaction_error"`, `"missing_session_cwd"`, `"debug_error"`, and `"credential_synchronization"`; see [Error handling](/rpc/protocol#error-handling)) back into their exported error classes:
119
+
120
+ ```typescript
121
+ import {
122
+ CredentialSynchronizationError,
123
+ isCompactionError,
124
+ isDebugError,
125
+ isMissingSessionCwdError,
126
+ } from "@bastani/atomic";
127
+
128
+ try {
129
+ await client.switchSession(savedSessionId);
130
+ await client.compact();
131
+ } catch (error) {
132
+ if (isCompactionError(error) && error.code === "nothing-to-compact") {
133
+ console.log("Nothing new to compact.");
134
+ } else if (isMissingSessionCwdError(error)) {
135
+ await client.switchSession(savedSessionId, error.issue.fallbackCwd);
136
+ } else if (isDebugError(error) || error instanceof CredentialSynchronizationError) {
137
+ console.error(error.message);
138
+ } else {
139
+ throw error;
140
+ }
141
+ }
142
+ ```
143
+
97
144
  ## Standalone Node.js client
98
145
 
99
146
  This ESM script spawns an installed `atomic --mode rpc` binary without importing `@bastani/atomic`, parses stdout with strict LF-only JSONL framing (avoiding Node's `readline`, which splits on `U+2028` and `U+2029`), aborts on `SIGINT`, and closes stdin cleanly when the turn finishes:
@@ -6,7 +6,7 @@ description: "Handle extension dialogs, notifications, status bars, widgets, que
6
6
 
7
7
  <div id="extension-ui-protocol" />
8
8
 
9
- Extensions request user interaction through `ctx.ui.select()`, `ctx.ui.confirm()`, and related methods. Provider OAuth logins started with `login_provider` use the same `extension_ui_request` and `extension_ui_response` sub-protocol.
9
+ Extensions request user interaction through `ctx.ui.select()`, `ctx.ui.confirm()`, and related methods. Provider OAuth logins started with `login_provider` use the same `extension_ui_request` and `extension_ui_response` sub-protocol. For process startup, framing, and typed client code, see [RPC mode](/rpc), [RPC protocol reference](/rpc/protocol), and [RPC client examples](/rpc/examples).
10
10
 
11
11
  Extension UI requests fall into three categories:
12
12
 
@@ -280,3 +280,9 @@ Dismiss any dialog method. The extension receives `undefined` (for `select`, `in
280
280
  ```json
281
281
  {"type": "extension_ui_response", "id": "uuid-3", "cancelled": true}
282
282
  ```
283
+
284
+ ## See also
285
+
286
+ - [RPC mode](/rpc): startup flags, JSONL framing, and shutdown signals.
287
+ - [RPC protocol reference](/rpc/protocol): all commands, events, and structured error codes.
288
+ - [RPC client examples](/rpc/examples): `RpcClient` extension UI handling and standalone Node.js examples.
@@ -683,7 +683,7 @@ Response:
683
683
 
684
684
  #### compact
685
685
 
686
- Stop the active run and compact the session by clearing the context window or replacing it with the configured compactor model's output. Optional `instructions` is added to the boundary message and passed as the compactor query (like `/compact <instructions>`). Rejects with `Nothing to compact` if nothing has entered the context since the last boundary. See [Compaction](/compaction) for details.
686
+ Stop the active run and compact the session by clearing the context window or replacing it with the configured compactor model's output. Optional `instructions` is added to the boundary message and passed as the compactor query (like `/compact <instructions>`). Failures return `errorCode: "compaction_error"` with a `SerializedCompactionError` (such as `CompactionStateError` with `code: "nothing-to-compact"` when nothing has entered the context since the last boundary), which `RpcClient` rehydrates automatically. See [Compaction](/compaction) and [Compaction errors](/compaction/reference#compaction-errors) for details.
687
687
 
688
688
  ```json
689
689
  {"type": "compact", "instructions": "keep the migration plan"}
@@ -752,7 +752,7 @@ Response:
752
752
 
753
753
  #### set_decision_model
754
754
 
755
- Switch the active decision model immediately without restarting or reloading, and persist it to global or project settings (pass `"persist": false` to update only in-memory session state). Pass `""` or `"auto"` for Automatic (current chat model), or an exact registered classifier or chat `provider/model` ID.
755
+ Switch the active decision model immediately without restarting or reloading, and persist it to global or project settings (pass `"persist": false` to update only in-memory session state). Pass `""` or `"auto"` for Automatic (current chat model), or an exact registered classifier or chat `provider/model` ID. Unlike `set_compaction_model`, invalid values return a plain `{ success: false, error }` response without `errorCode`.
756
756
 
757
757
  ```json
758
758
  {"type": "set_decision_model", "model": "typesafe/jev-latest", "scope": "global"}
@@ -1960,6 +1960,7 @@ Some errors attach typed `errorCode` and `errorDetails` properties that `RpcClie
1960
1960
 
1961
1961
  | `errorCode` | `errorDetails` shape | When returned |
1962
1962
  | --- | --- | --- |
1963
+ | `"compaction_error"` | `SerializedCompactionError` (`name`, `code`, `message`, `hint`, `retryable`, `fields`, optional `cause`) | `compact` or `set_compaction_model` failed with a typed `CompactionError` (`CompactionStateError`, `CompactionCancelledError`, `CompactionConfigError`, or `CompactorFailure`). |
1963
1964
  | `"debug_error"` | `SerializedDebugError` (`name`, `code`, `message`, `hint`, `retryable`, `fields`) | Invalid argument passed to `set_debug`. |
1964
1965
  | `"missing_session_cwd"` | `SerializedMissingSessionCwdError` (`sessionCwd`, `fallbackCwd`, optional `sessionFile`) | `switch_session` or `import_session` when the recorded `cwd` does not exist and `cwdOverride` was omitted. |
1965
1966
  | `"credential_synchronization"` | `{ providerId: string, operation: "save" \| "logout" \| "oauth" }` | Credential persistence could not synchronize with the active provider store. |
package/docs/rpc.md CHANGED
@@ -30,7 +30,9 @@ Common startup options:
30
30
  - `--session <id>` / `--continue` (`-c`) / `--resume` (`-r`): open or resume a stored session.
31
31
  - `--name <name>` / `-n <name>`: set the session display name at startup.
32
32
  - `--no-session`: run without a resumable session (released idle history may still page to disk; see [Sessions](/sessions)).
33
- - `--session-dir <path>`: custom session storage directory.
33
+ - `--session-dir <path>`: select a JSONL session storage and lookup directory.
34
+ - `--session-store <path>`: select a SQLite session database file (cannot be combined with `--session-dir` or `--no-session`).
35
+ - `--session-prefix <prefix>`: table prefix for `--session-store` (requires `--session-store`; defaults to empty).
34
36
  - `--storage '<json>'` / `--storage-file <path>`: select storage for this process's sessions.
35
37
  - `--tools <list>` / `--no-tools` / `--exclude-tools <list>`: control which tools are active.
36
38