#pragma once // Umbrella header for the FSM module. The implementation is split for // maintainability: // - Machine.hpp — the Machine template, the nested State // base, lifecycle, events, nesting, persistence. // - Detail/StateList.hpp — reflection over the nested `struct States { … }` // (auto-registration, initial-state, membership). // - Detail/Roles.hpp — signature-inferred state roles (entry, // startup-entry, continuation handlers). // - Detail/Awaiter.hpp — the unified event awaiter. // - Detail/Introspect.hpp — StateInfo + to_mermaid (node-level diagram). // - Detail/Engine.{hpp,cpp} — the non-template execution context. // Include to get the whole machine API as before. #include