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

Function readVisibleRows

src/testing/replScreenContractHarness.ts:22–27  ·  view source on GitHub ↗
(screenText: string)

Source from the content-addressed store, hash-verified

20}
21
22export function readVisibleRows(screenText: string): string[] {
23 return screenText
24 .split('\n')
25 .map(row => row.replace(/\s+$/g, ''))
26 .filter(row => row.trim().length > 0)
27}
28
29export function normalizeVisibleRowContractText(text: string): string {
30 return text.replace(/\s+/gu, '')

Calls

no outgoing calls

Tested by 1

waitForPromptRowsFunction · 0.68