Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(antigravity): list skills from the paths in a plugin's plugin.json #43588

Mergedhazemkya(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/43588/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 136 additions and 7 deletions.

x
0 of 2 viewed, 2 left
81 additions and 7 deletionsapps/server/src/provider/Drivers/AntigravitySkills.test.tsModified
View file
@@ -101,12 +101,43 @@
const workspace = yield* makeWorkspace();
const profileDirectory = path.join(workspace.userHome, "t3", "providers", "antigravity", "p");
const plugins = path.join(profileDirectory, "config", "plugins");
- for (const plugin of ["demo", "off"]) {
+ const skill = (name: string) => `---\nname: ${name}\ndescription: From ${name}.\n---\n`;
+ for (const plugin of ["demo", "off", "solo"]) {
yield* writeSkill(
path.join(plugins, plugin, "skills", `${plugin}-skill`),
- `---\nname: ${plugin}-skill\ndescription: From ${plugin}.\n---\n`,
+ skill(`${plugin}-skill`),
+ // agy adds the manifest's skill paths to skills/: a collection, a skill folder at any
+ // depth, or a SKILL.md file. The .antigravity-plugin manifest wins over plugin.json.
+ yield* fileSystem.makeDirectory(path.join(plugins, "demo", ".antigravity-plugin"));
+ yield* fileSystem.writeFileString(
+ path.join(plugins, "demo", ".antigravity-plugin", "plugin.json"),
+ JSON.stringify({
+ name: "demo",
+ skills: ["./engineering", "skills/cat/listed", "./files/by-file/SKILL.md"],
+ }),
+ );
+ yield* fileSystem.writeFileString(
+ path.join(plugins, "demo", "plugin.json"),
+ JSON.stringify({ name: "demo", skills: ["./shadowed"] }),
+ );
+ for (const [folder, name] of [
+ ["engineering/collected", "demo-collected"],
+ ["skills/cat/listed", "demo-listed"],