()
| 40 | } |
| 41 | |
| 42 | function usage() { |
| 43 | return [ |
| 44 | 'Usage:', |
| 45 | ' node scripts/operator-console.js [--json|--summary] [--run] [--max-steps <n>] [--project-root <path>]', |
| 46 | '', |
| 47 | 'Renders the decision-first Citadel operator cockpit.', |
| 48 | '--summary prints a compact JSON contract for scripts and agents.', |
| 49 | '--run executes only deterministic local repairs, then writes a refreshed console report.', |
| 50 | ].join('\n'); |
| 51 | } |
| 52 | |
| 53 | function normalizePath(value) { |
| 54 | return String(value || '').replace(/\\/g, '/'); |