@rotorsoft/act 1.32.14 → 1.32.16
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 +44 -88
- 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 +23 -25
- package/dist/@types/types/action.d.ts.map +1 -1
- 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 +15 -20
- package/dist/@types/types/reaction.d.ts.map +1 -1
- 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 +152 -372
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +147 -367
- 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
package/dist/@types/act.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export type ActLifecycleEvents<_TSchemaReg extends SchemaRegister<TActions>, TEv
|
|
|
50
50
|
eventCount: number;
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
53
|
-
* A store operation failed during the drain loop
|
|
53
|
+
* A store operation failed during the drain loop. Fires on
|
|
54
54
|
* every failed drain cycle — typically a {@link StoreError} from a
|
|
55
55
|
* degraded backend — carrying the orchestrator circuit breaker's state
|
|
56
56
|
* after the failure (`open` means the drain loop has backed off and will
|
|
@@ -69,7 +69,7 @@ export type ActLifecycleEvents<_TSchemaReg extends SchemaRegister<TActions>, TEv
|
|
|
69
69
|
* @property maxSubscribedStreams - Cap for the LRU tracking what each
|
|
70
70
|
* dynamically resolved reaction target was last subscribed at. Statically
|
|
71
71
|
* declared targets are held outside it and never evicted, so their lane
|
|
72
|
-
* and priority stay owned by the build-time subscribe
|
|
72
|
+
* and priority stay owned by the build-time subscribe.
|
|
73
73
|
* Default: {@link DEFAULT_MAX_SUBSCRIBED_STREAMS}.
|
|
74
74
|
* @property settleDebounceMs - Debounce window (ms) used by `settle()` when
|
|
75
75
|
* the caller doesn't pass `SettleOptions.debounceMs`. Tune this once per
|
|
@@ -80,7 +80,7 @@ export type ActOptions<TLanes extends string = string> = {
|
|
|
80
80
|
readonly maxSubscribedStreams?: number;
|
|
81
81
|
readonly settleDebounceMs?: number;
|
|
82
82
|
/**
|
|
83
|
-
* Per-Act ports
|
|
83
|
+
* Per-Act ports. When set, this Act runs against the
|
|
84
84
|
* provided store + cache instead of the singletons — threaded via
|
|
85
85
|
* AsyncLocalStorage so internals are unchanged. Both are required
|
|
86
86
|
* together (a shared cache across distinct stores would collide on
|
|
@@ -88,7 +88,7 @@ export type ActOptions<TLanes extends string = string> = {
|
|
|
88
88
|
*/
|
|
89
89
|
readonly scoped?: Scoped;
|
|
90
90
|
/**
|
|
91
|
-
* Correlation-id generator for originating actions
|
|
91
|
+
* Correlation-id generator for originating actions. When
|
|
92
92
|
* omitted, Act uses {@link default_correlator}, which produces a
|
|
93
93
|
* readable, time-monotonic-within-window, lowercase id of the form
|
|
94
94
|
* `{state[:4]}-{action[:4]}-{ts}{rnd}` (18 chars).
|
|
@@ -98,10 +98,10 @@ export type ActOptions<TLanes extends string = string> = {
|
|
|
98
98
|
* for the close-the-books transaction.
|
|
99
99
|
*/
|
|
100
100
|
readonly correlator?: Correlator;
|
|
101
|
-
/** Restrict this process to a subset of declared lanes
|
|
101
|
+
/** Restrict this process to a subset of declared lanes. */
|
|
102
102
|
readonly onlyLanes?: ReadonlyArray<TLanes>;
|
|
103
103
|
/**
|
|
104
|
-
* Subscribe to {@link Store.notify} on this instance
|
|
104
|
+
* Subscribe to {@link Store.notify} on this instance. Defaults
|
|
105
105
|
* to `true`. Set `false` on instances that only commit and never
|
|
106
106
|
* react — the subscriber-connection budget is the practical scaling
|
|
107
107
|
* ceiling for the notify/listen pattern, and writer-only fleets
|
|
@@ -111,7 +111,7 @@ export type ActOptions<TLanes extends string = string> = {
|
|
|
111
111
|
*/
|
|
112
112
|
readonly listen?: boolean;
|
|
113
113
|
/**
|
|
114
|
-
* Run the local reaction pipeline on this instance
|
|
114
|
+
* Run the local reaction pipeline on this instance. Defaults
|
|
115
115
|
* to `true`. Set `false` on writer-only or sidecar instances: drain
|
|
116
116
|
* controllers' auto-cycle workers don't start, `correlate()` /
|
|
117
117
|
* `drain()` / `settle()` become no-ops, and the notify handler
|
|
@@ -120,7 +120,7 @@ export type ActOptions<TLanes extends string = string> = {
|
|
|
120
120
|
*/
|
|
121
121
|
readonly drain?: boolean;
|
|
122
122
|
/**
|
|
123
|
-
* Orchestrator circuit breaker for the drain loop
|
|
123
|
+
* Orchestrator circuit breaker for the drain loop. After
|
|
124
124
|
* `failureThreshold` consecutive store failures the breaker opens and
|
|
125
125
|
* the drain loop skips `claim()` for `cooldownMs` instead of hammering a
|
|
126
126
|
* down backend, then allows a half-open trial. Out-of-range values throw
|
|
@@ -128,9 +128,8 @@ export type ActOptions<TLanes extends string = string> = {
|
|
|
128
128
|
*/
|
|
129
129
|
readonly circuitBreaker?: CircuitBreakerOptions;
|
|
130
130
|
/**
|
|
131
|
-
* @deprecated
|
|
132
|
-
*
|
|
133
|
-
* sweep; the synthesized autoclose reaction now derives its re-check
|
|
131
|
+
* @deprecated Accepted, validated, and ignored. It paced the off-hours
|
|
132
|
+
* re-check of the old autoclose sweep; the synthesized autoclose reaction now derives its re-check
|
|
134
133
|
* directly from `autocloseWindow` — a tick landing outside the window
|
|
135
134
|
* parks until the exact instant the window opens, so there is no
|
|
136
135
|
* polling cadence to configure (and nothing minute-denominated on the
|
|
@@ -140,21 +139,21 @@ export type ActOptions<TLanes extends string = string> = {
|
|
|
140
139
|
*/
|
|
141
140
|
readonly autocloseCycleMinutes?: number;
|
|
142
141
|
/**
|
|
143
|
-
* @deprecated
|
|
142
|
+
* @deprecated Unused since the autoclose sweep was replaced by a
|
|
144
143
|
* synthesized per-aggregate reaction — nothing pages the store in
|
|
145
144
|
* batches anymore, so nothing reads this. Accepted and validated
|
|
146
145
|
* (`[1, 1024]`) for compatibility; will be removed in the next major.
|
|
147
146
|
*/
|
|
148
147
|
readonly closeBatchSize?: number;
|
|
149
148
|
/**
|
|
150
|
-
* @deprecated
|
|
149
|
+
* @deprecated Unused: the sweep that yielded between
|
|
151
150
|
* successive `Store.truncate` calls no longer exists; closes are
|
|
152
151
|
* staged per stream by the autoclose reaction. Accepted and validated
|
|
153
152
|
* (`[0, 1000]`) for compatibility; will be removed in the next major.
|
|
154
153
|
*/
|
|
155
154
|
readonly closeYieldMs?: number;
|
|
156
155
|
/**
|
|
157
|
-
* @deprecated
|
|
156
|
+
* @deprecated Unused: the sweep-side predicate try/catch
|
|
158
157
|
* this flag steered no longer exists; a throwing policy predicate now
|
|
159
158
|
* follows the reaction retry path (`blockOnError: false`, three
|
|
160
159
|
* retries). Accepted for compatibility; will be removed in the next
|
|
@@ -177,14 +176,14 @@ export type ActOptions<TLanes extends string = string> = {
|
|
|
177
176
|
};
|
|
178
177
|
/**
|
|
179
178
|
* Validate folded state against its declared Zod schema after every
|
|
180
|
-
* reduction
|
|
179
|
+
* reduction. Off by default.
|
|
181
180
|
*
|
|
182
181
|
* When `true`, each time an event is folded into state — on the
|
|
183
182
|
* command path (`do`), on `load`/replay, and inside projection-fold
|
|
184
183
|
* projections — the merged full state is parsed against the owning
|
|
185
184
|
* state's `state({ Name: schema })` schema. A reducer that produces
|
|
186
|
-
* schema-violating state (the calculator divide-by-zero NaN
|
|
187
|
-
*
|
|
185
|
+
* schema-violating state (the calculator divide-by-zero NaN
|
|
186
|
+
* class) throws a {@link ValidationError} at the triggering event,
|
|
188
187
|
* whose `target` names the state and the event (`<state>.<event>#<id>`)
|
|
189
188
|
* — instead of the bad value propagating and surfacing hops later as a
|
|
190
189
|
* confusing downstream error.
|
|
@@ -201,19 +200,45 @@ export type ActOptions<TLanes extends string = string> = {
|
|
|
201
200
|
*/
|
|
202
201
|
readonly validateFoldedState?: boolean;
|
|
203
202
|
};
|
|
203
|
+
/**
|
|
204
|
+
* @category Orchestrator
|
|
205
|
+
* @see Store
|
|
206
|
+
*
|
|
207
|
+
* Main orchestrator for event-sourced state machines and workflows.
|
|
208
|
+
*
|
|
209
|
+
* It manages the lifecycle of actions, reactions, and event streams, providing APIs for loading state, executing actions, querying events, and draining reactions.
|
|
210
|
+
*
|
|
211
|
+
* ## Usage
|
|
212
|
+
*
|
|
213
|
+
* ```typescript
|
|
214
|
+
* const app = act().withState(Counter).build();
|
|
215
|
+
* await app.do("increment", { stream: "counter1", actor }, { by: 1 });
|
|
216
|
+
* const snapshot = await app.load(Counter, "counter1");
|
|
217
|
+
* await app.drain();
|
|
218
|
+
* ```
|
|
219
|
+
*
|
|
220
|
+
* - Register event listeners with `.on("committed", ...)` and `.on("acked", ...)` to react to lifecycle events.
|
|
221
|
+
* - Use `.query()` to analyze event streams for analytics or debugging.
|
|
222
|
+
*
|
|
223
|
+
* @template TSchemaReg SchemaRegister for state
|
|
224
|
+
* @template TEvents Schemas for events
|
|
225
|
+
* @template TActions Schemas for actions
|
|
226
|
+
* @template TStateMap Map of state names to state schemas
|
|
227
|
+
* @template TActor Actor type extending base Actor
|
|
228
|
+
*/
|
|
204
229
|
export declare class Act<TSchemaReg extends SchemaRegister<TActions>, TEvents extends Schemas, TActions extends Schemas, TStateMap extends Record<string, Schema> = Record<string, never>, TActor extends Actor = Actor> implements IAct<TEvents, TActions, TActor, TSchemaReg> {
|
|
205
230
|
private _emitter;
|
|
206
|
-
/**
|
|
231
|
+
/** Circuit breaker shared by all drain lanes. */
|
|
207
232
|
private readonly _breaker;
|
|
208
|
-
/**
|
|
233
|
+
/** Whether this instance subscribes to `Store.notify`. */
|
|
209
234
|
private readonly _listen;
|
|
210
|
-
/**
|
|
235
|
+
/** Whether this instance runs reactions (drain, settle, correlate). */
|
|
211
236
|
private readonly _drain;
|
|
212
237
|
/** Event names with at least one registered reaction (computed at build time) */
|
|
213
238
|
private readonly _reactive_events;
|
|
214
239
|
/** One DrainController per active lane, keyed by lane name. */
|
|
215
240
|
private readonly _drain_controllers;
|
|
216
|
-
/** Correlation
|
|
241
|
+
/** Correlation: lazy init and the scan that marks work. */
|
|
217
242
|
private readonly _correlate;
|
|
218
243
|
/** Debounced correlate→drain catch-up loop. */
|
|
219
244
|
private readonly _settle;
|
|
@@ -243,26 +268,10 @@ export declare class Act<TSchemaReg extends SchemaRegister<TActions>, TEvents ex
|
|
|
243
268
|
* Emit a lifecycle event. The payload type is inferred from the event name
|
|
244
269
|
* via {@link ActLifecycleEvents}.
|
|
245
270
|
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
* - Wrapping the *emit* rather than each *listener* still let the first
|
|
252
|
-
* thrower abort the rest: `EventEmitter.emit` stops dispatching on the
|
|
253
|
-
* first exception, so a second `app.on("acked", …)` never ran. The
|
|
254
|
-
* documented "the remaining sinks still fire" was false whenever an event
|
|
255
|
-
* had more than one listener. Same lesson as #1423, where guarding the
|
|
256
|
-
* loop instead of each callback left every later SSE subscriber unserved.
|
|
257
|
-
* - Only *some* call sites wrapped at all. The drain contained `acked` and
|
|
258
|
-
* `blocked`; `committed`, `forgotten` and `close()`'s `closed` did not, so
|
|
259
|
-
* a throwing listener rejected `do()`, `forget()` and `close()` **after**
|
|
260
|
-
* their durable work had already landed. A caller retrying a "failed"
|
|
261
|
-
* `do()` writes the event twice, since the framework has no dedup by
|
|
262
|
-
* design.
|
|
263
|
-
*
|
|
264
|
-
* Containing here makes it a property of emitting, so a new lifecycle event
|
|
265
|
-
* cannot reintroduce the gap by omission.
|
|
271
|
+
* Each listener is contained on its own: a throwing listener is logged,
|
|
272
|
+
* the remaining listeners still run, and the caller (`do()`, `forget()`,
|
|
273
|
+
* `close()`, the drain) never sees the throw, since its durable work has
|
|
274
|
+
* already landed.
|
|
266
275
|
*
|
|
267
276
|
* Uses `rawListeners` so `once` wrappers still de-register themselves, and
|
|
268
277
|
* returns "had listeners" to preserve the `EventEmitter.emit` contract.
|
|
@@ -303,29 +312,23 @@ export declare class Act<TSchemaReg extends SchemaRegister<TActions>, TEvents ex
|
|
|
303
312
|
*/
|
|
304
313
|
private readonly _event_to_state;
|
|
305
314
|
/**
|
|
306
|
-
* Event-name → lane fan-in for selective arming
|
|
315
|
+
* Event-name → lane fan-in for selective arming. Built by
|
|
307
316
|
* `classify_registry` once per build. `"all"` means at least one of
|
|
308
317
|
* the event's reactions is a dynamic resolver (lane opaque until
|
|
309
318
|
* runtime); a `Set<string>` lists the static lanes only that event's
|
|
310
319
|
* reactions target.
|
|
311
320
|
*/
|
|
312
321
|
private readonly _event_to_lanes;
|
|
313
|
-
/**
|
|
314
|
-
* Audit dependency bag (#723). Built once at construction; held as
|
|
315
|
-
* an immutable snapshot of the registry state the audit module
|
|
316
|
-
* needs. Lives in `internal/audit.ts` — this orchestrator never
|
|
317
|
-
* carries audit logic, only the deps + a one-liner that hands them
|
|
318
|
-
* over.
|
|
319
|
-
*/
|
|
322
|
+
/** What `internal/audit.ts` needs, built once at construction. */
|
|
320
323
|
private readonly _audit_deps;
|
|
321
324
|
/** Logger resolved at construction time (after user port configuration) */
|
|
322
325
|
private readonly _logger;
|
|
323
|
-
/** Wraps a public-method body so internal `store()`/`cache()` resolve to the
|
|
324
|
-
* per-Act ports (ACT-501). No-op when the Act is unscoped — so the singleton
|
|
325
|
-
* path keeps reading fresh `store()`/`cache()` per call, which matters for
|
|
326
|
-
* tests that dispose and re-seed mid-suite. */
|
|
327
326
|
/** This Act's ports: its own bag, or the singleton adapters. */
|
|
328
327
|
private readonly _ports;
|
|
328
|
+
/**
|
|
329
|
+
* Runs a body inside this Act's ports frame, so internal
|
|
330
|
+
* `store()`/`cache()` calls resolve to `_ports`.
|
|
331
|
+
*/
|
|
329
332
|
private readonly _scoped;
|
|
330
333
|
/**
|
|
331
334
|
* Correlation-id generator for originating actions. Bound at
|
|
@@ -344,24 +347,18 @@ export declare class Act<TSchemaReg extends SchemaRegister<TActions>, TEvents ex
|
|
|
344
347
|
/** Reaction dispatchers built once and handed to run_drain_cycle each cycle. */
|
|
345
348
|
private readonly _handle;
|
|
346
349
|
private readonly _handle_batch;
|
|
347
|
-
/** Declared drain lanes
|
|
350
|
+
/** Declared drain lanes. */
|
|
348
351
|
private readonly _lanes;
|
|
349
352
|
/**
|
|
350
|
-
* Per-stream close serialization tails
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
* the same stream never run their guard-free prune concurrently — the
|
|
354
|
-
* manual path bypasses the `__autoclose__:X` drain lease that would
|
|
355
|
-
* otherwise exclude them, so without this both closers archive the
|
|
356
|
-
* same prefix. Process-local: both racers run on the same Act
|
|
357
|
-
* instance. Entries are dropped once their tail resolves so the map
|
|
358
|
-
* doesn't grow with distinct stream names.
|
|
353
|
+
* Per-stream close serialization tails, so a manual close and an
|
|
354
|
+
* autoclose of the same stream never prune concurrently (the manual path
|
|
355
|
+
* has no drain lease to exclude it). Entries are dropped once settled.
|
|
359
356
|
*/
|
|
360
357
|
private readonly _close_locks;
|
|
361
358
|
/**
|
|
362
|
-
* Run `work` under the per-stream close lock
|
|
363
|
-
* critical sections for the same stream (windowed prunes
|
|
364
|
-
*
|
|
359
|
+
* Run `work` under the per-stream close lock. Serializes close
|
|
360
|
+
* critical sections for the same stream (windowed prunes and full
|
|
361
|
+
* closes) while letting different streams proceed in parallel.
|
|
365
362
|
*/
|
|
366
363
|
private _with_close_lock;
|
|
367
364
|
/** Drain lanes declared via `.withLane(...)`. Implicit default not included. */
|
|
@@ -376,11 +373,11 @@ export declare class Act<TSchemaReg extends SchemaRegister<TActions>, TEvents ex
|
|
|
376
373
|
* @param states Merged map of state name → state definition
|
|
377
374
|
* @param batch_handlers Static-target projection batch handlers (target → handler)
|
|
378
375
|
* @param options Tuning knobs — see {@link ActOptions}
|
|
379
|
-
* @param lanes Declared drain lanes
|
|
380
|
-
* these from `.withLane(...)` calls
|
|
381
|
-
*
|
|
376
|
+
* @param lanes Declared drain lanes. The builder collects
|
|
377
|
+
* these from `.withLane(...)` calls; one `DrainController` runs
|
|
378
|
+
* per lane, plus the implicit `"default"`.
|
|
382
379
|
* @param patch_fn The per-event patch step selected once by the builder
|
|
383
|
-
* from `ActOptions.validateFoldedState`
|
|
380
|
+
* from `ActOptions.validateFoldedState` — `bare_patch` by
|
|
384
381
|
* default, `validating_patch` when the flag is on. The builder uses
|
|
385
382
|
* the same value for its projection-fold handlers, so there is a
|
|
386
383
|
* single selection site. Defaults to `bare_patch` for direct
|
|
@@ -394,34 +391,18 @@ export declare class Act<TSchemaReg extends SchemaRegister<TActions>, TEvents ex
|
|
|
394
391
|
*/
|
|
395
392
|
private _build_breaker;
|
|
396
393
|
/**
|
|
397
|
-
* One DrainController per active lane
|
|
398
|
-
*
|
|
399
|
-
*
|
|
400
|
-
* no-lane-declared case with `lane: undefined` deps so claim() doesn't
|
|
401
|
-
* filter (preserves the single-lane SQL planner shape for apps that never
|
|
402
|
-
* call withLane).
|
|
394
|
+
* One DrainController per active lane, plus the implicit "default" unless
|
|
395
|
+
* `onlyLanes` excludes it. Apps that declare no lanes pass no lane filter
|
|
396
|
+
* to `claim`.
|
|
403
397
|
*/
|
|
404
398
|
private _build_drain_controllers;
|
|
405
399
|
/**
|
|
406
|
-
*
|
|
407
|
-
*
|
|
408
|
-
*
|
|
409
|
-
* subscribes all static targets regardless of `onlyLanes`) but never
|
|
410
|
-
* claimed here. If no peer worker deploys with those lanes in ITS
|
|
411
|
-
* `onlyLanes`, their reactions accumulate forever, silently. A single
|
|
412
|
-
* process can't verify the cluster invariant `∪ onlyLanes ⊇ declared
|
|
413
|
-
* lanes`, so we surface the per-instance signal — "these declared lanes
|
|
414
|
-
* have no controller here" — the same way the deprecated-event advisory
|
|
415
|
-
* surfaces legacy events. No advisory when `onlyLanes` is unset (every
|
|
416
|
-
* lane gets a controller) or covers every declared lane.
|
|
400
|
+
* Startup advisory naming declared lanes that `onlyLanes` leaves without a
|
|
401
|
+
* controller here. One process can't check that the cluster covers every
|
|
402
|
+
* lane, so it reports its own gaps.
|
|
417
403
|
*/
|
|
418
404
|
private _advise_orphaned_lanes;
|
|
419
|
-
/**
|
|
420
|
-
* Audit deps bag. Snapshotted after registry classification and
|
|
421
|
-
* drain-controller build so the audit module sees the finalized lane
|
|
422
|
-
* set. Held as an immutable bag — the orchestrator never carries audit
|
|
423
|
-
* logic itself, only this typed contract.
|
|
424
|
-
*/
|
|
405
|
+
/** Audit deps, built after the controllers so the lane set is final. */
|
|
425
406
|
private _build_audit_deps;
|
|
426
407
|
/**
|
|
427
408
|
* Correlate cycle over the classified registry. The cold-start callback
|
|
@@ -430,20 +411,10 @@ export declare class Act<TSchemaReg extends SchemaRegister<TActions>, TEvents ex
|
|
|
430
411
|
*/
|
|
431
412
|
private _build_correlate;
|
|
432
413
|
/**
|
|
433
|
-
*
|
|
434
|
-
*
|
|
435
|
-
*
|
|
436
|
-
*
|
|
437
|
-
* The defer timer is worker memory: empty after a restart. A stream
|
|
438
|
-
* deferred to a future due-time (the classic case: an idle autoclose
|
|
439
|
-
* aggregate that deferred its terminal close) is durable in the store but
|
|
440
|
-
* has nothing in memory to re-arm the drain — the controller disarms on
|
|
441
|
-
* the first empty claim and, since the aggregate is idle, no commit ever
|
|
442
|
-
* re-arms it. Reading the persisted schedule and seeding the owning lane's
|
|
443
|
-
* timer restores the wake, so the close fires at the due-time.
|
|
444
|
-
*
|
|
445
|
-
* Streams whose lane has no controller on this instance (excluded by
|
|
446
|
-
* `onlyLanes`) are skipped — a peer worker owns that lane's timer.
|
|
414
|
+
* At cold start, re-seed each lane controller's local wake from the
|
|
415
|
+
* persisted future `deferred_at`, so an idle deferred stream (an
|
|
416
|
+
* autoclose waiting out its window) still fires on time. Streams on lanes
|
|
417
|
+
* this instance doesn't run are skipped.
|
|
447
418
|
*/
|
|
448
419
|
private _seed_persisted_defers;
|
|
449
420
|
/** Settle loop driving correlate + drain to quiescence. */
|
|
@@ -455,19 +426,11 @@ export declare class Act<TSchemaReg extends SchemaRegister<TActions>, TEvents ex
|
|
|
455
426
|
* already in flight a bounded chance to finish, then remove lifecycle
|
|
456
427
|
* listeners and tear down the cross-process notify subscription.
|
|
457
428
|
*
|
|
458
|
-
*
|
|
459
|
-
*
|
|
460
|
-
*
|
|
461
|
-
*
|
|
462
|
-
*
|
|
463
|
-
* (which #1418 then redelivers). Listeners come off *after* that wait, not
|
|
464
|
-
* before, so an `acked` / `blocked` subscriber still observes the work
|
|
465
|
-
* that completed during the grace window.
|
|
466
|
-
*
|
|
467
|
-
* The budget is a ceiling, not a delay — teardown continues the moment the
|
|
468
|
-
* last in-flight cycle finishes. When it is exhausted, teardown proceeds
|
|
469
|
-
* anyway: one stuck handler must not hang a deploy, which is the failure
|
|
470
|
-
* mode an unbounded wait would trade for.
|
|
429
|
+
* Scheduling stops first, then in-flight cycles get up to `graceMs` to
|
|
430
|
+
* reach their `ack` (an abandoned handler holds its lease until it
|
|
431
|
+
* expires). Listeners come off after the wait, so they still see work that
|
|
432
|
+
* finished during it. The budget is a ceiling, not a delay; when it runs
|
|
433
|
+
* out, teardown proceeds anyway.
|
|
471
434
|
*
|
|
472
435
|
* Idempotent — repeated calls return the same promise, and the first
|
|
473
436
|
* call's `graceMs` is the one that applies. Registered automatically with
|
|
@@ -484,26 +447,10 @@ export declare class Act<TSchemaReg extends SchemaRegister<TActions>, TEvents ex
|
|
|
484
447
|
* whichever comes first. Cycle promises never reject (`drain()` contains
|
|
485
448
|
* its own errors), so this never throws.
|
|
486
449
|
*
|
|
487
|
-
* An omitted budget is
|
|
488
|
-
* in flight
|
|
489
|
-
*
|
|
490
|
-
*
|
|
491
|
-
* lane that pinned no lease contributes `drain()`'s own fallback, and the
|
|
492
|
-
* whole thing is capped so a long-leased lane cannot hold a deploy open.
|
|
493
|
-
* Idle lanes do not count — nothing is running on them to wait for.
|
|
494
|
-
*
|
|
495
|
-
* An in-flight settle counts the same way, on the same fallback (#1617).
|
|
496
|
-
* It is waited on like any cycle, and deriving from the lanes alone gave
|
|
497
|
-
* it a budget of `0` whenever it was the only thing running — which
|
|
498
|
-
* returned before the wait it was about to be added to.
|
|
499
|
-
*
|
|
500
|
-
* A lane configured `leaseMillis: 0` takes the fallback rather than its
|
|
501
|
-
* own value, which is why this coalesces on falsy and not just on absent
|
|
502
|
-
* (#1647). A zero-length lease expires the instant it is granted, so it
|
|
503
|
-
* has no answer to offer for "how long may a handler hold this stream" —
|
|
504
|
-
* it is the pinned-no-lease case spelled with a number, and #1617 already
|
|
505
|
-
* settled what that case is worth. Taking it literally derived a budget
|
|
506
|
-
* of `0` and abandoned the very cycle this had just found running.
|
|
450
|
+
* An omitted budget is the largest `leaseMillis` among lanes with a cycle
|
|
451
|
+
* in flight (the drain's fallback for lanes that pinned none, or pinned
|
|
452
|
+
* 0, which is the same as none), with an in-flight settle counting on the
|
|
453
|
+
* fallback, capped at the maximum. Idle lanes don't count.
|
|
507
454
|
*/
|
|
508
455
|
private _derive_grace_ms;
|
|
509
456
|
private _await_inflight;
|
|
@@ -722,7 +669,7 @@ export declare class Act<TSchemaReg extends SchemaRegister<TActions>, TEvents ex
|
|
|
722
669
|
query_array(query: Query): Promise<Committed<TEvents, keyof TEvents>[]>;
|
|
723
670
|
/**
|
|
724
671
|
* Wipe the sensitive-data payload for every event on the stream — see
|
|
725
|
-
* {@link IAct.forget}.
|
|
672
|
+
* {@link IAct.forget}.
|
|
726
673
|
*
|
|
727
674
|
* Throws on adapters without `Store.forget_pii`, invalidates the cache
|
|
728
675
|
* entry for the stream, emits the `forgotten` lifecycle event with the
|
|
@@ -750,7 +697,7 @@ export declare class Act<TSchemaReg extends SchemaRegister<TActions>, TEvents ex
|
|
|
750
697
|
*
|
|
751
698
|
* Call `correlate()` before `drain()`. It is not only how dynamic targets
|
|
752
699
|
* are discovered: a stream is claimable while `at < correlated_at`, and
|
|
753
|
-
* `correlate` is the only component that raises that mark
|
|
700
|
+
* `correlate` is the only component that raises that mark, so a
|
|
754
701
|
* commit no correlate has seen is not drainable — including for static
|
|
755
702
|
* targets, which were served by a probe of the event log before. For a
|
|
756
703
|
* higher-level API that handles debouncing, correlation, and signaling
|
|
@@ -778,11 +725,11 @@ export declare class Act<TSchemaReg extends SchemaRegister<TActions>, TEvents ex
|
|
|
778
725
|
* @see {@link start_correlations} for automatic correlation
|
|
779
726
|
*/
|
|
780
727
|
drain(options?: DrainOptions): Promise<Drain<TEvents>>;
|
|
781
|
-
/** Arm every active lane controller
|
|
728
|
+
/** Arm every active lane controller. */
|
|
782
729
|
private _arm_all;
|
|
783
730
|
/**
|
|
784
731
|
* Arm only the lane controllers whose reactions match the supplied
|
|
785
|
-
* event names (
|
|
732
|
+
* event names (selective arming). Events with any dynamic
|
|
786
733
|
* resolver fall back to `_arm_all()` via the `"all"` sentinel — the
|
|
787
734
|
* resolver's lane isn't known until correlate runs the function.
|
|
788
735
|
* Events with no reactions are skipped; `_event_to_lanes` doesn't
|
|
@@ -849,7 +796,7 @@ export declare class Act<TSchemaReg extends SchemaRegister<TActions>, TEvents ex
|
|
|
849
796
|
last_id: number;
|
|
850
797
|
}>;
|
|
851
798
|
/**
|
|
852
|
-
* `correlate` plus whether the pass actually read the store
|
|
799
|
+
* `correlate` plus whether the pass actually read the store.
|
|
853
800
|
*
|
|
854
801
|
* The settle loop needs that extra bit to decide whether the pass carries a
|
|
855
802
|
* circuit-breaker health signal, and a disarmed pass carries none. It stays
|
|
@@ -1034,7 +981,7 @@ export declare class Act<TSchemaReg extends SchemaRegister<TActions>, TEvents ex
|
|
|
1034
981
|
limit?: number;
|
|
1035
982
|
}): Promise<StreamPosition[]>;
|
|
1036
983
|
/**
|
|
1037
|
-
* Operator-driven store audit
|
|
984
|
+
* Operator-driven store audit.
|
|
1038
985
|
*
|
|
1039
986
|
* Walks the connected store and yields per-category findings —
|
|
1040
987
|
* each tagged with the remediation it suggests. Same operator-
|
|
@@ -1079,7 +1026,7 @@ export declare class Act<TSchemaReg extends SchemaRegister<TActions>, TEvents ex
|
|
|
1079
1026
|
* Bulk-update scheduling priority for streams matching `filter`.
|
|
1080
1027
|
*
|
|
1081
1028
|
* Operator-grade override of the `claim()` lagging-frontier
|
|
1082
|
-
* ordering
|
|
1029
|
+
* ordering. Useful when a long-running replay needs to
|
|
1083
1030
|
* jump ahead of other lagging streams, or when a no-longer-urgent
|
|
1084
1031
|
* job should yield slots back to the rest. Build-time priorities
|
|
1085
1032
|
* (set via the resolver's `priority` field) are subject to a
|
|
@@ -1174,12 +1121,12 @@ export declare class Act<TSchemaReg extends SchemaRegister<TActions>, TEvents ex
|
|
|
1174
1121
|
*/
|
|
1175
1122
|
/**
|
|
1176
1123
|
* After a close, forget any target whose subscription row the truncate
|
|
1177
|
-
* removed, so a later correlate can re-subscribe it
|
|
1124
|
+
* removed, so a later correlate can re-subscribe it. Restart
|
|
1178
1125
|
* targets keep their row, so only fully-retired streams are forgotten.
|
|
1179
1126
|
*/
|
|
1180
1127
|
/**
|
|
1181
1128
|
* Advance correlation until the read cursor reaches `until`, and report
|
|
1182
|
-
* where it landed
|
|
1129
|
+
* where it landed. Used by the close cycle's safety probe, which
|
|
1183
1130
|
* cannot judge a subscription's pending work over events correlate has
|
|
1184
1131
|
* not resolved yet.
|
|
1185
1132
|
*
|
|
@@ -1197,13 +1144,12 @@ export declare class Act<TSchemaReg extends SchemaRegister<TActions>, TEvents ex
|
|
|
1197
1144
|
* A tombstone seed means the stream was retired; a snapshot seed means it
|
|
1198
1145
|
* was restarted and is still consuming.
|
|
1199
1146
|
*
|
|
1200
|
-
* `truncate` no longer removes the subscription row
|
|
1147
|
+
* `truncate` no longer removes the subscription row, so this is no
|
|
1201
1148
|
* longer repairing damage the close itself did. It still matters, because
|
|
1202
1149
|
* the row can disappear later: reclaiming retired subscriptions is an
|
|
1203
1150
|
* operator job now, and that `DELETE` can land while this process is
|
|
1204
1151
|
* running. Forgetting here keeps the in-process view from outliving a row
|
|
1205
|
-
* an operator removed, which is
|
|
1206
|
-
* described — a reaction whose target is named after the stream would never
|
|
1152
|
+
* an operator removed, which is a silent-no-delivery failure — a reaction whose target is named after the stream would never
|
|
1207
1153
|
* be re-registered.
|
|
1208
1154
|
*/
|
|
1209
1155
|
private _forget_closed_subscriptions;
|
package/dist/@types/act.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"act.d.ts","sourceRoot":"","sources":["../../src/act.ts"],"names":[],"mappings":"AAWA,OAAO,EAOL,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EAcjB,KAAK,OAAO,EAWb,MAAM,qBAAqB,CAAC;AAQ7B,YAAY,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAE/E,OAAO,EAIL,KAAK,MAAM,EAGZ,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EACV,KAAK,EACL,IAAI,EACJ,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,SAAS,EACT,UAAU,EACV,SA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CACV,UAAU,CAAC,EAAE,aAAa,EAAE,EAC5B,OAAO,CAAC,EAAE,YAAY,GACrB,aAAa,CAAC,YAAY,CAAC,CAW7B;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACG,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAExE;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyDG;IACH;;;;OAIG;IACH;;;;;;;;;;;OAWG;YACW,qBAAqB;IAenC;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,4BAA4B;IAO9B,KAAK,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CA0BxD;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CAAC,OAAO,GAAE,aAAkB,GAAG,IAAI,CAOxC;CACF"}
|
|
@@ -83,16 +83,16 @@ export declare class InMemoryStore implements Store {
|
|
|
83
83
|
private _events;
|
|
84
84
|
private _next_id;
|
|
85
85
|
private _streams;
|
|
86
|
-
/** Correlate checkpoint
|
|
86
|
+
/** Correlate checkpoint: how far the log has been READ. */
|
|
87
87
|
private _correlated_at;
|
|
88
88
|
/**
|
|
89
|
-
* Per-correlator checkpoint and lease
|
|
89
|
+
* Per-correlator checkpoint and lease, keyed by correlator.
|
|
90
90
|
*
|
|
91
91
|
* Keyed rather than singular because correlators that look for different
|
|
92
92
|
* things read the log for different reasons: sharing one position lets a
|
|
93
93
|
* partial-behaviour worker inherit another's, and sharing one lease lets
|
|
94
94
|
* one starve the other. Callers that supply no correlator use
|
|
95
|
-
* `_correlated_at` instead,
|
|
95
|
+
* `_correlated_at` instead, the shared checkpoint.
|
|
96
96
|
*/
|
|
97
97
|
private _correlators;
|
|
98
98
|
private _stream_versions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in-memory-store.d.ts","sourceRoot":"","sources":["../../../src/adapters/in-memory-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACT,SAAS,EACT,KAAK,EACL,OAAO,EACP,KAAK,EACL,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,KAAK,EACL,YAAY,EACZ,cAAc,EACd,WAAW,EACX,cAAc,EACf,MAAM,mBAAmB,CAAC;AAsQ3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,qBAAa,aAAc,YAAW,KAAK;IAEzC,OAAO,CAAC,OAAO,CAA2C;IAI1D,OAAO,CAAC,QAAQ,CAAK;IAErB,OAAO,CAAC,QAAQ,CAA0C;IAC1D,
|
|
1
|
+
{"version":3,"file":"in-memory-store.d.ts","sourceRoot":"","sources":["../../../src/adapters/in-memory-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACT,SAAS,EACT,KAAK,EACL,OAAO,EACP,KAAK,EACL,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,KAAK,EACL,YAAY,EACZ,cAAc,EACd,WAAW,EACX,cAAc,EACf,MAAM,mBAAmB,CAAC;AAsQ3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,qBAAa,aAAc,YAAW,KAAK;IAEzC,OAAO,CAAC,OAAO,CAA2C;IAI1D,OAAO,CAAC,QAAQ,CAAK;IAErB,OAAO,CAAC,QAAQ,CAA0C;IAC1D,2DAA2D;IAC3D,OAAO,CAAC,cAAc,CAAM;IAC5B;;;;;;;;OAQG;IACH,OAAO,CAAC,YAAY,CAGhB;IAEJ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,MAAM,CAAC;KACjB,CAAC;iBAMW,MAAM;mBACJ,SAAS,CAAC,OAAO,EAAE,MAAM,OAAO,CAAC;iBACnC,IAAI;QAiFlB;IAED;;;;;;;;;;;OAWG;IACG,OAAO,CACX,MAAM,EAAE,CACN,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,OAAO,EAAE,MAAM,OAAO,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC,KACpE,OAAO,CAAC,IAAI,CAAC,GACjB,OAAO,CAAC,IAAI,CAAC,CAwEf;CACF"}
|
|
@@ -17,7 +17,7 @@ import type { Slice } from "./slice-builder.js";
|
|
|
17
17
|
* - Registering slices via `.withSlice()`
|
|
18
18
|
* - Registering projections via `.withProjection()`
|
|
19
19
|
* - Locking a custom actor type via `.withActor<TActor>()`
|
|
20
|
-
* - Declaring drain lanes via `.withLane({name, ...})`
|
|
20
|
+
* - Declaring drain lanes via `.withLane({name, ...})`
|
|
21
21
|
* - Defining event reactions via `.on()` → `.do()` → `.to()`
|
|
22
22
|
* - Building the orchestrator via `.build()`
|
|
23
23
|
*
|
|
@@ -26,7 +26,7 @@ import type { Slice } from "./slice-builder.js";
|
|
|
26
26
|
* @template TActions - Action schemas (maps action names to action payload schemas)
|
|
27
27
|
* @template TStateMap - Map of state names to state schemas
|
|
28
28
|
* @template TActor - Actor type extending base Actor
|
|
29
|
-
* @template TLanes - Union of declared lane names
|
|
29
|
+
* @template TLanes - Union of declared lane names. Narrowed by
|
|
30
30
|
* `.withLane({name})` calls so `.to({lane})` and `ActOptions.onlyLanes`
|
|
31
31
|
* reject typos at compile time. Starts at `"default"`.
|
|
32
32
|
*
|
|
@@ -85,7 +85,7 @@ export interface ActBuilder<TSchemaReg extends SchemaRegister<TActions>, TEvents
|
|
|
85
85
|
*/
|
|
86
86
|
withActor: <TNewActor extends Actor>() => ActBuilder<TSchemaReg, TEvents, TActions, TStateMap, TNewActor, TLanes>;
|
|
87
87
|
/**
|
|
88
|
-
* Declares a drain lane
|
|
88
|
+
* Declares a drain lane. Lane name narrows `TLanes` so
|
|
89
89
|
* `.to({lane})` and `ActOptions.onlyLanes` type-check against it.
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"act-builder.d.ts","sourceRoot":"","sources":["../../../src/builders/act-builder.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,GAAG,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AAgBjD,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,aAAa,CAAC;AAErD,OAAO,KAAK,EACV,KAAK,EAEL,UAAU,EAEV,MAAM,EACN,cAAc,EACd,OAAO,EACP,KAAK,EACN,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AASrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"act-builder.d.ts","sourceRoot":"","sources":["../../../src/builders/act-builder.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,GAAG,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AAgBjD,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,aAAa,CAAC;AAErD,OAAO,KAAK,EACV,KAAK,EAEL,UAAU,EAEV,MAAM,EACN,cAAc,EACd,OAAO,EACP,KAAK,EACN,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AASrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAqBhD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,UAAU,CACzB,UAAU,SAAS,cAAc,CAAC,QAAQ,CAAC,EAC3C,OAAO,SAAS,OAAO,EACvB,QAAQ,SAAS,OAAO,EAExB,SAAS,SAAS,MAAM,CAAC,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