feat: Antigravity reverse-proxy provider with frontend account import - #11
Merged
Merged
Conversation
Add a Google Antigravity provider that reuses the OpenAI account pool (Source == "antigravity"). Accounts authenticate with Google OAuth and forward to Cloud Code v1internal generateContent/streamGenerateContent, translating OpenAI chat requests to the Gemini-style envelope and the SSE response back to OpenAI chunks. - antigravity.go: OAuth refresh, GCP project discovery (loadCodeAssist), request/SSE translation, non-stream + stream forwarding, health check - main.go/conversation.go: source-based dispatch in the codex account path, Google refresh in resolveOpenAIAccountAccessToken, refresh-on- import, antigravity-aware account health check - App.tsx: "导入 Antigravity" entry in the add-account modal; paste Google OAuth JSON or a refresh token, tagged source=antigravity - rebuild dist bundle Configuration is entirely through the admin UI; no env vars required. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Google Antigravity provider that reuses the OpenAI account pool (
Source == "antigravity"). Accounts authenticate with Google OAuth and forward to Cloud Codev1internalgenerateContent/streamGenerateContent, translating OpenAI chat requests to the Gemini-style envelope and the SSE response back to OpenAI chunks.What's included
resolveOpenAIAccountAccessToken, refresh-on-import, and the health-check branch.source=antigravity. Rebuilt dist bundle included.Notes
Testing
go build ./cmd/capi/+go test ./cmd/capi/pass.tsctypecheck clean; production bundle rebuilt.🤖 Generated with Claude Code