feat: add Google Antigravity authentication support

- Add 'antigravity' as new auth choice in onboard and configure wizards
- Implement Google Antigravity OAuth flow using loginAntigravity from pi-ai
- Update writeOAuthCredentials to accept any OAuthProvider (not just 'anthropic')
- Add schema sanitization for Google Cloud Code Assist API to fix tool call errors
- Default model set to google-antigravity/claude-opus-4-5 after successful auth

The schema sanitization removes unsupported JSON Schema keywords (patternProperties,
const, anyOf, etc.) that Google's Cloud Code Assist API doesn't understand.
This commit is contained in:
mukhtharcm
2026-01-02 10:28:45 +05:30
committed by Peter Steinberger
parent 5eff541da8
commit 05bd345828
6 changed files with 191 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
export type OnboardMode = "local" | "remote";
export type AuthChoice = "oauth" | "apiKey" | "minimax" | "skip";
export type AuthChoice = "oauth" | "antigravity" | "apiKey" | "minimax" | "skip";
export type GatewayAuthChoice = "off" | "token" | "password";
export type ResetScope = "config" | "config+creds+sessions" | "full";
export type GatewayBind = "loopback" | "lan" | "tailnet" | "auto";