@Flow class with all lifecycle stage methods: pre, execute, post, finalize, and error.
Usage
Options
Generated Code
declare global { interface ExtendFlows } block registers the flow’s input, output and state types, so runFlow('audit-log', …) is fully typed. Each step in the plan is implemented by a method decorated with @Stage, and FlowHooksOf(name) exposes Stage, Will, Did and Around for plugins that hook the flow.
See the Flows guide for lifecycle details and hook integration.