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

Function mountedScreenIncludes

src/ink/replPerfHarness.tsx:257–262  ·  view source on GitHub ↗
(
  ink: MountedInkProbe | undefined,
  text: string,
)

Source from the content-addressed store, hash-verified

255}
256
257export function mountedScreenIncludes(
258 ink: MountedInkProbe | undefined,
259 text: string,
260): boolean {
261 return ink ? readScreenText(ink.frontFrame.screen).includes(text) : false
262}
263
264export function stripTerminalOutput(output: string): string {
265 return stripAnsi(output).replace(/\s+/g, ' ').trim()

Calls 1

readScreenTextFunction · 0.85

Tested by

no test coverage detected