(text, fileName, filePath, side)
| 1755 | } |
| 1756 | |
| 1757 | function normalizeTrace(text, fileName, filePath, side) { |
| 1758 | const format = detectFormat(text); |
| 1759 | if (!format) { |
| 1760 | throw new Error('Supported inputs: Codex JSONL, Webwright Responses JSONL (raw_responses.jsonl), trajectory.json, and Copilot session markdown.'); |
| 1761 | } |
| 1762 | if (format === 'codex_jsonl') { |
| 1763 | return normalizeCodex(text, fileName, filePath, side); |
| 1764 | } |
| 1765 | if (format === 'raw_response_jsonl') { |
| 1766 | return normalizeRawResponses(text, fileName, filePath, side); |
| 1767 | } |
| 1768 | if (format === 'trajectory_json') { |
| 1769 | return normalizeTrajectory(text, fileName, filePath, side); |
| 1770 | } |
| 1771 | return normalizeCopilotSessionMarkdown(text, fileName, filePath, side); |
| 1772 | } |
| 1773 | |
| 1774 | const app = createApp({ |
| 1775 | data() { |
no test coverage detected