/** * verify 命令 — 变更验证 * * 验证已实现的变更是否满足规范要求 * 检查维度: * 1. 规范合规性 — 实现是否覆盖了 spec 中的所有需求 * 2. 设计一致性 — 实现是否符合 design 中的架构决策 * 3. 任务完成度 — tasks 中的所有任务是否已完成 * 4. 测试覆盖 — 是否有对应的测试用例 * 5. 代码质量 — lint、类型检查、安全扫描 */ export interface VerifyResult { changeId: string; timestamp: string; checks: VerifyCheck[]; overallStatus: 'pass' | 'fail' | 'partial'; summary: string; } export interface VerifyCheck { id: string; category: CheckCategory; name: string; status: 'pass' | 'fail' | 'warn' | 'skip'; message: string; details?: string[]; autoFixable: boolean; } export type CheckCategory = 'spec-compliance' | 'design-consistency' | 'task-completion' | 'test-coverage' | 'code-quality'; /** * 执行完整验证 */ export declare function runVerification(projectRoot: string, changeId: string): Promise; type ProjectType = 'node' | 'java' | 'python' | 'go' | 'csharp' | 'rust' | 'ruby' | 'unknown'; interface ProjectEcosystemConfig { testDirs: string[]; testFilePatterns: string[]; buildConfigs: string[]; linterConfigs: string[]; } /** * 检测项目类型(基于根目录配置文件) */ export declare function detectProjectType(projectRoot: string): ProjectType; /** * 获取项目类型的生态系统配置 */ export declare function getProjectConfig(projectType: ProjectType): ProjectEcosystemConfig; export declare function extractReferencedFiles(tasksContent: string): string[]; export declare function scanTestFiles(dirs: string[]): string[]; /** * CLI 入口:验证变更 */ export declare function verifyChange(options: { change?: string; }): Promise; export {}; //# sourceMappingURL=verify.d.ts.map