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

Function readTimeline

e2e/scripts/pr-media.ts:96–101  ·  view source on GitHub ↗
(artifact: Artifact)

Source from the content-addressed store, hash-verified

94 );
95
96const readTimeline = (artifact: Artifact): Timeline | null => {
97 if (!artifact.runDir) return null;
98 const timelinePath = join(artifact.runDir, "timeline.json");
99 if (!existsSync(timelinePath)) return null;
100 return JSON.parse(readFileSync(timelinePath, "utf8")) as Timeline;
101};
102
103const urlSegments = (artifact: Artifact, duration: number): ReadonlyArray<UrlSegment> => {
104 if (basename(artifact.path) !== "session.mp4") return [];

Callers 1

urlSegmentsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected