opencode-ag-auth
opencode-ag-auth copied to clipboard
feat(plugin): add Gemini CLI verification flow and harden image model compatibility
Summary
- Add a dedicated Gemini CLI OAuth path and wire it into plugin auth orchestration and UI flows.
- Enforce strict image model compatibility so only
gemini-3.1-pro-imageis accepted, with clear rejection errors for unsupported models. - Ship release metadata for
v1.6.4by updating version files and changelog.
What Changed
- Auth/OAuth integration
- Add Gemini CLI OAuth constants and implement
authorizeGeminiCli()/exchangeGeminiCli(). - Extend CLI/Auth menu with
gemini-cli-loginmode and integrate the flow inplugin.ts.
- Add Gemini CLI OAuth constants and implement
- Verification classification
- Add optional
verificationRequiredTypeacross storage/account/plugin paths. - Classify verification failures (
gemini-cli,api-enable,google-account,unknown) and persist type metadata.
- Add optional
- Image model guardrails
- Add image generation allowlist in resolver and request layer.
- Add explicit model definitions for
gemini-3.1-pro-imageand antigravity-prefixed variant.
- Tests & docs
- Add fingerprint version-propagation regression test.
- Update README, configuration docs, and troubleshooting guidance for image generation and compatibility.
- Release
- Bump version to
1.6.4inpackage.jsonandpackage-lock.json. - Add
1.6.4entry toCHANGELOG.md.
- Bump version to
Validation
npm run typechecknpm test -- --run(29 files, 909 passed, 0 failed)npm run build