Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): reference Antigravity global skills via short paths in skills.json #49731

Openfull-poulet(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/49731/headopened View on GitHub

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

x
0 of 4 viewed, 4 left
86 additions and 0 deletionsapps/server/src/provider/Drivers/AntigravitySkills.test.tsModified
View file
@@ -284,4 +284,90 @@
]);
}),
+​
+ it.effect(
+ "scans the global skill roots once when the profile's skills.json references them",
+ () =>
+ Effect.gen(function* () {
+ const fileSystem = yield* FileSystem.FileSystem;
+ const path = yield* Path.Path;
+ const input = yield* makeWorkspace();
+ const userConfigDir = path.join(input.userHome, ".gemini", "config");
+ const configSkills = path.join(userConfigDir, "skills");
+ const cliSkills = path.join(input.userHome, ".gemini", "antigravity-cli", "skills");
+ const extraSkills = path.join(input.userHome, "extra-skills");
+ const alphaPath = yield* writeSkill(
+ path.join(configSkills, "alpha"),
+ "---\nname: alpha\ndescription: From config.\n---\n",
+ );
+ const betaPath = yield* writeSkill(
+ path.join(cliSkills, "beta"),
+ "---\nname: beta\ndescription: From cli.\n---\n",
+ );
+ const gammaPath = yield* writeSkill(
+ path.join(extraSkills, "gamma"),
+ "---\nname: gamma\ndescription: From user skills.json.\n---\n",
+ );
+ const userSkillsJson = path.join(userConfigDir, "skills.json");
+ yield* fileSystem.writeFileString(