opencode-ag-auth icon indicating copy to clipboard operation
opencode-ag-auth copied to clipboard

feat(plugin): add Gemini CLI verification flow and harden image model compatibility

Open aikazu opened this issue 9 months ago • 0 comments

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-image is accepted, with clear rejection errors for unsupported models.
  • Ship release metadata for v1.6.4 by 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-login mode and integrate the flow in plugin.ts.
  • Verification classification
    • Add optional verificationRequiredType across storage/account/plugin paths.
    • Classify verification failures (gemini-cli, api-enable, google-account, unknown) and persist type metadata.
  • Image model guardrails
    • Add image generation allowlist in resolver and request layer.
    • Add explicit model definitions for gemini-3.1-pro-image and 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.4 in package.json and package-lock.json.
    • Add 1.6.4 entry to CHANGELOG.md.

Validation

  • npm run typecheck
  • npm test -- --run (29 files, 909 passed, 0 failed)
  • npm run build

aikazu avatar Feb 28 '26 02:02 aikazu