feat: add browser automation tool using Vercel agent-browser
- Add src/tools/browser.rs with BrowserTool implementation - Wraps agent-browser CLI for AI-optimized web browsing - Supports: open, snapshot, click, fill, type, screenshot, wait, etc. - Uses refs (@e1, @e2) from accessibility snapshots for precise element selection - JSON output mode for LLM integration - Security: allowlist-only domains, blocks private/local hosts - Add session_name to BrowserConfig for persistent sessions - Register BrowserTool in tools/mod.rs alongside BrowserOpenTool All tests pass.
This commit is contained in:
parent
153d6ff149
commit
554f6e9ea5
5 changed files with 1084 additions and 15 deletions
48
docker-compose.yml
Normal file
48
docker-compose.yml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
# ZeroClaw Docker Compose Example
|
||||
#
|
||||
# Quick start:
|
||||
# 1. Copy this file and set your API key
|
||||
# 2. Run: docker-compose up -d
|
||||
# 3. Access gateway at http://localhost:3000
|
||||
#
|
||||
# For more info: https://github.com/theonlyhennygod/zeroclaw
|
||||
|
||||
services:
|
||||
zeroclaw:
|
||||
image: zeroclaw/zeroclaw:latest
|
||||
# Or build locally:
|
||||
# build: .
|
||||
container_name: zeroclaw
|
||||
restart: unless-stopped
|
||||
|
||||
environment:
|
||||
# Required: Your LLM provider API key
|
||||
- API_KEY=${API_KEY:-}
|
||||
# Or use the prefixed version:
|
||||
# - ZEROCLAW_API_KEY=${ZEROCLAW_API_KEY:-}
|
||||
|
||||
# Optional: LLM provider (default: openrouter)
|
||||
# Options: openrouter, openai, anthropic, ollama
|
||||
- PROVIDER=${PROVIDER:-openrouter}
|
||||
|
||||
# Optional: Model override
|
||||
# - ZEROCLAW_MODEL=anthropic/claude-sonnet-4-20250514
|
||||
|
||||
volumes:
|
||||
# Persist workspace and config
|
||||
- zeroclaw-data:/data
|
||||
|
||||
ports:
|
||||
# Gateway API port
|
||||
- "3000:3000"
|
||||
|
||||
# Health check
|
||||
healthcheck:
|
||||
test: ["CMD", "zeroclaw", "doctor"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
|
||||
volumes:
|
||||
zeroclaw-data:
|
||||
Loading…
Add table
Add a link
Reference in a new issue