@bastani/atomic 0.10.10 → 0.10.11-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 +83 -0
- package/README.md +1 -1
- 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 +8 -10
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +6 -6
- package/dist/_shared/mode-shared-2QJSCUM6.js +52 -15
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/runtime-O4KCSG4C.js +3 -3
- package/dist/_shared/{sdk-RRLVN7ER.js → sdk-AVFII7NK.js} +757 -233
- package/dist/_shared/sdk-AVFII7NK.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +3 -3
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/{startup-0-0-4VG2G44V.js → startup-0-0-57KF6LZH.js} +94 -42
- package/dist/_shared/startup-0-0-57KF6LZH.js.map +1 -0
- package/dist/_shared/{startup-0-1-XTIL65D4.js → startup-0-1-GIY75K46.js} +75 -13
- package/dist/_shared/startup-0-1-GIY75K46.js.map +1 -0
- package/dist/_shared/startup-0-2-27OWFHV6.js +72 -7
- package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -1
- package/dist/_shared/startup-0-3-T4DVFYWX.js +4 -4
- package/dist/_shared/startup-0-4-ZMJV547D.js +4 -4
- package/dist/_shared/{startup-0-5-FD2P735I.js → startup-0-5-YDW47QX6.js} +27 -69
- package/dist/_shared/startup-0-5-YDW47QX6.js.map +1 -0
- package/dist/_shared/startup-10-0-TDQNBDDL.js +6 -6
- package/dist/_shared/startup-12-0-55AAXBJZ.js +3 -3
- package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
- package/dist/_shared/startup-15-0-YUKGAC63.js +31 -7
- package/dist/_shared/startup-15-0-YUKGAC63.js.map +1 -1
- package/dist/_shared/startup-15-1-4S7FLMNG.js +7 -6
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +4 -4
- package/dist/_shared/{startup-8-1-4KANEHRA.js → startup-8-1-X32CYSXB.js} +1219 -714
- package/dist/_shared/startup-8-1-X32CYSXB.js.map +1 -0
- package/dist/_shared/storage-command-7MGXLJGZ.js +14 -8
- package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
- package/dist/_shared/task-reference-stream-JWMUZSJX.js +1 -1
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/CHANGELOG.md +18 -0
- package/dist/builtin/intercom/broker/broker.bundle.mjs +993 -362
- package/dist/builtin/intercom/broker/database-wake-up-bus.ts +103 -24
- package/dist/builtin/intercom/broker/multinode-router.ts +42 -21
- package/dist/builtin/intercom/broker/multinode-state-store.ts +22 -1
- package/dist/builtin/intercom/broker/open-broker-state.ts +82 -31
- package/dist/builtin/intercom/broker/paths.ts +8 -4
- package/dist/builtin/intercom/broker/released-asker-remote-replies.ts +18 -6
- package/dist/builtin/intercom/broker/sql-add-column.ts +4 -1
- package/dist/builtin/intercom/broker/sql-ended-child-queue-store.ts +65 -44
- package/dist/builtin/intercom/broker/sql-held-send-store.ts +11 -3
- package/dist/builtin/intercom/broker/sql-known-session-store.ts +24 -12
- package/dist/builtin/intercom/broker/sql-lease-store.ts +375 -65
- package/dist/builtin/intercom/broker/sql-outbox-store.ts +270 -101
- package/dist/builtin/intercom/broker/sql-pending-ask-store.ts +20 -9
- package/dist/builtin/intercom/broker/sql-released-ask-store.ts +14 -6
- package/dist/builtin/intercom/broker/sql-restoring-reservation-store.ts +27 -11
- package/dist/builtin/intercom/broker/sql-schema.ts +139 -1
- package/dist/builtin/intercom/broker/sql-sent-message-authority.ts +97 -34
- package/dist/builtin/intercom/index.bundle.mjs +11 -8
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +12 -0
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/skills/skill-creator/SKILL.md +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +62 -23
- 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 +4 -4
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.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.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 +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.code.js +2 -2
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/core/agent-session-methods.d.ts +3 -0
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session.d.ts +1 -0
- package/dist/core/compaction/compactor.d.ts +2 -0
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.code.js +1 -1
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +2 -2
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.code.js +1 -1
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/tool-renderer.impl.js +3 -3
- package/dist/core/export-html/tool-renderer.js +3 -3
- package/dist/core/extensions/jiti-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-loader.js +3 -3
- package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-static-loader.js +3 -3
- package/dist/core/extensions/loader-host-modules.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 +2 -2
- package/dist/core/extensions/runner-context.js +3 -3
- package/dist/core/extensions/runner-context.js.map +1 -1
- package/dist/core/intercom-broker-control-host.code.js +1 -1
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +3 -3
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/model-registry.js +1 -1
- package/dist/core/model-resolver-defaults.d.ts +3 -2
- package/dist/core/package-manager-storage-adapters.code.js +1 -1
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/sdk.code.js +3 -4
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.d.ts +5 -2
- package/dist/core/session-manager-core.js +17 -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.code.js +1 -1
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/storage/added-exports.d.ts +6 -0
- package/dist/core/storage/added-exports.js +16 -0
- package/dist/core/storage/added-exports.js.map +1 -0
- package/dist/core/storage/database.d.ts +16 -0
- package/dist/core/storage/database.js.map +1 -1
- package/dist/core/storage/fenced-paths.d.ts +47 -0
- package/dist/core/storage/fenced-paths.js +53 -0
- package/dist/core/storage/fenced-paths.js.map +1 -1
- package/dist/core/storage/file-identity.js +31 -2
- package/dist/core/storage/file-identity.js.map +1 -1
- package/dist/core/storage/index.d.ts +3 -0
- package/dist/core/storage/index.js +5 -2
- package/dist/core/storage/index.js.map +1 -1
- package/dist/core/storage/migrations.d.ts +22 -0
- package/dist/core/storage/migrations.js +55 -0
- package/dist/core/storage/migrations.js.map +1 -1
- package/dist/core/storage/node-sqlite-thread.js +19 -6
- package/dist/core/storage/node-sqlite-thread.js.map +1 -1
- package/dist/core/storage/node-sqlite.js +53 -4
- package/dist/core/storage/node-sqlite.js.map +1 -1
- 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/prefix.d.ts +3 -2
- package/dist/core/storage/prefix.js +18 -2
- package/dist/core/storage/prefix.js.map +1 -1
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/schema-catalog.d.ts +42 -0
- package/dist/core/storage/schema-catalog.js +141 -0
- package/dist/core/storage/schema-catalog.js.map +1 -0
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +41 -20
- package/dist/core/storage/session/branch-fork-source.code.js.map +1 -1
- 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.code.js +1 -1
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +3 -3
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.code.js +176 -36
- package/dist/core/storage/session/fork-staging.code.js.map +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.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 +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-search-index.d.ts +5 -0
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +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-chat-records.d.ts +15 -0
- package/dist/core/storage/session/sql-session-store.code.js +1 -1
- package/dist/core/storage/session/sql-session-store.d.ts +102 -5
- package/dist/core/storage/session/sql-session-store.impl.js +4 -4
- package/dist/core/storage/session/sql-session-store.js +4 -4
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.code.js +1 -1
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/session/types.d.ts +14 -0
- package/dist/core/storage/sqlite-facade.d.ts +37 -5
- package/dist/core/storage/sqlite-facade.js +351 -18
- package/dist/core/storage/sqlite-facade.js.map +1 -1
- package/dist/core/storage/statement-sequence.d.ts +83 -0
- package/dist/core/storage/statement-sequence.js +21 -0
- package/dist/core/storage/statement-sequence.js.map +1 -1
- package/dist/core/storage/storage-status.code.js +1 -1
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.code.js +1 -1
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.code.js +1 -1
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.code.js +1 -1
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +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 +4 -4
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.code.js +1 -1
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/bash.d.ts +8 -4
- package/dist/core/tools/history-session.d.ts +5 -0
- package/dist/core/tools/history-tasks.d.ts +123 -0
- package/dist/core/tools/kill.d.ts +5 -2
- package/dist/core/tools/powershell.d.ts +2 -2
- package/dist/core/tools/read-url.code.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/tools/read.d.ts +12 -2
- package/dist/core/tools/resource-selectors.d.ts +2 -0
- package/dist/core/tools/search.d.ts +12 -2
- package/dist/core/worktree-snapshot/blob-store.d.ts +14 -2
- package/dist/core/worktree-snapshot/blob-store.js +69 -16
- package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
- 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 +2 -2
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +2 -2
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.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.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.js +5 -5
- package/dist/main-first-time-setup.code.js +1 -1
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/main.js +1 -1
- package/dist/modes/interactive/components/agent-panel.d.ts +1 -0
- 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/task-inspector.d.ts +2 -0
- package/dist/modes/interactive/components/user-message-selector-archive.code.js +1 -1
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/interactive/interactive-mode-helpers.d.ts +2 -2
- package/dist/modes/print-mode.js +1 -1
- package/dist/modes/rpc/agent-panel-bridge.d.ts +5 -0
- package/dist/package-manager-cli.code.js +6 -6
- 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/0.js +1 -1
- package/dist/startup-stages/1.js +1 -1
- package/dist/startup-stages/10.js +1 -1
- package/dist/startup-stages/12.js +1 -1
- package/dist/startup-stages/2.js +8 -1
- package/dist/startup-stages/3.js +1 -6
- package/dist/startup-stages/5.js +1 -1
- package/dist/startup-stages/7.js +1 -5
- 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/background-tasks.md +123 -23
- package/docs/compaction.md +18 -0
- package/docs/docs.json +2 -0
- package/docs/environment-variables.md +1 -1
- package/docs/getting-started/installation.md +9 -2
- package/docs/guides/postgres-pgbouncer.md +339 -0
- package/docs/guides/postgres-tuning.md +311 -0
- package/docs/guides/resume-on-any-machine.md +2 -2
- package/docs/guides.md +2 -0
- package/docs/index.md +1 -1
- package/docs/libraries/agent-core.md +1 -1
- package/docs/libraries/ai.md +2 -2
- package/docs/libraries/codemode.md +1 -1
- package/docs/libraries/storage-libsql.md +6 -1
- package/docs/libraries/storage-postgres.md +11 -6
- package/docs/libraries/tui.md +1 -1
- package/docs/libraries.md +2 -2
- package/docs/programmatic.md +1 -1
- package/docs/quickstart.md +1 -1
- package/docs/sdk/storage.md +1 -1
- package/docs/sdk/web-server.md +1 -3
- package/docs/sdk.md +1 -7
- package/docs/sessions.md +58 -2
- package/docs/settings.md +20 -1
- package/docs/skills/authoring.md +1 -1
- package/docs/skills.md +79 -6
- package/docs/storage.md +262 -12
- package/docs/subagents/reference.md +2 -2
- package/docs/subagents.md +4 -3
- package/docs/tools.md +44 -10
- package/docs/windows.md +1 -1
- package/package.json +9 -9
- package/dist/_shared/sdk-RRLVN7ER.js.map +0 -1
- package/dist/_shared/startup-0-0-4VG2G44V.js.map +0 -1
- package/dist/_shared/startup-0-1-XTIL65D4.js.map +0 -1
- package/dist/_shared/startup-0-5-FD2P735I.js.map +0 -1
- package/dist/_shared/startup-8-1-4KANEHRA.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.11-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.11-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
|
|
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.11-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.11-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
|
|
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.11-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.11-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
import { require_sha256 } from "../../../_shared/startup-0-0-
|
|
2
|
+
import { require_sha256 } from "../../../_shared/startup-0-0-57KF6LZH.js";
|
|
3
3
|
import { foldSessionResume, historyChunks, historyPages, selectResumeLeaf, sessionResumeFrom, sessionResumePlan } from "../../../_shared/startup-8-0-34CBHPZH.js";
|
|
4
4
|
// dist/core/storage/session/pinned-branch-resume.js
|
|
5
5
|
var import_sha256 = require_sha256();
|
|
@@ -76,7 +76,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
76
76
|
return (async () => {
|
|
77
77
|
const root = new URL("../../../", import.meta.url);
|
|
78
78
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
79
|
-
const key = `${root.href}#0.10.
|
|
79
|
+
const key = `${root.href}#0.10.11-alpha.1`;
|
|
80
80
|
let release = releases.get(key);
|
|
81
81
|
if (release === undefined) {
|
|
82
82
|
const current = (async () => {
|
|
@@ -104,7 +104,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
104
104
|
} catch {
|
|
105
105
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
106
106
|
}
|
|
107
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
107
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : undefined;
|
|
108
108
|
if (updatedTo === undefined) throw error;
|
|
109
109
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
110
110
|
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.11-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.11-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
|
|
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.11-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.11-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -8,9 +8,9 @@ import { join } from "node:path";
|
|
|
8
8
|
import { BroadcastChannel, isMainThread, receiveMessageOnPort } from "node:worker_threads";
|
|
9
9
|
import { helperLaunchAsync, missingHelperOptions } from "../../../_shared/p0-cli-BB45ZQY6.js";
|
|
10
10
|
import { process_start_token_exports } from "../../../_shared/p1b-elig-ENCUPKKJ.js";
|
|
11
|
-
import { getErrnoCode } from "../../../_shared/startup-0-0-
|
|
11
|
+
import { getErrnoCode } from "../../../_shared/startup-0-0-57KF6LZH.js";
|
|
12
12
|
import { sanitizeTempPathComponent } from "../../../_shared/startup-0-2-27OWFHV6.js";
|
|
13
|
-
import { powershellCandidates } from "../../../_shared/startup-0-1-
|
|
13
|
+
import { powershellCandidates } from "../../../_shared/startup-0-1-GIY75K46.js";
|
|
14
14
|
import { SessionSpillError } from "../errors.js";
|
|
15
15
|
// dist/core/storage/session/released-history-files.js
|
|
16
16
|
/**
|
|
@@ -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.11-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.11-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
|
|
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.11-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.11-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
|
|
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.11-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.11-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
|
|
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.11-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.11-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
|
|
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.11-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.11-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
|
|
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.11-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.11-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -33,6 +33,11 @@ export declare class SqlSessionSearchIndex implements SessionSearchIndex {
|
|
|
33
33
|
coverage(sessionId: string, format: number): Promise<SessionSearchCoverage | undefined>;
|
|
34
34
|
extend(sessionId: string, format: number, afterSeq: number, throughSeq: number, texts: readonly SessionSearchText[], options?: SessionSearchExtendOptions): Promise<boolean>;
|
|
35
35
|
private mergeBacklog;
|
|
36
|
+
/**
|
|
37
|
+
* A write of the session `sessionId`'s index rows: the session's own domain, which the session store's writers take,
|
|
38
|
+
* since `replace` and `delete` forget a session's index in their own transactions.
|
|
39
|
+
*/
|
|
40
|
+
private sessionWrite;
|
|
36
41
|
private writeTransaction;
|
|
37
42
|
candidates(sessionId: string, anyOf: readonly (readonly string[])[], fromSeq: number, toSeq: number, limit: number, generation?: string, signal?: AbortSignal): Promise<readonly number[] | undefined>;
|
|
38
43
|
}
|
|
@@ -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.11-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.11-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
|
|
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.11-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.11-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { getBranchPath } from "../../../_shared/startup-0-3-T4DVFYWX.js";
|
|
3
|
-
import { ChildCatalog } from "../../../_shared/startup-0-1-
|
|
3
|
+
import { ChildCatalog } from "../../../_shared/startup-0-1-GIY75K46.js";
|
|
4
4
|
import { assertSnapshotCut, foldSessionResume, lastBranchAnswer, sessionResumeOf, snapshotChunk, snapshotHead, snapshotPage, snapshotStamp, transcriptBranchSpan } from "../../../_shared/startup-8-0-34CBHPZH.js";
|
|
5
5
|
// dist/core/storage/session/snapshot-history.js
|
|
6
6
|
async function snapshotWindow(store, sessionId, leaf, through, expected, isProxy) {
|
|
@@ -66,7 +66,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
66
66
|
return (async () => {
|
|
67
67
|
const root = new URL("../../../", import.meta.url);
|
|
68
68
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
69
|
-
const key = `${root.href}#0.10.
|
|
69
|
+
const key = `${root.href}#0.10.11-alpha.1`;
|
|
70
70
|
let release = releases.get(key);
|
|
71
71
|
if (release === undefined) {
|
|
72
72
|
const current = (async () => {
|
|
@@ -94,7 +94,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
94
94
|
} catch {
|
|
95
95
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
96
96
|
}
|
|
97
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
97
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.11-alpha.1" ? installed : running !== undefined && running.version !== "0.10.11-alpha.1" ? "0.10.11-alpha.1" : undefined;
|
|
98
98
|
if (updatedTo === undefined) throw error;
|
|
99
99
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
100
100
|
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.11-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.11-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
|
|
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.11-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.11-alpha.1") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.11-alpha.1 while this session was running; restart it to keep using session storage.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SqliteDatabase } from "../database.js";
|
|
2
|
+
import { type SessionChatRecords } from "./chat-records.js";
|
|
3
|
+
/** The chat records' name in the storage ledger: `atomic storage migrate` sets them up as the owner role. */
|
|
4
|
+
export declare const SESSION_CHAT_DOMAIN = "session-chat";
|
|
5
|
+
/** Chat records whose table and index `initialize` creates, unless the ledger records them, before the first write. */
|
|
6
|
+
export interface SqlSessionChatRecords extends SessionChatRecords {
|
|
7
|
+
initialize(): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A new physical table per format version; the main sessions schema (and all its old readers) stay unchanged. `ledger`
|
|
11
|
+
* is the prefix's storage ledger, which records the table and index once set up, so a runtime role without DDL
|
|
12
|
+
* privileges runs no DDL once the owner created them.
|
|
13
|
+
*/
|
|
14
|
+
export declare function sqlChatRecords(database: SqliteDatabase, sessions: string, table: string, index: string, ledger: string): SqlSessionChatRecords;
|
|
15
|
+
//# sourceMappingURL=sql-chat-records.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
export { LISTING_FETCH_BATCH, SESSION_BLOB_CHUNK_BYTES, SESSION_DOMAIN, SESSION_ENTRY_CHUNK_BYTES, SESSION_PRESENCE_DOMAIN, SESSION_PRESENCE_TABLES, SESSION_READ_FETCH, SESSION_READ_PAGE_CHARS, SESSION_RESUME_REBUILD, SESSION_SCHEMA_VERSION, SESSION_TABLES, SqlSessionStore } from "../../../_shared/sdk-
|
|
2
|
+
export { LISTING_FETCH_BATCH, SESSION_BLOB_CHUNK_BYTES, SESSION_DOMAIN, SESSION_ENTRY_CHUNK_BYTES, SESSION_FILLFACTOR_DOMAIN, SESSION_PRESENCE_DOMAIN, SESSION_PRESENCE_TABLES, SESSION_READ_FETCH, SESSION_READ_PAGE_CHARS, SESSION_RESUME_REBUILD, SESSION_SCHEMA_VERSION, SESSION_TABLES, SqlSessionStore } from "../../../_shared/sdk-AVFII7NK.js";
|
|
3
3
|
//# sourceMappingURL=sql-session-store.code.js.map
|
|
@@ -2,8 +2,8 @@ import type { SessionEntry } from "../../session-manager-types.ts";
|
|
|
2
2
|
import { SqlSnapshotBlobStore } from "../../worktree-snapshot/blob-store.ts";
|
|
3
3
|
import type { SqliteDatabase, SqliteExecutor } from "../database.js";
|
|
4
4
|
import { type StorageDialect } from "../dialect.js";
|
|
5
|
-
import { type SessionChatRecords } from "./chat-records.js";
|
|
6
5
|
import { SqlSessionSearchIndex } from "./session-search-index.js";
|
|
6
|
+
import { type SqlSessionChatRecords } from "./sql-chat-records.js";
|
|
7
7
|
import type { ChildDisplayLaunch, ForkArchiveSource, OversizedSessionEntry, SessionBlob, SessionBranchPageCut, SessionCompactionPoint, SessionCwdMatcher, SessionEntriesPage, SessionEntriesQuery, SessionEntryRange, SessionEntrySizes, SessionForkSeed, SessionForkStream, SessionListQuery, SessionOpenMarker, SessionOpenMarkerAge, SessionOpenMarkerStore, SessionRecordHeader, SessionResume, SessionScanOptions, SessionScanPage, SessionSnapshot, SessionSnapshotCut, SessionStore, SessionStoredEntry, SessionSummary, SessionTail, SessionTaskReferenceDuplicatePage, SessionTaskReferenceDuplicateQuery, SessionTreeOutlineEntry, SessionWriteOptions, SessionWriteResult, StorageDescriptor } from "./types.js";
|
|
8
8
|
/**
|
|
9
9
|
* The newest sessions schema this build reads and writes. Version 2 stores long entries in chunks (#4954), which a build
|
|
@@ -14,6 +14,8 @@ import type { ChildDisplayLaunch, ForkArchiveSource, OversizedSessionEntry, Sess
|
|
|
14
14
|
export declare const SESSION_SCHEMA_VERSION = 2;
|
|
15
15
|
/** The schema domain of the session tables in the prefix's migration ledger. */
|
|
16
16
|
export declare const SESSION_DOMAIN = "sessions";
|
|
17
|
+
/** The ledger step, `schema:session-fillfactor`, that sets the sessions table's fillfactor on PostgreSQL (#6560). */
|
|
18
|
+
export declare const SESSION_FILLFACTOR_DOMAIN = "session-fillfactor";
|
|
17
19
|
/**
|
|
18
20
|
* The most bytes of a chunked session blob one row holds. New blobs use a header row and rows of at most this size,
|
|
19
21
|
* so their bound and returned values stay within it: libSQL servers cap a row and a bound value (sqld's default is
|
|
@@ -81,12 +83,14 @@ export declare class SqlSessionStore implements SessionStore {
|
|
|
81
83
|
openMarkers: SqlSessionOpenMarkers;
|
|
82
84
|
readonly searchIndex?: SqlSessionSearchIndex;
|
|
83
85
|
private chatStore?;
|
|
86
|
+
/** The database's reader handle, once a read opened it: see `readerDatabase`. */
|
|
87
|
+
private reader?;
|
|
84
88
|
/**
|
|
85
89
|
* Absent on a local libSQL file, which then behaves as before: @libsql/client waits for another process's write
|
|
86
90
|
* lock on the calling thread, even to begin a transaction, so a side write would stop the event loop where an
|
|
87
91
|
* ordinary turn-ending notice writes nothing (#5682).
|
|
88
92
|
*/
|
|
89
|
-
get chatRecords():
|
|
93
|
+
get chatRecords(): SqlSessionChatRecords | undefined;
|
|
90
94
|
private readonly entryByteLength;
|
|
91
95
|
private chunkRowids?;
|
|
92
96
|
/** Session ids of each recently listed scope, valid while the store's change token is unchanged. */
|
|
@@ -111,6 +115,7 @@ export declare class SqlSessionStore implements SessionStore {
|
|
|
111
115
|
readonly prefix?: string;
|
|
112
116
|
readonly cwdMatcher?: SessionCwdMatcher;
|
|
113
117
|
}): Promise<SqlSessionStore>;
|
|
118
|
+
private static openWithCatalog;
|
|
114
119
|
/**
|
|
115
120
|
* Removes, in a bounded number of short transactions, the staged rows of clones that stopped mid-copy and whose lease
|
|
116
121
|
* lapsed (#5594). Housekeeping: nothing reads those rows, so a failure leaves them to a later open or clone.
|
|
@@ -130,6 +135,27 @@ export declare class SqlSessionStore implements SessionStore {
|
|
|
130
135
|
* since this store opened it, and what it writes then is not this build's to read or write (#5065).
|
|
131
136
|
*/
|
|
132
137
|
private transaction;
|
|
138
|
+
/**
|
|
139
|
+
* `options` with the schema check its transaction makes first, before the reads `options.leading` names, sent with
|
|
140
|
+
* the transaction's start where the connection is pipelined.
|
|
141
|
+
*/
|
|
142
|
+
private checkedFirst;
|
|
143
|
+
/**
|
|
144
|
+
* `transaction` for a write to the rows of the session `sessionId` only, beside writers of other sessions. `leading`
|
|
145
|
+
* names the reads the body makes first, after the schema check.
|
|
146
|
+
*/
|
|
147
|
+
private sessionWrite;
|
|
148
|
+
/**
|
|
149
|
+
* `transaction` for a body that only reads, in one read-only snapshot, on the database's reader handle when it
|
|
150
|
+
* offers one: its reads then wait for neither the writes queued on this store's connection nor their locks.
|
|
151
|
+
*/
|
|
152
|
+
private readTransaction;
|
|
153
|
+
/**
|
|
154
|
+
* The database's reader handle, opened at the first read and closed with the store; the database without one. A
|
|
155
|
+
* reader that cannot open, such as when its file can no longer be opened anew, leaves the read on the store's own
|
|
156
|
+
* connection, as every read ran before readers, and the next read tries to open one again.
|
|
157
|
+
*/
|
|
158
|
+
private readerDatabase;
|
|
133
159
|
/**
|
|
134
160
|
* `transaction` for a body that only reads and writes the database. The version check is sent first, as there, but on
|
|
135
161
|
* a connection thread the body's first reads go behind it without waiting for its answer: one wait for the thread
|
|
@@ -138,12 +164,42 @@ export declare class SqlSessionStore implements SessionStore {
|
|
|
138
164
|
* failure reported, whatever the body met.
|
|
139
165
|
*/
|
|
140
166
|
private transactionCheckedAlongside;
|
|
167
|
+
/** The read that checks the sessions schema version, which every transaction of this store makes first. */
|
|
168
|
+
private schemaCheck;
|
|
141
169
|
private assertReadableSchema;
|
|
142
170
|
get descriptor(): StorageDescriptor;
|
|
143
171
|
create(header: SessionRecordHeader, entries: readonly SessionEntry[]): Promise<SessionWriteResult>;
|
|
144
172
|
createFork(header: SessionRecordHeader, entries: SessionForkSeed, source: ForkArchiveSource): Promise<(SessionWriteResult & {
|
|
145
173
|
remainingBlobs?: readonly string[];
|
|
146
174
|
}) | undefined>;
|
|
175
|
+
/**
|
|
176
|
+
* The source session's head, its row locked for share, once the child is known to be new: both reads go out together,
|
|
177
|
+
* one round trip (#6560). Fails as the source changed when it is no longer the generation the fork read.
|
|
178
|
+
*/
|
|
179
|
+
private forkDonor;
|
|
180
|
+
/**
|
|
181
|
+
* The statements that store a fork's `entries`, in seq order: an entry with a receipt as the source stores it, its row
|
|
182
|
+
* and chunks copied in two statements whatever their size, and any other as `create` stores it. A receipt's row that
|
|
183
|
+
* names another entry fails the fork: the source changed under it.
|
|
184
|
+
*/
|
|
185
|
+
private receiptForkWrites;
|
|
186
|
+
/**
|
|
187
|
+
* The blob copy of a fork from session `source` of this store's tables (#6560), or undefined when a subclass stores
|
|
188
|
+
* blobs its own way: `createForkArchive` then copies every one through it.
|
|
189
|
+
*/
|
|
190
|
+
private forkBlobCopy;
|
|
191
|
+
/**
|
|
192
|
+
* Sends a fork's blob copy behind its entries, then checks, in one round trip with them, that every stored entry of
|
|
193
|
+
* the child has all its chunks and which blobs were copied whole. Resolves with the hashes left for
|
|
194
|
+
* `copySessionBlobs`: those the source does not hold, or all of them where this store does not copy blobs itself.
|
|
195
|
+
*/
|
|
196
|
+
private finishForkCopy;
|
|
197
|
+
/**
|
|
198
|
+
* Whether `store` keeps its sessions in this store's very tables, so that this store's transaction reads its rows: this
|
|
199
|
+
* store, or another session store opened on the same database with the same prefix, such as through another handle
|
|
200
|
+
* (#6560). A wrapper that serves sessions of its own does not.
|
|
201
|
+
*/
|
|
202
|
+
private sharesTablesWith;
|
|
147
203
|
/**
|
|
148
204
|
* Clone a complete session, as `create` with every source entry and blob would, from a store on a handle this one
|
|
149
205
|
* cannot prove to be its own connection (#5594). The source is read a page at a time into the staging table, never
|
|
@@ -158,6 +214,12 @@ export declare class SqlSessionStore implements SessionStore {
|
|
|
158
214
|
* runtime role without DDL privileges then stages bounded clones too. Opens never create it.
|
|
159
215
|
*/
|
|
160
216
|
prepareForkStaging(): Promise<void>;
|
|
217
|
+
/**
|
|
218
|
+
* Creates the chat records' table and index unless the ledger records them, as `atomic storage migrate` does as the
|
|
219
|
+
* owner role: a runtime role without DDL privileges then saves chat records too. Opens never create them; the first
|
|
220
|
+
* chat record does where `migrate` has not run.
|
|
221
|
+
*/
|
|
222
|
+
prepareChatRecords(): Promise<void>;
|
|
161
223
|
private forkStagingTarget;
|
|
162
224
|
/**
|
|
163
225
|
* The stored chunk row `index` of the entry `reference` names, whole, in its generation; undefined when the entry is
|
|
@@ -166,6 +228,12 @@ export declare class SqlSessionStore implements SessionStore {
|
|
|
166
228
|
private readStoredEntryChunk;
|
|
167
229
|
/** How many chunks the entry `reference` names is stored in, 0 when it is stored whole, in its generation. */
|
|
168
230
|
private readStoredChunks;
|
|
231
|
+
/**
|
|
232
|
+
* The headers of the blobs `hashes` of session `sessionId` in one read (#6560), each with its first chunk row when it
|
|
233
|
+
* is stored in chunks of at most `maxBytes` in all, as `readBlobPart` reads them at offset 0. A blob the session does
|
|
234
|
+
* not hold is left out; one in the legacy one-row layout comes without its value.
|
|
235
|
+
*/
|
|
236
|
+
private readBlobFirstParts;
|
|
169
237
|
/**
|
|
170
238
|
* The bytes of a blob from `offset`, a multiple of {@link SESSION_BLOB_CHUNK_BYTES}, so a staged clone never holds
|
|
171
239
|
* the whole of a large one (#5594): the stored chunk row there, or for a blob in the legacy one-row layout (`chunks`
|
|
@@ -173,8 +241,14 @@ export declare class SqlSessionStore implements SessionStore {
|
|
|
173
241
|
* cut; with `legacyBytes` 0, only its header. Nothing is converted or written.
|
|
174
242
|
*/
|
|
175
243
|
private readBlobPart;
|
|
176
|
-
private copyForkBlob;
|
|
177
244
|
private createStreamedFork;
|
|
245
|
+
/**
|
|
246
|
+
* `readEntryChunk` for a fork's reader bound to transaction `tx`, reading session `source` in generation `epoch`: a
|
|
247
|
+
* read of an entry fetches a whole stored chunk row, or a part as large of an entry stored whole, and answers the next
|
|
248
|
+
* reads of it from that, so an entry costs a round trip a chunk, not one every 64 KiB (#6560). The fork holds the
|
|
249
|
+
* source's row, so its generation cannot change meanwhile. Other reads go to `reader` as before.
|
|
250
|
+
*/
|
|
251
|
+
private forkChunkReader;
|
|
178
252
|
/** Keep the legacy inline payload outside the iterator's yielded value and the caller's async frame:
|
|
179
253
|
* neither may retain this row while the next SQLite result is being delivered. */
|
|
180
254
|
private writeInlineForkSnapshot;
|
|
@@ -257,7 +331,19 @@ export declare class SqlSessionStore implements SessionStore {
|
|
|
257
331
|
private read;
|
|
258
332
|
private readRows;
|
|
259
333
|
private readSeqs;
|
|
334
|
+
/**
|
|
335
|
+
* The read of the session's row that `resumeSource` makes first: a read transaction that starts with it names it as
|
|
336
|
+
* a leading read, so a pipelined connection sends it with the transaction's start (#6560).
|
|
337
|
+
*/
|
|
338
|
+
private resumeRow;
|
|
260
339
|
private resumeSource;
|
|
340
|
+
/**
|
|
341
|
+
* Runs `read`, a read transaction that finds the session's index with `resumeSource`, at once; only when that index is
|
|
342
|
+
* missing or stale (`resumeSource` rejects with `SessionConflictError`) does it compute the index with
|
|
343
|
+
* `prepareResume` and run `read` again. A current index, the usual case, then costs no read before the transaction:
|
|
344
|
+
* on a server, one round trip fewer (#6560).
|
|
345
|
+
*/
|
|
346
|
+
private withResumeIndex;
|
|
261
347
|
private prepareResume;
|
|
262
348
|
readTail(sessionId: string, fromSeq: number): Promise<SessionTail>;
|
|
263
349
|
readRange(sessionId: string, startSeq: number, endSeq: number, expectedEpoch?: string): Promise<SessionEntryRange>;
|
|
@@ -351,6 +437,8 @@ export declare class SqlSessionStore implements SessionStore {
|
|
|
351
437
|
deferChildRecords: true;
|
|
352
438
|
}): Promise<SessionResume>;
|
|
353
439
|
private resumeWindow;
|
|
440
|
+
/** The resume of `index`, the session's index as of the snapshot of `tx`, with `header`. */
|
|
441
|
+
private resumeIn;
|
|
354
442
|
findLatestCompaction(sessionId: string, leafId?: string): Promise<SessionCompactionPoint | undefined>;
|
|
355
443
|
/** The JSON of a long entry, from its chunks, one statement each. */
|
|
356
444
|
private readEntryChunks;
|
|
@@ -358,16 +446,24 @@ export declare class SqlSessionStore implements SessionStore {
|
|
|
358
446
|
private entryChunks;
|
|
359
447
|
private readInlineEntryBytes;
|
|
360
448
|
private forWrite;
|
|
449
|
+
/** The read of the session's row that `forWrite` checks a write against. */
|
|
450
|
+
private headRead;
|
|
361
451
|
private appendedResume;
|
|
362
452
|
private seqOfEntry;
|
|
363
453
|
private saveSummary;
|
|
364
454
|
/** The statement that saves the session's row as `saveSummary` saves it, with what `saveSummary` returns. */
|
|
365
455
|
private summaryWrite;
|
|
366
456
|
private insertEntries;
|
|
457
|
+
/**
|
|
458
|
+
* A fork's version step, once every entry of the child is in, as the transaction's last write: the same row order as
|
|
459
|
+
* an append, which takes the snapshot index's progress rows with its entries inserts and the schema row after them,
|
|
460
|
+
* so the two never deadlock (#6560). The body makes no call after it.
|
|
461
|
+
*/
|
|
462
|
+
private finishFork;
|
|
367
463
|
/**
|
|
368
464
|
* The statements that store `entries` after `lastSeq`, in order, each entry encoded only when its statements are
|
|
369
|
-
* taken: each entry's row and its chunks, the version step a first chunked entry takes
|
|
370
|
-
* texts.
|
|
465
|
+
* taken: each entry's row and its chunks, the version step a first chunked entry takes unless `versionStep` is
|
|
466
|
+
* false (a fork takes it once its last entry is in), then the entries' search texts.
|
|
371
467
|
*/
|
|
372
468
|
private entryWrites;
|
|
373
469
|
/**
|
|
@@ -376,6 +472,7 @@ export declare class SqlSessionStore implements SessionStore {
|
|
|
376
472
|
* it once. A larger one runs its statements one at a time as they are made, as before, so it never holds more than
|
|
377
473
|
* about that much of them, or sends it, at once.
|
|
378
474
|
*/
|
|
475
|
+
/** Writes the session's row and its entries as the transaction's last calls: the body makes none after them. */
|
|
379
476
|
private writeEntries;
|
|
380
477
|
private encode;
|
|
381
478
|
}
|