@demlik/tea 0.1.2 → 0.2.0

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 (124) hide show
  1. package/dist/agent/index.d.ts +2 -2
  2. package/dist/agent/index.js +8 -8
  3. package/dist/authed-call/index.d.ts +2 -2
  4. package/dist/authed-call/index.js +5 -5
  5. package/dist/await-terminal/index.d.ts +1 -1
  6. package/dist/await-terminal/index.js +2 -2
  7. package/dist/batch-window/index.d.ts +2 -2
  8. package/dist/batch-window/index.js +3 -3
  9. package/dist/cache/index.d.ts +2 -2
  10. package/dist/{chunk-EHIX7NYZ.js → chunk-5KVHID6A.js} +4 -4
  11. package/dist/{chunk-EHIX7NYZ.js.map → chunk-5KVHID6A.js.map} +1 -1
  12. package/dist/{chunk-27N2SPTN.js → chunk-6GIGQT6C.js} +4 -4
  13. package/dist/{chunk-27N2SPTN.js.map → chunk-6GIGQT6C.js.map} +1 -1
  14. package/dist/{chunk-3XJWC7VW.js → chunk-6OUDPSSG.js} +3 -3
  15. package/dist/{chunk-3XJWC7VW.js.map → chunk-6OUDPSSG.js.map} +1 -1
  16. package/dist/{chunk-MMH7CW5K.js → chunk-6VDCTR7N.js} +24 -27
  17. package/dist/chunk-6VDCTR7N.js.map +1 -0
  18. package/dist/{chunk-QLA76GIT.js → chunk-DYRKDCJI.js} +30 -5
  19. package/dist/chunk-DYRKDCJI.js.map +1 -0
  20. package/dist/{chunk-LP7VQBRG.js → chunk-EGWTT5XJ.js} +3 -3
  21. package/dist/{chunk-LP7VQBRG.js.map → chunk-EGWTT5XJ.js.map} +1 -1
  22. package/dist/{chunk-DILMKOZ7.js → chunk-EMJTPHI7.js} +4 -4
  23. package/dist/{chunk-DILMKOZ7.js.map → chunk-EMJTPHI7.js.map} +1 -1
  24. package/dist/{chunk-5DEQ5I3U.js → chunk-FOGL3TC7.js} +3 -3
  25. package/dist/{chunk-5DEQ5I3U.js.map → chunk-FOGL3TC7.js.map} +1 -1
  26. package/dist/{chunk-SQTCS44W.js → chunk-G2U7DJHL.js} +3 -3
  27. package/dist/{chunk-SQTCS44W.js.map → chunk-G2U7DJHL.js.map} +1 -1
  28. package/dist/{chunk-ON24RKSE.js → chunk-IK4S5DJN.js} +3 -3
  29. package/dist/{chunk-ON24RKSE.js.map → chunk-IK4S5DJN.js.map} +1 -1
  30. package/dist/{chunk-PS23H6KQ.js → chunk-M6UZT7HS.js} +3 -3
  31. package/dist/{chunk-PS23H6KQ.js.map → chunk-M6UZT7HS.js.map} +1 -1
  32. package/dist/{chunk-K7Q23EQ4.js → chunk-SKAMZKTE.js} +3 -3
  33. package/dist/{chunk-K7Q23EQ4.js.map → chunk-SKAMZKTE.js.map} +1 -1
  34. package/dist/{chunk-S3FQN4SL.js → chunk-VFGKTGGC.js} +7 -7
  35. package/dist/{chunk-S3FQN4SL.js.map → chunk-VFGKTGGC.js.map} +1 -1
  36. package/dist/{chunk-7W4LMPUW.js → chunk-ZDRN3YCE.js} +4 -4
  37. package/dist/{chunk-7W4LMPUW.js.map → chunk-ZDRN3YCE.js.map} +1 -1
  38. package/dist/{core-BoB6t7dB.d.ts → core-BmlJOvxM.d.ts} +10 -1
  39. package/dist/deadline/index.d.ts +2 -2
  40. package/dist/deadline/index.js +3 -3
  41. package/dist/do/index.d.ts +451 -335
  42. package/dist/do/index.js +172 -144
  43. package/dist/do/index.js.map +1 -1
  44. package/dist/{durable-effects-CO9Uh971.d.ts → durable-effects-9LxFpmh3.d.ts} +1 -1
  45. package/dist/extension/index.d.ts +1 -1
  46. package/dist/extension/index.js +3 -3
  47. package/dist/extension/react.js +3 -3
  48. package/dist/extension/subs/index.d.ts +2 -2
  49. package/dist/fan-out/index.d.ts +1 -1
  50. package/dist/idempotent-intake/index.d.ts +1 -1
  51. package/dist/index.d.ts +20 -3
  52. package/dist/index.js +2 -2
  53. package/dist/llm-call/index.d.ts +2 -2
  54. package/dist/llm-call/index.js +5 -5
  55. package/dist/machine-viz/index.d.ts +1 -1
  56. package/dist/machine-viz/index.js +2 -2
  57. package/dist/mem/index.d.ts +1 -1
  58. package/dist/monitored-run/index.d.ts +2 -2
  59. package/dist/monitored-run/index.js +5 -5
  60. package/dist/node/index.d.ts +1 -1
  61. package/dist/paginated-walk/index.d.ts +2 -2
  62. package/dist/paginated-walk/index.js +5 -5
  63. package/dist/parity/index.d.ts +1 -1
  64. package/dist/parity/index.js +3 -3
  65. package/dist/pbt/arbitraries/index.d.ts +1 -1
  66. package/dist/pbt/index.d.ts +1 -1
  67. package/dist/pbt/index.js +3 -3
  68. package/dist/pbt/runners/index.d.ts +1 -1
  69. package/dist/pbt/runners/index.js +3 -3
  70. package/dist/poller/index.d.ts +2 -2
  71. package/dist/poller/index.js +3 -3
  72. package/dist/prediction/index.d.ts +1 -1
  73. package/dist/prediction/index.js +2 -2
  74. package/dist/pure/index.d.ts +1 -1
  75. package/dist/pure/index.js +2 -2
  76. package/dist/react/index.d.ts +1 -1
  77. package/dist/react/index.js +2 -2
  78. package/dist/reconciler/index.d.ts +2 -2
  79. package/dist/reconciler/index.js +5 -5
  80. package/dist/recorder/index.d.ts +1 -1
  81. package/dist/resilient-call/index.d.ts +2 -2
  82. package/dist/resilient-call/index.js +4 -4
  83. package/dist/saga/index.d.ts +1 -1
  84. package/dist/snapshot/index.d.ts +1 -1
  85. package/dist/snapshot/index.js +3 -3
  86. package/dist/subs/index.d.ts +2 -2
  87. package/dist/testing/index.d.ts +1 -1
  88. package/dist/testing/index.js +2 -2
  89. package/dist/throttled-input/index.d.ts +2 -2
  90. package/dist/throttled-input/index.js +4 -4
  91. package/dist/token-refresh/index.d.ts +1 -1
  92. package/dist/token-refresh/index.js +3 -3
  93. package/dist/trace-replay/index.d.ts +1 -1
  94. package/dist/trace-replay/index.js +3 -3
  95. package/dist/{types-B-8bcAp8.d.ts → types-BoUWgwSm.d.ts} +1 -1
  96. package/dist/with-deadline/index.d.ts +1 -1
  97. package/dist/with-deadline/index.js +2 -2
  98. package/dist/with-resilience/index.d.ts +2 -2
  99. package/dist/with-resilience/index.js +4 -4
  100. package/dist/with-telemetry/index.d.ts +1 -1
  101. package/dist/with-telemetry/index.js +2 -2
  102. package/dist/work-queue/adapter.d.ts +1 -1
  103. package/dist/work-queue/index.d.ts +1 -1
  104. package/dist/work-queue/ops.d.ts +1 -1
  105. package/dist/workflow/index.d.ts +3 -3
  106. package/package.json +1 -19
  107. package/dist/chunk-6RGBKODV.js +0 -268
  108. package/dist/chunk-6RGBKODV.js.map +0 -1
  109. package/dist/chunk-MMH7CW5K.js.map +0 -1
  110. package/dist/chunk-QLA76GIT.js.map +0 -1
  111. package/dist/chunk-VLGARN6H.js +0 -202
  112. package/dist/chunk-VLGARN6H.js.map +0 -1
  113. package/dist/raft/demo.d.ts +0 -105
  114. package/dist/raft/demo.js +0 -172
  115. package/dist/raft/demo.js.map +0 -1
  116. package/dist/raft/index.d.ts +0 -548
  117. package/dist/raft/index.js +0 -7
  118. package/dist/raft/index.js.map +0 -1
  119. package/dist/raft/sim.d.ts +0 -222
  120. package/dist/raft/sim.js +0 -8
  121. package/dist/raft/sim.js.map +0 -1
  122. package/dist/raft/timeline.d.ts +0 -46
  123. package/dist/raft/timeline.js +0 -62
  124. package/dist/raft/timeline.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { C as Cmd } from './core-BoB6t7dB.js';
1
+ import { C as Cmd } from './core-BmlJOvxM.js';
2
2
 
3
3
  /**
4
4
  * @demlik/tea/do — the durable pending-effects ledger (substrate primitive #1).
@@ -1,5 +1,5 @@
1
1
  import { Runtime, Store } from '../index.js';
2
- import '../core-BoB6t7dB.js';
2
+ import '../core-BmlJOvxM.js';
3
3
 
4
4
  /**
5
5
  * Runtime bridge — expose a `@demlik/tea` runtime running in one chrome context
@@ -1,6 +1,6 @@
1
- export { bridgeClient, bridgeRuntime, bridgeTabClient, passThroughMsg } from '../chunk-LP7VQBRG.js';
2
- import '../chunk-MMH7CW5K.js';
3
- import '../chunk-QLA76GIT.js';
1
+ export { bridgeClient, bridgeRuntime, bridgeTabClient, passThroughMsg } from '../chunk-EGWTT5XJ.js';
2
+ import '../chunk-6VDCTR7N.js';
3
+ import '../chunk-DYRKDCJI.js';
4
4
 
5
5
  // src/extension/index.ts
6
6
  var MALFORMED = "chromeStorageStore: stored value is not a string";
@@ -1,6 +1,6 @@
1
- import { bridgeClient, passThroughMsg } from '../chunk-LP7VQBRG.js';
2
- import '../chunk-MMH7CW5K.js';
3
- import '../chunk-QLA76GIT.js';
1
+ import { bridgeClient, passThroughMsg } from '../chunk-EGWTT5XJ.js';
2
+ import '../chunk-6VDCTR7N.js';
3
+ import '../chunk-DYRKDCJI.js';
4
4
  import { useRef, useSyncExternalStore, useEffect, useCallback, createContext, useMemo, useContext } from 'react';
5
5
  import { jsx } from 'react/jsx-runtime';
6
6
 
@@ -1,5 +1,5 @@
1
- import { S as Sub } from '../../core-BoB6t7dB.js';
2
- import { S as SubscribeHandler } from '../../types-B-8bcAp8.js';
1
+ import { S as Sub } from '../../core-BmlJOvxM.js';
2
+ import { S as SubscribeHandler } from '../../types-BoUWgwSm.js';
3
3
 
4
4
  type AlarmSubData = {
5
5
  alarmName: string;
@@ -1,4 +1,4 @@
1
- import { C as Cmd, P as Port } from '../core-BoB6t7dB.js';
1
+ import { C as Cmd, P as Port } from '../core-BmlJOvxM.js';
2
2
  import { QueueItem } from '../work-queue/index.js';
3
3
  import '../index.js';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { IdempotencyStore } from '../idempotency/index.js';
2
- import { C as Cmd } from '../core-BoB6t7dB.js';
2
+ import { C as Cmd } from '../core-BmlJOvxM.js';
3
3
  import { QueueItem } from '../work-queue/index.js';
4
4
  import '../index.js';
5
5
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as Cmd, P as Port, S as Sub, M as Machine, T as Transitions, R as Reducer } from './core-BoB6t7dB.js';
2
- export { b as ContextFree, I as Interpret, N as NoCtx, c as PortEmitter, a as SubId, d as Subscribe, e as SyncReturn, U as UpdateForm, f as applyCell, g as detectUpdateForm, h as foldMsgs, i as formOf, m as msgKeysOf, s as subId } from './core-BoB6t7dB.js';
1
+ import { C as Cmd, P as Port, S as Sub, M as Machine, T as Transitions, R as Reducer } from './core-BmlJOvxM.js';
2
+ export { b as ContextFree, I as Interpret, j as NoCellError, N as NoCtx, c as PortEmitter, a as SubId, d as Subscribe, e as SyncReturn, U as UpdateForm, f as applyCell, g as detectUpdateForm, h as foldMsgs, i as formOf, m as msgKeysOf, s as subId } from './core-BmlJOvxM.js';
3
3
 
4
4
  /**
5
5
  * @demlik/tea — TEA-faithful state machine substrate.
@@ -68,8 +68,25 @@ declare function __resetPortRegistry(): void;
68
68
  * throw is catchable in the dispatch loop; the configured `Supervision`
69
69
  * strategy decides what the runtime does next (`stop` / `escalate` /
70
70
  * `restart`), but the failure is ALWAYS surfaced here as data first.
71
+ *
72
+ * The fanout phases (#277). Every fanout is throw-isolated so one bad
73
+ * consumer never strands its siblings — and the isolated throw routes here
74
+ * rather than to a bare `console.error`, so a sink wired to e.g. Sentry sees
75
+ * every "no caller to reject at" failure:
76
+ *
77
+ * - `"listener"` — a `runtime.subscribe(...)` listener threw during the
78
+ * post-transition fanout.
79
+ * - `"observer"` — a `runtime.observe(...)` observer threw during the
80
+ * post-transition fanout.
81
+ * - `"event"` — the semantic-event path threw: either the `events` projector
82
+ * itself, or an `on(type, ...)` handler.
83
+ * - `"boot"` — an `onBoot` handler threw (at the boot fanout, or on the
84
+ * immediate fire of a late post-boot registration).
85
+ * - `"port-emit"` — a `subscribePort` listener threw during a port emission.
86
+ * - `"sub-cleanup"` — a subscription's cleanup threw (on reconcile-removal,
87
+ * or during `stop()` teardown).
71
88
  */
