import type { ResourceDiagnostic } from "./diagnostics.ts"; import { type SourceInfo } from "./source-info.ts"; export interface AgentFrontmatter { name?: string; description?: string; model?: string; skill?: string; tools?: string; systemPromptMode?: string; inheritProjectContext?: boolean; inheritSkills?: boolean; output?: string; defaultReads?: string; defaultContext?: string; [key: string]: unknown; } export interface AgentPersona { name: string; description: string; filePath: string; baseDir: string; sourceInfo: SourceInfo; frontmatter: AgentFrontmatter; } export interface LoadAgentsResult { agents: AgentPersona[]; diagnostics: ResourceDiagnostic[]; } export interface LoadAgentsFromDirOptions { dir: string; source: string; } /** * Load agent persona markdown files from a directory. * Only flat .md files at the top level are loaded (agents are not folder-based like skills). */ export declare function loadAgentsFromDir(options: LoadAgentsFromDirOptions): LoadAgentsResult; /** * Format available agents for inclusion in the system prompt. * Tells the model which subagent personas exist and where to read them. */ export declare function formatAgentsForPrompt(agents: AgentPersona[]): string; export interface LoadAgentsOptions { cwd: string; agentDir: string; agentPaths: string[]; includeDefaults: boolean; } /** * Load agent personas from all configured locations. */ export declare function loadAgents(options: LoadAgentsOptions): LoadAgentsResult; //# sourceMappingURL=agents.d.ts.map