@kritchoff/agent-browser 0.9.10 → 0.9.12

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/README.sdk.md CHANGED
@@ -17,13 +17,13 @@ The official SDK for controlling the WootzApp Agent Browser environment. This pa
17
17
  ## Installation
18
18
 
19
19
  ```bash
20
- npm install @wootzapp/agent-browser
20
+ npm install @kritchoff/agent-browser
21
21
  ```
22
22
 
23
23
  ## Quick Start
24
24
 
25
25
  ```typescript
26
- import { WootzAgent } from '@wootzapp/agent-browser';
26
+ import { WootzAgent } from '@kritchoff/agent-browser';
27
27
 
28
28
  async function main() {
29
29
  const agent = new WootzAgent();
@@ -4,6 +4,7 @@ services:
4
4
  # ---------------------------------------------------------------------------
5
5
  android-service:
6
6
  image: kritchoff/agent-android:latest
7
+ platform: linux/amd64
7
8
  privileged: true # Required for KVM
8
9
  restart: always # Auto-restart on crash
9
10
  ports:
@@ -30,6 +31,7 @@ services:
30
31
  # ---------------------------------------------------------------------------
31
32
  agent-service:
32
33
  image: kritchoff/agent-daemon:latest
34
+ platform: linux/amd64
33
35
  restart: always
34
36
  depends_on:
35
37
  - android-service
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kritchoff/agent-browser",
3
- "version": "0.9.10",
3
+ "version": "0.9.12",
4
4
  "description": "Headless browser automation CLI for AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -23,32 +23,21 @@ NC='\033[0m'
23
23
 
24
24
  echo -e "${BLUE}Building and Pushing WootzApp Agent Browser images (version: $VERSION)...${NC}"
25
25
 
26
- # 1. Build Android Image
27
- echo -e "
28
- ${BLUE}Building Android Image...${NC}"
29
- docker build -t "$ORG/agent-android:$VERSION" ./android_world
30
-
31
- # 2. Build Daemon Image
32
- echo -e "
33
- ${BLUE}Building Daemon Image...${NC}"
34
- docker build -t "$ORG/agent-daemon:$VERSION" -f docker/Dockerfile.agent-prod .
35
-
36
- # 3. Push to Docker Hub
37
- echo -e "
38
- ${BLUE}Pushing to Docker Hub...${NC}"
39
- echo "Note: You must be logged in to Docker Hub with 'docker login'"
26
+ # 1. Build Android Image (Force AMD64)
27
+ echo -e "\n${BLUE}Building Android Image (linux/amd64)...${NC}"
28
+ # We use buildx to ensure platform is set correctly and push directly
29
+ docker buildx build --platform linux/amd64 -t "$ORG/agent-android:$VERSION" --push ./android_world
40
30
 
41
- docker push "$ORG/agent-android:$VERSION"
42
- docker push "$ORG/agent-daemon:$VERSION"
31
+ # 2. Build Daemon Image (Force AMD64)
32
+ echo -e "\n${BLUE}Building Daemon Image (linux/amd64)...${NC}"
33
+ docker buildx build --platform linux/amd64 -t "$ORG/agent-daemon:$VERSION" -f docker/Dockerfile.agent-prod --push .
43
34
 
44
- # Also tag as latest if a specific version was provided
35
+ # 3. Tag latest (if needed)
45
36
  if [ "$VERSION" != "latest" ]; then
46
- echo -e "
47
- ${BLUE}Tagging and Pushing latest...${NC}"
48
- docker tag "$ORG/agent-android:$VERSION" "$ORG/agent-android:latest"
49
- docker tag "$ORG/agent-daemon:$VERSION" "$ORG/agent-daemon:latest"
50
- docker push "$ORG/agent-android:latest"
51
- docker push "$ORG/agent-daemon:latest"
37
+ echo -e "\n${BLUE}Tagging and Pushing latest...${NC}"
38
+ # Rebuild/push with latest tag (layers cached)
39
+ docker buildx build --platform linux/amd64 -t "$ORG/agent-android:latest" --push ./android_world
40
+ docker buildx build --platform linux/amd64 -t "$ORG/agent-daemon:latest" -f docker/Dockerfile.agent-prod --push .
52
41
  fi
53
42
 
54
43
  echo -e "
package/sdk.sh CHANGED
@@ -13,6 +13,11 @@
13
13
 
14
14
  set -e
15
15
 
16
+ # Set high timeouts for large image downloads (Production robustness)
17
+ # This helps prevent 'TLS handshake timeout' on slow connections
18
+ export COMPOSE_HTTP_TIMEOUT=900
19
+ export DOCKER_CLIENT_TIMEOUT=900
20
+
16
21
  SDK_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
17
22
  CACHE_DIR="$SDK_ROOT/cache"
18
23
  SNAPSHOT_FILE="$CACHE_DIR/baseline.tar.gz"