Commit Graph
848 Commits
Author SHA1 Message Date
Miguel Ángel 96ec31243a fix(player): a sealed preview whose runtime fails shows the film's error at once (#8746) 2026-11-24 19:00:34 +00:00
Miguel Ángel ee4ecfd979 fix(studio-server): file edits refuse a target outside the project and change nothing (#8737) 2026-11-24 17:59:52 +00:00
James Russo 08431260d9 chore: release v0.9.91 (#8718) 2026-11-24 15:30:29 +00:00
James RussoandClaude Fable 5.2 07e03e8fed fix(studio-server): preview head scripts land in the head when an attribute holds <head> text (#8704)
* fix(studio-server): place the preview variables tag by reading the document

The tag that carries `?variables=` into a preview was placed after the
first "<head" text in the file. That text can also sit inside an attribute
value or a comment, and a tag placed there is not a script: the page got no
variables and the <html> element picked up extra attributes.

core gains headContentStart, built on the tokenizer helpers htmlDocument
already has. It reads the document prefix the way a browser does (comments,
doctype, quoted attribute values) and returns the position after the real
<head> start tag, else after <html>, else after the doctype, else 0.

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

* fix(studio-server): place the GSAP fallback script by reading the document

The preview route put this script after the first literal "<head>" in the
page, which can be text inside an attribute value or a comment. It now uses
headContentStart, the same as the preview variables tag. A page whose head
tag has attributes also gets the script inside the head now, where before it
went ahead of the doctype.

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

* fix(core): headContentStart keeps a leading byte-order mark first

With no doctype, html or head tag the position was 0, ahead of the mark.

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

* chore(core): trim comments added with head placement

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

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 13:51:54 +00:00
James RussoandClaude Fable 5.2 8eeeabf8a6 chore: release v0.9.90 (#8709)
* chore: release v0.9.90

* docs: v0.9.90 summary names each change as its own pull request does

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

* docs: add #8703 to the v0.9.90 notes

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

* docs: add #8710 to the v0.9.90 notes

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

* docs: add #8713 to the v0.9.90 notes

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

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 13:29:30 +00:00
James RussoandClaude Fable 5.2 260a8d81cc fix(cli): add refuses block and component scripts the project's Node tooling may run (#8703)
* fix(cli): add refuses block and component scripts the project's Node tooling may run

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

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

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

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

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 12:21:24 +00:00
James RussoandClaude Fable 5.2 7ea6e42f07 fix(studio): a project page opened straight from a link runs apart from Studio (#8697)
* fix(studio): a project page opened straight from a link runs apart from Studio

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

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

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

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

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

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

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 11:05:26 +00:00
Michael Wang 02fbd3979f fix(studio-server): refuse extensionless files where node tooling may run them (#8682)
Below a package.json that does more than run the hyperframes CLI, Studio now
refuses an extensionless file name everywhere it refuses .js and .mjs. Node
loads an exact extensionless name before its .js, .ts or .json sibling, and a
manifest can run one directly. Folders are judged as folders, so renaming,
moving and uploading into folders are unchanged.
2026-11-24 09:54:37 +00:00
Miguel Ángel bef7b44bee chore: release v0.9.89 (#8666)
* chore: release v0.9.89

* chore: release notes for v0.9.89 list #8657 merged since the cut

* chore: end the v0.9.89 note for #8657 with a period like the others

* chore: release notes for v0.9.89 list the 13 changes merged since the cut

* chore: release notes for v0.9.89 list every change merged while it was queued
2026-11-24 10:27:48 +00:00
Michael Wang b76bb07077 fix(studio-server): file routes and the received-files follower read one path (#8652)
requestSubPath now matches its route on decoded segments, as Hono does,
and returns null when the route is not in the URL. Every caller refuses
that request. The received-files follower refuses it too, so it and the
file route always act on the same path. The /api forwarder strips the
first segment however it is spelled.
2026-11-24 07:41:37 +00:00
Michael Wang 7b29b81011 fix(studio-server): studio no longer writes scripts node tooling may run (#8645)
Studio refuses TypeScript, JSX and CommonJS files everywhere. It writes .js
and .mjs files only when no package.json in their folder or above does more
than run the hyperframes CLI. This replaces the list of files read from
package.json script strings, which missed files reached through cd, default
entries, nested packages and imports.
2026-11-24 07:11:37 +00:00
Miguel Ángel c5e3ac89e4 fix(core): a one-shot Studio capture shows a 4K clip as the server's frame instead of decoding it (#8626)
* fix(core): a one-shot Studio capture shows a 4K clip as the server's frame instead of decoding it

* fix(core): a capture stand-in video is marked, so a frame capture knows it is drawn

* fix(studio-server): a preview still shows the colours the browser decodes its video with

* test(core): a capture stand-in follows each seek of a page seeked many times

* fix(core): a failed capture still leaves the clip to decode its file; stills stay in the clip

* fix(core): a capture keeps see-through clips decoding and takes only the latest still

* refactor(core): one check says whether a capture still may stand in for a file

* fix(core): a capture still's answer leaves alone a poster the page set meanwhile

* fix(core): a capture page never hands a clip its still stands in for its own file

* fix(studio-server): a capture still keeps a browser's colours on every FFmpeg CI and Studio run
2026-11-24 06:55:36 +00:00
Miguel Ángel 304a9444e9 chore: release v0.9.88 (#8635)
* chore: release v0.9.88

* chore: release notes for v0.9.88 list #8634 merged since the cut

* chore: release notes for v0.9.88 list #8618 merged since the cut

* chore: release notes for v0.9.88 list #8618 in its section, after the summary
2026-11-24 05:18:37 +00:00
Miguel Ángel 169af43b65 chore: release v0.9.87 (#8617)
* chore: release v0.9.87

* chore: release notes for v0.9.87 list the player fix merged since the cut

* chore: release notes for v0.9.87 list the studio fix merged since the re-cut

* chore: release notes for v0.9.87 list the docs change merged since the re-cut

* chore: release notes for v0.9.87 list the CLI fix merged since the re-cut

* chore: release notes for v0.9.87 link #8624 to its own pull request
2026-11-24 01:14:47 +00:00
Miguel Ángel bebfdd13e9 fix(studio): a ProRes clip's preview copy is no longer starved by thumbnail capture copies (#8597)
* fix(studio): a ProRes clip's preview copy is no longer starved by thumbnail capture copies

* fix(studio): thumbnail capture pages keep their copies but ask for them behind the preview's
2026-11-23 15:35:57 +00:00
Miguel Ángel 574b5e3d3b chore: release v0.9.86 (#8595)
* chore: release v0.9.86

* chore: release notes for v0.9.86 list the four PRs merged since the cut
2026-11-23 14:53:04 +00:00
Miguel Ángel 5409387218 fix(studio-server): a save asked to be recorded keeps its own undo step beside an import (#8585)
* fix(studio-server): a save asked to be recorded keeps its own undo step beside an import

* fix(studio-server): a waiting save keeps its step past a failed entry or an open agent window
2026-11-23 13:46:19 +00:00
Miguel Ángel 76a6bacdf7 fix(cli): a cloud upload leaves out a file it cannot read instead of failing (#8575)
* fix(cli): a cloud upload leaves out a file it cannot read instead of failing

* docs(cli): list the unreadable left-out reason and its cause
2026-11-23 10:50:16 +00:00
Miguel Ángel a4d96cdb31 chore: release v0.9.85 (#8569)
* chore: release v0.9.85

* chore: release notes for v0.9.85 list #8563

* chore: release notes for v0.9.85 list #8561 and #8570
2026-11-23 09:10:21 +00:00
Miguel Ángel 773aedef46 fix(studio-server): a save made while an import is taken in keeps its own undo step (#8561) 2026-11-23 08:16:40 +00:00
Miguel Ángel 9ec93615ef chore: release v0.9.84 (#8548)
* chore: release v0.9.84

* chore: release v0.9.84 notes list everything merged through #8541

* chore: release v0.9.84 notes list #8552

* chore: release v0.9.84 notes list #8551
2026-11-23 02:35:22 +00:00
Miguel Ángel cda1b00820 test(studio-server): a slow runner no longer leaves index.html's first copy owed in step-ahead tests (#8540) 2026-11-22 22:53:11 +00:00
Miguel Ángel 4f1e429fb1 chore: release v0.9.83 (#8539) 2026-11-22 22:33:47 +00:00
Miguel Ángel 2e1cd03237 chore: release v0.9.82 (#8531) 2026-11-22 21:07:50 +00:00
Miguel Ángel 02450e3e2e fix(studio-server): a sandboxed history read no longer fails with EPERM while the app holds it (#8529)
A process that may only read the history folder now finds a live owner's lock busy at once instead of reporting the refused claim write, so readers show the history quietly.
2026-11-22 20:57:01 +00:00
Miguel Ángel 80f45de33d fix(core): the motion path plugin loads from beside the page's own GSAP, never a CDN it did not name (#8523)
* fix(core): the motion path plugin loads from beside the page's own GSAP, never a CDN it did not name

* test(core): local root, revalidation and path-free preload rows

* fix(core): the motion path plugin never falls back to jsDelivr, nor preloads for a page with none

* fix(core): the plugin path beside GSAP is cut in linear time

* test(core): the Desktop walk film's plugin request stays on its origin

* fix(core): preload the motion path plugin only from the page's origin or a configured mirror

* fix(core): the motion path preload compares with the preview document's own origin

* fix(core): one rule decides the motion path plugin URL, bound to the document's own origin

* fix(studio-server): the plugin tag sits beside the page's GSAP as the page wrote it

* test(studio): the plugin-load fixtures name a page GSAP or a configured mirror
2026-11-22 20:31:38 +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
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 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 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
2026-11-22 13:56:25 +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 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 2d72e523ff fix(studio): an undo or redo that adds a sealed page's first edit stays in place (#8462)
A sealed preview only got its seek-reapply script when its file already held a Studio edit, and the script left
a page with none unarmed. The first restore that added one (a redo of a resize, say) was refused by the frame
and fell back to an unawaited reload. Every sealed page now carries the script, armed from the start.
2026-11-22 07:54:54 +00:00
Miguel Ángel 1aa4a785c8 chore: release v0.9.80 (#8414)
* chore: release v0.9.80

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

* chore: release v0.9.80 notes list the changes merged since the draft
2026-11-22 01:40:53 +00:00
Miguel Ángel 267ffc46c9 fix(studio-server): a file the drive never answers no longer holds a project's first history copy (#8187)
* fix(studio-server): a file the drive never answers no longer holds a project's first history copy

* fix(studio-server): keep history's comment share at or below its base

* fix(studio-server): a first copy that lands past its deadline is kept as the file's start

* fix(studio-server): a late first copy is adopted and kept while another file's read is stalled

* fix(studio-server): a waiting late first copy counts as baseline and rereads a few at a time

* fix(studio-server): every reread of an owed file takes a copy slot and is kept until adopted

* fix(studio-server): history pins a copy as it is filed and keeps a reference-only copy as such

* fix(studio-server): a history pin is taken and released by its owner, never across a delete

* fix(studio-server): an agent step waits at most a deadline for a file the drive never answers

* fix(studio-server): undo refuses a file whose first copy landed after an agent step rewrote it

* chore(studio-server): give the packed size budget its usual 5% headroom

Main packs to 190,094 bytes, already 0.65% over the 188,871 budget; this branch adds 1,264 bytes of its own code (no new import: dist/index.js is unchanged). The budget file's rule is 5% above measured: ceil(191,358 x 1.05) = 200,926.

* fix(studio-server): an agent step that goes ahead of a first copy owns that file's undo

* fix(studio-server): undo of a step that went ahead of a pending first copy is all or nothing

* fix(studio-server): an undo after a step that rewrote a pending file in place still refuses

A went-ahead file now clears from a step's list only when the first read after its copy lands finds the original
bytes, not when its size and times look unchanged. The list of went-ahead files is kept on disk, so a restart
before the step closes, or after it deleted the file, keeps the refusal. Parts a Studio claim cuts from a step
keep the list too.

* fix(studio-server): a step ahead of a pending file refuses undo after Cmd+Z, restarts, in older apps

Cmd+Z stops at an open step whose only write so far is a pending file. A step recovered after the process died
keeps its list of pending files. A later Studio save's receipt no longer sets the start of a file a step went ahead
of. Every earlier point names a pending file as not kept, so no restore deletes it in any app version.

* fix(studio-server): a step that went ahead of a pending file never undoes, whatever bytes land

Bytes cannot tell steps apart: a file written A, B, then A again by two steps looked untouched and cleared both. A
step's list of files it went ahead of is now never cleared, so its undo refuses after a stalled read.

* fix(studio-server): a recovered step keeps its guard through a second crash; saves keep the start

The closed window is recovered before the reopen rewrites went-ahead.json, so a crash during recovery no longer
erases its list of pending files. A copy read before a step went ahead is the file's start whatever a later save's
receipt says it replaced.

* fix(studio-server): a start keeps receipts heard before its read; reopen writes all pending files

A copy read before a step went ahead follows only the save receipts heard by the moment of its read, so an early
save's original stays the start and a later save naming the step's bytes cannot replace it. The reopen rebuilds
the list of pending files in memory and writes it once, so a crash midway keeps every file on it.

* fix(studio-server): a first copy's start follows only receipts heard by its read and keeps them

Every adopted copy follows the save receipts heard by the moment of its read, with or without a step, so a later
save writing the original back cannot move the start. A small file's read is reported before its close, which a slow
drive can hold. Bytes a save replaced in a file history has no copy of yet stay through pruning until it does.

* fix(studio-server): bytes kept for a pending first copy count as start, not undo history

The bytes a save replaced are kept only for a file still owed its first copy, and they count as start rather than
undo history, so they never fold an unrelated edit out of the budget or stay for a file that never needed them.
2026-11-21 23:28:17 +00:00
Miguel Ángel b008e37b46 test(studio-server): the Windows workflow fails when the link tests cannot run (#8395) 2026-11-21 23:00:08 +00:00
Miguel Ángel 71dc6f2fe1 fix(studio-server): a file the drive never answers no longer holds a project's first copy (#8403)
* fix(studio-server): a file the drive never answers no longer holds a project's first history copy

Each file the first copy reads gets a deadline from when its read starts. A file that misses it is left owed and
adopted once the drive answers, keeping the bytes it read as the file's start, so the open finishes.

* fix(studio-server): a late first copy starts from receipts heard by its read, kept through pruning

A late first copy follows only the save receipts heard by the moment of its read, so a later save writing the
original back cannot move the start. The bytes a save replaced in a file still owed its first copy stay through
pruning, counted as start rather than undo history, until that copy is recorded.

* chore(studio-server): give the packed size budget its usual 5% headroom
2026-11-21 22:25:38 +00:00
Miguel Ángel c3d25a41f1 chore: release v0.9.79 (#8402) 2026-11-21 22:05:41 +00:00
Miguel Ángel 22b394c663 fix(studio-server): a preview asset whose read cannot be recorded answers not found (#8385) 2026-11-21 19:59:08 +00:00
Miguel Ángel b950f3e1db chore: release v0.9.78 (#8368)
* chore: release v0.9.78

* chore: list main's latest changes in the v0.9.78 notes

* chore: add the history fix to the v0.9.78 notes

* chore: list main's latest changes in the v0.9.78 notes
2026-11-21 19:50:15 +00:00
Miguel Ángel 63e700de1e fix(studio-server): history keeps undo steps in order when file times and its clock disagree (#8383)
* fix(studio-server): history keeps undo steps in order when file times and its clock disagree

* fix(studio-server): a removal made while a turn was closed can join that turn
2026-11-21 17:55:42 +00:00
Miguel Ángel 40cc86252d fix(studio-server): the preview file check resolves links on volumes that refuse native realpath (#8377) 2026-11-21 14:27:08 +00:00
Miguel Ángel fbbf5ee67e fix(studio-server): an agent step waits for history's first copies, so undo brings old files back (#8375) 2026-11-21 14:14:14 +00:00
Miguel Ángel d5881e8aa6 fix(studio-server): history refusals carry a closed reason, so callers tell them from failures (#8376) 2026-11-21 14:12:57 +00:00
Miguel Ángel 6b74cfa9f5 fix(studio-server): a timed-out history save says it may still land, so callers don't retry blindly (#8300) 2026-11-21 14:00:37 +00:00
Miguel Ángel 29a5003eeb test(studio-server): a held-file edit is checked for blocking waits, not wall-clock gaps (#8236)
* test(studio-server): a held-file edit is checked for blocking waits, not wall-clock gaps

* test(studio-server): the held-file wait counter says what it counts

* test(studio-server): a held-file edit fails the test if its retries block the process in any way
2026-11-21 09:54:09 +00:00
Miguel Ángel 7cb605c787 fix(studio-server): a preview file request no longer waits on a silent drive on the event loop (#8254)
* test(studio-server): a preview file request on a silent drive asks it nothing on the event loop

* fix(studio-server): a preview file request reads its project off the event loop

* ci(studio-server): refuse a new synchronous fs call in Studio's routes and history engine

* fix(studio-server): a preview file request and a miss stay off the event loop to the end

* test(studio-server): a shared still's remake no longer depends on busy requests' slot order

* fix(ci): the studio-server sync fs gate counts every sync call node:fs has, globSync included
2026-11-21 09:03:14 +00:00
Miguel Ángel ba81f67930 test(studio-server): a held save proves it never sleeps the thread, not a 100 ms stall bound (#8359) 2026-11-21 08:27:21 +00:00
Miguel Ángel a86ad213ed chore: release v0.9.77 (#8360) 2026-11-21 08:25:09 +00:00
Miguel Ángel d606c2a531 feat(studio-server): history names the bytes its next restore point would copy in (#8120)
* feat(studio-server): history names the bytes its next restore point would copy in

* fix(studio-server): count each unsaved blob once, and name the method for what it counts

* refactor(studio-server): a file the next restore point copies nothing of is its own check
2026-11-21 07:55:02 +00:00