MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / waitForTurn

Function waitForTurn

graph-ui/tools/smoke-w7c.mjs:348–356  ·  view source on GitHub ↗
(page, needle, status, timeout)

Source from the content-addressed store, hash-verified

346
347/** Warten, bis ein Zug zu dieser Frage diesen Zustand hat. */
348const waitForTurn = (page, needle, status, timeout) =>
349 page.waitForFunction(
350 ({ needle: word, status: wanted }) =>
351 (globalThis.__atlasChat?.turns ?? []).some(
352 (turn) => turn.question.includes(word) && turn.status === wanted,
353 ),
354 { needle, status },
355 { timeout },
356 );
357
358const turnOf = (seam, needle) =>
359 (seam?.turns ?? []).filter((turn) => turn.question.includes(needle)).slice(-1)[0];

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected