Commit Graph
7837 Commits
Author SHA1 Message Date
Miguel Ángel e5e360154e fix(studio): a turned layer's cropped box is the bounds of its cut corners (#8502)
* fix(studio): a cropped layer's outline is cut at the layer's own scale, sealed or not

* fix(core): the geometry stream keeps an element whose geometry now carries its layout size

* fix(studio): a turned layer's crop is cut at its own scale, not its upright box's

* fix(studio): a turned layer's cropped box is the bounds of its cut corners

* test(studio): crossed and mirrored crop probes in both frames

* fix(studio): crossed insets meet and mirrored layers cut their own edge in both previews

* fix(studio): the CSS scale property counts in a cropped layer's box in both previews

* fix(studio): every overlay measure reads the transform the browser composes

* fix(studio): a layer turned out of its plane takes the box the browser paints

* fix(studio): a projected transform chain takes the box the browser paints

* fix(studio): a layer inside a 3D context takes the box the browser paints
2026-11-22 17:58:26 +00:00
Miguel Ángel 87fddbc1a1 fix(player): a sealed film is heard when its frame may not start sound (#8495)
* fix(player): a sealed film is heard when its frame may not start sound

When a browser refuses the film's own play (an iPhone, or Chrome's tap-first
rule for a sealed frame), the player plays copies of the film's media in its
page. A sealed player could not read the frame, so it made no copies and muted
the frame anyway: silence.

The runtime now sends the clips to copy with the refusal, and again whenever
they change. The player copies only files under the composition's own folder,
anonymously, and mutes the frame only while a copy plays instead.

* fix(player): a sealed film's copy plays its file from the composition's own origin

The copy's address is now the composition's origin followed by the checked
path, never the string the frame sent. The player's size budget rises by
exactly what the sealed copies add (npm pack, main vs this branch).

* fix(player): a sealed film's copy address is rebuilt from encoded path parts

* fix(player): a sealed film's copy refuses an encoded way out of its folder

* fix(player): a sealed film is muted only once its copy plays, and only from web addresses

Copies come only from http(s) addresses, so two opaque origins never match.
A clip with an invalid file address gets no copy, and the rest are still listed.
The frame is muted once a copy is playing, and gets its sound back when the
last one fails or is dropped.

* fix(player): a sealed film gets its sound back when its last playing copy fails

