/** * MCP Tool: workflow_save_result * * 保存阶段执行结果(文件和元数据) * * 输入参数: * - stage: 阶段名称 * - workDir: 工作目录路径 * - files: 要保存的文件列表 [{path: 'relative/path', content: '...'}] * - metadata: 元数据(可选) * - status: 阶段状态 (in_progress | completed) * - notes: 备注信息 * - taskId: Execute 阶段的任务ID * - taskStatus: 任务状态 * * 返回: * - savedFiles: 已保存的文件路径列表 * - updatedStatus: 更新后的工作流状态 */ export interface SaveResultInput { stage: 'architect' | 'plan' | 'execute' | 'review'; workDir: string; files: Array<{ path: string; }>; metadata?: { status?: 'in_progress' | 'completed'; notes?: string; taskId?: string; taskStatus?: 'pending' | 'in_progress' | 'completed'; }; } export interface SaveResultOutput { savedFiles: string[]; updatedStatus: { currentStage: string; stageStatus: string; completedTasks?: number; totalTasks?: number; }; instructions?: string[]; } export declare function workflowSaveResult(input: SaveResultInput): Promise; /** * MCP Tool Schema Definition */ export declare const workflowSaveResultToolSchema: { name: string; description: string; inputSchema: { type: string; properties: { stage: { type: string; enum: string[]; description: string; }; workDir: { type: string; description: string; }; files: { type: string; description: string; items: { type: string; properties: { path: { type: string; description: string; }; }; required: string[]; }; }; metadata: { type: string; description: string; properties: { status: { type: string; enum: string[]; description: string; }; notes: { type: string; description: string; }; taskId: { type: string; description: string; }; taskStatus: { type: string; enum: string[]; description: string; }; }; }; }; required: string[]; }; }; //# sourceMappingURL=workflow-save-result.d.ts.map