@demlik/tea 0.4.0 → 0.5.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.
- package/dist/agent/index.d.ts +5 -5
- package/dist/agent/index.js +10 -10
- package/dist/authed-call/index.d.ts +2 -2
- package/dist/authed-call/index.js +7 -7
- package/dist/await-terminal/index.d.ts +2 -2
- package/dist/await-terminal/index.js +2 -2
- package/dist/batch-window/index.d.ts +3 -3
- package/dist/batch-window/index.js +3 -3
- package/dist/cache/index.d.ts +2 -2
- package/dist/cache/index.js +4 -4
- package/dist/{chunk-2AHAR7CX.js → chunk-362SZ6CS.js} +3 -3
- package/dist/{chunk-2AHAR7CX.js.map → chunk-362SZ6CS.js.map} +1 -1
- package/dist/{chunk-JFFVBEDI.js → chunk-62QBHM3T.js} +3 -3
- package/dist/{chunk-JFFVBEDI.js.map → chunk-62QBHM3T.js.map} +1 -1
- package/dist/{chunk-JXYYRKD6.js → chunk-7A74NSG4.js} +3 -3
- package/dist/{chunk-JXYYRKD6.js.map → chunk-7A74NSG4.js.map} +1 -1
- package/dist/{chunk-2KNLKQVN.js → chunk-7UU5P2CX.js} +3 -3
- package/dist/{chunk-2KNLKQVN.js.map → chunk-7UU5P2CX.js.map} +1 -1
- package/dist/{chunk-ET6QQNSQ.js → chunk-CIDS43FH.js} +3 -3
- package/dist/{chunk-ET6QQNSQ.js.map → chunk-CIDS43FH.js.map} +1 -1
- package/dist/{chunk-PBDYW2TU.js → chunk-DBOJ2UC6.js} +14 -3
- package/dist/chunk-DBOJ2UC6.js.map +1 -0
- package/dist/{chunk-5W7CNAHB.js → chunk-KEFMI24G.js} +7 -7
- package/dist/{chunk-5W7CNAHB.js.map → chunk-KEFMI24G.js.map} +1 -1
- package/dist/{chunk-SPWVPIFQ.js → chunk-KWPB6BM6.js} +4 -4
- package/dist/{chunk-SPWVPIFQ.js.map → chunk-KWPB6BM6.js.map} +1 -1
- package/dist/{chunk-SSHDBOXF.js → chunk-LFW66IIV.js} +4 -4
- package/dist/{chunk-SSHDBOXF.js.map → chunk-LFW66IIV.js.map} +1 -1
- package/dist/{chunk-D4NJBQAH.js → chunk-PBAYOJJO.js} +91 -24
- package/dist/chunk-PBAYOJJO.js.map +1 -0
- package/dist/{chunk-TWDHNIY6.js → chunk-PUTHY7LR.js} +3 -3
- package/dist/{chunk-TWDHNIY6.js.map → chunk-PUTHY7LR.js.map} +1 -1
- package/dist/{chunk-LYLDCIPH.js → chunk-QKUWDC4P.js} +32 -25
- package/dist/chunk-QKUWDC4P.js.map +1 -0
- package/dist/{chunk-FCKP6N7Y.js → chunk-T6HDAPMR.js} +3 -3
- package/dist/{chunk-FCKP6N7Y.js.map → chunk-T6HDAPMR.js.map} +1 -1
- package/dist/{chunk-B5RAZVXW.js → chunk-W2S4HK7J.js} +6 -6
- package/dist/{chunk-B5RAZVXW.js.map → chunk-W2S4HK7J.js.map} +1 -1
- package/dist/{chunk-LJJV6ZD5.js → chunk-ZILCH3WS.js} +4 -4
- package/dist/{chunk-LJJV6ZD5.js.map → chunk-ZILCH3WS.js.map} +1 -1
- package/dist/{chunk-RMX4EOQK.js → chunk-ZT3MGQB7.js} +3 -3
- package/dist/{chunk-RMX4EOQK.js.map → chunk-ZT3MGQB7.js.map} +1 -1
- package/dist/{core-42kapW0n.d.ts → core-DPYOyOJv.d.ts} +8 -5
- package/dist/deadline/index.d.ts +2 -2
- package/dist/deadline/index.js +3 -3
- package/dist/do/index.d.ts +6 -6
- package/dist/do/index.js +10 -10
- package/dist/{durable-effects-CFRngTNA.d.ts → durable-effects-B0YpoCHg.d.ts} +1 -1
- package/dist/extension/index.d.ts +2 -2
- package/dist/extension/index.js +3 -3
- package/dist/extension/react.js +3 -3
- package/dist/extension/subs/index.d.ts +2 -2
- package/dist/fan-out/index.d.ts +2 -2
- package/dist/idempotent-intake/index.d.ts +2 -2
- package/dist/index.d.ts +18 -4
- package/dist/index.js +2 -2
- package/dist/llm-call/index.d.ts +2 -2
- package/dist/llm-call/index.js +7 -7
- package/dist/{machine-B_BF4jij.d.ts → machine-Q_Bsm7Vu.d.ts} +1 -1
- package/dist/machine-viz/index.d.ts +1 -1
- package/dist/machine-viz/index.js +2 -2
- package/dist/mem/index.d.ts +2 -2
- package/dist/monitored-run/index.d.ts +3 -3
- package/dist/monitored-run/index.js +5 -5
- package/dist/node/index.d.ts +2 -2
- package/dist/paginated-walk/index.d.ts +2 -2
- package/dist/paginated-walk/index.js +7 -7
- package/dist/parity/index.d.ts +2 -2
- package/dist/parity/index.js +3 -3
- package/dist/pbt/arbitraries/index.d.ts +1 -1
- package/dist/pbt/index.d.ts +1 -1
- package/dist/pbt/index.js +3 -3
- package/dist/pbt/runners/index.d.ts +1 -1
- package/dist/pbt/runners/index.js +3 -3
- package/dist/poller/index.d.ts +2 -2
- package/dist/poller/index.js +3 -3
- package/dist/prediction/index.d.ts +1 -1
- package/dist/prediction/index.js +2 -2
- package/dist/pure/index.d.ts +1 -1
- package/dist/pure/index.js +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +2 -2
- package/dist/reconciler/index.d.ts +2 -2
- package/dist/reconciler/index.js +7 -7
- package/dist/recorder/index.d.ts +2 -2
- package/dist/resilient-call/index.d.ts +2 -2
- package/dist/resilient-call/index.js +6 -6
- package/dist/{runtime-types-CukV8kMX.d.ts → runtime-types-uBuVvZqa.d.ts} +50 -5
- package/dist/saga/index.d.ts +2 -2
- package/dist/snapshot/index.d.ts +1 -1
- package/dist/snapshot/index.js +3 -3
- package/dist/subs/index.d.ts +16 -9
- package/dist/subs/index.js +3 -3
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.js +2 -2
- package/dist/throttled-input/index.d.ts +2 -2
- package/dist/throttled-input/index.js +6 -6
- package/dist/token-refresh/index.d.ts +1 -1
- package/dist/token-refresh/index.js +3 -3
- package/dist/trace-replay/index.d.ts +2 -2
- package/dist/trace-replay/index.js +3 -3
- package/dist/{types-KbL3W1mj.d.ts → types-C6mXL9wA.d.ts} +1 -1
- package/dist/with-deadline/index.d.ts +1 -1
- package/dist/with-deadline/index.js +2 -2
- package/dist/with-resilience/index.d.ts +2 -2
- package/dist/with-resilience/index.js +6 -6
- package/dist/with-telemetry/index.d.ts +1 -1
- package/dist/with-telemetry/index.js +2 -2
- package/dist/work-queue/adapter.d.ts +2 -2
- package/dist/work-queue/index.d.ts +2 -2
- package/dist/work-queue/ops.d.ts +2 -2
- package/dist/workflow/index.d.ts +3 -3
- package/package.json +1 -1
- package/dist/chunk-D4NJBQAH.js.map +0 -1
- package/dist/chunk-LYLDCIPH.js.map +0 -1
- package/dist/chunk-PBDYW2TU.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Port, C as Cmd, S as Sub, M as Machine, T as Transitions, R as Reducer, I as InterpretDetached, b as PortEmitter } from './core-
|
|
1
|
+
import { P as Port, C as Cmd, S as Sub, M as Machine, T as Transitions, R as Reducer, I as InterpretDetached, b as PortEmitter } from './core-DPYOyOJv.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @demlik/tea runtime interface surface + pure helpers — the public types,
|
|
@@ -86,15 +86,21 @@ declare function __resetPortRegistry(): void;
|
|
|
86
86
|
* both carrying a `RuntimeDiscardNotice`: `stop()` was called while interpret
|
|
87
87
|
* handlers were still awaiting (`RuntimeDiscardedError`), and a Msg that
|
|
88
88
|
* arrived DURING `stop()`'s drain and so could not be delivered
|
|
89
|
-
* (`DispatchDiscardedError`)
|
|
90
|
-
*
|
|
89
|
+
* (`DispatchDiscardedError`), and teardown work that did not settle inside
|
|
90
|
+
* `disposeTimeoutMs` (`DisposeTimeoutNotice`). The one phase that is a
|
|
91
|
+
* LIFECYCLE report rather than a failure: legal, merely lossy.
|
|
92
|
+
* - `"identity-drop"` — the `Identity` filter dropped a message addressed to a
|
|
93
|
+
* different instance (`IdentityDropNotice`). Its own phase rather than
|
|
94
|
+
* `"discard"`: the loss is the FILTER WORKING, not a teardown, and a host
|
|
95
|
+
* routing it (a metric, a 409 back to the caller) wants it apart from
|
|
96
|
+
* unmount-time noise. Warn-only, like every `RuntimeDiscardNotice`.
|
|
91
97
|
*
|
|
92
98
|
* The phase never decides fatality — the ERROR CLASS does (`RuntimeDiscardNotice`
|
|
93
99
|
* warns, everything else rethrows). A phase is attached by the report site, so a
|
|
94
100
|
* consumer sink that throws while handling a `"discard"` report inherits that
|
|
95
101
|
* phase; keying the warn-only path on it would make the sink's own defect vanish.
|
|
96
102
|
*/
|
|
97
|
-
type RuntimeErrorPhase = "follow-up" | "stop-save" | "reduce" | "listener" | "observer" | "event" | "boot" | "port-emit" | "sub-cleanup" | "discard";
|
|
103
|
+
type RuntimeErrorPhase = "follow-up" | "stop-save" | "reduce" | "listener" | "observer" | "event" | "boot" | "port-emit" | "sub-cleanup" | "discard" | "identity-drop";
|
|
98
104
|
/** Context handed to an `OnError` sink alongside the error itself. */
|
|
99
105
|
interface RuntimeErrorContext {
|
|
100
106
|
readonly phase: RuntimeErrorPhase;
|
|
@@ -182,6 +188,45 @@ declare class RuntimeDiscardedError extends RuntimeDiscardNotice {
|
|
|
182
188
|
readonly _tag: "RuntimeDiscardedError";
|
|
183
189
|
constructor(pendingCmds: number);
|
|
184
190
|
}
|
|
191
|
+
/**
|
|
192
|
+
* Reported to the `OnError` sink under `phase: "identity-drop"` when the
|
|
193
|
+
* `Identity` filter drops a message addressed to a different instance.
|
|
194
|
+
*
|
|
195
|
+
* The drop itself is the feature — it is what lets a reducer stop repeating
|
|
196
|
+
* `if (msg.runId !== state.runId) return`. What was missing is that it was
|
|
197
|
+
* INVISIBLE: the dispatch resolved exactly like an applied one, so a reusable
|
|
198
|
+
* Durable Object serving run A and then run B lost every run-B message and
|
|
199
|
+
* reported success to each caller. The comment claiming "the one observable
|
|
200
|
+
* enforcement point" described this notice before it existed.
|
|
201
|
+
*
|
|
202
|
+
* Never fatal (`RuntimeDiscardNotice`): a mis-addressed message is a normal
|
|
203
|
+
* consequence of instance reuse, not a defect. A host that wants to act on it
|
|
204
|
+
* — a metric, a 409 to the caller, a re-route — reads `phase: "identity-drop"`
|
|
205
|
+
* in its own sink.
|
|
206
|
+
*/
|
|
207
|
+
declare class IdentityDropNotice extends RuntimeDiscardNotice {
|
|
208
|
+
readonly msgType: string;
|
|
209
|
+
readonly name = "IdentityDropNotice";
|
|
210
|
+
readonly _tag: "IdentityDropNotice";
|
|
211
|
+
constructor(msgType: string);
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Reported to the `OnError` sink under `phase: "discard"` when `stop()`'s wait
|
|
215
|
+
* for async teardown work hits `disposeTimeoutMs`.
|
|
216
|
+
*
|
|
217
|
+
* `stop()` awaits the disposals it started so `await runtime.stop()` can mean
|
|
218
|
+
* "safe to evict". A `release` that never settles must not turn that guarantee
|
|
219
|
+
* into a host that never shuts down, so the wait is bounded and expiry is
|
|
220
|
+
* REPORTED rather than silently tolerated — the resource is genuinely still
|
|
221
|
+
* open at that point, and only the host can decide what that costs.
|
|
222
|
+
*/
|
|
223
|
+
declare class DisposeTimeoutNotice extends RuntimeDiscardNotice {
|
|
224
|
+
readonly pendingDisposals: number;
|
|
225
|
+
readonly timeoutMs: number;
|
|
226
|
+
readonly name = "DisposeTimeoutNotice";
|
|
227
|
+
readonly _tag: "DisposeTimeoutNotice";
|
|
228
|
+
constructor(pendingDisposals: number, timeoutMs: number);
|
|
229
|
+
}
|
|
185
230
|
/**
|
|
186
231
|
* The rejection of a dispatch that arrived DURING `stop()`'s drain — an in-flight
|
|
187
232
|
* interpret handler's follow-up Msg, a detached handler's terminal Msg, or a Sub
|
|
@@ -403,4 +448,4 @@ declare function wrapDetached<C extends Cmd, M extends {
|
|
|
403
448
|
}, Allowed extends M, Ctx>(handler: InterpretDetached<C, Allowed, Ctx>): (cmd: C, ctx: Ctx & PortEmitter, dispatch?: (msg: M) => void) => Promise<void>;
|
|
404
449
|
declare function tryInterpret<C extends Cmd, Ok, M, Ctx>(work: (cmd: C, ctx: Ctx) => Promise<Ok>, onOk: (value: Ok, cmd: C) => M, onErr: (error: unknown, cmd: C) => M): (cmd: C, ctx: Ctx) => Promise<M>;
|
|
405
450
|
|
|
406
|
-
export { type BootingRuntime as B, type CtxArg as C,
|
|
451
|
+
export { type BootingRuntime as B, type CtxArg as C, DisposeTimeoutNotice as D, IdentityDropNotice as I, type OnError as O, PortNameCollisionError as P, QuiescenceTimeoutError as Q, type Runtime as R, type Store as S, __resetPortRegistry as _, type Supervision as a, type Branded as b, absurd as c, SubIdCollisionError as d, type RuntimeErrorPhase as e, type RuntimeErrorContext as f, type SupervisionStrategy as g, RuntimeDiscardNotice as h, RuntimeDiscardedError as i, DispatchDiscardedError as j, definePort as k, type Schema as l, type DispatchSettle as m, noop as n, type RuntimeRef as o, defineMachine as p, asReducer as q, replay as r, schemaMigrate as s, tryInterpret as t, wrapDetached as w };
|
package/dist/saga/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as Cmd } from '../core-
|
|
1
|
+
import { C as Cmd } from '../core-DPYOyOJv.js';
|
|
2
2
|
import { QueueItem } from '../work-queue/index.js';
|
|
3
|
-
import '../runtime-types-
|
|
3
|
+
import '../runtime-types-uBuVvZqa.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @packageDocumentation
|
package/dist/snapshot/index.d.ts
CHANGED
package/dist/snapshot/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { createSnapshot, snapshotFailed, snapshotLoadFailed, snapshotLoaded, snapshotSaved } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { createSnapshot, snapshotFailed, snapshotLoadFailed, snapshotLoaded, snapshotSaved } from '../chunk-KWPB6BM6.js';
|
|
2
|
+
import '../chunk-PBAYOJJO.js';
|
|
3
|
+
import '../chunk-DBOJ2UC6.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/subs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as Sub, P as Port, D as DepKeyedSub, a as SubId } from '../core-
|
|
2
|
-
import { S as SubscribeHandler } from '../types-
|
|
3
|
-
import { R as Runtime } from '../runtime-types-
|
|
1
|
+
import { S as Sub, P as Port, e as Dispose, D as DepKeyedSub, a as SubId } from '../core-DPYOyOJv.js';
|
|
2
|
+
import { S as SubscribeHandler } from '../types-C6mXL9wA.js';
|
|
3
|
+
import { R as Runtime } from '../runtime-types-uBuVvZqa.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The imperative listener target, expressed as the `add`/`remove` pair the
|
|
@@ -177,7 +177,7 @@ interface GatedManagedResource<S, TKey, Ctx> {
|
|
|
177
177
|
* `managed_resource` Sub to the entry whose `owns(sub)` is true, then calls
|
|
178
178
|
* this.
|
|
179
179
|
*/
|
|
180
|
-
readonly subscribe: (sub: ManagedResourceSub<TKey>, ctx: Ctx, dispatch: (msg: never) => void) =>
|
|
180
|
+
readonly subscribe: (sub: ManagedResourceSub<TKey>, ctx: Ctx, dispatch: (msg: never) => void) => Dispose;
|
|
181
181
|
/**
|
|
182
182
|
* Does this entry own the given Sub? `sub.id === subIdFor(sub.key)` encodes
|
|
183
183
|
* the battery `name`, so a match is unambiguous.
|
|
@@ -202,7 +202,7 @@ interface CombinedManagedResources<S, TKey, Ctx> {
|
|
|
202
202
|
* id encodes the battery `name`). Throws loudly on an unrouted id — a wiring
|
|
203
203
|
* bug, never a silent no-op resource.
|
|
204
204
|
*/
|
|
205
|
-
readonly subscribe: (sub: ManagedResourceSub<TKey>, ctx: Ctx, dispatch: (msg: never) => void) =>
|
|
205
|
+
readonly subscribe: (sub: ManagedResourceSub<TKey>, ctx: Ctx, dispatch: (msg: never) => void) => Dispose;
|
|
206
206
|
}
|
|
207
207
|
interface DefineManagedResourceOpts<TKey, Handle, Ctx> {
|
|
208
208
|
/**
|
|
@@ -222,9 +222,16 @@ interface DefineManagedResourceOpts<TKey, Handle, Ctx> {
|
|
|
222
222
|
/**
|
|
223
223
|
* Tear the resource down. Runs when the Sub leaves the desired set (phase
|
|
224
224
|
* exited) or when its key changes. MANDATORY — the guaranteed teardown is
|
|
225
|
-
* the reason this battery exists.
|
|
226
|
-
*
|
|
227
|
-
*
|
|
225
|
+
* the reason this battery exists.
|
|
226
|
+
*
|
|
227
|
+
* May be sync or async, and an async one is really awaited: the promise is
|
|
228
|
+
* returned to the substrate, which tracks it and drains it inside `stop()`
|
|
229
|
+
* (bounded by `run({ disposeTimeoutMs })`). So `await runtime.stop()` means
|
|
230
|
+
* the release finished — the reading a host evicting an isolate acts on.
|
|
231
|
+
* MID-RUN teardown (a phase exit, a key change) is still fire-and-forget
|
|
232
|
+
* (Rule 2): the reconcile pass is synchronous by construction, so it starts
|
|
233
|
+
* the release and moves on. A rejection is never a Msg — it reaches the
|
|
234
|
+
* runtime's `onError` sink under `phase: "sub-cleanup"`.
|
|
228
235
|
*/
|
|
229
236
|
readonly release: (handle: Handle) => void | Promise<void>;
|
|
230
237
|
}
|
|
@@ -283,7 +290,7 @@ interface ManagedResourceBattery<TKey, Handle, Ctx> {
|
|
|
283
290
|
* Handle in the battery's handle table, and returns a cleanup that runs
|
|
284
291
|
* `release` (and forgets the Handle) on reconcile-out.
|
|
285
292
|
*/
|
|
286
|
-
readonly subscribe: (sub: ManagedResourceSub<TKey>, ctx: Ctx, dispatch: (msg: never) => void) =>
|
|
293
|
+
readonly subscribe: (sub: ManagedResourceSub<TKey>, ctx: Ctx, dispatch: (msg: never) => void) => Dispose;
|
|
287
294
|
/**
|
|
288
295
|
* Accessor for the live Handle, keyed on `key`. Returns `undefined` when
|
|
289
296
|
* the resource is not currently held (no active sub for that key) — the
|
package/dist/subs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { combineManagedResources, defineListener, defineManagedResource, fromBroadcastChannel, fromEventSource, fromEventTarget, fromInterval, fromPort, fromReconnectingWebSocket, fromTransport, fromWebSocket } from '../chunk-
|
|
1
|
+
export { combineManagedResources, defineListener, defineManagedResource, fromBroadcastChannel, fromEventSource, fromEventTarget, fromInterval, fromPort, fromReconnectingWebSocket, fromTransport, fromWebSocket } from '../chunk-QKUWDC4P.js';
|
|
2
2
|
export { fromTimeout } from '../chunk-2YFLOCWX.js';
|
|
3
3
|
import '../chunk-ZJ5AOYBH.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-PBAYOJJO.js';
|
|
5
|
+
import '../chunk-DBOJ2UC6.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Cmd, S as Sub, M as Machine } from '../core-
|
|
2
|
-
import { R as Runtime } from '../runtime-types-
|
|
1
|
+
import { C as Cmd, S as Sub, M as Machine } from '../core-DPYOyOJv.js';
|
|
2
|
+
import { R as Runtime } from '../runtime-types-uBuVvZqa.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The composed Model shape every `withX` wrapper produces: the base machine's
|
package/dist/testing/index.js
CHANGED
|
@@ -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-
|
|
4
|
+
import { C as Cmd, S as Sub } from '../core-DPYOyOJv.js';
|
|
5
5
|
export { Debounced, debounce } from '../debounce/index.js';
|
|
6
6
|
export { Throttled, throttle } from '../throttle/index.js';
|
|
7
|
-
import '../types-
|
|
7
|
+
import '../types-C6mXL9wA.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @demlik/tea/throttled-input — gate a high-frequency input stream into a
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export { debounce } from '../chunk-J6527VRQ.js';
|
|
2
2
|
export { throttle } from '../chunk-HCEVHFJ7.js';
|
|
3
|
-
import { deadlineSub } from '../chunk-
|
|
4
|
-
export { subscribeDeadline as subscribeThrottledInput, deadlineExceeded as throttledInputSettled } from '../chunk-
|
|
5
|
-
import { initCache, get, set } from '../chunk-
|
|
6
|
-
import '../chunk-
|
|
3
|
+
import { deadlineSub } from '../chunk-ZT3MGQB7.js';
|
|
4
|
+
export { subscribeDeadline as subscribeThrottledInput, deadlineExceeded as throttledInputSettled } from '../chunk-ZT3MGQB7.js';
|
|
5
|
+
import { initCache, get, set } from '../chunk-7UU5P2CX.js';
|
|
6
|
+
import '../chunk-QKUWDC4P.js';
|
|
7
7
|
import '../chunk-2YFLOCWX.js';
|
|
8
8
|
import '../chunk-ZJ5AOYBH.js';
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-PBAYOJJO.js';
|
|
10
|
+
import '../chunk-DBOJ2UC6.js';
|
|
11
11
|
|
|
12
12
|
// src/throttled-input/index.ts
|
|
13
13
|
var DEFAULT_SUB_ID = "throttled-input:settle";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { createTokenRefresh, initTokenRefresh, refreshTokenCmd, tokenRefreshFailedMsg, tokenRefreshedMsg } from '../chunk-
|
|
1
|
+
export { createTokenRefresh, initTokenRefresh, refreshTokenCmd, tokenRefreshFailedMsg, tokenRefreshedMsg } from '../chunk-PUTHY7LR.js';
|
|
2
2
|
import '../chunk-JELSZN25.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-PBAYOJJO.js';
|
|
4
|
+
import '../chunk-DBOJ2UC6.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as Cmd, S as Sub, M as Machine } from '../core-
|
|
1
|
+
import { C as Cmd, S as Sub, M as Machine } from '../core-DPYOyOJv.js';
|
|
2
2
|
import { Trace } from '../recorder/index.js';
|
|
3
|
-
import '../runtime-types-
|
|
3
|
+
import '../runtime-types-uBuVvZqa.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The outcome of {@link replayTrace}.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { deepEqual, replayTrace } from '../chunk-
|
|
1
|
+
export { deepEqual, replayTrace } from '../chunk-362SZ6CS.js';
|
|
2
2
|
import '../chunk-EWJP3YYP.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-PBAYOJJO.js';
|
|
4
|
+
import '../chunk-DBOJ2UC6.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fromTimeout } from '../chunk-2YFLOCWX.js';
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import { msgKeysOf, applyCell, subId } from '../chunk-
|
|
2
|
+
import '../chunk-PBAYOJJO.js';
|
|
3
|
+
import { msgKeysOf, applyCell, subId } from '../chunk-DBOJ2UC6.js';
|
|
4
4
|
|
|
5
5
|
// src/with-deadline/index.ts
|
|
6
6
|
function deadlineExceededMsg(seq) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as Cmd, S as Sub, M as Machine } from '../core-
|
|
1
|
+
import { C as Cmd, S as Sub, M as Machine } from '../core-DPYOyOJv.js';
|
|
2
2
|
import { ResilientConfig, ResilientState } from '../resilient-call/index.js';
|
|
3
3
|
import '../cache/index.js';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-C6mXL9wA.js';
|
|
5
5
|
import '../circuit-breaker/index.js';
|
|
6
6
|
import '../deadline/index.js';
|
|
7
7
|
import '../protocol-B5YmJr0d.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { createResilientCall } from '../chunk-
|
|
1
|
+
import { createResilientCall } from '../chunk-W2S4HK7J.js';
|
|
2
2
|
import { MsgType } from '../chunk-JELSZN25.js';
|
|
3
|
-
import { subscribeDeadline } from '../chunk-
|
|
3
|
+
import { subscribeDeadline } from '../chunk-ZT3MGQB7.js';
|
|
4
4
|
import '../chunk-Q2UM7BXU.js';
|
|
5
5
|
import '../chunk-S2EGRPCM.js';
|
|
6
6
|
import '../chunk-UF4MZSLT.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-7UU5P2CX.js';
|
|
8
|
+
import '../chunk-QKUWDC4P.js';
|
|
9
9
|
import '../chunk-2YFLOCWX.js';
|
|
10
10
|
import '../chunk-ZJ5AOYBH.js';
|
|
11
|
-
import { tryInterpret } from '../chunk-
|
|
12
|
-
import { msgKeysOf, applyCell, subId, formOf } from '../chunk-
|
|
11
|
+
import { tryInterpret } from '../chunk-PBAYOJJO.js';
|
|
12
|
+
import { msgKeysOf, applyCell, subId, formOf } from '../chunk-DBOJ2UC6.js';
|
|
13
13
|
|
|
14
14
|
// src/with-resilience/index.ts
|
|
15
15
|
var RC_RETRY_PREFIX = "resilient:retry:";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../chunk-
|
|
2
|
-
import { msgKeysOf, applyCell } from '../chunk-
|
|
1
|
+
import '../chunk-PBAYOJJO.js';
|
|
2
|
+
import { msgKeysOf, applyCell } from '../chunk-DBOJ2UC6.js';
|
|
3
3
|
|
|
4
4
|
// src/with-telemetry/index.ts
|
|
5
5
|
function withTelemetry(base, config = {}) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QueueItem } from './index.js';
|
|
2
|
-
import '../runtime-types-
|
|
3
|
-
import '../core-
|
|
2
|
+
import '../runtime-types-uBuVvZqa.js';
|
|
3
|
+
import '../core-DPYOyOJv.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @demlik/tea/work-queue/adapter — the verb seam over the pure queue ops.
|
package/dist/work-queue/ops.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QueueItem } from './index.js';
|
|
2
|
-
import '../runtime-types-
|
|
3
|
-
import '../core-
|
|
2
|
+
import '../runtime-types-uBuVvZqa.js';
|
|
3
|
+
import '../core-DPYOyOJv.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Pure queue-lifecycle ops over `QueueItem<I>[]` — the BLESSED delegation
|
package/dist/workflow/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as DeliveryId, E as EffectLedgerEvent } from '../durable-effects-
|
|
2
|
-
export { a as EffectConfirmed, b as EffectOwed, e as emptyLedger } from '../durable-effects-
|
|
3
|
-
import { C as Cmd } from '../core-
|
|
1
|
+
import { D as DeliveryId, E as EffectLedgerEvent } from '../durable-effects-B0YpoCHg.js';
|
|
2
|
+
export { a as EffectConfirmed, b as EffectOwed, e as emptyLedger } from '../durable-effects-B0YpoCHg.js';
|
|
3
|
+
import { C as Cmd } from '../core-DPYOyOJv.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @packageDocumentation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@demlik/tea",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "TEA-faithful state machine substrate — one package, every host adapter. Core + subs + testing, plus React, Durable Object, Chrome extension, Node, in-memory, work-queue, devtools, and property-testing modules as subpaths.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tea",
|