Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(antigravity): support agy CLI as custom binaryPath #32503

Mergedjorotodorovv(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/32503/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Showing 4 changed files with 131 additions and 20 deletions (loading 2).

x
0 of 4 viewed, 4 left
82 additions and 5 deletionsapps/server/src/provider/AntigravityInstallation.test.tsModified
View file
@@ -237,7 +237,7 @@
path.join(installation.managedDirectory, "versions", previousReleaseId),
expect(yield* fs.readFileString(resolved.executablePath)).toBe(serverContents);
- expect(yield* fs.readFileString(resolved.harnessPath)).toBe(harnessContents);
+ expect(yield* fs.readFileString(resolved.harnessPath!)).toBe(harnessContents);
expect((yield* installation.state).installedVersion).toBe(previousVersion);
});
​
@@ -281,7 +281,7 @@
expect(validation?.version).toBe("fixture-new");
if (!validation) return yield* Effect.die("Expected runtime validation.");
expect(yield* fs.readFileString(validation.executable.executablePath)).toBe(serverContents);
- expect(yield* fs.readFileString(validation.executable.harnessPath)).toBe(harnessContents);
+ expect(yield* fs.readFileString(validation.executable.harnessPath!)).toBe(harnessContents);
​
yield* Deferred.succeed(finishValidation, undefined);
expect(yield* terminalState(installation)).toMatchObject({
@@ -293,9 +293,9 @@
yield* Deferred.await(stagingReleased);
const selected = yield* installation.resolve();
expect(selected).toMatchObject({ source: "managed", version: "fixture-new" });
- expect(path.dirname(selected.harnessPath)).toBe(path.dirname(selected.executablePath));
+ expect(path.dirname(selected.harnessPath!)).toBe(path.dirname(selected.executablePath));
expect(yield* fs.readFileString(selected.executablePath)).toBe(serverContents);
- expect(yield* fs.readFileString(selected.harnessPath)).toBe(harnessContents);
+ expect(yield* fs.readFileString(selected.harnessPath!)).toBe(harnessContents);
expect(yield* fs.readDirectory(path.join(installation.managedDirectory, "versions"))).toEqual(