* fix(player): a sealed film's mute follows its copies' own state, whatever order events arrive in
2026-11-22 17:32:43 +00:00
Miguel Ángel 2425df5f4d fix(core): pasted or written markup never carries a composition source from elsewhere (#8520) 2026-11-22 17:16:16 +00:00
WaterrrForeverandClaude Opus 5.5 675e3a876e fix(cli): pinned-file downloaders check the cache folder is private before reading or writing it (#8486)
* fix(cli): make the cache folder private before a pinned download writes into it (SECOPS-2745)

The measuring tools' pinned-file downloader (measure/pinnedFiles.ts, for the
MediaPipe hand landmarker) made its folder with a plain mkdir, downloaded into
it, and only checked the folder was private in the seal afterwards. A folder
another account owned, a group/world-writable one, or a link out of the cache
received the bytes before the refusal. The model downloaders were worse: the
TTS and background-removal models (utils/pinnedFile.ts) and the whisper models
never checked at all, and trusted a cached copy from such a folder.

Every pinned download into the HyperFrames cache now runs
ensurePrivateCacheDir first: a new folder is made 0700, the person's own
group/world-writable folder loses those bits, and a link, a foreign owner or a
folder another account can change is refused before any partial or final file
is written or any cached copy is used. Temp files stay inside the verified
folder and are renamed into place. opencv.ts, which already did this, now
shares ensurePinnedFiles instead of its own copy of the loop.

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

* fix(cli): keep the pinned downloaders' comment share at the base (SECOPS-2745)

Cuts the comment lines the private-cache fix added to pinnedFiles.ts,
pinnedFile.ts and whisper/manager.ts so each file's comment share is back
at or under its merge-base share, and names ensurePinnedFile's root
cacheRoot so the call reads without the comment.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:05:10 +00:00
Miguel Ángel bd7a8402db fix(studio): paste and duplicate check the file they write, after every edit to it (#8519)
* test(studio): a paste writes only the markup it checked, comments included

* fix(studio): paste and duplicate check the file they write, after every edit to it

* test(studio): the paste check reads the saved copy's values and the file's parsed ids

* fix(studio): the paste check allows the copy as saved in the file, matched by its values

* fix(studio): a copied look rule is skipped only when it holds a tag opener

* test(studio): a paste is checked as a tree, as the preview server serves the file

* fix(studio): the paste check compares whole copies in the file as the preview serves it

* test(studio): a batch paste compares each copy only with its own candidates

* perf(studio): the paste check finds each copy by its signature, not by scanning the file
2026-11-22 17:03:38 +00:00
WaterrrForeverandClaude Opus 5.5 886f609c43 fix(cli): publish updates a committed project only when this machine linked the folder (#8487)
* fix(cli): publish updates a committed project only when this machine linked the folder (SECOPS-2048)

.hyperframes/project.json travels with every copy of a project (a clone,
a zip, a download), yet publish took its project id and space id as the
update target, and with --yes overwrote any project the recipient could
write without asking.

Publish now updates the descriptor's project, and uses its space, only
when this machine's own link record (outside the folder, keyed by its
path) names the same project and space. The link record now keeps the
space it published into; records from before keep linking their own
project. Otherwise:

- interactively, publish asks "Update project <id> in place? No
  publishes this folder as its own project." with No as the default;
  No publishes a new project and rewrites the descriptor to it
- with --yes, publish refuses (publish_target_unconfirmed) and points
  to --update <id> [--space <space>]
- --update <id> still names the project explicitly, but the
  descriptor's space is not used unless --space names it

checkPublishTransition counts the descriptor as a legacy update under
the same rule.

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

* refactor(cli): carry the publish link rules in names, not comments (SECOPS-2048)

The comment ratchet allows a file's comment share only to go down. Drop
the comments the fix added and name the meaning instead: PERSONAL_SPACE
for the "" space id, recordPredatesSpaces for a link record written
before the space was kept, teamLinkedHere in the publish transition.

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

* test(cli): keep projectLink's real exports in the publishProject mock (SECOPS-2048)

publishProject now imports PERSONAL_SPACE from projectLink; the mock
replaced the whole module, so the constant was missing.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:00:42 +00:00
WaterrrForeverandClaude Opus 5.5 4202462ca5 fix(cli): print project file names in check's stderr notes as visible escapes (#8485)
* fix(cli): print project file names in check's stderr notes as visible escapes (SECOPS-2752)

The text_over_face note printed the unread video's reason raw, and that
reason carries the project's file name and the decoder's own error text,
so a video named with ESC, BEL or CR could drive the terminal during
`hyperframes check`. The same check output path had four more lines
printing project-derived text raw: the project-lock waiting notice (the
holder is read from the project's lock file), the "images did not load"
warning (image addresses read back from the page), the font-localization
warning (the injector's error text), and the saved report's Revision line
(read from the project's history).

Each now goes through the existing @hyperframes/core terminal-text helper:
terminalLines where the text is an error message whose line breaks are
kept, terminalText for one-line notices. Plain names print as before.

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

* fix(cli): keep check's escape fix within the comment ratchet and testable on Windows (SECOPS-2752)

Drop the three comment lines the escape fix added to source files, which
raised their comment share. The text_over_face hostile-name test now feeds
the name through the candidate and an injected reader, so it runs on every
platform; the real-reader case, which needs a file named with control
characters, runs everywhere but Windows, whose file names cannot hold them.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:56:27 +00:00
Miguel Ángel c19d98d9a1 fix(player): a late timeline from the old film no longer keeps a switched player ready (#8500)
* test(player): a late timeline from the old document must not make the next load ready

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

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

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

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

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

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

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

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

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

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

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

* fix(core): the runtime's document id is a random UUID where the browser has one
2026-11-22 16:40:09 +00:00
Miguel Ángel ec9a3a8ef2 fix(core): a sealed move inside a nested composition shows where it was dropped (#8517)
* fix(core): a patched tween on a resting scene timeline is drawn before the frame says patched

* fix(core): the frame says patched only once each patched tween has rendered
2026-11-22 16:17:17 +00:00
Miguel Ángel 0bc7963ffd fix(studio-server): a page with thousands of script tags no longer stalls the preview (#8518)
Deciding whether a preview needs the motion-path plugin read every
script file the page loads, once per script tag, all at once, and kept
reading after the check gave up. A page naming one file in thousands of
script tags started thousands of reads and froze the server.

The check now answers "preload the plugin" at once for a page with more
than 64 script tags, reads each script file once, keeps at most 8 reads
in flight, starts none after its time is up or once a script names a
path, and cancels the reads still running when it ends.
2026-11-22 16:14:58 +00:00
Miguel Ángel 258a3cf4ea fix(producer): a probe step's out-of-memory error keeps its words, so it still reads as memory (#8513)
* fix(producer): a probe step's out-of-memory error keeps its words, so it still reads as memory

* fix(producer): drop the comment the memory check's name already says
2026-11-22 15:44:00 +00:00
Miguel Ángel fbd1cd4bcf fix(cli): cloudrun and lambda say a usage error before loading their cloud SDK (#8510) 2026-11-22 15:35:47 +00:00
Miguel Ángel 5d4420fee1 fix(core): a timeline whose labels throw no longer empties the clip list (#8512)
* test: one timeline's throwing labels don't empty the clip list

* fix(core): a timeline whose labels throw leaves only its own clips unlabeled
2026-11-22 15:24:10 +00:00
Miguel Ángel f38a4e3675 test(cli): the diagnostic test's ffmpeg stand-in answers the demuxer listing, writing no file (#8515) 2026-11-22 15:21:39 +00:00
Miguel Ángel 0869487664 ci(studio): a failed walk in the viewport gate job names itself on the check (#8516) 2026-11-22 15:21:06 +00:00
Miguel Ángel b3d37f948c fix(studio): vitest exits when a project is open in the dev data folder (#8514) 2026-11-22 15:20:25 +00:00
Miguel Ángel dd77990373 fix(studio): the viewport gate tells a virtualized timeline by its mounted rows, not its clips (#8511)
* test(studio): the viewport gate reads a virtualized timeline as on while its rows fill at load

* fix(studio): the viewport gate tells a virtualized timeline by its mounted rows, not its clips
2026-11-22 15:06:47 +00:00
Miguel Ángel 2b1495f7af fix(studio): a cropped layer's outline is cut at the layer's own scale, sealed or not (#8496)
* fix(studio): a cropped layer's outline is cut at the layer's own scale, sealed or not

* fix(core): the geometry stream keeps an element whose geometry now carries its layout size

* fix(studio): a turned layer's crop is cut at its own scale, not its upright box's
2026-11-22 14:59:34 +00:00
Miguel Ángel 4a47c33ea3 fix(core): a far clip whose source is swapped learns its new length (#8509)
* fix(core): a far clip whose source is swapped learns its new length

* test(core): the swapped-source case names a freed clip, not the proxy fallback
2026-11-22 14:58:03 +00:00
Miguel Ángel f03233ab4d fix(studio-server): previewing a page with thousands of media files no longer stalls the app (#8505)
* fix(studio-server): previewing a page with thousands of media files no longer stalls the app

Building a preview recorded each file the build read, and each file the
page names, by walking its path with blocking link reads, one file at a
time. A page naming 20,000 media files held the server's event loop for
over a second, and the app froze while the preview loaded.

The build now collects those paths and records them off the event loop
in one batch per step, reading each shared folder once per batch.

* fix(studio-server): a preview still loads when its project folder cannot be resolved

Recording a build's reads resolved the project folder with a reader that
fails on a folder it cannot resolve (a link loop, no permission), so a
finished bundle turned into a failed build and the sub-composition route
answered a server error. The folder now resolves the way the per-read
recorder resolves it, and recording never fails its caller.
2026-11-22 14:23:33 +00:00
Miguel Ángel 8526113784 fix(producer): a render that stops while preparing names the step it stopped in (#8506) 2026-11-22 14:21:42 +00:00
Miguel Ángel 20a91dd5f1 test(cli): the sign-in return test waits for each window's navigation instead of one second (#8507) 2026-11-22 14:17:09 +00:00
Miguel Ángel 479081658b chore: release v0.9.81 (#8493)
* chore: release v0.9.81

* chore: release v0.9.81 notes list the changes merged since the draft

* chore: release v0.9.81 notes list the changes merged since the draft
v0.9.81
2026-11-22 13:56:25 +00:00
Miguel Ángel 3ac5265aac fix(studio): Studio acts on a sealed preview's key report only after a real press or click (#8503)
* test(studio): a sealed preview's key reports act only after a real press

* fix(studio): Studio acts on a sealed preview's key report only after a real press or click
2026-11-22 13:24:12 +00:00
Miguel Ángel d4e8d6f983 fix(core): a preview of hundreds of clips with no set length no longer loads them all (#8303)
* test(core): a preview's far clip with no set length loads only its length and gives its decoder back

* fix(core): a preview frees a far clip with no set length once it knows its length

* fix(core): every timeline read of a clip's length keeps the one it reported before a release

* test(core): the released clip's length is read through the runtime's own resolver

* refactor(core): an animated element's clip reads its own attributes in one place

* test(core): a far clip with no set length is held to its length, now that armed clips prefetch

* refactor(core): the far-clip load handler keeps its own comment
2026-11-22 13:18:31 +00:00
Miguel Ángel 0e6879b8ef fix(studio): scrubbing across a cut shows the newest frame, not black (#8501)
* test(studio): a scrub's newest paused frame is decoded, never refused while an older one settles

* fix(studio): scrubbing across a cut shows the newest frame, not black

* test(studio): a flood of paused-frame asks decodes only the newest; a throw never stalls
2026-11-22 13:13:47 +00:00
Miguel Ángel 45674e840f fix(studio): copy and duplicate refuse a file that is not one of the project's compositions (#8490)
* refactor(core): keep the SVG element and attribute allowlist in its own module

* test(studio): clipboard writes refuse markup a scripting preview reads differently

* fix(studio): paste and duplicate write only allowed markup unless it comes from the same file

* test(studio): copy and duplicate use only files Studio knows in the project

* fix(studio): copy and duplicate refuse a file that is not one of the project's compositions

* test(core): inline SVG with its namespace declarations pastes from another file

* fix(core): paste keeps SVG namespace declarations and checks xlink:href as a link

* chore(cli): regenerate the media-use SVG sanitizer from its moved allowlist
2026-11-22 12:54:49 +00:00
Miguel Ángel 680c9a5402 test(cli): run the PowerShell round-trip names in one shell so slow Windows runners stay in time (#8498) 2026-11-22 12:43:29 +00:00
Miguel Ángel 97b90d8fa2 fix(studio): a sealed preview's clips keep their GSAP transition label (#8499)
* test: a sealed preview's clips name their GSAP transition

* fix(studio): a sealed preview's clips keep their GSAP transition label

* fix(studio): GSAP scene and overlay clips carry their transition label too
2026-11-22 12:40:37 +00:00
Miguel Ángel a770f4b85d fix(studio): a sealed press held across a frame swap starts on the frame shown (#8492)
* fix(studio): a sealed press held across a frame swap starts on the frame shown

A press made while a sealed preview changes waits, then reads where its element is over the frame's channel. It
read over the frame it was pressed on; when the change swapped frames, that frame was gone, no answer came, and the
drag was dropped. It now reads over the frame shown once the change ends, asks again once if that frame changes,
and starts from the box Studio drew when the frame never answers. A frame that answers the element is gone still
drops the press, as a scriptable preview does.

* refactor(studio): the held press's frame ask and start choice are their own steps

* fix(studio): a held press with no answer starts from its box as pressed, not as redrawn

* fix(studio): a press held across a sealed frame swap draws on the frame shown
2026-11-22 12:39:39 +00:00
Miguel Ángel 0b73069201 fix(studio): paste and duplicate write only allowed markup unless it comes from the same file (#8483)
* refactor(core): keep the SVG element and attribute allowlist in its own module

* test(studio): clipboard writes refuse markup a scripting preview reads differently

* fix(studio): paste and duplicate write only allowed markup unless it comes from the same file

* test(core): inline SVG with its namespace declarations pastes from another file

* fix(core): paste keeps SVG namespace declarations and checks xlink:href as a link

* chore(cli): regenerate the media-use SVG sanitizer from its moved allowlist
2026-11-22 12:05:34 +00:00
Miguel Ángel 039eca4f0f fix(studio): rotating a layer in a sealed preview turns it from the angle its stylesheet shows (#8469)
* fix(studio): rotating a layer in a sealed preview turns it from the angle its stylesheet shows

A sealed preview's stand-in carries only inline styles, so a rotate on a layer whose stylesheet sets its turn or a
centring transform started from 0 and turned about the wrong point. The frame's gesture-start answer now reports the
CSS turn (angle and where to draw it) from computed style, read by the same code Studio used, moved to
@hyperframes/core/runtime/css-rotation. The rotate draft gains a transform route, which the frame's validator now
accepts; both sides check the transform text before it can reach the saved source.

* fix(core): a sealed frame's transform text must parse as a transform list

A character allowlist let 'translate(1px' and '/*' through, so a frame could close the saved inline transform early
and swallow the element's other inline styles into it. isTransformList now folds innermost known calls until none
are left and accepts only what folds away: known function names, balanced parentheses, no comments.
2026-11-22 12:03:53 +00:00
Miguel Ángel aa262c244d test(cli): the doctor output test no longer runs every machine check (#8497)
* test(cli): the doctor output test prints rows without running every machine check

* test(cli): call the row printer directly in the doctor output test
2026-11-22 11:53:42 +00:00
Miguel Ángel 679a5a7e0b fix(studio): a menu that does not fit below opens above, never over what opened it (#8406)
* fix(studio): a menu that does not fit below opens above, never over what opened it

* test(studio): the timeline parts fixture opens its clip menu from an anchor
2026-11-22 11:49:32 +00:00
Miguel Ángel 3a68f7b3ca test(studio): the preview regression runs green against a sealed preview (#8470)
* test(studio): the preview regression waits for a sealed slider release to land before seeking

* test(studio): the preview regression's held media answer carries the server's CORS grant

* test(studio): the preview regression seeks only after Studio's posted seeks have landed

* test(studio): the regression's barrier takes its message only from the Studio page
2026-11-22 11:35:42 +00:00
Miguel Ángel fccd00e719 fix(studio-server): a cut names its new half from the file's own id (#8481) 2026-11-22 11:09:31 +00:00
Miguel Ángel 71588b0a73 fix(ci): a shard whose results never uploaded is re-run, and never read as an edit accuracy drop (#8477)
* fix(ci): a shard whose results never uploaded is re-run, and never read as an edit accuracy drop

* refactor(ci): the edit accuracy shard count lives in one place, and a test keeps the matrix on it
2026-11-22 10:57:59 +00:00
Miguel Ángel bc3d7b43e8 test(studio): the edit-accuracy bench reads what a person ends with after sealed saves and undos (#8475)
* test(studio): the edit-accuracy bench reads a sequence's file once its last edit has saved

A sealed press made while the previous save is out waits, then replays and saves. The sequence bench read the
file once its write count was met, which one gesture writing twice can reach before the last gesture saves, so
that edit looked lost. Studio now says on the page while an edit saves, and the bench also waits for that and
for no waiting press, two frames in a row.

* test(studio): a sequence's undo step waits until the undo is shown and records how long it took

* test(studio): an undo step records when the box first moves apart from when Studio is idle

* test(studio): the bench's rest wait takes its clock, so its times are exact in tests
2026-11-22 10:56:35 +00:00
Miguel Ángel bfd6cb755f fix(studio): a pasted element lands after its own original, never inside a script (#8489)
* fix(studio): a pasted element lands after its own original, never inside a script

* fix(studio): a paste compares the anchor id instead of building a pattern from it
2026-11-22 10:56:11 +00:00
Miguel Ángel 104eab37ad fix(core): a preview seek waits for each graded video to draw its new frame (#8488)
* test(core): a preview seek waits for each graded video to draw its new frame

* fix(core): a preview seek waits for each graded video to draw its new frame

* test(core): a graded video that cannot draw never holds a preview seek

* fix(core): a graded video that cannot draw never holds a preview seek
2026-11-22 10:55:49 +00:00
Miguel Ángel 154842851a test(studio): the preview regression counts decoded covers, not the macOS gamma filter (#8484) 2026-11-22 10:49:32 +00:00
Miguel Ángel 5ae70826ed fix(core): a far clip the runtime lets go of keeps counting in the film's length (#8480)
* fix(core): a far clip the player lets go of keeps its measured length

* test(studio): a capture page keeps a far clip's length while the runtime lets go of it

* fix(core): a far clip the runtime lets go of stays in Studio's clip list
2026-11-22 10:29:19 +00:00
Miguel Ángel 835e660e0e fix(player): a sealed film no longer shows failed to load while its runtime starts (#8472)
* fix(player): a sealed film is ready from its document before its runtime boots

* test(core): the static composition post reaches a parent frame while the page parses

* refactor(core): keep the static read's bounds inside their file
2026-11-22 10:16:07 +00:00
Miguel Ángel 61008a40dd fix(studio): a sealed preview shows paused video frames from Studio's decoder (#8466)
* fix(studio): a sealed preview shows paused video frames from Studio's decoder

* fix(studio): an aborted paused-frame decode holds its slot until it settles
2026-11-22 10:15:02 +00:00
Miguel Ángel c99cbbe44d fix(studio): a drag behind a refused edit is refused only when it would land on a clip (#8456)
* fix(studio): a refused delete no longer brings back another delete still saving

A refused delete, or a ripple shift that fails after its delete, now moves
back only the clips that delete shifted, on the timeline as it is now,
instead of restoring the timeline from before it.

* fix(studio): a refused delete also refuses the ripple shifts queued behind it

A delete's ripple shift saves absolute starts worked out with every earlier
pending delete applied. When one of those is refused, the shifts queued
behind it are refused too and leave their gap, so the saved file never
puts a clip on top of the restored one.

* fix(studio): a ripple shift queued behind a refused edit is refused before it writes

The timeline's edit queue now has one owner. It knows when an edit still
pending is refused, and a ripple shift (after a delete or a trim) queued
behind it is refused instead of saving starts that assumed that edit. The
trim ripple's rollback moves clips back by its own shift only. Drags,
single-clip timing and link edits are unchanged.

* fix(studio): a drag queued behind a refused edit is refused only if it would overlap

A drop is where the user put it, so a drag queued behind an edit that is
then refused still saves, unless it would now land on a clip in its lane,
such as the one a refused delete puts back. Then it is refused with the
same "Clips on the same track can't overlap." notice a refused drop
shows, and the clip returns to where it was. The lane overlap check is
shared with the insert-on-drop partner check.

* fix(studio): a trim behind a refused edit follows the drag rule, and both notices show as info

A trim queued behind an edit that is then refused is kept unless it now
overlaps a clip in its lane, the same rule as a drag. A refused drag or
trim shows "Clips on the same track can't overlap." in the same info tone
as a refused drop: the notice's owner now holds its words and its tone.

* fix(studio): a refused edit refuses trims behind it, per project, until every save settles

- A queued save stays tracked until it settles, so a later failure still
  refuses the ripple queued behind it.
- A trim's own resize is refused behind a refused edit too: its start and
  duration were read from the timeline that edit left.
- Each project gets its own queue.
- A refused trim shift reloads the preview, as a refused delete does.

* test(studio): the project-switch case keeps the old project's save pending

* fix(studio): a single-clip SDK timing save waits its turn in the edit queue

The SDK move and resize now run inside the queued edit, with the file-write
fallback in the same entry, so the earlier-refusal check guards both paths
and later edits see these saves.

* test(studio): give the clip-timing tests a 10 s timeline so every case can use the SDK path

* fix(studio): a single-clip drag behind a refused edit is refused only when it lands on a clip

* fix(studio): a queued timeline edit reads and writes only the project it was queued in

Each edit queue now carries the project it was made for and hands that id to
every queued edit, so the SDK readers, the file writes and the tween rewrite
never follow a project switch that happens while an edit waits.

* test(studio): hold the old project's save from the start in the project-switch case

* revert(studio): leave project isolation of queued edits to its own change

Takes out the per-project queue and the project binding of queued edits.
Main already lets a queued edit follow a project switch, through more
handles than the project id (preview, timeline store, history), so that
fix moves to one change that covers every handle.

* fix(studio): a queued single-clip SDK save reads the project it was made in

Main read the project as the save started, right away; queued, it read it
when its turn came. The move and resize now take the project when the
gesture queues them, for the SDK reader and the tween rewrite.

* fix(studio): a refused edit refuses only later edits of its own project

Each queued edit carries the project it was queued in, and the queue tracks
refusals per project, so a refusal left behind by a project the editor has
moved away from never refuses an edit in the one now open.

* test(studio): the switch matrix's stand-in SDK session finds no element, like an unknown target

* fix(studio): a refused drag takes back only its own shift

With Ripple on, a drag behind a refused delete was rolled back to its
rippled start, on top of the clip the delete put back. Both drag rollbacks
now move the clip from where it is by this drag's own shift, the rule the
delete and trim rollbacks follow. The overlap check no longer takes a lane
it never reads.

* test(studio): the drag-overlap test's earlier refused edit belongs to the hook's project

* refactor(studio): track-insert edits live beside the track-insert layout

buildTrackInsertEdits moves unchanged from the drag commit into
timelineDragLanding, next to layoutAfterTrackInsert, whose layout it turns
into edits. Both the drag and the canvas z-order mirror still call it.

* fix(studio): a drag behind a refusal in a project no longer shown is refused

The drag's overlap check reads the timeline on screen. Once the editor shows
another project, that timeline is not the drag's own, so the check could keep
a drag that lands on the clip its refused delete put back. A queue whose
project is not shown now refuses an edit behind a refusal outright, before any
policy reads live state.

* test(studio): the group-drag row carries the policy the move adapter gives it
2026-11-22 10:07:54 +00:00
Miguel Ángel f57552da49 fix(studio): a sealed Layers pick of a cropped layer puts its resize corners on the whole layer (#8468)
* fix(studio): a sealed Layers pick of a cropped layer puts its resize corners on the whole layer

* test(studio): keep the crop-lift test's comment within the line limit
2026-11-22 10:07:51 +00:00
Miguel Ángel 8f7e59742f fix(ci): a rerun of the captures check reads the PR's current body (#8479) 2026-11-22 10:05:26 +00:00
Miguel Ángel 7e26a6d3c0 fix(studio): a sealed move or resize ends its draft in the save's own frame message (#8473)
* fix(studio): a sealed move's save ends its drag draft in the same frame message

A sealed move on GSAP's route sent its saved x/y as patch-tweens and the end of the drawn translate as a
later draft message, so the frame could paint one frame with both: the layer one whole drag too far.
The save now carries the draft's end and the frame applies both in one task. An end that nothing takes
goes once, as one message, and an end naming an older draft is ignored.

* refactor(core): parse patch-tweens' draft ends in a wrapper, leaving the patch parser as it was

* refactor(studio): a drag member's draft end moves to its own module, under the 600-line limit
2026-11-22 09:43:18 +00:00
Miguel Ángel 4157992664 fix(core): load the motion path plugin only for a page that tweens along a path (#8449)
* fix(core): load the motion path plugin only for a page that tweens along a path

* fix(core): a path tween an external script builds still gets the motion path plugin

* test(studio): a path tween from an external script gets the plugin when Studio connects

* fix(core): a page with a script the preview cannot read still gets the motion path plugin

* fix(studio-server): the preview builder, not a file name, decides a page needs no path plugin

* refactor(studio-server): split the preview builder's script check

* fix(studio-server): a script the preview builder cannot read leaves the page unmarked

* fix(studio-server): the preview builder reads scripts off the event loop, within a time budget

* fix(studio-server): the preview builder resolves script paths off the event loop too

* fix(studio-server): the preview builder's script scan stays inside the request's deadline

* fix(core): the async project path check answers null for a path it cannot resolve
2026-11-22 09:40:47 +00:00
Miguel Ángel a638c31aa1 ci(windows): run the engine and CLI tests in three shards, not two, to stay under the step deadline (#8476) 2026-11-22 09:32:57 +00:00