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