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

Function markRecordingStart

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

Source from the content-addressed store, hash-verified

33
34/** Record that `window`'s recording clock starts now. */
35export const markRecordingStart = (runDir: string, window: TimelineWindow): void => {
36 const timeline = read(runDir);
37 write(runDir, {
38 ...timeline,
39 anchors: { ...timeline.anchors, [window]: Date.now() },
40 });
41};
42
43/** Record that the scenario is acting on `window` (deduped per run). */
44export const markFocus = (runDir: string, window: TimelineWindow): void => {

Callers 5

makeBrowserSurfaceFunction · 0.90
makeCliSurfaceFunction · 0.90
ptyTheaterFunction · 0.90
withLocalServerFunction · 0.90

Calls 2

readFunction · 0.85
writeFunction · 0.70

Tested by

no test coverage detected