baro-ai 0.8.6 → 0.9.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/baro.cmd ADDED
@@ -0,0 +1,3 @@
1
+ @echo off
2
+ echo baro: binary not yet installed. Run: npm rebuild baro-ai 1>&2
3
+ exit /b 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baro-ai",
3
- "version": "0.8.6",
3
+ "version": "0.9.2",
4
4
  "description": "Autonomous parallel coding - plan and execute with AI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -12,7 +12,7 @@ import * as https from "https"
12
12
  const __dirname = path.dirname(fileURLToPath(import.meta.url))
13
13
  const PACKAGE_ROOT = path.resolve(__dirname, "..")
14
14
  const BIN_DIR = path.join(PACKAGE_ROOT, "bin")
15
- const BINARY_NAME = "baro"
15
+ const BINARY_NAME = process.platform === "win32" ? "baro.exe" : "baro"
16
16
  const REPO = "Lotus015/baro"
17
17
 
18
18
  function getPlatformKey() {
@@ -24,6 +24,7 @@ function getPlatformKey() {
24
24
  "darwin-x64": "darwin-x64",
25
25
  "linux-x64": "linux-x64",
26
26
  "linux-arm64": "linux-arm64",
27
+ "win32-x64": "windows-x64",
27
28
  }
28
29
 
29
30
  const key = `${platform}-${arch}`
@@ -67,7 +68,10 @@ async function main() {
67
68
  const platformKey = getPlatformKey()
68
69
  const version = getVersion()
69
70
 
70
- const url = `https://github.com/${REPO}/releases/download/v${version}/${BINARY_NAME}-${platformKey}`
71
+ const artifactName = process.platform === "win32"
72
+ ? `baro-${platformKey}.exe`
73
+ : `${BINARY_NAME}-${platformKey}`
74
+ const url = `https://github.com/${REPO}/releases/download/v${version}/${artifactName}`
71
75
 
72
76
  console.log(`Downloading baro for ${platformKey}...`)
73
77
 
@@ -75,7 +79,9 @@ async function main() {
75
79
 
76
80
  try {
77
81
  await download(url, binaryPath)
78
- fs.chmodSync(binaryPath, 0o755)
82
+ if (process.platform !== "win32") {
83
+ fs.chmodSync(binaryPath, 0o755)
84
+ }
79
85
  console.log(`baro installed successfully`)
80
86
  } catch (err) {
81
87
  console.warn(`Warning: Could not download baro: ${err.message}`)