opencode-ai 0.4.1 → 0.4.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/opencode.cmd +1 -1
- package/package.json +8 -8
- package/postinstall.mjs +2 -2
package/bin/opencode.cmd
CHANGED
package/package.json
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"postinstall": "node ./postinstall.mjs"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.4.
|
|
9
|
+
"version": "0.4.2",
|
|
10
10
|
"optionalDependencies": {
|
|
11
|
-
"opencode-windows-x64": "0.4.
|
|
12
|
-
"opencode-linux-arm64": "0.4.
|
|
13
|
-
"opencode-linux-x64": "0.4.
|
|
14
|
-
"opencode-linux-x64-baseline": "0.4.
|
|
15
|
-
"opencode-darwin-x64": "0.4.
|
|
16
|
-
"opencode-darwin-x64-baseline": "0.4.
|
|
17
|
-
"opencode-darwin-arm64": "0.4.
|
|
11
|
+
"opencode-windows-x64": "0.4.2",
|
|
12
|
+
"opencode-linux-arm64": "0.4.2",
|
|
13
|
+
"opencode-linux-x64": "0.4.2",
|
|
14
|
+
"opencode-linux-x64-baseline": "0.4.2",
|
|
15
|
+
"opencode-darwin-x64": "0.4.2",
|
|
16
|
+
"opencode-darwin-x64-baseline": "0.4.2",
|
|
17
|
+
"opencode-darwin-arm64": "0.4.2"
|
|
18
18
|
}
|
|
19
19
|
}
|
package/postinstall.mjs
CHANGED
|
@@ -20,7 +20,7 @@ function detectPlatformAndArch() {
|
|
|
20
20
|
platform = "linux"
|
|
21
21
|
break
|
|
22
22
|
case "win32":
|
|
23
|
-
platform = "
|
|
23
|
+
platform = "windows"
|
|
24
24
|
break
|
|
25
25
|
default:
|
|
26
26
|
platform = os.platform()
|
|
@@ -50,7 +50,7 @@ function detectPlatformAndArch() {
|
|
|
50
50
|
function findBinary() {
|
|
51
51
|
const { platform, arch } = detectPlatformAndArch()
|
|
52
52
|
const packageName = `opencode-${platform}-${arch}`
|
|
53
|
-
const binary = platform === "
|
|
53
|
+
const binary = platform === "windows" ? "opencode.exe" : "opencode"
|
|
54
54
|
|
|
55
55
|
try {
|
|
56
56
|
// Use require.resolve to find the package
|