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

Function buildCommandSections

assets/compare_trajectory/app.js:472–483  ·  view source on GitHub ↗
(command, channel, outputText = '', outputLabel = 'Output')

Source from the content-addressed store, hash-verified

470}
471
472function buildCommandSections(command, channel, outputText = '', outputLabel = 'Output') {
473 const sections = [];
474 const commandText = String(command || '').trim();
475 const resultText = String(outputText || '').trim();
476 if (commandText) {
477 sections.push(makeCodeSection(commandText, inferCodeLanguage(commandText, channel), 'Command'));
478 }
479 if (resultText) {
480 sections.push(makeCodeSection(resultText, inferCodeLanguage(resultText), outputLabel));
481 }
482 return sections;
483}
484
485function createDetailEntry({
486 id,

Callers 4

parseSessionToolSectionFunction · 0.85
normalizeCodexFunction · 0.85
normalizeRawResponsesFunction · 0.85
normalizeTrajectoryFunction · 0.85

Calls 2

makeCodeSectionFunction · 0.85
inferCodeLanguageFunction · 0.85

Tested by

no test coverage detected