Files
hyperframes/skills/media-use/scripts
Michael Wang 77134c9273 fix(media-use): provider error lines print control characters as escapes (#8249)
* fix(media-use): provider error lines print control characters as escapes

The local video, local image, Codex image, local voice and HeyGen providers
print a helper tool's output or an error message when a step fails. Those
lines now go through terminalText, as the sound effect provider already does,
so escape and bell bytes from a prompt or a helper's output show as visible
\xNN escapes instead of reaching the terminal. Printable text, return values
and thrown errors are unchanged.

* fix(media-use): keep line breaks in escaped provider error lines

A helper's multi-line error output printed as one long line, because every
line break showed as a visible escape. A new terminalLines helper keeps each
line break (a CRLF pair counts as one) and escapes every other control
character, a lone carriage return included. Provider lines that can carry
multi-line helper output now use it.
2026-11-19 18:52:27 +00:00
..