Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(usage): Antigravity reports weekly limits for each model group #15299

ClosedNewarr(GitHub profile, opens in a new tab)wants to merge 6 commits intomain fromrefs/pull/15299/headopened View on GitHub

Showing 8 changed files with 68 additions and 21 deletions (loading 5).

x
0 of 8 viewed, 8 left
7 additions and 0 deletionsapps/server/src/provider/Drivers/AntigravityDriver.test.tsModified
View file
@@ -19,6 +19,7 @@
import * as Path from "effect/Path";
import * as Schema from "effect/Schema";
import * as TestClock from "effect/testing/TestClock";
+import { HttpClient } from "effect/http";
import * as ChildProcessSpawner from "effect/process/ChildProcessSpawner";
​
import * as BackgroundPolicy from "../../background/BackgroundPolicy.ts";
@@ -262,6 +263,12 @@
Layer.provideMerge(ModelManifest.layerTest),
Layer.provideMerge(IdAllocator.layer),
+ Layer.provideMerge(
+ Layer.succeed(
+ HttpClient.HttpClient,
+ HttpClient.make(() => Effect.die("A profile without a Google sign-in must not call Google")),
+ ),
+ ),
​
it.layer(layerTest)("AntigravityDriver", (it) => {
14 additions and 1 deletionapps/server/src/provider/Drivers/AntigravityDriver.tsModified
View file
@@ -15,6 +15,7 @@
import * as Schema from "effect/Schema";
import * as Scope from "effect/Scope";
import * as Stream from "effect/Stream";