mirror of
https://github.com/epiral/bb-browser.git
synced 2026-09-14 13:45:45 +08:00
2d834e5699
Merge daemon + cdp-monitor into a single CDP-direct backend. All CLI and MCP commands now route through the daemon HTTP API instead of direct CDP connections or Extension relay. Key changes: - Daemon: rewrite to hold persistent CDP WebSocket, handle all 30+ commands via dispatchRequest, per-tab event state with RingBuffer, short tab IDs (4-char hex), global seq counter, incremental queries via since/cursor mechanism - CLI: all commands route through daemon HTTP, --tab accepts string short IDs, add --since/--method/--status flags for network queries, fix tab close with --tab flag, fix invalid tab ID silent fallback - MCP: tab parameter z.number() → z.string(), add browser_console and browser_errors tools, add since/method/status/limit params to browser_network, remove Extension dependency hints - Shared: export additional types for daemon consumption Bug fixes from harness testing: - Invalid tab ID now errors instead of silent fallback - tab_new works with zero existing tabs - console.warn() correctly captured as type "warn" - --tab flag works with tab close command Closes #131 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>