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

Function enterFocus

e2e/src/timeline.ts:93–101  ·  view source on GitHub ↗
(
  runDir: string,
  window: TimelineWindow,
  ms?: number,
)

Source from the content-addressed store, hash-verified

91 * focus of a run never beats (nothing to linger on).
92 */
93export const enterFocus = async (
94 runDir: string,
95 window: TimelineWindow,
96 ms?: number,
97): Promise<void> => {
98 const previous = read(runDir).focus.at(-1)?.window;
99 if (previous !== undefined && previous !== window) await beat(ms);
100 markFocus(runDir, window);
101};

Callers 5

stepFunction · 0.90
makeCliSurfaceFunction · 0.90

Calls 3

readFunction · 0.85
beatFunction · 0.85
markFocusFunction · 0.85

Tested by

no test coverage detected