Files
James 655b598ad8 fix(cli): unblock CI typecheck, skip ffmpeg test when absent, fix build:copy
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>
2026-04-18 22:33:47 +00:00
..
2026-04-18 20:24:03 +01:00
2026-04-18 20:24:03 +01:00
2026-04-18 20:24:03 +01:00