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