Release notes
What changed in each warden release, from the changesets that shipped it.
Every version of @delacour/warden (and @delacour/warden-e2e, which moves in lock-step). Run warden update to get the latest, see Updating & releasing.
0.4.0
Minor changes
- #94
warden builds rm <hash…>(aliasremove) removes cached builds by hash or a unique prefix (at least 6 characters), with their aliases, and forgets the install records at those hashes so the nextwarden dev/warden app ensurereinstalls on those devices.--platform,--dry-run,--yesand--json({ dryRun, removed, forgotInstalls }) are supported. It asks first in a terminal, and refuses a prefix that matches several builds or a build being fetched or built right now. - #89
warden dev: declining thewarden.config.tsoffer for an app read throughexpo confignow writes the config to the repo's overlay under~/.warden/projects/<repo>/instead of skipping it, so later starts (from any worktree or branch of the same repo) skip theexpo configcall without a file in the checkout. A monorepo app getsrootset to its path from the checkout. Awarden.config.tsin the repo always wins over the overlay one. - #88
warden devdraws a dashboard on an interactive terminal: task rows on the left (claim device, show simulator, dev build, metro, dev client, session), the selected row's live output on the right, and Metro's own terminal in the metro row.--no-tuiorWARDEN_TUI=0keeps the plain output;--json, pipes and CI are always plain.- The dashboard has two modes. List mode takes warden's keys;
Enterorion the metro row sends every key to Expo (a,i,w,j,r,m,o,?) untilEsc,Esc Escsends a literal Esc, andShift+PgUp/Shift+PgDnscroll Metro's history.?lists the keys. - Action keys in list mode:
rreload,dshow the simulator,oopen the dev client,sscreenshot,Rreinstall the dev build,xrestart the simulator (iOS),crestart Metro with--clear,lstream device logs,htoggle the HUD,qquit and release. - The perf keys drive
warden perfsessions from the dashboard:pstarts and stops a session,Precords every capture,masks for a mark label,freads frames (Android) andgshows the report. One session records per device, andRandxare refused while it does. - A perf HUD at the top right (terminals 100 columns or wider) shows CPU with a short history, memory (RSS on iOS, PSS on Android), fps and jank (Android), Metro's last bundle time and the recording clock.
--no-hudturns it off and--hud-interval <duration>sets the sampling interval (default1s, minimum200ms). - Each dashboard session writes
warden.log,metro.logandshots/under$WARDEN_HOME/dev/<leaseId>/;warden gcremoves a session directory once its lease is gone and its files are 24 hours old. perf metrics --watchon iOS costs ~1% of a core instead of ~16%: the app's pid is resolved once and each sample is one pid-scopedps.
- #91
warden devholds one devtools connection to the app for the whole session (the dashboard'sdevtoolsrow). It captures console lines, uncaught exceptions andfetchcalls from launch, andwarden uidevtools verbs read from it instead of opening their own connection. Without a dev session they connect directly as before.warden dev logsreads Metro's output, classified asbundle_start,bundle_done,bundle_failed,hmr,error,warnandinfo, with file, line and code frame for bundle and transform errors. It takes--since,--tail,--grep,--kind,--followand--json.- New
warden ui exceptions,warden ui routeandwarden ui devtools status|resume.warden ui logsandwarden ui networkgain--since,--level,--grep,--statusand--limit. - Exception and console stacks are symbolicated through Metro to source file and line, with Metro's code frame. Errors React Native reports through its exception handler count as exceptions.
warden ui logpoint add <file:line[:col]> '<expression>'logs a value every time a source line runs, without pausing the app or editing code.--hits <n>removes it after n hits. It comes withlogpoint list|rm|clear|hits. Logpoints are set again after a reload and end with the session. They need the Fusebox debugger.warden perf jsrecords through the dev session's connection whenwarden devruns. Other perf captures hand the connection back when they finish.warden perf jshotspots now map to source on React Native apps, which load their bundle asindex.bundle//&….- When Chrome DevTools takes the app on a Metro that allows one debugger, the session's connection waits instead of taking it back.
warden ui devtools resumereattaches. warden mcpis an MCP server on stdio. Its tools aredev_sessions,metro_logs,app_console,app_exceptions,app_network,app_eval,app_tree,app_route,app_reload,logpoint_add|hits|list|remove,profile_start|stop|statusanddevtools_status|resume.
- #88
warden dev(and every command that finds the project) works from a monorepo root without awarden.config.ts: when nothing is found upwards it looks below, in the package.jsonworkspaces(elseapps/*andpackages/*). One app there is used and named; with several,warden devasks which one, and a pipe gets the list and--project <dir>.warden devruns bare React Native apps. An app whose package.json depends onreact-nativebut notexpogets its bundle ids fromios/*.xcodeprojandandroid/app/build.gradle, Metro asreact-native starton the leased port,react-native build-ios/build-androidas the default local build, and is relaunched against Metro (-RCT_jsLocationon iOS, port 8081 reversed on Android). Noexpo-dev-clientis asked for.crestarts Metro with--reset-cache.- New
projects[].framework("expo"|"react-native") inwarden.config.tsoverrides the guess from package.json.
- #88
warden devresolves an app whose config is code (app.config.ts/.js/.mjs/.cjs) without a bundle id inapp.json: it runsexpo config --json --type publicin the app directory once and takes the bundle id, slug and scheme from the result, instead of stopping with "app.config.ts is dynamic".--bundle-idstill overrides it and awarden.config.tsskips the call. The same applies to every command that finds the project this way (warden app,warden e2e,warden run).warden devchecks the request and the app before it leases a device or opens the dashboard, and a failure there is one line with the fix on the terminal. With a person at the terminal each missing piece is offered: a package the dev-client run needs (expo-dev-client) is added and installed through the checkout's package manager (yarn/pnpm/bunx/npxexpo install, from the nearest lockfile), and an app read throughexpo configcan get awarden.config.tswith the resolved ids so later starts skip the call (run through the checkout's prettier when it has one). Without a terminal (--json, a pipe) the blocking issues are the error, each with its command.- The dashboard no longer swallows a failure: when the session never comes up, or Metro dies, warden's lines are printed to the terminal after the dashboard has closed, with the session log directory.
warden initnames the install command for the checkout's package manager instead of alwaysbunx expo install.
- #97
warden e2eandwarden ui record stopno longer need bun installed: warden runs the specs with the bun built into its own binary.WARDEN_BUNstill picks a different bun. - #85
- On iOS,
fillpastes the text with one Cmd+V instead of typing every character, about 400 ms whatever its length. Secure fields are pasted too. locator.fill(text, { via: "paste" | "type" })andwarden ui fill --via paste|typechoose how the text goes in;pasteis the default andtypekeeps the old key-by-key typing. Android always types.- A paste that cannot be confirmed on the simulator pasteboard is typed in the same attempt, and the retry after a failed read-back always types, so a field that mangles a paste (a mask, a
maxLength) still passes. warden ui recordwritesvia: "type"on a fill step that was typed, and the generated spec passes{ via: "type" }; existing recordings are unchanged.
- On iOS,
- #82
- Every iOS simulator warden creates boots already slim by default.
--slim/--no-slimonclaim,run,dev,batchande2e, configslim(top-level,e2e.<suite>.slim,batches.<name>.slim) astrue | false | { except, keep }, andWARDEN_SLIM=0choose per run, per suite or per machine. - The slim overrides are written to the simulator before its first boot, so clones come up slim with no per-daemon spawns. Once the sim is ready they are read back, and any drift is fixed live.
warden sim slim --except <categories>and--keep <labels>leave whole categories or singlecom.apple.*labels running.warden sim profileslists the categories.warden sim measure [udid|--booted]prints a booted simulator's real memory (summedphys_footprint) and its heaviest processes.warden devices --memadds the figure to the device list.warden capacitycounts a slim simulator at 1792 MB and a stock one at 4096 MB (measured, up from 2048), so admission matches what simulators really use.cost.ios.memMbandcost.ios.slimMemMboverride them.gamedandnanotimekitcompaniondare no longer disabled, and are re-enabled on a simulator an older warden already slimmed.- A plain
warden claimno longer restores a slimmed simulator.warden sim slim --restoredoes.
- Every iOS simulator warden creates boots already slim by default.
Patch changes
- #90
warden claim,warden runandwarden devsay what a claim is doing while it creates or boots a device (creating …,… booting,… waiting until it is ready), sowarden dev's claim row is no longer blank during a slow boot. A warm booted device is still claimed silently. - #99 Every simulator warden shuts down now has its viewer window closed, not only the one
warden devstops on a clean exit:warden release --shutdown, SessionEnd,warden batch,warden gc(stale leases and idle sims) and the capacity gate's idle shutdown. On Xcode 27 this stops Device Hub windows offering "Start" from piling up after awarden devsession whose terminal was closed. - #90
warden dev's dashboard streams the local build's own output (expo run:ios, xcodebuild, Gradle) into the dev build row while it runs, instead of showing nothing until the build ends. TheRreinstall action streams it into its row too. Plain output (--no-tui,--json, pipes, agents) is unchanged. - #94
warden dev,warden app ensureandwarden run --appno longer cache a dev build made from a stale git-ignoredios//android/dir. When the native fingerprint has changed since that dir was prebuilt (a new native dependency such asexpo-application), or warden does not know which fingerprint it was prebuilt for, the local build removes it first soexpo prebuildandpod installrun again. Before, the build skipped both and linked none of the new native modules, so the dev client crashed withCannot find native module '<X>'. A committed native dir, and a custombuildcommand that does not runexpo prebuild/expo run:*, are left as they are. - #93
warden claim/warden devno longer queue forever on macOS when the kernel reports memory pressurewarnwhile plenty of memory is free: a kernelwarnnow holds the boot queue only whenmemory_pressurealso shows under 25% free (criticalstill always holds).warden capacityshows the same reading.warden dev's dashboard shows the claim's progress under the claim row (queued [#1](https://github.com/delacournz/warden/issues/1) of 1 (high) — memory pressure warnand similar), instead of sitting on "preparing the ios dev build" with no output.
- #88
warden devboots a held simulator that is shut down (--udid,--lease, or the device lease an earlier session in the same shell left behind) and waits for it before installing, instead of opening Device Hub on a stopped sim and failing with "Unable to lookup in current state: Shutdown". It only boots a device under the session's own lease; a shut-down device that is not yours is an error naming it. - #98
warden devon iOS opens the Expo dev client without the dev menu's first-run onboarding sheet or the dev menu covering the app at launch. The dev menu stays reachable by shake, ⌃D or the floating button.- The warden skill says
warden dev iosopens without the sheet, and thatwarden ui open --relaunchcan still show it.
- #88
warden devshows the simulator it leased: once the device is held it brings the sim's window to the front, launching Device Hub (Xcode 27) or Simulator.app (Xcode ≤ 26) when no viewer is running, instead of leaving the window behind other apps or never opening one.--headlessskips it; a viewer that can't be opened is a warning, not a failure.warden devshuts the simulator it booted down when it ends (Metro exits, Ctrl-C, a kill), and closes its Device Hub / Simulator.app window, instead of leaving it running untilwarden gcwith a window behind. A sim that was already booted when leased, or one given with--udid/--lease, is left on.--no-shutdownkeeps dev's own sim booted.warden devandwarden runtreat the terminal going away (SIGHUP) like Ctrl-C: the child is stopped and the leases released.
- #81
- A
settleno longer counts as input for the stable-frame rule: an action right afterapp.open()or adevice.settle()that reported quiet trusts its one look instead of taking a second snapshot. - On iOS, an action whose look followed a tap or a key within 300 ms confirms that its element has stopped moving with one hit-test instead of a second whole-screen snapshot (not with
systemAlertsset, where the full look is what finds an alert).
- A
- #85
- iOS typing is about 2.6x faster: the default key pacing drops to 5 ms after a key, 20 ms hold and 50 ms before a repeated key, down from 30, 40 and 300 (about 38 ms per character instead of 99 on a local simulator).
WARDEN_SIMD_PACE_MS,WARDEN_SIMD_HOLD_MSandWARDEN_SIMD_REPEAT_GAP_MSand thepaceMs,holdMsandrepeatGapMsrequest fields still override the defaults.- The typing delays no longer go through the simulator library's timers, so a loaded host (a CI VM) stops stretching them into several times the requested pause.
- #83
- iOS
app.launch,app.terminateandapp.openUrl(every specapp.open,device.openLinkandwarden ui open) run inside the residentwarden-simdhelper instead of spawningxcrun simctlfor each call: the helper already holds CoreSimulator, which everysimctlprocess loaded again (about 0.13 CPU-s on the host per launch, roughly 40 % of warden's host CPU per bench rep). Launch arguments and environment reach the app as before,relaunch: falsekeeps a running instance, terminating an app that is not running is still a success, and thedriver.app.launchspan now carriesvia(simdorsimctl) and the app'spid. - A helper built before these ops answers once and the driver falls back to
simctlfor the rest of the session ([ios] this warden-simd predates the \launch` op …in the log; restart it withwarden ui close --udidor rebuild withbun run --cwd packages/e2e native:build). Install, uninstall,isRunningandclearDatastay onsimctl`.
- iOS
- #96 The warden agent skill (
warden skill install,warden install) matches the current CLI:warden builds,warden dev logs,warden mcptools,warden perfsubcommands,warden uidevtools verbs and the flags added since 0.3 are documented, and stale defaults and error codes are corrected. - #100
warden ui open <bundleId> --metro <url>on iOS launches the Expo dev client the waywarden devdoes: no dev menu onboarding sheet and no dev menu at launch. Your--argsfollow those flags.
0.3.1
Patch changes
- #74
bun run release <version>asks npm about every package before writing the version or building: a version already published for all of them is reported and skipped without touching the tree, and packages that already have it are listed as skipped up front.
0.3.0
Minor changes
- #72
warden ui record start|note|undo|use|status|cancel|stop(#63): everywarden uiaction and query is journalled under$WARDEN_HOME/ui/<udid>/, andstopwrites a typed@delacour/warden-e2espec (or an exported helper) directly, then runs it once on the leased device (--no-verifyskips). The journal is kept until a passingstopor acancel, so you canundo, fix andstopagain.record useruns an exported helper on the device, then records an import and a call to it.- Generated specs use durable selectors only (testID > role+label > text);
snapshot -imarks elements without one as[no-id]. Lints:coords_target,text_only_selector,ambiguous_selector,unverified_navigation,empty_recording. - Secrets typed through
WARDEN_UI_SECRET_<NAME>never land in the spec; testIDs are merged into an ids module;wait/is/getbecome auto-waiting expects;app.open({ wait: "quiet" }). - Recordings reuse the suite's shared
test.useoptions and emitlaunch: "none"when the recording or its helper opens the app itself. stopprints thespecs.<id>entries forwarden.config.tsfrom the routes seen on a dev client (helper routes merged); it never edits the config.
0.2.0
Minor changes
- #58
warden-simdlinks idb v1.7.7, whose typed bridge answers replace the generic frame decode: the helper's CPU per accessibility read drops by about three quarters (host 9.12 → 3.79 CPU-seconds per bench rep on EASmacos-largewith the equivalent patch), memory unchanged. A guest that stops answering now surfaces asE_TIMEOUTwith the seconds allowed.WARDEN_SIMD_TIMEOUT(a duration, e.g.60s) sets the per-request timeout of the helper clientwarden uiand the e2e runner connect with; the default stays 10 s.warden e2e/warden devhonour the coreeas: falseopt-out and never call eas-cli when it is set.- Golden settle probe works without a GUI launchd session (hosted workers, ssh).
Patch changes
- #69 iOS
typeTextwith characters the HID keyboard cannot type (café, emoji, CJK) pastes the right text again on Xcode 27.1: the simulator pasteboard is written throughdevicectl device pasteboard copy(falling back tosimctl pbcopy) and confirmed withpbpastebefore the paste keystroke.simctl pbcopyexits 0 there without changing the pasteboard, so the field used to receive whatever the Mac had copied last. An unconfirmed write is nowE_IOand nothing is pasted.
0.1.2
Patch changes
- #64 Releases now flow through a changesets "Version Packages" PR into
develop; merging it fast-forwardsmain, which deploys the docs and publishes the npm packages together.