agent-browser 0.3.2 → 0.3.3

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.
Files changed (2) hide show
  1. package/bin/agent-browser +13 -2
  2. package/package.json +1 -1
package/bin/agent-browser CHANGED
@@ -2,8 +2,19 @@
2
2
  # Cross-platform launcher for agent-browser
3
3
  # Detects OS/arch and runs the appropriate native binary
4
4
 
5
- # Get the directory where this script lives
6
- SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
5
+ # Get the directory where this script lives (resolving symlinks)
6
+ SCRIPT="$0"
7
+ # Resolve symlinks
8
+ while [ -L "$SCRIPT" ]; do
9
+ SCRIPT_DIR="$(cd "$(dirname "$SCRIPT")" && pwd)"
10
+ SCRIPT="$(readlink "$SCRIPT")"
11
+ # Handle relative symlinks
12
+ case "$SCRIPT" in
13
+ /*) ;;
14
+ *) SCRIPT="$SCRIPT_DIR/$SCRIPT" ;;
15
+ esac
16
+ done
17
+ SCRIPT_DIR="$(cd "$(dirname "$SCRIPT")" && pwd)"
7
18
 
8
19
  # Detect platform
9
20
  OS="$(uname -s)"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-browser",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Headless browser automation CLI for AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",