From 7a1d423412ab0a46cc1781d223f9d5290bfe7fc6 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 11 Dec 2025 18:10:39 +0000 Subject: [PATCH 1/4] fix: disable pino to prevent pino-pretty errors in production MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pino-pretty transport cannot be loaded in serverless/bundled production environments (like Vercel), causing the error: "unable to determine transport target for pino-pretty" This fix adds `disablePino: true` to the Stagehand constructor, which bypasses pino initialization entirely and uses only the custom console.error logger. Tested end-to-end with real Browserbase sessions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/sessionManager.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sessionManager.ts b/src/sessionManager.ts index 602f8695..4c72e60c 100644 --- a/src/sessionManager.ts +++ b/src/sessionManager.ts @@ -62,6 +62,9 @@ export const createStagehandInstance = async ( mcp: "true", }, }, + // Disable pino to prevent pino-pretty errors in production environments + // (pino-pretty is not available in serverless/bundled deployments) + disablePino: true, logger: (logLine) => { console.error(`Stagehand[${sessionId}]: ${logLine.message}`); }, From 74fca972e8d7c8d5a123b8ec77ba4a7e56ca2496 Mon Sep 17 00:00:00 2001 From: LifeOS Agent Date: Sun, 8 Feb 2026 21:29:17 -0800 Subject: [PATCH 2/4] Initial commit Co-Authored-By: Claude Opus 4.6 --- .changeset/README.md | 0 .changeset/config.json | 0 .dockerignore | 0 .gitattributes | 0 .github/workflows/ci.yml | 0 .github/workflows/publish-mcp.yml | 0 .gitignore | 0 .npmrc | 0 CHANGELOG.md | 0 Dockerfile | 0 LICENSE | 0 README.md | 0 assets/browserbase-mcp.png | Bin assets/cover.png | Bin assets/smithery.jpg | Bin config.d.ts | 0 eslint.config.js | 0 evals/mcp-eval-basic.config.json | 0 evals/mcp-eval-minimal.config.json | 0 evals/mcp-eval.config.json | 0 evals/run-evals.ts | 0 gemini-extension.json | 0 index.d.ts | 0 index.js | 0 package.json | 0 pnpm-lock.yaml | 0 server.json | 0 smithery.yaml | 0 src/config.ts | 0 src/context.ts | 0 src/index.ts | 0 src/mcp/resources.ts | 0 src/mcp/sampling.ts | 0 src/program.ts | 0 src/server.ts | 0 src/sessionManager.ts | 0 src/tools/act.ts | 0 src/tools/agent.ts | 0 src/tools/extract.ts | 0 src/tools/index.ts | 0 src/tools/navigate.ts | 0 src/tools/observe.ts | 0 src/tools/screenshot.ts | 0 src/tools/session.ts | 0 src/tools/tool.ts | 0 src/tools/url.ts | 0 src/transport.ts | 0 src/types/types.ts | 0 tests/.gitkeep | 0 tsconfig.json | 0 50 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 .changeset/README.md mode change 100644 => 100755 .changeset/config.json mode change 100644 => 100755 .dockerignore mode change 100644 => 100755 .gitattributes mode change 100644 => 100755 .github/workflows/ci.yml mode change 100644 => 100755 .github/workflows/publish-mcp.yml mode change 100644 => 100755 .gitignore mode change 100644 => 100755 .npmrc mode change 100644 => 100755 CHANGELOG.md mode change 100644 => 100755 Dockerfile mode change 100644 => 100755 LICENSE mode change 100644 => 100755 README.md mode change 100644 => 100755 assets/browserbase-mcp.png mode change 100644 => 100755 assets/cover.png mode change 100644 => 100755 assets/smithery.jpg mode change 100644 => 100755 config.d.ts mode change 100644 => 100755 eslint.config.js mode change 100644 => 100755 evals/mcp-eval-basic.config.json mode change 100644 => 100755 evals/mcp-eval-minimal.config.json mode change 100644 => 100755 evals/mcp-eval.config.json mode change 100644 => 100755 evals/run-evals.ts mode change 100644 => 100755 gemini-extension.json mode change 100644 => 100755 index.d.ts mode change 100644 => 100755 index.js mode change 100644 => 100755 package.json mode change 100644 => 100755 pnpm-lock.yaml mode change 100644 => 100755 server.json mode change 100644 => 100755 smithery.yaml mode change 100644 => 100755 src/config.ts mode change 100644 => 100755 src/context.ts mode change 100644 => 100755 src/index.ts mode change 100644 => 100755 src/mcp/resources.ts mode change 100644 => 100755 src/mcp/sampling.ts mode change 100644 => 100755 src/program.ts mode change 100644 => 100755 src/server.ts mode change 100644 => 100755 src/sessionManager.ts mode change 100644 => 100755 src/tools/act.ts mode change 100644 => 100755 src/tools/agent.ts mode change 100644 => 100755 src/tools/extract.ts mode change 100644 => 100755 src/tools/index.ts mode change 100644 => 100755 src/tools/navigate.ts mode change 100644 => 100755 src/tools/observe.ts mode change 100644 => 100755 src/tools/screenshot.ts mode change 100644 => 100755 src/tools/session.ts mode change 100644 => 100755 src/tools/tool.ts mode change 100644 => 100755 src/tools/url.ts mode change 100644 => 100755 src/transport.ts mode change 100644 => 100755 src/types/types.ts mode change 100644 => 100755 tests/.gitkeep mode change 100644 => 100755 tsconfig.json diff --git a/.changeset/README.md b/.changeset/README.md old mode 100644 new mode 100755 diff --git a/.changeset/config.json b/.changeset/config.json old mode 100644 new mode 100755 diff --git a/.dockerignore b/.dockerignore old mode 100644 new mode 100755 diff --git a/.gitattributes b/.gitattributes old mode 100644 new mode 100755 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml old mode 100644 new mode 100755 diff --git a/.github/workflows/publish-mcp.yml b/.github/workflows/publish-mcp.yml old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.npmrc b/.npmrc old mode 100644 new mode 100755 diff --git a/CHANGELOG.md b/CHANGELOG.md old mode 100644 new mode 100755 diff --git a/Dockerfile b/Dockerfile old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/assets/browserbase-mcp.png b/assets/browserbase-mcp.png old mode 100644 new mode 100755 diff --git a/assets/cover.png b/assets/cover.png old mode 100644 new mode 100755 diff --git a/assets/smithery.jpg b/assets/smithery.jpg old mode 100644 new mode 100755 diff --git a/config.d.ts b/config.d.ts old mode 100644 new mode 100755 diff --git a/eslint.config.js b/eslint.config.js old mode 100644 new mode 100755 diff --git a/evals/mcp-eval-basic.config.json b/evals/mcp-eval-basic.config.json old mode 100644 new mode 100755 diff --git a/evals/mcp-eval-minimal.config.json b/evals/mcp-eval-minimal.config.json old mode 100644 new mode 100755 diff --git a/evals/mcp-eval.config.json b/evals/mcp-eval.config.json old mode 100644 new mode 100755 diff --git a/evals/run-evals.ts b/evals/run-evals.ts old mode 100644 new mode 100755 diff --git a/gemini-extension.json b/gemini-extension.json old mode 100644 new mode 100755 diff --git a/index.d.ts b/index.d.ts old mode 100644 new mode 100755 diff --git a/index.js b/index.js old mode 100644 new mode 100755 diff --git a/package.json b/package.json old mode 100644 new mode 100755 diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml old mode 100644 new mode 100755 diff --git a/server.json b/server.json old mode 100644 new mode 100755 diff --git a/smithery.yaml b/smithery.yaml old mode 100644 new mode 100755 diff --git a/src/config.ts b/src/config.ts old mode 100644 new mode 100755 diff --git a/src/context.ts b/src/context.ts old mode 100644 new mode 100755 diff --git a/src/index.ts b/src/index.ts old mode 100644 new mode 100755 diff --git a/src/mcp/resources.ts b/src/mcp/resources.ts old mode 100644 new mode 100755 diff --git a/src/mcp/sampling.ts b/src/mcp/sampling.ts old mode 100644 new mode 100755 diff --git a/src/program.ts b/src/program.ts old mode 100644 new mode 100755 diff --git a/src/server.ts b/src/server.ts old mode 100644 new mode 100755 diff --git a/src/sessionManager.ts b/src/sessionManager.ts old mode 100644 new mode 100755 diff --git a/src/tools/act.ts b/src/tools/act.ts old mode 100644 new mode 100755 diff --git a/src/tools/agent.ts b/src/tools/agent.ts old mode 100644 new mode 100755 diff --git a/src/tools/extract.ts b/src/tools/extract.ts old mode 100644 new mode 100755 diff --git a/src/tools/index.ts b/src/tools/index.ts old mode 100644 new mode 100755 diff --git a/src/tools/navigate.ts b/src/tools/navigate.ts old mode 100644 new mode 100755 diff --git a/src/tools/observe.ts b/src/tools/observe.ts old mode 100644 new mode 100755 diff --git a/src/tools/screenshot.ts b/src/tools/screenshot.ts old mode 100644 new mode 100755 diff --git a/src/tools/session.ts b/src/tools/session.ts old mode 100644 new mode 100755 diff --git a/src/tools/tool.ts b/src/tools/tool.ts old mode 100644 new mode 100755 diff --git a/src/tools/url.ts b/src/tools/url.ts old mode 100644 new mode 100755 diff --git a/src/transport.ts b/src/transport.ts old mode 100644 new mode 100755 diff --git a/src/types/types.ts b/src/types/types.ts old mode 100644 new mode 100755 diff --git a/tests/.gitkeep b/tests/.gitkeep old mode 100644 new mode 100755 diff --git a/tsconfig.json b/tsconfig.json old mode 100644 new mode 100755 From 28f2b4834e8370565e03a467d04a08e80cb14149 Mon Sep 17 00:00:00 2001 From: Julian Bradley Date: Sat, 30 May 2026 16:05:43 -0700 Subject: [PATCH 3/4] docs: add AI Acrobatics agent contract footer --- AGENTS.md | 17 +++++++++++++++++ CLAUDE.md | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 AGENTS.md create mode 100644 CLAUDE.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 00000000..34b9ec36 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,17 @@ + +# AI Acrobatics Agent Contract + +Before non-trivial AI Acrobatics work, run the local source preflight: + +```bash +~/.ai-acrobatics/agent-preflight/agent-source-preflight.sh --print +``` + +Use Obsidian as the source router: + +```bash +"$HOME/Library/Mobile Documents/iCloud~md~obsidian/Documents/AI Acrobatics Vault/Tools/obsidian-context-router.sh" route "" +``` + +Load the cited MOCs, SOPs, Laws, and project files before editing or debugging. Verify live evidence before reporting status. If blocked, name the exact missing file, auth, service, platform signal, or source-of-truth mismatch. Write durable workflow/source changes back to the vault or memory. + diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 00000000..34b9ec36 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,17 @@ + +# AI Acrobatics Agent Contract + +Before non-trivial AI Acrobatics work, run the local source preflight: + +```bash +~/.ai-acrobatics/agent-preflight/agent-source-preflight.sh --print +``` + +Use Obsidian as the source router: + +```bash +"$HOME/Library/Mobile Documents/iCloud~md~obsidian/Documents/AI Acrobatics Vault/Tools/obsidian-context-router.sh" route "" +``` + +Load the cited MOCs, SOPs, Laws, and project files before editing or debugging. Verify live evidence before reporting status. If blocked, name the exact missing file, auth, service, platform signal, or source-of-truth mismatch. Write durable workflow/source changes back to the vault or memory. + From 46896a2ba2cbeea095b8d3565dc7b36983aae9ef Mon Sep 17 00:00:00 2001 From: Julian Bradley Date: Tue, 2 Jun 2026 18:11:41 -0700 Subject: [PATCH 4/4] chore: add .planning stubs (HANDOFF.md + STATE.md) --- .planning/HANDOFF.md | 18 ++++++++++++++++++ .planning/STATE.md | 16 ++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .planning/HANDOFF.md create mode 100644 .planning/STATE.md diff --git a/.planning/HANDOFF.md b/.planning/HANDOFF.md new file mode 100644 index 00000000..df5a31ba --- /dev/null +++ b/.planning/HANDOFF.md @@ -0,0 +1,18 @@ +# HANDOFF — mcp-server-browserbase + +## Project Context +AI Acrobatics client repository. + +## Current Status +- Repo baseline established +- Awaiting detailed project handoff + +## Recent Changes +- 2026-06-02: Planning stub created + +## Blockers +- None recorded + +## Next Actions +- Populate with project-specific context +- Define acceptance criteria and deliverables diff --git a/.planning/STATE.md b/.planning/STATE.md new file mode 100644 index 00000000..391fed18 --- /dev/null +++ b/.planning/STATE.md @@ -0,0 +1,16 @@ +# STATE — mcp-server-browserbase + +## Current Sprint +- Baseline / discovery + +## Active Branches +- main / master (default) + +## Environment +- Local dev + +## Known Issues +- None recorded + +## Assets & Links +- TBD