Commit Graph
2098 Commits
Author SHA1 Message Date
Miguel Ángel d574ded1ec fix(studio): a sealed preview takes its film's size from the player (#7967)
* fix(studio): a sealed preview takes its film's size from the player

A sealed preview frame refuses Studio's reads, so the size reader found no
document and Studio kept a 16:9 stage and no size for anything placed on
the picture. For a sealed frame it now reads the size its player got from
the runtime, once the player is ready, and the preview reads it again when
the player reports it.

* fix(studio): a sealed preview's size reader keeps its files' comment share

* refactor(studio): the player's size callback reaches its newest owner through one stable call

* fix(studio): a sealed preview reads its size once its film is ready to show, with no new player prop

* test(studio): the preview's mock player loads once, as a frame does
2026-11-18 06:59:47 +00:00
Miguel Ángel c569417bb5 fix(studio): crop and scale resize work in a sealed preview (#8005)
* test(studio): sealed preview crop and scale resize read the frame's values

* fix(studio): crop and scale resize work in a sealed preview

* test(studio): a sealed preview's crop lift and resize box survive lost or bad frame replies

* fix(studio): a sealed preview's crop lift and resize box survive lost or bad frame replies

* refactor(studio): the crop's stylesheet clip under a lift is read in its own step

* test(studio): the frame crop-lift helper answers the lift it just sent
2026-11-18 01:44:51 +00:00
Miguel Ángel 80bf6a9ddb fix(studio): slideshow scenes, block stacking, drill-down and shortcuts work in a sealed preview (#8118)
* fix(studio): slideshow scenes, block stacking, drill-down and shortcuts work in a sealed preview

* fix(studio): sealed preview keys act only with the preview focused; frame replies are validated
2026-11-17 23:36:08 +00:00
Miguel Ángel 32ff8b3323 chore: release v0.9.65 (#8121) 2026-11-17 23:19:45 +00:00
Miguel Ángel 195aa2f0cd fix(studio): error events send a class, a shape and Studio's own frames, not the error's words (#8114)
* fix(studio): error events send a class, a shape and Studio's own frames, not the error's words

Error messages from the browser, a server or the project now leave as an unsalted shape of the cut first line (numbers, quotes and paths removed) plus any HTTP status, beside the error class each sender now passes. Stacks keep only frames in Studio's own scripts as fn@file:line:col; any other frame, its name included, is ?. Component stacks keep component names. A script filename is sent only when it is one of Studio's own. The resolver shadow's mismatch list no longer carries the error's words or the selector-built animation id.

* fix(studio): error shapes match across projects and bare paths are never Studio frames

Only an absolute http(s) frame on Studio's origin is kept; the message shape cuts URLs and selector ids and uses the install salt.
2026-11-17 22:40:21 +00:00
Miguel Ángel ce3decb6b5 fix(studio): Add keyframe on a sealed preview keeps a moved layer in place (#8117)
* test(studio): Add keyframe on a sealed preview seeds from a moved layer's translate

* fix(studio): Add keyframe on a sealed preview keeps a moved layer in place

* fix(studio): a sealed keyframe seed reads the translate the frame renders, a stylesheet's too
2026-11-17 22:34:24 +00:00
Miguel Ángel 7a9d78e69a fix(studio): a sealed preview moves and saves a layer its animation moves (#8105)
* test(studio): a sealed preview moves and saves a layer its animation moves

* fix(studio): a sealed preview moves and saves a layer its animation moves

* test(studio): a sealed drag of a moving layer saves nothing when the preview's tweens can't be read

* fix(studio): a sealed drag of a moving layer saves nothing without the preview's tweens

* refactor(studio): keep the drag stamp's writer beside its reader

* style(studio): keep the drag stamp reader's comment on the reader
2026-11-17 22:02:42 +00:00
Miguel Ángel d872853874 fix(studio): analytics send path and selector facts, not the paths and selectors (#8109)
* fix(studio): analytics send path and selector facts, not the paths and selectors

Both Studio transports now shape every event's values in one place before they leave the machine: a file path becomes its extension, kind, depth and a per-install salted hash; a selector becomes its kind and the same hash; any other value that reads as a path or selector is dropped and named in dropped_fields. Save failures send the error class, a fixed error key and the server's fixed refusal code instead of the error's words. Session fields can no longer be overwritten by a caller.

* fix(studio): save failures keep their dedupe and no selector leaves in shadow mismatches

The editor's failure dedupe keys on the error's own text again, locally. The resolver shadow's animation_not_found no longer repeats the animation id inside mismatches. Error keys and path kinds read from tables; the server's full refusal list is known.

* fix(studio): a paused save queue reports codes, not the save error's words

save_queue_paused spreads the save failure's fixed codes again; its handler lives outside the persistence hook.
2026-11-17 21:58:39 +00:00
Miguel Ángel 53a493edc8 refactor(studio): the GSAP reply check shares the frame record and handle checks (#8104) 2026-11-17 21:58:21 +00:00
Miguel Ángel 373d987e32 fix(studio): the motion path draws and can be created in a sealed preview (#8108)
* test(studio): a sealed preview's motion path finds its layer's home

* fix(studio): the motion path draws and creates in a sealed preview

* test(core): a motion path's home counts a wrapper's 2D and 3D translate

* test(studio): a sealed click places a new motion path from the layer's home at the click

* test(studio): a sealed motion path refuses a bad frame reply and reads the blur root via the port

* fix(studio): a sealed click places a new motion path from the layer's home at the click

* refactor(core): a motion path home reads a matrix's translate in one small helper
2026-11-17 21:58:01 +00:00
Miguel Ángel ba62d77489 fix(studio): the edit bench waits out the preview swap once a plain element gains keyframes (#8113) 2026-11-17 21:36:28 +00:00
Miguel Ángel 1bf629c1d3 fix(studio): a selected element stays drawn and draggable after a sealed preview reloads (#8081)
* test(studio): a sealed preview's new page keeps the selection drawn and draggable

* fix(studio): a selected element stays drawn and draggable after a sealed preview reloads
2026-11-17 20:17:20 +00:00
Miguel Ángel 93622154ef fix(studio): a click after two quick seeks adds the keyframe in a sealed preview (#8103)
* test(studio): a click after two quick seeks reads GSAP values at the playhead

* fix(studio): a click after two quick seeks waits for the sealed preview's read at the playhead
2026-11-17 20:08:22 +00:00
Miguel Ángel 133965e4f5 fix(studio): GSAP keyframe and value reads work in a sealed preview (#8003)
* test(studio): adding a keyframe at the playhead reads a sealed preview's GSAP values

* fix(studio): GSAP keyframe and value reads work in a sealed preview

* test(studio): run the sealed keyframe test's agent on a marked Studio preview page

* test(studio): a sealed preview's GSAP reply is checked before Studio holds it

* fix(studio): hold a sealed preview's GSAP reply only when it is in shape and within bounds

* style(core): keep the snapshot limits module within the comment share

* refactor(studio): check a GSAP reply's tween in small parts

* build: raise the core packed-size budget for the sealed preview's GSAP reader

* test(core): a sealed preview's GSAP read takes a real keyframes tween

* fix(core): a sealed preview's GSAP read leaves GSAP's live objects out of a tween's vars
2026-11-17 19:11:15 +00:00
Miguel Ángel f291b12598 chore: release v0.9.64 (#8097)
* chore: release v0.9.64

* chore: list #8090 and #8092 in the v0.9.64 notes
2026-11-17 18:25:31 +00:00
Miguel Ángel cda94eb0f6 fix(studio): timeline rows in a sealed preview know their element, source file and audio group (#8078)
* test(studio): a sealed preview's timeline rows bind to their elements

* fix(studio): timeline rows in a sealed preview know their element, source file and audio group
2026-11-17 16:49:19 +00:00
Miguel Ángel a56fa2caf3 fix(studio): scrubbing the playhead plays the music track in a sealed preview (#8082)
* test(studio): scrubbing a sealed preview plays the music track

* fix(studio): scrubbing the playhead plays the music track in a sealed preview

* fix(core): the scrub uses the runtime's wall-clock timers and media-time writer
2026-11-17 16:25:29 +00:00
Miguel Ángel e86594759c chore: release v0.9.63 (#8080) 2026-11-17 15:55:44 +00:00
Miguel Ángel 5f8b7a6eee fix(studio): the edit bench reads a sealed preview through its editing port (#8010)
* test(studio): the edit bench measures an element inside a sealed preview

* fix(studio): the edit bench reads a sealed preview through its editing port

* fix(studio): the edit bench drops a preview reply that lands after a release or the next drag

* fix(studio): the edit bench pairs each frame's pushed geometry with the pointer at that moment

* fix(studio): the edit bench pairs Studio's outlines and the watched element by time, not arrival

* fix(studio): the edit bench starts a drag only once the preview has measured the element
2026-11-17 14:36:04 +00:00
Miguel Ángel fbcdf4cad7 chore: release v0.9.62 (#8075) 2026-11-17 14:15:36 +00:00
Miguel Ángel df31ce2b15 fix(studio): a layer reorder is one undo step again (#8072)
* fix(studio): a layer reorder is one undo step again

* fix(studio): a lane drag's save still paints back at once inside a reorder gesture
2026-11-17 13:35:06 +00:00
Miguel Ángel 93a4d29c03 fix(studio): audio meters and audio groups work in a sealed preview (#8011)
* test(studio): audio meters and group volume in a sealed preview

* fix(studio): audio meters and audio groups work in a sealed preview

* chore(inspector): raise the unpacked size budget for the preview's audio editing kinds

* test(studio): the sealed audio test serves a Studio-marked preview, as the editing port now requires
2026-11-17 13:26:15 +00:00
Miguel Ángel b064e40e13 fix(studio): adding a track no longer remounts every clip on the timeline (#8068)
* test(studio): adding a track keeps every existing timeline clip mounted

* fix(studio): adding a track no longer remounts every clip on the timeline
2026-11-17 12:37:23 +00:00
Miguel Ángel 7a0bec6828 fix(studio): a service worker a project left behind is gone before a preview frame loads (#8067)
* fix(studio): a service worker a project left behind is gone before a preview frame loads

* fix(cli): the player page's inlined script list is escaped for a script tag
2026-11-17 11:05:40 +00:00
Miguel Ángel 3599623f92 chore: release v0.9.61 (#8051) 2026-11-17 10:56:12 +00:00
Miguel Ángel efc91fc877 feat(studio): an element's source-parsed animations are part of Studio's API (#8061) 2026-11-17 09:03:19 +00:00
Miguel Ángel 55291c00c2 fix(core): only Studio's own preview pages get the editing port, and undo sets only safe attributes (#8057)
* fix(core): only Studio's own preview pages get the editing port, and undo sets only safe attributes

restore-attributes now changes only class, style and the editor's timing, layout, audio and label data- attributes, and drops only data- ones; any other change answers applied: false and Studio reloads the preview. The editing agent hands its port over only when the page carries Studio's preview mark and not the another-site mark, so a page no Studio marked never offers it.

* fix(core): undo on a lazily loaded image still applies in place

The preview server adds loading="lazy" to timed images and the saved file does not have it, so the restore now may drop loading; dropping it loads nothing new.

* style(core): keep the restore plan's doc comment within the line limit
2026-11-17 08:46:24 +00:00
Miguel Ángel 647bdd4d7c fix(studio): each drag shows as its own undo step once its save lands (#8033)
* test(studio): three quick drags give three undo entries in the history list

* fix(studio): each drag shows as its own undo step once its save lands

* test(studio): the edit bench fails a gesture missing from the history list

* refactor(studio): the held-entry close is a plain function, and the bench helper stays private

* chore(studio): mark the history hook's existing complexity the way other large hooks are

* fix(studio): a drag's history claim waits for the previous drag's close to land
2026-11-17 08:08:46 +00:00
Miguel Ángel d7d416124f fix(studio): colour grading works in a sealed preview (#7999)
* test(studio): colour grading previews and status on a sealed preview

* fix(studio): colour grading reads a sealed preview through the editing port
2026-11-17 07:00:14 +00:00
Miguel Ángel 915021265f fix(studio): caption editing works in a sealed preview (#8002)
* test(studio): caption overlay shows and edits words in a sealed preview

* fix(studio): caption editing reads and moves words through the editing port in a sealed preview

* style(studio): format the caption port change and trim its comments

* fix(studio): keep the caption port change inside its files and under the size checks

* fix(studio): keep late caption frame answers from writing after Studio moves on

A caption detection, nudge or drag still waiting on a sealed preview no longer
writes after its effect is gone, and a frame-reported word transform past the
frame's own write bound is refused instead of stored. Each has a test against
the real editing agent that holds the frame's answer open.

* refactor(studio): move the sealed caption nudge queue next to the frame word helpers

Keeps the caption overlay under the studio file size limit and its comment share at the base. No behaviour change.

* refactor(studio): keep the sealed caption nudge request inside its helper file
2026-11-17 06:02:22 +00:00
Miguel Ángel 9daa7e876d fix(studio): a sealed preview's reload shows in a fraction of a second, not after 8 s (#8015)
* fix(studio): a sealed preview's reload shows in a fraction of a second, not after 8 s

* fix(studio): the sealed reload's frame sits under the live one, so clicks stay on the live frame

* fix(studio): the sealed reload's frame stays on top but inert, so clicks reach the live frame

Under the live frame (z-index -1) the reload's frame was left unpromoted in a traced run; on top and inert it renders and swaps in, and hit testing skips it, its own frame included.

* refactor(studio): name the sealed reload's style for what it does, not in comments

* fix(studio): the reload code marks a sealed reload's player inert until it is promoted

Player keeps main's shape: the hook that owns the reload sets inert on the hidden frame's player element when its frame arrives and clears it at promotion.

* test(studio): keep the reload-inert test's comment under the line limit
2026-11-17 05:55:20 +00:00
Andy CheighandClaude Opus 5.5 19743ea094 fix(studio): the copied render command carries no composition text a shell can run (#8012)
* fix(studio): the copied render command carries no composition text a shell can run

The Variables panel's "Copy render command" put every variable value inline,
quoted for POSIX shells only. A shared project's author chooses those values,
so in PowerShell, cmd.exe (including npx.cmd's re-parse) or fish a default
such as `x'; calc.exe; '` ran as commands when the command was pasted.

The command is now fixed text: `npx hyperframes render -c <composition>
--variables-file .hyperframes/render-variables.json`. Copying it saves the
previewed values to that file through a new PUT /projects/:id/render-variables
route, which refuses a link standing in for .hyperframes and replaces, rather
than writes through, a link at the file itself. A composition path that is not
one plain word in every shell (letters, digits, `_ . / -`) gets no command.

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

* fix(scripts): the comment checker skips a template nested in a substitution

stripLiterals ended a template literal at the first backtick, including one
that opens a nested template inside `${...}`. On a line such as
`'${value.replace(/'/g, `'\\''`)}'` that left a backtick unmatched, so
scanCLike read the rest of the file as one template and counted none of its
comments. The ratchet then measured VariablesPanel.tsx on main at 1 comment
line instead of 31 and failed any change that removed that line.

A `${...}` is now scanned as code: strings, regexes and templates inside it
are skipped, and its closing brace returns to the outer template.

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

* test(studio-server): read the replaced render-variables record through one no-follow descriptor

The link test checked the record with lstat and then read it by path, two
lookups CodeQL reports as a file-system race. Opening it once with O_NOFOLLOW
fails if a link is still there and reads the file that open checked.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 05:05:28 +00:00
Michael Wang 8239fe4702 fix: the dev Studio's renders follow the received-project rule, and a received project's .env keys never replace the person's own (#8004)
* fix(studio): dev Studio renders apply the received-project rule for outside files

The Vite Studio adapter started every render with files from outside the
project allowed. It now asks the CLI's outsideAssetsAllowed, the same check
the CLI's embedded Studio, hyperframes render and benchmark use. A project
whose received-files record lists code files, or cannot be read, renders
without files from outside the project, and the reason prints with a
[studio] prefix.

The adapter loads the rule from the CLI source through the dev server, as it
already does for background removal. It runs only from a source checkout, so
studio takes no package dependency on the CLI.

* fix(cli): a received project's .env provider key never replaces your own credential

A received project's .env could set OPENROUTER_API_KEY, GEMINI_API_KEY,
GOOGLE_API_KEY or Vertex settings that outranked a vision or Gemini
credential the person set in the shell, so capture, snapshot describe and
media-use speech and music could send content to another account.

After the CLI and capture load a project .env, each provider key it set is
unset when that .env came with a received project (a received-files record
lists it, or a record cannot be read) and the person has their own
credential for a competing provider. One stderr line names the key, the
.env file and the credential used instead.

A person's own project .env keeps its keys and its current precedence, so
an OPENROUTER_API_KEY in a project .env still wins over a Gemini key in the
shell, as the docs describe. Voice needs no change: the person's HeyGen
credential already ranks above ElevenLabs.

* fix(cli,media-use): media-use scripts apply the received .env rule, ElevenLabs included

The media-use audio scripts read the project .env again, so a Gemini key the
CLI had left out came back. They now apply the same rule after loading: a
key from a received project's .env gives way to the person's own credential
for a competing provider. GEMINI_API_KEY and GOOGLE_API_KEY give way to the
person's Gemini key or service account. ELEVENLABS_API_KEY gives way to the
person's HeyGen sign-in, saved key or shell key. A dropped key gets one
stderr line that names the file and the credential used instead.

A received ElevenLabs key that is still used, because the person has no
competing credential, gets one stderr line naming the .env before speech
starts. hyperframes media-use tells the engine which keys it took from a
project .env (HYPERFRAMES_PROJECT_ENV_ORIGINS), so a key the CLI loaded is
not mistaken for the shell's.

When the project's folders are too many to scan for received-files
records, the CLI's note now says the project's origin could not be
checked, instead of calling it a received project.

* refactor(studio): check the shape of the CLI's outside-files rule before calling it

The Vite adapter loads outsideAssetsAllowed from the CLI source at run time.
It now checks that the export is a function and treats only a true result
as allowed, instead of casting the module's export.

* docs(auth): a received project's ElevenLabs key gives way to your HeyGen credential

* test(studio): load the received-project rule before render waits start
2026-11-17 05:04:15 +00:00
Miguel Ángel c8235f1235 fix(studio): a modal opened from a popover or menu closes first on Escape (#7976) 2026-11-17 04:24:56 +00:00
Miguel Ángel fee03bfbe1 fix(studio): an undo on a sealed preview shows in place, not after a reload (#8009)
* fix(studio): an undo on a sealed preview shows in place, not after a reload

* fix(studio): split the sealed restore checks, and the inspector budget takes the new kind
2026-11-17 03:55:09 +00:00
Miguel Ángel a6dd840eb1 chore: release v0.9.60 (#7994) 2026-11-17 01:59:35 +00:00
Miguel Ángel 028ab75535 chore: release v0.9.59 (#7973) 2026-11-17 00:10:38 +00:00
Miguel Ángel c77cd301c8 fix(studio): a long audio file from outside the project is never decoded for its waveform (#7961) 2026-11-16 17:20:32 +00:00
Miguel Ángel 51ae925105 feat(core): describe replies carry the picker's element label, and studio exports standInHandle (#7936)
* feat(core): describe replies carry the picker's element label, and studio exports standInHandle

* fix(core): label an element by its rendered text, and read a describe reply without a label

* style(core): format the rendered-text walk
2026-11-16 16:10:26 +00:00
Miguel Ángel 87955b890e fix(studio): beat analysis never picks a recording longer than a song (#7944)
* fix(studio): beat analysis never picks a recording longer than a song

* fix(studio): a long music track keeps its saved beats; the cap judges the file alone

* fix(studio): a music track's beat edits survive its file length arriving
2026-11-16 16:10:12 +00:00
Miguel Ángel 725d13bb1d chore: release v0.9.58 (#7932) 2026-11-16 15:15:30 +00:00
Miguel Ángel b741ecf132 feat(studio): a sealed preview frame forwards Studio's playback keys (#7844)
* feat(studio): a sealed preview frame forwards Studio's playback keys

* fix(core): a key held while Studio re-sends its watch list still forwards its keyup

* fix(core): the key watch adds and removes its listeners by name, as the runtime typecheck needs

* chore(producer): raise the unpacked size budget for the runtime's key forwarding
2026-11-16 08:09:03 +00:00
Miguel Ángel 889143eac9 fix(core): a color-graded video's dissolve and wipe play in preview and export (#7756)
* fix(core): a graded video's opacity animation reaches its export

* fix(core): a graded clip keeps its own clip-path, so it never renders black

* test(producer): golden render of graded video dissolve and wipe

* fix(core): a graded clip stays clickable in the preview, hidden by a filter not a clip

* chore(studio): drop an import the reader no longer uses, and format the graded fixture
2026-11-16 07:06:33 +00:00
Miguel Ángel 1e040f6fef fix(studio): the preview picture takes its box's size in the same frame, scaled or not (#7907)
* fix(studio): the preview picture takes a new box size in the same frame

The preview stage measured its box in a ResizeObserver and stored the size
in React state, which rendered a frame later. A box that grows at once (the
window going full screen) painted one frame with the old, small picture, and
macOS animated that frame for its whole full-screen transition.

* fix(studio): the preview picture takes a new box size in the same frame

* fix(studio): the preview picture is sized from its box's layout, not its on-screen rect

* style(studio): format the preview stage size test
2026-11-16 06:27:15 +00:00
Miguel Ángel 1b29623f18 chore: release v0.9.57 (#7921) 2026-11-16 06:16:47 +00:00
Miguel Ángel dab8dc8070 fix(studio): a host that shows a still gets a preview reload with one page at a time (#7905)
* fix(studio): a host that shows a still gets a preview reload with one page at a time

A full reload kept the live page beside the reload's own until it was promoted, so a heavy project held two
whole pages at once. A host that can show the live frame as a still (holdPreviewStill) now has the live page
dropped behind it while the reload's page loads alone; the still goes once the new page shows the live time,
and a reload that gives up brings the live page back at its time. With no still, nothing changes.

* fix(studio): keep the reload hook's comment share at the base

* fix(studio): pause before the still so a held reload resumes from the frame it shows

* fix(studio): drop a give-up's still on the live page's own load, not a polled load event

* fix(studio): a host that throws while taking the still falls back to the two-page reload
2026-11-16 05:21:00 +00:00
Miguel Ángel 2be03408db fix(studio): recovery drafts are kept by each project's own server, never the browser (#7904)
* fix(studio): recovery drafts are kept by each project's own server, never the browser

* fix(studio): a restored draft stays offered when Studio settles which composition is open

* fix(studio): a draft read never waits on a pipe or loads an oversized record

* test(studio): the draft read's child fixture is an entry point, and its note sits in the test

* chore(studio-server): size budget covers the recovery-draft route

* chore(cli): unpacked size budget covers the recovery-draft route
2026-11-16 04:48:52 +00:00
Miguel Ángel a0848ad353 feat(studio): export a sealed preview's checked element reads and stand-ins (#7918)
* feat(studio): export a sealed preview's checked element reads and stand-ins

* refactor(studio): drop the comment on the sealed preview exports
2026-11-16 03:33:02 +00:00
Miguel Ángel 79990aed9a chore: release v0.9.56 (#7915) 2026-11-16 03:29:27 +00:00
Miguel Ángel 846cce4891 fix(cli): the CLI trusts a preview only once it proves this user started it (#7899)
* fix(cli): the CLI trusts a preview only once it proves this user started it

* test(cli): a listener that cannot prove it is the user's preview is never trusted

* test(cli): stand-in previews answer the challenge as the user's own do

* style(cli): format the preview proof changes

* fix(cli): a preview's proof names its own endpoint and config, and the token file must be private

* style(cli): format the proof changes

* test(studio): the fake request in the host check has a socket, as every real one does

* fix(studio): a Studio started by hand proves it is the user's, so the CLI still finds it

* fix(cli): the challenge travels in a header, so Studio's routes keep their exact paths

* style(studio): keep the config producer compact
2026-11-16 03:15:26 +00:00