MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / markFocus

Function markFocus

e2e/src/timeline.ts:44–49  ·  view source on GitHub ↗
(runDir: string, window: TimelineWindow)

Source from the content-addressed store, hash-verified

42
43/** Record that the scenario is acting on `window` (deduped per run). */
44export const markFocus = (runDir: string, window: TimelineWindow): void => {
45 const timeline = read(runDir);
46 if (timeline.focus.at(-1)?.window === window) return;
47 timeline.focus.push({ at: Date.now(), window });
48 write(runDir, timeline);
49};
50
51/** Record a main-frame navigation (deduped against the previous URL). */
52export const markNavigation = (runDir: string, url: string): void => {

Callers 3

pushFunction · 0.90
withLocalServerFunction · 0.90
enterFocusFunction · 0.85

Calls 3

readFunction · 0.85
pushMethod · 0.80
writeFunction · 0.70

Tested by

no test coverage detected