/** * Links extracted insights to git commits/PRs via file-overlap matching. * * Strategy: * 1. Collect file paths mentioned in the transcript (regex scan) * 2. Find git commits that touched those same files in a ±7-day window * around the transcript timestamp * 3. If a merged commit is found → trust_score boosted to 0.85 * If the commit was later reverted → stale = 1 * * File-overlap is the most reliable signal because it's deterministic and * doesn't require any semantic matching. */ import type { Transcript } from "./parser.js"; export interface PRLink { transcriptId: string; repo: string; commitSha: string | null; matchedFiles: string[]; status: "merged" | "reverted" | "unknown"; } export declare function extractFilePaths(text: string): string[]; /** * Attempts to find a git commit in the given repo that: * - Was made within ±7 days of the transcript date * - Touched at least one of the files mentioned in the transcript * * Returns the best matching PRLink or null if no match. */ export declare function findPRLink(transcript: Transcript, repoAbsPath: string, repoName: string, windowDays?: number): Promise; //# sourceMappingURL=pr-linker.d.ts.map