Repository navigation
feat(author, mcp): a file's facts before a source names it, and a note for what only a look can check (#260, #266) - #282
Open
alekswebnet wants to merge 3 commits into
Open
alekswebnet wants to merge 3 commits into
alekswebnet wants to merge 3 commits into
Conversation
… a build says a video's length and what only a look can check (#260, #266) h5p-author media, describeMedia and mediaLine read a picture's size, an mp4's length and what a build notes of its tracks, and a Vimeo video's length as Vimeo gives it, by the readers a build holds a source's files to. An Interactive Video's times are held to Vimeo's length as to a file's, a second past it let through for the rounding. A build's result has lengths, and the command line says each. What a source places on a picture or times on a video by numbers alone is a note of the build's, for whoever looks at the preview. The skill names the command where a file is written, the Interactive Video file says to read the length first and that a text over a video is H5P.Text, and design/author.md records the runs with a file attached (#266).
…deo's length (#260) The local server's fifth tool, for an app with no shell: a video's length before its times are written, read and confined as a build reads a source's files. heldLines says the length an Interactive Video's times were held to, for both servers.
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 25 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
- describeMedia keeps one download on disk at a time, however many addresses h5p_media is given, and reads a recording at an address with no extension served as audio/ogg or audio/webm. - byNumber looks its table up by its own names only. - h5p_media refuses a blank name in its schema. - The examples' test holds the new note to its whole wording. - The skill: a picture is looked at where the model can see it (route 0 passes an attachment on unopened); where media gives no length, the user's length is taken and the reply says the times were not checked; a legacy hotspot's position is its top left. - The documents: which lists get the note, which lengths are read, the Vimeo second of slack, and that h5p_media takes web addresses.
This branch has not been deployed
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.
Closes #260. Closes #266.
For five content types a source holds numbers that mean something only against a file: an Interactive Video's times, and the places of hotspots, areas and stages on a picture. This gives a model the facts a tool can read before it writes them, and has the build say plainly what nothing but a person's eyes can check.
What changes
h5p-author media <file or address>…says what a file is before a source names it: a picture's size, an mp4's length and whether it has sound, a Vimeo video's length as Vimeo gives it. It reads with the readers a build already holds a source's files to, and needs no libraries.describeMediaandmediaLineare the same from code.h5p_media, a fifth tool of the local MCP server, is that command for an app with no shell. It reads only in the server's folders and answers in words alone.result.lengths, a line of the command's output and of both servers' answers.mediawhere a file is written, by route. The Interactive Video file says to read the length first, and that a text over a video is H5P.Text. The Image Hotspots file says a hotspot's position is its centre (read in the library's stylesheet).Measured, 2026-11-25
Claude Code stood in for a chat with a code sandbox: the skill installed, the file attached, npm cut off for real on routes 1 and 3. Two test files: a picture of five small shapes at known places, and a 10 s mp4.
#266, today's skill and tool (16 runs: Haiku and Sonnet, two tasks, routes 1 to 3, and four with a picture named only by its path).
The two runs that lost a round: an Interactive Video's text written as H5P.AdvancedText (fixed here in the type file), and a bundle unzipped into
parts/, which left its index atparts/parts(not changed here).#260, before and after.
media, and no parser, 4 of 4 runs (route 1)h5p_mediacalled firstSo the three things #260 proposed first are built (A, B and E). Its other options are not:
Behaviour that changes
MediaStore.lengthOfreturns{ file, seconds, host }, not a number (internal).Tests
mediaon files, hosted videos, refusals, confinement and the command's exit code; Vimeo's length, its one second of slack and four answers that say no length; the notes for each type; the length line.h5p_mediain and outside its folder, and the length line in a build's answer.Not verified
npx) and route 3 could not run the new command before a release: only route 1, with an archive built from this branch, and the MCP server were run. The baseline covered all three routes.mediaon a real WebM, Ogg, WAV or MP3: their length is not read, by design.Release
Author and MCP each need a minor:
media,describeMedia,lengthsandh5p_mediaare new. The skill namesmedia, so the organisation's site should pin the new author release soon after: until then its archive and one-file tool answer "unknown command", and a model falls back to what it does today.Summary by cubic
Closes #260 and #266. Adds a way to read a file's facts before a source names them, and makes a build say what only a person can check: a hotspot's place and a video's times.
What changes
h5p-author media,describeMediaandmediaLinereport a picture's size, an mp4's length and sound, and a Vimeo video's length as Vimeo gives it, with the readers a build holds a source's files to and nothing extra to install. A web address with no extension served asaudio/oggoraudio/webmis read too, and downloads are kept one at a time, however many are named.h5p_media, for an app with no shell; it reads only inside the server's folders and refuses a blank file name.lengths, and the command line and both servers say each, so the next writer starts from it.mediawhere a file is written; it says to look at the picture where a model can see one, that a legacy hotspot's position is its top left, and that a text over a video is H5P.Text. Wheremediagives no length, the user's own length is taken and the reply says the times were not checked against it.Behavior and release
MediaStore.lengthOfnow returns{ file, seconds, host }, not a number (internal).media,describeMedia,lengthsandh5p_media; the skill callsmedia, so the organisation's site should pin the new author release soon after, or its archive and one-file tool answer "unknown command".Written for commit f402bdd. Summary will update on new commits.