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

Function readInkScreenCounter

src/ink/replPerfHarness.tsx:287–290  ·  view source on GitHub ↗
(ink: MountedInkProbe | undefined)

Source from the content-addressed store, hash-verified

285}
286
287export function readInkScreenCounter(ink: MountedInkProbe | undefined) {
288 if (!ink) return null
289 return parseCounter(readScreenText(ink.frontFrame.screen))
290}
291
292export function readMaxTranscriptIndex(screenText: string): number | null {
293 const matches = [...screenText.matchAll(/\b(?:user|assistant)-(\d+)\b/g)]

Calls 2

parseCounterFunction · 0.85
readScreenTextFunction · 0.85

Tested by

no test coverage detected