()
| 30 | } |
| 31 | |
| 32 | function usage() { |
| 33 | return [ |
| 34 | 'Usage:', |
| 35 | ' node scripts/next-action.js [--json] [--run] [--max-steps <n>] [--project-root <path>]', |
| 36 | '', |
| 37 | 'Reads the Citadel dashboard and resolves the next useful action.', |
| 38 | '--run executes only deterministic local repairs, then re-checks dashboard state.', |
| 39 | ].join('\n'); |
| 40 | } |
| 41 | |
| 42 | function localRepairFor(action) { |
| 43 | const command = String(action?.command || '').trim(); |