/** * 工作流配置结构 */ export interface WorkflowConfig { name: string; version: string; description?: string; stages: { architect: StageConfig; plan: StageConfig; execute: StageConfig; review: StageConfig; }; } /** * 阶段配置结构 */ export interface StageConfig { name: string; promptFile: string; outputDir: string; expectedArtifacts: string[]; description?: string; } /** * 工作流配置加载器 * 职责: * 1. 从环境变量读取 Prompts 目录 * 2. 加载工作流配置文件 (workflow.config.json) * 3. 加载阶段 Prompt 文件 * 4. 提供目录路径信息 */ export declare class WorkflowLoader { private promptsDir; private config; constructor(workflowType?: string); /** * 加载工作流配置文件 */ loadConfig(): Promise; /** * 加载指定阶段的 Prompt 文件 * @param stageName 阶段名称 (architect | plan | execute | review) */ loadPrompt(stageName: 'architect' | 'plan' | 'execute' | 'review'): Promise; /** * 获取阶段配置 */ getStageConfig(stageName: 'architect' | 'plan' | 'execute' | 'review'): Promise; /** * 获取 Prompts 目录路径 */ getPromptsDir(): string; /** * 获取工作流配置(已缓存) */ getConfig(): WorkflowConfig | null; /** * 验证配置结构 */ private validateConfig; /** * 列出所有可用的工作流类型 * @param baseDir 基础 Prompts 目录(可选,默认使用环境变量) */ static listWorkflowTypes(baseDir?: string): Promise; } //# sourceMappingURL=workflow-loader.d.ts.map