mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-14 13:27:13 +00:00
PHASE 0b/0c per PLAN.md — music gets its own command surface (Option A,
cleaner UX than `--type music` flag on sfx). Implementation reuses sfx's
auth + analyze modules verbatim, has its own state cache (writes to
assets/music/ not assets/sfx/), and passes type="music" to the same
searchSounds cloud endpoint that backs sfx.
New files:
- packages/cli/src/commands/music.ts (dispatcher, mirrors sfx.ts)
- packages/cli/src/commands/music/{search,add,inspect,state}.ts
- skills/website-to-hyperframes/references/background-music.md
Wired into:
- cli.ts (music subCommands entry)
- help.ts ("AI & Integrations" group)
- step-5-build.md (paragraph linking background-music.md)
Smoke-verified:
- music search "moody ambient pad" returns real catalog tracks (live API)
- music --help shows search/add/inspect
- music inspect resolves clips from assets/music/
- sfx tests still pass (12/12), CLI typecheck clean, full build green