With Use AI credits off, an account holding credits got the credits note on every 429: "turn on the Use AI credits switch ... when the plan's quota is used up". The reporter's Gemini quota wasn't used up, and the note read as if it were. The plugin now reads fetchAvailableModels again on such a 429: when the model still has quota left, the note says so and that credits would not change it; when none is left, or the read fails or doesn't list the model, the credits note stays as before. Run (mote): packages/antigravity bun test, 102 pass; bun scripts/check.mjs antigravity ok. Broken by hand: always the credits note, and the quota-left test goes red (1 fail). Not tried: a real account's 429 with quota left (the reporter's case).
13 lines
632 B
JSON
13 lines
632 B
JSON
{
|
|
"name": "@magpie-community/opencode-antigravity-auth",
|
|
"version": "0.1.17",
|
|
"description": "Sign in to Antigravity with a Google account from OpenCode or magpie: Gemini, and the Claude and GPT-OSS models Google hosts for it",
|
|
"type": "module",
|
|
"main": "./opencode.mjs",
|
|
"exports": { ".": "./opencode2.mjs" },
|
|
"files": ["index.mjs", "opencode.mjs", "opencode2.mjs", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "antigravity", "gemini"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/antigravity" }
|
|
}
|