mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 11:26:02 +00:00
* fix(cli): project folder names print control characters as visible escapes check, info, compositions, benchmark, play, present and preview printed the project folder name, and in places the project path, straight to the terminal. A folder name can hold escape bytes on Linux and macOS, so a received project could move the cursor, rewrite earlier lines, set the window title or write the clipboard. Those lines now go through terminalText(), as validate, snapshot, layout and lint already do. This covers the preview summary, --status, --stop, --list and --kill-all lines, and the check report path. The CLI's own colours stay, and --json output is unchanged. The play page also HTML-escapes the name in its title and footer, as the present page does. * fix(cli): preview --selection and --context print Studio text as visible escapes The human output of preview --selection and --context printed the selected element's label, source file, target and thumbnail URL, and the preview server's project name, straight to the terminal. These come from the composition or from whichever preview server answers, so control characters in them could move the cursor, rewrite earlier lines, set the window title or write the clipboard. They now go through terminalText(), as do the failure messages these commands print. The CLI's own colours stay, and --json output is unchanged. * fix(cli): cloud get, list and delete print server fields as visible escapes The human output of cloud get printed render fields from the server, such as the failure message, title, composition and URLs, straight to the terminal. A failure message can quote text from the rendered project, so control characters in it could move the cursor, rewrite earlier lines, set the window title or write the clipboard. cloud get, cloud list (rows and the next-page token) and cloud delete now pass those fields through terminalText(). The CLI's own colours stay, and --json output is unchanged. * fix(inspector): the live inspection stamp gives the page only the generation id prepareLiveInspection wrote the project's absolute path into the preview page as window.__hfLiveInspection.project. Nothing in the page reads it, but any composition script on that page could, which told it the account name and folder layout. The page now gets only the generation id; the project path stays with the host that prepared the page. * fix(skills): locate.mjs keeps its grid font in a private per-run folder locate.mjs drew its grid labels with a font at the fixed shared path /tmp/locate-font.ttf. It used whatever file was already there and copied a system font onto that path otherwise, following any link in its place. On a machine shared with other accounts, someone else could plant that file first, so the grid showed wrong numbers, a file appeared where they chose, or every run failed. The font is now copied into a folder made with mkdtemp (mode 0700) for each run and removed when the run ends, so no file another account can create is read or written. The skills manifest hash is regenerated. * fix: escape the check report path and lint warnings, and harden locate.mjs font cleanup check's report path notice and its not-recorded warning, and preview's "Lint did not finish" warning, now print control characters as visible escapes, like the other lines that carry the project path. locate.mjs escapes the font path for ffmpeg's filter syntax, so a temp folder with ':', ',', quotes or brackets in its name still works, and it removes its font folder when the run is stopped by SIGINT or SIGTERM before re-raising the signal. play and present share one HTML escape helper. * refactor(cli): keep the shared HTML escape helper within the comment budget * fix: one HTML escape helper for the CLI, and locate.mjs escapes its font path in one pass The sign-in callback page uses the shared escapeHtml helper, which now also escapes single quotes. locate.mjs escapes the font path for ffmpeg's option list and filtergraph in a single replacement with the same result as before, and removes its font folder on SIGHUP as well as SIGINT and SIGTERM. * fix(cli): escape render output paths and cloud upload names A finished render printed its output path and the desktop app hint raw. The default output path sits under the project folder and is named after it, so the folder name reached the terminal on every render. Batch renders printed row output paths and the manifest path raw, and cloud render printed the archive name in its upload progress lines and walked file names in its left-out warnings raw. These lines now go through terminalText() or terminalLines(). --json output is unchanged.