@kritchoff/agent-browser 0.9.10 → 0.9.11
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 +2 -2
- package/package.json +1 -1
- package/scripts/publish_images.sh +12 -23
- package/sdk.sh +5 -0
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 @
|
|
20
|
+
npm install @kritchoff/agent-browser
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Quick Start
|
|
24
24
|
|
|
25
25
|
```typescript
|
|
26
|
-
import { WootzAgent } from '@
|
|
26
|
+
import { WootzAgent } from '@kritchoff/agent-browser';
|
|
27
27
|
|
|
28
28
|
async function main() {
|
|
29
29
|
const agent = new WootzAgent();
|
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
42
|
-
|
|
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
|
-
#
|
|
35
|
+
# 3. Tag latest (if needed)
|
|
45
36
|
if [ "$VERSION" != "latest" ]; then
|
|
46
|
-
echo -e "
|
|
47
|
-
|
|
48
|
-
docker
|
|
49
|
-
docker
|
|
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"
|