/** * debug 命令 — 系统化调试辅助 * * 4 阶段根因分析流程: * 1. 调查 — 收集日志、堆栈、复现步骤 * 2. 模式分析 — 识别错误模式 * 3. 假设测试 — 提出并验证根因假设 * 4. 实现修复 — 修复并验证 */ export interface DebugSession { id: string; startTime: string; phase: 'investigation' | 'pattern-analysis' | 'hypothesis' | 'fix'; evidence: Evidence[]; hypotheses: Hypothesis[]; conclusion?: string; fix?: string; } export interface Evidence { type: 'log' | 'stack' | 'reproduction' | 'code' | 'config'; source: string; content: string; timestamp: string; } export interface Hypothesis { id: string; description: string; confidence: 'low' | 'medium' | 'high'; evidence: string[]; verified: boolean; verificationMethod?: string; } /** * 启动调试会话 */ export declare function startDebugSession(projectRoot: string, description: string): Promise; /** * 生成调试报告 */ export declare function generateDebugReport(session: DebugSession): string; /** * CLI 入口:系统化调试 */ export declare function systematicDebug(description: string): Promise; //# sourceMappingURL=debug.d.ts.map