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

Function switchTo

graph-ui/tools/handtest-fixes-chat.mjs:844–847  ·  view source on GitHub ↗
(page, project)

Source from the content-addressed store, hash-verified

842/** The same text as the fresh view of the project, apart from numbers (times, memory) and spacing. */
843const sameText = (left, right) => left.replace(/\d[\d,.:]*/g, '#').replace(/\s+/g, ' ') === right.replace(/\d[\d,.:]*/g, '#').replace(/\s+/g, ' ');
844async function switchTo(page, project) {
845 await page.locator('.atlas-project-switcher summary').first().click();
846 await page.locator('.atlas-project-picker button', { has: page.locator('.atlas-project-result-name', { hasText: new RegExp(`^${project}`) }) }).first().click();
847}
848
849const pageState = (page) => page.evaluate(() => ({ id: window.__probePage, origin: performance.timeOrigin, workers: window.__probeModelWorkers }));
850const projectShown = (page) => page.evaluate(() => new URLSearchParams(location.search).get('project'));

Callers 2

k24SituationsFunction · 0.70
k24Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected