Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Antigravity threads load plugins installed in ~/.gemini #39084

Closedjuliusmarmingewants to merge 3 commits intomain fromrefs/pull/39084/headopened View on GitHub

Showing 4 changed files with 40 additions and 14 deletions (loading 1).

x
0 of 4 viewed, 4 left
12 additions and 1 deletionapps/server/src/provider/Drivers/AntigravitySkills.test.tsModified
View file
@@ -112,11 +112,22 @@
JSON.stringify({ plugins: { off: { enabled: false } } }),
yield* fileSystem.writeFileString(path.join(plugins, ".DS_Store"), "x");
+ // `agy plugin install` writes to ~/.gemini/config/plugins, outside the instance profile.
+ const globalPlugins = path.join(workspace.userHome, ".gemini", "config", "plugins");
+ yield* writeSkill(
+ path.join(globalPlugins, "global", "skills", "g"),
+ "---\nname: global-skill\ndescription: From an agy-installed plugin.\n---\n",
+ );
+ // The profile disables `off`, so its global copy stays hidden too.
+ yield* writeSkill(
+ path.join(globalPlugins, "off", "skills", "o"),
+ "---\nname: off-global-skill\ndescription: Disabled in the profile.\n---\n",
+ );
const input = { ...workspace, profileDirectory };
​
assert.deepEqual(
(yield* discoverAntigravitySkills(input)).map((skill) => skill.name),
- ["demo-skill"],
+ ["demo-skill", "global-skill"],
}),
23 additions and 13 deletionsapps/server/src/provider/Drivers/AntigravitySkills.tsModified
View file
@@ -23,14 +23,15 @@
return environment.HOME || home;