Expo: ship a preview build
source /home/box/expo-builder/env.sh. Probe auth first (expo-request-sign-in). Read expo-dev-client via expo-skills-library for concepts only; overlay rules O1, O2 and O13 apply. Cost, device and live-edit rules are in expo-builder-core (Builds, spending and live edits).
- Reuse first:
eas build:list --fingerprint-hash <h> --status finished --json(<h>fromagent_cli status --explain). If a build matches, hand over itsartifacts.buildUrl. - Guards: simulator/dev profiles (no credentials) are autonomous within budget; signed internal iOS builds (credentials, device registration) are ask-first. Respect the 50-pending-builds limit, at most 1 bot build in flight. On the Free plan, warn the queue can pass 90 minutes and builds time out at 45.
- Cost gate: run
eas account:usage --jsonand state the per-build cost and included/overage status; over the allowance (or the owner's cap in memory), ask once before continuing. - Show the plan, then build (signed/device builds need a go-ahead):
- Which physical device, by name; an unregistered phone installs but won't launch ("…integrity couldn't be verified"). A device matching the owner's name may be an old phone.
eas device:list --apple-team-id <id> --json(names,createdAt; team id required non-interactively). Unsure → register first witheas device:create(interactive, box terminal, Website option, open the URL on that phone), then re-read.- Platform, profile and the pinned image it resolves to.
- Credentials state, read-only (
eas credentials, lastbuild:view); never probe witheas build. - The exact
eas build …command and the cost line. Never queue a second build "to be safe".
- Images: the profile's pinned image (
expo-builder-reference§4);development-xcode-27-1only when the owner asked for an iOS 27.1 check. - Build:
eas build -p <ios|android> -e <profile> --non-interactive --json --no-wait, then a backgroundedeas build:view <id> --jsonwatch (status,queuePosition,estimatedWaitTimeLeftSeconds) with the completion notification. Android preview: an APK profile; suggestEAS_GRADLE_CACHE=1(ask; about 50% faster). - Confirm the image in the "Spin up build environment" log section, and that install used pnpm with
--frozen-lockfile. - Hand over
artifacts.buildUrlwith the evidence contract (dev builds: plus theexp+<slug>link and QR). On failure, runexpo-triage-eas-failure. - Store hand-off: TestFlight or store with no store credentials yet → offer
expo-launch-app. Submits are always ask-first.