@bastani/atomic 0.10.17-alpha.1 → 0.10.18-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/dist/_shared/dist-KOELCESV.js +2 -2
- package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
- package/dist/_shared/lib-4PES5P4V.js +2 -2
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +6 -6
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +16 -4
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
- package/dist/_shared/mode-shared-2QJSCUM6.js +16 -9
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/p0-cli-BB45ZQY6.js +1 -0
- package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -1
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +4 -3
- package/dist/_shared/p1a-prewarm-XIU57JHF.js.map +1 -1
- package/dist/_shared/p2-shell-main-B2WIALFD.js +1 -1
- package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
- package/dist/_shared/runtime-O4KCSG4C.js +2 -2
- package/dist/_shared/sdk-OHKMDJ74.js +11 -7
- package/dist/_shared/sdk-OHKMDJ74.js.map +1 -1
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/{startup-0-0-ERMIDHQT.js → startup-0-0-OV6RAEAP.js} +338 -75
- package/dist/_shared/startup-0-0-OV6RAEAP.js.map +1 -0
- package/dist/_shared/{startup-0-1-RTASI3HG.js → startup-0-1-EZAJI6RE.js} +82 -5
- package/dist/_shared/startup-0-1-EZAJI6RE.js.map +1 -0
- package/dist/_shared/startup-0-2-YZZOC22D.js +4 -4
- package/dist/_shared/startup-0-3-DE2NCS6A.js +4 -4
- package/dist/_shared/startup-0-4-ZMJV547D.js +10 -6
- package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -1
- package/dist/_shared/startup-0-5-HZX3ZPTP.js +41 -10
- package/dist/_shared/startup-0-5-HZX3ZPTP.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
- package/dist/_shared/startup-10-0-TDQNBDDL.js.map +1 -1
- package/dist/_shared/startup-12-0-55AAXBJZ.js +1 -1
- package/dist/_shared/startup-14-0-MLX36RBG.js +2 -2
- package/dist/_shared/startup-15-0-YUKGAC63.js +2 -2
- package/dist/_shared/startup-15-1-4S7FLMNG.js +261 -75
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +23 -8
- package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
- package/dist/_shared/startup-8-1-LZFXSD3Z.js +328 -19
- package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +1 -1
- package/dist/_shared/storage-command-7MGXLJGZ.js +4 -4
- package/dist/_shared/storage-status-K7PX2RXA.js +2 -2
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/team-DOQKICG2.js +1 -1
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/index.bundle.mjs +1 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +2 -2
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +1 -1
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +2 -2
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.code.js +2 -2
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +1 -1
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +1 -1
- package/dist/cli/startup-ui.impl.js +3 -3
- package/dist/cli/startup-ui.js +3 -3
- package/dist/cli/storage-command.impl.js +3 -3
- package/dist/cli/storage-command.js +3 -3
- package/dist/cli/storage-search-session.code.js +1 -1
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +1 -1
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +2 -2
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/tool-renderer.impl.js +3 -3
- package/dist/core/export-html/tool-renderer.js +3 -3
- package/dist/core/extensions/jiti-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-loader.js +3 -3
- package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-static-loader.js +3 -3
- package/dist/core/extensions/loader-host-modules.code.js +1 -1
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/extensions/loader-virtual-modules.js +1 -1
- package/dist/core/extensions/runner-context.js +1 -1
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +3 -3
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/sdk.code.js +2 -2
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-append-recovery.d.ts +3 -3
- package/dist/core/session-manager-core.d.ts +1 -1
- package/dist/core/session-manager-core.js +14 -13
- package/dist/core/session-manager-core.js.map +1 -1
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.code.js +1 -1
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/storage/errors.d.ts +8 -5
- package/dist/core/storage/errors.js +5 -3
- package/dist/core/storage/errors.js.map +1 -1
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/node-sqlite-thread.js +2 -2
- package/dist/core/storage/node-sqlite.js +2 -2
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +2 -2
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +3 -3
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +2 -2
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.code.js +1 -1
- package/dist/core/storage/session/fork-staging.impl.js +3 -3
- package/dist/core/storage/session/fork-staging.js +3 -3
- package/dist/core/storage/session/fork-window.code.js +3 -3
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.d.ts +1 -0
- package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +3 -3
- package/dist/core/storage/session/memory-session-store.d.ts +1 -0
- package/dist/core/storage/session/memory-session-store.impl.js +3 -3
- package/dist/core/storage/session/memory-session-store.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.js +3 -3
- package/dist/core/storage/session/released-history-files.code.js +2 -2
- package/dist/core/storage/session/released-history-files.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.js +3 -3
- package/dist/core/storage/session/session-resume.impl.js +3 -3
- package/dist/core/storage/session/session-resume.js +3 -3
- package/dist/core/storage/session/session-summary.d.ts +9 -1
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +3 -3
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-session-store.d.ts +1 -0
- package/dist/core/storage/session/sql-session-store.impl.js +3 -3
- package/dist/core/storage/session/sql-session-store.js +3 -3
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/session/types.d.ts +1 -0
- package/dist/core/storage/sqlite-facade.js +6 -1
- package/dist/core/storage/sqlite-facade.js.map +1 -1
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +3 -3
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +3 -3
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/history-session.d.ts +1 -1
- package/dist/core/tools/output-accumulator.d.ts +3 -0
- package/dist/core/tools/read-url.code.js +2 -2
- package/dist/core/tools/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/worktree-snapshot/blob-store.js +2 -2
- package/dist/core/worktree-snapshot/errors.code.js +2 -2
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.code.js +1 -1
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +1 -1
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +1 -1
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.js +2 -2
- package/dist/main-first-time-setup.code.js +1 -1
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/interactive/interactive-mode-helpers.d.ts +8 -1
- package/dist/modes/interactive-engine/isolated-runtime.d.ts +21 -0
- package/dist/modes/interactive-engine/protocol.d.ts +6 -0
- package/dist/modes/rpc/rpc-client.d.ts +2 -0
- package/dist/package-manager-cli.code.js +4 -4
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/rpc-entry.js +1 -1
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/4.js +1 -1
- package/dist/startup-stages/6.js +1 -1
- package/dist/utils/interactive-engine-bootstrap.d.ts +2 -0
- package/dist/utils/interactive-engine-env.d.ts +2 -0
- package/dist/utils/startup-database-spare.code.js +2 -2
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.code.js +1 -1
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/changelog.mdx +9 -0
- package/docs/guides/resume-on-any-machine.md +1 -1
- package/docs/reference/cli.md +1 -1
- package/docs/sdk.md +2 -1
- package/docs/sessions.md +5 -2
- package/docs/settings.md +1 -0
- package/docs/storage/custom-adapters.md +1 -1
- package/docs/storage/postgres/pgbouncer.md +3 -1
- package/docs/storage/postgres.md +41 -7
- package/docs/storage.md +4 -2
- package/docs/tools.md +1 -0
- package/package.json +8 -8
- package/dist/_shared/startup-0-0-ERMIDHQT.js.map +0 -1
- package/dist/_shared/startup-0-1-RTASI3HG.js.map +0 -1
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 while this session was running; restart it to keep using worktree snapshots.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -3,7 +3,7 @@ import { getServiceTierCost, isModelType } from "@bastani/atomic-ai";
|
|
|
3
3
|
import { CodemodeSandbox, loadQuickJSWasm, parseCodemodeSource, renderToolSample, toCodemodeIdentifier } from "@bastani/atomic-codemode";
|
|
4
4
|
import { setLongTimeout } from "../../__atomic_timers/index.js";
|
|
5
5
|
import { ENV_CODEMODE_MAX_WORKERS, getCodemodeWorkerUrlAsync, getEnvValue, getQuickJSWasmPath } from "../../_shared/p0-cli-BB45ZQY6.js";
|
|
6
|
-
import { combineUsage, formatSize, sliceHead, sliceTail, writeOutputFile } from "../../_shared/startup-0-0-
|
|
6
|
+
import { combineUsage, formatSize, sliceHead, sliceTail, writeOutputFile } from "../../_shared/startup-0-0-OV6RAEAP.js";
|
|
7
7
|
import { Bm25Ranker, createToolSearchDocument, resolveToolNames } from "../../_shared/startup-0-5-HZX3ZPTP.js";
|
|
8
8
|
import { CODEMODE_DOCS_PATH, CODEMODE_STORE_ENTRY_TYPE, getCodemodeCallableTools, toCodemodeDeclaration } from "../../_shared/startup-0-3-DE2NCS6A.js";
|
|
9
9
|
// dist/extensions/codemode/execute.js
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 while this session was running; restart it to keep using codemode.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 while this session was running; restart it to keep using codemode.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { Container, Text, truncateToWidth } from "@bastani/atomic-tui";
|
|
3
|
-
import { getTextOutput, replaceTabs, str } from "../../_shared/startup-0-0-
|
|
3
|
+
import { getTextOutput, replaceTabs, str } from "../../_shared/startup-0-0-OV6RAEAP.js";
|
|
4
4
|
import { CodeHighlighter, keyHintIfBound, singleLineDisplayText, terminalDisplayText } from "../../_shared/p2-shell-main-B2WIALFD.js";
|
|
5
5
|
import { TOOL_BLOCK_LIMITS, ToolBlock, ToolBlockGroup, ToolBlockRecords, collapseToolBlockLines } from "../../_shared/startup-0-4-ZMJV547D.js";
|
|
6
6
|
import { builtinToolBlockPresentation, formatToolBlockElapsed } from "../../_shared/startup-8-1-LZFXSD3Z.js";
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 while this session was running; restart it to keep using codemode.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 while this session was running; restart it to keep using codemode.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -9,7 +9,7 @@ import { ModelRuntime } from "../../_shared/startup-0-5-HZX3ZPTP.js";
|
|
|
9
9
|
import { ProjectTrustStore } from "../../_shared/p1b-elig-BY2G5BUE.js";
|
|
10
10
|
import { openBrowser } from "../../_shared/p2-shell-TJBYQMCJ.js";
|
|
11
11
|
import { questionTerminal } from "../../_shared/terminal-question-VBB3LCEP.js";
|
|
12
|
-
import { collectDeclaredDisplaySecrets, redactAuthorizationUrlForDisplay, redactOAuthErrorText, redactUrlForTransportDisplay } from "../../_shared/startup-0-0-
|
|
12
|
+
import { collectDeclaredDisplaySecrets, redactAuthorizationUrlForDisplay, redactOAuthErrorText, redactUrlForTransportDisplay } from "../../_shared/startup-0-0-OV6RAEAP.js";
|
|
13
13
|
import { McpServerConnection, McpServerLog, createDefaultTransport } from "../../_shared/runtime-O4KCSG4C.js";
|
|
14
14
|
// dist/extensions/mcp/cli.js
|
|
15
15
|
/**
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 while this session was running; restart it to keep using MCP.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 while this session was running; restart it to keep using MCP.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -11,7 +11,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
11
11
|
return (async () => {
|
|
12
12
|
const root = new URL("../../", import.meta.url);
|
|
13
13
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
14
|
-
const key = `${root.href}#0.10.
|
|
14
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
15
15
|
let release = releases.get(key);
|
|
16
16
|
if (release === undefined) {
|
|
17
17
|
const current = (async () => {
|
|
@@ -39,7 +39,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
39
39
|
} catch {
|
|
40
40
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
41
41
|
}
|
|
42
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
42
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.18-alpha.1" ? installed : running !== undefined && running.version !== "0.10.18-alpha.1" ? "0.10.18-alpha.1" : undefined;
|
|
43
43
|
if (updatedTo === undefined) throw error;
|
|
44
44
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
45
45
|
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.18-alpha.1`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 while this session was running; restart it to keep using MCP.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 while this session was running; restart it to keep using MCP.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 while this session was running; restart it to keep using MCP.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 while this session was running; restart it to keep using MCP.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { APP_NAME, APP_TITLE, CONFIG_DIR_NAME, CONFIG_DIR_NAMES, DebugConfigError, DebugError, DebugLogUnwritableError, LEGACY_CONFIG_DIR_NAME, LEGACY_ENV_PREFIX, PACKAGE_NAME, VERSION, createChildProcessEnvironment, getAgentConfigPaths, getAgentDir, getAgentDirs, getBundledInteractiveAssetPath, getChangelogPath, getDocsPath, getEnvNames, getEnvValue, getExamplesPath, getExportTemplateDir, getInteractiveAssetsDir, getLegacyAgentDir, getPackageDir, getPackageJsonPath, getProjectConfigDirs, getProjectConfigPaths, getReadmePath, getThemesDir, getUserConfigDirs, getUserConfigPaths, hasEnvValue, isBunBinary, isDebugConfigError, isDebugError, isDebugLogUnwritableError, onDebugSettingChange, rehydrateDebugError, serializeDebugError, setDebugSetting, setEnvValue, spawnProcess } from "./_shared/p0-cli-BB45ZQY6.js";
|
|
3
|
-
import { AgentSessionBusyError, BLUEPRINT_CONTEXT_TYPE, BlueprintBuildFailedError, BlueprintError, BlueprintInvalidError, BlueprintStepFailedError, BlueprintStepTimedOutError, BlueprintUsesUnsupportedError, CACHE_WARMING_MODES, CURRENT_SESSION_VERSION, CompactionCancelledError, CompactionConfigError, CompactionError, CompactionStateError, CompactorFailure, DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES, DynamicBorder, EditInputError, EditMatchError, EditTargetError, EditToolError, EventSourceError, ExtensionStartupError, FINISHED_TASK_RETENTION, FileToolAbortedError, GIT_LOCAL_ENV_VARS, GIT_MINIMUM_VERSION, GitProvisionConfigError, GitProvisionError, GitProvisionTimeoutError, GitUnavailableError, IntercomPolicyError, LlamaServerError, LlamaServerRequestError, LlamaServerUnreachableError, MAX_INTERCOM_REACHABLE_GROUPS, MAX_TOOL_DETACHMENT_AFTER_MS, ManagedToolDownloadError, ManagedToolError, ManagedToolTimeoutError, MissingSessionCwdError, NativeModuleUnavailableError, PLAIN_SELECTOR_STYLE, SESSION_HISTORY_TOOL_NAME, STALE_EXTENSION_CONTEXT_MARKER, Selector, SelectorState, ShellTimeoutError, ShellToolError, SubscriptionChildUnavailableError, SubscriptionClosedError, SubscriptionConfigError, SubscriptionError, SubscriptionEventError, SubscriptionHandlerError, SubscriptionRecordError, SubscriptionSetupError, SubscriptionSubscriberUnavailableError, SubscriptionTimeoutError, TASK_MARKS, TaskCleanupAdmissionTimeoutError, TaskCleanupError, TaskEvictedError, TaskMessageError, TaskMessageTimeoutError, ToolDetachmentError, WriteSelectorError, areExperimentalFeaturesEnabled, attachSessionClaim, awaitBlueprintReady, belongsToSession, bindTaskResumer, blueprintBuildPending, blueprintBuildSettled, buildBoundaryText, claimSession, confinedIntercomChildGroup, containProcessTree, createEventBus, createGitEnvironment, createSyntheticSourceInfo, createWakeDispatcher, defineTool, deserializeSubscriptionError, deserializeToolDetachmentError, detectSupportedImageMimeTypeFromFile, findBlueprintError, findCompactionError, findGitProvisionError, findLlamaServerError, findSubscriptionError, findTaskEvictedError, findTaskMessageError, findToolDetachmentError, formatReadLineRange, formatSize, formatTokenCount, formatToolCallWithArgs, getBuiltinPackagePaths, getDefaultSessionDirPath, isAgentSessionBusyError, isBlueprintBuildFailedError, isBlueprintError, isBlueprintInvalidError, isBlueprintStepFailedError, isBlueprintStepTimedOutError, isBlueprintUsesUnsupportedError, isCompactionCancelledError, isCompactionConfigError, isCompactionError, isCompactionStateError, isCompactorFailure, isEditInputError, isEditMatchError, isEditTargetError, isEditToolError, isEventSourceError, isExtensionStartupFailure, isFileToolAbortedError, isGitProvisionConfigError, isGitProvisionError, isGitProvisionTimeoutError, isGitUnavailableError, isLlamaServerError, isLlamaServerRequestError, isLlamaServerUnreachableError, isManagedToolDownloadError, isManagedToolError, isManagedToolTimeoutError, isMissingSessionCwdError, isPathInside, isRetryableCompactionError, isRetryableGitProvisionError, isRetryableLlamaServerError, isRetryableManagedToolError, isRetryableSubscriptionError, isRetryableTaskError, isRetryableTaskMessageError, isSerializedMissingSessionCwdError, isShellTimeoutError, isShellToolError, isStaleExtensionContextError, isSubscriptionChildUnavailableError, isSubscriptionClosedError, isSubscriptionConfigError, isSubscriptionError, isSubscriptionEventError, isSubscriptionHandlerError, isSubscriptionRecordError, isSubscriptionSetupError, isSubscriptionSubscriberUnavailableError, isSubscriptionTimeoutError, isTaskCleanupAdmissionTimeoutError, isTaskCleanupError, isTaskEvictedError, isTaskMessageError, isTaskMessageTimeoutError, isToolDetachmentError, isTransientExtensionStartupFailure, isWriteSelectorError, modelCallUsage, noOpUIContext, onBlueprintBuildFinished, onBlueprintBuildWaiting, parseSerializedCompactionError, parseSlashCommand, prepareSessionClaim, processTreeEnded, rehydrateBlueprintError, rehydrateCompactionError, rehydrateEditToolError, rehydrateGitProvisionError, rehydrateLlamaServerError, rehydrateMissingSessionCwdError, rehydrateShellToolError, rehydrateTaskCleanupError, rehydrateTaskEvictedError, rehydrateTaskMessageError, rehydrateWriteSelectorError, renderBlueprintContext, retryStatusUpdate, scopedBackgroundTasks, selectorHintEntries, serializeBlueprintError, serializeCompactionError, serializeConversationForCompaction, serializeFileToolError, serializeMissingSessionCwdError, serializeSubscriptionError, sessionTasks, sessionWaitsToRetry, sharedWakeDispatcher, sliceHead, sliceTail, spanElapsedMs, taskSessionKey, themeSelectorStyle, truncateHead, truncateLine, truncateTail, truncateToVisualLines, withFileMutationQueue } from "./_shared/startup-0-0-
|
|
4
|
-
import { AgentRehydrateError, AgentReleaseConfigError, CacheWarmer, DEFAULT_SUBSCRIPTION_MAX_CONCURRENT, ExtensionInputComponent, ExtensionSelectorComponent, NoUsableModelError, RESUME_TIMINGS_TYPE, StorageImportIncompleteError, StorageTransferError, StringEnum, TOOL_OUTPUT_ENTRY_TYPE, TaskToolError, WorkspaceBindingError, WorkspaceCollectionError, WorkspaceConfigError, WorkspaceDriftError, WorkspaceError, WorkspaceGitError, WorkspacePublicationError, WorkspaceRestoreError, WorkspaceSandboxError, WorkspaceSnapshotError, WorkspaceTimeoutError, assertSessionBlobStore, attachCleanupCause, classifyCompactionModel, collectAgentTasks, convertToLlm, convertToPng, copySessionBlobs, errorMessage, findWorkspaceError, formatNoUsableModelMessage, formatResumeTimings, formatTokenSegment, formatToolStatus, getGitStatus, getGitStatusAsync, gitInstallCommand, hasRecordedTransformedPrompt, heldPrompts, isAgentRehydrateError, isAgentReleaseConfigError, isBashToolResult, isEditToolResult, isFindToolResult, isHeldPromptInput, isLocalOnlySessionStorage, isLsToolResult, isPowerShellToolResult, isPresentationHostInput, isProviderCredentialRejection, isReadToolResult, isRetryableAgentRehydrateError, isRetryableModelFailure, isRetryableSameModelFailure, isRetryableWorkspaceError, isTaskToolError, isToolCallEventType, isUnrecognizedModelFailure, isWorkspaceBindingError, isWorkspaceCollectionError, isWorkspaceConfigError, isWorkspaceDriftError, isWorkspaceError, isWorkspaceGitError, isWorkspacePublicationError, isWorkspaceRestoreError, isWorkspaceSandboxError, isWorkspaceSnapshotError, isWorkspaceTimeoutError, isWriteToolResult, latestResumeTimings, modelFailureMessage, normalizeModelFailureSignal, openEventSubscription, parseArgs, partitionByCredentials, providerOfModelReference, publishEvent, rehydrateAgentRehydrateError, rehydrateTaskToolError, rehydrateWorkspaceError, resolveCompactionModel, resolveGit, resolveGitSync, resolveInstalledGit, routeNamesPrompt, runCallback, runSynchronousCallback, serializeAgentRehydrateError, serializeWorkspaceError, sessionBlobHashes, startedAsFork, toolOutputUrl, validateEventSource, validateSubscriptionAdmission, watchHeldPromptAttention, withResourceAdmission } from "./_shared/startup-0-1-
|
|
3
|
+
import { AgentSessionBusyError, BLUEPRINT_CONTEXT_TYPE, BlueprintBuildFailedError, BlueprintError, BlueprintInvalidError, BlueprintStepFailedError, BlueprintStepTimedOutError, BlueprintUsesUnsupportedError, CACHE_WARMING_MODES, CURRENT_SESSION_VERSION, CompactionCancelledError, CompactionConfigError, CompactionError, CompactionStateError, CompactorFailure, DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES, DynamicBorder, EditInputError, EditMatchError, EditTargetError, EditToolError, EventSourceError, ExtensionStartupError, FINISHED_TASK_RETENTION, FileToolAbortedError, GIT_LOCAL_ENV_VARS, GIT_MINIMUM_VERSION, GitProvisionConfigError, GitProvisionError, GitProvisionTimeoutError, GitUnavailableError, IntercomPolicyError, LlamaServerError, LlamaServerRequestError, LlamaServerUnreachableError, MAX_INTERCOM_REACHABLE_GROUPS, MAX_TOOL_DETACHMENT_AFTER_MS, ManagedToolDownloadError, ManagedToolError, ManagedToolTimeoutError, MissingSessionCwdError, NativeModuleUnavailableError, PLAIN_SELECTOR_STYLE, SESSION_HISTORY_TOOL_NAME, STALE_EXTENSION_CONTEXT_MARKER, Selector, SelectorState, ShellTimeoutError, ShellToolError, SubscriptionChildUnavailableError, SubscriptionClosedError, SubscriptionConfigError, SubscriptionError, SubscriptionEventError, SubscriptionHandlerError, SubscriptionRecordError, SubscriptionSetupError, SubscriptionSubscriberUnavailableError, SubscriptionTimeoutError, TASK_MARKS, TaskCleanupAdmissionTimeoutError, TaskCleanupError, TaskEvictedError, TaskMessageError, TaskMessageTimeoutError, ToolDetachmentError, WriteSelectorError, areExperimentalFeaturesEnabled, attachSessionClaim, awaitBlueprintReady, belongsToSession, bindTaskResumer, blueprintBuildPending, blueprintBuildSettled, buildBoundaryText, claimSession, confinedIntercomChildGroup, containProcessTree, createEventBus, createGitEnvironment, createSyntheticSourceInfo, createWakeDispatcher, defineTool, deserializeSubscriptionError, deserializeToolDetachmentError, detectSupportedImageMimeTypeFromFile, findBlueprintError, findCompactionError, findGitProvisionError, findLlamaServerError, findSubscriptionError, findTaskEvictedError, findTaskMessageError, findToolDetachmentError, formatReadLineRange, formatSize, formatTokenCount, formatToolCallWithArgs, getBuiltinPackagePaths, getDefaultSessionDirPath, isAgentSessionBusyError, isBlueprintBuildFailedError, isBlueprintError, isBlueprintInvalidError, isBlueprintStepFailedError, isBlueprintStepTimedOutError, isBlueprintUsesUnsupportedError, isCompactionCancelledError, isCompactionConfigError, isCompactionError, isCompactionStateError, isCompactorFailure, isEditInputError, isEditMatchError, isEditTargetError, isEditToolError, isEventSourceError, isExtensionStartupFailure, isFileToolAbortedError, isGitProvisionConfigError, isGitProvisionError, isGitProvisionTimeoutError, isGitUnavailableError, isLlamaServerError, isLlamaServerRequestError, isLlamaServerUnreachableError, isManagedToolDownloadError, isManagedToolError, isManagedToolTimeoutError, isMissingSessionCwdError, isPathInside, isRetryableCompactionError, isRetryableGitProvisionError, isRetryableLlamaServerError, isRetryableManagedToolError, isRetryableSubscriptionError, isRetryableTaskError, isRetryableTaskMessageError, isSerializedMissingSessionCwdError, isShellTimeoutError, isShellToolError, isStaleExtensionContextError, isSubscriptionChildUnavailableError, isSubscriptionClosedError, isSubscriptionConfigError, isSubscriptionError, isSubscriptionEventError, isSubscriptionHandlerError, isSubscriptionRecordError, isSubscriptionSetupError, isSubscriptionSubscriberUnavailableError, isSubscriptionTimeoutError, isTaskCleanupAdmissionTimeoutError, isTaskCleanupError, isTaskEvictedError, isTaskMessageError, isTaskMessageTimeoutError, isToolDetachmentError, isTransientExtensionStartupFailure, isWriteSelectorError, modelCallUsage, noOpUIContext, onBlueprintBuildFinished, onBlueprintBuildWaiting, parseSerializedCompactionError, parseSlashCommand, prepareSessionClaim, processTreeEnded, rehydrateBlueprintError, rehydrateCompactionError, rehydrateEditToolError, rehydrateGitProvisionError, rehydrateLlamaServerError, rehydrateMissingSessionCwdError, rehydrateShellToolError, rehydrateTaskCleanupError, rehydrateTaskEvictedError, rehydrateTaskMessageError, rehydrateWriteSelectorError, renderBlueprintContext, retryStatusUpdate, scopedBackgroundTasks, selectorHintEntries, serializeBlueprintError, serializeCompactionError, serializeConversationForCompaction, serializeFileToolError, serializeMissingSessionCwdError, serializeSubscriptionError, sessionTasks, sessionWaitsToRetry, sharedWakeDispatcher, sliceHead, sliceTail, spanElapsedMs, taskSessionKey, themeSelectorStyle, truncateHead, truncateLine, truncateTail, truncateToVisualLines, withFileMutationQueue } from "./_shared/startup-0-0-OV6RAEAP.js";
|
|
4
|
+
import { AgentRehydrateError, AgentReleaseConfigError, CacheWarmer, DEFAULT_SUBSCRIPTION_MAX_CONCURRENT, ExtensionInputComponent, ExtensionSelectorComponent, NoUsableModelError, RESUME_TIMINGS_TYPE, StorageImportIncompleteError, StorageTransferError, StringEnum, TOOL_OUTPUT_ENTRY_TYPE, TaskToolError, WorkspaceBindingError, WorkspaceCollectionError, WorkspaceConfigError, WorkspaceDriftError, WorkspaceError, WorkspaceGitError, WorkspacePublicationError, WorkspaceRestoreError, WorkspaceSandboxError, WorkspaceSnapshotError, WorkspaceTimeoutError, assertSessionBlobStore, attachCleanupCause, classifyCompactionModel, collectAgentTasks, convertToLlm, convertToPng, copySessionBlobs, errorMessage, findWorkspaceError, formatNoUsableModelMessage, formatResumeTimings, formatTokenSegment, formatToolStatus, getGitStatus, getGitStatusAsync, gitInstallCommand, hasRecordedTransformedPrompt, heldPrompts, isAgentRehydrateError, isAgentReleaseConfigError, isBashToolResult, isEditToolResult, isFindToolResult, isHeldPromptInput, isLocalOnlySessionStorage, isLsToolResult, isPowerShellToolResult, isPresentationHostInput, isProviderCredentialRejection, isReadToolResult, isRetryableAgentRehydrateError, isRetryableModelFailure, isRetryableSameModelFailure, isRetryableWorkspaceError, isTaskToolError, isToolCallEventType, isUnrecognizedModelFailure, isWorkspaceBindingError, isWorkspaceCollectionError, isWorkspaceConfigError, isWorkspaceDriftError, isWorkspaceError, isWorkspaceGitError, isWorkspacePublicationError, isWorkspaceRestoreError, isWorkspaceSandboxError, isWorkspaceSnapshotError, isWorkspaceTimeoutError, isWriteToolResult, latestResumeTimings, modelFailureMessage, normalizeModelFailureSignal, openEventSubscription, parseArgs, partitionByCredentials, providerOfModelReference, publishEvent, rehydrateAgentRehydrateError, rehydrateTaskToolError, rehydrateWorkspaceError, resolveCompactionModel, resolveGit, resolveGitSync, resolveInstalledGit, routeNamesPrompt, runCallback, runSynchronousCallback, serializeAgentRehydrateError, serializeWorkspaceError, sessionBlobHashes, startedAsFork, toolOutputUrl, validateEventSource, validateSubscriptionAdmission, watchHeldPromptAttention, withResourceAdmission } from "./_shared/startup-0-1-EZAJI6RE.js";
|
|
5
5
|
import { NAV_CONFIRM_WINDOW_MS, OVERLAY_ACTIVE_ROW_MARKER, SAFE_FS_WATCH_CANONICALIZATION_FAILED, SAFE_FS_WATCH_UNSAFE_WINDOWS_SHORT_PATH, Theme, TwoPressConfirm, clickableHintText, clickableKeyTextHint, getLanguageFromPath, getMarkdownTheme, getSelectListTheme, getSettingsListTheme, hexColorAnsi, highlightCode, hintKeyParts, initTheme, isNavHelpKey, isSafeFsWatchPathError, isUnsafeWindowsShortPath, keyHint, keyHintIfBound, keyText, keybindingIdentity, navEntryKeyParts, navEntryKeys, rawKeyHint, renderAutocompleteHintLine, renderNavHintLine, renderNavKeyOverlay, resolveNativeWatchPath, slashCommandHint, terminalDisplayText, watchWithErrorHandler } from "./_shared/p2-shell-main-B2WIALFD.js";
|
|
6
6
|
import { DEBUG_AREA_VARIABLES, ProjectTrustStore, TRUST_REQUIRING_PROJECT_CONFIG_RESOURCES, appendDebugRecord, appendDebugRecordAsync, flushDebugLog, getDebugLogFailure, getProjectTrustOptions, getProjectTrustOptionsAsync, hasProjectTrustInputs, hasProjectTrustInputsAsync, hasTrustRequiringProjectResources, hasTrustRequiringProjectResourcesAsync, isDebugEnabled, nativeProcessCreationTime, nativeTerminateProcess, processStartToken, readProcessCreationTime, readProcessStartToken, redactCredentialShapes, redactUrlCredentials, reportDebug, reportDebugAsync, takeTakeoverMutex, takeTakeoverMutexAsync } from "./_shared/p1b-elig-BY2G5BUE.js";
|
|
7
7
|
import { AgentTokenMeter, AgentWakeDispatcher, COMPACTOR_REQUEST_TIMEOUT_MS, DEFAULT_COMPACTION_SETTINGS, FileAuthStorageBackend, InMemoryAuthStorageBackend, LONG_STREAM_CUT_MS, MAX_LONG_STREAM_CUT_RETRIES, ResumeCatalogTimeoutError, ResumeCatalogUnavailableError, ResumeError, ResumeNotFoundError, ResumePreconditionError, STRUCTURED_OUTPUT_TOOL_NAME, SessionWorkUnsettledError, TempDirRefusedError, agentTokenTotal, agentWakeDispatcher, applyProviderRateLimitObservation, assertPrivateDirectory, assertPrivateDirectoryAsync, assertWorkspace, automaticWaitBudgetMs, buildCompactorMessages, calculateContextTokens, configureProviderRequestBudget, createStructuredOutputCapture, createStructuredOutputTool, ensurePrivateTempDir, ensurePrivateTempDirAsync, estimateTextTokens, estimateTokens, findResumeError, formatDimensionNote, getLastAssistantUsage, getPowerShellConfig, getShellConfig, isLongStreamCut, isProviderRateLimit, isResumeCatalogTimeoutError, isResumeCatalogUnavailableError, isResumeError, isResumeNotFoundError, isResumePreconditionError, isRetryableResumeError, isWorkspace, killChildProcessTree, killProcessTree, markDetachedChildExited, matchesMcpDirectToolSelection, modelIdForModel, nextRetryDecision, observeProviderRateLimits, processSharedStorageSelection, processSharedStorageSelectionAsync, processStorageEnvironment, processStorageEnvironmentAsync, providerCooldownMs, providerIdForModel, providerRateLimitObservations, providerRateLimitSnapshot, providerRetryHint, providerUnavailableMs, recordProviderRateLimit, rehydrateResumeError, requestCompactorOutput, resizeImage, selectProcessStorage, selectProcessStorageAsync, serializeResumeError, setProviderRequestGate, shouldCompact, trackDetachedChildPid, untrackDetachedChildPid, wakeKeyNamespace, workspace, wrapLongLines } from "./_shared/startup-0-2-YZZOC22D.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
import { shouldRunFirstTimeSetup } from "./_shared/startup-0-0-
|
|
2
|
+
import { shouldRunFirstTimeSetup } from "./_shared/startup-0-0-OV6RAEAP.js";
|
|
3
3
|
import { showFirstTimeSetup } from "./_shared/startup-0-2-YZZOC22D.js";
|
|
4
4
|
// dist/main-first-time-setup.js
|
|
5
5
|
async function runFirstTimeSetup(appMode, settingsManager, capture) {
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("./", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("./", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.18-alpha.1`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -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.18-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.18-alpha.1" ? installed : running !== undefined && running.version !== "0.10.18-alpha.1" ? "0.10.18-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.18-alpha.1`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 while this session was running; restart it to keep using /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.18-alpha.1`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 while this session was running; restart it to keep using /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.18-alpha.1`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 while this session was running; restart it to keep using /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.18-alpha.1`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.18-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18-alpha.1 while this session was running; restart it to keep using /fork.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AgentSessionRuntime } from "../../core/agent-session-runtime.ts";
|
|
1
2
|
import { isUnknownModel } from "../../core/unknown-model.ts";
|
|
2
3
|
export { isUnknownModel };
|
|
3
4
|
import { type RowRange } from "./components/transcript-block-clicks.ts";
|
|
@@ -26,8 +27,14 @@ export declare function formatCrashExtensionHint(extensionMatches: readonly stri
|
|
|
26
27
|
export declare const ANTHROPIC_SUBSCRIPTION_AUTH_WARNING = "Anthropic subscription auth is active. Third-party harness usage draws from extra usage and is billed per token, not your Claude plan limits. Manage extra usage at https://claude.ai/settings/usage.";
|
|
27
28
|
export declare const BUILTIN_SLASH_COMMAND_NAMES: Set<string>;
|
|
28
29
|
export declare function isAnthropicSubscriptionAuthKey(apiKey: string | undefined): boolean;
|
|
30
|
+
export interface ResumeTargetHost {
|
|
31
|
+
getSettledResumeTarget(): {
|
|
32
|
+
readonly sessionId: string;
|
|
33
|
+
readonly sessionLocation?: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
}
|
|
29
36
|
/** The command that resumes this session, quoted for the shell people use on `platform`. */
|
|
30
|
-
export declare function formatResumeCommand(sessionManager: SessionManager, platform?: NodeJS.Platform): Promise<string | undefined>;
|
|
37
|
+
export declare function formatResumeCommand(sessionManager: SessionManager, platform?: NodeJS.Platform, runtimeHost?: AgentSessionRuntime | ResumeTargetHost): Promise<string | undefined>;
|
|
31
38
|
export declare function hasDefaultModelProvider(providerId: string): boolean;
|
|
32
39
|
export declare const BEDROCK_PROVIDER_ID = "amazon-bedrock";
|
|
33
40
|
/** @deprecated Login options are now built directly from provider auth metadata. */
|
|
@@ -41,6 +41,14 @@ type ResourceExtensionsListener = (extensions: readonly RpcResourceExtension[],
|
|
|
41
41
|
export declare function engineAgentPanelCounts(message: Extract<InteractiveEngineMessage, {
|
|
42
42
|
type: "engine_agent_panel_state";
|
|
43
43
|
}>): AgentPanelCounts;
|
|
44
|
+
export interface SettledEngineSession {
|
|
45
|
+
readonly generation: number;
|
|
46
|
+
readonly seq: number;
|
|
47
|
+
readonly sessionId: string;
|
|
48
|
+
readonly sessionLocation?: string;
|
|
49
|
+
readonly cwd?: string;
|
|
50
|
+
}
|
|
51
|
+
export declare function isNewerEngineSession(curGen: number, curSeq: number, nextGen: number, nextSeq: number): boolean;
|
|
44
52
|
export declare class IsolatedInteractiveRuntime extends AgentSessionRuntime {
|
|
45
53
|
private readonly client;
|
|
46
54
|
/** The host session's listeners, which get the engine's events through one ordered subscription. */
|
|
@@ -124,6 +132,10 @@ export declare class IsolatedInteractiveRuntime extends AgentSessionRuntime {
|
|
|
124
132
|
private remoteSessionName;
|
|
125
133
|
private remoteSessionId;
|
|
126
134
|
private remoteSessionFile;
|
|
135
|
+
private settledEngineSession;
|
|
136
|
+
private hostMirrorOrder;
|
|
137
|
+
private hostSwitchInFlight;
|
|
138
|
+
private mirrorSyncTail;
|
|
127
139
|
private readonly health;
|
|
128
140
|
private readonly remoteCommands;
|
|
129
141
|
/** The first engine child's start, while it may still be in flight; settles once it announced readiness or failed to. */
|
|
@@ -183,6 +195,15 @@ export declare class IsolatedInteractiveRuntime extends AgentSessionRuntime {
|
|
|
183
195
|
* warning still waits for that (#5693).
|
|
184
196
|
*/
|
|
185
197
|
private applyProjectPermissionWhilePending;
|
|
198
|
+
getSettledResumeTarget(): {
|
|
199
|
+
readonly sessionId: string;
|
|
200
|
+
readonly sessionLocation?: string;
|
|
201
|
+
} | undefined;
|
|
202
|
+
private recordSettledEngineSession;
|
|
203
|
+
private recordFallbackHostSwitch;
|
|
204
|
+
private advanceHostMirrorOrder;
|
|
205
|
+
private hasPendingMirrorSync;
|
|
206
|
+
private scheduleMirrorSync;
|
|
186
207
|
/** Keep a live engine's report as soon as it arrives, before the caller waits on other engine or session work. */
|
|
187
208
|
private getEngineState;
|
|
188
209
|
private initializeFromEngineGeneration;
|
|
@@ -113,6 +113,12 @@ export type InteractiveEngineMessage = {
|
|
|
113
113
|
*/
|
|
114
114
|
| {
|
|
115
115
|
type: "engine_extension_ui_reset";
|
|
116
|
+
} | {
|
|
117
|
+
type: "engine_session_changed";
|
|
118
|
+
seq: number;
|
|
119
|
+
sessionId: string;
|
|
120
|
+
sessionLocation?: string;
|
|
121
|
+
cwd?: string;
|
|
116
122
|
} | {
|
|
117
123
|
type: "engine_heartbeat";
|
|
118
124
|
at: number;
|
|
@@ -49,6 +49,8 @@ export interface RpcClientOptions {
|
|
|
49
49
|
* a resume does.
|
|
50
50
|
*/
|
|
51
51
|
startedSessionId?: string;
|
|
52
|
+
/** Host-approved working directory override when continuing a session whose stored cwd is missing. */
|
|
53
|
+
sessionCwdOverride?: string;
|
|
52
54
|
/** The host's startup extension check, delivered through the bootstrap file to every engine it starts. */
|
|
53
55
|
startupExtensionCheck?: StartupExtensionCheck;
|
|
54
56
|
};
|
|
@@ -6,12 +6,12 @@ import chalk from "chalk";
|
|
|
6
6
|
import { Container, Input, Markdown, ProcessTerminal, Spacer, TuiMainScreen, getKeybindings, matchesKey, setCapabilityOverrides, setKeybindings, truncateToWidth, visibleWidth } from "@bastani/atomic-tui";
|
|
7
7
|
import { KeybindingsManager as KeybindingsManager$1, getMarkdownTheme, initTheme, navActionText, renderNavHintLine, stopThemeWatcher, theme } from "./_shared/p2-shell-main-B2WIALFD.js";
|
|
8
8
|
import { APP_NAME, CONFIG_DIR_NAME, ENV_PACKAGE_DIR, ENV_SELF_UPDATE_COMMAND, PACKAGE_NAME, VERSION, detectInstallChange, detectInstallMethod, getAgentConfigPaths, getAgentDir, getConfiguredSelfUpdateArgv, getEnvNames, getPackageDir, getSelfUpdateCommand, getSelfUpdateUnavailableInstruction, isLocalPath, makeConfiguredSelfUpdateCommand, processLaunch, processLaunchAsync, resolvePath, shortenHomePath, spawnLaunchedProcess, spawnLaunchedProcessSync } from "./_shared/p0-cli-BB45ZQY6.js";
|
|
9
|
-
import { DynamicBorder, cleanupWindowsSelfUpdateQuarantine, handlePackageCommandParseOutcome, isWindowsInstallDirectoryLockError, parsePackageCommand, quarantineWindowsNativeDependencies } from "./_shared/startup-0-0-
|
|
9
|
+
import { DynamicBorder, cleanupWindowsSelfUpdateQuarantine, handlePackageCommandParseOutcome, isWindowsInstallDirectoryLockError, parsePackageCommand, quarantineWindowsNativeDependencies } from "./_shared/startup-0-0-OV6RAEAP.js";
|
|
10
10
|
import { createProjectTrustContext } from "./_shared/startup-0-3-DE2NCS6A.js";
|
|
11
11
|
import { parseConfigCommand } from "./_shared/config-command-parser-XRBNVMBV.js";
|
|
12
12
|
import { AuthStorage } from "./_shared/startup-0-4-ZMJV547D.js";
|
|
13
13
|
import { DefaultPackageManager, ModelRuntime } from "./_shared/startup-0-5-HZX3ZPTP.js";
|
|
14
|
-
import { formatPackageInstallWarning, isOfflineModeEnabled } from "./_shared/startup-0-1-
|
|
14
|
+
import { formatPackageInstallWarning, isOfflineModeEnabled } from "./_shared/startup-0-1-EZAJI6RE.js";
|
|
15
15
|
import { DefaultResourceLoader, resolveProjectTrusted } from "./_shared/startup-14-0-MLX36RBG.js";
|
|
16
16
|
import { SettingsManager } from "./_shared/startup-8-1-LZFXSD3Z.js";
|
|
17
17
|
import { ProjectTrustStore, hasProjectTrustInputs } from "./_shared/p1b-elig-BY2G5BUE.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.18-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.18-alpha.1" ? installed : running !== undefined && running.version !== "0.10.18-alpha.1" ? "0.10.18-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}.`, {
|