@demlik/tea 0.20.0 → 0.22.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 (130) hide show
  1. package/README.md +11 -2
  2. package/dist/agent/index.d.ts +36 -23
  3. package/dist/agent/index.js +12 -10
  4. package/dist/{chunk-UHAQ4PI6.js → chunk-2A5XTKQQ.js} +205 -59
  5. package/dist/chunk-2A5XTKQQ.js.map +1 -0
  6. package/dist/{chunk-JAKM53JF.js → chunk-7K7SEYCH.js} +16 -15
  7. package/dist/chunk-7K7SEYCH.js.map +1 -0
  8. package/dist/{chunk-RKVUVALV.js → chunk-A3QPMX5M.js} +31 -9
  9. package/dist/chunk-A3QPMX5M.js.map +1 -0
  10. package/dist/{chunk-DVNXEB7V.js → chunk-BVFS3ICC.js} +3 -3
  11. package/dist/chunk-BVFS3ICC.js.map +1 -0
  12. package/dist/{chunk-FTCYY2DO.js → chunk-CPE5ZQXQ.js} +3 -3
  13. package/dist/{chunk-FTCYY2DO.js.map → chunk-CPE5ZQXQ.js.map} +1 -1
  14. package/dist/chunk-DEAPNMKO.js +11 -0
  15. package/dist/chunk-DEAPNMKO.js.map +1 -0
  16. package/dist/{chunk-XWIE5V7R.js → chunk-ETRNSJCR.js} +4 -4
  17. package/dist/{chunk-XWIE5V7R.js.map → chunk-ETRNSJCR.js.map} +1 -1
  18. package/dist/chunk-FXWDDNGD.js +98 -0
  19. package/dist/chunk-FXWDDNGD.js.map +1 -0
  20. package/dist/chunk-GFGOQIEC.js +10 -0
  21. package/dist/chunk-GFGOQIEC.js.map +1 -0
  22. package/dist/{chunk-2R62Q5UK.js → chunk-IAHEYPYJ.js} +3 -3
  23. package/dist/{chunk-2R62Q5UK.js.map → chunk-IAHEYPYJ.js.map} +1 -1
  24. package/dist/{chunk-NGYFBD5G.js → chunk-J5JNLXO7.js} +3 -3
  25. package/dist/{chunk-NGYFBD5G.js.map → chunk-J5JNLXO7.js.map} +1 -1
  26. package/dist/{chunk-72CN3VPY.js → chunk-NFOGYDRS.js} +5 -5
  27. package/dist/{chunk-72CN3VPY.js.map → chunk-NFOGYDRS.js.map} +1 -1
  28. package/dist/{chunk-A73IJ27X.js → chunk-R2YNDRGL.js} +3 -3
  29. package/dist/{chunk-A73IJ27X.js.map → chunk-R2YNDRGL.js.map} +1 -1
  30. package/dist/{chunk-5HVKDHY6.js → chunk-R5NXOPL2.js} +3 -3
  31. package/dist/{chunk-5HVKDHY6.js.map → chunk-R5NXOPL2.js.map} +1 -1
  32. package/dist/chunk-RMBZ7YH7.js +52 -0
  33. package/dist/chunk-RMBZ7YH7.js.map +1 -0
  34. package/dist/{chunk-AIXC33SE.js → chunk-SHXUSTHM.js} +62 -15
  35. package/dist/chunk-SHXUSTHM.js.map +1 -0
  36. package/dist/{chunk-TAKPC6SD.js → chunk-UGTC33VH.js} +4 -4
  37. package/dist/{chunk-TAKPC6SD.js.map → chunk-UGTC33VH.js.map} +1 -1
  38. package/dist/{chunk-EA47MI5Q.js → chunk-VH5MYJ2K.js} +4 -4
  39. package/dist/{chunk-EA47MI5Q.js.map → chunk-VH5MYJ2K.js.map} +1 -1
  40. package/dist/{chunk-2774I242.js → chunk-WZEDIUWR.js} +21 -20
  41. package/dist/chunk-WZEDIUWR.js.map +1 -0
  42. package/dist/{chunk-TGJLXZAU.js → chunk-ZRRET3RP.js} +11 -11
  43. package/dist/chunk-ZRRET3RP.js.map +1 -0
  44. package/dist/{core-CtvAyPpH.d.ts → core-DNDAEhO2.d.ts} +9 -12
  45. package/dist/devtools/index.d.ts +4 -4
  46. package/dist/do/index.d.ts +103 -38
  47. package/dist/do/index.js +40 -21
  48. package/dist/do/index.js.map +1 -1
  49. package/dist/{drive-loop-Dw1sGSsW.d.ts → drive-loop-DlOEv49c.d.ts} +2 -2
  50. package/dist/{durable-effects-Ump5lSdO.d.ts → durable-effects-wLWEdy9H.d.ts} +1 -1
  51. package/dist/effect/index.d.ts +121 -28
  52. package/dist/effect/index.js +45 -31
  53. package/dist/effect/index.js.map +1 -1
  54. package/dist/extension/index.d.ts +3 -3
  55. package/dist/extension/index.js +2 -2
  56. package/dist/extension/index.js.map +1 -1
  57. package/dist/flow/index.d.ts +17 -13
  58. package/dist/flow/index.js +15 -12
  59. package/dist/flow/index.js.map +1 -1
  60. package/dist/idempotency/index.d.ts +3 -3
  61. package/dist/idempotency/index.js +3 -3
  62. package/dist/{index-CrcoVfd_.d.ts → index-9P1PaXIV.d.ts} +2 -2
  63. package/dist/{index-D3NY3VCN.d.ts → index-BBLI2WWN.d.ts} +1 -1
  64. package/dist/{index-Dl71V7kt.d.ts → index-C1WhBZ6a.d.ts} +4 -5
  65. package/dist/{index-CKtEKGyp.d.ts → index-C92SgNWz.d.ts} +3 -3
  66. package/dist/{index-CZZ3HI-Z.d.ts → index-CAsUE_d1.d.ts} +4 -4
  67. package/dist/{index-EIgfl83J.d.ts → index-CO34esWT.d.ts} +2 -2
  68. package/dist/{index-Bk2hBUdK.d.ts → index-COeX9Bmz.d.ts} +11 -9
  69. package/dist/{index-CVU7SK3a.d.ts → index-Cg0QXnzf.d.ts} +2 -2
  70. package/dist/index.d.ts +9 -9
  71. package/dist/index.js +2 -2
  72. package/dist/jev/index.d.ts +15 -15
  73. package/dist/jev/index.js +5 -5
  74. package/dist/jev/index.js.map +1 -1
  75. package/dist/laws-DTtCDDlU.d.ts +135 -0
  76. package/dist/loop-DReKGV1X.d.ts +70 -0
  77. package/dist/{machine-Dtre2TmN.d.ts → machine-C0WhOAyB.d.ts} +7 -7
  78. package/dist/machine-viz/index.d.ts +1 -1
  79. package/dist/machine-viz/index.js +2 -2
  80. package/dist/mem/index.d.ts +4 -3
  81. package/dist/mem/index.js +2 -2
  82. package/dist/mem/index.js.map +1 -1
  83. package/dist/node/index.d.ts +57 -9
  84. package/dist/node/index.js +175 -68
  85. package/dist/node/index.js.map +1 -1
  86. package/dist/otel/index.d.ts +28 -12
  87. package/dist/otel/index.js +25 -21
  88. package/dist/otel/index.js.map +1 -1
  89. package/dist/paginate/index.d.ts +4 -4
  90. package/dist/paginate/index.js +5 -5
  91. package/dist/parity/index.d.ts +11 -15
  92. package/dist/parity/index.js +4 -9
  93. package/dist/parity/index.js.map +1 -1
  94. package/dist/pbt/index.d.ts +279 -67
  95. package/dist/pbt/index.js +299 -58
  96. package/dist/pbt/index.js.map +1 -1
  97. package/dist/persistence/index.d.ts +10 -12
  98. package/dist/persistence/index.js +4 -4
  99. package/dist/promise/index.d.ts +118 -21
  100. package/dist/promise/index.js +6 -4
  101. package/dist/react/index.d.ts +34 -21
  102. package/dist/react/index.js +271 -42
  103. package/dist/react/index.js.map +1 -1
  104. package/dist/resilience/index.d.ts +6 -6
  105. package/dist/resilience/index.js +5 -5
  106. package/dist/{run-fiBe7pOG.d.ts → run-Cnw4qXj2.d.ts} +105 -23
  107. package/dist/{runtime-types-DEluQgGO.d.ts → runtime-types-CP-ykwgf.d.ts} +157 -29
  108. package/dist/testing/effect/index.d.ts +162 -9
  109. package/dist/testing/effect/index.js +110 -10
  110. package/dist/testing/effect/index.js.map +1 -1
  111. package/dist/testing/index.d.ts +6 -8
  112. package/dist/testing/index.js +4 -24
  113. package/dist/testing/index.js.map +1 -1
  114. package/dist/testing/promise/index.d.ts +4 -4
  115. package/dist/testing/promise/index.js +5 -5
  116. package/dist/timing/index.d.ts +4 -4
  117. package/dist/timing/index.js +4 -4
  118. package/dist/{types-CXNzlbAg.d.ts → types-S53WDy_h.d.ts} +1 -1
  119. package/dist/work-queue/index.d.ts +4 -4
  120. package/dist/work-queue/index.js +2 -2
  121. package/package.json +19 -17
  122. package/dist/chunk-2774I242.js.map +0 -1
  123. package/dist/chunk-AIXC33SE.js.map +0 -1
  124. package/dist/chunk-DVNXEB7V.js.map +0 -1
  125. package/dist/chunk-HX3C6LDK.js +0 -34
  126. package/dist/chunk-HX3C6LDK.js.map +0 -1
  127. package/dist/chunk-JAKM53JF.js.map +0 -1
  128. package/dist/chunk-RKVUVALV.js.map +0 -1
  129. package/dist/chunk-TGJLXZAU.js.map +0 -1
  130. package/dist/chunk-UHAQ4PI6.js.map +0 -1
