opencode-ai 0.4.0 → 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 CHANGED
@@ -11,7 +11,7 @@ set "script_dir=%~dp0"
11
11
  set "script_dir=%script_dir:~0,-1%"
12
12
 
13
13
  rem Detect platform and architecture
14
- set "platform=win32"
14
+ set "platform=windows"
15
15
 
16
16
  rem Detect architecture
17
17
  if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
package/package.json CHANGED
@@ -6,14 +6,14 @@
6
6
  "scripts": {
7
7
  "postinstall": "node ./postinstall.mjs"
8
8
  },
9
- "version": "0.4.0",
9
+ "version": "0.4.2",
10
10
  "optionalDependencies": {
11
- "opencode-windows-x64": "0.4.0",
12
- "opencode-linux-arm64": "0.4.0",
13
- "opencode-linux-x64": "0.4.0",
14
- "opencode-linux-x64-baseline": "0.4.0",
15
- "opencode-darwin-x64": "0.4.0",
16
- "opencode-darwin-x64-baseline": "0.4.0",
17
- "opencode-darwin-arm64": "0.4.0"
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 = "win32"
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 === "win32" ? "opencode.exe" : "opencode"
53
+ const binary = platform === "windows" ? "opencode.exe" : "opencode"
54
54
 
55
55
  try {
56
56
  // Use require.resolve to find the package