@rotorsoft/act 1.33.11 → 1.33.12

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 _chunkHKC663W4cjs = require('./chunk-HKC663W4.cjs');
43
+ var _chunkP3B7HVFDcjs = require('./chunk-P3B7HVFD.cjs');
44
44
 
45
45
 
46
46
 
@@ -70,24 +70,24 @@ var _chunkHKC663W4cjs = require('./chunk-HKC663W4.cjs');
70
70
 
71
71
 
72
72
 
73
- var _chunkKB7D46CCcjs = require('./chunk-KB7D46CC.cjs');
73
+ var _chunkAVXVMZ4Bcjs = require('./chunk-AVXVMZ4B.cjs');
74
74
 
75
75
  // src/signals.ts
76
76
  process.once("SIGINT", async (arg) => {
77
- _chunkHKC663W4cjs.log.call(void 0, ).info(arg, "SIGINT");
78
- await _chunkHKC663W4cjs.disposeAndExit.call(void 0, "EXIT");
77
+ _chunkP3B7HVFDcjs.log.call(void 0, ).info(arg, "SIGINT");
78
+ await _chunkP3B7HVFDcjs.disposeAndExit.call(void 0, "EXIT");
79
79
  });
80
80
  process.once("SIGTERM", async (arg) => {
81
- _chunkHKC663W4cjs.log.call(void 0, ).info(arg, "SIGTERM");
82
- await _chunkHKC663W4cjs.disposeAndExit.call(void 0, "EXIT");
81
+ _chunkP3B7HVFDcjs.log.call(void 0, ).info(arg, "SIGTERM");
82
+ await _chunkP3B7HVFDcjs.disposeAndExit.call(void 0, "EXIT");
83
83
  });
84
84
  process.once("uncaughtException", async (arg) => {
85
- _chunkHKC663W4cjs.log.call(void 0, ).error(arg, "Uncaught Exception");
86
- await _chunkHKC663W4cjs.disposeAndExit.call(void 0, "ERROR");
85
+ _chunkP3B7HVFDcjs.log.call(void 0, ).error(arg, "Uncaught Exception");
86
+ await _chunkP3B7HVFDcjs.disposeAndExit.call(void 0, "ERROR");
87
87
  });
88
88
  process.once("unhandledRejection", async (arg) => {
89
- _chunkHKC663W4cjs.log.call(void 0, ).error(arg, "Unhandled Rejection");
90
- await _chunkHKC663W4cjs.disposeAndExit.call(void 0, "ERROR");
89
+ _chunkP3B7HVFDcjs.log.call(void 0, ).error(arg, "Unhandled Rejection");
90
+ await _chunkP3B7HVFDcjs.disposeAndExit.call(void 0, "ERROR");
91
91
  });
92
92
 
93
93
  // src/act.ts
