feat(ai): add OpenAI Codex OAuth + responses provider

This commit is contained in:
Ahmed Kamal 2026-01-04 21:11:19 +02:00
parent 6ddfd1be13
commit 1650041a63
22 changed files with 2705 additions and 5 deletions

View file

@ -0,0 +1,28 @@
import { copyFileSync, mkdirSync } from "node:fs";
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const packageRoot = join(__dirname, "..");
const source = join(
packageRoot,
"src",
"providers",
"openai-codex",
"prompts",
"codex-instructions.md",
);
const destination = join(
packageRoot,
"dist",
"providers",
"openai-codex",
"prompts",
"codex-instructions.md",
);
mkdirSync(dirname(destination), { recursive: true });
copyFileSync(source, destination);
console.log(`[pi-ai] Copied ${source} -> ${destination}`);