Skip to content

ClientSnapshot

Defined in: types.ts:903

Plain-data snapshot of everything machina tracks for one client at a given level of the FSM hierarchy. Produced by dehydrate(), consumed by the object-overload of rehydrate().

children covers every state whose _child holds tracking data for this client — active or not. A child the client never reached has no entry (there’s nothing to restore). This full-fidelity walk is what makes a rehydrated client behaviorally indistinguishable from one that never left memory: off-path child state and its pending deferrals travel too, and replay/reset exactly as they would have in-memory on the parent’s next re-entry.

optional children: object

Defined in: types.ts:915

One entry per state (at this level) whose _child has tracking data for this client, keyed by that state’s name. Omitted entirely when no state’s child has ever seen this client.

[stateName: string]: ClientSnapshot


deferred: DeferredInput[]

Defined in: types.ts:908

This level’s pending deferred inputs, in FIFO replay order.


state: string

Defined in: types.ts:905

This level’s state name (not the composite dot-path).