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

Function capture

graph-ui/tools/pr-2068-feedback-e2e.mjs:51–58  ·  view source on GitHub ↗
(page, file, locator)

Source from the content-addressed store, hash-verified

49}
50
51async function capture(page, file, locator) {
52 await page.bringToFront();
53 if (locator) await locator.scrollIntoViewIfNeeded();
54 const path = join(OUT, file);
55 await page.screenshot({ path, fullPage: false });
56 report.screenshots.push({ file, url: page.url(), at: new Date().toISOString(),
57 sha256: createHash('sha256').update(await readFile(path)).digest('hex') });
58}
59
60async function loadedAlerts(page, project, expanded = false) {
61 const alerts = page.getByTestId('daemon-alerts');

Callers 2

mainFunction · 0.70

Calls 2

updateMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected