@pgxsinkit/client 0.1.36 → 0.1.40

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.
Files changed (64) hide show
  1. package/dist/boot-report.d.ts +134 -0
  2. package/dist/boot-report.d.ts.map +1 -0
  3. package/dist/export-data.d.ts +100 -0
  4. package/dist/export-data.d.ts.map +1 -0
  5. package/dist/export-dump.d.ts +92 -0
  6. package/dist/export-dump.d.ts.map +1 -0
  7. package/dist/export-store.d.ts +214 -0
  8. package/dist/export-store.d.ts.map +1 -0
  9. package/dist/index.d.ts +206 -13
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +886 -69
  12. package/dist/index.js.map +21 -14
  13. package/dist/lazy-guard.d.ts +4 -3
  14. package/dist/lazy-guard.d.ts.map +1 -1
  15. package/dist/lifecycle-slot.d.ts +31 -0
  16. package/dist/lifecycle-slot.d.ts.map +1 -0
  17. package/dist/live-rows-sql.d.ts +21 -0
  18. package/dist/live-rows-sql.d.ts.map +1 -0
  19. package/dist/mutation-state.d.ts +9 -2
  20. package/dist/mutation-state.d.ts.map +1 -1
  21. package/dist/mutation.d.ts +12 -0
  22. package/dist/mutation.d.ts.map +1 -1
  23. package/dist/schema.d.ts +33 -0
  24. package/dist/schema.d.ts.map +1 -1
  25. package/dist/shape-sync.d.ts +10 -0
  26. package/dist/shape-sync.d.ts.map +1 -1
  27. package/dist/store-path.d.ts +132 -0
  28. package/dist/store-path.d.ts.map +1 -0
  29. package/dist/sync/index.d.ts +1 -1
  30. package/dist/sync/index.d.ts.map +1 -1
  31. package/dist/sync/types.d.ts +8 -0
  32. package/dist/sync/types.d.ts.map +1 -1
  33. package/dist/testing.d.ts +27 -0
  34. package/dist/testing.d.ts.map +1 -0
  35. package/dist/testing.js +17 -0
  36. package/dist/testing.js.map +11 -0
  37. package/dist/worker/attach-sync-client.d.ts +23 -2
  38. package/dist/worker/attach-sync-client.d.ts.map +1 -1
  39. package/dist/worker/define-sync-worker.d.ts +5 -4
  40. package/dist/worker/define-sync-worker.d.ts.map +1 -1
  41. package/dist/worker/protocol.d.ts +89 -8
  42. package/dist/worker/protocol.d.ts.map +1 -1
  43. package/package.json +9 -4
  44. package/skills/core/SKILL.md +14 -1
  45. package/skills/operating/SKILL.md +75 -15
  46. package/src/boot-report.ts +287 -0
  47. package/src/export-data.ts +300 -0
  48. package/src/export-dump.ts +239 -0
  49. package/src/export-store.ts +309 -0
  50. package/src/index.ts +623 -82
  51. package/src/lazy-guard.ts +23 -9
  52. package/src/lifecycle-slot.ts +66 -0
  53. package/src/live-rows-sql.ts +45 -0
  54. package/src/mutation-state.ts +11 -2
  55. package/src/mutation.ts +42 -0
  56. package/src/schema.ts +120 -1
  57. package/src/shape-sync.ts +21 -0
  58. package/src/store-path.ts +249 -0
  59. package/src/sync/index.ts +11 -0
  60. package/src/sync/types.ts +9 -0
  61. package/src/testing.ts +53 -0
  62. package/src/worker/attach-sync-client.ts +101 -6
  63. package/src/worker/define-sync-worker.ts +196 -30
  64. package/src/worker/protocol.ts +110 -10
