mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-16 06:19:21 +00:00
Adds packages/cli/src/vst/sidecar.ts: resolves the vst-host sidecar command (HF_VST_HOST_CMD override -> monorepo uv run -> bare command on PATH), spawns `<cmd> serve --port 0`, and resolves once stdout announces VST-HOST-LISTENING port=<N> (30s timeout with an `uv tool install` hint). startVstSidecar()/getVstSidecar() are a per-process singleton. Wires sidecar teardown into all three `hyperframes preview` launch paths: registerChildTreeShutdown's signal handler (dev + local studio modes) and embedded mode's own SIGINT/SIGTERM cleanup + last-resort exit handler, since embedded mode has no child process to register with registerChildTreeShutdown. stopVstSidecar() is a safe no-op when no sidecar is running, so this holds even though the sidecar itself is started lazily by a later API route (Task 10), not by preview.ts.