@rotorsoft/act 1.32.13 → 1.32.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/@types/act.d.ts +98 -152
  3. package/dist/@types/act.d.ts.map +1 -1
  4. package/dist/@types/adapters/in-memory-store.d.ts +3 -3
  5. package/dist/@types/adapters/in-memory-store.d.ts.map +1 -1
  6. package/dist/@types/builders/act-builder.d.ts +3 -3
  7. package/dist/@types/builders/act-builder.d.ts.map +1 -1
  8. package/dist/@types/builders/build-classify.d.ts +1 -1
  9. package/dist/@types/builders/builder-base.d.ts +3 -3
  10. package/dist/@types/builders/builder-utils.d.ts +1 -1
  11. package/dist/@types/builders/event-builder.d.ts +2 -12
  12. package/dist/@types/builders/event-builder.d.ts.map +1 -1
  13. package/dist/@types/builders/merge.d.ts +1 -1
  14. package/dist/@types/builders/reaction-builder.d.ts +1 -1
  15. package/dist/@types/builders/slice-builder.d.ts +2 -2
  16. package/dist/@types/builders/state-builder.d.ts +3 -4
  17. package/dist/@types/builders/state-builder.d.ts.map +1 -1
  18. package/dist/@types/csv.d.ts +1 -1
  19. package/dist/@types/disposers.d.ts.map +1 -1
  20. package/dist/@types/internal/audit.d.ts +12 -42
  21. package/dist/@types/internal/audit.d.ts.map +1 -1
  22. package/dist/@types/internal/autoclose-policy.d.ts +3 -3
  23. package/dist/@types/internal/autoclose-reaction.d.ts +2 -2
  24. package/dist/@types/internal/autoclose-window.d.ts +1 -1
  25. package/dist/@types/internal/close-cycle.d.ts +10 -39
  26. package/dist/@types/internal/close-cycle.d.ts.map +1 -1
  27. package/dist/@types/internal/close-signal.d.ts +3 -3
  28. package/dist/@types/internal/config.d.ts +3 -3
  29. package/dist/@types/internal/config.d.ts.map +1 -1
  30. package/dist/@types/internal/correlate-cycle.d.ts +39 -86
  31. package/dist/@types/internal/correlate-cycle.d.ts.map +1 -1
  32. package/dist/@types/internal/correlator.d.ts +1 -1
  33. package/dist/@types/internal/date-reviver.d.ts +1 -1
  34. package/dist/@types/internal/defer-config.d.ts +2 -2
  35. package/dist/@types/internal/defer-signal.d.ts +2 -2
  36. package/dist/@types/internal/defer-timer.d.ts +3 -3
  37. package/dist/@types/internal/drain-cycle.d.ts +35 -82
  38. package/dist/@types/internal/drain-cycle.d.ts.map +1 -1
  39. package/dist/@types/internal/event-sourcing.d.ts +8 -19
  40. package/dist/@types/internal/event-sourcing.d.ts.map +1 -1
  41. package/dist/@types/internal/event-versions.d.ts +1 -1
  42. package/dist/@types/internal/index.d.ts +5 -6
  43. package/dist/@types/internal/index.d.ts.map +1 -1
  44. package/dist/@types/internal/projection-fold.d.ts +2 -2
  45. package/dist/@types/internal/report-once.d.ts +3 -3
  46. package/dist/@types/internal/sensitive.d.ts +2 -28
  47. package/dist/@types/internal/sensitive.d.ts.map +1 -1
  48. package/dist/@types/internal/settle.d.ts +6 -19
  49. package/dist/@types/internal/settle.d.ts.map +1 -1
  50. package/dist/@types/internal/walk-streams.d.ts +0 -2
  51. package/dist/@types/internal/walk-streams.d.ts.map +1 -1
  52. package/dist/@types/ports.d.ts +3 -3
  53. package/dist/@types/scoped.d.ts +6 -16
  54. package/dist/@types/scoped.d.ts.map +1 -1
  55. package/dist/@types/types/action.d.ts +19 -19
  56. package/dist/@types/types/audit.d.ts +1 -1
  57. package/dist/@types/types/ports.d.ts +22 -26
  58. package/dist/@types/types/ports.d.ts.map +1 -1
  59. package/dist/@types/types/reaction.d.ts +8 -8
  60. package/dist/@types/types/registry.d.ts +1 -1
  61. package/dist/@types/types/schemas.d.ts +2 -2
  62. package/dist/@types/utils.d.ts +1 -1
  63. package/dist/{chunk-BI3UNNVA.js → chunk-JRTZGWVS.js} +1 -1
  64. package/dist/chunk-JRTZGWVS.js.map +1 -0
  65. package/dist/{chunk-FLAGQMWE.js → chunk-PZP5ZEZ4.js} +9 -9
  66. package/dist/chunk-PZP5ZEZ4.js.map +1 -0
  67. package/dist/index.cjs +137 -359
  68. package/dist/index.cjs.map +1 -1
  69. package/dist/index.js +132 -354
  70. package/dist/index.js.map +1 -1
  71. package/dist/test/index.cjs +7 -7
  72. package/dist/test/index.cjs.map +1 -1
  73. package/dist/test/index.js +2 -2
  74. package/dist/types/index.cjs.map +1 -1
  75. package/dist/types/index.js +1 -1
  76. package/package.json +1 -1
  77. package/dist/chunk-BI3UNNVA.js.map +0 -1
  78. package/dist/chunk-FLAGQMWE.js.map +0 -1
