* test(studio): a lane drag in a sealed preview restacks and saves its z-index
* fix(studio): a lane drag in a sealed preview saves the stacking change it implies
* test(studio): format the sealed restack test and skip a clip with no stored z-index
* fix(studio): dragging a layer in a sealed preview's layers panel restacks it
* fix(studio): a sealed layer drag restacks nothing from a malformed sibling reply
* chore(studio): drop a doc line the comment check counts against the stack base
* fix(core): a sealed preview's own videos load with CORS, so colour grading and audio effects work
* style(core): fit the sealed media note within the line limit
vertical.md put every word between 168 and 1330 px on 1080x1920, and
captions.md put portrait captions about 600-700 px from the bottom. The
safe areas `check` has warned about since #7680 (packages/core/src/
safeAreas.ts) are narrower: scaled to 1080x1920, TikTok is clear from
240 to 1260 px, Reels from about 269 to 1248 px and Shorts from 288 to
1248 px, and TikTok's right edge steps in to 780 px below 840 px. Text
placed by the references got outside_safe_zone warnings on all three.
Both references now give the band all three leave clear (288-1248 px
down, 120-888 px across, 780 px below 840 px) and say how to check a
single platform.
Fixes#8256
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The run summary now escapes the BGM provider and SFX count carried over
from audio_meta.json. A malformed audio_meta.json now stops the engine
through its usual error line, which escapes the file's bytes, instead of
an uncaught exception.
* test(studio): a lane drag in a sealed preview restacks and saves its z-index
* fix(studio): a lane drag in a sealed preview saves the stacking change it implies
* test(studio): format the sealed restack test and skip a clip with no stored z-index
* fix(studio): a sealed lane drag restacks from the z-index the preview paints
A sealed preview's lane drag read the clip's z-index from the store, which holds only inline styles and the value
from when the drag began. It now asks the frame for the computed z-index when the gesture runs, so a stylesheet's
value and an earlier queued gesture's save both count.
* 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(engine): extract frames from MP4s whose seek index leaves out the first keyframe
Some MP4s (seen from VLC's muxer) carry a sync-sample table (`stss`) that omits the
IDR at the start of the file. Browsers ignore `stss` and play them normally, but every
ffmpeg input seek before the next listed keyframe fails ("Cannot find an index entry
before timestamp ... could not seek to position"), so frame extraction for that window
comes back empty. With JPEG frames the encoder then opens at EOF and ffmpeg exits
non-zero, surfacing as "Video source could not be decoded"; with PNG it exits 0 and
surfaces as zero_output. In distributed renders this fails every chunk that samples the
clip before its second keyframe, and the render fails after the retry pass.
When extraction's stderr shows that seek failure, stream-copy the source into a fresh
MOV (same packets, no re-encode; the muxer rebuilds the index from the packets' keyframe
flags), clear any partial frames, and extract once more from the copy. The copy lives in
its own temp dir and is removed afterwards; the result still reports the original srcPath.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(engine): keep the seek-index retry under the file's comment share
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(media-use): duck, cut, transcribe and dither lines show control characters as escapes
audio-duck, transcript-cut, transcribe and dither now print file paths, error
messages and text read from project files through terminalText, so control
characters show as visible escapes. Multi-line errors keep their line breaks.
--json output is unchanged.
* fix(media-use): audio engine, wait-bgm and heygen-tts lines show control characters as escapes
audio.mjs, wait-bgm.mjs and heygen-tts.mjs now print voice ids, line text, bgm paths, status
messages and voice names through terminalText. audio-duck also escapes the --target value it
prints. Files written to disk keep their values as they are.
* fix(media-use): audio engine error lines show control characters as escapes
die() in audio.mjs, wait-bgm.mjs and heygen-tts.mjs escapes each line of its message, so a
broken request or meta file and HeyGen's refusal text print control characters as escapes.
wait-bgm reports a broken audio_meta.json through die(). The bgm launch line, the
audio_meta.json path and the heygen-tts output paths are escaped as well.
* fix(core): selector alias values escape '<' so style text can't end early
Attribute values that the compiler copies into selector text, such as an
SVG reference alias's rewritten value or a composition or root id in a
scope selector, are written inside a <style> element. A '<' in one could
close that element early. These values now write '<' as the CSS escape
\3c , which reads back as the same character, so each selector still
matches the same elements.
* test(core): name the '<' escape tests for what the escapes guarantee
The selector escapes write '<' as \3c themselves, so selector text cannot
end its style element even when the CSS is serialized without postcss's
own </style escaping. The test names and comments now say that.
* 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.
* test(core): pin that selector alias growth is charged while it is built
* fix(core): keep SVG selector alias growth within the compile budget
* fix(core): charge renamed-id selector growth too, and settle to the sheet's real growth
* chore(core): regenerate the selector alias installer and page goldens
* test(core): build the alias growth fixture from compiler-written aliases
* test(core): trip the alias budget only in the selector rewrite
* test(core): rewrite an escaped id with exactly its growth left
* fix(core): charge a renamed id against the token it replaces
* chore(core): regenerate the selector alias installer and page goldens
`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>
`mediaTimeWindow` parsed `data-start` with a raw `Number()`. A negative start,
which `readClipTiming` clamps to zero, produced a window entirely before zero,
so `mediaWindowsOverlap` reported no overlap and `video_audio_double_source`
missed a real duplicate-audio error.
Read the window through `readClipTiming`, the same contract parser the renderer
uses, and keep returning null when the start or duration is unknown.
* test(producer): compile-time remote downloads are capped, timed and stop with the render
* fix(producer): cap compile-time remote downloads, give them one deadline and stop them on cancel
* test(producer): size-limit tests stay under the remote download cap
* test(producer): count a refetched bundled script; start the deadline at the first download
* test(producer): export the download deadline so its test reads the real value
* fix(producer): count every downloaded script and start the download deadline at the first one
* test(producer): read the host's script copy once however many tags name it
* fix(producer): read a bundled script once per address; document the compile download limits
* test(producer): size the shared-font test from the 64 MB limit so it reaches it
* test(producer): cancel a render while it compiles
* fix(producer): cancelling a render stops its compile
* test(producer): compile-time remote downloads are capped, timed and stop with the render
* fix(producer): cap compile-time remote downloads, give them one deadline and stop them on cancel
* test(producer): size-limit tests stay under the remote download cap
* test(producer): count a refetched bundled script; start the deadline at the first download
* test(producer): export the download deadline so its test reads the real value
* fix(producer): count every downloaded script and start the download deadline at the first one
* test(producer): read the host's script copy once however many tags name it
* fix(producer): read a bundled script once per address; document the compile download limits
* test(producer): size the shared-font test from the 64 MB limit so it reaches it
* 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
* test(producer): pin that an alias list written into authored HTML never reaches the CSS
* test(producer): keep the alias test's comment within the line limit
* fix(core): read selector aliases only from what the compiler wrote
* test(producer): cover root-only pages and kept templates for authored alias lists
* fix(core): also drop authored alias lists from kept templates and root-only renders
* fix(core): walk each kept template once when dropping authored alias lists
* chore(catalog): mirror the font requests of pages carrying the new alias installer
* fix(core): leave linkedom template content uncopied when dropping authored alias lists
* fix(core): drop authored alias lists inside SVG elements named template
* test(core): count every element the alias cleanup processes
* fix(core): visit each element once when dropping authored alias lists
* chore(core): regenerate the inline selector alias installer
* test(core): refresh page goldens for the regenerated installer
* fix(inspector): the page runtime carries no wide characters, so inspected pages stay one byte a char
* fix(core): the inlined page runtime carries no wide characters either
* fix(core): the wide-character check lives in core, which every runtime build image copies
* 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>
* test(core): svg attribute selectors rewrite in linear time over many fragment references
* perf(core): index a scope's svg reference aliases once by id and attribute name
* refactor(core): split svg attribute alias lookup out of the selector rewrite
* test(core): refresh page goldens and font mirror for the smaller inlined svg alias code
* test(core): repeated references to one svg symbol rewrite in linear time
* test(core): count alias checks so repeated svg references show quadratic work
* perf(core): index each repeated svg reference alias once
* fix(studio): a sealed preview's timeline shows its text clips' words and look
A sealed preview's timeline rows come from the clip list the film sends, which
carried no text, so its text clips drew as blank rows. The film now sends each
plain text layer's words (up to 200 characters) and look, read by the same rule
Studio uses for its own rows, and the row shows the words as plain text.
* fix(studio): check a sealed clip's text on arrival, cap only what the film sends
Studio now takes a clip's text from the film's message only when every field is
text within the film's limits; otherwise the clip keeps its row without words.
The 200-character limit applies to the film's message alone, so an open
preview's own rows keep their full words as before.
* test(parsers): a tab in a concat list path is kept
* fix(parsers): refuse only what ends a concat list line, so a tab in a folder name renders
* test(parsers): a real ffmpeg join keeps every clip under a tab-named folder
* test(parsers): end ffprobe options before the joined file in the tab join test
Layering walked the whole host data-variable-values map and the whole render
overrides map for every declarer and every composition id, so many declarers
that emit nothing were never charged to the size budget. Each declarer now
walks only its own declared ids, and a host's overlap with the overrides is
computed once per host. Output is unchanged except that names inherited from
Object.prototype are no longer treated as declared.
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* test: a concat list refuses paths whose folder name holds a line break
* fix(engine): write every concat list through one writer that refuses control characters
* test: name the line-break folders without slashes; skip them on Windows
* Revert "fix(engine): write every concat list through one writer that refuses control characters"
This reverts commit 97d482340a.
* Reapply "fix(engine): write every concat list through one writer that refuses control characters"
This reverts commit 7d723fd276.
* test(engine): a chunk concat list ends with a newline
* fix(producer): raise the sub-composition expansion limit to 64 MB
A render may now inline up to 64 MB of composition HTML across its mounts,
four times the 16 MB per-file limit, so a project with several large
distinct scenes is no longer refused.
* test(producer): size the generated-output tests from the expansion limit
Four size-limit tests used fixed counts that only exceed the current
32 MB expansion limit. Compute each count from
MAX_EXPANDED_COMPOSITION_BYTES so the tests keep reaching the limit if
it changes.
* test(studio): a sealed preview keeps its loading overlay while media buffers
* fix(studio): a sealed preview's loading overlay waits for its media through the editing port
* fix(studio): Studio never calls a preview ready before its asset check has answered
* refactor(studio): the preview asset wait lives outside the Player component
* refactor(studio): the preview asset wait moves to its own file, out of the Player
* refactor(studio): one asset-wait state; a sealed frame's first check is its own value
* fix(studio): a sealed preview's missing asset answer is asked again, never taken as ready
* fix(studio): a closed preview frees its editing-port client
* style(studio): keep the client comment under the line limit
* 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
* fix(studio): a sealed preview keeps Studio's size, move and turn edits after a seek
* fix(studio): a sealed preview reapplies Studio's edits on each frame it seeks or plays to
* fix(studio): build the sealed reapply script from constants, never a caller's value
* fix(studio): a sealed preview reapplies Studio's edits after a redraw at the same time
* fix(studio): serve the seek reapply only into sealed preview documents
* chore(core): shorten the redraw count's doc line
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(studio): a script edit re-runs in place in a sealed preview, without a reload
* fix(studio): a sealed timing edit takes the saved clip and film timing along with its soft reload
* test(studio): the sealed timing test checks a soft reload was sent before reading it
* refactor(studio): the sealed soft reload code passes the quality audit without suppressions
* chore(core): core's size budget makes room for the sealed preview's frame-side editing code
Main already measured 1,841,737 bytes packed against a 1,830,000 budget; the sealed soft reload brings it to 1,855,277. Budgets follow SIZE_BUDGET_HEADROOM: ceil(1,855,277 x 1.05) packed, ceil(4,665,659 x 1.05) unpacked.
* fix(core): a sealed timing edit is not skipped when a nested file's root repeats a clip's id
* test(engine): a capture page whose tab Chrome closed while opening it is replaced once or named
* fix(engine): reopen a render page whose tab Chrome closed while opening, or say why it can't
* style(engine): keep openPage's comment to two lines
* fix(studio): a sealed resize saves its anchor on the route GSAP moves it by
* style(studio): format the sealed resize test and drop the new comment lines
* fix(skills): the launcher's floor is 0.9.67
The skill launcher now refuses any HyperFrames release older than 0.9.67, the latest
release and the oldest one the HyperFrames Desktop app will accept. This applies to
--cli-version, to HYPERFRAMES_STANDALONE_CLI_VERSION, to a helper started with --script and
to a plugin manifest pin. A standalone install's default npx range starts at 0.9.67. Every
plugin manifest in this repo already pins 0.9.67.
The skills guide and the plugin installation reference name the new floor.
* docs(skills): the launcher floor stays at or above Desktop's oldest accepted release
Desktop currently accepts 0.9.66 and later, and a pending Desktop change raises that to
0.9.67. The launcher's comment now says its floor stays at or above the oldest release
Desktop accepts, without naming a Desktop version, so it stays true when Desktop moves.
* fix(studio-server): proxy piece list names only the pieces, not their folder
The chunked proxy join wrote each piece as an absolute path into a concat
list in the system temp folder. A line break in a folder name above the
project ended an entry early, so the rest of the path could be read as
further list lines naming other local files.
The list now sits in the cache folder beside the pieces and names each
piece by its own generated file name, and ffmpeg runs the join from that
folder. No project or folder name is written to the list, so folder names
with line breaks, quotes, '#' or '?' all join only the copy's own pieces.
The CLI publish bake uses the same join and is covered too.
* fix(studio-server): a proxy copy lock dated ahead of the clock no longer holds waiters
A copy waits for another process's lock while that owner's lock, temp and
piece files keep changing. The newest modified time was taken as is, so a
lock or temp file dated in the future looked like fresh progress forever,
and the waiter held its transcode slot without end. Preview and the
publish bake could then wait with nothing running.
Each file's modified time now counts as no later than the moment the
waiter first saw that time. A file dated ahead of the clock ages from
then, so the waiter gives up within the stall window and frees its slot.
An owner that keeps writing still sets a fresh time on each change and is
waited for exactly as before, even beside a future-dated file.
* fix(studio-server): keep the absolute piece list and default folder on Windows
On Windows the working folder is part of the DLL search, and a long cache
folder path may fail to start a process from it. Windows paths cannot hold
a line break, so the piece join there lists absolute piece paths again and
starts ffmpeg from the default folder. Elsewhere it still runs from the
cache folder with bare piece names.
The line-break test now injects an unquoted list line, so the old join
really pulls in another file, and it checks that the copy holds none of that
file's frames. A spawn test checks the join's folder and bare list name.
* fix(studio): the property panel shows a sealed preview's animated values
* fix(studio): a sealed preview's panel shows rotation and scale from tweens that only turn or grow
* feat(engine): renders send page traffic through the egress proxy in HYPERFRAMES_CAPTURE_PROXY
* feat(engine): render media downloads go through the egress proxy in HYPERFRAMES_CAPTURE_PROXY
* fix(engine): downloads through the egress proxy keep undici's fetch, so gzip text and headers work
* 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.