MCPcopy
hub / github.com/openai/codex-plugin-cc / readHookInput

Function readHookInput

plugins/codex/scripts/stop-review-gate-hook.mjs:21–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected