# Tool images build side by side on a host with room for them: each slot # in a build VM of its own (devvm-tools-build, then -2 and -3), of 2 CPUs # and 2 GiB, and every image ends in the share. env DEVVM_TOOL_SLOTS=3 env SHARE=$XDG_DATA_HOME/devvm/tools project web cp $WORK/package.json package.json exec devvm --network open --no-git-protect --agents claude stdout '^==> building_tools tools=node 24\.21\.0, pnpm 12\.10\.1, bun 1\.4\.2, claude 2\.1\.295$' stub_calls stdout '^limactl clone --tty=false --mount-none --set \.mounts = \[.*\] --cpus=2 --memory=2 devvm-img-[0-9a-f]{12} devvm-tools-build$' stdout '^limactl clone --tty=false --mount-none --set \.mounts = \[.*\] --cpus=2 --memory=2 devvm-img-[0-9a-f]{12} devvm-tools-build-2$' stdout '^limactl clone --tty=false --mount-none --set \.mounts = \[.*\] --cpus=2 --memory=2 devvm-img-[0-9a-f]{12} devvm-tools-build-3$' ! stdout 'devvm-tools-build-4' exec sh -c 'ls "$SHARE" | grep -c "\.erofs$"' stdout '^4$' # Nothing of the builds is left: their VMs and folders are gone. exec sh -c 'grep -c "^limactl delete -f devvm-tools-build" "$STUB_LOG"' stdout '^4$' ! exists $XDG_DATA_HOME/devvm/tools-build.* # Ctrl+C while they build side by side: every slot's VM goes, and its # folder, whatever each had got to. project api cp $WORK/deno.json deno.json exec sh -c ': > "$STUB_LOG" && : > "$STUB_DIR/shell-hangs"' ! exec devvm --network open --no-git-protect --agents codex,opencode &b& wait_file $STUB_DIR/hanging kill -INT b wait b rm $STUB_DIR/shell-hangs exec sh -c 'grep "^limactl clone .* devvm-tools-build" "$STUB_LOG" | grep -c .' ! stdout '^0$' exec stub vms ! stdout 'devvm-tools-build' ! exists $XDG_DATA_HOME/devvm/tools-build.* -- package.json -- {} -- deno.json -- {}