Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Antigravity: no Runs on menu; one Switch to Google Antigravity CLI offer, and the updater installs the CLI where it is used (#7312)
Milind Soni02cfa14fd3e6
diff --git a/apps/docs/content/docs/providers/antigravity.mdx b/apps/docs/content/docs/providers/antigravity.mdxindex aeacf4e9f0..a100ac3200 100644--- a/apps/docs/content/docs/providers/antigravity.mdx+++ b/apps/docs/content/docs/providers/antigravity.mdx@@ -39,22 +39,21 @@ Antigravity uses the same MausBot approval cards as other ACP engines. ConnectedThe normal mode asks before protected actions. Full access maps to Antigravity's native `yolo` mode, but native questions still wait for a person instead of being guessed automatically.-## Google Antigravity CLI or Classic runtime+## Google Antigravity CLI-MausBot runs Antigravity on one of two runtimes, chosen for each Antigravity account under **Runs on** on its card in Settings:+MausBot runs Antigravity on Google's native CLI (1.5 or later): one program of about 220 MB on a Mac and 275 MB on Linux, which starts much faster than the packaged 1.4.3 runtime MausBot used before (the Classic runtime, about 400 MB on a Mac and 1 GB on Linux).-- **Google Antigravity CLI**: Google's native CLI (1.5 or later). One program of about 220 MB on a Mac and 275 MB on Linux, which starts much faster.-- **Classic runtime**: the packaged 1.4.3 runtime MausBot has used so far, about 400 MB on a Mac and 1 GB on Linux.+A new install takes the Google Antigravity CLI. A computer that already has the Classic runtime keeps it, and an account signed in on it keeps working, with no new sign-in after an update. Its card in Settings offers **Switch to Google Antigravity CLI**: the switch installs the CLI for that account and is one way, and the CLI keeps its Google sign-in in a different file, so you sign in with Google once more.-A new install takes the Google Antigravity CLI. A computer that already has the Classic runtime keeps it, and nothing changes for its accounts until you choose the CLI under **Runs on**. The two runtimes keep their Google sign-ins in different files, so an account signs in with Google once more the first time it runs on the other one; switching back finds its earlier sign-in.+On a computer with no Antigravity runtime at all, MausBot installs the CLI by itself in its engine update pass (a few minutes after it starts, while no bot is working) when the server is started with `OMB_ANTIGRAVITY_NATIVE_CLI=1`, or when Antigravity is in use there: an added Google account, or a bot or the default model on a Google account. The card says it is installing, then asks you to sign in. Otherwise nothing is downloaded until you select **Install Google Antigravity CLI**. This install never replaces the Classic runtime or moves an account off it.To move an account to the CLI:-1. Choose **Google Antigravity CLI** under **Runs on**, then **Install Google Antigravity CLI** if the card offers it. The CLI comes from Google's update channel, checked against the SHA-512 that channel names.+1. Select **Switch to Google Antigravity CLI** on its card (or, on a new install, **Install Google Antigravity CLI**). The CLI comes from Google's update channel, checked against the SHA-512 that channel names.2. Select **Sign in with Google** and sign in in your browser. Google's page then shows a code: paste it, or the full address of that page, into the card and select **Send code**.3. Send a bot on that account a message and check that it answers.MausBot updates the CLI itself (a few minutes after it starts, then once a day), keeps its release folder read-only, turns the CLI's own self-update off, and starts it so that each account keeps its sign-in in its own folder: two accounts can be two Google accounts, and a sign-in of the Antigravity CLI in a terminal is neither used nor signed out. The CLI always runs in its `default` mode and MausBot answers its requests by the bot's approval level. The Classic runtime stays on disk.-A server or Cloud started with `OMB_ANTIGRAVITY_NATIVE_CLI=1` in its environment runs the CLI for every account that has not chosen a runtime, even where the Classic runtime is installed: the engine updater installs the CLI there while no bot is working. An account set to **Classic runtime** keeps it. The setting is read when MausBot starts.+A server or Cloud started with `OMB_ANTIGRAVITY_NATIVE_CLI=1` in its environment runs the CLI for every account whose CLI path names no runtime, even where the Classic runtime is installed: the engine updater installs the CLI there while no bot is working. An account whose CLI path is `agy_acp_server` keeps the Classic runtime. The setting is read when MausBot starts.diff --git a/docs/approval-levels.md b/docs/approval-levels.mdindex f9a9e0a671..eaf2ce6c00 100644--- a/docs/approval-levels.md+++ b/docs/approval-levels.md@@ -334,10 +334,10 @@ reaches outside that folder is asked as usual. A turn fails rather than startwhen the CLI offers no mode or does not confirm `default`.A new install takes the native CLI; a computer that already has the pinned-runtime keeps it. To move an Antigravity account to the native CLI, choose-**Google Antigravity CLI** under **Runs on** (its CLI path becomes `antigravity`)-and **Install Google Antigravity CLI**; to move back, choose **Classic runtime**-(`agy_acp_server`), which runs the pinned runtime alone. An account with no CLI+runtime keeps it. An Antigravity account on the pinned runtime moves to the+native CLI through **Switch to Google Antigravity CLI** on its card (its CLI path+becomes `antigravity` and the CLI is installed); Settings offers no way back. A+saved `agy_acp_server` path still runs the pinned runtime alone. An account with no CLIpath, or `agy`, runs the pinned runtime when it is installed, and the native CLIotherwise. The native CLI signs in through its own`acp --login`: the link opens Google, and the code or address the page ends on@@ -347,7 +347,7 @@ pinned runtime, and the OS keyring and the Antigravity CLI in a terminal arenever touched. Signing out or removing an account ends that account's sign-inalone. A server started with `OMB_ANTIGRAVITY_NATIVE_CLI=1` runs the native CLIfor every account with no CLI path, or `agy`, even where the pinned runtime is-installed; an account set under **Runs on** keeps its choice.+installed; an account whose CLI path names a runtime keeps it.A new Antigravity bot starts on Auto, the default. Old Antigravity`auto` / `autoApprove` settings still behave as Ask and are displayed as Ask;diff --git a/docs/pr-screenshots/antigravity-native-cli/1-after-card-daylight.png b/docs/pr-screenshots/antigravity-native-cli/1-after-card-daylight.pngdeleted file mode 100644index c7caafa1ff..0000000000Binary files a/docs/pr-screenshots/antigravity-native-cli/1-after-card-daylight.png and /dev/null differdiff --git a/docs/pr-screenshots/antigravity-native-cli/1-after-card-midnight.png b/docs/pr-screenshots/antigravity-native-cli/1-after-card-midnight.pngdeleted file mode 100644index c28eba44cc..0000000000Binary files a/docs/pr-screenshots/antigravity-native-cli/1-after-card-midnight.png and /dev/null differdiff --git a/docs/pr-screenshots/antigravity-native-cli/1-before-card-daylight.png b/docs/pr-screenshots/antigravity-native-cli/1-before-card-daylight.pngdeleted file mode 100644index d0a34723aa..0000000000Binary files a/docs/pr-screenshots/antigravity-native-cli/1-before-card-daylight.png and /dev/null differdiff --git a/docs/pr-screenshots/antigravity-native-cli/1-before-card-midnight.png b/docs/pr-screenshots/antigravity-native-cli/1-before-card-midnight.pngdeleted file mode 100644index 0e0b590a5f..0000000000Binary files a/docs/pr-screenshots/antigravity-native-cli/1-before-card-midnight.png and /dev/null differdiff --git a/docs/pr-screenshots/antigravity-native-cli/2-after-install-daylight.png b/docs/pr-screenshots/antigravity-native-cli/2-after-install-daylight.pngdeleted file mode 100644index 88eb5fcc49..0000000000Binary files a/docs/pr-screenshots/antigravity-native-cli/2-after-install-daylight.png and /dev/null differdiff --git a/docs/pr-screenshots/antigravity-native-cli/2-after-install-midnight.png b/docs/pr-screenshots/antigravity-native-cli/2-after-install-midnight.pngdeleted file mode 100644index db7b3da809..0000000000Binary files a/docs/pr-screenshots/antigravity-native-cli/2-after-install-midnight.png and /dev/null differdiff --git a/docs/pr-screenshots/antigravity-native-cli/2-before-install-daylight.png b/docs/pr-screenshots/antigravity-native-cli/2-before-install-daylight.pngdeleted file mode 100644index a7aad89902..0000000000Binary files a/docs/pr-screenshots/antigravity-native-cli/2-before-install-daylight.png and /dev/null differdiff --git a/docs/pr-screenshots/antigravity-native-cli/2-before-install-midnight.png b/docs/pr-screenshots/antigravity-native-cli/2-before-install-midnight.pngdeleted file mode 100644index 7951a3383f..0000000000Binary files a/docs/pr-screenshots/antigravity-native-cli/2-before-install-midnight.png and /dev/null differdiff --git a/docs/pr-screenshots/antigravity-native-cli/3-after-signin-daylight.png b/docs/pr-screenshots/antigravity-native-cli/3-after-signin-daylight.pngdeleted file mode 100644index df30b6ff9c..0000000000Binary files a/docs/pr-screenshots/antigravity-native-cli/3-after-signin-daylight.png and /dev/null differdiff --git a/docs/pr-screenshots/antigravity-native-cli/3-after-signin-midnight.png b/docs/pr-screenshots/antigravity-native-cli/3-after-signin-midnight.pngdeleted file mode 100644index fb9afe2a6d..0000000000Binary files a/docs/pr-screenshots/antigravity-native-cli/3-after-signin-midnight.png and /dev/null differdiff --git a/docs/pr-screenshots/antigravity-native-cli/3-before-signin-daylight.png b/docs/pr-screenshots/antigravity-native-cli/3-before-signin-daylight.pngdeleted file mode 100644index 1645f8a34b..0000000000Binary files a/docs/pr-screenshots/antigravity-native-cli/3-before-signin-daylight.png and /dev/null differdiff --git a/docs/pr-screenshots/antigravity-native-cli/3-before-signin-midnight.png b/docs/pr-screenshots/antigravity-native-cli/3-before-signin-midnight.pngdeleted file mode 100644index 8a90c90176..0000000000Binary files a/docs/pr-screenshots/antigravity-native-cli/3-before-signin-midnight.png and /dev/null differdiff --git a/docs/pr-screenshots/antigravity-native-cli/4-after-signedin-daylight.png b/docs/pr-screenshots/antigravity-native-cli/4-after-signedin-daylight.pngdeleted file mode 100644index 58756282ca..0000000000Binary files a/docs/pr-screenshots/antigravity-native-cli/4-after-signedin-daylight.png and /dev/null differdiff --git a/docs/pr-screenshots/antigravity-native-cli/4-after-signedin-midnight.png b/docs/pr-screenshots/antigravity-native-cli/4-after-signedin-midnight.pngdeleted file mode 100644index 4c6653b683..0000000000Binary files a/docs/pr-screenshots/antigravity-native-cli/4-after-signedin-midnight.png and /dev/null differdiff --git a/docs/pr-screenshots/antigravity-native-cli/4-before-signedin-daylight.png b/docs/pr-screenshots/antigravity-native-cli/4-before-signedin-daylight.pngdeleted file mode 100644index 1659e22bb0..0000000000Binary files a/docs/pr-screenshots/antigravity-native-cli/4-before-signedin-daylight.png and /dev/null differdiff --git a/docs/pr-screenshots/antigravity-native-cli/4-before-signedin-midnight.png b/docs/pr-screenshots/antigravity-native-cli/4-before-signedin-midnight.pngdeleted file mode 100644index 3e9adfd72d..0000000000Binary files a/docs/pr-screenshots/antigravity-native-cli/4-before-signedin-midnight.png and /dev/null differdiff --git a/server/antigravity-first-install.test.ts b/server/antigravity-first-install.test.tsnew file mode 100644index 0000000000..1a163e0925--- /dev/null+++ b/server/antigravity-first-install.test.ts@@ -0,0 +1,175 @@+// The engine updater's first install of Google's Antigravity CLI on a computer with no Antigravity runtime at all: only+// when the server is opted in (OMB_ANTIGRAVITY_NATIVE_CLI=1) or Antigravity is in use here, from Google's channel with+// the card install's checks, and never on a computer that has the Classic runtime.+import { createHash } from "node:crypto";+import { chmodSync, existsSync, mkdirSync, mkdtempSync, readFileSync, truncateSync, writeFileSync } from "node:fs";+import { tmpdir } from "node:os";+import { join } from "node:path";+import * as tar from "tar";+import { afterEach, describe, expect, it, vi } from "vitest";++import type { AntigravityCliReleaseAsset } from "./drivers/antigravity-cli-release.ts";+import { resolveAntigravityReleaseAsset } from "./drivers/antigravity-release.ts";+import { removeTempDir } from "./testing/cleanup.ts";++const WINDOWS = process.platform === "win32";+const pinned = resolveAntigravityReleaseAsset();+const ORIGIN = "https://storage.googleapis.com/antigravity-public/antigravity-cli/";+const scratch: string[] = [];++afterEach(async () => {+ vi.unstubAllEnvs();+ vi.resetModules();+ while (scratch.length) await removeTempDir(scratch.pop()!);+});++function folder(): string {+ const directory = mkdtempSync(join(tmpdir(), "omb-antigravity-first-"));+ scratch.push(directory);+ return directory;+}++/** A CLI release as Google's channel names it, and a fetch that serves only its bytes. */+async function channel(version = "1.5.8") {+ const source = folder();+ writeFileSync(join(source, "antigravity"), `#!/bin/sh\necho ${version}\n`, { mode: 0o755 });+ const archive = join(folder(), "cli.tar.gz");+ await tar.c({ gzip: true, file: archive, cwd: source, portable: true }, ["antigravity"]);+ const bytes = readFileSync(archive);+ const asset: AntigravityCliReleaseAsset = {+ version, url: `${ORIGIN}${version}-1/fixture`, sha512: createHash("sha512").update(bytes).digest("hex"),+ executable: { name: "antigravity" }, format: "tar.gz",+ };+ const asked: string[] = [];+ const fetchImpl = (async (url: string | URL | Request) => {+ asked.push(String(url));+ if (String(url) !== asset.url) return new Response("missing", { status: 404 });+ const response = new Response(bytes);+ Object.defineProperty(response, "url", { value: String(url) });+ return response;+ }) as typeof fetch;+ return { asset, fetchImpl, asked };+}++/** A data folder with the Classic (pinned) runtime installed and one account signed in on it. */+function classicComputer() {+ const baseDir = folder();+ const pinnedDir = join(baseDir, "tools", "antigravity-acp", `${process.platform}-${process.arch}`, "versions", pinned!.sha256);+ mkdirSync(pinnedDir, { recursive: true });+ for (const file of [pinned!.executable, pinned!.harness]) {+ writeFileSync(join(pinnedDir, file.name), "");+ truncateSync(join(pinnedDir, file.name), file.bytes);+ chmodSync(join(pinnedDir, file.name), 0o755);+ }+ writeFileSync(join(pinnedDir, ".install-complete.json"), JSON.stringify({ sha256: pinned!.sha256, version: pinned!.version, executable: pinned!.executable, harness: pinned!.harness }));+ const token = join(baseDir, "providers", "antigravity", "acp_token.json");+ mkdirSync(join(token, ".."), { recursive: true });+ writeFileSync(token, "{}");+ return { baseDir, pinnedDir, token };+}++async function updaterFor(baseDir: string, served: Awaited<ReturnType<typeof channel>>, options: { wanted?: boolean; cliFirst?: boolean } = {}) {+ const { antigravityManagedRuntime } = await import("./engine-updates-host.ts");+ const { createEngineUpdater } = await import("./engine-updates.ts");+ const lines: string[] = [];+ let changed = 0;+ const managed = antigravityManagedRuntime(() => [], {+ baseDir, fetchImpl: served.fetchImpl, cliRelease: served.asset, latest: async () => served.asset, validate: async () => {},+ wanted: () => options.wanted === true, changed: () => { changed += 1; }, env: { PATH: "" },+ ...(options.cliFirst === undefined ? {} : { cliFirst: options.cliFirst }),+ });+ const updater = createEngineUpdater({+ plans: [{ driverKind: "antigravityAgent", name: "Antigravity", pin: { target: pinned?.version ?? "1.4.3", minimum: pinned?.version ?? "1.4.3" }, managed }],+ baseDir, statePath: join(folder(), "state.json"), turnRunning: () => false, log: (line) => lines.push(line), liveCommands: () => [],+ steps: { sweep: async () => {}, npmVersion: () => null, standaloneVersion: () => null },+ });+ return { updater, managed, lines, changed: () => changed };+}++describe.skipIf(WINDOWS)("the engine updater on a computer with no Antigravity runtime", () => {+ it("installs Google's CLI in its pass when the server is opted in, as a first install rather than an update", async () => {+ vi.stubEnv("OMB_ANTIGRAVITY_NATIVE_CLI", "1");+ vi.resetModules();+ const baseDir = folder();+ const served = await channel();+ const { updater, lines, changed } = await updaterFor(baseDir, served);+ await updater.check();+ expect(served.asked).toEqual([served.asset.url]);+ expect(lines).toEqual(["Engine update: Antigravity 1.5.8 installed"]);+ expect(updater.shown("antigravityAgent")).toEqual({});+ expect(changed()).toBeGreaterThanOrEqual(2);+ const { resolveAntigravityRuntime } = await import("./drivers/antigravity-runtime.ts");+ await expect(resolveAntigravityRuntime(undefined, { PATH: "" }, baseDir)).resolves.toMatchObject({ version: "1.5.8", harnessPath: null });+ // The next pass finds it in place and asks the channel for nothing more than its manifest.+ served.asked.length = 0;+ await updater.check();+ expect(served.asked).toEqual([]);+ });++ it("downloads nothing when the server is not opted in and nobody here uses Antigravity", async () => {+ const baseDir = folder();+ const served = await channel();+ const { updater, managed, lines } = await updaterFor(baseDir, served, { cliFirst: false, wanted: false });+ expect(await managed.older()).toBeNull();+ await updater.check();+ expect(served.asked).toEqual([]);+ expect(lines).toEqual([]);+ expect(existsSync(join(baseDir, "tools", "antigravity-acp"))).toBe(false);+ });++ it("installs Google's CLI when an Antigravity account is in use here, with the server not opted in", async () => {+ const baseDir = folder();+ const served = await channel();+ const { updater, lines } = await updaterFor(baseDir, served, { cliFirst: false, wanted: true });+ await updater.check();+ expect(lines).toEqual(["Engine update: Antigravity 1.5.8 installed"]);+ const { resolveAntigravityRuntime } = await import("./drivers/antigravity-runtime.ts");+ await expect(resolveAntigravityRuntime(undefined, { PATH: "" }, baseDir)).resolves.toMatchObject({ version: "1.5.8" });+ });++ it("says Installing on the card while it runs, and lets the card's install wait for it instead of starting another", async () => {+ const baseDir = folder();+ const served = await channel();+ let release!: () => void;+ const held = new Promise<void>((resolve) => { release = resolve; });+ const slow = (async (url: string | URL | Request) => { await held; return served.fetchImpl(url); }) as typeof fetch;+ const { antigravityManagedRuntime } = await import("./engine-updates-host.ts");+ const runtime = await import("./drivers/antigravity-runtime.ts");+ const managed = antigravityManagedRuntime(() => [], { baseDir, fetchImpl: slow, cliRelease: served.asset, validate: async () => {}, wanted: () => true, cliFirst: false, env: { PATH: "" } });+ const updaterInstall = managed.install("native");+ await vi.waitFor(() => expect(runtime.antigravityInstallRunning(baseDir)).toBe(true));+ const cardInstall = runtime.installAntigravityRuntime({ baseDir, fetchImpl: served.fetchImpl, cliRelease: served.asset, validate: async () => {} });+ release();+ await expect(updaterInstall).resolves.toBe("1.5.8");+ await expect(cardInstall).resolves.toMatchObject({ version: "1.5.8" });+ expect(served.asked).toEqual([served.asset.url]);+ expect(runtime.antigravityInstallRunning(baseDir)).toBe(false);+ });+});++describe.skipIf(!pinned || WINDOWS)("the engine updater on a computer with the Classic runtime", () => {+ it("leaves a signed-in Classic account untouched, even with Antigravity in use", async () => {+ const { baseDir, pinnedDir, token } = classicComputer();+ const served = await channel();+ const { updater, managed, lines } = await updaterFor(baseDir, served, { cliFirst: false, wanted: true });+ expect(await managed.older()).toBeNull();+ await updater.check();+ expect(served.asked).toEqual([]);+ expect(lines).toEqual([]);+ expect(existsSync(token)).toBe(true);+ const { resolveAntigravityRuntime } = await import("./drivers/antigravity-runtime.ts");+ await expect(resolveAntigravityRuntime(undefined, { PATH: "" }, baseDir)).resolves.toMatchObject({ executablePath: join(pinnedDir, pinned!.executable.name), version: pinned!.version });+ });+});++describe("whether Antigravity is in use on a server", () => {+ it("does not count the account every home lists, and counts an added account, the CLI path, or a bot, task or default on it", async () => {+ const { antigravityInUse } = await import("./engine-updates-host.ts");+ const fleet = { claude: { driver: "claudeAgent" }, antigravity: { driver: "antigravityAgent" } };+ expect(antigravityInUse(fleet, [undefined, { instanceId: "claude" }])).toBe(false);+ expect(antigravityInUse({ ...fleet, antigravity: { driver: "antigravityAgent", config: { cli: "agy_acp_server" } } }, [])).toBe(false);+ expect(antigravityInUse({ ...fleet, antigravity: { driver: "antigravityAgent", config: { cli: "antigravity" } } }, [])).toBe(true);+ expect(antigravityInUse({ ...fleet, "antigravity-work": { driver: "antigravityAgent" } }, [])).toBe(true);+ expect(antigravityInUse(fleet, [{ instanceId: "antigravity" }])).toBe(true);+ });+});diff --git a/server/contracts.ts b/server/contracts.tsindex 54bd00afdf..cba17efaf9 100644--- a/server/contracts.ts+++ b/server/contracts.ts@@ -395,6 +395,8 @@ export interface ProviderSnapshot {notEngineCli?: true;/** The account runs Google's native Antigravity CLI, not the pinned (Classic) runtime. */nativeCli?: true;+ /** Not ready because its runtime is being installed on this computer right now. */+ installing?: true;/** Display identity from the provider CLI, never credentials; `method` is a personal login or the workspace API key. */account?: { email?: string; organization?: string; method?: "login" | "api-key" };version?: string | null;diff --git a/server/drivers/antigravity-acp.ts b/server/drivers/antigravity-acp.tsindex fee3f138ac..cfa91f0b10 100644--- a/server/drivers/antigravity-acp.ts+++ b/server/drivers/antigravity-acp.ts@@ -214,7 +214,7 @@ export function antigravityCliTokenPath(instanceId: string, baseDir = DATA_DIR):return join(antigravityProfileDirectory(instanceId, baseDir), "antigravity-acp", ANTIGRAVITY_CLI_TOKEN_FILE);}-/** Both runtimes' sign-in files. An account switched to the other runtime under Runs on keeps the first one's file. */+/** Both runtimes' sign-in files. An account that switched to the CLI keeps the Classic runtime's file. */export function antigravitySignInPaths(instanceId: string, baseDir = DATA_DIR): string[] {return [antigravityCliTokenPath(instanceId, baseDir), antigravityTokenPath(instanceId, baseDir)];}diff --git a/server/drivers/antigravity-cli-install.ts b/server/drivers/antigravity-cli-install.tsindex 5994f5ed5d..b0a179b85a 100644--- a/server/drivers/antigravity-cli-install.ts+++ b/server/drivers/antigravity-cli-install.ts@@ -28,7 +28,7 @@ export const ANTIGRAVITY_NATIVE_CLI_ENV = "OMB_ANTIGRAVITY_NATIVE_CLI";/** `OMB_ANTIGRAVITY_NATIVE_CLI=1` in the server's environment, read at start: an account whose CLI path names no runtime* (none, or `agy`) runs the native CLI even where the pinned runtime is installed, and the engine updater installs the- * CLI there. An account set to a runtime under Runs on keeps it; nothing is removed. Off (the default), such an account+ * CLI there. An account whose path names a runtime keeps it; nothing is removed. Off (the default), such an account* keeps the pinned runtime where it is installed, and only a new install takes the CLI. */export const ANTIGRAVITY_CLI_FIRST = process.env[ANTIGRAVITY_NATIVE_CLI_ENV] === "1";diff --git a/server/drivers/antigravity-native-cli.test.ts b/server/drivers/antigravity-native-cli.test.tsindex 44fd17b667..dba58823d8 100644--- a/server/drivers/antigravity-native-cli.test.ts+++ b/server/drivers/antigravity-native-cli.test.ts@@ -138,7 +138,7 @@ describe("installing the native CLI from Google's channel", () => {.rejects.toThrow("redirected away from Google's release folder");await expect(installAntigravityRuntime({ baseDir, fetchImpl: serving([]).fetchImpl, native: true, cliRelease: one.asset })).rejects.toThrow("Google download failed (404).");await expect(installAntigravityRuntime({ baseDir, native: true, cliRelease: null })).rejects.toThrow("Could not find a native Antigravity CLI release.");- await expect(resolveAntigravityRuntime("antigravity", { PATH: "" }, baseDir)).rejects.toThrow(/Google Antigravity CLI is not installed yet.*choose Classic runtime under Runs on/u);+ await expect(resolveAntigravityRuntime("antigravity", { PATH: "" }, baseDir)).rejects.toThrow(/^The Google Antigravity CLI is not installed yet\. Install it here\.$/u);const root = join(antigravityRuntimesRoot(baseDir), `${process.platform}-${process.arch}`);expect(existsSync(join(root, "active.json"))).toBe(false);expect(readdirSync(join(root, "versions"))).toEqual([]);diff --git a/server/drivers/antigravity-opt-in.test.ts b/server/drivers/antigravity-opt-in.test.tsindex 2431c48b1b..e64b700339 100644--- a/server/drivers/antigravity-opt-in.test.ts+++ b/server/drivers/antigravity-opt-in.test.ts@@ -1,6 +1,6 @@-// Which runtime an Antigravity account runs. Its CLI path (Settings, Runs on) decides: `antigravity` the native CLI,+// Which runtime an Antigravity account runs. Its CLI path decides: `antigravity` the native CLI,// `agy_acp_server` the pinned (Classic) runtime. With neither, a computer that has the pinned runtime keeps it, nothing-// is moved, removed or offered, and a new install takes the CLI. OMB_ANTIGRAVITY_NATIVE_CLI=1 gives such an account the+// is moved or removed, and a new install takes the CLI. OMB_ANTIGRAVITY_NATIVE_CLI=1 gives such an account the// CLI even where the pinned runtime is installed; an account set to a runtime keeps it, and nothing is removed.import { chmodSync, existsSync, mkdirSync, mkdtempSync, statSync, truncateSync, writeFileSync } from "node:fs";import { tmpdir } from "node:os";diff --git a/server/drivers/antigravity-runtime.ts b/server/drivers/antigravity-runtime.tsindex 88051aeb17..f766a725ae 100644--- a/server/drivers/antigravity-runtime.ts+++ b/server/drivers/antigravity-runtime.ts@@ -5,8 +5,8 @@// - apps/server/src/provider/AntigravityInstallation.ts:57, 311-345, 922-966,// 985-999 (a CLI needs no harness sibling, the hourly look at the channel,// and keeping an installed CLI that is newer than the channel's).-// Each account's CLI path chooses its runtime (Settings, Runs on): `antigravity` the native CLI, `agy_acp_server` the-// pinned runtime. With neither, a computer that has the pinned runtime keeps it and a new install takes the CLI, with the+// Each account's CLI path chooses its runtime: `antigravity` the native CLI (what Switch to Google Antigravity CLI in+// Settings saves, one way), `agy_acp_server` the pinned runtime (kept for configurations that already name it). With neither, a computer that has the pinned runtime keeps it and a new install takes the CLI, with the// pinned runtime as the fallback where the channel has no build or cannot be reached; OMB_ANTIGRAVITY_NATIVE_CLI=1 gives// such an account the CLI even where the pinned runtime is installed. Nothing removes the pinned runtime. A saved `agy`// path is never started.@@ -187,7 +187,7 @@ function pathCandidates(binary: string, env: NodeJS.ProcessEnv): string[] {const cliVersions = new Map<string, { stamp: string; version: string | null }>();-const CLI_NOT_INSTALLED = "The Google Antigravity CLI is not installed yet. Install it here, or choose Classic runtime under Runs on.";+const CLI_NOT_INSTALLED = "The Google Antigravity CLI is not installed yet. Install it here.";/** Security: a program a path names never gets the server's, the workspace's or a provider's credentials. */function versionProbeEnv(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv {@@ -261,7 +261,7 @@ export async function antigravityPathRunsNativeCli(cli: string | undefined, env:/** Written when the native CLI is installed on a computer with no pinned runtime: this computer's accounts that name no* runtime run the CLI from then on, even after an account set to the Classic runtime installs that one beside it. A- * computer that had the pinned runtime first never gets it, so its accounts keep the pinned runtime until each chooses. */+ * computer that had the pinned runtime first never gets it, so its accounts keep the pinned runtime until each switches. */const CLI_FIRST_MARKER = "cli-first.json";async function cliCameFirst(root: string): Promise<boolean> {@@ -503,16 +503,43 @@ async function installOnce(options: AntigravityInstallOptions): Promise<Antigrav}}+/** One install per channel at a time. The two that can download the CLI go one after the other, so the card's install+ * asked during the updater's (or the other way round) finds that release in place instead of downloading it again. */export function installAntigravityRuntime(options: AntigravityInstallOptions = {}): Promise<AntigravityRuntime> {const channel = options.asset !== undefined ? "pinned" : options.native ? "native" : options.nativeByDefault === false ? "pinned-only" : "default";- const key = `${runtimeRoot(options.baseDir)}\0${channel}`;+ const root = `${runtimeRoot(options.baseDir)}\0`;+ const key = `${root}${channel}`;const existing = installs.get(key);if (existing) return existing;- const running = installOnce(options).finally(() => installs.delete(key));+ const takesCli = (name: string) => name === "native" || name === "default";+ const before = takesCli(channel)+ ? [...installs].filter(([other]) => other.startsWith(root) && takesCli(other.slice(root.length))).map(([, install]) => install.catch(() => {}))+ : [];+ const running = Promise.all(before).then(() => installOnce(options)).finally(() => installs.delete(key));installs.set(key, running);return running;}+/** An install of any channel is running on this computer now. */+export function antigravityInstallRunning(baseDir?: string): boolean {+ const root = `${runtimeRoot(baseDir)}\0`;+ return [...installs.keys()].some((key) => key.startsWith(root));+}++/** No Antigravity runtime here at all: no CLI or pinned release this app installed (of any version), and no pinned+ * runtime on PATH. Starts no program. */+export async function antigravityNothingInstalled(baseDir = DATA_DIR, env: NodeJS.ProcessEnv = process.env): Promise<boolean> {+ const root = runtimeRoot(baseDir);+ if (await activeAntigravityCli(root)) return false;+ const pinned = resolveAntigravityReleaseAsset();+ if (pinned && (await completedRelease(join(root, "versions", pinned.sha256), pinned))) return false;+ if ((await antigravityOlderRuntime(baseDir, pinned)) !== null) return false;+ for (const candidate of pathCandidates(executableNames().executable, env)) {+ if (await externalRuntime(candidate, "path")) return false;+ }+ return true;+}+let channelAnswer: { at: number; version: string } | undefined;/** The native CLI's version when an account here runs it and Google's channel has a newer one. An account runs it when@@ -533,7 +560,7 @@ export async function antigravityCliUpdate(options: {const active = await activeAntigravityCli(root);const pinned = options.asset === undefined ? resolveAntigravityReleaseAsset() : options.asset;const pinnedHere = pinned ? (await completedRelease(join(root, "versions", pinned.sha256), pinned)) !== null : false;- // The move from the pinned runtime is offered only with the switch on; an account chooses it itself under Runs on.+ // The updater moves from the pinned runtime only with the switch on; otherwise an account switches itself in Settings.const from = active?.version?? (ANTIGRAVITY_CLI_FIRST ? (pinnedHere ? pinned!.version : await antigravityOlderRuntime(options.baseDir, pinned)) : null);if (!from) return null;diff --git a/server/drivers/antigravity.ts b/server/drivers/antigravity.tsindex e9b6a398b1..9c7d0aa33c 100644--- a/server/drivers/antigravity.ts+++ b/server/drivers/antigravity.ts@@ -45,6 +45,7 @@ import { AntigravityCliLogin, type LoginProcesses } from "./antigravity-native-limport { NativeSignInCache, antigravityCliRefusedSession, antigravityCliSignIn, signOutAntigravityCli } from "./antigravity-native-status.ts";import { AcpDiscoveryRpcError, AcpDiscoveryTimeoutError } from "./acp/custom-model-catalog.ts";import {+ antigravityInstallRunning,antigravityManagedInstallAvailable,isAntigravityNativeAlias,isAntigravityPinnedAlias,@@ -419,6 +420,8 @@ export const AntigravityDriver: ProviderDriver<AcpConfig> = {snapshot: async () => {const snapshot = await base.snapshot();if (snapshot.state === "available") installFailure = undefined;+ // The engine updater (or another account's card) is installing a runtime here now.+ if (snapshot.state === "unavailable" && antigravityInstallRunning()) return { ...snapshot, installing: true };return snapshot.state === "unavailable" && installFailure? { ...snapshot, reason: installFailure }: snapshot;diff --git a/server/engine-updates-host.ts b/server/engine-updates-host.tsindex 758f8a328a..c44ede9638 100644--- a/server/engine-updates-host.ts+++ b/server/engine-updates-host.ts@@ -3,36 +3,81 @@ import { join } from "node:path";import { DATA_DIR } from "./config.ts";import type { AnyProviderDriver } from "./contracts.ts";import { validateAntigravityRuntime } from "./drivers/antigravity-acp.ts";-import { antigravityCliUpdate, antigravityManagedInstallAvailable, antigravityOlderRuntime, installAntigravityRuntime, type AntigravityInstallOptions } from "./drivers/antigravity-runtime.ts";+import { ANTIGRAVITY_CLI_FIRST } from "./drivers/antigravity-cli-install.ts";+import { antigravityCliTarget } from "./drivers/antigravity-cli-release.ts";+import {+ antigravityCliUpdate, antigravityManagedInstallAvailable, antigravityNothingInstalled, antigravityOlderRuntime, installAntigravityRuntime,+ isAntigravityNativeAlias, type AntigravityInstallOptions,+} from "./drivers/antigravity-runtime.ts";import { resolveAntigravityReleaseAsset } from "./drivers/antigravity-release.ts";import { antigravityRuntimesRoot } from "./engine-roots.ts";import { createEngineUpdater, enginePlans, type EngineUpdater, type ManagedRuntime } from "./engine-updates.ts";-/** The channel whose copy is older is the one installed, and what it installed is reported by that copy's own version. */+type Selection = { instanceId?: string } | undefined;++/** Someone on this server uses Antigravity: an added Google account, the account's path set to the CLI, or a bot (or one+ * of its tasks) or the default model on an Antigravity account. The built-in account every home lists does not count. */+export function antigravityInUse(+ instances: Readonly<Record<string, { driver: string; config?: unknown }>>,+ selections: Iterable<Selection>,+): boolean {+ const ids = new Set(Object.entries(instances).filter(([, entry]) => entry.driver === "antigravityAgent").map(([id]) => id));+ for (const id of ids) {+ const cli = (instances[id]!.config as { cli?: unknown } | undefined)?.cli;+ if (id !== "antigravity" || (typeof cli === "string" && isAntigravityNativeAlias(cli))) return true;+ }+ for (const selection of selections) if (selection?.instanceId && ids.has(selection.instanceId)) return true;+ return false;+}++/** The channel whose copy is older is the one installed, and what it installed is reported by that copy's own version.+ * On a computer with no Antigravity runtime at all, the CLI is installed from its channel when the server is opted in+ * (OMB_ANTIGRAVITY_NATIVE_CLI=1) or Antigravity is in use here; otherwise nothing is downloaded until the card's install. */export function antigravityManagedRuntime(configuredClis: () => readonly string[],- options: Pick<AntigravityInstallOptions, "baseDir" | "fetchImpl" | "cliRelease" | "validate"> & { latest?: NonNullable<Parameters<typeof antigravityCliUpdate>[0]>["latest"] } = {},+ options: Pick<AntigravityInstallOptions, "baseDir" | "fetchImpl" | "cliRelease" | "validate"> & {+ latest?: NonNullable<Parameters<typeof antigravityCliUpdate>[0]>["latest"];+ /** Antigravity is in use on this server. */+ wanted?: () => boolean;+ /** The opt-in, read at start; given in tests. */+ cliFirst?: boolean;+ /** An install starts or ends: the cards read the engine again. */+ changed?: () => void;+ env?: NodeJS.ProcessEnv;+ } = {},): ManagedRuntime {+ const firstInstall = async (): Promise<boolean> =>+ antigravityCliTarget(process.platform, process.arch) !== null+ && ((options.cliFirst ?? ANTIGRAVITY_CLI_FIRST) || options.wanted?.() === true)+ && await antigravityNothingInstalled(options.baseDir, options.env);return {older: async (skip = []) => {+ if (!skip.includes("native") && await firstInstall()) return { version: "none", channel: "native", first: true };const cli = skip.includes("native") ? null : await antigravityCliUpdate({ configuredClis: configuredClis(), baseDir: options.baseDir, latest: options.latest });if (cli) return { version: cli, channel: "native" };const pinned = skip.includes("pinned") ? null : await antigravityOlderRuntime(options.baseDir);return pinned ? { version: pinned, channel: "pinned" } : null;},- install: async (channel) => (await installAntigravityRuntime({- validate: options.validate ?? validateAntigravityRuntime,- baseDir: options.baseDir,- fetchImpl: options.fetchImpl,- ...(channel === "native" ? { native: true, cliRelease: options.cliRelease } : channel === "pinned" ? { asset: resolveAntigravityReleaseAsset() } : {}),- })).version ?? undefined,+ install: async (channel) => {+ options.changed?.();+ try {+ return (await installAntigravityRuntime({+ validate: options.validate ?? validateAntigravityRuntime,+ baseDir: options.baseDir,+ fetchImpl: options.fetchImpl,+ ...(channel === "native" ? { native: true, cliRelease: options.cliRelease } : channel === "pinned" ? { asset: resolveAntigravityReleaseAsset() } : {}),+ })).version ?? undefined;+ } finally {+ options.changed?.();+ }+ },folder: antigravityRuntimesRoot(options.baseDir ?? DATA_DIR),};}-function managedRuntimes(configuredClis: () => readonly string[]): Record<string, ManagedRuntime> {+function managedRuntimes(configuredClis: () => readonly string[], wanted: () => boolean, changed: () => void): Record<string, ManagedRuntime> {if (!antigravityManagedInstallAvailable()) return {};- return { antigravityAgent: antigravityManagedRuntime(configuredClis) };+ return { antigravityAgent: antigravityManagedRuntime(configuredClis, { wanted, changed }) };}/** The server's engine updater; `start()` it once the server is up. */@@ -40,10 +85,12 @@ export function engineUpdatesFor(deps: {drivers: readonly AnyProviderDriver[];turnRunning(): boolean;configuredClis(): readonly string[];+ /** Antigravity is in use on this server (antigravityInUse). */+ antigravityWanted?(): boolean;updated(): void;}): EngineUpdater {return createEngineUpdater({- plans: enginePlans(deps.drivers, managedRuntimes(deps.configuredClis)),+ plans: enginePlans(deps.drivers, managedRuntimes(deps.configuredClis, () => deps.antigravityWanted?.() === true, deps.updated)),statePath: join(DATA_DIR, "providers", "engine-updates.json"),turnRunning: deps.turnRunning,configuredClis: deps.configuredClis,diff --git a/server/engine-updates.ts b/server/engine-updates.tsindex b773eff22c..8151829b39 100644--- a/server/engine-updates.ts+++ b/server/engine-updates.ts@@ -33,8 +33,9 @@ const SWITCH_POLL_MS = 15_000;/** A runtime the app manages itself (Antigravity): it installs each version beside the others and checks it. */export interface ManagedRuntime {/** The version installed when a newer one is to be installed, else null; with the release channel that version came- * from when the runtime has more than one. `skip` names the channels this pass already tried. */- older(skip?: readonly string[]): Promise<string | { version: string; channel: string } | null>;+ * from when the runtime has more than one. `skip` names the channels this pass already tried. `first`: nothing is+ * installed yet and this is the first install, which is not shown as an update. */+ older(skip?: readonly string[]): Promise<string | { version: string; channel: string; first?: true } | null>;/** Installs from `channel` (the one `older` named). Resolves with the version of the runtime it installed when that* is not the pinned one. */install(channel?: string): Promise<string | void>;@@ -135,7 +136,7 @@ type Outcome =| { kind: "updated"; from: string; to: string; moves?: Move[]; busyAfter?: true }| { kind: "failed"; from: string; to: string; reason: string; moves?: Move[]; busyAfter?: true };-type Move = { from: string; to: string };+type Move = { from: string; to: string; first?: true };export interface EngineUpdater {/** One pass over every engine now; resolves when it has finished. */@@ -321,9 +322,9 @@ export function createEngineUpdater(options: EngineUpdaterOptions): EngineUpdatebusyAfter = true;break;}- const { version: older, channel } = typeof found === "string" ? { version: found, channel: undefined } : found;+ const { version: older, channel, first } = typeof found === "string" ? { version: found, channel: undefined, first: undefined } : found;const outcome = await installManaged(plan, managed, older, channel);- if (outcome.kind === "updated") moves.push({ from: outcome.from, to: outcome.to });+ if (outcome.kind === "updated") moves.push({ from: outcome.from, to: outcome.to, ...(first ? { first } : {}) });else if (outcome.kind === "failed") failed ??= outcome;if (channel === undefined || tried.includes(channel)) break;tried.push(channel);@@ -361,8 +362,9 @@ export function createEngineUpdater(options: EngineUpdaterOptions): EngineUpdate}if (outcome.kind === "busy" || outcome.kind === "waiting" || ("busyAfter" in outcome && outcome.busyAfter)) waiting = true;const moves = outcome.kind === "updated" ? outcome.moves ?? [{ from: outcome.from, to: outcome.to }] : outcome.kind === "failed" ? outcome.moves ?? [] : [];- for (const move of moves) log(`Engine update: ${plan.name} ${move.from} → ${move.to}`);- const moved = moves.length ? { updatedTo: moves.at(-1)!.to, updatedVersions: moves.map((move) => move.to), updatedAt: now() } : {};+ for (const move of moves) log(move.first ? `Engine update: ${plan.name} ${move.to} installed` : `Engine update: ${plan.name} ${move.from} → ${move.to}`);+ const shownMoves = moves.filter((move) => !move.first);+ const moved = shownMoves.length ? { updatedTo: shownMoves.at(-1)!.to, updatedVersions: shownMoves.map((move) => move.to), updatedAt: now() } : {};if (moves.length) changed = true;if (outcome.kind === "updated") {state.engines[plan.driverKind] = moved;diff --git a/server/index.ts b/server/index.tsindex e7e614a5b3..4782e391df 100644--- a/server/index.ts+++ b/server/index.ts@@ -185,7 +185,7 @@ import { serveStatic } from "./static-files.ts";import { startUpkeep } from "./host/start-upkeep.ts";import { ComputerControl, type ControlSnapshot } from "./computer-control.ts"; import { createSharedVmControl } from "./host/shared-vm-control.ts";import { resetPathCache } from "./env-path.ts";-import { registerEnginesBinDir } from "./engine-install.ts"; import { keepsLoadedEngine } from "./engine-entry.ts"; import { engineUpdatesFor } from "./engine-updates-host.ts";+import { registerEnginesBinDir } from "./engine-install.ts"; import { keepsLoadedEngine } from "./engine-entry.ts"; import { antigravityInUse, engineUpdatesFor } from "./engine-updates-host.ts";import { appendUsage, flushUsageLedger, queuedTurnTrigger, usageTriggerFor, type UsageRow, type UsageTrigger } from "./usage-ledger.ts"; import { createUsageAttribution } from "./usage-attribution.ts";import { createTraceRecorder } from "./usage-trace/recorder.ts";import { GroupUsageReader } from "./group-thread-usage.ts";@@ -800,7 +800,7 @@ function customDomainStatus() {}const registry = new ProviderRegistry(BUILT_IN_DRIVERS, { statusFile: join(DATA_DIR, "providers", "engine-status.json") });const supportsApprovalMode = createApprovalModeSupport(registry);-registerEnginesBinDir(); const engineUpdates = engineUpdatesFor({ drivers: BUILT_IN_DRIVERS, turnRunning: () => store.bots.some((bot) => botHasActiveTurn(bot.id)) || store.groups.some(groupIsWorking) || Boolean(routines?.hasActiveRuns()), configuredClis: () => Object.values(providerConfigs()).flatMap((entry) => { const cli = (entry.config as { cli?: unknown } | undefined)?.cli; return typeof cli === "string" && cli ? [cli] : []; }), updated: () => { registry.forgetSnapshots(); broadcast({ kind: "config", ...configStatus() }); } });+registerEnginesBinDir(); const engineUpdates = engineUpdatesFor({ drivers: BUILT_IN_DRIVERS, turnRunning: () => store.bots.some((bot) => botHasActiveTurn(bot.id)) || store.groups.some(groupIsWorking) || Boolean(routines?.hasActiveRuns()), configuredClis: () => Object.values(providerConfigs()).flatMap((entry) => { const cli = (entry.config as { cli?: unknown } | undefined)?.cli; return typeof cli === "string" && cli ? [cli] : []; }), antigravityWanted: () => antigravityInUse(providerConfigs(), [cfg.defaultModelSelection, ...store.bots.flatMap((bot) => [bot.modelSelection, ...(bot.tasks ?? []).map((task) => task.modelSelection)])]), updated: () => { registry.forgetSnapshots(); broadcast({ kind: "config", ...configStatus() }); } });// Set only when a turn is admitted, never on queue or steer, so a second person's words cannot re-book the first person's turn.const threadMaps = createThreadMaps(); const turnTriggers = threadMaps.track(new Map<string, UsageTrigger>());diff --git a/src/components/AntigravitySwitchCli.tsx b/src/components/AntigravitySwitchCli.tsxnew file mode 100644index 0000000000..0432ee90b2--- /dev/null+++ b/src/components/AntigravitySwitchCli.tsx@@ -0,0 +1,58 @@+import { useState } from "react";+import { ArrowRightLeft, Loader2 } from "lucide-react";++import { api, type InstanceInfo } from "@/state/store";+import { useStoreActions } from "@/state/store-select";+import { t } from "@/lib/i18n";+import { runsAntigravityCli } from "./EngineSetup";++/** A Google account that runs the Classic runtime because nothing named another: no path, the retired `agy`, or the+ * pinned runtime's own name. A path of the person's own is theirs to change. */+export function offersAntigravityCliSwitch(instance: InstanceInfo): boolean {+ if (instance.driverKind !== "antigravityAgent" || instance.snapshot.state !== "available" || runsAntigravityCli(instance)) return false;+ return /^(?:|agy|agy_acp_server)$/iu.test(instance.cli?.trim() ?? "");+}++/** The one way from the Classic runtime to Google's Antigravity CLI, and one way only: the account's CLI path becomes+ * `antigravity` and the CLI is installed. When the install fails the path goes back, so a working account keeps working. */+export function AntigravitySwitchCli({ instance }: { instance: InstanceInfo }) {+ const { refreshInstances } = useStoreActions();+ const [busy, setBusy] = useState(false);+ const [error, setError] = useState<string | null>(null);+ if (!offersAntigravityCliSwitch(instance) && !busy) return null;+ const path = `/api/instances/${encodeURIComponent(instance.instanceId)}`;+ const setCli = (cli: string) => api(path, { method: "PATCH", body: JSON.stringify({ cli }) });+ const run = async () => {+ setBusy(true);+ setError(null);+ try {+ await setCli("antigravity");+ try {+ await api(`${path}/install`, { method: "POST" });+ } catch (cause) {+ await setCli(instance.cli ?? "").catch(() => {});+ throw cause;+ }+ } catch (cause) {+ setError(cause instanceof Error ? cause.message : String(cause));+ } finally {+ await refreshInstances().catch(() => {});+ setBusy(false);+ }+ };+ return (+ <div data-antigravity-switch-cli className="mt-3 rounded-xl border border-hairline/60 bg-app p-2.5">+ <p className="text-[12px] leading-relaxed text-ink-secondary">{t("engines.antigravity.switchCliNote")}</p>+ <button+ type="button"+ disabled={busy}+ onClick={() => void run()}+ className="mt-2 flex w-full items-center justify-center gap-2 rounded-lg bg-control px-3 py-2 text-[13px] font-semibold text-ink hover:bg-raised-hover disabled:cursor-wait disabled:opacity-70"+ >+ {busy ? <Loader2 size={14} className="animate-spin" /> : <ArrowRightLeft size={14} />}+ {busy ? t("engineSetup.installing") : t("engines.antigravity.switchCli")}+ </button>+ {error && <p role="alert" className="mt-2 whitespace-pre-wrap text-[12px] leading-relaxed text-danger">{error}</p>}+ </div>+ );+}diff --git a/src/components/EngineSetup.tsx b/src/components/EngineSetup.tsxindex e30d102f9c..2f4fc828dd 100644--- a/src/components/EngineSetup.tsx+++ b/src/components/EngineSetup.tsx@@ -374,16 +374,19 @@ function ManagedEngineSetup({ instance, signInOnly }: { instance: InstanceInfo;});if (!signInOnly) {+ // The server installs it on its own too (the engine updater): the card says so and waits for it.+ const installing = busy === "install" || instance.snapshot.installing === true;return (<div className="mt-3"><buttontype="button"- disabled={busy !== null}+ disabled={busy !== null || installing}+ aria-busy={installing}onClick={() => void install()}className="flex w-full items-center justify-center gap-2 rounded-lg bg-accent px-3 py-2 text-[13px] font-semibold text-white hover:brightness-110 disabled:cursor-wait disabled:opacity-70">- {busy === "install" ? <Loader2 size={14} className="animate-spin" /> : <Download size={14} />}- {busy === "install" ? t("engineSetup.installing") : instance.driverKind === "antigravityAgent"+ {installing ? <Loader2 size={14} className="animate-spin" /> : <Download size={14} />}+ {installing ? t("engineSetup.installing") : instance.driverKind === "antigravityAgent"? t(installsAntigravityCli(instance) ? "engineSetup.installAntigravityCli" : "engineSetup.installClassicRuntime"): managed.label}</button>diff --git a/src/components/EnginesSettings.antigravity-runtime.dom.test.ts b/src/components/EnginesSettings.antigravity-runtime.dom.test.tsdeleted file mode 100644index dfe5cc751c..0000000000--- a/src/components/EnginesSettings.antigravity-runtime.dom.test.ts+++ /dev/null@@ -1,71 +0,0 @@-// @vitest-environment happy-dom-import { act, createElement } from "react";-import { createRoot, type Root } from "react-dom/client";-import { afterEach, beforeEach, expect, it, vi } from "vitest";-import type { Bot, InstanceInfo } from "@/state/store";-import { setLocale } from "@/lib/i18n";--const fixture = vi.hoisted(() => ({ state: { instances: [] as InstanceInfo[], bots: [] as Bot[], config: {} as Record<string, unknown> }, patches: [] as Array<{ path: string; body: unknown }> }));-vi.mock("@/state/store", async (original) => ({- ...await original<typeof import("@/state/store")>(),- useStore: () => ({- state: fixture.state,- dispatch: (action: { type: string; instances?: InstanceInfo[] }) => { if (action.type === "instances" && action.instances) fixture.state = { ...fixture.state, instances: action.instances }; },- refreshInstances: async () => {}, refreshModels: async () => {},- }),- api: async (path: string, init?: { method?: string; body?: string }) => {- if (init?.method === "PATCH") fixture.patches.push({ path, body: init.body ? JSON.parse(init.body) : undefined });- return {};- },-}));-import { EnginesSettings } from "./EnginesSettings";--function google(fields: Partial<InstanceInfo>): InstanceInfo {- return {- instanceId: "antigravity", driverKind: "antigravityAgent", displayName: "Google Gemini", cliDefault: "agy",- snapshot: { state: "available", authenticated: true }, models: { default: "gemini", options: [] },- install: { managed: { label: "Install Antigravity", downloadBytes: 1 } }, ...fields,- } as InstanceInfo;-}--let container: HTMLDivElement, root: Root;-beforeEach(() => {- vi.stubGlobal("IS_REACT_ACT_ENVIRONMENT", true);- setLocale("en");- fixture.patches = [];- container = document.createElement("div"); document.body.append(container); root = createRoot(container);-});-afterEach(async () => { await act(async () => root.unmount()); container.remove(); vi.unstubAllGlobals(); });--async function show(instance: InstanceInfo) {- fixture.state = { instances: [instance], bots: [], config: {} };- await act(async () => { root.render(createElement(EnginesSettings)); });- return container.querySelector<HTMLSelectElement>("[data-antigravity-runtime] select");-}--it.each([- ["the CLI it runs", google({ cli: "agy", snapshot: { state: "available", authenticated: true, nativeCli: true } }), "cli"],- ["the path antigravity", google({ cli: "antigravity", snapshot: { state: "unavailable" } }), "cli"],- ["the path Antigravity.exe", google({ cli: "Antigravity.exe", snapshot: { state: "unavailable" } }), "cli"],- ["a new install with nothing yet", google({ snapshot: { state: "unavailable" } }), "cli"],- ["the pinned runtime it runs", google({ snapshot: { state: "available", authenticated: true, version: "1.4.3" } }), "pinned"],- ["the path that asks for the pinned runtime", google({ cli: "agy_acp_server", snapshot: { state: "unavailable" } }), "pinned"],- ["a path of the person's own", google({ cli: "/opt/agy/agy_acp_server.par", snapshot: { state: "available", version: "1.4.3" } }), "custom"],- ["a native CLI at a path of the person's own", google({ cli: "/opt/tools/antigravity", snapshot: { state: "available", authenticated: true, nativeCli: true } }), "custom"],-])("shows what an Antigravity account runs, from %s", async (_from, instance, shown) => {- const select = await show(instance);- expect(select?.value).toBe(shown);-});--it.each([- ["pinned", "agy_acp_server", google({ cli: "antigravity", snapshot: { state: "available", authenticated: true, nativeCli: true } })],- ["cli", "antigravity", google({ snapshot: { state: "available", authenticated: true, version: "1.4.3" } })],- ["cli", "antigravity", google({ cli: "/opt/tools/antigravity", snapshot: { state: "available", authenticated: true, nativeCli: true } })],-])("saves the path for %s when it is chosen", async (choice, path, instance) => {- const select = await show(instance);- await act(async () => {- select!.value = choice;- select!.dispatchEvent(new Event("change", { bubbles: true }));- });- expect(fixture.patches).toEqual([{ path: "/api/instances/antigravity", body: { cli: path } }]);-});diff --git a/src/components/EnginesSettings.antigravity-switch.dom.test.ts b/src/components/EnginesSettings.antigravity-switch.dom.test.tsnew file mode 100644index 0000000000..492accef3f--- /dev/null+++ b/src/components/EnginesSettings.antigravity-switch.dom.test.ts@@ -0,0 +1,146 @@+// @vitest-environment happy-dom+// Settings → AI → Google Gemini: no runtime selector on an Antigravity account, and one way from the Classic runtime to+// Google's Antigravity CLI.+import { act, createElement } from "react";+import { createRoot, type Root } from "react-dom/client";+import { afterEach, beforeEach, expect, it, vi } from "vitest";+import type { Bot, InstanceInfo } from "@/state/store";+import { setLocale } from "@/lib/i18n";++const fixture = vi.hoisted(() => ({+ state: { instances: [] as InstanceInfo[], bots: [] as Bot[], config: {} as Record<string, unknown> },+ calls: [] as Array<{ path: string; method: string; body: unknown }>,+ installFails: false,+ afterRefresh: null as InstanceInfo[] | null,+}));+vi.mock("@/state/store", async (original) => ({+ ...await original<typeof import("@/state/store")>(),+ useStore: () => ({+ state: fixture.state,+ dispatch: (action: { type: string; instances?: InstanceInfo[] }) => { if (action.type === "instances" && action.instances) fixture.state = { ...fixture.state, instances: action.instances }; },+ refreshInstances: async () => { if (fixture.afterRefresh) fixture.state = { ...fixture.state, instances: fixture.afterRefresh }; },+ refreshModels: async () => {},+ }),+ api: async (path: string, init?: { method?: string; body?: string }) => {+ if (init?.method) fixture.calls.push({ path, method: init.method, body: init.body ? JSON.parse(init.body) : undefined });+ if (path.endsWith("/install") && fixture.installFails) throw new Error("Could not find a native Antigravity CLI release.");+ return {};+ },+}));+import { EnginesSettings } from "./EnginesSettings";++function google(fields: Partial<InstanceInfo>): InstanceInfo {+ return {+ instanceId: "antigravity", driverKind: "antigravityAgent", displayName: "Google Gemini", cliDefault: "agy",+ snapshot: { state: "available", authenticated: true, version: "1.4.3" }, models: { default: "gemini", options: [] },+ install: { managed: { label: "Install official Antigravity", downloadBytes: 1, sizeUnknown: true } },+ authentication: { method: "callback-url", signOut: true }, ...fields,+ } as InstanceInfo;+}++const classic = google({});+const onCli = (fields: Partial<InstanceInfo> = {}) => google({ cli: "antigravity", snapshot: { state: "available", authenticated: false, nativeCli: true, version: "1.5.2" }, ...fields });++let container: HTMLDivElement, root: Root;+beforeEach(() => {+ vi.stubGlobal("IS_REACT_ACT_ENVIRONMENT", true);+ setLocale("en");+ fixture.calls = [];+ fixture.installFails = false;+ fixture.afterRefresh = null;+ container = document.createElement("div"); document.body.append(container); root = createRoot(container);+});+afterEach(async () => { await act(async () => root.unmount()); container.remove(); vi.unstubAllGlobals(); });++async function show(instance: InstanceInfo) {+ fixture.state = { instances: [instance], bots: [], config: {} };+ await act(async () => { root.render(createElement(EnginesSettings)); });+}+const card = () => container.querySelector('[data-engine-card="antigravity"]') ?? container;+const button = (label: string) => [...card().querySelectorAll("button")].filter((item) => item.textContent === label);++it.each([+ ["the CLI it runs", google({ cli: "agy", snapshot: { state: "available", authenticated: true, nativeCli: true } })],+ ["the path antigravity", google({ cli: "antigravity", snapshot: { state: "unavailable" } })],+ ["the path Antigravity.exe", google({ cli: "Antigravity.exe", snapshot: { state: "unavailable" } })],+ ["a new install with nothing yet", google({ snapshot: { state: "unavailable" } })],+ ["the Classic runtime it runs", classic],+ ["the path that asks for the Classic runtime", google({ cli: "agy_acp_server", snapshot: { state: "unavailable" } })],+ ["a path of the person's own", google({ cli: "/opt/agy/agy_acp_server.par", snapshot: { state: "available", version: "1.4.3" } })],+ ["a native CLI at a path of the person's own", google({ cli: "/opt/tools/antigravity", snapshot: { state: "available", authenticated: true, nativeCli: true } })],+])("shows no runtime selector for an account on %s", async (_from, instance) => {+ await show(instance);+ expect(card().querySelector("[data-antigravity-runtime]")).toBeNull();+ expect(card().querySelector("select")).toBeNull();+ expect(card().textContent).not.toContain("Runs on");+ expect(card().textContent).not.toContain("Custom path");+});++it.each([+ ["no path", classic],+ ["the retired agy path", google({ cli: "agy" })],+ ["the Classic runtime's own name", google({ cli: "agy_acp_server" })],+ ["the Classic runtime, signed out", google({ snapshot: { state: "available", authenticated: false, version: "1.4.3" } })],+])("offers a signed-in Classic account, unchanged, one switch to the CLI (%s)", async (_from, instance) => {+ await show(instance);+ expect(button("Switch to Google Antigravity CLI")).toHaveLength(1);+ expect(card().querySelector("[data-antigravity-switch-cli]")?.textContent).toContain("you sign in with Google once more");+ expect(fixture.calls).toEqual([]);+});++it.each([+ ["the CLI, signed in", onCli({ snapshot: { state: "available", authenticated: true, nativeCli: true } })],+ ["the CLI, signed out", onCli()],+ ["the CLI on the retired agy path", google({ cli: "agy", snapshot: { state: "available", authenticated: true, nativeCli: true } })],+ ["nothing installed yet", google({ snapshot: { state: "unavailable" } })],+ ["a path of the person's own", google({ cli: "/opt/agy/agy_acp_server.par" })],+])("offers no switch to an account on %s", async (_from, instance) => {+ await show(instance);+ expect(card().querySelector("[data-antigravity-switch-cli]")).toBeNull();+});++it("moves the account to the CLI, installs it, and shows the sign-in card with no way back", async () => {+ await show(classic);+ fixture.afterRefresh = [onCli()];+ await act(async () => { button("Switch to Google Antigravity CLI")[0]!.click(); });+ expect(fixture.calls.map(({ path, method, body }) => [method, path, body])).toEqual([+ ["PATCH", "/api/instances/antigravity", { cli: "antigravity" }],+ ["POST", "/api/instances/antigravity/install", undefined],+ ]);+ await act(async () => { root.render(createElement(EnginesSettings)); });+ expect(card().querySelector("[data-antigravity-switch-cli]")).toBeNull();+ expect(button("Sign in with Google")).toHaveLength(1);+ expect(card().querySelector("select")).toBeNull();+ expect(card().textContent).not.toContain("Classic runtime");+});++it("puts the path back when the CLI cannot be installed, so the Classic account keeps working", async () => {+ await show(google({ cli: "agy" }));+ fixture.installFails = true;+ await act(async () => { button("Switch to Google Antigravity CLI")[0]!.click(); });+ expect(fixture.calls.map(({ path, method, body }) => [method, path, body])).toEqual([+ ["PATCH", "/api/instances/antigravity", { cli: "antigravity" }],+ ["POST", "/api/instances/antigravity/install", undefined],+ ["PATCH", "/api/instances/antigravity", { cli: "agy" }],+ ]);+ expect(card().querySelector('[role="alert"]')?.textContent).toContain("Could not find a native Antigravity CLI release.");+ expect(button("Switch to Google Antigravity CLI")).toHaveLength(1);+});++it("installs the CLI from a fresh home's install button, with no path saved first", async () => {+ await show(google({ snapshot: { state: "unavailable", reason: "The Google Antigravity CLI is not installed yet. Install it here." } }));+ const install = button("Install Google Antigravity CLI");+ expect(install).toHaveLength(1);+ await act(async () => { install[0]!.click(); });+ expect(fixture.calls.map(({ path, method }) => [method, path])).toEqual([["POST", "/api/instances/antigravity/install"]]);+});++it("says the CLI is being installed while the server installs it on its own, and starts no second install", async () => {+ await show(google({ snapshot: { state: "unavailable", installing: true } }));+ expect(button("Install Google Antigravity CLI")).toHaveLength(0);+ const installing = button("Downloading and verifying…");+ expect(installing).toHaveLength(1);+ expect(installing[0]!.disabled).toBe(true);+ await act(async () => { installing[0]!.click(); });+ expect(fixture.calls).toEqual([]);+});diff --git a/src/components/EnginesSettings.tsx b/src/components/EnginesSettings.tsxindex c895c9f71d..a47e64fef6 100644--- a/src/components/EnginesSettings.tsx+++ b/src/components/EnginesSettings.tsx@@ -8,7 +8,8 @@ import { cn } from "@/lib/cn";import { useMenuMotion } from "./MenuMotion";import { t } from "@/lib/i18n";import type { LocaleKey } from "@/locales";-import { ApiKeyEngineManage, EngineSetup, EngineUpdateNotice, EngineWarningNotice, isApiKeyEngine, runsAntigravityCli } from "./EngineSetup";+import { ApiKeyEngineManage, EngineSetup, EngineUpdateNotice, EngineWarningNotice, isApiKeyEngine } from "./EngineSetup";+import { AntigravitySwitchCli } from "./AntigravitySwitchCli";import { AppCopyNotice } from "./EngineAppCopy";import { forgetAppCopySwitches } from "@/state/engine-install";import { AccountsCard, AddAccount, accountGroupOf, accountsReady, type AccountGroup } from "./EngineAccounts";@@ -374,46 +375,6 @@ function EngineAccountAction({ instance, action, cli = false, removeBody = "acco</>;}-const ANTIGRAVITY_RUNTIME_PATHS = { cli: "antigravity", pinned: "agy_acp_server" } as const;-type AntigravityRuntime = keyof typeof ANTIGRAVITY_RUNTIME_PATHS | "custom";--/** What an Antigravity account runs, or for one with no runtime yet, what its install takes: a new install the CLI. */-function antigravityRuntimeOf(instance: InstanceInfo): AntigravityRuntime {- const cli = instance.cli?.trim() ?? "";- if (/^antigravity(?:\.exe)?$/iu.test(cli)) return "cli";- if (/^agy_acp_server$/iu.test(cli)) return "pinned";- if (cli !== "" && cli !== "agy") return "custom";- if (runsAntigravityCli(instance)) return "cli";- return instance.snapshot.state === "available" ? "pinned" : "cli";-}--function AntigravityRuntimeChoice({ instance }: { instance: InstanceInfo }) {- const showInstances = useShowInstances();- const [saving, setSaving] = useState(false);- const [error, setError] = useState<string | null>(null);- const current = antigravityRuntimeOf(instance);- const choose = (next: AntigravityRuntime) => {- if (next === "custom" || next === current || saving) return;- setSaving(true);- setError(null);- api(`/api/instances/${encodeURIComponent(instance.instanceId)}`, { method: "PATCH", body: JSON.stringify({ cli: ANTIGRAVITY_RUNTIME_PATHS[next] }) })- .then((answer) => showInstances(answer).catch(() => {}))- .catch((cause) => setError(cause instanceof Error ? cause.message : String(cause)))- .finally(() => setSaving(false));- };- return <div data-antigravity-runtime={current} className="mb-3">- <label className="flex items-center gap-3 text-[13px] text-ink">- <span className="shrink-0">{t("engines.antigravity.runtime")}</span>- <Select className="min-w-0 flex-1" value={current} disabled={saving} aria-busy={saving} onChange={(event) => choose(event.target.value as AntigravityRuntime)}>- <option value="cli">{t("engines.antigravity.runtimeCli")}</option>- <option value="pinned">{t("engines.antigravity.runtimePinned")}</option>- {current === "custom" && <option value="custom" disabled>{t("engines.antigravity.runtimeCustom")}</option>}- </Select>- </label>- {error && <p role="alert" className="mt-1 text-[12px] text-danger">{error}</p>}- </div>;-}-function AntigravityAddAccount({ source }: { source: InstanceInfo }) {const state = useStoreSelector((s) => ({ instances: s.instances }), sameFields);const [addedId, setAddedId] = useState<string | null>(null);@@ -441,7 +402,6 @@ function EngineRow({ instance, bare = false }: { instance: InstanceInfo; bare?:return (<EngineCard instance={instance} bare={bare}>{policyNote}- {instance.driverKind === "antigravityAgent" && <AntigravityRuntimeChoice instance={instance} />}{!engineReady(instance) && <EngineSetup instance={instance} intent={instance.access === "custom" ? "inject" : "cloud"} description={instance.codexEndpoint ? t("agentEndpoints.codexHint") : undefined} unframed />}{engineReady(instance) && <ApiKeyEngineManage instance={instance} className="mt-3" />}{engineReady(instance) && instance.serverKind === "ollama" && <OllamaModels instance={instance} className="mt-3" />}@@ -450,6 +410,7 @@ function EngineRow({ instance, bare = false }: { instance: InstanceInfo; bare?:{/* The setup panel that first said so is gone once the engine is Ready. */}{engineReady(instance) && <AppCopyNotice instance={instance} className="mt-3" />}{instance.snapshot.update && <EngineUpdateNotice update={instance.snapshot.update} instance={instance} className="mt-3" quiet />}+ <AntigravitySwitchCli instance={instance} />{instance.snapshot.warning && <EngineWarningNotice warning={instance.snapshot.warning} className="mt-3" />}{engineReady(instance) && instance.snapshot.authenticated === true && (instance.authentication?.method === "device-code"diff --git a/src/locales/de.json b/src/locales/de.jsonindex c1d363b7ee..c49d2baa64 100644--- a/src/locales/de.json+++ b/src/locales/de.json@@ -1390,11 +1390,9 @@"engineSetup.pasteCodeLabel": "Anmeldecode oder Seitenadresse","engineSetup.pasteCodePlaceholder": "Code oder https://antigravity.google/oauth-callback?…","engineSetup.sendCode": "Code senden",- "engines.antigravity.runtime": "Läuft mit",- "engines.antigravity.runtimeCustom": "Eigener Pfad",+ "engines.antigravity.switchCli": "Zu Google Antigravity CLI wechseln",+ "engines.antigravity.switchCliNote": "Googles Antigravity CLI ersetzt die Classic runtime. Nach dem Wechsel meldest du dich noch einmal mit Google an.","engineSetup.managedDescCli": "{app} installiert Googles Antigravity CLI. Installiere sie hier und melde dich mit Google an; danach wird diese Modellliste aus deinem Konto aktualisiert.",- "engines.antigravity.runtimeCli": "Google Antigravity CLI",- "engines.antigravity.runtimePinned": "Classic runtime","engineSetup.installAntigravityCli": "Google Antigravity CLI installieren","engineSetup.installClassicRuntime": "Classic runtime installieren","engineSetup.installDesc": "Installiere die Kommandozeilen-App einmal. Die Modelle erscheinen hier, sobald sie bereit ist.",diff --git a/src/locales/en.json b/src/locales/en.jsonindex 93a193d518..9ba8bb9e44 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -3745,10 +3745,8 @@"engineSetup.signInTitle": "Sign in to {name}","engineSetup.installTitle": "Install {name}","engineSetup.managedSignIn": "Each Antigravity setup has its own Google account. Your browser completes the secure sign-in.",- "engines.antigravity.runtime": "Runs on",- "engines.antigravity.runtimeCli": "Google Antigravity CLI",- "engines.antigravity.runtimePinned": "Classic runtime",- "engines.antigravity.runtimeCustom": "Custom path",+ "engines.antigravity.switchCli": "Switch to Google Antigravity CLI",+ "engines.antigravity.switchCliNote": "Google's Antigravity CLI replaces the Classic runtime. After you switch, you sign in with Google once more.","engineSetup.terminalSignIn": "Finish the account sign-in in Terminal. Reopen this menu afterward and we’ll check again.","engineSetup.injectDesc": "Install the agent once, then you can run it with local models. No cloud sign-in required.","engineSetup.installAntigravityCli": "Install Google Antigravity CLI",diff --git a/src/locales/es.json b/src/locales/es.jsonindex 00a6566a1e..6df11cdafe 100644--- a/src/locales/es.json+++ b/src/locales/es.json@@ -2599,11 +2599,9 @@"engineSetup.pasteCodeLabel": "Código de inicio de sesión o dirección de la página","engineSetup.pasteCodePlaceholder": "Código, o https://antigravity.google/oauth-callback?…","engineSetup.sendCode": "Enviar código",- "engines.antigravity.runtime": "Se ejecuta en",- "engines.antigravity.runtimeCustom": "Ruta personalizada",+ "engines.antigravity.switchCli": "Cambiar a Google Antigravity CLI",+ "engines.antigravity.switchCliNote": "La Antigravity CLI de Google sustituye a Classic runtime. Después del cambio, vuelves a iniciar sesión con Google una vez.","engineSetup.managedDescCli": "{app} instala la Antigravity CLI de Google. Instálala aquí e inicia sesión con Google; después esta lista de modelos se actualizará desde tu cuenta.",- "engines.antigravity.runtimeCli": "Google Antigravity CLI",- "engines.antigravity.runtimePinned": "Classic runtime","engineSetup.installAntigravityCli": "Instalar Google Antigravity CLI","engineSetup.installClassicRuntime": "Instalar Classic runtime","engineSetup.installDesc": "Instala la app de línea de comandos una vez. Los modelos aparecerán aquí en cuanto esté lista.",diff --git a/src/locales/fr.json b/src/locales/fr.jsonindex 529f5cb3d7..7dcb96590d 100644--- a/src/locales/fr.json+++ b/src/locales/fr.json@@ -1270,11 +1270,9 @@"engineSetup.pasteCodeLabel": "Code de connexion ou adresse de la page","engineSetup.pasteCodePlaceholder": "Code, ou https://antigravity.google/oauth-callback?…","engineSetup.sendCode": "Envoyer le code",- "engines.antigravity.runtime": "S'exécute sur",- "engines.antigravity.runtimeCustom": "Chemin personnalisé",+ "engines.antigravity.switchCli": "Passer à Google Antigravity CLI",+ "engines.antigravity.switchCliNote": "La CLI Antigravity de Google remplace Classic runtime. Après le changement, tu te connectes une nouvelle fois avec Google.","engineSetup.managedDescCli": "{app} installe l'Antigravity CLI de Google. Installez-la ici et connectez-vous avec Google ; cette liste de modèles sera ensuite actualisée depuis votre compte.",- "engines.antigravity.runtimeCli": "Google Antigravity CLI",- "engines.antigravity.runtimePinned": "Classic runtime","engineSetup.installAntigravityCli": "Installer Google Antigravity CLI","engineSetup.installClassicRuntime": "Installer Classic runtime","engineSetup.installDesc": "Installez l'application en ligne de commande une fois. Les modèles apparaîtront ici dès qu'elle sera prête.",diff --git a/src/locales/hi.json b/src/locales/hi.jsonindex 7157882730..293012d80f 100644--- a/src/locales/hi.json+++ b/src/locales/hi.json@@ -1268,11 +1268,9 @@"engineSetup.pasteCodeLabel": "साइन-इन कोड या पेज का पता","engineSetup.pasteCodePlaceholder": "कोड, या https://antigravity.google/oauth-callback?…","engineSetup.sendCode": "कोड भेजें",- "engines.antigravity.runtime": "इस पर चलता है",- "engines.antigravity.runtimeCustom": "कस्टम पाथ",+ "engines.antigravity.switchCli": "Google Antigravity CLI पर जाएँ",+ "engines.antigravity.switchCliNote": "Google की Antigravity CLI, Classic runtime की जगह लेती है। बदलने के बाद आपको Google से एक बार फिर साइन इन करना होगा।","engineSetup.managedDescCli": "{app} Google का Antigravity CLI इंस्टॉल करता है। इसे यहाँ इंस्टॉल करें और Google से साइन इन करें; इसके बाद यह मॉडल सूची आपके अकाउंट से रीफ़्रेश होगी।",- "engines.antigravity.runtimeCli": "Google Antigravity CLI",- "engines.antigravity.runtimePinned": "Classic runtime","engineSetup.installAntigravityCli": "Google Antigravity CLI इंस्टॉल करें","engineSetup.installClassicRuntime": "Classic runtime इंस्टॉल करें","engineSetup.installDesc": "कमांड-लाइन ऐप एक बार इंस्टॉल करें। तैयार होते ही मॉडल यहाँ दिखने लगेंगे।",diff --git a/src/locales/it.json b/src/locales/it.jsonindex e3b30713c0..ae1d3375c3 100644--- a/src/locales/it.json+++ b/src/locales/it.json@@ -3741,11 +3741,9 @@"engineSetup.pasteCodeLabel": "Codice di accesso o indirizzo della pagina","engineSetup.pasteCodePlaceholder": "Codice, oppure https://antigravity.google/oauth-callback?…","engineSetup.sendCode": "Invia codice",- "engines.antigravity.runtime": "Funziona con",- "engines.antigravity.runtimeCustom": "Percorso personalizzato",+ "engines.antigravity.switchCli": "Passa a Google Antigravity CLI",+ "engines.antigravity.switchCliNote": "La CLI Antigravity di Google sostituisce Classic runtime. Dopo il passaggio, accedi con Google ancora una volta.","engineSetup.managedDescCli": "{app} installa la Antigravity CLI di Google. Installala qui e accedi con Google; poi questo elenco di modelli si aggiornerà dal tuo account.",- "engines.antigravity.runtimeCli": "Google Antigravity CLI",- "engines.antigravity.runtimePinned": "Classic runtime","engineSetup.installAntigravityCli": "Installa Google Antigravity CLI","engineSetup.installClassicRuntime": "Installa Classic runtime","engineSetup.installDesc": "Installa una volta l'app da riga di comando. I modelli compaiono qui appena è pronta.",diff --git a/src/locales/ja.json b/src/locales/ja.jsonindex fefd46ee41..7e79614016 100644--- a/src/locales/ja.json+++ b/src/locales/ja.json@@ -3150,11 +3150,9 @@"engineSetup.pasteCodeLabel": "サインインコードまたはページのアドレス","engineSetup.pasteCodePlaceholder": "コード、または https://antigravity.google/oauth-callback?…","engineSetup.sendCode": "コードを送信",- "engines.antigravity.runtime": "実行環境",- "engines.antigravity.runtimeCustom": "カスタムパス",+ "engines.antigravity.switchCli": "Google Antigravity CLI に切り替える",+ "engines.antigravity.switchCliNote": "Google の Antigravity CLI が Classic runtime に代わります。切り替えたあと、Google でもう一度サインインします。","engineSetup.managedDescCli": "{app} は Google の Antigravity CLI をインストールします。ここでインストールして Google でサインインすると、このモデル一覧があなたのアカウントから更新されます。",- "engines.antigravity.runtimeCli": "Google Antigravity CLI",- "engines.antigravity.runtimePinned": "Classic runtime","engineSetup.installAntigravityCli": "Google Antigravity CLI をインストール","engineSetup.installClassicRuntime": "Classic runtime をインストール","engineSetup.installDesc": "コマンドラインアプリを一度インストールしてください。準備ができ次第、ここにモデルが表示されます。",diff --git a/src/locales/ko.json b/src/locales/ko.jsonindex 22c3f0993e..88008a7d85 100644--- a/src/locales/ko.json+++ b/src/locales/ko.json@@ -3014,11 +3014,9 @@"engineSetup.pasteCodeLabel": "로그인 코드 또는 페이지 주소","engineSetup.pasteCodePlaceholder": "코드 또는 https://antigravity.google/oauth-callback?…","engineSetup.sendCode": "코드 보내기",- "engines.antigravity.runtime": "실행 방식",- "engines.antigravity.runtimeCustom": "사용자 지정 경로",+ "engines.antigravity.switchCli": "Google Antigravity CLI로 전환",+ "engines.antigravity.switchCliNote": "Google의 Antigravity CLI가 Classic runtime을 대체합니다. 전환한 뒤 Google로 한 번 더 로그인합니다.","engineSetup.managedDescCli": "{app}은 Google의 Antigravity CLI를 설치해요. 여기서 설치하고 Google로 로그인하면 이 모델 목록이 내 계정 기준으로 새로고침돼요.",- "engines.antigravity.runtimeCli": "Google Antigravity CLI",- "engines.antigravity.runtimePinned": "Classic runtime","engineSetup.installAntigravityCli": "Google Antigravity CLI 설치","engineSetup.installClassicRuntime": "Classic runtime 설치","engineSetup.installDesc": "명령줄 앱을 한 번만 설치하세요. 준비되면 바로 여기에 모델이 나타나요.",diff --git a/src/locales/pl.json b/src/locales/pl.jsonindex 46a7b57067..7f1725547f 100644--- a/src/locales/pl.json+++ b/src/locales/pl.json@@ -2786,11 +2786,9 @@"engineSetup.pasteCodeLabel": "Kod logowania lub adres strony","engineSetup.pasteCodePlaceholder": "Kod albo https://antigravity.google/oauth-callback?…","engineSetup.sendCode": "Wyślij kod",- "engines.antigravity.runtime": "Działa na",- "engines.antigravity.runtimeCustom": "Własna ścieżka",+ "engines.antigravity.switchCli": "Przejdź na Google Antigravity CLI",+ "engines.antigravity.switchCliNote": "Antigravity CLI od Google zastępuje Classic runtime. Po przejściu zalogujesz się przez Google jeszcze raz.","engineSetup.managedDescCli": "{app} instaluje Antigravity CLI od Google. Zainstaluj ją tutaj i zaloguj się przez Google; potem ta lista modeli odświeży się z Twojego konta.",- "engines.antigravity.runtimeCli": "Google Antigravity CLI",- "engines.antigravity.runtimePinned": "Classic runtime","engineSetup.installAntigravityCli": "Zainstaluj Google Antigravity CLI","engineSetup.installClassicRuntime": "Zainstaluj Classic runtime","engineSetup.installDesc": "Zainstaluj aplikację wiersza poleceń raz. Modele pojawią się tutaj, gdy tylko będzie gotowa.",diff --git a/src/locales/pt-br.json b/src/locales/pt-br.jsonindex 37a86301ad..873adb1a2c 100644--- a/src/locales/pt-br.json+++ b/src/locales/pt-br.json@@ -3557,11 +3557,9 @@"engineSetup.pasteCodeLabel": "Código de login ou endereço da página","engineSetup.pasteCodePlaceholder": "Código, ou https://antigravity.google/oauth-callback?…","engineSetup.sendCode": "Enviar código",- "engines.antigravity.runtime": "Executa em",- "engines.antigravity.runtimeCustom": "Caminho personalizado",+ "engines.antigravity.switchCli": "Mudar para Google Antigravity CLI",+ "engines.antigravity.switchCliNote": "A Antigravity CLI do Google substitui o Classic runtime. Depois da mudança, você entra com o Google mais uma vez.","engineSetup.managedDescCli": "O app {app} instala a Antigravity CLI do Google. Instale aqui e entre com o Google; depois esta lista de modelos será atualizada a partir da sua conta.",- "engines.antigravity.runtimeCli": "Google Antigravity CLI",- "engines.antigravity.runtimePinned": "Classic runtime","engineSetup.installAntigravityCli": "Instalar Google Antigravity CLI","engineSetup.installClassicRuntime": "Instalar Classic runtime","engineSetup.installDesc": "Instale o app de linha de comando uma vez. Os modelos aparecem aqui assim que estiver pronto.",diff --git a/src/locales/ru.json b/src/locales/ru.jsonindex 774033ea72..d0b1f5bca4 100644--- a/src/locales/ru.json+++ b/src/locales/ru.json@@ -2812,11 +2812,9 @@"engineSetup.pasteCodeLabel": "Код входа или адрес страницы","engineSetup.pasteCodePlaceholder": "Код или https://antigravity.google/oauth-callback?…","engineSetup.sendCode": "Отправить код",- "engines.antigravity.runtime": "Работает на",- "engines.antigravity.runtimeCustom": "Свой путь",+ "engines.antigravity.switchCli": "Перейти на Google Antigravity CLI",+ "engines.antigravity.switchCliNote": "Antigravity CLI от Google заменяет Classic runtime. После перехода нужно ещё раз войти через Google.","engineSetup.managedDescCli": "{app} устанавливает Antigravity CLI от Google. Установите её здесь и войдите через Google; после этого список моделей обновится из вашего аккаунта.",- "engines.antigravity.runtimeCli": "Google Antigravity CLI",- "engines.antigravity.runtimePinned": "Classic runtime","engineSetup.installAntigravityCli": "Установить Google Antigravity CLI","engineSetup.installClassicRuntime": "Установить Classic runtime","engineSetup.installDesc": "Установите приложение командной строки один раз. Модели появятся здесь, как только всё будет готово.",diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.jsonindex 0072da9ab5..8164332af4 100644--- a/src/locales/source-hashes.json+++ b/src/locales/source-hashes.json@@ -4305,10 +4305,6 @@"engineSetup.pasteCodeLabel": "0f71ef4e2a5cae79f74de3fc8cb861161071c413ce0097b80ea12007aae5d129","engineSetup.pasteCodePlaceholder": "a07fbe5c71f175bb11f44a362ffb5f54e73e91d7168c4c271a95378ef8326bd6","engineSetup.sendCode": "66a5b4090d14cb4117ddd4fbfd989aef36df60112701665b06c65629e6606cfa",- "engines.antigravity.runtime": "88a550e0f44eff785ac7511e720ec4841b7561c3773cc16d604c499c3f4df36b",- "engines.antigravity.runtimeCli": "3e468530626d318270d30483b8e1b7ecdd9624297e10a6415207db8274d5b669",- "engines.antigravity.runtimePinned": "340e98cda066b75e83fd70ea79960695b678d145fe1f604d95ebe5a77a2a9594",- "engines.antigravity.runtimeCustom": "260f308a01fb58a69bc468f0206fee15d68b41581aeb4f73013195badd4030c6","engineSetup.managedDescCli": "26db0ff7d1026bb0e1ad5b6040f337da7e45ea678ac7e52af5a883ecb5ab36ee","engineSetup.installAntigravityCli": "e6af9add2c7616ad233b60b352ad21d81ab05b79f810b12dffe283214dae7e3f","engineSetup.installClassicRuntime": "b88c07c8fbde9cc716764e5bab502cd94d2e16d727f86776e8039f6c9ff2b285"@@ -10887,10 +10883,6 @@"engineSetup.pasteCodeLabel": "0f71ef4e2a5cae79f74de3fc8cb861161071c413ce0097b80ea12007aae5d129","engineSetup.pasteCodePlaceholder": "a07fbe5c71f175bb11f44a362ffb5f54e73e91d7168c4c271a95378ef8326bd6","engineSetup.sendCode": "66a5b4090d14cb4117ddd4fbfd989aef36df60112701665b06c65629e6606cfa",- "engines.antigravity.runtime": "88a550e0f44eff785ac7511e720ec4841b7561c3773cc16d604c499c3f4df36b",- "engines.antigravity.runtimeCli": "3e468530626d318270d30483b8e1b7ecdd9624297e10a6415207db8274d5b669",- "engines.antigravity.runtimePinned": "340e98cda066b75e83fd70ea79960695b678d145fe1f604d95ebe5a77a2a9594",- "engines.antigravity.runtimeCustom": "260f308a01fb58a69bc468f0206fee15d68b41581aeb4f73013195badd4030c6","engineSetup.managedDescCli": "26db0ff7d1026bb0e1ad5b6040f337da7e45ea678ac7e52af5a883ecb5ab36ee","engineSetup.installAntigravityCli": "e6af9add2c7616ad233b60b352ad21d81ab05b79f810b12dffe283214dae7e3f","engineSetup.installClassicRuntime": "b88c07c8fbde9cc716764e5bab502cd94d2e16d727f86776e8039f6c9ff2b285"@@ -14874,10 +14866,6 @@"engineSetup.pasteCodeLabel": "0f71ef4e2a5cae79f74de3fc8cb861161071c413ce0097b80ea12007aae5d129","engineSetup.pasteCodePlaceholder": "a07fbe5c71f175bb11f44a362ffb5f54e73e91d7168c4c271a95378ef8326bd6","engineSetup.sendCode": "66a5b4090d14cb4117ddd4fbfd989aef36df60112701665b06c65629e6606cfa",- "engines.antigravity.runtime": "88a550e0f44eff785ac7511e720ec4841b7561c3773cc16d604c499c3f4df36b",- "engines.antigravity.runtimeCli": "3e468530626d318270d30483b8e1b7ecdd9624297e10a6415207db8274d5b669",- "engines.antigravity.runtimePinned": "340e98cda066b75e83fd70ea79960695b678d145fe1f604d95ebe5a77a2a9594",- "engines.antigravity.runtimeCustom": "260f308a01fb58a69bc468f0206fee15d68b41581aeb4f73013195badd4030c6","engineSetup.managedDescCli": "26db0ff7d1026bb0e1ad5b6040f337da7e45ea678ac7e52af5a883ecb5ab36ee","engineSetup.installAntigravityCli": "e6af9add2c7616ad233b60b352ad21d81ab05b79f810b12dffe283214dae7e3f","engineSetup.installClassicRuntime": "b88c07c8fbde9cc716764e5bab502cd94d2e16d727f86776e8039f6c9ff2b285"@@ -18713,10 +18701,6 @@"engineSetup.pasteCodeLabel": "0f71ef4e2a5cae79f74de3fc8cb861161071c413ce0097b80ea12007aae5d129","engineSetup.pasteCodePlaceholder": "a07fbe5c71f175bb11f44a362ffb5f54e73e91d7168c4c271a95378ef8326bd6","engineSetup.sendCode": "66a5b4090d14cb4117ddd4fbfd989aef36df60112701665b06c65629e6606cfa",- "engines.antigravity.runtime": "88a550e0f44eff785ac7511e720ec4841b7561c3773cc16d604c499c3f4df36b",- "engines.antigravity.runtimeCli": "3e468530626d318270d30483b8e1b7ecdd9624297e10a6415207db8274d5b669",- "engines.antigravity.runtimePinned": "340e98cda066b75e83fd70ea79960695b678d145fe1f604d95ebe5a77a2a9594",- "engines.antigravity.runtimeCustom": "260f308a01fb58a69bc468f0206fee15d68b41581aeb4f73013195badd4030c6","engineSetup.managedDescCli": "26db0ff7d1026bb0e1ad5b6040f337da7e45ea678ac7e52af5a883ecb5ab36ee","engineSetup.installAntigravityCli": "e6af9add2c7616ad233b60b352ad21d81ab05b79f810b12dffe283214dae7e3f","engineSetup.installClassicRuntime": "b88c07c8fbde9cc716764e5bab502cd94d2e16d727f86776e8039f6c9ff2b285"@@ -26829,10 +26813,6 @@"engineSetup.pasteCodeLabel": "0f71ef4e2a5cae79f74de3fc8cb861161071c413ce0097b80ea12007aae5d129","engineSetup.pasteCodePlaceholder": "a07fbe5c71f175bb11f44a362ffb5f54e73e91d7168c4c271a95378ef8326bd6","engineSetup.sendCode": "66a5b4090d14cb4117ddd4fbfd989aef36df60112701665b06c65629e6606cfa",- "engines.antigravity.runtime": "88a550e0f44eff785ac7511e720ec4841b7561c3773cc16d604c499c3f4df36b",- "engines.antigravity.runtimeCli": "3e468530626d318270d30483b8e1b7ecdd9624297e10a6415207db8274d5b669",- "engines.antigravity.runtimePinned": "340e98cda066b75e83fd70ea79960695b678d145fe1f604d95ebe5a77a2a9594",- "engines.antigravity.runtimeCustom": "260f308a01fb58a69bc468f0206fee15d68b41581aeb4f73013195badd4030c6","engineSetup.managedDescCli": "26db0ff7d1026bb0e1ad5b6040f337da7e45ea678ac7e52af5a883ecb5ab36ee","engineSetup.installAntigravityCli": "e6af9add2c7616ad233b60b352ad21d81ab05b79f810b12dffe283214dae7e3f","engineSetup.installClassicRuntime": "b88c07c8fbde9cc716764e5bab502cd94d2e16d727f86776e8039f6c9ff2b285"@@ -38576,10 +38556,6 @@"computer.problem.localWaylandBlockedOther": "350a7ad5cba076518d35be7a83a24eb473f6c8316f5204d05951319266b8e147","computer.linux.waylandOtherDesktop": "3f2dd5c5c584d38fcd9dd39756a9096087a42af246781c13e41cb89c61c9be45","engineSetup.pasteCodePlaceholder": "a07fbe5c71f175bb11f44a362ffb5f54e73e91d7168c4c271a95378ef8326bd6",- "engines.antigravity.runtime": "88a550e0f44eff785ac7511e720ec4841b7561c3773cc16d604c499c3f4df36b",- "engines.antigravity.runtimeCli": "3e468530626d318270d30483b8e1b7ecdd9624297e10a6415207db8274d5b669",- "engines.antigravity.runtimePinned": "340e98cda066b75e83fd70ea79960695b678d145fe1f604d95ebe5a77a2a9594",- "engines.antigravity.runtimeCustom": "260f308a01fb58a69bc468f0206fee15d68b41581aeb4f73013195badd4030c6","engineSetup.managedDescCli": "26db0ff7d1026bb0e1ad5b6040f337da7e45ea678ac7e52af5a883ecb5ab36ee","engineSetup.installAntigravityCli": "e6af9add2c7616ad233b60b352ad21d81ab05b79f810b12dffe283214dae7e3f","engineSetup.installClassicRuntime": "b88c07c8fbde9cc716764e5bab502cd94d2e16d727f86776e8039f6c9ff2b285",@@ -48916,10 +48892,6 @@"engineSetup.pasteCodeLabel": "0f71ef4e2a5cae79f74de3fc8cb861161071c413ce0097b80ea12007aae5d129","engineSetup.pasteCodePlaceholder": "a07fbe5c71f175bb11f44a362ffb5f54e73e91d7168c4c271a95378ef8326bd6","engineSetup.sendCode": "66a5b4090d14cb4117ddd4fbfd989aef36df60112701665b06c65629e6606cfa",- "engines.antigravity.runtime": "88a550e0f44eff785ac7511e720ec4841b7561c3773cc16d604c499c3f4df36b",- "engines.antigravity.runtimeCli": "3e468530626d318270d30483b8e1b7ecdd9624297e10a6415207db8274d5b669",- "engines.antigravity.runtimePinned": "340e98cda066b75e83fd70ea79960695b678d145fe1f604d95ebe5a77a2a9594",- "engines.antigravity.runtimeCustom": "260f308a01fb58a69bc468f0206fee15d68b41581aeb4f73013195badd4030c6","engineSetup.managedDescCli": "26db0ff7d1026bb0e1ad5b6040f337da7e45ea678ac7e52af5a883ecb5ab36ee","engineSetup.installAntigravityCli": "e6af9add2c7616ad233b60b352ad21d81ab05b79f810b12dffe283214dae7e3f","engineSetup.installClassicRuntime": "b88c07c8fbde9cc716764e5bab502cd94d2e16d727f86776e8039f6c9ff2b285"@@ -59308,10 +59280,6 @@"engineSetup.pasteCodeLabel": "0f71ef4e2a5cae79f74de3fc8cb861161071c413ce0097b80ea12007aae5d129","engineSetup.pasteCodePlaceholder": "a07fbe5c71f175bb11f44a362ffb5f54e73e91d7168c4c271a95378ef8326bd6","engineSetup.sendCode": "66a5b4090d14cb4117ddd4fbfd989aef36df60112701665b06c65629e6606cfa",- "engines.antigravity.runtime": "88a550e0f44eff785ac7511e720ec4841b7561c3773cc16d604c499c3f4df36b",- "engines.antigravity.runtimeCli": "3e468530626d318270d30483b8e1b7ecdd9624297e10a6415207db8274d5b669",- "engines.antigravity.runtimePinned": "340e98cda066b75e83fd70ea79960695b678d145fe1f604d95ebe5a77a2a9594",- "engines.antigravity.runtimeCustom": "260f308a01fb58a69bc468f0206fee15d68b41581aeb4f73013195badd4030c6","engineSetup.managedDescCli": "26db0ff7d1026bb0e1ad5b6040f337da7e45ea678ac7e52af5a883ecb5ab36ee","engineSetup.installAntigravityCli": "e6af9add2c7616ad233b60b352ad21d81ab05b79f810b12dffe283214dae7e3f","engineSetup.installClassicRuntime": "b88c07c8fbde9cc716764e5bab502cd94d2e16d727f86776e8039f6c9ff2b285"@@ -63567,10 +63535,6 @@"engineSetup.pasteCodeLabel": "0f71ef4e2a5cae79f74de3fc8cb861161071c413ce0097b80ea12007aae5d129","engineSetup.pasteCodePlaceholder": "a07fbe5c71f175bb11f44a362ffb5f54e73e91d7168c4c271a95378ef8326bd6","engineSetup.sendCode": "66a5b4090d14cb4117ddd4fbfd989aef36df60112701665b06c65629e6606cfa",- "engines.antigravity.runtime": "88a550e0f44eff785ac7511e720ec4841b7561c3773cc16d604c499c3f4df36b",- "engines.antigravity.runtimeCli": "3e468530626d318270d30483b8e1b7ecdd9624297e10a6415207db8274d5b669",- "engines.antigravity.runtimePinned": "340e98cda066b75e83fd70ea79960695b678d145fe1f604d95ebe5a77a2a9594",- "engines.antigravity.runtimeCustom": "260f308a01fb58a69bc468f0206fee15d68b41581aeb4f73013195badd4030c6","engineSetup.managedDescCli": "26db0ff7d1026bb0e1ad5b6040f337da7e45ea678ac7e52af5a883ecb5ab36ee","engineSetup.installAntigravityCli": "e6af9add2c7616ad233b60b352ad21d81ab05b79f810b12dffe283214dae7e3f","engineSetup.installClassicRuntime": "b88c07c8fbde9cc716764e5bab502cd94d2e16d727f86776e8039f6c9ff2b285"@@ -69644,10 +69608,6 @@"engineSetup.pasteCodeLabel": "0f71ef4e2a5cae79f74de3fc8cb861161071c413ce0097b80ea12007aae5d129","engineSetup.pasteCodePlaceholder": "a07fbe5c71f175bb11f44a362ffb5f54e73e91d7168c4c271a95378ef8326bd6","engineSetup.sendCode": "66a5b4090d14cb4117ddd4fbfd989aef36df60112701665b06c65629e6606cfa",- "engines.antigravity.runtime": "88a550e0f44eff785ac7511e720ec4841b7561c3773cc16d604c499c3f4df36b",- "engines.antigravity.runtimeCli": "3e468530626d318270d30483b8e1b7ecdd9624297e10a6415207db8274d5b669",- "engines.antigravity.runtimePinned": "340e98cda066b75e83fd70ea79960695b678d145fe1f604d95ebe5a77a2a9594",- "engines.antigravity.runtimeCustom": "260f308a01fb58a69bc468f0206fee15d68b41581aeb4f73013195badd4030c6","engineSetup.managedDescCli": "26db0ff7d1026bb0e1ad5b6040f337da7e45ea678ac7e52af5a883ecb5ab36ee","engineSetup.installAntigravityCli": "e6af9add2c7616ad233b60b352ad21d81ab05b79f810b12dffe283214dae7e3f","engineSetup.installClassicRuntime": "b88c07c8fbde9cc716764e5bab502cd94d2e16d727f86776e8039f6c9ff2b285"@@ -75721,10 +75681,6 @@"engineSetup.pasteCodeLabel": "0f71ef4e2a5cae79f74de3fc8cb861161071c413ce0097b80ea12007aae5d129","engineSetup.pasteCodePlaceholder": "a07fbe5c71f175bb11f44a362ffb5f54e73e91d7168c4c271a95378ef8326bd6","engineSetup.sendCode": "66a5b4090d14cb4117ddd4fbfd989aef36df60112701665b06c65629e6606cfa",- "engines.antigravity.runtime": "88a550e0f44eff785ac7511e720ec4841b7561c3773cc16d604c499c3f4df36b",- "engines.antigravity.runtimeCli": "3e468530626d318270d30483b8e1b7ecdd9624297e10a6415207db8274d5b669",- "engines.antigravity.runtimePinned": "340e98cda066b75e83fd70ea79960695b678d145fe1f604d95ebe5a77a2a9594",- "engines.antigravity.runtimeCustom": "260f308a01fb58a69bc468f0206fee15d68b41581aeb4f73013195badd4030c6","engineSetup.managedDescCli": "26db0ff7d1026bb0e1ad5b6040f337da7e45ea678ac7e52af5a883ecb5ab36ee","engineSetup.installAntigravityCli": "e6af9add2c7616ad233b60b352ad21d81ab05b79f810b12dffe283214dae7e3f","engineSetup.installClassicRuntime": "b88c07c8fbde9cc716764e5bab502cd94d2e16d727f86776e8039f6c9ff2b285"@@ -82999,10 +82955,6 @@"engineSetup.pasteCodeLabel": "0f71ef4e2a5cae79f74de3fc8cb861161071c413ce0097b80ea12007aae5d129","engineSetup.pasteCodePlaceholder": "a07fbe5c71f175bb11f44a362ffb5f54e73e91d7168c4c271a95378ef8326bd6","engineSetup.sendCode": "66a5b4090d14cb4117ddd4fbfd989aef36df60112701665b06c65629e6606cfa",- "engines.antigravity.runtime": "88a550e0f44eff785ac7511e720ec4841b7561c3773cc16d604c499c3f4df36b",- "engines.antigravity.runtimeCli": "3e468530626d318270d30483b8e1b7ecdd9624297e10a6415207db8274d5b669",- "engines.antigravity.runtimePinned": "340e98cda066b75e83fd70ea79960695b678d145fe1f604d95ebe5a77a2a9594",- "engines.antigravity.runtimeCustom": "260f308a01fb58a69bc468f0206fee15d68b41581aeb4f73013195badd4030c6","engineSetup.managedDescCli": "26db0ff7d1026bb0e1ad5b6040f337da7e45ea678ac7e52af5a883ecb5ab36ee","engineSetup.installAntigravityCli": "e6af9add2c7616ad233b60b352ad21d81ab05b79f810b12dffe283214dae7e3f","engineSetup.installClassicRuntime": "b88c07c8fbde9cc716764e5bab502cd94d2e16d727f86776e8039f6c9ff2b285"@@ -90331,10 +90283,6 @@"engineSetup.pasteCodeLabel": "0f71ef4e2a5cae79f74de3fc8cb861161071c413ce0097b80ea12007aae5d129","engineSetup.pasteCodePlaceholder": "a07fbe5c71f175bb11f44a362ffb5f54e73e91d7168c4c271a95378ef8326bd6","engineSetup.sendCode": "66a5b4090d14cb4117ddd4fbfd989aef36df60112701665b06c65629e6606cfa",- "engines.antigravity.runtime": "88a550e0f44eff785ac7511e720ec4841b7561c3773cc16d604c499c3f4df36b",- "engines.antigravity.runtimeCli": "3e468530626d318270d30483b8e1b7ecdd9624297e10a6415207db8274d5b669",- "engines.antigravity.runtimePinned": "340e98cda066b75e83fd70ea79960695b678d145fe1f604d95ebe5a77a2a9594",- "engines.antigravity.runtimeCustom": "260f308a01fb58a69bc468f0206fee15d68b41581aeb4f73013195badd4030c6","engineSetup.managedDescCli": "26db0ff7d1026bb0e1ad5b6040f337da7e45ea678ac7e52af5a883ecb5ab36ee","engineSetup.installAntigravityCli": "e6af9add2c7616ad233b60b352ad21d81ab05b79f810b12dffe283214dae7e3f","engineSetup.installClassicRuntime": "b88c07c8fbde9cc716764e5bab502cd94d2e16d727f86776e8039f6c9ff2b285"@@ -101801,10 +101749,6 @@"engineSetup.pasteCodeLabel": "0f71ef4e2a5cae79f74de3fc8cb861161071c413ce0097b80ea12007aae5d129","engineSetup.pasteCodePlaceholder": "a07fbe5c71f175bb11f44a362ffb5f54e73e91d7168c4c271a95378ef8326bd6","engineSetup.sendCode": "66a5b4090d14cb4117ddd4fbfd989aef36df60112701665b06c65629e6606cfa",- "engines.antigravity.runtime": "88a550e0f44eff785ac7511e720ec4841b7561c3773cc16d604c499c3f4df36b",- "engines.antigravity.runtimeCli": "3e468530626d318270d30483b8e1b7ecdd9624297e10a6415207db8274d5b669",- "engines.antigravity.runtimePinned": "340e98cda066b75e83fd70ea79960695b678d145fe1f604d95ebe5a77a2a9594",- "engines.antigravity.runtimeCustom": "260f308a01fb58a69bc468f0206fee15d68b41581aeb4f73013195badd4030c6","engineSetup.managedDescCli": "26db0ff7d1026bb0e1ad5b6040f337da7e45ea678ac7e52af5a883ecb5ab36ee","engineSetup.installAntigravityCli": "e6af9add2c7616ad233b60b352ad21d81ab05b79f810b12dffe283214dae7e3f","engineSetup.installClassicRuntime": "b88c07c8fbde9cc716764e5bab502cd94d2e16d727f86776e8039f6c9ff2b285"@@ -109607,10 +109551,6 @@"engineSetup.pasteCodeLabel": "0f71ef4e2a5cae79f74de3fc8cb861161071c413ce0097b80ea12007aae5d129","engineSetup.pasteCodePlaceholder": "a07fbe5c71f175bb11f44a362ffb5f54e73e91d7168c4c271a95378ef8326bd6","engineSetup.sendCode": "66a5b4090d14cb4117ddd4fbfd989aef36df60112701665b06c65629e6606cfa",- "engines.antigravity.runtime": "88a550e0f44eff785ac7511e720ec4841b7561c3773cc16d604c499c3f4df36b",- "engines.antigravity.runtimeCli": "3e468530626d318270d30483b8e1b7ecdd9624297e10a6415207db8274d5b669",- "engines.antigravity.runtimePinned": "340e98cda066b75e83fd70ea79960695b678d145fe1f604d95ebe5a77a2a9594",- "engines.antigravity.runtimeCustom": "260f308a01fb58a69bc468f0206fee15d68b41581aeb4f73013195badd4030c6","engineSetup.managedDescCli": "26db0ff7d1026bb0e1ad5b6040f337da7e45ea678ac7e52af5a883ecb5ab36ee","engineSetup.installAntigravityCli": "e6af9add2c7616ad233b60b352ad21d81ab05b79f810b12dffe283214dae7e3f","engineSetup.installClassicRuntime": "b88c07c8fbde9cc716764e5bab502cd94d2e16d727f86776e8039f6c9ff2b285"diff --git a/src/locales/tr.json b/src/locales/tr.jsonindex f2c564597e..a4e776b4fb 100644--- a/src/locales/tr.json+++ b/src/locales/tr.json@@ -2265,11 +2265,9 @@"engineSetup.pasteCodeLabel": "Giriş kodu veya sayfa adresi","engineSetup.pasteCodePlaceholder": "Kod veya https://antigravity.google/oauth-callback?…","engineSetup.sendCode": "Kodu gönder",- "engines.antigravity.runtime": "Çalıştığı yer",- "engines.antigravity.runtimeCustom": "Özel yol",+ "engines.antigravity.switchCli": "Google Antigravity CLI'a geç",+ "engines.antigravity.switchCliNote": "Google'ın Antigravity CLI'ı Classic runtime'ın yerini alır. Geçişten sonra Google ile bir kez daha oturum açarsın.","engineSetup.managedDescCli": "{app}, Google'ın Antigravity CLI'ını kurar. Buradan kurun ve Google ile giriş yapın; ardından bu model listesi hesabınızdan yenilenir.",- "engines.antigravity.runtimeCli": "Google Antigravity CLI",- "engines.antigravity.runtimePinned": "Classic runtime","engineSetup.installAntigravityCli": "Google Antigravity CLI'ı kur","engineSetup.installClassicRuntime": "Classic runtime'ı kur","engineSetup.installDesc": "Komut satırı uygulamasını bir kez kurun. Hazır olur olmaz modeller burada görünecektir.",diff --git a/src/locales/uk.json b/src/locales/uk.jsonindex 913affa83a..33174b5bd6 100644--- a/src/locales/uk.json+++ b/src/locales/uk.json@@ -1442,11 +1442,9 @@"engineSetup.pasteCodeLabel": "Код входу або адреса сторінки","engineSetup.pasteCodePlaceholder": "Код або https://antigravity.google/oauth-callback?…","engineSetup.sendCode": "Надіслати код",- "engines.antigravity.runtime": "Працює на",- "engines.antigravity.runtimeCustom": "Власний шлях",+ "engines.antigravity.switchCli": "Перейти на Google Antigravity CLI",+ "engines.antigravity.switchCliNote": "Antigravity CLI від Google замінює Classic runtime. Після переходу потрібно ще раз увійти через Google.","engineSetup.managedDescCli": "{app} встановлює Antigravity CLI від Google. Встановіть її тут і увійдіть через Google; після цього список моделей оновиться з вашого облікового запису.",- "engines.antigravity.runtimeCli": "Google Antigravity CLI",- "engines.antigravity.runtimePinned": "Classic runtime","engineSetup.installAntigravityCli": "Встановити Google Antigravity CLI","engineSetup.installClassicRuntime": "Встановити Classic runtime","engineSetup.installDesc": "Встановіть консольний застосунок один раз. Моделі з'являться тут, щойно все буде готове.",diff --git a/src/locales/vi.json b/src/locales/vi.jsonindex 2579a73c4b..20602c83e1 100644--- a/src/locales/vi.json+++ b/src/locales/vi.json@@ -2265,11 +2265,9 @@"engineSetup.pasteCodeLabel": "Mã đăng nhập hoặc địa chỉ trang","engineSetup.pasteCodePlaceholder": "Mã, hoặc https://antigravity.google/oauth-callback?…","engineSetup.sendCode": "Gửi mã",- "engines.antigravity.runtime": "Chạy trên",- "engines.antigravity.runtimeCustom": "Đường dẫn tùy chỉnh",+ "engines.antigravity.switchCli": "Chuyển sang Google Antigravity CLI",+ "engines.antigravity.switchCliNote": "Antigravity CLI của Google thay thế Classic runtime. Sau khi chuyển, bạn đăng nhập bằng Google thêm một lần nữa.","engineSetup.managedDescCli": "{app} cài đặt Antigravity CLI của Google. Hãy cài đặt tại đây và đăng nhập bằng Google; sau đó danh sách mô hình này sẽ được làm mới từ tài khoản của bạn.",- "engines.antigravity.runtimeCli": "Google Antigravity CLI",- "engines.antigravity.runtimePinned": "Classic runtime","engineSetup.installAntigravityCli": "Cài đặt Google Antigravity CLI","engineSetup.installClassicRuntime": "Cài đặt Classic runtime","engineSetup.installDesc": "Cài đặt ứng dụng dòng lệnh một lần. Các mô hình sẽ xuất hiện ở đây ngay khi sẵn sàng.",diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.jsonindex 21b1790ce2..d181542b66 100644--- a/src/locales/zh-tw.json+++ b/src/locales/zh-tw.json@@ -3336,11 +3336,9 @@"engineSetup.pasteCodeLabel": "登入代碼或頁面網址","engineSetup.pasteCodePlaceholder": "代碼,或 https://antigravity.google/oauth-callback?…","engineSetup.sendCode": "傳送代碼",- "engines.antigravity.runtime": "執行方式",- "engines.antigravity.runtimeCustom": "自訂路徑",+ "engines.antigravity.switchCli": "切換到 Google Antigravity CLI",+ "engines.antigravity.switchCliNote": "Google 的 Antigravity CLI 將取代 Classic runtime。切換後,你需要再用 Google 登入一次。","engineSetup.managedDescCli": "{app} 會安裝 Google 的 Antigravity CLI。在這裡安裝並使用 Google 登入後,這份模型清單會依你的帳戶重新整理。",- "engines.antigravity.runtimeCli": "Google Antigravity CLI",- "engines.antigravity.runtimePinned": "Classic runtime","engineSetup.installAntigravityCli": "安裝 Google Antigravity CLI","engineSetup.installClassicRuntime": "安裝 Classic runtime","engineSetup.installDesc": "命令列應用程式只需安裝一次。準備就緒後,模型就會顯示在這裡。",diff --git a/src/locales/zh.json b/src/locales/zh.jsonindex 8f0d5b4596..3bec32efe8 100644--- a/src/locales/zh.json+++ b/src/locales/zh.json@@ -3374,10 +3374,8 @@"engineSetup.signInTitle": "登录 {name}","engineSetup.installTitle": "安装 {name}","engineSetup.managedSignIn": "每个 Antigravity 配置都有自己的 Google 账户。安全登录由你的浏览器完成。",- "engines.antigravity.runtime": "运行方式",- "engines.antigravity.runtimeCli": "Google Antigravity CLI",- "engines.antigravity.runtimePinned": "Classic runtime",- "engines.antigravity.runtimeCustom": "自定义路径",+ "engines.antigravity.switchCli": "切换到 Google Antigravity CLI",+ "engines.antigravity.switchCliNote": "Google 的 Antigravity CLI 将取代 Classic runtime。切换后,你需要再用 Google 登录一次。","engineSetup.terminalSignIn": "请在终端里完成账户登录。之后重新打开此菜单,我们会再检查一次。","engineSetup.injectDesc": "安装一次该智能体,之后就能用本地模型运行——不需要云端登录。","engineSetup.installAntigravityCli": "安装 Google Antigravity CLI",diff --git a/src/state/store.tsx b/src/state/store.tsxindex d54342f9fa..4a9ba3c337 100644--- a/src/state/store.tsx+++ b/src/state/store.tsx@@ -423,7 +423,7 @@ export interface InstanceInfo extends InstanceEndpointInfo {snapshot: {state: "available" | "unavailable";reason?: string;- authenticated?: boolean; /** The CLI path runs another program, not this engine's CLI. */ notEngineCli?: true; /** Runs Google's native Antigravity CLI. */ nativeCli?: true;+ authenticated?: boolean; /** The CLI path runs another program, not this engine's CLI. */ notEngineCli?: true; /** Runs Google's native Antigravity CLI. */ nativeCli?: true; /** Its runtime is being installed now. */ installing?: true;chatgptPlan?: boolean;/** Ready only through OpenCode's free no-login models: a backup, never "an AI already works". */freeFallback?: boolean;