Condense a transcript from raw bytes, auto-detecting format. Currently supports Claude Code JSONL. Future: Gemini JSON, other formats.
(raw: &[u8], format: &str)
| 77 | /// |
| 78 | /// Currently supports Claude Code JSONL. Future: Gemini JSON, other formats. |
| 79 | pub fn condense_transcript(raw: &[u8], format: &str) -> Vec<CondensedEntry> { |
| 80 | match format { |
| 81 | "jsonl" => condense_claude_transcript(raw), |
| 82 | // Future: "json" => condense_gemini_transcript(raw), |
| 83 | _ => { |
| 84 | log::warn!("Unknown transcript format '{}', returning empty", format); |
| 85 | Vec::new() |
| 86 | } |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | /// Format condensed entries as human-readable text. |
| 91 | /// |