(buffer: Buffer)
| 73 | * Parse JSONL from buffer |
| 74 | */ |
| 75 | export async function parseJSONLBuffer(buffer: Buffer): Promise<FileParseResult> { |
| 76 | const content = buffer.toString('utf-8') |
| 77 | return parseJSONLContent(content) |
| 78 | } |
| 79 | |
| 80 | function parseJSONLContent(content: string): FileParseResult { |
| 81 | const lines = content.split('\n').filter((line) => line.trim()) |
nothing calls this directly
no test coverage detected