Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(antigravity): avoid spawning process on probe and isolate temp di… #11657

ClosedVitaCodez(GitHub profile, opens in a new tab)wants to merge 7 commits intomain fromrefs/pull/11657/headopened View on GitHub

Showing 5 changed files with 133 additions and 19 deletions (loading 2).

x
0 of 5 viewed, 5 left
23 additions and 2 deletionsapps/server/src/provider/Drivers/AntigravityDriver.test.tsModified
View file
@@ -58,7 +58,7 @@
​
const makeHarness = Effect.fn("makeAntigravityDriverHarness")(function* (
- options: { readonly config?: Partial<AntigravitySettings> } = {},
+ options: { readonly config?: Partial<AntigravitySettings>; readonly enabled?: boolean } = {},
) {
const fs = yield* FileSystem.FileSystem;
const path = yield* Path.Path;
@@ -129,6 +129,16 @@
​
const installation = Layer.mock(AntigravityInstallation)({
managedDirectory: root,
+ resolve: (binaryPath, environment) =>
+ Effect.gen(function* () {
+ if (controls.failResolution) {
+ return yield* new AntigravityInstallationError({
+ operation: "resolve",
+ detail: "Fixture resolution failed.",
+ });
+ }
+ return controls.selected;
+ }),
acquire: (binaryPath, environment) =>
Effect.gen(function* () {
acquisitions.push({ binaryPath, path: environment?.PATH });
@@ -174,7 +184,7 @@
const instance = yield* AntigravityDriver.create({