@@ -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 { a as CmdOf, b as CmdDef } from '../core-CtvAyPpH.js';
4
- import { Q as QueueItem } from '../index-D3NY3VCN.js';
3
+ import { a as CmdOf, b as CmdDef } from '../core-DNDAEhO2.js';
4
+ import { Q as QueueItem } from '../index-BBLI2WWN.js';
5
5
  import '@standard-schema/spec';
6
- import '../runtime-types-DEluQgGO.js';
6
+ import '../runtime-types-CP-ykwgf.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-NGYFBD5G.js';
1
+ export { createIntake, intakeProcessDef, intakeReplayDef } from '../chunk-J5JNLXO7.js';
2
2
  export { evictExpired, initStore, recall, remember, seen } from '../chunk-PR6TB3BL.js';
3
3
  import '../chunk-4LPY67E4.js';
4
4
  import '../chunk-TXN2KFHF.js';
5
- import '../chunk-DVNXEB7V.js';
6
- import '../chunk-RKVUVALV.js';
5
+ import '../chunk-BVFS3ICC.js';
6
+ import '../chunk-A3QPMX5M.js';
7
7
  //# sourceMappingURL=index.js.map
8
8
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import { C as Cmd, P as Port } from './core-CtvAyPpH.js';
2
- import { Q as QueueItem } from './index-D3NY3VCN.js';
1
+ import { C as Cmd, P as Port } from './core-DNDAEhO2.js';
2
+ import { Q as QueueItem } from './index-BBLI2WWN.js';
3
3
 
