Repository navigation
feat(agy): show both Antigravity quota pools on one account - #65
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The collector now reports one account per Google login, with the Claude/GPT pool on five-hour-3p and seven-day-3p windows. The legacy per-pool accounts are sent with parentExternalId so their history resolves to the merged account. The server must deploy before the collector because the ingest schema is strict. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <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.
问题
Antigravity 的每个 Google 账号有 Gemini 和 Claude/GPT 两套独立额度池。之前采集器把它们拆成两个账户(
agy-<label>-gemini与agy-<label>-3p),总览里同一个登录占两张卡片,套餐也要分别设置。结果
agy-<label>。Gemini 池用five-hour/seven-day窗口,Claude/GPT 池用新增的five-hour-3p/seven-day-3p窗口。gemini-开头的模型,-3p窗口只计其他模型。parentExternalId指向新账户,旧账户名下的历史用量和额度在报表里归入新账户。DESIGN.md,记录界面方向和令牌用途,frontend-worker等界面改动先读它。部署顺序
接收端的账户结构是严格校验的,服务端必须先于采集器部署,否则新采集器上报的
parentExternalId会被拒收。新账户上需要重新选一次套餐(Ultra 5x)。验证
bun test:597 通过,0 失败。新增tests/agy-merged-account.test.ts,先导入旧版分池批次再导入新版合并批次,确认实时与索引两种快照都只得到一个 Google 账户,两个池的读数与请求数正确。bun run typecheck、bun run build通过。bun run test:browser(主冒烟脚本)通过,新增断言检查 Antigravity 卡片依次显示四个窗口。演示数据加入一个双额度池账户,相应更新了依赖演示数据条数的断言。quota-pwa-layout、mobile-app、overview-account-usage、quota-estimate四个专项浏览器脚本在未改动的 main 上就以相同错误失败,与本改动无关,未在此 PR 处理。🤖 Generated with Claude Code