@kritchoff/agent-browser 0.9.32 → 0.9.34

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kritchoff/agent-browser",
3
- "version": "0.9.32",
3
+ "version": "0.9.34",
4
4
  "description": "Headless browser automation CLI for AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -38,8 +38,11 @@ log_error() {
38
38
  echo -e "${RED}[ERROR]${NC} $1"
39
39
  }
40
40
 
41
+ # Respect COMPOSE_FILE from environment, default to absolute path
42
+ COMPOSE_FILE="${COMPOSE_FILE:-$PROJECT_DIR/docker-compose.prod.yml}"
43
+
41
44
  # Detect container
42
- CONTAINER=$(docker compose -f docker-compose.prod.yml ps -q android-service)
45
+ CONTAINER=$(docker compose -f "$COMPOSE_FILE" ps -q android-service)
43
46
  if [ -z "$CONTAINER" ]; then
44
47
  log_error "android-service container not running."
45
48
  exit 1
package/sdk.sh CHANGED
@@ -174,6 +174,7 @@ cmd_stop() {
174
174
 
175
175
  cmd_reset() {
176
176
  log_info "Performing Fast Browser Reset..."
177
+ export COMPOSE_FILE="$COMPOSE_FILE"
177
178
  "$SDK_ROOT/scripts/fast_reset.sh"
178
179
  }
179
180
 
package/start.sh CHANGED
@@ -1,6 +1,8 @@
1
1
  #!/bin/bash
2
2
  set -e
3
3
 
4
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5
+
4
6
  # Colors
5
7
  GREEN='\033[0;32m'
6
8
  BLUE='\033[0;34m'
@@ -64,7 +66,7 @@ if [ -n "$SNAPSHOT_PATH" ]; then
64
66
  echo -e "${GREEN}OK${NC}"
65
67
 
66
68
  # Import
67
- if ./scripts/snapshot_manager.sh import "$SNAPSHOT_PATH" "w8rl_imported"; then
69
+ if "$SCRIPT_DIR/scripts/snapshot_manager.sh" import "$SNAPSHOT_PATH" "w8rl_imported"; then
68
70
  echo -e "${GREEN} Snapshot imported successfully.${NC}"
69
71
 
70
72
  # Configure emulator to load this snapshot