* fix(parsers): text in a title or textarea can no longer close it when a document is saved
* fix(parsers): a '><' in a title or textarea attribute keeps the text out of the attribute
* fix(parsers): the title and textarea escape survives tree-shaking in a production build
* chore(cli): regenerate the bundled media-use svg sanitizer
* fix(parsers): the linkedom entry point publishes DOM types, not linkedom's
* chore(parsers): fit the parsers size budget to the linkedom entry point
parsers packs to 218.5 kB (was under 215.5 kB): tsup inlines the new linkedom entry point into index.js and hfIds.js, plus its own dist/linkedom.js and types. The budget sits 5% above the measured size, as the other budgets do.
* fix(engine): a page that keeps throwing looks up each error's throw site once, a few in all
* fix(engine): the throw-site bound adds no comment lines to the capture file
* fix(engine): the playlist walk reads an HLS list's segments as the stream ffmpeg joins
ffmpeg's hls demuxer feeds one inner demuxer the init section and then each
segment, and probes that joined stream. The walk judged each file alone, so
a list split across segments, or across the init section and a segment, was
missed.
The walk now reads the joined stream from every segment ffmpeg may start at,
behind the init section in force there, and refuses the list when any of
those streams reads as a list. AES-128 segments are decrypted with their key
first; a segment whose key cannot be read adds nothing, as in ffmpeg. Lists
that name byte ranges are refused, since the walk does not model them.
* fix(engine): the HLS stream check reads only judged files, inside the walk budget
The stream check now runs after every entry is judged inside the folder, so
a key or segment is read only once confinement and private-path checks pass.
Every open and read it makes is charged to the walk's byte budget, and each
starting stream is walked lazily instead of copied.
* fix(engine): decrypt with the first 16 bytes of a longer HLS key file, as ffmpeg does
* test(engine): give the HLS stream budget test room on a loaded runner
* perf(engine): read each HLS segment's opening bytes once across starting streams
Every stream that starts before a segment reads its opening bytes again, so a
list of many tiny segments opened each file once per earlier start. The first
kilobyte of each segment is now read once and reused.
* feat(producer): render a part of the film in one pass, in any format and frame rate
RenderConfig.range renders [start, end) seconds of the film as its own
video starting at 0. The window runs on the disk capture route, which
already takes a frame range, so mp4, webm, mov, gif and png sequences at
any frame rate get it; the layered route (HDR, shader transitions in webm
and mov) refuses a range until it supports one. Audio is mixed for the
whole film and cut to the window, so effect tails crossing into it stay.
Sequential disk capture now gives the engine the film frame and names the
file from 0, as parallel workers already did; before, a range starting
past 0 handed the engine window-relative frames.
* feat(producer): add the range window the first commit left out
The previous commit carried only the engine's captureFrame file index;
this adds RenderConfig.range, the frame window, the layered-route
refusal, the audio trim and their tests.
* refactor(producer): pass the audio window through without a branch
* test(engine): end the window test's ffprobe options before the path
* fix(producer): auto GPU mode renders in software when software captures faster
On a Windows laptop with an AMD Radeon 840M, auto mode picked the hardware
GPU, calibration measured screenshot capture at ~1.6 s/frame p95, and the
render dropped to 1 worker: a 10 s clip took 5m27s. Software WebGL
captured the same frames at ~0.28 s/frame on 5 workers.
When auto mode resolved to hardware and calibration measured it slow, time
software too and keep whichever is faster. Explicit --browser-gpu and
--no-browser-gpu are unchanged.
* test(producer): pin the auto GPU switch to software and document it
The orchestrator test drives a render in auto mode with a slow hardware
calibration and a faster software one, and checks that capture gets
browserGpuMode software and worker sizing uses the software estimate.
The CLI docs say auto can now switch to software after calibration.
* fix(producer): auto GPU mode measures its choice once per machine and reuses it
A render with --workers skipped calibration, so auto mode never compared
the GPU with software capture and stayed on a slow GPU path. Now render
measures the choice once per machine, GPU driver and HyperFrames version,
even with --workers, keeps it in gpu-choice.json under the config folder,
and later renders reuse it without calibrating.
* fix(producer): keep captureCost's comment share from rising
* fix(engine): a render keeps and logs the page's console and error text only up to a fixed size
* fix(engine): page text is cut where it is kept or logged, after it is classified
* chore(engine): raise the engine's packed size budget for the page-text bound
* fix(producer): a private project file stays private under any path spelling
A local render that brings in outside files read a media path spelled
outside the project, but resolving to a private project file, as an
ordinary outside file. isPrivateUnderAssetRoots can now also pick a
root by the real file, and the render callers ask for that when outside
files are allowed. The default still never looks at a file spelled
outside the project.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(engine): leave a path on another network root unread when judging private files
The real-path lookup added for renders that bring in outside files ran before the
network-root refusal in the duration probe. The lookup now answers no for such a
path without looking at it, so every caller keeps the order.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(producer): a private project file is not copied in under another path spelling
The outside-asset collector asked only whether a path's real file leaves the
project, so a private project file named by a path spelled outside the project
was copied into the compiled output. The refusal every collector passes through
now answers for that case too.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(engine): a media source that is no file is not looked up as one
With outside files allowed, a long inline data source reached the real-path
lookup, which walks one folder per slash when the path does not exist and ran
out of stack. The lookup now runs only for a path that exists.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): media commands read only local, self-contained inputs
The shared ffmpeg/ffprobe input guard kept the hls and concat demuxers on
the grounds that the playlist folder walk confines what a list names, but
only render and check/snapshot run that walk. Commands such as transcribe,
audio, media-use generate, remove-background, init, measure and
grade-compare handed the named file straight to ffmpeg, which then opened
whatever the list named, anywhere on disk.
- mediaInputFormatArgs leaves the playlist demuxers out unless the caller
passes { playlists: true } after walking the file (render's urlInput,
snapshot held videos, measure reads of a guarded file), and limits every
input that is not an http(s) URL to the file protocol.
- init, media-use generate and remove-background run the existing walker
on every named source before creating folders, copying, uploading or
probing.
- The remaining bare -i reads go through the guard; the diff frame
sequence, the local TTS probe and studio-server's media input args get
explicit local-file limits.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cli): walk playlists before every CLI read that allows them
Render's urlInputArgs keeps reading playlists because preflight walks every
source first, but the CLI calls the same engine probes on files nobody
walked: timeline, check, info, audio --element and remove-background.
- runFfprobe walks a local input first and throws PlaylistLeavesFolderError
for a list naming files outside its folder, so those probes fail as that
file's error instead of opening what the list names.
- check decodes a clip for silence with playlists allowed: the engine probe
before it already refused one that leaves its folder, so a contained HLS
clip keeps its audio findings.
- transcribe (every engine) and audio --read walk the input before hashing,
making cache folders or handing it on; media-use generate also walks
--motion and --audio. remove-background relies on the engine probe.
- One table test proves each up-front refusal fires before anything is
written, plus a listing-level check of the playlist opt-in.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore: trim comments the playlist changes added
Keeps each changed file at or under its comment share at the merge base:
the explanation moves into a name where it still matters.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cli): document the playlist refusal and walk file: URLs too
- docs: transcribe, audio, init --video/--audio and remove-background take a
single self-contained media file; playlists and concat lists are refused.
- The engine probe converts a file: URL to a path before the folder walk,
so a playlist named that way is refused like a plain path.
- init prints its refusal as literal CLI text, which keeps the printed-value
baseline.
- The probe tests wait for each spawn before starting the next, since the
walk now runs first and could reorder them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(engine): the playlist walk refuses entries with no path and lists behind an ID3 tag
ffmpeg reads an HLS or ffconcat entry that is empty, or starts with a query
or fragment, as the list's own path plus that suffix, so the walk judged a
different file than ffmpeg opens. Such entries are now refused, before or
after percent-decoding and trimming. Empty URI values are no longer dropped
before the check.
ffmpeg's probe and its demuxer can skip a leading ID3v2 tag's footer
differently, so they can read a tagged list from different bytes. The walk
now finds every offset either could start at, and refuses a file that reads
as a list (or, nested, as a manifest) at any of them.
* test(engine): describe the decoy helper without history
* chore: release v0.9.92
* chore: release v0.9.92 notes list the changes merged after the first cut
* chore: release v0.9.92 notes list the changes merged since the last cut
* chore: release v0.9.92 notes list the changes merged since the last cut
* chore: release v0.9.92 notes list the changes merged since the last cut
* fix(producer): a failed pipelined blend fails its render, not the server
The hybrid layered loop kept each in-flight blend+encode as a slot promise
and only awaited it when the slot came round again, so a blend, encoder or
cancel failure could sit as an unobserved rejection and end the process.
Slot promises now hand their failure to the loop, which wakes every worker
through the reorder buffer, settles every in-flight blend, and only then
fails the render.
Page transition entries are checked before use (finite times, string scene
ids, a registered shader or none), the transition registry and scene map
have no prototype, and the public server attributes any rejection that
still escapes a render to that render and fails it, instead of exiting.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(producer): report an escaped rejection as the render's failure, not a cancel
Aborting with the plain error sent the render down the cancel branch: job
status "cancelled" and no failure telemetry. The abort reason is now an
EscapedRejectionError, which the orchestrator treats like an audio failure:
the render fails with the original message. The server test now runs two
renders through a real unobserved rejection and the process handler.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(producer): trim comments added in the blend-failure fix
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(producer): address review on the blend-failure fix
- Bun stage-test mocks of hdrCompositor.js export sanitizeTransitionMeta.
- The rejection log carries the stack.
- EscapedRejectionError keeps the cause's code/owner/retryable fields.
- The hybrid-loop test covers a render that succeeds.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(engine): read ffconcat lists only as ffmpeg reads them
The playlist folder check now refuses an ffconcat list with a lone CR or
NUL, a file value in any form but a bare name or one fully single-quoted
name, text after the name, or an option line. A nested entry with no name
that exists no longer passes. Applies to project and downloaded media.
* test(engine): reach the ffconcat lone CR, NUL and backslash guards
The lone CR and NUL cases now sit after a comment line, so the trailing-text
rule no longer refuses them first, and a bare name with a backslash is refused
even when a file by that name exists.
* test(engine): keep the walk's entry budget test fast; fit the engine budget
The under-budget half now writes 100 files instead of 1000, since the walk
opens every entry and the test timed out under the flake gate's load. The
engine's packed budget rises by 360 bytes for the stricter ffconcat reader.
* chore(engine): leave headroom in the engine budget after main's engine changes
* test(cli): write the segment a kept snapshot playlist names
* fix(core): a looped sound plays its whole slot in preview
A looped audio clip in a slot longer than its source stopped after one
pass in preview: its window was capped at the source length, so media
sync paused it there. It now fills its authored slot, as the render does.
A playing loop is also no longer seeked a lap back at each wrap, which
left Safari holding it at the start for seconds.
* fix(core): a trimmed loop is seeked back to its trim-in at each wrap
A native loop restarts at the file's start, not at the clip's trim-in, so laps are folded out of the offset only for an untrimmed loop. A trimmed one is seeked back as before.
Chrome Stable moved to 158.0.8127.88. The managed shell, the render,
test, Cloud Run, Lambda and example images and the CI setup action move
with it, each with the archive or folder digest of the new build.
Signed: Rames Jusso
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(core): check never looks at a media file outside the project
* fix(parsers): a project file named with two leading dots counts as inside the project
* refactor(parsers): one containment check for composition srcs
* fix(cli): a received project's registry is fetched only from public addresses
* fix(cli): a received registry connects only to the address it checked, never via a proxy
* fix(cli): catalog search vectors download through the registry transport
* fix(cli): catalog downloads no search vectors from a received project's registry
* refactor(cli): add and catalog share their install printout
* fix(cli): the shared install header prints its verb as text
The compiler rewrote each remote media, image, background and font URL with replaceAll, passing the local path as a replacement string, so a $ sequence in it was read as a pattern. Each rewrite now passes a function, so the path is inserted literally; the 3D projection's inlined data URLs get the same. A downloaded file's name keeps only the hash and a short alphanumeric extension from the URL.
* chore: release v0.9.90
* docs: v0.9.90 summary names each change as its own pull request does
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* docs: add #8703 to the v0.9.90 notes
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* docs: add #8710 to the v0.9.90 notes
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* docs: add #8713 to the v0.9.90 notes
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* chore: release v0.9.89
* chore: release notes for v0.9.89 list #8657 merged since the cut
* chore: end the v0.9.89 note for #8657 with a period like the others
* chore: release notes for v0.9.89 list the 13 changes merged since the cut
* chore: release notes for v0.9.89 list every change merged while it was queued
* fix(engine): read playlists in linear time and bound the whole walk
The trailing-blank trim and the ffconcat file pattern backtracked, so one very long line took
quadratic time on the event loop. Both are now single scans. A line longer than ffmpeg reads
(4095 bytes) refuses the list before it is parsed, and the walk refuses past 16 MiB of list
text or 50,000 entries across all nested lists.
* test(engine): playlist walks finish in milliseconds and stop at their budget
Covers a single 8 MiB line in both list shapes, the 4095-byte line limit, ffconcat file lines
read as before, and the entry and byte budgets across nested lists.
* refactor(engine): keep the playlist parser at its comment share
A render's compile can start ffmpeg and ffprobe children (the animated GIF to VP9 and HEIC to JPEG conversions, and media probes). They now end with the compile, however it ends, and their temp output goes with them.
- The compile's abort signal reaches the GIF and HEIC conversions.
- The compile worker reports each child and its temp file to the parent, which kills the children still recorded and removes their temp files just before ending the thread, only inside the compile's own folders.
- The conversions carry -timelimit (CPU seconds, enforced by the kernel) and -fs (output bytes); a capped output is rejected, not cached.
- Temp names carry a uuid, since worker threads share process.pid.
Co-authored-by: 郑润泽 <506166760@qq.com>
* chore: release v0.9.88
* chore: release notes for v0.9.88 list #8634 merged since the cut
* chore: release notes for v0.9.88 list #8618 merged since the cut
* chore: release notes for v0.9.88 list #8618 in its section, after the summary
* chore: release v0.9.87
* chore: release notes for v0.9.87 list the player fix merged since the cut
* chore: release notes for v0.9.87 list the studio fix merged since the re-cut
* chore: release notes for v0.9.87 list the docs change merged since the re-cut
* chore: release notes for v0.9.87 list the CLI fix merged since the re-cut
* chore: release notes for v0.9.87 link #8624 to its own pull request
* chore: release v0.9.81
* chore: release v0.9.81 notes list the changes merged since the draft
* chore: release v0.9.81 notes list the changes merged since the draft
* fix(engine): a heavy page starts only as many capture browsers as the machine's memory holds
Worker 0 loads the page alone; its browsers' measured memory caps how many more launch, and the frames are split again across the ones kept. A worker phase that starts after the pool was cancelled no longer leaves its own failure unhandled.
* refactor(engine): drop a frame-range update the capped first worker never reads
* chore(engine): its packed size budget grows by the 1,040 bytes the worker memory cap adds
* test(engine): the re-split pool test builds its folder paths the way Windows does
* chore: release v0.9.80
* chore: release v0.9.80 notes list the changes merged since the draft
* chore: release v0.9.80 notes list the changes merged since the draft
* test(engine): a tunnel the egress proxy drops fails the download after its one retry
* fix(engine): an asset download fails once when the egress proxy drops its tunnel
undici 7 keeps a request queued and reopens the tunnel with no pause or limit when the proxy closes it without a reply. The proxy transport's pools now report that close as a reset, so the request fails and the downloader's one retry is the bound.
* test(studio): a paused untagged video is drawn as the export reads it
* fix(studio): a paused untagged video shows the colours the export renders, not BT.709
* chore: release v0.9.78
* chore: list main's latest changes in the v0.9.78 notes
* chore: add the history fix to the v0.9.78 notes
* chore: list main's latest changes in the v0.9.78 notes
* revert(cli): hold the proxy fix and its Node floor for v0.10.0
This reverts commit 2960319749 (#8311), except a stale fallow-ignore line it had removed.
* chore(ci): allow the revert to delete the three files the proxy fix added
* fix(cli): a proxy that drops the connection fails a request once instead of retrying nonstop
Raises the minimum Node.js to 22.19, which undici 8 requires.
* fix(cli): drop the comments the comment-share check refuses
* docs: the engine, producer and CLI skill say Node.js 22.19
* test(engine): the dropping proxy matches its host exactly
* chore(skills): rehash the CLI skill after the merge
* docs(skills): keep the CLI skill within its size budget
* chore(skills): rehash the CLI skill after the trim