Initial commit

Signed-off-by: Ilan Bigio <ilan@openai.com>
This commit is contained in:
Ilan Bigio
2025-04-16 12:56:08 -04:00
commit 59a180ddec
163 changed files with 30587 additions and 0 deletions

11
codex-cli/require-shim.js Normal file
View File

@@ -0,0 +1,11 @@
/**
* This is necessary because we have transitive dependencies on CommonJS modules
* that use require() conditionally:
*
* https://github.com/tapjs/signal-exit/blob/v3.0.7/index.js#L26-L27
*
* This is not compatible with ESM, so we need to shim require() to use the
* CommonJS module loader.
*/
import { createRequire } from "module";
globalThis.require = createRequire(import.meta.url);