Commit d5cb3cc
authored
feat(browser): delegate MCP/noVNC runtime to rust-browser-connection (#349)
* feat(browser-connection): new dedicated package for noVNC + browser connection (issue #347)
- Extracted BrowserConnection Effect Layer, pure helpers, invariants
- Supports both MCP and built-in Hermes browser tools out of the box
- Single browser session with noVNC/CDP (port 9223)
- Follows effect-template + AGENTS.md style (formal comments, types, Layer)
Closes #347
* feat(rust-browser-connection): Rust module for noVNC + browser connection per #347
- New package based on rust-ai-driven-development-pipeline-template
- BrowserConnection with start_browser, get_novnc_url, get_cdp_url, invariant
- Uses bollard for Docker, replicates docker-git MCP Playright + noVNC behavior
- Out of the box for both MCP and Hermes built-in browser tools
Closes #347
* feat(rust-browser-connection): full template from link-foundation + our noVNC/browser module for #347
- Full clone of rust-ai-driven-development-pipeline-template as base
- Adapted src/lib.rs with BrowserConnection (bollard, noVNC/CDP, single session)
- Cargo.toml with dependencies
- Main branch will be updated after merge
Closes #347 in docker-git
* Add full template from link-foundation/rust-ai-driven-development-pipeline-template + our noVNC/browser module for #347
* feat(shell): use Rust browser connection module
- Remove TS Playwright browser runtime and vendored Rust duplicate from docker-git
- Install ProverCoderAI/rust-browser-connection as the single noVNC/CDP browser provider
- Preserve invariant: generated Playwright MCP startup calls docker-git-browser-connection start --project <id> exactly once before MCP config
* fix(shell): install Rust browser module with stable cargo
Split Dockerfile fragments so vibecode-linter accepts the generated-template sources and install rust-browser-connection through rustup stable instead of the base image's Cargo 1.75.
Invariant: generated project images either contain /usr/local/bin/docker-git-browser-connection built by current stable cargo or fail the Docker build before MCP Playwright can start without a browser.
* fix(shell): provide C linker for Rust browser install
- Add build-essential to generated project images before cargo install
- Assert Dockerfile templates keep the cc toolchain needed by Rust build scripts
Root cause: cargo install of rust-browser-connection failed in E2E images with linker 'cc' not found.
* feat(browser): delegate MCP/noVNC runtime to rust-browser-connection
- remove legacy docker-git Playwright MCP wrapper generation
- install pinned Rust browser lifecycle and MCP binaries
- configure Codex/Claude/Gemini/Grok to use browser-connection
- add tests for safe project fallback and Rust-only browser artifacts
Verified-by: bun run typecheck; bun run test; bun run lint; runtime MCP/noVNC smoke
* fix(browser): restore Rust lifecycle guarantees
* fix(browser): split Rust entrypoint renderers
* fix(browser): pin idempotent Rust cleanup
* fix(browser): delegate start lifecycle to rust mcp1 parent b5fcafb commit d5cb3cc
45 files changed
Lines changed: 1344 additions & 1757 deletions
File tree
- .hermes/plans
- experiments
- packages
- app
- src
- docker-git/cli
- lib
- core
- templates-entrypoint
- templates
- usecases
- actions
- tests/docker-git
- lib
- src
- core
- templates-entrypoint
- templates
- usecases
- actions
- tests
- core
- usecases
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 78 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
Lines changed: 79 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
Lines changed: 71 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
0 commit comments