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

Function ensureCodexAvailable

plugins/codex/scripts/codex-companion.mjs:252–257  ·  view source on GitHub ↗
(cwd)

Source from the content-addressed store, hash-verified

250}
251
252function ensureCodexAvailable(cwd) {
253 const availability = getCodexAvailability(cwd);
254 if (!availability.available) {
255 throw new Error("Codex CLI is not installed or is missing required runtime support. Install it with `npm install -g @openai/codex`, then rerun `/codex:setup`.");
256 }
257}
258
259function buildNativeReviewTarget(target) {
260 if (target.mode === "working-tree") {

Callers 3

executeReviewRunFunction · 0.85
executeTaskRunFunction · 0.85
handleTaskFunction · 0.85

Calls 1

getCodexAvailabilityFunction · 0.90

Tested by

no test coverage detected