Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Antigravity reads user skills from ~/.agents/skills #46752

Openjuliusmarmingewants to merge 5 commits intomain fromrefs/pull/46752/headopened View on GitHub

Showing 4 changed files with 110 additions and 13 deletions (loading 1).

x
0 of 4 viewed, 4 left
82 additions and 12 deletionsapps/server/src/provider/Drivers/AntigravitySkills.test.tsModified
View file
@@ -30,37 +30,106 @@
});
​
it.layer(NodeServices.layer)("discoverAntigravitySkills", (it) => {
- it.effect("does not read user skills from a nested project or from ~/.agents", () =>
+ it.effect("does not read a nested project's ancestors as projects", () =>
Effect.gen(function* () {
const path = yield* Path.Path;
const input = yield* makeWorkspace();
const nested = { ...input, cwd: path.join(input.userHome, "AI", "Projects", "Something") };
- const skillPath = yield* writeSkill(
+ yield* writeSkill(
+ path.join(input.userHome, ".gemini", "skills", "ancestor"),
+ "---\nname: ancestor\n---\n",
+ );
+ yield* writeSkill(
+ path.join(input.userHome, ".agents", "skills", "shared"),
+ "---\nname: shared\n---\n",
+ );
+​
+ assert.deepEqual(
+ (yield* discoverAntigravitySkills(nested)).map((skill) => [skill.name, skill.scope]),
+ [["shared", "user"]],
+ );
+ assert.deepEqual(
+ (yield* discoverAntigravitySkills({ ...input, cwd: input.userHome })).map((skill) => [
+ skill.name,
+ skill.scope,
+ ]),
+ [