@eum-agent/integration-acp 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/LICENSES.txt +666 -0
- package/dist/adapters/codex-acp.js +31004 -0
- package/dist/adapters/codex.js +14 -0
- package/dist/index.js +1747 -0
- package/package.json +49 -3
- package/ui/ui.js +1617 -0
- package/README.md +0 -3
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { accessSync, constants, statSync } from "node:fs";
|
|
2
|
+
import { isAbsolute } from "node:path";
|
|
3
|
+
//#region src/codex-adapter.ts
|
|
4
|
+
/** Loads the bundled ACP bridge only after an explicit executable user CLI is present. */
|
|
5
|
+
const cli = process.env.CODEX_PATH;
|
|
6
|
+
try {
|
|
7
|
+
if (!cli || !isAbsolute(cli) || !statSync(cli).isFile()) throw new Error();
|
|
8
|
+
accessSync(cli, constants.X_OK);
|
|
9
|
+
} catch {
|
|
10
|
+
throw new Error("CODEX_PATH must name an executable user-installed Codex CLI");
|
|
11
|
+
}
|
|
12
|
+
await import(new URL("./codex-acp.js", import.meta.url).href);
|
|
13
|
+
//#endregion
|
|
14
|
+
export {};
|