@mmmbuto/codex-vl 0.138.0-alpha.4 → 0.138.0-alpha.5
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/bin/codex.js +9 -5
- package/package.json +2 -2
package/bin/codex.js
CHANGED
|
@@ -306,20 +306,24 @@ if (skipNativeExec) {
|
|
|
306
306
|
process.exit(0);
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
-
const env = { ...process.env, PATH: updatedPath };
|
|
310
|
-
if (platform === "android") {
|
|
311
|
-
env.CODEX_SELF_EXE = binaryPath;
|
|
312
|
-
env.LD_LIBRARY_PATH = sanitizeAndroidLdLibraryPath(path.dirname(binaryPath));
|
|
313
|
-
}
|
|
314
309
|
const packageManagerEnvVar =
|
|
315
310
|
detectPackageManager() === "bun"
|
|
316
311
|
? "CODEX_MANAGED_BY_BUN"
|
|
317
312
|
: "CODEX_MANAGED_BY_NPM";
|
|
313
|
+
// Single env: the fork launcher needs (PATH update, Android self-exe and
|
|
314
|
+
// LD_LIBRARY_PATH) merged with upstream's managed-package markers — the
|
|
315
|
+
// 0.138.0-alpha.3 merge briefly kept both declarations and broke the
|
|
316
|
+
// launcher with a duplicate `const env`.
|
|
318
317
|
const env = {
|
|
319
318
|
...process.env,
|
|
319
|
+
PATH: updatedPath,
|
|
320
320
|
[packageManagerEnvVar]: "1",
|
|
321
321
|
CODEX_MANAGED_PACKAGE_ROOT: realpathSync(path.join(__dirname, "..")),
|
|
322
322
|
};
|
|
323
|
+
if (platform === "android") {
|
|
324
|
+
env.CODEX_SELF_EXE = binaryPath;
|
|
325
|
+
env.LD_LIBRARY_PATH = sanitizeAndroidLdLibraryPath(path.dirname(binaryPath));
|
|
326
|
+
}
|
|
323
327
|
|
|
324
328
|
const child = spawn(binaryPath, process.argv.slice(2), {
|
|
325
329
|
stdio: "inherit",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mmmbuto/codex-vl",
|
|
3
|
-
"version": "0.138.0-alpha.
|
|
3
|
+
"version": "0.138.0-alpha.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"bin": {
|
|
6
6
|
"codex-vl": "bin/codex.js",
|
|
@@ -25,4 +25,4 @@
|
|
|
25
25
|
"@mmmbuto/codex-vl-linux-arm64": "npm:@mmmbuto/codex-vl@0.138.0-alpha.4-linux-arm64",
|
|
26
26
|
"@mmmbuto/codex-vl-android-arm64": "npm:@mmmbuto/codex-vl@0.138.0-alpha.4-android-arm64"
|
|
27
27
|
}
|
|
28
|
-
}
|
|
28
|
+
}
|