@bastani/atomic 0.10.18-alpha.1 → 0.10.18
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 +41 -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-XIU57JHF.js +3 -3
- package/dist/_shared/sdk-OHKMDJ74.js +9 -10
- package/dist/_shared/sdk-OHKMDJ74.js.map +1 -1
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/startup-0-0-OV6RAEAP.js +2 -2
- package/dist/_shared/startup-0-1-EZAJI6RE.js +2 -2
- package/dist/_shared/startup-0-2-YZZOC22D.js +2 -2
- package/dist/_shared/startup-0-3-DE2NCS6A.js +2 -2
- package/dist/_shared/startup-0-4-ZMJV547D.js +4 -3
- package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -1
- package/dist/_shared/startup-0-5-HZX3ZPTP.js +3 -5
- package/dist/_shared/startup-0-5-HZX3ZPTP.js.map +1 -1
- 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-LZFXSD3Z.js +2 -2
- package/dist/_shared/storage-command-7MGXLJGZ.js +72 -8
- package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
- package/dist/_shared/storage-status-K7PX2RXA.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/broker/broker.bundle.mjs +158 -78
- package/dist/builtin/intercom/broker/multinode-router.ts +41 -8
- package/dist/builtin/intercom/broker/multinode-state-store.ts +6 -1
- package/dist/builtin/intercom/broker/sql-lease-store.ts +89 -80
- package/dist/builtin/intercom/broker/sql-pending-ask-store.ts +65 -6
- 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/database.d.ts +6 -2
- package/dist/core/storage/database.js.map +1 -1
- package/dist/core/storage/fenced-paths.d.ts +15 -0
- package/dist/core/storage/fenced-paths.js +25 -0
- package/dist/core/storage/fenced-paths.js.map +1 -1
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/migrations.d.ts +2 -11
- package/dist/core/storage/migrations.js +2 -9
- package/dist/core/storage/migrations.js.map +1 -1
- 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/postgres-locks.d.ts +11 -0
- package/dist/core/storage/postgres-locks.js +9 -0
- package/dist/core/storage/postgres-locks.js.map +1 -0
- 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.d.ts +1 -1
- package/dist/core/storage/session/sql-session-store.impl.js +3 -3
- package/dist/core/storage/session/sql-session-store.js +3 -3
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/sqlite-facade.js +6 -4
- 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/heartbeat-notice.d.ts +0 -1
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +2 -2
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +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.d.ts +14 -16
- package/dist/core/worktree-snapshot/blob-store.js +194 -81
- package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
- package/dist/core/worktree-snapshot/collection-claim.js +8 -0
- package/dist/core/worktree-snapshot/collection-claim.js.map +1 -0
- 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/core/worktree-snapshot/snapshot-epoch-migration.js +209 -0
- package/dist/core/worktree-snapshot/snapshot-epoch-migration.js.map +1 -0
- package/dist/core/worktree-snapshot/snapshot-epoch.js +100 -0
- package/dist/core/worktree-snapshot/snapshot-epoch.js.map +1 -0
- 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/docs/background-tasks/reference.md +1 -1
- package/docs/background-tasks.md +1 -1
- package/docs/changelog.mdx +17 -0
- package/docs/reference/cli.md +3 -2
- package/docs/storage/postgres/tuning.md +2 -0
- package/docs/storage/postgres.md +17 -0
- package/docs/worktree-snapshots/reference.md +1 -1
- package/package.json +8 -8
|
@@ -221,7 +221,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
221
221
|
return (async () => {
|
|
222
222
|
const root = new URL("../", import.meta.url);
|
|
223
223
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
224
|
-
const key = `${root.href}#0.10.18
|
|
224
|
+
const key = `${root.href}#0.10.18`;
|
|
225
225
|
let release = releases.get(key);
|
|
226
226
|
if (release === undefined) {
|
|
227
227
|
const current = (async () => {
|
|
@@ -249,7 +249,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
249
249
|
} catch {
|
|
250
250
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
251
251
|
}
|
|
252
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.18
|
|
252
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.18" ? installed : running !== undefined && running.version !== "0.10.18" ? "0.10.18" : undefined;
|
|
253
253
|
if (updatedTo === undefined) throw error;
|
|
254
254
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
255
255
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -20414,7 +20414,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
20414
20414
|
return (async () => {
|
|
20415
20415
|
const root = new URL("../", import.meta.url);
|
|
20416
20416
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
20417
|
-
const key = `${root.href}#0.10.18
|
|
20417
|
+
const key = `${root.href}#0.10.18`;
|
|
20418
20418
|
let release = releases.get(key);
|
|
20419
20419
|
if (release === undefined) {
|
|
20420
20420
|
const current = (async () => {
|
|
@@ -20442,7 +20442,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
20442
20442
|
} catch {
|
|
20443
20443
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
20444
20444
|
}
|
|
20445
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.18
|
|
20445
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.18" ? installed : running !== undefined && running.version !== "0.10.18" ? "0.10.18" : undefined;
|
|
20446
20446
|
if (updatedTo === undefined) throw error;
|
|
20447
20447
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
20448
20448
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -20120,7 +20120,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
20120
20120
|
return (async () => {
|
|
20121
20121
|
const root = new URL("../", import.meta.url);
|
|
20122
20122
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
20123
|
-
const key = `${root.href}#0.10.18
|
|
20123
|
+
const key = `${root.href}#0.10.18`;
|
|
20124
20124
|
let release = releases.get(key);
|
|
20125
20125
|
if (release === undefined) {
|
|
20126
20126
|
const current = (async () => {
|
|
@@ -20148,7 +20148,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
20148
20148
|
} catch {
|
|
20149
20149
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
20150
20150
|
}
|
|
20151
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.18
|
|
20151
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.18" ? installed : running !== undefined && running.version !== "0.10.18" ? "0.10.18" : undefined;
|
|
20152
20152
|
if (updatedTo === undefined) throw error;
|
|
20153
20153
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
20154
20154
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -12646,7 +12646,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
12646
12646
|
return (async () => {
|
|
12647
12647
|
const root = new URL("../", import.meta.url);
|
|
12648
12648
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
12649
|
-
const key = `${root.href}#0.10.18
|
|
12649
|
+
const key = `${root.href}#0.10.18`;
|
|
12650
12650
|
let release = releases.get(key);
|
|
12651
12651
|
if (release === undefined) {
|
|
12652
12652
|
const current = (async () => {
|
|
@@ -12674,7 +12674,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
12674
12674
|
} catch {
|
|
12675
12675
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
12676
12676
|
}
|
|
12677
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.18
|
|
12677
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.18" ? installed : running !== undefined && running.version !== "0.10.18" ? "0.10.18" : undefined;
|
|
12678
12678
|
if (updatedTo === undefined) throw error;
|
|
12679
12679
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
12680
12680
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -6169,7 +6169,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
6169
6169
|
return (async () => {
|
|
6170
6170
|
const root = new URL("../", import.meta.url);
|
|
6171
6171
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
6172
|
-
const key = `${root.href}#0.10.18
|
|
6172
|
+
const key = `${root.href}#0.10.18`;
|
|
6173
6173
|
let release = releases.get(key);
|
|
6174
6174
|
if (release === undefined) {
|
|
6175
6175
|
const current = (async () => {
|
|
@@ -6197,7 +6197,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
6197
6197
|
} catch {
|
|
6198
6198
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
6199
6199
|
}
|
|
6200
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.18
|
|
6200
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.18" ? installed : running !== undefined && running.version !== "0.10.18" ? "0.10.18" : undefined;
|
|
6201
6201
|
if (updatedTo === undefined) throw error;
|
|
6202
6202
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
6203
6203
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -23,6 +23,7 @@ import { StoreClosedError } from "../core/storage/errors.js";
|
|
|
23
23
|
import { chmod as chmod$1, readFile as readFile$1, writeFile as writeFile$1 } from "fs/promises";
|
|
24
24
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
25
25
|
import { BackgroundCollectionPace, SqlSnapshotBlobStore, runningSnapshotCollectionOf, trackSnapshotCollection } from "../core/worktree-snapshot/blob-store.js";
|
|
26
|
+
import { SnapshotCollectionClaimLost } from "../core/worktree-snapshot/collection-claim.js";
|
|
26
27
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
27
28
|
import { isDeepStrictEqual } from "util";
|
|
28
29
|
// dist/core/worktree-snapshot/paths.js
|
|
@@ -436,7 +437,7 @@ async function collectIfDue(store, settings, pace, signal, onFailure, delayMs) {
|
|
|
436
437
|
deleted
|
|
437
438
|
};
|
|
438
439
|
} catch (cause) {
|
|
439
|
-
if (cause instanceof StoreClosedError) return {
|
|
440
|
+
if (cause instanceof StoreClosedError || cause instanceof SnapshotCollectionClaimLost) return {
|
|
440
441
|
status: "interrupted",
|
|
441
442
|
deleted
|
|
442
443
|
};
|
|
@@ -6124,7 +6125,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
6124
6125
|
return (async () => {
|
|
6125
6126
|
const root = new URL("../", import.meta.url);
|
|
6126
6127
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
6127
|
-
const key = `${root.href}#0.10.18
|
|
6128
|
+
const key = `${root.href}#0.10.18`;
|
|
6128
6129
|
let release = releases.get(key);
|
|
6129
6130
|
if (release === undefined) {
|
|
6130
6131
|
const current = (async () => {
|
|
@@ -6152,7 +6153,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
6152
6153
|
} catch {
|
|
6153
6154
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
6154
6155
|
}
|
|
6155
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.18
|
|
6156
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.18" ? installed : running !== undefined && running.version !== "0.10.18" ? "0.10.18" : undefined;
|
|
6156
6157
|
if (updatedTo === undefined) throw error;
|
|
6157
6158
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
6158
6159
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|