* 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
* test(core): a predicate reads only aliases in its own namespace
* fix(core): look up SVG selector aliases by namespace before matching their values
* refactor(core): index each SVG alias by attribute in its own function
* chore(core): regenerate the inlined alias module and the catalog font mirror index
* test(core): re-record the page goldens for the new inlined alias module
* refactor(core): pick a predicate's alias index in one place
* chore(core): regenerate the inlined alias module and page goldens
* test(core): pin attribute-selector alias lookups to their matches
* fix(core): look up attribute-selector aliases by sorted key instead of scanning each
* test(core): refresh page goldens for the indexed alias lookups
* refactor(core): keep the alias module's comment share
* refactor(core): pick each attribute operator's lookup from a table
* test(core): refresh page goldens and the catalog font mirror for the table lookups
One failed upload failed the whole release with the other packages already
out, and the next run could not finish it. The publish step now tries each
package up to three times. Every try asks the registry first, so a package
that went out on a try that reported failure is not sent again, a version
there with other contents still fails at once, and after the last try the
registry is asked once more before the package counts as failed.
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
The hyperframes-cli skill told a job with no TTY to pin the release with
the project's pinned npm run scripts. Agent shells rarely have a TTY, so
a project from someone else could choose what the agent runs through its
package.json scripts, .npmrc or node_modules.
The skill core now offers only the launcher with an exact version from
the person or from --cli-version latest --version. The unattended
reference keeps project scripts and project installs for a person's own
pipelines on projects they wrote. The Remotion eval flow is scoped to the
fixtures the skill ships. A new skill lint check fails when a shipped
SKILL.md documents npm run, an npm install of the CLI, or
node_modules/.bin/hyperframes.
In a job with no TTY nothing prompts: the CLI exits 2 and names `--yes`,
and `npx` skips its own "Ok to proceed?" whenever stdin is not a
terminal or CI is detected. What an unversioned `npx hyperframes` still
does is fetch the latest release on every cold cache, so two jobs that
start together can collide in npm's cache (`_cacache` for the fetch,
`_npx` for the install: EEXIST / ENOTEMPTY, a retry succeeds), and a
new release silently changes what the same command renders.
The hyperframes-cli skill now routes no-TTY jobs to the project's
scaffolded `npm run` scripts (each already `npx --yes hyperframes@X.Y.Z`)
or a pinned `npx --yes`, never bare `npx hyperframes`, and the loop's
render step checks `data-width`/`data-height` as well as `data-duration`.
The new references/unattended.md holds the detail and says why
interactive flows (`update`, reverse-any-video) float to `@latest` while
unattended jobs pin. The CLI reference page gets the matching paragraph.
The SKILL.md budget goes up 256 B per the file's +N-comment pattern, and
skills-manifest.json is regenerated.
* test(studio): pasting a preview's own element keeps only markup that runs no code
* fix(studio): paste refuses an element with an event handler or a script link
* fix(studio): paste checks only markup that is not in the saved file
* test(studio): paste refuses code in elements and in links spelled to slip past
* fix(studio): paste refuses scripts, inline frames and links a browser would read as script
* refactor(studio): one owner for markup safety and the saved-or-live copy plumbing
* refactor(studio): keep the saved-markup helpers private to their module
* test(studio): clipboard text cannot mark a pasted clip as saved
* fix(studio): clipboard text cannot mark a pasted clip as saved
* test(core): a selector with many unclosed openers must scan in linear time
* fix(core): scan a selector's quoted, bracketed and comment parts in one linear pass
* refactor(core): split the guarded scan's bracket and escape steps into small helpers
* test(core): page goldens carry the linear selector scan the pages now inline
* test(catalog): mirror the font subset requests the pages' new inline scan text makes
* style(core): wrap the guarded scan's doc comment under 120 columns
* test(producer): pin that an alias list written into authored HTML never reaches the CSS
* test(producer): keep the alias test's comment within the line limit
* fix(core): read selector aliases only from what the compiler wrote
* test(producer): cover root-only pages and kept templates for authored alias lists
* fix(core): also drop authored alias lists from kept templates and root-only renders
* fix(core): walk each kept template once when dropping authored alias lists
* chore(catalog): mirror the font requests of pages carrying the new alias installer
* fix(core): leave linkedom template content uncopied when dropping authored alias lists
* fix(core): drop authored alias lists inside SVG elements named template
* test(core): count every element the alias cleanup processes
* fix(core): visit each element once when dropping authored alias lists
* chore(core): regenerate the inline selector alias installer
* test(core): refresh page goldens for the regenerated installer
* test(core): svg attribute selectors rewrite in linear time over many fragment references
* perf(core): index a scope's svg reference aliases once by id and attribute name
* refactor(core): split svg attribute alias lookup out of the selector rewrite
* test(core): refresh page goldens and font mirror for the smaller inlined svg alias code
* test(core): repeated references to one svg symbol rewrite in linear time
* test(core): count alias checks so repeated svg references show quadratic work
* perf(core): index each repeated svg reference alias once
* fix(studio): a script edit re-runs in place in a sealed preview, without a reload
* fix(studio): a sealed timing edit takes the saved clip and film timing along with its soft reload
* test(studio): the sealed timing test checks a soft reload was sent before reading it
* refactor(studio): the sealed soft reload code passes the quality audit without suppressions
* chore(core): core's size budget makes room for the sealed preview's frame-side editing code
Main already measured 1,841,737 bytes packed against a 1,830,000 budget; the sealed soft reload brings it to 1,855,277. Budgets follow SIZE_BUDGET_HEADROOM: ceil(1,855,277 x 1.05) packed, ceil(4,665,659 x 1.05) unpacked.
* fix(core): a sealed timing edit is not skipped when a nested file's root repeats a clip's id
* fix(studio): a value or keyframe edit shows in place in a sealed preview
* fix(studio): a sealed group edit reloads once at its end, and a batch renders its last tween
* refactor(studio): the sealed tween patch path lives in its own module
Keeps useGsapScriptCommits under Studio's 600-line limit, and records the authoredOpacity helpers' move into core as an intended deletion.
* refactor(studio): the sealed tween patch code passes the quality audit without suppressions
Splits the frame-side change parser per kind, the tween lookup and keyframe rebuild into small checks, and the reachable-preview patch out of applyPreviewSync; drops an unused type re-export.
* feat(producer): a render that fails on a missing file says what was gone again
Restores the diagnostic the previous commit on main took out, as it was; the commits after it confine what it looks at.
* test(producer): render failure diagnostics never probe a path from error text or outside the render
* fix(producer): probe a missing path only from a real error, inside the render's folders
describeMissingPath now reads only the path Node set on an ENOENT error, never
one quoted in a message the page can write, and looks on disk only under the
render's temp root, extract cache or work folder. Any other path is named from
its text, so a network share is never contacted and the facts cannot tell an
existing path from a missing one.
* test(producer): a missing-path probe never passes an outside link or climbs above its folder
* fix(producer): walk down from the render's own folder and check each link before following it
* build(producer): give the packed size budget its 5% headroom with the missing-file diagnostic back
#8173 set the budget to 82,000 against 81,378 bytes measured, about 0.8%
over. The budget file's own rule is 5% above measured, so the next small
change would trip it again: ceil(81,378 × 1.05) = 85,447.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* revert(producer): a render that fails on a missing file stops naming what was gone, for now
This reverts commit cfea8cfff5 (#7955). The detail comes back in a follow-up that only looks inside the folders the render owns.
* revert(producer): name the files the #7955 revert removes in the deletion guard
* fix(aws-lambda): match the shell to its own pin, ship only hashed files, refuse the shell ZIP in CDK and SAM
Review follow-ups to the pinned shell route:
- build-zip --source=chrome-headless-shell accepts the folder only when its
digest is pinned for this version, not for any pinned build.
- It leaves out the files the digest skips (debug.log and chrome_debug.log,
which Chrome writes as it runs), so nothing unhashed ships.
- The CDK construct throws on chromeSource "chrome-headless-shell" and the
SAM template allows only sparticuz, as lambda deploy already refused it:
a shell ZIP cannot fit a function. The CHROME_PATH wiring for that ZIP is
gone with it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(aws-lambda): raise the packed size budget to 82,000 bytes
The shipped build-zip script now checks the shell against its own
version's pin and skips the files the digest leaves out. That takes the
tarball to 81,378 bytes in CI, over the 80,500 budget's 1% tolerance;
main was already within about 200 bytes of it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- build-zip --source=chrome-headless-shell stages only the repo's pinned
build (managedChromeVersion) and only when its folder matches the pinned
digest (isPinnedHeadlessShell), instead of the newest folder in the cache.
The folder cannot fit a ZIP function, so lambda deploy refuses
--chrome-source chrome-headless-shell up front on either arch, and the
docs say the arm64 video image is where the shell runs.
- build-zip prints the headroom under the unzipped gate, and a new
"Lambda handler ZIP" workflow builds the ZIP on PRs that touch the code
it bundles, so growth fails before merge rather than in the release job.
- The arm64 image keeps @sparticuz/chromium's fonts and fonts.conf from the
handler ZIP (FONTCONFIG_PATH=/var/task/fonts) instead of liberation-fonts,
so text falls back to the same fonts as on x86. The image workflow renders
a mixed-script page on both arches and fails when any line resolves to
different platform fonts.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* test(studio): share one sealed preview frame that delivers messages like a browser
* test(studio): name the sealed frame's port wrapper instead of commenting it
* fix(ci): the capture check treats .test-helpers files as tests, like the rest of the repo
* test(studio): keep the sealed frame's delivery helper private
* fix(studio): keep test helpers out of Studio's typecheck, like core does
* fix(skills): the launcher's floor is 0.9.65, the oldest release Desktop ships
The skill launcher now refuses any HyperFrames release older than 0.9.65, the oldest release
the HyperFrames Desktop app ships. This applies to --cli-version, to
HYPERFRAMES_STANDALONE_CLI_VERSION, to a helper started with --script and to a plugin manifest
pin. A standalone install's default npx range starts at 0.9.65. Every plugin manifest in this
repo already pins 0.9.65.
The skills guide and the plugin installation reference name the current floor, and a test
keeps them in step with the launcher. Desktop's release checks read the floor from the
published launcher, so a comment asks that it stay a string literal.
* test(skills): a helper started with --script forwards a release at the launcher's floor
The accept loop now also starts a --script helper, so all four paths are shown accepting 0.9.65.
* fix(aws-lambda): run chrome-headless-shell 158 in the arm64 video image
The arm64 video image now installs Chrome for Testing's linux-arm64 chrome-headless-shell
158.0.8127.36, pinned by sha256 and fetched with curl -f, as the whole shell folder. The Lambda
Node 22 base has none of the shared libraries the shell links and no fonts, so the image installs
them from the base's repository at the same pinned release. The image sets
HYPERFRAMES_LAMBDA_CHROME_SOURCE and HYPERFRAMES_LAMBDA_CHROME_PATH itself, and the nested video
function no longer passes ChromeSource, which would override them. stage-arm64-image.ts stops
fetching the sparticuz arm64 pack and drops the ZIP's x86 sparticuz Chrome instead.
The x86 handler ZIP stays on @sparticuz/chromium, bumped from 148.0.0 to 153.0.0. It builds at
258,502,222 bytes unzipped, under Lambda's 262,144,000-byte limit and the 248 MiB in-house gate.
Two fixes for --source=chrome-headless-shell:
- build-zip.ts staged only the executable, which exits at launch without its ICU data and .pak
files. It now stages the whole shell folder at chrome-headless-shell-linux64/.
- Nothing set HYPERFRAMES_LAMBDA_CHROME_PATH, which src/chromium.ts requires for that source.
The SAM template and the CDK stack now set it to the bundled shell when ChromeSource asks for it.
Drops the unused @types/aws-lambda devDependency, which the dead-code audit reports whenever this
package's manifest changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ci(publish): build the Lambda arm64 video image on an ARM runner
The video stage now installs Chrome's system libraries with microdnf, so it runs code for arm64.
The pack job built that image on ubuntu-latest with no emulation, which it could do only while the
stage copied files. A new lambda-video-image job builds it natively on ubuntu-24.04-arm, from the
handler zip whose sha256 the zip job reported, and reports the OCI tarball's sha256. Pack downloads
that tarball, checks the sha256 against the job's, and pins it as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(aws-lambda): fit the comment ratchet and the package size budget
chromium.ts loses the two doc lines on BUNDLED_SHELL_DIR and BUNDLED_SHELL_PATH; the names and the
SAM template's comment already say what they are.
@hyperframes/aws-lambda's unpacked budget goes from 290,508 to 298,000 bytes. The package unpacks to
295,324 bytes, up from the shared chrome-headless-shell staging module the ZIP and image scripts now
import and from the README and docs that describe the two Chrome sources.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A page that embeds <hyperframes-player> can now give it its own play,
pause and volume icons and its own loading logo, by putting elements with
a slot attribute inside the player. Anything the page leaves out keeps
today's HyperFrames look.
Co-authored-by: robinebers <16515780+robinebers@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* fix(cli): tests read opencv.js from a CI cache, never a CDN mid-test
* chore(ci): re-pin the cli test job after its opencv cache step
* chore(cli): one-line note on the opencv cache copy
The skill launcher raises its floor to 0.9.64, the oldest release with every
protection for projects received from someone else. The floor applies to a
plugin pin, to --cli-version and to HYPERFRAMES_STANDALONE_CLI_VERSION. A
release below it is refused with a message that names the floor.
The skill lifecycle reference no longer sends the agent back to the project's
pinned release after a failed check. The agent stops and reports, and runs
the old release only when the person asks for it. The CLI notice for a
project that pins a newer release now says the pin is the person's choice.
* fix(producer): charge generated mount scripts and scoped styles to the expansion budget
The expansion budget charged only the source bytes of each mounted file.
The inliner wraps every inline script in kilobytes of scoping code and
prefixes every style rule with the host's scope, so tiny scripts or a long
composition id over many rules assembled a page hundreds of times larger
than its source.
The inliner now reports what it generates through a chargeEmitted option.
Each wrapped script is charged once built. Each style rule reserves an upper
bound before it is scoped and settles to its real size after, so no rule is
built past the limit. Generated output has its own 32 MB allowance.
* fix(core): reserve the separator postcss re-joins scoped selectors with
The per-rule reservation summed a bound per selector but left out the
separator. postcss's selectors setter re-joins the list with the first
separator in the authored selector, so a wide first separator over many
selectors grew the rule past its reservation before it was charged.
* test(core): give the scoper bound test the same time limit as its neighbour
* test(ci): flag registry listings under HeyGen names that server.json never held
* ci: watch the MCP registry hourly for HeyGen listings server.json never held
* test(ci): the registry watch covers heygen.com's subdomain namespaces
* fix(ci): the registry watch covers heygen.com subdomains and opens an issue when it fails
* test(release): the MCP listing publishes with heygen.com's key; io.github retires by hand
* fix(release): list the MCP server as com.heygen/hyperframes, signed by heygen.com's key
* fix(cli): a project .env provider key prints a note when it is used
A provider key from a project .env is still used when no own credential
competes. Capture vision (OpenRouter, Gemini, Google and both Vertex parts),
snapshot --describe, Gemini speech and Lyria music now print one note per key
before it is first used, naming the variable and the escaped .env path, as
the ElevenLabs note does. The ignoring notes escape the path too, and the
media-use skill gets a generated copy of the CLI's terminal-text helper.
* fix(media-use): the audio scripts read a received .env by the CLI's full rule
The audio scripts judged a project .env as received only from
received-files.json at or above it. They now use a generated copy of the
CLI's rule, which also reads the host's received-state file, nested records
and the received content hashes, and treats an unreadable one as received.
A parity test runs the CLI and the copy over the same projects.
A key the CLI unset from a .env is now passed to the scripts it launches,
so they do not load it again from the same file.
* fix(media-use): match the CLI's folder walk and judge a parent .env by itself
The received-rule copy now skips folders by the CLI's exact private-path rule,
so a hidden Studio folder with an asset-like name is walked as the CLI walks
it. A .env the scripts find in a folder above the working one is judged only
by records and host state at or above that folder, so a received sibling or
a large parent folder cannot flip the person's own key. Keys the CLI unset
are matched by the folder's real path.
* fix(media-use): match the received rule's narrowed private-file check
The CLI's private-file rule now treats a hidden file as private whatever its type,
and framework build-output folders and service-account key names as private.
The media-use copy of the rule follows it, so the parity cases for hidden
asset-named Studio folders agree again.
* test(studio): adding a keyframe at the playhead reads a sealed preview's GSAP values
* fix(studio): GSAP keyframe and value reads work in a sealed preview
* test(studio): run the sealed keyframe test's agent on a marked Studio preview page
* test(studio): a sealed preview's GSAP reply is checked before Studio holds it
* fix(studio): hold a sealed preview's GSAP reply only when it is in shape and within bounds
* style(core): keep the snapshot limits module within the comment share
* refactor(studio): check a GSAP reply's tween in small parts
* build: raise the core packed-size budget for the sealed preview's GSAP reader
* test(core): a sealed preview's GSAP read takes a real keyframes tween
* fix(core): a sealed preview's GSAP read leaves GSAP's live objects out of a tween's vars
* test(release): a release's approver must not have pushed it, and a second maintainer must have
* fix(release): count every pusher of a release, need a second maintainer, date approvals
* docs(release): who may approve a stable release, and the second maintainer it needs
* test(release): a push the activity log records with no account stops the release
* fix(release): a push recorded with no account stops the release
A provider key from a project .env is still used when no own credential
competes. Capture vision (OpenRouter, Gemini, Google and both Vertex parts),
snapshot --describe, Gemini speech and Lyria music now print one note per key
before it is first used, naming the variable and the escaped .env path, as
the ElevenLabs note does. The ignoring notes escape the path too, and the
media-use skill gets a generated copy of the CLI's terminal-text helper.
* test(release): a release merged in one push with other PRs is found and published at its own commit
* fix(release): a release merged in one push with other PRs publishes at its own commit
* test(studio): audio meters and group volume in a sealed preview
* fix(studio): audio meters and audio groups work in a sealed preview
* chore(inspector): raise the unpacked size budget for the preview's audio editing kinds
* test(studio): the sealed audio test serves a Studio-marked preview, as the editing port now requires
* test(release): npm publishes with the job's OIDC token, no stored token named
* fix(release): publish to npm with the job's OIDC token, not a stored token
* test(release): catch a secret named by index or inherited, not only secrets.X
* test(publish): a stable release counts only maintainers' reviews, never the approver's own push
* fix(publish): a stable release needs a maintainer's approval, not any account's
* fix(publish): only approvers and change requesters are looked up, and a failed lookup always refuses
* style(publish): the release gate's comments and lines fit the 120-character limit
With the sub-composition expansion budget (#8045) on top of the probe
pre-check change (#8044), the producer packs to 930,774 bytes. That is
over its 921,000 budget by more than the 1% tolerance, so the merge
queue's Build step refuses #8045. The growth is the new expansion budget
class and pre-flight walk in the compiler.
* test(inspector): the inspector's Chrome follows the host sandbox rule, and probes retry without it
* fix(inspector): the inspector's Chrome starts as root or in a container
* test(producer): the page check and the inspector retry Chrome without the sandbox when it refuses
* fix(producer): the page check retries Chrome without the sandbox when it refuses, like the inspector
* chore(inspector): raise the packed size budget for the shared sandbox rule
* fix: refuse media paths that ffmpeg's image2 demuxer would read as a pattern
ffmpeg's image2 demuxer reads %d, %03d, %% and a % before a wildcard in an
input path as a pattern of other files, folders included. Every project,
private-file and received-file check approves the literal path, so a
composition could name a placeholder whose pattern reaches images outside
the project and get them back as video frames.
Every ffmpeg and ffprobe input built from a project file now goes through
assertLiteralMediaInput, which refuses such a local path before ffmpeg runs.
The engine's urlInputArgs, the parsers' mediaInputFormatArgs and the
studio-server's new mediaInputArgs all take the input path, so the CLI
snapshot and cloud offload, lint, core grade analysis and studio-server
callers are covered too. URLs and other percent signs, such as %20, are
read as before.
* build(parsers): declare the literal-media-input subpath
* build: raise the parsers packed-size budget for the literal-media-input subpath
The new subpath adds its own built entry, type file and export map rows,
about 2.7 KB packed. It is a separate module so test suites that mock
ff-binaries still run the real path check.
* test(parsers): a harmless name shaped like a pattern is refused too
The media-use TTS and captions references ran heygen-tts.mjs and
heygen-voice.mjs as skills/media-use/... paths relative to the working
directory. Agents run these commands from the user's project, so a project
that ships a file at that path would run instead of the bundled helper.
Name the helpers through <SKILL_DIR>, as the rest of media-use does, and add
a skill lint rule that fails when a code block or inline command runs node,
python, bash, sh, tsx or bun on a relative script path. Docs whose commands
run inside a HyperFrames checkout, or only on a checked template kit, opt out
with a marker that states the reason.
* ci: publish a stable release from the push that merges its release PR
* test(ci): read the publish job's own concurrency, where a publish in flight now waits
* ci: a stable release needs another person's approval of its final commit
* ci: only a person's approval counts for a stable release
* fix(studio): the copied render command carries no composition text a shell can run
The Variables panel's "Copy render command" put every variable value inline,
quoted for POSIX shells only. A shared project's author chooses those values,
so in PowerShell, cmd.exe (including npx.cmd's re-parse) or fish a default
such as `x'; calc.exe; '` ran as commands when the command was pasted.
The command is now fixed text: `npx hyperframes render -c <composition>
--variables-file .hyperframes/render-variables.json`. Copying it saves the
previewed values to that file through a new PUT /projects/:id/render-variables
route, which refuses a link standing in for .hyperframes and replaces, rather
than writes through, a link at the file itself. A composition path that is not
one plain word in every shell (letters, digits, `_ . / -`) gets no command.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(scripts): the comment checker skips a template nested in a substitution
stripLiterals ended a template literal at the first backtick, including one
that opens a nested template inside `${...}`. On a line such as
`'${value.replace(/'/g, `'\\''`)}'` that left a backtick unmatched, so
scanCLike read the rest of the file as one template and counted none of its
comments. The ratchet then measured VariablesPanel.tsx on main at 1 comment
line instead of 31 and failed any change that removed that line.
A `${...}` is now scanned as code: strings, regexes and templates inside it
are skipped, and its closing brace returns to the outer template.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(studio-server): read the replaced render-variables record through one no-follow descriptor
The link test checked the record with lstat and then read it by path, two
lookups CodeQL reports as a file-system race. Opening it once with O_NOFOLLOW
fails if a link is still there and reads the file that open checked.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The publish job took the npm dist-tag from the pushed tag's suffix and refused
only an exact "latest". A tag such as v1.2.3-LATEST.1, or one with a new suffix,
still named its own dist-tag. The job's channel check now accepts only alpha,
beta, rc, next, canary, hdr, native and desktop, matched exactly.
* fix(studio-server): audio decodes are bounded, stop when nobody waits, and their cache is capped
The waveform and peaks routes each started a full-file ffmpeg decode per request, with no limit on how many ran
at once, no sharing on the waveform route, and no way to stop one after its request went away. Their cache
folder also grew without end.
- Both routes now decode through one shared queue of 4 slots, one decode per cache entry, shared by every
request that wants it. When the last request waiting on a decode leaves, its ffmpeg is killed (or it leaves
the queue).
- `.waveform-cache` keeps at most 500 entries; a write past that drops the oldest.
— Rames
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(studio-server): trim comments to the package's comment share
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(studio-server): raise the packed size budget for the audio decode limits
The bounded decode queue, the abort when nobody waits and the capped cache
add about 485 bytes to the packed tarball. Main had already reached 178,489
bytes against a 178,000 budget, so together they pass the 1% tolerance
(179,877 bytes). The new budget is the measured size plus the script's 5%
headroom.
— Rames
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(studio-server): waveform decodes keep a fixed-size peak buffer, time out, and the cache is byte-capped LRU
- decodeAudioPeaks streams samples into a 65536-entry max-abs buffer that merges
neighbouring runs when full, instead of buffering and concatenating the whole decode.
- A shared decode is stopped after 10 minutes and its slot freed.
- .waveform-cache is capped at 256 MB as well as 500 entries; a cache hit marks its
entry used, so eviction drops the least recently used.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(studio-server): raise the unpacked size budget after rebasing onto main
Measured with pnpm pack after the rebase: 697160 unpacked bytes, over the
690000 budget by more than 1%. The new budget is the measured size plus 5%.
— Rames
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(studio): an undo on a sealed preview shows in place, not after a reload
* fix(studio): split the sealed restore checks, and the inspector budget takes the new kind
* fix(studio-server): bound preview stills and keep proxy work to the Studio's own pages
- Queue at most 16 stills behind the 4 being made; past that, answer 503 with Retry-After.
- Refuse a still past the end of the source before starting ffmpeg (404).
- Refuse a ?hf-proxy request on a plain preview path when another site asks for it. The
Studio's own opaque frames already load through the frame-token path, and sandboxed
thumbnail captures now do too.
— Rames
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(studio-server): raise packed size budget for the still-queue and cross-site checks
The bounded still queue, the past-end refusal and the cross-site proxy
check add about 2.2 KB to the packed studio-server (180252 bytes in CI).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>