@@ -472,12 +472,12 @@ var InMemoryStream = class {
472
472
  _leased_until = void 0;
473
473
  _priority = 0;
474
474
  _lane = DEFAULT_LANE;
475
- // Persisted next-visit time (#1090). When set and still in the future, the
475
+ // Persisted next-visit time. When set and still in the future, the
476
476
  // stream is held out of `claim` entirely — so a deferred reaction is not
477
477
  // re-claimed (and `retry` is never bumped) until its due-time passes. Unlike
478
478
  // in-process backoff, this is durable store state shared across workers.
479
479
  _deferred_at = void 0;
480
- // Work mark (#1485): highest event id observed to resolve to this target.
480
+ // Work mark: highest event id observed to resolve to this target.
481
481
  // `undefined` means UNKNOWN — the row predates the mark, so `claim` falls
482
482
  // back to the legacy has-work probe rather than treating it as "no work".
483
483
  _correlated_at = void 0;
@@ -523,7 +523,7 @@ var InMemoryStream = class {
523
523
  this._priority = priority;
524
524
  }
525
525
  get is_available() {
526
- return !this._blocked && (!this._leased_until || this._leased_until <= /* @__PURE__ */ new Date()) && // A stream deferred to a future time is not claimable until due (#1090).
526
+ return !this._blocked && (!this._leased_until || this._leased_until <= /* @__PURE__ */ new Date()) && // A stream deferred to a future time is not claimable until due.
527
527
  (!this._deferred_at || this._deferred_at <= Date.now());
528
528
  }
529
529
  /**
@@ -553,7 +553,7 @@ var InMemoryStream = class {
553
553
  get leased_until() {
554
554
  return this._leased_until;
555
555
  }
556
- /** Persisted next-visit time (#1090/#1221), or undefined when no active defer. */
556
+ /** Persisted next-visit time, or undefined when no active defer. */
557
557
  get deferred_at() {
558
558
  return this._deferred_at;
559
559
  }
@@ -668,16 +668,16 @@ var InMemoryStore = class {
668
668
  _next_id = 0;
669
669
  // stored stream positions and other metadata
670
670
  _streams = /* @__PURE__ */ new Map();
671
- /** Correlate checkpoint (#1484): how far the log has been READ. */
671
+ /** Correlate checkpoint: how far the log has been READ. */
672
672
  _correlated_at = -1;
673
673
  /**
674
- * Per-correlator checkpoint and lease (#1532), keyed by correlator.
674
+ * Per-correlator checkpoint and lease, keyed by correlator.
675
675
  *
676
676
  * Keyed rather than singular because correlators that look for different
677
677
  * things read the log for different reasons: sharing one position lets a
678
678
  * partial-behaviour worker inherit another's, and sharing one lease lets
679
679
  * one starve the other. Callers that supply no correlator use
680
- * `_correlated_at` instead, which is the pre-#1532 behaviour.
680
+ * `_correlated_at` instead, the shared checkpoint.
681
681
  */
682
682
  _correlators = /* @__PURE__ */ new Map();
683
683
  // last committed version per stream — O(1) replacement for filter-on-commit