* fix(studio): a sealed preview's timeline names each file by its project path
* fix(studio): keep a file on another site at its own address in a sealed preview's timeline
* test(studio): a sealed shadow's failed reload says only what it reported
* fix(studio): a sealed preview's failed reload no longer blames a page that never loaded
* fix(studio): a failed reload names the restore seek when the timeline already arrived
* test(studio): keep the restore seek test's comment under 120 characters
* fix(engine): bound the seek-index rebuild copy to a single mov/mp4 source
The seek-index rebuild now runs only for a source ffprobe reads as one
mov/mp4 file, and reads it with the mov demuxer, so a playlist or list
input is never copied. The copy is capped with -fs at twice the source's
size plus 1 MiB; a copy that reaches the cap is removed and extraction
continues as it does without a rebuild. The copy also waits for an
extraction slot like other ffmpeg work.
* fix(engine): remove the seek-index copy folder when the copy throws
The stream copy now runs in try/finally, so its temp folder is removed
whenever the copy is not kept, including when ffmpeg fails to start.
* fix(studio): a scene edit swaps in place and a far scene mounts for selection in a sealed preview
* test(studio): a sealed undo that reloads marks its scenes stale first
* test(core): a selector with many unclosed openers must scan in linear time
* fix(core): scan a selector's quoted, bracketed and comment parts in one linear pass
* refactor(core): split the guarded scan's bracket and escape steps into small helpers
* test(core): page goldens carry the linear selector scan the pages now inline
* test(catalog): mirror the font subset requests the pages' new inline scan text makes
* style(core): wrap the guarded scan's doc comment under 120 columns
* 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