@bastani/atomic 0.10.17-alpha.1 → 0.10.18-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -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-7KXUFI2F.js +6 -6
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +16 -4
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
- package/dist/_shared/mode-shared-2QJSCUM6.js +16 -9
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/p0-cli-BB45ZQY6.js +1 -0
- package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -1
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +4 -3
- package/dist/_shared/p1a-prewarm-XIU57JHF.js.map +1 -1
- package/dist/_shared/p2-shell-main-B2WIALFD.js +1 -1
- package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
- package/dist/_shared/runtime-O4KCSG4C.js +2 -2
- package/dist/_shared/sdk-OHKMDJ74.js +11 -7
- package/dist/_shared/sdk-OHKMDJ74.js.map +1 -1
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/{startup-0-0-ERMIDHQT.js → startup-0-0-OV6RAEAP.js} +338 -75
- package/dist/_shared/startup-0-0-OV6RAEAP.js.map +1 -0
- package/dist/_shared/{startup-0-1-RTASI3HG.js → startup-0-1-EZAJI6RE.js} +82 -5
- package/dist/_shared/startup-0-1-EZAJI6RE.js.map +1 -0
- package/dist/_shared/startup-0-2-YZZOC22D.js +4 -4
- package/dist/_shared/startup-0-3-DE2NCS6A.js +4 -4
- package/dist/_shared/startup-0-4-ZMJV547D.js +10 -6
- package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -1
- package/dist/_shared/startup-0-5-HZX3ZPTP.js +41 -10
- package/dist/_shared/startup-0-5-HZX3ZPTP.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
- package/dist/_shared/startup-10-0-TDQNBDDL.js.map +1 -1
- package/dist/_shared/startup-12-0-55AAXBJZ.js +1 -1
- package/dist/_shared/startup-14-0-MLX36RBG.js +2 -2
- package/dist/_shared/startup-15-0-YUKGAC63.js +2 -2
- package/dist/_shared/startup-15-1-4S7FLMNG.js +261 -75
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +23 -8
- package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
- package/dist/_shared/startup-8-1-LZFXSD3Z.js +328 -19
- package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +1 -1
- package/dist/_shared/storage-command-7MGXLJGZ.js +4 -4
- package/dist/_shared/storage-status-K7PX2RXA.js +2 -2
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/team-DOQKICG2.js +1 -1
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/index.bundle.mjs +1 -1
- package/dist/builtin/intercom/package.json +1 -1
- 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 +1 -1
- package/dist/builtin/web-access/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +2 -2
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +1 -1
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +2 -2
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.code.js +2 -2
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +1 -1
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- 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 +2 -2
- 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.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- 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 +1 -1
- package/dist/core/extensions/runner-context.js +1 -1
- 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/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/sdk.code.js +2 -2
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-append-recovery.d.ts +3 -3
- package/dist/core/session-manager-core.d.ts +1 -1
- package/dist/core/session-manager-core.js +14 -13
- package/dist/core/session-manager-core.js.map +1 -1
- 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.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/storage/errors.d.ts +8 -5
- package/dist/core/storage/errors.js +5 -3
- package/dist/core/storage/errors.js.map +1 -1
- 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/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +2 -2
- 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.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 +2 -2
- 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 +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 +3 -3
- 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 +1 -0
- 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 +1 -0
- 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/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 +2 -2
- 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/session-summary.d.ts +9 -1
- 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 +3 -3
- 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 +1 -0
- 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.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/session/types.d.ts +1 -0
- package/dist/core/storage/sqlite-facade.js +6 -1
- package/dist/core/storage/sqlite-facade.js.map +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.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 +3 -3
- package/dist/core/tasks/task-reference-archive.js +3 -3
- 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.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/history-session.d.ts +1 -1
- package/dist/core/tools/output-accumulator.d.ts +3 -0
- package/dist/core/tools/read-url.code.js +2 -2
- 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 +2 -2
- 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 +1 -1
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +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 +1 -1
- 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.js +2 -2
- package/dist/main-first-time-setup.code.js +1 -1
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
- 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/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/interactive/interactive-mode-helpers.d.ts +8 -1
- package/dist/modes/interactive-engine/isolated-runtime.d.ts +21 -0
- package/dist/modes/interactive-engine/protocol.d.ts +6 -0
- package/dist/modes/rpc/rpc-client.d.ts +2 -0
- package/dist/package-manager-cli.code.js +4 -4
- 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/4.js +1 -1
- package/dist/startup-stages/6.js +1 -1
- package/dist/utils/interactive-engine-bootstrap.d.ts +2 -0
- package/dist/utils/interactive-engine-env.d.ts +2 -0
- package/dist/utils/startup-database-spare.code.js +2 -2
- 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/changelog.mdx +9 -0
- package/docs/guides/resume-on-any-machine.md +1 -1
- package/docs/reference/cli.md +1 -1
- package/docs/sdk.md +2 -1
- package/docs/sessions.md +5 -2
- package/docs/settings.md +1 -0
- package/docs/storage/custom-adapters.md +1 -1
- package/docs/storage/postgres/pgbouncer.md +3 -1
- package/docs/storage/postgres.md +41 -7
- package/docs/storage.md +4 -2
- package/docs/tools.md +1 -0
- package/package.json +8 -8
- package/dist/_shared/startup-0-0-ERMIDHQT.js.map +0 -1
- package/dist/_shared/startup-0-1-RTASI3HG.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.
|
|
9
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
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.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 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.
|
|
9
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
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.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 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-EZAJI6RE.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-eb08764b.js"],[1,"dist/_main-e9cb1fdc.js"],[7,"index.js"],[7,"lookup.js"],[7,"lookup-data.js"],[7,"utilities.js"],[1,"dist/_main-ee570765.js"],[1,"dist/_main-e546abc6.js"],[1,"dist/_main-ec634375.js"],[1,"dist/__atomic_timers/index.js"],[1,"dist/_main-e6076757.js"],[1,"dist/_main-e241b296.js"],[1,"dist/_main-ef587886.js"],[8,"lib/marked.esm.js"],[9,"dist/index.js"],[1,"dist/_main-e4a71c51.js"],[1,"dist/_main-eac4cfb3.js"],[1,"dist/native-modifiers.js"],[1,"dist/native-platform.js"],[1,"dist/native-module-path.js"],[1,"dist/_main-e348234a.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-eb08764b.js"],[1,"dist/_main-e9cb1fdc.js"],[7,"index.js"],[7,"lookup.js"],[7,"lookup-data.js"],[7,"utilities.js"],[1,"dist/_main-ee570765.js"],[1,"dist/_main-e546abc6.js"],[1,"dist/_main-ec634375.js"],[1,"dist/__atomic_timers/index.js"],[1,"dist/_main-e6076757.js"],[1,"dist/_main-e241b296.js"],[1,"dist/_main-ef587886.js"],[8,"lib/marked.esm.js"],[9,"dist/index.js"],[1,"dist/_main-e4a71c51.js"],[1,"dist/_main-eac4cfb3.js"],[1,"dist/native-modifiers.js"],[1,"dist/native-platform.js"],[1,"dist/native-module-path.js"],[1,"dist/_main-e348234a.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-e3379eb7.js"],[11,"dist/_rolldown-runtime-ee51c298.js"],[11,"dist/utils/tls-certificate.js"],[11,"dist/_main-ef2b7ba9.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-LZFXSD3Z.js"],[0,"dist/_shared/startup-0-0-OV6RAEAP.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-EZAJI6RE.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-e335adf7.js"],[11,"dist/_main-e86630a4.js"],[12,"dist/index.js"],[12,"dist/_main-ed41ae74.js"],[12,"dist/formats/index.js"],[11,"dist/_main-ee4b71bb.js"],[0,"dist/core/storage/prefix.js"],[11,"dist/compat.js"],[11,"dist/_main-eed7ccb2.js"],[11,"dist/_main-ed7233f0.js"],[11,"dist/_main-e8953ffa.js"],[11,"dist/_main-e486990b.js"],[11,"dist/_main-e317d6dc.js"],[11,"dist/_main-e52d30f8.js"],[11,"dist/_main-efd96f44.js"],[11,"dist/_main-e69c2242.js"],[11,"dist/_main-e80e5e53.js"],[11,"dist/_main-ef9c15cc.js"],[11,"dist/_main-e8b978c5.js"],[11,"dist/_main-e980bcd9.js"],[11,"dist/_main-e5eccc0a.js"],[11,"dist/_main-ead45034.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/sqlite-open-batch.js"],[11,"dist/providers/model-schema.js"],[11,"dist/api/transform-messages.js"],[0,"dist/_shared/startup-0-2-YZZOC22D.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-eb913fdf.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-HZX3ZPTP.js"],[0,"dist/_shared/startup-0-4-ZMJV547D.js"],[0,"dist/core/worktree-snapshot/blob-store.js"],[0,"dist/core/storage/statement-batches.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/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-e7b37fac.js"],[11,"dist/_lazy-e91a8ff1.js"],[11,"dist/providers/github-copilot-env.js"],[0,"dist/_shared/startup-15-1-4S7FLMNG.js"],[0,"dist/_shared/startup-15-0-YUKGAC63.js"],[0,"dist/_shared/startup-14-0-MLX36RBG.js"],[0,"dist/_shared/startup-10-0-TDQNBDDL.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-7KXUFI2F.js"],[1,"dist/layout-node.js"],[0,"dist/modes/rpc/rpc-mode.js"],[0,"dist/_shared/mode-rpc-sdk-IOPGDYR4.js"],[0,"dist/index.js"],[0,"dist/_shared/sdk-OHKMDJ74.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"]]}
|
package/dist/startup-stages/4.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import "../_shared/startup-0-0-
|
|
1
|
+
import "../_shared/startup-0-0-OV6RAEAP.js";
|
package/dist/startup-stages/6.js
CHANGED
|
@@ -50,6 +50,8 @@ export interface InteractiveEngineBootstrap {
|
|
|
50
50
|
* one it resumes. Only the first engine of that session is given it.
|
|
51
51
|
*/
|
|
52
52
|
startedSessionId?: string;
|
|
53
|
+
/** Host-approved working directory override when continuing a session whose stored cwd is missing. */
|
|
54
|
+
sessionCwdOverride?: string;
|
|
53
55
|
/** This engine replaced one that stopped unexpectedly; suppress startup resume prompts for stopped children. */
|
|
54
56
|
restarted?: true;
|
|
55
57
|
}
|
|
@@ -25,6 +25,8 @@ export interface InteractiveEngineStartupEnv {
|
|
|
25
25
|
readonly queuedDeliveries?: true;
|
|
26
26
|
/** The session the host started for this engine to open, as a new session or a fork. */
|
|
27
27
|
readonly startedSessionId?: string;
|
|
28
|
+
/** Host-approved working directory override when continuing a session whose stored cwd is missing. */
|
|
29
|
+
readonly sessionCwdOverride?: string;
|
|
28
30
|
/** This engine replaced one that stopped unexpectedly; suppress user-facing startup resume prompts. */
|
|
29
31
|
readonly restarted?: true;
|
|
30
32
|
}
|
|
@@ -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-EZAJI6RE.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
7
|
import { previewProcessStorageSelection, previewSessionSettingSelection } from "../_shared/startup-0-2-YZZOC22D.js";
|
|
8
|
-
import { parsePackageCommand } from "../_shared/startup-0-0-
|
|
8
|
+
import { parsePackageCommand } from "../_shared/startup-0-0-OV6RAEAP.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.
|
|
9
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
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.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 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.
|
|
9
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
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.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 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-EZAJI6RE.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.
|
|
9
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
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.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 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.
|
|
9
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
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.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
package/docs/changelog.mdx
CHANGED
|
@@ -10,6 +10,15 @@ description: "What's new in Atomic"
|
|
|
10
10
|
After each release, the publish-release skill regenerates this page in its own docs PR.
|
|
11
11
|
*/}
|
|
12
12
|
|
|
13
|
+
<Update label="November 28, 2026" description="0.10.17">
|
|
14
|
+
|
|
15
|
+
Atomic opens large existing session databases without upfront migration stalls and speeds up continuing recent sessions.
|
|
16
|
+
|
|
17
|
+
- **Instant startup on large session stores.** Atomic moves worktree snapshot capture headings into a dedicated `session_capture_headings` table populated lazily per session on demand instead of altering or scanning `session_entries` on startup, while `atomic storage migrate` backfills existing snapshots in bounded batches ([#6823](https://github.com/bastani-inc/atomic/pull/6823)).
|
|
18
|
+
- **Faster session continuation and ID prefix lookup.** Continuing the most recent session (`atomic -c`) and resolving session ID prefixes (`--session`, `--fork`) skip loading search text for non-matching sessions ([#6823](https://github.com/bastani-inc/atomic/pull/6823)).
|
|
19
|
+
|
|
20
|
+
</Update>
|
|
21
|
+
|
|
13
22
|
<Update label="November 27, 2026" description="0.10.16">
|
|
14
23
|
|
|
15
24
|
Atomic resumes large sessions faster, recovers sooner from provider failures, and makes progress easier to follow.
|
|
@@ -51,7 +51,7 @@ Resume as usual with `atomic --session <id>`, `atomic --resume`, or `/resume` (s
|
|
|
51
51
|
|
|
52
52
|
Absolute paths from the earlier machine keep working in built-in file tools because Atomic maps paths under the old checkout to the restored worktree. Shell commands run as written, so commands containing old absolute paths need the new worktree path.
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
If the recorded directory is missing, `atomic --session <id>` first tries to restore the recorded checkout. If no checkout can be restored, an interactive run lets you continue in the directory you launched from or fork a new session there ([Missing working directory](/sessions#resuming-and-deleting-sessions)). If shared storage does not respond within 15 seconds, `atomic --session`, `--resume`, `--continue`, and `/resume` stop without modifying anything; verify connectivity with `atomic storage status` and try again.
|
|
55
55
|
|
|
56
56
|
For SDK resume behavior with `createAgentSession({ sessionManager })`, see [Worktree snapshots in the SDK](/sdk#worktree-snapshots) and [SDK session storage](/sdk/storage).
|
|
57
57
|
|
package/docs/reference/cli.md
CHANGED
|
@@ -88,7 +88,7 @@ In print mode, all fallback notices go to **stderr** (keeping stdout clean for s
|
|
|
88
88
|
|
|
89
89
|
| Option | Description |
|
|
90
90
|
| --- | --- |
|
|
91
|
-
| `-c`, `--continue` | Continue the
|
|
91
|
+
| `-c`, `--continue` | Continue in the current directory, preferring a session with messages, a name, or a summary over a newer empty session. Start a new session if none exists. |
|
|
92
92
|
| `-r`, `--resume` | Browse and select a session (cancelling prints `No session selected` and exits `0`; renaming is available in interactive `/resume`, not in `atomic -r`) |
|
|
93
93
|
| `--session <id\|prefix>` | Open by exact ID or unique 8-hex UUID prefix in its working directory. If it matches only another directory, Atomic offers to fork it here. Exits `75` if another live process holds the session open ([When the session is already open](/guides/resume-on-any-machine#when-the-session-is-already-open)) |
|
|
94
94
|
| `--import <file>` | Import an exported JSONL session into session storage |
|
package/docs/sdk.md
CHANGED
|
@@ -121,7 +121,8 @@ const { session, workspace: binding } = await createAgentSession({ workspace: ap
|
|
|
121
121
|
const reviewer = await createAgentSession({ workspace: api.readOnly() });
|
|
122
122
|
```
|
|
123
123
|
|
|
124
|
-
- **Resolution:** Local `repo` must point to a repository root. Remote repositories clone once under `<storageHome>/repos/` ([storage home](/storage#storage-home)) and create worktrees after fetching. Missing branches start from `base`; existing worktrees must match repository and branch
|
|
124
|
+
- **Resolution:** Local `repo` must point to a repository root. Remote repositories clone once under `<storageHome>/repos/` ([storage home](/storage#storage-home)) and create worktrees after fetching. Missing branches start from `base`; existing worktrees must match the repository and branch. Explicit `cwd` must stay inside the worktree, and an explicit `sessionManager` must already point inside it (`WorkspaceConfigError` otherwise).
|
|
125
|
+
- **Interrupted setup:** If Atomic stopped while creating a worktree, retry `createAgentSession({ workspace: api })` with the same workspace. Atomic can recreate the incomplete checkout and clear the stale branch lock it left behind. It leaves unrelated Git locks alone; if another Git operation is still running, let it finish before retrying.
|
|
125
126
|
- **Read-only (`api.readOnly()`):** Removes and blocks `write`, `edit`, and `todo` even if listed in `tools`. Child sessions stay read-only even with their own workspace.
|
|
126
127
|
- **Persistence and PRs:** Bindings persist as a `workspace_binding` entry and restore on reopen (call `bindSessionWorkspace(workspace, sessionManager, signal?)` beforehand if you need the resolved path early). Inspect commits with `workspaceChangeSet(binding)` and open pull requests via `publishPullRequest(changeSet, { draft: true })`.
|
|
127
128
|
- **Errors:** Invalid options throw `WorkspaceConfigError`. Binding failures throw `WorkspaceBindingError` with `code` set to `wrong-repository`, `wrong-branch`, `conflicting-worktree-input`, `invalid-repository`, `unknown-base`, `cwd-outside-worktree`, `git-unavailable`, `git-failed`, `filesystem-failed`, `drift`, `writer-conflict`, or `incomplete-worktree`. See [Workspace](/sdk/reference#workspace) for the full helper and error-class list.
|
package/docs/sessions.md
CHANGED
|
@@ -55,7 +55,9 @@ Inside an interactive session, use these slash commands (see [Slash commands](/s
|
|
|
55
55
|
|
|
56
56
|
## Resuming and deleting sessions {#resuming-and-deleting-sessions}
|
|
57
57
|
|
|
58
|
-
Run
|
|
58
|
+
Run `atomic -c` to pick up your most recent conversation in the current directory. A session with messages, a name, or a summary takes precedence over a newer empty session. If all saved sessions are empty, Atomic opens the newest one; if there are none, it starts a new session.
|
|
59
|
+
|
|
60
|
+
To open a specific session, run `/resume` or `atomic -r` to open the **Resume** picker, or use `atomic --session <id>` with an exact ID or unique 8-hex UUID prefix. If you switch sessions before quitting, the resume command Atomic prints points to the session you switched to.
|
|
59
61
|
|
|
60
62
|
Every session binds to its original working directory so tools, `@path` references, and project settings resolve there:
|
|
61
63
|
|
|
@@ -68,7 +70,7 @@ Every session binds to its original working directory so tools, `@path` referenc
|
|
|
68
70
|
- **Session IDs and prefix matching.** `--session` and `--fork` check for an exact, case-sensitive session ID match first. If none matches, an 8-character hexadecimal prefix (case-insensitive, such as `019f6a2e`) matches UUID-backed sessions only, never custom non-UUID IDs. Atomic checks the current project first, then all projects, and lists matching sessions on a collision. Any other hex-and-hyphen fragment (such as 6 or 12 characters, or `019f6a2e-1234`) is rejected as malformed.
|
|
69
71
|
- **Custom IDs and flag conflicts.** `--session-id <id>` opens an existing project-local session with that exact ID in the current directory, or creates a new one (printing a notice on stderr) if none exists. IDs use ASCII letters, digits, `.`, `_`, and `-`, starting and ending with a letter or digit. Combining `--fork` with `--session-id <id>` names the new forked session and fails if that ID already exists. `--fork` cannot be combined with `--session`, `--continue`, `--resume`, or `--no-session`; `--session-id` cannot be combined with `--session`, `--continue`, or `--resume`; `--import` cannot be combined with `--session`, `--fork`, `--session-id`, `--continue`, or `--resume` (combining `--import` with `--no-session` inspects the file without saving it). Conflicting flags exit with code `1`.
|
|
70
72
|
- **Snapshots on resume.** When a session recorded [worktree snapshots](/worktree-snapshots), `atomic --session <id>` from another directory reopens it directly—reusing a matching local checkout or restoring files into `~/.atomic/agent/worktree-snapshots/` with a one-line notice. Inspect snapshots with `/session snapshot` ([Inspecting snapshots](/worktree-snapshots#inspecting-snapshots)).
|
|
71
|
-
- **Missing working directory.**
|
|
73
|
+
- **Missing working directory.** If the recorded directory is gone and Atomic cannot restore a checkout from a snapshot, start `atomic --session <id>` from the directory you want to use, or select the session with `/resume`. At the interactive prompt, choose **Continue** to use the current directory without changing the saved path, **Fork** to create a separate session in the current directory, or **Cancel** to leave the session alone. Non-interactive modes (`-p`, RPC) and programmatic session switches report a missing-directory error rather than prompting.
|
|
72
74
|
- **Fast resume.** Compacted sessions open from the latest compaction boundary instead of loading the entire history upfront. Commands that inspect earlier entries (`/tree`, `/fork`, `/clone`, `/export`, `/share`, and `/session`) page older history on demand. `/session` shows totals immediately and fills in per-model cost and cache stats once that scan finishes. Slow resumes or sessions with 100,000 or more entries print step timings before opening the TUI.
|
|
73
75
|
- **Draft preservation.** Text typed before a startup picker or prompt appears waits as a draft without confirming pickers or `Fork this session? [y/N]`.
|
|
74
76
|
- **Tool restoration.** Plain resume restores the session's recorded tool selection along with newly available extension tools. Explicitly disabled tools stay off, `--tools +name,-name` adjusts the restored set, and previously used tools that are no longer installed appear under **Missing** in `/tools`.
|
|
@@ -196,6 +198,7 @@ From any session or subagent, the agent can read and search past project session
|
|
|
196
198
|
|
|
197
199
|
- **Project isolation.** Reading or searching a session ID from another project fails with a project-isolation error unless `?project=<dir>` or `?project=all` is passed explicitly.
|
|
198
200
|
- **What is indexed and omitted.** History search scans the newest 25 sessions per page, excludes the current session unless targeted by its own ID URL (`history://sessions/<current-id>`), and caps output at 10 matches per session. It omits non-conversation metadata—thinking blocks, system/model/thinking-level changes, usage records, labels, context edits, internal extension state, and worktree snapshots. After compaction, the boundary message gives the exact session URL and range to recover earlier details ([Memory compaction](/compaction/memory-compaction)).
|
|
201
|
+
- **Terminal output.** History reads and searches ignore color and other terminal formatting codes in tool output, so you can search for the text you saw without matching escape codes. User and assistant text is unchanged. This is automatic and does not rewrite saved sessions.
|
|
199
202
|
- **Output caps and continuations.** Every `history://` call caps output at 40,000 bytes and scans at most 250,000 entries, stopping cleanly with a `continue with` URL when either limit is hit (multi-session list continuations expire after 60 seconds). Multi-line regex patterns match across up to 16,384 characters or 256 entries.
|
|
200
203
|
- **Offline SQLite search.** To run a read-only regex search against a local SQLite session file from the shell without taking writer locks, run `atomic storage search-session <sqlite-file> <session-id> <pattern> [cursor]` (see [CLI reference](/reference/cli#storage-and-intercom-commands)).
|
|
201
204
|
|
package/docs/settings.md
CHANGED
|
@@ -488,6 +488,7 @@ Install an adapter [Atomic package](/storage/custom-adapters#adapters-from-atomi
|
|
|
488
488
|
|
|
489
489
|
- An empty shared `storage: {}` uses `<storageHome>/storage.sqlite`.
|
|
490
490
|
- `secrets` accepts `{ "env": "VAR" }` or `{ "file": "token.txt" }` (relative paths resolve from [storage home](/storage#storage-home), falling back to parent if an existing file lives there; one trailing `\n` or `\r\n` is stripped).
|
|
491
|
+
- For PostgreSQL, set `connectTimeoutMs` (default `10000`), `statementTimeoutMs` (default `30000`), and PgBouncer endpoints under the adapter's `options`. These timeouts control individual requests, not how long a live session waits for PostgreSQL to come back. See [Wait settings and PgBouncer example](/storage/postgres#set-the-wait-times-and-pgbouncer-endpoints).
|
|
491
492
|
|
|
492
493
|
<Warning>
|
|
493
494
|
Storage adapter modules execute code with Atomic's permissions. Review any adapter configured in `.atomic/settings.json` before trusting a project. See [Selecting an adapter](/storage/custom-adapters#selecting-an-adapter).
|
|
@@ -140,7 +140,7 @@ When Atomic calls `beginTransaction(options)`, `options` (`SqliteDriverTransacti
|
|
|
140
140
|
- **Transient retries:** Recognized transient failures reject with `StorageTransientError`. Statements and batches that failed before writing make up to `STORAGE_TRANSIENT_RETRY_ATTEMPTS` (**5**) total attempts—1 initial attempt plus up to 4 retries—starting at 250 ms with exponential backoff and up to 20% jitter. Writes with `outcome: "unknown"` never retry automatically.
|
|
141
141
|
- **Transaction retries:** Transactions re-run their callback only when called with `{ retryTransientFailures: true }` (use only for side-effect-free callbacks; non-boolean values throw `StorageConfigError`). The first retry on a database emits a one-time process warning.
|
|
142
142
|
- **Call queue scheduling:** Without `concurrentTransactions`, calls execute one at a time. With `concurrentTransactions`, a call waits only for earlier unfinished calls it conflicts with: standalone statements/batches and whole-database `serial` transactions (no `domain`) conflict with all calls; `serial` transactions with a `domain` conflict only with matching domains (and whole-database calls); read-only transactions wait for earlier writes but run in parallel with other reads and later writes.
|
|
143
|
-
- **Stuck-call bounds:** While an active call stalls without settling, queued priority batches (`{ priority: true }`) fail after `STORAGE_PRIORITY_CALL_MAX_WAIT_MS` (10 seconds) and ordinary queued calls fail after `STORAGE_QUEUED_CALL_MAX_WAIT_MS` (60 seconds)
|
|
143
|
+
- **Stuck-call bounds:** While an active call stalls without settling, queued priority batches (`{ priority: true }`) fail after `STORAGE_PRIORITY_CALL_MAX_WAIT_MS` (10 seconds) and ordinary queued calls fail after `STORAGE_QUEUED_CALL_MAX_WAIT_MS` (60 seconds). These calls did not run and return `StorageTransientError` (`code: "call-queue-stalled"`, `outcome: "not-applied"`, `attempts: 0`). With `concurrentTransactions`, only calls blocked behind the stalled call fail.
|
|
144
144
|
- **WAL helper for local SQLite files:** Call `switchToWriteAheadLog(exec, busyTimeoutMs)` from `@bastani/atomic/storage` to enable WAL with retries on `SQLITE_BUSY` and Windows `SQLITE_IOERR_TRUNCATE` (up to `min(5000, busyTimeoutMs)` ms).
|
|
145
145
|
|
|
146
146
|
You can also implement `SqliteDatabase` directly. Either way, validate your implementation with the [conformance suite](#adapter-conformance).
|
|
@@ -211,7 +211,9 @@ If PgBouncer runs on the PostgreSQL host and connects via `127.0.0.1`, PostgreSQ
|
|
|
211
211
|
|
|
212
212
|
## Configure Atomic
|
|
213
213
|
|
|
214
|
-
Point `url` at PgBouncer and `listenUrl` directly at PostgreSQL (both use `atomic_runtime` and the same password).
|
|
214
|
+
Point `url` at PgBouncer and `listenUrl` directly at PostgreSQL (both use `atomic_runtime` and the same password). For what Atomic shows during an outage and how to set timeouts, see [When a live session is waiting for PostgreSQL](/storage/postgres#when-a-live-session-is-waiting-for-postgresql).
|
|
215
|
+
|
|
216
|
+
On each agent machine:
|
|
215
217
|
|
|
216
218
|
<Steps>
|
|
217
219
|
<Step title="Join the database through PgBouncer">
|
package/docs/storage/postgres.md
CHANGED
|
@@ -206,7 +206,7 @@ Configure these under `options` (defaults suit small deployments; see [Tuning fo
|
|
|
206
206
|
| `auth` | `"password"` | `"azure-entra"`, `"aws-iam"`, or `"gcp-iam"` for [cloud identities](#cloud-identities). |
|
|
207
207
|
| `maxConnections` | `8` | Maximum main-pool connections opened by one Atomic process (positive integer). |
|
|
208
208
|
| `readerMaxConnections` | `2` | Maximum dedicated read-only connections per process (capped at `maxConnections`; `0` disables the read pool). |
|
|
209
|
-
| `statementTimeoutMs` | `30000` |
|
|
209
|
+
| `statementTimeoutMs` | `30000` | How long PostgreSQL lets a single command run (ms). Ordinary session writes also use this value for how long to wait for a database lock. |
|
|
210
210
|
| `connectTimeoutMs` | `10000` | Timeout for establishing a connection or waiting for a free pool slot (ms). |
|
|
211
211
|
| `idleTimeoutMs` | `300000` | How long the last idle connection in a pool stays open (ms). Burst connections close after 10 seconds idle. |
|
|
212
212
|
| `keepAliveIdleMs` | `60000` | Idle period before sending TCP keepalive probes (ms). |
|
|
@@ -217,6 +217,43 @@ Configure these under `options` (defaults suit small deployments; see [Tuning fo
|
|
|
217
217
|
|
|
218
218
|
For SDK apps using `openPostgresDatabase()`, see [`@bastani/atomic-storage-postgres`](/libraries/storage-postgres) and [SDK session storage](/sdk/storage).
|
|
219
219
|
|
|
220
|
+
## When a live session is waiting for PostgreSQL
|
|
221
|
+
|
|
222
|
+
If a save takes about 10 seconds, Atomic shows **Waiting for PostgreSQL to save this session**. If it knows the connection was lost, the notice says it is waiting to reconnect. You'll see another notice about once a minute until the save finishes. In print and `--mode json`, these notices go to stderr. When the save completes, Atomic tells you it saved the changes and continues the session.
|
|
223
|
+
|
|
224
|
+
Leave the session running during a stall, restart, or temporary disconnection. Atomic keeps pending messages and subagent records in order, checks what the database already saved, and continues without dropping or duplicating those records. There is no overall recovery timeout for a live session. The wait ends early if you stop Atomic, or if another process actually writes to the same session and takes over. If you stop Atomic before the recovery notice, changes that haven't been saved may not be available when you resume. If you see **Another process wrote to session**, continue with that process or reopen the session after it stops; don't start a second copy just to clear a waiting notice.
|
|
225
|
+
|
|
226
|
+
### Set the wait times and PgBouncer endpoints
|
|
227
|
+
|
|
228
|
+
The defaults below are usually enough. Change them under `storage.options` in `~/.atomic/agent/settings.json` (or `sessions.storage.options` if you share only sessions):
|
|
229
|
+
|
|
230
|
+
- **`connectTimeoutMs`: 10 seconds (`10000`)** to connect or get a free connection. A timeout limits one attempt, not the live session's recovery.
|
|
231
|
+
- **`statementTimeoutMs`: 30 seconds (`30000`)** for a PostgreSQL command to finish. Ordinary session writes also allow up to 30 seconds to get a database lock before the command runs. That lock wait follows `statementTimeoutMs`; there is no separate session setting. If the connection itself stops answering, Atomic allows time for the command and any initial lock wait, plus five seconds for the reply, before trying to cancel and drop the connection.
|
|
232
|
+
|
|
233
|
+
For PgBouncer, set `pool_mode = transaction` in `pgbouncer.ini` (not `statement`). In Atomic, point `url` at PgBouncer and `listenUrl` directly at PostgreSQL for instant Intercom notifications. You can leave out the direct endpoint if polling is enough and your pooler uses port `6432` or `6543`. Use the same database and login on both routes. If you joined using `atomic storage join`, keep the `secrets` entry it created. This example uses the `ATOMIC_DB_PASSWORD` environment variable instead:
|
|
234
|
+
|
|
235
|
+
```json
|
|
236
|
+
{
|
|
237
|
+
"storage": {
|
|
238
|
+
"adapter": "@bastani/atomic-storage-postgres",
|
|
239
|
+
"options": {
|
|
240
|
+
"url": "postgresql://atomic_runtime@pgbouncer.example.com:6432/atomic",
|
|
241
|
+
"listenUrl": "postgresql://atomic_runtime@db.example.com:5432/atomic",
|
|
242
|
+
"connectTimeoutMs": 10000,
|
|
243
|
+
"statementTimeoutMs": 30000
|
|
244
|
+
},
|
|
245
|
+
"secrets": { "password": { "env": "ATOMIC_DB_PASSWORD" } }
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
See [Configure Atomic for PgBouncer](/storage/postgres/pgbouncer#configure-atomic) for the full setup and TLS options.
|
|
251
|
+
|
|
252
|
+
### Tell a stall from a failure
|
|
253
|
+
|
|
254
|
+
- **The waiting notice keeps appearing:** the session is still trying to save. From a separate terminal on the same machine, run `atomic storage status` to check whether the database answers now. A successful check doesn't rule out a single stuck query. If waits keep recurring, check the network, PgBouncer's connection limits, and [what active PostgreSQL connections are waiting on](#check-the-effect). Don't raise the timeouts just to hide lock contention or a broken network path.
|
|
255
|
+
- **Atomic reports a specific error and stops instead of waiting:** fix the named problem. Invalid credentials, a TLS certificate error, or missing permissions won't get better by waiting. See [Troubleshooting](#troubleshooting).
|
|
256
|
+
|
|
220
257
|
## TLS
|
|
221
258
|
|
|
222
259
|
Atomic encrypts every remote connection and verifies both the server's certificate and hostname (`sslmode=verify-full`) by default. Connections to `localhost`, loopback addresses, and Unix sockets skip TLS unless `sslmode` is specified in the URL. When the URL omits a host, Atomic reads `PGHOST`.
|
|
@@ -463,8 +500,7 @@ Tune these under `options` (all timeouts are integers in milliseconds):
|
|
|
463
500
|
|
|
464
501
|
- **Colocate database and agents.** Every save waits for at least one network round trip—run PostgreSQL in the same region as your agents, and run `atomic storage migrate` after upgrades so saves use the single-round-trip append path.
|
|
465
502
|
- **`idleTimeoutMs`** (default `300000`): lower (for example `30000`) when idle processes hold connections on a busy server.
|
|
466
|
-
-
|
|
467
|
-
- **`connectTimeoutMs`** (default `10000`): raise for high-latency or slow-accepting servers.
|
|
503
|
+
- **Connection and command timeouts:** keep the defaults unless your server regularly needs more time for healthy connections or commands. See [Set the wait times and PgBouncer endpoints](#set-the-wait-times-and-pgbouncer-endpoints).
|
|
468
504
|
- **`keepAliveIdleMs`** (default `60000`): lower if connections fail with `connection-lost` after idle periods (NAT, firewall, or load balancer dropping idle TCP sockets).
|
|
469
505
|
- **`maxPreparedStatements`** (default `256`, or `0` behind unsupported poolers): lower if server per-connection memory is tight. Atomic auto-detects poolers on ports `6432` and `6543`; behind a pooler on another port, set `listenUrl` or `maxPreparedStatements: 0`. See [Prepared statements](/storage/postgres/pgbouncer#how-atomic-works-with-pgbouncer).
|
|
470
506
|
|
|
@@ -504,13 +540,11 @@ WHERE backend_type = 'client backend';
|
|
|
504
540
|
| --- | --- | --- |
|
|
505
541
|
| `sorry, too many clients already`, `remaining connection slots are reserved…`, or `too many connections for role "<role>"` | Processes exceeded server or role connection limits. | Lower `maxConnections`/`readerMaxConnections`, raise `max_connections` or role `CONNECTION LIMIT`, or deploy [PgBouncer](/storage/postgres/pgbouncer). |
|
|
506
542
|
| `timeout exceeded when trying to connect` | All connections in a process's pool stayed busy for `connectTimeoutMs`. | Raise `maxConnections` if server capacity allows, or raise `connectTimeoutMs`. |
|
|
507
|
-
| `the call was queued behind an earlier call that ran 60 seconds without settling…` |
|
|
543
|
+
| `the call was queued behind an earlier call that ran 60 seconds without settling…` | A previous request did not finish, so the queued request did not run and wrote nothing. | A live session automatically retries its saves. For other commands, check database and network health before retrying. Adding connections will not resolve lock contention. |
|
|
508
544
|
| Many connections waiting on `wait_event_type = 'Lock'` | Multiple agents writing to the same session simultaneously. | Spread concurrent agents across distinct sessions. |
|
|
509
545
|
| Mostly `idle` `atomic` connections near server limit | Idle processes holding warm pool slots. | Lower `idleTimeoutMs`. |
|
|
510
546
|
| `wake-ups: polling only, the listen connection failed` | Broker could not open its `atomic-listen` connection (often out of slots). | Recount connections above and check `listenUrl`. |
|
|
511
547
|
|
|
512
|
-
The first two rows surface as `StorageTransientError` (`connection-refused`) with the quoted message as `cause`; the third surfaces as `StorageUnavailableError`.
|
|
513
|
-
|
|
514
548
|
## Troubleshooting
|
|
515
549
|
|
|
516
550
|
| Error | Fix |
|
|
@@ -523,7 +557,7 @@ The first two rows surface as `StorageTransientError` (`connection-refused`) wit
|
|
|
523
557
|
| `missing-privilege` (PG `42501` or `3F000`) | Run the named `GRANT` (see [Set up the database](#set-up-the-database)) or run `atomic storage migrate` as the owner role. |
|
|
524
558
|
| `This database was upgraded since this process started` | `atomic storage migrate` moved tables from `public` to `atomic` while this process was open; restart the process. |
|
|
525
559
|
| Password/token refused (PG `28P01`, or `28000` on Azure) | Check username, token expiry, or token format. On Azure, use `--auth azure` or request a token for `https://ossrdbms-aad.database.windows.net` (`az account get-access-token --resource-type oss-rdbms`). |
|
|
526
|
-
|
|
|
560
|
+
| Could not open the database | Check credentials (`28P01`/`28000`), whether the database exists (`3D000`), and whether the server is PostgreSQL 16 or newer. |
|
|
527
561
|
| `self-signed certificate in certificate chain` / `unable to get local issuer certificate` | Add `?sslrootcert=/path/to/root.crt` (see [TLS](#tls)). |
|
|
528
562
|
| `INVALID_PURPOSE` | Certificate in `sslrootcert` is not a CA (`basicConstraints=CA:TRUE`) or is client-only; supply the signing CA certificate. |
|
|
529
563
|
| `PATH_LENGTH_EXCEEDED` | Certificate chain exceeds the root CA's path length constraint; reissue or sign directly with the root CA. |
|
package/docs/storage.md
CHANGED
|
@@ -438,7 +438,7 @@ This reference covers the typed errors Atomic raises from storage operations. In
|
|
|
438
438
|
| `StoragePrefixError` | Invalid `prefix` (`prefix`, `reason`: `pattern`, `reserved`, `too-long` with `maxLength`, `identifier-collision` with `identifier`, or `uppercase` on PostgreSQL). | Choose a valid prefix (at most 24 lowercase characters on PostgreSQL). |
|
|
439
439
|
| `StorageSchemaVersionError` | Store was upgraded by a newer Atomic release (`domain`: `sessions` \| `intercom`, `found`, `supported`). | Upgrade Atomic. See [Upgrading older stores](#upgrading-older-stores). |
|
|
440
440
|
| `StoragePayloadTooLargeError` | Value or response exceeded backend limits (`code: "payload-too-large"`, `kind`: `value` \| `response`, `limitBytes`, `actualBytes`, `adapter`, `location`, `retryable: false`, `hint`, `cause`). | Do not retry. Reduce value size or raise custom backend limits. See [Size limits](#size-limits). |
|
|
441
|
-
| `StorageTransientError` | Temporary network, lock, or server failure (`code`: `stream-expired`, `transaction-timeout`, `connection-refused`, `connection-lost`, `lock-conflict`, `read-only-server`; fields: `adapter`, `location`, `outcome`, `attempts`, `retryable: true`, `cause`, optional `hop` and `hopFailure`).
|
|
441
|
+
| `StorageTransientError` | Temporary network, lock, or server failure (`code`: `stream-expired`, `transaction-timeout`, `connection-refused`, `connection-lost`, `lock-conflict`, `read-only-server`; fields: `adapter`, `location`, `outcome`, `attempts`, `retryable: true`, `cause`, optional `hop` and `hopFailure`). It also covers a call that did not run because an earlier one stalled (`call-queue-stalled`, `attempts: 0`). Atomic can retry a call up to 5 total attempts if nothing was written. | Check server or proxy (`hop`) health and retry. If `outcome` is `"unknown"`, read state back before repeating a write. |
|
|
442
442
|
| `StorageOutcomeUnknownError` | Driver could not confirm whether a write committed (`domain`, `id`, `key`). | Read the record back before retrying. |
|
|
443
443
|
| `StorageTransferError` | Export or import failed before writing anything (`path`, optional `line`, `id`, `reason`, `cause`). Exported from `@bastani/atomic`. | Fix the reported file or line and re-run export/import. |
|
|
444
444
|
| `StorageImportIncompleteError` | Import failed after writing some sessions (`written`, `notWritten`, `cause`). Exported from `@bastani/atomic`. | Fix the underlying storage error and re-run `atomic storage import` to finish remaining sessions. |
|
|
@@ -458,7 +458,9 @@ This reference covers the typed errors Atomic raises from storage operations. In
|
|
|
458
458
|
Other session errors: `SessionNotFoundError` (`sessionId`), `SessionExistsError` (`sessionId`), `SessionIdMismatchError` (`requested`, `found`), `SessionConflictError` (`sessionId`, `expectedSeq`, `actualSeq`), `SessionFormatVersionError` (`path`, `found`, `supported`), `SessionInvalidTextError` (`field`, `reason`), `SessionInvalidTimestampError` (`field`, `reason`, `value`), and `JsonlStoragePoisonedError` (`location`, `cause`, `rollbackCause`). After `SessionConflictError`, another process wrote first—reopen the session before writing again.
|
|
459
459
|
|
|
460
460
|
<Note>
|
|
461
|
-
**When a
|
|
461
|
+
**When a live PostgreSQL session is waiting to save:** Leave it running if you see **Waiting for PostgreSQL to save this session**. Atomic keeps retrying pending saves in order, even in print and JSON modes. See [What to do while PostgreSQL is unavailable](/storage/postgres#when-a-live-session-is-waiting-for-postgresql) for notices, wait settings, and a PgBouncer example.
|
|
462
|
+
|
|
463
|
+
**When a save fails instead of waiting:** Atomic reports `could not persist the <role> message` along with the reason and stops the current run. Print and JSON modes exit `1`. Interactive mode stays open so you can fix the reported problem and try again.
|
|
462
464
|
</Note>
|
|
463
465
|
|
|
464
466
|
### Database handle errors
|
package/docs/tools.md
CHANGED
|
@@ -224,6 +224,7 @@ Interactive mode previews file diffs as soon as arguments arrive (notebook diffs
|
|
|
224
224
|
- **Concurrency cap (64 commands).** A session runs up to **64** shell commands concurrently (including subagents' shells). Additional commands fail with an error until an active command finishes or is stopped; nothing running is stopped to make room.
|
|
225
225
|
- **`pty: true`.** Runs the command in the bundled native PTY. In interactive and standard sessions, native PTY errors fail the call rather than silently falling back to pipes; unbound standalone SDK sessions fall back to pipes if the native PTY is unavailable. Set `ATOMIC_NO_PTY=1` to force pipes (see [Environment variables](/environment-variables)). On Windows with a WSL stdin-transport bash shell, supervised execution fails with `ContainmentUnavailable: run Atomic inside WSL to supervise Linux guest commands`.
|
|
226
226
|
- **`heartbeatMs`.** Background task heartbeat interval in milliseconds (defaults to `tasks.heartbeatMs` or 15 minutes; `0` disables; minimum `60000`). See [Background tasks reference](/background-tasks/reference).
|
|
227
|
+
- **Terminal formatting.** With `pty: true`, Atomic removes color and cursor codes from the initial result sent to the model. This also applies to `powershell`. Those codes are still available in the full-output file (when present), structured output returned to codemode, or output retrieved in a later `action: "wait"` call. For ordinary pipe output, omit `pty` or set it to `false`.
|
|
227
228
|
- **Tail truncation.** Model-facing output keeps the **last** 3,000 lines or 50 KiB (truncating an oversized trailing line to its final 50 KiB) and writes `[Showing lines ... Full output: <path>]`. Structured output returned to codemode keeps up to 1 MiB (first and last 512 KiB around an omission marker if longer).
|
|
228
229
|
|
|
229
230
|
### Long-running servers and watchers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/atomic",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.18-alpha.1",
|
|
4
4
|
"description": "Atomic coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"atomicConfig": {
|
|
@@ -118,13 +118,13 @@
|
|
|
118
118
|
"prepack": "node -e \"require('node:fs').existsSync('scripts/split-dist.mjs') && import('./scripts/split-dist.mjs').then(() => import('./scripts/write-startup-files.mjs')).then(() => import('./scripts/write-startup-stages.mjs'))\""
|
|
119
119
|
},
|
|
120
120
|
"dependencies": {
|
|
121
|
-
"@bastani/atomic-natives": "0.10.
|
|
122
|
-
"@bastani/atomic-ai": "0.10.
|
|
123
|
-
"@bastani/atomic-agent-core": "0.10.
|
|
124
|
-
"@bastani/atomic-codemode": "0.10.
|
|
125
|
-
"@bastani/atomic-tui": "0.10.
|
|
126
|
-
"@bastani/atomic-schema": "0.10.
|
|
127
|
-
"@bastani/atomic-telemetry": "0.10.
|
|
121
|
+
"@bastani/atomic-natives": "0.10.18-alpha.1",
|
|
122
|
+
"@bastani/atomic-ai": "0.10.18-alpha.1",
|
|
123
|
+
"@bastani/atomic-agent-core": "0.10.18-alpha.1",
|
|
124
|
+
"@bastani/atomic-codemode": "0.10.18-alpha.1",
|
|
125
|
+
"@bastani/atomic-tui": "0.10.18-alpha.1",
|
|
126
|
+
"@bastani/atomic-schema": "0.10.18-alpha.1",
|
|
127
|
+
"@bastani/atomic-telemetry": "0.10.18-alpha.1",
|
|
128
128
|
"@silvia-odwyer/photon-node": "0.3.4",
|
|
129
129
|
"chalk": "6.0.0",
|
|
130
130
|
"glob": "14.0.6",
|