agent-browser 0.8.0 → 0.8.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/agent-browser CHANGED
@@ -17,7 +17,9 @@ case "$ARCH" in x86_64|amd64) ARCH="x64" ;; aarch64|arm64) ARCH="arm64" ;; esac
17
17
 
18
18
  BINARY="$SCRIPT_DIR/agent-browser-${OS}-${ARCH}"
19
19
 
20
- if [ -f "$BINARY" ] && [ -x "$BINARY" ]; then
20
+ if [ -f "$BINARY" ]; then
21
+ # Ensure binary is executable (npm tarballs don't preserve execute bit)
22
+ [ -x "$BINARY" ] || chmod +x "$BINARY" 2>/dev/null
21
23
  exec "$BINARY" "$@"
22
24
  fi
23
25
 
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,13 @@
1
1
  @echo off
2
2
  setlocal
3
3
  set "SCRIPT_DIR=%~dp0"
4
- node "%SCRIPT_DIR%..\dist\index.js" %*
5
- exit /b %errorlevel%
4
+ set "BINARY=%SCRIPT_DIR%agent-browser-win32-x64.exe"
5
+
6
+ if exist "%BINARY%" (
7
+ "%BINARY%" %*
8
+ exit /b %errorlevel%
9
+ )
10
+
11
+ echo Error: No binary found for win32-x64 >&2
12
+ echo Run 'npm run build:native' to build for your platform >&2
13
+ exit /b 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-browser",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Headless browser automation CLI for AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/daemon.js",