/** * Real prompts and the files the agent then worked on, from Claude Code transcripts (JSONL), for * measuring the prompt briefing against what agents actually needed. Deterministic: a briefing is * scored by whether the files it names were later read or edited in that turn; no LLM judge. * * Reads local files only; nothing is sent anywhere. change: anchor-gated-prompt-briefing */ export interface TranscriptTurn { prompt: string; /** Repository-relative files the agent read, edited or named in a shell command before the next prompt. */ touched: string[]; } /** * The human prompts in one transcript, each with the files touched before the next prompt. Tool * results, meta messages and harness notices (``, compaction summaries) are not * prompts. `roots` are the absolute repository roots whose files count (a worktree and its parent). */ export declare function turnsFromTranscript(jsonl: string, roots: readonly string[]): TranscriptTurn[]; /** The repository files a briefing names (`— path` in function lines, and the files line). */ export declare function filesInBriefing(text: string): string[]; export interface BriefingScore { prompts: number; briefings: number; withHit: number; meanPrecision: number; meanChars: number; } /** Score briefings against touched files: hit = names at least one touched file. */ export declare function scoreBriefings(rows: ReadonlyArray<{ briefing: string; touched: readonly string[]; }>): BriefingScore; //# sourceMappingURL=transcript-turns.d.ts.map