Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(screen-worker): ship a real Chromium for the Stagehand v3 CDP launcher
nirholas0b25efecea1e
diff --git a/workers/agent-screen-worker/Dockerfile b/workers/agent-screen-worker/Dockerfileindex 10ecb7471..735ab677f 100644--- a/workers/agent-screen-worker/Dockerfile+++ b/workers/agent-screen-worker/Dockerfile@@ -1,27 +1,37 @@-# agent-screen-worker — long-lived browser capture worker.+# agent-screen-worker, long-lived browser capture worker.## Build from the worker directory:## docker build -t agent-screen-worker .# docker run --env-file .env agent-screen-worker#-# For Browserbase cloud mode, omit the playwright install step and-# set BROWSERBASE_API_KEY + BROWSERBASE_PROJECT_ID in your env.-# The Playwright base image is only needed for LOCAL browser mode.+# Stagehand v3 drives Chrome over CDP through chrome-launcher, NOT through+# Playwright, so LOCAL browser mode needs a real Chromium on the image. The+# distro package is installed below and pointed at with CHROME_PATH.+#+# For Browserbase cloud mode the browser runs on Browserbase, so the local+# Chromium is dead weight: build with --build-arg SKIP_BROWSERS=1 for a much+# smaller image and set BROWSERBASE_API_KEY at run time.-FROM mcr.microsoft.com/playwright:v1.44.0-jammy+FROM node:22-bookworm-slimWORKDIR /app-COPY package.json ./-RUN npm install --omit=dev+ARG SKIP_BROWSERS=0+RUN if [ "$SKIP_BROWSERS" = "0" ]; then \+ apt-get update && \+ apt-get install -y --no-install-recommends chromium ca-certificates fonts-liberation && \+ rm -rf /var/lib/apt/lists/*; \+ fi-COPY . .+# chrome-launcher searches for a browser on PATH; naming the binary explicitly+# keeps it deterministic. Harmless when SKIP_BROWSERS=1, since Browserbase mode+# never launches a local browser.+ENV CHROME_PATH=/usr/bin/chromium-# Pre-install Chromium for LOCAL browser mode.-# If you only use Browserbase, this layer can be skipped by building with-# --build-arg SKIP_BROWSERS=1 and adjusting the RUN command below.-ARG SKIP_BROWSERS=0-RUN if [ "$SKIP_BROWSERS" = "0" ]; then npx playwright install chromium --with-deps; fi+COPY package.json package-lock.json ./+RUN npm ci --omit=dev++COPY . .CMD ["node", "index.js"]