@pgxsinkit/client 0.2.2 → 0.2.4
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/dist/boot-report.d.ts +3 -3
- package/dist/index.d.ts +35 -119
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +259 -392
- package/dist/index.js.map +14 -15
- package/dist/opfs-effects.d.ts +1 -1
- package/dist/store-boot.d.ts +82 -18
- package/dist/store-boot.d.ts.map +1 -1
- package/dist/store-lifecycle.d.ts +5 -66
- package/dist/store-lifecycle.d.ts.map +1 -1
- package/dist/store-meta.d.ts +20 -21
- package/dist/store-meta.d.ts.map +1 -1
- package/dist/worker/attach-sync-client.d.ts +51 -5
- package/dist/worker/attach-sync-client.d.ts.map +1 -1
- package/dist/worker/define-sync-worker.d.ts +1 -12
- package/dist/worker/define-sync-worker.d.ts.map +1 -1
- package/dist/worker/election-coordinator.d.ts.map +1 -1
- package/dist/worker/engine-control.d.ts +13 -0
- package/dist/worker/engine-control.d.ts.map +1 -1
- package/dist/worker/engine-router.d.ts +21 -5
- package/dist/worker/engine-router.d.ts.map +1 -1
- package/package.json +3 -3
- package/skills/core/SKILL.md +3 -2
- package/skills/operating/SKILL.md +40 -8
- package/src/boot-report.ts +3 -3
- package/src/index.ts +159 -486
- package/src/opfs-effects.ts +2 -2
- package/src/store-boot.ts +183 -71
- package/src/store-lifecycle.ts +12 -96
- package/src/store-meta.ts +33 -33
- package/src/worker/attach-sync-client.ts +194 -21
- package/src/worker/define-sync-worker.ts +94 -26
- package/src/worker/election-coordinator.ts +6 -1
- package/src/worker/engine-control.ts +12 -0
- package/src/worker/engine-router.ts +176 -21
- package/dist/adoption.d.ts +0 -118
- package/dist/adoption.d.ts.map +0 -1
- package/src/adoption.ts +0 -275
package/dist/opfs-effects.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface OpfsEffects {
|
|
|
45
45
|
/**
|
|
46
46
|
* Construct the real OPFS effects for a store, all under `store-path.ts`'s disjoint namespaces. The returned
|
|
47
47
|
* object's methods satisfy the idempotency contracts the `store-lifecycle.ts` machines require, so a boot that
|
|
48
|
-
* resumes an interrupted destruction/candidate
|
|
48
|
+
* resumes an interrupted destruction/candidate re-runs them safely.
|
|
49
49
|
*/
|
|
50
50
|
export declare function createOpfsEffects(storePath: string, deps?: OpfsEffectsDeps): OpfsEffects;
|
|
51
51
|
//# sourceMappingURL=opfs-effects.d.ts.map
|
package/dist/store-boot.d.ts
CHANGED
|
@@ -14,10 +14,11 @@ export interface StoreBootResolution {
|
|
|
14
14
|
/** The resolved backend, for diagnostics. */
|
|
15
15
|
storageBackend: ResolvedStorageBackend;
|
|
16
16
|
/**
|
|
17
|
-
* The executed boot verdict
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* run the commitment barrier before exposing that store
|
|
17
|
+
* The executed boot verdict — always a TERMINAL one (the record-clearing verdicts re-classify rather than
|
|
18
|
+
* return). Absent on the passthrough backends (`memory` / `filesystem`), which have NO meta machinery.
|
|
19
|
+
* Present on every browser classification — in particular it is the signal that an opfs CANDIDATE was stood
|
|
20
|
+
* up UNCOMMITTED (`virgin-create`): the mint seam must run the commitment barrier before exposing that store
|
|
21
|
+
* to writes (plan step 10b/11).
|
|
21
22
|
*/
|
|
22
23
|
verdict?: StoreBootVerdict;
|
|
23
24
|
}
|
|
@@ -37,17 +38,78 @@ export interface ResolveStoreBootOptions {
|
|
|
37
38
|
idbExists?: (storePath: string) => Promise<boolean>;
|
|
38
39
|
};
|
|
39
40
|
}
|
|
41
|
+
/** The `detail` tag {@link CommittedStoreUnreachableError} travels under across the worker bridge. */
|
|
42
|
+
export declare const COMMITTED_STORE_UNREACHABLE_CODE = "committed-store-unreachable";
|
|
40
43
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
44
|
+
* The clone-safe wire form of a {@link CommittedStoreUnreachableError}, carried in the EXISTING bridge error
|
|
45
|
+
* `detail` field (the `{ message, name, detail }` shape `serializeError` produces) — no new protocol field.
|
|
46
|
+
* The attach side calls {@link committedStoreUnreachableFromWire} on every bridge error `detail`, so a refusal
|
|
47
|
+
* raised in an engine home reaches the tab as the CLASS, not a name-tagged plain `Error`.
|
|
45
48
|
*/
|
|
46
|
-
export
|
|
49
|
+
export interface CommittedStoreUnreachableWire {
|
|
50
|
+
code: typeof COMMITTED_STORE_UNREACHABLE_CODE;
|
|
51
|
+
storePath: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Thrown when a boot whose engine home holds NO OPFS sync-access grant meets a store whose meta record says
|
|
55
|
+
* `opfs-committed` — the user's real store lives in the OPFS backend, which this home cannot open. Left
|
|
56
|
+
* unguarded that boot opens `idb://<storePath>` instead and MINTS AN EMPTY SIBLING at the same path: the app
|
|
57
|
+
* looks wiped, and any offline writes fork into a store no OPFS-capable boot ever opens. So the boot fails
|
|
58
|
+
* CLOSED, matching the ADR-0050 posture (never a silently different storage mode) and the
|
|
59
|
+
* {@link NonPersistentStoreError} / `StorageDeclarationRefusedError` precedents. There is deliberately no
|
|
60
|
+
* override: a committed store is only reachable from a home that can hold handles.
|
|
61
|
+
*
|
|
62
|
+
* A distinct type — not a bare `Error` — so a caller can `instanceof`-branch it from a genuine boot failure,
|
|
63
|
+
* and it survives the worker bridge AS THAT TYPE: the instance carries the clone-safe {@link
|
|
64
|
+
* CommittedStoreUnreachableWire} `detail` the bridge forwards, and the tab side reconstructs it through
|
|
65
|
+
* {@link committedStoreUnreachableFromWire} (the same tagged-detail pair the execution-limit and relocation
|
|
66
|
+
* errors use). `storePath` is on the instance too, because the remedy is path-addressed. The message names
|
|
67
|
+
* BOTH exits, because a consumer meeting this has to choose between them.
|
|
68
|
+
*/
|
|
69
|
+
export declare class CommittedStoreUnreachableError extends Error {
|
|
70
|
+
readonly code = "committed-store-unreachable";
|
|
71
|
+
readonly storePath: string;
|
|
72
|
+
readonly detail: CommittedStoreUnreachableWire;
|
|
73
|
+
constructor(storePath: string);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Reconstruct a typed {@link CommittedStoreUnreachableError} from a bridge error's `detail`. STRICT shape
|
|
77
|
+
* check: returns `undefined` for anything that is not exactly the `{ code: "committed-store-unreachable",
|
|
78
|
+
* storePath }` wire form (a foreign/absent detail, a wrong code, a missing/non-string path, a non-object), so a
|
|
79
|
+
* different failure is never misclassified as this refusal. The single source of truth for the decoding —
|
|
80
|
+
* every bridge seam calls THIS, never its own shape sniff.
|
|
81
|
+
*/
|
|
82
|
+
export declare function committedStoreUnreachableFromWire(detail: unknown): CommittedStoreUnreachableError | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* The PRE-MINT meta gate every probe-denied (no OPFS sync access) browser boot passes through — one bounded
|
|
85
|
+
* meta read serving both of the record's claims such a boot must honour, before any replacement IDB store is
|
|
86
|
+
* created:
|
|
87
|
+
*
|
|
88
|
+
* - **`opfs-committed` → REFUSE** ({@link CommittedStoreUnreachableError}). This home cannot open the
|
|
89
|
+
* committed store, and minting the idb sibling at the same path would publish an empty store over a
|
|
90
|
+
* populated one. Fail closed; the remedy is a deliberate `destroy()` or a granted engine home.
|
|
91
|
+
* - **`deleting` → complete the handoff.** The old cache is already explicitly destructible; the authority
|
|
92
|
+
* handoff required is to remove the OPFS commitment sentinel and the store directory, then publish
|
|
93
|
+
* `idb-authoritative` before the replacement is exposed. The directory goes NOW, with the rest: the
|
|
94
|
+
* replacement is an idb store for life (the backend is fixed at first mint), so no later OPFS candidate
|
|
95
|
+
* would ever sweep it. Returns `true`.
|
|
96
|
+
* - **`opfs-candidate` → retire the candidate.** An unexposed candidate has no authority (the classifier's own
|
|
97
|
+
* rule), and this home cannot open OPFS at all — so it is retired rather than left standing over the idb
|
|
98
|
+
* store about to be minted: delete the commitment sentinel (a barrier-gap crash can have published one) and
|
|
99
|
+
* the store directory — async OPFS deletion needs no sync-access grant — then publish `idb-authoritative`.
|
|
100
|
+
* Returns `true`.
|
|
101
|
+
* - **Everything else** (no record, `idb-authoritative`, or no meta store at all) → proceed untouched. A
|
|
102
|
+
* no-grant boot is otherwise record-blind by design: the opfs commitment phase machine belongs to the
|
|
103
|
+
* granted lane, and {@link META_STORE_UNAVAILABLE} (no IndexedDB — the Bun/Node filesystem lane) cannot hold
|
|
104
|
+
* a record at all, so there is nothing there to be blind to.
|
|
105
|
+
*
|
|
106
|
+
* An UNREADABLE record propagates ({@link StoreMetaUnreadableError}) — a failed meta read is an error, never
|
|
107
|
+
* "no record" (invariant 12).
|
|
108
|
+
*/
|
|
109
|
+
export declare function resolveDeniedBootAuthority(storePath: string, deps?: ResolveStoreBootOptions["deps"]): Promise<boolean>;
|
|
47
110
|
/**
|
|
48
|
-
* Resolve where a store boots and finish any destructive/candidate
|
|
49
|
-
*
|
|
50
|
-
* EXECUTED:
|
|
111
|
+
* Resolve where a store boots and finish any destructive/candidate work the verdict demands, then return the
|
|
112
|
+
* `dataDir` + `storageBackend` the mint seam opens at. The full plan boot classification 1–6, EXECUTED:
|
|
51
113
|
*
|
|
52
114
|
* - **memory override** → `memory://` passthrough, no classification (the sanctioned test/ephemeral lane has
|
|
53
115
|
* no meta machinery).
|
|
@@ -60,15 +122,17 @@ export declare function recoverDeniedBootDeletion(storePath: string, deps?: Reso
|
|
|
60
122
|
* - `resume-deletion` → complete the destructive lifecycle, then RE-CLASSIFY from the now-clean state
|
|
61
123
|
* (bounded by {@link MAX_DELETION_RECLASSIFY}).
|
|
62
124
|
* - `delete-candidate-and-rebuild` → delete the stale sentinel AND the candidate directory (a barrier-gap
|
|
63
|
-
* crash's sentinel must never survive), then
|
|
125
|
+
* crash's sentinel must never survive) AND the record, then RE-CLASSIFY from the now-recordless state — so
|
|
126
|
+
* an idb store at this path is opened in place rather than shadowed by the rebuild.
|
|
64
127
|
* - `repair-record-then-open-committed` → write `opfs-committed`, then open committed.
|
|
65
128
|
* - `open-committed` → open the committed opfs store (open failures are HARD at mint time; the bounded
|
|
66
|
-
* retries for transient UnknownError-class failures live in the mint seam's factory-call wrapper).
|
|
129
|
+
* retries for transient UnknownError-class failures live in the mint seam's factory-call wrapper). A record
|
|
130
|
+
* already at `opfs-committed` takes the WARM FAST PATH: it is classified straight off the record, so neither
|
|
131
|
+
* the commitment-namespace observation nor the recordless-idb probe runs at all (both are irrelevant to
|
|
132
|
+
* classification 2).
|
|
67
133
|
* - `boot-idb-authoritative` → write `idb-authoritative` FIRST when there is no record yet (recordless idb), then
|
|
68
|
-
* `idb://`.
|
|
69
|
-
*
|
|
70
|
-
* (`opfs-committed` + delete the idb predecessor) → `opfs://`; `teardown-and-restart` tears the candidate
|
|
71
|
-
* down, sets `idb-authoritative`, and boots `idb://` (adoption re-runs later, plan step 11).
|
|
134
|
+
* `idb://`. TERMINAL: a store's backend is fixed at first mint, so an idb store stays idb whatever this
|
|
135
|
+
* boot's capabilities are — the only route to another backend is a deliberate destroy + a fresh boot.
|
|
72
136
|
* - `virgin-create` → with opfs access, {@link beginFreshCandidate} (record `opfs-candidate` BEFORE the
|
|
73
137
|
* directory) → `opfs://` UNCOMMITTED (barrier is step 10b/11); without opfs access, `idb-authoritative` →
|
|
74
138
|
* `idb://`.
|
package/dist/store-boot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store-boot.d.ts","sourceRoot":"","sources":["../src/store-boot.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"store-boot.d.ts","sourceRoot":"","sources":["../src/store-boot.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEzE,OAAO,EAML,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAGnB,MAAM,cAAc,CAAC;AAGtB;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG,eAAe,GAAG,OAAO,GAAG,YAAY,GAAG,QAAQ,CAAC;AAEzF,gHAAgH;AAChH,MAAM,WAAW,mBAAmB;IAClC,uGAAuG;IACvG,OAAO,EAA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;;;;;;;;;GA6BG;AACH,wBAAsB,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CA8IrH"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { StoreMetaPhase } from "./store-meta";
|
|
2
2
|
/**
|
|
3
3
|
* The effects the shared commitment barrier drives, in the one order it always runs them. The barrier is the
|
|
4
|
-
* SINGLE data-before-authority sequence every provenance shares (fresh, restore
|
|
5
|
-
*
|
|
4
|
+
* SINGLE data-before-authority sequence every provenance shares (fresh, restore): the caller has already
|
|
5
|
+
* passed its provenance gate; the barrier makes the data durable, THEN publishes authority.
|
|
6
6
|
*/
|
|
7
7
|
export interface CommitmentBarrierEffects {
|
|
8
8
|
/**
|
|
@@ -28,10 +28,9 @@ export interface CommitmentBarrierEffects {
|
|
|
28
28
|
/**
|
|
29
29
|
* Run the shared commitment barrier (ADR-0049 decision 7): `strictSync()` returns with VFS health good →
|
|
30
30
|
* publish the sentinel → set the `opfs-committed` phase. The caller invokes this ONLY after its provenance
|
|
31
|
-
* gate has passed (fresh: local init/recovery; restore: backup load + restore recovery
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* exposes the store (fresh/restore) or deletes the predecessor (adoption).
|
|
31
|
+
* gate has passed (fresh: local init/recovery; restore: backup load + restore recovery). Any throw propagates
|
|
32
|
+
* and later steps NEVER run — so a failed barrier publishes NOTHING and an uncommitted candidate is never
|
|
33
|
+
* granted authority (invariant 3). After it resolves the caller exposes the store.
|
|
35
34
|
*/
|
|
36
35
|
export declare function runCommitmentBarrier(effects: CommitmentBarrierEffects): Promise<void>;
|
|
37
36
|
/** The effects that stand up a fresh/restore candidate before the commitment barrier commits it. */
|
|
@@ -90,64 +89,4 @@ export declare function resumeDeletion(effects: DestructionEffects): Promise<voi
|
|
|
90
89
|
* machine begins once destruction is authorized and the engine is down.
|
|
91
90
|
*/
|
|
92
91
|
export declare function runDestruction(effects: DestructionEffects): Promise<void>;
|
|
93
|
-
/**
|
|
94
|
-
* The recovery verdict for a store found mid-adoption (phase `adopting`) at boot. Disambiguated purely by
|
|
95
|
-
* whether the commitment sentinel was published before the crash (plan's adoption crash table).
|
|
96
|
-
*/
|
|
97
|
-
export type AdoptionRecoveryVerdict = {
|
|
98
|
-
action: "complete-adoption";
|
|
99
|
-
} | {
|
|
100
|
-
action: "teardown-and-restart";
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* Classify an interrupted adoption purely from the observed sentinel presence (ADR-0049 D7 adoption sequence;
|
|
104
|
-
* plan adoption crash rows). Sentinel present → `complete-adoption` (the commitment barrier had published,
|
|
105
|
-
* so the opfs store is committed); sentinel absent → `teardown-and-restart` (idb remains authoritative — the
|
|
106
|
-
* predecessor is deleted ONLY after commitment, so nothing is lost). This owns RECOVERY only; the full
|
|
107
|
-
* forward adoption transition (pre-expose idb boot, the drain predicate, strict-sync close of the
|
|
108
|
-
* never-exposed engine, phase `adopting`, server bootstrap through the Adoption-bootstrap gate) is plan
|
|
109
|
-
* step 11's wiring.
|
|
110
|
-
*/
|
|
111
|
-
export declare function classifyAdoptionRecovery(obs: {
|
|
112
|
-
sentinelPresent: boolean;
|
|
113
|
-
}): AdoptionRecoveryVerdict;
|
|
114
|
-
/** The effects the adoption completion executor drives (the `complete-adoption` verdict). */
|
|
115
|
-
export interface AdoptionCompletionEffects {
|
|
116
|
-
/** Advance the meta record phase; the executor only ever calls it with `"opfs-committed"`. Idempotency: set-again. */
|
|
117
|
-
setPhase(phase: StoreMetaPhase): Promise<void>;
|
|
118
|
-
/** Delete the idb predecessor now the opfs store is committed. Idempotency required: absent counts as deleted. */
|
|
119
|
-
deleteIdbPredecessor(): Promise<void>;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Complete an adoption whose commitment barrier already published the sentinel (the `complete-adoption`
|
|
123
|
-
* verdict): set `opfs-committed`, then delete the idb predecessor. Ordered committed-flag-BEFORE-deletion so
|
|
124
|
-
* a crash between them re-enters as `opfs-committed` with the idb store lingering — the committed-boot path
|
|
125
|
-
* idempotently finishes the deletion (plan adoption crash row 3). The predecessor is deleted ONLY after
|
|
126
|
-
* commitment, never before (invariant 4 — no silent local-only data loss).
|
|
127
|
-
*/
|
|
128
|
-
export declare function completeAdoption(effects: AdoptionCompletionEffects): Promise<void>;
|
|
129
|
-
/**
|
|
130
|
-
* The per-status row counts of the Mutation journal the drain predicate reads. Names + semantics mirror the
|
|
131
|
-
* canonical journal status machine in `packages/contracts/src/mutation.ts` (`mutationStatusSchema`), but this
|
|
132
|
-
* takes COUNTS as plain input rather than coupling to the journal schema — the predicate is pure and
|
|
133
|
-
* unit-testable without a journal.
|
|
134
|
-
*/
|
|
135
|
-
export interface JournalStatusCounts {
|
|
136
|
-
pending: number;
|
|
137
|
-
sending: number;
|
|
138
|
-
acked: number;
|
|
139
|
-
failed: number;
|
|
140
|
-
quarantined: number;
|
|
141
|
-
conflicted: number;
|
|
142
|
-
rejected: number;
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* The DRAIN PREDICATE (CONTEXT § "Drain predicate"; ADR-0049 D7): the idb store owes nothing to the server
|
|
146
|
-
* iff no row is `pending`, `sending`, `failed`, `quarantined`, or `conflicted`. `acked` and `rejected` rows
|
|
147
|
-
* are PERMITTED — both are settled (rejection is terminal, ADR-0022). Evaluated PRE-EXPOSE in the adoption
|
|
148
|
-
* transition so no mutation can race it. Echo-landing is deliberately NOT required (the opfs successor is
|
|
149
|
-
* rebuilt from the server, which already holds every acked write) — this is weaker than Data export's
|
|
150
|
-
* "drained", which reads local tables.
|
|
151
|
-
*/
|
|
152
|
-
export declare function journalOwesNothing(counts: JournalStatusCounts): boolean;
|
|
153
92
|
//# sourceMappingURL=store-lifecycle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store-lifecycle.d.ts","sourceRoot":"","sources":["../src/store-lifecycle.ts"],"names":[],"mappings":"
|
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MG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAG/E"}
|
package/dist/store-meta.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The one total phase of the store meta record (invariant 12). `deleting` has precedence over everything
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* The one total phase of the store meta record (invariant 12). `deleting` has precedence over everything.
|
|
3
|
+
* There is deliberately NO boolean cross-product (`committed` + `deletionIntent`) — that left precedence
|
|
4
|
+
* ambiguous; the phase is total (CONTEXT § "Store meta record").
|
|
5
5
|
*/
|
|
6
|
-
export type StoreMetaPhase = "idb-authoritative" | "opfs-candidate" | "
|
|
6
|
+
export type StoreMetaPhase = "idb-authoritative" | "opfs-candidate" | "opfs-committed" | "deleting";
|
|
7
7
|
/** One store's meta record: its total {@link StoreMetaPhase} plus a last-write timestamp. */
|
|
8
8
|
export interface StoreMetaRecord {
|
|
9
9
|
phase: StoreMetaPhase;
|
|
@@ -40,8 +40,6 @@ export interface StoreBootObservations {
|
|
|
40
40
|
*/
|
|
41
41
|
export type StoreBootVerdict = {
|
|
42
42
|
action: "resume-deletion";
|
|
43
|
-
} | {
|
|
44
|
-
action: "adoption-recovery";
|
|
45
43
|
} | {
|
|
46
44
|
action: "open-committed";
|
|
47
45
|
} | {
|
|
@@ -54,21 +52,21 @@ export type StoreBootVerdict = {
|
|
|
54
52
|
action: "virgin-create";
|
|
55
53
|
};
|
|
56
54
|
/**
|
|
57
|
-
* The PURE boot classifier — plan boot classification 1–
|
|
55
|
+
* The PURE boot classifier — plan boot classification 1–6 EXACTLY (invariant 12). Total over every phase and
|
|
58
56
|
* every observation combination; no IO. Precedence, in order:
|
|
59
57
|
*
|
|
60
58
|
* 1. `deleting` → `resume-deletion` (precedence over EVERYTHING, including a committed-looking OPFS).
|
|
61
|
-
* 2. `
|
|
62
|
-
* 3. `opfs-committed` → `open-committed` (opfs observations are IRRELEVANT here — the hard-open path handles
|
|
59
|
+
* 2. `opfs-committed` → `open-committed` (opfs observations are IRRELEVANT here — the hard-open path handles
|
|
63
60
|
* any failure, including an unreachable root; a committed store never re-derives its verdict from OPFS).
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
61
|
+
* 3. `opfs-candidate` → `delete-candidate-and-rebuild` (an unexposed candidate has no authority).
|
|
62
|
+
* 4. `idb-authoritative` → `boot-idb-authoritative`.
|
|
63
|
+
* 5. record `undefined`, OPFS observable: `sentinelPresent` → `repair-record-then-open-committed` (sentinel
|
|
67
64
|
* authority — a sentinel-without-record is a real crash state that reads as committed); else a candidate
|
|
68
|
-
* directory without a sentinel → `delete-candidate-and-rebuild`; neither → fall through to
|
|
69
|
-
*
|
|
70
|
-
* `idbStoreExists` → `boot-idb-authoritative` (an existing recordless idb store — NEVER virgin
|
|
71
|
-
* is
|
|
65
|
+
* directory without a sentinel → `delete-candidate-and-rebuild`; neither → fall through to 6.
|
|
66
|
+
* 6. record `undefined` and (OPFS unobservable OR nothing present): the RECORDLESS-IDB CHECK —
|
|
67
|
+
* `idbStoreExists` → `boot-idb-authoritative` (an existing recordless idb store — NEVER virgin). This arm
|
|
68
|
+
* is a TERMINUS: a store's storage backend is fixed at first mint, so an idb store stays idb-authoritative
|
|
69
|
+
* for its whole life. The only route to a different backend is a deliberate destroy + a fresh boot.
|
|
72
70
|
*
|
|
73
71
|
* NOTE (the caller's nuance, not the classifier's): when OPFS is unobservable and the verdict is
|
|
74
72
|
* `virgin-create`, the caller creates an IDB store (a main thread / no-handle scope cannot hold sync-access
|
|
@@ -163,8 +161,9 @@ interface IndexedDbLike {
|
|
|
163
161
|
*/
|
|
164
162
|
export declare function readStoreMetaRecord(storePath: string, deps?: StoreMetaDeps): Promise<StoreMetaRecord | undefined | typeof META_STORE_UNAVAILABLE>;
|
|
165
163
|
/**
|
|
166
|
-
* Write (create or overwrite) a store's meta record —
|
|
167
|
-
*
|
|
164
|
+
* Write (create or overwrite) a store's meta record — written at CREATION for a store minted under the opfs
|
|
165
|
+
* commitment machinery, at the first pass that must write authority for a recordless idb store, and at each
|
|
166
|
+
* phase transition (invariant 12). A no-IDB environment cannot hold a record, so this is a
|
|
168
167
|
* best-effort no-op there (consistent with {@link readStoreMetaRecord} returning {@link META_STORE_UNAVAILABLE}).
|
|
169
168
|
*/
|
|
170
169
|
export declare function writeStoreMetaRecord(storePath: string, record: StoreMetaRecord, deps?: StoreMetaDeps): Promise<void>;
|
|
@@ -172,9 +171,9 @@ export declare function writeStoreMetaRecord(storePath: string, record: StoreMet
|
|
|
172
171
|
export declare function deleteStoreMetaRecord(storePath: string, deps?: StoreMetaDeps): Promise<void>;
|
|
173
172
|
/**
|
|
174
173
|
* Does PGlite's idb database for this store ALREADY exist, WITHOUT creating it? The recordless-idb recognition
|
|
175
|
-
* check (invariant 14): no meta record + an existing idb store → `idb-authoritative`, never virgin.
|
|
176
|
-
*
|
|
177
|
-
*
|
|
174
|
+
* check (invariant 14): no meta record + an existing idb store → `idb-authoritative`, never virgin. An
|
|
175
|
+
* existing idb store's data is never overwritten by a fresh opfs mint — it is opened IN PLACE, whatever the
|
|
176
|
+
* booting home's capabilities, because a store's storage backend is fixed at first mint.
|
|
178
177
|
*
|
|
179
178
|
* Technique (per ADR-0049 D6 — NEVER `indexedDB.databases()`, which is absent on some engines): open the
|
|
180
179
|
* database with NO version. If `onupgradeneeded` fires, the database did NOT exist — flag it and ABORT the
|
package/dist/store-meta.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store-meta.d.ts","sourceRoot":"","sources":["../src/store-meta.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"store-meta.d.ts","sourceRoot":"","sources":["../src/store-meta.ts"],"names":[],"mappings":"AA0BA;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,UAAU,CAAC;AAEpG,6FAA6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class ElectedEngineUnconstructibleError extends Error {
|
|
76
76
|
constructor(detail: string);
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* A {@link provisionSyncWorker} that never settled inside its bounded window (`provisionExpiryMs`, default 60000).
|
|
80
|
+
* The provision's three ordinary outcomes all depend on the SharedWorker connection being alive — the
|
|
81
|
+
* `provision-ack`, a storage-declaration refusal, an unconstructible elected engine — so a connection that DIES
|
|
82
|
+
* before any of them (the SharedWorker crashed, its port was never serviced, the elected engine never came up)
|
|
83
|
+
* would otherwise leave the caller pending FOREVER. The deadline settles it loudly instead.
|
|
84
|
+
*
|
|
85
|
+
* The guarantee is narrow, deliberately: it bounds THIS CALLER'S promise. What becomes of the worker-side create
|
|
86
|
+
* attempt is decided by PLACEMENT, and the two homes differ:
|
|
87
|
+
*
|
|
88
|
+
* - **SW-direct.** The attempt lives in the SharedWorker and is left running (an in-flight store open cannot be
|
|
89
|
+
* safely abandoned — a second open against the same store is an ownership conflict). A later
|
|
90
|
+
* {@link attachSyncClient} ADOPTS it if it completed and WAITS on it if it is genuinely stuck; a retried
|
|
91
|
+
* provision re-acks against the SAME attempt, so a second open never starts. A stuck storage open blocks that
|
|
92
|
+
* store whether or not it was ever provisioned, and expiring this promise neither causes nor cures that.
|
|
93
|
+
* - **Elected.** This deadline is ALSO the provision claim's expiry, so the claim releases here too. When it is
|
|
94
|
+
* the LAST claim on the store's coordinator, that release runs last-claim retirement (`engine-retiring` →
|
|
95
|
+
* `engine-teardown` → terminate), taking the elected engine and the attempt inside it — agent termination
|
|
96
|
+
* releases the VFS ownership — and the next attach elects a FRESH engine that opens the store again. An attach
|
|
97
|
+
* that adopted the coordinator BEFORE the expiry holds its own claim, which keeps the engine (and its attempt)
|
|
98
|
+
* alive: the SW-direct adopt-or-wait shape then applies here too.
|
|
99
|
+
*
|
|
100
|
+
* `[pgxsinkit]`-prefixed like the repo's other typed errors so a consumer can `instanceof`-branch it.
|
|
101
|
+
*/
|
|
102
|
+
export declare class ProvisionExpiredError extends Error {
|
|
103
|
+
/** The store whose provision expired — the `storePath` the call was made for. */
|
|
104
|
+
readonly storePath: string;
|
|
105
|
+
/** The window that elapsed without a settlement, in ms (the effective `provisionExpiryMs`). */
|
|
106
|
+
readonly expiryMs: number;
|
|
107
|
+
constructor(storePath: string, expiryMs: number);
|
|
108
|
+
}
|
|
78
109
|
/**
|
|
79
110
|
* Build the REAL {@link DestructionEffects} for a store — the OPFS commitment sentinel + store directory
|
|
80
111
|
* (`opfs-effects.ts`), the meta record (`store-meta.ts`), and the PGlite idb database. The destruction machine is
|
|
@@ -356,10 +387,21 @@ export declare function attachSyncClient<const TRegistry extends SyncTableRegist
|
|
|
356
387
|
/** {@link provisionSyncWorker} options — attach's transport/store/factory seams, plus the provision expiry. */
|
|
357
388
|
export type ProvisionSyncWorkerOptions<TRegistry extends SyncTableRegistry> = Pick<AttachSyncClientOptions<TRegistry>, "worker" | "port" | "storeId" | "storePath" | "storage" | "codec" | "createEngineWorker" | "electionIo" | "awaitOwnershipRelease" | "timers"> & {
|
|
358
389
|
/**
|
|
359
|
-
*
|
|
360
|
-
*
|
|
390
|
+
* The provision's ONE bounded window (ms), default 60000. It governs two things at the same deadline:
|
|
391
|
+
*
|
|
392
|
+
* - **The returned promise, in BOTH modes.** A provision that has not settled by then rejects with the typed
|
|
393
|
+
* {@link ProvisionExpiredError} — never a promise that hangs forever behind a dead SharedWorker connection.
|
|
394
|
+
* It bounds the PROMISE; the worker-side create attempt follows the placement split (see
|
|
395
|
+
* {@link ProvisionExpiredError}).
|
|
396
|
+
* - **The elected-mode claim** (and its shared-coordinator ref): an abandoned warmed provision auto-retires
|
|
397
|
+
* (ADR-0049 step 8, "abandoned warmed provision → claim expiry"). Releasing the LAST claim runs last-claim
|
|
398
|
+
* retirement — notice, teardown, terminate — so the elected engine, and any create still open inside it, goes
|
|
399
|
+
* with the claim. Inert on SW-direct, which elects nothing.
|
|
400
|
+
*
|
|
361
401
|
* A later {@link attachSyncClient} on the same store ADOPTS the grant within this window (adding its own claim,
|
|
362
|
-
* so the engine outlives the expiry).
|
|
402
|
+
* so the engine outlives the expiry). After an expiry that attach meets what the placement left it: an
|
|
403
|
+
* SW-direct attempt is still there to adopt or wait on — expiring the promise never frees a stuck store —
|
|
404
|
+
* while a retired elected engine is replaced by a fresh election that opens the store again.
|
|
363
405
|
*/
|
|
364
406
|
provisionExpiryMs?: number;
|
|
365
407
|
};
|
|
@@ -367,8 +409,12 @@ export type ProvisionSyncWorkerOptions<TRegistry extends SyncTableRegistry> = Pi
|
|
|
367
409
|
* Pre-spawn a worker's store WITHOUT attaching (ADR-0032 decision 5). Sent at the board's login screen against a
|
|
368
410
|
* freshly-named spare `SharedWorker`: the worker runs PGlite `create`/initdb only and holds the raw store idle
|
|
369
411
|
* until the real {@link attachSyncClient} claim adopts it. Resolves when the worker acks the provision (its initdb
|
|
370
|
-
* settled); rejects
|
|
371
|
-
*
|
|
412
|
+
* settled); rejects if the worker reports the create failed, if it refuses the storage declaration, if the elected
|
|
413
|
+
* engine is unconstructible, or — bounding the whole thing — with {@link ProvisionExpiredError} once
|
|
414
|
+
* `provisionExpiryMs` (default 60000) elapses without any of those. The caller treats every outcome as
|
|
415
|
+
* best-effort: a provision that fails or expires costs the accelerator, not the boot — the attach that follows
|
|
416
|
+
* meets whatever the worker actually opened (an expiry bounds THIS promise; the worker-side create attempt is
|
|
417
|
+
* kept or retired by the placement — see {@link ProvisionExpiredError}).
|
|
372
418
|
*
|
|
373
419
|
* Routed through the SAME placement-query-first flow as {@link attachSyncClient} (ADR-0049 step 8): a SW-direct
|
|
374
420
|
* (or declared-idbfs) SharedWorker takes the `provision` bridge envelope on the SW port; a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attach-sync-client.d.ts","sourceRoot":"","sources":["../../src/worker/attach-sync-client.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAEV,iBAAiB,EACjB,sBAAsB,EAEtB,iBAAiB,EAElB,MAAM,sBAAsB,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;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,CAAC,SAAS,SAAS,iBAAiB,IAAI,UAAU,CAAC,SAAS,CAAC,GAAG;IAC5F,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B;;;;OAIG;IACH,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CACtC,CAAC;AA8NF,wBAAsB,gBAAgB,CAAC,KAAK,CAAC,SAAS,SAAS,iBAAiB,EAC9E,OAAO,EAAE,uBAAuB,CAAC,SAAS,CAAC,GAC1C,OAAO,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAo7CxC;AAED,+GAA+G;AAC/G,MAAM,MAAM,0BAA0B,CAAC,SAAS,SAAS,iBAAiB,IAAI,IAAI,CAChF,uBAAuB,CAAC,SAAS,CAAC,EAChC,QAAQ,GACR,MAAM,GACN,SAAS,GACT,WAAW,GACX,SAAS,GACT,OAAO,GACP,oBAAoB,GACpB,YAAY,GACZ,uBAAuB,GACvB,QAAQ,CACX,GAAG;IACF;;;;;;;;;;;;;;;;OAgBG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,SAAS,SAAS,iBAAiB,EAC3E,OAAO,EAAE,0BAA0B,CAAC,SAAS,CAAC,GAC7C,OAAO,CAAC,IAAI,CAAC,CAqMf"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SyncStorageDeclaration, SyncTableRegistry } from "@pgxsinkit/contracts";
|
|
2
|
-
import { type
|
|
2
|
+
import { type ClientPGlite, type CreateSyncClientOptions, type SyncClient } from "../index";
|
|
3
3
|
import { type PlacementProbeResult } from "../placement-probe";
|
|
4
4
|
import { type ExecutionLimitConfig } from "./engine-control";
|
|
5
5
|
import { type BridgeCodec, type BridgePort } from "./protocol";
|
|
@@ -26,17 +26,6 @@ export interface DefineSyncWorkerOptions<TRegistry extends SyncTableRegistry> {
|
|
|
26
26
|
* Takes a plain store PATH (ADR-0036); the internal `backendOverride` is the test lane's memory selection.
|
|
27
27
|
*/
|
|
28
28
|
createPglite?: (storePath: string, backendOverride?: "memory") => Promise<ClientPGlite>;
|
|
29
|
-
/**
|
|
30
|
-
* ADR-0049 (capability-driven engine placement) decision 7, plan step 11b: the consumer's explicit
|
|
31
|
-
* reconstructibility DECLARATION authorizing AUTOMATIC adoption of an existing idb-authoritative store into a
|
|
32
|
-
* committed OPFS successor. A worker-ENTRY option (baked into the worker file as code, like
|
|
33
|
-
* {@link executionLimit}), NEVER an attach option — a tab cannot set it (adoption DELETES local-only data, so
|
|
34
|
-
* only the code author may authorize it). Forwarded verbatim to the {@link createSyncClient} boot below. DEFAULT
|
|
35
|
-
* OFF (`undefined`): hook absence is never authority — only `"server-reconstructible"` (or the manual
|
|
36
|
-
* `adoptStore` API) authorizes deleting the idb predecessor. Honoured only where the engine home grants OPFS
|
|
37
|
-
* access (SW-direct / elected placement); inert on the browser-idb fallback where there is no opfs successor.
|
|
38
|
-
*/
|
|
39
|
-
adoption?: AdoptionDeclaration;
|
|
40
29
|
electricUrl: string;
|
|
41
30
|
batchWriteUrl: string;
|
|
42
31
|
/** Static headers on every read + write request (e.g. a gateway `apikey`). See `createSyncClient`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-sync-worker.d.ts","sourceRoot":"","sources":["../../src/worker/define-sync-worker.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAGV,sBAAsB,EAEtB,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAa9B,OAAO,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"define-sync-worker.d.ts","sourceRoot":"","sources":["../../src/worker/define-sync-worker.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAGV,sBAAsB,EAEtB,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAa9B,OAAO,EACL,KAAK,YAAY,EAEjB,KAA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AAE,MAAM,CAAC;IAClB,yDAAyD;IACzD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,6FAA6F;IAC7F,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gFAAgF;IAChF,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAClC;wFACoF;IACpF,iBAAiB,CAAC,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,IAAI,CAAC;IAC5D,gFAAgF;IAChF,cAAc,IAAI,MAAM,IAAI,CAAC;IAC7B,yDAAyD;IACzD,QAAQ,IAAI,OAAO,CAAC;IACpB,0DAA0D;IAC1D,SAAS,IAAI,OAAO,CAAC;IACrB;;;;;;;OAOG;IACH,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B;AAuBD,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,0BAA0B,GAClC,mBAAmB,CAgUrB"}
|
|
@@ -113,6 +113,19 @@ export type EngineControlMessage =
|
|
|
113
113
|
type: "connect-port";
|
|
114
114
|
identity: EngineIdentity;
|
|
115
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* elected engine → SharedWorker: the engine's control plane RECEIVED a `connect-port` for this identity —
|
|
118
|
+
* the ENGINE-LIVENESS proof the router's bounded ack window waits for. Emitted immediately on receipt, before
|
|
119
|
+
* the pipe is used for anything, because it answers one question only: does the engine's realm still exist?
|
|
120
|
+
* (Under `extendedLifetime` the SharedWorker outlives the tab that spawned the dedicated engine, so a
|
|
121
|
+
* registered engine can be a corpse; where the MessagePort `close` event is unsupported this ack is the only
|
|
122
|
+
* signal available.) Deliberately its OWN type rather than a `control-ack`: the router relays unmatched
|
|
123
|
+
* `control-ack`s to tabs as the teardown-ack, so reusing it would leak into a coordinator's teardown wait.
|
|
124
|
+
*/
|
|
125
|
+
| {
|
|
126
|
+
type: "connect-port-ack";
|
|
127
|
+
identity: EngineIdentity;
|
|
128
|
+
}
|
|
116
129
|
/**
|
|
117
130
|
* A liveness probe request. Used BOTH as a tab↔SharedWorker keepalive (the leader keepalive) AND as a
|
|
118
131
|
* SharedWorker↔engine control-channel probe (the execution-limit path). `pingId` correlates the ack.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-control.d.ts","sourceRoot":"","sources":["../../src/worker/engine-control.ts"],"names":[],"mappings":"AAYA,+EAA+E;AAC/E,eAAO,MAAM,2BAA2B,EAAG,SAAkB,CAAC;AAE9D,yFAAyF;AACzF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,oBAAoB,GAAG;IAClE,CAAC,2BAA2B,CAAC,EAAE,oBAAoB,CAAC;CACrD,CAEA;AAED,8FAA8F;AAC9F,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,oBAAoB,GAAG,SAAS,CAMnF;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,mGAAmG;IACnG,YAAY,EAAE,MAAM,CAAC;IACrB,kGAAkG;IAClG,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,+FAA+F;AAC/F,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,cAAc,GAAG,OAAO,CAElF;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,cAAc,GAAG,OAAO,CAExF;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,cAAc,GAAG,cAAc,CAGlG;AAID;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB;AAE9B;;;;GAIG;AACD;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE;AAC5B;;;;;GAKG;GACD;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE;AAC7B;;;;;;;GAOG;GACD;IAAE,IAAI,EAA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