1535 Commits
Author SHA1 Message Date
Miguel Ángel dcdb181896 chore: release v0.9.93 (#8796) 2026-11-25 02:06:42 +00:00
Miguel Ángel cb9dfa8f0c fix(engine): a registry or download refusal no longer says it was a capture (#8791) 2026-11-25 01:33:27 +00:00
Vance IngallsandClaude Opus 5.5 4af0e9c09b fix(cli): media commands read only local, self-contained inputs (#8782)
* 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>
2026-11-24 16:20:39 -08:00
Michael Wang bf689be3ba fix(engine): playlist walk refuses entries with no path and tagged lists (#8784)
* 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
2026-11-24 23:49:15 +00:00
Miguel Ángel 8ad78fb0fc chore: release v0.9.92 (#8745)
* 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
2026-11-24 18:54:08 -05:00
Vance IngallsandClaude Opus 5.5 c890cb38f0 fix(producer): a failed pipelined blend fails its render, not the server (#8775)
* 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>
2026-11-24 14:57:42 -08:00
Michael Wang f7a3abcbee fix(engine): read ffconcat lists only as ffmpeg reads them (#8714)
* 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
2026-11-24 20:09:52 +00:00
Miguel Ángel 7b78460d05 fix(core): a looped sound plays its whole slot in preview (#8751)
* 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.
2026-11-24 20:03:31 +00:00
James RussoandClaude Fable 5.2 bf26dcbaab build(chrome): pin chrome-headless-shell 158.0.8127.88 wherever the repo installs it (#8748)
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>
2026-11-24 19:29:45 +00:00
Miguel Ángel 416d9e036c fix(engine): a script URL Node cannot parse no longer stops the render (#8723) 2026-11-24 19:23:04 +00:00
Miguel Ángel 2e1294649c fix(core): check never looks at a media file outside the project (#8742)
* 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
2026-11-24 19:00:39 +00:00
Miguel Ángel c6307feea4 fix(cli): a received project's registry is fetched only from public addresses (#8683)
* 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
2026-11-24 18:01:47 +00:00
Miguel Ángel f2087431b3 fix(producer): a downloaded asset's local path is written into the page exactly as named (#8739)
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.
2026-11-24 17:51:22 +00:00
Miguel Ángel d975475cd5 fix(engine): local media inputs open with the file protocol only, and other schemes are refused (#8726) 2026-11-24 17:34:21 +00:00
Miguel Ángel 5969cd2b43 fix(engine): a late image whose URL Node cannot parse no longer stops the render (#8728) 2026-11-24 17:12:13 +00:00
James Russo 08431260d9 chore: release v0.9.91 (#8718) 2026-11-24 15:30:29 +00:00
James RussoandClaude Fable 5.2 8eeeabf8a6 chore: release v0.9.90 (#8709)
* 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>
2026-11-24 13:29:30 +00:00
Miguel Ángel bef7b44bee chore: release v0.9.89 (#8666)
* 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
2026-11-24 10:27:48 +00:00
Michael Wang f43c35c21d fix(engine): read playlists in linear time and bound the whole walk (#8653)
* 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
2026-11-24 08:27:19 +00:00
Miguel Ángel faf4dd82a1 fix(engine): an upstream reply the capture proxy cannot re-send fails only that request (#8646) 2026-11-24 07:36:32 +00:00
Michael Wang 5a1b992a08 fix(producer): a video element naming a PNG cut short fails the render up front (#8644) 2026-11-24 07:03:09 +00:00
Vance Ingallsand郑润泽 4354b177ee fix(producer): a compile's ffmpeg runs end with it, and are bounded on their own (#8638)
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>
2026-11-23 21:46:15 -08:00
Miguel Ángel 304a9444e9 chore: release v0.9.88 (#8635)
* 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
2026-11-24 05:18:37 +00:00
Miguel Ángel 169af43b65 chore: release v0.9.87 (#8617)
* 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
2026-11-24 01:14:47 +00:00
Miguel Ángel 574b5e3d3b chore: release v0.9.86 (#8595)
* chore: release v0.9.86

* chore: release notes for v0.9.86 list the four PRs merged since the cut
2026-11-23 14:53:04 +00:00
Miguel Ángel a4d96cdb31 chore: release v0.9.85 (#8569)
* chore: release v0.9.85

* chore: release notes for v0.9.85 list #8563

* chore: release notes for v0.9.85 list #8561 and #8570
2026-11-23 09:10:21 +00:00
Miguel Ángel da7faad396 test(engine): the browser cache and remote tail tests pass the same on any machine (#8557) 2026-11-23 03:10:32 +00:00
Miguel Ángel 9ec93615ef chore: release v0.9.84 (#8548)
* chore: release v0.9.84

* chore: release v0.9.84 notes list everything merged through #8541

* chore: release v0.9.84 notes list #8552

* chore: release v0.9.84 notes list #8551
2026-11-23 02:35:22 +00:00
Miguel Ángel 4f1e429fb1 chore: release v0.9.83 (#8539) 2026-11-22 22:33:47 +00:00
Miguel Ángel 2e1cd03237 chore: release v0.9.82 (#8531) 2026-11-22 21:07:50 +00:00
Miguel Ángel 479081658b chore: release v0.9.81 (#8493)
* 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
2026-11-22 13:56:25 +00:00
Miguel Ángel 969eeba6ee fix(engine): a heavy page starts only as many capture browsers as the machine's memory holds (#8452)
* 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
2026-11-22 09:03:34 +00:00
Miguel Ángel 1aa4a785c8 chore: release v0.9.80 (#8414)
* 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
2026-11-22 01:40:53 +00:00
Miguel Ángel 2b4706f193 test(engine): the frame-tag checks get the time a real encode needs (#8415)
They run ffmpeg and ffprobe like the raw SDR colour check, which already allows 30 s; at vitest's 5 s default a busy Windows runner timed one out.
2026-11-22 00:50:54 +00:00
Miguel Ángel da1476e48d fix(engine): an asset download fails once when the egress proxy drops its tunnel (#8417)
* 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.
2026-11-22 00:46:02 +00:00
Miguel Ángel 75c83d8772 fix(engine): a capture proxy request whose name will not resolve is reported as failed (#8409) 2026-11-21 23:40:18 +00:00
Miguel Ángel 71907274a7 fix(studio): a paused untagged video shows the colours the export renders (#8405)
* 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
2026-11-21 23:06:44 +00:00
Miguel Ángel c3d25a41f1 chore: release v0.9.79 (#8402) 2026-11-21 22:05:41 +00:00
Miguel Ángel b950f3e1db chore: release v0.9.78 (#8368)
* 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
2026-11-21 19:50:15 +00:00
Miguel Ángel 66156bf35e revert(cli): hold the proxy fix and its Node floor for v0.10.0 (#8391)
* 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
2026-11-21 19:08:49 +00:00
Miguel Ángel 2960319749 fix(cli)!: a proxy that drops the connection fails a request once instead of retrying nonstop (#8311)
* 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
2026-11-21 18:05:46 +00:00
Miguel Ángel e65b11e5c2 feat(engine): a late image's load time is logged when it arrives (#8372)
* feat(engine): a late image's load time is logged when it arrives

A frame that shows a still-loading image waits for it, which can hold a render for minutes, but nothing said where that time went. When a late image arrives, the engine now logs [FrameCapture:late_image_arrived] with the frame, whether it came from the page's own server, the path depth and extension, and its resource timing split into queued, connect, first byte and download. No host, query or file name is logged.

* fix(engine): a late image whose request timing is hidden logs only its total

For another origin without Timing-Allow-Origin, Chrome zeroes connectStart, connectEnd, requestStart and responseStart, so the split read a slow server as a slow download. Such an entry now logs requestedAtMs and totalMs with split: not-exposed; every record also carries totalMs.
2026-11-21 13:31:59 +00:00
Miguel Ángel 5e16c18b1d fix(engine): a capture proxy shared by many browsers no longer drops tunnels at 128 (#8362)
* fix(engine): a capture proxy shared by many browsers no longer drops tunnels at 128

* fix(engine): keep the worker ceiling's reasons beside its use
2026-11-21 10:20:49 +00:00
Miguel Ángel a86ad213ed chore: release v0.9.77 (#8360) 2026-11-21 08:25:09 +00:00
Miguel Ángel bf966b0cf3 chore: release v0.9.75 (#8343) 2026-11-21 04:47:22 +00:00
Miguel Ángel 80d968a94c chore: release v0.9.74 (#8338) 2026-11-21 01:44:02 +00:00
Miguel Ángel f8c90591b0 fix(producer): pass the render's cancel to probes of a source read at its URL (#8312)
* test(producer): a cancel stops a media source probed in place at its URL

* fix(producer): pass the render's cancel to probes of a source read at its URL

* test(engine): a cancelled metadata probe rejects with ffprobe's own error

* test(engine): a cancel stops frame extraction while it probes a source at its URL

* fix(producer): pass the render's cancel to every render-time probe of a source

* fix(engine): a cancelled metadata probe rejects with the cancel's reason

* test(engine): probe a local path in the metadata cancel test, so no TLS check runs first
2026-11-20 23:00:57 +00:00
Miguel Ángel cc453b7673 test(engine): the egress proxy test makes its certificate in-process, not with openssl (#8296) 2026-11-20 22:57:54 +00:00
Miguel Ángel 047bd87dc9 chore: release v0.9.73 (#8277)
* chore: release v0.9.73

* docs(release): add main's later fixes to the v0.9.73 notes

* docs(release): add main's newest fixes to the v0.9.73 notes

* docs(release): add main's latest fixes to the v0.9.73 notes
2026-11-20 17:32:37 -05:00
Miguel Ángel e3896cf08e fix(core): stop audio automation from crashing the preview renderer (#8299)
* fix(core): stop audio automation from crashing the preview renderer

Bent automation segments were booked with setValueCurveAtTime. When the audio thread
is mid-render and a curve's start lands after currentTime but before the next render
quantum, Chromium moves the curve's start to that quantum but leaves its end marker
where it was. The curve then runs past the next event, and if that event sits inside
the same quantum, AudioParamHandler::ValuesForFrameRangeImpl fails
CHECK_GE(fill_to_frame, write_index) and the renderer aborts.

Every segment is now a setValueAtTime at its start and linear ramps through the same
sampled points. A value curve interpolates linearly between its points, so the values
are the same. With no curves left, the refused-curve fallback (emitRamps) and the
curve-overlap tests go.

The set at each segment's start also fixes straight segments ahead of the playhead:
they ramped from the moment playback started instead of holding the first point's
value until the clip reached it.

* test(core): keep the clamping tests, aimed at ramp-only automation

The branch deleted audioFxAutomation.clamping.test.ts, which the no-deletions check refuses.
Its two cases still matter with ramps: a lane booked behind the audio clock finishes at its
last value, and one booked ahead of it books no value curve.

* test(engine): the browser automation test expects the bend the lane draws

The scheduledAt=0.024 case expected a straight 0.5 to 0.7 line after the playhead. That was
the old fallback: Chrome refused the clamped value curves and they were rebuilt as one ramp
per segment, flattening the bend. With ramps through the sampled points the bend is kept,
and the rendered output matches those points within the same 0.000001 tolerance.

Against the scheduler on main the updated case fails by 0.0685 (the flattened bend); here it
passes three runs in a row.
2026-11-20 16:36:45 +00:00