Commit Graph
2687 Commits
Author SHA1 Message Date
Miguel Ángel 8f335ae59b fix(cli): captured videos are saved only under a video name the tool chose (#8750)
* test(cli): a captured video is saved only under a tool-chosen video name

* fix(cli): captured videos get a video extension chosen from their bytes, never the page's name

* test(cli): the capture name tests make the manifest folder and type their stand-in bodies

* fix(cli): capture --video releases the response it refuses as no video

* fix(cli): capture --video prints the already-downloaded name through terminalText

* test(cli): video.ts now prints one fewer unwrapped value

* test(cli): two captured videos with one name stem keep both files

* fix(cli): a capture's second video with a taken name saves as name-2, not over the first

* test(cli): two captured videos whose names differ only in case keep both files

* fix(cli): a capture's video names count as taken whatever their case
2026-11-25 02:43:11 +00:00
Miguel Ángel 082d6f6edb fix(cli): a whisper model is named by one plain file-name part, never a path or link (#8755) 2026-11-25 02:43:08 +00:00
Miguel Ángel d55ecae30e fix(producer): auto GPU mode measures its choice once per machine and reuses it (#8788)
* 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
2026-11-25 02:43:01 +00:00
Ular Kimsanov c7e19fdd24 fix(cli): capture checks the page's token result before using it (#8766)
* fix(cli): capture checks the page's token result before using it

extractTokens cast the page's evaluate result straight to DesignTokens.
The page can redefine the built-ins its script uses, so headings or ctas
could come back as objects whose length is text, and buildPrompt wrote
that text into AGENTS.md, CLAUDE.md and .cursorrules as a count.

normalizeDesignTokens rebuilds every field to its declared type and
bounds each list and text before anything reads the tokens, and
buildPrompt counts only real lists.

* fix(cli): keep the token fields in the script's order and drop URLs a cut would break

The agent-file count helper is named for what it reads instead of carrying
a comment. ogImage, section asset URLs, background images and CTA links over
their limit are dropped whole rather than cut to a different address, and
the normalised tokens keep the extract script's key order so tokens.json is
unchanged for a normal page. The existing agent-file test now also covers
headings and CTAs whose length is text.

* test(cli): cover each value the token check drops whole
2026-11-25 02:24:12 +00:00
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
Miguel Ángel 5c4f5febbc fix(cli): a cached whisper model is used only once its sha256 matches its pin (#8762)
* fix(cli): a cached whisper model is used only once its sha256 matches its pin

* fix(cli): the whisper model's verified stamp is read once and replaced atomically
2026-11-25 00:43:40 +00:00
Miguel Ángel 20b020d192 fix(cli): DO_NOT_TRACK and HYPERFRAMES_NO_TELEMETRY turn telemetry off the same way everywhere (#8781)
* fix(cli): DO_NOT_TRACK and HYPERFRAMES_NO_TELEMETRY turn telemetry off the same way everywhere

* fix(skills): the standalone media-use skill reads telemetry opt-outs through the shared check

* ci: run the edit accuracy bench when the shared telemetry opt-out check changes
2026-11-25 00:43:19 +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
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
Michael Wang 3865262ba3 perf(parsers): judge private paths in linear time (#8691)
* perf(parsers): judge private paths in linear time

isStudioPrivatePath decided whether each segment sat at the project root by
copying and scanning every earlier segment, so its work grew with the square
of the segment count. It now finds the first named segment once. The two
media-use copies change the same way, and lint refuses a
data-composition-src longer than any file path before resolving it.

* chore(skills): regenerate the media-use audio-carve bundle

It bundles the private-path rule, which this branch makes linear.

* test: bound the long-path tests by input size, not wall time

The isPrivateFileUnder test runs on 200,000 segments, and the lint test's
40,000-character source has no timer. CI runners took just over the old limits
while the results stayed right.

* chore(parsers): raise the unpacked size budget by 1,000 bytes

The linear private-path check adds a few dozen bytes to @hyperframes/parsers,
which put it 22 bytes past its budget's 1% margin (924,172 against 924,150).
2026-11-24 22:12:49 +00:00
Michael Wang 5a15b549b6 fix(media-use): accept CAF, W64, WavPack, AU and AC3 audio again (#8716)
* fix(media-use): accept CAF, W64, WavPack, AU and AC3 audio again

The self-contained reader lists left out five single-file audio containers,
so recordings in those formats stopped probing. Each one holds its own
media and opens no other file. Add their ffmpeg reader names (caf, w64, wv,
au, ac3) to the skill's list and to the parsers fallback list.

When a file is still refused, the message now names the accepted
containers instead of saying ffmpeg cannot read it.

* test(parsers): end ffprobe options with "--" in the container probe test

* fix(cli): media-use resolve accepts CAF, W64, WavPack, AU and AC3 audio

Add the same five single-file audio containers to the CLI media-use
reader list, and to the drift check's stand-in demuxer listing.

* chore(parsers): raise the unpacked size budget for the wider container list

The five added reader names push @hyperframes/parsers a few bytes past
its 1% tolerance; it was already within 0.1% of the limit on main.
2026-11-24 21:09:45 +00:00
Michael Wang dd3f8440b1 fix(studio-server): judge file writes as files, and refuse names that shadow a module (#8711)
* fix(studio-server): judge file writes as files, and refuse names that shadow a module

A create or overwrite is now judged as writing a file whatever stands at the
path, and a create is checked again once its body has arrived, so swapping a
folder away while the body is pending no longer lets an extensionless name
through. Below a tooling package.json, a file whose name plus a module
extension names a file beside it (db.utils next to db.utils.js) is refused
too, since Node loads the exact name first.

* fix(core): refuse names that shadow a module in the shared Node-tooling rule

The sibling-module check now lives in core's nodeMayRun, where the rule moved,
so Studio saves and hyperframes add from another registry both refuse a file
Node would load before the module beside it.

* docs(core): describe the shadowing rule without a file-like example

The comments check reads the example name as a citation of a missing file.
2026-11-24 20:22:56 +00:00
Miguel Ángel b30aaa26d5 fix(cli): add says why a project's registry was not read (#8754)
* fix(cli): add says why a project's registry was not read

* test(cli): the registry-reason test typechecks
2026-11-24 20:14:45 +00: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
Michael Wang 179ebc1011 fix: close the review notes on the stems record and the puppeteer-core lookup (#8702)
* fix: close the review notes on the stems record and the puppeteer-core lookup

audio --read: a fetch clears a no-vocals.wav left in the stems folder, and the voice-free mix is
reused only when the record names it, then added to the record once mixed, so a mix that came
with a project is never reported as this install's. Tests now pin that a stems.json the record
does not name is never read, that a stem swapped for a link is refused, that a playlist is
refused at the voice reader, and that every stem the mix and the description open carries the
self-contained input.

bake-basemap: npm is asked once per home folder, a relative answer from npm is pinned as unused,
and Volta's folder for a globally installed package is read when VOLTA_HOME is set.

* refactor(cli): keep stems.ts at its comment share
2026-11-24 19:56:39 +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 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
Wenbo ZhuandClaude Opus 5.5 f041181ebb fix(cli): measure probe --normalize replaces a link at the output name (#8738)
* fix(cli): measure probe --normalize replaces a link at the output name

normalize() handed the final --normalize path straight to ffmpeg, so a
symbolic link already at that name was followed and the file it points
at was overwritten with the encoded copy. It now encodes through
ffmpegToFile(), which writes under a private name and renames over the
requested one, as the other measure writers already do. A failed encode
leaves nothing at the destination.

Adds a test with the output name linked to a file outside the project:
that file stays untouched and the output name becomes a regular file.

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

* fix(cli): drop the comment the staged write no longer needs

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 17:57:21 +00:00
Miguel Ángel 534607f46a fix(cli): grade-compare opens a grades file's LUT paths only inside the project (#8724) 2026-11-24 17:01:32 +00:00
Miguel Ángel 2b11131bef fix(cli): registry add looks for a Node package in the folders a file is written to (#8722) 2026-11-24 16:48:36 +00:00
James Russo 08431260d9 chore: release v0.9.91 (#8718) 2026-11-24 15:30:29 +00:00
James RussoandClaude Fable 5.2 45846f1e6d fix(cli): tts replaces a link at its output name with the audio file (#8707)
* fix(cli): tts replaces a link at its output name with the audio file

The synthesis script wrote in place, so a link at the output name had the
file it points to overwritten. The script now writes to a fresh name in the
same folder, which is renamed over the output.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* docs(cli): say tts replaces a file or link at its output name

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): stage tts audio under a short name and say why a late step failed

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): tts keeps a replaced file's permissions and refuses a write-protected one

The rename retries a file Windows still holds, and a failed start or a
timeout now says why.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): tts names a silent exit by its code or signal, not its command line

A link at the output name is replaced whatever it points to.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(cli): skip the link, permission and long-name tts cases on Windows

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(cli): read the tts output before checking what kind of file it is

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): a staged tts file that cannot be removed no longer hides the run's error

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 14:45:51 +00:00
James RussoandClaude Fable 5.2 93309f35cd fix(registry): inline the warm-grain starter's grain texture (#8712)
* fix(registry): inline the warm-grain starter's grain texture

The starter's grain layer loaded its paper texture from an outside site at
preview and render time. It now ships the texture as an inline SVG noise
tile, so a new project renders the same frames offline.

A test scans the starter files and fails when one names an outside host
other than the four the starters already use.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(registry): see a host named in a template literal

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(registry): split the skipped-file pattern into its two parts

One pattern held a path part and a file ending joined by "|", with the end
anchor on only one side. Two patterns say the same thing without relying on
operator precedence.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 13:52:05 +00:00
James RussoandClaude Fable 5.2 99ccd54c63 fix(cli): speak a narration line as written in local voice and tts (#8706)
* fix(cli): speak a narration line as written in local voice and tts

The local voice provider hands the line to tts in a file of its own, so a
line that names a .txt file or starts with dashes is spoken, not read or
taken as an option. tts and heygen-tts treat a word starting with two path
separators as text without looking it up.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(skills): pass the audio skill's own text file to tts with --text-file

Its temp folder can be on a network share, and tts no longer reads such a
path when it is given as a plain word.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): remove the local voice run folder when its text file cannot be written

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): refuse a .txt path on a network share instead of speaking it

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(cli): name the share paths outright so the tts cases hold on Windows

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 13:51:57 +00:00
James RussoandClaude Fable 5.2 42ad487987 fix(cli): capture keeps an SVG link attribute only under its plain or xlink name (#8705)
A link attribute written under another prefix (for example xl:href with the
prefix bound to the xlink namespace) was not checked as a link, so an SVG that
loads an outside file through it was saved as a plain image.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 13:51:50 +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
Michael Wang 7975ecc423 fix(cli): media-use resolve reads each asset as one local self-contained container (#8713)
probe() and the vendored grade analyzer ran ffprobe and ffmpeg on project files with every reader
and the default protocols, so a media-named list, manifest or script under assets/ could open
other files, and a script reader could run its script. Every read that resolve starts (--adopt,
--from --source, --for, --analyze) now passes -protocol_whitelist file and a self-contained
container list before the file. The vendored analyzer's limits are now at least as strict as the
core module's, and the parity test fails when a vendored read allows a reader the core one would
not, or drops the file-only protocol. mp3, wav, mp4 and png assets keep their metadata.
2026-11-24 12:54:08 +00:00
James RussoandClaude Fable 5.2 260a8d81cc fix(cli): add refuses block and component scripts the project's Node tooling may run (#8703)
* fix(cli): add refuses block and component scripts the project's Node tooling may run

A block or component never installs a TypeScript, JSX or CommonJS file. From a
registry other than the public one, a .js or .mjs file is also refused where a
package.json above the target brings Node tooling, the rule Studio saves follow.
The rule moves into core so the installer and Studio share one copy.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(cli): add refuses a page whose own file link leads to a Node-only script

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 12:21:24 +00:00
Michael Wang 01074d93c6 fix(parsers): refuse a media path with a % and a wildcard anywhere in it (#8693)
* fix(parsers): refuse a media path with a % and a wildcard anywhere in it

ffmpeg's image2 demuxer takes a name with *, ?, [ or { as a pattern, and a % it cannot parse
then cuts the name there, so it opens the shorter name. The guard only refused a % directly
followed by digits and d, % or a wildcard. It now also refuses a local path that holds a % and
any of those wildcards anywhere, in either order or in different folders. Names with a % and no
wildcard, such as "clip 100% done.mp4", are still read as written. The skill copies follow.

* refactor(parsers): name the wildcard rule instead of commenting it
2026-11-24 11:48:58 +00:00
James RussoandClaude Fable 5.2 37e4d4b75a fix(cli): capture saves an inline SVG as a file only when it is a plain image (#8699)
An inline SVG that carries a script, an event handler, embedded HTML, a link or a
reference to another file is no longer written under assets/svgs/. It is counted as
unavailable and stays in extracted/page.html. Downloaded SVG files already had this rule.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 11:29:43 +00:00
Michael Wang fb81a9d3d3 fix(cli): diff opens only media files the ledger names inside the project (#8695)
hyperframes diff read a media ledger's clip and still paths with a plain join
and probed and decoded them with no limit. A ledger path is now opened only
when its real path is a regular, non-private file inside the project and not
on another network root, and it passes the same media test check uses. Every
read of a ledger-named clip or still uses the guarded probe and the same time
limit.
2026-11-24 11:15:05 +00:00
James RussoandClaude Fable 5.2 7ea6e42f07 fix(studio): a project page opened straight from a link runs apart from Studio (#8697)
* fix(studio): a project page opened straight from a link runs apart from Studio

A preview document or project file reached by direct navigation (address bar,
chat or mail link) is answered the way one framed by another site already is:
in a sandbox, marked, and with its type fixed. Studio's own frames and thumbnail
captures are answered as before. The CLI's Studio server and the Studio dev
server ask for this; a host that opens previews in its own windows does not
have to.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* docs(cli): say how a preview address opened outside Studio behaves

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* refactor(studio-server): split who asks for a preview from how it is answered

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 11:05:26 +00:00
Michael Wang 51f189acf3 fix(cli): audio film queries read only sources the project may name (#8694)
* fix(cli): audio film queries read only sources the project may name

A film query resolved each clip's src from the composition and probed and decoded whatever it
named, so a project from someone else could have files outside it, or its own private files,
read without the person naming them. A clip's source is now analyzed only when it is a regular,
non-private file inside the project, or a file outside it that the received-project rule for
local renders admits. Anything else is reported as "file not found" and never opened. Files
named on the command line are unchanged.

* refactor(cli): keep targets.ts at its comment share

* docs(cli): say which clip files an audio film query reads

* fix(cli): print the outside-file notice through terminalText, and type the test mocks
2026-11-24 11:02:18 +00:00
Michael Wang 01d77af43f fix(cli): audio --read reuses only stems this install wrote, and asks HeyGen only at best (#8696)
A stems folder that arrived with a project was trusted by its shape, so its stems were read,
mixed and, at the default local quality, described through HeyGen with the person's credential.
fetchStems now writes a record under the HyperFrames config folder, outside the project, naming
each file it saved by device, inode, size and modification time, and cachedStems reuses stems only
when that record matches every file, before reading any of them. Stems are described only at
--quality best, so local and fast resolve no credential and make no request. Every reader of a
stem, the voice-free mix included, opens it through the file protocol as one self-contained
audio format, so a stem that is a playlist is refused before it is decoded, mixed or sent.
2026-11-24 10:56:57 +00:00
Michael Wang 02fbd3979f fix(studio-server): refuse extensionless files where node tooling may run them (#8682)
Below a package.json that does more than run the hyperframes CLI, Studio now
refuses an extensionless file name everywhere it refuses .js and .mjs. Node
loads an exact extensionless name before its .js, .ts or .json sibling, and a
manifest can run one directly. Folders are judged as folders, so renaming,
moving and uploading into folders are unchanged.
2026-11-24 09:54:37 +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
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
Miguel Ángel 5e1a490c80 fix(cli): check keeps copy windows for videos with #, ? or % in the name (#8669) 2026-11-24 08:39:25 +00:00
Miguel Ángel bfadf5b2b3 fix(cli): lambda deploy and destroy use only the checkout the CLI itself is in (#8664)
A folder above the CLI's own package that holds packages/aws-lambda no longer counts as a checkout, and a source checkout is named before it is built or deployed from.
2026-11-24 08:31:39 +00:00
Michael Wang b746a83e6e fix(cli): measure refuses output paths ffmpeg would write as a pattern (#8660)
* fix(parsers): refuse media paths with digits between a percent sign and a wildcard

* test(parsers): end ffprobe options with -- in the installed-ffprobe check

* fix(cli): measure refuses output paths ffmpeg would write as a pattern

* fix(cli): measure probe --normalize refuses a pattern-like output
2026-11-24 08:05:34 +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
Michael Wang b76bb07077 fix(studio-server): file routes and the received-files follower read one path (#8652)
requestSubPath now matches its route on decoded segments, as Hono does,
and returns null when the route is not in the URL. Every caller refuses
that request. The received-files follower refuses it too, so it and the
file route always act on the same path. The /api forwarder strips the
first segment however it is spelled.
2026-11-24 07:41:37 +00:00
Miguel Ángel 29a7d471ac fix(cli): check finding captures probe only the project's own videos (#8647) 2026-11-24 07:37:34 +00:00
Michael Wang de3e6153cc fix(cli): read every media path a command is given as that one file (#8650)
* fix(cli): read every media path a command is given as that one file

* test(cli): the hanging ffmpeg stand-in answers the demuxer listing
2026-11-24 07:35:57 +00:00
Miguel Ángel 7051b2512b fix(cli): timeline undo restores only project files from the project's backups (#8643) 2026-11-24 07:06:46 +00: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
terencecho 57ffe0b07d fix(cli): announce publish deprecation for new projects (#8629)
* fix(cli): announce publish deprecation for new projects

* test(cli): handle an absent publish notice in strict typechecks

* fix(cli): clarify ongoing publishes and migrate review guides
2026-11-24 02:07:04 +00:00
Miguel Ángel c9f9a52077 fix(cli): layout check reads black covers as opaque and scores modern-colour gradients (#8628) 2026-11-24 01:45:19 +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