@bastani/atomic 0.10.8-alpha.1 → 0.10.9-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 +33 -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 +2 -2
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +2 -2
- package/dist/_shared/mode-shared-2QJSCUM6.js +2 -2
- package/dist/_shared/p1a-prewarm-UQY3X2UK.js +3 -3
- package/dist/_shared/sdk-OSBEPR3Q.js +13 -6
- package/dist/_shared/sdk-OSBEPR3Q.js.map +1 -1
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/startup-0-0-TYUFUOJZ.js +2 -2
- package/dist/_shared/startup-0-1-W2G2UY7R.js +2 -2
- package/dist/_shared/startup-0-2-UXBUEOXW.js +2 -2
- package/dist/_shared/startup-0-3-T4DVFYWX.js +2 -2
- package/dist/_shared/startup-0-4-HN5EB4K7.js +2 -2
- package/dist/_shared/startup-0-5-FD2P735I.js +2 -2
- package/dist/_shared/startup-10-0-TDQNBDDL.js +2 -2
- package/dist/_shared/startup-15-1-4S7FLMNG.js +2 -2
- package/dist/_shared/startup-8-0-34CBHPZH.js +2 -2
- package/dist/_shared/startup-8-1-4KANEHRA.js +2 -2
- package/dist/_shared/storage-command-7MGXLJGZ.js +2 -2
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/index.bundle.mjs +1 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +2 -2
- 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.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- 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.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- 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.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +2 -2
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +2 -2
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/node-sqlite-thread.js +2 -2
- package/dist/core/storage/node-sqlite.js +2 -2
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +2 -2
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +2 -2
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +2 -2
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.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.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.js +3 -3
- package/dist/core/storage/session/session-resume.impl.js +3 -3
- package/dist/core/storage/session/session-resume.js +3 -3
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +2 -2
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-session-store.impl.js +3 -3
- package/dist/core/storage/session/sql-session-store.js +3 -3
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +2 -2
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +2 -2
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/worktree-snapshot/blob-store.js +2 -2
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.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/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/package-manager-cli.code.js +2 -2
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/startup-files.json +1 -1
- package/dist/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/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,39 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.10.9-alpha.1] - 2026-11-24
|
|
6
|
+
|
|
7
|
+
Atomic no longer warns that MCP tools are unreachable when a project with its own resources starts up.
|
|
8
|
+
|
|
9
|
+
**MCP startup**
|
|
10
|
+
|
|
11
|
+
- **No false "neither is active" warning.** Projects with their own resources, such as `.atomic/mcp.json`, no longer report that MCP tools are unreachable at startup while codemode is still loading. Codemode is also activated for the first prompt when `autoEnableCodemode` relies on it ([#6542](https://github.com/bastani-inc/atomic/issues/6542), [#6543](https://github.com/bastani-inc/atomic/pull/6543))
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- Fixed a false "MCP tools are only reachable from the codemode or tool_search tool, but neither is active" warning when starting in a project with its own resources (such as `.atomic/mcp.json`). MCP started with the pre-trust extension set and checked for the built-in discovery tools before they loaded. MCP now leaves a missing discovery tool to the next prompt or `/mcp` command, and activates codemode there when `autoEnableCodemode` asks for it ([#6542](https://github.com/bastani-inc/atomic/issues/6542), [#6543](https://github.com/bastani-inc/atomic/pull/6543)).
|
|
16
|
+
|
|
17
|
+
## [0.10.8] - 2026-11-24
|
|
18
|
+
|
|
19
|
+
Atomic fixes deferred startup dropping the built-in Herdr reporter on plain `atomic` launches and expands SDK exports with session, storage, settings, and OAuth error classes, session stores, claim helpers, and model-scope utilities.
|
|
20
|
+
|
|
21
|
+
**Herdr integration**
|
|
22
|
+
|
|
23
|
+
- **Restored built-in Herdr reporting on plain `atomic` starts.** Fixed a 0.10.4 regression where deferred startup completion dropped inline extension factories (including `<inline:Herdr>`) whenever the preloaded extension set held only mandatory extensions, so new Atomic sessions in Herdr panes once again register and report `idle`, `working`, and `blocked` ([#6536](https://github.com/bastani-inc/atomic/issues/6536), [#6539](https://github.com/bastani-inc/atomic/pull/6539))
|
|
24
|
+
|
|
25
|
+
**SDK exports and ergonomics**
|
|
26
|
+
|
|
27
|
+
- **Typed session, storage, settings, and OAuth errors.** SDK callers can now import and catch `SessionAlreadyOpenError` (`SESSION_ALREADY_OPEN_EXIT_CODE`), `SessionConflictError`, `SessionDeletedError`, `SessionOpenElsewhereError`, `SessionNotFoundError`, `SessionExistsError`, `SessionFormatVersionError`, `SessionIdMismatchError`, `SessionInvalidTextError`, `SessionInvalidTimestampError`, `SessionImportFileNotFoundError`, `SessionWorkUnsettledError`, `JsonlStoragePoisonedError`, `SettingsFileChangedError`, `StorageTransferError`, `StorageImportIncompleteError`, and `OAuthLoginTransactionError` directly from `@bastani/atomic` ([#6537](https://github.com/bastani-inc/atomic/pull/6537))
|
|
28
|
+
- **Session stores, claims, and model-scope helpers.** `@bastani/atomic` now exports `MemorySessionStore`, `SqlSessionStore`, `SessionStorageOptions`, `claimSession`, `prepareSessionClaim`, `attachSessionClaim`, `resolveModelScopeFromModels`, and `resolveModelScopeWithDiagnostics`, with updated SDK reference docs and 4-backend storage examples ([#6537](https://github.com/bastani-inc/atomic/pull/6537))
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- Exported session, storage, settings, and OAuth error classes, stores, claims, and companion types from `@bastani/atomic` for SDK callers: `SessionAlreadyOpenError`, `SESSION_ALREADY_OPEN_EXIT_CODE`, `SessionDeletedError`, `SessionOpenElsewhereError`, `SessionConflictError`, `SessionNotFoundError`, `SessionExistsError`, `SessionFormatVersionError`, `SessionIdMismatchError`, `SessionInvalidTextError`, `SessionInvalidTimestampError`, `SessionImportFileNotFoundError`, `SessionWorkUnsettledError`, `JsonlStoragePoisonedError`, `SettingsFileChangedError`, `StorageTransferError`, `StorageImportIncompleteError`, `OAuthLoginTransactionError`, `MemorySessionStore`, `SqlSessionStore`, `SessionStorageOptions`, `claimSession`, `prepareSessionClaim`, `attachSessionClaim`, and companion types (`SessionJsonValue`, `SessionTextField`, `SessionTimestampField`, `StorageTransferErrorInit`, `TransferredIds`), along with model-scope helpers `resolveModelScopeFromModels`, `resolveModelScopeWithDiagnostics`, `ResolveModelScopeResult`, and `ModelScopeDiagnostic` ([#6537](https://github.com/bastani-inc/atomic/pull/6537)).
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
|
|
36
|
+
- Fixed a regression introduced in 0.10.4 where a plain `atomic` start via deferred startup completion dropped inline extension factories (including the built-in Herdr reporter `<inline:Herdr>`) when the preloaded set had no explicit `omittedInlineFactories` entry. `loadFinalExtensionSet` now loads any inline non-builtin factories not already present in or failed during the preloaded set, restoring Herdr pane registration and status reporting ([#6536](https://github.com/bastani-inc/atomic/issues/6536), [#6539](https://github.com/bastani-inc/atomic/pull/6539)).
|
|
37
|
+
|
|
5
38
|
## [0.10.8-alpha.1] - 2026-11-24
|
|
6
39
|
|
|
7
40
|
Atomic fixes deferred startup dropping the built-in Herdr reporter on plain `atomic` launches and expands SDK exports with session, storage, settings, and OAuth error classes, session stores, claim helpers, and model-scope utilities.
|
|
@@ -31842,7 +31842,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
31842
31842
|
return (async () => {
|
|
31843
31843
|
const root = new URL("../", import.meta.url);
|
|
31844
31844
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
31845
|
-
const key = `${root.href}#0.10.
|
|
31845
|
+
const key = `${root.href}#0.10.9-alpha.1`;
|
|
31846
31846
|
let release = releases.get(key);
|
|
31847
31847
|
if (release === undefined) {
|
|
31848
31848
|
const current = (async () => {
|
|
@@ -31870,7 +31870,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
31870
31870
|
} catch {
|
|
31871
31871
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
31872
31872
|
}
|
|
31873
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
31873
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.9-alpha.1" ? installed : running !== undefined && running.version !== "0.10.9-alpha.1" ? "0.10.9-alpha.1" : undefined;
|
|
31874
31874
|
if (updatedTo === undefined) throw error;
|
|
31875
31875
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
31876
31876
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -40,7 +40,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
40
40
|
return (async () => {
|
|
41
41
|
const root = new URL("../", import.meta.url);
|
|
42
42
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
43
|
-
const key = `${root.href}#0.10.
|
|
43
|
+
const key = `${root.href}#0.10.9-alpha.1`;
|
|
44
44
|
let release = releases.get(key);
|
|
45
45
|
if (release === undefined) {
|
|
46
46
|
const current = (async () => {
|
|
@@ -68,7 +68,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
68
68
|
} catch {
|
|
69
69
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
70
70
|
}
|
|
71
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
71
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.9-alpha.1" ? installed : running !== undefined && running.version !== "0.10.9-alpha.1" ? "0.10.9-alpha.1" : undefined;
|
|
72
72
|
if (updatedTo === undefined) throw error;
|
|
73
73
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
74
74
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -5131,7 +5131,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
5131
5131
|
return (async () => {
|
|
5132
5132
|
const root = new URL("../", import.meta.url);
|
|
5133
5133
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
5134
|
-
const key = `${root.href}#0.10.
|
|
5134
|
+
const key = `${root.href}#0.10.9-alpha.1`;
|
|
5135
5135
|
let release = releases.get(key);
|
|
5136
5136
|
if (release === undefined) {
|
|
5137
5137
|
const current = (async () => {
|
|
@@ -5159,7 +5159,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
5159
5159
|
} catch {
|
|
5160
5160
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
5161
5161
|
}
|
|
5162
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
5162
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.9-alpha.1" ? installed : running !== undefined && running.version !== "0.10.9-alpha.1" ? "0.10.9-alpha.1" : undefined;
|
|
5163
5163
|
if (updatedTo === undefined) throw error;
|
|
5164
5164
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
5165
5165
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -28157,7 +28157,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
28157
28157
|
return (async () => {
|
|
28158
28158
|
const root = new URL("../", import.meta.url);
|
|
28159
28159
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
28160
|
-
const key = `${root.href}#0.10.
|
|
28160
|
+
const key = `${root.href}#0.10.9-alpha.1`;
|
|
28161
28161
|
let release = releases.get(key);
|
|
28162
28162
|
if (release === undefined) {
|
|
28163
28163
|
const current = (async () => {
|
|
@@ -28185,7 +28185,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
28185
28185
|
} catch {
|
|
28186
28186
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
28187
28187
|
}
|
|
28188
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
28188
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.9-alpha.1" ? installed : running !== undefined && running.version !== "0.10.9-alpha.1" ? "0.10.9-alpha.1" : undefined;
|
|
28189
28189
|
if (updatedTo === undefined) throw error;
|
|
28190
28190
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
28191
28191
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -4135,7 +4135,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
4135
4135
|
return (async () => {
|
|
4136
4136
|
const root = new URL("../", import.meta.url);
|
|
4137
4137
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
4138
|
-
const key = `${root.href}#0.10.
|
|
4138
|
+
const key = `${root.href}#0.10.9-alpha.1`;
|
|
4139
4139
|
let release = releases.get(key);
|
|
4140
4140
|
if (release === undefined) {
|
|
4141
4141
|
const current = (async () => {
|
|
@@ -4163,7 +4163,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
4163
4163
|
} catch {
|
|
4164
4164
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
4165
4165
|
}
|
|
4166
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
4166
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.9-alpha.1" ? installed : running !== undefined && running.version !== "0.10.9-alpha.1" ? "0.10.9-alpha.1" : undefined;
|
|
4167
4167
|
if (updatedTo === undefined) throw error;
|
|
4168
4168
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
4169
4169
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -27253,7 +27253,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
27253
27253
|
return (async () => {
|
|
27254
27254
|
const root = new URL("../", import.meta.url);
|
|
27255
27255
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
27256
|
-
const key = `${root.href}#0.10.
|
|
27256
|
+
const key = `${root.href}#0.10.9-alpha.1`;
|
|
27257
27257
|
let release = releases.get(key);
|
|
27258
27258
|
if (release === undefined) {
|
|
27259
27259
|
const current = (async () => {
|
|
@@ -27281,7 +27281,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
27281
27281
|
} catch {
|
|
27282
27282
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
27283
27283
|
}
|
|
27284
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
27284
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.9-alpha.1" ? installed : running !== undefined && running.version !== "0.10.9-alpha.1" ? "0.10.9-alpha.1" : undefined;
|
|
27285
27285
|
if (updatedTo === undefined) throw error;
|
|
27286
27286
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
27287
27287
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -204,7 +204,7 @@ const INTERACTIVE_ENGINE_PREWARM_DEFAULT_MODEL_API_FLAG = `${INTERACTIVE_ENGINE_
|
|
|
204
204
|
const INTERACTIVE_ENGINE_PREWARM_HANDOFF_FLAG = `${INTERACTIVE_ENGINE_PREWARM_FLAG}-handoff`;
|
|
205
205
|
const PREWARM_HOST_ARGUMENTS_MAX_LENGTH = 8192;
|
|
206
206
|
const PREWARM_READY_MAX_BYTES = 4096;
|
|
207
|
-
const PREWARM_BUILD_STAMP = "
|
|
207
|
+
const PREWARM_BUILD_STAMP = "5e1d86ee0723cc70f9dd84245b95fa";
|
|
208
208
|
const PREWARM_BUILD_STAMP_UNSTAMPED = ["__ATOMIC_PREWARM", "BUILD_STAMP__"].join("_");
|
|
209
209
|
function prewarmBuildIdentity() {
|
|
210
210
|
if (PREWARM_BUILD_STAMP === PREWARM_BUILD_STAMP_UNSTAMPED) return void 0;
|
|
@@ -568,7 +568,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
568
568
|
return (async () => {
|
|
569
569
|
const root = new URL("../", import.meta.url);
|
|
570
570
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
571
|
-
const key = `${root.href}#0.10.
|
|
571
|
+
const key = `${root.href}#0.10.9-alpha.1`;
|
|
572
572
|
let release = releases.get(key);
|
|
573
573
|
if (release === undefined) {
|
|
574
574
|
const current = (async () => {
|
|
@@ -596,7 +596,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
596
596
|
} catch {
|
|
597
597
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
598
598
|
}
|
|
599
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
599
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.9-alpha.1" ? installed : running !== undefined && running.version !== "0.10.9-alpha.1" ? "0.10.9-alpha.1" : undefined;
|
|
600
600
|
if (updatedTo === undefined) throw error;
|
|
601
601
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
602
602
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -7725,8 +7725,12 @@ function createMcpExtension(options = {}) {
|
|
|
7725
7725
|
* them) or the tool_search tool (it declares them). Either reaches every such tool. Activate the
|
|
7726
7726
|
* one the tools' exposure asks for: codemode for `codemode` unless `autoEnableCodemode` is false,
|
|
7727
7727
|
* tool_search for `deferred`.
|
|
7728
|
+
*
|
|
7729
|
+
* A `provisional` check may run before the final extension set is loaded: with deferred project
|
|
7730
|
+
* trust, MCP starts with the pre-trust set and the built-in discovery tools load afterwards. It
|
|
7731
|
+
* leaves a missing discovery tool to the next `settled` check, such as the next prompt's.
|
|
7728
7732
|
*/
|
|
7729
|
-
const ensureDiscoveryActive = (ctx) => {
|
|
7733
|
+
const ensureDiscoveryActive = (ctx, check = "settled") => {
|
|
7730
7734
|
const exposures = /* @__PURE__ */ new Set();
|
|
7731
7735
|
for (const server of servers) if (isEnabled(server)) for (const exposure of configuredExposures(server.entry)) exposures.add(exposure);
|
|
7732
7736
|
const needsCodemode = exposures.has("codemode");
|
|
@@ -7744,6 +7748,7 @@ function createMcpExtension(options = {}) {
|
|
|
7744
7748
|
const reachable = [...active, ...activate];
|
|
7745
7749
|
if (hasCodemode && reachable.includes("codemode")) return;
|
|
7746
7750
|
if (hasToolSearch && reachable.includes("tool_search")) return;
|
|
7751
|
+
if (check === "provisional" && !hasCodemode && !hasToolSearch) return;
|
|
7747
7752
|
if (warnedUnreachable) return;
|
|
7748
7753
|
warnedUnreachable = true;
|
|
7749
7754
|
const reason = needsCodemode && codemode?.explicitDefaultOptOut ? " (-codemode removed it from the tool selection)" : needsCodemode && hasCodemode && !autoEnableCodemode ? " (autoEnableCodemode is false)" : "";
|
|
@@ -8114,7 +8119,7 @@ function createMcpExtension(options = {}) {
|
|
|
8114
8119
|
const finish = (message) => {
|
|
8115
8120
|
if (signal.aborted || server.attempt !== attempt || !servers.includes(server)) return;
|
|
8116
8121
|
server.message = message;
|
|
8117
|
-
ensureDiscoveryActive(ctx);
|
|
8122
|
+
ensureDiscoveryActive(ctx, "provisional");
|
|
8118
8123
|
emitChange();
|
|
8119
8124
|
};
|
|
8120
8125
|
track(ready.then(finish, (error) => finish(errorMessage(error))));
|
|
@@ -8255,7 +8260,7 @@ function createMcpExtension(options = {}) {
|
|
|
8255
8260
|
servers = [...loaded.servers.map((entry) => ({ entry })), ...registered.servers];
|
|
8256
8261
|
restoreRecordedTools(ctx);
|
|
8257
8262
|
emitChange();
|
|
8258
|
-
ensureDiscoveryActive(ctx);
|
|
8263
|
+
ensureDiscoveryActive(ctx, "provisional");
|
|
8259
8264
|
const enabled = servers.filter(isEnabled);
|
|
8260
8265
|
if (enabled.length === 0) {
|
|
8261
8266
|
reportProblems(ctx);
|
|
@@ -8283,6 +8288,7 @@ function createMcpExtension(options = {}) {
|
|
|
8283
8288
|
if (!finished) ctx.ui.notify("MCP servers are still connecting; their tools become available once connected.", "info");
|
|
8284
8289
|
};
|
|
8285
8290
|
atomic.on("before_agent_start", async (event, ctx) => {
|
|
8291
|
+
ensureDiscoveryActive(ctx);
|
|
8286
8292
|
await waitForDirectServers(ctx);
|
|
8287
8293
|
const { sections } = event.systemPromptOptions;
|
|
8288
8294
|
const section = layOutServersSection(servers.map((server) => {
|
|
@@ -8379,7 +8385,7 @@ function createMcpExtension(options = {}) {
|
|
|
8379
8385
|
const added = registered.servers.filter((server) => !findServer(server.entry.name));
|
|
8380
8386
|
servers.push(...added);
|
|
8381
8387
|
emitChange();
|
|
8382
|
-
if (latestContext) ensureDiscoveryActive(latestContext);
|
|
8388
|
+
if (latestContext) ensureDiscoveryActive(latestContext, "provisional");
|
|
8383
8389
|
Promise.all(removed.map((server) => server.connection?.close())).then(async () => {
|
|
8384
8390
|
const connecting = added.filter(isEnabled);
|
|
8385
8391
|
if (signal.aborted || connecting.length === 0) return;
|
|
@@ -8445,6 +8451,7 @@ function createMcpExtension(options = {}) {
|
|
|
8445
8451
|
return items.length > 0 ? items : null;
|
|
8446
8452
|
},
|
|
8447
8453
|
handler: async (args, ctx) => {
|
|
8454
|
+
ensureDiscoveryActive(ctx);
|
|
8448
8455
|
const [action, name, ...extra] = args.trim().split(/\s+/).filter(Boolean);
|
|
8449
8456
|
if (action === void 0) {
|
|
8450
8457
|
if (ctx.mode === "tui") await showMcpManager(ctx, (ui) => manage(ui, ctx));
|
|
@@ -10273,7 +10280,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
10273
10280
|
return (async () => {
|
|
10274
10281
|
const root = new URL("../", import.meta.url);
|
|
10275
10282
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
10276
|
-
const key = `${root.href}#0.10.
|
|
10283
|
+
const key = `${root.href}#0.10.9-alpha.1`;
|
|
10277
10284
|
let release = releases.get(key);
|
|
10278
10285
|
if (release === undefined) {
|
|
10279
10286
|
const current = (async () => {
|
|
@@ -10301,7 +10308,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
10301
10308
|
} catch {
|
|
10302
10309
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
10303
10310
|
}
|
|
10304
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
10311
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.9-alpha.1" ? installed : running !== undefined && running.version !== "0.10.9-alpha.1" ? "0.10.9-alpha.1" : undefined;
|
|
10305
10312
|
if (updatedTo === undefined) throw error;
|
|
10306
10313
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
10307
10314
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|