@rotorsoft/act 1.32.14 → 1.32.15
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/.tsbuildinfo +1 -1
- package/dist/@types/act.d.ts +98 -152
- package/dist/@types/act.d.ts.map +1 -1
- package/dist/@types/adapters/in-memory-store.d.ts +3 -3
- package/dist/@types/adapters/in-memory-store.d.ts.map +1 -1
- package/dist/@types/builders/act-builder.d.ts +3 -3
- package/dist/@types/builders/act-builder.d.ts.map +1 -1
- package/dist/@types/builders/build-classify.d.ts +1 -1
- package/dist/@types/builders/builder-base.d.ts +3 -3
- package/dist/@types/builders/builder-utils.d.ts +1 -1
- package/dist/@types/builders/event-builder.d.ts +1 -1
- package/dist/@types/builders/merge.d.ts +1 -1
- package/dist/@types/builders/reaction-builder.d.ts +1 -1
- package/dist/@types/builders/slice-builder.d.ts +2 -2
- package/dist/@types/builders/state-builder.d.ts +3 -4
- package/dist/@types/builders/state-builder.d.ts.map +1 -1
- package/dist/@types/csv.d.ts +1 -1
- package/dist/@types/disposers.d.ts.map +1 -1
- package/dist/@types/internal/audit.d.ts +12 -42
- package/dist/@types/internal/audit.d.ts.map +1 -1
- package/dist/@types/internal/autoclose-policy.d.ts +3 -3
- package/dist/@types/internal/autoclose-reaction.d.ts +2 -2
- package/dist/@types/internal/autoclose-window.d.ts +1 -1
- package/dist/@types/internal/close-cycle.d.ts +10 -31
- package/dist/@types/internal/close-cycle.d.ts.map +1 -1
- package/dist/@types/internal/close-signal.d.ts +3 -3
- package/dist/@types/internal/config.d.ts +3 -3
- package/dist/@types/internal/config.d.ts.map +1 -1
- package/dist/@types/internal/correlate-cycle.d.ts +39 -86
- package/dist/@types/internal/correlate-cycle.d.ts.map +1 -1
- package/dist/@types/internal/correlator.d.ts +1 -1
- package/dist/@types/internal/date-reviver.d.ts +1 -1
- package/dist/@types/internal/defer-config.d.ts +2 -2
- package/dist/@types/internal/defer-signal.d.ts +2 -2
- package/dist/@types/internal/defer-timer.d.ts +3 -3
- package/dist/@types/internal/drain-cycle.d.ts +35 -82
- package/dist/@types/internal/drain-cycle.d.ts.map +1 -1
- package/dist/@types/internal/event-sourcing.d.ts +8 -19
- package/dist/@types/internal/event-sourcing.d.ts.map +1 -1
- package/dist/@types/internal/event-versions.d.ts +1 -1
- package/dist/@types/internal/projection-fold.d.ts +2 -2
- package/dist/@types/internal/report-once.d.ts +3 -3
- package/dist/@types/internal/sensitive.d.ts +2 -2
- package/dist/@types/internal/settle.d.ts +6 -19
- package/dist/@types/internal/settle.d.ts.map +1 -1
- package/dist/@types/ports.d.ts +3 -3
- package/dist/@types/scoped.d.ts +6 -6
- package/dist/@types/scoped.d.ts.map +1 -1
- package/dist/@types/types/action.d.ts +19 -19
- package/dist/@types/types/audit.d.ts +1 -1
- package/dist/@types/types/ports.d.ts +22 -26
- package/dist/@types/types/ports.d.ts.map +1 -1
- package/dist/@types/types/reaction.d.ts +8 -8
- package/dist/@types/types/registry.d.ts +1 -1
- package/dist/@types/types/schemas.d.ts +2 -2
- package/dist/@types/utils.d.ts +1 -1
- package/dist/{chunk-FVJFR7GH.js → chunk-JRTZGWVS.js} +1 -1
- package/dist/chunk-JRTZGWVS.js.map +1 -0
- package/dist/{chunk-JPPO3LZ3.js → chunk-PZP5ZEZ4.js} +9 -9
- package/dist/chunk-PZP5ZEZ4.js.map +1 -0
- package/dist/index.cjs +136 -358
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +131 -353
- package/dist/index.js.map +1 -1
- package/dist/test/index.cjs +7 -7
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.js +2 -2
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-FVJFR7GH.js.map +0 -1
- package/dist/chunk-JPPO3LZ3.js.map +0 -1
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* The loaded snapshot carries its own head position (`version` and the
|
|
21
21
|
* global event `id`), captured atomically with `state`, so the engine
|
|
22
22
|
* never pairs a stale state with a newer head id read separately from
|
|
23
|
-
* the cache
|
|
23
|
+
* the cache. Fetched events at or below the loaded id are
|
|
24
24
|
* skipped, later ones fold through the state's own patch reducers.
|
|
25
25
|
* - Eviction under `maxCachedStates` pressure flushes the evictee first
|
|
26
26
|
* (flush-before-evict) — eviction never loses folded work.
|
|
@@ -30,7 +30,7 @@ import type { FoldConfig } from "./config.js";
|
|
|
30
30
|
import { type PatchFn } from "./event-sourcing.js";
|
|
31
31
|
/**
|
|
32
32
|
* Internal handle a fold handler exposes so the orchestrator can drop its
|
|
33
|
-
* process-local state
|
|
33
|
+
* process-local state.
|
|
34
34
|
*
|
|
35
35
|
* A rebuild must not trust a per-Act cache: `reset` rewinds the watermark and
|
|
36
36
|
* replays from the beginning, and every replayed event is at or below the
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
* A resolved target is the trap: the documented per-aggregate shape is
|
|
23
23
|
* `.to(e => ({target: e.stream}))`, so a target-keyed report dedups nothing
|
|
24
24
|
* across aggregates and one typo scales into one line per aggregate — the
|
|
25
|
-
* unbounded volume this module exists to prevent
|
|
25
|
+
* unbounded volume this module exists to prevent. Runtime values
|
|
26
26
|
* still belong in the *message*, as the concrete example that turns "a
|
|
27
27
|
* reaction misdeclared its lane" into something an operator can go look at.
|
|
28
28
|
*
|
|
29
|
-
* Never throws. A throw inside correlate pins the checkpoint for the whole app
|
|
30
|
-
*
|
|
29
|
+
* Never throws. A throw inside correlate pins the checkpoint for the whole app;
|
|
30
|
+
* inside drain it reaches the circuit breaker as a store failure and
|
|
31
31
|
* stalls every stream.
|
|
32
32
|
*
|
|
33
33
|
* @internal
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @module sensitive
|
|
3
3
|
* @category Internal
|
|
4
4
|
*
|
|
5
|
-
* Internal mechanics for the sensitive-data foundation
|
|
5
|
+
* Internal mechanics for the sensitive-data foundation.
|
|
6
6
|
* The public surface (`sensitive(zodType)`) lives at `libs/act/src/sensitive.ts`
|
|
7
7
|
* and re-exports `REDACTED` / `SHREDDED` from here; this module holds the
|
|
8
8
|
* registry plus the helpers the orchestrator calls during commit, load, and
|
|
@@ -74,7 +74,7 @@ export declare function _mark_sensitive(schema: z.ZodType): void;
|
|
|
74
74
|
*
|
|
75
75
|
* A union event has no top-level shape, so the options are walked and merged:
|
|
76
76
|
* a key sensitive in any variant must be split, because the stored payload
|
|
77
|
-
* could be that variant
|
|
77
|
+
* could be that variant.
|
|
78
78
|
* The first variant to declare a key wins, which only matters to a caller that
|
|
79
79
|
* wants the schema rather than the name.
|
|
80
80
|
*
|
|
@@ -32,7 +32,7 @@ export type SettleDeps<TEvents extends Schemas> = {
|
|
|
32
32
|
readonly drain: (options: DrainOptions) => Promise<Drain<TEvents>>;
|
|
33
33
|
readonly on_settled: (drain: Drain<TEvents>) => void;
|
|
34
34
|
/**
|
|
35
|
-
* Shared orchestrator circuit breaker
|
|
35
|
+
* Shared orchestrator circuit breaker. The settle loop's
|
|
36
36
|
* `correlate` (subscribe + query) is a store consumer too: a successful
|
|
37
37
|
* pass records `passed()`, a failed one `failed(now, err)` — feeding the
|
|
38
38
|
* same breaker that paces the drain loop, which also surfaces the failure
|
|
@@ -50,26 +50,13 @@ export declare class SettleLoop<TEvents extends Schemas> {
|
|
|
50
50
|
private _timer;
|
|
51
51
|
private _running;
|
|
52
52
|
/**
|
|
53
|
-
* Resolves when the cycle
|
|
54
|
-
*
|
|
55
|
-
* re-arm bookkeeping; this answers "tell me when it is done" for a
|
|
56
|
-
* graceful shutdown.
|
|
57
|
-
*
|
|
58
|
-
* `stop()` only cancels *scheduling* — a cycle already inside its
|
|
59
|
-
* correlate → drain loop keeps going, and because `DrainController.drain`
|
|
60
|
-
* does not consult `_stopped`, it can claim a stream after teardown
|
|
61
|
-
* returned and after the store adapter was disposed. Never rejects: the
|
|
62
|
-
* cycle's own `catch` contains its errors, so awaiting this is safe.
|
|
53
|
+
* Resolves when the cycle in flight finishes, so shutdown can wait for
|
|
54
|
+
* it (`stop()` cancels scheduling only). Never rejects.
|
|
63
55
|
*/
|
|
64
56
|
private _inflight;
|
|
65
57
|
/**
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* the wake-up isn't dropped — a commit landing during the final
|
|
69
|
-
* no-progress drain pass would otherwise leave armed controllers with
|
|
70
|
-
* nothing to re-drain on an instance with no lane `cycleMs` and no
|
|
71
|
-
* polling. Carries the options of the dropped call so the re-armed
|
|
72
|
-
* pass honors its `debounceMs`/`maxPasses`/drain overrides.
|
|
58
|
+
* A wake-up that fired while a cycle was running. The running cycle's
|
|
59
|
+
* `finally` schedules one more pass with these options, so it isn't lost.
|
|
73
60
|
*/
|
|
74
61
|
private _pending;
|
|
75
62
|
private readonly _deps;
|
|
@@ -85,7 +72,7 @@ export declare class SettleLoop<TEvents extends Schemas> {
|
|
|
85
72
|
*/
|
|
86
73
|
schedule(options?: SettleOptions): void;
|
|
87
74
|
/**
|
|
88
|
-
* The cycle currently in flight, or `undefined` when idle
|
|
75
|
+
* The cycle currently in flight, or `undefined` when idle. A
|
|
89
76
|
* graceful shutdown awaits this alongside the drain controllers so a
|
|
90
77
|
* settle parked in `correlate` does not resume after teardown.
|
|
91
78
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settle.d.ts","sourceRoot":"","sources":["../../../src/internal/settle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EACV,KAAK,EACL,YAAY,EACZ,KAAK,EACL,OAAO,EACP,aAAa,EACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,CAAC,OAAO,SAAS,OAAO,IAAI;IAChD,QAAQ,CAAC,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,QAAQ,CAAC,UAAU,EAAE,MAAM,MAAM,CA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ACzE,QAAQ,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IACnE,QAAQ,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACrD;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;CAClC,CAAC;AAEF;;;;;GAKG;AACH,qBAAa,UAAU,CAAC,OAAO,SAAS,OAAO;IAC7C,OAAO,CAAC,MAAM,CAAwD;IACtE,OAAO,CAAC,QAAQ,CAAS;IACzB;;;OAGG;IACH,OAAO,CAAC,SAAS,CAA4B;IAC7C;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAAwC;IACxD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAsB;IAC5C,+FAA+F;IAC/F,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAS;IAE9C,YAAY,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,mBAAmB,EAAE,MAAM,EAGjE;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,GAAE,aAAkB,GAAG,IAAI,CA2F1C;IAED;;;;OAIG;IACH,IAAI,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAExC;IAED,6DAA6D;IAC7D,IAAI,IAAI,IAAI,CAQX;CACF"}
|
package/dist/@types/ports.d.ts
CHANGED
|
@@ -96,7 +96,7 @@ export declare const cache: (adapter?: Cache) => Cache;
|
|
|
96
96
|
*
|
|
97
97
|
* Every Act entering a frame is what keeps its ports its own. Without one, a
|
|
98
98
|
* shared Act called from inside a tenant's handler inherited that tenant's
|
|
99
|
-
* frame and committed to the tenant's store
|
|
99
|
+
* frame and committed to the tenant's store.
|
|
100
100
|
*
|
|
101
101
|
* The properties are getters on purpose. The adapters are resolved lazily and
|
|
102
102
|
* injected after `act().build()` in the normal case — `store(new PgStore())`
|
|
@@ -111,7 +111,7 @@ export declare const default_scope: () => Scoped;
|
|
|
111
111
|
/**
|
|
112
112
|
* Registered cleanup functions live in `disposers.ts`, which holds
|
|
113
113
|
* lifetime-bound entries weakly so registering never pins its target for the
|
|
114
|
-
* process lifetime
|
|
114
|
+
* process lifetime. The public surface here is unchanged.
|
|
115
115
|
*/
|
|
116
116
|
/**
|
|
117
117
|
* Disposes all registered adapters and disposers, then exits the process.
|
|
@@ -170,7 +170,7 @@ export declare const SNAP_EVENT = "__snapshot__";
|
|
|
170
170
|
export declare const TOMBSTONE_EVENT = "__tombstone__";
|
|
171
171
|
/**
|
|
172
172
|
* Name of the implicit lane every reaction lands in unless its `.to({lane})`
|
|
173
|
-
* declaration says otherwise
|
|
173
|
+
* declaration says otherwise. Acts that don't call
|
|
174
174
|
* `.withLane(...)` see only this lane, and behavior is identical to
|
|
175
175
|
* pre-1103 single-controller drain.
|
|
176
176
|
*
|
package/dist/@types/scoped.d.ts
CHANGED
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
* Two contexts:
|
|
11
11
|
*
|
|
12
12
|
* - **ports** — the active Act's store/cache bag, so `store()` / `cache()`
|
|
13
|
-
* resolve per-Act rather than per-process
|
|
13
|
+
* resolve per-Act rather than per-process. Installed by the
|
|
14
14
|
* orchestrator via {@link make_run_scoped}, read by the port singletons
|
|
15
15
|
* via {@link current_ports}.
|
|
16
16
|
* - **reaction** — the event a handler is processing, so a dispatch made
|
|
17
17
|
* anywhere inside that handler can thread `reactingTo` whichever `IAct`
|
|
18
|
-
* reference made the call
|
|
18
|
+
* reference made the call. Installed via {@link run_reacting},
|
|
19
19
|
* read at the orchestrator boundary via {@link current_reacting}.
|
|
20
20
|
*
|
|
21
21
|
* Keeping the mechanics here keeps ambient state out of `internal/`, whose
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
*/
|
|
26
26
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
27
27
|
import type { Actor, Cache, Committed, IAct, Schemas, Store } from "./types/index.js";
|
|
28
|
-
/** Per-Act ports bag
|
|
28
|
+
/** Per-Act ports bag. Both required together — a shared cache across stores would collide on stream keys. */
|
|
29
29
|
export type Scoped = {
|
|
30
30
|
readonly store: Store;
|
|
31
31
|
readonly cache: Cache;
|
|
@@ -38,7 +38,7 @@ export type Scoped = {
|
|
|
38
38
|
* `autoclose_window` is here because the autoclose reactions are
|
|
39
39
|
* synthesized once into the shared registry and handed by reference to
|
|
40
40
|
* every Act built from that builder, so a window captured at synthesis is
|
|
41
|
-
* the first tenant's window for everyone
|
|
41
|
+
* the first tenant's window for everyone. The frame is per-Act, so
|
|
42
42
|
* reading it here is what makes the setting per-Act too.
|
|
43
43
|
*
|
|
44
44
|
* Wider than {@link Scoped} on purpose: `Scoped` types what a caller
|
|
@@ -72,7 +72,7 @@ export declare const scoped: AsyncLocalStorage<ActFrame>;
|
|
|
72
72
|
* collapsed to `fn()` for a singleton Act did not leave whatever frame it was
|
|
73
73
|
* called from, so dispatching into a shared Act from inside a tenant's handler
|
|
74
74
|
* resolved `store()` to that tenant and wrote the shared Act's events into the
|
|
75
|
-
* tenant's log
|
|
75
|
+
* tenant's log.
|
|
76
76
|
*
|
|
77
77
|
* @internal
|
|
78
78
|
*/
|
|
@@ -83,7 +83,7 @@ export declare function make_run_scoped(bag: ActFrame): <T>(fn: () => Promise<T>
|
|
|
83
83
|
*
|
|
84
84
|
* Read at resolution time rather than captured at synthesis: the autoclose
|
|
85
85
|
* reactions belong to the shared registry, and only the frame knows which
|
|
86
|
-
* Act is running them
|
|
86
|
+
* Act is running them.
|
|
87
87
|
*
|
|
88
88
|
* @internal
|
|
89
89
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scoped.d.ts","sourceRoot":"","sources":["../../src/scoped.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EACV,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C,OAAO,EAAE,MAAM,CAAC,GAAG,SAAS,CAEzE;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,aAAa,CACvB,OAAO,SAAS,OAAO,EACvB,QAAQ,SAAS,OAAO,EACxB,MAAM,SAAS,KAAK,GAAG,KAAK,IAC1B;IACF,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC9C,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,EACd,KAAK,EAAE,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,EACjC,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,KACjB,OAAO,CAAC,CAAC,CAAC,CAAC;CACjB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,SAAS,OAAO,EACvB,QAAQ,SAAS,OAAO,EACxB,MAAM,SAAS,KAAK,GAAG,KAAK,EAE5B,GAAG,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,GACnC,aAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,CAE1C"}
|
|
@@ -123,7 +123,7 @@ export type CommittedMeta = z.infer<typeof CommittedMetaSchema>;
|
|
|
123
123
|
* caller owns that eligibility: `load()` requests `with_snaps` only
|
|
124
124
|
* for a current-state read and drops it under any `asOf` bound, so a
|
|
125
125
|
* time-travel read full-scans under its filter rather than jumping to
|
|
126
|
-
* a snapshot outside the window
|
|
126
|
+
* a snapshot outside the window. Do not combine `with_snaps`
|
|
127
127
|
* with `before`/`created_*`/`limit` in a direct `query()` call.
|
|
128
128
|
* @property `with_pii?` - Whether the store should produce the sensitive
|
|
129
129
|
* payload. Defaults to **true**, which is today's behavior: the store
|
|
@@ -228,12 +228,12 @@ export type Message<TEvents extends Schemas, TKey extends keyof TEvents> = {
|
|
|
228
228
|
/** The event or action payload */
|
|
229
229
|
readonly data: Readonly<TEvents[TKey]>;
|
|
230
230
|
/**
|
|
231
|
-
* Sensitive-data payload
|
|
231
|
+
* Sensitive-data payload. Carries fields the framework extracted
|
|
232
232
|
* from `data` at commit-interception time, routed to a separate
|
|
233
233
|
* `events.pii` column by adapters that declare the `pii_isolation`
|
|
234
234
|
* capability.
|
|
235
235
|
*
|
|
236
|
-
* Populated by the framework's commit interception (foundation
|
|
236
|
+
* Populated by the framework's commit interception (foundation) —
|
|
237
237
|
* action handlers do not set this. On commit input it carries the
|
|
238
238
|
* extracted sensitive fields; on load output it carries the merged
|
|
239
239
|
* fields read from the adapter's pii column (or `null` after
|
|
@@ -461,7 +461,7 @@ export type BackoffStrategy = "fixed" | "linear" | "exponential";
|
|
|
461
461
|
* Validated at its declaration site (reaction `.do(...)` / action
|
|
462
462
|
* `.on(...)`): an off-union `strategy`, a non-finite/negative `baseMs`, or a
|
|
463
463
|
* non-finite/non-positive `maxMs` throws `ZodError` at `act().build()` rather
|
|
464
|
-
* than producing a `NaN` delay that silently disables pacing
|
|
464
|
+
* than producing a `NaN` delay that silently disables pacing.
|
|
465
465
|
*
|
|
466
466
|
* @property strategy - {@link BackoffStrategy}
|
|
467
467
|
* @property baseMs - Base delay (must be finite and ≥ 0)
|
|
@@ -595,7 +595,7 @@ export type State<TState extends Schema, TEvents extends Schemas, TActions exten
|
|
|
595
595
|
* reads of `sensitive(...)`-marked fields — returning `true` allows the
|
|
596
596
|
* actor to see plaintext, `false` redacts. When absent, the framework
|
|
597
597
|
* default-denies on every external read (sensitive fields are always
|
|
598
|
-
* substituted with `"[REDACTED]"`).
|
|
598
|
+
* substituted with `"[REDACTED]"`).
|
|
599
599
|
*/
|
|
600
600
|
disclose?(event: Committed<TEvents, keyof TEvents>, actor: Actor): boolean;
|
|
601
601
|
/**
|
|
@@ -613,8 +613,8 @@ export type State<TState extends Schema, TEvents extends Schemas, TActions exten
|
|
|
613
613
|
autoclose?(stream: string, head: Committed<TEvents, keyof TEvents>, count: number): boolean;
|
|
614
614
|
/**
|
|
615
615
|
* The smallest `after` window (in days) of the `.autocloses({...})`
|
|
616
|
-
* policy, or `undefined` when the policy has no time component
|
|
617
|
-
*
|
|
616
|
+
* policy, or `undefined` when the policy has no time component.
|
|
617
|
+
* The synthesized autoclose reaction uses it to defer its
|
|
618
618
|
* re-check to `head.created` plus this many days; a policy without an
|
|
619
619
|
* `after` waits for the next event instead of parking on a due-time.
|
|
620
620
|
* Set alongside `autoclose` by the builder. Day-denominated — the
|
|
@@ -623,8 +623,8 @@ export type State<TState extends Schema, TEvents extends Schemas, TActions exten
|
|
|
623
623
|
autoclose_after_days?: number;
|
|
624
624
|
/**
|
|
625
625
|
* The rolling-window width (in days) of the `.autocloses({ keep })`
|
|
626
|
-
* policy, or `undefined` when the policy declares no rolling window
|
|
627
|
-
*
|
|
626
|
+
* policy, or `undefined` when the policy declares no rolling window.
|
|
627
|
+
* The synthesized autoclose reaction stages a windowed close
|
|
628
628
|
* (prune the prefix older than the window behind the closest safe
|
|
629
629
|
* snapshot) when the oldest surviving domain event ages out, and
|
|
630
630
|
* defers until the tail ages out otherwise. Set alongside `autoclose`
|
|
@@ -658,7 +658,7 @@ export type State<TState extends Schema, TEvents extends Schemas, TActions exten
|
|
|
658
658
|
*
|
|
659
659
|
* `pii_aware` is `true` when any of the state's events declare
|
|
660
660
|
* `sensitive(...)` fields. Drives the cache-write gate in `load()` /
|
|
661
|
-
* `action()
|
|
661
|
+
* `action()`: pii-aware states never populate the snapshot
|
|
662
662
|
* cache because state evolves from the actor-gated event view, so
|
|
663
663
|
* the cached state would vary by caller. Pure states cache normally.
|
|
664
664
|
*
|
|
@@ -833,7 +833,7 @@ export type ScanOptions = {
|
|
|
833
833
|
max_id?: number;
|
|
834
834
|
}) => void;
|
|
835
835
|
/**
|
|
836
|
-
* Per-batch row count for the scan pagination loop
|
|
836
|
+
* Per-batch row count for the scan pagination loop. Each
|
|
837
837
|
* call to `source.query` requests `limit: batch_size` and `after:
|
|
838
838
|
* <last id seen>`. Default `500`. Lower values trade round trips for
|
|
839
839
|
* memory; higher values approach the cost of an unbounded query.
|
|
@@ -853,7 +853,7 @@ export type ScanOptions = {
|
|
|
853
853
|
readonly dry_run?: boolean;
|
|
854
854
|
/**
|
|
855
855
|
* Compact streams that have been closed (tombstoned) via
|
|
856
|
-
* {@link IAct.close}
|
|
856
|
+
* {@link IAct.close}. The scan walks the source once
|
|
857
857
|
* upfront to collect streams with a `__tombstone__` event, then
|
|
858
858
|
* the main loop drops every **pre-close event** whose stream is in
|
|
859
859
|
* that set. The tombstone itself is **kept** — it's the gate that
|
|
@@ -870,7 +870,7 @@ export type ScanOptions = {
|
|
|
870
870
|
*/
|
|
871
871
|
readonly drop_closed_streams?: boolean;
|
|
872
872
|
/**
|
|
873
|
-
* Per-event migrations applied during scan
|
|
873
|
+
* Per-event migrations applied during scan. Keys are
|
|
874
874
|
* source event names; values describe how to rewrite the event into
|
|
875
875
|
* its current-version form before the sink writes it.
|
|
876
876
|
*
|
|
@@ -891,7 +891,7 @@ export type ScanOptions = {
|
|
|
891
891
|
*/
|
|
892
892
|
readonly event_migrations?: Record<string, EventMigration<any, any>>;
|
|
893
893
|
/**
|
|
894
|
-
* Per-stream rename applied during scan
|
|
894
|
+
* Per-stream rename applied during scan. Called once per
|
|
895
895
|
* event; the returned string replaces `event.stream`. Useful for
|
|
896
896
|
* tenant relocation (`s => s.replace(/^old-tenant-/, "new-tenant-")`)
|
|
897
897
|
* or prefix cleanup.
|
|
@@ -905,7 +905,7 @@ export type ScanOptions = {
|
|
|
905
905
|
/**
|
|
906
906
|
* Per-event migration definition for {@link ScanOptions.event_migrations}.
|
|
907
907
|
* Carries both the rename target and the schema-guarded transform that
|
|
908
|
-
* rewrites the event's `data` payload
|
|
908
|
+
* rewrites the event's `data` payload.
|
|
909
909
|
*/
|
|
910
910
|
export type EventMigration<TOld, TNew> = {
|
|
911
911
|
/** Target event name (the current version). */
|
|
@@ -944,7 +944,7 @@ export type ScanResult = {
|
|
|
944
944
|
readonly migrated: number;
|
|
945
945
|
};
|
|
946
946
|
/**
|
|
947
|
-
* Read end of the transfer pipeline
|
|
947
|
+
* Read end of the transfer pipeline. Anything
|
|
948
948
|
* that exposes a `Store.query`-shaped reader plus `dispose` can be
|
|
949
949
|
* used as a source for {@link IAct.restore}.
|
|
950
950
|
*
|
|
@@ -967,7 +967,7 @@ export interface EventSource extends Disposable {
|
|
|
967
967
|
query<E extends Schemas>(callback: (event: Committed<E, keyof E>) => void, query?: Query): Promise<number>;
|
|
968
968
|
}
|
|
969
969
|
/**
|
|
970
|
-
* Write end of the transfer pipeline
|
|
970
|
+
* Write end of the transfer pipeline. Anything
|
|
971
971
|
* that can host the destructive driver-pattern `restore` HOF (atomic
|
|
972
972
|
* wipe + per-event commit) is an `EventSink` — `Store` adapters
|
|
973
973
|
* that ship the optional `restore` method, plus the framework's
|
|
@@ -981,7 +981,7 @@ export interface EventSink extends Disposable {
|
|
|
981
981
|
restore(driver: (callback: (event: Committed<Schemas, keyof Schemas>) => Promise<number>) => Promise<void>): Promise<void>;
|
|
982
982
|
}
|
|
983
983
|
/**
|
|
984
|
-
* The schedule for a deferred reaction
|
|
984
|
+
* The schedule for a deferred reaction, used by both the
|
|
985
985
|
* declarative `.defer(when)` builder step and the imperative `DeferSignal`
|
|
986
986
|
* escape hatch. Exactly one form:
|
|
987
987
|
*
|
|
@@ -1050,7 +1050,7 @@ export interface IAct<TEvents extends Schemas = Schemas, TActions extends Schema
|
|
|
1050
1050
|
query_array(query: Query): Promise<Committed<TEvents, keyof TEvents>[]>;
|
|
1051
1051
|
/**
|
|
1052
1052
|
* Wipe the sensitive-data payload for every event on the stream — the
|
|
1053
|
-
* application-level half of the sensitive-data epic
|
|
1053
|
+
* application-level half of the sensitive-data epic. Delegates to
|
|
1054
1054
|
* the Store's `forget_pii(stream)`, invalidates the cache entry for the
|
|
1055
1055
|
* stream, then emits the `forgotten` lifecycle event.
|
|
1056
1056
|
*
|
|
@@ -56,8 +56,7 @@ export type SubscribeResult = {
|
|
|
56
56
|
subscribed: number;
|
|
57
57
|
watermark: number;
|
|
58
58
|
/**
|
|
59
|
-
* Whether the caller holds the correlation lease and should scan
|
|
60
|
-
* (#1532).
|
|
59
|
+
* Whether the caller holds the correlation lease and should scan.
|
|
61
60
|
*
|
|
62
61
|
* `undefined` when no `correlator` was supplied — no lease was requested,
|
|
63
62
|
* so there is no answer and the caller scans as it always has.
|
|
@@ -72,7 +71,7 @@ export type SubscribeResult = {
|
|
|
72
71
|
*/
|
|
73
72
|
correlating?: boolean;
|
|
74
73
|
/**
|
|
75
|
-
* The correlate checkpoint
|
|
74
|
+
* The correlate checkpoint: how far `correlate` has **read** the
|
|
76
75
|
* event log, or `-1` when it has never advanced.
|
|
77
76
|
*
|
|
78
77
|
* Distinct from a subscription's `at` (how far a *target* has been
|
|
@@ -86,7 +85,7 @@ export type SubscribeResult = {
|
|
|
86
85
|
* stream-scoped surface (`prioritize`, `reset`, `unblock`,
|
|
87
86
|
* `query_streams`, `blocked_streams`) ever counts it.
|
|
88
87
|
*
|
|
89
|
-
* **Keyed per correlator** when a `correlator` is supplied
|
|
88
|
+
* **Keyed per correlator** when a `correlator` is supplied, and
|
|
90
89
|
* shared otherwise. Correlators that look for different things read the
|
|
91
90
|
* log for different reasons, so one inheriting another's position at cold
|
|
92
91
|
* start could skip events it needed — previously survivable only because
|
|
@@ -158,12 +157,12 @@ export type NotifyDisposer = () => void | Promise<void>;
|
|
|
158
157
|
* @property leased_until - Lease expiration timestamp (when leased)
|
|
159
158
|
* @property priority - Scheduling priority (default 0). Biases the
|
|
160
159
|
* lagging-frontier `claim()` ordering — see {@link Store.prioritize}.
|
|
161
|
-
* @property lane - Drain lane bound to the stream
|
|
160
|
+
* @property lane - Drain lane bound to the stream
|
|
162
161
|
* @property deferred_at - Persisted next-visit time (ms since epoch) when
|
|
163
162
|
* the stream is held out of {@link claim} by a `defer` outcome; omitted
|
|
164
163
|
* when the stream carries no active defer schedule. Read at cold start to
|
|
165
164
|
* re-seed the in-process defer timer so an idle deferred stream re-arms
|
|
166
|
-
* its drain across a restart
|
|
165
|
+
* its drain across a restart — the schedule outlives the process
|
|
167
166
|
* memory it was derived from.
|
|
168
167
|
*/
|
|
169
168
|
export type StreamPosition = {
|
|
@@ -243,7 +242,7 @@ export type StreamPosition = {
|
|
|
243
242
|
* flag, only the row count fetched.
|
|
244
243
|
* @property blocked - Restrict to blocked (`true`) or unblocked (`false`)
|
|
245
244
|
* streams. Omit for all.
|
|
246
|
-
* @property lane - Restrict to streams in this drain lane
|
|
245
|
+
* @property lane - Restrict to streams in this drain lane. Exact match.
|
|
247
246
|
* @property after - Keyset pagination cursor: returns only streams with
|
|
248
247
|
* `stream > after` (lexicographic). Pass the last seen `stream` to fetch
|
|
249
248
|
* the next page.
|
|
@@ -343,7 +342,7 @@ export type EventName<E extends Schemas = Schemas> = (keyof E & string) | Framew
|
|
|
343
342
|
*
|
|
344
343
|
* `head`/`tail` never carry `pii`. `query_stats` is an operator-introspection
|
|
345
344
|
* surface with no actor context and no disclosure gate, so — like any
|
|
346
|
-
* un-gated read — it omits the pii sidecar on every adapter
|
|
345
|
+
* un-gated read — it omits the pii sidecar on every adapter. Route
|
|
347
346
|
* pii through `load` (gated) instead.
|
|
348
347
|
*
|
|
349
348
|
* @template E - Event schemas; defaults to {@link Schemas} when the caller
|
|
@@ -432,7 +431,7 @@ export type SubscribeInput = {
|
|
|
432
431
|
*/
|
|
433
432
|
readonly priority?: number;
|
|
434
433
|
/**
|
|
435
|
-
* Drain lane
|
|
434
|
+
* Drain lane. Default `"default"`.
|
|
436
435
|
*
|
|
437
436
|
* Written on the same rule as {@link priority}: the lane rides the max,
|
|
438
437
|
* so a subscribe whose priority is **at or above** the stored priority
|
|
@@ -440,8 +439,7 @@ export type SubscribeInput = {
|
|
|
440
439
|
* priority registered for a stream therefore owns its lane, durably —
|
|
441
440
|
* the same outcome the correlate scan applies within one pass, made a
|
|
442
441
|
* property of the row so a caller that has forgotten what a stream
|
|
443
|
-
* carries cannot re-lane it by resolving to it at a lower priority
|
|
444
|
-
* (#1599).
|
|
442
|
+
* carries cannot re-lane it by resolving to it at a lower priority.
|
|
445
443
|
*
|
|
446
444
|
* Re-laning stays restart-driven: a restart re-subscribes at the same
|
|
447
445
|
* declared priority, and equal priority writes the lane. A stream whose
|
|
@@ -451,7 +449,7 @@ export type SubscribeInput = {
|
|
|
451
449
|
readonly lane?: string;
|
|
452
450
|
/**
|
|
453
451
|
* Highest event id observed to resolve to this target — the stream's
|
|
454
|
-
* **work mark
|
|
452
|
+
* **work mark**. Applied as `correlated_at = GREATEST(correlated_at, N)`
|
|
455
453
|
* for every value including zero and negatives; omitted leaves the stored
|
|
456
454
|
* value untouched.
|
|
457
455
|
*
|
|
@@ -638,7 +636,7 @@ export interface Store extends Disposable, EventSource {
|
|
|
638
636
|
* {@link ack} still lands. A store that skipped recording the holder
|
|
639
637
|
* would hand out a lease whose every ack is dropped, parking the
|
|
640
638
|
* watermark and redelivering every event on every drain.
|
|
641
|
-
* @param lane - Optional lane filter
|
|
639
|
+
* @param lane - Optional lane filter
|
|
642
640
|
* @returns Array of successfully leased streams with metadata
|
|
643
641
|
*
|
|
644
642
|
* @example
|
|
@@ -674,7 +672,7 @@ export interface Store extends Disposable, EventSource {
|
|
|
674
672
|
* an adapter that merges the batch in one statement cannot do even
|
|
675
673
|
* that (`UPDATE ... FROM` may touch a target row only once, so
|
|
676
674
|
* Postgres picks an arbitrary source row). Callers de-duplicate
|
|
677
|
-
* before calling; adapters may assume uniqueness
|
|
675
|
+
* before calling; adapters may assume uniqueness.
|
|
678
676
|
* @returns `subscribed` count of newly registered streams, `watermark` max `at` across all streams
|
|
679
677
|
*
|
|
680
678
|
* @example
|
|
@@ -691,7 +689,7 @@ export interface Store extends Disposable, EventSource {
|
|
|
691
689
|
subscribe: (streams: SubscribeInput[],
|
|
692
690
|
/**
|
|
693
691
|
* Advance the correlate checkpoint to this event id — correlate's own
|
|
694
|
-
* watermark, in the same id space as a subscription's `at
|
|
692
|
+
* watermark, in the same id space as a subscription's `at`.
|
|
695
693
|
*
|
|
696
694
|
* `correlate` is the only component that knows how far it has read, and
|
|
697
695
|
* it already calls `subscribe` with the targets a scan discovered, so the
|
|
@@ -706,8 +704,7 @@ export interface Store extends Disposable, EventSource {
|
|
|
706
704
|
*/
|
|
707
705
|
correlated_at?: number,
|
|
708
706
|
/**
|
|
709
|
-
* Identifies the calling correlator, and asks for the correlation lease
|
|
710
|
-
* (#1532).
|
|
707
|
+
* Identifies the calling correlator, and asks for the correlation lease.
|
|
711
708
|
*
|
|
712
709
|
* Correlation is duplicated work without it: every worker keeps its own
|
|
713
710
|
* in-memory scan position, so N workers wake on the same commit and each
|
|
@@ -732,8 +729,8 @@ export interface Store extends Disposable, EventSource {
|
|
|
732
729
|
* - `millis` is how long the lease is held from now.
|
|
733
730
|
*
|
|
734
731
|
* Omitted entirely, no lease is taken and the caller reads and advances
|
|
735
|
-
* the shared legacy checkpoint — which is what
|
|
736
|
-
*
|
|
732
|
+
* the shared legacy checkpoint — which is what callers that predate
|
|
733
|
+
* the lease do, and why this is additive.
|
|
737
734
|
*/
|
|
738
735
|
correlator?: {
|
|
739
736
|
key: string;
|
|
@@ -767,8 +764,7 @@ export interface Store extends Disposable, EventSource {
|
|
|
767
764
|
* stream, and an adapter that applies the batch in one statement cannot
|
|
768
765
|
* apply two entries to the same row (`UPDATE … FROM` may touch a target
|
|
769
766
|
* row once, so Postgres keeps an arbitrary one). Callers de-duplicate
|
|
770
|
-
* before calling, as the drain does; adapters may assume uniqueness
|
|
771
|
-
* (#1672, #1785).
|
|
767
|
+
* before calling, as the drain does; adapters may assume uniqueness.
|
|
772
768
|
* @returns The acknowledged leases (deferred entries are not returned)
|
|
773
769
|
*
|
|
774
770
|
* @example
|
|
@@ -799,7 +795,7 @@ export interface Store extends Disposable, EventSource {
|
|
|
799
795
|
*
|
|
800
796
|
* @param leases - Leases to block with error messages. **At most one entry
|
|
801
797
|
* per stream**, for the same reason as {@link ack}; adapters may assume
|
|
802
|
-
* uniqueness
|
|
798
|
+
* uniqueness.
|
|
803
799
|
* @returns Blocked leases
|
|
804
800
|
*
|
|
805
801
|
* @example
|
|
@@ -998,7 +994,7 @@ export interface Store extends Disposable, EventSource {
|
|
|
998
994
|
* **Subscriptions are not touched.** This is purely event-log work, and
|
|
999
995
|
* that is what lets a store keep its event log and its subscriptions on
|
|
1000
996
|
* different systems: every method belongs cleanly to one half, so a hybrid
|
|
1001
|
-
* routes rather than reimplements
|
|
997
|
+
* routes rather than reimplements. Removing the subscription row
|
|
1002
998
|
* here was the one step that spanned both, and it forced such a store into
|
|
1003
999
|
* a distributed transaction it could not have.
|
|
1004
1000
|
*
|
|
@@ -1030,7 +1026,7 @@ export interface Store extends Disposable, EventSource {
|
|
|
1030
1026
|
* pairs its own delete with its own seed. Both only matter for inputs the
|
|
1031
1027
|
* framework never produces — `close-cycle` dedups by stream before calling
|
|
1032
1028
|
* — but `Store` is a public port, so the order is contract rather than
|
|
1033
|
-
* accident
|
|
1029
|
+
* accident: a stream listed as both windowed and full ends with its
|
|
1034
1030
|
* FULL entry in the result, and a stream listed twice as full leaves
|
|
1035
1031
|
* exactly one seed carrying the last target's snapshot, reporting only that
|
|
1036
1032
|
* pass's own delete count. Deleting once for a deduped set and seeding once
|
|
@@ -1100,7 +1096,7 @@ export interface Store extends Disposable, EventSource {
|
|
|
1100
1096
|
* one and each keyed correlator's) is an event id, so restore sets them
|
|
1101
1097
|
* back to -1 in the same transaction; left at their old values they would
|
|
1102
1098
|
* sit above every renumbered event and correlate would never resolve the
|
|
1103
|
-
* restored events' reactions
|
|
1099
|
+
* restored events' reactions. Correlator leases are kept. The
|
|
1104
1100
|
* `Act` that ran the restore restarts its own correlation; any other
|
|
1105
1101
|
* process running against the same store must be restarted, as for any
|
|
1106
1102
|
* offline restore.
|
|
@@ -1325,7 +1321,7 @@ export interface Store extends Disposable, EventSource {
|
|
|
1325
1321
|
notify?: (handler: (notification: StoreNotification) => void) => NotifyDisposer | Promise<NotifyDisposer>;
|
|
1326
1322
|
/**
|
|
1327
1323
|
* Wipe the sensitive-data payload for every event on the stream — the
|
|
1328
|
-
* physical-erasure side of the sensitive-data epic
|
|
1324
|
+
* physical-erasure side of the sensitive-data epic. Sets the
|
|
1329
1325
|
* adapter's PII column (or equivalent) to `NULL` for the stream's
|
|
1330
1326
|
* events; `events.data` and the rest of the row are never touched.
|
|
1331
1327
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ports.d.ts","sourceRoot":"","sources":["../../../src/types/ports.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,WAAW,EACX,OAAO,EACP,KAAK,EACL,MAAM,EACN,OAAO,EACR,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEzD;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IAAE,OAAO,EAAE,QAAQ,CAAA;CAAE,CAAC;AAM/C;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,MAAO,SAAQ,UAAU;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI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