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>
* 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
* 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
* 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.
* 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.
* 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
* 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>
* 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.
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.
* 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>
* 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
* 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
* 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
* 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
* 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.
`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>
* 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
* 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>
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>
* 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
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>
* 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.
* 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>
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>
"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>
* 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>
* 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
* 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
* 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
- 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>
* fix(cli): figma commands print manifest and folder text with visible escapes
figma asset prints a manifest row's id, path and description, and the <img> snippet built
from them. These lines, the index.md regeneration warning and the tokens 'wrote' line now go
through terminalText, so control characters show as visible escapes. The manifest file and the
returned records are unchanged.
* test(cli): run the figma escape fixtures where file names may hold control characters
* fix(cli): project folder names print control characters as visible escapes
check, info, compositions, benchmark, play, present and preview printed the
project folder name, and in places the project path, straight to the
terminal. A folder name can hold escape bytes on Linux and macOS, so a
received project could move the cursor, rewrite earlier lines, set the
window title or write the clipboard. Those lines now go through
terminalText(), as validate, snapshot, layout and lint already do. This
covers the preview summary, --status, --stop, --list and --kill-all lines,
and the check report path. The CLI's own colours stay, and --json output is
unchanged.
The play page also HTML-escapes the name in its title and footer, as the
present page does.
* fix(cli): preview --selection and --context print Studio text as visible escapes
The human output of preview --selection and --context printed the selected
element's label, source file, target and thumbnail URL, and the preview
server's project name, straight to the terminal. These come from the
composition or from whichever preview server answers, so control characters
in them could move the cursor, rewrite earlier lines, set the window title
or write the clipboard. They now go through terminalText(), as do the
failure messages these commands print. The CLI's own colours stay, and
--json output is unchanged.
* fix(cli): cloud get, list and delete print server fields as visible escapes
The human output of cloud get printed render fields from the server, such
as the failure message, title, composition and URLs, straight to the
terminal. A failure message can quote text from the rendered project, so
control characters in it could move the cursor, rewrite earlier lines, set
the window title or write the clipboard. cloud get, cloud list (rows and
the next-page token) and cloud delete now pass those fields through
terminalText(). The CLI's own colours stay, and --json output is unchanged.
* fix(inspector): the live inspection stamp gives the page only the generation id
prepareLiveInspection wrote the project's absolute path into the preview
page as window.__hfLiveInspection.project. Nothing in the page reads it, but
any composition script on that page could, which told it the account name
and folder layout. The page now gets only the generation id; the project
path stays with the host that prepared the page.
* fix(skills): locate.mjs keeps its grid font in a private per-run folder
locate.mjs drew its grid labels with a font at the fixed shared path
/tmp/locate-font.ttf. It used whatever file was already there and copied a
system font onto that path otherwise, following any link in its place. On a
machine shared with other accounts, someone else could plant that file
first, so the grid showed wrong numbers, a file appeared where they chose,
or every run failed.
The font is now copied into a folder made with mkdtemp (mode 0700) for each
run and removed when the run ends, so no file another account can create is
read or written. The skills manifest hash is regenerated.
* fix: escape the check report path and lint warnings, and harden locate.mjs font cleanup
check's report path notice and its not-recorded warning, and preview's
"Lint did not finish" warning, now print control characters as visible
escapes, like the other lines that carry the project path.
locate.mjs escapes the font path for ffmpeg's filter syntax, so a temp
folder with ':', ',', quotes or brackets in its name still works, and it
removes its font folder when the run is stopped by SIGINT or SIGTERM before
re-raising the signal.
play and present share one HTML escape helper.
* refactor(cli): keep the shared HTML escape helper within the comment budget
* fix: one HTML escape helper for the CLI, and locate.mjs escapes its font path in one pass
The sign-in callback page uses the shared escapeHtml helper, which now also
escapes single quotes.
locate.mjs escapes the font path for ffmpeg's option list and filtergraph
in a single replacement with the same result as before, and removes its
font folder on SIGHUP as well as SIGINT and SIGTERM.
* fix(cli): escape render output paths and cloud upload names
A finished render printed its output path and the desktop app hint raw.
The default output path sits under the project folder and is named after
it, so the folder name reached the terminal on every render. Batch renders
printed row output paths and the manifest path raw, and cloud render
printed the archive name in its upload progress lines and walked file
names in its left-out warnings raw. These lines now go through
terminalText() or terminalLines(). --json output is unchanged.
* fix(aws-lambda): run chrome-headless-shell 158 in the arm64 video image
The arm64 video image now installs Chrome for Testing's linux-arm64 chrome-headless-shell
158.0.8127.36, pinned by sha256 and fetched with curl -f, as the whole shell folder. The Lambda
Node 22 base has none of the shared libraries the shell links and no fonts, so the image installs
them from the base's repository at the same pinned release. The image sets
HYPERFRAMES_LAMBDA_CHROME_SOURCE and HYPERFRAMES_LAMBDA_CHROME_PATH itself, and the nested video
function no longer passes ChromeSource, which would override them. stage-arm64-image.ts stops
fetching the sparticuz arm64 pack and drops the ZIP's x86 sparticuz Chrome instead.
The x86 handler ZIP stays on @sparticuz/chromium, bumped from 148.0.0 to 153.0.0. It builds at
258,502,222 bytes unzipped, under Lambda's 262,144,000-byte limit and the 248 MiB in-house gate.
Two fixes for --source=chrome-headless-shell:
- build-zip.ts staged only the executable, which exits at launch without its ICU data and .pak
files. It now stages the whole shell folder at chrome-headless-shell-linux64/.
- Nothing set HYPERFRAMES_LAMBDA_CHROME_PATH, which src/chromium.ts requires for that source.
The SAM template and the CDK stack now set it to the bundled shell when ChromeSource asks for it.
Drops the unused @types/aws-lambda devDependency, which the dead-code audit reports whenever this
package's manifest changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ci(publish): build the Lambda arm64 video image on an ARM runner
The video stage now installs Chrome's system libraries with microdnf, so it runs code for arm64.
The pack job built that image on ubuntu-latest with no emulation, which it could do only while the
stage copied files. A new lambda-video-image job builds it natively on ubuntu-24.04-arm, from the
handler zip whose sha256 the zip job reported, and reports the OCI tarball's sha256. Pack downloads
that tarball, checks the sha256 against the job's, and pins it as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(aws-lambda): fit the comment ratchet and the package size budget
chromium.ts loses the two doc lines on BUNDLED_SHELL_DIR and BUNDLED_SHELL_PATH; the names and the
SAM template's comment already say what they are.
@hyperframes/aws-lambda's unpacked budget goes from 290,508 to 298,000 bytes. The package unpacks to
295,324 bytes, up from the shared chrome-headless-shell staging module the ZIP and image scripts now
import and from the README and docs that describe the two Chrome sources.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The engine ceiling moves from Beta 152.0.7977.30 to stable 158.0.8127.36, with its Chrome for
Testing digests. The places that installed `@stable` or an older pin follow it: the CI test
workspace, the regression test image, the k8s and Cloud Run examples, the CLI render image
(amd64) and the Lambda build hint. The motion-blur nightly keeps its pinned-versus-stable
comparison: the pin leg now uses the workspace's pinned shell, and a stable leg fetches stable.
The chat regression golden is regenerated on 158. Chrome 157 renders it pixel-identically to
158, so the previous golden recorded Chrome 152's paint of a background-clip:text phrase whose
word spans start at opacity 0.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(producer): a render that fails on a missing file says what was gone
* fix(producer): a failed look at what was missing never hides the render's own error
The missing-path probe now returns nothing when it throws, reads through at most four links and only
links that point into the temp root or the cache folder, names a removed folder by its own name, treats
a custom cache folder as the cache, and skips programs that could not start.
* refactor(producer): split the missing-path link walk into its own step