Commit Graph
2607 Commits
Author SHA1 Message Date
Michael Wang 2a24357338 fix(media-use): a manifest path naming a share or another root is refused without looking at it (#8437) 2026-11-22 02:13:04 +00:00
Miguel Ángel 826b4fcc69 test(cli): a missed late SVG image in snapshot says which wait came up short (#8435) 2026-11-22 02:04:44 +00:00
Michael Wang 0495a57f76 fix(media-use): refuse links under .media before reserving, writing or recording (#8327)
* 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.
2026-11-22 01:59:05 +00:00
Miguel Ángel 1aa4a785c8 chore: release v0.9.80 (#8414)
* 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
2026-11-22 01:40:53 +00:00
Miguel Ángel ec1839e4a1 fix(media-use): a project manifest's provider claim never writes a sound credit (#8410) 2026-11-21 23:34:05 +00:00
Michael Wang 4a5a5eb27e fix(cli): show copy file names in check progress lines as visible text (#8407)
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.
2026-11-21 23:03:59 +00:00
Miguel Ángel 8127bb8856 fix(cli): the compile cache lives only in the private HyperFrames cache folder (#8401) 2026-11-21 22:08:17 +00:00
Miguel Ángel c3d25a41f1 chore: release v0.9.79 (#8402) 2026-11-21 22:05:41 +00:00
Miguel Ángel 4e873f5a1d fix(media-use): a transcript cut named inside the project is never written through a linked folder (#8398)
* 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
2026-11-21 21:28:47 +00:00
Miguel Ángel e3a0797a33 fix(media-use): a manifest record whose path leaves the project is not reused or credited (#8396) 2026-11-21 20:57:38 +00:00
Miguel Ángel b950f3e1db chore: release v0.9.78 (#8368)
* 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
2026-11-21 19:50:15 +00:00
James RussoandClaude Fable 5.2 a9d98e2a4b test(cli): check that files running before a command print values only through the text helpers (#8393)
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 19:48:42 +00:00
Miguel Ángel 66156bf35e revert(cli): hold the proxy fix and its Node floor for v0.10.0 (#8391)
* 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
2026-11-21 19:08:49 +00:00
James RussoandClaude Fable 5.2 c75860ddf3 fix(cli): show control characters as text in notices that repeat a failure reason (#8387)
* 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>
2026-11-21 18:49:19 +00:00
Miguel Ángel c7a6c9315b test(cli): the probe-cache snapshot test asks 16 times of an 8 s clip, not 40 of 20 s (#8390) 2026-11-21 18:15:07 +00:00
Miguel Ángel 2960319749 fix(cli)!: a proxy that drops the connection fails a request once instead of retrying nonstop (#8311)
* 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
2026-11-21 18:05:46 +00:00
James RussoandClaude Fable 5.2 f01d1f32b0 fix(core): show text direction marks and typed text as visible text in printed lines (#8384)
* 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>
2026-11-21 18:03:26 +00:00
Miguel Ángel 63e700de1e fix(studio-server): history keeps undo steps in order when file times and its clock disagree (#8383)
* 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
2026-11-21 17:55:42 +00:00
Miguel Ángel d78e9a5f33 fix(cli): check reports its own deadlines as check_deadline (#8378)
* 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
2026-11-21 16:41:56 +00:00
Miguel Ángel 93f2fcca49 fix(cli): Windows kills end only the process the CLI started, never a reused pid (#8382)
* 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
2026-11-21 16:25:40 +00:00
James RussoandClaude Fable 5.2 88f7d4052d fix(cli): print check and validate setup commands on their own lines (#8381)
* 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>
2026-11-21 15:45:43 +00:00
James RussoandClaude Fable 5.2 281f1a2a48 fix(cli): print capture setup commands on their own lines (#8374)
* 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>
2026-11-21 14:20:57 +00:00
James RussoandClaude Fable 5.2 9a618b798f fix(cli): read --json before the command name the same as after it (#8365)
* 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>
2026-11-21 13:31:44 +00:00
Miguel Ángel 4145572625 fix(cli): a catalog gap report hands back a line only when every shell reads the query as text (#8373)
* 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
2026-11-21 13:28:56 +00:00
James RussoandClaude Fable 5.2 7fcc4909b4 fix(cli): show control characters as text in capture, figma, usage and notice lines (#8366)
* 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>
2026-11-21 12:35:15 +00:00
Miguel Ángel f74e1545c0 fix(cli): a received-files write waits out a held lock instead of failing on Windows (#8367)
* 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
2026-11-21 11:33:20 +00:00
Miguel Ángel a2df08e49e fix(cli): a stop reads the process tree from /proc on Linux, so load cannot hide a child (#8363)
* 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
2026-11-21 10:38:23 +00:00
James RussoandClaude Fable 5.2 8bc73a0bd3 fix(cli): show control characters as text in init, skills and render printed lines (#8352)
* 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>
2026-11-21 10:19:08 +00:00
James RussoandClaude Fable 5.2 7a1163fc98 fix(cli): show control characters as text in more commands' printed lines (#8353)
* 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>
2026-11-21 09:49:55 +00:00
Miguel Ángel a86ad213ed chore: release v0.9.77 (#8360) 2026-11-21 08:25:09 +00:00
James RussoandClaude Fable 5.2 90e00558a5 fix(cli): show control characters as text in the remaining commands' printed lines (#8357)
* 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>
2026-11-21 08:23:19 +00:00
Michael Wang 48382cf360 docs(media-use): put the writeRecipeFiles doc comment back above writeRecipeFiles (#8358)
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.
2026-11-21 07:56:07 +00:00
James RussoandClaude Fable 5.2 a744f5c3f5 fix(cli): show control characters as text in four more commands' printed lines (#8346)
* 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>
2026-11-21 06:45:37 +00:00
James RussoandClaude Fable 5.2 af0664c8f5 fix(cli): show control characters as text in cloudrun and cloud printed lines (#8350)
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>
2026-11-21 06:27:45 +00:00
James RussoandClaude Fable 5.2 eaec4f4ad9 fix(cli): show control characters as text in the lambda commands' printed lines (#8348)
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>
2026-11-21 06:27:43 +00:00
James RussoandClaude Fable 5.2 7a91dc9fe9 fix(cli): show control characters as text in sign-in, account status and preview lines (#8347)
* 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>
2026-11-21 06:27:41 +00:00
James RussoandClaude Fable 5.2 9937baee1e fix(cli): show control characters in more command messages as text (#8344)
* 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>
2026-11-21 06:06:43 +00:00
James RussoandClaude Fable 5.2 efd04c3b81 fix(cli): show control characters in service reply messages as text (#8345)
* 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>
2026-11-21 05:57:56 +00:00
Miguel Ángel bf966b0cf3 chore: release v0.9.75 (#8343) 2026-11-21 04:47:22 +00:00
Miguel Ángel 4a50fb2798 fix(cli): writes into a project folder never follow a link already there (#8334)
* 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
2026-11-21 03:36:53 +00:00
Michael Wang 056a13e28e fix(media-use): read recipe freeze sources only as regular files (#8325)
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.
2026-11-21 02:20:22 +00:00
James RussoandClaude Fable 5.2 183bc10807 fix(cli): show control characters in failure messages as text (#8336)
* 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>
2026-11-21 02:04:59 +00:00
Miguel Ángel 80d968a94c chore: release v0.9.74 (#8338) 2026-11-21 01:44:02 +00:00
Michael Wang 9e3fb696c0 fix(media-use): media writes replace a link at the output name instead of following it (#8324)
* 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.
2026-11-20 23:44:54 +00:00
James RussoandClaude Fable 5.2 2ed4a141eb fix(cli): a model name that every object carries is an unknown model (#8319)
* 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>
2026-11-20 23:18:35 +00:00
Michael Wang 0012c1cb88 fix(share): hold an unprompted share in a received folder to the review it read (#8322)
* fix(share): hold an unprompted share in a received folder to the review it read

In a folder that came from someone else, a share that asks nothing now still
passes the review id it read, or none, to the run. A review record written in
between is then refused.

The skill says to ask before passing --review. The refusal for a changed review
says how to share the folder as a new review. A comment says what the
first-share step does now.

* docs(skills): name the review link only when it exists
2026-11-20 23:04:03 +00:00
Miguel Ángel 047bd87dc9 chore: release v0.9.73 (#8277)
* chore: release v0.9.73

* docs(release): add main's later fixes to the v0.9.73 notes

* docs(release): add main's newest fixes to the v0.9.73 notes

* docs(release): add main's latest fixes to the v0.9.73 notes
2026-11-20 17:32:37 -05:00
Michael Wang 19253b3c86 fix(core): give the preview bundler the render's expansion budget (#8306)
* fix(core): give the preview bundler the render's expansion budget

The preview bundler inlined every sub-composition mount with only a depth
limit, so a few small files that mount each other many times assembled a
page without bound. The producer's expansion budget now lives in core, and
the bundler charges every mount and the scripts and styles generated for
it to that budget, and checks each file's size before reading it. Studio
preview shows the refusal instead of falling back to the raw page, whose
mounts the browser would expand the same way.

* refactor: drop comments the names already carry

* test(core): give the preview fan-out budget test a 30 s timeout

The flake gate saw it pass 9 of 10 runs under CPU contention, timing out
at the default 5 s. The neighbouring scoper bound tests use 30 s too.
2026-11-20 21:22:17 +00:00
Miguel Ángel 5f024e34e2 fix(studio): thumbnails of compositions with no code of their own load in under a second (#8316)
* fix(studio): thumbnails of compositions with no code of their own load in under a second

Both thumbnail paths (the CLI's preview server and Studio's dev server) waited up to 5 s for
a GSAP timeline before shooting a card. A composition with no script never registers one, so
each of its cards took the full 5 s, and the route shoots one card at a time, so the third
card came at about 16 s.

The wait cannot simply go: a composition may register its timeline late, in a timer or a
load handler, after the runtime is ready, and shooting it then shows the wrong moment.

So the preview route now marks the page a thumbnail loads when nothing on it can register a
timeline: no script but Studio's own (the runtime, GSAP core, an import map, the registry
line), no inline event handler, frame, template or child composition loaded at run time, and
no Studio motion. A marked page is shot once the runtime is ready. Every other page is held
for its timeline exactly as before.

The rule lives once, in studio-server, and both thumbnail paths wait on it.

fails without the fix: "is skipped for a composition with no code of its own" and "holds for
a composition whose script registers its timeline late"
(packages/studio-server/src/routes/preview.thumbnailMark.test.ts), "thumbnailSeekReadyInBrowser"
(packages/studio-server/src/helpers/screenshotClip.test.ts), "hasAuthoredCode"
(packages/studio-server/src/helpers/authoredCode.test.ts), and "holds a thumbnail's shot on
the thumbnail readiness rule" (packages/cli/src/server/studioServer.test.ts and
packages/studio/vite.browser.test.ts).

* test(studio-server): the thumbnail mark test builds its page from elements, not parsed text

The test read the served page back through DOMParser and innerHTML to hand its metas to the
readiness rule, which code scanning reports as DOM text reinterpreted as HTML. It now finds
the served page's meta tags with the compiler's own tag scanner and creates each one as an
element, so no text is parsed as markup.

Also adds a row to the code check's table: a script inside an inline SVG counts as code.

fails without the fix: "is skipped for a composition with no code of its own"
(packages/studio-server/src/routes/preview.thumbnailMark.test.ts) still fails when the route
writes no mark.
2026-11-20 21:19:26 +00:00
Michael Wang 39fa5ae9d2 fix(cli): share confirms an existing review before changing it in a received folder (#8315)
* fix(cli): share confirms an existing review before changing it in a received folder

* fix(cli): share asks before changing a review while a share is still in progress
2026-11-20 20:38:03 +00:00