Commit Graph
2138 Commits
Author SHA1 Message Date
Miguel Ángel 3c735ad01c fix(studio): a sealed audio group's undo reads the frame's reply only in its shape (#8291)
* test(studio): a sealed audio group's undo survives a reply of the wrong shape

* fix(studio): a sealed audio group's undo reads the frame's reply only in the shape it asked for
2026-11-20 15:32:56 +00:00
Wenbo ZhuandClaude Opus 5.5 4e3c960457 fix(cli): preview answers unknown paths with an inert refusal, not the Studio shell (#8161)
* fix(cli): preview answers unknown paths with an inert refusal, not the Studio shell

Studio routes by location.hash only, yet the preview server answered every
unknown GET with the Studio shell (200, same origin, query kept). An OAuth
redirect to the preview port (/oauth/callback?code=...&state=...) therefore
re-mounted the project, and project script read the code from the address.

The shell is now served only at / and /index.html. Any other path gets a
plain-text 404, and a request carrying `code` or `state` at any path (entry
and preview routes included) gets a plain-text 400. Both carry a sandbox CSP
(opaque origin), COOP same-origin, frame-ancestors 'none' / X-Frame-Options
DENY, nosniff, no-referrer and no-store, and never echo the request.

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

* fix(studio): preview's Vite modes refuse an OAuth return too

`preview` from a source checkout (dev mode) and with the local studio
(HYPERFRAMES_LOCAL_STUDIO=1) run packages/studio/vite.config.ts, whose SPA
fallback served the Studio shell at /oauth/callback?code=... with no COOP or
sandbox. devProjectApi now refuses a `code` or `state` at any path as its
first middleware, with the same inert response as the embedded server.

The refusal moves to @hyperframes/studio-server so both servers share one
helper.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 14:31:56 +00:00
Miguel Ángel 9b7be276a9 fix(studio): a sealed resize of a layer whose GSAP keyframes animate its width saves (#8288)
* fix(studio): a sealed resize of a keyframed size keeps the box's other side

* fix(studio): say where a sealed resize's pre-gesture box comes from

* refactor(studio): read a resize's pre-gesture box one side at a time
2026-11-20 14:02:07 +00:00
Miguel Ángel 468ab907ee fix(studio): a sealed move, resize or turn takes GSAP's route when GSAP animates the layer (#8286)
* fix(studio): a sealed move, resize or turn takes GSAP's route when GSAP animates the layer

* fix(studio): a live layer's route is decided at once, and a turn the press routed keeps it

* fix(studio): a sealed resize's anchor move waits for the frame's GSAP read before choosing CSS
2026-11-20 11:12:47 +00:00
Miguel Ángel 89edb0af00 fix(studio): a sealed resize, move or turn typed or made by the agent shows in the preview (#8283)
* fix(studio): a sealed resize, move or turn typed in or made by the agent shows in the preview

* test(studio): a sealed geometry save leaves the frame to a live drag draft
2026-11-20 10:03:39 +00:00
Miguel Ángel c34df57abd fix(studio): agent tools see the film in a sealed preview (#8281)
* fix(studio): agent tools read a sealed preview through its runtime

* test(studio): agent tool tests build selections from live elements

* test(studio): agent tools on a sealed preview look, select, inspect, write and read back

* test(studio): resolver and tool tests find elements through the preview read

* test(studio): the socket-pool walk waits for studio_look's ready scene
2026-11-20 09:29:25 +00:00
Miguel Ángel a755e3f585 fix(studio): a sealed crop lands where it was dragged (#8279)
* fix(studio): a sealed crop of a turned or scaled layer saves the crop an unsealed one saves

* fix(studio): a sealed style edit shows on the selection at once, so a crop stays where it was let go

* fix(studio): a sealed undo restored in place re-reads the selection, so it shows the undone edit
2026-11-20 08:24:02 +00:00
Ular Kimsanov 2c3427089c fix(share): ask before sharing from Studio and bind each action to the confirmed review (#8268)
* fix(share): ask before sharing from Studio, naming the review it changes

A composition's script runs on Studio's origin by default, and a received
folder's .hyperframes/review.json can point Studio at an existing review.
Every share action except sign-in now asks the person first, naming the
review (its link), who can open it, the workspace and whether project files
are uploaded. The request carries the manage link of the review that was
shown, and the server refuses it with share_target_changed when the
project's review no longer matches, so nothing is shared or changed.

* fix(share): bind each Studio share action to the review id the person confirmed

Studio now gets the id and title of the review an action reaches, including a folder
whose record names a review it never opened (a received folder can ship one). The
confirmation names that review, its workspace and who can open it, and says plainly
when a folder arrives already linked. Actions carry the confirmed id; a missing one is
refused as confirmation_required and a different one as share_target_changed, and
after that refusal Studio drops the earlier choice. The docs describe the
confirmation and that project files are included only when chosen.

* fix(share): show the review title on one quoted line in the confirmation

* fix(share): say a linked share also sets who can open it, and check the new state fields

* fix(share): separate the question from the details and say when a title is unknown

* docs(share): name the review record without a path the citation check reads as a file
2026-11-20 06:02:05 +00:00
Miguel Ángel fdc7d676c4 fix(studio): a sealed preview turns a rotated element live and saves the turn on its own route (#8271)
* fix(studio): a sealed preview turns a rotated element live and saves the turn on its own route

* fix(studio): a sealed rotate regrabbed mid-save cancels to where it started on the frame too

* refactor(studio): keep the gesture handlers file under the size limit
2026-11-20 05:50:24 +00:00
Miguel Ángel 4fd96e3533 fix(studio): a sealed undo or redo of a keyframe edit re-runs in place instead of reloading (#8272) 2026-11-20 05:24:28 +00:00
Miguel Ángel a8884522f4 fix(studio): a sealed preview's timeline names each file by its project path (#8213)
* fix(studio): a sealed preview's timeline names each file by its project path

* fix(studio): keep a file on another site at its own address in a sealed preview's timeline
2026-11-20 04:49:13 +00:00
Miguel Ángel f13969f13f fix(studio): a sealed preview's failed reload says only what the preview reported (#8194)
* test(studio): a sealed shadow's failed reload says only what it reported

* fix(studio): a sealed preview's failed reload no longer blames a page that never loaded

* fix(studio): a failed reload names the restore seek when the timeline already arrived

* test(studio): keep the restore seek test's comment under 120 characters
2026-11-20 04:49:05 +00:00
Miguel Ángel cf28a00053 chore: release v0.9.72 (#8265) 2026-11-19 22:02:17 -05:00
Miguel Ángel 012f26350e fix(studio): a scene edit swaps in place and a far scene mounts for selection in a sealed preview (#8162)
* fix(studio): a scene edit swaps in place and a far scene mounts for selection in a sealed preview

* test(studio): a sealed undo that reloads marks its scenes stale first
2026-11-20 01:53:42 +00:00
Miguel Ángel 9c3bfe150e fix(studio): dragging a layer in a sealed preview's layers panel restacks it (#8209)
* test(studio): a lane drag in a sealed preview restacks and saves its z-index

* fix(studio): a lane drag in a sealed preview saves the stacking change it implies

* test(studio): format the sealed restack test and skip a clip with no stored z-index

* fix(studio): dragging a layer in a sealed preview's layers panel restacks it

* fix(studio): a sealed layer drag restacks nothing from a malformed sibling reply

* chore(studio): drop a doc line the comment check counts against the stack base
2026-11-20 00:36:09 +00:00
Miguel Ángel 9dd8be3ac4 fix(studio): save the stacking reorder of a timeline drag in a sealed preview (#8167)
* test(studio): a lane drag in a sealed preview restacks and saves its z-index

* fix(studio): a lane drag in a sealed preview saves the stacking change it implies

* test(studio): format the sealed restack test and skip a clip with no stored z-index

* fix(studio): a sealed lane drag restacks from the z-index the preview paints

A sealed preview's lane drag read the clip's z-index from the store, which holds only inline styles and the value
from when the drag began. It now asks the frame for the computed z-index when the gesture runs, so a stylesheet's
value and an earlier queued gesture's save both count.
2026-11-19 22:24:42 +00:00
Miguel Ángel 8cb1945c90 chore: release v0.9.71 (#8251)
* chore: release v0.9.71

* chore: release notes for v0.9.71 link the commit after the first cut

* chore: release notes for v0.9.71 add the two commits merged after the review
2026-11-19 22:11:45 +00:00
Miguel Ángel d106f9c8c7 fix: stop crashing on SVG elements named template (#8241)
* test: pages holding an SVG element named template

* fix: read template content only from HTML templates

* test: SVG elements named template in previews, inline mounts and lint

* fix: treat only HTML templates as scenes and inline mounts

* test: scene ids next to SVG elements named template

* fix: take scene ids only from HTML templates
2026-11-19 12:27:21 +00:00
Miguel Ángel 592a9feff9 chore: release v0.9.70 (#8234)
* chore: release v0.9.70

* chore: release notes for v0.9.70 link the 3 commits after the first cut
2026-11-19 06:55:39 +00:00
Miguel Ángel 1cf98cf892 fix(studio): a sealed preview's timeline shows its text clips' words and look (#8228)
* fix(studio): a sealed preview's timeline shows its text clips' words and look

A sealed preview's timeline rows come from the clip list the film sends, which
carried no text, so its text clips drew as blank rows. The film now sends each
plain text layer's words (up to 200 characters) and look, read by the same rule
Studio uses for its own rows, and the row shows the words as plain text.

* fix(studio): check a sealed clip's text on arrival, cap only what the film sends

Studio now takes a clip's text from the film's message only when every field is
text within the film's limits; otherwise the clip keeps its row without words.
The 200-character limit applies to the film's message alone, so an open
preview's own rows keep their full words as before.
2026-11-19 03:51:53 +00:00
Miguel Ángel 81f89b8150 fix(studio): a sealed preview shows its loading overlay while media still loads (#8184)
* test(studio): a sealed preview keeps its loading overlay while media buffers

* fix(studio): a sealed preview's loading overlay waits for its media through the editing port

* fix(studio): Studio never calls a preview ready before its asset check has answered

* refactor(studio): the preview asset wait lives outside the Player component

* refactor(studio): the preview asset wait moves to its own file, out of the Player

* refactor(studio): one asset-wait state; a sealed frame's first check is its own value

* fix(studio): a sealed preview's missing asset answer is asked again, never taken as ready

* fix(studio): a closed preview frees its editing-port client

* style(studio): keep the client comment under the line limit
2026-11-18 22:57:06 +00:00
James RussoandClaude Opus 5.5 3229c3a8da chore: release v0.9.69 (#8220)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:28:58 +00:00
Miguel Ángel 1929f299b4 fix(studio): a sealed preview keeps Studio's size, move and turn edits after a seek (#8212)
* fix(studio): a sealed preview keeps Studio's size, move and turn edits after a seek

* fix(studio): a sealed preview reapplies Studio's edits on each frame it seeks or plays to

* fix(studio): build the sealed reapply script from constants, never a caller's value

* fix(studio): a sealed preview reapplies Studio's edits after a redraw at the same time

* fix(studio): serve the seek reapply only into sealed preview documents

* chore(core): shorten the redraw count's doc line
2026-11-18 22:17:54 +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 3ae9e7302d chore: release v0.9.68 (#8214) 2026-11-18 20:50:58 +00:00
Miguel Ángel f149d76ed6 fix(studio): a sealed resize saves its anchor on the route GSAP moves it by (#8193)
* fix(studio): a sealed resize saves its anchor on the route GSAP moves it by

* style(studio): format the sealed resize test and drop the new comment lines
2026-11-18 20:11:21 +00:00
Miguel Ángel 11cc1a519e fix(studio): a refused timeline delete keeps the server's status in its message (#8171) 2026-11-18 19:28:04 +00:00
Miguel Ángel f6c9d09de8 fix(studio): the property panel shows a sealed preview's animated values (#8203)
* fix(studio): the property panel shows a sealed preview's animated values

* fix(studio): a sealed preview's panel shows rotation and scale from tweens that only turn or grow
2026-11-18 19:27:41 +00:00
Miguel Ángel 30d4cd26c6 fix(studio): copy, duplicate and audio lane updates work in a sealed preview (#8192)
* 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
2026-11-18 17:15:05 +00:00
Miguel Ángel e5566b3dc9 fix(studio): a sealed preview pauses on press and reopens a link's selection (#8135)
* 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
2026-11-18 16:46:11 +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 4a73363322 chore: release v0.9.67 (#8185) 2026-11-18 14:56:46 +00:00
Miguel Ángel 579feb02ee fix(studio): sealed previews fill scene children, clip parents and first-frame counts (#8180)
* 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
2026-11-18 13:35:14 +00:00
Miguel Ángel 2efb55ecb5 fix(studio): refused group, freeze frame and animation saves keep the server's status (#8178)
* fix(studio): refused group, freeze frame and animation saves keep the server's status

* refactor(studio): withStatus says what it does without a comment
2026-11-18 12:39:41 +00:00
Miguel Ángel 75992d82ad fix(studio): a 3D slider drag previews live in a sealed preview (#8148) 2026-11-18 12:12:09 +00:00
Miguel Ángel 1a82f6e9d6 chore: release v0.9.66 (#8172) 2026-11-18 12:11:13 +00:00
Miguel Ángel b90b8d1bb3 test(studio): edit accuracy waits for Studio to report the film loaded (#8175)
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.
2026-11-18 12:05:44 +00:00
Miguel Ángel b525686e7e fix(studio): property panel style and attribute edits show in a sealed preview (#8149)
* 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
2026-11-18 10:11:16 +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
Miguel Ángel e623031f3a fix(studio): a sealed preview's element reads are bounded, and a frame with no agent answers at once (#8055)
* 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
2026-11-18 08:36:06 +00:00
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