(state)
| 20 | |
| 21 | /** The checklist Autopilot follows: progress.md when present, else plan.md. */ |
| 22 | export function currentSteps(state) { |
| 23 | if (!state) return []; |
| 24 | if (state.progress && state.progress.steps && state.progress.steps.length) return state.progress.steps; |
| 25 | if (state.plan && state.plan.steps) return state.plan.steps; |
| 26 | return []; |
| 27 | } |
| 28 | |
| 29 | /** Stable identity for a step across re-scans (phase + title). */ |
| 30 | export function stepKey(step) { |
no outgoing calls
no test coverage detected