@pgxsinkit/client 0.1.53 → 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/export-store.d.ts +1 -1
- package/dist/export-store.d.ts.map +1 -1
- package/dist/index.d.ts +270 -52
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4492 -1511
- package/dist/index.js.map +34 -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 +4 -4
- 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.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 +235 -12
- package/dist/worker/attach-sync-client.d.ts.map +1 -1
- package/dist/worker/define-sync-worker.d.ts +138 -22
- 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/protocol.d.ts +15 -10
- 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 -12
- package/skills/operating/SKILL.md +103 -46
- package/src/adoption.ts +275 -0
- package/src/boot-report.ts +70 -17
- package/src/convergence.ts +2 -1
- package/src/export-store.ts +1 -1
- package/src/index.ts +1109 -115
- package/src/live-rows-sql.ts +1 -1
- package/src/local-store.ts +18 -40
- package/src/local-tables.ts +2 -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 +63 -63
- package/src/sync/index.ts +2 -2
- 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 +1556 -97
- package/src/worker/define-sync-worker.ts +723 -73
- 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 +4 -1
- package/src/worker/protocol.ts +13 -10
- package/src/worker/sw-placement.ts +64 -0
package/README.md
CHANGED
|
@@ -9,3 +9,25 @@ bun add @pgxsinkit/client @pgxsinkit/contracts
|
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
See the [documentation](https://pgxsinkit.github.io) for the read and write paths.
|
|
12
|
+
|
|
13
|
+
## Browser storage and worker placement
|
|
14
|
+
|
|
15
|
+
`createSyncClient` is the in-process client. For browser apps, worker mode moves PGlite off the
|
|
16
|
+
main thread with capability-driven placement (ADR-0049) as the default:
|
|
17
|
+
|
|
18
|
+
- real macOS/iOS Safari grants synchronous OPFS handles in a `SharedWorker`, so the engine runs there
|
|
19
|
+
on the constant-four-handle `opfs-repacked` backend;
|
|
20
|
+
- Chromium and Firefox deny those handles in a `SharedWorker`, so Web Locks elect one tab-spawned
|
|
21
|
+
dedicated engine worker (constructed automatically from the SharedWorker's own script URL);
|
|
22
|
+
- a missing `SharedWorker`, a platform with no OPFS capability in any home, or a registry that
|
|
23
|
+
declares `storage: { backend: "idbfs" }` uses IndexedDB.
|
|
24
|
+
|
|
25
|
+
Pass `attachSyncClient` a SharedWorker factory (`worker: () => SharedWorker`) so SharedWorker-death
|
|
26
|
+
recovery is guaranteed; `createEngineWorker` is only an override for entries that cannot be
|
|
27
|
+
reconstructed from their URL. Storage is declared on the registry
|
|
28
|
+
(`storage: { backend, durability }`, defaults `opfs`/`relaxed`). Inspect
|
|
29
|
+
`bootReport().storageBackend`, `engineHome`, and `storageFallbackReason` instead of inferring
|
|
30
|
+
placement from the browser name.
|
|
31
|
+
|
|
32
|
+
See [Worker mode](https://pgxsinkit.github.io/concepts/worker-mode/) for the complete factory,
|
|
33
|
+
relocation, adoption, destruction, and durability contract.
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { type JournalStatusCounts } from "./store-lifecycle";
|
|
2
|
+
import type { StoreBootVerdict, StoreMetaPhase } from "./store-meta";
|
|
3
|
+
/**
|
|
4
|
+
* The consumer's explicit reconstructibility declaration (ADR-0049 D7). `"server-reconstructible"` authorizes
|
|
5
|
+
* AUTOMATIC adoption: the store is server-reconstructible and its local-only data is disposable. DEFAULT OFF
|
|
6
|
+
* (`undefined`) — hook absence is NEVER authority: `rawExec` writes documented local-only state on any store,
|
|
7
|
+
* so only this explicit declaration (or the manual adoption API) authorizes deleting the idb predecessor.
|
|
8
|
+
*/
|
|
9
|
+
export type AdoptionDeclaration = "server-reconstructible" | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* The effects the adoption transition drives, in the one order it always runs them (step 11b supplies the real
|
|
12
|
+
* implementations). The transition is a strict data-before-authority sequence: prove the idb store owes the
|
|
13
|
+
* server nothing, reconstruct an opfs successor through the Adoption-bootstrap gate, commit it via the shared
|
|
14
|
+
* barrier, and only THEN delete the predecessor.
|
|
15
|
+
*/
|
|
16
|
+
export interface AdoptionEffects {
|
|
17
|
+
/**
|
|
18
|
+
* Boot the idb engine PRE-EXPOSE (never surfaced to tabs — invariant 3) and return the journal status
|
|
19
|
+
* counts the drain predicate reads. The engine is booted solely to read the journal; the caller never
|
|
20
|
+
* exposes THIS booted instance until adoption defers (journal owed) or fails.
|
|
21
|
+
*/
|
|
22
|
+
bootIdbPreExpose(): Promise<JournalStatusCounts>;
|
|
23
|
+
/** Strict-sync the never-exposed idb engine, then close it (all handles released) before building the successor. */
|
|
24
|
+
strictSyncAndCloseIdb(): Promise<void>;
|
|
25
|
+
/** Advance the store meta record phase. The transition calls it with `"adopting"` and, on failure, `"idb-authoritative"`. */
|
|
26
|
+
setPhase(phase: StoreMetaPhase): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Build the opfs candidate via the normal server bootstrap path AND await the Adoption-bootstrap gate:
|
|
29
|
+
* authorized online reconstruction — the initial catch-up of the eager Consistency groups a valid initial
|
|
30
|
+
* store requires ("authorized" includes legitimately anonymous/public shapes). Resolves ONLY when the gate
|
|
31
|
+
* passed; THROWS on gate failure (offline, unauthorized, `syncEnabled: false`, or a bootstrap error).
|
|
32
|
+
*/
|
|
33
|
+
buildCandidateThroughGate(): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Run the shared commitment barrier on the CANDIDATE engine: `strictSync()` returns with VFS health good →
|
|
36
|
+
* sentinel → `opfs-committed`. Step 11b wires `runCommitmentBarrier` (store-lifecycle.ts) with real effects;
|
|
37
|
+
* here it is one injected step. It MUST be all-or-nothing: a barrier failure publishes NOTHING (invariant 3),
|
|
38
|
+
* so a throw leaves the idb store authoritative and the candidate uncommitted.
|
|
39
|
+
*/
|
|
40
|
+
commitCandidate(): Promise<void>;
|
|
41
|
+
/** Delete the idb predecessor now the opfs successor is committed. Idempotent: absent counts as deleted. */
|
|
42
|
+
deleteIdbPredecessor(): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Tear down a failed candidate: delete the stale sentinel (if any) AND the candidate directory,
|
|
45
|
+
* delete-if-present (a barrier-gap crash's sentinel must never survive). Recreate-only; idempotent.
|
|
46
|
+
*/
|
|
47
|
+
teardownCandidate(): Promise<void>;
|
|
48
|
+
}
|
|
49
|
+
/** The narrow candidate surface the real boot wiring hands this module. */
|
|
50
|
+
export interface AdoptionCandidateHandle {
|
|
51
|
+
ready: Promise<void>;
|
|
52
|
+
strictSync(): Promise<void>;
|
|
53
|
+
close(): Promise<void>;
|
|
54
|
+
}
|
|
55
|
+
/** IO callbacks needed to construct the real stateful adoption effects without importing the client entrypoint. */
|
|
56
|
+
export interface AdoptionEffectBuilderOptions {
|
|
57
|
+
readIdbJournal(): Promise<JournalStatusCounts>;
|
|
58
|
+
setPhase(phase: StoreMetaPhase): Promise<void>;
|
|
59
|
+
buildCandidate(): Promise<AdoptionCandidateHandle>;
|
|
60
|
+
publishSentinel(): Promise<void>;
|
|
61
|
+
deleteSentinel(): Promise<void>;
|
|
62
|
+
deleteStoreDirectory(): Promise<void>;
|
|
63
|
+
deleteIdbPredecessor(): Promise<void>;
|
|
64
|
+
gateDeadlineMs?: number;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Construct the stateful adoption effects around narrow IO callbacks. Candidate ownership, gate timing,
|
|
68
|
+
* data-before-authority publication, and failed-candidate cleanup live here rather than in the package entrypoint.
|
|
69
|
+
*/
|
|
70
|
+
export declare function buildAdoptionEffects(options: AdoptionEffectBuilderOptions): AdoptionEffects;
|
|
71
|
+
/**
|
|
72
|
+
* The outcome of an adoption transition. `adopted: true` means the opfs successor is committed and the idb
|
|
73
|
+
* predecessor is gone (or scheduled for cleanup — see `predecessorCleanupPending`). Every `adopted: false`
|
|
74
|
+
* outcome leaves the idb store AUTHORITATIVE and untouched:
|
|
75
|
+
* - `not-declared` — automatic adoption without the declaration (default off); nothing ran (invariant 4).
|
|
76
|
+
* - `journal-owed` — the drain predicate failed; adoption is DEFERRED (the caller exposes the idb engine
|
|
77
|
+
* normally). The orchestrator boots the idb engine to READ the journal but exposes nothing itself.
|
|
78
|
+
* - `gate-failed` — the Adoption-bootstrap gate rejected (offline/unauthorized/`syncEnabled: false`/bootstrap
|
|
79
|
+
* error). The candidate was torn down; idb stays authoritative. `error` carries the gate failure text.
|
|
80
|
+
* - `barrier-failed` — the commitment barrier threw (strict sync did not return / VFS health bad). Nothing
|
|
81
|
+
* published; candidate torn down; idb stays authoritative. `error` carries the barrier failure text.
|
|
82
|
+
*/
|
|
83
|
+
export type AdoptionOutcome = {
|
|
84
|
+
adopted: true;
|
|
85
|
+
/**
|
|
86
|
+
* Set only when the predecessor deletion FAILED after a successful commit. Adoption still SUCCEEDED
|
|
87
|
+
* (the phase is `opfs-committed`); the boot classifier's lingering-idb row (adoption crash-row 3 →
|
|
88
|
+
* `opfs-committed` with an idb store present → `open-committed`, then `completeAdoption` finishes the
|
|
89
|
+
* deletion) completes the cleanup on the next boot. Carries the deletion failure text for diagnostics.
|
|
90
|
+
*/
|
|
91
|
+
predecessorCleanupPending?: string;
|
|
92
|
+
} | {
|
|
93
|
+
adopted: false;
|
|
94
|
+
reason: "not-declared" | "journal-owed" | "gate-failed" | "barrier-failed";
|
|
95
|
+
error?: string;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* The AUTOMATIC adoption transition, run at boot BEFORE any engine is exposed (the caller guarantees pre-expose
|
|
99
|
+
* exclusivity — invariant 3's no-race-by-construction). Consults the {@link AdoptionDeclaration} FIRST: without
|
|
100
|
+
* `"server-reconstructible"` it refuses with `not-declared` and runs ZERO effects (invariant 4 — default off,
|
|
101
|
+
* hook absence is never authority). With the declaration it runs the shared {@link runTransition}.
|
|
102
|
+
*/
|
|
103
|
+
export declare function runAdoptionTransition(declaration: AdoptionDeclaration, effects: AdoptionEffects): Promise<AdoptionOutcome>;
|
|
104
|
+
/**
|
|
105
|
+
* The MANUAL adoption API's core: the identical transition, but WITHOUT the declaration check — the consumer's
|
|
106
|
+
* explicit call IS the authorization (they were told to export/migrate any local-only data first). The drain
|
|
107
|
+
* predicate still gates it (a store that owes the server work is not adoptable), and every failure recovery is
|
|
108
|
+
* identical to the automatic path.
|
|
109
|
+
*/
|
|
110
|
+
export declare function runManualAdoption(effects: AdoptionEffects): Promise<AdoptionOutcome>;
|
|
111
|
+
/**
|
|
112
|
+
* The boot-wiring predicate (plan step 11b): is a boot eligible to START an automatic adoption? True IFF the
|
|
113
|
+
* consumer declared `"server-reconstructible"` AND opfs sync access is available in this scope AND the boot
|
|
114
|
+
* classifier landed on `boot-idb-authoritative` — adoption only ever starts from an idb-authoritative store
|
|
115
|
+
* with opfs available (there is nowhere to build the successor otherwise, and no other verdict is a candidate).
|
|
116
|
+
*/
|
|
117
|
+
export declare function adoptionEligible(declaration: AdoptionDeclaration, verdict: StoreBootVerdict, hasOpfsSyncAccess: boolean): boolean;
|
|
118
|
+
//# sourceMappingURL=adoption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adoption.d.ts","sourceRoot":"","sources":["../src/adoption.ts"],"names":[],"mappings":"AAoBA,OAAO,EAA4C,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACvG,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAErE;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,wBAAwB,GAAG,SAAS,CAAC;AAEvE;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,gBAAgB,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M,eAAe,GACvB;IACE,OAAO,EAAE,IAAI,CAAC;IACd;;;;;OAKG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC,GACD;IAAE,OAAO,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,cAAc,GAAG,cAAc,GAAG,aAAa,GAAG,gBAAgB,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AA4DnH;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,mBAAmB,EAChC,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,eAAe,CAAC,CAK1B;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC,CAEpF;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,mBAAmB,EAChC,OAAO,EAAE,gBAAgB,EACzB,iBAAiB,EAAE,OAAO,GACzB,OAAO,CAET"}
|
package/dist/boot-report.d.ts
CHANGED
|
@@ -17,6 +17,31 @@ export interface BootReport {
|
|
|
17
17
|
* which a boolean cannot express.
|
|
18
18
|
*/
|
|
19
19
|
storeKind: "fresh" | "warm" | "restored";
|
|
20
|
+
/**
|
|
21
|
+
* The store backend this boot actually opened (ADR-0049 decision 12): `"opfs-repacked"` (the placement probe
|
|
22
|
+
* granted sync-access handles in the engine home), `"idbfs"` (browser/worker, handles denied — today's default),
|
|
23
|
+
* `"filesystem"` (Bun/Node), or `"memory"` (the sanctioned test/ephemeral lane). Derived from the minted dataDir
|
|
24
|
+
* scheme at the single client-owned mint seam; absent (omitted) on a BYO instance whose backend is underivable.
|
|
25
|
+
* Additive field; `reportVersion` stays `1`. Distinct from {@link BootReport.storeKind}, which is untouched.
|
|
26
|
+
*/
|
|
27
|
+
storageBackend?: "opfs-repacked" | "idbfs" | "filesystem" | "memory";
|
|
28
|
+
/**
|
|
29
|
+
* Where the engine ran for this boot (ADR-0049 decision 12): `"in-process"` for the main-thread/Bun
|
|
30
|
+
* `createSyncClient`; inside `defineSyncWorker`, the placement-probe result — `"shared-worker"` (the engine boots
|
|
31
|
+
* in the SharedWorker itself, WebKit today) or `"elected-worker"` (a tab-spawned dedicated worker holds the
|
|
32
|
+
* handles, Chromium/Firefox). Absent (omitted) when the boot cannot derive it (e.g. a dedicated elected-engine
|
|
33
|
+
* worker that never ran the SharedWorker placement decision). Additive field; `reportVersion` stays `1`.
|
|
34
|
+
*/
|
|
35
|
+
engineHome?: "shared-worker" | "elected-worker" | "in-process";
|
|
36
|
+
/**
|
|
37
|
+
* The verbatim reason an opfs-CAPABLE boot (the probe granted sync-access handles) nonetheless opened `idbfs`
|
|
38
|
+
* (ADR-0049 decision 12). Set ONLY when such a fallback actually occurred — never on a plain idb boot (the probe
|
|
39
|
+
* denied from the start), and never on a granted opfs boot that stayed on opfs. Today's set-sites are the
|
|
40
|
+
* granted-then-idb transitions the client owns: a declaration-gated adoption that deferred/failed (idb stays
|
|
41
|
+
* authoritative) and the recordless idb-store downgrade (invariant 14 — never a fresh opfs mint over an
|
|
42
|
+
* existing idb store's data). Additive field; `reportVersion` stays `1`.
|
|
43
|
+
*/
|
|
44
|
+
storageFallbackReason?: string;
|
|
20
45
|
/** Whether the ADR-0032 S4 fetch/schema overlap was active for this boot. */
|
|
21
46
|
overlapPrefetch: boolean;
|
|
22
47
|
/** The registry fingerprint the store is provisioned under — the same value store-version reconcile stamps. */
|
|
@@ -56,42 +81,39 @@ export interface BootReport {
|
|
|
56
81
|
storeVersionReconcileMs: number;
|
|
57
82
|
/**
|
|
58
83
|
* `startConfiguredSync`: stream/group construction wall. On an overlap boot (ADR-0032 S4,
|
|
59
|
-
* {@link BootReport.overlapPrefetch}) the early-started segment runs concurrently with schema
|
|
60
|
-
*
|
|
84
|
+
* {@link BootReport.overlapPrefetch}) the early-started segment runs concurrently with schema, journal
|
|
85
|
+
* recovery, and registry reconciliation, so this includes that shared wall. Structurally 0 when the boot
|
|
86
|
+
* is ready inside the
|
|
61
87
|
* sync-start call itself (zero eager groups / instant catch-up) — finalize runs before the phase closes.
|
|
62
88
|
*/
|
|
63
89
|
syncStartMs: number;
|
|
64
90
|
/** Sync-start done → last eager boot group ready. */
|
|
65
91
|
catchupMs: number;
|
|
66
92
|
/**
|
|
67
|
-
* Cumulative time in configured prepare hooks (`prepareLocalDbBeforeSchema` + `
|
|
93
|
+
* Cumulative time in configured prepare hooks (`prepareLocalDbBeforeSchema` + `prepareLocalDbAfterSchema`), present
|
|
68
94
|
* only when at least one hook is configured. Not part of the required v1 shape (ADR-0034).
|
|
69
95
|
*/
|
|
70
96
|
prepareMs?: number;
|
|
71
97
|
};
|
|
72
98
|
/**
|
|
73
|
-
* Warm-
|
|
74
|
-
*
|
|
75
|
-
* slice sets the `schema*` flags and the recovery-marker slice the `journal*` flags as those optimizations
|
|
76
|
-
* land. Grouped like {@link BootReport.phases} so the flags structured-clone across the worker bridge as one
|
|
77
|
-
* unit.
|
|
99
|
+
* Warm-store observability for the durable-schema and journal-recovery fast paths. Grouped like
|
|
100
|
+
* {@link BootReport.phases} so the flags structured-clone across the worker bridge as one unit.
|
|
78
101
|
*/
|
|
79
102
|
warmBoot: {
|
|
80
|
-
/** Whether durable-schema replay was skipped this boot
|
|
103
|
+
/** Whether durable-schema replay was skipped this boot because the stored fingerprint matched. */
|
|
81
104
|
schemaSkipped: boolean;
|
|
82
|
-
/** Whether the stored durable-schema fingerprint matched the generated schema.
|
|
105
|
+
/** Whether the stored durable-schema fingerprint matched the generated schema. */
|
|
83
106
|
schemaFingerprintMatch: boolean;
|
|
84
|
-
/** Whether the boot-time `recoverSending` journal pass was skipped this boot.
|
|
107
|
+
/** Whether the boot-time `recoverSending` journal pass was skipped this boot. */
|
|
85
108
|
journalRecoverySkipped: boolean;
|
|
86
109
|
/**
|
|
87
|
-
* Whether
|
|
88
|
-
*
|
|
89
|
-
* from the durable marker instead (a clean shutdown clears the marker → `false`, skipping recovery).
|
|
110
|
+
* Whether the durable recovery marker required journal recovery this boot. A clean settle clears the marker,
|
|
111
|
+
* allowing the next boot to skip the recovery pass.
|
|
90
112
|
*/
|
|
91
113
|
journalRecoveryRequired: boolean;
|
|
92
114
|
/** How many writable table journals the boot-time `recoverSending` pass visited (the registry's writable-entry count). */
|
|
93
115
|
journalTablesVisited: number;
|
|
94
|
-
/** Rows lifted `sending → pending` by recovery
|
|
116
|
+
/** Rows lifted `sending → pending` by recovery; `null` when the selected recovery path cannot count them. */
|
|
95
117
|
journalRowsRecovered: number | null;
|
|
96
118
|
};
|
|
97
119
|
/**
|
|
@@ -155,6 +177,18 @@ export interface BootReportBuilder extends BootStampCollector {
|
|
|
155
177
|
phase: <T>(key: PhaseKey | "prepare", event: string, fn: () => Promise<T>, data?: Record<string, unknown>) => Promise<T>;
|
|
156
178
|
setPgliteCreateMs: (ms: number | null) => void;
|
|
157
179
|
setProvision: (provision: BootReport["provision"]) => void;
|
|
180
|
+
/**
|
|
181
|
+
* Stamp `storageBackend` (ADR-0049 decision 12) at the client-owned mint seam, derived from the resolved dataDir
|
|
182
|
+
* scheme. Idempotent — the first stamp wins (the mint runs once per boot). Never called on a BYO instance whose
|
|
183
|
+
* backend is underivable, leaving the field absent.
|
|
184
|
+
*/
|
|
185
|
+
setStorageBackend: (backend: NonNullable<BootReport["storageBackend"]>) => void;
|
|
186
|
+
/**
|
|
187
|
+
* Stamp `storageFallbackReason` (ADR-0049 decision 12) — the verbatim reason an opfs-capable boot opened `idbfs`.
|
|
188
|
+
* Called ONLY when such a fallback occurred; a boot that never falls back leaves the field absent. Idempotent —
|
|
189
|
+
* the first stamp wins.
|
|
190
|
+
*/
|
|
191
|
+
setStorageFallbackReason: (reason: string) => void;
|
|
158
192
|
/**
|
|
159
193
|
* Record the durable-schema fast-path outcome (the durable-schema-fingerprint slice): whether replay was
|
|
160
194
|
* skipped and whether the stored fingerprint matched. Both default to the current truth (`false`), so this
|
|
@@ -202,6 +236,11 @@ export interface BootReportInit {
|
|
|
202
236
|
mode: BootReport["mode"];
|
|
203
237
|
freshStore: boolean;
|
|
204
238
|
storeKind: BootReport["storeKind"];
|
|
239
|
+
/**
|
|
240
|
+
* The engine home for this boot (ADR-0049 decision 12), known at boot start. Omitted (`undefined`) when it
|
|
241
|
+
* cannot be derived up front — the finalized report then carries no `engineHome`.
|
|
242
|
+
*/
|
|
243
|
+
engineHome?: BootReport["engineHome"];
|
|
205
244
|
overlapPrefetch: boolean;
|
|
206
245
|
registryFingerprint: string;
|
|
207
246
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boot-report.d.ts","sourceRoot":"","sources":["../src/boot-report.ts"],"names":[],"mappings":"AAeA;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,aAAa,EAAE,CAAC,CAAC;IACjB,qGAAqG;IACrG,IAAI,EAAE,YAAY,GAAG,QAAQ,CAAC;IAC9B,iGAAiG;IACjG,UAAU,EAAE,OAAO,CAAC;IACpB;;;;;;OAMG;IACH,SAAS,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;IACzC,6EAA6E;IAC7E,eAAe,EAAE,OAAO,CAAC;IACzB,+GAA+G;IAC/G,mBAAmB,EAAE,MAAM,CAAC;IAC5B,0GAA0G;IAC1G,SAAS,EAAE,MAAM,CAAC;IAClB,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;;OAIG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,SAAS,EAAE;QACT,uEAAuE;QACvE,QAAQ,EAAE,MAAM,CAAC;QACjB,4EAA4E;QAC5E,uBAAuB,EAAE,MAAM,CAAC;KACjC,GAAG,IAAI,CAAC;IACT,MAAM,EAAE;QACN,gHAAgH;QAChH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;QAC9B,YAAY,EAAE,MAAM,CAAC;QACrB,iBAAiB,EA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,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C;;;OAGG;IACH,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC;;;OAGG;IACH,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,0FAA0F;IAC1F,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,6GAA6G;IAC7G,QAAQ,EAAE,MAAM,UAAU,CAAC;IAC3B,6FAA6F;IAC7F,MAAM,EAAE,MAAM,UAAU,GAAG,IAAI,CAAC;CACjC;AAED,uFAAuF;AACvF,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IACnC;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;IACtC,eAAe,EAAE,OAAO,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,cAAc,GAAG,iBAAiB,CA0H/E"}
|
package/dist/convergence.d.ts
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* This driver is the *scheduling-policy seam*: the app decides WHEN to converge (online?
|
|
6
6
|
* foregrounded? on power?) and how it learns those conditions, while the library owns the
|
|
7
7
|
* convergence pass and the congestion policy (jittered backoff + attempt cap, already in the
|
|
8
|
-
* mutation runtime).
|
|
8
|
+
* mutation runtime). The driver is opt-in: pass nothing to `createSyncClient` and no scheduling policy
|
|
9
|
+
* runs — convergence stays fully manual until the app installs one.
|
|
9
10
|
*
|
|
10
11
|
* A pass is `flush` → `reconcile`. It deliberately does NOT call `retryFailed`: `flush`
|
|
11
12
|
* already re-attempts `failed` mutations whose `next_retry_at_us` backoff has elapsed, so a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convergence.d.ts","sourceRoot":"","sources":["../src/convergence.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"convergence.d.ts","sourceRoot":"","sources":["../src/convergence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,6DAA6D;AAC7D,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAChC;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,sGAAsG;IACtG,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IAChD,sFAAsF;IACtF,cAAc,EAAE,MAAM,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,0FAA0F;IAC1F,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACnC;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB;;;OAGG;IACH,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B;;;;;;;OAOG;IACH,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,wBAAwB,GAAG,iBAAiB,CAsE5F;AAaD;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,GAAE;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,kBAAkB,CAqBzG;AAED;;;;GAIG;AACH,wBAAgB,gCAAgC,CAAC,UAAU,EAAE,MAAM,GAAG,kBAAkB,CAavF"}
|
package/dist/export-store.d.ts
CHANGED
|
@@ -154,7 +154,7 @@ export interface DataExportReport extends ExportReportCommon {
|
|
|
154
154
|
export type ExportReport = StoreBackupReport | DiagnosticDumpReport | DataExportReport;
|
|
155
155
|
/** The artefact + its report — the resolved value of {@link SyncClient.exportStore}. */
|
|
156
156
|
export interface StoreExportResult {
|
|
157
|
-
/** The store-backup tarball as a named `File
|
|
157
|
+
/** The store-backup tarball as a named `File`, restorable by PGlite via `loadDataDir`. */
|
|
158
158
|
file: File;
|
|
159
159
|
/** The structured record of the export (ADR-0035). */
|
|
160
160
|
report: StoreBackupReport;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-store.d.ts","sourceRoot":"","sources":["../src/export-store.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;GAIG;AACH,eAAO,MAAM,KAAK,QAAO,MAA+E,CAAC;AAEzG,kDAAkD;AAClD,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACvC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,CAAC,CAAC;IACjB,4GAA4G;IAC5G,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,6EAA6E;IAC7E,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,mBAAmB,CAAC;CAClC;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D,2CAA2C;IAC3C,IAAI,EAAE,cAAc,CAAC;IACrB,wGAAwG;IACxG,KAAK,EAAE,aAAa,CAAC;IACrB,6FAA6F;IAC7F,WAAW,EAAE,MAAM,GAAG,MAA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