@@ -195,7 +195,7 @@ async function* audit(deps, categories, options = {}) {
195
195
  if (need_stats) {
196
196
  const stats = await deps.store().query_stats(
197
197
  {},
198
- { count: true, names: true, exclude: [_chunkKB7D46CCcjs.SNAP_EVENT] }
198
+ { count: true, names: true, exclude: [_chunkAVXVMZ4Bcjs.SNAP_EVENT] }
199
199
  );
200
200
  for (const [stream, s] of stats) {
201
201
  for (const p of passes) _optionalChain([p, 'access', _4 => _4.on_stat, 'optionalCall', _5 => _5(stream, s)]);
@@ -277,7 +277,7 @@ var make_schema_pass = (deps) => {
277
277
  return;
278
278
  }
279
279
  const schema = state2.events[name];
280
- const sensitive2 = _chunkKB7D46CCcjs.pii_fields.call(void 0, schema);
280
+ const sensitive2 = _chunkAVXVMZ4Bcjs.pii_fields.call(void 0, schema);
281
281
  let parse_schema = schema;
282
282
  if (sensitive2.length > 0) {
283
283
  const omitter = schema.omit;
@@ -411,7 +411,7 @@ var make_restart_candidate_pass = (deps, options) => {
411
411
  {
412
412
  stream,
413
413
  stream_exact: true,
414
- names: [_chunkKB7D46CCcjs.SNAP_EVENT],
414
+ names: [_chunkAVXVMZ4Bcjs.SNAP_EVENT],
415
415
  with_snaps: true
416
416
  }
417
417
  );
@@ -840,7 +840,7 @@ async function run_close_cycle(targets, deps) {
840
840
  deps,
841
841
  () => run_full_closes(full, target_map, deps, skipped)
842
842
  );
843
- const retired = [...truncated.entries()].filter(([, r]) => r.committed.name === _chunkKB7D46CCcjs.TOMBSTONE_EVENT).map(([stream]) => stream);
843
+ const retired = [...truncated.entries()].filter(([, r]) => r.committed.name === _chunkAVXVMZ4Bcjs.TOMBSTONE_EVENT).map(([stream]) => stream);
844
844
  if (retired.length) _optionalChain([deps, 'access', _42 => _42.forget_subscribed, 'optionalCall', _43 => _43(retired)]);
845
845
  for (const [stream, entry] of windowed_result) truncated.set(stream, entry);
846
846
  return { truncated, skipped };
@@ -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 _chunkHKC663W4cjs.store.call(void 0, ).truncate([
925
+ const result = await _chunkP3B7HVFDcjs.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,10 +935,10 @@ 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 _chunkHKC663W4cjs.store.call(void 0, ).query(
938
+ await _chunkP3B7HVFDcjs.store.call(void 0, ).query(
939
939
  (event) => {
940
940
  if (min_id === void 0 || event.id < min_id) min_id = event.id;
941
- if (event.name === _chunkKB7D46CCcjs.SNAP_EVENT && event.created < before && (max_id === void 0 || event.id <= max_id) && (boundary_id === void 0 || event.id > boundary_id))
941
+ if (event.name === _chunkAVXVMZ4Bcjs.SNAP_EVENT && event.created < before && (max_id === void 0 || event.id <= max_id) && (boundary_id === void 0 || event.id > boundary_id))
942
942
  boundary_id = event.id;
943
943
  },
944
944
  { stream, stream_exact: true, with_snaps: true, after: -1 }
@@ -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
- _chunkHKC663W4cjs.store.call(void 0, ),
952
+ _chunkP3B7HVFDcjs.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,17 +977,17 @@ function source_matcher() {
977
977
  };
978
978
  }
979
979
  async function scan_stream_heads(streams) {
980
- const stats = await _chunkHKC663W4cjs.store.call(void 0, ).query_stats(streams, {
981
- exclude: [_chunkKB7D46CCcjs.SNAP_EVENT]
980
+ const stats = await _chunkP3B7HVFDcjs.store.call(void 0, ).query_stats(streams, {
981
+ exclude: [_chunkAVXVMZ4Bcjs.SNAP_EVENT]
982
982
  });
983
- const domain_heads = await _chunkHKC663W4cjs.store.call(void 0, ).query_stats(streams, {
984
- exclude: [_chunkKB7D46CCcjs.SNAP_EVENT, _chunkKB7D46CCcjs.TOMBSTONE_EVENT]
983
+ const domain_heads = await _chunkP3B7HVFDcjs.store.call(void 0, ).query_stats(streams, {
984
+ exclude: [_chunkAVXVMZ4Bcjs.SNAP_EVENT, _chunkAVXVMZ4Bcjs.TOMBSTONE_EVENT]
985
985
  });
986
- const true_heads = await _chunkHKC663W4cjs.store.call(void 0, ).query_stats(streams, {});
986
+ const true_heads = await _chunkP3B7HVFDcjs.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]);
990
- const interrupted = _optionalChain([marker_head, 'optionalAccess', _48 => _48.name]) === _chunkKB7D46CCcjs.TOMBSTONE_EVENT;
990
+ const interrupted = _optionalChain([marker_head, 'optionalAccess', _48 => _48.name]) === _chunkAVXVMZ4Bcjs.TOMBSTONE_EVENT;
991
991
  out.set(stream, {
992
992
  max_id: head.id,
993
993
  version: true_heads.get(stream).head.version,
@@ -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
- _chunkHKC663W4cjs.store.call(void 0, ),
1014
+ _chunkP3B7HVFDcjs.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 _chunkHKC663W4cjs.store.call(void 0, ).query_stats(guarded, {});
1080
+ const heads = await _chunkP3B7HVFDcjs.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;
@@ -1095,18 +1095,18 @@ async function truncate_and_warm_cache(guarded, seed_states, guard_events, corre
1095
1095
  meta: {
1096
1096
  correlation,
1097
1097
  causation: {
1098
- event: { id: guard.id, name: _chunkKB7D46CCcjs.TOMBSTONE_EVENT, stream: guard.stream }
1098
+ event: { id: guard.id, name: _chunkAVXVMZ4Bcjs.TOMBSTONE_EVENT, stream: guard.stream }
1099
1099
  }
1100
1100
  }
1101
1101
  };
1102
1102
  });
1103
- const truncated = await _chunkHKC663W4cjs.store.call(void 0, ).truncate(trunc_targets);
1103
+ const truncated = await _chunkP3B7HVFDcjs.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 _chunkHKC663W4cjs.cache.call(void 0, ).set(stream, {
1109
+ await _chunkP3B7HVFDcjs.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 _chunkHKC663W4cjs.cache.call(void 0, ).invalidate(stream);
1118
+ await _chunkP3B7HVFDcjs.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
- _chunkHKC663W4cjs.log.call(void 0, ).error(new Error(message));
1132
+ _chunkP3B7HVFDcjs.log.call(void 0, ).error(new Error(message));
1133
1133
  }
1134
1134
 
1135
1135
  // src/internal/correlate-cycle.ts
@@ -1178,7 +1178,7 @@ var CorrelateCycle = (_class3 = class {
1178
1178
  // never drops their +Infinity floor.
1179
1179
 
1180
1180
  __init10() {this._static_subscriptions = /* @__PURE__ */ new Map()}
1181
- __init11() {this._patterns = new (0, _chunkHKC663W4cjs.LruMap)(PATTERN_CACHE_SIZE)}
1181
+ __init11() {this._patterns = new (0, _chunkP3B7HVFDcjs.LruMap)(PATTERN_CACHE_SIZE)}
1182
1182
 
1183
1183
 
1184
1184
 
@@ -1196,7 +1196,7 @@ var CorrelateCycle = (_class3 = class {
1196
1196
  on_init
1197
1197
  }) {;_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);
1198
1198
  this._key = shard ? `${registry_key(registry.events)}:${[...shard].sort().join(",")}` : registry_key(registry.events);
1199
- this._dynamic_subscriptions = new (0, _chunkHKC663W4cjs.LruMap)(max_subscribed_streams);
1199
+ this._dynamic_subscriptions = new (0, _chunkP3B7HVFDcjs.LruMap)(max_subscribed_streams);
1200
1200
  this._registry = registry;
1201
1201
  this._declared_lanes = declared_lanes;
1202
1202
  this._static_targets = static_targets;
@@ -1252,7 +1252,7 @@ var CorrelateCycle = (_class3 = class {
1252
1252
  /** Would the target's own `fetch` (filtered by `source`) return this event? */
1253
1253
  _in_fetch_window(source, stream) {
1254
1254
  if (source === void 0 || source === stream) return true;
1255
- if (_chunkHKC663W4cjs.is_literal_source.call(void 0, source)) return false;
1255
+ if (_chunkP3B7HVFDcjs.is_literal_source.call(void 0, source)) return false;
1256
1256
  let pattern = this._patterns.get(source);
1257
1257
  if (!pattern) {
1258
1258
  pattern = new RegExp(source);
@@ -1287,7 +1287,7 @@ var CorrelateCycle = (_class3 = class {
1287
1287
  const correlated = /* @__PURE__ */ new Map();
1288
1288
  let last_id = after;
1289
1289
  let stopped = false;
1290
- const found = await _chunkHKC663W4cjs.store.call(void 0, ).query(
1290
+ const found = await _chunkP3B7HVFDcjs.store.call(void 0, ).query(
1291
1291
  (event) => {
1292
1292
  if (stopped) return;
1293
1293
  const register = this._registry.events[event.name];
@@ -1331,9 +1331,9 @@ var CorrelateCycle = (_class3 = class {
1331
1331
  correlated_at: void 0
1332
1332
  };
1333
1333
  const seen_in_scan = correlated.has(resolved.target);
1334
- const held_lane = _nullishCoalesce((seen_in_scan ? entry.lane : _optionalChain([recorded, 'optionalAccess', _61 => _61.lane])), () => ( _chunkKB7D46CCcjs.DEFAULT_LANE));
1334
+ const held_lane = _nullishCoalesce((seen_in_scan ? entry.lane : _optionalChain([recorded, 'optionalAccess', _61 => _61.lane])), () => ( _chunkAVXVMZ4Bcjs.DEFAULT_LANE));
1335
1335
  const held_priority = seen_in_scan ? entry.priority : _optionalChain([recorded, 'optionalAccess', _62 => _62.priority]);
1336
- const resolved_lane = _nullishCoalesce(lane, () => ( _chunkKB7D46CCcjs.DEFAULT_LANE));
1336
+ const resolved_lane = _nullishCoalesce(lane, () => ( _chunkAVXVMZ4Bcjs.DEFAULT_LANE));
1337
1337
  if (held_priority === priority && held_lane !== resolved_lane)
1338
1338
  report_lane_conflict(
1339
1339
  this._reported,
@@ -1409,7 +1409,7 @@ var CorrelateCycle = (_class3 = class {
1409
1409
  await Promise.all(
1410
1410
  missed.map(async ([stream, entry]) => {
1411
1411
  let row;
1412
- await _chunkHKC663W4cjs.store.call(void 0, ).query_streams(
1412
+ await _chunkP3B7HVFDcjs.store.call(void 0, ).query_streams(
1413
1413
  (position) => {
1414
1414
  row = position;
1415
1415
  },
@@ -1422,8 +1422,8 @@ var CorrelateCycle = (_class3 = class {
1422
1422
  lane: row.lane
1423
1423
  });
1424
1424
  if (entry.priority > row.priority) return;
1425
- const held_lane = _nullishCoalesce(row.lane, () => ( _chunkKB7D46CCcjs.DEFAULT_LANE));
1426
- const resolved_lane = _nullishCoalesce(entry.lane, () => ( _chunkKB7D46CCcjs.DEFAULT_LANE));
1425
+ const held_lane = _nullishCoalesce(row.lane, () => ( _chunkAVXVMZ4Bcjs.DEFAULT_LANE));
1426
+ const resolved_lane = _nullishCoalesce(entry.lane, () => ( _chunkAVXVMZ4Bcjs.DEFAULT_LANE));
1427
1427
  if (entry.priority === row.priority && held_lane !== resolved_lane)
1428
1428
  report_lane_conflict(
1429
1429
  this._reported,
@@ -1449,7 +1449,7 @@ var CorrelateCycle = (_class3 = class {
1449
1449
  millis: 0
1450
1450
  });
1451
1451
  } catch (error) {
1452
- _chunkHKC663W4cjs.log.call(void 0, ).warn(
1452
+ _chunkP3B7HVFDcjs.log.call(void 0, ).warn(
1453
1453
  `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)}`
1454
1454
  );
1455
1455
  }
@@ -1602,14 +1602,14 @@ function compute_lag_lead_ratio(handled, lagging, leading) {
1602
1602
  }
1603
1603
 
1604
1604
  // src/internal/drain-ops.ts
1605
- var claim = (lagging, leading, by, millis, lane) => _chunkHKC663W4cjs.store.call(void 0, ).claim(lagging, leading, by, millis, lane);
1605
+ var claim = (lagging, leading, by, millis, lane) => _chunkP3B7HVFDcjs.store.call(void 0, ).claim(lagging, leading, by, millis, lane);
1606
1606
  async function fetch(leased, eventLimit) {
1607
1607
  return Promise.all(
1608
1608
  leased.map(async ({ stream, source, at, lagging }) => {
1609
1609
  const events = [];
1610
- const stream_exact = source !== void 0 && _chunkHKC663W4cjs.is_literal_source.call(void 0, source) ? true : void 0;
1610
+ const stream_exact = source !== void 0 && _chunkP3B7HVFDcjs.is_literal_source.call(void 0, source) ? true : void 0;
1611
1611
  try {
1612
- await _chunkHKC663W4cjs.store.call(void 0, ).query((e) => events.push(e), {
1612
+ await _chunkP3B7HVFDcjs.store.call(void 0, ).query((e) => events.push(e), {
1613
1613
  stream: source,
1614
1614
  stream_exact,
1615
1615
  after: at,
@@ -1629,30 +1629,30 @@ async function fetch(leased, eventLimit) {
1629
1629
  })
1630
1630
  );
1631
1631
  }
1632
- var ack = (leases) => _chunkHKC663W4cjs.store.call(void 0, ).ack(leases);
1633
- var block = (leases) => _chunkHKC663W4cjs.store.call(void 0, ).block(leases);
1634
- var subscribe = (streams, correlated_at, correlator) => _chunkHKC663W4cjs.store.call(void 0, ).subscribe(streams, correlated_at, correlator);
1632
+ var ack = (leases) => _chunkP3B7HVFDcjs.store.call(void 0, ).ack(leases);
1633
+ var block = (leases) => _chunkP3B7HVFDcjs.store.call(void 0, ).block(leases);
1634
+ var subscribe = (streams, correlated_at, correlator) => _chunkP3B7HVFDcjs.store.call(void 0, ).subscribe(streams, correlated_at, correlator);
1635
1635
 
1636
1636
  // src/internal/event-sourcing.ts
1637
1637
  var _actpatch = require('@rotorsoft/act-patch');
1638
1638
  var bare_patch = (_me, state2, partial) => _actpatch.patch.call(void 0, state2, partial);
1639
1639
  var validating_patch = (me, state2, partial, event) => {
1640
1640
  const next = _actpatch.patch.call(void 0, state2, partial);
1641
- return _chunkHKC663W4cjs.validate.call(void 0,
1641
+ return _chunkP3B7HVFDcjs.validate.call(void 0,
1642
1642
  `${me.name}.${String(event.name)}#${event.id}`,
1643
1643
  next,
1644
1644
  me.state
1645
1645
  );
1646
1646
  };
1647
1647
  var DEFAULT_BATCH = 500;
1648
- var cache_put = (stream, entry) => _chunkHKC663W4cjs.cache.call(void 0, ).set(stream, entry).catch(
1649
- (err) => _chunkHKC663W4cjs.log.call(void 0, ).warn(
1648
+ var cache_put = (stream, entry) => _chunkP3B7HVFDcjs.cache.call(void 0, ).set(stream, entry).catch(
1649
+ (err) => _chunkP3B7HVFDcjs.log.call(void 0, ).warn(
1650
1650
  err,
1651
1651
  "cache set skipped; the next load re-folds from the store"
1652
1652
  )
1653
1653
  );
1654
- var cache_drop = (stream) => _chunkHKC663W4cjs.cache.call(void 0, ).invalidate(stream).catch(
1655
- (err) => _chunkHKC663W4cjs.log.call(void 0, ).warn(
1654
+ var cache_drop = (stream) => _chunkP3B7HVFDcjs.cache.call(void 0, ).invalidate(stream).catch(
1655
+ (err) => _chunkP3B7HVFDcjs.log.call(void 0, ).warn(
1656
1656
  err,
1657
1657
  "cache invalidate skipped; a stale checkpoint re-folds from its event_id"
1658
1658
  )
@@ -1660,9 +1660,9 @@ var cache_drop = (stream) => _chunkHKC663W4cjs.cache.call(void 0, ).invalidate(s
1660
1660
  async function snap(snapshot) {
1661
1661
  const { id, stream, name, meta, version } = snapshot.event;
1662
1662
  try {
1663
- const [committed] = await _chunkHKC663W4cjs.store.call(void 0, ).commit(
1663
+ const [committed] = await _chunkP3B7HVFDcjs.store.call(void 0, ).commit(
1664
1664
  stream,
1665
- [{ name: _chunkKB7D46CCcjs.SNAP_EVENT, data: snapshot.state }],
1665
+ [{ name: _chunkAVXVMZ4Bcjs.SNAP_EVENT, data: snapshot.state }],
1666
1666
  {
1667
1667
  correlation: meta.correlation,
1668
1668
  causation: { event: { id, name, stream } }
@@ -1673,22 +1673,22 @@ async function snap(snapshot) {
1673
1673
  return committed;
1674
1674
  } catch (error) {
1675
1675
  const reason = error instanceof Error ? error.message : String(error);
1676
- _chunkHKC663W4cjs.log.call(void 0, ).warn(
1676
+ _chunkP3B7HVFDcjs.log.call(void 0, ).warn(
1677
1677
  `Snapshot write failed on stream "${stream}": ${reason} \u2014 cold starts will replay full history until snapshots succeed.`
1678
1678
  );
1679
1679
  }
1680
1680
  }
1681
1681
  async function tombstone(stream, expectedVersion, correlation) {
1682
1682
  try {
1683
- const [committed] = await _chunkHKC663W4cjs.store.call(void 0, ).commit(
1683
+ const [committed] = await _chunkP3B7HVFDcjs.store.call(void 0, ).commit(
1684
1684
  stream,
1685
- [{ name: _chunkKB7D46CCcjs.TOMBSTONE_EVENT, data: {} }],
1685
+ [{ name: _chunkAVXVMZ4Bcjs.TOMBSTONE_EVENT, data: {} }],
1686
1686
  { correlation, causation: {} },
1687
1687
  expectedVersion
1688
1688
  );
1689
1689
  return committed;
1690
1690
  } catch (error) {
1691
- if (error instanceof _chunkKB7D46CCcjs.ConcurrencyError) return void 0;
1691
+ if (error instanceof _chunkAVXVMZ4Bcjs.ConcurrencyError) return void 0;
1692
1692
  throw error;
1693
1693
  }
1694
1694
  }
@@ -1718,9 +1718,9 @@ async function scan(source, opts = {}, callback) {
1718
1718
  if (drop_closed_streams) {
1719
1719
  await source.query(
1720
1720
  (e) => {
1721
- if (e.name === _chunkKB7D46CCcjs.TOMBSTONE_EVENT) closed_streams.add(e.stream);
1721
+ if (e.name === _chunkAVXVMZ4Bcjs.TOMBSTONE_EVENT) closed_streams.add(e.stream);
1722
1722
  },
1723
- { names: [_chunkKB7D46CCcjs.TOMBSTONE_EVENT] }
1723
+ { names: [_chunkAVXVMZ4Bcjs.TOMBSTONE_EVENT] }
1724
1724
  );
1725
1725
  }
1726
1726
  let max_id;
@@ -1742,11 +1742,11 @@ async function scan(source, opts = {}, callback) {
1742
1742
  if (!is_valid(event))
1743
1743
  throw new Error(`Invalid event at index ${processed}`);
1744
1744
  if (on_progress) on_progress({ processed, id: event.id, max_id });
1745
- if (drop_snapshots && event.name === _chunkKB7D46CCcjs.SNAP_EVENT) {
1745
+ if (drop_snapshots && event.name === _chunkAVXVMZ4Bcjs.SNAP_EVENT) {
1746
1746
  dropped_snaps++;
1747
1747
  return;
1748
1748
  }
1749
- if (closed_streams.has(event.stream) && event.name !== _chunkKB7D46CCcjs.TOMBSTONE_EVENT) {
1749
+ if (closed_streams.has(event.stream) && event.name !== _chunkAVXVMZ4Bcjs.TOMBSTONE_EVENT) {
1750
1750
  dropped_closed++;
1751
1751
  return;
1752
1752
  }
@@ -1813,17 +1813,17 @@ async function scan(source, opts = {}, callback) {
1813
1813
  async function load(me, target, callback, patch_fn = bare_patch) {
1814
1814
  const { stream, actor, asOf } = target;
1815
1815
  const time_travel = !!asOf && Object.values(asOf).some((v) => v !== void 0);
1816
- const cached = time_travel ? void 0 : await _chunkHKC663W4cjs.cache.call(void 0, ).get(stream);
1816
+ const cached = time_travel ? void 0 : await _chunkP3B7HVFDcjs.cache.call(void 0, ).get(stream);
1817
1817
  const cache_hit = !!cached;
1818
1818
  let state2 = _nullishCoalesce(_optionalChain([cached, 'optionalAccess', _72 => _72.state]), () => ( (me.init ? me.init() : {})));
1819
1819
  let patches = _nullishCoalesce(_optionalChain([cached, 'optionalAccess', _73 => _73.patches]), () => ( 0));
1820
1820
  let snaps = _nullishCoalesce(_optionalChain([cached, 'optionalAccess', _74 => _74.snaps]), () => ( 0));
1821
1821
  let replayed = 0;
1822
1822
  let event;
1823
- await _chunkHKC663W4cjs.store.call(void 0, ).query(
1823
+ await _chunkP3B7HVFDcjs.store.call(void 0, ).query(
1824
1824
  (raw) => {
1825
1825
  event = me.view(raw, actor);
1826
- if (event.name === _chunkKB7D46CCcjs.SNAP_EVENT) {
1826
+ if (event.name === _chunkAVXVMZ4Bcjs.SNAP_EVENT) {
1827
1827
  state2 = event.data;
1828
1828
  snaps++;
1829
1829
  patches = 0;
@@ -1832,8 +1832,8 @@ async function load(me, target, callback, patch_fn = bare_patch) {
1832
1832
  state2 = patch_fn(me, state2, me.patch[event.name](event, state2), event);
1833
1833
  patches++;
1834
1834
  replayed++;
1835
- } else if (event.name !== _chunkKB7D46CCcjs.TOMBSTONE_EVENT) {
1836
- _chunkHKC663W4cjs.log.call(void 0, ).warn(
1835
+ } else if (event.name !== _chunkAVXVMZ4Bcjs.TOMBSTONE_EVENT) {
1836
+ _chunkP3B7HVFDcjs.log.call(void 0, ).warn(
1837
1837
  `Skipping unknown event "${String(event.name)}" on stream "${stream}" (id=${event.id}) \u2014 no reducer in state "${me.name}"`
1838
1838
  );
1839
1839
  }
@@ -1857,7 +1857,7 @@ async function load(me, target, callback, patch_fn = bare_patch) {
1857
1857
  ...cached ? { after: cached.event_id, with_snaps: true } : { ...time_travel ? {} : { with_snaps: true }, ...asOf }
1858
1858
  }
1859
1859
  );
1860
- const head_is_tombstone = _optionalChain([event, 'optionalAccess', _76 => _76.name]) === _chunkKB7D46CCcjs.TOMBSTONE_EVENT;
1860
+ const head_is_tombstone = _optionalChain([event, 'optionalAccess', _76 => _76.name]) === _chunkAVXVMZ4Bcjs.TOMBSTONE_EVENT;
1861
1861
  if (replayed > 0 && !time_travel && event && !me.pii_aware && !head_is_tombstone) {
1862
1862
  await cache_put(stream, {
1863
1863
  stream,
@@ -1885,7 +1885,7 @@ async function action(me, action2, target, payload, options, patch_fn = bare_pat
1885
1885
  if (!stream) throw new Error("Missing target stream");
1886
1886
  const reactingTo = _optionalChain([options, 'optionalAccess', _81 => _81.reactingTo]);
1887
1887
  const correlator = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _82 => _82.correlator]), () => ( default_correlator));
1888
- const validated = _chunkHKC663W4cjs.validate.call(void 0, action2, payload, me.actions[action2]);
1888
+ const validated = _chunkP3B7HVFDcjs.validate.call(void 0, action2, payload, me.actions[action2]);
1889
1889
  const opts = _optionalChain([me, 'access', _83 => _83.options, 'optionalAccess', _84 => _84[action2]]);
1890
1890
  const max_retries = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _85 => _85.maxRetries]), () => ( 0));
1891
1891
  for (let attempt = 0; ; attempt++) {
@@ -1896,14 +1896,14 @@ async function action(me, action2, target, payload, options, patch_fn = bare_pat
1896
1896
  void 0,
1897
1897
  patch_fn
1898
1898
  );
1899
- if (_optionalChain([snapshot, 'access', _86 => _86.event, 'optionalAccess', _87 => _87.name]) === _chunkKB7D46CCcjs.TOMBSTONE_EVENT)
1900
- throw new (0, _chunkKB7D46CCcjs.StreamClosedError)(stream);
1899
+ if (_optionalChain([snapshot, 'access', _86 => _86.event, 'optionalAccess', _87 => _87.name]) === _chunkAVXVMZ4Bcjs.TOMBSTONE_EVENT)
1900
+ throw new (0, _chunkAVXVMZ4Bcjs.StreamClosedError)(stream);
1901
1901
  const expected = _nullishCoalesce(expectedVersion, () => ( (snapshot.version >= 0 ? snapshot.version : void 0)));
1902
1902
  if (me.given) {
1903
1903
  const invariants = me.given[action2] || [];
1904
1904
  invariants.forEach(({ valid: valid2, description }) => {
1905
1905
  if (!valid2(snapshot.state, actor))
1906
- throw new (0, _chunkKB7D46CCcjs.InvariantError)(
1906
+ throw new (0, _chunkAVXVMZ4Bcjs.InvariantError)(
1907
1907
  action2,
1908
1908
  validated,
1909
1909
  target,
@@ -1920,7 +1920,7 @@ async function action(me, action2, target, payload, options, patch_fn = bare_pat
1920
1920
  const tuples = Array.isArray(result[0]) ? result : [result];
1921
1921
  const valid = tuples.map(([name, data]) => ({
1922
1922
  name,
1923
- data: _chunkHKC663W4cjs.validate.call(void 0, name, data, me.events[name])
1923
+ data: _chunkP3B7HVFDcjs.validate.call(void 0, name, data, me.events[name])
1924
1924
  }));
1925
1925
  const emitted = valid.map((e) => me.message(e));
1926
1926
  const meta = {
@@ -1945,7 +1945,7 @@ async function action(me, action2, target, payload, options, patch_fn = bare_pat
1945
1945
  };
1946
1946
  let committed;
1947
1947
  try {
1948
- committed = await _chunkHKC663W4cjs.store.call(void 0, ).commit(
1948
+ committed = await _chunkP3B7HVFDcjs.store.call(void 0, ).commit(
1949
1949
  stream,
1950
1950
  emitted,
1951
1951
  meta,
@@ -1954,7 +1954,7 @@ async function action(me, action2, target, payload, options, patch_fn = bare_pat
1954
1954
  reactingTo ? expectedVersion : expected
1955
1955
  );
1956
1956
  } catch (error) {
1957
- if (error instanceof _chunkKB7D46CCcjs.ConcurrencyError) void cache_drop(stream);
1957
+ if (error instanceof _chunkAVXVMZ4Bcjs.ConcurrencyError) void cache_drop(stream);
1958
1958
  throw error;
1959
1959
  }
1960
1960
  let { state: state2, patches } = snapshot;
@@ -1993,19 +1993,19 @@ async function action(me, action2, target, payload, options, patch_fn = bare_pat
1993
1993
  }
1994
1994
  return snapshots;
1995
1995
  } catch (error) {
1996
- if (!(error instanceof _chunkKB7D46CCcjs.ConcurrencyError)) throw error;
1996
+ if (!(error instanceof _chunkAVXVMZ4Bcjs.ConcurrencyError)) throw error;
1997
1997
  if (expectedVersion !== void 0) throw error;
1998
1998
  if (attempt >= max_retries) throw error;
1999
1999
  if (_optionalChain([opts, 'optionalAccess', _94 => _94.backoff])) {
2000
2000
  const delay_ms = compute_backoff_delay(attempt, opts.backoff);
2001
- if (delay_ms > 0) await _chunkHKC663W4cjs.sleep.call(void 0, delay_ms);
2001
+ if (delay_ms > 0) await _chunkP3B7HVFDcjs.sleep.call(void 0, delay_ms);
2002
2002
  }
2003
2003
  }
2004
2004
  }
2005
2005
  }
2006
2006
 
2007
2007
  // src/internal/tracing.ts
2008
- var PRETTY = _chunkHKC663W4cjs.config.call(void 0, ).env !== "production";
2008
+ var PRETTY = _chunkP3B7HVFDcjs.config.call(void 0, ).env !== "production";
2009
2009
  var C_BLUE = "\x1B[38;5;39m";
2010
2010
  var C_ORANGE = "\x1B[38;5;208m";
2011
2011
  var C_GREEN = "\x1B[38;5;42m";
@@ -2191,7 +2191,7 @@ function budget_exhausted(lease, options, store_failing) {
2191
2191
  if (store_failing || !_optionalChain([options, 'optionalAccess', _104 => _104.blockOnError]) || lease.retry <= options.maxRetries)
2192
2192
  return void 0;
2193
2193
  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.`;
2194
- _chunkHKC663W4cjs.log.call(void 0, ).error(error);
2194
+ _chunkP3B7HVFDcjs.log.call(void 0, ).error(error);
2195
2195
  return { lease, handled: 0, acked_at: lease.at, error, block: true };
2196
2196
  }
2197
2197
  function fetch_failure_policy(registry) {
@@ -2207,13 +2207,13 @@ function fetch_failure_policy(registry) {
2207
2207
  function finalize(lease, handled, at, error, options, logger, failed_at) {
2208
2208
  if (!error) return { lease, handled, acked_at: at };
2209
2209
  logger.error(error);
2210
- const non_retryable = error instanceof _chunkKB7D46CCcjs.NonRetryableError;
2210
+ const non_retryable = error instanceof _chunkAVXVMZ4Bcjs.NonRetryableError;
2211
2211
  const block2 = options.blockOnError && (non_retryable || lease.retry >= options.maxRetries);
2212
2212
  if (block2)
2213
2213
  logger.error(
2214
2214
  non_retryable ? `Blocking ${lease.stream} on non-retryable error.` : `Blocking ${lease.stream} after ${lease.retry} retries.`
2215
2215
  );
2216
- const next_attempt_at = block2 ? void 0 : Date.now() + compute_backoff_delay(lease.retry, _nullishCoalesce(options.backoff, () => ( _chunkHKC663W4cjs.DEFAULT_BACKOFF)));
2216
+ const next_attempt_at = block2 ? void 0 : Date.now() + compute_backoff_delay(lease.retry, _nullishCoalesce(options.backoff, () => ( _chunkP3B7HVFDcjs.DEFAULT_BACKOFF)));
2217
2217
  return {
2218
2218
  lease,
2219
2219
  handled,
@@ -2342,7 +2342,7 @@ async function run_drain_cycle(deps, cycle) {
2342
2342
  const acked = await ops.ack(submitted);
2343
2343
  const expected = submitted.filter((l) => l.due === void 0).length;
2344
2344
  if (acked.length < expected)
2345
- _chunkHKC663W4cjs.log.call(void 0, ).warn(
2345
+ _chunkP3B7HVFDcjs.log.call(void 0, ).warn(
2346
2346
  `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.`
2347
2347
  );
2348
2348
  const closeable = handled.filter((h) => h.close !== void 0).map((h) => h.close);
@@ -2433,9 +2433,9 @@ var DrainController = (_class5 = class {
2433
2433
  if (!this.armed || this._stopped || this._inflight)
2434
2434
  return EMPTY_DRAIN;
2435
2435
  const d = _nullishCoalesce(this._deps.defaults, () => ( {}));
2436
- const streamLimit = _nullishCoalesce(_nullishCoalesce(d.streamLimit, () => ( options.streamLimit)), () => ( _chunkHKC663W4cjs.DEFAULT_STREAM_LIMIT));
2437
- const eventLimit = _nullishCoalesce(options.eventLimit, () => ( _chunkHKC663W4cjs.DEFAULT_EVENT_LIMIT));
2438
- const leaseMillis = _nullishCoalesce(_nullishCoalesce(d.leaseMillis, () => ( options.leaseMillis)), () => ( _chunkHKC663W4cjs.DEFAULT_LEASE_MILLIS));
2436
+ const streamLimit = _nullishCoalesce(_nullishCoalesce(d.streamLimit, () => ( options.streamLimit)), () => ( _chunkP3B7HVFDcjs.DEFAULT_STREAM_LIMIT));
2437
+ const eventLimit = _nullishCoalesce(options.eventLimit, () => ( _chunkP3B7HVFDcjs.DEFAULT_EVENT_LIMIT));
2438
+ const leaseMillis = _nullishCoalesce(_nullishCoalesce(d.leaseMillis, () => ( options.leaseMillis)), () => ( _chunkP3B7HVFDcjs.DEFAULT_LEASE_MILLIS));
2439
2439
  if (this._deps.breaker.state(Date.now()) === "open")
2440
2440
  return EMPTY_DRAIN;
2441
2441
  try {
@@ -2506,7 +2506,7 @@ function pii_gate(event, fields, predicate, actor) {
2506
2506
  const { pii, ...rest } = event;
2507
2507
  if (pii == null) {
2508
2508
  const shredded = { ...data };
2509
- for (const f of fields) shredded[f] = _chunkKB7D46CCcjs.SHREDDED;
2509
+ for (const f of fields) shredded[f] = _chunkAVXVMZ4Bcjs.SHREDDED;
2510
2510
  return { ...rest, data: shredded };
2511
2511
  }
2512
2512
  const allowed = !!actor && !!predicate && predicate(event, actor);
@@ -2517,7 +2517,7 @@ function pii_gate(event, fields, predicate, actor) {
2517
2517
  };
2518
2518
  }
2519
2519
  const redacted = { ...data };
2520
- for (const f of fields) redacted[f] = _chunkKB7D46CCcjs.REDACTED;
2520
+ for (const f of fields) redacted[f] = _chunkAVXVMZ4Bcjs.REDACTED;
2521
2521
  return { ...rest, data: redacted };
2522
2522
  }
2523
2523
  var IDENTITY_GATE = (event) => event;
@@ -2654,7 +2654,7 @@ function make_deferred(handler, schedule) {
2654
2654
  const call = handler;
2655
2655
  const deferred = async (event, stream, app) => {
2656
2656
  const when = typeof schedule === "function" ? schedule(event) : schedule;
2657
- if (Date.now() < resolve_defer_at(when, event)) throw new (0, _chunkKB7D46CCcjs.DeferSignal)(when);
2657
+ if (Date.now() < resolve_defer_at(when, event)) throw new (0, _chunkAVXVMZ4Bcjs.DeferSignal)(when);
2658
2658
  return call(event, stream, app);
2659
2659
  };
2660
2660
  Object.defineProperty(deferred, "name", { value: handler.name });
@@ -2723,7 +2723,7 @@ function build_handle(deps) {
2723
2723
  handled++;
2724
2724
  }
2725
2725
  } catch (error) {
2726
- if (error instanceof _chunkKB7D46CCcjs.DeferSignal) {
2726
+ if (error instanceof _chunkAVXVMZ4Bcjs.DeferSignal) {
2727
2727
  let defer;
2728
2728
  try {
2729
2729
  defer = resolve_defer_at(error.when, event);
@@ -2999,7 +2999,7 @@ var Act = (_class7 = class {
2999
2999
  /** Lanes to arm per event; `"all"` when a dynamic resolver hides the lane. */
3000
3000
 
3001
3001
 
3002
- __init26() {this._logger = _chunkHKC663W4cjs.log.call(void 0, )}
3002
+ __init26() {this._logger = _chunkP3B7HVFDcjs.log.call(void 0, )}
3003
3003
  /** This Act's ports: its own bag, or the singleton adapters. */
3004
3004
 
3005
3005
  /** Runs a body so internal `store()`/`cache()` calls resolve to `_ports`. */
@@ -3021,9 +3021,9 @@ var Act = (_class7 = class {
3021
3021
  this._lanes = lanes;
3022
3022
  this._declared_lanes = ["default", ...lanes.map((l) => l.name)];
3023
3023
  validate_only_lanes(options, lanes);
3024
- this._ports = _nullishCoalesce(options.scoped, () => ( _chunkHKC663W4cjs.default_scope.call(void 0, )));
3024
+ this._ports = _nullishCoalesce(options.scoped, () => ( _chunkP3B7HVFDcjs.default_scope.call(void 0, )));
3025
3025
  const ports = this._ports;
3026
- this._scoped = _chunkHKC663W4cjs.make_run_scoped.call(void 0, {
3026
+ this._scoped = _chunkP3B7HVFDcjs.make_run_scoped.call(void 0, {
3027
3027
  // Getters, not a spread: the singletons resolve lazily, so a later
3028
3028
  // `store(...)` / `cache(...)` still takes effect.
3029
3029
  get store() {
@@ -3033,14 +3033,14 @@ var Act = (_class7 = class {
3033
3033
  return ports.cache;
3034
3034
  },
3035
3035
  // Parsed per build, so a bad window throws on every build.
3036
- autoclose_window: _chunkHKC663W4cjs.resolveAutocloseConfig.call(void 0, options).autocloseWindow
3036
+ autoclose_window: _chunkP3B7HVFDcjs.resolveAutocloseConfig.call(void 0, options).autocloseWindow
3037
3037
  });
3038
3038
  this._correlator = _nullishCoalesce(options.correlator, () => ( default_correlator));
3039
3039
  this._es = build_es(this._logger, this._correlator, patch_fn);
3040
3040
  this._cd = build_drain(this._logger);
3041
3041
  const handle = build_handle({
3042
3042
  logger: this._logger,
3043
- reaction_scope: _chunkHKC663W4cjs.make_reaction_scope.call(void 0, {
3043
+ reaction_scope: _chunkP3B7HVFDcjs.make_reaction_scope.call(void 0, {
3044
3044
  do: this.do.bind(this),
3045
3045
  load: this.load.bind(this),
3046
3046
  query: this.query.bind(this),
@@ -3070,12 +3070,12 @@ var Act = (_class7 = class {
3070
3070
  this._ports.store,
3071
3071
  options.listen !== false
3072
3072
  );
3073
- _chunkHKC663W4cjs.register_weak_disposer.call(void 0, new WeakRef(this), (self) => self.shutdown());
3073
+ _chunkP3B7HVFDcjs.register_weak_disposer.call(void 0, new WeakRef(this), (self) => self.shutdown());
3074
3074
  }
3075
3075
  /** Shared by drain, settle and autoclose; bad knobs throw at build. */
3076
3076
  _build_breaker(options) {
3077
3077
  return new CircuitBreaker(
3078
- _chunkHKC663W4cjs.resolveCircuitBreakerConfig.call(void 0, options.circuitBreaker),
3078
+ _chunkP3B7HVFDcjs.resolveCircuitBreakerConfig.call(void 0, options.circuitBreaker),
3079
3079
  {
3080
3080
  on_error: (error, circuit) => this._emit_error(error, circuit),
3081
3081
  // When the cooldown elapses, settle once: its scan or claim is the
@@ -3109,7 +3109,7 @@ var Act = (_class7 = class {
3109
3109
  try {
3110
3110
  await this._run_close(targets);
3111
3111
  } catch (error) {
3112
- if (error instanceof _chunkKB7D46CCcjs.StoreError) throw error;
3112
+ if (error instanceof _chunkAVXVMZ4Bcjs.StoreError) throw error;
3113
3113
  this._logger.error(
3114
3114
  error,
3115
3115
  `Reaction-requested close of ${targets.map((t) => `"${t.stream}"`).join(", ")} failed and was not retried; close it with app.close(...) once the cause is fixed.`
@@ -3144,7 +3144,7 @@ var Act = (_class7 = class {
3144
3144
  /** Audit deps, built after the controllers so the lane set is final. */
3145
3145
  _build_audit_deps() {
3146
3146
  return {
3147
- store: _chunkHKC663W4cjs.store,
3147
+ store: _chunkP3B7HVFDcjs.store,
3148
3148
  event_to_state: this._event_to_state,
3149
3149
  // Declared lanes, not this process's controllers: a lane another
3150
3150
  // worker drains is not `unknown-lane`.
@@ -3157,7 +3157,7 @@ var Act = (_class7 = class {
3157
3157
  registry: this.registry,
3158
3158
  static_targets: classification.static_targets,
3159
3159
  cd: this._cd,
3160
- max_subscribed_streams: _nullishCoalesce(options.maxSubscribedStreams, () => ( _chunkKB7D46CCcjs.DEFAULT_MAX_SUBSCRIBED_STREAMS)),
3160
+ max_subscribed_streams: _nullishCoalesce(options.maxSubscribedStreams, () => ( _chunkAVXVMZ4Bcjs.DEFAULT_MAX_SUBSCRIBED_STREAMS)),
3161
3161
  // Declared lanes (not active ones): a lane another process claims is
3162
3162
  // still a valid destination.
3163
3163
  declared_lanes: new Set(this._declared_lanes),
@@ -3173,7 +3173,7 @@ var Act = (_class7 = class {
3173
3173
  /** Cold start: an idle deferred stream still fires on time after a restart. */
3174
3174
  async _seed_persisted_defers() {
3175
3175
  const now = Date.now();
3176
- await walk_streams(_chunkHKC663W4cjs.store.call(void 0, ), (pos) => {
3176
+ await walk_streams(_chunkP3B7HVFDcjs.store.call(void 0, ), (pos) => {
3177
3177
  if (pos.deferred_at === void 0 || pos.deferred_at <= now) return;
3178
3178
  const controller = this._drain_controllers.get(_nullishCoalesce(pos.lane, () => ( "default")));
3179
3179
  _optionalChain([controller, 'optionalAccess', _126 => _126.seed_defer, 'call', _127 => _127(pos.stream, pos.deferred_at)]);
@@ -3194,14 +3194,15 @@ var Act = (_class7 = class {
3194
3194
  on_settled: (drain) => this.emit("settled", drain),
3195
3195
  breaker: this._breaker
3196
3196
  },
3197
- _nullishCoalesce(options.settleDebounceMs, () => ( _chunkKB7D46CCcjs.DEFAULT_SETTLE_DEBOUNCE_MS))
3197
+ _nullishCoalesce(options.settleDebounceMs, () => ( _chunkAVXVMZ4Bcjs.DEFAULT_SETTLE_DEBOUNCE_MS))
3198
3198
  );
3199
3199
  }
3200
3200
 
3201
3201
  /**
3202
- * Per-instance teardown: stops scheduling, gives the cycles in flight up
3203
- * to `graceMs` to reach their `ack` (an abandoned handler holds its lease
3204
- * until it expires), then removes listeners and the notify subscription.
3202
+ * Per-instance teardown: stops scheduling, removes the notify
3203
+ * subscription, gives the cycles in flight up to `graceMs` to reach their
3204
+ * `ack` (an abandoned handler holds its lease until it expires), then
3205
+ * hands back the correlation lease and removes listeners.
3205
3206
  * The budget is a ceiling, not a delay.
3206
3207
  *
3207
3208
  * Idempotent: repeated calls return the same promise, with the first
@@ -3213,7 +3214,7 @@ var Act = (_class7 = class {
3213
3214
  */
3214
3215
  shutdown(options) {
3215
3216
  if (!this._shutdown_promise) {
3216
- _chunkHKC663W4cjs.resolveShutdownConfig.call(void 0, options);
3217
+ _chunkP3B7HVFDcjs.resolveShutdownConfig.call(void 0, options);
3217
3218
  this._shutdown_promise = (async () => {
3218
3219
  this.stop_correlations();
3219
3220
  this._settle.stop(true);
@@ -3233,10 +3234,10 @@ var Act = (_class7 = class {
3233
3234
  * default for none or 0, and for a running settle), capped.
3234
3235
  */
3235
3236
  _derive_grace_ms(running, settling) {
3236
- let max = settling ? _chunkHKC663W4cjs.DEFAULT_LEASE_MILLIS : 0;
3237
+ let max = settling ? _chunkP3B7HVFDcjs.DEFAULT_LEASE_MILLIS : 0;
3237
3238
  for (const c of running)
3238
- max = Math.max(max, c.lease_millis || _chunkHKC663W4cjs.DEFAULT_LEASE_MILLIS);
3239
- return Math.min(max, _chunkHKC663W4cjs.MAX_SHUTDOWN_GRACE_MS);
3239
+ max = Math.max(max, c.lease_millis || _chunkP3B7HVFDcjs.DEFAULT_LEASE_MILLIS);
3240
+ return Math.min(max, _chunkP3B7HVFDcjs.MAX_SHUTDOWN_GRACE_MS);
3240
3241
  }
3241
3242
  async _await_inflight(grace_ms) {
3242
3243
  const running = [...this._drain_controllers.values()].filter(
@@ -3316,7 +3317,7 @@ var Act = (_class7 = class {
3316
3317
  * @see {@link ValidationError}, {@link InvariantError}, {@link ConcurrencyError}
3317
3318
  */
3318
3319
  async do(action2, target, payload, options) {
3319
- const reacting_to = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _129 => _129.reactingTo]), () => ( _chunkHKC663W4cjs.current_reacting.call(void 0, )));
3320
+ const reacting_to = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _129 => _129.reactingTo]), () => ( _chunkP3B7HVFDcjs.current_reacting.call(void 0, )));
3320
3321
  const do_options = reacting_to === _optionalChain([options, 'optionalAccess', _130 => _130.reactingTo]) ? options : { ...options, reactingTo: reacting_to };
3321
3322
  return this._scoped(async () => {
3322
3323
  const snapshots = await this._es.action(
@@ -3377,7 +3378,7 @@ var Act = (_class7 = class {
3377
3378
  return this._scoped(async () => {
3378
3379
  let first;
3379
3380
  let last;
3380
- const count = await _chunkHKC663W4cjs.store.call(void 0, ).query((e) => {
3381
+ const count = await _chunkP3B7HVFDcjs.store.call(void 0, ).query((e) => {
3381
3382
  const gated = this.registry.query_gate(e.name)(e);
3382
3383
  if (!first) first = gated;
3383
3384
  last = gated;
@@ -3407,7 +3408,7 @@ var Act = (_class7 = class {
3407
3408
  async query_array(query) {
3408
3409
  return this._scoped(async () => {
3409
3410
  const events = [];
3410
- await _chunkHKC663W4cjs.store.call(void 0, ).query((e) => {
3411
+ await _chunkP3B7HVFDcjs.store.call(void 0, ).query((e) => {
3411
3412
  events.push(this.registry.query_gate(e.name)(e));
3412
3413
  }, query);
3413
3414
  return events;
@@ -3427,14 +3428,14 @@ var Act = (_class7 = class {
3427
3428
  */
3428
3429
  async forget(stream) {
3429
3430
  return this._scoped(async () => {
3430
- const s = _chunkHKC663W4cjs.store.call(void 0, );
3431
+ const s = _chunkP3B7HVFDcjs.store.call(void 0, );
3431
3432
  if (!s.forget_pii) {
3432
3433
  throw new Error(
3433
3434
  `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).`
3434
3435
  );
3435
3436
  }
3436
3437
  const eventCount = await s.forget_pii(stream);
3437
- await _chunkHKC663W4cjs.cache.call(void 0, ).invalidate(stream);
3438
+ await _chunkP3B7HVFDcjs.cache.call(void 0, ).invalidate(stream);
3438
3439
  if (eventCount > 0) {
3439
3440
  this.emit("forgotten", { stream, at: /* @__PURE__ */ new Date(), eventCount });
3440
3441
  }
@@ -3468,7 +3469,7 @@ var Act = (_class7 = class {
3468
3469
  * @see {@link correlate} for dynamic stream discovery
3469
3470
  */
3470
3471
  async drain(options = {}) {
3471
- _chunkHKC663W4cjs.resolveDrainConfig.call(void 0, options);
3472
+ _chunkP3B7HVFDcjs.resolveDrainConfig.call(void 0, options);
3472
3473
  if (!this._drain)
3473
3474
  return { fetched: [], leased: [], acked: [], blocked: [] };
3474
3475
  return this._scoped(() => this._drain_all(options));
@@ -3651,7 +3652,7 @@ var Act = (_class7 = class {
3651
3652
  */
3652
3653
  async reset(input) {
3653
3654
  return this._scoped(async () => {
3654
- const count = await _chunkHKC663W4cjs.store.call(void 0, ).reset(input);
3655
+ const count = await _chunkP3B7HVFDcjs.store.call(void 0, ).reset(input);
3655
3656
  for (const handler of this._batch_handlers.values())
3656
3657
  _optionalChain([handler, 'access', _137 => _137[FOLD_RESET], 'optionalCall', _138 => _138()]);
3657
3658
  if (count > 0) {
@@ -3687,7 +3688,7 @@ var Act = (_class7 = class {
3687
3688
  */
3688
3689
  async unblock(input) {
3689
3690
  return this._scoped(async () => {
3690
- const count = await _chunkHKC663W4cjs.store.call(void 0, ).unblock(input);
3691
+ const count = await _chunkP3B7HVFDcjs.store.call(void 0, ).unblock(input);
3691
3692
  if (count > 0) {
3692
3693
  this._wake();
3693
3694
  }
@@ -3736,7 +3737,7 @@ var Act = (_class7 = class {
3736
3737
  return { ...partial, duration_ms: Date.now() - started };
3737
3738
  }
3738
3739
  const target = _nullishCoalesce(sink, () => ( (() => {
3739
- const s = _chunkHKC663W4cjs.store.call(void 0, );
3740
+ const s = _chunkP3B7HVFDcjs.store.call(void 0, );
3740
3741
  if (!s.restore) throw new Error("adapter has no restore capability");
3741
3742
  return s;
3742
3743
  })()));
@@ -3781,7 +3782,7 @@ var Act = (_class7 = class {
3781
3782
  async blocked_streams(options) {
3782
3783
  return this._scoped(async () => {
3783
3784
  const positions = [];
3784
- await _chunkHKC663W4cjs.store.call(void 0, ).query_streams(
3785
+ await _chunkP3B7HVFDcjs.store.call(void 0, ).query_streams(
3785
3786
  (p) => {
3786
3787
  positions.push(p);
3787
3788
  },
@@ -3833,7 +3834,7 @@ var Act = (_class7 = class {
3833
3834
  * @see {@link Store.prioritize} for the underlying primitive
3834
3835
  */
3835
3836
  async prioritize(filter, priority) {
3836
- return this._scoped(() => _chunkHKC663W4cjs.store.call(void 0, ).prioritize(filter, priority));
3837
+ return this._scoped(() => _chunkP3B7HVFDcjs.store.call(void 0, ).prioritize(filter, priority));
3837
3838
  }
3838
3839
  /** Shared by `close()` and reaction-requested closes. */
3839
3840
  async _run_close(targets) {
@@ -3885,10 +3886,8 @@ var Act = (_class7 = class {
3885
3886
  * A local change that frees reaction work (a commit, `reset()`,
3886
3887
  * `unblock()`, `restore()`) schedules this on its own unless the app
3887
3888
  * sets `autoSettle: false`. Call it at startup, to run what was pending
3888
- * before a restart, or with options for the next pass. A pass already
3889
- * scheduled is never put off: calls before it runs join it (a shorter
3890
- * `debounceMs` brings it forward), and a call during a running cycle
3891
- * queues one more pass after it. Runs correlate→drain in a loop until a pass makes no
3889
+ * before a restart, or with options for the next pass; the scheduling
3890
+ * rule is in the event-sourcing docs (§ settle). Runs correlate→drain in a loop until a pass makes no
3892
3891
  * progress — no new subscriptions, no events read, no streams leased —
3893
3892
  * then emits the `"settled"` lifecycle event, so one call fully catches
3894
3893
  * up paginated streams without forcing callers to loop.
@@ -3915,7 +3914,7 @@ var Act = (_class7 = class {
3915
3914
  * @see {@link correlate} for manual correlation
3916
3915
  */
3917
3916
  settle(options) {
3918
- _chunkHKC663W4cjs.resolveSettleConfig.call(void 0, _nullishCoalesce(options, () => ( {})));
3917
+ _chunkP3B7HVFDcjs.resolveSettleConfig.call(void 0, _nullishCoalesce(options, () => ( {})));
3919
3918
  this._schedule(options);
3920
3919
  }
3921
3920
  }, _class7);
@@ -4071,16 +4070,16 @@ function synthesize_autoclose_reactions(registry, states, read_window) {
4071
4070
  }),
4072
4071
  // Never block on autoclose: a transient query/store error should retry,
4073
4072
  // not quarantine the synthetic stream.
4074
- options: { blockOnError: false, maxRetries: _chunkHKC663W4cjs.DEFAULT_MAX_RETRIES },
4073
+ options: { blockOnError: false, maxRetries: _chunkP3B7HVFDcjs.DEFAULT_MAX_RETRIES },
4075
4074
  handler: async (event) => {
4076
4075
  const aggregate = event.stream;
4077
4076
  const window = read_window();
4078
4077
  if (!in_autoclose_window(window, /* @__PURE__ */ new Date()))
4079
- throw new (0, _chunkKB7D46CCcjs.DeferSignal)({ at: next_window_open(window, /* @__PURE__ */ new Date()) });
4080
- const stats = await _chunkHKC663W4cjs.store.call(void 0, ).query_stats([aggregate], {
4078
+ throw new (0, _chunkAVXVMZ4Bcjs.DeferSignal)({ at: next_window_open(window, /* @__PURE__ */ new Date()) });
4079
+ const stats = await _chunkP3B7HVFDcjs.store.call(void 0, ).query_stats([aggregate], {
4081
4080
  count: true,
4082
4081
  tail: keep_days !== void 0 ? true : void 0,
4083
- exclude: [_chunkKB7D46CCcjs.TOMBSTONE_EVENT, _chunkKB7D46CCcjs.SNAP_EVENT]
4082
+ exclude: [_chunkAVXVMZ4Bcjs.TOMBSTONE_EVENT, _chunkAVXVMZ4Bcjs.SNAP_EVENT]
4084
4083
  });
4085
4084
  const entry = stats.get(aggregate);
4086
4085
  if (!entry) return;
@@ -4111,7 +4110,7 @@ function synthesize_autoclose_reactions(registry, states, read_window) {
4111
4110
  dues.push(days_after(entry.tail.created, keep_days));
4112
4111
  const future = dues.map((d) => d.getTime()).filter((t) => t > Date.now());
4113
4112
  if (future.length)
4114
- throw new (0, _chunkKB7D46CCcjs.DeferSignal)({ at: new Date(Math.min(...future)) });
4113
+ throw new (0, _chunkAVXVMZ4Bcjs.DeferSignal)({ at: new Date(Math.min(...future)) });
4115
4114
  }
4116
4115
  };
4117
4116
  const key = `__autoclose_${st.name}`;
@@ -4315,9 +4314,9 @@ var _this_ = ({ stream }) => ({
4315
4314
 
4316
4315
  // src/builders/builder-utils.ts
4317
4316
  function register_lane(config2, lanes) {
4318
- _chunkHKC663W4cjs.resolveLaneConfig.call(void 0, config2);
4319
- if (config2.name === _chunkKB7D46CCcjs.DEFAULT_LANE)
4320
- throw new Error(`Lane "${_chunkKB7D46CCcjs.DEFAULT_LANE}" is reserved`);
4317
+ _chunkP3B7HVFDcjs.resolveLaneConfig.call(void 0, config2);
4318
+ if (config2.name === _chunkAVXVMZ4Bcjs.DEFAULT_LANE)
4319
+ throw new Error(`Lane "${_chunkAVXVMZ4Bcjs.DEFAULT_LANE}" is reserved`);
4321
4320
  const existing = lanes.find((l) => l.name === config2.name);
4322
4321
  if (!existing) return void lanes.push(config2);
4323
4322
  if (existing.leaseMillis !== config2.leaseMillis || existing.streamLimit !== config2.streamLimit || existing.cycleMs !== config2.cycleMs)
@@ -4359,9 +4358,9 @@ function reaction_on(event, events, builder) {
4359
4358
  // Validate the whole bag at the declaration site so a bad
4360
4359
  // `maxRetries`/`backoff`/`blockOnError` throws ZodError at build,
4361
4360
  // not a NaN gate on the first retry.
4362
- options: _chunkHKC663W4cjs.resolveReactionConfig.call(void 0, {
4363
- blockOnError: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _153 => _153.blockOnError]), () => ( _chunkHKC663W4cjs.DEFAULT_BLOCK_ON_ERROR)),
4364
- maxRetries: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _154 => _154.maxRetries]), () => ( _chunkHKC663W4cjs.DEFAULT_MAX_RETRIES)),
4361
+ options: _chunkP3B7HVFDcjs.resolveReactionConfig.call(void 0, {
4362
+ blockOnError: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _153 => _153.blockOnError]), () => ( _chunkP3B7HVFDcjs.DEFAULT_BLOCK_ON_ERROR)),
4363
+ maxRetries: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _154 => _154.maxRetries]), () => ( _chunkP3B7HVFDcjs.DEFAULT_MAX_RETRIES)),
4365
4364
  backoff: _optionalChain([options, 'optionalAccess', _155 => _155.backoff])
4366
4365
  })
4367
4366
  };
@@ -4446,7 +4445,7 @@ function date_reviver_schema(schema) {
4446
4445
 
4447
4446
  // src/builders/event-builder.ts
4448
4447
  function event_tags(schema) {
4449
- const pii = _chunkKB7D46CCcjs.pii_schemas.call(void 0, schema);
4448
+ const pii = _chunkAVXVMZ4Bcjs.pii_schemas.call(void 0, schema);
4450
4449
  const pii_dates = {};
4451
4450
  for (const [key, field] of Object.entries(pii)) {
4452
4451
  const dates = date_reviver_schema(field);
@@ -4483,7 +4482,7 @@ function make_event_reader(tags, disclosure, predicate = null) {
4483
4482
  });
4484
4483
  }
4485
4484
  function build_events(registry, states, lanes, owners) {
4486
- const declared = /* @__PURE__ */ new Set([_chunkKB7D46CCcjs.DEFAULT_LANE, ...lanes.map((l) => l.name)]);
4485
+ const declared = /* @__PURE__ */ new Set([_chunkAVXVMZ4Bcjs.DEFAULT_LANE, ...lanes.map((l) => l.name)]);
4487
4486
  const lane_errors = [];
4488
4487
  const tags = /* @__PURE__ */ new Map();
4489
4488
  const sensitive2 = /* @__PURE__ */ new Map();
@@ -4547,7 +4546,7 @@ function build_events(registry, states, lanes, owners) {
4547
4546
  if (reader) readers.set(event_name, reader);
4548
4547
  }
4549
4548
  const snap2 = make_event_reader(event_tags(state2.state), "redact", null);
4550
- if (snap2) readers.set(_chunkKB7D46CCcjs.SNAP_EVENT, snap2);
4549
+ if (snap2) readers.set(_chunkAVXVMZ4Bcjs.SNAP_EVENT, snap2);
4551
4550
  if (readers.size === 0) continue;
4552
4551
  state2.view = (event, actor) => (_nullishCoalesce(readers.get(event.name), () => ( IDENTITY_GATE)))(event, actor);
4553
4552
  }
@@ -4663,7 +4662,7 @@ function act() {
4663
4662
  const list = deprecation_summary.map(
4664
4663
  (d) => `"${d.deprecated}" (current: "${d.current}", state: "${d.state_name}")`
4665
4664
  ).join(", ");
4666
- _chunkHKC663W4cjs.log.call(void 0, ).info(
4665
+ _chunkP3B7HVFDcjs.log.call(void 0, ).info(
4667
4666
  `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.`
4668
4667
  );
4669
4668
  }
@@ -4705,7 +4704,7 @@ function act() {
4705
4704
  return reaction_on(event, registry.events, builder);
4706
4705
  },
4707
4706
  build: (options) => {
4708
- _chunkHKC663W4cjs.resolveActConfig.call(void 0, options);
4707
+ _chunkP3B7HVFDcjs.resolveActConfig.call(void 0, options);
4709
4708
  const patch_fn = _optionalChain([options, 'optionalAccess', _167 => _167.validateFoldedState]) === true ? validating_patch : bare_patch;
4710
4709
  if (!_built) {
4711
4710
  for (const proj of pending_projections) add_projection(proj);
@@ -4757,7 +4756,7 @@ function act() {
4757
4756
  synthesize_autoclose_reactions(
4758
4757
  registry,
4759
4758
  states,
4760
- _chunkHKC663W4cjs.current_autoclose_window
4759
+ _chunkP3B7HVFDcjs.current_autoclose_window
4761
4760
  );
4762
4761
  Object.freeze(registry.actions);
4763
4762
  Object.freeze(registry.events);
@@ -4806,8 +4805,8 @@ function _projection(target) {
4806
4805
  handler,
4807
4806
  resolver: _nullishCoalesce(default_resolver, () => ( _this_)),
4808
4807
  options: {
4809
- blockOnError: _chunkHKC663W4cjs.DEFAULT_BLOCK_ON_ERROR,
4810
- maxRetries: _chunkHKC663W4cjs.DEFAULT_MAX_RETRIES
4808
+ blockOnError: _chunkP3B7HVFDcjs.DEFAULT_BLOCK_ON_ERROR,
4809
+ maxRetries: _chunkP3B7HVFDcjs.DEFAULT_MAX_RETRIES
4811
4810
  }
4812
4811
  }),
4813
4812
  widened
@@ -4848,7 +4847,7 @@ function _projection(target) {
4848
4847
  throw new Error(
4849
4848
  `Projection "${target}" .of() partials must share one state name \u2014 got "${name}" and "${partial.name}"`
4850
4849
  );
4851
- const config2 = _chunkHKC663W4cjs.resolveFoldConfig.call(void 0, options);
4850
+ const config2 = _chunkP3B7HVFDcjs.resolveFoldConfig.call(void 0, options);
4852
4851
  const fold_events = {};
4853
4852
  for (const partial of partials)
4854
4853
  for (const [event_name, schema] of Object.entries(partial.events)) {
@@ -4866,8 +4865,8 @@ function _projection(target) {
4866
4865
  handler: noop,
4867
4866
  resolver: { target },
4868
4867
  options: {
4869
- blockOnError: _chunkHKC663W4cjs.DEFAULT_BLOCK_ON_ERROR,
4870
- maxRetries: _chunkHKC663W4cjs.DEFAULT_MAX_RETRIES
4868
+ blockOnError: _chunkP3B7HVFDcjs.DEFAULT_BLOCK_ON_ERROR,
4869
+ maxRetries: _chunkP3B7HVFDcjs.DEFAULT_MAX_RETRIES
4871
4870
  }
4872
4871
  }
4873
4872
  ]
@@ -4983,7 +4982,7 @@ function action_builder(state2) {
4983
4982
  throw new Error(`Duplicate action "${action2}"`);
4984
4983
  internal.actions[action2] = schema;
4985
4984
  if (options) {
4986
- _chunkHKC663W4cjs.resolveActionConfig.call(void 0, options);
4985
+ _chunkP3B7HVFDcjs.resolveActionConfig.call(void 0, options);
4987
4986
  internal.options ??= {};
4988
4987
  internal.options[action2] = options;
4989
4988
  }
@@ -5272,5 +5271,5 @@ function write_line(writer, line) {
5272
5271
 
5273
5272
 
5274
5273
 
5275
- exports.Act = Act; exports.ActorSchema = _chunkKB7D46CCcjs.ActorSchema; exports.CausationEventSchema = _chunkKB7D46CCcjs.CausationEventSchema; exports.CommittedMetaSchema = _chunkKB7D46CCcjs.CommittedMetaSchema; exports.ConcurrencyError = _chunkKB7D46CCcjs.ConcurrencyError; exports.ConsoleLogger = _chunkHKC663W4cjs.ConsoleLogger; exports.CsvFile = CsvFile; exports.DEFAULT_LANE = _chunkKB7D46CCcjs.DEFAULT_LANE; exports.DEFAULT_MAX_SUBSCRIBED_STREAMS = _chunkKB7D46CCcjs.DEFAULT_MAX_SUBSCRIBED_STREAMS; exports.DEFAULT_SETTLE_DEBOUNCE_MS = _chunkKB7D46CCcjs.DEFAULT_SETTLE_DEBOUNCE_MS; exports.DeferSignal = _chunkKB7D46CCcjs.DeferSignal; exports.Environments = _chunkKB7D46CCcjs.Environments; exports.Errors = _chunkKB7D46CCcjs.Errors; exports.EventMetaSchema = _chunkKB7D46CCcjs.EventMetaSchema; exports.ExitCodes = _chunkKB7D46CCcjs.ExitCodes; exports.InMemoryCache = _chunkHKC663W4cjs.InMemoryCache; exports.InMemoryStore = _chunkHKC663W4cjs.InMemoryStore; exports.InvariantError = _chunkKB7D46CCcjs.InvariantError; exports.LogLevels = _chunkKB7D46CCcjs.LogLevels; exports.NonRetryableError = _chunkKB7D46CCcjs.NonRetryableError; exports.PackageSchema = _chunkHKC663W4cjs.PackageSchema; exports.QuerySchema = _chunkKB7D46CCcjs.QuerySchema; exports.REDACTED = _chunkKB7D46CCcjs.REDACTED; exports.SHREDDED = _chunkKB7D46CCcjs.SHREDDED; exports.SNAP_EVENT = _chunkKB7D46CCcjs.SNAP_EVENT; exports.StoreError = _chunkKB7D46CCcjs.StoreError; exports.StreamClosedError = _chunkKB7D46CCcjs.StreamClosedError; exports.TOMBSTONE_EVENT = _chunkKB7D46CCcjs.TOMBSTONE_EVENT; exports.TargetSchema = _chunkKB7D46CCcjs.TargetSchema; exports.ValidationError = _chunkKB7D46CCcjs.ValidationError; exports.ZodEmpty = _chunkKB7D46CCcjs.ZodEmpty; exports.act = act; exports.cache = _chunkHKC663W4cjs.cache; exports.config = _chunkHKC663W4cjs.config; exports.dateReviver = _chunkHKC663W4cjs.dateReviver; exports.default_scope = _chunkHKC663W4cjs.default_scope; exports.dispose = _chunkHKC663W4cjs.dispose; exports.disposeAndExit = _chunkHKC663W4cjs.disposeAndExit; exports.extend = _chunkHKC663W4cjs.extend; exports.is_literal_source = _chunkHKC663W4cjs.is_literal_source; exports.log = _chunkHKC663W4cjs.log; exports.pii_fields = _chunkKB7D46CCcjs.pii_fields; exports.port = _chunkHKC663W4cjs.port; exports.projection = projection; exports.resolveAutocloseConfig = _chunkHKC663W4cjs.resolveAutocloseConfig2; exports.sensitive = _chunkKB7D46CCcjs.sensitive; exports.sleep = _chunkHKC663W4cjs.sleep; exports.slice = slice; exports.state = state; exports.store = _chunkHKC663W4cjs.store; exports.validate = _chunkHKC663W4cjs.validate;
5274
+ exports.Act = Act; exports.ActorSchema = _chunkAVXVMZ4Bcjs.ActorSchema; exports.CausationEventSchema = _chunkAVXVMZ4Bcjs.CausationEventSchema; exports.CommittedMetaSchema = _chunkAVXVMZ4Bcjs.CommittedMetaSchema; exports.ConcurrencyError = _chunkAVXVMZ4Bcjs.ConcurrencyError; exports.ConsoleLogger = _chunkP3B7HVFDcjs.ConsoleLogger; exports.CsvFile = CsvFile; exports.DEFAULT_LANE = _chunkAVXVMZ4Bcjs.DEFAULT_LANE; exports.DEFAULT_MAX_SUBSCRIBED_STREAMS = _chunkAVXVMZ4Bcjs.DEFAULT_MAX_SUBSCRIBED_STREAMS; exports.DEFAULT_SETTLE_DEBOUNCE_MS = _chunkAVXVMZ4Bcjs.DEFAULT_SETTLE_DEBOUNCE_MS; exports.DeferSignal = _chunkAVXVMZ4Bcjs.DeferSignal; exports.Environments = _chunkAVXVMZ4Bcjs.Environments; exports.Errors = _chunkAVXVMZ4Bcjs.Errors; exports.EventMetaSchema = _chunkAVXVMZ4Bcjs.EventMetaSchema; exports.ExitCodes = _chunkAVXVMZ4Bcjs.ExitCodes; exports.InMemoryCache = _chunkP3B7HVFDcjs.InMemoryCache; exports.InMemoryStore = _chunkP3B7HVFDcjs.InMemoryStore; exports.InvariantError = _chunkAVXVMZ4Bcjs.InvariantError; exports.LogLevels = _chunkAVXVMZ4Bcjs.LogLevels; exports.NonRetryableError = _chunkAVXVMZ4Bcjs.NonRetryableError; exports.PackageSchema = _chunkP3B7HVFDcjs.PackageSchema; exports.QuerySchema = _chunkAVXVMZ4Bcjs.QuerySchema; exports.REDACTED = _chunkAVXVMZ4Bcjs.REDACTED; exports.SHREDDED = _chunkAVXVMZ4Bcjs.SHREDDED; exports.SNAP_EVENT = _chunkAVXVMZ4Bcjs.SNAP_EVENT; exports.StoreError = _chunkAVXVMZ4Bcjs.StoreError; exports.StreamClosedError = _chunkAVXVMZ4Bcjs.StreamClosedError; exports.TOMBSTONE_EVENT = _chunkAVXVMZ4Bcjs.TOMBSTONE_EVENT; exports.TargetSchema = _chunkAVXVMZ4Bcjs.TargetSchema; exports.ValidationError = _chunkAVXVMZ4Bcjs.ValidationError; exports.ZodEmpty = _chunkAVXVMZ4Bcjs.ZodEmpty; exports.act = act; exports.cache = _chunkP3B7HVFDcjs.cache; exports.config = _chunkP3B7HVFDcjs.config; exports.dateReviver = _chunkP3B7HVFDcjs.dateReviver; exports.default_scope = _chunkP3B7HVFDcjs.default_scope; exports.dispose = _chunkP3B7HVFDcjs.dispose; exports.disposeAndExit = _chunkP3B7HVFDcjs.disposeAndExit; exports.extend = _chunkP3B7HVFDcjs.extend; exports.is_literal_source = _chunkP3B7HVFDcjs.is_literal_source; exports.log = _chunkP3B7HVFDcjs.log; exports.pii_fields = _chunkAVXVMZ4Bcjs.pii_fields; exports.port = _chunkP3B7HVFDcjs.port; exports.projection = projection; exports.resolveAutocloseConfig = _chunkP3B7HVFDcjs.resolveAutocloseConfig2; exports.sensitive = _chunkAVXVMZ4Bcjs.sensitive; exports.sleep = _chunkP3B7HVFDcjs.sleep; exports.slice = slice; exports.state = state; exports.store = _chunkP3B7HVFDcjs.store; exports.validate = _chunkP3B7HVFDcjs.validate;
5276
5275
  //# sourceMappingURL=index.cjs.map