/** * Review records: the first line of every `specweave review` report names who * reviewed what, so closure can check the reviewer's family and the reviewed * code without trusting prose: * * * * A report without that line (a hand-written `reports/review.md`) is a record * of family `unknown`. * * @module core/review/record */ import { type Verdict } from './reviewer.js'; export interface ReviewRecordFields { reviewer: string; model?: string; family: string; author?: string; depth?: string; /** Repository the review read, relative to the project root; `.` is the root. */ repo?: string; base?: string; head?: string; at?: string; } export interface ReviewRecord extends ReviewRecordFields { /** Path relative to the increment's reports folder. */ file: string; verdict?: Verdict; /** File modification time, ms. */ mtime: number; /** * When the review was recorded, ms: the record's own `at`. A report without * one (hand-written) falls back to its file time, which a checkout resets, * so it only orders reports and never proves a review followed verify. */ atMs: number; /** Whether `atMs` comes from the record's `at`. */ timed: boolean; } export declare function formatRecordHeader(fields: ReviewRecordFields): string; export declare function parseRecordHeader(text: string): ReviewRecordFields | undefined; /** The report text without a header line it already carried. */ export declare function stripRecordHeader(text: string): string; /** Every review report of an increment, newest first: `reports/review*.md` and `reports/reviews/*.md`. */ export declare function readReviewRecords(incrementDir: string): ReviewRecord[]; /** * The increment's task Files grouped by owning repository (`.` for the project * root), each path relative to that repository. Files the owner rules cannot * place are left out; strict closure already reports them. */ export declare function incrementRepoPaths(projectRoot: string, incrementDir: string): Map; /** `repositories/acme/api` and `./repositories/acme/api/` name one repository; `.` and `` are the root. */ export declare function sameRepo(a: string | undefined, b: string): boolean; /** Model id named in a reviewer command: `-m gpt-6.1-sol`, `--model opus`. */ export declare function modelOfCommand(command: string): string | undefined; //# sourceMappingURL=record.d.ts.map