Make OpenCode Browser behave like the OpenWork browser tool example: direct CDP control with explicit browser endpoints and target IDs.
- Replaced the extension/native-host/broker backend with a direct CDP plugin implementation.
- Added minimal CDP and accessibility snapshot helpers under
src/lib/. - Exposed the example-compatible tools:
browser_list,browser_navigate,browser_snapshot,browser_click,browser_fill,browser_eval, andbrowser_screenshot. - Removed bundled agent-browser, Chrome Web Store, extension, native host, and broker artifacts.
- Updated README, CLI, lockfiles, and skill guidance for explicit
browser_urlusage.
- The direct CDP model is easier to reason about and avoids hidden singleton browser state.
- Explicit
browser_urlvalues make local, Electron, and remote browser targets predictable. - Snapshot UIDs provide a simple action workflow without maintaining selector-specific browser APIs.
- Run a live browser smoke test once a CDP endpoint is available.
- Consider adding more CDP primitives only when concrete workflows need them.