()
| 24 | } |
| 25 | |
| 26 | function usage() { |
| 27 | return [ |
| 28 | 'Usage:', |
| 29 | ' node scripts/loop-runner.js --action "<shell command>" --verify "<shell command>" [--max-attempts 3] [--write]', |
| 30 | '', |
| 31 | 'Runs an explicit bounded foreground loop. The verifier controls success.', |
| 32 | ].join('\n'); |
| 33 | } |
| 34 | |
| 35 | function runShell(command, cwd) { |
| 36 | const startedAt = new Date().toISOString(); |