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

Function waitForReplTmuxPrompt

src/testing/replTmuxFixtureHarness.ts:90–99  ·  view source on GitHub ↗
(
  fixture: ReplTmuxFixture,
  timeoutMs = 8000,
)

Source from the content-addressed store, hash-verified

88}
89
90export async function waitForReplTmuxPrompt(
91 fixture: ReplTmuxFixture,
92 timeoutMs = 8000,
93): Promise<string> {
94 return await waitForText(
95 () => capturePane(fixture.session, { startLine: -120 }),
96 pane => rowsContainSubstring(pane.split('\n'), '❯'),
97 { timeoutMs, label: 'real tmux REPL startup prompt' },
98 )
99}

Callers 1

Calls 3

waitForTextFunction · 0.85
capturePaneFunction · 0.85
rowsContainSubstringFunction · 0.85

Tested by

no test coverage detected