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
cua-driver: ship the Claude Code skill pack with the app (#1366)
Francesco Bonacci0a555f406f56
diff --git a/libs/cua-driver/scripts/build-app.sh b/libs/cua-driver/scripts/build-app.shindex a4b0c1719f..57a9b85ade 100755--- a/libs/cua-driver/scripts/build-app.sh+++ b/libs/cua-driver/scripts/build-app.sh@@ -38,6 +38,15 @@ if [[ -f "App/CuaDriver/AppIcon.icns" ]]; thencp App/CuaDriver/AppIcon.icns "$APP_CONTENTS/Resources/AppIcon.icns"fi+# Claude Code skill pack. install.sh symlinks ~/.claude/skills/cua-driver+# to this path when a Claude Code install is detected on the user's+# machine. Ships inside the bundle so it survives auto-updates and+# relocations of CuaDriver.app.+if [[ -d "Skills/cua-driver" ]]; then+ mkdir -p "$APP_CONTENTS/Resources/Skills"+ cp -R Skills/cua-driver "$APP_CONTENTS/Resources/Skills/cua-driver"+fi+# Prefer Developer ID Application cert if available; fall back to ad-hoc.# `security find-identity` prints identities as:# 1) <SHA> "Developer ID Application: Team Name (TEAMID)"diff --git a/libs/cua-driver/scripts/build/build-release-notarized.sh b/libs/cua-driver/scripts/build/build-release-notarized.shindex fca9b55f58..667e2e6a05 100755--- a/libs/cua-driver/scripts/build/build-release-notarized.sh+++ b/libs/cua-driver/scripts/build/build-release-notarized.sh@@ -80,6 +80,15 @@ cp -f .build/release/cua-driver "$APP_BUNDLE/Contents/MacOS/cua-driver"# version on the way into the bundle so dev state is left untouched.sed "s/<string>0.0.1<\/string>/<string>$VERSION<\/string>/" "./App/CuaDriver/Info.plist" > "$APP_BUNDLE/Contents/Info.plist"+# Claude Code skill pack. install.sh symlinks ~/.claude/skills/cua-driver+# into this bundle path when a Claude Code install is detected. Ship+# the skill inside the .app so it survives auto-updates.+if [ -d "Skills/cua-driver" ]; then+ log "essential" "Copying Claude Code skill pack into bundle..."+ mkdir -p "$APP_BUNDLE/Contents/Resources/Skills"+ cp -R Skills/cua-driver "$APP_BUNDLE/Contents/Resources/Skills/cua-driver"+fi+# --- Sign the .app bundle ---log "essential" "Signing .app bundle..."log "essential" "Using signing identity: $CERT_APPLICATION_NAME"diff --git a/libs/cua-driver/scripts/install.sh b/libs/cua-driver/scripts/install.shindex 7a68ccbd8e..895036cdb8 100755--- a/libs/cua-driver/scripts/install.sh+++ b/libs/cua-driver/scripts/install.sh@@ -118,6 +118,28 @@ $SUDO mkdir -p "$(dirname "$BIN_LINK")"$SUDO ln -sf "$APP_BINARY" "$BIN_LINK"log "symlinked $BIN_LINK -> $APP_BINARY"+# --- Install Claude Code skill pack -------------------------------------+#+# Detect Claude Code users (via ~/.claude/skills/ presence) and drop a+# symlink pointing at the skill we shipped inside the bundle. Auto-updates+# atomically replace /Applications/CuaDriver.app, so the symlink stays+# valid across every release. Never overwrites an existing link or+# directory — dev users with their own ~/.claude/skills/cua-driver symlink+# pointing at a working copy of the repo keep theirs.++SKILL_LINK="$HOME/.claude/skills/cua-driver"+SKILL_TARGET="$APP_DEST/Contents/Resources/Skills/cua-driver"+if [[ -d "$HOME/.claude/skills" ]]; then+ if [[ -e "$SKILL_LINK" ]] || [[ -L "$SKILL_LINK" ]]; then+ log "skill link already exists at $SKILL_LINK (skipping)"+ elif [[ -d "$SKILL_TARGET" ]]; then+ ln -s "$SKILL_TARGET" "$SKILL_LINK"+ log "symlinked Claude Code skill at $SKILL_LINK"+ else+ log "skill pack missing at $SKILL_TARGET (skipping; older release?)"+ fi+fi+# --- Install auto-updater -----------------------------------------------if [[ "$INSTALL_AUTO_UPDATER" == "true" ]]; thendiff --git a/libs/cua-driver/scripts/uninstall.sh b/libs/cua-driver/scripts/uninstall.shindex 9f441909cc..e904c6a772 100755--- a/libs/cua-driver/scripts/uninstall.sh+++ b/libs/cua-driver/scripts/uninstall.sh@@ -84,6 +84,18 @@ elselog "no config at $CONFIG_DIR (skipping)"fi+# Claude Code skill symlink. Only remove when the link is ours — a dev+# user pointing ~/.claude/skills/cua-driver at a working copy of the+# repo keeps their link untouched.+SKILL_LINK="$HOME/.claude/skills/cua-driver"+SKILL_TARGET_EXPECTED="$APP_BUNDLE/Contents/Resources/Skills/cua-driver"+if [[ -L "$SKILL_LINK" ]] && [[ "$(readlink "$SKILL_LINK")" == "$SKILL_TARGET_EXPECTED" ]]; then+ rm -f "$SKILL_LINK"+ log "removed $SKILL_LINK"+else+ log "no install-created skill symlink at $SKILL_LINK (skipping)"+fi+cat << 'FINALUNMSG'cua-driver uninstalled.