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

Function buildSetupNote

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

Source from the content-addressed store, hash-verified

57}
58
59function buildSetupNote(cwd) {
60 const availability = getCodexAvailability(cwd);
61 if (availability.available) {
62 return null;
63 }
64
65 const detail = availability.detail ? ` ${availability.detail}.` : "";
66 return `Codex is not set up for the review gate.${detail} Run /codex:setup.`;
67}
68
69function parseStopReviewOutput(rawOutput) {
70 const text = String(rawOutput ?? "").trim();

Callers 1

mainFunction · 0.85

Calls 1

getCodexAvailabilityFunction · 0.90

Tested by

no test coverage detected