@jacks001314/codex-go 1.0.0 → 1.0.2
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 -1
- package/package.json +7 -7
package/bin/codex.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
|
-
import { existsSync, realpathSync } from "node:fs";
|
|
4
|
+
import { chmodSync, existsSync, realpathSync } from "node:fs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
@@ -64,6 +64,14 @@ if (!existsSync(executable)) {
|
|
|
64
64
|
process.exit(1);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
// The native binary must be executable. When a platform package was built or
|
|
68
|
+
// packed on a host that does not preserve Unix mode bits (e.g. Windows), the
|
|
69
|
+
// tarball ships the binary without the exec bit, causing EACCES on Linux/macOS.
|
|
70
|
+
// Ensure it is executable before spawn (no-op on Windows, harmless elsewhere).
|
|
71
|
+
try {
|
|
72
|
+
chmodSync(executable, 0o755);
|
|
73
|
+
} catch {}
|
|
74
|
+
|
|
67
75
|
function isPnpmOwnedCodexInstall(nodeModulesDir) {
|
|
68
76
|
if (!existsSync(path.join(nodeModulesDir, ".modules.yaml"))) return false;
|
|
69
77
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jacks001314/codex-go",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Codex CLI implemented in Go",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"url": "git+https://github.com/jacks001314/codex_go.git"
|
|
19
19
|
},
|
|
20
20
|
"optionalDependencies": {
|
|
21
|
-
"@jacks001314/codex-go-linux-x64": "1.0.
|
|
22
|
-
"@jacks001314/codex-go-linux-arm64": "1.0.
|
|
23
|
-
"@jacks001314/codex-go-darwin-x64": "1.0.
|
|
24
|
-
"@jacks001314/codex-go-darwin-arm64": "1.0.
|
|
25
|
-
"@jacks001314/codex-go-win32-x64": "1.0.
|
|
26
|
-
"@jacks001314/codex-go-win32-arm64": "1.0.
|
|
21
|
+
"@jacks001314/codex-go-linux-x64": "1.0.2",
|
|
22
|
+
"@jacks001314/codex-go-linux-arm64": "1.0.2",
|
|
23
|
+
"@jacks001314/codex-go-darwin-x64": "1.0.2",
|
|
24
|
+
"@jacks001314/codex-go-darwin-arm64": "1.0.2",
|
|
25
|
+
"@jacks001314/codex-go-win32-x64": "1.0.2",
|
|
26
|
+
"@jacks001314/codex-go-win32-arm64": "1.0.2"
|
|
27
27
|
}
|
|
28
28
|
}
|