import type { AuditResult } from './reporter'; import type { DiffFile } from '@sofagent/core'; /** session 报告聚合结构(写入 data/audit/session-report.json) */ export interface SessionReport { timestamp: string; /** `sofagent-audit v${VERSION}` */ engine: string; version: string; exitCode: number; status: 'PASS' | 'WARN' | 'FAIL'; ruleCount: number; passCount: number; warnCount: number; failCount: number; skipCount: number; task?: string; commitSha?: string; files: { path: string; status: string; }[]; violations: { rule: string; status: string; detail: string; fix?: string; }[]; } /** 构建 session 报告聚合对象(纯函数,不落盘) */ export declare function buildSessionReport(results: AuditResult, diffFiles: DiffFile[], opts: { task?: string; commitSha?: string; }): SessionReport; /** * 把报告写入 SOFAGENT_HOME/data/audit/(session-report.json + session-report.md) * v1.2.2:从 .sofagent/audit/ 迁移到 data/audit/ * @param overrideHome 覆盖 SOFAGENT_HOME(测试隔离用);缺省 fallback 到 SOFAGENT_HOME * @returns 两个文件的绝对路径 */ export declare function writeSessionReport(report: SessionReport, overrideHome?: string): { jsonPath: string; mdPath: string; }; //# sourceMappingURL=session-report.d.ts.map