Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Antigravity limits use the agy CLI's sign-in over a leftover acp_token.json #39544

Closedjuliusmarmingewants to merge 4 commits intomain fromrefs/pull/39544/headopened View on GitHub

Showing 3 changed files with 63 additions and 48 deletions (loading 1).

x
0 of 3 viewed, 3 left
0 additions and 1 deletionapps/server/src/provider/Drivers/AntigravityDriver.tsModified
View file
@@ -570,7 +570,6 @@
stampIdentity: classifyModels,
probe,
probeUsage: usage.probe,
- clearUsage: usage.clear,
auth: { type: auth.authMethod, label: antigravityAuthLabel(auth.authMethod) },
supportsTextGeneration: isAntigravityTextGenerationAvailable(profileDirectory).pipe(
Effect.provideService(FileSystem.FileSystem, fileSystem),
63 additions and 47 deletionsapps/server/src/provider/antigravityUsageLimits.test.tsModified
View file
@@ -56,6 +56,15 @@
],
};
​
+const cliToken = (refreshToken: string) =>
+ JSON.stringify({
+ token: {
+ access_token: "access-token",
+ refresh_token: refreshToken,
+ expiry: "2099-01-01T00:00:00Z",
+ },
+ });
+​
const fixture = Effect.fn("AntigravityUsageTest.fixture")(function* (
options: {
summary?: unknown;
@@ -65,11 +74,13 @@