@demlik/tea 0.16.0 → 0.17.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 (84) hide show
  1. package/dist/agent/index.d.ts +13 -13
  2. package/dist/agent/index.js +9 -9
  3. package/dist/{chunk-CIHSHLQX.js → chunk-4NTCPTNQ.js} +3 -3
  4. package/dist/{chunk-CIHSHLQX.js.map → chunk-4NTCPTNQ.js.map} +1 -1
  5. package/dist/{chunk-7MGXQZPW.js → chunk-4PXNZ5UY.js} +4 -4
  6. package/dist/{chunk-7MGXQZPW.js.map → chunk-4PXNZ5UY.js.map} +1 -1
  7. package/dist/{chunk-6NG4V5SB.js → chunk-6XBEYZME.js} +5 -5
  8. package/dist/{chunk-6NG4V5SB.js.map → chunk-6XBEYZME.js.map} +1 -1
  9. package/dist/{chunk-GOX2CYIM.js → chunk-C4U5D5HP.js} +3 -3
  10. package/dist/{chunk-GOX2CYIM.js.map → chunk-C4U5D5HP.js.map} +1 -1
  11. package/dist/{chunk-MVZS5FDM.js → chunk-DFUEAA6L.js} +3 -3
  12. package/dist/{chunk-MVZS5FDM.js.map → chunk-DFUEAA6L.js.map} +1 -1
  13. package/dist/{chunk-IVJP3GKJ.js → chunk-GWWCCSDH.js} +4 -4
  14. package/dist/{chunk-IVJP3GKJ.js.map → chunk-GWWCCSDH.js.map} +1 -1
  15. package/dist/{chunk-CH5KTOEZ.js → chunk-K4ETBNKS.js} +32 -9
  16. package/dist/chunk-K4ETBNKS.js.map +1 -0
  17. package/dist/{chunk-5XU6ZJO2.js → chunk-KWNCM6XM.js} +19 -13
  18. package/dist/chunk-KWNCM6XM.js.map +1 -0
  19. package/dist/{chunk-BCTEOVOU.js → chunk-LYVOGOBC.js} +3 -3
  20. package/dist/{chunk-BCTEOVOU.js.map → chunk-LYVOGOBC.js.map} +1 -1
  21. package/dist/{chunk-MYNLY3HP.js → chunk-OPH6Y4UT.js} +3 -3
  22. package/dist/{chunk-MYNLY3HP.js.map → chunk-OPH6Y4UT.js.map} +1 -1
  23. package/dist/{chunk-NSIAORRY.js → chunk-OYR7ENKU.js} +3 -3
  24. package/dist/{chunk-NSIAORRY.js.map → chunk-OYR7ENKU.js.map} +1 -1
  25. package/dist/{chunk-WT5PBPLB.js → chunk-QWIPH4YH.js} +4 -4
  26. package/dist/{chunk-WT5PBPLB.js.map → chunk-QWIPH4YH.js.map} +1 -1
  27. package/dist/{chunk-EHUDXAKC.js → chunk-XBZQT2TD.js} +7 -7
  28. package/dist/chunk-XBZQT2TD.js.map +1 -0
  29. package/dist/{core-BbgtiXdg.d.ts → core-rDbOaJTN.d.ts} +7 -3
  30. package/dist/do/index.d.ts +12 -12
  31. package/dist/do/index.js +10 -10
  32. package/dist/{durable-effects-7MTK_jnj.d.ts → durable-effects-CNaw97Be.d.ts} +1 -1
  33. package/dist/effect/index.d.ts +2 -2
  34. package/dist/effect/index.js +2 -2
  35. package/dist/extension/index.d.ts +3 -3
  36. package/dist/extension/index.js +2 -2
  37. package/dist/flow/index.d.ts +13 -13
  38. package/dist/flow/index.js +10 -10
  39. package/dist/idempotency/index.d.ts +3 -3
  40. package/dist/idempotency/index.js +3 -3
  41. package/dist/{index-Bz5Rh9Ga.d.ts → index-BOrsbdAf.d.ts} +4 -4
  42. package/dist/{index-DU6JpQ8G.d.ts → index-B_BxplWi.d.ts} +1 -1
  43. package/dist/{index-CjFDUBeq.d.ts → index-CWmsXNdX.d.ts} +1 -1
  44. package/dist/{index-_dOR3xqA.d.ts → index-Cberb5Rr.d.ts} +2 -2
  45. package/dist/{index-7vV8xmsD.d.ts → index-CcrKLtse.d.ts} +1 -1
  46. package/dist/{index-CkFYA9Y6.d.ts → index-Cx0F2M34.d.ts} +2 -2
  47. package/dist/{index-Xufl55W8.d.ts → index-DaX_P35Q.d.ts} +2 -2
  48. package/dist/{index-Cou86-GX.d.ts → index-q1PoukOZ.d.ts} +2 -2
  49. package/dist/index.d.ts +5 -5
  50. package/dist/index.js +2 -2
  51. package/dist/jev/index.d.ts +8 -8
  52. package/dist/jev/index.js +5 -5
  53. package/dist/{machine-BQzTV8On.d.ts → machine-BcfCFMYF.d.ts} +7 -7
  54. package/dist/machine-viz/index.d.ts +1 -1
  55. package/dist/machine-viz/index.js +2 -2
  56. package/dist/mem/index.d.ts +2 -2
  57. package/dist/mem/index.js +2 -2
  58. package/dist/node/index.d.ts +2 -2
  59. package/dist/node/index.js +2 -2
  60. package/dist/paginate/index.d.ts +4 -4
  61. package/dist/paginate/index.js +5 -5
  62. package/dist/parity/index.d.ts +3 -3
  63. package/dist/parity/index.js +3 -3
  64. package/dist/pbt/index.d.ts +1 -1
  65. package/dist/pbt/index.js +2 -2
  66. package/dist/persistence/index.d.ts +9 -10
  67. package/dist/persistence/index.js +4 -4
  68. package/dist/promise/index.d.ts +2 -2
  69. package/dist/promise/index.js +3 -3
  70. package/dist/react/index.d.ts +2 -2
  71. package/dist/resilience/index.d.ts +6 -6
  72. package/dist/resilience/index.js +5 -5
  73. package/dist/{runtime-types-CiVpC0HN.d.ts → runtime-types-B62Ucnxr.d.ts} +2 -2
  74. package/dist/testing/index.d.ts +22 -108
  75. package/dist/testing/index.js +27 -177
  76. package/dist/testing/index.js.map +1 -1
  77. package/dist/timing/index.d.ts +4 -4
  78. package/dist/timing/index.js +4 -4
  79. package/dist/{types-LxZxGYda.d.ts → types-DPm5YCDQ.d.ts} +1 -1
  80. package/dist/work-queue/index.d.ts +4 -4
  81. package/package.json +3 -3
  82. package/dist/chunk-5XU6ZJO2.js.map +0 -1
  83. package/dist/chunk-CH5KTOEZ.js.map +0 -1
  84. package/dist/chunk-EHUDXAKC.js.map +0 -1
