* refactor(core): keep the SVG element and attribute allowlist in its own module
* test(studio): clipboard writes refuse markup a scripting preview reads differently
* fix(studio): paste and duplicate write only allowed markup unless it comes from the same file
* test(core): inline SVG with its namespace declarations pastes from another file
* fix(core): paste keeps SVG namespace declarations and checks xlink:href as a link
* chore(cli): regenerate the media-use SVG sanitizer from its moved allowlist
* test(cli): the doctor output test prints rows without running every machine check
* test(cli): call the row printer directly in the doctor output test
* test(cli): a render's encoder failure or crash names its code for Desktop
* fix(cli): a crashed or encoder-failed render tells Desktop its code
* fix(cli): an encoder failure is named by its encoder class before a file error
* test(cli): a bad source clip or a full disk is not named an encoder exit
* fix(cli): only the encoder's own failures are named encoder exits, file codes first
* fix(cli): a usage error or a --json render keeps stdout free of the code line
* fix(media-use): refuse links under .media before reserving, writing or recording
A received project could carry links at .media, at a type folder, at the
next asset name or its .tmp name, or at the preferences store's temp
names, and resolve or prefs record wrote through them to files outside
the project.
- ownMediaDir now checks every folder down to the type folder, making
each one level at a time, before the lock, the allocator, the record
append or a project preference write touches anything inside it.
- The allocator ignores ids past nine digits, so a planted huge id can't
push it back onto a name the project holds, and it skips any name that
already exists.
- The asset writers and the LUT .tmp writers create new files only.
- The preferences store writes through replaceFile, a random temp name
created exclusively and renamed into place.
Both copies of manifest.mjs and prefs-store.mjs change together.
* test(media-use): read the preferences file through one no-follow handle
The test checked the file's type and then read it by path, which CodeQL
reports as a check-then-use race. Open it once without following a link
and check and read through that handle.
* fix(media-use): keep a failed write's error when replaceFile can't remove its temp file
The preferences store now writes through replaceFile. Its old write made
temp cleanup best-effort, so a cleanup error never hid the write error,
and the store's tests guard that. replaceFile now does the same.
* fix(media-use): leave freezeUrl's write as it was
CodeQL's http-to-file-access rule flags every write of downloaded bytes,
and main already carries that alert on this line. Adding the wx flag only
re-keyed it as new. The reserved name freezeUrl writes is already checked
free in a checked folder, so the line goes back to main's text; copying a
local file keeps COPYFILE_EXCL.
* Revert "fix(media-use): leave freezeUrl's write as it was"
This reverts commit 1427e73ec2.
* chore: release v0.9.80
* chore: release v0.9.80 notes list the changes merged since the draft
* chore: release v0.9.80 notes list the changes merged since the draft
The still-copying heartbeat that check prints while it makes
browser-playable copies now passes the video's file name through
terminalText, so control characters show as escapes and the line stays
on one line. check --prepare-media prints a failed file's name the same
way, while the reason keeps its own lines.
The printed-text wiring test now also covers the media-copy progress
lines in checkBrowser.ts.
* fix(media-use): a transcript cut named inside the project is never written through a linked folder
* chore(skills): refresh the media-use entry in the skills manifest
* chore: release v0.9.78
* chore: list main's latest changes in the v0.9.78 notes
* chore: add the history fix to the v0.9.78 notes
* chore: list main's latest changes in the v0.9.78 notes
* revert(cli): hold the proxy fix and its Node floor for v0.10.0
This reverts commit 2960319749 (#8311), except a stale fallow-ignore line it had removed.
* chore(ci): allow the revert to delete the three files the proxy fix added
* fix(cli): show control characters as text in notices that repeat a failure reason
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): keep a usage hint on one line
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show control characters as text in prompt-log notices that repeat a failure reason
The source check now also reads clack.log calls. The five notices it
found (play and present port messages, the file approval notice) go
through terminalText.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): a proxy that drops the connection fails a request once instead of retrying nonstop
Raises the minimum Node.js to 22.19, which undici 8 requires.
* fix(cli): drop the comments the comment-share check refuses
* docs: the engine, producer and CLI skill say Node.js 22.19
* test(engine): the dropping proxy matches its host exactly
* chore(skills): rehash the CLI skill after the merge
* docs(skills): keep the CLI skill within its size budget
* chore(skills): rehash the CLI skill after the trim
* fix(core): show text direction marks as visible text in printed lines
The unknown-command line and its suggestion follow the same rule.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(cli): move the unknown-command text test to a file of its own
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(cli): write the direction mark in the test as an escape
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(cli): run the unknown command text test with the default test group
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): keep the suggestion under an unknown command on one line
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show typed and project text as visible text in every line cli.ts prints
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show typed text as visible text in the missing-value and extra-argument lines
The two argument checks that print their own line now show control
characters and line breaks in the repeated word as visible text. JSON
output keeps the message as built. A usage error from the argument
parser prints on one line like the CLI's own.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(studio-server): history keeps undo steps in order when file times and its clock disagree
* fix(studio-server): a removal made while a turn was closed can join that turn
* test(cli): both of check's deadlines report check_deadline
* fix(cli): check reports its own deadlines as check_deadline
* test(cli): the --timeout idle window also reports check_deadline
* test(cli): the Windows Chrome watchdog spares a pid that now runs another program
* fix(cli): the Windows Chrome watchdog kills only its own Chrome, never a reused pid
* test(cli): no preview lifecycle test may end a real process by a made-up pid
* fix(cli): the log-path preview test stops its made-up child through a fake, not a real kill
* test(cli): the Windows child reaper spares a held pid that now runs another program
* fix(cli): the Windows child reaper kills only the child it started, never a reused pid
* test(cli): the reaper's stand-ins outlive the fixture, so only the reaper can end them
* test(cli): the kill-failure test keeps processTree's other exports, which the reaper reads
* fix(cli): print check and validate setup commands on their own lines
When no browser can be set up on Linux ARM64, check and validate now
print the setup commands on lines of their own after the reason.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): split setup commands only for a stopped check
A finding with any other code keeps its whole message on one line.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): print capture setup commands on their own lines
When a capture fails because no browser can be set up on Linux ARM64, the
reason stays on the `Capture failed:` line and the setup commands this CLI
writes follow it on separate lines, instead of being joined to it with
`\x0a`. The design style extraction notice now keeps its reason on one line
like the other capture warnings. JSON output and BLOCKED.md are unchanged.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* refactor(cli): name the setup lines field for what it holds
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): read --json before the command name the same as after it
`hyperframes --json <command>` turned on the JSON failure answer but never
reached the command, so the command printed for people. The flag now moves
behind the command's own arguments before anything reads them, so both
spellings are one run: a command with a `json` flag answers in JSON, and a
command without one refuses the flag as it already did after its name.
A `--json` behind `--` is an argument and no longer turns the JSON failure
answer on.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(cli): follow --json to its one meaning in the entry-point cases
Rows that put --json before the command name to see a command's lines
for people now run without it, and the word-tier catalog case checks
the ready-to-paste command.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): drop init's handling for a JSON run that can no longer start
init has no JSON output, and --json is now refused in both positions before
init runs. The status holding, the JSON-run check and init's own answer text
had no caller left. Its tests run without --json and assert the printed line.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(cli): let the command table load preview where the studio packages are not built
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): read --json before `help <command>` the same as after it
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(cli): cover command words run with no subcommand in the --json table
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* test(cli): a catalog gap report never carries a query a shell would run
* fix(cli): a catalog gap report hands back a line only when every shell reads the query as text
* test(cli): type the envelope's query and expect sh double quotes around an apostrophe
* fix(cli): keep notices and capture warnings to the line they are printed on
A warning or failure reason from capture, and the command named in the
left-out-files notice, could carry a line break and start a line of
their own. They are printed as one line now, control characters shown
as text. The figma component, usage and measure hands status lines go
through the same helper.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* docs(cli): describe how printed lines show control characters and line breaks
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* docs(cli): name the commands whose printed lines changed
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* test(cli): a received-files write waits while Windows still holds the lock file
* fix(cli): a received-files write waits out a held lock instead of failing on Windows
* test(cli): the held-lock test matches the lock by its ending, as Windows spells temp short
* test(cli): a stop finds the process its child started even when pgrep fails
* fix(cli): a stop reads the process tree from /proc on Linux, so load cannot hide a child
* fix(cli): show control characters as text in init, skills and render printed lines
Lines that quote a name, a path, a flag value, a tool's reply or a caught
message now pass it through terminalText / terminalLines before printing.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(cli): build the expected init path with the platform separator
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): init prints only commands that run as written; one line per render progress update
A project name or old-flag value with a control character is left out of the
printed commands: the next steps say to go into the project folder, and the
renamed-flag examples use a placeholder. A render progress update whose text
has line breaks is written as one line.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): init answers a --json run with a refused value as given
With --json before the command name, a refused --resolution, a missing --video
or --audio file, a folder that is not empty and a failed example now report
the value as it was given in the answer, and as visible text on the terminal.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): init's renamed-flag refusals answer --json with the value as given
The two lines keep the example people see. A --json answer now names the flag
and the value as typed. One entry-point case per init failure line, and a check
that a new failure line cannot be added with a bare console.error.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): answer a --json init failure with the value exactly as given
A failure line's values now reach the answer untouched, line breaks and
trailing spaces included. Status lines wait until the project is made, so
a later failure still answers in JSON, and a run that asked for JSON no
longer stops to ask questions. Next steps for a folder name that cannot
be typed back are printed as bare commands under a prose line.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): hold a converted video's status lines with the rest of init's
With every answer given by flags, init printed the two lines about
converting a video through a spinner, apart from its other status lines.
At a terminal that drew on stdout ahead of the JSON answer to a failed
run. They now go the same way as the other status lines; the run that
asks questions keeps its spinner.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(cli): cover a failed project after a converted video in a JSON run
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show control characters as text in more commands' printed lines
tts, remove-background, media-treatment, telemetry, docs, update, add,
catalog, diff, doctor, clean, compare and grade-compare now pass quoted
names, paths, queries and caught messages through terminalText or
terminalLines at the line that prints them. JSON output is unchanged.
Refs #8336.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): remove-background --json reports a refused flag's value as given
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): docs answers a --json run with an unknown topic as given
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): telemetry, catalog and tts answer a --json run with the value as given
With --json before the command name these commands print their lines for
people, and the answer was built from those lines, so it carried the
visible form of a control character instead of the value.
- telemetry: an unknown subcommand and a preference that cannot be saved
- catalog: a query with no searchable words and a registry that cannot be read
- tts: a failed synthesis answers with the reason alone
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): explain the catalog gap report in words when the query cannot be printed as typed
The hint printed a ready-to-paste feedback command with the query in it. A
query with a line break or another control character was shown rewritten
inside that command, so pasting it reported different text. Both hint
branches now print the command only when it prints unchanged, and a plain
sentence otherwise. The JSON report_gap value is unchanged.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show control characters as text in the remaining commands' printed lines
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): capture --json reports a failed run's values as given
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(cli): match the capture output folder on any platform
The folder is printed as a full path, so its root and separators differ on Windows.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
readProjectSource was added between writeRecipeFiles and its doc comment, so the
comment sat above the wrong function. Comment move only, in both copies of
recipe-store.mjs, with the skills manifest regenerated.
* fix(cli): show control characters as text in five more commands' printed lines
browser, models, templates, transcribe and lambda policies now write
control characters out as visible text in the lines they print for
people: failure lines and the path, name and pattern lines. JSON output
and the bare path that browser path prints for scripts are unchanged.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show control characters as text in a transcription status line
The status line a runner reports beside the spinner is rewritten the same
way as the label next to it. The lambda policies change moves to the pull
request that covers the rest of the lambda commands.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show control characters in more local-input warnings, keep --json messages as given
The warnings printed by the browser cache and download code, the media
probe, the speech runtime loader and the optional-package installer now
show control characters as text. A failed --json run that takes its
message from stderr gets the text as given again.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(cli): run the probe case from an inline script
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
The cloudrun commands and the remaining cloud render and cloud delete
lines now pass quoted text through terminalText / terminalLines before
printing, including the adapter notice callbacks and the confirm
question. JSON output is unchanged.
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Notices, progress and status lines, the rows that name a stack, a bucket,
an address or a key, and failure rows now go through terminalText or
terminalLines before they are printed. JSON output is unchanged.
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show control characters as text in sign-in, account status and preview lines
Account names, plan and billing values, device codes, failure reasons and
file paths printed by auth login, auth status and preview now go through
the shared text helper, so a control character is shown as \xNN instead
of being sent to the terminal. JSON output is unchanged.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show control characters as text in the open-by-hand page address
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): cover the sign-out path line; account status rows move to the reply-text change
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show control characters in more command messages as text
beats, normalize-audio, lint, history, feedback and snapshot printed
failure text that can quote a file name or an attribute from the
project. Control characters in it now print as visible \xNN escapes,
the way the shared failure helper already prints them. JSON output is
unchanged.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show control characters as text in the same commands' progress and result lines
Names, paths and ids that these commands print while they work and when
they finish now go through the same display helper as their failure lines.
JSON output is unchanged.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): the repro upload line moves to the reply-text change
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show control characters in service reply messages as text
share, billing, auth refresh and publish printed failure text that can
come from a service reply. Control characters in it now print as
visible \xNN escapes, the way the shared failure helper already prints
them. JSON output is unchanged.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show control characters as text in the same commands' link and status lines
Links, plan names and progress steps that these commands print when they
succeed now go through the same display helper as their failure lines.
JSON output is unchanged.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show control characters as text in account status rows and a failed repro upload
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): writes into a project folder never follow a link already there
normalize-audio, media-use generate, transcript-cut, transcribe, the SFX credits and
heygen-tts no longer write through a link at their output or temp names. A .media/.lock
that is a folder or a link fails at once instead of spinning, and media-use type
folders are checked before they are made.
* fix(cli): every other in-place project write goes through the shared writer
upgrade's wrapper rewrite, media-treatment, beats, snapshot descriptions, motionShot and
measure extract no longer write through a link at their output.
* fix(cli): the credits file is read without following a link, in one step
* chore(skills): regenerate the skills manifest for the media-use change
* fix(cli): upgrade keeps a wrapper script's mode when it rewrites the pin
Also: transcript-cut makes its staging folder only once it encodes, and a linked media type
folder is named as a link rather than as leading outside the project.
* fix(cli): upgrade reads a wrapper's mode and text from one open file
freezeRecipe read frame.md, STORYBOARD.md and BRIEF.md by path, which
follows links. A received project could link one of them to a file outside
the project, and the freeze copied that file's content into the project
and user recipe folders.
The freeze now reads each source once through readRegularFile, before any
folder moves. A source that is a link or not a regular file stops the
freeze with nothing written. A missing BRIEF.md still freezes without a
brief skeleton.
* fix(cli): show control characters in failure messages as text
A failure message can quote text from the project, such as a file name or a
data-composition-src value. `compare`, `grade-compare` and `add` printed that
message to the terminal as it was, so a control character in the quoted text
reached the terminal instead of being shown.
- failCaught now prints the message with control characters written out
(\x1b, \x07, ...), the same way errorBox does. The --json envelope is
unchanged.
- The composition size limit messages write the file label the same way, so
every caller and the render server's logs get readable text.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* refactor(cli): carry the reason in the helper's name instead of a comment
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(media-use): replace a link at a generated media output instead of writing through it
heygen-tts writes its audio and --words file, and hyperframes generate writes
its download and its cropped video, by renaming a new file onto the output
name. A link already at that name is replaced, and the file it points at is
left alone. The crop is encoded in a private staging folder instead of at
<out>.fit<ext>.
* fix(media-use): replace a link at the Gemini, ElevenLabs and Kokoro voice outputs
Gemini now writes its wav with replaceFile. ElevenLabs and Kokoro write into
the private text folder, and the result then replaces the output, so a link
at the output name is replaced instead of followed. replaceFile removes its
temp file when the write fails, and retries a rename Windows briefly holds.
* fix(cli): a model name that every object carries is an unknown model
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* chore(cli): name the own-key lookup instead of commenting it
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>