diff --git a/request-logger/agents.test.ts b/request-logger/agents.test.ts index d121e60..8db7a15 100644 --- a/request-logger/agents.test.ts +++ b/request-logger/agents.test.ts @@ -83,6 +83,7 @@ describe("listAgents", () => { "pi", "omp", "gemini", + "antigravity", "junie", "cursor", "amp", @@ -490,6 +491,18 @@ describe("resolveChoice — commands", () => { ); }); + it("uses the CLOUD_CODE_URL variable for an Antigravity Google login", () => { + expect(target("antigravity", "google-login").command).toBe( + "CLOUD_CODE_URL=http://localhost:8787 agy" + ); + }); + + it("uses the GOOGLE_GEMINI_BASE_URL variable for an Antigravity API key", () => { + expect(target("antigravity", "api-key").command).toBe( + "GOOGLE_GEMINI_BASE_URL=http://localhost:8787 agy" + ); + }); + it("gives Pi a bare command, because Pi has no base URL variable", () => { expect(target("pi", "anthropic").command).toBe("pi"); });