@opencode-ai/cli 0.0.0-dev-202606270356 → 0.0.0-next-202606270104
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/{lildax → opencode2} +3 -3
- package/package.json +14 -14
package/bin/{lildax → opencode2}
RENAMED
|
@@ -31,11 +31,11 @@ function run(target) {
|
|
|
31
31
|
|
|
32
32
|
const envPath = process.env.OPENCODE_BIN_PATH
|
|
33
33
|
const scriptDir = path.dirname(fs.realpathSync(__filename))
|
|
34
|
-
const cached = path.join(scriptDir, ".
|
|
34
|
+
const cached = path.join(scriptDir, ".opencode2")
|
|
35
35
|
const platform = { darwin: "darwin", linux: "linux", win32: "windows" }[os.platform()] || os.platform()
|
|
36
36
|
const arch = { x64: "x64", arm64: "arm64", arm: "arm" }[os.arch()] || os.arch()
|
|
37
37
|
const base = "@opencode-ai/cli-" + platform + "-" + arch
|
|
38
|
-
const binary = platform === "windows" ? "
|
|
38
|
+
const binary = platform === "windows" ? "opencode2.exe" : "opencode2"
|
|
39
39
|
|
|
40
40
|
function supportsAvx2() {
|
|
41
41
|
if (arch !== "x64") return false
|
|
@@ -121,7 +121,7 @@ function findBinary(startDir) {
|
|
|
121
121
|
const resolved = envPath || (fs.existsSync(cached) ? cached : findBinary(scriptDir))
|
|
122
122
|
if (!resolved) {
|
|
123
123
|
console.error(
|
|
124
|
-
"It seems that your package manager failed to install the right
|
|
124
|
+
"It seems that your package manager failed to install the right opencode2 CLI package. Try manually installing " +
|
|
125
125
|
names.map((name) => `"${name}"`).join(" or ") +
|
|
126
126
|
" package",
|
|
127
127
|
)
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencode-ai/cli",
|
|
3
3
|
"bin": {
|
|
4
|
-
"
|
|
4
|
+
"opencode2": "./bin/opencode2"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.0.0-
|
|
6
|
+
"version": "0.0.0-next-202606270104",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
"x64"
|
|
20
20
|
],
|
|
21
21
|
"optionalDependencies": {
|
|
22
|
-
"@opencode-ai/cli-
|
|
23
|
-
"@opencode-ai/cli-
|
|
24
|
-
"@opencode-ai/cli-
|
|
25
|
-
"@opencode-ai/cli-
|
|
26
|
-
"@opencode-ai/cli-linux-x64-
|
|
27
|
-
"@opencode-ai/cli-linux-
|
|
28
|
-
"@opencode-ai/cli-darwin-
|
|
29
|
-
"@opencode-ai/cli-
|
|
30
|
-
"@opencode-ai/cli-windows-arm64": "0.0.0-
|
|
31
|
-
"@opencode-ai/cli-linux-
|
|
32
|
-
"@opencode-ai/cli-
|
|
33
|
-
"@opencode-ai/cli-
|
|
22
|
+
"@opencode-ai/cli-linux-x64-musl": "0.0.0-next-202606270104",
|
|
23
|
+
"@opencode-ai/cli-darwin-x64-baseline": "0.0.0-next-202606270104",
|
|
24
|
+
"@opencode-ai/cli-linux-x64": "0.0.0-next-202606270104",
|
|
25
|
+
"@opencode-ai/cli-windows-x64": "0.0.0-next-202606270104",
|
|
26
|
+
"@opencode-ai/cli-linux-x64-baseline": "0.0.0-next-202606270104",
|
|
27
|
+
"@opencode-ai/cli-linux-arm64": "0.0.0-next-202606270104",
|
|
28
|
+
"@opencode-ai/cli-darwin-x64": "0.0.0-next-202606270104",
|
|
29
|
+
"@opencode-ai/cli-darwin-arm64": "0.0.0-next-202606270104",
|
|
30
|
+
"@opencode-ai/cli-windows-arm64": "0.0.0-next-202606270104",
|
|
31
|
+
"@opencode-ai/cli-linux-x64-baseline-musl": "0.0.0-next-202606270104",
|
|
32
|
+
"@opencode-ai/cli-windows-x64-baseline": "0.0.0-next-202606270104",
|
|
33
|
+
"@opencode-ai/cli-linux-arm64-musl": "0.0.0-next-202606270104"
|
|
34
34
|
}
|
|
35
35
|
}
|