@opencode-ai/cli 0.0.0-next-17020 → 0.0.0-next-17025
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/package.json +13 -13
- package/postinstall.mjs +12 -2
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"postinstall": "node ./postinstall.mjs"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.0.0-next-
|
|
9
|
+
"version": "0.0.0-next-17025",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
"x64"
|
|
23
23
|
],
|
|
24
24
|
"optionalDependencies": {
|
|
25
|
-
"@opencode-ai/cli-linux-
|
|
26
|
-
"@opencode-ai/cli-
|
|
27
|
-
"@opencode-ai/cli-
|
|
28
|
-
"@opencode-ai/cli-
|
|
29
|
-
"@opencode-ai/cli-linux-
|
|
30
|
-
"@opencode-ai/cli-
|
|
31
|
-
"@opencode-ai/cli-
|
|
32
|
-
"@opencode-ai/cli-
|
|
33
|
-
"@opencode-ai/cli-
|
|
34
|
-
"@opencode-ai/cli-
|
|
35
|
-
"@opencode-ai/cli-
|
|
36
|
-
"@opencode-ai/cli-
|
|
25
|
+
"@opencode-ai/cli-linux-arm64-musl": "0.0.0-next-17025",
|
|
26
|
+
"@opencode-ai/cli-linux-x64": "0.0.0-next-17025",
|
|
27
|
+
"@opencode-ai/cli-darwin-x64-baseline": "0.0.0-next-17025",
|
|
28
|
+
"@opencode-ai/cli-darwin-x64": "0.0.0-next-17025",
|
|
29
|
+
"@opencode-ai/cli-linux-arm64": "0.0.0-next-17025",
|
|
30
|
+
"@opencode-ai/cli-windows-x64-baseline": "0.0.0-next-17025",
|
|
31
|
+
"@opencode-ai/cli-windows-x64": "0.0.0-next-17025",
|
|
32
|
+
"@opencode-ai/cli-linux-x64-musl": "0.0.0-next-17025",
|
|
33
|
+
"@opencode-ai/cli-windows-arm64": "0.0.0-next-17025",
|
|
34
|
+
"@opencode-ai/cli-linux-x64-baseline-musl": "0.0.0-next-17025",
|
|
35
|
+
"@opencode-ai/cli-linux-x64-baseline": "0.0.0-next-17025",
|
|
36
|
+
"@opencode-ai/cli-darwin-arm64": "0.0.0-next-17025"
|
|
37
37
|
}
|
|
38
38
|
}
|
package/postinstall.mjs
CHANGED
|
@@ -119,7 +119,15 @@ function installPackage(name) {
|
|
|
119
119
|
try {
|
|
120
120
|
const result = childProcess.spawnSync(
|
|
121
121
|
"npm",
|
|
122
|
-
[
|
|
122
|
+
[
|
|
123
|
+
"install",
|
|
124
|
+
"--ignore-scripts",
|
|
125
|
+
"--no-save",
|
|
126
|
+
"--loglevel=error",
|
|
127
|
+
"--prefix",
|
|
128
|
+
temp,
|
|
129
|
+
`${name}@${dependencies[name]}`,
|
|
130
|
+
],
|
|
123
131
|
{ stdio: "inherit", windowsHide: true },
|
|
124
132
|
)
|
|
125
133
|
if (result.status !== 0) return false
|
|
@@ -150,7 +158,9 @@ function main() {
|
|
|
150
158
|
}
|
|
151
159
|
}
|
|
152
160
|
|
|
153
|
-
throw new Error(
|
|
161
|
+
throw new Error(
|
|
162
|
+
`Failed to install OpenCode. Try manually installing ${names.map((name) => JSON.stringify(name)).join(" or ")}.`,
|
|
163
|
+
)
|
|
154
164
|
}
|
|
155
165
|
|
|
156
166
|
try {
|