MCPcopy Create free account
hub / github.com/Noumena-Network/code / makeInitialStats

Function makeInitialStats

src/components/Markdown/fencedCodeRenderStats.ts:27–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25let stats: FencedCodeRenderStatsSnapshot = makeInitialStats()
26
27function makeInitialStats(): FencedCodeRenderStatsSnapshot {
28 return {
29 totalRenders: 0,
30 nativeRenderCount: 0,
31 ansiFallbackCount: 0,
32 fallbackReasons: { ...INITIAL_FALLBACK_REASONS },
33 lastPath: null,
34 lastFallbackReason: null,
35 lastTerminalWidth: null,
36 lastCodeLength: 0,
37 lastLanguage: null,
38 lastNativeLineCount: 0,
39 }
40}
41
42export function recordNativeFencedCodeRender(params: {
43 language: string | null

Calls

no outgoing calls

Tested by

no test coverage detected