feat(antigravity): add gemini and claude models to default allowlist

When authenticating with Google Antigravity, the default model allowlist
now includes all commonly used models instead of just claude-opus-4-5-thinking:
- claude-opus-4-5-thinking
- claude-sonnet-4-5
- claude-sonnet-4-5-thinking
- gemini-3-flash
- gemini-3-pro
- gemini-2.5-flash
- gemini-2.5-pro

This ensures /models shows all available models after initial setup.
This commit is contained in:
dhruvkej9 2026-01-27 23:10:11 +05:30
parent 640c8d1554
commit d69623e472

View File

@ -15,6 +15,16 @@ const TOKEN_URL = "https://oauth2.googleapis.com/token";
const DEFAULT_PROJECT_ID = "rising-fact-p41fc"; const DEFAULT_PROJECT_ID = "rising-fact-p41fc";
const DEFAULT_MODEL = "google-antigravity/claude-opus-4-5-thinking"; const DEFAULT_MODEL = "google-antigravity/claude-opus-4-5-thinking";
const DEFAULT_MODELS = [
"google-antigravity/claude-opus-4-5-thinking",
"google-antigravity/claude-sonnet-4-5",
"google-antigravity/claude-sonnet-4-5-thinking",
"google-antigravity/gemini-3-flash",
"google-antigravity/gemini-3-pro",
"google-antigravity/gemini-2.5-flash",
"google-antigravity/gemini-2.5-pro",
];
const SCOPES = [ const SCOPES = [
"https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/userinfo.email",
@ -411,9 +421,9 @@ const antigravityPlugin = {
configPatch: { configPatch: {
agents: { agents: {
defaults: { defaults: {
models: { models: Object.fromEntries(
[DEFAULT_MODEL]: {}, DEFAULT_MODELS.map((m) => [m, {}]),
}, ),
}, },
}, },
}, },