@rotorsoft/act 1.33.9 → 1.33.10

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/index.cjs CHANGED
@@ -40,7 +40,7 @@
40
40
 
41
41
 
42
42
 
43
- var _chunkO6QIJQRNcjs = require('./chunk-O6QIJQRN.cjs');
43
+ var _chunk6J2QWD4Qcjs = require('./chunk-6J2QWD4Q.cjs');
44
44
 
45
45
 
46
46
 
@@ -74,20 +74,20 @@ var _chunk7AHW7FCNcjs = require('./chunk-7AHW7FCN.cjs');
74
74
 
75
75
  // src/signals.ts
76
76
  process.once("SIGINT", async (arg) => {
77
- _chunkO6QIJQRNcjs.log.call(void 0, ).info(arg, "SIGINT");
78
- await _chunkO6QIJQRNcjs.disposeAndExit.call(void 0, "EXIT");
77
+ _chunk6J2QWD4Qcjs.log.call(void 0, ).info(arg, "SIGINT");
78
+ await _chunk6J2QWD4Qcjs.disposeAndExit.call(void 0, "EXIT");
79
79
  });
80
80
  process.once("SIGTERM", async (arg) => {
81
- _chunkO6QIJQRNcjs.log.call(void 0, ).info(arg, "SIGTERM");
82
- await _chunkO6QIJQRNcjs.disposeAndExit.call(void 0, "EXIT");
81
+ _chunk6J2QWD4Qcjs.log.call(void 0, ).info(arg, "SIGTERM");
82
+ await _chunk6J2QWD4Qcjs.disposeAndExit.call(void 0, "EXIT");
83
83
  });
84
84
  process.once("uncaughtException", async (arg) => {
85
- _chunkO6QIJQRNcjs.log.call(void 0, ).error(arg, "Uncaught Exception");
86
- await _chunkO6QIJQRNcjs.disposeAndExit.call(void 0, "ERROR");
85
+ _chunk6J2QWD4Qcjs.log.call(void 0, ).error(arg, "Uncaught Exception");
86
+ await _chunk6J2QWD4Qcjs.disposeAndExit.call(void 0, "ERROR");
87
87
  });
88
88
  process.once("unhandledRejection", async (arg) => {
89
- _chunkO6QIJQRNcjs.log.call(void 0, ).error(arg, "Unhandled Rejection");
90
- await _chunkO6QIJQRNcjs.disposeAndExit.call(void 0, "ERROR");
89
+ _chunk6J2QWD4Qcjs.log.call(void 0, ).error(arg, "Unhandled Rejection");
90
+ await _chunk6J2QWD4Qcjs.disposeAndExit.call(void 0, "ERROR");
91
91
  });
92
92
 
93
93
  // src/act.ts
