(title: string)
| 56 | const seen = new Set<string>() |
| 57 | const out: MergedPhase[] = [] |
| 58 | const push = (title: string): void => { |
| 59 | if (seen.has(title)) return |
| 60 | seen.add(title) |
| 61 | const actual = actualByTitle.get(title) |
| 62 | const inPhase = run.agents.filter(a => a.phase === title) |
| 63 | out.push({ |
| 64 | title, |
| 65 | status: derivePhaseStatus(actual, inPhase), |
| 66 | done: inPhase.filter(a => a.status === 'done').length, |
| 67 | total: inPhase.length, |
| 68 | }) |
| 69 | } |
| 70 | for (const t of run.declaredPhases) push(t) |
| 71 | for (const p of run.phases) push(p.title) |
| 72 | // Scripts that pass opts.phase directly to agent() (the ultracode pipeline pattern) |
no test coverage detected