@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.
Files changed (2) hide show
  1. package/bin/codex.js +12 -8
  2. 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 codexExecutable = path.join(
91
- vendorRoot,
92
- targetTriple,
93
- "bin",
94
- process.platform === "win32" ? "codex.exe" : "codex",
95
- );
96
- if (existsSync(codexExecutable)) {
97
- return codexExecutable;
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmmbuto/codex-vl",
3
- "version": "0.138.0-alpha.5",
3
+ "version": "0.138.0-alpha.6",
4
4
  "license": "Apache-2.0",
5
5
  "bin": {
6
6
  "codex-vl": "bin/codex.js",