72
- type RuntimeErrorPhase = "follow-up" | "stop-save" | "reduce";
89
+ type RuntimeErrorPhase = "follow-up" | "stop-save" | "reduce" | "listener" | "observer" | "event" | "boot" | "port-emit" | "sub-cleanup";
73
90
  /** Context handed to an `OnError` sink alongside the error itself. */
74
91
  interface RuntimeErrorContext {
75
92
  readonly phase: RuntimeErrorPhase;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { PortNameCollisionError, QuiescenceTimeoutError, __resetPortRegistry, absurd, asReducer, defineMachine, definePort, historyTracker, noop, replay, run, tryInterpret } from './chunk-MMH7CW5K.js';
2
- export { Cmd, applyCell, detectUpdateForm, foldMsgs, formOf, msgKeysOf, subId } from './chunk-QLA76GIT.js';
1
+ export { PortNameCollisionError, QuiescenceTimeoutError, __resetPortRegistry, absurd, asReducer, defineMachine, definePort, historyTracker, noop, replay, run, tryInterpret } from './chunk-6VDCTR7N.js';
2
+ export { Cmd, NoCellError, applyCell, detectUpdateForm, foldMsgs, formOf, msgKeysOf, subId } from './chunk-DYRKDCJI.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,10 +1,10 @@
1
- import { C as Cmd } from '../core-BoB6t7dB.js';
1
+ import { C as Cmd } from '../core-BmlJOvxM.js';
2
2
  import { SucceedMsg, FailMsg, RunCmd, ResilientState } from '../resilient-call/index.js';
3
3
  import { RetryPolicy } from '../retry-backoff/index.js';
4
4
  import { DeadlineExceeded, DeadlineSub } from '../deadline/index.js';
5
5
  export { deadlineSub, subscribeDeadline } from '../deadline/index.js';
6
6
  import '../cache/index.js';
7
- import '../types-B-8bcAp8.js';
7
+ import '../types-BoUWgwSm.js';
8
8
  import '../circuit-breaker/index.js';
9
9
  import '../protocol-B5YmJr0d.js';
10
10
  import '../rate-limit/index.js';
@@ -1,14 +1,14 @@
1
- export { createLlmCall, liftLlmCall } from '../chunk-PS23H6KQ.js';
2
- import '../chunk-27N2SPTN.js';
1
+ export { createLlmCall, liftLlmCall } from '../chunk-M6UZT7HS.js';
2
+ import '../chunk-6GIGQT6C.js';
3
3
  import '../chunk-JELSZN25.js';
4
- export { deadlineSub, subscribeDeadline } from '../chunk-K7Q23EQ4.js';
4
+ export { deadlineSub, subscribeDeadline } from '../chunk-SKAMZKTE.js';
5
5
  import '../chunk-5VNWZADP.js';
6
6
  import '../chunk-2YOE5PIS.js';
7
7
  import '../chunk-SC3FAFZN.js';
8
8
  import '../chunk-IN33Q4VJ.js';
9
9
  import '../chunk-NSDFA6M6.js';
10
10
  import '../chunk-2YFLOCWX.js';
11
- import '../chunk-MMH7CW5K.js';
12
- import '../chunk-QLA76GIT.js';
11
+ import '../chunk-6VDCTR7N.js';
12
+ import '../chunk-DYRKDCJI.js';
13
13
  //# sourceMappingURL=index.js.map
14
14
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { C as Cmd, S as Sub, M as Machine } from '../core-BoB6t7dB.js';
1
+ import { C as Cmd, S as Sub, M as Machine } from '../core-BmlJOvxM.js';
2
2
 
3
3
  /**
4
4
  * @demlik/tea/machine-viz — turn a `Machine` into a Mermaid diagram string.
@@ -1,5 +1,5 @@
1
- import '../chunk-MMH7CW5K.js';
2
- import { formOf } from '../chunk-QLA76GIT.js';
1
+ import '../chunk-6VDCTR7N.js';
2
+ import { formOf } from '../chunk-DYRKDCJI.js';
3
3
 
4
4
  // src/machine-viz/index.ts
5
5
  function safeId(raw) {
@@ -1,5 +1,5 @@
1
1
  import { Store } from '../index.js';
2
- import '../core-BoB6t7dB.js';
2
+ import '../core-BmlJOvxM.js';
3
3
 
4
4
  /**
5
5
  * @demlik/tea/mem — in-memory `Store<S>` adapter for `@demlik/tea`.
@@ -1,9 +1,9 @@
1
1
  import { DeadlineExceeded, DeadlineSub } from '../deadline/index.js';
2
2
  export { deadlineSub, subscribeDeadline } from '../deadline/index.js';
3
- import { I as Interpret, C as Cmd } from '../core-BoB6t7dB.js';
3
+ import { I as Interpret, C as Cmd } from '../core-BmlJOvxM.js';
4
4
  import { SnapshotState, SnapshotWriteCmd, SnapshotStore, SnapshotSavedMsg, SnapshotFailedMsg, SnapshotLoadedMsg, SnapshotLoadFailedMsg, SnapshotLoadCmd } from '../snapshot/index.js';
5
5
  import { QueueItem } from '../work-queue/index.js';
6
- import '../types-B-8bcAp8.js';
6
+ import '../types-BoUWgwSm.js';
7
7
  import '../index.js';
8
8
 
9
9
  /**
@@ -1,10 +1,10 @@
1
- export { createMonitoredRun, liftRun } from '../chunk-7W4LMPUW.js';
2
- import '../chunk-EHIX7NYZ.js';
3
- export { deadlineSub, subscribeDeadline } from '../chunk-K7Q23EQ4.js';
1
+ export { createMonitoredRun, liftRun } from '../chunk-ZDRN3YCE.js';
2
+ import '../chunk-5KVHID6A.js';
3
+ export { deadlineSub, subscribeDeadline } from '../chunk-SKAMZKTE.js';
4
4
  import '../chunk-HJO6VNQI.js';
5
5
  import '../chunk-TGG26XMK.js';
6
6
  import '../chunk-2YFLOCWX.js';
7
- import '../chunk-MMH7CW5K.js';
8
- import '../chunk-QLA76GIT.js';
7
+ import '../chunk-6VDCTR7N.js';
8
+ import '../chunk-DYRKDCJI.js';
9
9
  //# sourceMappingURL=index.js.map
10
10
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  import WebSocket from 'ws';
2
2
  import { Store } from '../index.js';
3
- import { a as SubId, S as Sub } from '../core-BoB6t7dB.js';
3
+ import { a as SubId, S as Sub } from '../core-BmlJOvxM.js';
4
4
 
5
5
  /**
6
6
  * @demlik/tea/node — Node host adapter for `@demlik/tea`.
@@ -1,11 +1,11 @@
1
- import { C as Cmd } from '../core-BoB6t7dB.js';
1
+ import { C as Cmd } from '../core-BmlJOvxM.js';
2
2
  import { PaginatorState } from '../paginator/index.js';
3
3
  import { CircuitConfig, RateLimitConfig, DeadlineConfig, ResilientState, RunCmd, SucceedMsg, FailMsg, ResilientTimerMsg, ResilientPorts } from '../resilient-call/index.js';
4
4
  import { RetryPolicy } from '../retry-backoff/index.js';
5
5
  import { DeadlineSub } from '../deadline/index.js';
6
6
  export { deadlineSub, subscribeDeadline } from '../deadline/index.js';
7
7
  import '../cache/index.js';
8
- import '../types-B-8bcAp8.js';
8
+ import '../types-BoUWgwSm.js';
9
9
  import '../circuit-breaker/index.js';
10
10
  import '../protocol-B5YmJr0d.js';
11
11
  import '../rate-limit/index.js';
@@ -1,15 +1,15 @@
1
- export { PAGE_KEY, createPaginatedWalk, liftWalk } from '../chunk-5DEQ5I3U.js';
1
+ export { PAGE_KEY, createPaginatedWalk, liftWalk } from '../chunk-FOGL3TC7.js';
2
2
  import '../chunk-SINXE47Y.js';
3
- import '../chunk-27N2SPTN.js';
3
+ import '../chunk-6GIGQT6C.js';
4
4
  import '../chunk-JELSZN25.js';
5
- export { deadlineSub, subscribeDeadline } from '../chunk-K7Q23EQ4.js';
5
+ export { deadlineSub, subscribeDeadline } from '../chunk-SKAMZKTE.js';
6
6
  import '../chunk-5VNWZADP.js';
7
7
  import '../chunk-2YOE5PIS.js';
8
8
  import '../chunk-SC3FAFZN.js';
9
9
  import '../chunk-IN33Q4VJ.js';
10
10
  import '../chunk-NSDFA6M6.js';
11
11
  import '../chunk-2YFLOCWX.js';
12
- import '../chunk-MMH7CW5K.js';
13
- import '../chunk-QLA76GIT.js';
12
+ import '../chunk-6VDCTR7N.js';
13
+ import '../chunk-DYRKDCJI.js';
14
14
  //# sourceMappingURL=index.js.map
15
15
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  import { BootingRuntime } from '../index.js';
2
2
  import { Trace, RecorderOptions } from '../recorder/index.js';
3
- import { C as Cmd, S as Sub, M as Machine } from '../core-BoB6t7dB.js';
3
+ import { C as Cmd, S as Sub, M as Machine } from '../core-BmlJOvxM.js';
4
4
 
5
5
  /**
6
6
  * A live parity recording attached to a Runtime — the go/no-go gate's golden
@@ -1,7 +1,7 @@
1
1
  import { recorder } from '../chunk-UYWUVEP6.js';
2
- import { deepEqual } from '../chunk-ON24RKSE.js';
3
- import { replay } from '../chunk-MMH7CW5K.js';
4
- import '../chunk-QLA76GIT.js';
2
+ import { deepEqual } from '../chunk-IK4S5DJN.js';
3
+ import { replay } from '../chunk-6VDCTR7N.js';
4
+ import '../chunk-DYRKDCJI.js';
5
5
 
6
6
  // src/parity/index.ts
7
7
  function recordRun(runtime, opts) {
@@ -1,5 +1,5 @@
1
1
  import * as fc from 'fast-check';
2
- import { C as Cmd, S as Sub, M as Machine } from '../../core-BoB6t7dB.js';
2
+ import { C as Cmd, S as Sub, M as Machine } from '../../core-BmlJOvxM.js';
3
3
 
4
4
  /**
5
5
  * Build a Ctx value whose every property access throws. Use as the `ctx`
@@ -1,6 +1,6 @@
1
1
  export { MsgArbitraryTable, arbConstantMsg, arbGuidedSequence, arbMsg, arbMsgSequence, arbRecordMsg, stubCtxThrowingProxy } from './arbitraries/index.js';
2
2
  export { Step, foldEvents, propertyInvariant, propertyTerminates, propertyTrace } from './runners/index.js';
3
- import { C as Cmd, R as Reducer, T as Transitions, U as UpdateForm } from '../core-BoB6t7dB.js';
3
+ import { C as Cmd, R as Reducer, T as Transitions, U as UpdateForm } from '../core-BmlJOvxM.js';
4
4
  import 'fast-check';
5
5
 
6
6
  /**
package/dist/pbt/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { arbConstantMsg, arbGuidedSequence, arbMsg, arbMsgSequence, arbRecordMsg, stubCtxThrowingProxy } from '../chunk-7FYQGDMF.js';
2
- export { foldEvents, propertyInvariant, propertyTerminates, propertyTrace } from '../chunk-DILMKOZ7.js';
3
- import '../chunk-MMH7CW5K.js';
4
- import { msgKeysOf } from '../chunk-QLA76GIT.js';
2
+ export { foldEvents, propertyInvariant, propertyTerminates, propertyTrace } from '../chunk-EMJTPHI7.js';
3
+ import '../chunk-6VDCTR7N.js';
4
+ import { msgKeysOf } from '../chunk-DYRKDCJI.js';
5
5
 
6
6
  // src/pbt/util/msg-keys.ts
7
7
  function msgTypeKeys(machine) {
@@ -1,5 +1,5 @@
1
1
  import * as fc from 'fast-check';
2
- import { C as Cmd, S as Sub, M as Machine } from '../../core-BoB6t7dB.js';
2
+ import { C as Cmd, S as Sub, M as Machine } from '../../core-BmlJOvxM.js';
3
3
 
4
4
  /**
5
5
  * One unit in a fold trace — the four pieces of data a property
@@ -1,5 +1,5 @@
1
- export { foldEvents, propertyInvariant, propertyTerminates, propertyTrace } from '../../chunk-DILMKOZ7.js';
2
- import '../../chunk-MMH7CW5K.js';
3
- import '../../chunk-QLA76GIT.js';
1
+ export { foldEvents, propertyInvariant, propertyTerminates, propertyTrace } from '../../chunk-EMJTPHI7.js';
2
+ import '../../chunk-6VDCTR7N.js';
3
+ import '../../chunk-DYRKDCJI.js';
4
4
  //# sourceMappingURL=index.js.map
5
5
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
1
  import { DeadlineSub } from '../deadline/index.js';
2
2
  import { IdempotencyStore } from '../idempotency/index.js';
3
- import { C as Cmd, S as Sub } from '../core-BoB6t7dB.js';
3
+ import { C as Cmd, S as Sub } from '../core-BmlJOvxM.js';
4
4
  import { RetryPolicy, RetryState } from '../retry-backoff/index.js';
5
- import '../types-B-8bcAp8.js';
5
+ import '../types-BoUWgwSm.js';
6
6
 
7
7
  /**
8
8
  * @demlik/tea/poller — "poll a source every N ms until a predicate holds, with
@@ -1,10 +1,10 @@
1
- import { deadlineSub } from '../chunk-K7Q23EQ4.js';
1
+ import { deadlineSub } from '../chunk-SKAMZKTE.js';
2
2
  import { asRng, defaultRetryPolicy, initRetry, recordFailure, shouldRetry, nextDelayMs } from '../chunk-5VNWZADP.js';
3
3
  import { idempotencyMemory } from '../chunk-BYQUGDD3.js';
4
4
  import '../chunk-K575PT4S.js';
5
5
  import '../chunk-2YFLOCWX.js';
6
- import '../chunk-MMH7CW5K.js';
7
- import '../chunk-QLA76GIT.js';
6
+ import '../chunk-6VDCTR7N.js';
7
+ import '../chunk-DYRKDCJI.js';
8
8
 
9
9
  // src/poller/index.ts
10
10
  function pollerSubId(atMs) {
@@ -1,4 +1,4 @@
1
- import { C as Cmd, S as Sub, M as Machine } from '../core-BoB6t7dB.js';
1
+ import { C as Cmd, S as Sub, M as Machine } from '../core-BmlJOvxM.js';
2
2
 
3
3
  /**
4
4
  * @demlik/tea/prediction — the client-prediction ack primitive (epic #186, facet 2).
@@ -1,4 +1,4 @@
1
- export { NO_ACK, ack, initAck, nextSeq, partitionByAck, reconcile, tagSeq } from '../chunk-SQTCS44W.js';
2
- import '../chunk-QLA76GIT.js';
1
+ export { NO_ACK, ack, initAck, nextSeq, partitionByAck, reconcile, tagSeq } from '../chunk-G2U7DJHL.js';
2
+ import '../chunk-DYRKDCJI.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
1
  export { Ack, AckPartition, NO_ACK, Seq, SeqTagged, ack, initAck, nextSeq, partitionByAck, reconcile, tagSeq } from '../prediction/index.js';
2
- export { C as Cmd, b as ContextFree, I as Interpret, M as Machine, N as NoCtx, P as Port, c as PortEmitter, R as Reducer, S as Sub, a as SubId, d as Subscribe, e as SyncReturn, T as Transitions, U as UpdateForm, g as detectUpdateForm, h as foldMsgs, i as formOf, s as subId } from '../core-BoB6t7dB.js';
2
+ export { C as Cmd, b as ContextFree, I as Interpret, M as Machine, j as NoCellError, N as NoCtx, P as Port, c as PortEmitter, R as Reducer, S as Sub, a as SubId, d as Subscribe, e as SyncReturn, T as Transitions, U as UpdateForm, g as detectUpdateForm, h as foldMsgs, i as formOf, s as subId } from '../core-BmlJOvxM.js';
@@ -1,4 +1,4 @@
1
- export { NO_ACK, ack, initAck, nextSeq, partitionByAck, reconcile, tagSeq } from '../chunk-SQTCS44W.js';
2
- export { Cmd, detectUpdateForm, foldMsgs, formOf, subId } from '../chunk-QLA76GIT.js';
1
+ export { NO_ACK, ack, initAck, nextSeq, partitionByAck, reconcile, tagSeq } from '../chunk-G2U7DJHL.js';
2
+ export { Cmd, NoCellError, detectUpdateForm, foldMsgs, formOf, subId } from '../chunk-DYRKDCJI.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import { Store, Runtime } from '../index.js';
2
- import { C as Cmd, S as Sub, M as Machine } from '../core-BoB6t7dB.js';
2
+ import { C as Cmd, S as Sub, M as Machine } from '../core-BmlJOvxM.js';
3
3
 
4
4
  /**
5
5
  * @demlik/tea/react — React host adapter for `@demlik/tea`.
@@ -1,5 +1,5 @@
1
- import { run } from '../chunk-MMH7CW5K.js';
2
- import '../chunk-QLA76GIT.js';
1
+ import { run } from '../chunk-6VDCTR7N.js';
2
+ import '../chunk-DYRKDCJI.js';
3
3
  import { useMemo, useRef, useReducer, useSyncExternalStore, useEffect } from 'react';
4
4
 
5
5
  function useMachine(machine, opts) {
@@ -1,6 +1,6 @@
1
1
  import { CircuitConfig, RateLimitConfig, DeadlineConfig, ResilientPorts, RunCmd, FailMsg, SucceedMsg } from '../resilient-call/index.js';
2
2
  import { TtlCache } from '../cache/index.js';
3
- import { C as Cmd } from '../core-BoB6t7dB.js';
3
+ import { C as Cmd } from '../core-BmlJOvxM.js';
4
4
  import { PaginatedWalkState, FetchPageCmd, PageOkMsg, PageErrMsg, PaginatedWalkTimerMsg } from '../paginated-walk/index.js';
5
5
  import { RetryPolicy } from '../retry-backoff/index.js';
6
6
  import { DeadlineSub } from '../deadline/index.js';
@@ -8,7 +8,7 @@ export { deadlineSub, subscribeDeadline } from '../deadline/index.js';
8
8
  import '../circuit-breaker/index.js';
9
9
  import '../protocol-B5YmJr0d.js';
10
10
  import '../rate-limit/index.js';
11
- import '../types-B-8bcAp8.js';
11
+ import '../types-BoUWgwSm.js';
12
12
  import '../paginator/index.js';
13
13
 
14
14
  /**
@@ -1,16 +1,16 @@
1
- import { createPaginatedWalk, PAGE_KEY } from '../chunk-5DEQ5I3U.js';
1
+ import { createPaginatedWalk, PAGE_KEY } from '../chunk-FOGL3TC7.js';
2
2
  import '../chunk-SINXE47Y.js';
3
- import '../chunk-27N2SPTN.js';
3
+ import '../chunk-6GIGQT6C.js';
4
4
  import '../chunk-JELSZN25.js';
5
- export { deadlineSub, subscribeDeadline } from '../chunk-K7Q23EQ4.js';
5
+ export { deadlineSub, subscribeDeadline } from '../chunk-SKAMZKTE.js';
6
6
  import '../chunk-5VNWZADP.js';
7
7
  import '../chunk-2YOE5PIS.js';
8
8
  import '../chunk-SC3FAFZN.js';
9
9
  import { initCache, get, set } from '../chunk-IN33Q4VJ.js';
10
10
  import '../chunk-NSDFA6M6.js';
11
11
  import '../chunk-2YFLOCWX.js';
12
- import '../chunk-MMH7CW5K.js';
13
- import '../chunk-QLA76GIT.js';
12
+ import '../chunk-6VDCTR7N.js';
13
+ import '../chunk-DYRKDCJI.js';
14
14
 
15
15
  // src/reconciler/index.ts
16
16
  function createReconciler(config, rng = Math.random) {
@@ -1,5 +1,5 @@
1
1
  import { BootingRuntime } from '../index.js';
2
- import '../core-BoB6t7dB.js';
2
+ import '../core-BmlJOvxM.js';
3
3
 
4
4
  /**
5
5
  * A recorded run, sufficient to reproduce it via `../trace-replay`.
@@ -2,11 +2,11 @@ import { TtlCache } from '../cache/index.js';
2
2
  import { CircuitState } from '../circuit-breaker/index.js';
3
3
  import { DeadlineExceeded, DeadlineSub } from '../deadline/index.js';
4
4
  export { deadlineSub, subscribeDeadline } from '../deadline/index.js';
5
- import { C as Cmd } from '../core-BoB6t7dB.js';
5
+ import { C as Cmd } from '../core-BmlJOvxM.js';
6
6
  import { M as MsgType } from '../protocol-B5YmJr0d.js';
7
7
  import { TokenBucket } from '../rate-limit/index.js';
8
8
  import { RetryState, RetryPolicy } from '../retry-backoff/index.js';
9
- import '../types-B-8bcAp8.js';
9
+ import '../types-BoUWgwSm.js';
10
10
 
11
11
  /**
12
12
  * @deprecated `@demlik/tea/resilient-call` is deprecated in favor of
@@ -1,13 +1,13 @@
1
- export { createResilientCall, liftResilience } from '../chunk-27N2SPTN.js';
1
+ export { createResilientCall, liftResilience } from '../chunk-6GIGQT6C.js';
2
2
  import '../chunk-JELSZN25.js';
3
- export { deadlineSub, subscribeDeadline } from '../chunk-K7Q23EQ4.js';
3
+ export { deadlineSub, subscribeDeadline } from '../chunk-SKAMZKTE.js';
4
4
  import '../chunk-5VNWZADP.js';
5
5
  import '../chunk-2YOE5PIS.js';
6
6
  import '../chunk-SC3FAFZN.js';
7
7
  import '../chunk-IN33Q4VJ.js';
8
8
  import '../chunk-NSDFA6M6.js';
9
9
  import '../chunk-2YFLOCWX.js';
10
- import '../chunk-MMH7CW5K.js';
11
- import '../chunk-QLA76GIT.js';
10
+ import '../chunk-6VDCTR7N.js';
11
+ import '../chunk-DYRKDCJI.js';
12
12
  //# sourceMappingURL=index.js.map
13
13
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { C as Cmd } from '../core-BoB6t7dB.js';
1
+ import { C as Cmd } from '../core-BmlJOvxM.js';
2
2
  import { QueueItem } from '../work-queue/index.js';
3
3
  import '../index.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as Cmd, I as Interpret } from '../core-BoB6t7dB.js';
1
+ import { C as Cmd, I as Interpret } from '../core-BmlJOvxM.js';
2
2
 
3
3
  /**
4
4
  * @demlik/tea/snapshot — periodic state checkpoint to a host store (R2/KV-shaped).
@@ -1,5 +1,5 @@
1
- export { createSnapshot, snapshotFailed, snapshotLoadFailed, snapshotLoaded, snapshotSaved } from '../chunk-EHIX7NYZ.js';
2
- import '../chunk-MMH7CW5K.js';
3
- import '../chunk-QLA76GIT.js';
1
+ export { createSnapshot, snapshotFailed, snapshotLoadFailed, snapshotLoaded, snapshotSaved } from '../chunk-5KVHID6A.js';
2
+ import '../chunk-6VDCTR7N.js';
3
+ import '../chunk-DYRKDCJI.js';
4
4
  //# sourceMappingURL=index.js.map
5
5
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import { S as Sub, P as Port } from '../core-BoB6t7dB.js';
2
- import { S as SubscribeHandler } from '../types-B-8bcAp8.js';
1
+ import { S as Sub, P as Port } from '../core-BmlJOvxM.js';
2
+ import { S as SubscribeHandler } from '../types-BoUWgwSm.js';
3
3
  import { Runtime } from '../index.js';
4
4
 
5
5
  interface MinimalEvent {
@@ -1,4 +1,4 @@
1
- import { C as Cmd, S as Sub, M as Machine } from '../core-BoB6t7dB.js';
1
+ import { C as Cmd, S as Sub, M as Machine } from '../core-BmlJOvxM.js';
2
2
  import { Runtime } from '../index.js';
3
3
 
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { replay } from '../chunk-MMH7CW5K.js';
2
- import '../chunk-QLA76GIT.js';
1
+ import { replay } from '../chunk-6VDCTR7N.js';
2
+ import '../chunk-DYRKDCJI.js';
3
3
  import { expect, vi } from 'vitest';
4
4
 
5
5
  function assertWrapperFaithful(base, makeWrapped, opts) {
@@ -1,10 +1,10 @@
1
1
  import { TtlCache } from '../cache/index.js';
2
2
  import { DeadlineSub } from '../deadline/index.js';
3
3
  export { DeadlineExceeded as ThrottledInputSettled, subscribeDeadline as subscribeThrottledInput, deadlineExceeded as throttledInputSettled } from '../deadline/index.js';
4
- import { C as Cmd, S as Sub } from '../core-BoB6t7dB.js';
4
+ import { C as Cmd, S as Sub } from '../core-BmlJOvxM.js';
5
5
  export { Debounced, debounce } from '../debounce/index.js';
6
6
  export { Throttled, throttle } from '../throttle/index.js';
7
- import '../types-B-8bcAp8.js';
7
+ import '../types-BoUWgwSm.js';
8
8
 
9
9
  /**
10
10
  * @demlik/tea/throttled-input — gate a high-frequency input stream into a
@@ -1,12 +1,12 @@
1
1
  export { debounce } from '../chunk-J6527VRQ.js';
2
2
  export { throttle } from '../chunk-HCEVHFJ7.js';
3
- import { deadlineSub } from '../chunk-K7Q23EQ4.js';
4
- export { subscribeDeadline as subscribeThrottledInput, deadlineExceeded as throttledInputSettled } from '../chunk-K7Q23EQ4.js';
3
+ import { deadlineSub } from '../chunk-SKAMZKTE.js';
4
+ export { subscribeDeadline as subscribeThrottledInput, deadlineExceeded as throttledInputSettled } from '../chunk-SKAMZKTE.js';
5
5
  import { initCache, get, set } from '../chunk-IN33Q4VJ.js';
6
6
  import '../chunk-NSDFA6M6.js';
7
7
  import '../chunk-2YFLOCWX.js';
8
- import '../chunk-MMH7CW5K.js';
9
- import '../chunk-QLA76GIT.js';
8
+ import '../chunk-6VDCTR7N.js';
9
+ import '../chunk-DYRKDCJI.js';
10
10
 
11
11
  // src/throttled-input/index.ts
12
12
  var DEFAULT_SUB_ID = "throttled-input:settle";
@@ -1,4 +1,4 @@
1
- import { C as Cmd, I as Interpret } from '../core-BoB6t7dB.js';
1
+ import { C as Cmd, I as Interpret } from '../core-BmlJOvxM.js';
2
2
  import { M as MsgType } from '../protocol-B5YmJr0d.js';
3
3
 
4
4
  /**
@@ -1,6 +1,6 @@
1
- export { createTokenRefresh, initTokenRefresh, refreshTokenCmd, tokenRefreshFailedMsg, tokenRefreshedMsg } from '../chunk-3XJWC7VW.js';
1
+ export { createTokenRefresh, initTokenRefresh, refreshTokenCmd, tokenRefreshFailedMsg, tokenRefreshedMsg } from '../chunk-6OUDPSSG.js';
2
2
  import '../chunk-JELSZN25.js';
3
- import '../chunk-MMH7CW5K.js';
4
- import '../chunk-QLA76GIT.js';
3
+ import '../chunk-6VDCTR7N.js';
4
+ import '../chunk-DYRKDCJI.js';
5
5
  //# sourceMappingURL=index.js.map
6
6
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { C as Cmd, S as Sub, M as Machine } from '../core-BoB6t7dB.js';
1
+ import { C as Cmd, S as Sub, M as Machine } from '../core-BmlJOvxM.js';
2
2
  import { Trace } from '../recorder/index.js';
3
3
  import '../index.js';
4
4
 
@@ -1,5 +1,5 @@
1
- export { deepEqual, replayTrace } from '../chunk-ON24RKSE.js';
2
- import '../chunk-MMH7CW5K.js';
3
- import '../chunk-QLA76GIT.js';
1
+ export { deepEqual, replayTrace } from '../chunk-IK4S5DJN.js';
2
+ import '../chunk-6VDCTR7N.js';
3
+ import '../chunk-DYRKDCJI.js';
4
4
  //# sourceMappingURL=index.js.map
5
5
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { S as Sub } from './core-BoB6t7dB.js';
1
+ import { S as Sub } from './core-BmlJOvxM.js';
2
2
 
3
3
  type SubscribeHandler<S extends Sub, M, Ctx> = (sub: S, ctx: Ctx, dispatch: (msg: M) => void) => () => void;
4
4
 
@@ -1,4 +1,4 @@
1
- import { S as Sub, C as Cmd, M as Machine } from '../core-BoB6t7dB.js';
1
+ import { S as Sub, C as Cmd, M as Machine } from '../core-BmlJOvxM.js';
2
2
 
3
3
  /**
4
4
  * @demlik/tea/with-deadline — auto-fail a wrapped machine at T+N, re-arm on