@@ -113,6 +113,7 @@ declare class UndeclaredFailureError extends Error {
113
113
  * A `Cmd.define`d handler returned something the engine cannot settle: any Msg
114
114
  * (the engine mints the Cmd's `<name>_ok` / `<name>_err`, never the handler —
115
115
  * ADR 0021), or any other value that is neither an {@link Outcome} nor nothing.
116
+ * Also thrown when such a handler dispatches its own `_ok` / `_err` Msg.
116
117
  */
117
118
  declare class OutcomeContractError extends Error {
118
119
  readonly cmdType: string;
@@ -480,6 +481,9 @@ interface PortEmitter {
480
481
  emit<T>(port: Port<T>, value: T): void;
481
482
  }
482
483
  type NoCtx = Readonly<Record<never, never>>;
484
+ type HandlerCtx<Ctx> = (0 extends 1 & Ctx ? Ctx : [
485
+ Ctx
486
+ ] extends [void] ? unknown : Ctx) & PortEmitter;
483
487
  type Interpret<M extends {
484
488
  type: string;
485
489
  }, C extends Cmd, Ctx> = {
@@ -494,7 +498,7 @@ type Interpret<M extends {
494
498
  */
495
499
  type InterpretCell<M extends {
496
500
  type: string;
497
- }, C extends Cmd, Ctx> = unknown extends ErrorsOf<C> ? (cmd: C, ctx: Ctx & PortEmitter, dispatch?: (msg: M) => void) => Promise<M | void> : (cmd: C, ctx: Ctx & PortEmitter & OutcomeHelpers<OkOfCmd<C>, DeclaredErrorsOf<C>>, dispatch?: (msg: M) => void) => Promise<Outcome<OkOfCmd<C>, DeclaredErrorsOf<C>> | void>;
501
+ }, C extends Cmd, Ctx> = unknown extends ErrorsOf<C> ? (cmd: C, ctx: HandlerCtx<Ctx>, dispatch?: (msg: M) => void) => Promise<M | void> : (cmd: C, ctx: HandlerCtx<Ctx> & OutcomeHelpers<OkOfCmd<C>, DeclaredErrorsOf<C>>, dispatch?: (msg: M) => void) => Promise<Outcome<OkOfCmd<C>, DeclaredErrorsOf<C>> | void>;
498
502
  /** The value a Cmd settles with; `unknown` for a hand-written Cmd. */
499
503
  type OkOfCmd<C> = C extends {
500
504
  readonly __ok?: infer Ok;
@@ -503,7 +507,7 @@ type OkOfCmd<C> = C extends {
503
507
  type DeclaredErrorsOf<C> = Exclude<ErrorsOf<C>, MalformedResult>;
504
508
  type InterpretDetached<C extends Cmd, Allowed extends {
505
509
  type: string;
506
- }, Ctx> = (cmd: C, ctx: Ctx & PortEmitter, dispatch: (msg: Allowed) => void) => Promise<void>;
510
+ }, Ctx> = (cmd: C, ctx: HandlerCtx<Ctx>, dispatch: (msg: Allowed) => void) => Promise<void>;
507
511
  type Subscribe<M extends {
508
512
  type: string;
509
513
  }, U extends Sub, Ctx> = {
@@ -651,4 +655,4 @@ declare function foldMsgs<S, M extends {
651
655
  type: string;
652
656
  }, C extends Cmd, U extends Sub, Ctx>(machine: Machine<S, M, C, U, Ctx>, base: S, msgs: readonly M[]): S;
653
657
 
654
- export { applyCellChecked as $, type AnyCmdDef as A, type BuiltinSubType as B, Cmd as C, type DeclaredErrorsOf as D, type ErrorsOf as E, type InterpretArg as F, type InterpretCell as G, type MachineShape as H, type InterpretDetached as I, type NoCtx as J, OutcomeContractError as K, type OutcomeHelpers as L, type Machine as M, NoCellError as N, type OkOfCmd as O, type Port as P, type SubscribeArg as Q, type RunHandlers as R, type Sub as S, type TimerDeps as T, type UpdateForm as U, type SyncReturn as V, type Wired as W, UndeclaredFailureError as X, acceptedTypes as Y, acceptsOf as Z, applyCell as _, type BuiltinSub as a, describeMachine as a0, detectUpdateForm as a1, foldMsgs as a2, foldUpdates as a3, formOf as a4, msgKeysOf as a5, structuralHash as a6, subId as a7, subIdOf as a8, type CmdDef as b, type CmdOf as c, type Subscribe as d, type SettledOk as e, type SettledErr as f, type TaggedError as g, type Dispose as h, type Reducer as i, type Settled as j, type Transitions as k, Outcome as l, type PortEmitter as m, type SubId as n, type DepKeyedSub as o, type Interpret as p, type TimerSub as q, type MalformedResult as r, type Tagged as s, type OkOf as t, type ErrOf as u, type CmdValue as v, AsyncSchemaError as w, type CmdInput as x, type ExhaustiveTransitions as y, type Identity as z };
658
+ export { applyCell as $, type AnyCmdDef as A, type BuiltinSubType as B, Cmd as C, type DeclaredErrorsOf as D, type ErrorsOf as E, type InterpretCell as F, type MachineShape as G, type HandlerCtx as H, type InterpretDetached as I, type NoCtx as J, OutcomeContractError as K, type OutcomeHelpers as L, type Machine as M, NoCellError as N, type OkOfCmd as O, type Port as P, type PortEmitter as Q, type RunHandlers as R, type Sub as S, type TimerDeps as T, type UpdateForm as U, type SubscribeArg as V, type Wired as W, type SyncReturn as X, UndeclaredFailureError as Y, acceptedTypes as Z, acceptsOf as _, type BuiltinSub as a, applyCellChecked as a0, describeMachine as a1, detectUpdateForm as a2, foldMsgs as a3, foldUpdates as a4, formOf as a5, msgKeysOf as a6, structuralHash as a7, subId as a8, subIdOf as a9, type CmdDef as b, type CmdOf as c, type Subscribe as d, type SettledOk as e, type SettledErr as f, type TaggedError as g, type Dispose as h, type Reducer as i, type Settled as j, type Transitions as k, Outcome as l, type SubId as m, type DepKeyedSub as n, type Interpret as o, type TimerSub as p, type MalformedResult as q, type Tagged as r, type OkOf as s, type ErrOf as t, type CmdValue as u, AsyncSchemaError as v, type CmdInput as w, type ExhaustiveTransitions as x, type Identity as y, type InterpretArg as z };
@@ -1,18 +1,18 @@
1
- import { S as Store, b as BootedRunHandle, E as EngineRun, c as RunHandle, F as FencedStore } from '../runtime-types-CiVpC0HN.js';
2
- import { P as PendingEffectsRecorder, b as EffectOwed, a as EffectConfirmed } from '../durable-effects-7MTK_jnj.js';
3
- export { D as DeliveryId, E as EffectLedgerEvent, O as OwedEffect, c as PendingEffectsLedger, d as applyEffectEvent, e as emptyLedger, f as foldLedger, i as isOwed, p as pendingEffectsLedger, s as survivingEffects } from '../durable-effects-7MTK_jnj.js';
1
+ import { S as Store, b as BootedRunHandle, E as EngineRun, c as RunHandle, F as FencedStore } from '../runtime-types-B62Ucnxr.js';
2
+ import { P as PendingEffectsRecorder, b as EffectOwed, a as EffectConfirmed } from '../durable-effects-CNaw97Be.js';
3
+ export { D as DeliveryId, E as EffectLedgerEvent, O as OwedEffect, c as PendingEffectsLedger, d as applyEffectEvent, e as emptyLedger, f as foldLedger, i as isOwed, p as pendingEffectsLedger, s as survivingEffects } from '../durable-effects-CNaw97Be.js';
4
4
  import { RetryPolicy, Rng } from '../retry-backoff/index.js';
5
- import { C as Cmd, S as Sub, M as Machine, W as Wired } from '../core-BbgtiXdg.js';
6
- import { g as AgentEvent, b as AgentTurn, c as AgentState, i as AgentMachineMsg, B as AgentStatus } from '../machine-BQzTV8On.js';
5
+ import { C as Cmd, S as Sub, M as Machine, W as Wired } from '../core-rDbOaJTN.js';
6
+ import { g as AgentEvent, b as AgentTurn, c as AgentState, i as AgentMachineMsg, B as AgentStatus } from '../machine-BcfCFMYF.js';
7
7
  import '@standard-schema/spec';
8
- import '../index-Bz5Rh9Ga.js';
9
- import '../index-CjFDUBeq.js';
10
- import '../index-Xufl55W8.js';
11
- import '../types-LxZxGYda.js';
12
- import '../index-7vV8xmsD.js';
13
- import '../index-Cou86-GX.js';
8
+ import '../index-BOrsbdAf.js';
9
+ import '../index-CWmsXNdX.js';
10
+ import '../index-DaX_P35Q.js';
11
+ import '../types-DPm5YCDQ.js';
12
+ import '../index-CcrKLtse.js';
13
+ import '../index-q1PoukOZ.js';
14
14
  import '../protocol-ClRZBhHQ.js';
15
- import '../index-CkFYA9Y6.js';
15
+ import '../index-Cx0F2M34.js';
16
16
 
17
17
  /**
18
18
  * @demlik/tea/do — `stepHost`, the HTTP-PULL control carrier (#92).
package/dist/do/index.js CHANGED
@@ -1,20 +1,20 @@
1
- import { status, agentBootMsg, agentEvents } from '../chunk-EHUDXAKC.js';
1
+ import { status, agentBootMsg, agentEvents } from '../chunk-XBZQT2TD.js';
2
2
  import '../chunk-G5E74IJB.js';
3
- import { createIntake } from '../chunk-MYNLY3HP.js';
3
+ import { createIntake } from '../chunk-OPH6Y4UT.js';
4
4
  export { applyEffectEvent, emptyLedger, foldLedger, isOwed, pendingEffectsLedger, survivingEffects } from '../chunk-6IQPODUF.js';
5
- import '../chunk-7MGXQZPW.js';
6
- import '../chunk-CIHSHLQX.js';
5
+ import '../chunk-4PXNZ5UY.js';
6
+ import '../chunk-4NTCPTNQ.js';
7
7
  import '../chunk-QNGYQMZB.js';
8
8
  import '../chunk-PR6TB3BL.js';
9
9
  import '../chunk-TXN2KFHF.js';
10
- import '../chunk-6NG4V5SB.js';
10
+ import '../chunk-6XBEYZME.js';
11
11
  import { defaultRetryPolicy, initRetry, recordFailure, shouldRetry, nextDelayMs } from '../chunk-VBDU4JL6.js';
12
12
  import '../chunk-4LPY67E4.js';
13
- import '../chunk-IVJP3GKJ.js';
14
- import '../chunk-WT5PBPLB.js';
15
- import '../chunk-5XU6ZJO2.js';
16
- import '../chunk-GOX2CYIM.js';
17
- import { StoreConflictError, replay } from '../chunk-CH5KTOEZ.js';
13
+ import '../chunk-GWWCCSDH.js';
14
+ import '../chunk-QWIPH4YH.js';
15
+ import '../chunk-KWNCM6XM.js';
16
+ import '../chunk-C4U5D5HP.js';
17
+ import { StoreConflictError, replay } from '../chunk-K4ETBNKS.js';
18
18
 
19
19
  // src/do/durable-timer.ts
20
20
  function durableTimer(config) {
@@ -1,4 +1,4 @@
1
- import { C as Cmd } from './core-BbgtiXdg.js';
1
+ import { C as Cmd } from './core-rDbOaJTN.js';
2
2
 
3
3
  /**
4
4
  * @demlik/tea/do — the durable pending-effects ledger (substrate primitive #1).
@@ -1,6 +1,6 @@
1
1
  import { Effect, Stream, Scope } from 'effect';
2
- import { C as Cmd, E as ErrorsOf, O as OkOfCmd, D as DeclaredErrorsOf, S as Sub, B as BuiltinSubType, a as BuiltinSub, M as Machine } from '../core-BbgtiXdg.js';
3
- import { C as CtxArg, S as Store, O as OnError, a as Supervision, T as TelemetrySink, B as BootingRuntime } from '../runtime-types-CiVpC0HN.js';
2
+ import { C as Cmd, E as ErrorsOf, O as OkOfCmd, D as DeclaredErrorsOf, S as Sub, B as BuiltinSubType, a as BuiltinSub, M as Machine } from '../core-rDbOaJTN.js';
3
+ import { C as CtxArg, S as Store, O as OnError, a as Supervision, T as TelemetrySink, B as BootingRuntime } from '../runtime-types-B62Ucnxr.js';
4
4
  import '@standard-schema/spec';
5
5
 
6
6
  /**
@@ -1,5 +1,5 @@
1
- import { startLoop, builtinExtensions } from '../chunk-5XU6ZJO2.js';
2
- import { subEntriesOf, applyCell, Outcome } from '../chunk-CH5KTOEZ.js';
1
+ import { startLoop, builtinExtensions } from '../chunk-KWNCM6XM.js';
2
+ import { subEntriesOf, applyCell, Outcome } from '../chunk-K4ETBNKS.js';
3
3
  import { Effect, Stream, Cause, Fiber, Exit, Result } from 'effect';
4
4
 
5
5
  function timer(sub) {
@@ -1,7 +1,7 @@
1
- import { R as Runtime, S as Store } from '../runtime-types-CiVpC0HN.js';
1
+ import { R as Runtime, S as Store } from '../runtime-types-B62Ucnxr.js';
2
2
  import { ReactNode } from 'react';
3
- import { S as Sub } from '../core-BbgtiXdg.js';
4
- import { S as SubscribeHandler } from '../types-LxZxGYda.js';
3
+ import { S as Sub } from '../core-rDbOaJTN.js';
4
+ import { S as SubscribeHandler } from '../types-DPm5YCDQ.js';
5
5
  import '@standard-schema/spec';
6
6
 
7
7
  /**
@@ -1,6 +1,6 @@
1
1
  import { describeError } from '../chunk-G5E74IJB.js';
2
- import { historyTracker, dispatchIfPresent } from '../chunk-GOX2CYIM.js';
3
- import '../chunk-CH5KTOEZ.js';
2
+ import { historyTracker, dispatchIfPresent } from '../chunk-C4U5D5HP.js';
3
+ import '../chunk-K4ETBNKS.js';
4
4
  import { useRef, useSyncExternalStore, useEffect, useCallback, createContext, useMemo, useContext } from 'react';
5
5
  import { jsx } from 'react/jsx-runtime';
6
6
 
@@ -1,21 +1,21 @@
1
- import { R as Runtime, C as CtxArg } from '../runtime-types-CiVpC0HN.js';
2
- import { C as Cmd, S as Sub, M as Machine, R as RunHandlers, b as CmdDef, T as TimerDeps, c as CmdOf } from '../core-BbgtiXdg.js';
3
- export { B as BatchWindow, c as BatchWindowConfig, b as BatchWindowExpired, d as BatchWindowKnob, a as BatchWindowSub, e as addItem, f as batchWindowExpired, g as createBatchWindow, i as initBatchWindow, o as onWindow, s as subsFor, h as subscribeBatchWindow, t as timerFor } from '../index-_dOR3xqA.js';
4
- export { a as FanOutConfig, b as FanOutDone, c as FanOutFailed, d as FanOutPorts, F as FanOutState, e as createFanOut, i as initFanOut, f as isComplete } from '../index-CkFYA9Y6.js';
5
- export { E as EndedRun, M as MonitoredRunCmd, b as MonitoredRunConfig, a as MonitoredRunState, c as MonitoredRunTimerMsg, R as RunFailure, S as StageResult, d as createMonitoredRun, l as liftRun } from '../index-Bz5Rh9Ga.js';
1
+ import { R as Runtime, C as CtxArg } from '../runtime-types-B62Ucnxr.js';
2
+ import { C as Cmd, S as Sub, M as Machine, R as RunHandlers, b as CmdDef, T as TimerDeps, c as CmdOf } from '../core-rDbOaJTN.js';
3
+ export { B as BatchWindow, c as BatchWindowConfig, b as BatchWindowExpired, d as BatchWindowKnob, a as BatchWindowSub, e as addItem, f as batchWindowExpired, g as createBatchWindow, i as initBatchWindow, o as onWindow, s as subsFor, h as subscribeBatchWindow, t as timerFor } from '../index-Cberb5Rr.js';
4
+ export { a as FanOutConfig, b as FanOutDone, c as FanOutFailed, d as FanOutPorts, F as FanOutState, e as createFanOut, i as initFanOut, f as isComplete } from '../index-Cx0F2M34.js';
5
+ export { E as EndedRun, M as MonitoredRunCmd, b as MonitoredRunConfig, a as MonitoredRunState, c as MonitoredRunTimerMsg, R as RunFailure, S as StageResult, d as createMonitoredRun, l as liftRun } from '../index-BOrsbdAf.js';
6
6
  import { RetryState, AnyRetryPolicy, RetryPolicy } from '../retry-backoff/index.js';
7
7
  import { I as IdempotencyStore } from '../index-Bc40JWVl.js';
8
- import { a as DeadlineSub, T as TtlCache } from '../index-Xufl55W8.js';
9
- import { f as CircuitConfig, l as RateLimitConfig, m as DeadlineConfig, b as ResilientTimerMsg } from '../index-Cou86-GX.js';
8
+ import { a as DeadlineSub, T as TtlCache } from '../index-DaX_P35Q.js';
9
+ import { f as CircuitConfig, l as RateLimitConfig, m as DeadlineConfig, b as ResilientTimerMsg } from '../index-q1PoukOZ.js';
10
10
  import { PaginatedWalkState, PaginatedWalkTimerMsg, FetchPageCmd, PageErrMsg, PageOkMsg } from '../paginate/index.js';
11
- import { Q as QueueItem } from '../index-7vV8xmsD.js';
12
- export { E as EnqueueInput } from '../index-7vV8xmsD.js';
13
- import { D as DeliveryId, E as EffectLedgerEvent } from '../durable-effects-7MTK_jnj.js';
14
- export { a as EffectConfirmed, b as EffectOwed, e as emptyLedger } from '../durable-effects-7MTK_jnj.js';
11
+ import { Q as QueueItem } from '../index-CcrKLtse.js';
12
+ export { E as EnqueueInput } from '../index-CcrKLtse.js';
13
+ import { D as DeliveryId, E as EffectLedgerEvent } from '../durable-effects-CNaw97Be.js';
14
+ export { a as EffectConfirmed, b as EffectOwed, e as emptyLedger } from '../durable-effects-CNaw97Be.js';
15
15
  export { D as Debounced, d as debounce } from '../index-DHSUmQTR.js';
16
- export { b as SnapshotSavedMsg, S as SnapshotWriteCmd } from '../index-CjFDUBeq.js';
16
+ export { b as SnapshotSavedMsg, S as SnapshotWriteCmd } from '../index-CWmsXNdX.js';
17
17
  import '@standard-schema/spec';
18
- import '../types-LxZxGYda.js';
18
+ import '../types-DPm5YCDQ.js';
19
19
 
20
20
  /**
21
21
  * internal/flow/await-terminal — run a ONE-SHOT / decision-procedure machine to a
@@ -1,21 +1,21 @@
1
- import { createPaginatedWalk, PAGE_KEY } from '../chunk-NSIAORRY.js';
2
- export { addItem, batchWindowExpired, createBatchWindow, initBatchWindow, onWindow, subsFor, subscribeBatchWindow, timerFor } from '../chunk-MVZS5FDM.js';
1
+ import { createPaginatedWalk, PAGE_KEY } from '../chunk-OYR7ENKU.js';
2
+ export { addItem, batchWindowExpired, createBatchWindow, initBatchWindow, onWindow, subsFor, subscribeBatchWindow, timerFor } from '../chunk-DFUEAA6L.js';
3
3
  export { debounce } from '../chunk-LFZUK6J2.js';
4
4
  import { pendingEffectsLedger, foldLedger, survivingEffects } from '../chunk-6IQPODUF.js';
5
5
  export { emptyLedger } from '../chunk-6IQPODUF.js';
6
- export { createMonitoredRun, liftRun } from '../chunk-7MGXQZPW.js';
7
- import '../chunk-CIHSHLQX.js';
6
+ export { createMonitoredRun, liftRun } from '../chunk-4PXNZ5UY.js';
7
+ import '../chunk-4NTCPTNQ.js';
8
8
  export { createFanOut, initFanOut, isComplete } from '../chunk-QNGYQMZB.js';
9
9
  import { idempotencyMemory } from '../chunk-PR6TB3BL.js';
10
10
  import { queueAdapter } from '../chunk-TXN2KFHF.js';
11
- import '../chunk-6NG4V5SB.js';
11
+ import '../chunk-6XBEYZME.js';
12
12
  import { asRng, defaultRetryPolicy, initRetry, recordFailure, shouldRetry, nextDelayMs } from '../chunk-VBDU4JL6.js';
13
13
  import { undefinedOnly, unchecked } from '../chunk-4LPY67E4.js';
14
- import { deadlineSub, initCache, get, set } from '../chunk-IVJP3GKJ.js';
15
- import { run } from '../chunk-WT5PBPLB.js';
16
- import '../chunk-5XU6ZJO2.js';
17
- import '../chunk-GOX2CYIM.js';
18
- import { Cmd } from '../chunk-CH5KTOEZ.js';
14
+ import { deadlineSub, initCache, get, set } from '../chunk-GWWCCSDH.js';
15
+ import { run } from '../chunk-QWIPH4YH.js';
16
+ import '../chunk-KWNCM6XM.js';
17
+ import '../chunk-C4U5D5HP.js';
18
+ import { Cmd } from '../chunk-K4ETBNKS.js';
19
19
 
20
20
  // src/internal/flow/await-terminal/index.ts
21
21
  var TerminalTimeoutError = class extends Error {
@@ -1,9 +1,9 @@
1
1
  import { I as IdempotencyStore } from '../index-Bc40JWVl.js';
2
2
  export { a as IdempotencyEntry, e as evictExpired, i as initStore, r as recall, b as remember, s as seen } from '../index-Bc40JWVl.js';
3
- import { c as CmdOf, b as CmdDef } from '../core-BbgtiXdg.js';
4
- import { Q as QueueItem } from '../index-7vV8xmsD.js';
3
+ import { c as CmdOf, b as CmdDef } from '../core-rDbOaJTN.js';
4
+ import { Q as QueueItem } from '../index-CcrKLtse.js';
5
5
  import '@standard-schema/spec';
6
- import '../runtime-types-CiVpC0HN.js';
6
+ import '../runtime-types-B62Ucnxr.js';
7
7
 
8
8
  /**
9
9
  * A cached intake entry: either a key whose work is still in flight
@@ -1,8 +1,8 @@
1
- export { createIntake, intakeProcessDef, intakeReplayDef } from '../chunk-MYNLY3HP.js';
1
+ export { createIntake, intakeProcessDef, intakeReplayDef } from '../chunk-OPH6Y4UT.js';
2
2
  export { evictExpired, initStore, recall, remember, seen } from '../chunk-PR6TB3BL.js';
3
3
  import '../chunk-TXN2KFHF.js';
4
4
  import '../chunk-4LPY67E4.js';
5
- import '../chunk-GOX2CYIM.js';
6
- import '../chunk-CH5KTOEZ.js';
5
+ import '../chunk-C4U5D5HP.js';
6
+ import '../chunk-K4ETBNKS.js';
7
7
  //# sourceMappingURL=index.js.map
8
8
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
- import { b as CmdDef, T as TimerDeps, C as Cmd } from './core-BbgtiXdg.js';
2
- import { S as SnapshotWriteCmd, a as SnapshotState, b as SnapshotSavedMsg } from './index-CjFDUBeq.js';
3
- import { D as DeadlineExceeded, a as DeadlineSub } from './index-Xufl55W8.js';
4
- import { Q as QueueItem } from './index-7vV8xmsD.js';
1
+ import { b as CmdDef, T as TimerDeps, C as Cmd } from './core-rDbOaJTN.js';
2
+ import { S as SnapshotWriteCmd, a as SnapshotState, b as SnapshotSavedMsg } from './index-CWmsXNdX.js';
3
+ import { D as DeadlineExceeded, a as DeadlineSub } from './index-DaX_P35Q.js';
4
+ import { Q as QueueItem } from './index-CcrKLtse.js';
5
5
 
6
6
  /**
7
7
  * The monitored-run knob. EVERY field is optional:
@@ -1,4 +1,4 @@
1
- import { B as BootingRuntime } from './runtime-types-CiVpC0HN.js';
1
+ import { B as BootingRuntime } from './runtime-types-B62Ucnxr.js';
2
2
 
3
3
  /**
4
4
  * A recorded run, sufficient to reproduce it via `../trace-replay`.
@@ -1,4 +1,4 @@
1
- import { c as CmdOf, b as CmdDef, e as SettledOk, f as SettledErr, g as TaggedError, C as Cmd } from './core-BbgtiXdg.js';
1
+ import { c as CmdOf, b as CmdDef, e as SettledOk, f as SettledErr, g as TaggedError, C as Cmd } from './core-rDbOaJTN.js';
2
2
 
3
3
  /**
4
4
  * The snapshot knob.
@@ -1,5 +1,5 @@
1
- import { C as Cmd, T as TimerDeps, d as Subscribe } from './core-BbgtiXdg.js';
2
- import { D as DeadlineExceeded, a as DeadlineSub, b as DeadlinesSub } from './index-Xufl55W8.js';
1
+ import { C as Cmd, T as TimerDeps, d as Subscribe } from './core-rDbOaJTN.js';
2
+ import { D as DeadlineExceeded, a as DeadlineSub, b as DeadlinesSub } from './index-DaX_P35Q.js';
3
3
 
4
4
  /**
5
5
  * internal/flow/batch-window — coalesce a stream of items into size- or
@@ -1,4 +1,4 @@
1
- import { S as Store } from './runtime-types-CiVpC0HN.js';
1
+ import { S as Store } from './runtime-types-B62Ucnxr.js';
2
2
 
3
3
  /**
4
4
  * internal/work-queue — substrate-agnostic work-queue lifecycle on `Store<S>`.
@@ -1,5 +1,5 @@
1
- import { C as Cmd, P as Port } from './core-BbgtiXdg.js';
2
- import { Q as QueueItem } from './index-7vV8xmsD.js';
1
+ import { C as Cmd, P as Port } from './core-rDbOaJTN.js';
2
+ import { Q as QueueItem } from './index-CcrKLtse.js';
3
3
 
4
4
  /**
5
5
  * internal/flow/fan-out — scatter-gather over a bounded-concurrency work list.
@@ -1,5 +1,5 @@
1
- import { n as SubId, S as Sub, o as DepKeyedSub, h as Dispose, T as TimerDeps } from './core-BbgtiXdg.js';
2
- import { S as SubscribeHandler } from './types-LxZxGYda.js';
1
+ import { m as SubId, S as Sub, n as DepKeyedSub, h as Dispose, T as TimerDeps } from './core-rDbOaJTN.js';
2
+ import { S as SubscribeHandler } from './types-DPm5YCDQ.js';
3
3
 
4
4
  /**
5
5
  * internal/resilience/deadline — a one-shot Sub that fires when an ABSOLUTE wall-clock
@@ -1,6 +1,6 @@
1
- import { c as CmdOf, b as CmdDef, g as TaggedError, r as MalformedResult, T as TimerDeps, C as Cmd } from './core-BbgtiXdg.js';
1
+ import { c as CmdOf, b as CmdDef, g as TaggedError, q as MalformedResult, T as TimerDeps, C as Cmd } from './core-rDbOaJTN.js';
2
2
  import { RetryState, AnyRetryPolicy } from './retry-backoff/index.js';
3
- import { T as TtlCache, D as DeadlineExceeded, a as DeadlineSub } from './index-Xufl55W8.js';
3
+ import { T as TtlCache, D as DeadlineExceeded, a as DeadlineSub } from './index-DaX_P35Q.js';
4
4
 
5
5
  /**
6
6
  * @packageDocumentation
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { B as BootingRuntime, R as Runtime } from './runtime-types-CiVpC0HN.js';
2
- export { b as BootedRunHandle, d as Branded, C as CtxArg, D as DispatchDiscardedError, e as DispatchSettle, f as DisposeTimeoutNotice, g as DriveFailedError, h as DriveStalledError, E as EngineRun, i as FencedRead, F as FencedStore, j as FoldRefusal, I as IdentityDropNotice, M as MachineTypes, O as OnError, P as PortNameCollisionError, Q as QuiescenceTimeoutError, c as RunHandle, k as RunOptions, l as RuntimeDiscardNotice, m as RuntimeDiscardedError, n as RuntimeErrorContext, o as RuntimeErrorPhase, p as RuntimeRef, q as Schema, S as Store, r as StoreConflictError, a as Supervision, s as SupervisionStrategy, t as TelemetryEvent, T as TelemetrySink, _ as __resetPortRegistry, u as absurd, v as asReducer, w as defineMachine, x as definePort, y as isFencedStore, z as noop, A as replay, G as schemaMigrate, H as tryApplyCell, J as tryFoldMsgs, K as tryInterpret, L as wrapDetached } from './runtime-types-CiVpC0HN.js';
3
- import { C as Cmd, S as Sub, M as Machine, P as Port, o as DepKeyedSub, h as Dispose } from './core-BbgtiXdg.js';
4
- export { A as AnyCmdDef, w as AsyncSchemaError, a as BuiltinSub, B as BuiltinSubType, b as CmdDef, x as CmdInput, c as CmdOf, v as CmdValue, D as DeclaredErrorsOf, u as ErrOf, E as ErrorsOf, y as ExhaustiveTransitions, z as Identity, p as Interpret, F as InterpretArg, G as InterpretCell, I as InterpretDetached, H as MachineShape, r as MalformedResult, N as NoCellError, J as NoCtx, t as OkOf, O as OkOfCmd, l as Outcome, K as OutcomeContractError, L as OutcomeHelpers, m as PortEmitter, i as Reducer, R as RunHandlers, j as Settled, f as SettledErr, e as SettledOk, n as SubId, d as Subscribe, Q as SubscribeArg, V as SyncReturn, s as Tagged, g as TaggedError, T as TimerDeps, q as TimerSub, k as Transitions, X as UndeclaredFailureError, U as UpdateForm, W as Wired, Y as acceptedTypes, Z as acceptsOf, _ as applyCell, $ as applyCellChecked, a0 as describeMachine, a1 as detectUpdateForm, a2 as foldMsgs, a3 as foldUpdates, a4 as formOf, a5 as msgKeysOf, a6 as structuralHash, a7 as subId, a8 as subIdOf } from './core-BbgtiXdg.js';
5
- import { S as SubscribeHandler } from './types-LxZxGYda.js';
1
+ import { B as BootingRuntime, R as Runtime } from './runtime-types-B62Ucnxr.js';
2
+ export { b as BootedRunHandle, d as Branded, C as CtxArg, D as DispatchDiscardedError, e as DispatchSettle, f as DisposeTimeoutNotice, g as DriveFailedError, h as DriveStalledError, E as EngineRun, i as FencedRead, F as FencedStore, j as FoldRefusal, I as IdentityDropNotice, M as MachineTypes, O as OnError, P as PortNameCollisionError, Q as QuiescenceTimeoutError, c as RunHandle, k as RunOptions, l as RuntimeDiscardNotice, m as RuntimeDiscardedError, n as RuntimeErrorContext, o as RuntimeErrorPhase, p as RuntimeRef, q as Schema, S as Store, r as StoreConflictError, a as Supervision, s as SupervisionStrategy, t as TelemetryEvent, T as TelemetrySink, _ as __resetPortRegistry, u as absurd, v as asReducer, w as defineMachine, x as definePort, y as isFencedStore, z as noop, A as replay, G as schemaMigrate, H as tryApplyCell, J as tryFoldMsgs, K as tryInterpret, L as wrapDetached } from './runtime-types-B62Ucnxr.js';
3
+ import { C as Cmd, S as Sub, M as Machine, P as Port, n as DepKeyedSub, h as Dispose } from './core-rDbOaJTN.js';
4
+ export { A as AnyCmdDef, v as AsyncSchemaError, a as BuiltinSub, B as BuiltinSubType, b as CmdDef, w as CmdInput, c as CmdOf, u as CmdValue, D as DeclaredErrorsOf, t as ErrOf, E as ErrorsOf, x as ExhaustiveTransitions, y as Identity, o as Interpret, z as InterpretArg, F as InterpretCell, I as InterpretDetached, G as MachineShape, q as MalformedResult, N as NoCellError, J as NoCtx, s as OkOf, O as OkOfCmd, l as Outcome, K as OutcomeContractError, L as OutcomeHelpers, Q as PortEmitter, i as Reducer, R as RunHandlers, j as Settled, f as SettledErr, e as SettledOk, m as SubId, d as Subscribe, V as SubscribeArg, X as SyncReturn, r as Tagged, g as TaggedError, T as TimerDeps, p as TimerSub, k as Transitions, Y as UndeclaredFailureError, U as UpdateForm, W as Wired, Z as acceptedTypes, _ as acceptsOf, $ as applyCell, a0 as applyCellChecked, a1 as describeMachine, a2 as detectUpdateForm, a3 as foldMsgs, a4 as foldUpdates, a5 as formOf, a6 as msgKeysOf, a7 as structuralHash, a8 as subId, a9 as subIdOf } from './core-rDbOaJTN.js';
5
+ import { S as SubscribeHandler } from './types-DPm5YCDQ.js';
6
6
  import '@standard-schema/spec';
7
7
 
8
8
  /**
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { NO_ACK, ack, defineListener, defineManagedResource, fromBroadcastChannel, fromEventSource, fromEventTarget, fromInterval, fromPort, fromReconnectingWebSocket, fromTimeout, fromTransport, fromWebSocket, historyTracker, initAck, liftSlice, nextSeq, partitionByAck, readInOrder, reconcile, tagSeq } from './chunk-GOX2CYIM.js';
2
- export { AsyncSchemaError, Cmd, DispatchDiscardedError, DisposeTimeoutNotice, DriveFailedError, DriveStalledError, IdentityDropNotice, NoCellError, Outcome, OutcomeContractError, PortNameCollisionError, QuiescenceTimeoutError, RuntimeDiscardNotice, RuntimeDiscardedError, StoreConflictError, UndeclaredFailureError, __resetPortRegistry, absurd, acceptedTypes, acceptsOf, applyCell, applyCellChecked, asReducer, defineMachine, definePort, describeMachine, detectUpdateForm, foldMsgs, foldUpdates, formOf, isFencedStore, msgKeysOf, noop, replay, schemaMigrate, structuralHash, subId, subIdOf, tryApplyCell, tryFoldMsgs, tryInterpret, wrapDetached } from './chunk-CH5KTOEZ.js';
1
+ export { NO_ACK, ack, defineListener, defineManagedResource, fromBroadcastChannel, fromEventSource, fromEventTarget, fromInterval, fromPort, fromReconnectingWebSocket, fromTimeout, fromTransport, fromWebSocket, historyTracker, initAck, liftSlice, nextSeq, partitionByAck, readInOrder, reconcile, tagSeq } from './chunk-C4U5D5HP.js';
2
+ export { AsyncSchemaError, Cmd, DispatchDiscardedError, DisposeTimeoutNotice, DriveFailedError, DriveStalledError, IdentityDropNotice, NoCellError, Outcome, OutcomeContractError, PortNameCollisionError, QuiescenceTimeoutError, RuntimeDiscardNotice, RuntimeDiscardedError, StoreConflictError, UndeclaredFailureError, __resetPortRegistry, absurd, acceptedTypes, acceptsOf, applyCell, applyCellChecked, asReducer, defineMachine, definePort, describeMachine, detectUpdateForm, foldMsgs, foldUpdates, formOf, isFencedStore, msgKeysOf, noop, replay, schemaMigrate, structuralHash, subId, subIdOf, tryApplyCell, tryFoldMsgs, tryInterpret, wrapDetached } from './chunk-K4ETBNKS.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,13 +1,13 @@
1
- import { R as RunCmd, F as FailMsg, S as SucceedMsg, a as ResilientState, b as ResilientTimerMsg } from '../index-Cou86-GX.js';
2
- import { l as Outcome, b as CmdDef, T as TimerDeps, C as Cmd, o as DepKeyedSub, q as TimerSub } from '../core-BbgtiXdg.js';
1
+ import { R as RunCmd, F as FailMsg, S as SucceedMsg, a as ResilientState, b as ResilientTimerMsg } from '../index-q1PoukOZ.js';
2
+ import { l as Outcome, b as CmdDef, T as TimerDeps, C as Cmd, n as DepKeyedSub, p as TimerSub } from '../core-rDbOaJTN.js';
3
3
  import { RetryPolicy } from '../retry-backoff/index.js';
4
- import { D as DeadlineExceeded, a as DeadlineSub, T as TtlCache, C as CacheEvictionSub, f as CacheEvictMsg } from '../index-Xufl55W8.js';
5
- import { S as SubscribeHandler } from '../types-LxZxGYda.js';
6
- import { B as BatchWindow, a as BatchWindowSub, b as BatchWindowExpired } from '../index-_dOR3xqA.js';
7
- import { F as FanOutState } from '../index-CkFYA9Y6.js';
4
+ import { D as DeadlineExceeded, a as DeadlineSub, T as TtlCache, C as CacheEvictionSub, f as CacheEvictMsg } from '../index-DaX_P35Q.js';
5
+ import { S as SubscribeHandler } from '../types-DPm5YCDQ.js';
6
+ import { B as BatchWindow, a as BatchWindowSub, b as BatchWindowExpired } from '../index-Cberb5Rr.js';
7
+ import { F as FanOutState } from '../index-Cx0F2M34.js';
8
8
  import '@standard-schema/spec';
9
- import '../index-7vV8xmsD.js';
10
- import '../runtime-types-CiVpC0HN.js';
9
+ import '../index-CcrKLtse.js';
10
+ import '../runtime-types-B62Ucnxr.js';
11
11
 
12
12
  /**
13
13
  * @packageDocumentation
package/dist/jev/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { createBatchWindow } from '../chunk-MVZS5FDM.js';
1
+ import { createBatchWindow } from '../chunk-DFUEAA6L.js';
2
2
  import '../chunk-LFZUK6J2.js';
3
3
  import { describeError } from '../chunk-G5E74IJB.js';
4
4
  import { createFanOut } from '../chunk-QNGYQMZB.js';
5
5
  import '../chunk-TXN2KFHF.js';
6
- import { runCmdDef, createResilientCall } from '../chunk-6NG4V5SB.js';
6
+ import { runCmdDef, createResilientCall } from '../chunk-6XBEYZME.js';
7
7
  import '../chunk-VBDU4JL6.js';
8
8
  import '../chunk-4LPY67E4.js';
9
- import { initCache, has, set, evictExpired, cacheEvictionSub, cacheEvictionSubscribe, get } from '../chunk-IVJP3GKJ.js';
10
- import { liftSlice, readInOrder } from '../chunk-GOX2CYIM.js';
11
- import { Outcome } from '../chunk-CH5KTOEZ.js';
9
+ import { initCache, has, set, evictExpired, cacheEvictionSub, cacheEvictionSubscribe, get } from '../chunk-GWWCCSDH.js';
10
+ import { liftSlice, readInOrder } from '../chunk-C4U5D5HP.js';
11
+ import { Outcome } from '../chunk-K4ETBNKS.js';
12
12
 
13
13
  // src/internal/jev/protocol/index.ts
14
14
  var jevQuestions = (questions) => questions;
@@ -1,9 +1,9 @@
1
- import { C as Cmd, s as Tagged, p as Interpret, A as AnyCmdDef, c as CmdOf, b as CmdDef, j as Settled, t as OkOf, u as ErrOf, r as MalformedResult, l as Outcome, v as CmdValue, m as PortEmitter, g as TaggedError, M as Machine, d as Subscribe } from './core-BbgtiXdg.js';
2
- import { a as MonitoredRunState, R as RunFailure, M as MonitoredRunCmd } from './index-Bz5Rh9Ga.js';
3
- import { R as RunCmd, S as SucceedMsg, F as FailMsg, a as ResilientState, r as RunCmdDef } from './index-Cou86-GX.js';
4
- import { D as DeadlineExceeded, a as DeadlineSub, b as DeadlinesSub } from './index-Xufl55W8.js';
1
+ import { C as Cmd, r as Tagged, o as Interpret, A as AnyCmdDef, c as CmdOf, b as CmdDef, j as Settled, s as OkOf, t as ErrOf, q as MalformedResult, l as Outcome, u as CmdValue, H as HandlerCtx, g as TaggedError, M as Machine, d as Subscribe } from './core-rDbOaJTN.js';
2
+ import { a as MonitoredRunState, R as RunFailure, M as MonitoredRunCmd } from './index-BOrsbdAf.js';
3
+ import { R as RunCmd, S as SucceedMsg, F as FailMsg, a as ResilientState, r as RunCmdDef } from './index-q1PoukOZ.js';
4
+ import { D as DeadlineExceeded, a as DeadlineSub, b as DeadlinesSub } from './index-DaX_P35Q.js';
5
5
  import { M as MsgType, a as MsgTypeValue } from './protocol-ClRZBhHQ.js';
6
- import { F as FanOutState } from './index-CkFYA9Y6.js';
6
+ import { F as FanOutState } from './index-Cx0F2M34.js';
7
7
  import { RetryPolicy, AnyRetryPolicy } from './retry-backoff/index.js';
8
8
  import { StandardSchemaV1 } from '@standard-schema/spec';
9
9
 
@@ -1078,7 +1078,7 @@ type ToolConstructors<Ok, E extends Tagged> = {
1078
1078
  * tag does not compile. `Ctx` is whatever the handler annotates its `ctx`
1079
1079
  * parameter with; tea does no dependency injection (ADR 0020).
1080
1080
  */
1081
- type ToolHandler<Args, Ok, E extends Tagged, Ctx> = (args: Args, ctx: Ctx & PortEmitter, settle: ToolConstructors<Ok, E>) => Promise<Outcome<Ok, E>>;
1081
+ type ToolHandler<Args, Ok, E extends Tagged, Ctx> = (args: Args, ctx: HandlerCtx<Ctx>, settle: ToolConstructors<Ok, E>) => Promise<Outcome<Ok, E>>;
1082
1082
  /**
1083
1083
  * What `tool()` returns: the `Cmd.define`d constructor (so `Settled<typeof t>`
1084
1084
  * / `CmdOf<typeof t>` read it like any def) plus the colocated `interpret` handler,
@@ -1100,7 +1100,7 @@ type ToolDef<Name extends string, Args, Ok, E extends Tagged, Ctx> = CmdDef<Name
1100
1100
  * The colocated handler, as an interpret cell: it returns the tool's
1101
1101
  * outcome, and the engine mints `<name>_ok` / `<name>_err` from it.
1102
1102
  */
1103
- readonly interpret: (cmd: CmdValue<Name, ToolInput<Args>, Ok, E>, ctx: Ctx & PortEmitter) => Promise<Outcome<Ok, E>>;
1103
+ readonly interpret: (cmd: CmdValue<Name, ToolInput<Args>, Ok, E>, ctx: HandlerCtx<Ctx>) => Promise<Outcome<Ok, E>>;
1104
1104
  /** Phantom — the ctx the handler reads. Never assigned. */
1105
1105
  readonly __ctx?: Ctx;
1106
1106
  };
@@ -1,4 +1,4 @@
1
- import { C as Cmd, S as Sub, M as Machine } from '../core-BbgtiXdg.js';
1
+ import { C as Cmd, S as Sub, M as Machine } from '../core-rDbOaJTN.js';
2
2
  import '@standard-schema/spec';
3
3
 
4
4
  /**
@@ -1,5 +1,5 @@
1
- import '../chunk-GOX2CYIM.js';
2
- import { formOf, subEntriesOf, desiredSub } from '../chunk-CH5KTOEZ.js';
1
+ import '../chunk-C4U5D5HP.js';
2
+ import { formOf, subEntriesOf, desiredSub } from '../chunk-K4ETBNKS.js';
3
3
 
4
4
  // src/machine-viz/mermaid-id.ts
5
5
  function safeId(raw) {
@@ -1,5 +1,5 @@
1
- import { S as Store, F as FencedStore } from '../runtime-types-CiVpC0HN.js';
2
- import '../core-BbgtiXdg.js';
1
+ import { S as Store, F as FencedStore } from '../runtime-types-B62Ucnxr.js';
2
+ import '../core-rDbOaJTN.js';
3
3
  import '@standard-schema/spec';
4
4
 
5
5
  /**
package/dist/mem/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import '../chunk-GOX2CYIM.js';
2
- import { StoreConflictError } from '../chunk-CH5KTOEZ.js';
1
+ import '../chunk-C4U5D5HP.js';
2
+ import { StoreConflictError } from '../chunk-K4ETBNKS.js';
3
3
 
4
4
  // src/mem/index.ts
5
5
  function memoryStore(initial, parse = (raw) => raw, options = {}) {
@@ -1,6 +1,6 @@
1
1
  import WebSocket from 'ws';
2
- import { S as Store, F as FencedStore } from '../runtime-types-CiVpC0HN.js';
3
- import { S as Sub, h as Dispose } from '../core-BbgtiXdg.js';
2
+ import { S as Store, F as FencedStore } from '../runtime-types-B62Ucnxr.js';
3
+ import { S as Sub, h as Dispose } from '../core-rDbOaJTN.js';
4
4
  import '@standard-schema/spec';
5
5
 
6
6
  /**
@@ -1,5 +1,5 @@
1
- import { dispatchIfPresent } from '../chunk-GOX2CYIM.js';
2
- import { StoreConflictError } from '../chunk-CH5KTOEZ.js';
1
+ import { dispatchIfPresent } from '../chunk-C4U5D5HP.js';
2
+ import { StoreConflictError } from '../chunk-K4ETBNKS.js';
3
3
  import { mkdir, writeFile, rename, unlink, open, readFile } from 'fs/promises';
4
4
  import { createRequire } from 'module';
5
5
  import { dirname, join } from 'path';
@@ -1,9 +1,9 @@
1
- import { C as Cmd, b as CmdDef, T as TimerDeps } from '../core-BbgtiXdg.js';
1
+ import { C as Cmd, b as CmdDef, T as TimerDeps } from '../core-rDbOaJTN.js';
2
2
  import { RetryPolicy } from '../retry-backoff/index.js';
3
- import { a as DeadlineSub } from '../index-Xufl55W8.js';
4
- import { a as ResilientState, b as ResilientTimerMsg, R as RunCmd, F as FailMsg, S as SucceedMsg, f as CircuitConfig, l as RateLimitConfig, m as DeadlineConfig } from '../index-Cou86-GX.js';
3
+ import { a as DeadlineSub } from '../index-DaX_P35Q.js';
4
+ import { a as ResilientState, b as ResilientTimerMsg, R as RunCmd, F as FailMsg, S as SucceedMsg, f as CircuitConfig, l as RateLimitConfig, m as DeadlineConfig } from '../index-q1PoukOZ.js';
5
5
  import '@standard-schema/spec';
6
- import '../types-LxZxGYda.js';
6
+ import '../types-DPm5YCDQ.js';
7
7
 
8
8
  /**
9
9
  * internal/paginate/paginator — the cursor/offset/page-token walk loop as pure
@@ -1,9 +1,9 @@
1
- export { PAGE_KEY, createPaginatedWalk, defaultPaginatorPolicy, drain, initPaginator, isDone, liftWalk, recordPage, resume, start } from '../chunk-NSIAORRY.js';
2
- import '../chunk-6NG4V5SB.js';
1
+ export { PAGE_KEY, createPaginatedWalk, defaultPaginatorPolicy, drain, initPaginator, isDone, liftWalk, recordPage, resume, start } from '../chunk-OYR7ENKU.js';
2
+ import '../chunk-6XBEYZME.js';
3
3
  import '../chunk-VBDU4JL6.js';
4
4
  import '../chunk-4LPY67E4.js';
5
- import '../chunk-IVJP3GKJ.js';
6
- import '../chunk-GOX2CYIM.js';
7
- import '../chunk-CH5KTOEZ.js';
5
+ import '../chunk-GWWCCSDH.js';
6
+ import '../chunk-C4U5D5HP.js';
7
+ import '../chunk-K4ETBNKS.js';
8
8
  //# sourceMappingURL=index.js.map
9
9
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
- import { B as BootingRuntime } from '../runtime-types-CiVpC0HN.js';
2
- import { C as Cmd, S as Sub, M as Machine } from '../core-BbgtiXdg.js';
3
- import { T as Trace, R as RecorderOptions } from '../index-DU6JpQ8G.js';
1
+ import { B as BootingRuntime } from '../runtime-types-B62Ucnxr.js';
2
+ import { C as Cmd, S as Sub, M as Machine } from '../core-rDbOaJTN.js';
3
+ import { T as Trace, R as RecorderOptions } from '../index-B_BxplWi.js';
4
4
  import '@standard-schema/spec';
5
5
 
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { recorder, deepEqual } from '../chunk-BCTEOVOU.js';
2
- import '../chunk-GOX2CYIM.js';
3
- import { replay } from '../chunk-CH5KTOEZ.js';
1
+ import { recorder, deepEqual } from '../chunk-LYVOGOBC.js';
2
+ import '../chunk-C4U5D5HP.js';
3
+ import { replay } from '../chunk-K4ETBNKS.js';
4
4
  import '../chunk-HWVW4AXC.js';
5
5
 
6
6
  // src/parity/index.ts
@@ -1,5 +1,5 @@
1
1
  import * as fc from 'fast-check';
2
- import { C as Cmd, S as Sub, M as Machine, i as Reducer, k as Transitions, U as UpdateForm } from '../core-BbgtiXdg.js';
2
+ import { C as Cmd, S as Sub, M as Machine, i as Reducer, k as Transitions, U as UpdateForm } from '../core-rDbOaJTN.js';
3
3
  import '@standard-schema/spec';
4
4
 
5
5
  /**
package/dist/pbt/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import '../chunk-GOX2CYIM.js';
2
- import { replay, applyCell, msgKeysOf } from '../chunk-CH5KTOEZ.js';
1
+ import '../chunk-C4U5D5HP.js';
2
+ import { replay, applyCell, msgKeysOf } from '../chunk-K4ETBNKS.js';
3
3
  import * as fc from 'fast-check';
4
4
 
5
5
  // src/pbt/arbitraries/ctx.ts