()
| 25 | } |
| 26 | |
| 27 | function usage() { |
| 28 | return [ |
| 29 | 'Usage:', |
| 30 | ' node scripts/stack-plan.js [--json] [--project-root <path>]', |
| 31 | '', |
| 32 | 'Reads .planning/pr-readiness reports and writes an ordered stack landing plan.', |
| 33 | 'This command never marks PRs ready, merges PRs, or pushes branches.', |
| 34 | ].join('\n'); |
| 35 | } |
| 36 | |
| 37 | function normalizePath(value) { |
| 38 | return String(value || '').replace(/\\/g, '/'); |