4
4
  /**
5
5
  * internal/flow/fan-out — scatter-gather over a bounded-concurrency work list.
@@ -1,4 +1,4 @@
1
- import { S as Store } from './runtime-types-DEluQgGO.js';
1
+ import { b as Store } from './runtime-types-CP-ykwgf.js';
2
2
 
3
3
  /**
4
4
  * internal/work-queue — substrate-agnostic work-queue lifecycle on `Store<S>`.
@@ -1,4 +1,4 @@
1
- import { B as BootingRuntime } from './runtime-types-DEluQgGO.js';
1
+ import { B as BootingRuntime } from './runtime-types-CP-ykwgf.js';
2
2
 
3
3
  /**
4
4
  * A recorded run, sufficient to reproduce it via `../trace-replay`.
@@ -11,10 +11,9 @@ import { B as BootingRuntime } from './runtime-types-DEluQgGO.js';
11
11
  */
12
12
  interface Trace<S, M> {
13
13
  /**
14
- * The initial state captured at the boot observe (the transition where
15
- * `msg === null`). Fed back to replay as `loaded` so `init(loaded, ctx)`
16
- * reproduces the exact starting point. `null` only if the recorder attached
17
- * AFTER boot (it missed the boot observe) — replay then re-runs fresh `init`.
14
+ * The post-init State captured by `onBoot`, used directly as the recorded
15
+ * replay's starting State. No init call is repeated. `null` marks a missing
16
+ * anchor in an older or incomplete trace; `replayTrace` refuses it.
18
17
  */
19
18
  readonly loaded: S | null;
20
19
  /** The ordered, non-null msgs as observed. The replay input sequence. */
@@ -1,6 +1,6 @@
1
- import { a as CmdOf, b as CmdDef, f as TaggedError, n as MalformedResult, T as TimerDeps, C as Cmd } from './core-CtvAyPpH.js';
1
+ import { a as CmdOf, b as CmdDef, f as TaggedError, o as MalformedResult, T as TimerDeps, C as Cmd } from './core-DNDAEhO2.js';
2
2
  import { RetryState, AnyRetryPolicy } from './retry-backoff/index.js';
3
- import { T as TtlCache, D as DeadlineExceeded, a as DeadlineSub } from './index-CVU7SK3a.js';
3
+ import { T as TtlCache, D as DeadlineExceeded, a as DeadlineSub } from './index-Cg0QXnzf.js';
4
4
 
5
5
  /**
6
6
  * @packageDocumentation
@@ -698,7 +698,7 @@ declare function createResilientCall<I, R, N extends string = DefaultResilientNa
698
698
  * host; consumers with a differently-named field spread by hand. Pure — a thin
699
699
  * record rebuild, no clock / RNG.
700
700
  *
701
- * The record rebuild itself is `liftSlice` from the root door (#231) — this
701
+ * The record rebuild itself is `liftSlice` from the root entry (#231) — this
702
702
  * stays as the named, pre-keyed convenience for the `state.resilience` field,
703
703
  * unchanged in name, signature and subpath.
704
704
  */
@@ -1,7 +1,7 @@
1
- import { b as CmdDef, T as TimerDeps, C as Cmd } from './core-CtvAyPpH.js';
2
- import { S as SnapshotWriteCmd, a as SnapshotState, b as SnapshotSavedMsg } from './index-Bk2hBUdK.js';
3
- import { D as DeadlineExceeded, a as DeadlineSub } from './index-CVU7SK3a.js';
4
- import { Q as QueueItem } from './index-D3NY3VCN.js';
1
+ import { b as CmdDef, T as TimerDeps, C as Cmd } from './core-DNDAEhO2.js';
2
+ import { S as SnapshotWriteCmd, a as SnapshotState, b as SnapshotSavedMsg } from './index-COeX9Bmz.js';
3
+ import { D as DeadlineExceeded, a as DeadlineSub } from './index-Cg0QXnzf.js';
4
+ import { Q as QueueItem } from './index-BBLI2WWN.js';
5
5
 
6
6
  /**
7
7
  * The monitored-run knob. EVERY field is optional:
@@ -1,5 +1,5 @@
1
- import { C as Cmd, T as TimerDeps, c as Subscribe } from './core-CtvAyPpH.js';
2
- import { D as DeadlineExceeded, a as DeadlineSub, b as DeadlinesSub } from './index-CVU7SK3a.js';
1
+ import { C as Cmd, T as TimerDeps, S as Subscribe } from './core-DNDAEhO2.js';
2
+ import { D as DeadlineExceeded, a as DeadlineSub, b as DeadlinesSub } from './index-Cg0QXnzf.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 { a as CmdOf, b as CmdDef, d as SettledOk, e as SettledErr, f as TaggedError, C as Cmd } from './core-CtvAyPpH.js';
1
+ import { a as CmdOf, b as CmdDef, d as SettledOk, e as SettledErr, f as TaggedError, C as Cmd } from './core-DNDAEhO2.js';
2
2
 
3
3
  /**
4
4
  * The snapshot knob.
@@ -92,9 +92,10 @@ type SnapshotWriteCmd<V> = CmdOf<ReturnType<typeof snapshotWriteDef<V>>>;
92
92
  * `err({ _tag: "snapshot_load_failed", … })`.
93
93
  *
94
94
  * Distinct from `snapshot_write`: a write carries a payload OUT to the store; a
95
- * load asks the store to hand a payload BACK. The consumer dispatches the
96
- * triggering Msg once on resume (a `boot` Msg, never `init`'s rehydrate branch —
97
- * invariant 2), folds the recovered payload into its run slice, then continues.
95
+ * load asks the store to hand a payload BACK. A pure restored `init` may return
96
+ * resume State and Cmds, including a load Cmd from `requestLoad`. A host `boot`
97
+ * Msg after `run(...)` is an optional protocol; Subs are already open then.
98
+ * Fold the recovered payload into the run slice, then continue.
98
99
  */
99
100
  declare function snapshotLoadDef<V>(): CmdDef<"snapshot_load", {
100
101
  readonly key: string;
@@ -182,9 +183,9 @@ interface SnapshotKnob<V> {
182
183
  * un-checkpointed progress accumulated before the crash is moot — recovery
183
184
  * resumes from the last DURABLE checkpoint, so the cadence counter starts
184
185
  * fresh from there. `seq` / `lastSavedSeq` / `lastSavedAt` are preserved
185
- * (they describe what is durable, which a reload does not change). Call from
186
- * a `boot` Msg the host dispatches once after `run(...)`, never from `init`'s
187
- * rehydrate branch (invariant 2).
186
+ * (they describe what is durable, which a reload does not change). A pure
187
+ * restored `init` may use this to return resume State and Cmds. A host `boot`
188
+ * Msg after `run(...)` is an optional protocol; Subs are already open then.
188
189
  *
189
190
  * Returns the reducer-cell shape `readonly [SnapshotState, readonly Cmd[]]`
190
191
  * (with `Cmd.none` — a resume emits nothing) so it drops straight into a
@@ -196,8 +197,9 @@ interface SnapshotKnob<V> {
196
197
  * `snapshot_load` Cmd carrying the configured `key`; returns the slice
197
198
  * UNCHANGED (a read decides nothing about the cadence bookkeeping — only the
198
199
  * later `snapshot_load_ok` fold, via `boot`, touches the slice). This is the
199
- * entry point of the recovery loop: the consumer dispatches a `boot` Msg once
200
- * after `run(...)` and folds `requestLoad` there.
200
+ * entry point of the recovery loop: call from pure restored `init` to return
201
+ * resume State and the load Cmd, or from an optional host `boot` Msg after
202
+ * `run(...)`, when Subs are already open.
201
203
  */
202
204
  requestLoad(state: SnapshotState): readonly [SnapshotState, readonly SnapshotLoadCmd<V>[]];
203
205
  }
@@ -1,5 +1,5 @@
1
- import { k as SubId, S as Sub, l as DepKeyedSub, D as Dispose, T as TimerDeps } from './core-CtvAyPpH.js';
2
- import { S as SubscribeHandler } from './types-CXNzlbAg.js';
1
+ import { l as SubId, c as Sub, m as DepKeyedSub, D as Dispose, T as TimerDeps } from './core-DNDAEhO2.js';
2
+ import { S as SubscribeHandler } from './types-S53WDy_h.js';
3
3
 
4
4
  /**
5
5
  * internal/resilience/deadline — a one-shot Sub that fires when an ABSOLUTE wall-clock
package/dist/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
- import { B as BootingRuntime, R as Runtime } from './runtime-types-DEluQgGO.js';
2
- export { b as BootedRunHandle, e as Branded, C as CtxArg, D as DeletableStore, f as DispatchDiscardedError, c as DispatchSettle, g as DisposeTimeoutNotice, h as DriveFailedError, i as DriveStalledError, E as EngineRun, j as FencedRead, F as FencedStore, k as FoldRefusal, I as IdentityDropNotice, l as MachineTypes, M as Migrated, O as OnError, P as PortNameCollisionError, Q as QuiescenceTimeoutError, m as Refusal, d as RunHandle, n as RunOptions, o as RuntimeDiscardNotice, p as RuntimeDiscardedError, q as RuntimeErrorContext, r as RuntimeErrorPhase, s as RuntimeRef, t as Schema, S as Store, u as StoreConflictError, v as StoreRefusedError, a as Supervision, w as SupervisionStrategy, x as TelemetryEvent, T as TelemetrySink, _ as __resetPortRegistry, y as absurd, z as asReducer, A as defineMachine, G as definePort, H as isFencedStore, J as noop, K as refuse, L as replay, N as schemaMigrate, U as tryApplyCell, V as tryFoldMsgs, W as tryInterpret, X as wrapDetached } from './runtime-types-DEluQgGO.js';
3
- import { C as Cmd, S as Sub, M as Machine, P as Port, l as DepKeyedSub, D as Dispose } from './core-CtvAyPpH.js';
4
- export { A as AnyCmdDef, v as AsyncSchemaError, B as BuiltinSub, q as BuiltinSubType, b as CmdDef, w as CmdInput, a as CmdOf, u as CmdValue, p as DeclaredErrorsOf, t as ErrOf, E as ErrorsOf, x as ExhaustiveTransitions, y as Identity, I as Interpret, z as InterpretArg, F as InterpretCell, j as InterpretDetached, G as MachineShape, n as MalformedResult, N as NoCellError, J as NoCtx, s as OkOf, o as OkOfCmd, O as Outcome, K as OutcomeContractError, L as OutcomeHelpers, Q as PortEmitter, g as Reducer, R as RunHandlers, h as Settled, e as SettledErr, d as SettledOk, k as SubId, c as Subscribe, V as SubscribeArg, X as SyncReturn, r as Tagged, f as TaggedError, T as TimerDeps, m as TimerSub, i 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-CtvAyPpH.js';
5
- import { S as SubscribeHandler } from './types-CXNzlbAg.js';
1
+ import { B as BootingRuntime, R as Runtime } from './runtime-types-CP-ykwgf.js';
2
+ export { a as BootedRunHandle, f as Branded, C as CtxArg, D as DeletableStore, g as DispatchDiscardedError, d as DispatchSettle, h as DisposeTimeoutNotice, i as DrainTimeoutNotice, j as DriveFailedError, k as DriveStalledError, E as EngineRun, l as FencedRead, F as FencedStore, m as FoldRefusal, I as IdentityDropNotice, n as MachineTypes, M as Migrated, O as OnError, P as PortNameCollisionError, Q as QuiescenceTimeoutError, o as Refusal, e as RunHandle, p as RunOptions, q as RuntimeDiscardNotice, r as RuntimeDiscardedError, s as RuntimeErrorContext, t as RuntimeErrorPhase, u as RuntimeRef, v as Schema, b as Store, S as StoreAndOnError, w as StoreConflictError, x as StoreRefusedError, y as SubFailedError, c as Supervision, z as SupervisionStrategy, A as TelemetryEvent, T as TelemetrySink, U as UnfencedStore, _ as __resetPortRegistry, G as absurd, H as asReducer, J as defineMachine, K as definePort, L as isFencedStore, N as noop, V as refuse, W as replay, X as schemaMigrate, Y as tryApplyCell, Z as tryFoldMsgs, $ as tryInterpret, a0 as wrapDetached } from './runtime-types-CP-ykwgf.js';
3
+ import { C as Cmd, c as Sub, M as Machine, P as Port, m as DepKeyedSub, D as Dispose } from './core-DNDAEhO2.js';
4
+ export { A as AnyCmdDef, w as AsyncSchemaError, B as BuiltinSub, r as BuiltinSubType, b as CmdDef, k as CmdInput, a as CmdOf, v as CmdValue, q as DeclaredErrorsOf, u as ErrOf, E as ErrorsOf, x as ExhaustiveTransitions, y as Identity, I as Interpret, z as InterpretArg, F as InterpretCell, j as InterpretDetached, G as MachineShape, o as MalformedResult, N as NoCellError, J as NoCtx, t as OkOf, p as OkOfCmd, O as Outcome, K as OutcomeContractError, L as OutcomeHelpers, Q as PortEmitter, g as Reducer, R as RunHandlers, h as Settled, e as SettledErr, d as SettledOk, l as SubId, S as Subscribe, V as SubscribeArg, X as SyncReturn, s as Tagged, f as TaggedError, T as TimerDeps, n as TimerSub, i 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-DNDAEhO2.js';
5
+ import { S as SubscribeHandler } from './types-S53WDy_h.js';
6
6
  import '@standard-schema/spec';
7
7
 
8
8
  /**
9
9
  * @packageDocumentation
10
- * The composition seam — the layer between a battery and a door.
10
+ * The composition seam — the layer between a battery and a subpath.
11
11
  *
12
- * A battery is pure state plus verbs over that state. A door holds several
12
+ * A battery is pure state plus verbs over that state. A subpath holds several
13
13
  * batteries side by side in one Model. Everything between those two facts was,
14
14
  * until now, hand-written at every consumer: the one-key record rebuild that
15
15
  * threads a verb's `[slice, cmds]` result back into the host state, and the
@@ -23,7 +23,7 @@ import '@standard-schema/spec';
23
23
  * forty lines here rather than a dependency.
24
24
  *
25
25
  * `docs/how-to/compose-two-battery-slices.md` wires both end to end over a
26
- * two-battery door, and its `ts` blocks are compiled and run as
26
+ * two-battery subpath, and its `ts` blocks are compiled and run as
27
27
  * `src/docs/how-to/compose-slices.test.ts`.
28
28
  *
29
29
  * Both are pure: no clock, no RNG, no storage, nothing captured. A `liftSlice`
@@ -123,7 +123,7 @@ declare function historyTracker<S, M extends {
123
123
  * internal/prediction — the client-prediction ack primitive (epic #186, facet 2).
124
124
  * Internal since #49 — not published on any subpath of its own; the
125
125
  * client-safe barrel `src/pure/` re-exports the public surface, and the root
126
- * `@demlik/tea` door publishes it.
126
+ * `@demlik/tea` entry publishes it.
127
127
  *
128
128
  * The contract the Gambetta/Valve authoritative-server netcode loop needs:
129
129
  * **command-seq-in → last-applied-seq-out.** A client tags each predicted
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-DVNXEB7V.js';
2
- export { AsyncSchemaError, Cmd, DispatchDiscardedError, DisposeTimeoutNotice, DriveFailedError, DriveStalledError, IdentityDropNotice, NoCellError, Outcome, OutcomeContractError, PortNameCollisionError, QuiescenceTimeoutError, Refusal, RuntimeDiscardNotice, RuntimeDiscardedError, StoreConflictError, StoreRefusedError, UndeclaredFailureError, __resetPortRegistry, absurd, acceptedTypes, acceptsOf, applyCell, applyCellChecked, asReducer, defineMachine, definePort, describeMachine, detectUpdateForm, foldMsgs, foldUpdates, formOf, isFencedStore, msgKeysOf, noop, refuse, replay, schemaMigrate, structuralHash, subId, subIdOf, tryApplyCell, tryFoldMsgs, tryInterpret, wrapDetached } from './chunk-RKVUVALV.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-BVFS3ICC.js';
2
+ export { AsyncSchemaError, Cmd, DispatchDiscardedError, DisposeTimeoutNotice, DrainTimeoutNotice, DriveFailedError, DriveStalledError, IdentityDropNotice, NoCellError, Outcome, OutcomeContractError, PortNameCollisionError, QuiescenceTimeoutError, Refusal, RuntimeDiscardNotice, RuntimeDiscardedError, StoreConflictError, StoreRefusedError, SubFailedError, UndeclaredFailureError, __resetPortRegistry, absurd, acceptedTypes, acceptsOf, applyCell, applyCellChecked, asReducer, defineMachine, definePort, describeMachine, detectUpdateForm, foldMsgs, foldUpdates, formOf, isFencedStore, msgKeysOf, noop, refuse, replay, schemaMigrate, structuralHash, subId, subIdOf, tryApplyCell, tryFoldMsgs, tryInterpret, wrapDetached } from './chunk-A3QPMX5M.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,13 +1,13 @@
1
- import { O as Outcome, b as CmdDef, T as TimerDeps, C as Cmd, l as DepKeyedSub, m as TimerSub } from '../core-CtvAyPpH.js';
1
+ import { O as Outcome, b as CmdDef, T as TimerDeps, C as Cmd, m as DepKeyedSub, n as TimerSub } from '../core-DNDAEhO2.js';
2
2
  import { RetryPolicy } from '../retry-backoff/index.js';
3
- import { a as DeadlineSub, T as TtlCache, C as CacheEvictionSub, c as CacheEvictMsg } from '../index-CVU7SK3a.js';
4
- import { D as DefaultResilientName, R as RunCmd, F as FailMsg, S as SucceedMsg, a as ResilientTimerMsg, b as ResilientState, c as DeadlineNameOf } from '../index-CKtEKGyp.js';
5
- import { S as SubscribeHandler } from '../types-CXNzlbAg.js';
6
- import { B as BatchWindow, a as BatchWindowSub, b as BatchWindowExpired } from '../index-EIgfl83J.js';
7
- import { F as FanOutState } from '../index-CrcoVfd_.js';
3
+ import { a as DeadlineSub, T as TtlCache, C as CacheEvictionSub, c as CacheEvictMsg } from '../index-Cg0QXnzf.js';
4
+ import { D as DefaultResilientName, R as RunCmd, F as FailMsg, S as SucceedMsg, a as ResilientTimerMsg, b as ResilientState, c as DeadlineNameOf } from '../index-C92SgNWz.js';
5
+ import { S as SubscribeHandler } from '../types-S53WDy_h.js';
6
+ import { B as BatchWindow, a as BatchWindowSub, b as BatchWindowExpired } from '../index-CO34esWT.js';
7
+ import { F as FanOutState } from '../index-9P1PaXIV.js';
8
8
  import '@standard-schema/spec';
9
- import '../index-D3NY3VCN.js';
10
- import '../runtime-types-DEluQgGO.js';
9
+ import '../index-BBLI2WWN.js';
10
+ import '../runtime-types-CP-ykwgf.js';
11
11
 
12
12
  /**
13
13
  * @packageDocumentation
@@ -388,12 +388,12 @@ type JevRejected = {
388
388
  * Read a settled failure back as a {@link JevAskErr}. PURE.
389
389
  *
390
390
  * A {@link JevRejected} yields its `jev`. Anything else a handler returned —
391
- * a bare `port_rejected`, a `deadline_exceeded` — is a failure this door did
391
+ * a bare `port_rejected`, a `deadline_exceeded` — is a failure this module did
392
392
  * not classify, and it reads as the transient `port_threw`, exactly as a
393
393
  * foreign throw always has.
394
394
  */
395
395
  declare function jevAskErrOf(error: unknown): JevAskErr;
396
- /** The model the door asks for when config names none. */
396
+ /** The model the ask uses when config names none. */
397
397
  declare const DEFAULT_JEV_MODEL = "jev-latest";
398
398
  /**
399
399
  * The jev-ask knob. `questions` is the load-bearing one: it is both the map
@@ -461,7 +461,7 @@ declare function offlineJevAnswer<Q extends JevQuestionMap>(request: JevRequest<
461
461
  * The one effect this knob emits: run the ask for `key` with the plain-data
462
462
  * {@link JevRequest} (ADR 0014 — a Cmd is DECLARED, so its input, ok and err
463
463
  * channels are types on the constructor rather than a convention). It is
464
- * resilient-call's `runCmdDef` specialized to this door's input and result, the
464
+ * resilient-call's `runCmdDef` specialized to this module's input and result, the
465
465
  * same way `../../idempotency/idempotent-intake` mints its defs per knob: `Q` is
466
466
  * a type parameter, so the def is a factory and not a module constant. `name`
467
467
  * is the knob's name; omit it for the `resilient` family.
@@ -482,7 +482,7 @@ type JevAskCmd<Q extends JevQuestionMap, N extends string = DefaultResilientName
482
482
  type JevSucceedMsg<Q extends JevQuestionMap, N extends string = DefaultResilientName> = SucceedMsg<JevOk<Q>, N>;
483
483
  /**
484
484
  * The failure settle Msg the engine mints — resilient-call's. Its `error` is a
485
- * {@link JevRejected} when your handler used this door's builders; `fail`
485
+ * {@link JevRejected} when your handler used this module's builders; `fail`
486
486
  * reads it with {@link jevAskErrOf}.
487
487
  */
488
488
  type JevFailMsg<N extends string = DefaultResilientName> = FailMsg<N>;
@@ -539,11 +539,11 @@ type JevCmd<Q extends JevQuestionMap, N extends string = DefaultResilientName> =
539
539
  /**
540
540
  * Lift a knob result `[slice, cmds]` into a host `[State, cmds]` where the slice
541
541
  * lives at `state.resilience` — resilient-call's convenience, re-typed for this
542
- * door's slice so a consumer wires one import. Pure.
542
+ * module's slice so a consumer wires one import. Pure.
543
543
  *
544
- * The record rebuild is `liftSlice` from the root door (#231), the same helper
544
+ * The record rebuild is `liftSlice` from the root entry (#231), the same helper
545
545
  * `liftResilience` is expressed over — this stays as the named, pre-keyed
546
- * convenience for this door, unchanged in name, signature and subpath.
546
+ * convenience for this module, unchanged in name, signature and subpath.
547
547
  */
548
548
  declare function liftJevAsk<S extends {
549
549
  resilience: ResilientState<JevRequest<Q>, JevOk<Q>>;
package/dist/jev/index.js CHANGED
@@ -1,13 +1,13 @@
1
- import { createBatchWindow } from '../chunk-5HVKDHY6.js';
1
+ import { createBatchWindow } from '../chunk-R5NXOPL2.js';
2
2
  import '../chunk-LFZUK6J2.js';
3
3
  import { createFanOut } from '../chunk-QNGYQMZB.js';
4
- import { runCmdDef, createResilientCall } from '../chunk-72CN3VPY.js';
5
- import { initCache, has, set, evictExpired, cacheEvictionSub, cacheEvictionSubscribe, get } from '../chunk-TAKPC6SD.js';
4
+ import { runCmdDef, createResilientCall } from '../chunk-NFOGYDRS.js';
5
+ import { initCache, has, set, evictExpired, cacheEvictionSub, cacheEvictionSubscribe, get } from '../chunk-UGTC33VH.js';
6
6
  import '../chunk-VBDU4JL6.js';
7
7
  import '../chunk-4LPY67E4.js';
8
8
  import '../chunk-TXN2KFHF.js';
9
- import { liftSlice, readInOrder } from '../chunk-DVNXEB7V.js';
10
- import { describeError, Outcome } from '../chunk-RKVUVALV.js';
9
+ import { liftSlice, readInOrder } from '../chunk-BVFS3ICC.js';
10
+ import { describeError, Outcome } from '../chunk-A3QPMX5M.js';
11
11
 
12
12
  // src/internal/jev/protocol/index.ts
13
13
  var jevQuestions = (questions) => questions;