Skip to content

Video as code: canvas scenes rendered with WebCodecs in headless Chrome, a review viewer, and agent skills that build the video from your references.

Release 0.2.2: 0.2.1 went out from 984fcea

StaryOne538cb843c52b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 04e538a..1522eae 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,26 +2,37 @@
Changes are listed by release, newest first. The sections dated before 0.1.0 record what was built on the way to the first release.
-## 0.2.1 (2026-11-17)
+## 0.2.2 (2026-11-17)
### Fixed
-- `npm install -g @motlab/cli` gave no working `motlab` command under nvm for Windows 2.0, whose shim mode keeps npm's global folder off PATH, and the README's next step, `motlab setup`, failed there with "not recognized". Setup now notices when npm's command folder is not on PATH and writes the same `motlab` launcher to `~/.local/bin` that the clone installer writes, pointing at the engine in npm's folder, and prints the line that adds `~/.local/bin` to PATH when it is missing. `motlab uninstall` removes it, and an update with `npm install -g @motlab/cli@latest` keeps it working. Where npm's folder is on PATH nothing changes.
-- Setup run from npx's cache, with no global install, stops and says to install first instead of copying skills from a folder npx may clear.
+- 0.2.1's setup dropped every copy of Node's folder from the front of PATH before checking whether npm's command folder was on it. That is right on Windows, where nvm 2.0's shim puts it there, but on macOS and Linux nvm puts Node's folder first in the terminal itself, and it is npm's global folder, so setup would have written an unneeded launcher to `~/.local/bin` and asked to add that folder to PATH. Outside Windows only the copy npx adds is dropped now. The check is in `src/userpath.js`, and seven PATH cases in `test/install.test.js` (Linux nvm directly and through npx, Linux system Node, a folder really off PATH, nvm for Windows directly and through npx, Node from nodejs.org) cover it on the CI runners. The 0.2.1 version failed both Linux nvm cases.
+- A scene transition whose WebGL context was lost failed with "transition fade: null", because the shader logs come back empty then. It happened twice in three CI runs on the Ubuntu runner, where Chrome draws with SwiftShader, at the first shader compile. The mixer now builds a new canvas and context and draws the frame again, and only a second loss stops the render, with a message that says so. A loss that draws nothing without an error is caught too, by checking the context after the draw. Checked in Chrome on Windows with `WEBGL_lose_context`: a context lost once drew the frame (the right colour), one lost every time stopped with the message, and a normal one drew as before. CI then passed three runs in a row on both runners. Why the runner loses the context was not found; a GPU watchdog during a slow software compile is a guess.
- When mediabunny is not installed, as in a clone where `npm ci` was never run, the renderer said only that the page "failed to fetch dynamically imported module ... mediabunny.mjs" before it fell back to the raw bitstream. It now says mediabunny is not installed and to run `npm ci` in the engine folder. Seen on a Linux VPS where the tests ran in a fresh clone; checked on Windows with a copy of the engine that has no `node_modules`.
-- A scene transition whose WebGL context was lost failed with "transition fade: null", because the shader logs come back empty then. It happened twice in three CI runs on the Ubuntu runner, where Chrome draws with SwiftShader, at the first shader compile. The mixer now builds a new canvas and context and draws the frame again, and only a second loss stops the render, with a message that says so. A loss that draws nothing without an error is caught too, by checking the context after the draw. Checked in Chrome on Windows with `WEBGL_lose_context`: a context lost once drew the frame (the right colour), one lost every time stopped with the message, and a normal one drew as before. Why the runner loses the context was not found; a GPU watchdog during a slow software compile is a guess.
-- `motlab doctor` reported mediabunny missing when npm put it next to the engine folder instead of inside it, as npx does. It now finds it the way the server does, through Node's module resolution.
- `motlab doctor` told a user missing Python packages to run `pip install -r skills/motlab/requirements.txt`, a path that only works from a clone. It now prints the full path. Seen on the Linux VPS after an npm install.
### Changed
- When Chrome is missing on Linux, `motlab doctor` prints the commands that install Google's `.deb` on x64 Debian or Ubuntu, and says the Chromium snap can fail headless, instead of "install Google Chrome or Chromium from your distribution". On other processors it says to use the distribution's Chromium, not the snap. Checked by printing the hint with the platform set to Linux x64 and arm64 on the Windows laptop; the commands have not been run on Linux.
- The README's install section lists the setup command for each agent (Claude Code, the agents that read `~/.agents/skills`, Antigravity, several at once, any other folder) instead of a folded list of options.
-- The README and the install docs run setup as `npx @motlab/cli setup`, which works before `motlab` is on PATH; npx runs the installed package and downloads nothing.
-To tell whether npm's folder is on the user's PATH, setup (`src/userpath.js`) drops the folders a Node process sees in front of it that the terminal does not have. npx adds its `node_modules/.bin` folders, node-gyp-bin and Node's own folder once; on Windows, nvm 2.0's shim also puts Node's folder first, and under nvm that is npm's global folder, so there every leading copy goes. On macOS and Linux, nvm puts Node's folder first in the terminal itself, so only the copy npx added goes. A first version dropped every copy on all systems, which would have written an unneeded launcher under nvm on Linux; seven PATH cases in `test/install.test.js` (Linux nvm directly and through npx, Linux system Node, a folder really off PATH, nvm for Windows directly and through npx, Node from nodejs.org) now cover it on the CI runners.
+Tried on Windows 11 with nvm for Windows 2.0 and this laptop's own PATH: `npm install -g` of the packed tarball, then `npx @motlab/cli setup` from a test home wrote the launcher when npm's folder was off PATH and none when it was on PATH. On a Linux VPS (Ubuntu, Xeon Platinum 8255C, 2 cores, 8 GB, no GPU, Node 24.22.3 with npm's prefix in `~/.npm-global`), with a tarball packed from this branch: `npx @motlab/cli setup --skill none` wrote no launcher, `which motlab` found npm's own command, `doctor` was ready, the example rendered at 960x540 with SwiftShader and the software H.264 encoder (about 180 to 215 fps, 1.5 to 2.3 s a scene), and after `npm ci` in a clone `npm test` passed. Not tried: macOS, and nvm on Linux outside the tests.
+
+## 0.2.1 (2026-11-17)
+
+Published from commit 984fcea; the package on npm matches that commit file for file.
+
+### Fixed
+
+- `npm install -g @motlab/cli` gave no working `motlab` command under nvm for Windows 2.0, whose shim mode keeps npm's global folder off PATH, and the README's next step, `motlab setup`, failed there with "not recognized". Setup now notices when npm's command folder is not on PATH and writes the same `motlab` launcher to `~/.local/bin` that the clone installer writes, pointing at the engine in npm's folder, and prints the line that adds `~/.local/bin` to PATH when it is missing. `motlab uninstall` removes it, and an update with `npm install -g @motlab/cli@latest` keeps it working. Where npm's folder is on PATH nothing changes (but see 0.2.2 for nvm on macOS and Linux).
+- Setup run from npx's cache, with no global install, stops and says to install first instead of copying skills from a folder npx may clear.
+- `motlab doctor` reported mediabunny missing when npm put it next to the engine folder instead of inside it, as npx does. It now finds it the way the server does, through Node's module resolution.
+
+### Changed
+
+- The README and the install docs run setup as `npx @motlab/cli setup`, which works before `motlab` is on PATH; npx runs the installed package and downloads nothing.
-Tried on Windows 11 with the packed tarball in separate npm folders and home folders: npm's folder off PATH (launcher written, `motlab --help` through it, uninstall removed it), on PATH (no launcher), from a copy laid out like npx's cache (stops, exit 1), and over a clone's launcher (dry run: replaced, naming what it ran). With nvm for Windows 2.0 and this laptop's own PATH, the README's two commands: `npm install -g` of the 0.2.1 tarball, then `npx @motlab/cli setup` from a test home wrote the launcher, `motlab --help` and `update` ran through it; with npm's folder added to PATH no launcher was written. `doctor` found mediabunny inside the engine folder and next to it, and failed with it gone. On a Linux VPS (Ubuntu, Xeon Platinum 8255C, 2 cores, 8 GB, no GPU, Node 24.22.3 with npm's prefix in `~/.npm-global`): `npx @motlab/cli setup --skill none` wrote no launcher, `which motlab` found npm's own command, `doctor` was ready, the example rendered at 960x540 with SwiftShader and the software H.264 encoder (about 180 to 215 fps, 1.5 to 2.3 s a scene), and after `npm ci` in a clone `npm test` passed. Not tried: macOS, and nvm on Linux outside the tests.
+Tried on Windows 11 with the packed tarball in separate npm folders and home folders: npm's folder off PATH (launcher written, `motlab --help` through it, uninstall removed it), on PATH (no launcher), from a copy laid out like npx's cache (stops, exit 1), and over a clone's launcher (dry run: replaced, naming what it ran). With nvm for Windows 2.0, `npm install -g` of the tarball then `npx @motlab/cli setup` wrote the launcher, and `motlab --help` and `update` ran through it. `doctor` found mediabunny inside the engine folder and next to it, and failed with it gone.
## 0.2.0 (2026-11-17)
diff --git a/package-lock.json b/package-lock.json
index 7d79b0f..c2bb87f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@motlab/cli",
- "version": "0.2.1",
+ "version": "0.2.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@motlab/cli",
- "version": "0.2.1",
+ "version": "0.2.2",
"license": "MIT",
"dependencies": {
"mediabunny": "1.65.2"
diff --git a/package.json b/package.json
index b4181e9..981d3a7 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@motlab/cli",
- "version": "0.2.1",
+ "version": "0.2.2",
"description": "Video as code: canvas scene pages rendered frame by frame in headless Chrome with WebCodecs, a project format with audio, a web viewer, and an agent skill that builds the scenes.",
"license": "MIT",
"author": "StaryOne",