6565 Commits
Author SHA1 Message Date
Miguel Ángel 8ad78fb0fc chore: release v0.9.92 (#8745)
* 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
2026-11-24 18:54:08 -05:00
terencecho 192c58b2e6 fix(share): omit private paths from editable source (#8744)
* fix(share): omit private paths from editable source

* fix: include the private path rules in build image installs

* fix(cli): escape the exclusion list at the terminal output boundary

* fix(share): bound private path notices and normalize reported names

* docs(cli): explain terminal escaping in contributor guidance

* Use the public descriptions for the portable source fixtures

* fix(share): silently omit private source paths

* test(share): distinguish private filenames from directories

* fix: recover interrupted source shares after a filename correction

* fix: preserve published source ancestry across filename policy upgrades

* docs: clarify local snapshot ancestry validation

* test: pin v4 filename segment validation for saved bases

* fix: reconcile interrupted source uploads by their confirmed IDs
2026-11-24 22:59:42 +00:00
Vance IngallsandClaude Opus 5.5 c890cb38f0 fix(producer): a failed pipelined blend fails its render, not the server (#8775)
* fix(producer): a failed pipelined blend fails its render, not the server

The hybrid layered loop kept each in-flight blend+encode as a slot promise
and only awaited it when the slot came round again, so a blend, encoder or
cancel failure could sit as an unobserved rejection and end the process.
Slot promises now hand their failure to the loop, which wakes every worker
through the reorder buffer, settles every in-flight blend, and only then
fails the render.

Page transition entries are checked before use (finite times, string scene
ids, a registered shader or none), the transition registry and scene map
have no prototype, and the public server attributes any rejection that
still escapes a render to that render and fails it, instead of exiting.

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

* fix(producer): report an escaped rejection as the render's failure, not a cancel

Aborting with the plain error sent the render down the cancel branch: job
status "cancelled" and no failure telemetry. The abort reason is now an
EscapedRejectionError, which the orchestrator treats like an audio failure:
the render fails with the original message. The server test now runs two
renders through a real unobserved rejection and the process handler.

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

* chore(producer): trim comments added in the blend-failure fix

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

* fix(producer): address review on the blend-failure fix

- Bun stage-test mocks of hdrCompositor.js export sanitizeTransitionMeta.
- The rejection log carries the stack.
- EscapedRejectionError keeps the cause's code/owner/retryable fields.
- The hybrid-loop test covers a render that succeeds.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 14:57:42 -08:00
Michael Wang 3865262ba3 perf(parsers): judge private paths in linear time (#8691)
* perf(parsers): judge private paths in linear time

isStudioPrivatePath decided whether each segment sat at the project root by
copying and scanning every earlier segment, so its work grew with the square
of the segment count. It now finds the first named segment once. The two
media-use copies change the same way, and lint refuses a
data-composition-src longer than any file path before resolving it.

* chore(skills): regenerate the media-use audio-carve bundle

It bundles the private-path rule, which this branch makes linear.

* test: bound the long-path tests by input size, not wall time

The isPrivateFileUnder test runs on 200,000 segments, and the lint test's
40,000-character source has no timer. CI runners took just over the old limits
while the results stayed right.

* chore(parsers): raise the unpacked size budget by 1,000 bytes

The linear private-path check adds a few dozen bytes to @hyperframes/parsers,
which put it 22 bytes past its budget's 1% margin (924,172 against 924,150).
2026-11-24 22:12:49 +00:00
Xuanru Li ca64f8b5de fix(lint): audio_volume_tween_overrides_gain hint keeps the level the author set (#8689)
* fix(lint): audio_volume_tween_overrides_gain hint keeps the level the agent set

The hint offered resetting data-volume to 1 as a way out, and agents took it to clear the warning, which threw away a level they had chosen. The hint now names the clip's own gain as the tween target to write and says to measure the render with `hyperframes audio` before changing the level.

* test(lint): protect authored gain advice for quiet clips

* fix(lint): clarify silent clip choices and align gain docs
2026-11-24 21:45:11 +00:00
Michael Wang 5a15b549b6 fix(media-use): accept CAF, W64, WavPack, AU and AC3 audio again (#8716)
* fix(media-use): accept CAF, W64, WavPack, AU and AC3 audio again

The self-contained reader lists left out five single-file audio containers,
so recordings in those formats stopped probing. Each one holds its own
media and opens no other file. Add their ffmpeg reader names (caf, w64, wv,
au, ac3) to the skill's list and to the parsers fallback list.

When a file is still refused, the message now names the accepted
containers instead of saying ffmpeg cannot read it.

* test(parsers): end ffprobe options with "--" in the container probe test

* fix(cli): media-use resolve accepts CAF, W64, WavPack, AU and AC3 audio

Add the same five single-file audio containers to the CLI media-use
reader list, and to the drift check's stand-in demuxer listing.

* chore(parsers): raise the unpacked size budget for the wider container list

The five added reader names push @hyperframes/parsers a few bytes past
its 1% tolerance; it was already within 0.1% of the limit on main.
2026-11-24 21:09:45 +00:00
James RussoandClaude Fable 5.2 305686b31e fix(studio): an element patch is declined when its target is a script, style or template (#8764)
* 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>
2026-11-24 20:53:43 +00:00
Miguel Ángel 36d5763958 feat(core): a sealed preview answers a text toolbar's authored styles and fonts (#8761) 2026-11-24 20:40:20 +00:00
Miguel Ángel afd7469bca fix(studio): a GSAP read that throws still leaves the layer as it was (#8759) 2026-11-24 20:35:23 +00:00
Miguel Ángel 3576301eb0 fix(studio): the rename note says to update the listed files by hand (#8763) 2026-11-24 20:35:21 +00:00
Michael Wang 2b1fe6f313 fix(producer): startServer never listens without a token (#8655)
* fix(producer): startServer never listens without a token

Any local account, container or sandboxed program can reach a loopback port, and with no token
set every route but /health accepted a header-less caller. When neither authToken nor
PRODUCER_AUTH_TOKEN is set, startServer now makes a random token for the run, writes it to a
file only the server's account can read (~/.hyperframes/producer/<port>.token by default, or
authTokenFile, or PRODUCER_AUTH_TOKEN_FILE), logs that path, and requires it like a configured
token. The file is removed on shutdown. createProducerApp and createRenderHandlers keep their
behavior, and their docs now say they check no caller without a token.

* refactor(producer): keep server.ts at its comment share

* test(producer): call the started server through node:http on localhost

The unit lane refuses fetch and every lookup but localhost, so the startServer tests listen on
localhost and send their requests with node:http to the address it bound.

* refactor(producer): keep server.ts at its comment share
2026-11-24 20:34:56 +00:00
Michael Wang dd3f8440b1 fix(studio-server): judge file writes as files, and refuse names that shadow a module (#8711)
* 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.
2026-11-24 20:22:56 +00:00
Miguel Ángel b30aaa26d5 fix(cli): add says why a project's registry was not read (#8754)
* fix(cli): add says why a project's registry was not read

* test(cli): the registry-reason test typechecks
2026-11-24 20:14:45 +00:00
Miguel Ángel 9343044d66 test(sdk-playground): the element-list test no longer times out on a slow runner (#8753) 2026-11-24 20:10:32 +00:00
Michael Wang f7a3abcbee fix(engine): read ffconcat lists only as ffmpeg reads them (#8714)
* fix(engine): read ffconcat lists only as ffmpeg reads them

The playlist folder check now refuses an ffconcat list with a lone CR or
NUL, a file value in any form but a bare name or one fully single-quoted
name, text after the name, or an option line. A nested entry with no name
that exists no longer passes. Applies to project and downloaded media.

* test(engine): reach the ffconcat lone CR, NUL and backslash guards

The lone CR and NUL cases now sit after a comment line, so the trailing-text
rule no longer refuses them first, and a bare name with a backslash is refused
even when a file by that name exists.

* test(engine): keep the walk's entry budget test fast; fit the engine budget

The under-budget half now writes 100 files instead of 1000, since the walk
opens every entry and the test timed out under the flake gate's load. The
engine's packed budget rises by 360 bytes for the stricter ffconcat reader.

* chore(engine): leave headroom in the engine budget after main's engine changes

* test(cli): write the segment a kept snapshot playlist names
2026-11-24 20:09:52 +00:00
Miguel Ángel 7aec1af1a8 fix(studio): a timeline clip click asks the source about its layer once (#8752)
* test(studio): a timeline clip click asks the source about its layer once

* fix(studio): a timeline clip click and the timeline's sync share one selection build

* refactor(studio): the clip selection build lives in its own module beside the selection hook
2026-11-24 20:08:46 +00:00
Miguel Ángel 7b78460d05 fix(core): a looped sound plays its whole slot in preview (#8751)
* fix(core): a looped sound plays its whole slot in preview

A looped audio clip in a slot longer than its source stopped after one
pass in preview: its window was capped at the source length, so media
sync paused it there. It now fills its authored slot, as the render does.
A playing loop is also no longer seeked a lap back at each wrap, which
left Safari holding it at the start for seconds.

* fix(core): a trimmed loop is seeked back to its trim-in at each wrap

A native loop restarts at the file's start, not at the clip's trim-in, so laps are folded out of the offset only for an untrimmed loop. A trimmed one is seeked back as before.
2026-11-24 20:03:31 +00:00
Michael Wang 179ebc1011 fix: close the review notes on the stems record and the puppeteer-core lookup (#8702)
* fix: close the review notes on the stems record and the puppeteer-core lookup

audio --read: a fetch clears a no-vocals.wav left in the stems folder, and the voice-free mix is
reused only when the record names it, then added to the record once mixed, so a mix that came
with a project is never reported as this install's. Tests now pin that a stems.json the record
does not name is never read, that a stem swapped for a link is refused, that a playlist is
refused at the voice reader, and that every stem the mix and the description open carries the
self-contained input.

bake-basemap: npm is asked once per home folder, a relative answer from npm is pinned as unused,
and Volta's folder for a globally installed package is read when VOLTA_HOME is set.

* refactor(cli): keep stems.ts at its comment share
2026-11-24 19:56:39 +00:00
James RussoandClaude Fable 5.2 ce3992edae fix(studio): a rename names the files it left pointing at the old path (#8747)
* 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>
2026-11-24 19:47:28 +00:00
Miguel Ángel b3da2cf58f fix(studio): a refused sealed press always puts the box back on the layer (#8735)
* test(studio): a sealed press the frame never answers is refused, box drawn or not

* fix(studio): a sealed press the frame never answers is refused with a reason

* test(studio): a refused sealed press puts Studio's box back on the layer

* fix(studio): a refused sealed press puts Studio's box back on the layer

* test(studio): a refused sealed press puts the box back after another press or a cleared selection

* fix(studio): a refused sealed press puts the box where the press before it left the layer
2026-11-24 19:41:04 +00:00
Miguel Ángel 630409ca19 feat(studio): long audio keeps its fx and beats, read from the server, no page OOM (#8622)
* 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
2026-11-24 19:30:50 +00:00
Miguel Ángel 5db64b4adf fix(studio): timing edits patch the clip and the duration readout in a sealed preview (#8684) 2026-11-24 19:30:48 +00:00
James RussoandClaude Fable 5.2 bf26dcbaab build(chrome): pin chrome-headless-shell 158.0.8127.88 wherever the repo installs it (#8748)
Chrome Stable moved to 158.0.8127.88. The managed shell, the render,
test, Cloud Run, Lambda and example images and the CI setup action move
with it, each with the archive or folder digest of the new build.

Signed: Rames Jusso

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 19:29:45 +00:00
Miguel Ángel efb540744c fix(studio): a sealed move of a layer with a later scale or rotation saves as a CSS translate (#8749)
* fix(studio): a sealed move of a layer with a later scale or rotation saves as a CSS translate

* fix(studio): a GSAP read puts back every attribute and nested cache field it changes
2026-11-24 19:28:54 +00:00
Miguel Ángel 416d9e036c fix(engine): a script URL Node cannot parse no longer stops the render (#8723) 2026-11-24 19:23:04 +00:00
Miguel Ángel 85953d1788 refactor(studio): the timeline reads an empty clip list's rows from the document once (#8741)
* refactor(studio): the timeline reads an empty clip list's rows from the document once

* test(studio): an empty clip list shows no row for a nested clip the runtime cut away
2026-11-24 19:03:55 +00:00
Miguel Ángel 2e1294649c fix(core): check never looks at a media file outside the project (#8742)
* fix(core): check never looks at a media file outside the project

* fix(parsers): a project file named with two leading dots counts as inside the project

* refactor(parsers): one containment check for composition srcs
2026-11-24 19:00:39 +00:00
Miguel Ángel 2ffa5aeaf8 fix(studio): a sealed drag the preview never answers is refused, not saved wrong (#8720)
* test(studio): a sealed press the frame never answers is refused, box drawn or not

* fix(studio): a sealed press the frame never answers is refused with a reason

* test(studio): a refused sealed press puts Studio's box back on the layer

* fix(studio): a refused sealed press puts Studio's box back on the layer
2026-11-24 19:00:36 +00:00
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 eae8504c2b fix(studio): a sealed scale resize no longer shows its old size for a frame after the drop (#8616)
* fix(studio): a sealed scale resize no longer shows its old size for a frame after the drop

* fix(core): gsap-set draws its drafts even when the set itself can't apply
2026-11-24 18:32:29 +00:00
Miguel Ángel 3db02bade8 refactor(studio): drop the timeline stacking-mode move no drag reaches (#8732)
* refactor(studio): drop the timeline stacking-mode move no drag reaches

* chore(studio): name the timeline stacking-mode files as agreed deletions

* fix(studio): keep the z-index commit option hosts may still pass, as a no-op

* fix(studio): keep the stacking field hosts may still pass to a timeline move, ignored
2026-11-24 18:10:26 +00:00
Miguel Ángel c6307feea4 fix(cli): a received project's registry is fetched only from public addresses (#8683)
* fix(cli): a received project's registry is fetched only from public addresses

* fix(cli): a received registry connects only to the address it checked, never via a proxy

* fix(cli): catalog search vectors download through the registry transport

* fix(cli): catalog downloads no search vectors from a received project's registry

* refactor(cli): add and catalog share their install printout

* fix(cli): the shared install header prints its verb as text
2026-11-24 18:01:47 +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
Wenbo ZhuandClaude Opus 5.5 f041181ebb fix(cli): measure probe --normalize replaces a link at the output name (#8738)
* fix(cli): measure probe --normalize replaces a link at the output name

normalize() handed the final --normalize path straight to ffmpeg, so a
symbolic link already at that name was followed and the file it points
at was overwritten with the encoded copy. It now encodes through
ffmpegToFile(), which writes under a private name and renames over the
requested one, as the other measure writers already do. A failed encode
leaves nothing at the destination.

Adds a test with the output name linked to a file outside the project:
that file stays untouched and the output name becomes a regular file.

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

* fix(cli): drop the comment the staged write no longer needs

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 17:57:21 +00:00
Miguel Ángel f2087431b3 fix(producer): a downloaded asset's local path is written into the page exactly as named (#8739)
The compiler rewrote each remote media, image, background and font URL with replaceAll, passing the local path as a replacement string, so a $ sequence in it was read as a pattern. Each rewrite now passes a function, so the path is inserted literally; the 3D projection's inlined data URLs get the same. A downloaded file's name keeps only the hash and a short alphanumeric extension from the URL.
2026-11-24 17:51:22 +00:00
Miguel Ángel 673f4b57ce fix(studio): a paste from another file cannot choose where its edits are written (#8730)
* fix(studio): a paste from another file cannot carry the marks Studio reads as its source file

* refactor(core): the marks Studio reads as an element's source file have one owner
2026-11-24 17:44:28 +00:00
Miguel Ángel bf07a78b6f fix(player): a sealed player's redirect to another site loads without a console error (#8733)
* fix(player): a sealed player's redirect to another site loads without a console error

* test(player): an off-site redirect is not read by a sealed player
2026-11-24 17:44:21 +00:00
Miguel Ángel 4821e02f2b fix(core): a rich-text style value is written from its own tokens, not copied (#8734) 2026-11-24 17:39:24 +00:00
Miguel Ángel d44c847ca7 fix(studio): a hand move in a sealed preview saves as the same CSS translate as unsealed (#8731) 2026-11-24 17:34:30 +00:00
Miguel Ángel d975475cd5 fix(engine): local media inputs open with the file protocol only, and other schemes are refused (#8726) 2026-11-24 17:34:21 +00:00
Miguel Ángel 5969cd2b43 fix(engine): a late image whose URL Node cannot parse no longer stops the render (#8728) 2026-11-24 17:12:13 +00:00
Miguel Ángel 90e86ef38a fix(share): a change-of-space journal counts only when this install sealed it (#8687)
* fix(share): a change-of-space journal counts only when this install sealed it

A host that binds journalKey has each journal the kernel writes sealed with an HMAC over the project folder and the journal's own text. The kernel's one read treats a journal without that seal as none, so a status read never acts on a journal another party put in the project.

* fix(share): an old link's cleanup acts only on a change marked opened

The kernel marks a change opened before it moves the record, so an unopened change beside a record already on its new project is an earlier journal written back; its cleanup no longer turns that link on again.

* fix(share): a press drops an unopened change already on its new project instead of settling it

changeSpace took an earlier journal written back into oldLinkFirst, which turned its link on again; it now gets cleanupOf's rule.

* refactor(share): keep the written-back journal rule in its own step of a press
2026-11-24 17:01:46 +00:00
Miguel Ángel 534607f46a fix(cli): grade-compare opens a grades file's LUT paths only inside the project (#8724) 2026-11-24 17:01:32 +00:00
Miguel Ángel 2b11131bef fix(cli): registry add looks for a Node package in the folders a file is written to (#8722) 2026-11-24 16:48:36 +00:00
James Russo 08431260d9 chore: release v0.9.91 (#8718) 2026-11-24 15:30:29 +00:00
James RussoandClaude Fable 5.2 45846f1e6d fix(cli): tts replaces a link at its output name with the audio file (#8707)
* fix(cli): tts replaces a link at its output name with the audio file

The synthesis script wrote in place, so a link at the output name had the
file it points to overwritten. The script now writes to a fresh name in the
same folder, which is renamed over the output.

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

* docs(cli): say tts replaces a file or link at its output name

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

* fix(cli): stage tts audio under a short name and say why a late step failed

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

* fix(cli): tts keeps a replaced file's permissions and refuses a write-protected one

The rename retries a file Windows still holds, and a failed start or a
timeout now says why.

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

* fix(cli): tts names a silent exit by its code or signal, not its command line

A link at the output name is replaced whatever it points to.

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

* test(cli): skip the link, permission and long-name tts cases on Windows

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

* test(cli): read the tts output before checking what kind of file it is

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

* fix(cli): a staged tts file that cannot be removed no longer hides the run's error

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

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 14:45:51 +00:00
James RussoandClaude Fable 5.2 93309f35cd fix(registry): inline the warm-grain starter's grain texture (#8712)
* fix(registry): inline the warm-grain starter's grain texture

The starter's grain layer loaded its paper texture from an outside site at
preview and render time. It now ships the texture as an inline SVG noise
tile, so a new project renders the same frames offline.

A test scans the starter files and fails when one names an outside host
other than the four the starters already use.

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

* test(registry): see a host named in a template literal

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

* test(registry): split the skipped-file pattern into its two parts

One pattern held a path part and a file ending joined by "|", with the end
anchor on only one side. Two patterns say the same thing without relying on
operator precedence.

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

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 13:52:05 +00:00
James RussoandClaude Fable 5.2 99ccd54c63 fix(cli): speak a narration line as written in local voice and tts (#8706)
* fix(cli): speak a narration line as written in local voice and tts

The local voice provider hands the line to tts in a file of its own, so a
line that names a .txt file or starts with dashes is spoken, not read or
taken as an option. tts and heygen-tts treat a word starting with two path
separators as text without looking it up.

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

* fix(skills): pass the audio skill's own text file to tts with --text-file

Its temp folder can be on a network share, and tts no longer reads such a
path when it is given as a plain word.

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

* fix(cli): remove the local voice run folder when its text file cannot be written

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

* fix(cli): refuse a .txt path on a network share instead of speaking it

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

* test(cli): name the share paths outright so the tts cases hold on Windows

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:57 +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 42ad487987 fix(cli): capture keeps an SVG link attribute only under its plain or xlink name (#8705)
A link attribute written under another prefix (for example xl:href with the
prefix bound to the xlink namespace) was not checked as a link, so an SVG that
loads an outside file through it was saved as a plain image.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 13:51:50 +00:00