@pgxsinkit/client 0.1.51 → 0.2.0
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/README.md +22 -0
- package/dist/adoption.d.ts +118 -0
- package/dist/adoption.d.ts.map +1 -0
- package/dist/boot-report.d.ts +54 -15
- package/dist/boot-report.d.ts.map +1 -1
- package/dist/convergence.d.ts +2 -1
- package/dist/convergence.d.ts.map +1 -1
- package/dist/error-chain.d.ts +9 -0
- package/dist/error-chain.d.ts.map +1 -0
- package/dist/export-dump.d.ts.map +1 -1
- package/dist/export-store.d.ts +1 -1
- package/dist/export-store.d.ts.map +1 -1
- package/dist/index.d.ts +309 -38
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4628 -1489
- package/dist/index.js.map +36 -24
- package/dist/live-rows-sql.d.ts +1 -1
- package/dist/local-store.d.ts +16 -31
- package/dist/local-store.d.ts.map +1 -1
- package/dist/local-tables.d.ts +10 -4
- package/dist/local-tables.d.ts.map +1 -1
- package/dist/mutation.d.ts +12 -15
- package/dist/mutation.d.ts.map +1 -1
- package/dist/opfs-effects.d.ts +51 -0
- package/dist/opfs-effects.d.ts.map +1 -0
- package/dist/placement-probe.d.ts +75 -0
- package/dist/placement-probe.d.ts.map +1 -0
- package/dist/schema.d.ts +11 -16
- package/dist/schema.d.ts.map +1 -1
- package/dist/store-boot.d.ts +77 -0
- package/dist/store-boot.d.ts.map +1 -0
- package/dist/store-lifecycle.d.ts +153 -0
- package/dist/store-lifecycle.d.ts.map +1 -0
- package/dist/store-meta.d.ts +190 -0
- package/dist/store-meta.d.ts.map +1 -0
- package/dist/store-path.d.ts +77 -7
- package/dist/store-path.d.ts.map +1 -1
- package/dist/sync/apply.d.ts +12 -1
- package/dist/sync/apply.d.ts.map +1 -1
- package/dist/sync/index.d.ts.map +1 -1
- package/dist/sync/shape-inbox.d.ts +1 -1
- package/dist/sync/types.d.ts +3 -3
- package/dist/testing.js.map +3 -3
- package/dist/worker/attach-sync-client.d.ts +239 -13
- package/dist/worker/attach-sync-client.d.ts.map +1 -1
- package/dist/worker/define-sync-worker.d.ts +162 -5
- package/dist/worker/define-sync-worker.d.ts.map +1 -1
- package/dist/worker/election-coordinator.d.ts +95 -0
- package/dist/worker/election-coordinator.d.ts.map +1 -0
- package/dist/worker/engine-control.d.ts +265 -0
- package/dist/worker/engine-control.d.ts.map +1 -0
- package/dist/worker/engine-router.d.ts +75 -0
- package/dist/worker/engine-router.d.ts.map +1 -0
- package/dist/worker/live-query-manager.d.ts.map +1 -1
- package/dist/worker/live-query-params-guard.d.ts +14 -0
- package/dist/worker/live-query-params-guard.d.ts.map +1 -0
- package/dist/worker/protocol.d.ts +32 -11
- package/dist/worker/protocol.d.ts.map +1 -1
- package/dist/worker/sw-placement.d.ts +37 -0
- package/dist/worker/sw-placement.d.ts.map +1 -0
- package/package.json +4 -3
- package/skills/core/SKILL.md +15 -8
- package/skills/operating/SKILL.md +114 -34
- package/src/adoption.ts +275 -0
- package/src/boot-report.ts +70 -17
- package/src/convergence.ts +2 -1
- package/src/error-chain.ts +26 -0
- package/src/export-dump.ts +5 -1
- package/src/export-store.ts +1 -1
- package/src/index.ts +1246 -118
- package/src/live-rows-sql.ts +1 -1
- package/src/local-store.ts +18 -40
- package/src/local-tables.ts +9 -2
- package/src/mutation.ts +67 -49
- package/src/mutations-api.ts +3 -3
- package/src/opfs-effects.ts +160 -0
- package/src/placement-probe.ts +168 -0
- package/src/schema.ts +17 -22
- package/src/store-boot.ts +343 -0
- package/src/store-lifecycle.ts +227 -0
- package/src/store-meta.ts +459 -0
- package/src/store-path.ts +197 -22
- package/src/sync/apply.ts +227 -89
- package/src/sync/index.ts +33 -9
- package/src/sync/shape-inbox.ts +1 -1
- package/src/sync/types.ts +3 -3
- package/src/testing.ts +2 -2
- package/src/worker/attach-sync-client.ts +1675 -117
- package/src/worker/define-sync-worker.ts +810 -50
- package/src/worker/election-coordinator.ts +462 -0
- package/src/worker/engine-control.ts +379 -0
- package/src/worker/engine-router.ts +355 -0
- package/src/worker/live-query-manager.ts +10 -1
- package/src/worker/live-query-params-guard.ts +57 -0
- package/src/worker/protocol.ts +41 -10
- package/src/worker/sw-placement.ts +64 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { type Results } from "@electric-sql/pglite";
|
|
1
|
+
import { type QueryOptions, type Results } from "@electric-sql/pglite";
|
|
2
2
|
import { type PGliteWithLive } from "@electric-sql/pglite/live";
|
|
3
3
|
import type { PgliteDatabase } from "drizzle-orm/pglite";
|
|
4
|
-
import type { MutationAck, MutationDiagnostics, MutationSummary, RegistryRelations, RegistryViews, SyncRuntimeStatus, SyncTableCreateInput, SyncTableName, SyncTableRegistry, SyncTableUpdateInput, WriteMode } from "@pgxsinkit/contracts";
|
|
4
|
+
import type { MutationAck, MutationDiagnostics, MutationSummary, RegistryRelations, RegistryViews, SyncRuntimeStatus, SyncTableCreateInput, SyncTableName, SyncTableRegistry, SyncTableUpdateInput, StorageDurability, WriteMode } from "@pgxsinkit/contracts";
|
|
5
|
+
import type { CreateOpfsRepackedPGliteOptions, OpfsRepackedPGlite } from "@pgxsinkit/pglite-opfs-repacked";
|
|
6
|
+
import { type AdoptionDeclaration, type AdoptionEffects, type AdoptionOutcome } from "./adoption";
|
|
5
7
|
import { type BootReport } from "./boot-report";
|
|
6
8
|
import { type ConvergenceTrigger } from "./convergence";
|
|
7
9
|
import { type DataExportOptions, type DataExportResult } from "./export-data";
|
|
@@ -10,7 +12,10 @@ import { type StoreExportOptions, type StoreExportResult } from "./export-store"
|
|
|
10
12
|
import { type LocalStoreVersionEvent } from "./local-store";
|
|
11
13
|
import { type MutationBatchItem, type MutationDetail, type MutationKind } from "./mutation";
|
|
12
14
|
import { type MutationsApi } from "./mutations-api";
|
|
15
|
+
import { type OpfsEffectsDeps } from "./opfs-effects";
|
|
13
16
|
import { generateLocalSchemaSql } from "./schema";
|
|
17
|
+
import { type ResolvedStorageBackend, type StoreBootResolution } from "./store-boot";
|
|
18
|
+
import { type StoreBootVerdict, type StoreMetaDeps } from "./store-meta";
|
|
14
19
|
import { type StorePathInput } from "./store-path";
|
|
15
20
|
import { type SyncEngine } from "./sync";
|
|
16
21
|
import { type LiveQueryDiagnostics } from "./worker/live-query-manager";
|
|
@@ -20,16 +25,21 @@ export type { BootReport } from "./boot-report";
|
|
|
20
25
|
export { type CloneDumpPhases, type CloneDumpResult, type DiagnosticExportDeps, type DiagnosticExportOptions, type DiagnosticExportResult, performDiagnosticExport, runThrowawayCloneDump, } from "./export-dump";
|
|
21
26
|
export { type DataExportDeps, DataExportDrainError, type DataExportOptions, type DataExportResult, DEFAULT_DRAIN_TIMEOUT_MS, type DrainJournalOption, type DrainJournalOptions, performDataExport, } from "./export-data";
|
|
22
27
|
export { type DataExportReport, deriveStoreId, type DiagnosticDumpReport, type ExportReport, type ExportReportCommon, performDatadirDump, performStoreExport, type StoreBackupReport, type StoreExportDeps, type StoreExportOptions, type StoreExportResult, } from "./export-store";
|
|
28
|
+
export { type AdoptionDeclaration, type AdoptionEffects, adoptionEligible, type AdoptionOutcome, runAdoptionTransition, runManualAdoption, } from "./adoption";
|
|
23
29
|
export { createLifecycleSlot, LifecycleBusyError, type LifecycleSlot } from "./lifecycle-slot";
|
|
30
|
+
export { type ElectedEngineWorker, ElectedEngineUnconstructibleError, StoreDestroyRefusedError, wrapEngineWorker, } from "./worker/attach-sync-client";
|
|
31
|
+
export { ENGINE_RELOCATED_CODE, EngineRelocatedError, type EngineRelocatedOutcome, type ExecutionLimitConfig, ExecutionLimitMismatchError, } from "./worker/engine-control";
|
|
32
|
+
export { createOpfsEffects, type OpfsEffects, type OpfsEffectsDeps } from "./opfs-effects";
|
|
33
|
+
export { resolveStoreBoot, type ResolvedStorageBackend, type ResolveStoreBootOptions, type StoreBootResolution, } from "./store-boot";
|
|
24
34
|
export { InvalidStorePathError, NonPersistentStoreError, resolveStoreDataDir, RestoreTargetExistsError, storeIndexedDbDatabaseName, storeTargetExists, } from "./store-path";
|
|
25
35
|
export { type ConvergenceClient, type ConvergenceDriver, type ConvergenceDriverOptions, type ConvergenceTrigger, createBrowserConvergenceTrigger, createConvergenceDriver, createIntervalConvergenceTrigger, } from "./convergence";
|
|
26
36
|
export { instrumentShapeFetch, setSyncDebugSink, syncDebug, timeAsync } from "./debug";
|
|
27
|
-
export { type AttachedSyncClient, attachSyncClient, type AttachSyncClientOptions, provisionSyncWorker, } from "./worker/attach-sync-client";
|
|
37
|
+
export { type AttachedSyncClient, attachSyncClient, type AttachSyncClientOptions, provisionSyncWorker, retireSyncWorkerHost, type RetireSyncWorkerHostOptions, } from "./worker/attach-sync-client";
|
|
28
38
|
export { defineSyncWorker, type DefineSyncWorkerOptions, type SyncWorkerHost } from "./worker/define-sync-worker";
|
|
29
39
|
export { computeLiveDiff, type LiveDiffState, LiveRowsMaterializer, rowKey, seedLiveDiffState, } from "./worker/live-diff";
|
|
30
40
|
export type { LiveQueryDiagnostics };
|
|
31
41
|
export { createWorkerTokenCache, type WorkerTokenCache } from "./worker/token-cache";
|
|
32
|
-
export { type AttachAckPayload, type AttachPayload, type AuthTokenSnapshot, BRIDGE_CHANNEL, BRIDGE_PROTOCOL_VERSION, type BridgeCodec, type BridgeEnvelope, type BridgeEvent, type BridgeMessageType, type BridgePort, encodeEnvelope, type ExportArtefactWire, identityCodec, isBridgeEnvelope, type LiveDiffPayload, type LiveInitialPayload, postBridgeMessage, type ProvisionAckPayload, type ProvisionPayload, type RpcOp, type RpcPayload, type RpcResultPayload, type SetOnlinePayload, type SubscribePayload, type TokenRequestPayload, type TokenResponsePayload, type WakePayload, } from "./worker/protocol";
|
|
42
|
+
export { type AttachAckPayload, type AttachPayload, type AuthTokenSnapshot, BRIDGE_CHANNEL, BRIDGE_PROTOCOL_VERSION, type BridgeCodec, type BridgeEnvelope, type BridgeEvent, type BridgeMessageType, type BridgePort, type BridgeTransferable, encodeEnvelope, type ExportArtefactWire, identityCodec, isBridgeEnvelope, type LiveDiffPayload, type LiveInitialPayload, postBridgeMessage, type ProvisionAckPayload, type ProvisionPayload, type RpcOp, type RpcPayload, type RpcResultPayload, type SetOnlinePayload, type SubscribePayload, type TokenRequestPayload, type TokenResponsePayload, type WakePayload, } from "./worker/protocol";
|
|
33
43
|
export { assertLazyRefsActivated, buildLazyGuardIndex, findReferencedLazyKeysInSql, findReferencedSyncedKeysInSql, type LazyGuardIndex, LazyRelationNotActivatedError, } from "./lazy-guard";
|
|
34
44
|
export { type AllMutationsView, getAllMutationsView, getJournalTable, getLocalMetaTable, getOverlayTable, getReadModelView, getSyncedLocalTable, getSyncStateView, type JournalTable, type LocalMetaTable, type OverlayTable, type ReadModelView, type SyncStateView, } from "./local-tables";
|
|
35
45
|
export { createMutationsApi, type MutationListOptions, type MutationListSubscription, type MutationsApi, type MutationsApiDeps, type MutationSummaryDetail, type MutationSummarySubscription, } from "./mutations-api";
|
|
@@ -75,6 +85,19 @@ export interface CreateClientPGliteOptions {
|
|
|
75
85
|
* asset load), so it never fails the create.
|
|
76
86
|
*/
|
|
77
87
|
bootAssets?: Promise<PgliteBootAssets>;
|
|
88
|
+
/**
|
|
89
|
+
* @internal Toolkit-internal durability carrier (ADR-0047), NOT a public per-open knob. Durability is
|
|
90
|
+
* registry-declared: {@link createSyncClient} resolves `storage.durability ?? "relaxed"` off its registry
|
|
91
|
+
* and threads the resolved mode in here — the ONE resolution point — for every mint it funnels through this
|
|
92
|
+
* factory (its own boot, the worker provision/spare mint, the pre-expose idb drain read). Defaults to
|
|
93
|
+
* `"relaxed"` when absent and is stamped onto the `boot pglite.create` rail (ADR-0047 D3). On idb, relaxed
|
|
94
|
+
* returns before the whole-datadir snapshot flush and schedules it asynchronously; strict keeps that
|
|
95
|
+
* synchronous snapshot (~100–200ms per statement). On OPFS-repacked the package factory keeps PGlite on its
|
|
96
|
+
* awaited host path: relaxed routine sync asserts health without an ordinary physical flush, while strict
|
|
97
|
+
* flushes arena data before metadata. Initialization, activation, and open-state close retain strict
|
|
98
|
+
* ordering in both OPFS modes.
|
|
99
|
+
*/
|
|
100
|
+
durability?: StorageDurability;
|
|
78
101
|
/**
|
|
79
102
|
* @internal Test-only storage-backend override (ADR-0036). `"memory"` resolves the store to a
|
|
80
103
|
* scheme-selected in-memory store — the sanctioned unit-test/ephemeral lane. Never a product
|
|
@@ -89,6 +112,27 @@ export interface CreateClientPGliteOptions {
|
|
|
89
112
|
* freshness check of its own. A corrupt/foreign tarball surfaces as a PGlite boot failure here.
|
|
90
113
|
*/
|
|
91
114
|
restoreFrom?: File | Blob;
|
|
115
|
+
/**
|
|
116
|
+
* @internal ADR-0049 (capability-driven engine placement) step 10a: the placement probe's result, threaded
|
|
117
|
+
* from the caller (the boot path resolves it via {@link resolveStoreBoot}). Default `false` keeps today's
|
|
118
|
+
* behavior BYTE-IDENTICAL — the store resolves to `idb://` / `file://` / `memory://` exactly as before.
|
|
119
|
+
* `true` resolves the browser store to `opfs://`, which routes to the opfs-repacked factory below.
|
|
120
|
+
*/
|
|
121
|
+
hasOpfsSyncAccess?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* @internal ADR-0049 step 10a: the opfs-repacked factory + store-directory seam, injectable so Bun unit
|
|
124
|
+
* tests exercise the `opfs://` branch WITHOUT loading real WASM/OPFS. In production both default to the real
|
|
125
|
+
* implementations (`createOpfsRepackedPGlite` via a lazy `import()`, and the OPFS effects' store directory
|
|
126
|
+
* handle). Never consumer-facing.
|
|
127
|
+
*/
|
|
128
|
+
pgliteFactories?: {
|
|
129
|
+
/** The opfs-repacked PGlite factory; defaults to a lazily-imported `createOpfsRepackedPGlite`. */
|
|
130
|
+
createOpfsRepacked?: (options: CreateOpfsRepackedPGliteOptions) => Promise<OpfsRepackedPGlite>;
|
|
131
|
+
/** The create-if-absent store directory handle for the factory; defaults to the real OPFS effects. */
|
|
132
|
+
getStoreDirectoryHandle?: () => Promise<unknown>;
|
|
133
|
+
/** Backoff between bounded open retries (ms); defaults to a small real delay. Tests pass `0`. */
|
|
134
|
+
retryDelayMs?: number;
|
|
135
|
+
};
|
|
92
136
|
}
|
|
93
137
|
/**
|
|
94
138
|
* Create the raw local PGlite store the sync client runs on — the SAME `PGlite.create` call
|
|
@@ -96,25 +140,189 @@ export interface CreateClientPGliteOptions {
|
|
|
96
140
|
* consumption, and the `boot pglite.create` rail stamp), extracted so exactly one implementation exists
|
|
97
141
|
* and a host can create the store EAGERLY on an earlier screen. Hand the returned (still-pending)
|
|
98
142
|
* instance to {@link CreateSyncClientOptions.precreatedPglite}: the client then owns schema exec, prepare
|
|
99
|
-
* hooks, journal recovery and
|
|
143
|
+
* hooks, journal recovery, and registry reconciliation, exactly as its own `storePath` path does.
|
|
100
144
|
*
|
|
101
|
-
* Takes a plain store path (ADR-0036), never a storage URL — the backend is DERIVED
|
|
102
|
-
* browser
|
|
145
|
+
* Takes a plain store path (ADR-0036), never a storage URL — the backend is DERIVED from the engine home
|
|
146
|
+
* (capability-selected opfs-repacked with IndexedDB fallback in a browser, or the filesystem on Bun/Node);
|
|
147
|
+
* a scheme-bearing path throws {@link InvalidStorePathError}.
|
|
103
148
|
* Also accepts the testing helper's output (`createClientPGlite(memoryStoreForTests("x"))`) so a test can
|
|
104
149
|
* mint a memory store without naming a backend.
|
|
105
150
|
*
|
|
106
151
|
* The instance is deliberately **schemaless** — the registry-derived local schema is role/registry
|
|
107
152
|
* dependent, so it is applied post-create by `createSyncClient`. The eager create buys only the expensive
|
|
108
|
-
* initdb (+
|
|
153
|
+
* initdb (+ persistent-store open), which is the dominant cold-boot cost once the WASM is pre-warmed.
|
|
109
154
|
*
|
|
110
155
|
* `bootAssets` is the pre-warmed WASM/fs bundle (see {@link CreateSyncClientOptions.pgliteBootAssets}); a
|
|
111
156
|
* rejected warm is caught to `undefined`, so PGlite falls back to loading its own assets — never a failure.
|
|
112
157
|
*/
|
|
113
158
|
export declare function createClientPGlite(store: StorePathInput, options?: CreateClientPGliteOptions): Promise<ClientPGlite>;
|
|
159
|
+
/**
|
|
160
|
+
* A store is being actively held by a live in-process client. The manual {@link adoptStore} API is a
|
|
161
|
+
* CREATION-PATH operation (like `restoreFrom`): it must be called INSTEAD of {@link createSyncClient}, never
|
|
162
|
+
* against a store an open client already owns — an idb→opfs migration under a live engine would strand the
|
|
163
|
+
* engine's writes. Detected via a module-level live-store registry (every {@link createSyncClient} that mints a
|
|
164
|
+
* client-owned store registers its path and unregisters on `stop()`/`destroy()`).
|
|
165
|
+
*/
|
|
166
|
+
export declare class StoreInUseError extends Error {
|
|
167
|
+
constructor(storePath: string);
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* @internal Injectable seams for the boot-time adoption decision (step 11b). Real defaults in production; unit
|
|
171
|
+
* tests inject fakes so the wiring is exercised without real IndexedDB/OPFS/WASM. Shared by the automatic boot
|
|
172
|
+
* path ({@link runBootAdoption}) and the manual {@link adoptStore} API.
|
|
173
|
+
*/
|
|
174
|
+
export interface AdoptionWiringSeams {
|
|
175
|
+
/** Non-creating recordless idb existence check (adoption only ever migrates an EXISTING idb store). */
|
|
176
|
+
idbStoreExists?: (storePath: string) => Promise<boolean>;
|
|
177
|
+
/** The boot classifier + executor (`store-boot.ts`) — its verdict drives {@link adoptionEligible}. */
|
|
178
|
+
resolveStoreBoot?: (storePath: string) => Promise<StoreBootResolution>;
|
|
179
|
+
/** The real {@link AdoptionEffects} factory; injected in tests with recording fakes. */
|
|
180
|
+
buildEffects?: (storePath: string) => AdoptionEffects;
|
|
181
|
+
/** Diagnostics sink; defaults to the boot debug rail. */
|
|
182
|
+
log?: (message: string, data?: Record<string, unknown>) => void;
|
|
183
|
+
/** The store-meta IndexedDB seam (defaults to `globalThis.indexedDB`). */
|
|
184
|
+
meta?: StoreMetaDeps;
|
|
185
|
+
/** The OPFS root seam (defaults to `navigator.storage.getDirectory`). */
|
|
186
|
+
opfs?: OpfsEffectsDeps;
|
|
187
|
+
/** The external PGlite create boundary; the real adoption transition and inner createSyncClient remain intact. */
|
|
188
|
+
createPglite?: typeof createClientPGlite;
|
|
189
|
+
/** The live-store guard the manual {@link adoptStore} consults (defaults to the module-level registry). */
|
|
190
|
+
isStoreLive?: (storePath: string) => boolean;
|
|
191
|
+
}
|
|
192
|
+
/** The bootstrap context an adoption transition's real effects need (registry + endpoints + auth + gate). */
|
|
193
|
+
interface AdoptionBootContext<TRegistry extends SyncTableRegistry> {
|
|
194
|
+
registry: TRegistry;
|
|
195
|
+
electricUrl: string;
|
|
196
|
+
batchWriteUrl: string;
|
|
197
|
+
getAuthToken?: () => Promise<string | undefined>;
|
|
198
|
+
requestHeaders?: Record<string, string>;
|
|
199
|
+
/** The effective app-level sync toggle — a `false` here fails the gate (adoption cannot reconstruct offline-by-config). */
|
|
200
|
+
syncEnabled: boolean;
|
|
201
|
+
/** Bounded wait for the eager Consistency groups' initial catch-up before the gate fails (offline/unauthorized). */
|
|
202
|
+
gateDeadlineMs?: number;
|
|
203
|
+
meta?: StoreMetaDeps;
|
|
204
|
+
opfs?: OpfsEffectsDeps;
|
|
205
|
+
createPglite?: typeof createClientPGlite;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* @internal The boot-time AUTOMATIC adoption decision (step 11b). Returns whether the subsequent client-owned
|
|
209
|
+
* mint should open the OPFS backend (`bootHasOpfs`) after any adoption transition ran. Adoption ONLY ever
|
|
210
|
+
* migrates an EXISTING idb store (a committed-opfs or virgin store has no idb predecessor), so a non-creating
|
|
211
|
+
* idb existence check gates the whole path; then the boot classifier's verdict drives {@link adoptionEligible}.
|
|
212
|
+
* On `adopted: true` the opfs successor is committed and the mint opens it; on any `adopted: false` (owed
|
|
213
|
+
* journal / gate unmet / barrier failed) the idb store stays authoritative and the mint opens idb.
|
|
214
|
+
*/
|
|
215
|
+
export declare function runBootAdoption<TRegistry extends SyncTableRegistry>(storePath: string, declaration: AdoptionDeclaration, ctx: AdoptionBootContext<TRegistry>, seamsOverride?: AdoptionWiringSeams): Promise<{
|
|
216
|
+
bootHasOpfs: boolean;
|
|
217
|
+
outcome?: AdoptionOutcome;
|
|
218
|
+
}>;
|
|
219
|
+
/**
|
|
220
|
+
* @internal Injectable seams for the FRESH/RESTORE commitment boot wiring (step 11c). Real defaults in
|
|
221
|
+
* production (`globalThis.indexedDB` / `navigator.storage`); unit tests inject fakes so the phase machine and
|
|
222
|
+
* the commitment barrier are exercised without real IndexedDB / OPFS / WASM. Mirrors {@link AdoptionWiringSeams}:
|
|
223
|
+
* the IO surfaces are faked, the barrier runs over the REAL `resolveStoreBoot` / `createOpfsEffects` /
|
|
224
|
+
* `writeStoreMetaRecord` so the record-before-directory ordering and the sentinel/phase writes are real.
|
|
225
|
+
*/
|
|
226
|
+
export interface FreshCommitmentSeams {
|
|
227
|
+
/** The boot classifier + executor (`store-boot.ts`); its verdict decides whether a candidate needs the barrier. */
|
|
228
|
+
resolveStoreBoot?: (storePath: string) => Promise<StoreBootResolution>;
|
|
229
|
+
/** Diagnostics sink; defaults to the boot debug rail. */
|
|
230
|
+
log?: (message: string, data?: Record<string, unknown>) => void;
|
|
231
|
+
/** The store-meta IndexedDB seam (defaults to `globalThis.indexedDB`). */
|
|
232
|
+
meta?: StoreMetaDeps;
|
|
233
|
+
/** The OPFS root seam (defaults to `navigator.storage.getDirectory`). */
|
|
234
|
+
opfs?: OpfsEffectsDeps;
|
|
235
|
+
/** The recordless non-creating idb existence check (defaults to store-meta's `idbStoreExists`). */
|
|
236
|
+
idbExists?: (storePath: string) => Promise<boolean>;
|
|
237
|
+
}
|
|
238
|
+
/** The PRE-MINT outcome of {@link resolveFreshBoot}: the resolved backend and whether the milestone owes a barrier. */
|
|
239
|
+
export interface FreshBootResolution {
|
|
240
|
+
/** Whether the client-owned mint should open the OPFS backend (a classification landing on idb flips this false). */
|
|
241
|
+
bootHasOpfs: boolean;
|
|
242
|
+
/** The resolved backend, for diagnostics (ADR-0049). */
|
|
243
|
+
storageBackend: ResolvedStorageBackend;
|
|
244
|
+
/** The executed boot verdict (absent on the short-circuited non-opfs path). */
|
|
245
|
+
verdict?: StoreBootVerdict;
|
|
246
|
+
/**
|
|
247
|
+
* Whether an UNCOMMITTED opfs candidate was stood up that the shared commitment barrier must promote at the
|
|
248
|
+
* local-init milestone ({@link runFreshCommitmentBarrier}) BEFORE exposure. True only for the two fresh
|
|
249
|
+
* candidate verdicts (`virgin-create` / `delete-candidate-and-rebuild`) landing on `opfs-repacked`; a
|
|
250
|
+
* committed store (`open-committed` / `repair-record-then-open-committed`) is already committed (no re-run).
|
|
251
|
+
*/
|
|
252
|
+
needsCommitmentBarrier: boolean;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* @internal ADR-0049 step 11c — Phase 1 (PRE-MINT). Route a client-owned OPFS-home boot through the boot phase
|
|
256
|
+
* machine ({@link resolveStoreBoot}) so: a virgin/restore boot stands up an UNCOMMITTED opfs candidate (record
|
|
257
|
+
* BEFORE directory, invariant 12); a committed store resolves `open-committed` (no barrier re-run); a recordless
|
|
258
|
+
* idb store (adoption not declared) downgrades to idb (invariant 14 — never a fresh opfs mint over an existing
|
|
259
|
+
* idb store's data); and an interrupted destruction/adoption/candidate is recovered by the classifier itself. Returns
|
|
260
|
+
* whether the mint opens opfs and whether the local-init milestone must run the commitment barrier. A `false`
|
|
261
|
+
* `hasOpfsSyncAccess` SHORT-CIRCUITS (an idbfs/file home opens directly — the opfs commitment phase machine never
|
|
262
|
+
* runs), which is also how this composes with 11b: a deferred/failed adoption flips the grant to `false`.
|
|
263
|
+
*/
|
|
264
|
+
export declare function resolveFreshBoot(storePath: string, hasOpfsSyncAccess: boolean, backendOverride: "memory" | undefined, seams?: FreshCommitmentSeams): Promise<FreshBootResolution>;
|
|
265
|
+
export declare function runFreshCommitmentBarrier(storePath: string, strictSyncReturns: () => Promise<void>, seams?: FreshCommitmentSeams): Promise<void>;
|
|
266
|
+
/**
|
|
267
|
+
* @internal ADR-0049 D6 — the VIRGIN-UNCREATABLE session idbfs fallback (plan step 13 gap; plan fault row "opfs
|
|
268
|
+
* uncreatable, virgin → Session idbfs fallback after bounded retries, record written"). The COUNTERPART to
|
|
269
|
+
* {@link runFreshCommitmentBarrier}: instead of committing a candidate that opened, this handles a candidate
|
|
270
|
+
* that could NOT open. When the client-owned opfs mint exhausts {@link openWithBoundedRetries} on a
|
|
271
|
+
* VIRGIN/candidate boot, tear the never-committed candidate down and re-mint on idbfs FOR THIS SESSION. Returns
|
|
272
|
+
* the verbatim open-failure reason (`Name: message`) the caller stamps via the step-13 `storageFallbackReason`
|
|
273
|
+
* seam.
|
|
274
|
+
*
|
|
275
|
+
* APPLIES ONLY to the positive-absence virgin/candidate path. {@link createSyncClient} gates this on
|
|
276
|
+
* `commitmentBarrierPending` (= {@link FreshBootResolution.needsCommitmentBarrier}), which is true ONLY for
|
|
277
|
+
* `virgin-create` / `delete-candidate-and-rebuild` landing on opfs — a boot that published NO sentinel and holds
|
|
278
|
+
* an unexposed candidate. A COMMITTED store (record `opfs-committed`, or a present sentinel reading committed →
|
|
279
|
+
* `open-committed` / `repair-record-then-open-committed`) owes NO barrier, so the gate is false and its open
|
|
280
|
+
* failure PROPAGATES HARD (CONTEXT § "Commitment marker": "once committed, any opfs boot failure is a hard
|
|
281
|
+
* failure"; accepted-risk register). This function is therefore never reached for a committed store.
|
|
282
|
+
*
|
|
283
|
+
* Teardown: delete-if-present the sentinel (a stale sentinel is impossible before the barrier, but symmetric
|
|
284
|
+
* with `delete-candidate-and-rebuild`) AND the candidate directory, then set the meta record to
|
|
285
|
+
* `idb-authoritative` — NOT delete it.
|
|
286
|
+
*
|
|
287
|
+
* STICKINESS (reconciling the plan's D6 "non-sticky, opfs retried next boot" verdict with the LATER phase
|
|
288
|
+
* machine): the record is the first-use authority, and an idb fallback store IS a recorded idb store (boot
|
|
289
|
+
* classification 7's caution / invariant 14 — the same as the no-handle virgin path, which already records
|
|
290
|
+
* `idb-authoritative`). So the next boot classifies `boot-idb-authoritative` (classification 5) and boots idb;
|
|
291
|
+
* it does NOT loop through virgin re-creation each boot. Retry-to-opfs is the DESIGNED non-destructive ADOPTION
|
|
292
|
+
* re-entry (a declared consumer re-adopts to opfs on a later drained boot) — the phase machine's intended,
|
|
293
|
+
* supervised re-entry — rather than a destructive per-boot re-probe. This keeps the fault row true ("record
|
|
294
|
+
* written") and the fault-row semantics honest for the composition actually shipped.
|
|
295
|
+
*/
|
|
296
|
+
export declare function fallbackVirginCandidateToIdb(storePath: string, openError: unknown, seams?: FreshCommitmentSeams): Promise<string>;
|
|
297
|
+
/** Options for the manual {@link adoptStore} API — the creation-path adoption trigger. */
|
|
298
|
+
export interface AdoptStoreOptions<TRegistry extends SyncTableRegistry> {
|
|
299
|
+
registry: TRegistry;
|
|
300
|
+
electricUrl: string;
|
|
301
|
+
batchWriteUrl: string;
|
|
302
|
+
/** The store to adopt (a plain path/name; the idb predecessor is migrated to a committed OPFS successor). */
|
|
303
|
+
storePath?: string;
|
|
304
|
+
getAuthToken?: () => Promise<string | undefined>;
|
|
305
|
+
requestHeaders?: Record<string, string>;
|
|
306
|
+
syncEnabled?: boolean;
|
|
307
|
+
/** Bounded wait (ms) for the eager Consistency groups' catch-up before the gate fails closed. */
|
|
308
|
+
gateDeadlineMs?: number;
|
|
309
|
+
/** @internal test seams (fake effects / idb existence / meta+opfs IO). */
|
|
310
|
+
seams?: AdoptionWiringSeams;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* The MANUAL adoption API (ADR-0049 D7, plan step 11b): migrate an EXISTING idb-authoritative store into a
|
|
314
|
+
* committed OPFS successor ON DEMAND, without the automatic {@link CreateSyncClientOptions.adoption} declaration
|
|
315
|
+
* — the consumer's explicit call IS the authorization (they were told to export/migrate any local-only data
|
|
316
|
+
* first). Like `restoreFrom` it is a CREATION-PATH operation: call it INSTEAD of {@link createSyncClient},
|
|
317
|
+
* before any client opens the store — it REFUSES with {@link StoreInUseError} while a live in-process client
|
|
318
|
+
* holds the store. The drain predicate still gates it (a store that owes the server work is not adoptable), and
|
|
319
|
+
* every failure recovery is identical to the automatic path (idb stays authoritative; nothing strands).
|
|
320
|
+
*/
|
|
321
|
+
export declare function adoptStore<const TRegistry extends SyncTableRegistry>(options: AdoptStoreOptions<TRegistry>): Promise<AdoptionOutcome>;
|
|
114
322
|
export interface CreateSyncClientOptions<TRegistry extends SyncTableRegistry> {
|
|
115
323
|
registry: TRegistry;
|
|
116
324
|
electricUrl: string;
|
|
117
|
-
|
|
325
|
+
batchWriteUrl: string;
|
|
118
326
|
getAuthToken?: () => Promise<string | undefined>;
|
|
119
327
|
/**
|
|
120
328
|
* Static headers added to **every** read-shape and write request, alongside the per-request
|
|
@@ -137,13 +345,36 @@ export interface CreateSyncClientOptions<TRegistry extends SyncTableRegistry> {
|
|
|
137
345
|
syncEnabled?: boolean;
|
|
138
346
|
/**
|
|
139
347
|
* The local store's name (ADR-0036) — a PLAIN path/name, never a PGlite storage URL. The storage backend
|
|
140
|
-
* is DERIVED from the
|
|
348
|
+
* is DERIVED from the engine home (capability-selected opfs-repacked with IndexedDB fallback in a browser,
|
|
349
|
+
* or the filesystem on Bun/Node); a
|
|
141
350
|
* scheme-bearing string (anything containing `://`) is rejected with {@link InvalidStorePathError}
|
|
142
351
|
* at boot. Defaults to a built-in overlay store name when omitted. A memory-backed store is not a product
|
|
143
352
|
* configuration — for the test/ephemeral lane, spread `memoryStoreForTests(...)` from
|
|
144
353
|
* `@pgxsinkit/client/testing` instead of naming one here.
|
|
145
354
|
*/
|
|
146
355
|
storePath?: string;
|
|
356
|
+
/**
|
|
357
|
+
* ADR-0049 D1: the placement probe's OPFS-sync-access grant, threaded from the SharedWorker's engine home
|
|
358
|
+
* (`defineSyncWorker`'s SW-direct bootstrap) into this boot so the client-owned create opens the OPFS-repacked
|
|
359
|
+
* backend. Absent/false is the honest IDBFS home — the declared `backend: "idbfs"` mode or a capability-absence
|
|
360
|
+
* fallback (a main thread can never hold handles either). Forwarded verbatim to {@link createClientPGlite}, which
|
|
361
|
+
* resolves the actual dataDir from it.
|
|
362
|
+
*/
|
|
363
|
+
hasOpfsSyncAccess?: boolean;
|
|
364
|
+
/**
|
|
365
|
+
* ADR-0049 (capability-driven engine placement) decision 7, plan step 11b: the consumer's explicit
|
|
366
|
+
* reconstructibility DECLARATION authorizing AUTOMATIC adoption of an existing idb-authoritative store into a
|
|
367
|
+
* committed OPFS successor. DEFAULT OFF (`undefined`) — hook absence is NEVER authority (`rawExec` writes
|
|
368
|
+
* documented local-only state on any store), so only this explicit `"server-reconstructible"` value (or the
|
|
369
|
+
* manual {@link adoptStore} API) authorizes deleting the idb predecessor. Honoured ONLY on the browser
|
|
370
|
+
* OPFS-home boot path (when {@link hasOpfsSyncAccess} is granted and the client owns the create — never the
|
|
371
|
+
* BYO-instance / restore paths): a boot that finds an idb-authoritative store runs the pre-expose drain check,
|
|
372
|
+
* reconstructs the successor through the Adoption-bootstrap gate (authorized online reconstruction — the eager
|
|
373
|
+
* Consistency groups' initial catch-up), commits it via the strict barrier, and only then deletes the idb
|
|
374
|
+
* predecessor. Any deferral/failure (owed journal, gate unmet, barrier failed) leaves the idb store
|
|
375
|
+
* authoritative and boots it normally.
|
|
376
|
+
*/
|
|
377
|
+
adoption?: AdoptionDeclaration;
|
|
147
378
|
/**
|
|
148
379
|
* Pre-warmed PGlite boot assets (the WASM modules + filesystem bundle), awaited and passed straight
|
|
149
380
|
* into `PGlite.create`. The intent is to hide PGlite's ~2.5s cold `boot pglite.create` cost —
|
|
@@ -157,17 +388,18 @@ export interface CreateSyncClientOptions<TRegistry extends SyncTableRegistry> {
|
|
|
157
388
|
pgliteBootAssets?: Promise<PgliteBootAssets>;
|
|
158
389
|
resetSubscriptionKeys?: string[];
|
|
159
390
|
prepareLocalDbBeforeSchema?: (pglite: ClientPGlite) => Promise<void>;
|
|
160
|
-
|
|
391
|
+
prepareLocalDbAfterSchema?: (pglite: ClientPGlite) => Promise<void>;
|
|
161
392
|
onStatusChange?: (status: SyncRuntimeStatus) => void;
|
|
162
393
|
onTableInitialSync?: (tableKey: string) => void;
|
|
163
394
|
/**
|
|
164
395
|
* A fully-provisioned PGlite instance the CALLER owns end-to-end. The client runs NONE of its
|
|
165
|
-
* post-create boot steps against it — no schema exec, prepare hooks, or
|
|
396
|
+
* post-create boot steps against it — no schema exec, prepare hooks, or registry reconciliation
|
|
166
397
|
* (journal recovery still runs, as it does on every path). Use it only when the caller has already
|
|
167
398
|
* applied the registry schema itself. Contrast the three PGlite-provenance seams:
|
|
168
399
|
* - {@link storePath} (default) — the client creates the store AND runs every post-create step.
|
|
169
400
|
* - {@link precreatedPglite} — the caller creates the raw store (via {@link createClientPGlite}), but
|
|
170
|
-
* the client still runs every post-create step (schema
|
|
401
|
+
* the client still runs every post-create step (schema, prepare hooks, and reconciliation), exactly as
|
|
402
|
+
* `storePath` does.
|
|
171
403
|
* - `pgliteInstance` — the caller creates AND provisions the store; the client runs none of them.
|
|
172
404
|
*
|
|
173
405
|
* A caller-owned instance is REFUSED with {@link NonPersistentStoreError} if it is provably
|
|
@@ -181,9 +413,10 @@ export interface CreateSyncClientOptions<TRegistry extends SyncTableRegistry> {
|
|
|
181
413
|
/**
|
|
182
414
|
* A raw PGlite instance the caller created EAGERLY (via {@link createClientPGlite}) — typically on an
|
|
183
415
|
* earlier screen, to hide the ~1.9s cold `initdb`/IDBFS open behind user think-time — but for which the
|
|
184
|
-
* client still owns EVERYTHING else: schema exec, prepare hooks, journal recovery, and
|
|
185
|
-
*
|
|
186
|
-
* {@link pgliteInstance} (which skips schema
|
|
416
|
+
* client still owns EVERYTHING else: schema exec, prepare hooks, journal recovery, and registry
|
|
417
|
+
* reconciliation all run exactly as on the {@link storePath} path. This is the difference from
|
|
418
|
+
* {@link pgliteInstance} (which skips schema, prepare hooks, and reconciliation because the caller owns
|
|
419
|
+
* them); see that
|
|
187
420
|
* option's JSDoc for the three-way distinction.
|
|
188
421
|
*
|
|
189
422
|
* The promise form lets the still-pending eager create be handed straight in. Precedence/validation:
|
|
@@ -206,15 +439,17 @@ export interface CreateSyncClientOptions<TRegistry extends SyncTableRegistry> {
|
|
|
206
439
|
* - **Fresh target only.** Refused with {@link RestoreTargetExistsError} if a store already exists at the
|
|
207
440
|
* resolved {@link storePath} — restore never overlays a live store (that would corrupt the datadir); the
|
|
208
441
|
* remedy is a deliberate {@link SyncClient.destroy} of the existing store first.
|
|
209
|
-
* - **
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
442
|
+
* - **Comes online iff the recovered journal is clean (ADR-0046).** If journal recovery found NOTHING to
|
|
443
|
+
* quarantine — an empty recovered journal, the guaranteed-clean server-built bootstrap-artifact case — the
|
|
444
|
+
* restore boots ONLINE, honouring {@link syncEnabled}/{@link autoSync} exactly as a normal boot (streams,
|
|
445
|
+
* flush, convergence). If recovered mutations were quarantined, the boot stays OFFLINE (no shape streams,
|
|
446
|
+
* no read fetch, no flush): the app inspects {@link SyncClient.diagnostics}, releases/discards the
|
|
447
|
+
* quarantined rows, then a subsequent NORMAL boot of the (now-persisted) store brings sync online.
|
|
448
|
+
* `loadDataDir` happens exactly once, on this restore boot. An explicit `syncEnabled: false` keeps it offline.
|
|
214
449
|
* - **Journal quarantined.** Every non-terminal recovered row (`pending`/`sending`/`failed`) is moved to
|
|
215
450
|
* `quarantined` — nothing recovered from a backup auto-flushes (the write path has no `mutationId` dedupe
|
|
216
451
|
* ledger, so replay is unsafe on last-write-wins tables). Release (`retryFailed`) or discard
|
|
217
|
-
* (`discardQuarantined`) them explicitly.
|
|
452
|
+
* (`discardQuarantined`) them explicitly. When this pass quarantines nothing, the restore comes online (above).
|
|
218
453
|
*
|
|
219
454
|
* Mutually exclusive with {@link pgliteInstance} AND {@link precreatedPglite} — restore owns the store's
|
|
220
455
|
* creation (`loadDataDir` is a create-time seed), so a caller-supplied instance conflicts (supplying either
|
|
@@ -225,8 +460,8 @@ export interface CreateSyncClientOptions<TRegistry extends SyncTableRegistry> {
|
|
|
225
460
|
* PROVABLY-fresh store hint (ADR-0032 S4 / backlog-0003): the caller guarantees this store is brand-new
|
|
226
461
|
* and schemaless — no prior schema, no synced rows, no persisted subscription state. When set (and sync
|
|
227
462
|
* is enabled, and the client owns schema exec — i.e. not the {@link pgliteInstance} path), the shape
|
|
228
|
-
* catch-up is started BEFORE the local boot phases (schema exec, journal recovery,
|
|
229
|
-
*
|
|
463
|
+
* catch-up is started BEFORE the local boot phases (schema exec, journal recovery, and registry
|
|
464
|
+
* reconciliation) and buffered in memory, with commits gated until those phases finish — so the network
|
|
230
465
|
* catch-up overlaps them instead of running strictly after. On a far-from-database caller this collapses
|
|
231
466
|
* boot from `local-phases + catch-up` toward `max(local-phases, catch-up)`.
|
|
232
467
|
*
|
|
@@ -262,10 +497,8 @@ export interface CreateSyncClientOptions<TRegistry extends SyncTableRegistry> {
|
|
|
262
497
|
*/
|
|
263
498
|
onReject?: (rejected: MutationDetail[]) => void | Promise<void>;
|
|
264
499
|
/**
|
|
265
|
-
* Invoked
|
|
266
|
-
*
|
|
267
|
-
* new shape; `deferred` = un-flushed/quarantined writes are still owed, so the rebuild is
|
|
268
|
-
* postponed (and retried on a later boot) rather than dropping owed data.
|
|
500
|
+
* Invoked when a supported store's registry fingerprint changes. `rebuilt` means the clean read cache was
|
|
501
|
+
* rebuilt at the new shape; `deferred` means local mutations are still owed and must drain first.
|
|
269
502
|
*/
|
|
270
503
|
onSchemaChange?: (event: LocalStoreVersionEvent) => void | Promise<void>;
|
|
271
504
|
/**
|
|
@@ -295,6 +528,22 @@ export interface CreateSyncClientOptions<TRegistry extends SyncTableRegistry> {
|
|
|
295
528
|
* absent → `"in-process"`. Not a behavior knob — it only labels the report.
|
|
296
529
|
*/
|
|
297
530
|
bootMode?: BootReport["mode"];
|
|
531
|
+
/**
|
|
532
|
+
* @internal Engine home stamped into the {@link BootReport} (ADR-0049 decision 12). Threaded by
|
|
533
|
+
* `defineSyncWorker` from the SharedWorker placement decision — `"shared-worker"` (SW-direct) or
|
|
534
|
+
* `"elected-worker"`. Absent only for a plain non-worker scope that cannot derive a browser engine home; the
|
|
535
|
+
* in-process client stamps `"in-process"` itself. Report-label only.
|
|
536
|
+
*/
|
|
537
|
+
engineHome?: BootReport["engineHome"];
|
|
538
|
+
/**
|
|
539
|
+
* @internal Capability-absence fallback reason stamped into the {@link BootReport} (ADR-0049 D1/D12). Threaded
|
|
540
|
+
* by `defineSyncWorker` when the placement bootstrap opened the in-SharedWorker IDBFS engine because OPFS was
|
|
541
|
+
* CAPABLE but no home could hold sync-access handles (every probe denied / the OPFS API absent). Unlike the
|
|
542
|
+
* client's own internal fallback reasons (adoption-deferred, recordless-idb — set only under a granted probe),
|
|
543
|
+
* this externally-supplied reason is stamped verbatim on an idbfs boot. Absent on a granted opfs boot and on the
|
|
544
|
+
* declared `backend: "idbfs"` mode (that is the data contract, not a fallback). Report-label only.
|
|
545
|
+
*/
|
|
546
|
+
storageFallbackReason?: string;
|
|
298
547
|
/**
|
|
299
548
|
* @internal Provision timing for a boot that ADOPTS a pre-provisioned store (ADR-0034). When the store was
|
|
300
549
|
* minted ahead of boot (a spare's off-thread initdb), the provisioner stamps its create cost and ready
|
|
@@ -419,7 +668,7 @@ export interface SubscribeLiveRowsInput {
|
|
|
419
668
|
* same-named columns even in a plain query. When supplied, the seam wraps the query so every output
|
|
420
669
|
* column gets its alias and rows come back KEYED BY THESE ALIASES; the consumer's row-mapper must read
|
|
421
670
|
* by alias (the `@pgxsinkit/react` hooks do). Omit for a raw or non-colliding query — the seam then
|
|
422
|
-
* leaves the SQL untouched and rows stay keyed by the underlying column names
|
|
671
|
+
* leaves the SQL untouched and rows stay keyed by the underlying column names.
|
|
423
672
|
*/
|
|
424
673
|
fields?: readonly string[];
|
|
425
674
|
/**
|
|
@@ -486,8 +735,8 @@ export interface SyncClient<TRegistry extends SyncTableRegistry> {
|
|
|
486
735
|
[TKey in SyncTableName<TRegistry>]: SyncClientTableHandle<TRegistry, TKey>;
|
|
487
736
|
};
|
|
488
737
|
/**
|
|
489
|
-
* Local-read readiness (ADR-0041): resolves once PGlite is open, the durable schema is
|
|
490
|
-
*
|
|
738
|
+
* Local-read readiness (ADR-0041): resolves once PGlite is open, the durable schema is ready, registry
|
|
739
|
+
* reconciliation has completed, and the drizzle read
|
|
491
740
|
* facade is built — so cached rows are queryable. Resolving this stage requires NO write runtime, NO sync
|
|
492
741
|
* start, and NO network I/O, so an offline boot resolves it promptly. Under the ADR-0041 Option B contract
|
|
493
742
|
* `createSyncClient()` (and, in stage 2, `attachSyncClient()`) resolves at exactly this stage; the write and
|
|
@@ -563,7 +812,7 @@ export interface SyncClient<TRegistry extends SyncTableRegistry> {
|
|
|
563
812
|
mutation: MutationDiagnostics;
|
|
564
813
|
}>;
|
|
565
814
|
/**
|
|
566
|
-
* The registry-wide reactive mutation-status surface
|
|
815
|
+
* The registry-wide reactive mutation-status surface: a global per-status summary and a
|
|
567
816
|
* filtered normalized detail list over EVERY writable journal, each available one-shot or as a live
|
|
568
817
|
* subscription. Identical on the in-process and worker-attached client. Render a global sync indicator with
|
|
569
818
|
* ONE `subscribeSummary` instead of one journal live query per writable table; consumers never touch the
|
|
@@ -581,6 +830,18 @@ export interface SyncClient<TRegistry extends SyncTableRegistry> {
|
|
|
581
830
|
rawQuery: (sql: string, params?: unknown[], options?: RawQueryOptions) => Promise<Results>;
|
|
582
831
|
/** {@link rawQuery} for multi-statement SQL, returning one {@link Results} per statement. */
|
|
583
832
|
rawExec: (sql: string, options?: RawQueryOptions) => Promise<Results[]>;
|
|
833
|
+
/**
|
|
834
|
+
* @internal The worker host's guarded one-shot read seam (ADR-0032 decision 4): {@link rawQuery} PLUS the
|
|
835
|
+
* ADR-0041 read gate and the ADR-0021 lazy-group guard, sharing one gate+guard core with the in-process
|
|
836
|
+
* `query`/`queryRaw` builder path so the two entry points can never drift on guard semantics.
|
|
837
|
+
* `defineSyncWorker` dispatches the `guardedQuery` RpcOp to this on its owned in-process client; the attach
|
|
838
|
+
* client's Drizzle-over-bridge compiles the SQL on the tab and routes the read here so the guard runs
|
|
839
|
+
* worker-side. Accepts the full PGlite {@link QueryOptions} (the worker re-applies drizzle's identity
|
|
840
|
+
* parsers here — temporal OIDs + numeric[]) plus the raw-fragment `use` list. NOT part of the app-facing
|
|
841
|
+
* read surface — reach for {@link query} / {@link queryRaw} instead; kept `@internal` (above) and excluded
|
|
842
|
+
* from the generated API docs (typedoc excludeInternal).
|
|
843
|
+
*/
|
|
844
|
+
guardedRawQuery: (sql: string, params?: unknown[], options?: QueryOptions, use?: readonly SyncTableName<TRegistry>[]) => Promise<Results>;
|
|
584
845
|
/**
|
|
585
846
|
* Run a one-shot (non-live) typed **pure-Drizzle** query with the lazy-relation safety net (ADR-0021).
|
|
586
847
|
* Pass the builder callback directly — pgxsinkit scans the compiled SQL and activates + awaits every
|
|
@@ -786,14 +1047,24 @@ export interface ReplInspectionSurface {
|
|
|
786
1047
|
export declare function replAdapter(client: Pick<SyncClient<SyncTableRegistry>, "rawQuery" | "rawExec">): ReplInspectionSurface;
|
|
787
1048
|
export declare function createSyncClient<const TRegistry extends SyncTableRegistry>(options: CreateSyncClientOptions<TRegistry>): Promise<SyncClient<TRegistry>>;
|
|
788
1049
|
/**
|
|
789
|
-
* The tab-side READ handles a worker-attached client exposes (ADR-0032 S2): a
|
|
790
|
-
* plus the registry views.
|
|
791
|
-
*
|
|
792
|
-
*
|
|
793
|
-
*
|
|
1050
|
+
* The tab-side READ handles a worker-attached client exposes (ADR-0032 S2/decision 4): a Drizzle instance
|
|
1051
|
+
* plus the registry views. `createSyncClient`'s SAME builders, so a query built on either client compiles
|
|
1052
|
+
* identically. The `client` argument is the executor Drizzle runs against:
|
|
1053
|
+
* - Omit it (the default `{}` stub) for a BUILD-ONLY instance — Drizzle only compiles to SQL (`.toSQL()`)
|
|
1054
|
+
* and the stub is never invoked; used where execution happens elsewhere (e.g. the live-rows bridge).
|
|
1055
|
+
* - Pass a `ClientPGlite`-shaped BRIDGE executor (its `query` routes to the worker's `guardedQuery` RPC) so
|
|
1056
|
+
* that awaiting a builder executes through the bridge and Drizzle's own result mapping (relational/nested
|
|
1057
|
+
* queries included) runs on the tab — the one-shot read path `attachSyncClient` wires (ADR-0032 decision 4).
|
|
794
1058
|
*/
|
|
795
|
-
export declare function buildRegistryReadHandles<TRegistry extends SyncTableRegistry>(registry: TRegistry): {
|
|
1059
|
+
export declare function buildRegistryReadHandles<TRegistry extends SyncTableRegistry>(registry: TRegistry, client?: ClientPGlite): {
|
|
796
1060
|
drizzle: PgliteDatabase<RegistryRelations<TRegistry>>;
|
|
797
1061
|
views: RegistryViews<TRegistry>;
|
|
1062
|
+
/**
|
|
1063
|
+
* A drizzle-database FACTORY over this registry's schema (ADR-0032 decision 4): `(client) => db`, reusing
|
|
1064
|
+
* the schema + relations computed ONCE here so a caller can cheaply build additional per-executor databases
|
|
1065
|
+
* without recomputing them. `attachSyncClient` uses it to give each `queryRaw`/`queryRawRow` its OWN
|
|
1066
|
+
* bridge executor carrying that call's `use` — a scoped db, never a shared mutable stash (no read races).
|
|
1067
|
+
*/
|
|
1068
|
+
drizzleFor: (client: ClientPGlite) => PgliteDatabase<RegistryRelations<TRegistry>>;
|
|
798
1069
|
};
|
|
799
1070
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIzD,OAAO,KAAK,EACV,WAAW,EACX,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EAEjB,aAAa,EAEb,iBAAiB,EACjB,oBAAoB,EAEpB,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,SAAS,EACV,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,KAAK,UAAU,EAAmD,MAAM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