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

Function selectWithLayer

graph-ui/tools/call-feedback-capture.mjs:251–261  ·  view source on GitHub ↗
(page, name)

Source from the content-addressed store, hash-verified

249}
250
251async function selectWithLayer(page, name) {
252 const choice = await searchAndSelect(page, name);
253 await choice.click();
254 await wait(3000);
255 const expand = page.getByRole('button', { name: 'Expand +1' });
256 const text = await page.locator('.atlas-galaxy').innerText().catch(() => '');
257 if (/\b0 layers\b/.test(text) && await expand.isEnabled().catch(() => false)) {
258 await expand.click();
259 await wait(4000);
260 }
261}
262
263/* ------------------------------------------------------------------ */
264/* Szenarien */

Callers 1

chatScenarioFunction · 0.85

Calls 2

searchAndSelectFunction · 0.85
waitFunction · 0.70

Tested by

no test coverage detected