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

Function waitForMountedVisibleRows

src/testing/replScreenContractHarness.ts:232–246  ·  view source on GitHub ↗
(
  ink: MountedInkProbe | undefined,
  predicate: (rows: string[]) => boolean,
  options?: {
    readonly timeoutMs?: number
    readonly label?: string
  },
)

Source from the content-addressed store, hash-verified

230}
231
232export async function waitForMountedVisibleRows(
233 ink: MountedInkProbe | undefined,
234 predicate: (rows: string[]) => boolean,
235 options?: {
236 readonly timeoutMs?: number
237 readonly label?: string
238 },
239): Promise<string[]> {
240 const screenText = await waitForMountedScreenText(
241 ink,
242 text => predicate(readVisibleRows(text)),
243 options,
244 )
245 return readVisibleRows(screenText)
246}

Calls 2

waitForMountedScreenTextFunction · 0.85
readVisibleRowsFunction · 0.85

Tested by 2

enterTranscriptModeFunction · 0.68