@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.
Files changed (2) hide show
  1. package/package.json +13 -13
  2. 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-17020",
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-x64": "0.0.0-next-17020",
26
- "@opencode-ai/cli-darwin-x64-baseline": "0.0.0-next-17020",
27
- "@opencode-ai/cli-windows-x64-baseline": "0.0.0-next-17020",
28
- "@opencode-ai/cli-linux-arm64": "0.0.0-next-17020",
29
- "@opencode-ai/cli-linux-x64-baseline": "0.0.0-next-17020",
30
- "@opencode-ai/cli-linux-x64-baseline-musl": "0.0.0-next-17020",
31
- "@opencode-ai/cli-linux-arm64-musl": "0.0.0-next-17020",
32
- "@opencode-ai/cli-windows-arm64": "0.0.0-next-17020",
33
- "@opencode-ai/cli-linux-x64-musl": "0.0.0-next-17020",
34
- "@opencode-ai/cli-darwin-arm64": "0.0.0-next-17020",
35
- "@opencode-ai/cli-darwin-x64": "0.0.0-next-17020",
36
- "@opencode-ai/cli-windows-x64": "0.0.0-next-17020"
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
- ["install", "--ignore-scripts", "--no-save", "--loglevel=error", "--prefix", temp, `${name}@${dependencies[name]}`],
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(`Failed to install OpenCode. Try manually installing ${names.map((name) => JSON.stringify(name)).join(" or ")}.`)
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 {