@@ -922,7 +922,7 @@ async function run_windowed_closes(windowed, deps, skipped) {
922
922
  if (!await windowed_prune_pending(t.stream, t.before, max_id))
923
923
  return void 0;
924
924
  if (t.archive) await t.archive();
925
- const result = await _chunkO6QIJQRNcjs.store.call(void 0, ).truncate([
925
+ const result = await _chunk6J2QWD4Qcjs.store.call(void 0, ).truncate([
926
926
  { stream: t.stream, before: t.before, max_id }
927
927
  ]);
928
928
  return result.get(t.stream);
@@ -935,7 +935,7 @@ async function run_windowed_closes(windowed, deps, skipped) {
935
935
  async function windowed_prune_pending(stream, before, max_id) {
936
936
  let boundary_id;
937
937
  let min_id;
938
- await _chunkO6QIJQRNcjs.store.call(void 0, ).query(
938
+ await _chunk6J2QWD4Qcjs.store.call(void 0, ).query(
939
939
  (event) => {
940
940
  if (min_id === void 0 || event.id < min_id) min_id = event.id;
941
941
  if (event.name === _chunk7AHW7FCNcjs.SNAP_EVENT && event.created < before && (max_id === void 0 || event.id <= max_id) && (boundary_id === void 0 || event.id > boundary_id))
@@ -949,7 +949,7 @@ async function probe_min_watermarks(streams, page_size, checkpoint) {
949
949
  const min_at = /* @__PURE__ */ new Map();
950
950
  const matches = source_matcher();
951
951
  await walk_streams(
952
- _chunkO6QIJQRNcjs.store.call(void 0, ),
952
+ _chunk6J2QWD4Qcjs.store.call(void 0, ),
953
953
  (position) => {
954
954
  const pending = position.correlated_at === void 0 || position.at < position.correlated_at;
955
955
  const cap = pending ? position.at : Math.max(position.at, checkpoint);
@@ -977,13 +977,13 @@ function source_matcher() {
977
977
  };
978
978
  }
979
979
  async function scan_stream_heads(streams) {
980
- const stats = await _chunkO6QIJQRNcjs.store.call(void 0, ).query_stats(streams, {
980
+ const stats = await _chunk6J2QWD4Qcjs.store.call(void 0, ).query_stats(streams, {
981
981
  exclude: [_chunk7AHW7FCNcjs.SNAP_EVENT]
982
982
  });
983
- const domain_heads = await _chunkO6QIJQRNcjs.store.call(void 0, ).query_stats(streams, {
983
+ const domain_heads = await _chunk6J2QWD4Qcjs.store.call(void 0, ).query_stats(streams, {
984
984
  exclude: [_chunk7AHW7FCNcjs.SNAP_EVENT, _chunk7AHW7FCNcjs.TOMBSTONE_EVENT]
985
985
  });
986
- const true_heads = await _chunkO6QIJQRNcjs.store.call(void 0, ).query_stats(streams, {});
986
+ const true_heads = await _chunk6J2QWD4Qcjs.store.call(void 0, ).query_stats(streams, {});
987
987
  const out = /* @__PURE__ */ new Map();
988
988
  for (const [stream, { head }] of domain_heads) {
989
989
  const marker_head = _optionalChain([stats, 'access', _45 => _45.get, 'call', _46 => _46(stream), 'optionalAccess', _47 => _47.head]);
@@ -1011,7 +1011,7 @@ async function partition_by_safety(stream_info, reactive, skipped, page_size, ca
1011
1011
  const matches = source_matcher();
1012
1012
  const targets = [...stream_info.keys()];
1013
1013
  await walk_streams(
1014
- _chunkO6QIJQRNcjs.store.call(void 0, ),
1014
+ _chunk6J2QWD4Qcjs.store.call(void 0, ),
1015
1015
  (position) => {
1016
1016
  const has_work = position.correlated_at !== void 0 && position.at < position.correlated_at;
1017
1017
  if (!has_work) return;
@@ -1077,7 +1077,7 @@ async function run_archive_callbacks(guarded, target_map) {
1077
1077
  }
1078
1078
  }
1079
1079
  async function heads_still_guarded(guarded, guard_events, skipped) {
1080
- const heads = await _chunkO6QIJQRNcjs.store.call(void 0, ).query_stats(guarded, {});
1080
+ const heads = await _chunk6J2QWD4Qcjs.store.call(void 0, ).query_stats(guarded, {});
1081
1081
  return guarded.filter((stream) => {
1082
1082
  if (_optionalChain([heads, 'access', _55 => _55.get, 'call', _56 => _56(stream), 'optionalAccess', _57 => _57.head, 'access', _58 => _58.id]) === guard_events.get(stream).id)
1083
1083
  return true;
@@ -1100,13 +1100,13 @@ async function truncate_and_warm_cache(guarded, seed_states, guard_events, corre
1100
1100
  }
1101
1101
  };
1102
1102
  });
1103
- const truncated = await _chunkO6QIJQRNcjs.store.call(void 0, ).truncate(trunc_targets);
1103
+ const truncated = await _chunk6J2QWD4Qcjs.store.call(void 0, ).truncate(trunc_targets);
1104
1104
  await Promise.all(
1105
1105
  guarded.map(async (stream) => {
1106
1106
  const entry = truncated.get(stream);
1107
1107
  const state2 = seed_states.get(stream);
1108
1108
  if (state2 && entry) {
1109
- await _chunkO6QIJQRNcjs.cache.call(void 0, ).set(stream, {
1109
+ await _chunk6J2QWD4Qcjs.cache.call(void 0, ).set(stream, {
1110
1110
  stream,
1111
1111
  state: state2,
1112
1112
  version: entry.committed.version,
@@ -1115,7 +1115,7 @@ async function truncate_and_warm_cache(guarded, seed_states, guard_events, corre
1115
1115
  snaps: 1
1116
1116
  });
1117
1117
  } else {
1118
- await _chunkO6QIJQRNcjs.cache.call(void 0, ).invalidate(stream);
1118
+ await _chunk6J2QWD4Qcjs.cache.call(void 0, ).invalidate(stream);
1119
1119
  }
1120
1120
  })
1121
1121
  );
@@ -1129,7 +1129,7 @@ var _crypto = require('crypto');
1129
1129
  function report_once(seen, key, message) {
1130
1130
  if (seen.has(key)) return;
1131
1131
  seen.add(key);
1132
- _chunkO6QIJQRNcjs.log.call(void 0, ).error(new Error(message));
1132
+ _chunk6J2QWD4Qcjs.log.call(void 0, ).error(new Error(message));
1133
1133
  }
1134
1134
 
1135
1135
  // src/internal/correlate-cycle.ts
@@ -1175,7 +1175,7 @@ var CorrelateCycle = (_class3 = class {
1175
1175
  // never drops their +Infinity floor.
1176
1176
 
1177
1177
  __init10() {this._static_subscriptions = /* @__PURE__ */ new Map()}
1178
- __init11() {this._patterns = new (0, _chunkO6QIJQRNcjs.LruMap)(PATTERN_CACHE_SIZE)}
1178
+ __init11() {this._patterns = new (0, _chunk6J2QWD4Qcjs.LruMap)(PATTERN_CACHE_SIZE)}
1179
1179
 
1180
1180
 
1181
1181
 
@@ -1193,7 +1193,7 @@ var CorrelateCycle = (_class3 = class {
1193
1193
  on_init
1194
1194
  }) {;_class3.prototype.__init3.call(this);_class3.prototype.__init4.call(this);_class3.prototype.__init5.call(this);_class3.prototype.__init6.call(this);_class3.prototype.__init7.call(this);_class3.prototype.__init8.call(this);_class3.prototype.__init9.call(this);_class3.prototype.__init10.call(this);_class3.prototype.__init11.call(this);_class3.prototype.__init12.call(this);
1195
1195
  this._key = shard ? `${registry_key(registry.events)}:${[...shard].sort().join(",")}` : registry_key(registry.events);
1196
- this._dynamic_subscriptions = new (0, _chunkO6QIJQRNcjs.LruMap)(max_subscribed_streams);
1196
+ this._dynamic_subscriptions = new (0, _chunk6J2QWD4Qcjs.LruMap)(max_subscribed_streams);
1197
1197
  this._registry = registry;
1198
1198
  this._declared_lanes = declared_lanes;
1199
1199
  this._static_targets = static_targets;
@@ -1248,7 +1248,7 @@ var CorrelateCycle = (_class3 = class {
1248
1248
  /** Would the target's own `fetch` (filtered by `source`) return this event? */
1249
1249
  _in_fetch_window(source, stream) {
1250
1250
  if (source === void 0 || source === stream) return true;
1251
- if (_chunkO6QIJQRNcjs.is_literal_source.call(void 0, source)) return false;
1251
+ if (_chunk6J2QWD4Qcjs.is_literal_source.call(void 0, source)) return false;
1252
1252
  let pattern = this._patterns.get(source);
1253
1253
  if (!pattern) {
1254
1254
  pattern = new RegExp(source);
@@ -1290,7 +1290,7 @@ var CorrelateCycle = (_class3 = class {
1290
1290
  const correlated = /* @__PURE__ */ new Map();
1291
1291
  let last_id = after;
1292
1292
  let stopped = false;
1293
- const found = await _chunkO6QIJQRNcjs.store.call(void 0, ).query(
1293
+ const found = await _chunk6J2QWD4Qcjs.store.call(void 0, ).query(
1294
1294
  (event) => {
1295
1295
  if (stopped) return;
1296
1296
  const register = this._registry.events[event.name];
@@ -1412,7 +1412,7 @@ var CorrelateCycle = (_class3 = class {
1412
1412
  await Promise.all(
1413
1413
  missed.map(async ([stream, entry]) => {
1414
1414
  let row;
1415
- await _chunkO6QIJQRNcjs.store.call(void 0, ).query_streams(
1415
+ await _chunk6J2QWD4Qcjs.store.call(void 0, ).query_streams(
1416
1416
  (position) => {
1417
1417
  row = position;
1418
1418
  },
@@ -1452,7 +1452,7 @@ var CorrelateCycle = (_class3 = class {
1452
1452
  millis: 0
1453
1453
  });
1454
1454
  } catch (error) {
1455
- _chunkO6QIJQRNcjs.log.call(void 0, ).warn(
1455
+ _chunk6J2QWD4Qcjs.log.call(void 0, ).warn(
1456
1456
  `Could not hand back the correlation lease during shutdown; it expires on its own within ${CORRELATION_LEASE_MS}ms and correlation resumes normally after that. On a single-writer store this usually means another connection holds the database. Cause: ${String(error)}`
1457
1457
  );
1458
1458
  }
@@ -1605,14 +1605,14 @@ function compute_lag_lead_ratio(handled, lagging, leading) {
1605
1605
  }
1606
1606
 
1607
1607
  // src/internal/drain-ops.ts
1608
- var claim = (lagging, leading, by, millis, lane) => _chunkO6QIJQRNcjs.store.call(void 0, ).claim(lagging, leading, by, millis, lane);
1608
+ var claim = (lagging, leading, by, millis, lane) => _chunk6J2QWD4Qcjs.store.call(void 0, ).claim(lagging, leading, by, millis, lane);
1609
1609
  async function fetch(leased, eventLimit) {
1610
1610
  return Promise.all(
1611
1611
  leased.map(async ({ stream, source, at, lagging }) => {
1612
1612
  const events = [];
1613
- const stream_exact = source !== void 0 && _chunkO6QIJQRNcjs.is_literal_source.call(void 0, source) ? true : void 0;
1613
+ const stream_exact = source !== void 0 && _chunk6J2QWD4Qcjs.is_literal_source.call(void 0, source) ? true : void 0;
1614
1614
  try {
1615
- await _chunkO6QIJQRNcjs.store.call(void 0, ).query((e) => events.push(e), {
1615
+ await _chunk6J2QWD4Qcjs.store.call(void 0, ).query((e) => events.push(e), {
1616
1616
  stream: source,
1617
1617
  stream_exact,
1618
1618
  after: at,
@@ -1632,30 +1632,30 @@ async function fetch(leased, eventLimit) {
1632
1632
  })
1633
1633
  );
1634
1634
  }
1635
- var ack = (leases) => _chunkO6QIJQRNcjs.store.call(void 0, ).ack(leases);
1636
- var block = (leases) => _chunkO6QIJQRNcjs.store.call(void 0, ).block(leases);
1637
- var subscribe = (streams, correlated_at, correlator) => _chunkO6QIJQRNcjs.store.call(void 0, ).subscribe(streams, correlated_at, correlator);
1635
+ var ack = (leases) => _chunk6J2QWD4Qcjs.store.call(void 0, ).ack(leases);
1636
+ var block = (leases) => _chunk6J2QWD4Qcjs.store.call(void 0, ).block(leases);
1637
+ var subscribe = (streams, correlated_at, correlator) => _chunk6J2QWD4Qcjs.store.call(void 0, ).subscribe(streams, correlated_at, correlator);
1638
1638
 
1639
1639
  // src/internal/event-sourcing.ts
1640
1640
  var _actpatch = require('@rotorsoft/act-patch');
1641
1641
  var bare_patch = (_me, state2, partial) => _actpatch.patch.call(void 0, state2, partial);
1642
1642
  var validating_patch = (me, state2, partial, event) => {
1643
1643
  const next = _actpatch.patch.call(void 0, state2, partial);
1644
- return _chunkO6QIJQRNcjs.validate.call(void 0,
1644
+ return _chunk6J2QWD4Qcjs.validate.call(void 0,
1645
1645
  `${me.name}.${String(event.name)}#${event.id}`,
1646
1646
  next,
1647
1647
  me.state
1648
1648
  );
1649
1649
  };
1650
1650
  var DEFAULT_BATCH = 500;
1651
- var cache_put = (stream, entry) => _chunkO6QIJQRNcjs.cache.call(void 0, ).set(stream, entry).catch(
1652
- (err) => _chunkO6QIJQRNcjs.log.call(void 0, ).warn(
1651
+ var cache_put = (stream, entry) => _chunk6J2QWD4Qcjs.cache.call(void 0, ).set(stream, entry).catch(
1652
+ (err) => _chunk6J2QWD4Qcjs.log.call(void 0, ).warn(
1653
1653
  err,
1654
1654
  "cache set skipped; the next load re-folds from the store"
1655
1655
  )
1656
1656
  );
1657
- var cache_drop = (stream) => _chunkO6QIJQRNcjs.cache.call(void 0, ).invalidate(stream).catch(
1658
- (err) => _chunkO6QIJQRNcjs.log.call(void 0, ).warn(
1657
+ var cache_drop = (stream) => _chunk6J2QWD4Qcjs.cache.call(void 0, ).invalidate(stream).catch(
1658
+ (err) => _chunk6J2QWD4Qcjs.log.call(void 0, ).warn(
1659
1659
  err,
1660
1660
  "cache invalidate skipped; a stale checkpoint re-folds from its event_id"
1661
1661
  )
@@ -1663,7 +1663,7 @@ var cache_drop = (stream) => _chunkO6QIJQRNcjs.cache.call(void 0, ).invalidate(s
1663
1663
  async function snap(snapshot) {
1664
1664
  const { id, stream, name, meta, version } = snapshot.event;
1665
1665
  try {
1666
- const [committed] = await _chunkO6QIJQRNcjs.store.call(void 0, ).commit(
1666
+ const [committed] = await _chunk6J2QWD4Qcjs.store.call(void 0, ).commit(
1667
1667
  stream,
1668
1668
  [{ name: _chunk7AHW7FCNcjs.SNAP_EVENT, data: snapshot.state }],
1669
1669
  {
@@ -1676,14 +1676,14 @@ async function snap(snapshot) {
1676
1676
  return committed;
1677
1677
  } catch (error) {
1678
1678
  const reason = error instanceof Error ? error.message : String(error);
1679
- _chunkO6QIJQRNcjs.log.call(void 0, ).warn(
1679
+ _chunk6J2QWD4Qcjs.log.call(void 0, ).warn(
1680
1680
  `Snapshot write failed on stream "${stream}": ${reason} \u2014 cold starts will replay full history until snapshots succeed.`
1681
1681
  );
1682
1682
  }
1683
1683
  }
1684
1684
  async function tombstone(stream, expectedVersion, correlation) {
1685
1685
  try {
1686
- const [committed] = await _chunkO6QIJQRNcjs.store.call(void 0, ).commit(
1686
+ const [committed] = await _chunk6J2QWD4Qcjs.store.call(void 0, ).commit(
1687
1687
  stream,
1688
1688
  [{ name: _chunk7AHW7FCNcjs.TOMBSTONE_EVENT, data: {} }],
1689
1689
  { correlation, causation: {} },
@@ -1816,14 +1816,14 @@ async function scan(source, opts = {}, callback) {
1816
1816
  async function load(me, target, callback, patch_fn = bare_patch) {
1817
1817
  const { stream, actor, asOf } = target;
1818
1818
  const time_travel = !!asOf && Object.values(asOf).some((v) => v !== void 0);
1819
- const cached = time_travel ? void 0 : await _chunkO6QIJQRNcjs.cache.call(void 0, ).get(stream);
1819
+ const cached = time_travel ? void 0 : await _chunk6J2QWD4Qcjs.cache.call(void 0, ).get(stream);
1820
1820
  const cache_hit = !!cached;
1821
1821
  let state2 = _nullishCoalesce(_optionalChain([cached, 'optionalAccess', _72 => _72.state]), () => ( (me.init ? me.init() : {})));
1822
1822
  let patches = _nullishCoalesce(_optionalChain([cached, 'optionalAccess', _73 => _73.patches]), () => ( 0));
1823
1823
  let snaps = _nullishCoalesce(_optionalChain([cached, 'optionalAccess', _74 => _74.snaps]), () => ( 0));
1824
1824
  let replayed = 0;
1825
1825
  let event;
1826
- await _chunkO6QIJQRNcjs.store.call(void 0, ).query(
1826
+ await _chunk6J2QWD4Qcjs.store.call(void 0, ).query(
1827
1827
  (raw) => {
1828
1828
  event = me.view(raw, actor);
1829
1829
  if (event.name === _chunk7AHW7FCNcjs.SNAP_EVENT) {
@@ -1836,7 +1836,7 @@ async function load(me, target, callback, patch_fn = bare_patch) {
1836
1836
  patches++;
1837
1837
  replayed++;
1838
1838
  } else if (event.name !== _chunk7AHW7FCNcjs.TOMBSTONE_EVENT) {
1839
- _chunkO6QIJQRNcjs.log.call(void 0, ).warn(
1839
+ _chunk6J2QWD4Qcjs.log.call(void 0, ).warn(
1840
1840
  `Skipping unknown event "${String(event.name)}" on stream "${stream}" (id=${event.id}) \u2014 no reducer in state "${me.name}"`
1841
1841
  );
1842
1842
  }
@@ -1888,7 +1888,7 @@ async function action(me, action2, target, payload, options, patch_fn = bare_pat
1888
1888
  if (!stream) throw new Error("Missing target stream");
1889
1889
  const reactingTo = _optionalChain([options, 'optionalAccess', _81 => _81.reactingTo]);
1890
1890
  const correlator = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _82 => _82.correlator]), () => ( default_correlator));
1891
- const validated = _chunkO6QIJQRNcjs.validate.call(void 0, action2, payload, me.actions[action2]);
1891
+ const validated = _chunk6J2QWD4Qcjs.validate.call(void 0, action2, payload, me.actions[action2]);
1892
1892
  const opts = _optionalChain([me, 'access', _83 => _83.options, 'optionalAccess', _84 => _84[action2]]);
1893
1893
  const max_retries = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _85 => _85.maxRetries]), () => ( 0));
1894
1894
  for (let attempt = 0; ; attempt++) {
@@ -1923,7 +1923,7 @@ async function action(me, action2, target, payload, options, patch_fn = bare_pat
1923
1923
  const tuples = Array.isArray(result[0]) ? result : [result];
1924
1924
  const valid = tuples.map(([name, data]) => ({
1925
1925
  name,
1926
- data: _chunkO6QIJQRNcjs.validate.call(void 0, name, data, me.events[name])
1926
+ data: _chunk6J2QWD4Qcjs.validate.call(void 0, name, data, me.events[name])
1927
1927
  }));
1928
1928
  const emitted = valid.map((e) => me.message(e));
1929
1929
  const meta = {
@@ -1948,7 +1948,7 @@ async function action(me, action2, target, payload, options, patch_fn = bare_pat
1948
1948
  };
1949
1949
  let committed;
1950
1950
  try {
1951
- committed = await _chunkO6QIJQRNcjs.store.call(void 0, ).commit(
1951
+ committed = await _chunk6J2QWD4Qcjs.store.call(void 0, ).commit(
1952
1952
  stream,
1953
1953
  emitted,
1954
1954
  meta,
@@ -2001,14 +2001,14 @@ async function action(me, action2, target, payload, options, patch_fn = bare_pat
2001
2001
  if (attempt >= max_retries) throw error;
2002
2002
  if (_optionalChain([opts, 'optionalAccess', _94 => _94.backoff])) {
2003
2003
  const delay_ms = compute_backoff_delay(attempt, opts.backoff);
2004
- if (delay_ms > 0) await _chunkO6QIJQRNcjs.sleep.call(void 0, delay_ms);
2004
+ if (delay_ms > 0) await _chunk6J2QWD4Qcjs.sleep.call(void 0, delay_ms);
2005
2005
  }
2006
2006
  }
2007
2007
  }
2008
2008
  }
2009
2009
 
2010
2010
  // src/internal/tracing.ts
2011
- var PRETTY = _chunkO6QIJQRNcjs.config.call(void 0, ).env !== "production";
2011
+ var PRETTY = _chunk6J2QWD4Qcjs.config.call(void 0, ).env !== "production";
2012
2012
  var C_BLUE = "\x1B[38;5;39m";
2013
2013
  var C_ORANGE = "\x1B[38;5;208m";
2014
2014
  var C_GREEN = "\x1B[38;5;42m";
@@ -2194,7 +2194,7 @@ function budget_exhausted(lease, options, store_failing) {
2194
2194
  if (store_failing || !_optionalChain([options, 'optionalAccess', _104 => _104.blockOnError]) || lease.retry <= options.maxRetries)
2195
2195
  return void 0;
2196
2196
  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.`;
2197
- _chunkO6QIJQRNcjs.log.call(void 0, ).error(error);
2197
+ _chunk6J2QWD4Qcjs.log.call(void 0, ).error(error);
2198
2198
  return { lease, handled: 0, acked_at: lease.at, error, block: true };
2199
2199
  }
2200
2200
  function fetch_failure_policy(registry) {
@@ -2216,7 +2216,7 @@ function finalize(lease, handled, at, error, options, logger, failed_at) {
2216
2216
  logger.error(
2217
2217
  non_retryable ? `Blocking ${lease.stream} on non-retryable error.` : `Blocking ${lease.stream} after ${lease.retry} retries.`
2218
2218
  );
2219
- const next_attempt_at = block2 ? void 0 : Date.now() + compute_backoff_delay(lease.retry, _nullishCoalesce(options.backoff, () => ( _chunkO6QIJQRNcjs.DEFAULT_BACKOFF)));
2219
+ const next_attempt_at = block2 ? void 0 : Date.now() + compute_backoff_delay(lease.retry, _nullishCoalesce(options.backoff, () => ( _chunk6J2QWD4Qcjs.DEFAULT_BACKOFF)));
2220
2220
  return {
2221
2221
  lease,
2222
2222
  handled,
@@ -2345,7 +2345,7 @@ async function run_drain_cycle(deps, cycle) {
2345
2345
  const acked = await ops.ack(submitted);
2346
2346
  const expected = submitted.filter((l) => l.due === void 0).length;
2347
2347
  if (acked.length < expected)
2348
- _chunkO6QIJQRNcjs.log.call(void 0, ).warn(
2348
+ _chunk6J2QWD4Qcjs.log.call(void 0, ).warn(
2349
2349
  `drain: ${expected - acked.length} of ${expected} acks were dropped \u2014 the lease was taken by another worker mid-handler. That work will be redelivered (at-least-once), but persistent drops mean leaseMillis is too short for this handler.`
2350
2350
  );
2351
2351
  const closeable = handled.filter((h) => h.close !== void 0).map((h) => h.close);
@@ -2436,9 +2436,9 @@ var DrainController = (_class5 = class {
2436
2436
  if (!this.armed || this._stopped || this._inflight)
2437
2437
  return EMPTY_DRAIN;
2438
2438
  const d = _nullishCoalesce(this._deps.defaults, () => ( {}));
2439
- const streamLimit = _nullishCoalesce(_nullishCoalesce(d.streamLimit, () => ( options.streamLimit)), () => ( _chunkO6QIJQRNcjs.DEFAULT_STREAM_LIMIT));
2440
- const eventLimit = _nullishCoalesce(options.eventLimit, () => ( _chunkO6QIJQRNcjs.DEFAULT_EVENT_LIMIT));
2441
- const leaseMillis = _nullishCoalesce(_nullishCoalesce(d.leaseMillis, () => ( options.leaseMillis)), () => ( _chunkO6QIJQRNcjs.DEFAULT_LEASE_MILLIS));
2439
+ const streamLimit = _nullishCoalesce(_nullishCoalesce(d.streamLimit, () => ( options.streamLimit)), () => ( _chunk6J2QWD4Qcjs.DEFAULT_STREAM_LIMIT));
2440
+ const eventLimit = _nullishCoalesce(options.eventLimit, () => ( _chunk6J2QWD4Qcjs.DEFAULT_EVENT_LIMIT));
2441
+ const leaseMillis = _nullishCoalesce(_nullishCoalesce(d.leaseMillis, () => ( options.leaseMillis)), () => ( _chunk6J2QWD4Qcjs.DEFAULT_LEASE_MILLIS));
2442
2442
  if (this._deps.breaker.state(Date.now()) === "open")
2443
2443
  return EMPTY_DRAIN;
2444
2444
  try {
@@ -3002,7 +3002,7 @@ var Act = (_class7 = class {
3002
3002
  /** Lanes to arm per event; `"all"` when a dynamic resolver hides the lane. */
3003
3003
 
3004
3004
 
3005
- __init26() {this._logger = _chunkO6QIJQRNcjs.log.call(void 0, )}
3005
+ __init26() {this._logger = _chunk6J2QWD4Qcjs.log.call(void 0, )}
3006
3006
  /** This Act's ports: its own bag, or the singleton adapters. */
3007
3007
 
3008
3008
  /** Runs a body so internal `store()`/`cache()` calls resolve to `_ports`. */
@@ -3024,9 +3024,9 @@ var Act = (_class7 = class {
3024
3024
  this._lanes = lanes;
3025
3025
  this._declared_lanes = ["default", ...lanes.map((l) => l.name)];
3026
3026
  validate_only_lanes(options, lanes);
3027
- this._ports = _nullishCoalesce(options.scoped, () => ( _chunkO6QIJQRNcjs.default_scope.call(void 0, )));
3027
+ this._ports = _nullishCoalesce(options.scoped, () => ( _chunk6J2QWD4Qcjs.default_scope.call(void 0, )));
3028
3028
  const ports = this._ports;
3029
- this._scoped = _chunkO6QIJQRNcjs.make_run_scoped.call(void 0, {
3029
+ this._scoped = _chunk6J2QWD4Qcjs.make_run_scoped.call(void 0, {
3030
3030
  // Getters, not a spread: the singletons resolve lazily, so a later
3031
3031
  // `store(...)` / `cache(...)` still takes effect.
3032
3032
  get store() {
@@ -3036,14 +3036,14 @@ var Act = (_class7 = class {
3036
3036
  return ports.cache;
3037
3037
  },
3038
3038
  // Parsed per build, so a bad window throws on every build.
3039
- autoclose_window: _chunkO6QIJQRNcjs.resolveAutocloseConfig.call(void 0, options).autocloseWindow
3039
+ autoclose_window: _chunk6J2QWD4Qcjs.resolveAutocloseConfig.call(void 0, options).autocloseWindow
3040
3040
  });
3041
3041
  this._correlator = _nullishCoalesce(options.correlator, () => ( default_correlator));
3042
3042
  this._es = build_es(this._logger, this._correlator, patch_fn);
3043
3043
  this._cd = build_drain(this._logger);
3044
3044
  const handle = build_handle({
3045
3045
  logger: this._logger,
3046
- reaction_scope: _chunkO6QIJQRNcjs.make_reaction_scope.call(void 0, {
3046
+ reaction_scope: _chunk6J2QWD4Qcjs.make_reaction_scope.call(void 0, {
3047
3047
  do: this.do.bind(this),
3048
3048
  load: this.load.bind(this),
3049
3049
  query: this.query.bind(this),
@@ -3073,12 +3073,12 @@ var Act = (_class7 = class {
3073
3073
  this._ports.store,
3074
3074
  options.listen !== false
3075
3075
  );
3076
- _chunkO6QIJQRNcjs.register_weak_disposer.call(void 0, new WeakRef(this), (self) => self.shutdown());
3076
+ _chunk6J2QWD4Qcjs.register_weak_disposer.call(void 0, new WeakRef(this), (self) => self.shutdown());
3077
3077
  }
3078
3078
  /** Shared by drain, settle and autoclose; bad knobs throw at build. */
3079
3079
  _build_breaker(options) {
3080
3080
  return new CircuitBreaker(
3081
- _chunkO6QIJQRNcjs.resolveCircuitBreakerConfig.call(void 0, options.circuitBreaker),
3081
+ _chunk6J2QWD4Qcjs.resolveCircuitBreakerConfig.call(void 0, options.circuitBreaker),
3082
3082
  {
3083
3083
  on_error: (error, circuit) => this._emit_error(error, circuit),
3084
3084
  // When the cooldown elapses, settle once: its scan or claim is the
@@ -3147,7 +3147,7 @@ var Act = (_class7 = class {
3147
3147
  /** Audit deps, built after the controllers so the lane set is final. */
3148
3148
  _build_audit_deps() {
3149
3149
  return {
3150
- store: _chunkO6QIJQRNcjs.store,
3150
+ store: _chunk6J2QWD4Qcjs.store,
3151
3151
  event_to_state: this._event_to_state,
3152
3152
  // Declared lanes, not this process's controllers: a lane another
3153
3153
  // worker drains is not `unknown-lane`.
@@ -3176,7 +3176,7 @@ var Act = (_class7 = class {
3176
3176
  /** Cold start: an idle deferred stream still fires on time after a restart. */
3177
3177
  async _seed_persisted_defers() {
3178
3178
  const now = Date.now();
3179
- await walk_streams(_chunkO6QIJQRNcjs.store.call(void 0, ), (pos) => {
3179
+ await walk_streams(_chunk6J2QWD4Qcjs.store.call(void 0, ), (pos) => {
3180
3180
  if (pos.deferred_at === void 0 || pos.deferred_at <= now) return;
3181
3181
  const controller = this._drain_controllers.get(_nullishCoalesce(pos.lane, () => ( "default")));
3182
3182
  _optionalChain([controller, 'optionalAccess', _126 => _126.seed_defer, 'call', _127 => _127(pos.stream, pos.deferred_at)]);
@@ -3216,7 +3216,7 @@ var Act = (_class7 = class {
3216
3216
  */
3217
3217
  shutdown(options) {
3218
3218
  if (!this._shutdown_promise) {
3219
- _chunkO6QIJQRNcjs.resolveShutdownConfig.call(void 0, options);
3219
+ _chunk6J2QWD4Qcjs.resolveShutdownConfig.call(void 0, options);
3220
3220
  this._shutdown_promise = (async () => {
3221
3221
  this.stop_correlations();
3222
3222
  this._settle.stop(true);
@@ -3236,10 +3236,10 @@ var Act = (_class7 = class {
3236
3236
  * default for none or 0, and for a running settle), capped.
3237
3237
  */
3238
3238
  _derive_grace_ms(running, settling) {
3239
- let max = settling ? _chunkO6QIJQRNcjs.DEFAULT_LEASE_MILLIS : 0;
3239
+ let max = settling ? _chunk6J2QWD4Qcjs.DEFAULT_LEASE_MILLIS : 0;
3240
3240
  for (const c of running)
3241
- max = Math.max(max, c.lease_millis || _chunkO6QIJQRNcjs.DEFAULT_LEASE_MILLIS);
3242
- return Math.min(max, _chunkO6QIJQRNcjs.MAX_SHUTDOWN_GRACE_MS);
3241
+ max = Math.max(max, c.lease_millis || _chunk6J2QWD4Qcjs.DEFAULT_LEASE_MILLIS);
3242
+ return Math.min(max, _chunk6J2QWD4Qcjs.MAX_SHUTDOWN_GRACE_MS);
3243
3243
  }
3244
3244
  async _await_inflight(grace_ms) {
3245
3245
  const running = [...this._drain_controllers.values()].filter(
@@ -3319,7 +3319,7 @@ var Act = (_class7 = class {
3319
3319
  * @see {@link ValidationError}, {@link InvariantError}, {@link ConcurrencyError}
3320
3320
  */
3321
3321
  async do(action2, target, payload, options) {
3322
- const reacting_to = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _129 => _129.reactingTo]), () => ( _chunkO6QIJQRNcjs.current_reacting.call(void 0, )));
3322
+ const reacting_to = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _129 => _129.reactingTo]), () => ( _chunk6J2QWD4Qcjs.current_reacting.call(void 0, )));
3323
3323
  const do_options = reacting_to === _optionalChain([options, 'optionalAccess', _130 => _130.reactingTo]) ? options : { ...options, reactingTo: reacting_to };
3324
3324
  return this._scoped(async () => {
3325
3325
  const snapshots = await this._es.action(
@@ -3380,7 +3380,7 @@ var Act = (_class7 = class {
3380
3380
  return this._scoped(async () => {
3381
3381
  let first;
3382
3382
  let last;
3383
- const count = await _chunkO6QIJQRNcjs.store.call(void 0, ).query((e) => {
3383
+ const count = await _chunk6J2QWD4Qcjs.store.call(void 0, ).query((e) => {
3384
3384
  const gated = this.registry.query_gate(e.name)(e);
3385
3385
  if (!first) first = gated;
3386
3386
  last = gated;
@@ -3410,7 +3410,7 @@ var Act = (_class7 = class {
3410
3410
  async query_array(query) {
3411
3411
  return this._scoped(async () => {
3412
3412
  const events = [];
3413
- await _chunkO6QIJQRNcjs.store.call(void 0, ).query((e) => {
3413
+ await _chunk6J2QWD4Qcjs.store.call(void 0, ).query((e) => {
3414
3414
  events.push(this.registry.query_gate(e.name)(e));
3415
3415
  }, query);
3416
3416
  return events;
@@ -3430,14 +3430,14 @@ var Act = (_class7 = class {
3430
3430
  */
3431
3431
  async forget(stream) {
3432
3432
  return this._scoped(async () => {
3433
- const s = _chunkO6QIJQRNcjs.store.call(void 0, );
3433
+ const s = _chunk6J2QWD4Qcjs.store.call(void 0, );
3434
3434
  if (!s.forget_pii) {
3435
3435
  throw new Error(
3436
3436
  `Store does not implement forget_pii \u2014 adapter cannot comply with sensitive-data erasure. Use an adapter that declares pii_isolation: true (e.g. @rotorsoft/act on the in-memory store).`
3437
3437
  );
3438
3438
  }
3439
3439
  const eventCount = await s.forget_pii(stream);
3440
- await _chunkO6QIJQRNcjs.cache.call(void 0, ).invalidate(stream);
3440
+ await _chunk6J2QWD4Qcjs.cache.call(void 0, ).invalidate(stream);
3441
3441
  if (eventCount > 0) {
3442
3442
  this.emit("forgotten", { stream, at: /* @__PURE__ */ new Date(), eventCount });
3443
3443
  }
@@ -3471,7 +3471,7 @@ var Act = (_class7 = class {
3471
3471
  * @see {@link correlate} for dynamic stream discovery
3472
3472
  */
3473
3473
  async drain(options = {}) {
3474
- _chunkO6QIJQRNcjs.resolveDrainConfig.call(void 0, options);
3474
+ _chunk6J2QWD4Qcjs.resolveDrainConfig.call(void 0, options);
3475
3475
  if (!this._drain)
3476
3476
  return { fetched: [], leased: [], acked: [], blocked: [] };
3477
3477
  return this._scoped(() => this._drain_all(options));
@@ -3654,7 +3654,7 @@ var Act = (_class7 = class {
3654
3654
  */
3655
3655
  async reset(input) {
3656
3656
  return this._scoped(async () => {
3657
- const count = await _chunkO6QIJQRNcjs.store.call(void 0, ).reset(input);
3657
+ const count = await _chunk6J2QWD4Qcjs.store.call(void 0, ).reset(input);
3658
3658
  for (const handler of this._batch_handlers.values())
3659
3659
  _optionalChain([handler, 'access', _137 => _137[FOLD_RESET], 'optionalCall', _138 => _138()]);
3660
3660
  if (count > 0) {
@@ -3690,7 +3690,7 @@ var Act = (_class7 = class {
3690
3690
  */
3691
3691
  async unblock(input) {
3692
3692
  return this._scoped(async () => {
3693
- const count = await _chunkO6QIJQRNcjs.store.call(void 0, ).unblock(input);
3693
+ const count = await _chunk6J2QWD4Qcjs.store.call(void 0, ).unblock(input);
3694
3694
  if (count > 0) {
3695
3695
  this._wake();
3696
3696
  }
@@ -3739,7 +3739,7 @@ var Act = (_class7 = class {
3739
3739
  return { ...partial, duration_ms: Date.now() - started };
3740
3740
  }
3741
3741
  const target = _nullishCoalesce(sink, () => ( (() => {
3742
- const s = _chunkO6QIJQRNcjs.store.call(void 0, );
3742
+ const s = _chunk6J2QWD4Qcjs.store.call(void 0, );
3743
3743
  if (!s.restore) throw new Error("adapter has no restore capability");
3744
3744
  return s;
3745
3745
  })()));
@@ -3784,7 +3784,7 @@ var Act = (_class7 = class {
3784
3784
  async blocked_streams(options) {
3785
3785
  return this._scoped(async () => {
3786
3786
  const positions = [];
3787
- await _chunkO6QIJQRNcjs.store.call(void 0, ).query_streams(
3787
+ await _chunk6J2QWD4Qcjs.store.call(void 0, ).query_streams(
3788
3788
  (p) => {
3789
3789
  positions.push(p);
3790
3790
  },
@@ -3836,7 +3836,7 @@ var Act = (_class7 = class {
3836
3836
  * @see {@link Store.prioritize} for the underlying primitive
3837
3837
  */
3838
3838
  async prioritize(filter, priority) {
3839
- return this._scoped(() => _chunkO6QIJQRNcjs.store.call(void 0, ).prioritize(filter, priority));
3839
+ return this._scoped(() => _chunk6J2QWD4Qcjs.store.call(void 0, ).prioritize(filter, priority));
3840
3840
  }
3841
3841
  /** Shared by `close()` and reaction-requested closes. */
3842
3842
  async _run_close(targets) {
@@ -3918,7 +3918,7 @@ var Act = (_class7 = class {
3918
3918
  * @see {@link correlate} for manual correlation
3919
3919
  */
3920
3920
  settle(options) {
3921
- _chunkO6QIJQRNcjs.resolveSettleConfig.call(void 0, _nullishCoalesce(options, () => ( {})));
3921
+ _chunk6J2QWD4Qcjs.resolveSettleConfig.call(void 0, _nullishCoalesce(options, () => ( {})));
3922
3922
  this._schedule(options);
3923
3923
  }
3924
3924
  }, _class7);
@@ -4074,13 +4074,13 @@ function synthesize_autoclose_reactions(registry, states, read_window) {
4074
4074
  }),
4075
4075
  // Never block on autoclose: a transient query/store error should retry,
4076
4076
  // not quarantine the synthetic stream.
4077
- options: { blockOnError: false, maxRetries: _chunkO6QIJQRNcjs.DEFAULT_MAX_RETRIES },
4077
+ options: { blockOnError: false, maxRetries: _chunk6J2QWD4Qcjs.DEFAULT_MAX_RETRIES },
4078
4078
  handler: async (event) => {
4079
4079
  const aggregate = event.stream;
4080
4080
  const window = read_window();
4081
4081
  if (!in_autoclose_window(window, /* @__PURE__ */ new Date()))
4082
4082
  throw new (0, _chunk7AHW7FCNcjs.DeferSignal)({ at: next_window_open(window, /* @__PURE__ */ new Date()) });
4083
- const stats = await _chunkO6QIJQRNcjs.store.call(void 0, ).query_stats([aggregate], {
4083
+ const stats = await _chunk6J2QWD4Qcjs.store.call(void 0, ).query_stats([aggregate], {
4084
4084
  count: true,
4085
4085
  tail: keep_days !== void 0 ? true : void 0,
4086
4086
  exclude: [_chunk7AHW7FCNcjs.TOMBSTONE_EVENT, _chunk7AHW7FCNcjs.SNAP_EVENT]
@@ -4318,7 +4318,7 @@ var _this_ = ({ stream }) => ({
4318
4318
 
4319
4319
  // src/builders/builder-utils.ts
4320
4320
  function register_lane(config2, lanes) {
4321
- _chunkO6QIJQRNcjs.resolveLaneConfig.call(void 0, config2);
4321
+ _chunk6J2QWD4Qcjs.resolveLaneConfig.call(void 0, config2);
4322
4322
  if (config2.name === _chunk7AHW7FCNcjs.DEFAULT_LANE)
4323
4323
  throw new Error(`Lane "${_chunk7AHW7FCNcjs.DEFAULT_LANE}" is reserved`);
4324
4324
  const existing = lanes.find((l) => l.name === config2.name);
@@ -4362,9 +4362,9 @@ function reaction_on(event, events, builder) {
4362
4362
  // Validate the whole bag at the declaration site so a bad
4363
4363
  // `maxRetries`/`backoff`/`blockOnError` throws ZodError at build,
4364
4364
  // not a NaN gate on the first retry.
4365
- options: _chunkO6QIJQRNcjs.resolveReactionConfig.call(void 0, {
4366
- blockOnError: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _153 => _153.blockOnError]), () => ( _chunkO6QIJQRNcjs.DEFAULT_BLOCK_ON_ERROR)),
4367
- maxRetries: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _154 => _154.maxRetries]), () => ( _chunkO6QIJQRNcjs.DEFAULT_MAX_RETRIES)),
4365
+ options: _chunk6J2QWD4Qcjs.resolveReactionConfig.call(void 0, {
4366
+ blockOnError: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _153 => _153.blockOnError]), () => ( _chunk6J2QWD4Qcjs.DEFAULT_BLOCK_ON_ERROR)),
4367
+ maxRetries: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _154 => _154.maxRetries]), () => ( _chunk6J2QWD4Qcjs.DEFAULT_MAX_RETRIES)),
4368
4368
  backoff: _optionalChain([options, 'optionalAccess', _155 => _155.backoff])
4369
4369
  })
4370
4370
  };
@@ -4666,7 +4666,7 @@ function act() {
4666
4666
  const list = deprecation_summary.map(
4667
4667
  (d) => `"${d.deprecated}" (current: "${d.current}", state: "${d.state_name}")`
4668
4668
  ).join(", ");
4669
- _chunkO6QIJQRNcjs.log.call(void 0, ).info(
4669
+ _chunk6J2QWD4Qcjs.log.call(void 0, ).info(
4670
4670
  `Act registered ${deprecation_summary.length} deprecated event(s): ${list}. These are legacy versions kept for the read path. Consider truncating closed streams via app.close() when feasible to reduce historical event load. See docs/docs/architecture/event-schema-evolution.md.`
4671
4671
  );
4672
4672
  }
@@ -4708,7 +4708,7 @@ function act() {
4708
4708
  return reaction_on(event, registry.events, builder);
4709
4709
  },
4710
4710
  build: (options) => {
4711
- _chunkO6QIJQRNcjs.resolveActConfig.call(void 0, options);
4711
+ _chunk6J2QWD4Qcjs.resolveActConfig.call(void 0, options);
4712
4712
  const patch_fn = _optionalChain([options, 'optionalAccess', _167 => _167.validateFoldedState]) === true ? validating_patch : bare_patch;
4713
4713
  if (!_built) {
4714
4714
  for (const proj of pending_projections) add_projection(proj);
@@ -4760,7 +4760,7 @@ function act() {
4760
4760
  synthesize_autoclose_reactions(
4761
4761
  registry,
4762
4762
  states,
4763
- _chunkO6QIJQRNcjs.current_autoclose_window
4763
+ _chunk6J2QWD4Qcjs.current_autoclose_window
4764
4764
  );
4765
4765
  Object.freeze(registry.actions);
4766
4766
  Object.freeze(registry.events);
@@ -4809,8 +4809,8 @@ function _projection(target) {
4809
4809
  handler,
4810
4810
  resolver: _nullishCoalesce(default_resolver, () => ( _this_)),
4811
4811
  options: {
4812
- blockOnError: _chunkO6QIJQRNcjs.DEFAULT_BLOCK_ON_ERROR,
4813
- maxRetries: _chunkO6QIJQRNcjs.DEFAULT_MAX_RETRIES
4812
+ blockOnError: _chunk6J2QWD4Qcjs.DEFAULT_BLOCK_ON_ERROR,
4813
+ maxRetries: _chunk6J2QWD4Qcjs.DEFAULT_MAX_RETRIES
4814
4814
  }
4815
4815
  }),
4816
4816
  widened
@@ -4851,7 +4851,7 @@ function _projection(target) {
4851
4851
  throw new Error(
4852
4852
  `Projection "${target}" .of() partials must share one state name \u2014 got "${name}" and "${partial.name}"`
4853
4853
  );
4854
- const config2 = _chunkO6QIJQRNcjs.resolveFoldConfig.call(void 0, options);
4854
+ const config2 = _chunk6J2QWD4Qcjs.resolveFoldConfig.call(void 0, options);
4855
4855
  const fold_events = {};
4856
4856
  for (const partial of partials)
4857
4857
  for (const [event_name, schema] of Object.entries(partial.events)) {
@@ -4869,8 +4869,8 @@ function _projection(target) {
4869
4869
  handler: noop,
4870
4870
  resolver: { target },
4871
4871
  options: {
4872
- blockOnError: _chunkO6QIJQRNcjs.DEFAULT_BLOCK_ON_ERROR,
4873
- maxRetries: _chunkO6QIJQRNcjs.DEFAULT_MAX_RETRIES
4872
+ blockOnError: _chunk6J2QWD4Qcjs.DEFAULT_BLOCK_ON_ERROR,
4873
+ maxRetries: _chunk6J2QWD4Qcjs.DEFAULT_MAX_RETRIES
4874
4874
  }
4875
4875
  }
4876
4876
  ]
@@ -4986,7 +4986,7 @@ function action_builder(state2) {
4986
4986
  throw new Error(`Duplicate action "${action2}"`);
4987
4987
  internal.actions[action2] = schema;
4988
4988
  if (options) {
4989
- _chunkO6QIJQRNcjs.resolveActionConfig.call(void 0, options);
4989
+ _chunk6J2QWD4Qcjs.resolveActionConfig.call(void 0, options);
4990
4990
  internal.options ??= {};
4991
4991
  internal.options[action2] = options;
4992
4992
  }
@@ -5275,5 +5275,5 @@ function write_line(writer, line) {
5275
5275
 
5276
5276
 
5277
5277
 
5278
- exports.Act = Act; exports.ActorSchema = _chunk7AHW7FCNcjs.ActorSchema; exports.CausationEventSchema = _chunk7AHW7FCNcjs.CausationEventSchema; exports.CommittedMetaSchema = _chunk7AHW7FCNcjs.CommittedMetaSchema; exports.ConcurrencyError = _chunk7AHW7FCNcjs.ConcurrencyError; exports.ConsoleLogger = _chunkO6QIJQRNcjs.ConsoleLogger; exports.CsvFile = CsvFile; exports.DEFAULT_LANE = _chunk7AHW7FCNcjs.DEFAULT_LANE; exports.DEFAULT_MAX_SUBSCRIBED_STREAMS = _chunk7AHW7FCNcjs.DEFAULT_MAX_SUBSCRIBED_STREAMS; exports.DEFAULT_SETTLE_DEBOUNCE_MS = _chunk7AHW7FCNcjs.DEFAULT_SETTLE_DEBOUNCE_MS; exports.DeferSignal = _chunk7AHW7FCNcjs.DeferSignal; exports.Environments = _chunk7AHW7FCNcjs.Environments; exports.Errors = _chunk7AHW7FCNcjs.Errors; exports.EventMetaSchema = _chunk7AHW7FCNcjs.EventMetaSchema; exports.ExitCodes = _chunk7AHW7FCNcjs.ExitCodes; exports.InMemoryCache = _chunkO6QIJQRNcjs.InMemoryCache; exports.InMemoryStore = _chunkO6QIJQRNcjs.InMemoryStore; exports.InvariantError = _chunk7AHW7FCNcjs.InvariantError; exports.LogLevels = _chunk7AHW7FCNcjs.LogLevels; exports.NonRetryableError = _chunk7AHW7FCNcjs.NonRetryableError; exports.PackageSchema = _chunkO6QIJQRNcjs.PackageSchema; exports.QuerySchema = _chunk7AHW7FCNcjs.QuerySchema; exports.REDACTED = _chunk7AHW7FCNcjs.REDACTED; exports.SHREDDED = _chunk7AHW7FCNcjs.SHREDDED; exports.SNAP_EVENT = _chunk7AHW7FCNcjs.SNAP_EVENT; exports.StoreError = _chunk7AHW7FCNcjs.StoreError; exports.StreamClosedError = _chunk7AHW7FCNcjs.StreamClosedError; exports.TOMBSTONE_EVENT = _chunk7AHW7FCNcjs.TOMBSTONE_EVENT; exports.TargetSchema = _chunk7AHW7FCNcjs.TargetSchema; exports.ValidationError = _chunk7AHW7FCNcjs.ValidationError; exports.ZodEmpty = _chunk7AHW7FCNcjs.ZodEmpty; exports.act = act; exports.cache = _chunkO6QIJQRNcjs.cache; exports.config = _chunkO6QIJQRNcjs.config; exports.dateReviver = _chunkO6QIJQRNcjs.dateReviver; exports.default_scope = _chunkO6QIJQRNcjs.default_scope; exports.dispose = _chunkO6QIJQRNcjs.dispose; exports.disposeAndExit = _chunkO6QIJQRNcjs.disposeAndExit; exports.extend = _chunkO6QIJQRNcjs.extend; exports.is_literal_source = _chunkO6QIJQRNcjs.is_literal_source; exports.log = _chunkO6QIJQRNcjs.log; exports.pii_fields = _chunk7AHW7FCNcjs.pii_fields; exports.port = _chunkO6QIJQRNcjs.port; exports.projection = projection; exports.resolveAutocloseConfig = _chunkO6QIJQRNcjs.resolveAutocloseConfig2; exports.sensitive = _chunk7AHW7FCNcjs.sensitive; exports.sleep = _chunkO6QIJQRNcjs.sleep; exports.slice = slice; exports.state = state; exports.store = _chunkO6QIJQRNcjs.store; exports.validate = _chunkO6QIJQRNcjs.validate;
5278
+ exports.Act = Act; exports.ActorSchema = _chunk7AHW7FCNcjs.ActorSchema; exports.CausationEventSchema = _chunk7AHW7FCNcjs.CausationEventSchema; exports.CommittedMetaSchema = _chunk7AHW7FCNcjs.CommittedMetaSchema; exports.ConcurrencyError = _chunk7AHW7FCNcjs.ConcurrencyError; exports.ConsoleLogger = _chunk6J2QWD4Qcjs.ConsoleLogger; exports.CsvFile = CsvFile; exports.DEFAULT_LANE = _chunk7AHW7FCNcjs.DEFAULT_LANE; exports.DEFAULT_MAX_SUBSCRIBED_STREAMS = _chunk7AHW7FCNcjs.DEFAULT_MAX_SUBSCRIBED_STREAMS; exports.DEFAULT_SETTLE_DEBOUNCE_MS = _chunk7AHW7FCNcjs.DEFAULT_SETTLE_DEBOUNCE_MS; exports.DeferSignal = _chunk7AHW7FCNcjs.DeferSignal; exports.Environments = _chunk7AHW7FCNcjs.Environments; exports.Errors = _chunk7AHW7FCNcjs.Errors; exports.EventMetaSchema = _chunk7AHW7FCNcjs.EventMetaSchema; exports.ExitCodes = _chunk7AHW7FCNcjs.ExitCodes; exports.InMemoryCache = _chunk6J2QWD4Qcjs.InMemoryCache; exports.InMemoryStore = _chunk6J2QWD4Qcjs.InMemoryStore; exports.InvariantError = _chunk7AHW7FCNcjs.InvariantError; exports.LogLevels = _chunk7AHW7FCNcjs.LogLevels; exports.NonRetryableError = _chunk7AHW7FCNcjs.NonRetryableError; exports.PackageSchema = _chunk6J2QWD4Qcjs.PackageSchema; exports.QuerySchema = _chunk7AHW7FCNcjs.QuerySchema; exports.REDACTED = _chunk7AHW7FCNcjs.REDACTED; exports.SHREDDED = _chunk7AHW7FCNcjs.SHREDDED; exports.SNAP_EVENT = _chunk7AHW7FCNcjs.SNAP_EVENT; exports.StoreError = _chunk7AHW7FCNcjs.StoreError; exports.StreamClosedError = _chunk7AHW7FCNcjs.StreamClosedError; exports.TOMBSTONE_EVENT = _chunk7AHW7FCNcjs.TOMBSTONE_EVENT; exports.TargetSchema = _chunk7AHW7FCNcjs.TargetSchema; exports.ValidationError = _chunk7AHW7FCNcjs.ValidationError; exports.ZodEmpty = _chunk7AHW7FCNcjs.ZodEmpty; exports.act = act; exports.cache = _chunk6J2QWD4Qcjs.cache; exports.config = _chunk6J2QWD4Qcjs.config; exports.dateReviver = _chunk6J2QWD4Qcjs.dateReviver; exports.default_scope = _chunk6J2QWD4Qcjs.default_scope; exports.dispose = _chunk6J2QWD4Qcjs.dispose; exports.disposeAndExit = _chunk6J2QWD4Qcjs.disposeAndExit; exports.extend = _chunk6J2QWD4Qcjs.extend; exports.is_literal_source = _chunk6J2QWD4Qcjs.is_literal_source; exports.log = _chunk6J2QWD4Qcjs.log; exports.pii_fields = _chunk7AHW7FCNcjs.pii_fields; exports.port = _chunk6J2QWD4Qcjs.port; exports.projection = projection; exports.resolveAutocloseConfig = _chunk6J2QWD4Qcjs.resolveAutocloseConfig2; exports.sensitive = _chunk7AHW7FCNcjs.sensitive; exports.sleep = _chunk6J2QWD4Qcjs.sleep; exports.slice = slice; exports.state = state; exports.store = _chunk6J2QWD4Qcjs.store; exports.validate = _chunk6J2QWD4Qcjs.validate;
5279
5279
  //# sourceMappingURL=index.cjs.map