MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / shouldInjectRuntime

Function shouldInjectRuntime

packages/player/src/shouldInjectRuntime.ts:33–38  ·  view source on GitHub ↗
(state: ProbeState)

Source from the content-addressed store, hash-verified

31}
32
33export function shouldInjectRuntime(state: ProbeState): boolean {
34 if (state.hasRuntime || state.runtimeInjected) return false;
35 if (state.hasNestedCompositions) return true;
36 if (state.hasTimelines && state.attempts >= 5) return true;
37 return false;
38}

Callers 2

startMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected