@rbbtsn0w/adg 0.5.0-beta.2 → 0.5.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -5
- package/dist/bin/adg.js +18 -1
- package/dist/src/adapters/antigravity-hooks.js +6 -0
- package/dist/src/agents/codex.js +1 -1
- package/dist/src/cli/handlers.js +23 -0
- package/dist/src/cli/index.js +16 -1
- package/dist/src/commands/install.js +6 -2
- package/dist/src/commands/link.js +11 -1
- package/dist/src/commands/state.js +84 -0
- package/dist/src/commands/status.js +12 -4
- package/dist/src/commands/sync.js +15 -11
- package/dist/src/render/json.js +2 -1
- package/dist/src/render/plugins.js +25 -10
- package/dist/src/self-update.js +39 -0
- package/dist/src/types.js +3 -0
- package/dist/src/update-check.js +3 -7
- package/dist/vendor/skills/src/add.js +199 -24
- package/dist/vendor/skills/src/agents.js +49 -1
- package/dist/vendor/skills/src/blob.js +20 -2
- package/dist/vendor/skills/src/cli.js +5 -0
- package/dist/vendor/skills/src/find.js +62 -12
- package/dist/vendor/skills/src/installer.js +173 -30
- package/dist/vendor/skills/src/remove.js +12 -2
- package/dist/vendor/skills/src/update.js +6 -1
- package/docs/cli-json.md +13 -5
- package/docs/local-plugin-registration.md +19 -0
- package/package.json +1 -1
- package/schemas/plugin-lock.schema.json +4 -0
- package/vendor/skills/PROVENANCE.md +25 -3
- package/vendor/skills/package.json +2 -1
- package/vendor/skills/src/add.ts +247 -25
- package/vendor/skills/src/agents.ts +57 -1
- package/vendor/skills/src/blob.ts +23 -2
- package/vendor/skills/src/cli.ts +5 -0
- package/vendor/skills/src/find.ts +74 -12
- package/vendor/skills/src/installer.ts +247 -37
- package/vendor/skills/src/local-lock.ts +7 -0
- package/vendor/skills/src/remove.ts +12 -1
- package/vendor/skills/src/types.ts +1 -0
- package/vendor/skills/src/update.ts +6 -1
|
@@ -2,7 +2,7 @@ import * as p from '@clack/prompts';
|
|
|
2
2
|
import pc from 'picocolors';
|
|
3
3
|
import { readdir, rm, lstat } from 'fs/promises';
|
|
4
4
|
import { join } from 'path';
|
|
5
|
-
import { agents, detectInstalledAgents } from './agents.ts';
|
|
5
|
+
import { agents, detectInstalledAgents, getEveSubagents } from './agents.ts';
|
|
6
6
|
import { track } from './telemetry.ts';
|
|
7
7
|
import { detectAgent } from './detect-agent.ts';
|
|
8
8
|
import { removeSkillFromLock, getSkillFromLock } from './skill-lock.ts';
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
getInstallPath,
|
|
12
12
|
getCanonicalPath,
|
|
13
13
|
getCanonicalSkillsDir,
|
|
14
|
+
getEveSubagentSkillsDir,
|
|
14
15
|
sanitizeName,
|
|
15
16
|
} from './installer.ts';
|
|
16
17
|
|
|
@@ -68,6 +69,10 @@ export async function removeCommand(skillNames: string[], options: RemoveOptions
|
|
|
68
69
|
for (const agent of Object.values(agents)) {
|
|
69
70
|
await scanDir(join(cwd, agent.skillsDir));
|
|
70
71
|
}
|
|
72
|
+
// Eve subagents keep their skills under agent/subagents/<name>/skills.
|
|
73
|
+
for (const subagent of getEveSubagents(cwd)) {
|
|
74
|
+
await scanDir(getEveSubagentSkillsDir(subagent, cwd));
|
|
75
|
+
}
|
|
71
76
|
}
|
|
72
77
|
|
|
73
78
|
const installedSkills = Array.from(skillNamesSet).sort();
|
|
@@ -178,6 +183,12 @@ export async function removeCommand(skillNames: string[], options: RemoveOptions
|
|
|
178
183
|
pathsToCleanup.add(join(agent.globalSkillsDir, sanitizedName));
|
|
179
184
|
} else {
|
|
180
185
|
pathsToCleanup.add(join(cwd, agent.skillsDir, sanitizedName));
|
|
186
|
+
// Eve skills may also live in subagent directories.
|
|
187
|
+
if (agentKey === 'eve') {
|
|
188
|
+
for (const subagent of getEveSubagents(cwd)) {
|
|
189
|
+
pathsToCleanup.add(join(getEveSubagentSkillsDir(subagent, cwd), sanitizedName));
|
|
190
|
+
}
|
|
191
|
+
}
|
|
181
192
|
}
|
|
182
193
|
|
|
183
194
|
for (const pathToCleanup of pathsToCleanup) {
|
|
@@ -684,7 +684,12 @@ export async function updateProjectSkills(
|
|
|
684
684
|
const installUrl = formatSourceInput(skill.entry.source, skill.entry.ref);
|
|
685
685
|
|
|
686
686
|
const tracer = getTracer();
|
|
687
|
-
|
|
687
|
+
// Preserve Eve subagent placement recorded at install time. The lock stores
|
|
688
|
+
// '' for the root agent, which maps to the `root` keyword for `add --subagent`.
|
|
689
|
+
const subagentArgs = skill.entry.subagents?.length
|
|
690
|
+
? ['--subagent', ...skill.entry.subagents.map((s) => (s === '' ? 'root' : s))]
|
|
691
|
+
: [];
|
|
692
|
+
const args = ['skills', 'add', installUrl, '--skill', skill.name, ...subagentArgs, '-y'];
|
|
688
693
|
const result = tracer.startActiveSpan("adg", { kind: SpanKind.CLIENT }, (span) => {
|
|
689
694
|
try {
|
|
690
695
|
span.setAttribute("process.executable.name", "adg");
|