Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
chore(images): publish macOS 26 and 26-slim (#4435)
ddupont8d4e7a086186
diff --git a/libs/images/README.md b/libs/images/README.mdindex b5ade2dd52..438f5879eb 100644--- a/libs/images/README.md+++ b/libs/images/README.md@@ -23,8 +23,8 @@ Each image publishes directly under `ghcr.io/trycua/<os>` (`linux`, `windows`, `| `ghcr.io/trycua/linux:24.04` | OCI index, rootfs for docker / gVisor, amd64 + arm64 || `ghcr.io/trycua/linux:24.04-disk` | OCI index, KubeVirt containerDisk (`/disk/disk.img`, uid 107), amd64 + arm64 || `ghcr.io/trycua/windows:2022`, `2022-disk` | containerDisk, amd64, built by `windows-2022/` (`cd-image-windows.yml`): the Windows workspace plus cua-spacesd, gated on `cua-spacesd doctor --strict` in the guest |-| `ghcr.io/trycua/macos:26` | Lume image built by `macos/`, full tier (slim plus the Command Line Tools, Homebrew and dev tools); pin `26-20260927-9a3828d` |-| `ghcr.io/trycua/macos:26-slim` | Lume image built by `macos/`, slim tier (the base plus cua-spacesd and Google Chrome); pin `26-slim-20260927-9a3828d` |+| `ghcr.io/trycua/macos:26` | Lume image built by `macos/`, full tier (slim plus the Command Line Tools, Homebrew and dev tools); pin `26-20261001-021b87d` |+| `ghcr.io/trycua/macos:26-slim` | Lume image built by `macos/`, slim tier (the base plus cua-spacesd and Google Chrome); pin `26-slim-20261001-021b87d` || `ghcr.io/trycua/macos:15` | Lume image (copy of `macos-sequoia-cua`) |- Every floating tag has an immutable dated pin: `<tag>-<yyyymmdd>-<sha7>`. Pins and per-arch children are written once. In the canonical repos only the floating tags (`<version>[-slim|-xcode[-X.Y]][-disk]`: `24.04`, `24.04-disk`, `2022`, `2022-disk`, `26`, `26-slim`, `15`) ever move, and only to a pin's digest. The macOS tiers also push `<pin>-raw` (the plain `lume push`) before `annotate.sh` writes the pin; it never moves.diff --git a/libs/images/macos/build.sh b/libs/images/macos/build.shindex c8c49ba3f5..ecf5dfe44e 100755--- a/libs/images/macos/build.sh+++ b/libs/images/macos/build.sh@@ -25,8 +25,14 @@# --base-image pull this image instead (slim only; default# MACOS_BASE_REPO:MACOS_BASE_TAG in versions.env, checked against# MACOS_BASE_DIGEST)-# --app a prebuilt app bundle; default: build libs/cua-spacesd-# (cargo, release) and bundle it with build-macos-app.sh+# --app a prebuilt app bundle (default $CUA_MACOS_APP); default:+# build libs/cua-spacesd (cargo, release) and bundle it with+# build-macos-app.sh+# --spacesd-source local (default) or release (the bundle is a published+# cua-spacesd release asset; needs --app). Default+# $CUA_MACOS_SPACESD_SOURCE. Recorded in the image manifest+# and /etc/cua-image/spacesd-source. With --app the doctor+# expects the bundle's own build-info git_sha.# --push TAG after the gate passes, `lume push` TAG to the macos repo.# TAG must be a new immutable pin of this tier# (<version>[-slim|-xcode[-X.Y]]-<yyyymmdd>-<sha7>);@@ -53,8 +59,9 @@set -euo pipefailHERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"REPO="$(cd "$HERE/../../.." && pwd)"-VERSION=26 TIER=slim BASE_VM="" BASE_IMAGE="" APP="" PUSH_TAG="" KEEP=0 MEMORY="" VM="" EXPECT_GIT=""+VERSION=26 TIER=slim BASE_VM="" BASE_IMAGE="" APP="${CUA_MACOS_APP:-}" PUSH_TAG="" KEEP=0 MEMORY="" VM="" EXPECT_GIT=""OUT="${CUA_IMAGES_OUT:-$HOME/.cache/cua-images}/macos"+SPACESD_SOURCE="${CUA_MACOS_SPACESD_SOURCE:-local}"while [ $# -gt 0 ]; docase "$1" in--version) VERSION="$2"; shift 2 ;;@@ -64,6 +71,7 @@ while [ $# -gt 0 ]; do--base-vm) BASE_VM="$2"; shift 2 ;;--base-image) BASE_IMAGE="$2"; shift 2 ;;--app) APP="$2"; shift 2 ;;+ --spacesd-source) SPACESD_SOURCE="$2"; shift 2 ;;--push) PUSH_TAG="$2"; shift 2 ;;--keep) KEEP=1; shift ;;--out) OUT="$2"; shift 2 ;;@@ -81,6 +89,11 @@ case "$TIER" inxcode) SUFFIX=-xcode PIN_RE="^${VERSION}-xcode(-[0-9.]+)?-[0-9]{8}-[0-9a-f]{7}$" ;;*) echo "--tier is slim, full or xcode" >&2; exit 2 ;;esac+case "$SPACESD_SOURCE" in+ local) ;;+ release) [ -n "$APP" ] || { echo "--spacesd-source release needs --app (the release's app bundle)" >&2; exit 2; } ;;+ *) echo "--spacesd-source is local or release" >&2; exit 2 ;;+esacif [ "$TIER" != slim ] && [ -z "$BASE_VM" ]; thenecho "--tier $TIER builds on the gated VM of the tier below: pass --base-vm" >&2; exit 2fi@@ -149,6 +162,7 @@ if [ -z "$APP" ]; thenEXPECT_GIT="${EXPECT_GIT:-$REV}"fiditto "$APP" "$SETUP/Cua Spacesd.app"+printf '%s\n' "$SPACESD_SOURCE" >"$SETUP/spacesd-source"cp "$HERE"/files/*.sh "$HERE"/files/*.plist "$HERE/image.json" "$HERE/versions.env" "$SETUP/"# This tier's downloads: fetched once into the cache, checked, then linked@@ -179,8 +193,10 @@ case "$TIER" inln -f "$xip" "$SETUP/cache/" 2>/dev/null || cp "$xip" "$SETUP/cache/" ;;esac"$SETUP/Cua Spacesd.app/Contents/MacOS/cua-spacesd" build-info >"$OUT/build-info.json"+# A prebuilt bundle: the doctor checks the guest runs exactly that build.+EXPECT_GIT="${EXPECT_GIT:-$(python3 -c 'import json,sys;print(json.load(open(sys.argv[1])).get("git_sha",""))' "$OUT/build-info.json")}"python3 "$REPO/libs/images/common/tools/cua-image-manifest" generate \- --image-json "$HERE/image.json" --tier "$TIER" --variant lume --arch arm64 --spacesd-source local \+ --image-json "$HERE/image.json" --tier "$TIER" --variant lume --arch arm64 --spacesd-source "$SPACESD_SOURCE" \--spacesd /usr/local/bin/cua-spacesd --build-info "$OUT/build-info.json" \--source-revision "$REV" --ref "$REPOSITORY:$VERSION$SUFFIX" --out "$SETUP/manifest.json"# The build boots with a token the way the cua SDK delivers one (setup share);diff --git a/libs/images/macos/files/install-guest.sh b/libs/images/macos/files/install-guest.shindex 97bdc5348e..4ea1c433eb 100755--- a/libs/images/macos/files/install-guest.sh+++ b/libs/images/macos/files/install-guest.sh@@ -11,6 +11,7 @@# com.trycua.spacesd.plist -> /Library/LaunchAgents (root:wheel 0644)# seed-tcc.sh run once here, not shipped# image.json manifest.json -> /etc/cua-image/ (build identity)+# spacesd-source optional: local (default) or release## Layout (mirrors the Linux image where macOS allows):# /Applications/Cua Spacesd.app the daemon, by bundle (TCC identity)@@ -51,7 +52,9 @@ sudo_run install -d -o root -g wheel -m 0755 /etc/cua-image /etc/cuasudo_run install -o root -g wheel -m 0644 "$STAGE/image.json" /etc/cua-image/image.jsonsudo_run install -o root -g wheel -m 0644 "$STAGE/manifest.json" /etc/cua-image/manifest.json# (sudo_run owns stdin for the password, so no pipe into it.)-sudo_run sh -c "printf 'local\\n' >/etc/cua-image/spacesd-source; printf 'lume\\n' >/etc/cua-image/variant"+source_kind="$(cat "$STAGE/spacesd-source" 2>/dev/null || echo local)"+case "$source_kind" in local|release) ;; *) echo "bad spacesd-source $source_kind" >&2; exit 1 ;; esac+sudo_run sh -c "printf '%s\\n' '$source_kind' >/etc/cua-image/spacesd-source; printf 'lume\\n' >/etc/cua-image/variant"sudo_run chmod 0644 /etc/cua-image/spacesd-source /etc/cua-image/variant/usr/local/bin/cua-spacesd build-infodiff --git a/libs/images/sandbox-images.json b/libs/images/sandbox-images.jsonindex 52c96268fe..ff6c865eb2 100644--- a/libs/images/sandbox-images.json+++ b/libs/images/sandbox-images.json@@ -169,11 +169,11 @@"variant": "vm","summary": "macOS VM on Apple silicon through Lume, with cua-spacesd at login: screenshots, desktop and window streams, input, files and exec, plus the Command Line Tools, Homebrew and dev tools. Local only.","spacesd": true,- "digest": "sha256:bf3a2bf3bf6c7b16d735af2dd1802c05ffd01f8033209cdd58e4f143ddf0f5a1",+ "digest": "sha256:7ee07d515ccd7114fff6319205ee367683f25247a0234beea956b1e0c86dffe1","sizes": {- "digest": "sha256:bf3a2bf3bf6c7b16d735af2dd1802c05ffd01f8033209cdd58e4f143ddf0f5a1",+ "digest": "sha256:7ee07d515ccd7114fff6319205ee367683f25247a0234beea956b1e0c86dffe1","platforms": [- { "arch": "arm64", "manifest": "sha256:bf3a2bf3bf6c7b16d735af2dd1802c05ffd01f8033209cdd58e4f143ddf0f5a1", "download": 23902098751, "unpacked": 34393317532, "disk": 161061273600 }+ { "arch": "arm64", "manifest": "sha256:7ee07d515ccd7114fff6319205ee367683f25247a0234beea956b1e0c86dffe1", "download": 23941655053, "unpacked": 34930188444, "disk": 161061273600 }]},"browsers": ["safari", "chrome"],@@ -194,11 +194,11 @@"variant": "vm","summary": "The minimal macOS VM: cua-spacesd at login, Safari and Google Chrome, no dev tooling. What CI and benchmarks run. Local only.","spacesd": true,- "digest": "sha256:0884508ee1e8c941c0b8c6c09078d5790e8b7341878a3581d0b113a9720328cc",+ "digest": "sha256:5d348440b03074cba9fe3f2a82cf627181e4a21c18694e9803784077844e10ba","sizes": {- "digest": "sha256:0884508ee1e8c941c0b8c6c09078d5790e8b7341878a3581d0b113a9720328cc",+ "digest": "sha256:5d348440b03074cba9fe3f2a82cf627181e4a21c18694e9803784077844e10ba","platforms": [- { "arch": "arm64", "manifest": "sha256:0884508ee1e8c941c0b8c6c09078d5790e8b7341878a3581d0b113a9720328cc", "download": 23508316348, "unpacked": 33856446620, "disk": 161061273600 }+ { "arch": "arm64", "manifest": "sha256:5d348440b03074cba9fe3f2a82cf627181e4a21c18694e9803784077844e10ba", "download": 23518071597, "unpacked": 33856446620, "disk": 161061273600 }]},"browsers": ["safari", "chrome"],