…o `lemonade launch <agent>` can install its agent (engine#3310)
- pin.txt: Node.js v24.22.3 LTS linux-x64, sha256 4f2b175a... (nodejs.org SHASUMS256, re-measured).
- stage-node.sh: sha256-checked unpack into /usr/local/lib/nodejs (minus include/, CHANGELOG, README, share/doc), npm
global config prefix=/data/npm-global, exec wrappers node/npm/npx/corepack in /usr/local/bin (regular files, so
patch-sfs's single-file copy cannot break npm's relative symlink); --manifest prints the cut's patch-sfs lines.
- container-build.sh stages it and asserts it in the packed image.
- 05onboard-data makes /data/npm-global (+ /root/.npm-global link, Lemonade's fallback path); 07onboard-user hands it
to onebit on an installed disk (not world-writable: it is on root's PATH); profile.d/91onboard-npm appends its bin.
- release-check row `node`: node + npm run and the global prefix is on the mounted data partition (SKIP on os/mini).
- os/licenses/nodejs (the release's LICENSE + SOURCE), os/LICENSES.md row.
- tests/stage_node_test.sh on a fake release tarball.
Measured: main SFS 495,226,880 -> 536,666,112 B (+39.5 MiB) via patch-sfs on the v2026.47 SFS; on the AI MAX+ 395 the
staged tree runs (node v24.22.3, npm 11.19.1, prefix -g /data/npm-global) and installs pi 1.6.0 in 6 s.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes the image side of #3310. The issue's on-box acceptance, from a fresh stick and again after an install, is still to run (see the end).
What ships
node-v24.22.3-linux-x64.tar.xz, pinned inos/v3/puppy/pin.txtwith sha2564f2b175a6d53a5c617a80dba2676238a0688cef28c6da4eba35c7d844e66fcfb(from nodejs.org's SHASUMS256.txt, re-measured on the download). v24 is the line the owner already ranlemonade launch pion by hand (24.22.1). Moving to v26 LTS later is a one-line pin bump.stage-node.sh <root> [--tarball F] [--manifest]checks the sha256 before unpacking anything. It puts the release in/usr/local/lib/nodejs, unmodified, leaving outinclude/(67 MB of addon headers; the appliance has no compiler), CHANGELOG, README and share/doc.node,npm,npxandcorepackin/usr/local/binare small exec wrappers, not symlinks, becausepatch-sfs.shcopies a single-file target withinstall, which would turn npm's relative symlink into a copy that cannot find its modules.--manifestprints the 5 patch-sfs lines a cut needs (the cut belongs to cl-buildenv).etc/npmrcsetsprefix=/data/npm-global.05onboard-datacreates it at boot and links/root/.npm-globalto it, which is the path Lemonade's agent finder tries after PATH.07onboard-userhands the tree toonebit. It is deliberately not world-writable, because itsbinis on root's PATH;onebitalready has sudo, so owning it adds nothing./etc/profile.d/91onboard-npmappends/data/npm-global/binto PATH, after the system directories, so an installed package cannot shadow a system command.node. It checks thatnode --versionandnpm --versionrun, and thatnpm prefix -gis on the mounted data partition (taken fromdf, so a/datathat is only a directory on the RAM root fails). The row skips on os/mini, which does not ship Node. The row's text says installing an agent needs the network. 6 new--self-testcases.os/licenses/nodejs/holds the release's own LICENSE (Node MIT plus every bundled dependency) and a SOURCE record;os/LICENSES.mdgains a Node.js section. The image keeps the LICENSE at/usr/local/lib/nodejs/LICENSE. NOTICE-BINARY is not touched: it covers the closed engine binaries, and Node is not part of them (qrencode and Dropbear are handled the same way).container-build.shstages Node in the payload block and refuses a packed image without the tree, the npmrc, the LICENSE, the wrappers and the profile.d file.Measured
patch-sfs.sh --manifestwith the staged tree on the v2026.47puppy_upup64r_26.04.sfs(woof-CE's zstd-19 / 256K options): 495,226,880 → 536,666,112 B, +41,439,232 B (+39.5 MiB). patch-sfs's checks all passed: no uid/gid ≥ 1000, the repack matches, only the 5 declared paths differ. The node and npm unpacked from the packed SFS run (v24.22.3 / 11.19.1). A live stick copies the SFS to RAM, so it also uses about 40 MB more RAM./data/dev/cl-release/node-root):node --versionv24.22.3,npm --version11.19.1,npm prefix -g/data/npm-global,update-notifierfalse.npm i -g --prefix <scratch> @earendil-works/pi-coding-agentgave rc=0 in 6 s, andpi --versionprinted 1.6.0 (168 MB installed). npm 11 blocks the install scripts of two dependencies, and pi runs without them. The row's verdict with the box's real values is PASS; with no Node (today's c35 image) it is FAIL.tests/stage_node_test.sh10/10, on a fake release tarball, so CI needs no network.release-check.sh --self-testrc=0.scripts/pre-pr-checks.sh --base origin/main: 17 green, 3 skipped.Not run yet: the issue's acceptance itself. On a freshly written stick and again after an install:
npm i -g @earendil-works/pi-coding-agent, reboot, thenlemonade launch piwith a downloaded model. That needs a stick built with this change, which happens with the next candidate (test at the end).🤖 Generated with Claude Code