* fix(studio): copy, duplicate and audio lane updates work in a sealed preview
* fix(studio): a sealed copy keeps its starting selection, and a stale lane read is dropped
* fix(studio): a saved lane value outlasts an older sealed read, and cut deletes in its own project
* fix(studio): a sealed preview pauses on press and reopens a link's selection
* fix(studio): a linked selection retries on a timer, whatever the playhead
* refactor(studio): one lookup-state hook keeps the URL-state hook's size where main had it
* fix(studio): a linked group member keeps the lookup waiting until the preview can answer for it
* 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.
* test(studio): a sealed scene's children and clip parents fill as an open preview's do
* fix(studio): a sealed preview's scene children and clip parents come from the editing port
* test(studio): a sealed preview's first-frame event carries its clips and length
* fix(studio): a sealed preview's first-frame event counts its clips from the document copy
* refactor(studio): drop two comments the names already carry
* fix(studio): refused group, freeze frame and animation saves keep the server's status
* refactor(studio): withStatus says what it does without a comment
The bench's openStudio now waits in the page for Studio's own word that the
composition loaded (studio_look reports a duration) under the one 90 s boot
budget, instead of a separate 30 s poll that failed a case Studio was still
loading after a reload under load. A boot that never loads names Studio's last
report, and seekBound names the condition it was still waiting on.
hiddenTarget no longer throws on a preview frame detached mid-scan: puppeteer
throws that synchronously, so the per-frame .catch never ran.
* test(studio): property panel edits in a sealed preview reach the frame's element
* fix(studio): property panel style and attribute edits show in a sealed preview
* fix(studio): keep live property saves synchronous and use the runtime's realm-safe element check
* fix(studio): a sealed edit's put-back never replaces a newer edit
* refactor(studio): keep the sealed save wait private
* fix(studio): check a sealed edit's put-back reply without the helper main removed
* 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
* fix(studio): a sealed preview's element reads are bounded, and a frame with no agent answers at once
* fix(studio): a sealed preview's sources and style names are bounded too, never cut
* 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
* 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
* 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
* 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.
* 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
* 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
* 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.
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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>
* 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
* 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