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

Function actAt

e2e/viewer/src/SessionPlayer.tsx:112–118  ·  view source on GitHub ↗
(time: number)

Source from the content-addressed store, hash-verified

110 const ready = castDuration !== null && videoDuration !== null && Number.isFinite(duration);
111
112 const actAt = (time: number): number => {
113 for (let i = acts.length - 1; i >= 0; i -= 1) {
114 const act = acts[i];
115 if (act && time >= act.from - 0.001) return i;
116 }
117 return 0;
118 };
119 const activeAct = acts[actAt(t)];
120 const activeWindow = activeAct?.window ?? "terminal";
121

Callers 2

SessionPlayerFunction · 0.85
applyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected