mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-14 18:01:20 +08:00
655b598ad8
Three fixes on the audio-fft PR:
1. Typecheck. `bandValues` was inferred as `Float32Array<ArrayBuffer>[]`
via `Array.from(..., () => new Float32Array(n))`, which TS 5.7+
rejects when assigning the `Float32Array` returned from
`computeFftBands` (narrower buffer type parameter). Annotate explicitly
as `Float32Array[]`.
2. Test on CI. The `decodes real fixture audio with ffmpeg` test was
hard-failing on CI runners that don't have ffmpeg on PATH
(`spawnSync ffmpeg ENOENT`). Add a `hasFfmpeg()` probe and use
`it.skipIf(!hasFfmpeg())`. The CLI's `doctor` command surfaces the
missing-binary case for real users; tests shouldn't hard-fail on it.
3. build:copy. `cp -r src/templates/_shared dist/templates/` was failing
on re-builds because dist retained a stale `AGENTS.md` symlink to
`CLAUDE.md` from an earlier build when those files were the same
content. Prepend `rm -rf dist/{studio,docs,templates,skills,docker}`
so the copy starts from a clean slate and is idempotent across
builds.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>