stim 1.10.0 → 1.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/{android-DBkeHwpm.mjs → android-Bu4mbDzc.mjs} +11 -11
  2. package/dist/{app-install-CrJ6t_bv.mjs → app-install-Cfmqr3TQ.mjs} +1 -1
  3. package/dist/{budget-BP4jZZL4.mjs → budget-nDCEwtJv.mjs} +5 -5
  4. package/dist/cli.mjs +10 -10
  5. package/dist/{dev-client-92U593KT.mjs → dev-client-DExzPiOa.mjs} +5 -5
  6. package/dist/{device-DhTZe7L4.mjs → device-Czh5kO8A.mjs} +2 -2
  7. package/dist/{device-pool-Di8Q-9Ro.mjs → device-pool-BBWLAr55.mjs} +1 -1
  8. package/dist/{device-remote-Dy1jGj3U.mjs → device-remote-powUHdbK.mjs} +4 -4
  9. package/dist/{doctor-B-inAJmt.mjs → doctor-CmqK1LcQ.mjs} +6 -6
  10. package/dist/{gc-ChPFZMRC.mjs → gc-zCDpmdHU.mjs} +7 -7
  11. package/dist/{idle-DpRLp5lj.mjs → idle--jn7pBNe.mjs} +1 -1
  12. package/dist/{in-use-CjUluqIX.mjs → in-use-CNIWU-r-.mjs} +1 -1
  13. package/dist/{ios-B2Fpqvlb.mjs → ios-COGcGEcN.mjs} +14 -6
  14. package/dist/{ios-Dd-hYJBh.mjs → ios-CbdqTqOc.mjs} +13 -13
  15. package/dist/{ios-device-CtRdEVjx.mjs → ios-device-DNjPXBnb.mjs} +1 -1
  16. package/dist/{launch-verify-CQS_Kg-C.mjs → launch-verify-BhgkYAws.mjs} +1 -1
  17. package/dist/{ownership-DZjdx8Gq.mjs → ownership-BfPNRf3-.mjs} +1 -1
  18. package/dist/{reload-DoETJ3rl.mjs → reload-CymyF6Kk.mjs} +3 -3
  19. package/dist/{simslim-Ca3487H6.mjs → simslim-DZUxzsjq.mjs} +2 -2
  20. package/dist/{slot-launch-C5cg0fmk.mjs → slot-launch-Dk4oTREM.mjs} +1 -1
  21. package/dist/{start-F9gv5dcC.mjs → start-RbmFPeZ7.mjs} +2 -2
  22. package/dist/{start-VoFsPSes.mjs → start-qWapeB4W.mjs} +1 -1
  23. package/dist/{status-DLCD-o3s.mjs → status-Zp8kvexe.mjs} +4 -4
  24. package/dist/{stop-ZvOeTmKb.mjs → stop-DI4BG4Os.mjs} +2 -2
  25. package/dist/{stop-Dj4pfmyv.mjs → stop-DcEv5sk-.mjs} +2 -2
  26. package/dist/supervisor-run.mjs +2 -2
  27. package/dist/{workspaces-BTUyFfkv.mjs → workspaces-wrH6dXfu.mjs} +3 -3
  28. package/dist/{worktree-BMS7GeqB.mjs → worktree-Bd4dRvx7.mjs} +3 -3
  29. package/dist/{worktree-4aZg2NnI.mjs → worktree-DEG2o9F8.mjs} +1 -1
  30. package/package.json +5 -5
