* chore: release v0.9.92
* chore: release v0.9.92 notes list the changes merged after the first cut
* chore: release v0.9.92 notes list the changes merged since the last cut
* chore: release v0.9.92 notes list the changes merged since the last cut
* chore: release v0.9.92 notes list the changes merged since the last cut
* fix(studio): an element patch is declined when its target is a script, style or template
A patch edits a layer. patchElementInHtml wrote text, markup and
attributes into whatever element the target resolved to, including an
inline script, a stylesheet or a template, so a text edit whose target
named one replaced that element's source. It now answers matched:false
and leaves the file as it is when the target, or an operation's child
target, is one of the tags that never take a stable id (script, style,
template, meta, link, noscript, base). A text edit of a layer whose only
child is a script writes the text on the layer instead of into the
script.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* chore(studio): say the declined-target rule in the name, not in comments
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(studio-server): judge file writes as files, and refuse names that shadow a module
A create or overwrite is now judged as writing a file whatever stands at the
path, and a create is checked again once its body has arrived, so swapping a
folder away while the body is pending no longer lets an extensionless name
through. Below a tooling package.json, a file whose name plus a module
extension names a file beside it (db.utils next to db.utils.js) is refused
too, since Node loads the exact name first.
* fix(core): refuse names that shadow a module in the shared Node-tooling rule
The sibling-module check now lives in core's nodeMayRun, where the rule moved,
so Studio saves and hyperframes add from another registry both refuse a file
Node would load before the module beside it.
* docs(core): describe the shadowing rule without a file-like example
The comments check reads the example name as a citation of a missing file.
* fix(studio): a rename names the files it left pointing at the old path
Renaming or moving a file updates the references to it in the project's
files. A file Studio does not write was skipped without a word, so it kept
the old path. The rename response now lists those files in
unchangedReferences, and Studio shows one line naming them.
Signed: Rames Jusso
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(studio): the rename message names at most five files
Signed: Rames Jusso
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(core): decode whole audio files only up to ten minutes
* test: give the header stub only to tests with a DOM
* refactor(core): one header stub for both test setups, length check as its own step
* refactor(core): one decode gate for failed and too-long sources
* feat(studio): long audio keeps its fx and beats, read from the server as PCM
* fix(core): carve and levels read the same span of audio at any sample rate
* test(studio): beat analysis test waits for its read to start
* test(studio): beat analysis tests run on an idle timeline
* fix(studio): the clip menu's duck passes its carve rate too
* fix(core): publish the audio-decode subpath
* refactor(studio-server): the PCM route registers with the waveform routes
* fix(studio-server): the PCM route checks the file without blocking the server
* chore(skills): media-use's carve copy picks up the time-sized analysis window
* chore(skills): the skills manifest records media-use's new carve copy
* fix(studio): the PCM route refuses other sites, shares the decode slots and keeps stereo for beats
* fix(core): a short file whose length can't be read decodes again, judged by its size
* refactor(core): one window level and Hann helper, PCM route and decode split into steps
* chore(skills): the skills manifest records media-use with main's change and this branch's carve copy
* fix(studio-server): the PCM route answers not found for a request path it can't read
* chore(skills): the carve copy and skills manifest regenerate over main's carve change
* chore(skills): the skills manifest regenerates over main's media-use change
* 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>
* 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>
* 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>
* 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>
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.
* 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
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.
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.
* 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
* 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
* 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
* 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
* 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
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.
* 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
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.
* 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.
* 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
* 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
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.
* 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
* 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.
* 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
* 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
* 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