@rotorsoft/act 1.35.2 → 1.35.3
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.map +1 -1
- package/dist/@types/builders/act-builder.d.ts.map +1 -1
- package/dist/@types/builders/projection-builder.d.ts +25 -3
- package/dist/@types/builders/projection-builder.d.ts.map +1 -1
- package/dist/@types/internal/autoclose-policy.d.ts +23 -23
- package/dist/@types/internal/autoclose-policy.d.ts.map +1 -1
- package/dist/@types/internal/classify.d.ts +4 -4
- package/dist/@types/internal/classify.d.ts.map +1 -1
- package/dist/@types/internal/projection-fold.d.ts +2 -2
- package/dist/@types/internal/projection-fold.d.ts.map +1 -1
- package/dist/@types/internal/tracing.d.ts.map +1 -1
- package/dist/index.cjs +46 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/@types/act.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"act.d.ts","sourceRoot":"","sources":["../../src/act.ts"],"names":[],"mappings":"AAwDA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,UAAU,EAKhB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EACV,KAAK,EACL,IAAI,EACJ,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,SAAS,EAET,SAAS,EACT,KAAK,EACL,YAAY,EACZ,SAAS,EACT,WAAW,EACX,IAAI,EACJ,UAAU,EACV,UAAU,EAEV,OAAO,EACP,KAAK,EACL,QAAQ,EACR,WAAW,EACX,UAAU,EACV,MAAM,EACN,cAAc,EACd,OAAO,EACP,aAAa,EACb,eAAe,EACf,QAAQ,EACR,KAAK,EAEL,YAAY,EACZ,cAAc,EACd,MAAM,EACP,MAAM,kBAAkB,CAAC;AAgB1B;;;;;;;;;;;;;;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OAAO,CAAC,UAAU,CAAC,CAmCrB;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,eAAe,CAAC,OAAO,CAAC,EAAE;QAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAW5B;IAED;;;;;;;;;;;;;;;OAeG;IACI,KAAK,CACV,UAAU,CAAC,EAAE,aAAa,EAAE,EAC5B,OAAO,CAAC,EAAE,YAAY,GACrB,aAAa,CAAC,YAAY,CAAC,CAW7B;IAED;;;;;;;;;;;;;;;;;OAiBG;IACG,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAExE;IAED,yDAAyD;YAC3C,UAAU;IAuBxB;;;;;;;;;;;;;;;;;;OAkBG;IACG,KAAK,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAIxD;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAKpC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"act-builder.d.ts","sourceRoot":"","sources":["../../../src/builders/act-builder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"act-builder.d.ts","sourceRoot":"","sources":["../../../src/builders/act-builder.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,UAAU,EAAc,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,EAEV,KAAK,EAIL,MAAM,EACN,cAAc,EACd,OAAO,EAER,MAAM,mBAAmB,CAAC;AA4B3B;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,GAAG,CAEjB,UAAU,SAAS,cAAc,CAAC,QAAQ,CAAC,GAAG,EAAE,EAChD,OAAO,SAAS,OAAO,GAAG,EAAE,EAC5B,QAAQ,SAAS,OAAO,GAAG,EAAE,EAC7B,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,EAAE,EAC7C,MAAM,SAAS,KAAK,GAAG,KAAK,KACzB,UAAU,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CA+UhE"}
|
|
@@ -1,12 +1,34 @@
|
|
|
1
1
|
import type { ProjectionBuilder } from "../types/builders.js";
|
|
2
2
|
import type { Schemas } from "../types/index.js";
|
|
3
3
|
/**
|
|
4
|
-
* Creates a new projection builder
|
|
4
|
+
* Creates a new projection builder for composing read-model update handlers,
|
|
5
|
+
* with a static target stream.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
7
|
+
* Projections enable separation of read-model concerns from command handling.
|
|
8
|
+
* Each `.on({ Event }).do(handler)` call registers a handler that updates
|
|
9
|
+
* a projection (database table, cache, etc.) in response to events. All
|
|
10
|
+
* handlers inherit the target resolver automatically, and `.batch()` is
|
|
11
|
+
* enabled for bulk event processing in a single transaction. Omit the target
|
|
12
|
+
* and use per-handler `.to()` when handlers route to different streams.
|
|
8
13
|
*
|
|
9
14
|
* @param target - Static target stream for all handlers
|
|
15
|
+
*
|
|
16
|
+
* @example Default target (all handlers routed to "tickets")
|
|
17
|
+
* ```typescript
|
|
18
|
+
* const TicketProjection = projection("tickets")
|
|
19
|
+
* .on({ TicketOpened })
|
|
20
|
+
* .do(async function openTicket({ stream, data }) {
|
|
21
|
+
* await db.insert(tickets).values({ id: stream, ...data });
|
|
22
|
+
* })
|
|
23
|
+
* .on({ TicketClosed })
|
|
24
|
+
* .do(async function closeTicket({ stream, data }) {
|
|
25
|
+
* await db.update(tickets).set(data).where(eq(tickets.id, stream));
|
|
26
|
+
* })
|
|
27
|
+
* .build();
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @see {@link ProjectionBuilder} for builder methods
|
|
31
|
+
* @see {@link Projection} for the output type
|
|
10
32
|
*/
|
|
11
33
|
export declare function projection<TEvents extends Schemas = {}>(target: string): ProjectionBuilder<TEvents, string>;
|
|
12
34
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projection-builder.d.ts","sourceRoot":"","sources":["../../../src/builders/projection-builder.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAGV,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAOV,OAAO,EAER,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"projection-builder.d.ts","sourceRoot":"","sources":["../../../src/builders/projection-builder.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAGV,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAOV,OAAO,EAER,MAAM,mBAAmB,CAAC;AAgK3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,UAAU,CAAC,OAAO,SAAS,OAAO,GAAG,EAAE,EACrD,MAAM,EAAE,MAAM,GACb,iBAAiB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AACtC;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,OAAO,SAAS,OAAO,GAAG,EAAE,EACrD,MAAM,CAAC,EAAE,SAAS,GACjB,iBAAiB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -11,6 +11,29 @@ import type { AutoclosePolicy, AutoclosePredicate, Schemas } from "../types/acti
|
|
|
11
11
|
export declare function days_after(date: Date, days: number): Date;
|
|
12
12
|
/** The `Date` that lies `days` in the past. */
|
|
13
13
|
export declare function days_before_now(days: number): Date;
|
|
14
|
+
/**
|
|
15
|
+
* The smallest `after` window (in days) anywhere in a policy — across
|
|
16
|
+
* the top-level `after` and the `or.after` block — or `undefined` when
|
|
17
|
+
* the policy has no time component.
|
|
18
|
+
*
|
|
19
|
+
* The synthesized autoclose reaction uses this to decide how to
|
|
20
|
+
* wait: a policy with an `after` defers its re-check to `head.created`
|
|
21
|
+
* plus this many days (the earliest its time gate could open); a policy
|
|
22
|
+
* without one (`is` / `reaches` only) has no time gate, so the reaction
|
|
23
|
+
* just waits for the next event to re-trigger rather than parking on a
|
|
24
|
+
* due-time. Conservative — the min across branches never defers past
|
|
25
|
+
* the soonest a branch could fire.
|
|
26
|
+
*/
|
|
27
|
+
export declare function policy_min_after_days(options: AutoclosePolicy): number | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The rolling-window width (in days) of a policy's `keep` field, or
|
|
30
|
+
* `undefined` when the policy declares no rolling window. The
|
|
31
|
+
* synthesized autoclose reaction prunes the prefix older than the
|
|
32
|
+
* window (via a windowed close) and derives its prune due-time as
|
|
33
|
+
* `tail.created` plus this many days — the earliest the oldest
|
|
34
|
+
* surviving domain event can age out of the window.
|
|
35
|
+
*/
|
|
36
|
+
export declare function policy_keep_days(options: AutoclosePolicy): number | undefined;
|
|
14
37
|
/**
|
|
15
38
|
* Compile a declarative {@link AutoclosePolicy} into an
|
|
16
39
|
* {@link AutoclosePredicate}. The state-builder's
|
|
@@ -37,28 +60,5 @@ export declare function days_before_now(days: number): Date;
|
|
|
37
60
|
* bag, non-positive `reaches`, sub-minute `after`, empty `is`, empty
|
|
38
61
|
* `or`, nested `or`, unknown keys).
|
|
39
62
|
*/
|
|
40
|
-
/**
|
|
41
|
-
* The smallest `after` window (in days) anywhere in a policy — across
|
|
42
|
-
* the top-level `after` and the `or.after` block — or `undefined` when
|
|
43
|
-
* the policy has no time component.
|
|
44
|
-
*
|
|
45
|
-
* The synthesized autoclose reaction uses this to decide how to
|
|
46
|
-
* wait: a policy with an `after` defers its re-check to `head.created`
|
|
47
|
-
* plus this many days (the earliest its time gate could open); a policy
|
|
48
|
-
* without one (`is` / `reaches` only) has no time gate, so the reaction
|
|
49
|
-
* just waits for the next event to re-trigger rather than parking on a
|
|
50
|
-
* due-time. Conservative — the min across branches never defers past
|
|
51
|
-
* the soonest a branch could fire.
|
|
52
|
-
*/
|
|
53
|
-
export declare function policy_min_after_days(options: AutoclosePolicy): number | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* The rolling-window width (in days) of a policy's `keep` field, or
|
|
56
|
-
* `undefined` when the policy declares no rolling window. The
|
|
57
|
-
* synthesized autoclose reaction prunes the prefix older than the
|
|
58
|
-
* window (via a windowed close) and derives its prune due-time as
|
|
59
|
-
* `tail.created` plus this many days — the earliest the oldest
|
|
60
|
-
* surviving domain event can age out of the window.
|
|
61
|
-
*/
|
|
62
|
-
export declare function policy_keep_days(options: AutoclosePolicy): number | undefined;
|
|
63
63
|
export declare function compile_autoclose_policy(options: AutoclosePolicy): AutoclosePredicate<Schemas>;
|
|
64
64
|
//# sourceMappingURL=autoclose-policy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoclose-policy.d.ts","sourceRoot":"","sources":["../../../src/internal/autoclose-policy.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,OAAO,EACR,MAAM,oBAAoB,CAAC;AA2B5B,gDAAgD;AAChD,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAEzD;AAED,+CAA+C;AAC/C,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAElD;AAmHD
|
|
1
|
+
{"version":3,"file":"autoclose-policy.d.ts","sourceRoot":"","sources":["../../../src/internal/autoclose-policy.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,OAAO,EACR,MAAM,oBAAoB,CAAC;AA2B5B,gDAAgD;AAChD,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAEzD;AAED,+CAA+C;AAC/C,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAElD;AAmHD;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,eAAe,GACvB,MAAM,GAAG,SAAS,CAMpB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,GAAG,SAAS,CAG7E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,eAAe,GACvB,kBAAkB,CAAC,OAAO,CAAC,CAiC7B"}
|
|
@@ -15,10 +15,6 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { Registry, Schema, SchemaRegister, Schemas, State } from "../types/index.js";
|
|
17
17
|
import type { StaticTarget } from "./correlate-cycle.js";
|
|
18
|
-
/**
|
|
19
|
-
* Classification result. Returned by {@link classify_registry}; consumed
|
|
20
|
-
* piecewise by Act's constructor.
|
|
21
|
-
*/
|
|
22
18
|
/**
|
|
23
19
|
* Sentinel for "any reaction on this event has a dynamic resolver, so
|
|
24
20
|
* the lane is opaque until correlate runs the function — arm every
|
|
@@ -34,6 +30,10 @@ export declare const ALL_LANES: unique symbol;
|
|
|
34
30
|
* {@link ALL_LANES}; `do()` falls back to arming every controller.
|
|
35
31
|
*/
|
|
36
32
|
export type EventLaneSet = ReadonlySet<string> | typeof ALL_LANES;
|
|
33
|
+
/**
|
|
34
|
+
* Classification result. Returned by {@link classify_registry}; consumed
|
|
35
|
+
* piecewise by Act's constructor.
|
|
36
|
+
*/
|
|
37
37
|
export type Classification = {
|
|
38
38
|
readonly static_targets: StaticTarget[];
|
|
39
39
|
readonly event_to_state: ReadonlyMap<string, State<any, any, any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classify.d.ts","sourceRoot":"","sources":["../../../src/internal/classify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,QAAQ,EACR,MAAM,EACN,cAAc,EACd,OAAO,EACP,KAAK,EACN,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD
|
|
1
|
+
{"version":3,"file":"classify.d.ts","sourceRoot":"","sources":["../../../src/internal/classify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,QAAQ,EACR,MAAM,EACN,cAAc,EACd,OAAO,EACP,KAAK,EACN,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,SAAS,EAAE,OAAO,MAAgC,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,OAAO,SAAS,CAAC;AAElE;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,cAAc,EAAE,YAAY,EAAE,CAAC;IACxC,QAAQ,CAAC,cAAc,EAAE,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IACnE,QAAQ,CAAC,cAAc,EAAE,WAAW,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;CAC5D,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,SAAS,cAAc,CAAC,QAAQ,CAAC,EAC3C,OAAO,SAAS,OAAO,EACvB,QAAQ,SAAS,OAAO,EAExB,QAAQ,EAAE,QAAQ,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,CAAC,EACjD,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,GACnD,cAAc,CA4EhB"}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* - Eviction under `maxCachedStates` pressure flushes the evictee first
|
|
23
23
|
* (flush-before-evict) — eviction never loses folded work.
|
|
24
24
|
*/
|
|
25
|
-
import type { BatchHandler, CacheEntry,
|
|
25
|
+
import type { BatchHandler, CacheEntry, Schema, Schemas, State } from "../types/index.js";
|
|
26
26
|
import type { FoldConfig } from "./config.js";
|
|
27
27
|
/**
|
|
28
28
|
* Internal handle a fold handler exposes so the orchestrator can drop its
|
|
@@ -50,5 +50,5 @@ export type ResettableBatchHandler<TEvents extends Schemas> = BatchHandler<TEven
|
|
|
50
50
|
* survives across drain cycles, so warm streams fold without I/O. It carries
|
|
51
51
|
* a {@link FOLD_RESET} handle so a rebuild can drop that cache.
|
|
52
52
|
*/
|
|
53
|
-
export declare function make_fold_handler<TState extends Schema, TEvents extends Schemas, TActions extends Schemas>(me: State<TState, TEvents, TActions>, flush: (rows: ReadonlyArray<CacheEntry<TState>>) => Promise<void>, config: FoldConfig,
|
|
53
|
+
export declare function make_fold_handler<TState extends Schema, TEvents extends Schemas, TActions extends Schemas>(me: State<TState, TEvents, TActions>, flush: (rows: ReadonlyArray<CacheEntry<TState>>) => Promise<void>, config: FoldConfig, sensitive_fields: (event_name: string) => readonly string[]): BatchHandler<TEvents>;
|
|
54
54
|
//# sourceMappingURL=projection-fold.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projection-fold.d.ts","sourceRoot":"","sources":["../../../src/internal/projection-fold.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,
|
|
1
|
+
{"version":3,"file":"projection-fold.d.ts","sourceRoot":"","sources":["../../../src/internal/projection-fold.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,MAAM,EACN,OAAO,EACP,KAAK,EACN,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAgB9C;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,eAA2B,CAAC;AAEnD,qEAAqE;AACrE,MAAM,MAAM,sBAAsB,CAAC,OAAO,SAAS,OAAO,IACxD,YAAY,CAAC,OAAO,CAAC,GAAG;IACtB,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,IAAI,CAAC;CACpC,CAAC;AAEJ;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,SAAS,MAAM,EACrB,OAAO,SAAS,OAAO,EACvB,QAAQ,SAAS,OAAO,EAExB,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,EACpC,KAAK,EAAE,CAAC,IAAI,EAAE,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,EACjE,MAAM,EAAE,UAAU,EAClB,gBAAgB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,SAAS,MAAM,EAAE,GAC1D,YAAY,CAAC,OAAO,CAAC,CAyIvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../../src/internal/tracing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAGH,OAAO,KAAK,EAEV,UAAU,EACV,MAAM,EACN,OAAO,EACP,OAAO,EACR,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AA+HjD;;;GAGG;AACH,wBAAgB,QAAQ,CACtB,MAAM,EAAE,MAAM,EACd,UAAU,GAAE,UAA+B,EAC3C,QAAQ,GAAE,OAAuB,GAChC,KAAK,
|
|
1
|
+
{"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../../src/internal/tracing.ts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CAAC;IAC5C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC,EACF,KAAK,EAAE,aAAa,CAAC;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,EACtE,OAAO,EAAE,aAAa,CAAC;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,GAC1E,IAAI,CAwDN"}
|
package/dist/index.cjs
CHANGED
|
@@ -746,7 +746,7 @@ var CircuitBreaker = (_class = class {
|
|
|
746
746
|
}, _class);
|
|
747
747
|
|
|
748
748
|
// src/internal/classify.ts
|
|
749
|
-
var ALL_LANES = /* @__PURE__ */ Symbol("act
|
|
749
|
+
var ALL_LANES = /* @__PURE__ */ Symbol("act/all-lanes");
|
|
750
750
|
function classify_registry(registry, states) {
|
|
751
751
|
const statics = /* @__PURE__ */ new Map();
|
|
752
752
|
const target_lanes = /* @__PURE__ */ new Map();
|
|
@@ -2097,7 +2097,7 @@ function build_es(logger, correlator = default_correlator, patch_fn = bare_patch
|
|
|
2097
2097
|
action_name,
|
|
2098
2098
|
target,
|
|
2099
2099
|
payload,
|
|
2100
|
-
{
|
|
2100
|
+
{ ...options, correlator: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _102 => _102.correlator]), () => ( correlator)) },
|
|
2101
2101
|
patch_fn
|
|
2102
2102
|
);
|
|
2103
2103
|
const bound_load = (me, target, callback) => load(me, target, callback, patch_fn);
|
|
@@ -2137,17 +2137,15 @@ function build_es(logger, correlator = default_correlator, patch_fn = bare_patch
|
|
|
2137
2137
|
action: traced(
|
|
2138
2138
|
bound_action,
|
|
2139
2139
|
(snapshots, _me, _action, target) => {
|
|
2140
|
-
|
|
2141
|
-
if (committed.length) {
|
|
2140
|
+
if (snapshots[0].patch)
|
|
2142
2141
|
logger.trace(
|
|
2143
|
-
|
|
2142
|
+
snapshots.map((s) => s.event.data),
|
|
2144
2143
|
es_caption(
|
|
2145
2144
|
"committed",
|
|
2146
2145
|
C_ORANGE,
|
|
2147
|
-
`${target.stream}.${
|
|
2146
|
+
`${target.stream}.${snapshots.map((s) => s.event.name).join(", ")}`
|
|
2148
2147
|
)
|
|
2149
2148
|
);
|
|
2150
|
-
}
|
|
2151
2149
|
},
|
|
2152
2150
|
(_me, action2, target, payload) => {
|
|
2153
2151
|
logger.trace(
|
|
@@ -2173,7 +2171,7 @@ function build_drain(logger) {
|
|
|
2173
2171
|
subscribe: logger.level !== "trace" ? subscribe : traced(subscribe, (result, streams) => {
|
|
2174
2172
|
if (!result.subscribed) return;
|
|
2175
2173
|
const lanes = new Set(streams.map((s) => _nullishCoalesce(s.lane, () => ( "default"))));
|
|
2176
|
-
const uniform_lane = lanes.size === 1 ? _optionalChain([streams, 'access',
|
|
2174
|
+
const uniform_lane = lanes.size === 1 ? _optionalChain([streams, 'access', _103 => _103[0], 'optionalAccess', _104 => _104.lane]) : void 0;
|
|
2177
2175
|
const data = streams.map(
|
|
2178
2176
|
({ stream, lane }) => uniform_lane || !lane || lane === "default" ? hue(C_STREAM, stream) : `${hue(C_STREAM, stream)}${dim(`[${lane}]`)}`
|
|
2179
2177
|
).join(" ");
|
|
@@ -2185,7 +2183,7 @@ function build_drain(logger) {
|
|
|
2185
2183
|
}
|
|
2186
2184
|
function trace_cycle(logger, leased, fetched, handled, acked, blocked) {
|
|
2187
2185
|
if (logger.level !== "trace" || !leased.length) return;
|
|
2188
|
-
const lane = _optionalChain([leased, 'access',
|
|
2186
|
+
const lane = _optionalChain([leased, 'access', _105 => _105[0], 'optionalAccess', _106 => _106.lane]);
|
|
2189
2187
|
const fetch_by_stream = new Map(fetched.map((f) => [f.stream, f]));
|
|
2190
2188
|
const acked_by_stream = new Map(acked.map((a) => [a.stream, a.at]));
|
|
2191
2189
|
const blocked_by_stream = new Map(blocked.map((b) => [b.stream, b.error]));
|
|
@@ -2194,8 +2192,8 @@ function trace_cycle(logger, leased, fetched, handled, acked, blocked) {
|
|
|
2194
2192
|
);
|
|
2195
2193
|
const detail = leased.map(({ stream, at, retry }) => {
|
|
2196
2194
|
const f = fetch_by_stream.get(stream);
|
|
2197
|
-
const key = _optionalChain([f, 'optionalAccess',
|
|
2198
|
-
const events = _optionalChain([f, 'optionalAccess',
|
|
2195
|
+
const key = _optionalChain([f, 'optionalAccess', _107 => _107.source]) ? `${hue(C_STREAM, stream)}${dim(`<-${f.source}`)}` : hue(C_STREAM, stream);
|
|
2196
|
+
const events = _optionalChain([f, 'optionalAccess', _108 => _108.events, 'access', _109 => _109.length]) ? ` ${dim(
|
|
2199
2197
|
`[${f.events.map(({ id, name }) => `#${id} ${String(name)}`).join(", ")}]`
|
|
2200
2198
|
)}` : "";
|
|
2201
2199
|
const acked_at = acked_by_stream.get(stream);
|
|
@@ -2223,7 +2221,7 @@ function trace_cycle(logger, leased, fetched, handled, acked, blocked) {
|
|
|
2223
2221
|
|
|
2224
2222
|
// src/internal/drain-cycle.ts
|
|
2225
2223
|
function budget_exhausted(lease, options, store_failing) {
|
|
2226
|
-
if (store_failing || !_optionalChain([options, 'optionalAccess',
|
|
2224
|
+
if (store_failing || !_optionalChain([options, 'optionalAccess', _110 => _110.blockOnError]) || lease.retry <= options.maxRetries)
|
|
2227
2225
|
return void 0;
|
|
2228
2226
|
const error = `Blocking ${lease.stream} after ${lease.retry} claims with no acknowledged progress \u2014 the retry budget (${options.maxRetries}) was spent without the handler ever reporting an error. That means every attempt lost its lease before it could ack: move the reaction to a lane whose leaseMillis covers the handler, then unblock the stream.`;
|
|
2229
2227
|
_chunkF2YAA4SEcjs.log.call(void 0, ).error(error);
|
|
@@ -2287,7 +2285,7 @@ async function run_drain_cycle(deps, cycle) {
|
|
|
2287
2285
|
const fetched = await ops.fetch(leased, eventLimit);
|
|
2288
2286
|
const fetch_map = /* @__PURE__ */ new Map();
|
|
2289
2287
|
const fetch_window_at = fetched.reduce(
|
|
2290
|
-
(max, { at, events }) => Math.max(max, _optionalChain([events, 'access',
|
|
2288
|
+
(max, { at, events }) => Math.max(max, _optionalChain([events, 'access', _111 => _111.at, 'call', _112 => _112(-1), 'optionalAccess', _113 => _113.id]) || at),
|
|
2291
2289
|
0
|
|
2292
2290
|
);
|
|
2293
2291
|
for (const f of fetched) {
|
|
@@ -2351,11 +2349,11 @@ async function run_drain_cycle(deps, cycle) {
|
|
|
2351
2349
|
deps.logger
|
|
2352
2350
|
)
|
|
2353
2351
|
);
|
|
2354
|
-
const at = _optionalChain([entry, 'access',
|
|
2352
|
+
const at = _optionalChain([entry, 'access', _114 => _114.fetch, 'access', _115 => _115.events, 'access', _116 => _116.at, 'call', _117 => _117(-1), 'optionalAccess', _118 => _118.id]) || fetch_window_at;
|
|
2355
2353
|
const { payloads } = entry;
|
|
2356
2354
|
const exhausted = budget_exhausted(
|
|
2357
2355
|
lease,
|
|
2358
|
-
_optionalChain([payloads, 'access',
|
|
2356
|
+
_optionalChain([payloads, 'access', _119 => _119[0], 'optionalAccess', _120 => _120.options]),
|
|
2359
2357
|
store_failing
|
|
2360
2358
|
);
|
|
2361
2359
|
if (exhausted) return Promise.resolve(exhausted);
|
|
@@ -2444,7 +2442,7 @@ var DrainController = (_class5 = class {
|
|
|
2444
2442
|
}
|
|
2445
2443
|
/** This lane's configured lease, or `undefined`; the shutdown grace basis. */
|
|
2446
2444
|
get lease_millis() {
|
|
2447
|
-
return _optionalChain([this, 'access',
|
|
2445
|
+
return _optionalChain([this, 'access', _121 => _121._deps, 'access', _122 => _122.defaults, 'optionalAccess', _123 => _123.leaseMillis]);
|
|
2448
2446
|
}
|
|
2449
2447
|
get lane() {
|
|
2450
2448
|
return this._deps.lane;
|
|
@@ -2586,7 +2584,7 @@ function pii_strip(event, fields) {
|
|
|
2586
2584
|
|
|
2587
2585
|
// src/internal/projection-fold.ts
|
|
2588
2586
|
var FOLD_RESET = /* @__PURE__ */ Symbol("act.fold.reset");
|
|
2589
|
-
function make_fold_handler(me, flush, config2,
|
|
2587
|
+
function make_fold_handler(me, flush, config2, sensitive_fields) {
|
|
2590
2588
|
const load_me = {
|
|
2591
2589
|
...me,
|
|
2592
2590
|
view: (raw, actor) => {
|
|
@@ -2616,7 +2614,7 @@ function make_fold_handler(me, flush, config2, patch_fn, sensitive_fields) {
|
|
|
2616
2614
|
if (evictee.dirty) await flush([row(evictee)]);
|
|
2617
2615
|
cache2.delete(oldest);
|
|
2618
2616
|
}
|
|
2619
|
-
const snapshot = await load(load_me, { stream }
|
|
2617
|
+
const snapshot = await load(load_me, { stream });
|
|
2620
2618
|
const seated = {
|
|
2621
2619
|
stream,
|
|
2622
2620
|
state: snapshot.state,
|
|
@@ -2647,7 +2645,7 @@ function make_fold_handler(me, flush, config2, patch_fn, sensitive_fields) {
|
|
|
2647
2645
|
}
|
|
2648
2646
|
if (event.id > fold.event_id) {
|
|
2649
2647
|
const reducer = me.patch[event.name];
|
|
2650
|
-
fold.state =
|
|
2648
|
+
fold.state = bare_patch(
|
|
2651
2649
|
me,
|
|
2652
2650
|
fold.state,
|
|
2653
2651
|
reducer(event, fold.state),
|
|
@@ -2737,10 +2735,10 @@ var CloseSignal = class extends Error {
|
|
|
2737
2735
|
constructor(opts) {
|
|
2738
2736
|
super("reaction requested close");
|
|
2739
2737
|
this.name = "CloseSignal";
|
|
2740
|
-
this.stream = _optionalChain([opts, 'optionalAccess',
|
|
2741
|
-
this.archive = _optionalChain([opts, 'optionalAccess',
|
|
2742
|
-
this.at = _optionalChain([opts, 'optionalAccess',
|
|
2743
|
-
this.before = _optionalChain([opts, 'optionalAccess',
|
|
2738
|
+
this.stream = _optionalChain([opts, 'optionalAccess', _124 => _124.stream]);
|
|
2739
|
+
this.archive = _optionalChain([opts, 'optionalAccess', _125 => _125.archive]);
|
|
2740
|
+
this.at = _optionalChain([opts, 'optionalAccess', _126 => _126.at]);
|
|
2741
|
+
this.before = _optionalChain([opts, 'optionalAccess', _127 => _127.before]);
|
|
2744
2742
|
}
|
|
2745
2743
|
};
|
|
2746
2744
|
function build_handle(deps) {
|
|
@@ -2887,7 +2885,7 @@ var SettleLoop = (_class6 = class {
|
|
|
2887
2885
|
this._pending = true;
|
|
2888
2886
|
return;
|
|
2889
2887
|
}
|
|
2890
|
-
const delay = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2888
|
+
const delay = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _128 => _128.debounceMs]), () => ( this._default_debounce_ms));
|
|
2891
2889
|
const due = Date.now() + delay;
|
|
2892
2890
|
if (this._timer) {
|
|
2893
2891
|
if (due >= this._due) return;
|
|
@@ -3122,7 +3120,7 @@ var Act = (_class7 = class {
|
|
|
3122
3120
|
/** Apps that declare no lanes pass no lane filter to `claim`. */
|
|
3123
3121
|
_build_drain_controllers(options, lanes, handle, handle_batch) {
|
|
3124
3122
|
const all_lanes = this._declared_lanes;
|
|
3125
|
-
const only_set = _optionalChain([options, 'access',
|
|
3123
|
+
const only_set = _optionalChain([options, 'access', _129 => _129.onlyLanes, 'optionalAccess', _130 => _130.length]) ? new Set(options.onlyLanes) : void 0;
|
|
3126
3124
|
const active_lanes = only_set ? all_lanes.filter((n) => only_set.has(n)) : all_lanes;
|
|
3127
3125
|
const single_default_lane = lanes.length === 0;
|
|
3128
3126
|
const controllers = /* @__PURE__ */ new Map();
|
|
@@ -3159,7 +3157,7 @@ var Act = (_class7 = class {
|
|
|
3159
3157
|
leaseMillis: cfg.leaseMillis
|
|
3160
3158
|
}
|
|
3161
3159
|
});
|
|
3162
|
-
if (_optionalChain([cfg, 'optionalAccess',
|
|
3160
|
+
if (_optionalChain([cfg, 'optionalAccess', _131 => _131.cycleMs]) !== void 0 && this._drain)
|
|
3163
3161
|
controller.start(cfg.cycleMs);
|
|
3164
3162
|
controllers.set(name, controller);
|
|
3165
3163
|
}
|
|
@@ -3210,7 +3208,7 @@ var Act = (_class7 = class {
|
|
|
3210
3208
|
await walk_streams(_chunkF2YAA4SEcjs.store.call(void 0, ), (pos) => {
|
|
3211
3209
|
if (pos.deferred_at === void 0 || pos.deferred_at <= now) return;
|
|
3212
3210
|
const controller = this._drain_controllers.get(_nullishCoalesce(pos.lane, () => ( "default")));
|
|
3213
|
-
_optionalChain([controller, 'optionalAccess',
|
|
3211
|
+
_optionalChain([controller, 'optionalAccess', _132 => _132.seed_defer, 'call', _133 => _133(pos.stream, pos.deferred_at)]);
|
|
3214
3212
|
});
|
|
3215
3213
|
}
|
|
3216
3214
|
_build_settle(options) {
|
|
@@ -3251,7 +3249,7 @@ var Act = (_class7 = class {
|
|
|
3251
3249
|
for (const c of this._drain_controllers.values()) c.stop();
|
|
3252
3250
|
const disposer = await this._notify_disposer;
|
|
3253
3251
|
if (disposer) await disposer();
|
|
3254
|
-
await this._await_inflight(_optionalChain([options, 'optionalAccess',
|
|
3252
|
+
await this._await_inflight(_optionalChain([options, 'optionalAccess', _134 => _134.graceMs]));
|
|
3255
3253
|
await this._scoped(() => this._correlate.release_correlation());
|
|
3256
3254
|
this._emitter.removeAllListeners();
|
|
3257
3255
|
})();
|
|
@@ -3349,8 +3347,8 @@ var Act = (_class7 = class {
|
|
|
3349
3347
|
* @see {@link ValidationError}, {@link PreconditionError}, {@link ConcurrencyError}
|
|
3350
3348
|
*/
|
|
3351
3349
|
async do(action2, target, payload, options) {
|
|
3352
|
-
const reacting_to = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3353
|
-
const do_options = reacting_to === _optionalChain([options, 'optionalAccess',
|
|
3350
|
+
const reacting_to = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _135 => _135.reactingTo]), () => ( _chunkF2YAA4SEcjs.current_reacting.call(void 0, )));
|
|
3351
|
+
const do_options = reacting_to === _optionalChain([options, 'optionalAccess', _136 => _136.reactingTo]) ? options : { ...options, reactingTo: reacting_to };
|
|
3354
3352
|
return this._scoped(async () => {
|
|
3355
3353
|
const snapshots = await this._es.action(
|
|
3356
3354
|
this.registry.actions[action2],
|
|
@@ -3359,6 +3357,7 @@ var Act = (_class7 = class {
|
|
|
3359
3357
|
payload,
|
|
3360
3358
|
do_options
|
|
3361
3359
|
);
|
|
3360
|
+
if (!snapshots[0].patch) return snapshots;
|
|
3362
3361
|
this._wake(snapshots.map((s) => s.event.name));
|
|
3363
3362
|
this.emit("committed", snapshots);
|
|
3364
3363
|
return snapshots;
|
|
@@ -3414,7 +3413,7 @@ var Act = (_class7 = class {
|
|
|
3414
3413
|
const gated = this.registry.query_gate(e.name)(e);
|
|
3415
3414
|
if (!first) first = gated;
|
|
3416
3415
|
last = gated;
|
|
3417
|
-
_optionalChain([callback, 'optionalCall',
|
|
3416
|
+
_optionalChain([callback, 'optionalCall', _137 => _137(gated)]);
|
|
3418
3417
|
}, query);
|
|
3419
3418
|
return { first, last, count };
|
|
3420
3419
|
});
|
|
@@ -3541,7 +3540,7 @@ var Act = (_class7 = class {
|
|
|
3541
3540
|
}
|
|
3542
3541
|
if (to_arm.size === 0) return false;
|
|
3543
3542
|
this._correlate.arm();
|
|
3544
|
-
for (const lane of to_arm) _optionalChain([this, 'access',
|
|
3543
|
+
for (const lane of to_arm) _optionalChain([this, 'access', _138 => _138._drain_controllers, 'access', _139 => _139.get, 'call', _140 => _140(lane), 'optionalAccess', _141 => _141.arm, 'call', _142 => _142()]);
|
|
3545
3544
|
return true;
|
|
3546
3545
|
}
|
|
3547
3546
|
/** In parallel, so a slow lane never holds up a fast one. */
|
|
@@ -3685,7 +3684,7 @@ var Act = (_class7 = class {
|
|
|
3685
3684
|
return this._scoped(async () => {
|
|
3686
3685
|
const count = await _chunkF2YAA4SEcjs.store.call(void 0, ).reset(input);
|
|
3687
3686
|
for (const handler of this._batch_handlers.values())
|
|
3688
|
-
_optionalChain([handler, 'access',
|
|
3687
|
+
_optionalChain([handler, 'access', _143 => _143[FOLD_RESET], 'optionalCall', _144 => _144()]);
|
|
3689
3688
|
if (count > 0) {
|
|
3690
3689
|
this._wake();
|
|
3691
3690
|
}
|
|
@@ -3824,7 +3823,7 @@ var Act = (_class7 = class {
|
|
|
3824
3823
|
(p) => {
|
|
3825
3824
|
positions.push(p);
|
|
3826
3825
|
},
|
|
3827
|
-
{ blocked: true, after: _optionalChain([options, 'optionalAccess',
|
|
3826
|
+
{ blocked: true, after: _optionalChain([options, 'optionalAccess', _145 => _145.after]), limit: _optionalChain([options, 'optionalAccess', _146 => _146.limit]) }
|
|
3828
3827
|
);
|
|
3829
3828
|
return positions;
|
|
3830
3829
|
});
|
|
@@ -4018,12 +4017,12 @@ function policy_min_after_days(options) {
|
|
|
4018
4017
|
const parsed = AutoclosePolicySchema.parse(options);
|
|
4019
4018
|
const windows = [];
|
|
4020
4019
|
if (parsed.after) windows.push(parsed.after.days);
|
|
4021
|
-
if (_optionalChain([parsed, 'access',
|
|
4020
|
+
if (_optionalChain([parsed, 'access', _147 => _147.or, 'optionalAccess', _148 => _148.after])) windows.push(parsed.or.after.days);
|
|
4022
4021
|
return windows.length ? Math.min(...windows) : void 0;
|
|
4023
4022
|
}
|
|
4024
4023
|
function policy_keep_days(options) {
|
|
4025
4024
|
const parsed = AutoclosePolicySchema.parse(options);
|
|
4026
|
-
return _optionalChain([parsed, 'access',
|
|
4025
|
+
return _optionalChain([parsed, 'access', _149 => _149.keep, 'optionalAccess', _150 => _150.days]);
|
|
4027
4026
|
}
|
|
4028
4027
|
function compile_autoclose_policy(options) {
|
|
4029
4028
|
const parsed = AutoclosePolicySchema.parse(options);
|
|
@@ -4055,7 +4054,7 @@ function hour_in_zone(now, timeZone) {
|
|
|
4055
4054
|
hour: "2-digit",
|
|
4056
4055
|
hourCycle: "h23"
|
|
4057
4056
|
}).formatToParts(now);
|
|
4058
|
-
return Number(_optionalChain([parts, 'access',
|
|
4057
|
+
return Number(_optionalChain([parts, 'access', _151 => _151.find, 'call', _152 => _152((p) => p.type === "hour"), 'optionalAccess', _153 => _153.value]));
|
|
4059
4058
|
}
|
|
4060
4059
|
function hour_in_range(hour, start, end) {
|
|
4061
4060
|
return start < end ? hour >= start && hour < end : hour >= start || hour < end;
|
|
@@ -4153,7 +4152,7 @@ function synthesize_autoclose_reactions(registry, states, read_window) {
|
|
|
4153
4152
|
};
|
|
4154
4153
|
const key = `__autoclose_${st.name}`;
|
|
4155
4154
|
for (const event_name of Object.keys(st.events)) {
|
|
4156
|
-
_optionalChain([registry, 'access',
|
|
4155
|
+
_optionalChain([registry, 'access', _154 => _154.events, 'access', _155 => _155[event_name], 'optionalAccess', _156 => _156.reactions, 'access', _157 => _157.set, 'call', _158 => _158(
|
|
4157
4156
|
key,
|
|
4158
4157
|
reaction
|
|
4159
4158
|
)]);
|
|
@@ -4398,9 +4397,9 @@ function reaction_on(event, events, builder) {
|
|
|
4398
4397
|
// `maxRetries`/`backoff`/`blockOnError` throws ZodError at build,
|
|
4399
4398
|
// not a NaN gate on the first retry.
|
|
4400
4399
|
options: _chunkF2YAA4SEcjs.resolveReactionConfig.call(void 0, {
|
|
4401
|
-
blockOnError: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4402
|
-
maxRetries: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4403
|
-
backoff: _optionalChain([options, 'optionalAccess',
|
|
4400
|
+
blockOnError: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _159 => _159.blockOnError]), () => ( _chunkF2YAA4SEcjs.DEFAULT_BLOCK_ON_ERROR)),
|
|
4401
|
+
maxRetries: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _160 => _160.maxRetries]), () => ( _chunkF2YAA4SEcjs.DEFAULT_MAX_RETRIES)),
|
|
4402
|
+
backoff: _optionalChain([options, 'optionalAccess', _161 => _161.backoff])
|
|
4404
4403
|
})
|
|
4405
4404
|
};
|
|
4406
4405
|
},
|
|
@@ -4419,9 +4418,9 @@ function reaction_on(event, events, builder) {
|
|
|
4419
4418
|
|
|
4420
4419
|
// src/internal/date-reviver.ts
|
|
4421
4420
|
|
|
4422
|
-
var def_of = (schema) => _nullishCoalesce(_optionalChain([schema, 'access',
|
|
4421
|
+
var def_of = (schema) => _nullishCoalesce(_optionalChain([schema, 'access', _162 => _162._zod, 'optionalAccess', _163 => _163.def]), () => ( schema.def));
|
|
4423
4422
|
function variant_schema(schema) {
|
|
4424
|
-
const shape = _optionalChain([def_of, 'call',
|
|
4423
|
+
const shape = _optionalChain([def_of, 'call', _164 => _164(schema), 'optionalAccess', _165 => _165.shape]);
|
|
4425
4424
|
if (!shape) {
|
|
4426
4425
|
const dates = date_reviver_schema(schema);
|
|
4427
4426
|
return { schema: _nullishCoalesce(dates, () => ( schema)), dated: !!dates };
|
|
@@ -4469,7 +4468,7 @@ function date_reviver_schema(schema) {
|
|
|
4469
4468
|
return variants.some((v) => v.dated) ? _zod2.z.union(variants.map((v) => v.schema)) : void 0;
|
|
4470
4469
|
}
|
|
4471
4470
|
case "nullable":
|
|
4472
|
-
return _optionalChain([inner, 'call',
|
|
4471
|
+
return _optionalChain([inner, 'call', _166 => _166(), 'optionalAccess', _167 => _167.nullable, 'call', _168 => _168()]);
|
|
4473
4472
|
case "optional":
|
|
4474
4473
|
case "nonoptional":
|
|
4475
4474
|
case "readonly":
|
|
@@ -4646,7 +4645,7 @@ function act() {
|
|
|
4646
4645
|
let _built = false;
|
|
4647
4646
|
const read_wrap = (original) => {
|
|
4648
4647
|
const wrapped = async (events, stream) => {
|
|
4649
|
-
const read = events.map((e) => _nullishCoalesce(_optionalChain([_hr, 'access',
|
|
4648
|
+
const read = events.map((e) => _nullishCoalesce(_optionalChain([_hr, 'access', _169 => _169.get, 'call', _170 => _170(e.name), 'optionalCall', _171 => _171(e)]), () => ( e)));
|
|
4650
4649
|
return original(read, stream);
|
|
4651
4650
|
};
|
|
4652
4651
|
const reset = original[FOLD_RESET];
|
|
@@ -4663,7 +4662,6 @@ function act() {
|
|
|
4663
4662
|
spec.merged,
|
|
4664
4663
|
spec.flush,
|
|
4665
4664
|
spec.config,
|
|
4666
|
-
bare_patch,
|
|
4667
4665
|
// Head loads strip sensitive keys like the warm path.
|
|
4668
4666
|
registry.sensitive_fields
|
|
4669
4667
|
)
|
|
@@ -4688,7 +4686,7 @@ function act() {
|
|
|
4688
4686
|
});
|
|
4689
4687
|
}
|
|
4690
4688
|
for (const [action_name, handler] of Object.entries(state2.on)) {
|
|
4691
|
-
const static_target = _optionalChain([handler, 'optionalAccess',
|
|
4689
|
+
const static_target = _optionalChain([handler, 'optionalAccess', _172 => _172._static_emit]);
|
|
4692
4690
|
if (static_target && deprecated.has(static_target)) {
|
|
4693
4691
|
const current = current_version_of(static_target, event_names);
|
|
4694
4692
|
throw new Error(
|
|
@@ -4761,7 +4759,7 @@ function act() {
|
|
|
4761
4759
|
`State projection "${proj.target}" of "${fold.name}" is missing events ${missing.join(", ")} \u2014 pass every partial of the state to .of()`
|
|
4762
4760
|
);
|
|
4763
4761
|
const claimed = fold_specs.find((s) => s.target === proj.target);
|
|
4764
|
-
if (_optionalChain([claimed, 'optionalAccess',
|
|
4762
|
+
if (_optionalChain([claimed, 'optionalAccess', _173 => _173.projection]) === proj) continue;
|
|
4765
4763
|
if (batch_handlers.has(proj.target) || claimed)
|
|
4766
4764
|
throw new Error(
|
|
4767
4765
|
`Duplicate projection target "${proj.target}" \u2014 a target is served by one batch handler or one state projection, never both`
|