@@ -12,22 +12,22 @@ import { A as resolveBuild, C as fingerprintDiffRecord, D as providerDownloadPat
12
12
  import { n as NO_BUILD_PROGRESS, s as startBuildProgress } from "./build-progress-BXx-ZBe4.mjs";
13
13
  import { B as resolvePhysicalDevice, E as listInstalledSystemImages, F as physicalDeviceModel, L as probeEmulatorSerial, O as memoizeEmulatorProbe, R as resetAdoptedAvd, W as waitForBoot, _ as emulatorDiskSpaceRemedy, a as androidPoolNoCandidatesRefusal, b as findBuildTool, i as androidPoolCandidates, n as androidDeviceAbi, o as androidSystemImageAbi, r as androidHome, s as androidToolCwd, t as androidBuildToolName, v as emulatorFailureRemedy, w as listAdbDevices, y as extractEmulatorFailure, z as resolveOwnedAvdSerial } from "./android-787HhP5w.mjs";
14
14
  import { A as resolveCacheProviderConfig, E as publicUrlSetting, H as compilerCacheFallbackMessage, I as tunnelModeSetting, L as unknownSettingKeys, M as settingFile, O as remoteAndroidSetting, P as settingShapeErrors, S as metroWarmupUrlSetting, U as optimizationBuildProfile, V as artifactCachePolicy, W as resolveOptimizations, a as SETTING_SHAPE_REMEDY, d as cacheProviderSettingError, j as resolveSettings, r as REMOTE_DEVICE_BACKENDS, s as androidAvdConfigSettingError, u as androidDataPartitionSizeGbSettingError, z as detectProviders } from "./settings-DOugPlPz.mjs";
15
- import { y as parkedMaxSetting } from "./ownership-DZjdx8Gq.mjs";
16
- import { a as acquireBuildSlot, s as releaseBuildSlot } from "./in-use-CjUluqIX.mjs";
15
+ import { y as parkedMaxSetting } from "./ownership-BfPNRf3-.mjs";
16
+ import { a as acquireBuildSlot, s as releaseBuildSlot } from "./in-use-CNIWU-r-.mjs";
17
17
  import { n as verifyCollectorOwnership, r as readCollectors } from "./ownership-D2xbLVoz.mjs";
18
18
  import { t as cleanLine } from "./server-expo-BvOCeakp.mjs";
19
- import { A as UPLOAD_TIMEOUT_MS, B as resolveRemote, F as isEasAuthFailureText, I as loadProjectProvider, M as checkEasAuth, N as easAuthNote, P as exitAfterFlush, V as uploadRemote, a as ensureMetroReachable, c as remoteAndroidDeps, j as cacheLevel, k as RESOLVE_TIMEOUT_MS, n as binOnPath, o as ensureRemoteBootOwned, u as resolveRemoteContext, w as ownedSessionName, z as resolveEasCliBin } from "./device-remote-Dy1jGj3U.mjs";
20
- import { _ as launchAndroidReleaseApp, d as deviceShellArg, f as installAndroidApp, g as launchAndroidApp, o as androidAppProcess, p as installConflictKind, r as DEFAULT_METRO_PORT, s as androidDevClientUrl, t as ADB_INSTALL_TIMEOUT_MS } from "./app-install-CrJ6t_bv.mjs";
21
- import { a as VERIFY_TIMEOUT_MS, d as verifyLaunch, i as RELEASE_VERIFY_WAIT_MS, l as unverifiedLaunchLines, n as LAUNCH_FATAL, r as LAUNCH_UNVERIFIED, t as LAUNCH_BUNDLING, u as verifyAndroidReleaseLaunch } from "./launch-verify-CQS_Kg-C.mjs";
22
- import { d as isEasBuildFailure, f as resolveEasDevelopmentBuild, o as unknownAndroidSystemImageRefusal, r as checkDeviceCapacity } from "./simslim-Ca3487H6.mjs";
23
- import { a as lostLine, c as releaseLeaseOnSignal, i as leaseExpiryText, l as runLease, n as DEBUG_VERIFY_STEP_MS, o as lostRefusal, r as acquireRunLease, s as parseDeviceWait, t as selectFromPool, u as waitFlagConflict } from "./device-pool-Di8Q-9Ro.mjs";
24
- import { _ as isPhysicalDeviceRequest, b as warmMetro, c as runPrebuild, d as ensureOwnedDevice, f as AvdBootError, g as ensureWorkspaceStorageSafely, h as ensureDevServer, i as detectEntryFile, l as staleNativeDirRefusal, n as pickDevClientScheme, o as planPrebuild, p as AvdRecoveryError, s as recordPrebuild, t as devClientScheme, u as ensureBooted, v as launchOutcomeRecord } from "./dev-client-92U593KT.mjs";
25
- import { t as budgetGate } from "./budget-BP4jZZL4.mjs";
26
- import { f as spawnEntry, s as startDevServer } from "./start-F9gv5dcC.mjs";
19
+ import { A as UPLOAD_TIMEOUT_MS, B as resolveRemote, F as isEasAuthFailureText, I as loadProjectProvider, M as checkEasAuth, N as easAuthNote, P as exitAfterFlush, V as uploadRemote, a as ensureMetroReachable, c as remoteAndroidDeps, j as cacheLevel, k as RESOLVE_TIMEOUT_MS, n as binOnPath, o as ensureRemoteBootOwned, u as resolveRemoteContext, w as ownedSessionName, z as resolveEasCliBin } from "./device-remote-powUHdbK.mjs";
20
+ import { _ as launchAndroidReleaseApp, d as deviceShellArg, f as installAndroidApp, g as launchAndroidApp, o as androidAppProcess, p as installConflictKind, r as DEFAULT_METRO_PORT, s as androidDevClientUrl, t as ADB_INSTALL_TIMEOUT_MS } from "./app-install-Cfmqr3TQ.mjs";
21
+ import { a as VERIFY_TIMEOUT_MS, d as verifyLaunch, i as RELEASE_VERIFY_WAIT_MS, l as unverifiedLaunchLines, n as LAUNCH_FATAL, r as LAUNCH_UNVERIFIED, t as LAUNCH_BUNDLING, u as verifyAndroidReleaseLaunch } from "./launch-verify-BhgkYAws.mjs";
22
+ import { d as isEasBuildFailure, f as resolveEasDevelopmentBuild, o as unknownAndroidSystemImageRefusal, r as checkDeviceCapacity } from "./simslim-DZUxzsjq.mjs";
23
+ import { a as lostLine, c as releaseLeaseOnSignal, i as leaseExpiryText, l as runLease, n as DEBUG_VERIFY_STEP_MS, o as lostRefusal, r as acquireRunLease, s as parseDeviceWait, t as selectFromPool, u as waitFlagConflict } from "./device-pool-BBWLAr55.mjs";
24
+ import { _ as isPhysicalDeviceRequest, b as warmMetro, c as runPrebuild, d as ensureOwnedDevice, f as AvdBootError, g as ensureWorkspaceStorageSafely, h as ensureDevServer, i as detectEntryFile, l as staleNativeDirRefusal, n as pickDevClientScheme, o as planPrebuild, p as AvdRecoveryError, s as recordPrebuild, t as devClientScheme, u as ensureBooted, v as launchOutcomeRecord } from "./dev-client-DExzPiOa.mjs";
25
+ import { t as budgetGate } from "./budget-nDCEwtJv.mjs";
26
+ import { f as spawnEntry, s as startDevServer } from "./start-RbmFPeZ7.mjs";
27
27
  import { a as statsProjectKey, i as recordRunStats, n as readRunEstimates, t as createRunRecorder } from "./stats-BAgJaLA4.mjs";
28
28
  import { a as buildAndroid, c as CCACHE_NOT_RUN, f as resolveCcache, l as CCACHE_UNAVAILABLE, n as resolveAndroidCas, o as productFlavorRefusal, p as formatDiagnostic, r as resolveAndroidCompilerCache, s as readProductFlavors, u as ccacheActivityLine } from "./android-cas-CITmIeWY.mjs";
29
29
  import { d as startBuildHeartbeat, f as tailLines, n as HEARTBEAT_INTERVAL_MS } from "./xcode-B2tBkf0m.mjs";
30
- import { n as nativeRunCommand, t as launchSlotScope } from "./slot-launch-C5cg0fmk.mjs";
30
+ import { n as nativeRunCommand, t as launchSlotScope } from "./slot-launch-Dk4oTREM.mjs";
31
31
  import { a as printNativeCrashReport, r as captureNativeCrashes, t as errorDiagnostics } from "./error-diagnostics-xxWKNO3-.mjs";
32
32
  import { constants, copyFileSync, existsSync, mkdirSync, openSync, readFileSync, readdirSync, renameSync, rmSync } from "node:fs";
33
33
  import { InvalidArgumentError } from "commander";
@@ -1,5 +1,5 @@
1
1
  import { t as getExecutor } from "./exec-DK8KaVHK.mjs";
2
- import { T as uninstallIosApp, c as iosSimulatorFailureAdvice, p as listUserApps } from "./ios-B2Fpqvlb.mjs";
2
+ import { T as uninstallIosApp, c as iosSimulatorFailureAdvice, p as listUserApps } from "./ios-COGcGEcN.mjs";
3
3
  import { closeSync, lstatSync, openSync, readSync, readdirSync } from "node:fs";
4
4
  import { isAbsolute, join } from "node:path";
5
5
  import { createHash } from "node:crypto";
@@ -6,12 +6,12 @@ import { n as workspaceProcessLockError, t as withWorkspaceProcessLock } from ".
6
6
  import { l as phaseLine } from "./command-output-D5z2_bcF.mjs";
7
7
  import { u as workspaceActivity } from "./build-progress-BXx-ZBe4.mjs";
8
8
  import { N as ownedAvdSerialResolver } from "./android-787HhP5w.mjs";
9
- import { t as resolveSupervisorTarget } from "./ownership-DZjdx8Gq.mjs";
10
- import { l as listAllIosSims } from "./ios-B2Fpqvlb.mjs";
11
- import { i as idleShutdownCandidates, n as collectOwnedDeviceActivity, o as shutDownIdleDevices, s as workspaceBuildInProgress, t as collectIdleDevices } from "./idle-DpRLp5lj.mjs";
12
- import { i as canonicalPath, n as withIdleWorkspace } from "./in-use-CjUluqIX.mjs";
9
+ import { t as resolveSupervisorTarget } from "./ownership-BfPNRf3-.mjs";
10
+ import { l as listAllIosSims } from "./ios-COGcGEcN.mjs";
11
+ import { i as idleShutdownCandidates, n as collectOwnedDeviceActivity, o as shutDownIdleDevices, s as workspaceBuildInProgress, t as collectIdleDevices } from "./idle--jn7pBNe.mjs";
12
+ import { i as canonicalPath, n as withIdleWorkspace } from "./in-use-CNIWU-r-.mjs";
13
13
  import { n as capacity, o as environmentState, s as formatSpace } from "./status-Dr4fRkym.mjs";
14
- import { A as discoverCaches, D as planCacheEmptying, a as collectWorkspaceOutputs, k as trimCaches, r as clearWorkspaceOutputs, y as deviceSweepIsScoped } from "./workspaces-BTUyFfkv.mjs";
14
+ import { A as discoverCaches, D as planCacheEmptying, a as collectWorkspaceOutputs, k as trimCaches, r as clearWorkspaceOutputs, y as deviceSweepIsScoped } from "./workspaces-wrH6dXfu.mjs";
15
15
  import { existsSync, statSync, statfsSync } from "node:fs";
16
16
  import { settingDefinition, settingValueError } from "@stim-cli/core/state";
17
17
  import { dirname, join, sep } from "node:path";
package/dist/cli.mjs CHANGED
@@ -4,20 +4,20 @@ import { readFileSync } from "node:fs";
4
4
  import { Command } from "commander";
5
5
  //#region bin/cli.ts
6
6
  const commands = /* @__PURE__ */ new Map([
7
- ["doctor", () => import("./doctor-B-inAJmt.mjs")],
8
- ["worktree", () => import("./worktree-4aZg2NnI.mjs")],
9
- ["start", () => import("./start-VoFsPSes.mjs")],
7
+ ["doctor", () => import("./doctor-CmqK1LcQ.mjs")],
8
+ ["worktree", () => import("./worktree-DEG2o9F8.mjs")],
9
+ ["start", () => import("./start-qWapeB4W.mjs")],
10
10
  ["ports", () => import("./ports-CLSSFOuz.mjs")],
11
- ["stop", () => import("./stop-ZvOeTmKb.mjs")],
12
- ["ios", () => import("./ios-Dd-hYJBh.mjs")],
13
- ["android", () => import("./android-DBkeHwpm.mjs")],
14
- ["reload", () => import("./reload-DoETJ3rl.mjs")],
15
- ["device", () => import("./device-DhTZe7L4.mjs")],
11
+ ["stop", () => import("./stop-DI4BG4Os.mjs")],
12
+ ["ios", () => import("./ios-CbdqTqOc.mjs")],
13
+ ["android", () => import("./android-Bu4mbDzc.mjs")],
14
+ ["reload", () => import("./reload-CymyF6Kk.mjs")],
15
+ ["device", () => import("./device-Czh5kO8A.mjs")],
16
16
  ["logs", () => import("./logs-MARIy6m9.mjs")],
17
17
  ["settings", () => import("./settings-EWYNwe72.mjs")],
18
- ["status", () => import("./status-DLCD-o3s.mjs")],
18
+ ["status", () => import("./status-Zp8kvexe.mjs")],
19
19
  ["stats", () => import("./stats-DBYJ5bxL.mjs")],
20
- ["gc", () => import("./gc-ChPFZMRC.mjs")],
20
+ ["gc", () => import("./gc-zCDpmdHU.mjs")],
21
21
  ["guide", () => import("./guide-DwmaD_Wa.mjs")]
22
22
  ]);
23
23
  const pkg = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf-8"));
@@ -9,12 +9,12 @@ import { n as stripAnsi, r as waitForChild, t as createLineReader } from "./proc
9
9
  import { l as phaseLine } from "./command-output-D5z2_bcF.mjs";
10
10
  import { E as listInstalledSystemImages, I as pickDefaultSystemImage, M as ownedAvdName, P as ownedAvdSystemImage, T as listAvds, W as waitForBoot, d as avdPoolConfiguration, h as createOwnedAvd, j as ownedAvdMatchesConfiguration, k as nextConsolePort, l as assertOwnedAvdStopped, m as configureNewOwnedAvd, p as bootAndroidEmulator, w as listAdbDevices, x as getAvdNameForSerial, z as resolveOwnedAvdSerial } from "./android-787HhP5w.mjs";
11
11
  import { l as androidDataPartitionSizeGbSetting, o as androidAvdConfigSetting, v as iosSimSlimProfileSetting } from "./settings-DOugPlPz.mjs";
12
- import { _ as dropParked, b as readParked, d as teardownOwnedAvd, g as adoptParked, m as teardownParkedIosSim, p as teardownParkedAvd, v as isLegacyDeletionClaim, x as selectParked, y as parkedMaxSetting } from "./ownership-DZjdx8Gq.mjs";
13
- import { E as configuredIosSimulatorViewer, O as hostMemoryPressureAdvice, S as resolveOwnedIosSim, b as resetIosPrivacy, c as iosSimulatorFailureAdvice, d as listIosDeviceTypes, g as parseRuntimeVersion, k as readHostMemoryPressure, l as listAllIosSims, m as ownedSimName, n as bootIosSim, r as createOwnedIosSim, v as renameIosSim, x as resolveIosCreation, y as resetIosKeychain } from "./ios-B2Fpqvlb.mjs";
12
+ import { _ as dropParked, b as readParked, d as teardownOwnedAvd, g as adoptParked, m as teardownParkedIosSim, p as teardownParkedAvd, v as isLegacyDeletionClaim, x as selectParked, y as parkedMaxSetting } from "./ownership-BfPNRf3-.mjs";
13
+ import { E as configuredIosSimulatorViewer, O as hostMemoryPressureAdvice, S as resolveOwnedIosSim, b as resetIosPrivacy, c as iosSimulatorFailureAdvice, d as listIosDeviceTypes, g as parseRuntimeVersion, k as readHostMemoryPressure, l as listAllIosSims, m as ownedSimName, n as bootIosSim, r as createOwnedIosSim, v as renameIosSim, x as resolveIosCreation, y as resetIosKeychain } from "./ios-COGcGEcN.mjs";
14
14
  import { i as expoBinRefusal, r as expoBinPath, t as cleanLine } from "./server-expo-BvOCeakp.mjs";
15
- import { r as LAUNCH_UNVERIFIED, t as LAUNCH_BUNDLING } from "./launch-verify-CQS_Kg-C.mjs";
16
- import { a as liveOwnedDeviceCount, i as deviceTypeMismatch, t as reconcileSimSlim } from "./simslim-Ca3487H6.mjs";
17
- import { s as startDevServer } from "./start-F9gv5dcC.mjs";
15
+ import { r as LAUNCH_UNVERIFIED, t as LAUNCH_BUNDLING } from "./launch-verify-BhgkYAws.mjs";
16
+ import { a as liveOwnedDeviceCount, i as deviceTypeMismatch, t as reconcileSimSlim } from "./simslim-DZUxzsjq.mjs";
17
+ import { s as startDevServer } from "./start-RbmFPeZ7.mjs";
18
18
  import { d as startBuildHeartbeat, f as tailLines, n as HEARTBEAT_INTERVAL_MS } from "./xcode-B2tBkf0m.mjs";
19
19
  import { existsSync, mkdirSync, readFileSync, readdirSync } from "node:fs";
20
20
  import { isJsonObject, readIdleStop, readJsonObject } from "@stim-cli/core/state";
@@ -3,8 +3,8 @@ import { o as findProjectRoot, t as NO_PROJECT_REFUSAL } from "./project-BXZzOAB
3
3
  import { r as clockTime } from "./command-output-D5z2_bcF.mjs";
4
4
  import { n as fileLeaseIo, o as parseLeaseDuration, p as takeLease, u as releaseWorkspaceLeases } from "./device-lease-CbEaIk7b.mjs";
5
5
  import { B as resolvePhysicalDevice, F as physicalDeviceModel, L as probeEmulatorSerial, O as memoizeEmulatorProbe, a as androidPoolNoCandidatesRefusal, i as androidPoolCandidates, w as listAdbDevices } from "./android-787HhP5w.mjs";
6
- import { d as waitForDevice, s as parseDeviceWait, t as selectFromPool } from "./device-pool-Di8Q-9Ro.mjs";
7
- import { a as iosPoolCandidates, c as listIosDevices, o as iosPoolNoCandidatesRefusal, s as isWirelessIosDevice, u as resolveIosPhysicalDevice } from "./ios-device-CtRdEVjx.mjs";
6
+ import { d as waitForDevice, s as parseDeviceWait, t as selectFromPool } from "./device-pool-BBWLAr55.mjs";
7
+ import { a as iosPoolCandidates, c as listIosDevices, o as iosPoolNoCandidatesRefusal, s as isWirelessIosDevice, u as resolveIosPhysicalDevice } from "./ios-device-DNjPXBnb.mjs";
8
8
  import chalk from "chalk";
9
9
  //#region src/commands/device.ts
10
10
  const DEFAULT_FOR = "5m";
@@ -1,7 +1,7 @@
1
1
  import { R as deviceSlotKey } from "./config-BEq0Qw_a.mjs";
2
2
  import { a as formatElapsed, r as clockTime } from "./command-output-D5z2_bcF.mjs";
3
3
  import { a as parseLease, c as raiseLease, f as selectPoolDevice, l as releaseRunLease, n as fileLeaseIo, p as takeLease, r as leaseIsExpired, t as deviceLeasePath } from "./device-lease-CbEaIk7b.mjs";
4
- import { a as VERIFY_TIMEOUT_MS, p as APP_READINESS_TIMEOUT_MS } from "./launch-verify-CQS_Kg-C.mjs";
4
+ import { a as VERIFY_TIMEOUT_MS, p as APP_READINESS_TIMEOUT_MS } from "./launch-verify-BhgkYAws.mjs";
5
5
  //#region src/engine/device-lease-run.ts
6
6
  const LEASE_STEP_FLOOR_MS = 6e4;
7
7
  const DEBUG_VERIFY_STEP_MS = VERIFY_TIMEOUT_MS + APP_READINESS_TIMEOUT_MS;
@@ -7,11 +7,11 @@ import { a as clearRemoteSession, l as readRemoteSession, s as readMetroTunnel }
7
7
  import { t as withWorkspaceProcessLock } from "./workspace-process-lock-BXA96myD.mjs";
8
8
  import { n as stripAnsi } from "./process-output-Fpl8PYi8.mjs";
9
9
  import { B as planMetroReach } from "./settings-DOugPlPz.mjs";
10
- import { u as probePublicHttp } from "./ownership-DZjdx8Gq.mjs";
11
- import { C as sanitizeDeviceLabel } from "./ios-B2Fpqvlb.mjs";
10
+ import { u as probePublicHttp } from "./ownership-BfPNRf3-.mjs";
11
+ import { C as sanitizeDeviceLabel } from "./ios-COGcGEcN.mjs";
12
12
  import { n as expoBinFromPackage, r as expoBinPath, s as findBinUpward } from "./server-expo-BvOCeakp.mjs";
13
- import { a as LAUNCH_ERROR, i as INSTALL_ERROR, l as devClientDeepLink } from "./app-install-CrJ6t_bv.mjs";
14
- import { c as readMetroRecords, o as isBundleProof } from "./launch-verify-CQS_Kg-C.mjs";
13
+ import { a as LAUNCH_ERROR, i as INSTALL_ERROR, l as devClientDeepLink } from "./app-install-Cfmqr3TQ.mjs";
14
+ import { c as readMetroRecords, o as isBundleProof } from "./launch-verify-BhgkYAws.mjs";
15
15
  import { t as compareStimVersions } from "./stim-installations-CINXy_su.mjs";
16
16
  import { createRequire } from "node:module";
17
17
  import { existsSync, mkdirSync, readFileSync, realpathSync, renameSync, rmSync, writeFileSync } from "node:fs";
@@ -7,13 +7,13 @@ import { d as quotedPath, f as refuseNoProject, l as phaseLine, u as plural } fr
7
7
  import { T as fingerprintProject, h as listBuildLocks, x as diffFingerprintSources } from "./device-lease-CbEaIk7b.mjs";
8
8
  import { S as hostSystemImageArch, w as listAdbDevices } from "./android-787HhP5w.mjs";
9
9
  import { F as settingsLayers, H as compilerCacheFallbackMessage, L as unknownSettingKeys, N as settingOrigin, O as remoteAndroidSetting, P as settingShapeErrors, T as projectOptimizations, W as resolveOptimizations, a as SETTING_SHAPE_REMEDY, i as SETTINGS_WITH_RESOLVE_TIME_FALLBACK, j as resolveSettings, k as remoteIosSetting, n as PATH_SETTINGS, v as iosSimSlimProfileSetting, y as mergeSettingsLayers } from "./settings-DOugPlPz.mjs";
10
- import { h as POOL_SETTING_REMEDY, y as parkedMaxSetting } from "./ownership-DZjdx8Gq.mjs";
11
- import { O as hostMemoryPressureAdvice, k as readHostMemoryPressure, l as listAllIosSims } from "./ios-B2Fpqvlb.mjs";
12
- import { o as listBuildSlots } from "./in-use-CjUluqIX.mjs";
13
- import { L as ownerFromConfig, M as checkEasAuth$1, R as providerFromConfig, _ as easCliSupport, g as MIN_EAS_CLI_SIMULATOR_VERSION, s as readInstalledEasCliVersion, v as easCliUpgradeRemedy, z as resolveEasCliBin } from "./device-remote-Dy1jGj3U.mjs";
10
+ import { h as POOL_SETTING_REMEDY, y as parkedMaxSetting } from "./ownership-BfPNRf3-.mjs";
11
+ import { O as hostMemoryPressureAdvice, k as readHostMemoryPressure, l as listAllIosSims } from "./ios-COGcGEcN.mjs";
12
+ import { o as listBuildSlots } from "./in-use-CNIWU-r-.mjs";
13
+ import { L as ownerFromConfig, M as checkEasAuth$1, R as providerFromConfig, _ as easCliSupport, g as MIN_EAS_CLI_SIMULATOR_VERSION, s as readInstalledEasCliVersion, v as easCliUpgradeRemedy, z as resolveEasCliBin } from "./device-remote-powUHdbK.mjs";
14
14
  import { n as inspectStimVersions, t as compareStimVersions } from "./stim-installations-CINXy_su.mjs";
15
- import { a as liveOwnedDeviceCount, l as MIN_EAS_CLI_BUILD_DOWNLOAD_VERSION, n as simslimIsOnPath } from "./simslim-Ca3487H6.mjs";
16
- import { n as budgetLine, r as inspectBudget } from "./budget-BP4jZZL4.mjs";
15
+ import { a as liveOwnedDeviceCount, l as MIN_EAS_CLI_BUILD_DOWNLOAD_VERSION, n as simslimIsOnPath } from "./simslim-DZUxzsjq.mjs";
16
+ import { n as budgetLine, r as inspectBudget } from "./budget-nDCEwtJv.mjs";
17
17
  import { d as projectCmakeLauncher, g as androidPathRoomRemedy, h as androidPathRoomMessage, i as apkOutputsDir, m as androidPathRoom, r as resolveAndroidCompilerCache, t as readAndroidCasToolchain } from "./android-cas-CITmIeWY.mjs";
18
18
  import { h as podInstallCommand, i as ccacheEnabled, o as detectXcodeMajor } from "./xcode-B2tBkf0m.mjs";
19
19
  import { n as recordDoctorRun } from "./guide-status-CWvti2Lg.mjs";
@@ -6,13 +6,13 @@ import { a as detectIsExpo, o as findProjectRoot } from "./project-BXZzOABt.mjs"
6
6
  import { h as shortUdid, o as formatLongDuration, u as plural } from "./command-output-D5z2_bcF.mjs";
7
7
  import { d as removeExpiredLease, h as listBuildLocks } from "./device-lease-CbEaIk7b.mjs";
8
8
  import { A as ownedAvdDirectory, C as isStimOwnedAvdName, D as listOrphanedAvdDirectories, K as isStimOwnedSim, T as listAvds } from "./android-787HhP5w.mjs";
9
- import { h as POOL_SETTING_REMEDY, y as parkedMaxSetting } from "./ownership-DZjdx8Gq.mjs";
10
- import { l as listAllIosSims } from "./ios-B2Fpqvlb.mjs";
11
- import { a as parseIdleDuration, o as shutDownIdleDevices, r as idleDeviceLines, t as collectIdleDevices } from "./idle-DpRLp5lj.mjs";
12
- import { i as canonicalPath, o as listBuildSlots, r as workspaceInUse } from "./in-use-CjUluqIX.mjs";
13
- import { C as listOwnedSessionsArgs, D as verifyStoppedSession, E as stopSessionArgs, S as isDefinitiveMissingSessionError, T as parseSessionListPage, b as getSessionArgs, d as withRemoteSessionLock, f as withEasProjectLock, h as removeEasSessionClaim, m as readEasSessionLedger, p as easMachineStateRoot, x as inspectSessionForTeardown, y as findOrphanedOwnedSessions, z as resolveEasCliBin } from "./device-remote-Dy1jGj3U.mjs";
14
- import { A as discoverCaches, C as unverifiedDeviceCommand, D as planCacheEmptying, E as includesWorkspaceOutputs, O as selectCaches, S as findStaleProjectDevices, T as emptyCaches, _ as describeParkedSims, a as collectWorkspaceOutputs, b as findOrphanedDevices, c as listWorkspaceDirs, d as collectDeviceLeases, f as collectParkedAvds, g as deleteProjectDevices, h as deleteParkedSims, i as collectOrphanedWorkspaces, j as sizeCaches, k as trimCaches, l as sizeText, m as deleteParkedAvds, n as WORKSPACE_OUTPUT_DIRS, o as deleteOrphanedWorkspaces, p as collectParkedSims, r as clearWorkspaceOutputs, s as isInsideWorkspaces, t as REBUILD_COST, u as DEVICE_LIST_TIMEOUT_MS, v as describeUnverifiableDevices, w as withAndroidAvdSizes, x as findStaleDeviceRecords, y as deviceSweepIsScoped } from "./workspaces-BTUyFfkv.mjs";
15
- import { a as reclaimKeys, d as removeWorktreeTarget, m as reclaimProject, n as excludePodChurn, p as describeDereferenced, r as matchWorktreeEntry } from "./worktree-BMS7GeqB.mjs";
9
+ import { h as POOL_SETTING_REMEDY, y as parkedMaxSetting } from "./ownership-BfPNRf3-.mjs";
10
+ import { l as listAllIosSims } from "./ios-COGcGEcN.mjs";
11
+ import { a as parseIdleDuration, o as shutDownIdleDevices, r as idleDeviceLines, t as collectIdleDevices } from "./idle--jn7pBNe.mjs";
12
+ import { i as canonicalPath, o as listBuildSlots, r as workspaceInUse } from "./in-use-CNIWU-r-.mjs";
13
+ import { C as listOwnedSessionsArgs, D as verifyStoppedSession, E as stopSessionArgs, S as isDefinitiveMissingSessionError, T as parseSessionListPage, b as getSessionArgs, d as withRemoteSessionLock, f as withEasProjectLock, h as removeEasSessionClaim, m as readEasSessionLedger, p as easMachineStateRoot, x as inspectSessionForTeardown, y as findOrphanedOwnedSessions, z as resolveEasCliBin } from "./device-remote-powUHdbK.mjs";
14
+ import { A as discoverCaches, C as unverifiedDeviceCommand, D as planCacheEmptying, E as includesWorkspaceOutputs, O as selectCaches, S as findStaleProjectDevices, T as emptyCaches, _ as describeParkedSims, a as collectWorkspaceOutputs, b as findOrphanedDevices, c as listWorkspaceDirs, d as collectDeviceLeases, f as collectParkedAvds, g as deleteProjectDevices, h as deleteParkedSims, i as collectOrphanedWorkspaces, j as sizeCaches, k as trimCaches, l as sizeText, m as deleteParkedAvds, n as WORKSPACE_OUTPUT_DIRS, o as deleteOrphanedWorkspaces, p as collectParkedSims, r as clearWorkspaceOutputs, s as isInsideWorkspaces, t as REBUILD_COST, u as DEVICE_LIST_TIMEOUT_MS, v as describeUnverifiableDevices, w as withAndroidAvdSizes, x as findStaleDeviceRecords, y as deviceSweepIsScoped } from "./workspaces-wrH6dXfu.mjs";
15
+ import { a as reclaimKeys, d as removeWorktreeTarget, m as reclaimProject, n as excludePodChurn, p as describeDereferenced, r as matchWorktreeEntry } from "./worktree-Bd4dRvx7.mjs";
16
16
  import { statSync } from "node:fs";
17
17
  import { InvalidArgumentError } from "commander";
18
18
  import { existsSync as existsSync$1, readFileSync as readFileSync$1, readdirSync as readdirSync$1, statSync as statSync$1 } from "fs";
@@ -3,7 +3,7 @@ import { m as readWorkspaceState } from "./metro-BWLOJ_Wr.mjs";
3
3
  import { o as formatLongDuration } from "./command-output-D5z2_bcF.mjs";
4
4
  import { c as createActivityReader, l as idleForMs, o as parseActiveBuild, r as activeBuildState, t as ACTIVE_BUILD_KEY } from "./build-progress-BXx-ZBe4.mjs";
5
5
  import { N as ownedAvdSerialResolver } from "./android-787HhP5w.mjs";
6
- import { d as teardownOwnedAvd, f as teardownOwnedIosSim } from "./ownership-DZjdx8Gq.mjs";
6
+ import { d as teardownOwnedAvd, f as teardownOwnedIosSim } from "./ownership-BfPNRf3-.mjs";
7
7
  import chalk from "chalk";
8
8
  //#region src/commands/gc/idle.ts
9
9
  function findOwnedDeviceActivity({ config, sims, androidSerial, readActivity, deadProjects = [] }) {
@@ -4,7 +4,7 @@ import { r as stopDeclaringSpawnsOn, t as declareSpawnsOn } from "./spawn-claims
4
4
  import { n as workspaceProcessLockError, r as workspaceProcessLockPath, t as withWorkspaceProcessLock } from "./workspace-process-lock-BXA96myD.mjs";
5
5
  import { a as formatElapsed } from "./command-output-D5z2_bcF.mjs";
6
6
  import { h as listBuildLocks } from "./device-lease-CbEaIk7b.mjs";
7
- import { n as managedLockHolders, t as resolveSupervisorTarget } from "./ownership-DZjdx8Gq.mjs";
7
+ import { n as managedLockHolders, t as resolveSupervisorTarget } from "./ownership-BfPNRf3-.mjs";
8
8
  import { lstatSync, readdirSync, rmSync, rmdirSync, statSync, unlinkSync } from "node:fs";
9
9
  import { realpathSync as realpathSync$1 } from "fs";
10
10
  import { resolve } from "path";
@@ -300,16 +300,24 @@ function rankIphone(name) {
300
300
  function iosRuntimeMatches(runtime, requested) {
301
301
  return runtime.version === requested || runtime.name === requested;
302
302
  }
303
+ function bestIphone(candidates) {
304
+ return candidates.toSorted((a, b) => {
305
+ const ra = rankIphone(a.name), rb = rankIphone(b.name);
306
+ return rb.gen - ra.gen || rb.variant - ra.variant || b.name.localeCompare(a.name, void 0, { numeric: true });
307
+ })[0];
308
+ }
303
309
  function pickDefaultIosCreation(_deviceTypes, runtimes, { deviceType, runtime } = {}) {
304
310
  const rts = runtimes.toSorted((a, b) => String(b.version).localeCompare(String(a.version), void 0, { numeric: true }));
305
311
  const wantedRts = runtime ? rts.filter((r) => iosRuntimeMatches(r, runtime)) : rts;
312
+ if (!deviceType) for (const rt of wantedRts) {
313
+ const best = bestIphone((rt.supportedDeviceTypes || []).filter((d) => /^iPhone/i.test(d.name) && rankIphone(d.name).gen >= 0));
314
+ if (best !== void 0) return {
315
+ deviceTypeId: best.identifier,
316
+ runtimeId: rt.identifier
317
+ };
318
+ }
306
319
  for (const rt of wantedRts) {
307
- const supported = (rt.supportedDeviceTypes || []).filter((d) => deviceType ? d.name === deviceType : /^iPhone/i.test(d.name));
308
- if (supported.length === 0) continue;
309
- const best = supported.toSorted((a, b) => {
310
- const ra = rankIphone(a.name), rb = rankIphone(b.name);
311
- return rb.gen - ra.gen || rb.variant - ra.variant || b.name.localeCompare(a.name, void 0, { numeric: true });
312
- })[0];
320
+ const best = bestIphone((rt.supportedDeviceTypes || []).filter((d) => deviceType ? d.name === deviceType : /^iPhone/i.test(d.name)));
313
321
  if (best === void 0) continue;
314
322
  return {
315
323
  deviceTypeId: best.identifier,
@@ -10,23 +10,23 @@ import { _ as stepTimer, c as launchErrorReport, g as stepClock, h as shortUdid,
10
10
  import { A as resolveBuild, C as fingerprintDiffRecord, D as providerDownloadPath, E as prepareProviderDownloadDir, N as untrackedMissLine, O as providerUploadOutcome, P as untrackedNativeFiles, S as filesystemBuildCapability, T as fingerprintProject, _ as waitForBuild, b as describeFingerprintMiss, g as releaseBuildLock, j as storeBuild, k as refingerprintAfterMutation, m as acquireBuildLock, v as waitForSharedBuild, w as fingerprintDiffSuffix, y as buildCacheKey } from "./device-lease-CbEaIk7b.mjs";
11
11
  import { n as NO_BUILD_PROGRESS, s as startBuildProgress } from "./build-progress-BXx-ZBe4.mjs";
12
12
  import { A as resolveCacheProviderConfig, E as publicUrlSetting, I as tunnelModeSetting, L as unknownSettingKeys, P as settingShapeErrors, S as metroWarmupUrlSetting, U as optimizationBuildProfile, V as artifactCachePolicy, W as resolveOptimizations, _ as iosSigningIdentitySha1SettingError, a as SETTING_SHAPE_REMEDY, d as cacheProviderSettingError, f as iosLanHostSetting, g as iosSigningIdentitySha1Setting, h as iosSigningIdentitySettingError, j as resolveSettings, k as remoteIosSetting, m as iosSigningIdentitySetting, p as iosLanHostSettingError, r as REMOTE_DEVICE_BACKENDS, z as detectProviders } from "./settings-DOugPlPz.mjs";
13
- import { h as POOL_SETTING_REMEDY, y as parkedMaxSetting } from "./ownership-DZjdx8Gq.mjs";
14
- import { D as parseIosSimulatorApp, f as listIosRuntimes } from "./ios-B2Fpqvlb.mjs";
15
- import { a as acquireBuildSlot, s as releaseBuildSlot } from "./in-use-CjUluqIX.mjs";
13
+ import { h as POOL_SETTING_REMEDY, y as parkedMaxSetting } from "./ownership-BfPNRf3-.mjs";
14
+ import { D as parseIosSimulatorApp, f as listIosRuntimes } from "./ios-COGcGEcN.mjs";
15
+ import { a as acquireBuildSlot, s as releaseBuildSlot } from "./in-use-CNIWU-r-.mjs";
16
16
  import { n as verifyCollectorOwnership } from "./ownership-D2xbLVoz.mjs";
17
- import { A as UPLOAD_TIMEOUT_MS, B as resolveRemote, F as isEasAuthFailureText, I as loadProjectProvider, M as checkEasAuth, N as easAuthNote, O as gateMetroOrigin, P as exitAfterFlush, V as uploadRemote, a as ensureMetroReachable, j as cacheLevel, k as RESOLVE_TIMEOUT_MS, l as remoteIosDeps, n as binOnPath, o as ensureRemoteBootOwned, r as bundleEntryPoint, u as resolveRemoteContext, w as ownedSessionName, z as resolveEasCliBin } from "./device-remote-Dy1jGj3U.mjs";
18
- import { c as clearOtherUserApps, h as iosAppProcess, m as installIosApp, r as DEFAULT_METRO_PORT, u as devClientUrl, v as launchIosApp } from "./app-install-CrJ6t_bv.mjs";
19
- import { c as readMetroRecords, d as verifyLaunch, f as verifyReleaseLaunch, i as RELEASE_VERIFY_WAIT_MS, l as unverifiedLaunchLines, n as LAUNCH_FATAL, o as isBundleProof, r as LAUNCH_UNVERIFIED, s as readCollectorRecords, t as LAUNCH_BUNDLING } from "./launch-verify-CQS_Kg-C.mjs";
20
- import { c as unknownIosRuntimeRefusal, d as isEasBuildFailure, f as resolveEasDevelopmentBuild, r as checkDeviceCapacity, s as unknownIosDeviceTypeRefusal, u as easDeviceBuildRemedy } from "./simslim-Ca3487H6.mjs";
21
- import { a as lostLine, c as releaseLeaseOnSignal, i as leaseExpiryText, l as runLease, n as DEBUG_VERIFY_STEP_MS, o as lostRefusal, r as acquireRunLease, s as parseDeviceWait, t as selectFromPool, u as waitFlagConflict } from "./device-pool-Di8Q-9Ro.mjs";
22
- import { _ as isPhysicalDeviceRequest, a as swapJsBundle, b as warmMetro, c as runPrebuild, d as ensureOwnedDevice, g as ensureWorkspaceStorageSafely, h as ensureDevServer, l as staleNativeDirRefusal, m as clearIosAdoptionPending, n as pickDevClientScheme, o as planPrebuild, r as schemesFromInfoPlist, s as recordPrebuild, t as devClientScheme, u as ensureBooted, v as launchOutcomeRecord, y as sleep } from "./dev-client-92U593KT.mjs";
23
- import { t as budgetGate } from "./budget-BP4jZZL4.mjs";
24
- import { f as spawnEntry, s as startDevServer } from "./start-F9gv5dcC.mjs";
17
+ import { A as UPLOAD_TIMEOUT_MS, B as resolveRemote, F as isEasAuthFailureText, I as loadProjectProvider, M as checkEasAuth, N as easAuthNote, O as gateMetroOrigin, P as exitAfterFlush, V as uploadRemote, a as ensureMetroReachable, j as cacheLevel, k as RESOLVE_TIMEOUT_MS, l as remoteIosDeps, n as binOnPath, o as ensureRemoteBootOwned, r as bundleEntryPoint, u as resolveRemoteContext, w as ownedSessionName, z as resolveEasCliBin } from "./device-remote-powUHdbK.mjs";
18
+ import { c as clearOtherUserApps, h as iosAppProcess, m as installIosApp, r as DEFAULT_METRO_PORT, u as devClientUrl, v as launchIosApp } from "./app-install-Cfmqr3TQ.mjs";
19
+ import { c as readMetroRecords, d as verifyLaunch, f as verifyReleaseLaunch, i as RELEASE_VERIFY_WAIT_MS, l as unverifiedLaunchLines, n as LAUNCH_FATAL, o as isBundleProof, r as LAUNCH_UNVERIFIED, s as readCollectorRecords, t as LAUNCH_BUNDLING } from "./launch-verify-BhgkYAws.mjs";
20
+ import { c as unknownIosRuntimeRefusal, d as isEasBuildFailure, f as resolveEasDevelopmentBuild, r as checkDeviceCapacity, s as unknownIosDeviceTypeRefusal, u as easDeviceBuildRemedy } from "./simslim-DZUxzsjq.mjs";
21
+ import { a as lostLine, c as releaseLeaseOnSignal, i as leaseExpiryText, l as runLease, n as DEBUG_VERIFY_STEP_MS, o as lostRefusal, r as acquireRunLease, s as parseDeviceWait, t as selectFromPool, u as waitFlagConflict } from "./device-pool-BBWLAr55.mjs";
22
+ import { _ as isPhysicalDeviceRequest, a as swapJsBundle, b as warmMetro, c as runPrebuild, d as ensureOwnedDevice, g as ensureWorkspaceStorageSafely, h as ensureDevServer, l as staleNativeDirRefusal, m as clearIosAdoptionPending, n as pickDevClientScheme, o as planPrebuild, r as schemesFromInfoPlist, s as recordPrebuild, t as devClientScheme, u as ensureBooted, v as launchOutcomeRecord, y as sleep } from "./dev-client-DExzPiOa.mjs";
23
+ import { t as budgetGate } from "./budget-nDCEwtJv.mjs";
24
+ import { f as spawnEntry, s as startDevServer } from "./start-RbmFPeZ7.mjs";
25
25
  import { a as statsProjectKey, i as recordRunStats, n as readRunEstimates, t as createRunRecorder } from "./stats-BAgJaLA4.mjs";
26
26
  import { a as compilationCacheActivityLine, c as readBundleExecutable, l as readBundleId, p as describeDiagnostic, r as buildIos, s as discoverXcodeProject, t as COMPILATION_CACHE_NOT_RUN, u as resolveScheme } from "./xcode-B2tBkf0m.mjs";
27
- import { n as nativeRunCommand, t as launchSlotScope } from "./slot-launch-C5cg0fmk.mjs";
27
+ import { n as nativeRunCommand, t as launchSlotScope } from "./slot-launch-Dk4oTREM.mjs";
28
28
  import { a as printNativeCrashReport, n as IOS_CRASH_REPORT_RETRY, o as simulatorConsolePaths, r as captureNativeCrashes, t as errorDiagnostics } from "./error-diagnostics-xxWKNO3-.mjs";
29
- import { a as iosPoolCandidates, c as listIosDevices, d as verifyIosDeviceReleaseLaunch, i as iosDeviceProcess, l as localNetworkPending, n as installIosDeviceApp, o as iosPoolNoCandidatesRefusal, r as iosDeviceBounds, s as isWirelessIosDevice, t as awaitIosDeviceLaunch, u as resolveIosPhysicalDevice } from "./ios-device-CtRdEVjx.mjs";
29
+ import { a as iosPoolCandidates, c as listIosDevices, d as verifyIosDeviceReleaseLaunch, i as iosDeviceProcess, l as localNetworkPending, n as installIosDeviceApp, o as iosPoolNoCandidatesRefusal, r as iosDeviceBounds, s as isWirelessIosDevice, t as awaitIosDeviceLaunch, u as resolveIosPhysicalDevice } from "./ios-device-DNjPXBnb.mjs";
30
30
  import { a as runPodInstall, n as podsAreStale, r as readPodState } from "./deps-DP4eWqea.mjs";
31
31
  import { existsSync, mkdirSync, mkdtempSync, openSync, rmSync, writeFileSync } from "node:fs";
32
32
  import { InvalidArgumentError } from "commander";
@@ -1,6 +1,6 @@
1
1
  import { t as getExecutor } from "./exec-DK8KaVHK.mjs";
2
2
  import { n as TOOL_ERROR_PREFIX } from "./ios-device-BiOsSVzd.mjs";
3
- import { i as INSTALL_ERROR } from "./app-install-CrJ6t_bv.mjs";
3
+ import { i as INSTALL_ERROR } from "./app-install-Cfmqr3TQ.mjs";
4
4
  import { mkdtempSync, readFileSync, rmSync } from "node:fs";
5
5
  import { join } from "node:path";
6
6
  import { tmpdir } from "node:os";
@@ -2,7 +2,7 @@ import { t as getExecutor } from "./exec-DK8KaVHK.mjs";
2
2
  import { o as readNdjsonGenerations } from "./ndjson-CDY9IkVC.mjs";
3
3
  import { s as isAppLaunchError } from "./command-output-D5z2_bcF.mjs";
4
4
  import { t as DEV_MENU_LAUNCH_ARGS } from "./ios-device-BiOsSVzd.mjs";
5
- import { d as deviceShellArg, n as ANDROID_DISABLE_AUTO_LAUNCH_EXTRA, o as androidAppProcess } from "./app-install-CrJ6t_bv.mjs";
5
+ import { d as deviceShellArg, n as ANDROID_DISABLE_AUTO_LAUNCH_EXTRA, o as androidAppProcess } from "./app-install-Cfmqr3TQ.mjs";
6
6
  import { join } from "node:path";
7
7
  //#region src/engine/app-readiness.ts
8
8
  const APP_READINESS_TIMEOUT_MS = 3e4;
@@ -5,7 +5,7 @@ import { r as workspaceProcessLockPath, t as withWorkspaceProcessLock } from "./
5
5
  import { t as createLineReader } from "./process-output-Fpl8PYi8.mjs";
6
6
  import { l as phaseLine } from "./command-output-D5z2_bcF.mjs";
7
7
  import { A as ownedAvdDirectory, C as isStimOwnedAvdName, D as listOrphanedAvdDirectories, G as wipeAvdUserData, H as sleepSync, P as ownedAvdSystemImage, U as waitForAndroidEmulatorShutdown, V as shutdownAndroidEmulator, f as avdStorageRoots, g as deleteAvd, j as ownedAvdMatchesConfiguration, l as assertOwnedAvdStopped, u as avdPathExists, z as resolveOwnedAvdSerial } from "./android-787HhP5w.mjs";
8
- import { S as resolveOwnedIosSim, a as deleteParkedIosSim, d as listIosDeviceTypes, g as parseRuntimeVersion, h as parkedSimName, i as deleteIosSim, o as eraseIosSim, v as renameIosSim, w as shutdownIosSim } from "./ios-B2Fpqvlb.mjs";
8
+ import { S as resolveOwnedIosSim, a as deleteParkedIosSim, d as listIosDeviceTypes, g as parseRuntimeVersion, h as parkedSimName, i as deleteIosSim, o as eraseIosSim, v as renameIosSim, w as shutdownIosSim } from "./ios-COGcGEcN.mjs";
9
9
  import { closeSync, lstatSync, mkdirSync, openSync, readFileSync, renameSync, rmSync, unlinkSync } from "node:fs";
10
10
  import { basename, dirname, join, resolve, sep } from "node:path";
11
11
  import { createHash, randomUUID } from "node:crypto";
@@ -4,9 +4,9 @@ import { o as findProjectRoot } from "./project-BXZzOABt.mjs";
4
4
  import { d as readWorkspaceLaunches } from "./state-WGdIbi_d.mjs";
5
5
  import { f as refuseNoProject, l as phaseLine } from "./command-output-D5z2_bcF.mjs";
6
6
  import { z as resolveOwnedAvdSerial } from "./android-787HhP5w.mjs";
7
- import { S as resolveOwnedIosSim } from "./ios-B2Fpqvlb.mjs";
8
- import { h as iosAppProcess, o as androidAppProcess } from "./app-install-CrJ6t_bv.mjs";
9
- import { n as nativeRunCommand } from "./slot-launch-C5cg0fmk.mjs";
7
+ import { S as resolveOwnedIosSim } from "./ios-COGcGEcN.mjs";
8
+ import { h as iosAppProcess, o as androidAppProcess } from "./app-install-Cfmqr3TQ.mjs";
9
+ import { n as nativeRunCommand } from "./slot-launch-Dk4oTREM.mjs";
10
10
  import chalk from "chalk";
11
11
  import { WebSocket } from "ws";
12
12
  //#region src/engine/reload.ts
@@ -3,8 +3,8 @@ import { t as getExecutor } from "./exec-DK8KaVHK.mjs";
3
3
  import { n as stripAnsi, r as waitForChild, t as createLineReader } from "./process-output-Fpl8PYi8.mjs";
4
4
  import { g as releaseBuildLock, m as acquireBuildLock } from "./device-lease-CbEaIk7b.mjs";
5
5
  import { w as listAdbDevices } from "./android-787HhP5w.mjs";
6
- import { l as listAllIosSims, s as iosRuntimeMatches } from "./ios-B2Fpqvlb.mjs";
7
- import { _ as easCliSupport, s as readInstalledEasCliVersion, v as easCliUpgradeRemedy, z as resolveEasCliBin } from "./device-remote-Dy1jGj3U.mjs";
6
+ import { l as listAllIosSims, s as iosRuntimeMatches } from "./ios-COGcGEcN.mjs";
7
+ import { _ as easCliSupport, s as readInstalledEasCliVersion, v as easCliUpgradeRemedy, z as resolveEasCliBin } from "./device-remote-powUHdbK.mjs";
8
8
  import { existsSync, realpathSync, statSync } from "node:fs";
9
9
  import { join } from "node:path";
10
10
  import { createHash } from "node:crypto";
@@ -1,7 +1,7 @@
1
1
  import { f as getProject } from "./config-BEq0Qw_a.mjs";
2
2
  import { m as readWorkspaceState } from "./metro-BWLOJ_Wr.mjs";
3
3
  import { n as fileLeaseIo } from "./device-lease-CbEaIk7b.mjs";
4
- import { d as deviceShellArg } from "./app-install-CrJ6t_bv.mjs";
4
+ import { d as deviceShellArg } from "./app-install-Cfmqr3TQ.mjs";
5
5
  //#region src/engine/slot-launch.ts
6
6
  function launchSlotScope(root, slot = "default") {
7
7
  if (slot !== "default") return slot;
@@ -9,8 +9,8 @@ import { i as clearManagedMetroTunnel, s as readMetroTunnel } from "./state-WGdI
9
9
  import { n as workspaceProcessLockError, t as withWorkspaceProcessLock } from "./workspace-process-lock-BXA96myD.mjs";
10
10
  import { _ as stepTimer, l as phaseLine } from "./command-output-D5z2_bcF.mjs";
11
11
  import { A as resolveCacheProviderConfig, B as planMetroReach, C as ngrokUrlSetting, E as publicUrlSetting, I as tunnelModeSetting, L as unknownSettingKeys, O as remoteAndroidSetting, P as settingShapeErrors, R as PUBLIC_METRO_ENV, a as SETTING_SHAPE_REMEDY, b as metroIdleStopMinutesSetting, d as cacheProviderSettingError, j as resolveSettings, k as remoteIosSetting, x as metroTunnelSettingError, z as detectProviders } from "./settings-DOugPlPz.mjs";
12
- import { a as terminateChild, c as withManagedTunnelLock, i as stopTunnel, o as withManagedRemoteWorktreeLock, r as startTunnelSequence, t as resolveSupervisorTarget } from "./ownership-DZjdx8Gq.mjs";
13
- import { i as stopOwnedMetroForReset, t as budgetGate } from "./budget-BP4jZZL4.mjs";
12
+ import { a as terminateChild, c as withManagedTunnelLock, i as stopTunnel, o as withManagedRemoteWorktreeLock, r as startTunnelSequence, t as resolveSupervisorTarget } from "./ownership-BfPNRf3-.mjs";
13
+ import { i as stopOwnedMetroForReset, t as budgetGate } from "./budget-nDCEwtJv.mjs";
14
14
  import { appendFileSync, mkdirSync, openSync, readFileSync } from "node:fs";
15
15
  import { IDLE_STOP_KEY, queryLogs } from "@stim-cli/core/state";
16
16
  import { basename, dirname, join } from "node:path";
@@ -1,2 +1,2 @@
1
- import { a as registerStart, c as startFacts, d as wantsExpoOwnTunnel, i as readLogTail, l as supervisorEntry, n as liveSupervisor, o as startCommand, r as parseWait, s as startDevServer, t as failureEvidence, u as tailLines } from "./start-F9gv5dcC.mjs";
1
+ import { a as registerStart, c as startFacts, d as wantsExpoOwnTunnel, i as readLogTail, l as supervisorEntry, n as liveSupervisor, o as startCommand, r as parseWait, s as startDevServer, t as failureEvidence, u as tailLines } from "./start-RbmFPeZ7.mjs";
2
2
  export { startCommand as default, failureEvidence, liveSupervisor, parseWait, readLogTail, registerStart, startDevServer, startFacts, supervisorEntry, tailLines, wantsExpoOwnTunnel };
@@ -8,12 +8,12 @@ import { l as readRemoteSession } from "./state-WGdIbi_d.mjs";
8
8
  import { i as listLeaseFiles } from "./device-lease-CbEaIk7b.mjs";
9
9
  import { a as buildStatusLine, c as createActivityReader, i as buildReport, o as parseActiveBuild, r as activeBuildState, t as ACTIVE_BUILD_KEY } from "./build-progress-BXx-ZBe4.mjs";
10
10
  import { N as ownedAvdSerialResolver, c as androidToolPath } from "./android-787HhP5w.mjs";
11
- import { b as readParked, h as POOL_SETTING_REMEDY, t as resolveSupervisorTarget, y as parkedMaxSetting } from "./ownership-DZjdx8Gq.mjs";
12
- import { _ as parseSimctlList, u as listAllIosSimsAsync } from "./ios-B2Fpqvlb.mjs";
13
- import { m as readEasSessionLedger$1, p as easMachineStateRoot$1 } from "./device-remote-Dy1jGj3U.mjs";
11
+ import { b as readParked, h as POOL_SETTING_REMEDY, t as resolveSupervisorTarget, y as parkedMaxSetting } from "./ownership-BfPNRf3-.mjs";
12
+ import { _ as parseSimctlList, u as listAllIosSimsAsync } from "./ios-COGcGEcN.mjs";
13
+ import { m as readEasSessionLedger$1, p as easMachineStateRoot$1 } from "./device-remote-powUHdbK.mjs";
14
14
  import { a as diskLine, c as parseDfFree, d as remoteDeviceState, f as tightVolumes, i as deviceLeaseStates, l as poolLine, n as capacity, o as environmentState, p as unprovisionedWorktrees, r as deviceLeaseLines, t as activityLabel, u as remoteDeviceLine } from "./status-Dr4fRkym.mjs";
15
15
  import { a as statsProjectKey, r as readStats } from "./stats-BAgJaLA4.mjs";
16
- import { i as readSupervisorState } from "./stop-Dj4pfmyv.mjs";
16
+ import { i as readSupervisorState } from "./stop-DcEv5sk-.mjs";
17
17
  import { readdirSync, watch } from "node:fs";
18
18
  import { closeSync as closeSync$1, existsSync as existsSync$1, fstatSync as fstatSync$1, openSync as openSync$1, readFileSync as readFileSync$1, readSync as readSync$1, renameSync as renameSync$1, rmSync as rmSync$1, writeFileSync as writeFileSync$1 } from "fs";
19
19
  import { basename, dirname, join } from "path";
@@ -1,3 +1,3 @@
1
- import { t as resolveSupervisorTarget } from "./ownership-DZjdx8Gq.mjs";
2
- import { a as resolveCollectorTargets, i as readSupervisorState, n as clearSupervisorState, o as runStop, r as readCollectorState, s as stopCommand, t as clearCollectorState } from "./stop-Dj4pfmyv.mjs";
1
+ import { t as resolveSupervisorTarget } from "./ownership-BfPNRf3-.mjs";
2
+ import { a as resolveCollectorTargets, i as readSupervisorState, n as clearSupervisorState, o as runStop, r as readCollectorState, s as stopCommand, t as clearCollectorState } from "./stop-DcEv5sk-.mjs";
3
3
  export { clearCollectorState, clearSupervisorState, stopCommand as default, readCollectorState, readSupervisorState, resolveCollectorTargets, resolveSupervisorTarget, runStop };
@@ -5,9 +5,9 @@ import { a as clearRemoteSession, i as clearManagedMetroTunnel, l as readRemoteS
5
5
  import { t as withWorkspaceProcessLock } from "./workspace-process-lock-BXA96myD.mjs";
6
6
  import { f as refuseNoProject, l as phaseLine, p as releasedLeaseFact, u as plural } from "./command-output-D5z2_bcF.mjs";
7
7
  import { u as releaseWorkspaceLeases } from "./device-lease-CbEaIk7b.mjs";
8
- import { d as teardownOwnedAvd, f as teardownOwnedIosSim, i as stopTunnel, t as resolveSupervisorTarget } from "./ownership-DZjdx8Gq.mjs";
8
+ import { d as teardownOwnedAvd, f as teardownOwnedIosSim, i as stopTunnel, t as resolveSupervisorTarget } from "./ownership-BfPNRf3-.mjs";
9
9
  import { n as verifyCollectorOwnership } from "./ownership-D2xbLVoz.mjs";
10
- import { i as endRecordedSession, z as resolveEasCliBin } from "./device-remote-Dy1jGj3U.mjs";
10
+ import { i as endRecordedSession, z as resolveEasCliBin } from "./device-remote-powUHdbK.mjs";
11
11
  import chalk from "chalk";
12
12
  //#region src/commands/stop.ts
13
13
  const DEFAULT_WAIT_MS = 1e4;
@@ -9,8 +9,8 @@ import { t as withWorkspaceProcessLock } from "./workspace-process-lock-BXA96myD
9
9
  import { a as parseLease, r as leaseIsExpired, s as parseWorkspaceLeases, t as deviceLeasePath } from "./device-lease-CbEaIk7b.mjs";
10
10
  import { c as createActivityReader } from "./build-progress-BXx-ZBe4.mjs";
11
11
  import { N as ownedAvdSerialResolver } from "./android-787HhP5w.mjs";
12
- import { s as workspaceBuildInProgress } from "./idle-DpRLp5lj.mjs";
13
- import { n as withIdleWorkspace } from "./in-use-CjUluqIX.mjs";
12
+ import { s as workspaceBuildInProgress } from "./idle--jn7pBNe.mjs";
13
+ import { n as withIdleWorkspace } from "./in-use-CNIWU-r-.mjs";
14
14
  import { existsSync, readFileSync, realpathSync, statSync } from "node:fs";
15
15
  import { LOG_ROTATE_BYTES } from "@stim-cli/core";
16
16
  import { IDLE_STOP_KEY } from "@stim-cli/core/state";
@@ -4,9 +4,9 @@ import { M as workspaceName$1, v as workspaceLastUsed } from "./metro-BWLOJ_Wr.m
4
4
  import { u as plural } from "./command-output-D5z2_bcF.mjs";
5
5
  import { i as listLeaseFiles, r as leaseIsExpired } from "./device-lease-CbEaIk7b.mjs";
6
6
  import { A as ownedAvdDirectory, C as isStimOwnedAvdName, K as isStimOwnedSim, T as listAvds } from "./android-787HhP5w.mjs";
7
- import { _ as dropParked, b as readParked, d as teardownOwnedAvd, f as teardownOwnedIosSim, m as teardownParkedIosSim, p as teardownParkedAvd } from "./ownership-DZjdx8Gq.mjs";
8
- import { d as listIosDeviceTypes, g as parseRuntimeVersion, l as listAllIosSims } from "./ios-B2Fpqvlb.mjs";
9
- import { i as canonicalPath, n as withIdleWorkspace, r as workspaceInUse, t as emptyWorkspaceDir } from "./in-use-CjUluqIX.mjs";
7
+ import { _ as dropParked, b as readParked, d as teardownOwnedAvd, f as teardownOwnedIosSim, m as teardownParkedIosSim, p as teardownParkedAvd } from "./ownership-BfPNRf3-.mjs";
8
+ import { d as listIosDeviceTypes, g as parseRuntimeVersion, l as listAllIosSims } from "./ios-COGcGEcN.mjs";
9
+ import { i as canonicalPath, n as withIdleWorkspace, r as workspaceInUse, t as emptyWorkspaceDir } from "./in-use-CNIWU-r-.mjs";
10
10
  import { existsSync, lstatSync, readdirSync, realpathSync, rmSync, statSync } from "fs";
11
11
  import { basename, dirname, isAbsolute, join, relative, resolve } from "path";
12
12
  import { METRO_NAMED_CACHE_LAYOUT } from "@stim-cli/core";
@@ -7,10 +7,10 @@ import { a as clearRemoteSession, i as clearManagedMetroTunnel, l as readRemoteS
7
7
  import { a as formatElapsed, h as shortUdid, i as formatDuration, l as phaseLine, p as releasedLeaseFact, u as plural } from "./command-output-D5z2_bcF.mjs";
8
8
  import { u as releaseWorkspaceLeases } from "./device-lease-CbEaIk7b.mjs";
9
9
  import { L as unknownSettingKeys, P as settingShapeErrors, a as SETTING_SHAPE_REMEDY, j as resolveSettings } from "./settings-DOugPlPz.mjs";
10
- import { d as teardownOwnedAvd, f as teardownOwnedIosSim, h as POOL_SETTING_REMEDY, i as stopTunnel, l as withManagedTunnelRemovalLock, s as withManagedRemoteWorktreeRemovalLock, t as resolveSupervisorTarget, y as parkedMaxSetting } from "./ownership-DZjdx8Gq.mjs";
11
- import { n as withIdleWorkspace, t as emptyWorkspaceDir } from "./in-use-CjUluqIX.mjs";
10
+ import { d as teardownOwnedAvd, f as teardownOwnedIosSim, h as POOL_SETTING_REMEDY, i as stopTunnel, l as withManagedTunnelRemovalLock, s as withManagedRemoteWorktreeRemovalLock, t as resolveSupervisorTarget, y as parkedMaxSetting } from "./ownership-BfPNRf3-.mjs";
11
+ import { n as withIdleWorkspace, t as emptyWorkspaceDir } from "./in-use-CNIWU-r-.mjs";
12
12
  import { n as verifyCollectorOwnership } from "./ownership-D2xbLVoz.mjs";
13
- import { i as endRecordedSession, z as resolveEasCliBin } from "./device-remote-Dy1jGj3U.mjs";
13
+ import { i as endRecordedSession, z as resolveEasCliBin } from "./device-remote-powUHdbK.mjs";
14
14
  import { h as podInstallCommand, n as HEARTBEAT_INTERVAL_MS } from "./xcode-B2tBkf0m.mjs";
15
15
  import { n as hasInstalledDependencies, r as installedNpmTreeIsValid, t as dependencyState } from "./dependency-state-r9UesA9a.mjs";
16
16
  import { t as clearNamedPorts } from "./named-ports-DiTfSz6p.mjs";
@@ -1,2 +1,2 @@
1
- import { a as reclaimKeys, c as removalBlockers, d as removeWorktreeTarget, f as worktreeCommand, i as porcelainPath, l as removalPath, n as excludePodChurn, o as registerRemove, r as matchWorktreeEntry, s as registerWarm, t as dependencyInstallCommand, u as removalRemedy } from "./worktree-BMS7GeqB.mjs";
1
+ import { a as reclaimKeys, c as removalBlockers, d as removeWorktreeTarget, f as worktreeCommand, i as porcelainPath, l as removalPath, n as excludePodChurn, o as registerRemove, r as matchWorktreeEntry, s as registerWarm, t as dependencyInstallCommand, u as removalRemedy } from "./worktree-Bd4dRvx7.mjs";
2
2
  export { worktreeCommand as default, dependencyInstallCommand, excludePodChurn, matchWorktreeEntry, porcelainPath, reclaimKeys, registerRemove, registerWarm, removalBlockers, removalPath, removalRemedy, removeWorktreeTarget };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stim",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "description": "Stim: fast, isolated React Native environments for coding agents",
5
5
  "keywords": [
6
6
  "agent",
@@ -43,9 +43,9 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@expo/fingerprint": "^0.20.10",
46
- "@stim-cli/cache": "^1.10.0",
47
- "@stim-cli/core": "^1.10.0",
48
- "@stim-cli/metro": "^1.10.0",
46
+ "@stim-cli/cache": "^1.10.1",
47
+ "@stim-cli/core": "^1.10.1",
48
+ "@stim-cli/metro": "^1.10.1",
49
49
  "chalk": "^6.0.0",
50
50
  "commander": "^15.0.0",
51
51
  "cross-spawn": "^7.0.6",
@@ -53,7 +53,7 @@
53
53
  "ws": "^8.21.3"
54
54
  },
55
55
  "devDependencies": {
56
- "@stim-cli/expo-build-cache": "1.10.0",
56
+ "@stim-cli/expo-build-cache": "1.10.1",
57
57
  "@types/cross-spawn": "^6.0.6",
58
58
  "@types/which": "^3.0.4",
59
59
  "@types/ws": "^8.18.1",