@mmmbuto/codex-vl 0.138.0-alpha.5 → 0.138.0-alpha.6
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 +12 -8
- package/package.json +1 -1
package/bin/codex.js
CHANGED
|
@@ -87,14 +87,18 @@ function findCodexExecutable() {
|
|
|
87
87
|
vendorRoot = path.join(__dirname, "..", "vendor");
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
90
|
+
const exeName = process.platform === "win32" ? "codex.exe" : "codex";
|
|
91
|
+
// Upstream 0.138 launcher expects vendor/<triple>/bin/<exe>; the fork CI
|
|
92
|
+
// payloads ship vendor/<triple>/codex/<exe> (pre-0.138 layout). Accept
|
|
93
|
+
// both so a launcher/payload layout drift can never brick the install.
|
|
94
|
+
const candidates = [
|
|
95
|
+
path.join(vendorRoot, targetTriple, "bin", exeName),
|
|
96
|
+
path.join(vendorRoot, targetTriple, "codex", exeName),
|
|
97
|
+
];
|
|
98
|
+
for (const codexExecutable of candidates) {
|
|
99
|
+
if (existsSync(codexExecutable)) {
|
|
100
|
+
return codexExecutable;
|
|
101
|
+
}
|
|
98
102
|
}
|
|
99
103
|
|
|
100
104
|
const packageManager = detectPackageManager();
|