Repository navigation
Added
- OpenCode 2 support: the package now default-exports a V2 plugin definition (
id+setup) alongside the existing V1server()function, so one package works on OpenCode 1.18.29+ and OpenCode 2 (#5, thanks @daropotter) - V2 port of every browser guidance hook: session system guidance, tool performance hints, connection recovery hints, compaction context, and session cleanup via
ctx.event.subscribe() - Connection recovery also follows browser tools invoked through Code Mode by reading the nested
toolCallsmetadata onexecuteresults - Recognize "No connection to browser extension" as a connection failure so the recovery hint can surface for the current Browser MCP error wording
- Test suite (
npm test) covering the V2 and V1 entrypoints
Changed
- Plugin API imports are type-only, so the plugin loads without installing
@opencode/pluginor@opencode-ai/pluginat runtime
Full Changelog: v1.2.3...v1.3.0