Files
Vance Ingalls a9f4fad356 refactor(types): tighten type safety, dedupe HfTransitionMeta, prune dead LUT export
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).
2026-04-22 22:43:17 +00:00
..
2026-04-22 17:28:11 -04:00
2026-04-22 17:28:11 -04:00