Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/adapters/client-fingerprint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ export function claudeCodeSessionId(token: string | undefined): string {

// ── Antigravity CLI ──
/** Pinned fallback Antigravity CLI version (real client fetches a manifest; we pin to avoid the network dependency). */
export const ANTIGRAVITY_CLI_VERSION = "1.0.13";
export const ANTIGRAVITY_CLI_VERSION = "1.1.12";
const ANTIGRAVITY_CLI_CLIENT_NAME = "aidev_client";
const ANTIGRAVITY_CLI_PLATFORM = "darwin/arm64";
/** Secondary Google API client UA the Antigravity client library reports. */
export const ANTIGRAVITY_GOOG_API_CLIENT_UA = "google-api-nodejs-client/10.3.0";

/**
* The real Antigravity CLI User-Agent, e.g.
* `antigravity/cli/1.0.13 (aidev_client; os_type=darwin; arch=arm64)`.
* `antigravity/cli/1.1.12 (aidev_client; os_type=darwin; arch=arm64)`.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
* A `GOOGLE_ANTIGRAVITY_USER_AGENT` override (set by the caller) takes precedence upstream.
*/
export function antigravityUserAgent(version = ANTIGRAVITY_CLI_VERSION): string {
Expand Down
2 changes: 1 addition & 1 deletion tests/client-fingerprint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function parsed(): OcxParsedRequest {
describe("client fingerprint — helpers", () => {
test("antigravity UA has the real CLI shape, never the literal giveaway", async () => {
const ua = antigravityUserAgent();
expect(ua).toBe(`antigravity/cli/${ANTIGRAVITY_CLI_VERSION} (aidev_client; os_type=darwin; arch=arm64)`);
expect(ua).toBe("antigravity/cli/1.1.12 (aidev_client; os_type=darwin; arch=arm64)");
expect(ua).not.toBe("antigravity");
});

Expand Down
Loading