molecule-core/plugins/browser-automation
airenostars ff19c2ce26 feat(browser-automation): bundle host-bridge CDP proxy + connect helper
The plugin now ships everything a user needs to wire Chrome on their
host to workspaces inside Docker:

- host-bridge/cdp-proxy.cjs — rewrites the Host header so Chrome accepts
  DevTools Protocol connections from container-originated traffic, and
  forwards both HTTP (tab list, screenshots) and WebSocket upgrades.

- host-bridge/install-host-bridge.sh — one-command install on macOS
  (launchd user agent) or Linux (systemd --user unit). `uninstall`
  subcommand cleans up. No root required.

- skills/browser-automation/lib/connect.js — the mandatory helper
  consumers already use; re-exported here so the plugin is self-contained.

- SKILL.md — documents the one-time host setup and the existing
  defaultViewport:null + disconnect-not-close rules. The 2026-04-15
  social-media-poster incident (3h debug chasing phantom "sessions
  expired" errors on an 800x600 viewport) is captured inline.

Smoke-tested on macOS: install script registered the agent, proxy
listens on 0.0.0.0:9223, and a live workspace container
(ws-bee4d521-3d3) successfully reached Chrome via
host.docker.internal:9223.

This replaces ad-hoc per-user CDP proxies and makes the plugin
usable by any Molecule operator, not just the Reno Stars org.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 17:29:46 -07:00
..
adapters initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
host-bridge feat(browser-automation): bundle host-bridge CDP proxy + connect helper 2026-04-15 17:29:46 -07:00
rules initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
skills/browser-automation feat(browser-automation): bundle host-bridge CDP proxy + connect helper 2026-04-15 17:29:46 -07:00
plugin.yaml initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
setup.sh initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00