import type { PipelinePhase } from '../types.js'; export interface AgentDefinition { kind: 'Agent' | 'Skill'; name: string; filePath: string; description: string; whenToUse: string; tags: string[]; category: string; /** Markdown after the frontmatter. */ body: string; } /** * Reads the flat `key: value` frontmatter agent and skill files use. Only the * keys the graph needs; nested blocks such as `capability:` are ignored. */ export declare function parseDefinition(kind: AgentDefinition['kind'], filePath: string, source: string): AgentDefinition | null; /** Agents under `.claude/agents/**` and skills at `.claude/skills//SKILL.md`. */ export declare function readDefinitions(repoPath: string): AgentDefinition[]; /** The searchable description of a definition, for the summaries index. */ export declare function definitionText(p: Record, name: string): string; /** * Indexes the agent and skill definitions as `Agent` / `Skill` nodes, so "which * agent handles X" and "which code does this agent touch" are graph queries. * `.claude/` is excluded from the file scan on purpose (it is mirrored into * several platform trees), so this reads the root tree directly. Rebuilt from * scratch each build; a definition's REFERENCES edges point at the repository * files its text names. */ export declare const agentRegistryPhase: PipelinePhase<{ definitions: number; }>; //# sourceMappingURL=agent-registry.d.ts.map