@rbbtsn0w/adg 0.5.0-beta.2 → 0.5.0-beta.3

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.
@@ -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) {
@@ -24,6 +24,7 @@ export type AgentType =
24
24
  | 'devin'
25
25
  | 'dexto'
26
26
  | 'droid'
27
+ | 'eve'
27
28
  | 'firebender'
28
29
  | 'forgecode'
29
30
  | 'gemini-cli'
@@ -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
- const args = ['skills', 'add', installUrl, '--skill', skill.name, '-y'];
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");