Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): load installed Antigravity plugin skills #30476

Closedfcakyon(GitHub profile, opens in a new tab)wants to merge 30 commits intomain fromrefs/pull/30476/headopened View on GitHub

Showing 3 changed files with 81 additions and 1 deletion (loading 1).

x
0 of 3 viewed, 3 left
1 addition and 1 deletionapps/server/src/provider/Drivers/AntigravityDriver.tsModified
View file
@@ -566,7 +566,7 @@
snapshotForCwd: (cwd) =>
!enabled
? provider.snapshot.getSnapshot
- : discoverAntigravitySkills({ cwd, userHome }).pipe(
+ : discoverAntigravitySkills({ cwd, userHome, profileDirectory }).pipe(
Effect.provideService(FileSystem.FileSystem, fileSystem),
Effect.provideService(Path.Path, path),
Effect.flatMap((skills) => provider.snapshotForCwd(cwd, skills)),
80 additions and 0 deletionsapps/server/src/provider/Drivers/AntigravitySkills.test.tsModified
View file
@@ -25,6 +25,7 @@
return {
cwd: path.join(temporaryDirectory, "workspace"),
userHome: path.join(temporaryDirectory, "home"),
+ profileDirectory: path.join(temporaryDirectory, "profile"),
};
});
​
@@ -93,6 +94,85 @@
}),
);
​
+ it.effect("reads skills from enabled plugins under their own names", () =>
+ Effect.gen(function* () {
+ const fileSystem = yield* FileSystem.FileSystem;
+ const path = yield* Path.Path;