| 44 | } |
| 45 | |
| 46 | function renderReport(report) { |
| 47 | const lines = []; |
| 48 | lines.push('Worktree Readiness'); |
| 49 | lines.push('='.repeat(40)); |
| 50 | lines.push(`Status: ${report.status}`); |
| 51 | lines.push(`Worktree: ${report.worktreePath}`); |
| 52 | if (report.branch) lines.push(`Branch: ${report.branch}`); |
| 53 | lines.push(`Blocks Fleet: ${report.blockFleet ? 'yes' : 'no'}`); |
| 54 | if (report.file) lines.push(`Report: ${report.file}`); |
| 55 | lines.push(''); |
| 56 | lines.push('CHECKS'); |
| 57 | for (const check of report.checks) { |
| 58 | lines.push(` ${check.status.toUpperCase()} ${check.name} - ${check.detail}`); |
| 59 | } |
| 60 | return `${lines.join('\n')}\n`; |
| 61 | } |
| 62 | |
| 63 | function renderList(reports) { |
| 64 | const lines = []; |