loadTranscriptFile method
Load a transcript from a JSONL file.
Implementation
Future<List<Map<String, dynamic>>> loadTranscriptFile(String filePath) async {
final file = File(filePath);
if (!await file.exists()) return [];
final stat = await file.stat();
if (stat.size > maxTranscriptReadBytes) {
return []; // Too large, prevent OOM.
}
final content = await file.readAsString();
return _parseJSONL(content);
}