@ai-digital-factory/state-flow-core
v0.2.0
Published
Framework-neutral State Flow core: decides graph progress for client and server execution.
Readme
@ai-digital-factory/state-flow-core
The framework-neutral State Flow core (ADR 0097). It decides graph progress for both execution sides and performs no I/O:
- loading a compiled module's graphs, with the host's callback rules;
- admission of a dispatch, destinations and Transition results (ADR 0087, 0098);
- the lifecycle order: guard, exit of descendants,
onExit,onTransition, commit,onEnter, children; - composition: activation plans, completion payloads,
childWork(ADR 0095, 0096); - instance data and pure reducers (ADR 0098);
- secret and private field marks, redaction, and the history entry model both sides record (ADR 0100);
- the contracts of State Flow Cloud: a service's export batch and a browser's report (ADR 0105, 0108).
The durable runtime (state-flow-runtime) and the browser host (state-flow-client) execute its decisions. It imports neither Node nor DOM APIs; pnpm check:package-deps enforces that.
Applications rarely import it directly; secretField and privateField are re-exported by state-flow-client.
