MCPcopy Create free account
hub / github.com/microsoft/Webwright / normalizeTrace

Function normalizeTrace

assets/compare_trajectory/app.js:1757–1772  ·  view source on GitHub ↗
(text, fileName, filePath, side)

Source from the content-addressed store, hash-verified

1755}
1756
1757function 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
1774const app = createApp({
1775 data() {

Callers 1

loadFileFunction · 0.85

Calls 5

detectFormatFunction · 0.85
normalizeCodexFunction · 0.85
normalizeRawResponsesFunction · 0.85
normalizeTrajectoryFunction · 0.85

Tested by

no test coverage detected