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

Function makeCodeSection

assets/compare_trajectory/app.js:424–431  ·  view source on GitHub ↗
(text, language = '', label = '')

Source from the content-addressed store, hash-verified

422}
423
424function makeCodeSection(text, language = '', label = '') {
425 return {
426 type: 'code',
427 label,
428 language: inferCodeLanguage(text, language),
429 text: String(text || '').trim()
430 };
431}
432
433function buildRichTextSections(text, options = {}) {
434 const source = String(text || '').trim();

Callers 6

buildRichTextSectionsFunction · 0.85
buildCommandSectionsFunction · 0.85
appendPythonScriptsFunction · 0.85
normalizeCodexFunction · 0.85
normalizeRawResponsesFunction · 0.85
normalizeTrajectoryFunction · 0.85

Calls 1

inferCodeLanguageFunction · 0.85

Tested by

no test coverage detected