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

Function lampFrames

graph-ui/tools/handtest-fixes-chat.mjs:832–840  ·  view source on GitHub ↗
(page, label, t0)

Source from the content-addressed store, hash-verified

830 return { total: fetches.length, naming: fetches.filter((entry) => names(entry).has(project)).map((entry) => ({ t: entry.t, url: entry.url.slice(0, 120), body: entry.body.slice(0, 160), page: entry.page })) };
831}
832const lampFrames = async (page, label, t0) => {
833 const frames = [];
834 for (const at of [0, 250, 1000, 3000]) {
835 const delay = at - (Date.now() - t0);
836 if (delay > 0) await wait(delay);
837 frames.push({ at, label: await agentLabel(page), file: await shot(page, 'K24', `${label}-${at}ms`, `${label}, ${at} ms after the click: the agent lamp.`) });
838 }
839 return frames;
840};
841const activeWorkspace = (page) => page.locator('[data-workspace-tab][aria-selected="true"]').first().getAttribute('data-workspace-tab').catch(() => '');
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, ' ');

Callers 2

k24SituationsFunction · 0.85
k24Function · 0.85

Calls 4

agentLabelFunction · 0.85
waitFunction · 0.70
shotFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected