Repository navigation
v2.0.2 - OpenCode v2 OAuth integration + API alignment
v2.0.2 - OpenCode v2 OAuth integration + API alignment
Fixes the OpenCode v2 authentication gap (issue #30) and aligns every v2 registration with the real @opencode/plugin 2.0.24 contracts.
Fixed
- OAuth integration (#30):
setupV2now registers thegoogleAntigravity OAuth method viactx.integration.transform(id: antigravity-oauth).opencode auth loginand the TUI connect flow now offer OAuth with Google (Antigravity) instead of only the core API-key method. - Multi-account pool: each successful authorization is persisted through
persistAccountPool, appended/deduplicated intoantigravity-accounts.jsonand picked up by the rotation engine. Connecting again adds the 4th, 5th, ... account. - Model catalog: removed the non-existent
ModelEditor.addbranch; models register througheditor.update("google", modelID, draft => ...), which seedsModel.Info.defaultand adds the model under an available provider. Drafts setenabled,capabilitiesand map variants to the realModel.Variantshape{ id, settings }. - Tools:
ToolEditor.addno longer receives a bogusid(v2 derives it fromname). - Slash commands:
executenow delivers output viactx.session.synthetic; previously a returned string was silently ignored. - Types: replaced the hand-rolled
V2Contextwith typed local contracts mirroring@opencode/plugin@2.0.24(no new runtime dependency).
Added
- Regression test asserting the v2 OAuth method is registered.
Upgrade
opencode auth login # pick "OAuth with Google (Antigravity)"Restart OpenCode so the new plugin build is loaded. Existing antigravity-accounts.json accounts are preserved.
Full Changelog: v2.0.1...v2.0.2