/** * AGENTS 引擎 — 加载器 * * 负责: * 1. 扫描 .speccore/AGENTS/ 目录下的角色定义 * 2. 解析 Markdown 文件为 AgentDefinition * 3. 解析 _INDEX.md 注册表 * 4. 根据 platform/industry 解析特化版本 * 5. 条件过滤和优先级排序 * * v6.84.0+ */ import { AgentDefinition, AgentRegistry, AgentContext, ResolvedAgent } from './types'; /** * 根据 platform/industry 解析特化版本的 Agent 名称 * * 优先级:platform-specific > industry-specific > generic */ export declare function resolveAgentName(baseAgent: string, context: AgentContext, availableAgents: Set): string; /** * 加载所有可用的 Agent 定义 * 优先读取用户自定义,回退到内置默认 */ export declare function loadAllAgents(projectRoot: string): Promise>; /** * 加载注册表 * 优先读取用户自定义,回退到内置默认 */ export declare function loadRegistry(projectRoot: string): Promise; /** * 获取指定命令/阶段下需要激活的 Agent 列表 * 返回按优先级排序的 ResolvedAgent 数组 * * 混合模式: * 1. 注册表中的核心角色(显式配置,优先) * 2. 用户自定义角色的自描述激活规则(扩展) */ export declare function resolveAgentsForPhase(command: string, phase: string, context: AgentContext, projectRoot: string): Promise; /** * 获取单个 Agent 的定义 */ export declare function loadAgentDefinition(agentName: string, projectRoot: string): Promise; /** * 获取内置 Agent 的原始 Markdown 内容(用于 init 时复制到项目) */ export declare function getBuiltinAgentContents(): Promise<{ name: string; content: string; }[]>; /** * 获取内置注册表内容(用于 init 时复制到项目) */ export declare function getBuiltinRegistryContent(): Promise; /** * 获取内置模板内容(用于 init 时复制到项目) */ export declare function getBuiltinTemplateContent(): Promise; //# sourceMappingURL=agent-loader.d.ts.map