Explicit node imports (#4567)

To help with compatibility
This commit is contained in:
pakrym-oai
2025-10-01 12:39:04 -07:00
committed by GitHub
parent 609f75acec
commit 170c685882
9 changed files with 43 additions and 18 deletions

View File

@@ -7,11 +7,11 @@ import { Codex } from "@openai/codex-sdk";
import type { ThreadEvent, ThreadItem } from "@openai/codex-sdk";
import path from "node:path";
const executablePath =
const codexPathOverride =
process.env.CODEX_EXECUTABLE ??
path.join(process.cwd(), "..", "..", "codex-rs", "target", "debug", "codex");
const codex = new Codex({ executablePath });
const codex = new Codex({ codexPathOverride });
const thread = codex.startThread();
const rl = createInterface({ input, output });