Repository navigation
feat(studio): an export menu, and export over MCP and the HTTP API - #47
Merged
Merged
Conversation
devlato
enabled auto-merge (squash)
October 20, 2026 02:54
…equest but the render's number
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The formats
claudius exportwrites (#46) are now everywhere else too.exporttool, withformatsand an optionalpath. It writes into the song's folder (orpath), rendering first when the song changed since its last render.Command::Exportwrites from the latest render when it is of the song as it is now, and otherwise says to render first.GET /api/export/{version}/{name}.{ext}?format=SPECserves that render as a download (Content-Disposition: attachment), with the format's media type. It is encoded on request, and the latest export is kept in memory for a second click.CodeQL flagged the first version of the download (9
rust/path-injectionalerts). The version came fromPath<(u64, String)>, and the format named a cache file. Neither could leave the cache, but the route now parses the version from a string, as/api/audiodoes, and keeps nothing on disk. No path is built from the request except the render's number.State.exportslists every preset, with its label and why it cannot be written here, when it cannot.Docs: the Exporting page gains the studio, the tool and the API. Also updated: the MCP tool table, the HTTP routes and commands, the studio page, and the skill's tool list and saving section.
How I checked:
saveandexportare listed.CLAUDIUS_UI_PLAN: it rendered a song, and the export menu was opened and captured with all thirteen presets.cargo xtask cipasses, andcargo xtask sitebuilds the web studio, with lychee reporting 0 broken links.