Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

antigravityRelease.ts

106 lines3.8 KB

1// Hashes and sizes match the official ACP registry release. Like 1.4.2 through 1.4.4, it writes a
2// run-workflow skill into the workspace unless T3 disables the tool (antigravitySessionMeta).
3const ANTIGRAVITY_RELEASE_VERSION = "1.4.5";
4​
5export interface AntigravityReleaseAsset {
6 readonly version: string;
7 readonly url: string;
8 readonly sha256: string;
9 readonly archiveBytes: number;
10 readonly executable: {
11 readonly name: string;
12 readonly bytes: number;
13 };
14 readonly harness: {
15 readonly name: string;
16 readonly bytes: number;
17 };
19​
20/**
21 * A newer release Google lists in the ACP Registry. The registry publishes no
22 * hash or sizes, so the installer bounds the download, accepts only Google's
23 * download host, and relies on the runtime's own handshake to identify it.
24 */
25export interface AntigravityUpstreamRelease {
26 readonly version: string;
27 readonly url: string;
29​
30export type AntigravityRelease = AntigravityReleaseAsset | AntigravityUpstreamRelease;
31​
32const releaseAssets = new Map<string, AntigravityReleaseAsset>([
33 [
34 "darwin-arm64",
35 {
36 version: ANTIGRAVITY_RELEASE_VERSION,
37 url: "https://dl.google.com/agy-extensions/releases/macos/agy-acp-server-1.4.5-darwin-arm64.zip",
38 sha256: "886fff7767d08994ca39eb02c3d01a7532c7325a94aa33aaf52d52068733284f",
39 archiveBytes: 97_923_855,
40 executable: { name: "agy_acp_server.par", bytes: 178_915_920 },
41 harness: { name: "localharness_external", bytes: 122_957_936 },
42 },
43 ],
44 [
45 "darwin-x64",
46 {
47 version: ANTIGRAVITY_RELEASE_VERSION,
48 url: "https://dl.google.com/agy-extensions/releases/macos/agy-acp-server-1.4.5-darwin-x86_64.zip",
49 sha256: "b39f3573c03b9acb9df028853f647527f1f3133f32bd77e78b796e48a205114a",
50 archiveBytes: 103_577_295,
51 executable: { name: "agy_acp_server.par", bytes: 183_127_600 },
52 harness: { name: "localharness_external", bytes: 127_612_208 },
53 },
54 ],
55 [
56 "linux-x64",
57 {
58 version: ANTIGRAVITY_RELEASE_VERSION,
59 url: "https://dl.google.com/agy-extensions/releases/linux/agy-acp-server-1.4.5-linux-x86_64.zip",
60 sha256: "923923a0d7dc8073f66cc6f78647a3107e3a7ee2b7e1a24df8b3927b5188013b",
61 archiveBytes: 321_783_181,
62 executable: { name: "agy_acp_server.par", bytes: 826_226_766 },
63 harness: { name: "localharness_external", bytes: 133_926_136 },
64 },
65 ],
66 [
67 "linux-arm64",
68 {
69 version: ANTIGRAVITY_RELEASE_VERSION,
70 url: "https://dl.google.com/agy-extensions/releases/linux/agy-acp-server-1.4.5-linux-arm64.zip",
71 sha256: "7d64246633ae094f67e3bbcd2d679e89048f91346d5339313336e7483f40f056",
72 archiveBytes: 307_829_008,
73 executable: { name: "agy_acp_server.par", bytes: 831_194_025 },
74 harness: { name: "localharness_external", bytes: 127_512_832 },
75 },
76 ],
77 [
78 "win32-x64",
79 {
80 version: ANTIGRAVITY_RELEASE_VERSION,
81 url: "https://dl.google.com/agy-extensions/releases/windows/agy-acp-server-1.4.5-windows-x86_64.zip",
82 sha256: "d24f4c73c9f96d4f44384e281c855a56c72d8eaa9c5b0fad7ccb1635c6b63f50",
83 archiveBytes: 100_423_655,
84 executable: { name: "agy_acp_server.exe", bytes: 55_839_864 },
85 harness: { name: "localharness_external.exe", bytes: 147_843_736 },
86 },
87 ],
88 [
89 "win32-arm64",
90 {
91 version: ANTIGRAVITY_RELEASE_VERSION,
92 url: "https://dl.google.com/agy-extensions/releases/windows/agy-acp-server-1.4.5-windows-arm64.zip",
93 sha256: "ab0a9aac8349e08ef289be6d16da8f89e3abe60eba5158032ef78c4a1220261c",
94 archiveBytes: 102_703_121,
95 executable: { name: "agy_acp_server.exe", bytes: 62_293_488 },
96 harness: { name: "localharness_external.exe", bytes: 139_322_008 },
97 },
98 ],
99]);
100​
101export function resolveAntigravityReleaseAsset(
102 platform: NodeJS.Platform,
103 arch: string,
104): AntigravityReleaseAsset | null {
105 return releaseAssets.get(`${platform}-${arch}`) ?? null;