()
| 19 | const STOP_REVIEW_TASK_MARKER = "Run a stop-gate review of the previous Claude turn."; |
| 20 | |
| 21 | function readHookInput() { |
| 22 | const raw = fs.readFileSync(0, "utf8").trim(); |
| 23 | if (!raw) { |
| 24 | return {}; |
| 25 | } |
| 26 | return JSON.parse(raw); |
| 27 | } |
| 28 | |
| 29 | function emitDecision(payload) { |
| 30 | process.stdout.write(`${JSON.stringify(payload)}\n`); |