/** * verify — 代码验证命令 * * 执行后验证代码质量:编译检查 + Lint + 单元测试 * 支持项目级和任务级验证 * * 验证阶段模型(--stage,与 pipeline 部署时机对齐): * - dev 开发阶段:编译 + Lint + 单元测试(代码/规范/案例,无关浏览器) * - pr PR 阶段:代码质量 + 关键 UI 冒烟 + API 契约(≈ pipeline pre-deploy,可阻断) * - deploy 部署阶段:UI 冒烟测试(≈ pipeline post-deploy,只报告) * - release 发布阶段:全量 UI + API + 性能回归(部署后,只报告) * 即:部署前验证(dev/pr,代码/规范/契约)可阻断;部署后验证(deploy/release,冒烟/回归)只报告。 * * 用法: * speccore verify # 验证当前迭代所有任务 * speccore verify -t Task-001 # 验证单个任务 * speccore verify -t Task-001 --type=lint # 只跑 lint * speccore verify --path=./backend # 指定代码路径 * speccore verify --stage=pr # PR 阶段(部署前)验证 */ import { UIVerifyReport } from '../core/ui-verify'; interface VerifyOptions { task?: string; iteration?: string; type?: 'compile' | 'lint' | 'test' | 'artifact' | 'all'; path?: string; timeout?: number; stage?: 'dev' | 'pr' | 'deploy' | 'release' | ''; ui?: boolean; smokeOnly?: boolean; visualOnly?: boolean; device?: string; updateBaseline?: boolean; headed?: boolean; browser?: string; visualModel?: string; url?: string; spec?: string; output?: string; apiContract?: boolean; perf?: boolean; updatePerfBaseline?: boolean; discoverRoutes?: boolean; discoverPages?: boolean; generateSpec?: boolean; routerFile?: string; module?: string; page?: string; scenario?: string; baseUrl?: string; envFile?: string; config?: string; /** v8.3.352+: API 测试缺契约时报错阻断(默认跳过仅告警,防「契约缺失=验证通过」假象) */ requireContract?: boolean; ai?: boolean; scope?: string; platform?: string; env?: string; aiReport?: string; aiJudge?: string; } export declare function verifyCommand(options: VerifyOptions): Promise; export declare function runUIVerification(taskId: string, iterDir: string, options: VerifyOptions, qgConfig?: import('../core/quality-gate').ResolvedQualityGate): Promise; export declare function logUIReport(report: UIVerifyReport): void; export {}; //# sourceMappingURL=verify.d.ts.map