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

Function waitForReplPtyPrompt

src/testing/replPtyFixtureHarness.ts:127–136  ·  view source on GitHub ↗
(
  session: PtyContractSession,
  timeoutMs = 8000,
)

Source from the content-addressed store, hash-verified

125}
126
127export async function waitForReplPtyPrompt(
128 session: PtyContractSession,
129 timeoutMs = 8000,
130): Promise<string> {
131 return await session.waitForVisibleText(
132 text => rowsContainSubstring(text.split('\n'), '❯'),
133 timeoutMs,
134 'real PTY startup prompt',
135 )
136}

Callers 2

spawnTranscriptFixtureFunction · 0.85

Calls 1

rowsContainSubstringFunction · 0.85

Tested by 1

spawnTranscriptFixtureFunction · 0.68