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

antigravityRelease.ts

92 lines3.2 KB

1const ANTIGRAVITY_RELEASE_VERSION = "1.3.0";
2​
3export interface AntigravityReleaseAsset {
4 readonly version: string;
5 readonly url: string;
6 readonly sha256: string;
7 readonly archiveBytes: number;
8 readonly executable: {
9 readonly name: string;
10 readonly bytes: number;
11 };
12 readonly harness: {
13 readonly name: string;
14 readonly bytes: number;
15 };
17​
18const releaseAssets = new Map<string, AntigravityReleaseAsset>([
19 [
20 "darwin-arm64",
21 {
22 version: ANTIGRAVITY_RELEASE_VERSION,
23 url: "https://dl.google.com/agy-extensions/releases/macos/agy-acp-server-1.3.0-darwin-arm64.zip",
24 sha256: "7cd97045f7b4fe81175a107cdf16f9c51484e3c78a5162cae415338bb6aa5b88",
25 archiveBytes: 111_456_962,
26 executable: { name: "agy_acp_server.par", bytes: 278_535_456 },
27 harness: { name: "localharness_external", bytes: 118_611_392 },
28 },
29 ],
30 [
31 "darwin-x64",
32 {
33 version: ANTIGRAVITY_RELEASE_VERSION,
34 url: "https://dl.google.com/agy-extensions/releases/macos/agy-acp-server-1.3.0-darwin-x86_64.zip",
35 sha256: "bb23956b89984bf5d354af2c3725e6c57f0cc1b7228e77a0e91c9c2bc1d47646",
36 archiveBytes: 117_245_544,
37 executable: { name: "agy_acp_server.par", bytes: 282_840_688 },
38 harness: { name: "localharness_external", bytes: 124_175_392 },
39 },
40 ],
41 [
42 "linux-x64",
43 {
44 version: ANTIGRAVITY_RELEASE_VERSION,
45 url: "https://dl.google.com/agy-extensions/releases/linux/agy-acp-server-1.3.0-linux-x86_64.zip",
46 sha256: "9fb60956af0a9d76220a4db91ca9ac88e2a2372ad68f985ab5fceace6b825b96",
47 archiveBytes: 333_727_150,
48 executable: { name: "agy_acp_server.par", bytes: 926_533_965 },
49 harness: { name: "localharness_external", bytes: 130_388_040 },
50 },
51 ],
52 [
53 "linux-arm64",
54 {
55 version: ANTIGRAVITY_RELEASE_VERSION,
56 url: "https://dl.google.com/agy-extensions/releases/linux/agy-acp-server-1.3.0-linux-arm64.zip",
57 sha256: "500b0bc0fb858e88f4df404d4cedf80bf9298c178291e39e383d6c50b111cbdf",
58 archiveBytes: 321_690_363,
59 executable: { name: "agy_acp_server.par", bytes: 930_848_992 },
60 harness: { name: "localharness_external", bytes: 123_224_968 },
61 },
62 ],
63 [
64 "win32-x64",
65 {
66 version: ANTIGRAVITY_RELEASE_VERSION,
67 url: "https://dl.google.com/agy-extensions/releases/windows/agy-acp-server-1.3.0-windows-x86_64.zip",
68 sha256: "65215e0688681fa3116e048a9eab27ef53af1bbd6f3da3f1c52bd4911d8b17f9",
69 archiveBytes: 124_509_787,
70 executable: { name: "agy_acp_server.exe", bytes: 81_437_336 },
71 harness: { name: "localharness_external.exe", bytes: 145_548_952 },
72 },
73 ],
74 [
75 "win32-arm64",
76 {
77 version: ANTIGRAVITY_RELEASE_VERSION,
78 url: "https://dl.google.com/agy-extensions/releases/windows/agy-acp-server-1.3.0-windows-arm64.zip",
79 sha256: "4a0f469720e9beb9438a979f543fdbfad5022ebe0992c052c590bd78b3144ca3",
80 archiveBytes: 124_654_803,
81 executable: { name: "agy_acp_server.exe", bytes: 85_893_472 },
82 harness: { name: "localharness_external.exe", bytes: 135_640_216 },
83 },
84 ],
85]);
86​
87export function resolveAntigravityReleaseAsset(
88 platform: NodeJS.Platform,
89 arch: string,
90): AntigravityReleaseAsset | null {
91 return releaseAssets.get(`${platform}-${arch}`) ?? null;