Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix(antigravity): add Google's official runtime for Intel Macs
AdityaUmale9f1bbd76bb36
diff --git a/server/drivers/antigravity-release.ts b/server/drivers/antigravity-release.tsindex 17b607c648..6f1cc3668e 100644--- a/server/drivers/antigravity-release.ts+++ b/server/drivers/antigravity-release.ts@@ -1,6 +1,8 @@// URLs and hashes come from Google's official ACP registry entry. Archive and// member sizes were read from Google's servers on 2026-10-25; the win32-x64-// archive was downloaded and its hash checked independently.+// archive was downloaded and its hash checked independently. The darwin-x64+// archive was added on 2026-11-17 from the same registry commit; it was+// downloaded and its hash and member sizes checked independently.// Registry: agentclientprotocol/registry@06229c691d24d039e2363ba12abe5c9dfae5bc66export const ANTIGRAVITY_RELEASE_VERSION = "1.4.3";@@ -25,6 +27,17 @@ const RELEASES = new Map<string, AntigravityReleaseAsset>([harness: { name: "localharness_external", bytes: 122_957_936 },},],+ [+ "darwin-x64",+ {+ version: ANTIGRAVITY_RELEASE_VERSION,+ url: "https://dl.google.com/agy-extensions/releases/macos/agy-acp-server-1.4.3-darwin-x86_64.zip",+ sha256: "9392dbbdad7f0663dbfb5a0bf641297b0cf80d2ee9cd2d49a616bbbc7378731d",+ archiveBytes: 119_801_100,+ executable: { name: "agy_acp_server.par", bytes: 286_653_712 },+ harness: { name: "localharness_external", bytes: 127_612_208 },+ },+ ],["linux-x64",{diff --git a/server/drivers/antigravity-runtime-unsupported.test.ts b/server/drivers/antigravity-runtime-unsupported.test.tsnew file mode 100644index 0000000000..eed95918c0--- /dev/null+++ b/server/drivers/antigravity-runtime-unsupported.test.ts@@ -0,0 +1,37 @@+import { mkdtempSync, rmSync } from "node:fs";+import { tmpdir } from "node:os";+import { join } from "node:path";+import { afterEach, describe, expect, it, vi } from "vitest";++vi.mock("./antigravity-release.ts", async (importOriginal) => ({+ ...await importOriginal<typeof import("./antigravity-release.ts")>(),+ resolveAntigravityReleaseAsset: () => null,+}));++const { resolveAntigravityRuntime } = await import("./antigravity-runtime.ts");++describe("Antigravity on a platform Google publishes no runtime for", () => {+ const directories: string[] = [];+ afterEach(() => {+ for (const directory of directories.splice(0)) rmSync(directory, { recursive: true, force: true });+ });+ function dataDir() {+ const directory = mkdtempSync(join(tmpdir(), "omb-agy-unsupported-"));+ directories.push(directory);+ return directory;+ }++ it("tells a saved legacy agy path that agy is no longer used and names the runtime files to point at", async () => {+ const error = await resolveAntigravityRuntime("/usr/local/bin/agy", { PATH: "" }, dataDir()).catch((caught: unknown) => caught);+ expect(error).toMatchObject({ status: 409 });+ const message = (error as Error).message;+ expect(message).toMatch(/no longer runs the agy command/u);+ expect(message).toMatch(/agy_acp_server/u);+ expect(message).toMatch(/localharness_external/u);+ });++ it("keeps the plain message when no custom path was set", async () => {+ await expect(resolveAntigravityRuntime(undefined, { PATH: "" }, dataDir()))+ .rejects.toThrow(/Google does not publish an Antigravity runtime for .+\. Set a custom executable path\./u);+ });+});diff --git a/server/drivers/antigravity-runtime.ts b/server/drivers/antigravity-runtime.tsindex 36f7620a82..37ecc3efba 100644--- a/server/drivers/antigravity-runtime.ts+++ b/server/drivers/antigravity-runtime.ts@@ -186,9 +186,9 @@ export async function resolveAntigravityRuntime(if (found) return found;}if (!asset) {- throw new AntigravitySetupError(- `Google does not publish an Antigravity runtime for ${process.platform}-${process.arch}. Set a custom executable path.`,- );+ throw new AntigravitySetupError(legacyCli+ ? `Antigravity no longer runs the agy command, and Google does not publish its official runtime for ${process.platform}-${process.arch}. Set the custom executable path to ${names.executable}, with ${names.harness} in the same folder.`+ : `Google does not publish an Antigravity runtime for ${process.platform}-${process.arch}. Set a custom executable path.`);}throw new AntigravitySetupError(legacyCli? "Antigravity now uses Google's official runtime. Choose Install official Antigravity, then Sign in with Google. Your previous agy login is not copied."diff --git a/server/drivers/antigravity.test.ts b/server/drivers/antigravity.test.tsindex 0f045c5718..638e64bf02 100644--- a/server/drivers/antigravity.test.ts+++ b/server/drivers/antigravity.test.ts@@ -411,6 +411,18 @@ describe("official Antigravity runtime", () => {expect(asset.archiveBytes).toBeGreaterThan(100_000_000);});+ it("publishes Google's official runtime for Intel Macs like the other Mac and PC builds", () => {+ const intelMac = resolveAntigravityReleaseAsset("darwin", "x64");+ expect(intelMac).toMatchObject({+ version: ANTIGRAVITY_RELEASE_VERSION,+ url: "https://dl.google.com/agy-extensions/releases/macos/agy-acp-server-1.4.3-darwin-x86_64.zip",+ sha256: "9392dbbdad7f0663dbfb5a0bf641297b0cf80d2ee9cd2d49a616bbbc7378731d",+ archiveBytes: 119_801_100,+ });+ expect(intelMac?.executable.name).toBe(resolveAntigravityReleaseAsset("darwin", "arm64")?.executable.name);+ expect(intelMac?.harness.name).toBe(resolveAntigravityReleaseAsset("darwin", "arm64")?.harness.name);+ });+function testValidatesAcpInitializeResults() {const basePayload = {protocolVersion: 1,