@bastani/atomic 0.10.14 → 0.10.15-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 +17 -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 +3 -3
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +3 -3
- package/dist/_shared/mode-shared-2QJSCUM6.js +3 -3
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/runtime-O4KCSG4C.js +2 -2
- package/dist/_shared/{sdk-B5LEWGGI.js → sdk-OHKMDJ74.js} +27 -5
- package/dist/_shared/{sdk-B5LEWGGI.js.map → sdk-OHKMDJ74.js.map} +1 -1
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/startup-0-0-Q3MWKUK4.js +2 -2
- package/dist/_shared/startup-0-1-M6OWAYHH.js +2 -2
- package/dist/_shared/{startup-0-2-5QHPCEON.js → startup-0-2-2HUMCPKX.js} +14 -16
- package/dist/_shared/startup-0-2-2HUMCPKX.js.map +1 -0
- package/dist/_shared/startup-0-3-4ZYBYQNM.js +3 -3
- package/dist/_shared/startup-0-4-ZMJV547D.js +3 -3
- package/dist/_shared/startup-0-5-YDW47QX6.js +3 -3
- package/dist/_shared/startup-10-0-TDQNBDDL.js +3 -3
- package/dist/_shared/startup-14-0-MLX36RBG.js +1 -1
- package/dist/_shared/startup-15-0-YUKGAC63.js +1 -1
- package/dist/_shared/startup-15-1-4S7FLMNG.js +6 -30
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +3 -3
- package/dist/_shared/startup-8-1-LZFXSD3Z.js +3 -3
- package/dist/_shared/storage-command-7MGXLJGZ.js +2 -2
- package/dist/_shared/storage-status-K7PX2RXA.js +3 -3
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- 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/auth-cli.code.js +1 -1
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- 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.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/compaction/compactor.d.ts +0 -8
- 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.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/intercom-broker-control-host.code.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 +2 -2
- 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 +1 -1
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +3 -3
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- 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/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 +2 -2
- 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 +2 -2
- 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.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +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/pinned-branch-resume.code.js +2 -2
- 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 +1 -1
- 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 +2 -2
- 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.code.js +1 -1
- 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/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.code.js +1 -1
- 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 +2 -2
- 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 +2 -2
- 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/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 +1 -1
- 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.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- 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.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.d.ts +21 -1
- 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/print-mode.js +1 -1
- package/dist/package-manager-cli.code.js +2 -2
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/6.js +1 -1
- package/dist/utils/startup-database-spare.code.js +1 -1
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/background-tasks/reference.md +182 -0
- package/docs/background-tasks.md +98 -405
- package/docs/build.md +67 -27
- package/docs/changelog.mdx +1 -1
- package/docs/codemode.md +108 -39
- package/docs/compaction/branch-summaries.md +54 -0
- package/docs/compaction/custom-compactors.md +161 -0
- package/docs/compaction/memory-compaction.md +77 -0
- package/docs/compaction/reference.md +86 -38
- package/docs/compaction.md +51 -252
- package/docs/computer-use.md +169 -321
- package/docs/containerization.md +71 -57
- package/docs/custom-provider/api-reference.md +119 -25
- package/docs/custom-provider/oauth.md +114 -132
- package/docs/custom-provider/override.md +37 -27
- package/docs/custom-provider/registration.md +107 -83
- package/docs/custom-provider/streaming.md +85 -71
- package/docs/custom-provider.md +85 -52
- package/docs/development.md +39 -29
- package/docs/docs.json +76 -63
- package/docs/environment-variables.md +94 -44
- package/docs/extensions/api-reference.md +86 -43
- package/docs/extensions/authoring.md +162 -154
- package/docs/extensions/events.md +80 -25
- package/docs/extensions/examples.md +90 -85
- package/docs/extensions/ui.md +206 -82
- package/docs/extensions.md +79 -108
- package/docs/getting-started/authentication.md +67 -36
- package/docs/getting-started/first-session.md +53 -43
- package/docs/getting-started/installation.md +116 -89
- package/docs/getting-started/project-instructions.md +48 -34
- package/docs/guides/configuration.md +82 -20
- package/docs/guides/non-interactive.md +66 -24
- package/docs/guides/resume-on-any-machine.md +135 -82
- package/docs/guides/team-setup.md +114 -105
- package/docs/guides.md +76 -32
- package/docs/herdr.md +15 -16
- package/docs/how-atomic-works.md +140 -0
- package/docs/index.md +58 -44
- package/docs/intercom/operations.md +141 -151
- package/docs/intercom/reference.md +85 -108
- package/docs/intercom.md +84 -145
- package/docs/json.md +120 -67
- package/docs/keybindings.md +85 -49
- package/docs/libraries/agent-core.md +137 -275
- package/docs/libraries/ai.md +100 -84
- package/docs/libraries/codemode.md +210 -300
- package/docs/libraries/schema.md +59 -53
- package/docs/libraries/storage-postgres.md +49 -35
- package/docs/libraries/telemetry.md +153 -354
- package/docs/libraries/tui.md +265 -393
- package/docs/libraries.md +42 -26
- package/docs/llama-cpp.md +171 -161
- package/docs/mcp-servers.md +90 -51
- package/docs/models/choose-a-model.md +188 -0
- package/docs/models/reference.md +74 -30
- package/docs/models.md +153 -88
- package/docs/orchestration/migrating-workflows.md +23 -16
- package/docs/orchestration/patterns.md +39 -44
- package/docs/orchestration.md +65 -26
- package/docs/packages/authoring.md +51 -29
- package/docs/packages/reference.md +42 -21
- package/docs/packages.md +69 -58
- package/docs/programmatic.md +118 -24
- package/docs/prompt-templates.md +84 -83
- package/docs/providers/reference.md +43 -48
- package/docs/providers.md +219 -451
- package/docs/quickstart.md +140 -120
- package/docs/reference/cli.md +135 -97
- package/docs/reference.md +20 -18
- package/docs/rpc/examples.md +76 -20
- package/docs/rpc/extension-ui.md +64 -38
- package/docs/rpc/protocol.md +361 -110
- package/docs/rpc.md +57 -17
- package/docs/sdk/reference.md +409 -534
- package/docs/sdk/storage.md +53 -13
- package/docs/sdk/structured-decisions.md +82 -56
- package/docs/sdk/web-server.md +57 -43
- package/docs/sdk.md +106 -84
- package/docs/security.md +42 -64
- package/docs/session-format.md +62 -38
- package/docs/sessions.md +99 -214
- package/docs/settings.md +165 -195
- package/docs/shell-aliases.md +9 -6
- package/docs/skills/authoring.md +69 -48
- package/docs/skills/reference.md +51 -20
- package/docs/skills.md +99 -148
- package/docs/slash-commands.md +129 -0
- package/docs/storage/custom-adapters.md +160 -85
- package/docs/storage/jsonl.md +81 -66
- package/docs/storage/postgres/pgbouncer.md +120 -126
- package/docs/storage/postgres/tuning.md +120 -143
- package/docs/storage/postgres.md +314 -330
- package/docs/storage/sqlite.md +71 -42
- package/docs/storage.md +298 -302
- package/docs/subagents/authoring.md +55 -38
- package/docs/subagents/reference.md +73 -33
- package/docs/subagents.md +119 -187
- package/docs/terminal-setup.md +50 -38
- package/docs/termux.md +67 -41
- package/docs/themes/reference.md +23 -19
- package/docs/themes.md +142 -127
- package/docs/tmux.md +47 -55
- package/docs/tools.md +147 -109
- package/docs/tui/reference.md +166 -214
- package/docs/tui.md +196 -341
- package/docs/usage.md +118 -138
- package/docs/verification.md +79 -51
- package/docs/web-access.md +121 -101
- package/docs/windows.md +26 -27
- package/docs/worktree-snapshots/reference.md +245 -0
- package/docs/worktree-snapshots.md +71 -259
- package/package.json +8 -8
- package/dist/_shared/startup-0-2-5QHPCEON.js.map +0 -1
- package/docs/guides/intercom.md +0 -32
- package/docs/guides/orchestration.md +0 -28
- package/docs/guides/subagents.md +0 -37
|
@@ -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.15-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.15-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.15-alpha.1 while this session was running; restart it to keep using /tree.", {
|
|
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.15-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.15-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.15-alpha.1 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.
|
|
9
|
+
const key = `${root.href}#0.10.15-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.15-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.15-alpha.1 while this session was running; restart it to keep using /fork.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
package/dist/modes/print-mode.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
export { announceBlueprintBuildWaits, runPrintMode, writeBlueprintBuildEvent } from "../_shared/sdk-
|
|
2
|
+
export { announceBlueprintBuildWaits, runPrintMode, writeBlueprintBuildEvent } from "../_shared/sdk-OHKMDJ74.js";
|
|
3
3
|
//# sourceMappingURL=print-mode.js.map
|
|
@@ -1099,7 +1099,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
1099
1099
|
return (async () => {
|
|
1100
1100
|
const root = new URL("./", import.meta.url);
|
|
1101
1101
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
1102
|
-
const key = `${root.href}#0.10.
|
|
1102
|
+
const key = `${root.href}#0.10.15-alpha.1`;
|
|
1103
1103
|
let release = releases.get(key);
|
|
1104
1104
|
if (release === undefined) {
|
|
1105
1105
|
const current = (async () => {
|
|
@@ -1127,7 +1127,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
1127
1127
|
} catch {
|
|
1128
1128
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
1129
1129
|
}
|
|
1130
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
1130
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.15-alpha.1" ? installed : running !== undefined && running.version !== "0.10.15-alpha.1" ? "0.10.15-alpha.1" : undefined;
|
|
1131
1131
|
if (updatedTo === undefined) throw error;
|
|
1132
1132
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
1133
1133
|
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.
|
|
9
|
+
const key = `${root.href}#0.10.15-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.15-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.15-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.15-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.15-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.15-alpha.1 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
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/_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-TVB5CBLL.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-e8b70ad5.js"],[7,"index.js"],[7,"lookup.js"],[7,"lookup-data.js"],[7,"utilities.js"],[1,"dist/_main-ee570765.js"],[1,"dist/_main-e3d2c0ee.js"],[1,"dist/_main-e6811217.js"],[1,"dist/_main-eb967ea2.js"],[1,"dist/_main-eadbd863.js"],[8,"lib/marked.esm.js"],[9,"dist/index.js"],[1,"dist/_main-ec392c93.js"],[1,"dist/_main-e6ce3ee9.js"],[1,"dist/native-modifiers.js"],[1,"dist/native-platform.js"],[1,"dist/native-module-path.js"],[1,"dist/_main-ee2a1713.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/_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-TVB5CBLL.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-e8b70ad5.js"],[7,"index.js"],[7,"lookup.js"],[7,"lookup-data.js"],[7,"utilities.js"],[1,"dist/_main-ee570765.js"],[1,"dist/_main-e3d2c0ee.js"],[1,"dist/_main-e6811217.js"],[1,"dist/_main-eb967ea2.js"],[1,"dist/_main-eadbd863.js"],[8,"lib/marked.esm.js"],[9,"dist/index.js"],[1,"dist/_main-ec392c93.js"],[1,"dist/_main-e6ce3ee9.js"],[1,"dist/native-modifiers.js"],[1,"dist/native-platform.js"],[1,"dist/native-module-path.js"],[1,"dist/_main-ee2a1713.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-e8636c88.js"],[11,"dist/_rolldown-runtime-ee51c298.js"],[11,"dist/utils/tls-certificate.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-Q3MWKUK4.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-M6OWAYHH.js"],[11,"dist/index.js"],[11,"dist/_main-ee6f6b16.js"],[11,"dist/_main-efb2d8b1.js"],[11,"dist/_main-e1febd93.js"],[11,"dist/_main-e19a4fd4.js"],[11,"dist/_main-e86630a4.js"],[12,"dist/index.js"],[12,"dist/_main-ed41ae74.js"],[12,"dist/formats/index.js"],[11,"dist/_main-e6b4b880.js"],[0,"dist/core/storage/prefix.js"],[11,"dist/compat.js"],[11,"dist/_main-efbc0df6.js"],[11,"dist/_main-e9ed3575.js"],[11,"dist/_main-e8e0f51f.js"],[11,"dist/_main-e587b2a9.js"],[11,"dist/_main-e5acc691.js"],[11,"dist/_main-ebadf898.js"],[11,"dist/_main-e412e02f.js"],[11,"dist/_main-e1dd2a51.js"],[11,"dist/_main-e3a39541.js"],[11,"dist/_main-e506020a.js"],[11,"dist/_main-ebfc53ef.js"],[11,"dist/_main-e91fc271.js"],[11,"dist/providers/github-copilot.js"],[11,"dist/utils/typebox/index.js"],[11,"dist/_lazy-e41faaec.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/utils/provider-env.js"],[11,"dist/api/transform-messages.js"],[0,"dist/_shared/startup-0-2-2HUMCPKX.js"],[13,"dist/index.js"],[13,"dist/_main-e87dd55a.js"],[13,"dist/_rolldown-runtime-e937a250.js"],[13,"dist/_main-ebff8f0f.js"],[0,"dist/core/storage/file-identity.js"],[11,"dist/api/llama-cpp-classify.lazy.js"],[11,"dist/_lazy-ecb201a1.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/utils/retry-hints.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-4ZYBYQNM.js"],[2,"dist/declarations.js"],[2,"dist/identifier.js"],[2,"dist/source.js"],[11,"dist/utils/provider-retry.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-YDW47QX6.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-ee00546a.js"],[11,"dist/_lazy-ec0fdcde.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/6.js
CHANGED
|
@@ -4,7 +4,7 @@ import { join } from "node:path";
|
|
|
4
4
|
import { parseArgs } from "../_shared/startup-0-1-M6OWAYHH.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-
|
|
7
|
+
import { previewProcessStorageSelection, previewSessionSettingSelection } from "../_shared/startup-0-2-2HUMCPKX.js";
|
|
8
8
|
import { parsePackageCommand } from "../_shared/startup-0-0-Q3MWKUK4.js";
|
|
9
9
|
// dist/utils/startup-database-spare.js
|
|
10
10
|
const DIRECT_SUBCOMMANDS = /* @__PURE__ */ new Set([
|
|
@@ -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.15-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.15-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.15-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.15-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.15-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.15-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.15-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.15-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.15-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.15-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.15-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.15-alpha.1 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Background tasks reference"
|
|
3
|
+
sidebarTitle: "Background tasks"
|
|
4
|
+
description: "Tool observation and wait semantics, slash-command routing in subagent views, heartbeat sampling limits, process cleanup, and task SDK errors."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
This page documents the exact tool contracts, UI layout rules, heartbeat sampling bounds, process-tree cleanup behavior, and `@bastani/atomic` SDK error classes for background tasks. For everyday interactive usage, see [Manage background tasks](/background-tasks).
|
|
8
|
+
|
|
9
|
+
## Observation and wait matrix {#choose-how-long-to-wait}
|
|
10
|
+
|
|
11
|
+
Tool calls choose foreground-first or immediate background observation through `wait` and `action: "wait"`. Observation budgets control only when a tool call returns; they never kill a running command or subagent.
|
|
12
|
+
|
|
13
|
+
| Call | Observation behavior |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| `bash`, `powershell`, or `history://` `read`/`search` without `wait` | Waits for the session's command observation budget (default `10000` ms), then returns a task ID (`task-...` or `history-...`) while the task continues in the background. |
|
|
16
|
+
| `bash`, `powershell`, or `history://` `read`/`search` with `wait: { kind: "background" }` | Returns a task ID immediately without waiting (`budgetMs` is disallowed with `kind: "background"`). |
|
|
17
|
+
| `bash`, `powershell`, or `history://` `read`/`search` with `wait: { kind: "foreground" }` | Waits for the session's command observation budget (default `10000` ms), then continues in the background if still running. |
|
|
18
|
+
| `bash`, `powershell`, or `history://` `read`/`search` with `wait: { kind: "foreground", budgetMs }` | Waits up to `budgetMs` milliseconds (finite non-negative number; `0` returns immediately), then continues in the background if still running. |
|
|
19
|
+
| `{ action: "wait", id, budgetMs? }` on `bash`, `powershell`, `read`, or `search` | Observes an existing task from this session up to `budgetMs` (default `10000` ms when omitted; `0` polls immediately). Cannot be combined with launch fields (`command`, `path`, `pattern`, `paths`, `wait`). |
|
|
20
|
+
| `subagent` launch | Always runs in the background and returns at admission. Any `wait` passed on launch is ignored (passing `wait: { kind: "foreground" }` adds a note pointing to `action: "wait"`). |
|
|
21
|
+
| `subagent({ action: "wait", id, budgetMs? })` | Waits up to `budgetMs` (default `tasks.wait.agentBudgetMs`, `30000` ms; `0` polls immediately). Yields on user steering (`input-needed`), inbound Intercom messages (`intercom-coordination`), heartbeats, or `Esc` without stopping the subagent. |
|
|
22
|
+
|
|
23
|
+
Key behavioral rules:
|
|
24
|
+
|
|
25
|
+
- **Cancelling a launch vs. cancelling `action: "wait"`.** Pressing `Esc` (or aborting the call's `AbortSignal`) during the **initial foreground wait** of `bash`, `powershell`, or `history://` `read`/`search` **cancels the underlying command or history scan**. By contrast, cancelling `{ action: "wait", id }` on an already-running task only ends the wait and leaves the task running with its original deadline.
|
|
26
|
+
- **Incremental output paging on running shells.** Calling `bash` or `powershell` with `{ action: "wait", id }` on a **running** shell returns at most **8 KiB** of newly produced output per call (trimmed to a complete UTF-8 character boundary and advancing the wait offset). When more output is buffered, Atomic appends `[Additional output not shown; wait again to retrieve retained output.]`. Waiting on a **settled** shell returns all retained output (subject to standard truncation with a full-output file path).
|
|
27
|
+
- **Timed-out shell waits.** Waiting on a shell stopped by its `timeout` returns `isError: true` and reports `Task <id> was cancelled (timed out after <N> seconds).`.
|
|
28
|
+
- **Unknown and evicted IDs.** Waiting on an unknown shell ID fails with `No background task "<id>" in this session`. Waiting on an evicted shell ID fails with `TaskEvicted: Task "<id>" finished and is no longer kept in this session`. Waiting on an unknown or expired history task fails with `Unknown history task <id>: it was never started here, or it ended long ago`.
|
|
29
|
+
- **SDK host default wait policy.** Custom SDK hosts can override automatic wait budgets or set `tasks.wait.kind: "until-settled"` so omitted foreground budgets wait until completion, while explicit per-call `budgetMs` values still take precedence. See [Supervised command SDK](/sdk/reference#supervised-command-sdk).
|
|
30
|
+
|
|
31
|
+
## Stopping tasks and `CancelReceipt` {#stop-a-shell-task-from-a-tool-call}
|
|
32
|
+
|
|
33
|
+
### `kill` tool contract
|
|
34
|
+
|
|
35
|
+
`kill({ id })` stops a background shell (`bash` or `powershell`) or a background `history://` scan started by the current session:
|
|
36
|
+
|
|
37
|
+
- **Shell tasks.** Returns a summary line (`◼ stopping · cancellation requested`, `◯ cancelled`, or `● already completed · exit 0`) and a structured `CancelReceipt` in `details`:
|
|
38
|
+
- `taskId`: the task identifier.
|
|
39
|
+
- `decision`: `"already-settled" | "already-finishing" | "cancellation-requested"`.
|
|
40
|
+
- `execution`: `{ kind: "queued" | "running" | "cancelling" | "settled", ... }`.
|
|
41
|
+
- `cleanup`: `{ kind: "active" | "draining" | "reaped" | "quarantined" | "failed", ... }`. When `cleanup.kind === "failed"`, the tool result sets `isError: true`.
|
|
42
|
+
- If a command finished before `kill` ran, its original outcome is preserved. Stopping a task never erases its output or completion notice.
|
|
43
|
+
- **History tasks (`history-N`).** Stops the scan, sends no completion notice, and returns plain text with `details: undefined` (no `CancelReceipt`).
|
|
44
|
+
- **Subagent tasks.** Calling `kill` with a subagent task ID is rejected with `kill only supports shell tasks`. Use `subagent({ action: "quit", id })` or `subagent({ action: "pause", id })` instead.
|
|
45
|
+
- **Interactive stop-all (`Ctrl+X Ctrl+K`).** Stops every running or queued background subagent and shell owned by the session (including shells started by subagents). It does **not** stop background `history://` tasks.
|
|
46
|
+
- **Windows supervision.** Native Windows refuses background shell launches it cannot supervise, and legacy Windows WSL `bash.exe` stdin transport is unsupported (run Atomic inside WSL for POSIX Bash).
|
|
47
|
+
|
|
48
|
+
## Commands while viewing a subagent {#commands-while-viewing-a-subagent}
|
|
49
|
+
|
|
50
|
+
Slash commands behave differently depending on whether you are viewing a subagent on the **main chat screen** (selected from the agent panel or `/tasks`) or inside a **subagent's own chat surface** inside `/tasks`.
|
|
51
|
+
|
|
52
|
+
### Main-screen subagent view
|
|
53
|
+
|
|
54
|
+
| Input or shortcut | Behavior while viewing a subagent on the main screen |
|
|
55
|
+
| --- | --- |
|
|
56
|
+
| `/settings`, `/scoped-models`, `/tasks`, `/resume`, `/export`, `/share`, `/trust`, `/login`, `/logout`, `/reload`, `/quit`, `/exit`, `app.session.resume` | Run on `main` in place while the subagent remains visible. `/tasks` lists all tasks of the session; `/resume` opens the session picker. |
|
|
57
|
+
| Bundled extension commands (`/agents`, `/mcp`, `/intercom`, `/curator`, `/google-account`, `/search`, `/websearch`, `/llama`) | Run on `main` in place while the subagent remains visible. |
|
|
58
|
+
| `/session`, `/tools`, `/changelog`, `/hotkeys`, `/name`, `/debug` | Switch to `main` first so output prints in the main transcript while preserving main's draft. |
|
|
59
|
+
| `/compact`, `/tree`, `/fork`, `/clone`, `/new`, `/import`, registered `/clear` or `/rewind`, `app.session.new`, `app.session.tree`, `app.session.fork` | Prompt for confirmation (`/<command> acts on the main conversation, not <agent>`, defaulting to **Cancel**). Once confirmed, `/new` and `/import` switch to `main` immediately; `/fork` and `/clone` switch to `main` when complete. |
|
|
60
|
+
| `/model`, `/thinking`, `Ctrl+L`, `Ctrl+P`, `Shift+Ctrl+P`, `Shift+Tab` | Refused with a notice under the subagent transcript. Switch to `main` to change main's model or thinking level. |
|
|
61
|
+
| `!cmd`, `!!cmd` | Refused with `` `!` commands run in the main chat. Switch to main to run them. `` Text stays in the prompt. |
|
|
62
|
+
| `/copy` | Copies the viewed subagent's last assistant message to the clipboard. |
|
|
63
|
+
| `/skill:<name>`, prompt templates, user or project extension commands, ordinary text | Sent to the viewed subagent's own session using its skills, templates, and working directory. |
|
|
64
|
+
|
|
65
|
+
### Bare-only vs. argument-taking built-in commands
|
|
66
|
+
|
|
67
|
+
- **Take arguments (intercepted with or without arguments):** `/tasks`, `/model`, `/thinking`, `/export`, `/import`, `/name`, `/login`, `/logout`, `/compact`, `/resume`, plus `/session snapshot`.
|
|
68
|
+
- **Bare-only (intercepted only with no trailing text):** `/settings`, `/scoped-models`, `/share`, `/trust`, `/reload`, `/quit`, `/exit`, `/tools`, `/changelog`, `/hotkeys`, `/tree`, `/fork`, `/clone`, `/new`, `/copy`, `/debug`, and `/session` (other than `/session snapshot`). Appending extra text (such as `/copy that` or `/new idea`) sends the line to the subagent as normal text.
|
|
69
|
+
|
|
70
|
+
### Subagent chat inside `/tasks`
|
|
71
|
+
|
|
72
|
+
Inside a subagent's own chat surface in `/tasks`, only `/tasks` (listing that subagent's own tasks), `/copy`, and `/hotkeys` run locally. Every other built-in slash command is refused with `/<name> is not available in a subagent chat` and never sent as text. Skills, prompt templates, and user or project extension commands still run in the subagent's session.
|
|
73
|
+
|
|
74
|
+
See [Slash commands](/slash-commands) for the full command catalog.
|
|
75
|
+
|
|
76
|
+
## Agent panel and `/tasks` UI reference
|
|
77
|
+
|
|
78
|
+
### Responsive columns, row limits, and timers
|
|
79
|
+
|
|
80
|
+
- **Model column.** Displays `provider/model-id` and reasoning level, capped at **40 columns** (truncating the model ID while keeping the reasoning level). Updates on model fallback, resume, or effort change; blank when unknown.
|
|
81
|
+
- **Responsive breakpoints.** Task titles shorten first. Below **100 columns** (or when a row lacks space for task and elapsed time), the model column hides. Below **70 columns**, token counts hide. If fewer than **8 columns** remain for the task title, the title hides.
|
|
82
|
+
- **Row caps.** Up to **4** rows appear while the prompt has focus (`+N more` counts omitted rows, including nested shells, while keeping the viewed subagent and its running shells visible). Focusing the panel displays up to **8** rows at a time. The `main` row never counts toward either cap.
|
|
83
|
+
- **Stopped-row dimming.** Finished subagents leave the panel immediately unless currently viewed (a viewed finished row stays until you switch away or dismiss it with `x`). Stopped, paused, or interrupted subagents stay while other work runs, dim after **30 seconds**, and leave once nothing else is running.
|
|
84
|
+
- **Selection memory.** The panel remembers your last selected row (`main`, subagent, or a subagent opened from `/tasks` via `Enter` or click) and scroll position across visits. Leaving `/tasks` with `Esc` does not change the remembered row.
|
|
85
|
+
- **Shell output previews and large saved entries.** `/tasks` shell output pages display the last **8 KiB** of retained output starting on a valid UTF-8 character boundary (trailing blank lines trimmed; unframed below **24 columns**). Shell detail pages display up to 10 wrapped lines from that 8 KiB tail. Database-backed subagent transcripts page on scroll; any single saved entry exceeding **1 MiB** shows its position and byte count so you can read it via `history://` or export.
|
|
86
|
+
- **Keybinding IDs.** Customize task shortcuts in `keybindings.json` ([Keybindings](/keybindings)), including `app.list.stop` (`x`), `app.tasks.openWaited` (`Alt+W`), `app.session.resume`, and `app.session.new` / `tree` / `fork`.
|
|
87
|
+
|
|
88
|
+
### Extension panel sources
|
|
89
|
+
|
|
90
|
+
Extensions can contribute custom rows to the agent panel and `/tasks` via [`atomic.registerAgentPanelSource()`](/extensions/api-reference#atomic-registeragentpanelsource-source). If an extension source throws or returns invalid rows, Atomic hides that source's invalid rows and logs a warning once per source while keeping other rows and chat usable; fix the extension and run `/reload` to re-register.
|
|
91
|
+
|
|
92
|
+
## Heartbeat sampling and batching
|
|
93
|
+
|
|
94
|
+
- **Eligible states.** Only **running** shells and subagents emit heartbeats. Queued, stopping, completed, failed, killed, paused, quit, and `history://` tasks never emit heartbeats.
|
|
95
|
+
- **Cadence rules.** The interval (`heartbeatMs`, default `tasks.heartbeatMs` = `900000` ms / 15 minutes; `0` disables; minimum `60000` ms) counts from when the task started running. In parallel `subagent` calls, a per-task `heartbeatMs` overrides the top-level value. Resumed subagents keep their original launch's `heartbeatMs` (falling back to the chat default only if omitted originally).
|
|
96
|
+
- **Shell sampling.** Shell output is sampled every **30 seconds** from the trailing **2 KiB** of output, reporting total output size, time since last output, and up to **6** non-empty trailing lines (each capped at **160 characters**).
|
|
97
|
+
- **Subagent fields.** Subagent heartbeats report agent name, elapsed time, time since last activity, current or last tool call, turn count, tool-call count, token count, **active model** (and fallback mismatch `model <ran>, not the requested <requested>` when fallback occurred), and attention states (`input-needed` or `no recent activity`).
|
|
98
|
+
- **Batching and caps.** Tasks coming due within `min(1 minute, cadence / 4)` share one heartbeat (for example, 15 seconds on a 1-minute cadence). One heartbeat describes up to **8** tasks in full, lists up to **20** more by name, and summarizes any beyond 28 as `; and N more`. In chat, a collapsed heartbeat card lists up to 5 tasks and counts the rest.
|
|
99
|
+
- **Backpressure and idle wake.** Each chat holds at most **1** unread heartbeat. While an unread heartbeat waits, due tasks recheck every **30 seconds**; missed intervals never stack or replay. Heartbeats queue without interrupting streaming text and wake an idle chat (including after an `Esc` interrupt) unless `tasks.heartbeatWakesIdleSession` is `false` or you queued a draft and interrupted with `Ctrl+C`. Heartbeats also yield an active `action: "wait"` call while the task continues.
|
|
100
|
+
- **Routing.** Subagent-launched shells are managed by the launching main session, so their heartbeats go to the main session.
|
|
101
|
+
|
|
102
|
+
## Lifetime, retention, and process cleanup {#lifetime-retention-and-cleanup}
|
|
103
|
+
|
|
104
|
+
### Output and retention limits
|
|
105
|
+
|
|
106
|
+
| Resource | Limit | Behavior when reached |
|
|
107
|
+
| --- | --- | --- |
|
|
108
|
+
| Shell live preview buffer | `1 MiB` (`1,048,576` B) | Bounds live preview memory while full output spools to disk. |
|
|
109
|
+
| Shell foreground spill threshold | `8 MiB` (`8,388,608` B) | Spills large foreground output cleanly without unbounded memory growth. |
|
|
110
|
+
| Shell disk output cap | `5 GiB` (`5,368,709,120` B) | Cancels runaway-output shells automatically with cause `"output-limit"` (`"output limit reached"`). |
|
|
111
|
+
| Concurrent shell commands per session | `64` | Refuses new launches until a command finishes or stops (includes subagent shells; excludes stopping shells). |
|
|
112
|
+
| Concurrent `history://` tasks per session | `4` | Refuses new history scans until one finishes or stops; separate from the 64-shell limit. |
|
|
113
|
+
| Finished tasks retained per session | `256` (`FINISHED_TASK_RETENTION`) | Evicts the oldest finished task once its completion notice is delivered; deletes evicted shell output files while preserving conversation notices and saved subagent sessions. |
|
|
114
|
+
| Finished `history://` tasks retained | `16` | Kept in memory so late `action: "wait"` calls still return the result. |
|
|
115
|
+
|
|
116
|
+
### Process-tree containment and cleanup
|
|
117
|
+
|
|
118
|
+
- **Linux and macOS.** Each shell command runs in its own session so teardown stops child processes across process groups while leaving intentionally detached processes (such as `setsid` daemons) alone once they close stdout/stderr. On Linux with a user-owned **cgroup v2** hierarchy, Atomic additionally places background shells in cgroups for tighter process-tree containment. Set `ATOMIC_TASK_CGROUP=0` to disable cgroup v2 containment (for example in containers with restrictive cgroup policies).
|
|
119
|
+
- **Windows.** Atomic uses Windows Job objects to terminate process trees cleanly. On native Windows, Suspend opens a PowerShell subshell while background tasks keep running until you exit back to Atomic.
|
|
120
|
+
- **Unconfirmed teardown and admission waits.** If a shell exits while a descendant keeps stdout/stderr open, Atomic preserves the shell's exit code and output (discarding later writes) and waits up to **15 seconds** in the background — and up to **15 seconds** more on session close — to confirm process-tree teardown (`cleanup.kind: "quarantined"`). While waiting for confirmation, that shell holds its concurrency permit. New shell launches blocked only by pending-cleanup permits wait up to **5 seconds** before failing with `TaskCleanupAdmissionTimeoutError`.
|
|
121
|
+
- **Temporary worktrees on close.** Closing or switching sessions waits for subagent execution, output, and recovery notices while remaining batch Git worktree cleanup continues in the background. See [Temporary worktrees](/subagents#temporary-worktrees).
|
|
122
|
+
|
|
123
|
+
## Task SDK errors
|
|
124
|
+
|
|
125
|
+
All four task error families below are exported from `@bastani/atomic`. Branch on the class, guard, or `code`, not the message text.
|
|
126
|
+
|
|
127
|
+
### `TaskEvictedError`
|
|
128
|
+
|
|
129
|
+
Thrown (or wrapped as `cause` on `TaskToolError` with `code: "TaskEvicted"`) when a task finished and was evicted past the 256-task retention window (`FINISHED_TASK_RETENTION`).
|
|
130
|
+
|
|
131
|
+
- `code`: `"task_evicted"`
|
|
132
|
+
- `retryable`: `false`
|
|
133
|
+
- Fields: `taskId`, `retainedFinishedTasks`, `hint`
|
|
134
|
+
- Helpers: `isTaskEvictedError(error)`, `findTaskEvictedError(error)`, `rehydrateTaskEvictedError(serialized)`
|
|
135
|
+
|
|
136
|
+
### `TaskCleanupError` and `TaskCleanupAdmissionTimeoutError`
|
|
137
|
+
|
|
138
|
+
Thrown when shell process-tree teardown cannot be confirmed within the confirmation window, or when a new command waits 5 seconds behind unconfirmed-cleanup permits.
|
|
139
|
+
|
|
140
|
+
- `code`: `"task_cleanup_unconfirmed"` (both classes)
|
|
141
|
+
- `retryable`: `true` (`isRetryableTaskError(error)` returns `true`)
|
|
142
|
+
- `TaskCleanupError` fields: `phase` (`"session-close" | "app-shutdown" | "stage-pause" | "command-admission"`), `failures` (`readonly TaskCleanupFailure[]`), `hint`
|
|
143
|
+
- `TaskCleanupAdmissionTimeoutError` extends `TaskCleanupError` with `phase: "command-admission"`, `timeoutMs`, and `elapsedMs`
|
|
144
|
+
- Helpers: `isTaskCleanupError(error)`, `isTaskCleanupAdmissionTimeoutError(error)`, `isRetryableTaskError(error)`, `rehydrateTaskCleanupError(serialized)`
|
|
145
|
+
|
|
146
|
+
### `TaskToolError`
|
|
147
|
+
|
|
148
|
+
Thrown on shell `wait` and `kill` failures. Only `StaleGeneration` is `retryable: true`. On `TaskEvicted`, `error.cause` is a `TaskEvictedError`.
|
|
149
|
+
|
|
150
|
+
| `code` | Meaning | `retryable` |
|
|
151
|
+
| --- | --- | --- |
|
|
152
|
+
| `UnknownTask` | Task ID does not exist in this session. | `false` |
|
|
153
|
+
| `ScopeMismatch` | Task ID belongs to a different session. | `false` |
|
|
154
|
+
| `TaskEvicted` | Finished task left the 256-task retention window (`cause`: `TaskEvictedError`). | `false` |
|
|
155
|
+
| `OwnerClosed` | Session's task owner has closed. | `false` |
|
|
156
|
+
| `EnvironmentClosing` | Atomic runtime is shutting down. | `false` |
|
|
157
|
+
| `ObserverCancelled` | Wait call was cancelled by its caller signal. | `false` |
|
|
158
|
+
| `OutputUnavailable` | Retained task output is no longer readable. | `false` |
|
|
159
|
+
| `CleanupFailed` | Stopping or cleaning up the task failed. | `false` |
|
|
160
|
+
| `StaleGeneration` | Task list generation changed during read; retry the call. | `true` |
|
|
161
|
+
|
|
162
|
+
Helpers: `isTaskToolError(error)`, `rehydrateTaskToolError(serialized)`.
|
|
163
|
+
|
|
164
|
+
### `TaskMessageError` and `TaskMessageTimeoutError`
|
|
165
|
+
|
|
166
|
+
Thrown when sending a typed message into a task transcript fails.
|
|
167
|
+
|
|
168
|
+
| `code` | Meaning | `retryable` |
|
|
169
|
+
| --- | --- | --- |
|
|
170
|
+
| `task-unavailable` | Task is no longer available to receive messages. | `false` |
|
|
171
|
+
| `messages-unsupported` | Task kind does not accept transcript messages (for example, a shell task). | `false` |
|
|
172
|
+
| `delivery-refused` | Target agent refused delivery; check availability and retry. | `true` |
|
|
173
|
+
| `delivery-unconfirmed` | Delivery acknowledgement was not confirmed (`TaskMessageTimeoutError` sets `phase: "delivery-acknowledgement"`, `timeoutMs`, `elapsedMs`). Check transcript before retrying. | `false` |
|
|
174
|
+
|
|
175
|
+
Helpers: `isTaskMessageError(error)`, `isTaskMessageTimeoutError(error)`, `isRetryableTaskMessageError(error)`, `findTaskMessageError(error)`, `rehydrateTaskMessageError(serialized)`.
|
|
176
|
+
|
|
177
|
+
## Related SDK documentation
|
|
178
|
+
|
|
179
|
+
- [Owner-bound task supervisor](/sdk/reference#owner-bound-task-supervisor)
|
|
180
|
+
- [Finished task retention and eviction](/sdk/reference#finished-task-retention-and-eviction)
|
|
181
|
+
- [Supervised command SDK](/sdk/reference#supervised-command-sdk)
|
|
182
|
+
- [`atomic.registerAgentPanelSource()`](/extensions/api-reference#atomic-registeragentpanelsource-source)
|