opencode-ai 0.0.0-202507120151 → 0.1.0-beta3

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 CHANGED
@@ -49,7 +49,7 @@ else
49
49
  done
50
50
 
51
51
  if [ -z "$resolved" ]; then
52
- printf "It seems that your package manager failed to install the right version of the opencode CLI for your platform. You can try manually installing the \"%s\" package\n" "$name" >&2
52
+ printf "It seems that your package manager failed to install the right version of the SST CLI for your platform. You can try manually installing the \"%s\" package\n" "$name" >&2
53
53
  exit 1
54
54
  fi
55
55
  fi
package/package.json CHANGED
@@ -4,14 +4,14 @@
4
4
  "opencode": "./bin/opencode"
5
5
  },
6
6
  "scripts": {
7
- "postinstall": "node ./postinstall.mjs"
7
+ "postinstall": "node ./postinstall.js"
8
8
  },
9
- "version": "0.0.0-202507120151",
9
+ "version": "0.1.0-beta3",
10
10
  "optionalDependencies": {
11
- "opencode-linux-arm64": "0.0.0-202507120151",
12
- "opencode-linux-x64": "0.0.0-202507120151",
13
- "opencode-darwin-x64": "0.0.0-202507120151",
14
- "opencode-darwin-arm64": "0.0.0-202507120151",
15
- "opencode-windows-x64": "0.0.0-202507120151"
11
+ "opencode-linux-arm64": "0.1.0-beta3",
12
+ "opencode-linux-x64": "0.1.0-beta3",
13
+ "opencode-darwin-x64": "0.1.0-beta3",
14
+ "opencode-darwin-arm64": "0.1.0-beta3",
15
+ "opencode-windows-x64": "0.1.0-beta3"
16
16
  }
17
17
  }
@@ -80,9 +80,9 @@ function main() {
80
80
 
81
81
  // Create symlink to the actual binary
82
82
  fs.symlinkSync(binaryPath, binScript)
83
- console.log(`opencode binary symlinked: ${binScript} -> ${binaryPath}`)
83
+ console.log(`OpenCode binary symlinked: ${binScript} -> ${binaryPath}`)
84
84
  } catch (error) {
85
- console.error("Failed to create opencode binary symlink:", error.message)
85
+ console.error("Failed to create OpenCode binary symlink:", error.message)
86
86
  process.exit(1)
87
87
  }
88
88
  }
package/bin/opencode.cmd DELETED
@@ -1,56 +0,0 @@
1
- @echo off
2
- setlocal enabledelayedexpansion
3
-
4
- if defined OPENCODE_BIN_PATH (
5
- set "resolved=%OPENCODE_BIN_PATH%"
6
- goto :execute
7
- )
8
-
9
- rem Get the directory of this script
10
- set "script_dir=%~dp0"
11
- set "script_dir=%script_dir:~0,-1%"
12
-
13
- rem Detect platform and architecture
14
- set "platform=win32"
15
-
16
- rem Detect architecture
17
- if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
18
- set "arch=x64"
19
- ) else if "%PROCESSOR_ARCHITECTURE%"=="ARM64" (
20
- set "arch=arm64"
21
- ) else if "%PROCESSOR_ARCHITECTURE%"=="x86" (
22
- set "arch=x86"
23
- ) else (
24
- set "arch=x64"
25
- )
26
-
27
- set "name=opencode-!platform!-!arch!"
28
- set "binary=opencode.exe"
29
-
30
- rem Search for the binary starting from script location
31
- set "resolved="
32
- set "current_dir=%script_dir%"
33
-
34
- :search_loop
35
- set "candidate=%current_dir%\node_modules\%name%\bin\%binary%"
36
- if exist "%candidate%" (
37
- set "resolved=%candidate%"
38
- goto :execute
39
- )
40
-
41
- rem Move up one directory
42
- for %%i in ("%current_dir%") do set "parent_dir=%%~dpi"
43
- set "parent_dir=%parent_dir:~0,-1%"
44
-
45
- rem Check if we've reached the root
46
- if "%current_dir%"=="%parent_dir%" goto :not_found
47
- set "current_dir=%parent_dir%"
48
- goto :search_loop
49
-
50
- :not_found
51
- echo It seems that your package manager failed to install the right version of the opencode CLI for your platform. You can try manually installing the "%name%" package >&2
52
- exit /b 1
53
-
54
- :execute
55
- rem Execute the binary with all arguments
56
- "%resolved%" %*