mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
* fix(cli): start helper programs only from trusted PATH folders on every platform At startup the CLI and its worker entry points rewrite their own PATH to absolute folders outside the working directory, on every platform, so a program planted in the project (a relative or empty PATH entry, node_modules/.bin, or any folder inside the cwd) is never run by name. Child processes inherit the trimmed PATH. media-use reuses the same helper instead of its private copy. doctor resolves docker with findTrustedExecutable and runs it by absolute path with execFileSync, no shell. A docker found only in the project's node_modules/.bin is reported as not found, with a hint that it was skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cli): keep stale-install detection and Windows system folders after PATH trim The stale hyperframes check for reverse start reads the PATH the process started with, so an older copy in the project's node_modules/.bin is still reported. It only reads the filesystem and never runs that copy. On Windows the trim now keeps %SystemRoot%, System32, System32\Wbem and the WindowsPowerShell folder even when the CLI starts inside them, so an elevated prompt in C:\Windows\System32 can still run cmd, taskkill, tasklist, powershell and tar. PATH entries wrapped in double quotes are unquoted before the check instead of being dropped. PATH order is kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cli): resolve the empty-PATH placeholder only when it is needed Computing it at import threw in test environments where import.meta.url is not a file URL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>