Commit Graph
530 Commits
Author SHA1 Message Date
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 3db02bade8 refactor(studio): drop the timeline stacking-mode move no drag reaches (#8732)
* refactor(studio): drop the timeline stacking-mode move no drag reaches

* chore(studio): name the timeline stacking-mode files as agreed deletions

* fix(studio): keep the z-index commit option hosts may still pass, as a no-op

* fix(studio): keep the stacking field hosts may still pass to a timeline move, ignored
2026-11-24 18:10:26 +00:00
James RussoandClaude Fable 5.2 716a89e571 fix(docs): copied catalog wiring reads back as the values shown (#8715)
The catalog page's Copy wiring and Snippet tab wrote the variable values
into a single-quoted attribute as plain JSON. A value holding ' ended the
attribute early and a value holding & was read as a character reference,
so the pasted element did not carry the values the page showed.

Both characters are now written as references. Free text that a page link
set also waits in the wiring, the Snippet tab and Copy JSON until the
reader sets it on the page, as it already did in the agent request.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 13:52:00 +00:00
James RussoandClaude Fable 5.2 93f7f69de9 fix(registry): show variable values as text in claude-exchange and slack-notification-ad (#8700)
claude-exchange set its editable strings through the same helper that writes
its own icons and layout, and slack-notification-ad built the payoff logo tag
by joining strings. A value holding tags or quotes became elements and
attributes instead of showing as typed. Editable strings now go through
textContent, and the payoff logo is an img bound with data-var-src, so it takes
the same addresses as every other image variable.

slack-notification-ad no longer writes markup, so its entry leaves the
markup-write baseline.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 11:40:26 +00:00
Michael Wang aefca2baff fix(media-use): carve decodes only media files inside the composition's folder (#8649)
* fix(media-use): carve decodes only media files inside the composition's folder

carve.mjs resolved each media src from the composition and handed the result to ffmpeg, so an
absolute, climbing, UNC or linked name reached a file outside the project, and a playlist inside
the project was followed to the files it lists. Each src must now be a relative name that lands
on a regular file inside the composition's folder after links are resolved, outside the files the
project keeps private, and free of ffmpeg pattern characters. Every source is checked before any
is decoded. ffmpeg then reads the one file, pinned to its probed format and the file protocol,
and a list or playlist format is refused.

The probe and the pinned input move from recording.mjs into lib/media-input.mjs so both scripts
share them. The private-path rule and the image2 pattern guard are bundled into audio-carve.mjs
from packages/parsers.

* fix(media-use): media-input.mjs loads the Windows program guard first

Every skill script that starts programs imports windows-exe-search.mjs before anything else, so
ffprobe and ffmpeg are never looked up in the working directory on Windows.
2026-11-24 09:25:11 +00:00
Miguel Ángel 1c20a107a6 fix(player): a sealed player plays media from hosts without CORS and names a missing runtime (#8142)
* feat(player): a composition can no longer read the page that embeds the player

BREAKING CHANGE: the player's composition frame no longer shares the embedding page's origin
by default. Add sandbox-origin="same-origin" to keep reading the composition's DOM or runtime
directly (editors, recorders, custom timelines), only for compositions you trust.

* chore(skills): refresh the slideshow skill's manifest hash

* fix(player): a sealed player's timeout says how to play a composition without the runtime

A sealed player cannot add the runtime to a composition, so one with a GSAP timeline and no runtime never became
ready and failed with a bare timeout. The timeout now names the two fixes, the README says a sealed composition
brings its own runtime, and a browser test covers the sealed, trusted and runtime-bundled paths.

* test(player): the heavy-films bench embeds the trusted player, since it reads the film from inside

* test(player): the bench host stays sealed; only the bench that reads the film asks for trust

* test(player): the perf server answers CORS, so a sealed player's film loads its own media

* test(player): a sealed film on a host without CORS must still play its videos

* test(core): a sealed video whose CORS load fails loads again once without crossorigin

* fix(core): a sealed film's video loads once more without CORS when its host refuses CORS

* fix(core): the sealed media fallback reads its event target without a realm-bound instanceof

* fix(player): keep the player's origin sharing as today; sealing stays opt-in with sandbox-origin

* test(core): a failed sealed media source spares its siblings; a refused URL drops the helper's CORS

* fix(core): a sealed film tries every CORS source before falling back and drops CORS for refused URLs

* fix(cli): the play page shares its origin as today; docs say sealing is opt-in

* refactor(core): split the sealed media fallback into small steps

* test(player): sealed media decides CORS per element in Chrome; probe advice follows the policy

* fix(core): each sealed media element owns its CORS choice; probe advice follows the policy

* test(player): a sealed player's late timeline expects the sealed advice; media cases await each read

* test(player): sealed media rows for a skipped first source, author writes and a recovered URL

* fix(core): sealed media falls back only when the browser has no source left, once per URL

* test(player): the skipped-source row's loads are never cached, so each one is counted

* test(player): the skipped-source row bounds the video's load attempts as well as its requests

* test(player): sealed media rows for a mismatched-source reload, an outage and two refusing sources

* fix(core): a sealed media element owns one fallback state; only a played fallback is remembered

* test(player): a generated table of sealed media edits, each element checked on its own

* fix(core): sealed media CORS is decided per element and chosen source, with no shared cache

* test(player): the media table counts the runtime's loads against other selections

* fix(core): a sealed media element guesses the source it last played

* test(player): the media table attributes loads exactly and lets a failing host stay down

* test: sealed media rows check per-element CORS; the generated table replaces the hand-picked ones

* fix(core): a media element's own src counts as the source that failed

* fix(core): starting sealed media CORS twice adds no second set of listeners

* test(player): judge the sealed media table against frames without the runtime

* test(player): compare the sealed media table with the same film unsealed

* test(player): run the unsealed control film before the sealed one in one tab

* test(player): judge an authored crossorigin only on the composition's value

* test(player): an all-own list returning to an upgraded URL keeps its pixels

* test(player): source and playback against the sealed film with the helper off

* test(player): count every runtime load of a table video, net of the film without the helper

* test(player): the all-own return row plays the other clip alone before the URL comes back

* test(player): judge every round of the sealed media table, not only the end

* fix(core): sealed media keeps the browser's source choice and its playback across our reloads

* test(player): the table plays a video only after the runtime has bound it

* fix(core): a sealed video drops a stale crossorigin its source already refused

* test(player): the table exempts foreign hosts from pixels and allows a range request per load

* test(core): unit rows for the source choice, down hosts and playback across reloads

* refactor(core): sealed media restores time through the media clock, and its failure path is split

* test(player): the table compares play() outcomes, recovers a down host, and reads a seek at seeked

* test(player): the table judges a seek by where it settles and lets a composition pause on rejection

* test(player): the table holds the helper to a play() the film without it resolved

* test(player): pin the generated sequences that found the recovery and play() faults

* test(player): a slow host keeps the composition's play() pending when its source fails

* test(player): pin the sequences that find the play() and recovery faults with the slow host

* test(player): the table can start its generated sequences at any seed

* test(player): pin the generated sequences that find the recovered source skipped

* test(player): keep the pinned sequences that are red in every run in both browsers

* test(player): a looping video starting over is not a seek after the composition's

* fix(core): a sealed video retries a recovered source and keeps the composition's play() alive

* test(core): the playback row watches the play() the runtime's retry makes

* test(player): a slow host delays its first answer only; the composition's own abort is skipped

* test(player): a loop restart is told from a seek by where the seek began

* test(player): restarts are read at metadata, and a buffering control judges no playback

* test(player): the table counts and limits the comparisons it skips

* test(player): our restore after a composition seek stays within a frame; all selections count

* test(player): a playhead counts as moving if it moves within a second

* fix(core): only the composition's own load() makes a sealed video retry a down source

* fix(core): a sealed video's down source stays down through the runtime's preload load

* test(player): judge sealed media rows by what each step makes possible, not page timing

* test(player): print sealed and unsealed seek landings each sealed media run

* test(player): read a looping clip after its loop restart in every film alike

* fix(core): the runtime's preload loads a media element once per source list

* fix(core): the runtime's prefetch shares the preload's one load per source list

* test(player): a table step interrupts the CORS handling's own reload, not the runtime's preload

* test(core): an undo puts a clip's colour grade back in a sealed preview in place

* fix(core): an undo of a colour grade applies in place in a sealed preview

* test(player): a second table seek lands during the CORS reload of a playing clip

* test(core): an undo in a sealed preview keeps the media attributes the runtime added

* fix(core): an undo in a sealed preview keeps the media attributes the runtime added

* test(player): the playing-clip seek row plays a clip that starts past 0, as a trimmed one does

* test(player): the playing-clip seek is armed with its video, before the play step waits

* test(player): the down-then-back row reloads again, so every film's control has a frame

* test(player): the playing-clip seek row's host answers late, so the clip plays before its reload

* fix(player): a sealed player plays a same-site composition with the runtime it ships

* fix(player): a switch to video unloads a sealed composition shown as srcdoc

* test(core): the runtime's preload mid-selection keeps a down source's mark

* fix(core): a sealed film's down source keeps its mark through the runtime's own loads

* chore(player): fallow reads the cjs and iife runtime file as an entry

* fix(core): declare the html-tokens subpath where package exports are generated

* fix(player): a sealed composition that brings its runtime loads by src under its own headers

* test(player): expect the sealed player's own timeout message in the late-runtime tests

* test(core): a grade undo on a far clip whose length is loading applies in place

* fix(core): a far clip's length probe records the preload it sets, so a grade undo applies

* fix(player): a sealed film shown as srcdoc keeps its URL, so its sound still plays

* test(player): the late-timeline switch uses a film from another origin, which must still fail

* fix(player): a sealed Studio preview keeps its own runtime and loads by src

* fix(player): the player package carries the runtime once, and Studio none

* fix(core): a sealed video reads its own source's pixels in a list that names another host

* fix(player): a sealed player with no bundler still gets the runtime, only when it needs it

* fix(core): keep the mixed-list change within the comment budget

* fix(core): opt a mixed list in only when its first source plays, so a reload keeps that video

* fix(core): a CORS reload keeps the source that was playing

* fix(core): the composition's own load() picks from its full source list again

* fix(core): a reload's pin keeps a source type the composition wrote meanwhile

* fix(core): a reload's pin stops at the source the browser picked, not a skipped copy of its URL

* fix(core): a reload's pin stops at the source element that played, not the first copy of its URL

* fix(core): a reload's pin keeps the source element that played or refused

* style(core): format the source pin

* style(player): keep the runtime source comment under the line limit

* fix(player): only a real </script> closing tag ends a script in the runtime check

* test(player): count the sealed helper's loads by the crossorigin they change

* fix(core): a sealed video asks its host once before treating a failed CORS load as a refusal

* test(player): the sealed table expects pixels from a host that answers CORS after a failed load

* test(core): each refusal row waits for the CORS question it starts

* test(player): the sealed media table waits on each clip's own events

* refactor(core): a pinned-out source's error gets its own check in the sealed media helper

* test(player): the loop restart wait keeps its two-second window

* style(player): format the table's event wait

* chore(fallow): resolve workspace exports to source as bun does, so no false package cycle

* refactor(player): read script tag attributes in small steps, the same result

* refactor(player): the shader loading attribute reads its words from one table

* refactor(player): the attribute helpers' names say what their comments did

* fix(core): the CORS question never follows a redirect, and stays quiet while it waits

* style(core): format the CORS question's rows

* test(player): a sealed same-site page keeps its own policy; a stuck fetch reports the limit

* fix(player): a sealed same-site page keeps its own policy, and a stuck fetch ends at the limit

* fix(player): a sealed page whose headers can't all be read, as after a redirect, loads by src

* style(player): format the sealed player and name the probe's preparation state
2026-11-24 09:22:41 +00:00
Michael Wang 24f474b960 fix(skills): refuse media paths ffmpeg would read as a pattern in skill scripts (#8661)
* fix(parsers): refuse media paths with digits between a percent sign and a wildcard

* fix(skills): refuse media paths ffmpeg would read as a pattern in skill scripts

* fix(cli): media-use probes refuse paths ffmpeg would read as a pattern
2026-11-24 08:05:08 +00:00
Miguel Ángel 9bf40af0e5 fix(publish): a release builds arm64 ffmpeg itself and publishes only its own pack (#8641)
* test(publish): a release restores no shared cache and packs its own bundle

* fix(publish): a release builds arm64 ffmpeg itself and publishes only its own pack

No release job restores an Actions cache, and pack no longer adopts a release-bundle
it did not build: publish downloads the bundle by the id pack reported.
2026-11-24 07:02:33 +00:00
Vance Ingalls 590617475f fix(producer): a render's compile runs on its own thread and stops at a deadline (#8611)
A compile that ran long held the render server's main thread, so the
render's cancel, its maxRenderMs guard, a client disconnect and /health
could not act until it finished. The compile now runs on a worker
thread. The render's abort signal stops it, and a 10-minute cap ends it
with COMPILE_TIMEOUT, a non-retryable user error. Production compiles
over 7 days peaked at 154 s (p99.9 18 s). HYPERFRAMES_COMPILE_TIMEOUT_MS
overrides the cap.

Bundles that inline the producer name the worker with
HF_COMPILE_WORKER_ENTRY, or compile in-process as before. The producer's
packed-size budget grows for the worker bundle.
2026-11-23 10:34:44 -08:00
Miguel Ángel 18bc914d24 ci: run the studio tests in three shards so the job stops running out its time limit (#8600)
* ci: run the studio tests in three shards

* ci: the reachability check knows the studio tests run in three shards
2026-11-23 16:15:14 +00:00
Miguel Ángel 40ce145f27 fix(studio): a sealed gesture recording keeps the layer's offset and the film's scale (#8568)
* fix(studio): a sealed gesture recording keeps the layer's offset and the film's scale

* fix(studio): a sealed recording starts from the frame's static opacity and scale

* fix(studio): a recording stops at the layer's end and drops a stale sealed start

* fix(studio): a recording's last sample snaps to a frame at or before the layer's end

* chore(producer): raise the unpacked size budget to 5% above what main ships
2026-11-23 11:38:14 +00:00
Miguel Ángel 7f54fded08 fix(skills): ask before usage notes and destroy, and keep media downloads on public hosts (#8555)
* fix(skills): ask before usage notes and destroy, and keep media downloads on public hosts

Media downloads now connect only to an address the host name resolved to after checking it is public; a name that points at a private address is refused before connecting. Skills tell the person once before sending usage notes and honour a no; a catalog gap report no longer carries the search text. Reverse says plainly it needs a HyperFrames Pro sign-in, and cloudrun/lambda destroy wait for the person's yes.

* fix(media-use): give each media download its own connection

* chore(skills): refresh the skills manifest and split out the gap report step
2026-11-23 07:12:36 +00:00
Miguel Ángel 014e0b0fb8 ci: a release whose checks fail fails the required Build, so it cannot merge (#8543) 2026-11-23 01:05:16 +00:00
Miguel Ángel f246845ba4 fix(skills): a pasted figma link alone no longer picks the figma skill (#8536)
* test(skills): a description a pasted link alone triggers is refused

* fix(skills): a pasted figma link alone no longer picks the figma skill

Its description said 'use when the person pastes a figma.com link', so a link with no task started the video workflow (OSS #8530's case). It now names the task; the lint refuses any description a pasted link alone triggers.

* test(skills): past and passive link-alone wording is refused too

* fix(skills): the link-alone rule reads any tense; figma's description fits its budget

* chore(skills): regenerate skills-manifest.json for figma's description
2026-11-22 22:39:57 +00:00
Miguel Ángel 8c9c94572a fix(producer): a render serves every GSAP the CLI ships, and its own when the CDN is blocked (#8349)
* test(producer): an older GSAP our templates name, or a blocked CDN's GSAP 3, renders offline

* fix(producer): a render serves every GSAP the CLI ships, and its own when the CDN is blocked

* fix(cli): the CLI's size limit covers the GSAP 3.14.2 files renders serve
2026-11-22 20:32:43 +00:00
Miguel Ángel c19d98d9a1 fix(player): a late timeline from the old film no longer keeps a switched player ready (#8500)
* test(player): a late timeline from the old document must not make the next load ready

* fix(player): a late timeline from the old frame document no longer makes the next load ready

* test(player): type the announce filter in the late timeline rows

* test(player): a static ready at load still asks for the runtime's held timeline

* fix(player): a static ready at load still asks the runtime for the timeline it held

* test(player): a late message the left document stamped is dropped without waiting for load

* fix(player): drop a late message from the left document, so the next is ready before its load

* test(player): the late-timeline row replays the sealed document's own timeline

* chore(player): the player's size budget sits 5% above its measured size again

* test: runtime load draws no page randomness; Studio pins the announce capability

* fix(core): the runtime's document id comes from its time origin, so renders keep their random draws

* test(core): two documents loaded at one coarsened time get different runtime ids

* fix(core): the runtime's document id is a random UUID where the browser has one
2026-11-22 16:40:09 +00:00
Miguel Ángel 71588b0a73 fix(ci): a shard whose results never uploaded is re-run, and never read as an edit accuracy drop (#8477)
* fix(ci): a shard whose results never uploaded is re-run, and never read as an edit accuracy drop

* refactor(ci): the edit accuracy shard count lives in one place, and a test keeps the matrix on it
2026-11-22 10:57:59 +00:00
Miguel Ángel 8f7e59742f fix(ci): a rerun of the captures check reads the PR's current body (#8479) 2026-11-22 10:05:26 +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 a0b76d20fb ci: a studio change with no visible effect can say so at any size (#8439)
"No visible change" now holds for any diff under packages/studio or
packages/player that touches no .tsx, .css, .html or binary file. Before,
it also needed under 20 changed lines, so a larger logic-only fix had to
attach captures of nothing. A binary file, such as an image, now counts
as visual directly instead of through the line budget.
2026-11-22 02:59:24 +00:00
Miguel Ángel 267ffc46c9 fix(studio-server): a file the drive never answers no longer holds a project's first history copy (#8187)
* fix(studio-server): a file the drive never answers no longer holds a project's first history copy

* fix(studio-server): keep history's comment share at or below its base

* fix(studio-server): a first copy that lands past its deadline is kept as the file's start

* fix(studio-server): a late first copy is adopted and kept while another file's read is stalled

* fix(studio-server): a waiting late first copy counts as baseline and rereads a few at a time

* fix(studio-server): every reread of an owed file takes a copy slot and is kept until adopted

* fix(studio-server): history pins a copy as it is filed and keeps a reference-only copy as such

* fix(studio-server): a history pin is taken and released by its owner, never across a delete

* fix(studio-server): an agent step waits at most a deadline for a file the drive never answers

* fix(studio-server): undo refuses a file whose first copy landed after an agent step rewrote it

* chore(studio-server): give the packed size budget its usual 5% headroom

Main packs to 190,094 bytes, already 0.65% over the 188,871 budget; this branch adds 1,264 bytes of its own code (no new import: dist/index.js is unchanged). The budget file's rule is 5% above measured: ceil(191,358 x 1.05) = 200,926.

* fix(studio-server): an agent step that goes ahead of a first copy owns that file's undo

* fix(studio-server): undo of a step that went ahead of a pending first copy is all or nothing

* fix(studio-server): an undo after a step that rewrote a pending file in place still refuses

A went-ahead file now clears from a step's list only when the first read after its copy lands finds the original
bytes, not when its size and times look unchanged. The list of went-ahead files is kept on disk, so a restart
before the step closes, or after it deleted the file, keeps the refusal. Parts a Studio claim cuts from a step
keep the list too.

* fix(studio-server): a step ahead of a pending file refuses undo after Cmd+Z, restarts, in older apps

Cmd+Z stops at an open step whose only write so far is a pending file. A step recovered after the process died
keeps its list of pending files. A later Studio save's receipt no longer sets the start of a file a step went ahead
of. Every earlier point names a pending file as not kept, so no restore deletes it in any app version.

* fix(studio-server): a step that went ahead of a pending file never undoes, whatever bytes land

Bytes cannot tell steps apart: a file written A, B, then A again by two steps looked untouched and cleared both. A
step's list of files it went ahead of is now never cleared, so its undo refuses after a stalled read.

* fix(studio-server): a recovered step keeps its guard through a second crash; saves keep the start

The closed window is recovered before the reopen rewrites went-ahead.json, so a crash during recovery no longer
erases its list of pending files. A copy read before a step went ahead is the file's start whatever a later save's
receipt says it replaced.

* fix(studio-server): a start keeps receipts heard before its read; reopen writes all pending files

A copy read before a step went ahead follows only the save receipts heard by the moment of its read, so an early
save's original stays the start and a later save naming the step's bytes cannot replace it. The reopen rebuilds
the list of pending files in memory and writes it once, so a crash midway keeps every file on it.

* fix(studio-server): a first copy's start follows only receipts heard by its read and keeps them

Every adopted copy follows the save receipts heard by the moment of its read, with or without a step, so a later
save writing the original back cannot move the start. A small file's read is reported before its close, which a slow
drive can hold. Bytes a save replaced in a file history has no copy of yet stay through pruning until it does.

* fix(studio-server): bytes kept for a pending first copy count as start, not undo history

The bytes a save replaced are kept only for a file still owed its first copy, and they count as start rather than
undo history, so they never fold an unrelated edit out of the budget or stay for a file that never needed them.
2026-11-21 23:28:17 +00:00
Miguel Ángel 71dc6f2fe1 fix(studio-server): a file the drive never answers no longer holds a project's first copy (#8403)
* fix(studio-server): a file the drive never answers no longer holds a project's first history copy

Each file the first copy reads gets a deadline from when its read starts. A file that misses it is left owed and
adopted once the drive answers, keeping the bytes it read as the file's start, so the open finishes.

* fix(studio-server): a late first copy starts from receipts heard by its read, kept through pruning

A late first copy follows only the save receipts heard by the moment of its read, so a later save writing the
original back cannot move the start. The bytes a save replaced in a file still owed its first copy stay through
pruning, counted as start rather than undo history, until that copy is recorded.

* chore(studio-server): give the packed size budget its usual 5% headroom
2026-11-21 22:25:38 +00:00
Miguel Ángel e87babf261 fix(ci): release checks refuse a patch release that carries a breaking change (#8392)
* fix(ci): release checks refuse a patch release that carries a breaking change

* fix(ci): a reverted breaking change no longer holds a patch release

* refactor(ci): each release check is its own function
2026-11-21 19:52:44 +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 7cb605c787 fix(studio-server): a preview file request no longer waits on a silent drive on the event loop (#8254)
* test(studio-server): a preview file request on a silent drive asks it nothing on the event loop

* fix(studio-server): a preview file request reads its project off the event loop

* ci(studio-server): refuse a new synchronous fs call in Studio's routes and history engine

* fix(studio-server): a preview file request and a miss stay off the event loop to the end

* test(studio-server): a shared still's remake no longer depends on busy requests' slot order

* fix(ci): the studio-server sync fs gate counts every sync call node:fs has, globSync included
2026-11-21 09:03:14 +00:00
Miguel Ángel c8c5214a41 fix(core): look up SVG selector aliases by namespace before matching their values (#8354)
* test(core): a predicate reads only aliases in its own namespace

* fix(core): look up SVG selector aliases by namespace before matching their values

* refactor(core): index each SVG alias by attribute in its own function

* chore(core): regenerate the inlined alias module and the catalog font mirror index

* test(core): re-record the page goldens for the new inlined alias module

* refactor(core): pick a predicate's alias index in one place

* chore(core): regenerate the inlined alias module and page goldens
2026-11-21 07:51:06 +00:00
Miguel Ángel de63e97311 fix(ci): a diff is a release only when it bumps versions (#8355)
* test(ci): a fix to an earlier release's notes is not a release

* fix(ci): a diff is a release only when it bumps versions
2026-11-21 06:59:15 +00:00
Miguel Ángel 370f09d74c fix(core): look up attribute-selector aliases by sorted key instead of scanning each (#8280)
* test(core): pin attribute-selector alias lookups to their matches

* fix(core): look up attribute-selector aliases by sorted key instead of scanning each

* test(core): refresh page goldens for the indexed alias lookups

* refactor(core): keep the alias module's comment share

* refactor(core): pick each attribute operator's lookup from a table

* test(core): refresh page goldens and the catalog font mirror for the table lookups
2026-11-21 02:29:48 +00:00
James RussoandClaude Fable 5.2 55cfbe0081 fix(ci): a package that fails to publish is tried again before the release fails (#8333)
One failed upload failed the whole release with the other packages already
out, and the next run could not finish it. The publish step now tries each
package up to three times. Every try asks the registry first, so a package
that went out on a try that reported failure is not sent again, a version
there with other contents still fails at once, and after the last try the
registry is asked once more before the package counts as failed.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 01:00:21 +00:00
Michael Wang b2c18a45c6 fix(skills): agents run the CLI through the launcher, never a project's scripts (#8326)
The hyperframes-cli skill told a job with no TTY to pin the release with
the project's pinned npm run scripts. Agent shells rarely have a TTY, so
a project from someone else could choose what the agent runs through its
package.json scripts, .npmrc or node_modules.

The skill core now offers only the launcher with an exact version from
the person or from --cli-version latest --version. The unattended
reference keeps project scripts and project installs for a person's own
pipelines on projects they wrote. The Remotion eval flow is scoped to the
fixtures the skill ships. A new skill lint check fails when a shipped
SKILL.md documents npm run, an npm install of the CLI, or
node_modules/.bin/hyperframes.
2026-11-21 00:11:12 +00:00
Ice cola d8d45f481b docs(cli): pin npx in unattended runs and verify the render (#7467)
In a job with no TTY nothing prompts: the CLI exits 2 and names `--yes`,
and `npx` skips its own "Ok to proceed?" whenever stdin is not a
terminal or CI is detected. What an unversioned `npx hyperframes` still
does is fetch the latest release on every cold cache, so two jobs that
start together can collide in npm's cache (`_cacache` for the fetch,
`_npx` for the install: EEXIST / ENOTEMPTY, a retry succeeds), and a
new release silently changes what the same command renders.

The hyperframes-cli skill now routes no-TTY jobs to the project's
scaffolded `npm run` scripts (each already `npx --yes hyperframes@X.Y.Z`)
or a pinned `npx --yes`, never bare `npx hyperframes`, and the loop's
render step checks `data-width`/`data-height` as well as `data-duration`.
The new references/unattended.md holds the detail and says why
interactive flows (`update`, reverse-any-video) float to `@latest` while
unattended jobs pin. The CLI reference page gets the matching paragraph.
The SKILL.md budget goes up 256 B per the file's +N-comment pattern, and
skills-manifest.json is regenerated.
2026-11-20 19:48:29 +00:00
Miguel Ángel 7b2c6dc1ad fix(studio): paste refuses an element with an event handler or a script link (#8298)
* test(studio): pasting a preview's own element keeps only markup that runs no code

* fix(studio): paste refuses an element with an event handler or a script link

* fix(studio): paste checks only markup that is not in the saved file

* test(studio): paste refuses code in elements and in links spelled to slip past

* fix(studio): paste refuses scripts, inline frames and links a browser would read as script

* refactor(studio): one owner for markup safety and the saved-or-live copy plumbing

* refactor(studio): keep the saved-markup helpers private to their module

* test(studio): clipboard text cannot mark a pasted clip as saved

* fix(studio): clipboard text cannot mark a pasted clip as saved
2026-11-20 19:06:46 +00:00
Miguel Ángel 8324e80558 fix(core): scan a selector's quoted, bracketed and comment parts in one linear pass (#8260)
* 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
2026-11-20 01:53:27 +00:00
Miguel Ángel def770ed98 fix(core): read selector aliases only from what the compiler wrote (#8240)
* 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
2026-11-19 11:27:15 +00:00
Miguel Ángel c672ef0e5d perf(core): rewrite svg attribute selectors in linear time over many references (#8216)
* 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
2026-11-19 03:55:27 +00:00
Miguel Ángel b8bb8b3803 fix(studio): a script edit re-runs in place in a sealed preview, without a reload (#8158)
* 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
2026-11-18 21:41:54 +00:00
Miguel Ángel a1ee40094d fix(studio): a value or keyframe edit shows in place in a sealed preview (#8151)
* fix(studio): a value or keyframe edit shows in place in a sealed preview

* fix(studio): a sealed group edit reloads once at its end, and a batch renders its last tween

* refactor(studio): the sealed tween patch path lives in its own module

Keeps useGsapScriptCommits under Studio's 600-line limit, and records the authoredOpacity helpers' move into core as an intended deletion.

* refactor(studio): the sealed tween patch code passes the quality audit without suppressions

Splits the frame-side change parser per kind, the tween lookup and keyframe rebuild into small checks, and the reachable-preview patch out of applyPreviewSync; drops an unused type re-export.
2026-11-18 15:33:50 +00:00
Miguel Ángel a82ee10c68 feat(producer): a failed render says which file was gone again, looking only in its own folders (#8168)
* feat(producer): a render that fails on a missing file says what was gone again

Restores the diagnostic the previous commit on main took out, as it was; the commits after it confine what it looks at.

* test(producer): render failure diagnostics never probe a path from error text or outside the render

* fix(producer): probe a missing path only from a real error, inside the render's folders

describeMissingPath now reads only the path Node set on an ENOENT error, never
one quoted in a message the page can write, and looks on disk only under the
render's temp root, extract cache or work folder. Any other path is named from
its text, so a network share is never contacted and the facts cannot tell an
existing path from a missing one.

* test(producer): a missing-path probe never passes an outside link or climbs above its folder

* fix(producer): walk down from the render's own folder and check each link before following it

* build(producer): give the packed size budget its 5% headroom with the missing-file diagnostic back
2026-11-18 13:41:39 +00:00
James RussoandClaude Opus 5.5 c696c0e157 chore(aws-lambda): give the packed size budget its usual 5% headroom (#8176)
#8173 set the budget to 82,000 against 81,378 bytes measured, about 0.8%
over. The budget file's own rule is 5% above measured, so the next small
change would trip it again: ceil(81,378 × 1.05) = 85,447.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 12:09:00 +00:00
Miguel Ángel 94d06663b1 revert(producer): a render that fails on a missing file stops naming what was gone, for now (#8174)
* revert(producer): a render that fails on a missing file stops naming what was gone, for now

This reverts commit cfea8cfff5 (#7955). The detail comes back in a follow-up that only looks inside the folders the render owns.

* revert(producer): name the files the #7955 revert removes in the deletion guard
2026-11-18 11:34:57 +00:00
James RussoandClaude Opus 5.5 61d65e7177 fix(aws-lambda): match the shell to its own pin, ship only hashed files, refuse the shell ZIP in CDK and SAM (#8173)
* fix(aws-lambda): match the shell to its own pin, ship only hashed files, refuse the shell ZIP in CDK and SAM

Review follow-ups to the pinned shell route:
- build-zip --source=chrome-headless-shell accepts the folder only when its
  digest is pinned for this version, not for any pinned build.
- It leaves out the files the digest skips (debug.log and chrome_debug.log,
  which Chrome writes as it runs), so nothing unhashed ships.
- The CDK construct throws on chromeSource "chrome-headless-shell" and the
  SAM template allows only sparticuz, as lambda deploy already refused it:
  a shell ZIP cannot fit a function. The CHROME_PATH wiring for that ZIP is
  gone with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(aws-lambda): raise the packed size budget to 82,000 bytes

The shipped build-zip script now checks the shell against its own
version's pin and skips the files the digest leaves out. That takes the
tarball to 81,378 bytes in CI, over the 80,500 budget's 1% tolerance;
main was already within about 200 bytes of it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 11:25:22 +00:00
James RussoandClaude Opus 5.5 ed3f05a05b fix(aws-lambda): pin the shell ZIP route, gate ZIP headroom, match arm64 fonts to x86 (#8170)
- build-zip --source=chrome-headless-shell stages only the repo's pinned
  build (managedChromeVersion) and only when its folder matches the pinned
  digest (isPinnedHeadlessShell), instead of the newest folder in the cache.
  The folder cannot fit a ZIP function, so lambda deploy refuses
  --chrome-source chrome-headless-shell up front on either arch, and the
  docs say the arm64 video image is where the shell runs.
- build-zip prints the headroom under the unzipped gate, and a new
  "Lambda handler ZIP" workflow builds the ZIP on PRs that touch the code
  it bundles, so growth fails before merge rather than in the release job.
- The arm64 image keeps @sparticuz/chromium's fonts and fonts.conf from the
  handler ZIP (FONTCONFIG_PATH=/var/task/fonts) instead of liberation-fonts,
  so text falls back to the same fonts as on x86. The image workflow renders
  a mixed-script page on both arches and fails when any line resolves to
  different platform fonts.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 10:21:01 +00:00
Miguel Ángel 640cb37929 test(studio): share one sealed preview frame that delivers messages like a browser (#8165)
* test(studio): share one sealed preview frame that delivers messages like a browser

* test(studio): name the sealed frame's port wrapper instead of commenting it

* fix(ci): the capture check treats .test-helpers files as tests, like the rest of the repo

* test(studio): keep the sealed frame's delivery helper private

* fix(studio): keep test helpers out of Studio's typecheck, like core does
2026-11-18 09:57:22 +00:00
Michael Wang 140b701403 fix(skills): the launcher's floor is 0.9.65, the oldest release Desktop ships (#8159)
* fix(skills): the launcher's floor is 0.9.65, the oldest release Desktop ships

The skill launcher now refuses any HyperFrames release older than 0.9.65, the oldest release
the HyperFrames Desktop app ships. 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.65. Every plugin manifest in this
repo already pins 0.9.65.

The skills guide and the plugin installation reference name the current floor, and a test
keeps them in step with the launcher. Desktop's release checks read the floor from the
published launcher, so a comment asks that it stay a string literal.

* test(skills): a helper started with --script forwards a release at the launcher's floor

The accept loop now also starts a --script helper, so all four paths are shown accepting 0.9.65.
2026-11-18 09:26:49 +00:00
James RussoandClaude Opus 5.5 81d73d2278 fix(aws-lambda): chrome-headless-shell 158 in the arm64 video image, sparticuz 153 in the x86 ZIP (#8155)
* fix(aws-lambda): run chrome-headless-shell 158 in the arm64 video image

The arm64 video image now installs Chrome for Testing's linux-arm64 chrome-headless-shell
158.0.8127.36, pinned by sha256 and fetched with curl -f, as the whole shell folder. The Lambda
Node 22 base has none of the shared libraries the shell links and no fonts, so the image installs
them from the base's repository at the same pinned release. The image sets
HYPERFRAMES_LAMBDA_CHROME_SOURCE and HYPERFRAMES_LAMBDA_CHROME_PATH itself, and the nested video
function no longer passes ChromeSource, which would override them. stage-arm64-image.ts stops
fetching the sparticuz arm64 pack and drops the ZIP's x86 sparticuz Chrome instead.

The x86 handler ZIP stays on @sparticuz/chromium, bumped from 148.0.0 to 153.0.0. It builds at
258,502,222 bytes unzipped, under Lambda's 262,144,000-byte limit and the 248 MiB in-house gate.

Two fixes for --source=chrome-headless-shell:
- build-zip.ts staged only the executable, which exits at launch without its ICU data and .pak
  files. It now stages the whole shell folder at chrome-headless-shell-linux64/.
- Nothing set HYPERFRAMES_LAMBDA_CHROME_PATH, which src/chromium.ts requires for that source.
  The SAM template and the CDK stack now set it to the bundled shell when ChromeSource asks for it.

Drops the unused @types/aws-lambda devDependency, which the dead-code audit reports whenever this
package's manifest changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci(publish): build the Lambda arm64 video image on an ARM runner

The video stage now installs Chrome's system libraries with microdnf, so it runs code for arm64.
The pack job built that image on ubuntu-latest with no emulation, which it could do only while the
stage copied files. A new lambda-video-image job builds it natively on ubuntu-24.04-arm, from the
handler zip whose sha256 the zip job reported, and reports the OCI tarball's sha256. Pack downloads
that tarball, checks the sha256 against the job's, and pins it as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(aws-lambda): fit the comment ratchet and the package size budget

chromium.ts loses the two doc lines on BUNDLED_SHELL_DIR and BUNDLED_SHELL_PATH; the names and the
SAM template's comment already say what they are.

@hyperframes/aws-lambda's unpacked budget goes from 290,508 to 298,000 bytes. The package unpacks to
295,324 bytes, up from the shared chrome-headless-shell staging module the ZIP and image scripts now
import and from the README and docs that describe the two Chrome sources.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 09:07:46 +00:00
a9b4745f1f feat(player): add customizable branding to the preview player (#7718)
A page that embeds <hyperframes-player> can now give it its own play,
pause and volume icons and its own loading logo, by putting elements with
a slot attribute inside the player. Anything the page leaves out keeps
today's HyperFrames look.

Co-authored-by: robinebers <16515780+robinebers@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
2026-11-18 04:10:18 +00:00
Miguel Ángel e6cee094b1 fix(cli): tests read opencv.js from a CI cache, never a CDN mid-test (#7968)
* fix(cli): tests read opencv.js from a CI cache, never a CDN mid-test

* chore(ci): re-pin the cli test job after its opencv cache step

* chore(cli): one-line note on the opencv cache copy
2026-11-18 02:02:15 +00:00
Michael Wang 63c8f8ef66 fix(skills): the launcher never starts a CLI older than its security floor (#8125)
The skill launcher raises its floor to 0.9.64, the oldest release with every
protection for projects received from someone else. The floor applies to a
plugin pin, to --cli-version and to HYPERFRAMES_STANDALONE_CLI_VERSION. A
release below it is refused with a message that names the floor.

The skill lifecycle reference no longer sends the agent back to the project's
pinned release after a failed check. The agent stops and reports, and runs
the old release only when the person asks for it. The CLI notice for a
project that pins a newer release now says the pin is the person's choice.
2026-11-18 00:56:38 +00:00
Michael Wang 3f3fa67f9c fix(producer): charge generated mount scripts and scoped styles to the budget (#8094)
* fix(producer): charge generated mount scripts and scoped styles to the expansion budget

The expansion budget charged only the source bytes of each mounted file.
The inliner wraps every inline script in kilobytes of scoping code and
prefixes every style rule with the host's scope, so tiny scripts or a long
composition id over many rules assembled a page hundreds of times larger
than its source.

The inliner now reports what it generates through a chargeEmitted option.
Each wrapped script is charged once built. Each style rule reserves an upper
bound before it is scoped and settles to its real size after, so no rule is
built past the limit. Generated output has its own 32 MB allowance.

* fix(core): reserve the separator postcss re-joins scoped selectors with

The per-rule reservation summed a bound per selector but left out the
separator. postcss's selectors setter re-joins the list with the first
separator in the authored selector, so a wide first separator over many
selectors grew the rule past its reservation before it was charged.

* test(core): give the scoper bound test the same time limit as its neighbour
2026-11-17 22:53:11 +00:00
Miguel Ángel 0b0108f2f6 ci: watch the MCP registry hourly for HeyGen listings server.json never held (#8107)
* test(ci): flag registry listings under HeyGen names that server.json never held

* ci: watch the MCP registry hourly for HeyGen listings server.json never held

* test(ci): the registry watch covers heygen.com's subdomain namespaces

* fix(ci): the registry watch covers heygen.com subdomains and opens an issue when it fails
2026-11-17 21:47:09 +00:00