feat(usage): Antigravity reports weekly limits for each model group #15296
ClosedNewarr(GitHub profile, opens in a new tab)wants to merge 2 commits into
main fromrefs/pull/15296/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- apps/server/src/provider/Layers/AntigravityProvider.ts line 198Resolvedby Newarr(GitHub profile, opens in a new tab)@@ -192,3 +195,4 @@192195 : `Antigravity did not respond to its local health check within ${HEALTH_CHECK_TIMEOUT}.`;193196 const supportsTextGeneration =194197 initialized !== undefined ? yield* options.supportsTextGeneration : false;198+ const probedUsageLimits =apps/server/src/provider/Layers/antigravityUsageLimits.ts line 140Resolvedby Newarr(GitHub profile, opens in a new tab)@@ -0,0 +120,21 @@120+ )121+ .pipe(122+ Effect.flatMap(HttpClientResponse.filterStatusOk),123+ Effect.flatMap(HttpClientResponse.schemaBodyJson(AccessToken)),124+ );125+ const summary = yield* client126+ .execute(127+ HttpClientRequest.post(QUOTA_SUMMARY_URL).pipe(128+ HttpClientRequest.bearerToken(token.access_token),129+ HttpClientRequest.setHeader("user-agent", "antigravity"),130+ HttpClientRequest.bodyJsonUnsafe({}),131+ ),132+ )133+ .pipe(134+ Effect.flatMap(HttpClientResponse.filterStatusOk),135+ Effect.flatMap(HttpClientResponse.schemaBodyJson(QuotaSummary)),136+ );137+ return antigravityQuotaSummaryToLimits(138+ summary,139+ checkedAt,140+ googleAccountFingerprint(token.id_token),
Newarr(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed