/** * The brief `specweave review` hands a reviewer: what the increment promised * (ACs, Approach, tasks and their Files), who wrote it (model family from the * ledger), the diff range and the diff itself, and the report shape to answer in. * * @module core/review/brief */ import { type ReviewPolicy } from './policy.js'; /** Diff text above this many characters is left out; the reviewer runs git itself. */ export declare const MAX_DIFF_CHARS = 150000; /** Model family of a tool name as the ledger records it (`claude@mbp` → claude). */ export declare function familyOfTool(tool: string): string; export interface AuthorFamilies { /** Family that finished the most tasks, or undefined when the ledger has none. */ primary?: string; /** Family → number of `done` events. */ counts: Record; } /** * Who wrote the increment, from its ledger's `done` events (claims when no task is * done yet). `SPECWEAVE_AGENT` names without a tool (`api`) do not count. */ export declare function authorFamilies(incrementDir: string): AuthorFamilies; export declare function git(cwd: string, args: string[]): string | null; /** `--base`, else the merge-base with the remote's default branch, develop, main or master. */ export declare function resolveBase(repoRoot: string, explicit?: string): string | null; export interface ReviewBrief { incrementId: string; title: string; author: AuthorFamilies; base: string; head: string; /** Task Files inside the repository, repo-relative; empty means the whole diff. */ paths: string[]; stat: string; diffIncluded: boolean; text: string; } export interface BuildBriefOptions { projectRoot: string; repoRoot: string; incrementId: string; incrementDir: string; base: string; /** The increment's review policy, named in the brief so a reviewer knows the depth asked for. */ policy?: ReviewPolicy; } export declare function buildBrief(opts: BuildBriefOptions): ReviewBrief; //# sourceMappingURL=brief.d.ts.map