mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-14 18:01:20 +08:00
a9f4fad356
Four focused cleanups across engine, producer, and shader-transitions. * renderOrchestrator: replace `layers[layerIdx]!` non-null assertion with `for (const [layerIdx, layer] of layers.entries())` so both index and element come from the iterator and the assertion goes away. * engine/types.ts: remove duplicate `HfTransitionMeta` interface that arrived as a rebase artifact; the original definition above it is the one with documentation. The orphaned doc comment now correctly precedes `HfProtocol`. * shader-transitions/hyper-shader.ts: keep the local `HfTransitionMeta` declaration (the package ships as a standalone CDN bundle and must not depend on @hyperframes/engine) but add a sync comment pointing at the source-of-truth definition in engine/src/types.ts. * alphaBlit.ts + engine/index.ts: drop `export` from `getSrgbToHdrLut` and remove its re-export. It was only ever called by the internal `blitRgba8OverRgb48le`; the public surface was dead code. Verified with `bun run --filter @hyperframes/engine typecheck`, `bun run --filter @hyperframes/producer typecheck`, `bun run --filter @hyperframes/shader-transitions typecheck`, and `bun run --filter @hyperframes/engine test` (308 pass).