feat: agent browser (#200)

* feat: agent browser

* chore: complete docker and action config

* feat: more actions

* feat: browser tab switch

* fix: browser build

* fix: lint

* fix: migrations
This commit is contained in:
Acbox Liu
2026-03-07 15:06:00 +08:00
committed by GitHub
parent 21999b49f4
commit bafd327b6b
67 changed files with 3586 additions and 47 deletions
+7
View File
@@ -0,0 +1,7 @@
FROM mcr.microsoft.com/playwright:v1.50.0-noble
RUN apt-get update && apt-get install -y --no-install-recommends unzip && rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://bun.sh/install | bash
ENV PATH="/root/.bun/bin:${PATH}"
WORKDIR /workspace
+5
View File
@@ -47,6 +47,11 @@ host = "agent"
port = 8081
server_addr = "server:8080"
[browser_gateway]
host = "browser"
port = 8083
server_addr = "server:8080"
[web]
host = "0.0.0.0"
port = 8082
+19
View File
@@ -137,6 +137,25 @@ services:
condition: service_healthy
restart: unless-stopped
browser:
build:
context: ..
dockerfile: devenv/Dockerfile.browser
container_name: memoh-dev-browser
working_dir: /workspace/apps/browser
command: ["bun", "run", "--watch", "src/index.ts"]
volumes:
- ..:/workspace
- node_modules:/workspace/node_modules
ports:
- "8083:8083"
depends_on:
deps:
condition: service_completed_successfully
server:
condition: service_healthy
restart: unless-stopped
volumes:
postgres_data:
driver: local