@agentclientprotocol/codex-acp 0.0.41 → 0.0.42
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/index.js +10 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3292,9 +3292,6 @@ var require_node = __commonJS({
|
|
|
3292
3292
|
}
|
|
3293
3293
|
});
|
|
3294
3294
|
|
|
3295
|
-
// src/index.ts
|
|
3296
|
-
import { createRequire } from "node:module";
|
|
3297
|
-
|
|
3298
3295
|
// node_modules/zod/v4/classic/external.js
|
|
3299
3296
|
var external_exports = {};
|
|
3300
3297
|
__export(external_exports, {
|
|
@@ -16692,6 +16689,7 @@ var RequestError = class _RequestError extends Error {
|
|
|
16692
16689
|
// src/CodexJsonRpcConnection.ts
|
|
16693
16690
|
var rpc = __toESM(require_node(), 1);
|
|
16694
16691
|
import { spawn } from "node:child_process";
|
|
16692
|
+
import { createRequire } from "node:module";
|
|
16695
16693
|
|
|
16696
16694
|
// src/StdUtils.ts
|
|
16697
16695
|
var import_vscode_jsonrpc = __toESM(require_main(), 1);
|
|
@@ -16827,7 +16825,13 @@ var logger = new Logger();
|
|
|
16827
16825
|
// src/CodexJsonRpcConnection.ts
|
|
16828
16826
|
function startCodexConnection(codexPath, env) {
|
|
16829
16827
|
const spawnEnv = env ?? process.env;
|
|
16830
|
-
|
|
16828
|
+
let codex;
|
|
16829
|
+
if (codexPath) {
|
|
16830
|
+
codex = process.platform === "win32" ? spawn(`"${codexPath}" app-server`, { shell: true, env: spawnEnv }) : spawn(codexPath, ["app-server"], { env: spawnEnv });
|
|
16831
|
+
} else {
|
|
16832
|
+
const bundledCodexPath = createRequire(import.meta.url).resolve("@openai/codex/bin/codex.js");
|
|
16833
|
+
codex = spawn(process.execPath, [bundledCodexPath, "app-server"], { env: spawnEnv });
|
|
16834
|
+
}
|
|
16831
16835
|
attachLogs(codex);
|
|
16832
16836
|
const reader = createJSONRPCReader(codex.stdout);
|
|
16833
16837
|
const writer = createJSONRPCWriter(codex.stdin);
|
|
@@ -18954,7 +18958,7 @@ var package_default = {
|
|
|
18954
18958
|
publishConfig: {
|
|
18955
18959
|
access: "public"
|
|
18956
18960
|
},
|
|
18957
|
-
version: "0.0.
|
|
18961
|
+
version: "0.0.42",
|
|
18958
18962
|
description: "",
|
|
18959
18963
|
main: "dist/index.js",
|
|
18960
18964
|
bin: {
|
|
@@ -20861,7 +20865,7 @@ if (process.argv[2] === "login") {
|
|
|
20861
20865
|
startAcpServer();
|
|
20862
20866
|
}
|
|
20863
20867
|
function startAcpServer() {
|
|
20864
|
-
const codexPath = process.env["CODEX_PATH"]
|
|
20868
|
+
const codexPath = process.env["CODEX_PATH"];
|
|
20865
20869
|
const configString = process.env["CODEX_CONFIG"];
|
|
20866
20870
|
const authRequestString = process.env["DEFAULT_AUTH_REQUEST"];
|
|
20867
20871
|
const modelProvider = process.env["MODEL_PROVIDER"];
|