@bastani/atomic 0.10.7 → 0.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/dist/_shared/dist-KOELCESV.js +2 -2
- package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
- package/dist/_shared/lib-4PES5P4V.js +2 -2
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +5 -5
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +5 -5
- package/dist/_shared/mode-shared-2QJSCUM6.js +5 -5
- package/dist/_shared/p1a-prewarm-UQY3X2UK.js +3 -3
- package/dist/_shared/runtime-O4KCSG4C.js +2 -2
- package/dist/_shared/{sdk-WQIOHVKO.js → sdk-OSBEPR3Q.js} +2875 -12
- package/dist/_shared/sdk-OSBEPR3Q.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +3 -3
- package/dist/_shared/startup-0-0-TYUFUOJZ.js +2 -2
- package/dist/_shared/startup-0-1-W2G2UY7R.js +163 -163
- package/dist/_shared/startup-0-1-W2G2UY7R.js.map +1 -1
- package/dist/_shared/{startup-0-2-SZGQIWHI.js → startup-0-2-UXBUEOXW.js} +4 -4
- package/dist/_shared/{startup-0-2-SZGQIWHI.js.map → startup-0-2-UXBUEOXW.js.map} +1 -1
- package/dist/_shared/startup-0-3-T4DVFYWX.js +3 -3
- package/dist/_shared/startup-0-4-HN5EB4K7.js +3 -3
- package/dist/_shared/{startup-0-5-OHJNE6JH.js → startup-0-5-FD2P735I.js} +5 -5
- package/dist/_shared/{startup-0-5-OHJNE6JH.js.map → startup-0-5-FD2P735I.js.map} +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
- package/dist/_shared/startup-12-0-55AAXBJZ.js +2 -2
- package/dist/_shared/startup-14-0-MLX36RBG.js +17 -4
- package/dist/_shared/startup-14-0-MLX36RBG.js.map +1 -1
- package/dist/_shared/startup-15-0-YUKGAC63.js +3 -3
- package/dist/_shared/startup-15-1-4S7FLMNG.js +5 -5
- package/dist/_shared/startup-8-0-34CBHPZH.js +3 -3
- package/dist/_shared/{startup-8-1-SJW2GMAM.js → startup-8-1-4KANEHRA.js} +6 -6
- package/dist/_shared/{startup-8-1-SJW2GMAM.js.map → startup-8-1-4KANEHRA.js.map} +1 -1
- package/dist/_shared/storage-command-7MGXLJGZ.js +3 -3
- package/dist/_shared/task-reference-stream-JWMUZSJX.js +1 -1
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/index.bundle.mjs +1 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/auth-cli.code.js +3 -3
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +2 -2
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +3 -3
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +1 -1
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +1 -1
- package/dist/cli/startup-ui.impl.js +3 -3
- package/dist/cli/startup-ui.js +3 -3
- package/dist/cli/storage-command.impl.js +3 -3
- package/dist/cli/storage-command.js +3 -3
- package/dist/cli/storage-search-session.code.js +2 -2
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +2 -2
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.code.js +1 -1
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +2 -2
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.code.js +1 -1
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/tool-renderer.impl.js +3 -3
- package/dist/core/export-html/tool-renderer.js +3 -3
- package/dist/core/extensions/jiti-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-loader.js +3 -3
- package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-static-loader.js +3 -3
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/extensions/loader-virtual-modules.js +1 -1
- package/dist/core/extensions/runner-context.js +1 -1
- package/dist/core/intercom-broker-control-host.code.js +1 -1
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +2 -2
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/model-registry.js +1 -1
- package/dist/core/package-manager-storage-adapters.code.js +1 -1
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/sdk.code.js +3 -3
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-claims.d.ts +30 -0
- package/dist/core/session-lifecycle-work.d.ts +74 -0
- package/dist/core/session-manager-core.js +4 -4
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.code.js +1 -1
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/node-sqlite-thread.js +2 -2
- package/dist/core/storage/node-sqlite.js +2 -2
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +2 -2
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +2 -2
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.code.js +1 -1
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +3 -3
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.code.js +1 -1
- package/dist/core/storage/session/fork-staging.impl.js +3 -3
- package/dist/core/storage/session/fork-staging.js +3 -3
- package/dist/core/storage/session/fork-window.code.js +2 -2
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +3 -3
- package/dist/core/storage/session/memory-session-store.impl.js +3 -3
- package/dist/core/storage/session/memory-session-store.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.code.js +2 -2
- package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.js +3 -3
- package/dist/core/storage/session/released-history-files.code.js +1 -1
- package/dist/core/storage/session/released-history-files.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.js +3 -3
- package/dist/core/storage/session/session-resume.impl.js +3 -3
- package/dist/core/storage/session/session-resume.js +3 -3
- package/dist/core/storage/session/session-search-index.d.ts +39 -0
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +2 -2
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-session-store.code.js +1 -1
- package/dist/core/storage/session/sql-session-store.d.ts +400 -0
- package/dist/core/storage/session/sql-session-store.impl.js +3 -3
- package/dist/core/storage/session/sql-session-store.js +3 -3
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.code.js +1 -1
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/session/yield-turn.d.ts +3 -0
- package/dist/core/storage/storage-status.code.js +1 -1
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.code.js +1 -1
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/storage/transfer-files.d.ts +74 -0
- package/dist/core/structured-output/index.code.js +1 -1
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.code.js +1 -1
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +2 -2
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +3 -3
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.code.js +1 -1
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/read-url.code.js +1 -1
- package/dist/core/tools/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/worktree-snapshot/blob-store.js +2 -2
- package/dist/core/worktree-snapshot/errors.code.js +1 -1
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.code.js +1 -1
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +1 -1
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +2 -2
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +11 -11
- package/dist/main-first-time-setup.code.js +1 -1
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/main.js +1 -1
- package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.code.js +1 -1
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/print-mode.js +1 -1
- package/dist/package-manager-cli.code.js +4 -4
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/10.js +1 -1
- package/dist/startup-stages/12.js +1 -1
- package/dist/startup-stages/8.js +1 -1
- package/dist/utils/startup-database-spare.code.js +1 -1
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/sdk/reference.md +85 -0
- package/docs/sdk.md +23 -1
- package/package.json +8 -8
- package/dist/_shared/fork-staging-maintenance-AIIUXOZQ.js +0 -19
- package/dist/_shared/fork-staging-maintenance-AIIUXOZQ.js.map +0 -1
- package/dist/_shared/sdk-WQIOHVKO.js.map +0 -1
- package/dist/_shared/sql-session-store-5FD3WBMZ.js +0 -2903
- package/dist/_shared/sql-session-store-5FD3WBMZ.js.map +0 -1
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
import type { SessionEntry } from "../../session-manager-types.ts";
|
|
2
|
+
import { SqlSnapshotBlobStore } from "../../worktree-snapshot/blob-store.ts";
|
|
3
|
+
import type { SqliteDatabase, SqliteExecutor } from "../database.js";
|
|
4
|
+
import { type StorageDialect } from "../dialect.js";
|
|
5
|
+
import { type SessionChatRecords } from "./chat-records.js";
|
|
6
|
+
import { SqlSessionSearchIndex } from "./session-search-index.js";
|
|
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
|
+
/**
|
|
9
|
+
* The newest sessions schema this build reads and writes. Version 2 stores long entries in chunks (#4954), which a build
|
|
10
|
+
* that knows only version 1 would read as stubs. A database stays at version 1, which older builds still open, until
|
|
11
|
+
* this build writes its first chunked entry: that transaction moves the sessions meta to 2, and older builds refuse it
|
|
12
|
+
* when next opened with `StorageSchemaVersionError`. Builds before 2 check only the meta row, on SQLite and Postgres alike.
|
|
13
|
+
*/
|
|
14
|
+
export declare const SESSION_SCHEMA_VERSION = 2;
|
|
15
|
+
/** The schema domain of the session tables in the prefix's migration ledger. */
|
|
16
|
+
export declare const SESSION_DOMAIN = "sessions";
|
|
17
|
+
/**
|
|
18
|
+
* 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
|
+
* so their bound and returned values stay within it: libSQL servers cap a row and a bound value (sqld's default is
|
|
20
|
+
* 5 MB) and a statement's response (10 MB), and the HTTP protocol carries a blob as base64 in JSON, about 1.4 MB for
|
|
21
|
+
* this size. A different size needs different table names, because a blob's rows are addressed by their index.
|
|
22
|
+
*/
|
|
23
|
+
export declare const SESSION_BLOB_CHUNK_BYTES: number;
|
|
24
|
+
/**
|
|
25
|
+
* The most bytes of an entry's JSON one row of the entries table holds. A longer entry is stored as a stub in its
|
|
26
|
+
* entries row, which keeps its `type`, `id` and `parentId` for the snapshot reference index, and its UTF-8 JSON in
|
|
27
|
+
* rows of at most this many bytes in the entry chunks table, written in the entry's transaction (#4954). Like
|
|
28
|
+
* {@link SESSION_BLOB_CHUNK_BYTES} it stays well under the smallest backend limit, sqld's 5,000,000 bytes per value
|
|
29
|
+
* and per row. Snapshot entries are never split: the reference index reads their whole JSON.
|
|
30
|
+
*/
|
|
31
|
+
export declare const SESSION_ENTRY_CHUNK_BYTES: number;
|
|
32
|
+
/**
|
|
33
|
+
* The most characters one read of entries or listing rows returns, by the stored text's `length()`. A character is at
|
|
34
|
+
* most four bytes of UTF-8 and a JSON escape at most doubles a character on a server's wire, so a page stays under
|
|
35
|
+
* sqld's 10 MB response limit; a single row longer than this is a page of its own (#4954).
|
|
36
|
+
*/
|
|
37
|
+
export declare const SESSION_READ_PAGE_CHARS: number;
|
|
38
|
+
/** Maximum entries folded per resume metadata query. */
|
|
39
|
+
export declare const SESSION_RESUME_REBUILD: {
|
|
40
|
+
readonly pageEntries: 512;
|
|
41
|
+
};
|
|
42
|
+
export declare const SESSION_TABLES: Readonly<{
|
|
43
|
+
meta: "meta";
|
|
44
|
+
sessions: "sessions";
|
|
45
|
+
entries: "entries";
|
|
46
|
+
searchTexts: "search_texts";
|
|
47
|
+
blobs: "blobs";
|
|
48
|
+
blobChunks: "blob_chunks";
|
|
49
|
+
entryChunks: "entry_chunks";
|
|
50
|
+
}>;
|
|
51
|
+
/** The schema domain, in the prefix's migration ledger, of the table of open sessions (#4971). */
|
|
52
|
+
export declare const SESSION_PRESENCE_DOMAIN = "session-presence";
|
|
53
|
+
export declare const SESSION_PRESENCE_TABLES: Readonly<{
|
|
54
|
+
open: "open";
|
|
55
|
+
}>;
|
|
56
|
+
/**
|
|
57
|
+
* The rows one statement of a paged read fetches, by key after the previous page, before it keeps those that fit in
|
|
58
|
+
* {@link SESSION_READ_PAGE_CHARS}: each statement reads a bounded batch rather than every remaining row, so a long
|
|
59
|
+
* session or listing is read in linear time. A full batch quadruples the next fetch. A clipped batch keeps its fetch
|
|
60
|
+
* size when its unreturned text is at most four pages; otherwise the next fetch is twice the returned rows.
|
|
61
|
+
*/
|
|
62
|
+
export declare const SESSION_READ_FETCH: {
|
|
63
|
+
readonly first: 1024;
|
|
64
|
+
readonly min: 1;
|
|
65
|
+
readonly max: 8192;
|
|
66
|
+
};
|
|
67
|
+
/** Rows whose search text is read per query; well under SQLite's bound-parameter limit. */
|
|
68
|
+
export declare const LISTING_FETCH_BATCH = 500;
|
|
69
|
+
export declare class SqlSessionStore implements SessionStore {
|
|
70
|
+
private readonly database;
|
|
71
|
+
private readonly dialect;
|
|
72
|
+
private readonly tables;
|
|
73
|
+
private readonly prefix;
|
|
74
|
+
private readonly legacyBlobData;
|
|
75
|
+
private closed;
|
|
76
|
+
private readonly cwdMatcher?;
|
|
77
|
+
readonly snapshotBlobs: SqlSnapshotBlobStore;
|
|
78
|
+
/** The blob table of this store's database, which appends check snapshot records against (#5077). */
|
|
79
|
+
private readonly blobTable;
|
|
80
|
+
/** Set by `open`, once the store exists (#4971). */
|
|
81
|
+
openMarkers: SqlSessionOpenMarkers;
|
|
82
|
+
readonly searchIndex?: SqlSessionSearchIndex;
|
|
83
|
+
private chatStore?;
|
|
84
|
+
/**
|
|
85
|
+
* Absent on a local libSQL file, which then behaves as before: @libsql/client waits for another process's write
|
|
86
|
+
* lock on the calling thread, even to begin a transaction, so a side write would stop the event loop where an
|
|
87
|
+
* ordinary turn-ending notice writes nothing (#5682).
|
|
88
|
+
*/
|
|
89
|
+
get chatRecords(): SessionChatRecords | undefined;
|
|
90
|
+
private readonly entryByteLength;
|
|
91
|
+
private chunkRowids?;
|
|
92
|
+
/** Session ids of each recently listed scope, valid while the store's change token is unchanged. */
|
|
93
|
+
private readonly scopes;
|
|
94
|
+
/** Listed summaries of sessions that still exist at the cached version; never more than the store holds. */
|
|
95
|
+
private readonly summaries;
|
|
96
|
+
/**
|
|
97
|
+
* Settles when the latest listing has read and updated the caches. Listings take turns, so one listing's
|
|
98
|
+
* pruning never drops summaries that another has fetched but not yet recorded under its scope.
|
|
99
|
+
*/
|
|
100
|
+
private listing;
|
|
101
|
+
private readonly resumeIndexes;
|
|
102
|
+
private readonly forkStagingTable;
|
|
103
|
+
/** The generation each recently read session's row held at a revision: see `generation`. */
|
|
104
|
+
private readonly generations;
|
|
105
|
+
private constructor();
|
|
106
|
+
/** Bind an existing transcript for the storage search command. No schema setup, markers or search index. */
|
|
107
|
+
static openTranscriptReader(database: SqliteDatabase & {
|
|
108
|
+
readonly readOnly: true;
|
|
109
|
+
}): Promise<SessionStore>;
|
|
110
|
+
static open(database: SqliteDatabase, options?: {
|
|
111
|
+
readonly prefix?: string;
|
|
112
|
+
readonly cwdMatcher?: SessionCwdMatcher;
|
|
113
|
+
}): Promise<SqlSessionStore>;
|
|
114
|
+
/**
|
|
115
|
+
* Removes, in a bounded number of short transactions, the staged rows of clones that stopped mid-copy and whose lease
|
|
116
|
+
* lapsed (#5594). Housekeeping: nothing reads those rows, so a failure leaves them to a later open or clone.
|
|
117
|
+
*/
|
|
118
|
+
private cleanupForkStaging;
|
|
119
|
+
/**
|
|
120
|
+
* What the open's setup would find, read without the write lock, when its schema steps would change nothing: every
|
|
121
|
+
* table and column of both domains exists and the sessions meta holds only versions this build supports. Undefined
|
|
122
|
+
* otherwise, and always on a database with versioned migrations, whose ledger the setup checks. Leftover entry
|
|
123
|
+
* chunks are not part of the schema: `orphaned` tells whether the query `orphans` finds any, for the open to remove
|
|
124
|
+
* them separately, and is false when it is not asked. The probes are read together, then the versions with that
|
|
125
|
+
* query, so a current schema waits for two answers.
|
|
126
|
+
*/
|
|
127
|
+
private static currentSchema;
|
|
128
|
+
/**
|
|
129
|
+
* A transaction that first checks the sessions schema version again: a newer build may have upgraded the database
|
|
130
|
+
* since this store opened it, and what it writes then is not this build's to read or write (#5065).
|
|
131
|
+
*/
|
|
132
|
+
private transaction;
|
|
133
|
+
/**
|
|
134
|
+
* `transaction` for a body that only reads and writes the database. The version check is sent first, as there, but on
|
|
135
|
+
* a connection thread the body's first reads go behind it without waiting for its answer: one wait for the thread
|
|
136
|
+
* fewer. The body awaits `checked` before its first write, so nothing is written unless the version is one this build
|
|
137
|
+
* reads (its answer came before the reads', so that costs no wait); a version this build does not support is the
|
|
138
|
+
* failure reported, whatever the body met.
|
|
139
|
+
*/
|
|
140
|
+
private transactionCheckedAlongside;
|
|
141
|
+
private assertReadableSchema;
|
|
142
|
+
get descriptor(): StorageDescriptor;
|
|
143
|
+
create(header: SessionRecordHeader, entries: readonly SessionEntry[]): Promise<SessionWriteResult>;
|
|
144
|
+
createFork(header: SessionRecordHeader, entries: SessionForkSeed, source: ForkArchiveSource): Promise<(SessionWriteResult & {
|
|
145
|
+
remainingBlobs?: readonly string[];
|
|
146
|
+
}) | undefined>;
|
|
147
|
+
/**
|
|
148
|
+
* Clone a complete session, as `create` with every source entry and blob would, from a store on a handle this one
|
|
149
|
+
* cannot prove to be its own connection (#5594). The source is read a page at a time into the staging table, never
|
|
150
|
+
* while a transaction of this store is open, and the child is published in one transaction: see `fork-staging.ts`.
|
|
151
|
+
* `remainingBlobs` names the blobs left to copy with `copySessionBlobs`: those the source no longer holds.
|
|
152
|
+
*/
|
|
153
|
+
createStagedFork(header: SessionRecordHeader, stream: SessionForkStream, source: ForkArchiveSource): Promise<SessionWriteResult & {
|
|
154
|
+
readonly remainingBlobs: readonly string[];
|
|
155
|
+
}>;
|
|
156
|
+
/**
|
|
157
|
+
* Creates the fork staging table unless it exists, as `atomic storage migrate` does as the owner role (#5594): a
|
|
158
|
+
* runtime role without DDL privileges then stages bounded clones too. Opens never create it.
|
|
159
|
+
*/
|
|
160
|
+
prepareForkStaging(): Promise<void>;
|
|
161
|
+
private forkStagingTarget;
|
|
162
|
+
/**
|
|
163
|
+
* The stored chunk row `index` of the entry `reference` names, whole, in its generation; undefined when the entry is
|
|
164
|
+
* stored whole. One read where `readEntryChunk` would take one per 64 KiB of it (#5594).
|
|
165
|
+
*/
|
|
166
|
+
private readStoredEntryChunk;
|
|
167
|
+
/** How many chunks the entry `reference` names is stored in, 0 when it is stored whole, in its generation. */
|
|
168
|
+
private readStoredChunks;
|
|
169
|
+
/**
|
|
170
|
+
* The bytes of a blob from `offset`, a multiple of {@link SESSION_BLOB_CHUNK_BYTES}, so a staged clone never holds
|
|
171
|
+
* the whole of a large one (#5594): the stored chunk row there, or for a blob in the legacy one-row layout (`chunks`
|
|
172
|
+
* -1), at most `legacyBytes` cut from its data column by the database, which loads that one value itself for each
|
|
173
|
+
* cut; with `legacyBytes` 0, only its header. Nothing is converted or written.
|
|
174
|
+
*/
|
|
175
|
+
private readBlobPart;
|
|
176
|
+
private copyForkBlob;
|
|
177
|
+
private createStreamedFork;
|
|
178
|
+
/** Keep the legacy inline payload outside the iterator's yielded value and the caller's async frame:
|
|
179
|
+
* neither may retain this row while the next SQLite result is being delivered. */
|
|
180
|
+
private writeInlineForkSnapshot;
|
|
181
|
+
append(sessionId: string, entries: readonly SessionEntry[], options: SessionWriteOptions): Promise<{
|
|
182
|
+
readonly lastSeq: number;
|
|
183
|
+
}>;
|
|
184
|
+
replace(sessionId: string, header: SessionRecordHeader, entries: readonly SessionEntry[], options: SessionWriteOptions): Promise<SessionWriteResult>;
|
|
185
|
+
updateHeader(header: SessionRecordHeader, options: SessionWriteOptions): Promise<SessionWriteResult>;
|
|
186
|
+
load(sessionId: string): Promise<SessionSnapshot>;
|
|
187
|
+
readEntryRange(sessionId: string, query: SessionEntriesQuery): Promise<SessionEntriesPage>;
|
|
188
|
+
readHeader(sessionId: string): Promise<SessionRecordHeader | undefined>;
|
|
189
|
+
delete(sessionId: string): Promise<void>;
|
|
190
|
+
/**
|
|
191
|
+
* Stores the blob as rows of at most {@link SESSION_BLOB_CHUNK_BYTES}, then publishes its header. Every statement
|
|
192
|
+
* commits by itself and writes only while the session exists, so no transaction stays open across round trips and
|
|
193
|
+
* `delete`, which removes a session's rows in one transaction, leaves none behind. A blob is readable only once its
|
|
194
|
+
* header is there, so a writer that stops part way leaves rows of its own session that `delete` removes, and storing
|
|
195
|
+
* the same bytes again completes or skips them. Bytes a session already holds are not sent again.
|
|
196
|
+
*/
|
|
197
|
+
putBlob(sessionId: string, data: Uint8Array): Promise<SessionBlob>;
|
|
198
|
+
/**
|
|
199
|
+
* Reads chunked blobs a row at a time, each returning at most {@link SESSION_BLOB_CHUNK_BYTES}. Legacy blobs
|
|
200
|
+
* are read in one query: slicing their data column repeatedly would reread the entire BLOB for every chunk.
|
|
201
|
+
* Rows never change once written. A session deleted meanwhile holds nothing; missing bytes are `blob-incomplete`.
|
|
202
|
+
*/
|
|
203
|
+
getBlob(sessionId: string, hash: string): Promise<Uint8Array | undefined>;
|
|
204
|
+
private blobHeader;
|
|
205
|
+
/**
|
|
206
|
+
* Lists from a per-scope cache revalidated on every call. A cheap change token, which moves on any commit
|
|
207
|
+
* from this or another connection, decides whether the scope is re-read. A scope listed for the first time
|
|
208
|
+
* is read exactly as an uncached listing; afterwards only its light columns are re-read and search text is
|
|
209
|
+
* read only for sessions whose stored listing columns changed. Listings of the same store take turns
|
|
210
|
+
* reading and updating the caches; the yielding below runs outside that turn.
|
|
211
|
+
*/
|
|
212
|
+
list(query: SessionListQuery): AsyncIterable<SessionSummary>;
|
|
213
|
+
/** Revalidates one scope's cache and resolves its summaries; called for one listing at a time. */
|
|
214
|
+
private listScope;
|
|
215
|
+
findMostRecent(query: {
|
|
216
|
+
readonly cwd: string;
|
|
217
|
+
readonly includeInternal?: boolean;
|
|
218
|
+
}): Promise<SessionSummary | undefined>;
|
|
219
|
+
close(): Promise<void>;
|
|
220
|
+
/**
|
|
221
|
+
* `data_version` moves when another connection commits and `total_changes()` when this one writes, so
|
|
222
|
+
* together they cover writers in every process, but only on one connection: Atomic's own SQLite adapter serves
|
|
223
|
+
* every statement from one. Over an adapter that may not, such as a libSQL server whose every HTTP request is a
|
|
224
|
+
* new stream, neither moves, and no column of the sessions table changes on every write by every version, so
|
|
225
|
+
* there is no token and each listing revalidates its scope (#4805).
|
|
226
|
+
*/
|
|
227
|
+
private changeToken;
|
|
228
|
+
private listWithoutSearchText;
|
|
229
|
+
private distinctCwds;
|
|
230
|
+
/** The most sessions one statement of a paced listing scans: fewer when the statement holds the event loop. */
|
|
231
|
+
private listingScanRows;
|
|
232
|
+
private scopeOf;
|
|
233
|
+
/** The scope's session ids in store order, with a current summary cached for each. */
|
|
234
|
+
private readScope;
|
|
235
|
+
/**
|
|
236
|
+
* The listing rows `where` selects, without search text, in store order, a page per statement: each fetches the next
|
|
237
|
+
* {@link SESSION_READ_FETCH} rows by key and returns those whose cumulative text fits in
|
|
238
|
+
* {@link SESSION_READ_PAGE_CHARS}, the first always, so that no response passes a libSQL server's limit however many
|
|
239
|
+
* sessions there are (#4954) and no statement reads more than its batch.
|
|
240
|
+
*/
|
|
241
|
+
private readListingRows;
|
|
242
|
+
/**
|
|
243
|
+
* Reads full listing rows, search text included, and caches their summaries, a page per statement as
|
|
244
|
+
* {@link readListingRows} reads, search text counted. A session whose search text alone is longer than a page has
|
|
245
|
+
* it read in pages of its own and joined here rather than by the database, whose string limit it may pass (#4954).
|
|
246
|
+
*/
|
|
247
|
+
private readSummaries;
|
|
248
|
+
/** A session's search texts as one JSON array, read in pages of at most {@link SESSION_READ_PAGE_CHARS}. */
|
|
249
|
+
private readSearchTexts;
|
|
250
|
+
/**
|
|
251
|
+
* Keeps only summaries some cached scope still lists, so memory follows the live sessions. Runs in a
|
|
252
|
+
* listing's turn after it records its scope, when no other listing holds summaries it has not recorded.
|
|
253
|
+
*/
|
|
254
|
+
private pruneSummaries;
|
|
255
|
+
private assertOpen;
|
|
256
|
+
private assertListing;
|
|
257
|
+
private read;
|
|
258
|
+
private readRows;
|
|
259
|
+
private readSeqs;
|
|
260
|
+
private resumeSource;
|
|
261
|
+
private prepareResume;
|
|
262
|
+
readTail(sessionId: string, fromSeq: number): Promise<SessionTail>;
|
|
263
|
+
readRange(sessionId: string, startSeq: number, endSeq: number, expectedEpoch?: string): Promise<SessionEntryRange>;
|
|
264
|
+
private historyHead;
|
|
265
|
+
/** Size at most one page and return only fitting bodies, in the same snapshot as the header. The first
|
|
266
|
+
* oversized row is a chunk reference; its full inline value never crosses the driver boundary. */
|
|
267
|
+
private historyPacket;
|
|
268
|
+
readChildDisplayCut(sessionId: string, launch: ChildDisplayLaunch): Promise<import("./types.js").ChildDisplayCut>;
|
|
269
|
+
/**
|
|
270
|
+
* A column expression of a sessions row's generation, `COALESCE(epoch, resume.epoch, revision)` of its summary state,
|
|
271
|
+
* that parses that state only when the row's revision or watermark is not the one this store last saw it at: every
|
|
272
|
+
* write gives the row a new revision, so the generation it held then still stands. A long session's summary state is
|
|
273
|
+
* hundreds of kilobytes, which a server would otherwise parse for every page and chunk an export reads (#5571).
|
|
274
|
+
*/
|
|
275
|
+
private generation;
|
|
276
|
+
private noteGeneration;
|
|
277
|
+
readBranchSpan(sessionId: string, cut: SessionBranchPageCut): Promise<import("./types.js").SessionBranchSpan | undefined>;
|
|
278
|
+
/** Send only tree headings over the database connection. A chunk stub has no message role or
|
|
279
|
+
* timestamp; its caller streams those fields instead of joining or decoding the stored body. */
|
|
280
|
+
readTreeOutline(sessionId: string, fromSeq: number, toSeq: number, epoch?: string): Promise<readonly (SessionTreeOutlineEntry | {
|
|
281
|
+
seq: number;
|
|
282
|
+
streamed: true;
|
|
283
|
+
})[]>;
|
|
284
|
+
/** Sparse page of child state in one fenced read, bounded by the same byte and row caps as a transcript page. */
|
|
285
|
+
readSelectedPage(sessionId: string, seqs: readonly number[], epoch: string, options?: {
|
|
286
|
+
readonly limit?: number;
|
|
287
|
+
readonly backward?: boolean;
|
|
288
|
+
}): Promise<{
|
|
289
|
+
items: {
|
|
290
|
+
readonly seq: number;
|
|
291
|
+
readonly bytes: number;
|
|
292
|
+
readonly kind: "oversized";
|
|
293
|
+
readonly sessionId: string;
|
|
294
|
+
readonly epoch: string;
|
|
295
|
+
}[];
|
|
296
|
+
} | {
|
|
297
|
+
items: SessionStoredEntry[];
|
|
298
|
+
}>;
|
|
299
|
+
/**
|
|
300
|
+
* The snapshot entries of the session's resume index, read with the index and nothing else: no entry is read, and an
|
|
301
|
+
* index that does not cover the session as it stands is not rebuilt here (#5554).
|
|
302
|
+
*/
|
|
303
|
+
readSnapshotCut(sessionId: string, options?: {
|
|
304
|
+
readonly leafSeq?: number;
|
|
305
|
+
}): Promise<SessionSnapshotCut | undefined>;
|
|
306
|
+
readEntrySizes(sessionId: string, startSeq: number, endSeq: number, limit?: number): Promise<SessionEntrySizes>;
|
|
307
|
+
/**
|
|
308
|
+
* One statement, so one snapshot without a transaction: the session row (its generation, watermark and schema version)
|
|
309
|
+
* sorts first as sequence 0, then the page's entries with their sizes. The page ends at the last of up to `limit`
|
|
310
|
+
* entries whose running size fits a page, or is the first entry alone, whose JSON is left out when it is larger. Each
|
|
311
|
+
* page of a scan is then one round trip to a database server (#5571). With `select`, only the entries `selected` keeps
|
|
312
|
+
* are sized and read; the session row then also says how many were sized and the last of them, so the page knows how
|
|
313
|
+
* far it accounts for the range.
|
|
314
|
+
*/
|
|
315
|
+
readScanPage(sessionId: string, startSeq: number, endSeq: number, epoch: string | undefined, limit: number, options?: SessionScanOptions): Promise<SessionScanPage>;
|
|
316
|
+
/**
|
|
317
|
+
* A condition on an entries row that holds for every entry `select` selects (and more): an entry larger than a page;
|
|
318
|
+
* on SQLite and libSQL, a message whose stored type and role say it is a tool result, or an assistant message with a
|
|
319
|
+
* tool call named other than `exceptCalls`, and any row that is not valid JSON; on Postgres, which would parse each
|
|
320
|
+
* row's JSON to read those, any row whose JSON holds a tool call block's `"toolCall"` or a result's `"toolResult"`,
|
|
321
|
+
* which `JSON.stringify`, the only writer of a row, always writes as such (it never escapes a letter).
|
|
322
|
+
*/
|
|
323
|
+
private selected;
|
|
324
|
+
private selectedParams;
|
|
325
|
+
/**
|
|
326
|
+
* One statement, so one snapshot without a transaction: the session row's generation, watermark and schema version
|
|
327
|
+
* with the bytes, from the entry's own JSON or from the one stored chunk that holds `offset`.
|
|
328
|
+
*/
|
|
329
|
+
readEntryChunk(reference: OversizedSessionEntry, offset: number, bytes?: number): Promise<Uint8Array>;
|
|
330
|
+
findEntrySeq(sessionId: string, entryId: string): Promise<number | undefined>;
|
|
331
|
+
/**
|
|
332
|
+
* Earlier entries that may save the same task reference as each candidate (#5593), in one statement on the session
|
|
333
|
+
* links' entry-ID index: the statement reads each candidate's ID at its sequence itself, so no entry ID is bound or
|
|
334
|
+
* returned, and no entry body is read. `undefined` while that index is still being built.
|
|
335
|
+
*/
|
|
336
|
+
findTaskReferenceDuplicateCandidates(sessionId: string, query: SessionTaskReferenceDuplicateQuery): Promise<SessionTaskReferenceDuplicatePage | undefined>;
|
|
337
|
+
readForkWindow(sessionId: string, entryId: string, options?: {
|
|
338
|
+
readonly archivedReceipts: true;
|
|
339
|
+
}): Promise<import("./types.js").SessionForkWindow | undefined>;
|
|
340
|
+
private forkEntryChunks;
|
|
341
|
+
readChildCatalogCut(sessionId: string): Promise<{
|
|
342
|
+
epoch: string;
|
|
343
|
+
lastSeq: number;
|
|
344
|
+
aliases: Readonly<Record<string, import("./types.js").SessionChildAliases>>;
|
|
345
|
+
seqs: number[];
|
|
346
|
+
}>;
|
|
347
|
+
readResumeAt(sessionId: string, leafId: string, throughSeq: number, options?: {
|
|
348
|
+
deferChildRecords: true;
|
|
349
|
+
}): Promise<SessionResume>;
|
|
350
|
+
readResume(sessionId: string, leafId?: string, options?: {
|
|
351
|
+
deferChildRecords: true;
|
|
352
|
+
}): Promise<SessionResume>;
|
|
353
|
+
private resumeWindow;
|
|
354
|
+
findLatestCompaction(sessionId: string, leafId?: string): Promise<SessionCompactionPoint | undefined>;
|
|
355
|
+
/** The JSON of a long entry, from its chunks, one statement each. */
|
|
356
|
+
private readEntryChunks;
|
|
357
|
+
private readRawEntryChunks;
|
|
358
|
+
private entryChunks;
|
|
359
|
+
private readInlineEntryBytes;
|
|
360
|
+
private forWrite;
|
|
361
|
+
private appendedResume;
|
|
362
|
+
private seqOfEntry;
|
|
363
|
+
private saveSummary;
|
|
364
|
+
/** The statement that saves the session's row as `saveSummary` saves it, with what `saveSummary` returns. */
|
|
365
|
+
private summaryWrite;
|
|
366
|
+
private insertEntries;
|
|
367
|
+
/**
|
|
368
|
+
* 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, then the entries' search
|
|
370
|
+
* texts.
|
|
371
|
+
*/
|
|
372
|
+
private entryWrites;
|
|
373
|
+
/**
|
|
374
|
+
* Runs the session row's statement, then `entries`' statements, in order. A write of up to
|
|
375
|
+
* {@link STATEMENT_BATCH_BYTES}, as an ordinary message is, goes to a connection thread as one batch that waits for
|
|
376
|
+
* 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
|
+
* about that much of them, or sends it, at once.
|
|
378
|
+
*/
|
|
379
|
+
private writeEntries;
|
|
380
|
+
private encode;
|
|
381
|
+
}
|
|
382
|
+
/** The running sessions that have a SQL store's sessions open, in a table every host sharing the store reads (#4971). */
|
|
383
|
+
declare class SqlSessionOpenMarkers implements SessionOpenMarkerStore {
|
|
384
|
+
static createTable(tx: SqliteExecutor, dialect: StorageDialect, table: string): Promise<void>;
|
|
385
|
+
/**
|
|
386
|
+
* Each marker records the sessions schema version its process reads, so a build that upgrades the schema can tell
|
|
387
|
+
* that a process which would misread the upgraded schema still has a session open (#5065). Null for markers of
|
|
388
|
+
* builds before it. Additive, as every step of this domain must be.
|
|
389
|
+
*/
|
|
390
|
+
static addSchemaVersion(tx: SqliteExecutor, dialect: StorageDialect, table: string): Promise<void>;
|
|
391
|
+
private readonly database;
|
|
392
|
+
private readonly table;
|
|
393
|
+
private readonly assertOpen;
|
|
394
|
+
constructor(database: SqliteDatabase, table: string, assertOpen: () => void);
|
|
395
|
+
put(sessionId: string, marker: SessionOpenMarker): Promise<void>;
|
|
396
|
+
remove(sessionId: string, token: string): Promise<void>;
|
|
397
|
+
list(sessionId: string): Promise<readonly SessionOpenMarkerAge[]>;
|
|
398
|
+
}
|
|
399
|
+
export {};
|
|
400
|
+
//# sourceMappingURL=sql-session-store.d.ts.map
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../../../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.8`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.8") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8 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.8`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.8") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8 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.8`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.8") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8 while this session was running; restart it to keep using /tree.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../../../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.8`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.8") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8 while this session was running; restart it to keep using /tree.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
import { read, readValue, skip, stringValue } from "../../../_shared/startup-0-5-
|
|
2
|
+
import { read, readValue, skip, stringValue } from "../../../_shared/startup-0-5-FD2P735I.js";
|
|
3
3
|
// dist/core/storage/session/tree-presentation.js
|
|
4
4
|
var FoldMatches = class FoldMatches {
|
|
5
5
|
tail = "";
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../../../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.8`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.8") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8 while this session was running; restart it to keep using /tree.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../../../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.8`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.8") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8 while this session was running; restart it to keep using /tree.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
export { STORAGE_ADAPTER_LOAD_TIMEOUT_MS, STORAGE_PROBE_TIMEOUT_MS, TEAM_PROFILE_SOURCE, checkSharedStorageAdapter, collectStorageStatus, describeStorageError, describeStorageSelection, effectiveSharedSelection, projectTrust, selectIntercomStorage, selectSharedStorage } from "../../_shared/startup-8-1-
|
|
2
|
+
export { STORAGE_ADAPTER_LOAD_TIMEOUT_MS, STORAGE_PROBE_TIMEOUT_MS, TEAM_PROFILE_SOURCE, checkSharedStorageAdapter, collectStorageStatus, describeStorageError, describeStorageSelection, effectiveSharedSelection, projectTrust, selectIntercomStorage, selectSharedStorage } from "../../_shared/startup-8-1-4KANEHRA.js";
|
|
3
3
|
//# sourceMappingURL=storage-status.code.js.map
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.8`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.8") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8 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.8`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.8") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8 while this session was running; restart it to keep using session storage.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
export { TEAM_CONNECTION_TIMEOUT_MS, assertTeamAdapterInstalled, joinSharedDatabase, joinTeam, joinTeamWith, leaveTeam, leaveTeamWith, selectTeamProfile, storageFingerprint } from "../../_shared/startup-8-1-
|
|
2
|
+
export { TEAM_CONNECTION_TIMEOUT_MS, assertTeamAdapterInstalled, joinSharedDatabase, joinTeam, joinTeamWith, leaveTeam, leaveTeamWith, selectTeamProfile, storageFingerprint } from "../../_shared/startup-8-1-4KANEHRA.js";
|
|
3
3
|
//# sourceMappingURL=team.code.js.map
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.8`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.8") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8 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.8`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.8") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.8 while this session was running; restart it to keep using session storage.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|