PhaseRegistry Component
The<PhaseRegistryProvider> manages sequential phase execution automatically via SQLite state, eliminating manual phase tracking.
Basic Usage
Hooks
usePhaseRegistry
Access the phase registry context:usePhaseIndex
Get a phase’s index during registration:Context Value
| Property | Type | Description |
|---|---|---|
registerPhase | (name: string) => number | Register phase, returns index |
currentPhaseIndex | number | Active phase index (from SQLite) |
advancePhase | () => void | Move to next phase |
isPhaseActive | (index: number) => boolean | Check if phase is active |
isPhaseCompleted | (index: number) => boolean | Check if phase completed |
totalPhases | number | Total registered phases |