@bastani/atomic 0.10.7-alpha.1 → 0.10.8-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 +42 -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 +5 -5
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +5 -5
- package/dist/_shared/mode-shared-2QJSCUM6.js +5 -5
- package/dist/_shared/p1a-prewarm-UQY3X2UK.js +3 -3
- package/dist/_shared/runtime-O4KCSG4C.js +2 -2
- package/dist/_shared/{sdk-WQIOHVKO.js → sdk-OSBEPR3Q.js} +2875 -12
- package/dist/_shared/sdk-OSBEPR3Q.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +3 -3
- package/dist/_shared/startup-0-0-TYUFUOJZ.js +2 -2
- package/dist/_shared/startup-0-1-W2G2UY7R.js +163 -163
- package/dist/_shared/startup-0-1-W2G2UY7R.js.map +1 -1
- package/dist/_shared/{startup-0-2-SZGQIWHI.js → startup-0-2-UXBUEOXW.js} +4 -4
- package/dist/_shared/{startup-0-2-SZGQIWHI.js.map → startup-0-2-UXBUEOXW.js.map} +1 -1
- package/dist/_shared/startup-0-3-T4DVFYWX.js +3 -3
- package/dist/_shared/startup-0-4-HN5EB4K7.js +3 -3
- package/dist/_shared/{startup-0-5-OHJNE6JH.js → startup-0-5-FD2P735I.js} +5 -5
- package/dist/_shared/{startup-0-5-OHJNE6JH.js.map → startup-0-5-FD2P735I.js.map} +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
- package/dist/_shared/startup-12-0-55AAXBJZ.js +2 -2
- package/dist/_shared/startup-14-0-MLX36RBG.js +17 -4
- package/dist/_shared/startup-14-0-MLX36RBG.js.map +1 -1
- package/dist/_shared/startup-15-0-YUKGAC63.js +3 -3
- package/dist/_shared/startup-15-1-4S7FLMNG.js +5 -5
- package/dist/_shared/startup-8-0-34CBHPZH.js +3 -3
- package/dist/_shared/{startup-8-1-SJW2GMAM.js → startup-8-1-4KANEHRA.js} +6 -6
- package/dist/_shared/{startup-8-1-SJW2GMAM.js.map → startup-8-1-4KANEHRA.js.map} +1 -1
- package/dist/_shared/storage-command-7MGXLJGZ.js +3 -3
- package/dist/_shared/task-reference-stream-JWMUZSJX.js +1 -1
- 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/CHANGELOG.md +11 -0
- 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 +3 -3
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +2 -2
- 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 +2 -2
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +2 -2
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.code.js +1 -1
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +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.code.js +1 -1
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/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/extensions/loader-virtual-modules.js +1 -1
- package/dist/core/extensions/runner-context.js +1 -1
- 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/model-registry.js +1 -1
- package/dist/core/package-manager-storage-adapters.code.js +1 -1
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/sdk.code.js +3 -3
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-claims.d.ts +30 -0
- package/dist/core/session-lifecycle-work.d.ts +74 -0
- package/dist/core/session-manager-core.js +4 -4
- 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.code.js +1 -1
- 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.code.js +1 -1
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +3 -3
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.code.js +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/session-search-index.d.ts +39 -0
- 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.d.ts +400 -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.code.js +1 -1
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/session/yield-turn.d.ts +3 -0
- package/dist/core/storage/storage-status.code.js +1 -1
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.code.js +1 -1
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/storage/transfer-files.d.ts +74 -0
- 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.code.js +1 -1
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +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 +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.code.js +1 -1
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/read-url.code.js +1 -1
- 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.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 +2 -2
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.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 +13 -3
- package/dist/index.js +11 -11
- 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/main.js +1 -1
- 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.code.js +1 -1
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/print-mode.js +1 -1
- 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/startup-files.json +1 -1
- package/dist/startup-stages/10.js +1 -1
- package/dist/startup-stages/12.js +1 -1
- package/dist/startup-stages/8.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/sdk/reference.md +85 -0
- package/docs/sdk.md +23 -1
- package/package.json +8 -8
- package/dist/_shared/fork-staging-maintenance-AIIUXOZQ.js +0 -19
- package/dist/_shared/fork-staging-maintenance-AIIUXOZQ.js.map +0 -1
- package/dist/_shared/sdk-WQIOHVKO.js.map +0 -1
- package/dist/_shared/sql-session-store-5FD3WBMZ.js +0 -2903
- package/dist/_shared/sql-session-store-5FD3WBMZ.js.map +0 -1
|
@@ -297,7 +297,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
297
297
|
return (async () => {
|
|
298
298
|
const root = new URL("../../../", import.meta.url);
|
|
299
299
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
300
|
-
const key = `${root.href}#0.10.
|
|
300
|
+
const key = `${root.href}#0.10.8-alpha.1`;
|
|
301
301
|
let release = releases.get(key);
|
|
302
302
|
if (release === undefined) {
|
|
303
303
|
const current = (async () => {
|
|
@@ -325,7 +325,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
325
325
|
} catch {
|
|
326
326
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
327
327
|
}
|
|
328
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
328
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.8-alpha.1" ? installed : running !== undefined && running.version !== "0.10.8-alpha.1" ? "0.10.8-alpha.1" : undefined;
|
|
329
329
|
if (updatedTo === undefined) throw error;
|
|
330
330
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
331
331
|
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.8-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.8-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8-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.8-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.8-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8-alpha.1 while this session was running; restart it to keep using /tree.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
import { read, readValue, skip, stringValue } from "../../../_shared/startup-0-5-
|
|
2
|
+
import { read, readValue, skip, stringValue } from "../../../_shared/startup-0-5-FD2P735I.js";
|
|
3
3
|
// dist/modes/interactive/components/user-message-selector-archive.js
|
|
4
4
|
/**
|
|
5
5
|
* UTF-16 code units of a prompt's one-line label that a /fork row keeps. A row is drawn on one terminal line, so a
|
|
@@ -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.8-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.8-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8-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.8-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.8-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8-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-OSBEPR3Q.js";
|
|
3
3
|
//# sourceMappingURL=print-mode.js.map
|
|
@@ -10,10 +10,10 @@ import { DynamicBorder, cleanupWindowsSelfUpdateQuarantine, handlePackageCommand
|
|
|
10
10
|
import { createProjectTrustContext } from "./_shared/startup-0-3-T4DVFYWX.js";
|
|
11
11
|
import { parseConfigCommand } from "./_shared/config-command-parser-XRBNVMBV.js";
|
|
12
12
|
import { AuthStorage } from "./_shared/startup-0-4-HN5EB4K7.js";
|
|
13
|
-
import { DefaultPackageManager, ModelRuntime } from "./_shared/startup-0-5-
|
|
13
|
+
import { DefaultPackageManager, ModelRuntime } from "./_shared/startup-0-5-FD2P735I.js";
|
|
14
14
|
import { formatPackageInstallWarning, isOfflineModeEnabled } from "./_shared/startup-0-1-W2G2UY7R.js";
|
|
15
15
|
import { DefaultResourceLoader, resolveProjectTrusted } from "./_shared/startup-14-0-MLX36RBG.js";
|
|
16
|
-
import { SettingsManager } from "./_shared/startup-8-1-
|
|
16
|
+
import { SettingsManager } from "./_shared/startup-8-1-4KANEHRA.js";
|
|
17
17
|
import { ProjectTrustStore, hasProjectTrustInputs } from "./_shared/p1b-elig-ENCUPKKJ.js";
|
|
18
18
|
import { formatVersionCheckError, getLatestPiRelease, isNewerPackageVersion } from "./_shared/mode-shared-2QJSCUM6.js";
|
|
19
19
|
// dist/modes/interactive/components/config-selector-project-scope.js
|
|
@@ -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.8-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.8-alpha.1" ? installed : running !== undefined && running.version !== "0.10.8-alpha.1" ? "0.10.8-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.8-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.8-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8-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.8-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.8-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8-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],["chalk",0],["get-east-asian-width",1],["marked",1],["marked-cjk-friendly",1],["@bastani/atomic-ai",0],["@bastani/atomic-agent-core",0],["glob",0],["@bastani/atomic-schema",11]],"files":[[0,"dist/modes/interactive-engine/engine-prewarm.js"],[0,"dist/_shared/rolldown-runtime-BGM3D5V3.js"],[0,"dist/_shared/p1a-prewarm-UQY3X2UK.js"],[0,"dist/_shared/p0-cli-BB45ZQY6.js"],[0,"dist/_shared/p1-shared-RG5I5LJ6.js"],[1,"dist/helper-programs/index.js"],[0,"dist/utils/canonical-path.js"],[0,"dist/utils/path-exists.js"],[0,"dist/utils/worker-threads.js"],[2,"dist/node-options.js"],[1,"dist/_main-ea49a2e6.js"],[1,"dist/_lazy-eb232bf4.js"],[1,"dist/_rolldown-runtime-e937a250.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-ENCUPKKJ.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"],[0,"dist/_shared/p2-shell-main-B2WIALFD.js"],[0,"dist/_shared/p2-common-YLSYXMDQ.js"],[1,"dist/_main-eb08764b.js"],[1,"dist/_main-e8b70ad5.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"],[1,"dist/_main-ec392c93.js"],[1,"dist/_main-e29b4567.js"],[1,"dist/_main-efe521dc.js"],[7,"source/index.js"],[0,"dist/utils/memoize-async.js"],[8,"index.js"],[9,"lib/marked.esm.js"],[10,"dist/index.js"],[1,"dist/native-modifiers.js"],[1,"dist/native-platform.js"],[7,"source/utilities.js"],[7,"source/vendor/ansi-styles/index.js"],[7,"source/vendor/supports-color/index.js"],[8,"lookup.js"],[1,"dist/native-module-path.js"],[8,"lookup-data.js"],[8,"utilities.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/utils/tls-certificate.js"],[11,"dist/utils/request-admission.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],["chalk",0],["get-east-asian-width",1],["marked",1],["marked-cjk-friendly",1],["@bastani/atomic-ai",0],["@bastani/atomic-agent-core",0],["glob",0],["@bastani/atomic-schema",11]],"files":[[0,"dist/modes/interactive-engine/engine-prewarm.js"],[0,"dist/_shared/rolldown-runtime-BGM3D5V3.js"],[0,"dist/_shared/p1a-prewarm-UQY3X2UK.js"],[0,"dist/_shared/p0-cli-BB45ZQY6.js"],[0,"dist/_shared/p1-shared-RG5I5LJ6.js"],[1,"dist/helper-programs/index.js"],[0,"dist/utils/canonical-path.js"],[0,"dist/utils/path-exists.js"],[0,"dist/utils/worker-threads.js"],[2,"dist/node-options.js"],[1,"dist/_main-ea49a2e6.js"],[1,"dist/_lazy-eb232bf4.js"],[1,"dist/_rolldown-runtime-e937a250.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-ENCUPKKJ.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"],[0,"dist/_shared/p2-shell-main-B2WIALFD.js"],[0,"dist/_shared/p2-common-YLSYXMDQ.js"],[1,"dist/_main-eb08764b.js"],[1,"dist/_main-e8b70ad5.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"],[1,"dist/_main-ec392c93.js"],[1,"dist/_main-e29b4567.js"],[1,"dist/_main-efe521dc.js"],[7,"source/index.js"],[0,"dist/utils/memoize-async.js"],[8,"index.js"],[9,"lib/marked.esm.js"],[10,"dist/index.js"],[1,"dist/native-modifiers.js"],[1,"dist/native-platform.js"],[7,"source/utilities.js"],[7,"source/vendor/ansi-styles/index.js"],[7,"source/vendor/supports-color/index.js"],[8,"lookup.js"],[1,"dist/native-module-path.js"],[8,"lookup-data.js"],[8,"utilities.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/utils/tls-certificate.js"],[11,"dist/utils/request-admission.js"],[11,"dist/_main-ecb03255.js"],[11,"dist/_rolldown-runtime-ee51c298.js"],[0,"dist/main.js"],[0,"dist/_shared/startup-8-1-4KANEHRA.js"],[0,"dist/_shared/startup-15-1-4S7FLMNG.js"],[0,"dist/_shared/startup-0-0-TYUFUOJZ.js"],[0,"dist/_shared/startup-0-1-W2G2UY7R.js"],[0,"dist/_shared/startup-0-2-UXBUEOXW.js"],[0,"dist/_shared/startup-0-3-T4DVFYWX.js"],[0,"dist/_shared/settings-startup-4QCVCI53.js"],[0,"dist/_shared/startup-8-0-34CBHPZH.js"],[0,"dist/_shared/startup-0-5-FD2P735I.js"],[0,"dist/_shared/startup-0-4-HN5EB4K7.js"],[11,"dist/index.js"],[0,"dist/core/storage/errors.js"],[11,"dist/compat.js"],[0,"dist/core/worktree-snapshot/blob-store.js"],[0,"dist/core/storage/provider.js"],[0,"dist/core/storage/file-identity.js"],[11,"dist/utils/typebox/index.js"],[11,"dist/providers/all.js"],[11,"dist/utils/typebox/value.js"],[0,"dist/core/storage/selection.js"],[0,"dist/_shared/startup-15-0-YUKGAC63.js"],[0,"dist/_shared/startup-10-0-TDQNBDDL.js"],[0,"dist/_shared/startup-12-0-55AAXBJZ.js"],[0,"dist/_shared/startup-14-0-MLX36RBG.js"],[12,"dist/index.js"],[0,"dist/core/session-manager-core.js"],[0,"dist/core/extensions/runner-context.js"],[0,"dist/core/model-registry.js"],[11,"dist/api/anthropic-serialized-body.js"],[11,"dist/utils/provider-env.js"],[1,"dist/builtin-command-names.js"],[0,"dist/core/storage/prefix.js"],[11,"dist/providers/github-copilot.js"],[0,"dist/core/storage/migrations.js"],[0,"dist/core/storage/statement-sequence.js"],[11,"dist/providers/model-schema.js"],[11,"dist/api/transform-messages.js"],[11,"dist/api/llama-cpp-classify.lazy.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"],[2,"dist/declarations.js"],[2,"dist/source.js"],[11,"dist/utils/provider-retry.js"],[11,"dist/utils/retry-sleep.js"],[0,"dist/core/storage/session/errors.js"],[0,"dist/core/storage/node-sqlite.js"],[0,"dist/core/storage/write-ahead-log.js"],[13,"dist/esm/index.min.js"],[11,"dist/providers/openrouter.js"],[11,"dist/api/openai-codex-responses.js"],[11,"dist/providers/github-copilot-env.js"],[11,"dist/_main-ec9d7c13.js"],[11,"dist/_main-e1febd93.js"],[11,"dist/_main-e19a4fd4.js"],[11,"dist/_main-e86630a4.js"],[11,"dist/_main-eefa226d.js"],[11,"dist/_main-e67b8c13.js"],[11,"dist/_main-e83c6925.js"],[11,"dist/_main-ed96cc22.js"],[11,"dist/_main-e6e743b1.js"],[11,"dist/_main-e819045d.js"],[11,"dist/_main-ef5fdd41.js"],[11,"dist/_main-efaa5eff.js"],[11,"dist/_main-eec09b02.js"],[0,"dist/core/storage/statement-batches.js"],[11,"dist/_lazy-e9952194.js"],[11,"dist/_main-ea23dd0e.js"],[12,"dist/_main-e87dd55a.js"],[12,"dist/_main-ebff8f0f.js"],[11,"dist/api/strict-tool-limits.js"],[0,"dist/_shared/session-manager-list-2BLEEZVG.js"],[11,"dist/_lazy-e43811a7.js"],[11,"dist/_main-ee720395.js"],[2,"dist/identifier.js"],[0,"dist/core/storage/node-sqlite-file-gate.js"],[11,"dist/_main-e3a4d78b.js"],[11,"dist/_lazy-e9d8d613.js"],[11,"dist/_main-efb2d8b1.js"],[14,"dist/index.js"],[14,"dist/formats/index.js"],[11,"dist/_main-ea0f8a1a.js"],[12,"dist/_rolldown-runtime-e937a250.js"],[11,"dist/_lazy-efe47e05.js"],[14,"dist/_main-ed41ae74.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-OSBEPR3Q.js"],[0,"dist/core/storage/index.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/fenced-paths.js"],[0,"dist/core/extensions/loader-virtual-modules.js"],[0,"dist/builtin/intercom/index.bundle.mjs"],[0,"dist/builtin/subagents/src/extension/index.bundle.mjs"],[0,"dist/builtin/mcp/index.bundle.mjs"],[0,"dist/builtin/web-access/index.bundle.mjs"]]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import "../_shared/startup-0-5-
|
|
1
|
+
import "../_shared/startup-0-5-FD2P735I.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import "../_shared/startup-8-1-
|
|
1
|
+
import "../_shared/startup-8-1-4KANEHRA.js";
|
package/dist/startup-stages/8.js
CHANGED
|
@@ -4,7 +4,7 @@ import { join } from "node:path";
|
|
|
4
4
|
import { parseArgs } from "../_shared/startup-0-1-W2G2UY7R.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-UXBUEOXW.js";
|
|
8
8
|
import { parsePackageCommand } from "../_shared/startup-0-0-TYUFUOJZ.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.8-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.8-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8-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.8-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.8-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8-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.8-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.8-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8-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.8-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.8-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8-alpha.1 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
package/docs/sdk/reference.md
CHANGED
|
@@ -1127,6 +1127,53 @@ await runRpcMode(runtime);
|
|
|
1127
1127
|
|
|
1128
1128
|
See [RPC documentation](/rpc) for the JSON protocol.
|
|
1129
1129
|
|
|
1130
|
+
## Session and storage errors
|
|
1131
|
+
|
|
1132
|
+
SDK callers working with `SessionManager`, `SessionStore`, `AgentSessionRuntime`, `SettingsManager`, or `ModelRuntime.login()` can branch directly on exported error classes:
|
|
1133
|
+
|
|
1134
|
+
| Class | When | Key fields |
|
|
1135
|
+
|---|---|---|
|
|
1136
|
+
| `SessionAlreadyOpenError` | Resuming a session claimed by another live process (CLI exit code `SESSION_ALREADY_OPEN_EXIT_CODE = 75`) | `sessionId`, `pid`, `host`, `exitCode` |
|
|
1137
|
+
| `SessionOpenElsewhereError` | Attempting to delete a session currently open in another live process | `sessionId`, `pid`, `host` |
|
|
1138
|
+
| `SessionConflictError` | Optimistic concurrency (`expectSeq`) mismatch after another process appended to the session | `sessionId`, `expectedSeq`, `actualSeq` |
|
|
1139
|
+
| `SessionDeletedError` | Mutating a session that was deleted from its store | `sessionId` |
|
|
1140
|
+
| `SessionNotFoundError` | Opening, reading, or appending a session ID that does not exist in the store | `sessionId` |
|
|
1141
|
+
| `SessionExistsError` | Creating a session with an ID that already exists in the store | `sessionId` |
|
|
1142
|
+
| `SessionFormatVersionError` | Opening a session written by an unsupported format version | `path`, `found`, `supported` |
|
|
1143
|
+
| `SessionIdMismatchError` | Entry session ID disagrees with the target session | `requested`, `found` |
|
|
1144
|
+
| `SessionInvalidTextError` | Session entry contains NUL or ill-formed Unicode text | `field`, `reason` |
|
|
1145
|
+
| `SessionInvalidTimestampError` | Session entry contains an unparseable or out-of-range timestamp | `field`, `value`, `reason` |
|
|
1146
|
+
| `SessionImportFileNotFoundError` | `AgentSessionRuntime.importFromJsonl()` target file does not exist | `filePath` |
|
|
1147
|
+
| `SessionWorkUnsettledError` | Session close/shutdown hit its drain deadline while work remained active | `code`, `step`, `pending`, `waitedMs` |
|
|
1148
|
+
| `JsonlStoragePoisonedError` | JSONL append and rollback both failed | `location`, `cause`, `rollbackCause` |
|
|
1149
|
+
| `SettingsFileChangedError` | Concurrent modification of `settings.json` detected while saving | `path` |
|
|
1150
|
+
| `StorageTransferError` / `StorageImportIncompleteError` | Session export/import validation failure or partial import failure | `path`, `reason` / `written`, `notWritten` |
|
|
1151
|
+
| `OAuthLoginTransactionError` | Credential persistence failed after OAuth token acquisition | `cause` |
|
|
1152
|
+
|
|
1153
|
+
```typescript
|
|
1154
|
+
import {
|
|
1155
|
+
claimSession,
|
|
1156
|
+
SessionAlreadyOpenError,
|
|
1157
|
+
SessionConflictError,
|
|
1158
|
+
SessionNotFoundError,
|
|
1159
|
+
} from "@bastani/atomic";
|
|
1160
|
+
|
|
1161
|
+
try {
|
|
1162
|
+
const releaseClaim = claimSession(sessionId, { agentDir });
|
|
1163
|
+
// open sessionManager & createAgentSession(...)
|
|
1164
|
+
} catch (error) {
|
|
1165
|
+
if (error instanceof SessionAlreadyOpenError) {
|
|
1166
|
+
console.error(`Open in pid ${error.pid} on ${error.host}`);
|
|
1167
|
+
} else if (error instanceof SessionConflictError) {
|
|
1168
|
+
console.error(`Concurrent write: expected seq ${error.expectedSeq}, found ${error.actualSeq}`);
|
|
1169
|
+
} else if (error instanceof SessionNotFoundError) {
|
|
1170
|
+
console.error(`Session ${error.sessionId} does not exist`);
|
|
1171
|
+
} else {
|
|
1172
|
+
throw error;
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
```
|
|
1176
|
+
|
|
1130
1177
|
## Session start errors
|
|
1131
1178
|
|
|
1132
1179
|
An in-process subagent that does not start within its start budget fails with a `SessionStartTimeoutError`; see [Subagent start timeouts](/subagents#subagent-start-timeouts) for the budget and how to change it. The child's result carries it serialized as `startError`, and its `error` text is the error's `message`. Every error in this family extends `SessionStartError`. Branch on the class, a guard, or `code`, never on the message:
|
|
@@ -1220,6 +1267,11 @@ AgentSessionRuntime
|
|
|
1220
1267
|
AuthStorage
|
|
1221
1268
|
ModelRegistry
|
|
1222
1269
|
resolveAutoModel
|
|
1270
|
+
resolveModelScopeFromModels
|
|
1271
|
+
resolveModelScopeWithDiagnostics
|
|
1272
|
+
type ResolveModelScopeResult
|
|
1273
|
+
type ModelScopeDiagnostic
|
|
1274
|
+
OAuthLoginTransactionError
|
|
1223
1275
|
|
|
1224
1276
|
// Resource loading
|
|
1225
1277
|
DefaultResourceLoader
|
|
@@ -1283,6 +1335,39 @@ type TranscriptPart
|
|
|
1283
1335
|
// Session management
|
|
1284
1336
|
SessionManager
|
|
1285
1337
|
SettingsManager
|
|
1338
|
+
JsonlSessionStore
|
|
1339
|
+
MemorySessionStore
|
|
1340
|
+
SqlSessionStore
|
|
1341
|
+
resolveSessionStore
|
|
1342
|
+
type SessionStorageOptions
|
|
1343
|
+
claimSession
|
|
1344
|
+
prepareSessionClaim
|
|
1345
|
+
attachSessionClaim
|
|
1346
|
+
SESSION_ALREADY_OPEN_EXIT_CODE
|
|
1347
|
+
SessionAlreadyOpenError
|
|
1348
|
+
SessionConflictError
|
|
1349
|
+
SessionDeletedError
|
|
1350
|
+
SessionEntryError
|
|
1351
|
+
SessionExistsError
|
|
1352
|
+
SessionFormatVersionError
|
|
1353
|
+
SessionHistoryNotLoadedError
|
|
1354
|
+
SessionIdError
|
|
1355
|
+
SessionIdMismatchError
|
|
1356
|
+
SessionImportFileNotFoundError
|
|
1357
|
+
SessionInvalidTextError
|
|
1358
|
+
SessionInvalidTimestampError
|
|
1359
|
+
SessionNotFoundError
|
|
1360
|
+
SessionOpenElsewhereError
|
|
1361
|
+
SessionWorkUnsettledError
|
|
1362
|
+
SettingsFileChangedError
|
|
1363
|
+
JsonlStoragePoisonedError
|
|
1364
|
+
StorageTransferError
|
|
1365
|
+
StorageImportIncompleteError
|
|
1366
|
+
type SessionJsonValue
|
|
1367
|
+
type SessionTextField
|
|
1368
|
+
type SessionTimestampField
|
|
1369
|
+
type StorageTransferErrorInit
|
|
1370
|
+
type TransferredIds
|
|
1286
1371
|
|
|
1287
1372
|
// Decision service
|
|
1288
1373
|
decide
|
package/docs/sdk.md
CHANGED
|
@@ -178,9 +178,31 @@ const { session } = await createAgentSession({ resourceAdmission });
|
|
|
178
178
|
Sessions default to `~/.atomic/workflows/journal.sqlite` (`session_` prefix). Override with `sessionStore`, `storage` (same shape as `settings.json` `storage` or `teamProfileSelection()`, see [Team and CI setup](/guides/team-setup#from-the-sdk)), or an explicit `sessionManager`:
|
|
179
179
|
|
|
180
180
|
```typescript
|
|
181
|
-
|
|
181
|
+
import { createAgentSession, MemorySessionStore, POSTGRES_ADAPTER_PACKAGE } from "@bastani/atomic";
|
|
182
|
+
|
|
183
|
+
// In-memory (pass a MemorySessionStore instance to keep history across session.release() / runtime.rehydrate())
|
|
184
|
+
const memoryStore = new MemorySessionStore();
|
|
185
|
+
const mem = await createAgentSession({ sessionStore: memoryStore });
|
|
186
|
+
|
|
187
|
+
// JSONL directory
|
|
188
|
+
const jsonl = await createAgentSession({
|
|
189
|
+
sessionStore: { kind: "jsonl", dir: "./sessions" },
|
|
190
|
+
});
|
|
191
|
+
|
|
192
|
+
// SQLite file
|
|
193
|
+
const sqlite = await createAgentSession({
|
|
182
194
|
sessionStore: { kind: "sqlite", path: "./sessions.sqlite", prefix: "project_" },
|
|
183
195
|
});
|
|
196
|
+
|
|
197
|
+
// PostgreSQL (install @bastani/atomic-storage-postgres)
|
|
198
|
+
const pg = await createAgentSession({
|
|
199
|
+
sessionStore: {
|
|
200
|
+
kind: "adapter",
|
|
201
|
+
module: POSTGRES_ADAPTER_PACKAGE,
|
|
202
|
+
options: { url: process.env.DATABASE_URL },
|
|
203
|
+
prefix: "project_",
|
|
204
|
+
},
|
|
205
|
+
});
|
|
184
206
|
```
|
|
185
207
|
|
|
186
208
|
- **Selections:** `{ kind: "sqlite", path, prefix? }`, `{ kind: "jsonl", dir }`, `{ kind: "memory" }`, `{ kind: "database", database, prefix? }`, `{ kind: "adapter", module, options?, secrets?, prefix? }`, or a `SessionStore` instance. Legacy `sessionDir` was removed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/atomic",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.8-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.8-alpha.1",
|
|
122
|
+
"@bastani/atomic-ai": "0.10.8-alpha.1",
|
|
123
|
+
"@bastani/atomic-agent-core": "0.10.8-alpha.1",
|
|
124
|
+
"@bastani/atomic-codemode": "0.10.8-alpha.1",
|
|
125
|
+
"@bastani/atomic-tui": "0.10.8-alpha.1",
|
|
126
|
+
"@bastani/atomic-schema": "0.10.8-alpha.1",
|
|
127
|
+
"@bastani/atomic-telemetry": "0.10.8-alpha.1",
|
|
128
128
|
"@silvia-odwyer/photon-node": "0.3.4",
|
|
129
129
|
"chalk": "6.0.0",
|
|
130
130
|
"glob": "14.0.6",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import "./rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
/** Never load the clone writer in an ordinary open. Fence a lapsed transfer before deleting so a paused donor
|
|
3
|
-
* cannot publish a partially swept transfer. When more rows remain, the new token stays expired. */
|
|
4
|
-
async function tryCleanupForkStaging(database, dialect, table) {
|
|
5
|
-
if (!database.tryMaintenance) return;
|
|
6
|
-
const lease = 0;
|
|
7
|
-
const lapsed = `SELECT transfer_id FROM ${table} WHERE kind=${lease} AND size<${dialect.nowMs} LIMIT 1`;
|
|
8
|
-
if (!await database.get(lapsed)) return;
|
|
9
|
-
await database.tryMaintenance(async (tx) => {
|
|
10
|
-
const expired = await tx.get(lapsed);
|
|
11
|
-
if (!expired) return;
|
|
12
|
-
const id = String(expired.transfer_id);
|
|
13
|
-
await tx.run(`UPDATE ${table} SET body=?,size=0 WHERE transfer_id=? AND kind=${lease}`, crypto.randomUUID(), id);
|
|
14
|
-
if ((await tx.run(`DELETE FROM ${table} WHERE transfer_id=? AND kind>${lease} AND (kind,seq,idx) IN (SELECT kind,seq,idx FROM ${table} WHERE transfer_id=? AND kind>${lease} LIMIT ?)`, id, id, 32)).changes < 32) await tx.run(`DELETE FROM ${table} WHERE transfer_id=? AND kind=${lease}`, id);
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
export { tryCleanupForkStaging };
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=fork-staging-maintenance-AIIUXOZQ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fork-staging-maintenance-AIIUXOZQ.js","names":[],"sources":["../../src/core/storage/session/fork-staging-maintenance.ts"],"mappings":";;;AASA,eAAsB,sBAAsB,UAA0B,SAAyB,OAAa;CAC3G,IAAI,CAAC,SAAS,gBAAgB;CAC9B,MAAM,QAAA;CACN,MAAM,SAAS,2BAA2B,MAAK,cAAe,MAAK,YAAa,QAAQ,MAAK;CAC7F,IAAI,CAAE,MAAM,SAAS,IAAI,MAAM,GAAI;CACnC,MAAM,SAAS,eAAe,OAAO,OAAM;EAC1C,MAAM,UAAU,MAAM,GAAG,IAAI,MAAM;EACnC,IAAI,CAAC,SAAS;EACd,MAAM,KAAK,OAAO,QAAQ,WAAW;EACrC,MAAM,GAAG,IAAI,UAAU,MAAK,kDAAmD,SAAS,OAAO,WAAU,GAAI,EAAE;EAO/G,KAAI,MANkB,GAAG,IACxB,eAAe,MAAK,gCAAiC,MAAK,mDAAoD,MAAK,gCAAiC,MAAK,YACzJ,IACA,IAAA,EACyB,EAAA,CAEd,UAAA,IACX,MAAM,GAAG,IAAI,eAAe,MAAK,gCAAiC,SAAS,EAAE;CAC/E,CAAC;AACF"}
|