baro-ai 0.3.2 → 0.3.4

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/.gitkeep ADDED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baro-ai",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "Autonomous parallel coding - plan and execute with AI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -12,8 +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-native"
16
- const RELEASE_NAME = "baro"
15
+ const BINARY_NAME = "baro"
17
16
  const REPO = "Lotus015/baro"
18
17
 
19
18
  function getPlatformKey() {
@@ -65,14 +64,10 @@ async function download(url, dest) {
65
64
 
66
65
  async function main() {
67
66
  const binaryPath = path.join(BIN_DIR, BINARY_NAME)
68
- if (fs.existsSync(binaryPath)) {
69
- return
70
- }
71
-
72
67
  const platformKey = getPlatformKey()
73
68
  const version = getVersion()
74
69
 
75
- const url = `https://github.com/${REPO}/releases/download/v${version}/${RELEASE_NAME}-${platformKey}`
70
+ const url = `https://github.com/${REPO}/releases/download/v${version}/${BINARY_NAME}-${platformKey}`
76
71
 
77
72
  console.log(`Downloading baro for ${platformKey}...`)
78
73
 
package/bin/baro DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env sh
2
- # Wrapper script that finds and runs the baro native binary.
3
- # The native binary is downloaded by postinstall.js as baro-native.
4
-
5
- SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
6
- NATIVE="$SCRIPT_DIR/baro-native"
7
-
8
- if [ ! -f "$NATIVE" ]; then
9
- echo "Error: baro native binary not found at $NATIVE" >&2
10
- echo "Try reinstalling: npm install -g baro-ai" >&2
11
- exit 1
12
- fi
13
-
14
- exec "$NATIVE" "$@"