lody 0.79.1 → 0.80.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.
|
@@ -20938,12 +20938,13 @@ var Logger = class {
|
|
|
20938
20938
|
var logger = new Logger();
|
|
20939
20939
|
function startCodexConnection(codexPath, env) {
|
|
20940
20940
|
const spawnEnv = process.env;
|
|
20941
|
+
const spawnOptions = { env: spawnEnv, windowsHide: true };
|
|
20941
20942
|
let codex;
|
|
20942
20943
|
if (codexPath) {
|
|
20943
|
-
codex = process.platform === "win32" ? spawn(`"${codexPath}" app-server`, { shell: true
|
|
20944
|
+
codex = process.platform === "win32" ? spawn(`"${codexPath}" app-server`, { ...spawnOptions, shell: true }) : spawn(codexPath, ["app-server"], spawnOptions);
|
|
20944
20945
|
} else {
|
|
20945
20946
|
const bundledCodexPath = createRequire$1(import.meta.url).resolve("@openai/codex/bin/codex.js");
|
|
20946
|
-
codex = spawn(process.execPath, [bundledCodexPath, "app-server"],
|
|
20947
|
+
codex = spawn(process.execPath, [bundledCodexPath, "app-server"], spawnOptions);
|
|
20947
20948
|
}
|
|
20948
20949
|
attachLogs(codex);
|
|
20949
20950
|
const reader = createJSONRPCReader(codex.stdout);
|
|
@@ -76,7 +76,7 @@ let __tla = Promise.all([
|
|
|
76
76
|
}
|
|
77
77
|
})()
|
|
78
78
|
]).then(async () => {
|
|
79
|
-
const reviewViewerVersion = "0.
|
|
79
|
+
const reviewViewerVersion = "0.80.0";
|
|
80
80
|
const reviewViewerSha256 = "41b6ffd0acff2c355e190b604776a89138f9598a1772d09390a6d5af514e71bb";
|
|
81
81
|
const reviewViewerFileName = "standalone.html";
|
|
82
82
|
const DEFAULT_CDN_BASES = [
|
package/dist/codex-acp.js
CHANGED
package/dist/grok-acp.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { spawn } from "node:child_process";
|
|
2
1
|
import { createInterface } from "node:readline";
|
|
3
2
|
import { r as runtimeManifest } from "./chunks/runtime-manifest-Fr5DEH54.js";
|
|
3
|
+
import { spawn } from "node:child_process";
|
|
4
4
|
const contract = runtimeManifest.privateWireContract;
|
|
5
5
|
const PERMISSION_MODES = {
|
|
6
6
|
ask: { permission_mode: "ask", yolo_mode: false, auto_mode: false },
|
|
@@ -552,15 +552,19 @@ class GrokAcpCompatibilityProxy {
|
|
|
552
552
|
return options;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
+
function spawnGrokRuntime(grokPath2, { env = process.env, spawnImpl = spawn } = {}) {
|
|
556
|
+
return spawnImpl(grokPath2, ["agent", "stdio"], {
|
|
557
|
+
env: { ...env, GROK_DISABLE_AUTOUPDATER: "1" },
|
|
558
|
+
stdio: ["pipe", "pipe", "inherit"],
|
|
559
|
+
windowsHide: true
|
|
560
|
+
});
|
|
561
|
+
}
|
|
555
562
|
const grokPath = process.env.GROK_PATH;
|
|
556
563
|
if (!grokPath) {
|
|
557
564
|
console.error("GROK_PATH must point to the official Grok runtime");
|
|
558
565
|
process.exit(1);
|
|
559
566
|
}
|
|
560
|
-
const child =
|
|
561
|
-
env: { ...process.env, GROK_DISABLE_AUTOUPDATER: "1" },
|
|
562
|
-
stdio: ["pipe", "pipe", "inherit"]
|
|
563
|
-
});
|
|
567
|
+
const child = spawnGrokRuntime(grokPath);
|
|
564
568
|
const proxy = new GrokAcpCompatibilityProxy();
|
|
565
569
|
function write(stream, message) {
|
|
566
570
|
stream.write(`${JSON.stringify(message)}
|