package/dist/index.d.ts CHANGED
@@ -2,19 +2,31 @@ import { 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
4
  import type { MutationAck, MutationDiagnostics, RegistryRelations, RegistryViews, SyncRuntimeStatus, SyncTableCreateInput, SyncTableName, SyncTableRegistry, SyncTableUpdateInput, WriteMode } from "@pgxsinkit/contracts";
5
+ import { type BootReport } from "./boot-report";
5
6
  import { type ConvergenceTrigger } from "./convergence";
7
+ import { type DataExportOptions, type DataExportResult } from "./export-data";
8
+ import { type DiagnosticExportOptions, type DiagnosticExportResult } from "./export-dump";
9
+ import { type StoreExportOptions, type StoreExportResult } from "./export-store";
6
10
  import { type LocalStoreVersionEvent } from "./local-store";
7
11
  import { type MutationBatchItem, type MutationDetail, type MutationKind } from "./mutation";
8
12
  import { generateLocalSchemaSql } from "./schema";
13
+ import { type StorePathInput } from "./store-path";
9
14
  import { type SyncEngine } from "./sync";
10
15
  export { generateLocalSchemaSql };
16
+ export { wrapLiveQueryForMaterialization } from "./live-rows-sql";
17
+ export type { BootReport } from "./boot-report";
18
+ export { type CloneDumpPhases, type CloneDumpResult, type DiagnosticExportDeps, type DiagnosticExportOptions, type DiagnosticExportResult, performDiagnosticExport, runThrowawayCloneDump, } from "./export-dump";
19
+ export { type DataExportDeps, DataExportDrainError, type DataExportOptions, type DataExportResult, DEFAULT_DRAIN_TIMEOUT_MS, type DrainJournalOption, type DrainJournalOptions, performDataExport, } from "./export-data";
20
+ export { type DataExportReport, deriveStoreId, type DiagnosticDumpReport, type ExportReport, type ExportReportCommon, performDatadirDump, performStoreExport, type StoreBackupReport, type StoreExportDeps, type StoreExportOptions, type StoreExportResult, } from "./export-store";
21
+ export { createLifecycleSlot, LifecycleBusyError, type LifecycleSlot } from "./lifecycle-slot";
22
+ export { InvalidStorePathError, NonPersistentStoreError, resolveStoreDataDir, RestoreTargetExistsError, storeIndexedDbDatabaseName, storeTargetExists, } from "./store-path";
11
23
  export { type ConvergenceClient, type ConvergenceDriver, type ConvergenceDriverOptions, type ConvergenceTrigger, createBrowserConvergenceTrigger, createConvergenceDriver, createIntervalConvergenceTrigger, } from "./convergence";
12
24
  export { instrumentShapeFetch, setSyncDebugSink, syncDebug, timeAsync } from "./debug";
13
25
  export { type AttachedSyncClient, attachSyncClient, type AttachSyncClientOptions, provisionSyncWorker, } from "./worker/attach-sync-client";
14
26
  export { defineSyncWorker, type DefineSyncWorkerOptions, type SyncWorkerHost } from "./worker/define-sync-worker";
15
27
  export { computeLiveDiff, type LiveDiffState, LiveRowsMaterializer, rowKey, seedLiveDiffState, } from "./worker/live-diff";
16
28
  export { createWorkerTokenCache, type WorkerTokenCache } from "./worker/token-cache";
17
- export { type AttachAckPayload, type AttachPayload, type AuthTokenSnapshot, BRIDGE_CHANNEL, BRIDGE_PROTOCOL_VERSION, type BridgeCodec, type BridgeEnvelope, type BridgeEvent, type BridgeMessageType, type BridgePort, encodeEnvelope, 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";
29
+ 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";
18
30
  export { assertLazyRefsActivated, buildLazyGuardIndex, findReferencedLazyKeysInSql, type LazyGuardIndex, LazyRelationNotActivatedError, } from "./lazy-guard";
19
31
  export { getJournalTable, getLocalMetaTable, getOverlayTable, getReadModelView, getSyncedLocalTable, getSyncStateView, type JournalTable, type LocalMetaTable, type OverlayTable, type ReadModelView, type SyncStateView, } from "./local-tables";
20
32
  export type { LocalStoreVersionEvent };
@@ -32,13 +44,41 @@ export interface PgliteBootAssets {
32
44
  initdbWasmModule?: WebAssembly.Module;
33
45
  fsBundle?: Blob;
34
46
  }
47
+ /** Options for {@link createClientPGlite}. */
48
+ export interface CreateClientPGliteOptions {
49
+ /**
50
+ * Pre-warmed PGlite boot assets (see {@link CreateSyncClientOptions.pgliteBootAssets}). Awaited and
51
+ * passed into `PGlite.create`; a rejected warm is caught to `undefined` (falls back to PGlite's own
52
+ * asset load), so it never fails the create.
53
+ */
54
+ bootAssets?: Promise<PgliteBootAssets>;
55
+ /**
56
+ * @internal Test-only storage-backend override (ADR-0036). `"memory"` resolves the store to a
57
+ * scheme-selected in-memory store — the sanctioned unit-test/ephemeral lane. Never a product
58
+ * configuration: reached only through `@pgxsinkit/client/testing`, never consumer-facing.
59
+ */
60
+ backendOverride?: "memory";
61
+ /**
62
+ * A store-backup tarball to seed the new store from (ADR-0035 decision 6, restore) — a `File`/`Blob` as
63
+ * produced by {@link SyncClient.exportStore}. Passed straight to PGlite's `loadDataDir`, so the created
64
+ * store boots ON the backup's datadir. Restore is a CREATION-path feature: the caller (`createSyncClient`)
65
+ * has already proven the target does not yet exist ({@link storeTargetExists}); this option carries no
66
+ * freshness check of its own. A corrupt/foreign tarball surfaces as a PGlite boot failure here.
67
+ */
68
+ restoreFrom?: File | Blob;
69
+ }
35
70
  /**
36
71
  * Create the raw local PGlite store the sync client runs on — the SAME `PGlite.create` call
37
72
  * {@link createSyncClient} makes internally (the `electric` + `live` extensions, pre-warmed boot-asset
38
73
  * consumption, and the `boot pglite.create` rail stamp), extracted so exactly one implementation exists
39
74
  * and a host can create the store EAGERLY on an earlier screen. Hand the returned (still-pending)
40
75
  * instance to {@link CreateSyncClientOptions.precreatedPglite}: the client then owns schema exec, prepare
41
- * hooks, journal recovery and store-version reconcile, exactly as its own `dataDir` path does.
76
+ * hooks, journal recovery and store-version reconcile, exactly as its own `storePath` path does.
77
+ *
78
+ * Takes a plain store path (ADR-0036), never a storage URL — the backend is DERIVED (IndexedDB in a
79
+ * browser/worker, the filesystem on Bun/Node); a scheme-bearing path throws {@link InvalidStorePathError}.
80
+ * Also accepts the testing helper's output (`createClientPGlite(memoryStoreForTests("x"))`) so a test can
81
+ * mint a memory store without naming a backend.
42
82
  *
43
83
  * The instance is deliberately **schemaless** — the registry-derived local schema is role/registry
44
84
  * dependent, so it is applied post-create by `createSyncClient`. The eager create buys only the expensive
@@ -47,9 +87,7 @@ export interface PgliteBootAssets {
47
87
  * `bootAssets` is the pre-warmed WASM/fs bundle (see {@link CreateSyncClientOptions.pgliteBootAssets}); a
48
88
  * rejected warm is caught to `undefined`, so PGlite falls back to loading its own assets — never a failure.
49
89
  */
50
- export declare function createClientPGlite(dataDir: string, options?: {
51
- bootAssets?: Promise<PgliteBootAssets>;
52
- }): Promise<ClientPGlite>;
90
+ export declare function createClientPGlite(store: StorePathInput, options?: CreateClientPGliteOptions): Promise<ClientPGlite>;
53
91
  export interface CreateSyncClientOptions<TRegistry extends SyncTableRegistry> {
54
92
  registry: TRegistry;
55
93
  electricUrl: string;
@@ -74,7 +112,15 @@ export interface CreateSyncClientOptions<TRegistry extends SyncTableRegistry> {
74
112
  */
75
113
  writeRequestHeaders?: Record<string, string>;
76
114
  syncEnabled?: boolean;
77
- dataDir?: string;
115
+ /**
116
+ * The local store's name (ADR-0036) — a PLAIN path/name, never a PGlite storage URL. The storage backend
117
+ * is DERIVED from the environment (IndexedDB in a browser/worker, the filesystem on Bun/Node); a
118
+ * scheme-bearing string (anything containing `://`) is rejected with {@link InvalidStorePathError}
119
+ * at boot. Defaults to a built-in overlay store name when omitted. A memory-backed store is not a product
120
+ * configuration — for the test/ephemeral lane, spread `memoryStoreForTests(...)` from
121
+ * `@pgxsinkit/client/testing` instead of naming one here.
122
+ */
123
+ storePath?: string;
78
124
  /**
79
125
  * Pre-warmed PGlite boot assets (the WASM modules + filesystem bundle), awaited and passed straight
80
126
  * into `PGlite.create`. The intent is to hide PGlite's ~2.5s cold `boot pglite.create` cost —
@@ -96,11 +142,16 @@ export interface CreateSyncClientOptions<TRegistry extends SyncTableRegistry> {
96
142
  * post-create boot steps against it — no schema exec, prepare hooks, or store-version reconcile
97
143
  * (journal recovery still runs, as it does on every path). Use it only when the caller has already
98
144
  * applied the registry schema itself. Contrast the three PGlite-provenance seams:
99
- * - {@link dataDir} (default) — the client creates the store AND runs every post-create step.
145
+ * - {@link storePath} (default) — the client creates the store AND runs every post-create step.
100
146
  * - {@link precreatedPglite} — the caller creates the raw store (via {@link createClientPGlite}), but
101
- * the client still runs every post-create step (schema/prepare/reconcile), exactly as `dataDir` does.
147
+ * the client still runs every post-create step (schema/prepare/reconcile), exactly as `storePath` does.
102
148
  * - `pgliteInstance` — the caller creates AND provisions the store; the client runs none of them.
103
149
  *
150
+ * A caller-owned instance is REFUSED with {@link NonPersistentStoreError} if it is provably
151
+ * non-persistent (a `new PGlite()` default, or an in-memory store) — pgxsinkit's durability semantics
152
+ * assume a persisted store (ADR-0036). Acknowledge a deliberate test store by spreading
153
+ * `testStoreAcknowledgment()` from `@pgxsinkit/client/testing`.
154
+ *
104
155
  * Mutually exclusive with {@link precreatedPglite} (supplying both throws).
105
156
  */
106
157
  pgliteInstance?: ClientPGlite;
@@ -108,18 +159,45 @@ export interface CreateSyncClientOptions<TRegistry extends SyncTableRegistry> {
108
159
  * A raw PGlite instance the caller created EAGERLY (via {@link createClientPGlite}) — typically on an
109
160
  * earlier screen, to hide the ~1.9s cold `initdb`/IDBFS open behind user think-time — but for which the
110
161
  * client still owns EVERYTHING else: schema exec, prepare hooks, journal recovery, and store-version
111
- * reconcile all run exactly as on the {@link dataDir} path. This is the difference from
162
+ * reconcile all run exactly as on the {@link storePath} path. This is the difference from
112
163
  * {@link pgliteInstance} (which skips schema/prepare/reconcile because the caller owns them); see that
113
164
  * option's JSDoc for the three-way distinction.
114
165
  *
115
166
  * The promise form lets the still-pending eager create be handed straight in. Precedence/validation:
116
167
  * - Supplying both this and {@link pgliteInstance} throws — they claim different ownership.
117
- * - {@link dataDir} is used ONLY as the fallback store id if this promise REJECTS: a failed eager
118
- * create is caught, logged on the boot rail, and the normal `dataDir` create path runs instead (also
168
+ * - {@link storePath} is used ONLY as the fallback store name if this promise REJECTS: a failed eager
169
+ * create is caught, logged on the boot rail, and the normal `storePath` create path runs instead (also
119
170
  * consuming {@link pgliteBootAssets} if provided). The pattern is a pure accelerator, never a boot
120
171
  * dependency.
172
+ * - A successfully-adopted instance is subject to the same {@link NonPersistentStoreError} refusal as
173
+ * {@link pgliteInstance} (checked after resolution, so the refusal propagates rather than being
174
+ * swallowed by the reject-fallback).
121
175
  */
122
176
  precreatedPglite?: Promise<ClientPGlite>;
177
+ /**
178
+ * Restore the store from a **store backup** (ADR-0035 decision 6) — a `File`/`Blob` tarball as produced by
179
+ * {@link SyncClient.exportStore}. The client creates its store with the backup handed to PGlite's
180
+ * `loadDataDir`, so it boots ON the backup's datadir (synced cache + Overlay + Mutation journal, all the
181
+ * bytes that travelled inside it). Three restore-only rules apply, none of them optional:
182
+ *
183
+ * - **Fresh target only.** Refused with {@link RestoreTargetExistsError} if a store already exists at the
184
+ * resolved {@link storePath} — restore never overlays a live store (that would corrupt the datadir); the
185
+ * remedy is a deliberate {@link SyncClient.destroy} of the existing store first.
186
+ * - **Always boots offline.** The engine boots with sync OFF regardless of {@link syncEnabled}/{@link autoSync}
187
+ * or anything captured in the backup — no shape streams, no read fetch, no flush, no convergence passes.
188
+ * Restore wins over an explicit online option (a debug-rail warning notes the override). The app inspects
189
+ * {@link SyncClient.diagnostics}, releases/discards the quarantined rows, then a subsequent NORMAL boot of
190
+ * the (now-persisted) store brings sync online — `loadDataDir` happens exactly once, on this restore boot.
191
+ * - **Journal quarantined.** Every non-terminal recovered row (`pending`/`sending`/`failed`) is moved to
192
+ * `quarantined` — nothing recovered from a backup auto-flushes (the write path has no `mutationId` dedupe
193
+ * ledger, so replay is unsafe on last-write-wins tables). Release (`retryFailed`) or discard
194
+ * (`discardQuarantined`) them explicitly.
195
+ *
196
+ * Mutually exclusive with {@link pgliteInstance} AND {@link precreatedPglite} — restore owns the store's
197
+ * creation (`loadDataDir` is a create-time seed), so a caller-supplied instance conflicts (supplying either
198
+ * with `restoreFrom` throws).
199
+ */
200
+ restoreFrom?: File | Blob;
123
201
  /**
124
202
  * PROVABLY-fresh store hint (ADR-0032 S4 / backlog-0003): the caller guarantees this store is brand-new
125
203
  * and schemaless — no prior schema, no synced rows, no persisted subscription state. When set (and sync
@@ -182,6 +260,29 @@ export interface CreateSyncClientOptions<TRegistry extends SyncTableRegistry> {
182
260
  * instead of silently diverging from the server; recovery is a later commit or a restart/refetch.
183
261
  */
184
262
  onSyncError?: (error: Error) => void;
263
+ /**
264
+ * Boot observability (ADR-0034): invoked exactly once, at boot completion, with the finalized
265
+ * {@link BootReport}. The push counterpart of {@link SyncClient.bootReport} (the pull) for consumers that
266
+ * want the numbers without polling — dashboards, CI budget gates. Never fired before initial sync; a
267
+ * `stop()`/`destroy()` before then means it never fires.
268
+ */
269
+ onBootReport?: (report: BootReport) => void;
270
+ /**
271
+ * @internal Boot mode stamped into the {@link BootReport} (ADR-0034). `defineSyncWorker` sets `"worker"`;
272
+ * absent → `"in-process"`. Not a behavior knob — it only labels the report.
273
+ */
274
+ bootMode?: BootReport["mode"];
275
+ /**
276
+ * @internal Provision timing for a boot that ADOPTS a pre-provisioned store (ADR-0034). When the store was
277
+ * minted ahead of boot (a spare's off-thread initdb), the provisioner stamps its create cost and ready
278
+ * time here; the boot reports them as {@link BootReport.provision} and sets `phases.pgliteCreateMs = null`.
279
+ * A promise because the stamp settles with the spare's `create`. Only honoured on the {@link precreatedPglite}
280
+ * adoption path (ignored on a fallback create). `provisionReadyAt` must share this process's monotonic clock.
281
+ */
282
+ provisionStamp?: Promise<{
283
+ initdbMs: number;
284
+ provisionReadyAt: number;
285
+ }>;
185
286
  }
186
287
  export interface SyncClientTableHandle<TRegistry extends SyncTableRegistry, TKey extends SyncTableName<TRegistry>> {
187
288
  key: TKey;
@@ -275,7 +376,22 @@ export interface PrepareQueryInput<TRegistry extends SyncTableRegistry> {
275
376
  export interface SubscribeLiveRowsInput {
276
377
  sql: string;
277
378
  params: readonly unknown[];
278
- /** The result's PK columns — the diff-keying identity across the bridge (§4). Omit for a keyless query. */
379
+ /**
380
+ * The unique output aliases to render the query's columns under so it is SAFE TO MATERIALISE, in the
381
+ * compiled SQL's column order (one per output column). Drizzle emits no output aliases, so a JOIN whose
382
+ * tables share a column name compiles to duplicate output names — which PGlite's `live` extension
383
+ * refuses to materialise (`column "title" specified more than once`) and which silently collapse
384
+ * same-named columns even in a plain query. When supplied, the seam wraps the query so every output
385
+ * column gets its alias and rows come back KEYED BY THESE ALIASES; the consumer's row-mapper must read
386
+ * by alias (the `@pgxsinkit/react` hooks do). Omit for a raw or non-colliding query — the seam then
387
+ * leaves the SQL untouched and rows stay keyed by the underlying column names (backward-compatible).
388
+ */
389
+ fields?: readonly string[];
390
+ /**
391
+ * The result's PK columns — the diff-keying identity across the bridge (§4). Omit for a keyless query.
392
+ * When {@link fields} is supplied the result columns are the aliases, so a PK column here must be named
393
+ * by its ALIAS (the aliased result column), not the underlying source column.
394
+ */
279
395
  pkColumns?: readonly string[];
280
396
  /**
281
397
  * Lazy relations (ADR-0021) to activate before the query runs — forwarded to the worker so it can
@@ -304,6 +420,9 @@ export interface SyncClient<TRegistry extends SyncTableRegistry> {
304
420
  * Wipe the entire local store (synced cache + overlay + journal) and close the handle
305
421
  * (ADR-0005). Refuses if mutations are still owed to the server unless `force` is set, so
306
422
  * it never silently drops un-flushed writes. Distinct from `stop()`, which only halts sync.
423
+ * Runs under the single lifecycle slot (ADR-0035 decision 4): a concurrent export — or another
424
+ * `destroy`/`discardEphemeral`/`dropReadCache` — rejects with a {@link LifecycleBusyError} rather
425
+ * than interleaving the wipe with a running export.
307
426
  */
308
427
  destroy: (options?: {
309
428
  force?: boolean;
@@ -311,7 +430,10 @@ export interface SyncClient<TRegistry extends SyncTableRegistry> {
311
430
  /**
312
431
  * Drop and rebuild the reconstructible synced read cache, preserving the overlay and
313
432
  * mutation journal (ADR-0006). The next sync refills it. Use to recover from a corrupt or
314
- * stale read cache without losing un-flushed writes.
433
+ * stale read cache without losing un-flushed writes. Runs under the single lifecycle slot
434
+ * (ADR-0035 decision 4) — it drops and rebuilds the synced tables, so an export must not capture a
435
+ * half-rebuilt cache; a concurrent export (or `destroy`/`discardEphemeral`) rejects with a
436
+ * {@link LifecycleBusyError}.
315
437
  */
316
438
  dropReadCache: () => Promise<void>;
317
439
  flush: (table?: SyncTableName<TRegistry>) => Promise<void>;
@@ -396,6 +518,24 @@ export interface SyncClient<TRegistry extends SyncTableRegistry> {
396
518
  * relation, idle-eviction is otherwise automatic at session end.
397
519
  */
398
520
  desync: (key: SyncTableName<TRegistry>) => Promise<void>;
521
+ /**
522
+ * Drop an **ephemeral** relation's local rows and revert it to dormant (ADR-0021) — the narrow,
523
+ * scoped twin of {@link desync}. It runs the identical group-teardown machinery (stop the group stream,
524
+ * clear the persisted lazy activation, reset the persisted subscription, clean-truncate every member),
525
+ * but under a STRICTER gate: EVERY member of the relation's consistency group must be `retention:
526
+ * "ephemeral"` — it refuses (naming the offender) if any member is persistent. Where a `desync` from one
527
+ * tab reverts the shared group for every attached tab (the SharedWorker footgun), `discardEphemeral` is
528
+ * safe under multi-tab because an ephemeral window is per-delivery-session and inherently single-consumer
529
+ * — nothing durable, and no other tab, depends on it. Refuses an `eager` relation (always-on, would
530
+ * immediately re-sync) and a group that owes the server unsettled writes, exactly as `desync` does. The
531
+ * finalize primitive for a secure-delivery window: drop the local rows at session end without touching a
532
+ * durable relation. Note the drop is local-lifecycle only: a later re-subscription re-activates the lazy
533
+ * group and re-streams whatever the SERVER still serves — post-finalize non-redelivery is the server
534
+ * gate's guarantee (e.g. a consumed server-owned cursor), not this method's. Runs under the single
535
+ * lifecycle slot (ADR-0035 decision 4): a concurrent export (or `destroy`/`dropReadCache`) rejects with a
536
+ * {@link LifecycleBusyError} rather than interleaving the cache truncate with a running export.
537
+ */
538
+ discardEphemeral: (key: SyncTableName<TRegistry>) => Promise<void>;
399
539
  /**
400
540
  * The read-path safety seam (ADR-0021): scan the compiled `sql` for the lazy relations it reads
401
541
  * (∪ the optional `use`), activate them, and await their initial sync — so a lazy relation
@@ -437,6 +577,59 @@ export interface SyncClient<TRegistry extends SyncTableRegistry> {
437
577
  * higher-level `@pgxsinkit/react` hooks; this is the lower-level primitive they build on.
438
578
  */
439
579
  subscribeLiveRows: <TRow extends Record<string, unknown> = Record<string, unknown>>(input: SubscribeLiveRowsInput, onRows: (rows: TRow[]) => void) => Promise<LiveRowsSubscription<TRow>>;
580
+ /**
581
+ * Boot observability (ADR-0034): the engine's most recent COMPLETED boot report, or `null` before the
582
+ * first boot finalizes (and after a `stop()`/`destroy()` that preceded initial sync). Pull — so a
583
+ * late-attaching tab can read a boot that predates it; in worker mode it round-trips to the worker's
584
+ * stored report. The push counterpart is the `onBootReport` client option.
585
+ */
586
+ bootReport: () => Promise<BootReport | null>;
587
+ /**
588
+ * Take a **store backup** (ADR-0035): a full-fidelity, PGlite-restorable tarball of the whole local
589
+ * store — synced cache, Overlay, and Mutation journal (unflushed writes included) — via PGlite's
590
+ * `dumpDataDir`. Taken LIVE (a `CHECKPOINT` serialised behind engine work, then the dump; no engine
591
+ * suspension, no tab disruption), so it never blocks and is the only lossless export an offline device
592
+ * with unflushed writes can take. Awaits engine-ready rather than rejecting during boot, then runs under
593
+ * the single lifecycle slot: a second export (or, later, `destroy`/`discardEphemeral`) attempted while
594
+ * one is in flight rejects immediately with a {@link LifecycleBusyError} — retry once it settles.
595
+ * Resolves to the artefact `File` plus an {@link ExportReport} (phase timings + a diagnostics snapshot).
596
+ */
597
+ exportStore: (options?: StoreExportOptions) => Promise<StoreExportResult>;
598
+ /**
599
+ * Take a **diagnostic dump** (ADR-0035): human-readable SQL of EVERYTHING the store holds — synced tables,
600
+ * the `_overlay`/`_mutations` journal (unflushed writes included — the evidence a diagnostic exists for),
601
+ * the `pgxsinkit` metadata schema, the read-model views, and the reconcile functions/triggers — via
602
+ * `pg_dump`. To keep `pg_dump`'s `DEALLOCATE ALL` away from the live engine, the dump runs against a
603
+ * memory-backed THROWAWAY clone booted from a live datadir dump (ADR-0035 addendum): the running store is
604
+ * never suspended and no tab is disrupted. Awaits engine-ready rather than rejecting during boot, then
605
+ * runs under the single lifecycle slot — a concurrent export (or `destroy`/`discardEphemeral`) rejects
606
+ * immediately with a {@link LifecycleBusyError}. Resolves to the SQL `File` (`application/sql`) plus a
607
+ * {@link DiagnosticDumpReport} (phase timings + a diagnostics snapshot). Active ephemeral (`pg_temp`)
608
+ * clusters are absent by construction (ADR-0035 decision 5 — `pg_dump` ignores temp objects).
609
+ */
610
+ exportDiagnostics: (options?: DiagnosticExportOptions) => Promise<DiagnosticExportResult>;
611
+ /**
612
+ * Take a **data export** (ADR-0035): the PORTABLE artefact — the synced tables and the enum types they
613
+ * depend on, schema + data, nothing of pgxsinkit's machinery — as SQL loadable into a vanilla Postgres. It
614
+ * is a generated enum DDL header concatenated ahead of `pg_dump -t <table> ... --no-owner` (one `-t` per
615
+ * physical synced table; ephemeral/read-projection entries excluded by construction), run against the same
616
+ * memory-backed THROWAWAY clone the diagnostic dump uses — so the live engine is never touched.
617
+ *
618
+ * Unlike the other two exports it GUARDS the journal (decision 3): a strict export requires a DRAINED
619
+ * journal — all mutation counts zero, including `acked` writes whose synced echo has not landed (they live
620
+ * only in the Overlay). The drain flushes drainable rows and awaits convergence up to
621
+ * `drainJournal.timeoutMs` (default `15_000`); non-drainable states (`failed`/`quarantined`/`conflicted`)
622
+ * fail FAST with a {@link DataExportDrainError} carrying the diagnostics. `drainJournal: false` is the
623
+ * escape hatch — export synced state as-is (unflushed writes absent; `report.escapeHatch` records it). An
624
+ * offline device with a clean journal exports strictly and instantly; one with a dirty journal cannot
625
+ * produce a strict export (its lossless option is `exportStore`).
626
+ *
627
+ * Awaits engine-ready rather than rejecting during boot, then runs the whole drain+dump under the single
628
+ * lifecycle slot — a concurrent export (or `destroy`/`discardEphemeral`) rejects with a
629
+ * {@link LifecycleBusyError}. Resolves to the SQL `File` (`application/sql`) plus a {@link DataExportReport}
630
+ * (drain + clone-pipeline phase timings, the applied `-t` table list, and the escape-hatch flag).
631
+ */
632
+ exportData: (options?: DataExportOptions) => Promise<DataExportResult>;
440
633
  }
441
634
  export type { MutationBatchItem, MutationDetail, MutationDiagnostics, MutationKind };
442
635
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,OAAO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