Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Antigravity links and discovers skills from skills.json #39765

Mergedmameli(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/39765/headmerged by juliusmarminge View on GitHub

Showing 5 changed files with 75 additions and 0 deletions (loading 4).

x
0 of 5 viewed, 5 left
75 additions and 0 deletionsapps/server/src/provider/Drivers/AntigravitySkills.test.tsModified
View file
@@ -367,4 +367,79 @@
}),
+​
+ it.effect(
+ "reads skills declared in global and workspace skills.json with filters and inherits",
+ () =>
+ Effect.gen(function* () {
+ const fileSystem = yield* FileSystem.FileSystem;
+ const path = yield* Path.Path;
+ const input = yield* makeWorkspace();
+​
+ const sharedSkills = path.join(input.userHome, ".agents", "skills");
+ const keptPath = yield* writeSkill(
+ path.join(sharedSkills, "yagni"),
+ "---\nname: yagni\ndescription: Keep it simple.\n---\n",
+ );
+ yield* writeSkill(
+ path.join(sharedSkills, "experimental-draft"),
+ "---\nname: experimental-draft\n---\n",
+ );
+​
+ const inheritedSkills = path.join(input.userHome, "inherited-skills");
+ const inheritedPath = yield* writeSkill(
+ path.join(inheritedSkills, "linter"),
+ "---\nname: linter\n---\n",
+ );
+ yield* writeSkill(path.join(inheritedSkills, "skipped"), "---\nname: skipped\n---\n");
+ // Backtracks exponentially under RegExp against the pattern below.