Skip to content

feat: make Antigravity a first-class provider - #12

Merged
mzrodyu merged 1 commit into
mainfrom
feat/model-pull-button
Sep 23, 2026
Merged

mzrodyu merged 1 commit into
mainfrom
feat/model-pull-button

Conversation

@mzrodyu

@mzrodyu mzrodyu commented Sep 23, 2026

Copy link
Copy Markdown
Owner

Promotes Antigravity from a hidden account source to a selectable, first-class provider so it can be set up entirely from the admin UI (no env, no burying it under the Codex pool).

Changes

  • Provider list + templates: adds "Antigravity / Google" to providerOptions and a dedicated account-pool channel template preloaded with the 12 Antigravity model IDs. Provider count on the settings page goes 12 → 13.
  • Account pool UI: "新增 Antigravity 账号池" button; antigravity channels now render in the account pool (绘图) view, where "添加账号 → 导入 Antigravity" adds Google OAuth accounts.
  • Routing invariants: isAntigravityChannel + ensureAntigravityChannelLocked keep the provider stable and register its models; isCodexChannel now excludes antigravity so startup/periodic upkeep never rewrites an antigravity pool to codex. shouldUseCompatibleProvider, fetchUpstreamModelIDs, and providerLabel all handle the antigravity provider.
  • Importing into an antigravity pool tags accounts source=antigravity regardless of the file's declared source.

Testing

  • go test ./cmd/capi/ passes (added channel-classification + secret-decode tests).
  • tsc typecheck clean; production bundle rebuilt.

🤖 Generated with Claude Code

Promote Antigravity from a hidden account source to a selectable provider
so it can be configured entirely from the admin UI.

- providerOptions/channelTemplates: "Antigravity / Google" provider + a
  dedicated account-pool template with the 12 Antigravity model IDs
- DrawingView: "新增 Antigravity 账号池" button; antigravity channels show
  in the account pool view
- isAntigravityChannel + ensureAntigravityChannelLocked keep the provider
  stable and register its models; isCodexChannel now excludes antigravity
  so startup upkeep never rewrites it to codex
- shouldUseCompatibleProvider / fetchUpstreamModelIDs / providerLabel handle
  the antigravity provider; account import into an antigravity pool tags
  accounts source=antigravity
- rebuild dist bundle

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mzrodyu
mzrodyu merged commit bf15ca9 into main Sep 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant