# @demlik/tea — all modules

The complete export catalog — all 27 public subpaths. Curated
modules link to their dedicated reference page; the rest are plumbing,
discoverable here with a one-line gloss from their source barrel.

| Subpath | Tier | Summary |
| --- | --- | --- |
| [`.`](./tea.md) | stable | TEA-faithful state machine substrate. |
| [`./agent`](./agent.md) | experimental | THE headline Level-3 machine: a durable, crash-recoverable AI agent that runs an ordered stage pipeline, and inside the agentic stage drives the classic loop `llm → tools → fold → llm` until the model stops asking for tools. |
| [`./devtools`](./devtools.md) | stable | presentational inspector for any tea machine. |
| `./devtools/styles.css` | stable | visual defaults. |
| [`./do`](./do.md) | stable | Durable Object adapter for `@demlik/tea`. |
| [`./effect`](./effect.md) | stable | the Effect engine: `run` boots a machine with Effect handlers and sub runners, the caller's Layers and interruption on stop, and yields an Effect handle: the Promise engine's member names, with Effects that fail with `Stopped`, `StoreFailed` or a cell's declared failure where the Promise engine returns Promises. |
| [`./extension`](./extension.md) | stable | Chrome service-worker host adapter for @demlik/tea. |
| [`./flow`](./flow.md) | battery | the multi-step control-flow batteries: fan a batch out, run steps in order and compensate on failure, poll until a predicate holds, reconcile desired against actual. |
| [`./idempotency`](./idempotency.md) | battery | do-it-once: dedupe by key, cache the result, and replay that result to every duplicate arrival. |
| [`./jev`](./jev.md) | battery | ask TypeSafe **Jev** (System One) a map of typed questions and get a typed answer back under each name: the wire contract, the one Cmd that issues the call, and the batching composition over it. |
| [`./machine-viz`](./machine-viz.md) | stable | turn a `Machine` into a Mermaid diagram string. |
| [`./mem`](./mem.md) | stable | in-memory `Store<S>` adapter for `@demlik/tea`. |
| [`./node`](./node.md) | stable | Node host adapter for `@demlik/tea`. |
| [`./otel`](./otel.md) | experimental | an agent run as OpenTelemetry spans. |
| [`./paginate`](./paginate.md) | battery | the pagination batteries: the cursor walk as pure state, and the resumable end-to-end traversal built over it. |
| [`./parity`](./parity.md) | stable | the record → replay → normalized-diff go/no-go gate. |
| [`./pbt`](./pbt.md) | stable | Property-based testing primitives for `@demlik/tea` machines. |
| [`./persistence`](./persistence.md) | battery | the durability batteries: record a run to a trace, replay that trace back, checkpoint a long-running machine to a host store between evictions, and keep a machine's State in a store this subpath ships: `eventSourcedStore`, a durable log over a journal, and `rowStore`, one SQL row fenced by its revision. |
| [`./promise`](./promise.md) | stable | the Promise engine: `run` boots a machine and drives its serial dispatch loop on Promises, `driveToDone` runs one to its terminal state, and `tell` puts a Msg on a run's line without waiting for it. |
| [`./react`](./react.md) | stable | React host adapter for `@demlik/tea`. |
| [`./resilience`](./resilience.md) | battery | the call-hardening batteries: deadlines, retries, circuit breakers, rate limits, TTL caches and credential refresh, as plain functions and `Cmd.define`d Cmds you call from your own `update` (ADR 0022). |
| [`./retry-backoff`](./retry-backoff.md) | battery | exponential backoff with jitter + cap, and the retry-attempt state every fallible `interpret` handler folds over. |
| [`./testing`](./testing.md) | stable | test-side ergonomics over @demlik/tea's pure substrate. |
| [`./testing/effect`](./testing-effect.md) | stable | `drive` for the Effect engine: a machine run against its real Effect `interpret` handlers and its Subs, round by round, until it goes quiet, yielding `{ state, trace }`. |
| [`./testing/promise`](./testing-promise.md) | stable | `drive` for the Promise engine: a machine run against its real `interpret` handlers, round by round, until it goes quiet, returning `{ state, trace }` so a test asserts on the sequence as well as the endpoint. |
| [`./timing`](./timing.md) | battery | the call-rate batteries: coalesce a burst into one fire, cap a stream to one fire per window, and gate a high-frequency input into a settled, rate-capped, optionally deduped sequence of emits. |
| [`./work-queue`](./work-queue.md) | battery | a substrate-agnostic work-queue lifecycle over `Store<S>`: enqueue, claim the next item, mark it done, failed or cancelled, and reset whatever was running when the process went away. |
