Repository navigation
author 0.10.1
h5p-author 0.10.1 changes how a chat that built nothing hands the source over (#206, #207). The model now writes the build page's link itself, with the source in it as readable JSON. The reply has no code block, and the person clicks one link. The build itself is unchanged.
One link, no code block
In 0.10.0 a chat that could not build wrote a small HTML page in a code block. The person opened it with the chat's Preview, waited, and clicked the link the page made. That worked in ChatGPT on a free account, but it showed the person a block of code and took three steps.
A model cannot compress a source, which is why the page's script did it. It can write its own JSON, though. Since missing-elements/missing-elements.github.io#54 the build page also reads the source as JSON written straight into the link, so the skill's route 4 is now one Markdown link:
[Build and play it](https://missing-elements.github.io/h5p/build/#source={"type":"H5P.TrueFalse",…})
- The source is on one line, with eight characters escaped so the link holds: a space,
%,&,\,(,),<and>. Everything else is written as it is, letters of any language included. - A source that names files gets the link too: the build page asks for the files before it builds.
- Where a code tool runs, the reply also offers the build archive, as before.
- Outside a chat, where a terminal may not open such a link, the source is also saved as
<name>.source.json, which the build page opens. - Routes 1 to 3, which build in the chat, keep the compressed link their command prints.
The build page reads the link leniently, because a weak model's JSON slips. It closes up to three braces or brackets left open at the end, and drops what follows the last } where a link runs on into its sentence. JSON it still cannot read goes in its box with where it breaks, and a button copies that for the chat to fix.
Measured
Haiku, the weakest model first, read the skill through a logging reader. Each reply was rendered as a chat renders Markdown, its link decoded as the build page decodes it, then built and verified:
| Built and passed | |
|---|---|
| First wording | 5 of 7 |
| Released wording | 12 of 12 |
The 12 were Question Sets in English and Ukrainian, Accordions about HTML tags, True/False questions naming a photo, and a Drag the Words with % and parentheses, some from a code tool with no network. No reply held a code block. Links ran from 0.5 to 6.9 KB as written. On the live site, the links Haiku wrote built and played, or asked for the photo, in Chromium. The page's eleven kinds of test link did what they should in Chromium, Firefox and WebKit.
Not yet measured: how ChatGPT and other chat apps render a link of several KB.
A copy installed with npx skills add takes the change with npx skills update -g. A copy uploaded to Claude, ChatGPT or Grok needs a new upload, from the zips at https://missing-elements.github.io/h5p/create-with-ai/#install, which hold this release once the site pins it.
Full Changelog: author-v0.10.0...author-v0.10.1