// A SALVAGE TRANSCRIPT, SAID IN ONE LINE (release 30, lane Q) — the record's // `salvaged` mark (TranscriptSummary.salvaged: made from a damaged recording, // no transcript where it would not decode) as the export's video page and the // MCP say it. Pure: no fs, client-safe. export type SalvageMark = { decodedSeconds: number; totalSeconds: number }; const minutes = (sec: number) => Math.max(0, Math.round(sec / 60)); // "Partial transcript: 39 of 100 min decoded" export function partialTranscriptLine(s: SalvageMark): string { return `Partial transcript: ${minutes(s.decodedSeconds)} of ${minutes(s.totalSeconds)} min decoded`; } // The MCP's caveat, phrased like its coverage warning: a reader must not // conclude from this transcript that something was never said. export function salvageCaveat(s: SalvageMark): string { return ( `⚠ PARTIAL TRANSCRIPT — made from a damaged recording: ${minutes(s.decodedSeconds)} of ` + `${minutes(s.totalSeconds)} min decoded, and the rest has no transcript. Do NOT conclude ` + `from this transcript that something was never said.` ); }