Commit Graph
2573 Commits
Author SHA1 Message Date
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
James RussoandClaude Fable 5.2 5e1008124b chore(cli): retire nano-banana-2 and gpt-image-2.5 from media-use generate (#8314)
* chore(cli): retire nano-banana-2 and gpt-image-2.5 from media-use generate

Both have a newer model that replaces them. Asking for either now stops before any
request is sent and names the model to use instead. The price table, the --model help
and the media-use skill reference no longer list them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* chore(cli): drop a redundant comment

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): check a media-use generate request before pricing it

A request the command would refuse is refused with its own message, whether or
not --max-credits is given.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 20:28:52 +00:00
Michael Wang be3d218074 fix(media-use): never write recipe files through links (#8257)
* fix(media-use): never write recipe files through links

A project folder can carry symbolic links inside .media/recipes/<name>/.
When recipe.json there did not parse, freezing a recipe under that name
reused the folder and wrote each recipe file through the link, which
could create or overwrite files outside the project. The user-tier copy
then carried those links into ~/.media/recipes, and using the recipe
copied them into other projects.

Freezing and using a recipe now refuse a link at .media, .media/recipes
or the recipe folder before anything moves or is written. Each recipe
file is written as a new file and renamed into place, so a link at its
name is replaced, never followed. Only the files a freeze just wrote
reach the user tier, and using a recipe imports only its regular recipe
files. Using a recipe also refuses a recipe whose frame.md is a link,
and replaces a frame.md link in the project instead of writing through it.

* fix(media-use): read user-tier recipe files through one no-follow handle

Checking a file with lstat and then reading it by path leaves a gap in
which the file can be swapped for a link. Importing a recipe from the
user tier and copying its frame.md now open each file once with
O_NOFOLLOW, and check that the open handle is a regular file before
reading it.

* fix(media-use): refuse recipe file links where Node has no O_NOFOLLOW

Node has no O_NOFOLLOW on Windows, so opening a recipe file there
followed a link and read its target. readRegularFile now checks the
path with lstat first and refuses anything but a regular file. After
the open, the handle must be a regular file with the same device and
inode that lstat saw, so a link swapped in between is refused on every
platform. O_NOFOLLOW stays as an extra guard where it exists, and
O_NONBLOCK keeps a FIFO from blocking the open.

A test passes 0 as the no-follow flag to check the Windows path on any
platform, and another checks that a FIFO is refused without blocking.

* refactor(media-use): compare the path with the handle after opening

readRegularFile now opens first, then requires that lstat of the path
shows a regular file with the same device and inode as the handle. A
link has its own inode, so it never matches the file an open reached
through it, with or without O_NOFOLLOW. O_NONBLOCK keeps a FIFO from
blocking the open. Checking after the open, instead of before it,
leaves no check-then-open gap on the path.
2026-11-20 18:47:47 +00:00
Michael Wang 1d5403525d fix(share): a first share only lands on a review it created (#8282)
Registration now reports whether the server created the project (201)
or answered one already bound to the record's studioProjectId (200).
A first share that gets an existing project back is refused with
review_project_changed and restores the record, before any audience
change, link reopening or upload. A retry after a lost registration
reply still reaches its project: the record holds the saved
registration and the project is still private, with its link never
turned off and no ready version.

Studio now passes the review the person confirmed through the share
job. The service refuses when the folder's review differs from it, and
shareForReview refuses a record whose project is not the confirmed one,
so every path to setReviewAccess, the first audience and addVersion
checks the confirmed review.
2026-11-20 17:07:42 +00:00
Wenbo ZhuandClaude Opus 5.5 4e3c960457 fix(cli): preview answers unknown paths with an inert refusal, not the Studio shell (#8161)
* fix(cli): preview answers unknown paths with an inert refusal, not the Studio shell

Studio routes by location.hash only, yet the preview server answered every
unknown GET with the Studio shell (200, same origin, query kept). An OAuth
redirect to the preview port (/oauth/callback?code=...&state=...) therefore
re-mounted the project, and project script read the code from the address.

The shell is now served only at / and /index.html. Any other path gets a
plain-text 404, and a request carrying `code` or `state` at any path (entry
and preview routes included) gets a plain-text 400. Both carry a sandbox CSP
(opaque origin), COOP same-origin, frame-ancestors 'none' / X-Frame-Options
DENY, nosniff, no-referrer and no-store, and never echo the request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(studio): preview's Vite modes refuse an OAuth return too

`preview` from a source checkout (dev mode) and with the local studio
(HYPERFRAMES_LOCAL_STUDIO=1) run packages/studio/vite.config.ts, whose SPA
fallback served the Studio shell at /oauth/callback?code=... with no COOP or
sandbox. devProjectApi now refuses a `code` or `state` at any path as its
first middleware, with the same inert response as the embedded server.

The refusal moves to @hyperframes/studio-server so both servers share one
helper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 14:31:56 +00:00
Ular Kimsanov e16c681dc0 fix(media-use): remove only the temp folders media-use made, and never fail on cleanup (#8267)
* fix(media-use): remove only the temp folders media-use made, and never fail on cleanup

discardPrivateOutput now removes a folder only if privateOutputPath made it in this
run, instead of matching names against the raw temp setting, and a removal error no
longer turns a finished or failed generation into a cleanup error. The hosted video
and favicon providers use the same helper, so resolve removes their folders too.
Provider tests remove the folders they create; the resolve test also redirects
TEMP and TMP, so it checks the cleanup on Windows as well.

* test(media-use): prove resolve can remove the hosted video and favicon folders

* test(media-use): name the folder this run did not make plainly
2026-11-20 06:26:07 +00:00
Ular Kimsanov 2c3427089c fix(share): ask before sharing from Studio and bind each action to the confirmed review (#8268)
* fix(share): ask before sharing from Studio, naming the review it changes

A composition's script runs on Studio's origin by default, and a received
folder's .hyperframes/review.json can point Studio at an existing review.
Every share action except sign-in now asks the person first, naming the
review (its link), who can open it, the workspace and whether project files
are uploaded. The request carries the manage link of the review that was
shown, and the server refuses it with share_target_changed when the
project's review no longer matches, so nothing is shared or changed.

* fix(share): bind each Studio share action to the review id the person confirmed

Studio now gets the id and title of the review an action reaches, including a folder
whose record names a review it never opened (a received folder can ship one). The
confirmation names that review, its workspace and who can open it, and says plainly
when a folder arrives already linked. Actions carry the confirmed id; a missing one is
refused as confirmation_required and a different one as share_target_changed, and
after that refusal Studio drops the earlier choice. The docs describe the
confirmation and that project files are included only when chosen.

* fix(share): show the review title on one quoted line in the confirmation

* fix(share): say a linked share also sets who can open it, and check the new state fields

* fix(share): separate the question from the details and say when a title is unknown

* docs(share): name the review record without a path the citation check reads as a file
2026-11-20 06:02:05 +00:00
Miguel Ángel ce0932e047 fix(studio): a video with no size of its own keeps its file's size while a lighter copy plays (#8233)
* fix(studio): a video with no size of its own keeps its file's size while a lighter copy plays

The preview plays a smaller copy of a large video, and a video the film gives no
size took the copy's size: a 1920x1080 file in a 1080p film drew at 456x257 at
Quality 1/2 and 608x342 at Full, while a render draws it at 1920x1080. While a
copy plays, a rule keyed by the copy's address now gives the video its file's
shown size (its pixels' aspect and turn included), at zero specificity so any
size the film's own CSS sets still wins. Studio's media facts now carry the
pixel aspect and turn, read by the same code the engine uses.

* fix(studio): size only a video the film leaves unsized while its copy plays, as Chromium lays it out

A video whose box is its file's own size (300x150 before the file loads) gets a
plain width and height at that size while a smaller copy plays, through a
preview-only mark and a rule keyed by mark and copy address. A video the film
sizes in either direction is left to the film's CSS, so authored aspect
ratios, box sizing, containment and earlier rules lay out as before. The size
is the original's decoded size when the browser has it, else its facts with
narrow pixels stretching the height as Chromium does. ffprobe is asked for the
side data list, which 4.x also knows, in Studio and in the CLI. A video shown
with object-fit none or scale-down keeps its file.

* fix(studio): an unsized video keeps its size when its copy is made cold behind a still

* test(core): a held video gets its file back when waiting for its copy throws

* fix(core): a copy wait that throws counts as not served, so a held video gets its file back

* test(core): each proxy test resets its own runtime's copy reporting, so none reports into the next

* test(core): the stale-runtime test runs past the report throttle, as a finished test does

* test(core): a framed proxy test's runtime must not report its copies into the next test

* test(core): every proxy test runtime loaded fresh has its copy reporting reset after the test
2026-11-20 05:57:26 +00:00
Miguel Ángel cf28a00053 chore: release v0.9.72 (#8265) 2026-11-19 22:02:17 -05:00
Miguel Ángel db5950c004 fix(engine): renders under a CPU quota get their workers back (#8262)
* fix(engine): renders under a CPU quota get their workers back

* fix(engine): the usable CPU count stays within the host's online CPUs
2026-11-20 00:46:36 +00:00
Miguel Ángel c28cda322b fix(cli): describe the sign-in return test in plain words (#8259) 2026-11-19 23:04:55 +00:00
Miguel Ángel 8cb1945c90 chore: release v0.9.71 (#8251)
* chore: release v0.9.71

* chore: release notes for v0.9.71 link the commit after the first cut

* chore: release notes for v0.9.71 add the two commits merged after the review
2026-11-19 22:11:45 +00:00
Miguel Ángel 3f3a6205a7 test(cli): the phone-clip offload tests pass when run together (#8071) 2026-11-19 20:38:52 +00:00
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
James VarahandClaude c2911adc8d fix(cli): report an empty catalog --type= as a usage error (#8130)
`catalog --type=` passed an empty string, which the truthiness check
read as no filter: it listed every item and exited 0. Any given value
other than block or component is now a usage error (exit 2), as #7669
made it for other bad values.

Follow-up to #7678 review.


Claude-Session: https://claude.ai/code/session_01M3Xbw44WYGyVqg4AjkzFxj

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-19 16:03:36 +00:00
Miguel Ángel d106f9c8c7 fix: stop crashing on SVG elements named template (#8241)
* test: pages holding an SVG element named template

* fix: read template content only from HTML templates

* test: SVG elements named template in previews, inline mounts and lint

* fix: treat only HTML templates as scenes and inline mounts

* test: scene ids next to SVG elements named template

* fix: take scene ids only from HTML templates
2026-11-19 12:27:21 +00:00
WaterrrForeverandClaude Opus 5.5 e383abf475 fix(media-use): re-freezing a recipe archives only under an integer version (#8201)
* fix(media-use): re-freezing a recipe archives only under an integer version

freezeRecipe archived the previous folder at `${dir}@v${previous.version}`,
taking version straight from the old recipe.json and removing that path
recursively before renaming the folder onto it. recipe.json is committed
with the project, so a received project could set version to a path such
as "1/../../../../victim", ship a promo@v1 folder for it to walk through,
and the next freeze of that name deleted a folder outside the project and
moved the recipe folder into its place.

Only a positive integer version is trusted now; anything else archives as
v1, the same fallback the version bump already used. Both media-use copies
of recipe-store.mjs carry the change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(media-use): never replace an existing recipe archive on re-freeze

A malformed recipe.json version fell back to slot 1, so re-freezing removed a
real promo@v1 archive before renaming the current folder into it. The archive
slot is now the claimed version only when that archive does not exist yet;
otherwise it is the first number above every archive on disk. Nothing is
removed any more. The version is checked against Number.MAX_SAFE_INTEGER
before either folder moves, so a freeze never writes a version the next
freeze would reject.

Refs SECOPS-2882

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 07:26:36 +00:00
Miguel Ángel 592a9feff9 chore: release v0.9.70 (#8234)
* chore: release v0.9.70

* chore: release notes for v0.9.70 link the 3 commits after the first cut
2026-11-19 06:55:39 +00:00
WaterrrForeverandClaude Opus 5.5 36b60d18b4 fix(media-use): recipe, prefs and SFX lines show control characters as escapes (#8202)
recipe.mjs and prefs.mjs printed recipe.json and preferences.json values
raw: names, workflows, approval dates, brief values, confirmed-in project
names, and the known-recipe list in an unknown-name error. Both files
travel with a project, so an escape sequence in them could rewrite or
hide earlier output, set the window title or write the clipboard in
terminals that allow it. The SFX provider's empty-search line repeats the
intent, and its Openverse fallback line repeats a network error.

Each of those lines now goes through terminalText, like the resolve and
adopt lines beside them. --json output is unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 05:10:03 +00:00
terencecho e5283f63b9 fix(render): keep segment checkpoints in the local cache (#8137)
* fix(render): keep segment checkpoints in the local cache

* fix(producer): read checkpoints through a validated descriptor

* fix(render): enforce cache and audio sidecar input policies

* fix(render): recapture unreadable segment checkpoints

* chore(parsers): remove redundant concat comment
2026-11-19 05:00:25 +00:00
Michael Wang 8ace95ce94 fix(cli): a project .env provider key gives way only in a received project (#8099)
* fix(cli): a project .env provider key gives way only in a received project

Your own or a cloned project's .env provider keys are used as set again, as
the docs describe. Capture no longer drops a project .env vision key next to
a shell credential, and the audio scripts no longer drop an own project's
Gemini key next to the shell's other Gemini key. A received project's keys
still give way to your own credential, and the notes that name a project
key when it is used stay.

* test(cli): check the note for a cloned project's key; say when a received key is ignored
2026-11-18 22:45:29 +00:00
James RussoandClaude Opus 5.5 3229c3a8da chore: release v0.9.69 (#8220)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:28:58 +00:00
James RussoandClaude Opus 5.5 e0470b0add feat(capture): accept a short-lived Vertex access token for image captioning (#8215)
Capture's image captioner can now authenticate to Vertex AI with
HYPERFRAMES_VERTEX_PROJECT_ID plus HYPERFRAMES_VERTEX_ACCESS_TOKEN, as an
alternative to a service-account JSON. A caller that mints a short-lived
token per run no longer has to hand the CLI a long-lived key. The token is
used as given and never refreshed; when both are set, the token is used.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 21:46:06 +00:00
Miguel Ángel 3ae9e7302d chore: release v0.9.68 (#8214) 2026-11-18 20:50:58 +00:00
Michael Wang e83ddaed28 fix(cli): escape remaining project and sign-in text, ignore stateless callbacks (#8177)
* fix(cli): batch render, cloud render and publish print project text as visible escapes

A batch render printed each failed row's error straight to the terminal. The
error can quote file names and attribute values from the project, so control
characters in them could move the cursor, rewrite earlier lines, set the
window title or write the clipboard. That line, and the manifest path in the
batch header, now go through terminalLines() and terminalText(), which keep
real line breaks and show every other control character as an escape.

cloud render does the same for the media lines it offloads, the "also stays in
the zip" line, the largest-files list, the aspect-ratio detection line and the
names of fonts that are not on this computer. publish does the same for the
composition path in the blank-entry hint and for the publish failure message.

The manifest file and --json output are unchanged.

* fix(cli): sign-in callback ignores requests without the login's state

The browser sign-in listens on a local port for the redirect back from the
sign-in page. It acted on an error in that redirect before checking the
state value, so any page or local process that reached the port could end a
pending sign-in and put its own text in the terminal. A request with a
missing or wrong state also ended the sign-in.

Now only a request carrying the login's state can end it. Any other request
gets the same 400 page as before and the listener keeps waiting for the real
redirect or the timeout. A sign-in that is cancelled or fails on the sign-in
page still carries the state, so it reports the failure as it does today.

The error text from the redirect, and the "Sign-in failed" line, now show
control characters as visible escapes.

* fix(cli): variable issues and oversize file list print control characters as escapes

Variable issue lines from render and render --batch printed the variable ids
and allowed options from the project's data-composition-variables as they
were. Each line now goes through terminalText(), so control characters,
line feeds included, show as visible escapes. The issue objects and their
messages are unchanged for other callers.

When a cloud render project is over the upload limit, the list of its largest
files now escapes each path, line feeds included, so a file name cannot add a
line of its own.

Font names in the cloud render notice are looked up as written and escaped
only when printed, so a name with a trailing control character keeps its
look-alike suggestion.

* fix(cli): a callback from another sign-in says the terminal is still waiting

The 400 page for a callback without the login's state now tells the person to finish signing in
from the newest tab, since the terminal keeps waiting instead of ending the login.
2026-11-18 17:19:49 +00:00
DeanandClaude Opus 5.5 559499453b fix(cli): reject bad billing --timeout and --needed values as usage errors (#7910)
* fix(cli): reject bad billing --timeout and --needed values as usage errors

Closes #7909

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(cli): share one positive-integer flag parser across billing, compare and share

Refs #7909

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 16:33:18 +00:00
wonjangandClaude Fable 5.2 72cb2bd9b6 fix(cli): a render that failed on a video file says to check the file, not to try Docker (#8083)
The generic "Try --docker for containerized rendering" hint was printed
under every failed render. When the failure is a video source FFmpeg could
not read, a missing file or a 404 URL, a container reads the same source
and fails the same way. Those three now get a hint about the file.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 16:11:41 +00:00
wonjangandClaude Fable 5.2 7a63b10d76 fix(check): a number with a separator counts as one word in line reading time (#8084)
"1,080" and "3.5%" were split at the separator and counted as two words,
so a two-word line such as "1,080억 달러" was timed as three and its
shortest allowed hold went from 0.4 s to 1.05 s.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 16:11:38 +00:00
Miguel Ángel 4a73363322 chore: release v0.9.67 (#8185) 2026-11-18 14:56:46 +00:00
Wenbo ZhuandClaude Opus 5.5 fc289b0dfc fix(cli): play and present answer unknown paths with an inert refusal (SECOPS-2642 part 3) (#8160)
* fix(cli): play and present answer unknown paths with an inert refusal (SECOPS-2642 part 3)

An OAuth return that lands on the play or present port was a 404 document on
the same origin as the composition frame, so project script could read its
?code=&state= through a frame, a popup or the authorize redirect. Unknown
paths, missing composition files and any request carrying code or state now
get a fixed text/plain 404 on an opaque origin (CSP sandbox) that cannot be
framed and drops its opener (COOP same-origin).

play's app setup moves into an exported buildPlayApp so tests can serve it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cli): trim the inert refusal's comments to the package share

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 14:55:42 +00:00
Miguel Ángel a82ee10c68 feat(producer): a failed render says which file was gone again, looking only in its own folders (#8168)
* feat(producer): a render that fails on a missing file says what was gone again

Restores the diagnostic the previous commit on main took out, as it was; the commits after it confine what it looks at.

* test(producer): render failure diagnostics never probe a path from error text or outside the render

* fix(producer): probe a missing path only from a real error, inside the render's folders

describeMissingPath now reads only the path Node set on an ENOENT error, never
one quoted in a message the page can write, and looks on disk only under the
render's temp root, extract cache or work folder. Any other path is named from
its text, so a network share is never contacted and the facts cannot tell an
existing path from a missing one.

* test(producer): a missing-path probe never passes an outside link or climbs above its folder

* fix(producer): walk down from the render's own folder and check each link before following it

* build(producer): give the packed size budget its 5% headroom with the missing-file diagnostic back
2026-11-18 13:41:39 +00:00
Miguel Ángel 3db2da06c9 fix(cli): the very-many-files received-render test stops timing out on Windows (#8179)
* test(cli): time where the very-many-files case spends its time on each runner

* fix(cli): the received-render size tests cap the walk instead of writing 20,000 entries
2026-11-18 12:48:24 +00:00
Miguel Ángel 1a82f6e9d6 chore: release v0.9.66 (#8172) 2026-11-18 12:11:13 +00:00
Miguel Ángel 94d06663b1 revert(producer): a render that fails on a missing file stops naming what was gone, for now (#8174)
* revert(producer): a render that fails on a missing file stops naming what was gone, for now

This reverts commit cfea8cfff5 (#7955). The detail comes back in a follow-up that only looks inside the folders the render owns.

* revert(producer): name the files the #7955 revert removes in the deletion guard
2026-11-18 11:34:57 +00:00
James RussoandClaude Opus 5.5 ed3f05a05b fix(aws-lambda): pin the shell ZIP route, gate ZIP headroom, match arm64 fonts to x86 (#8170)
- build-zip --source=chrome-headless-shell stages only the repo's pinned
  build (managedChromeVersion) and only when its folder matches the pinned
  digest (isPinnedHeadlessShell), instead of the newest folder in the cache.
  The folder cannot fit a ZIP function, so lambda deploy refuses
  --chrome-source chrome-headless-shell up front on either arch, and the
  docs say the arm64 video image is where the shell runs.
- build-zip prints the headroom under the unzipped gate, and a new
  "Lambda handler ZIP" workflow builds the ZIP on PRs that touch the code
  it bundles, so growth fails before merge rather than in the release job.
- The arm64 image keeps @sparticuz/chromium's fonts and fonts.conf from the
  handler ZIP (FONTCONFIG_PATH=/var/task/fonts) instead of liberation-fonts,
  so text falls back to the same fonts as on x86. The image workflow renders
  a mixed-script page on both arches and fails when any line resolves to
  different platform fonts.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 10:21:01 +00:00