stim 1.20.1 → 1.20.2

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 (157) hide show
  1. package/README.md +6 -3
  2. package/dist/{activity-BaMpUQ4-.mjs → activity-BSV745Kz.mjs} +4 -4
  3. package/dist/{agent-device-usage-output-VPaOgGaF.mjs → agent-device-usage-output-Dzgv6lgR.mjs} +5 -6
  4. package/dist/{android-CLbBJ2ve.mjs → android-DCKZrNvV.mjs} +37 -38
  5. package/dist/{android-eXfIjKJr.mjs → android-Dlzxshgp.mjs} +5 -5
  6. package/dist/{android-CZh6ElG5.mjs → android-HqP1_vB_.mjs} +3 -3
  7. package/dist/{android-DE8-JfGW.mjs → android-Mz_Inn3w.mjs} +10 -10
  8. package/dist/{android-cas-BFpS84v2.mjs → android-cas-Bl-cLJBk.mjs} +4 -4
  9. package/dist/android-cas-compiler.mjs +1 -1
  10. package/dist/{api-zuX3ynYN.mjs → api-qvOzWyfO.mjs} +1 -1
  11. package/dist/api-run.mjs +19 -21
  12. package/dist/api.mjs +1 -1
  13. package/dist/{app-install-Cg9YJy3x.mjs → app-install-BIKtMfPq.mjs} +71 -48
  14. package/dist/{artifact-DXk_Fle_.mjs → artifact-D3czlUvT.mjs} +13 -13
  15. package/dist/{artifact-Ctb2jpw6.mjs → artifact-HSwkIWEQ.mjs} +12 -12
  16. package/dist/{browser-web-xQWC2RWl.mjs → browser-web-CA-F1GQo.mjs} +18 -18
  17. package/dist/{budget-RFbwFpG5.mjs → budget-f7516Zk0.mjs} +23 -26
  18. package/dist/{build-COBA1tBc.mjs → build-DYDbfkk5.mjs} +28 -33
  19. package/dist/{build-plan-CRjAA6Qi.mjs → build-plan-B7SZsc2N.mjs} +17 -17
  20. package/dist/{cache-manifest-qA3dT2x2.mjs → cache-manifest-XH-fvDUj.mjs} +10 -5
  21. package/dist/cache-manifest.mjs +1 -1
  22. package/dist/cancellation-C_22VQTH.mjs +24 -0
  23. package/dist/{ccache-CtbqWxIC.mjs → ccache-zdKiYQ3E.mjs} +7 -7
  24. package/dist/{chrome-Dp2lMLBe.mjs → chrome-BnzZMqsR.mjs} +1 -1
  25. package/dist/{cli-sGqlPu1n.mjs → cli-CLP3diBm.mjs} +20 -20
  26. package/dist/cli.mjs +1 -1
  27. package/dist/{client-zqjFd79D.mjs → client-qQAaXSUs.mjs} +21 -29
  28. package/dist/collector-run.d.mts +7 -6
  29. package/dist/collector-run.mjs +6 -7
  30. package/dist/{command-output-CPDq_90S.mjs → command-output-BTy8hZ0F.mjs} +1 -1
  31. package/dist/{config-D0LhTY3S.mjs → config-BYDxlMY3.mjs} +43 -5
  32. package/dist/{created-devices-CXBMtoj5.mjs → created-devices-Dzd5C2LF.mjs} +2 -2
  33. package/dist/{dependency-state-B2m8eqsS.mjs → dependency-state-DG0p31-y.mjs} +2 -2
  34. package/dist/{detached-entry-BXq4fIl-.mjs → detached-entry-B9C_zeQC.mjs} +1 -1
  35. package/dist/{dev-client-BqYjMIaC.mjs → dev-client-DAWVIGBu.mjs} +2 -2
  36. package/dist/{device-D4DqjSZZ.mjs → device-BECOiufl.mjs} +13 -14
  37. package/dist/{device-BgNj-qVj.mjs → device-DuiPJQSn.mjs} +8 -8
  38. package/dist/{device-capacity-DrwHwR97.mjs → device-capacity-CBUAcRyQ.mjs} +10 -11
  39. package/dist/device-host-worker.mjs +16 -17
  40. package/dist/{device-ios-DE8KJd3b.mjs → device-ios-COSi6oS1.mjs} +12 -15
  41. package/dist/{device-lease-C309csaB.mjs → device-lease-BX1sJQ2E.mjs} +12 -16
  42. package/dist/{device-lease-run-Baelt3nc.mjs → device-lease-run-Cw2M4z51.mjs} +4 -4
  43. package/dist/{device-pool-DtK9S6AD.mjs → device-pool-Bf-pOhSw.mjs} +3 -3
  44. package/dist/{device-remote-DjsNw8DD.mjs → device-remote-xRT0Vmo9.mjs} +14 -14
  45. package/dist/{doctor-DiP9HsIP.mjs → doctor-CB8oZKCk.mjs} +13 -13
  46. package/dist/{doctor-Dunu3Nv1.mjs → doctor-kfMBnUw6.mjs} +78 -69
  47. package/dist/{doctor-watchman-XJzT8tK-.mjs → doctor-watchman-BRyV2adA.mjs} +7 -9
  48. package/dist/{eas-build-0gadvrca.mjs → eas-build-JyfqyHfC.mjs} +5 -5
  49. package/dist/{eas-session-ledger-DJDeL4Uq.mjs → eas-session-ledger-Cm0Gwq2F.mjs} +6 -4
  50. package/dist/{error-diagnostics-BhQtoLrZ.mjs → error-diagnostics-BR677IDM.mjs} +10 -10
  51. package/dist/{exec-B81Qodjn.mjs → exec-DqKo9GKJ.mjs} +22 -8
  52. package/dist/{gc-D5cz5G0k.mjs → gc-qWOMdnER.mjs} +74 -23
  53. package/dist/git-DDfFzkMm.mjs +45 -0
  54. package/dist/{gradle-CZZo1TSA.mjs → gradle-DSrXb6lG.mjs} +6 -6
  55. package/dist/{guide-DakjcoUt.mjs → guide-G9cAbVAc.mjs} +56 -18
  56. package/dist/{hosted-android-C-D8Dj0_.mjs → hosted-android-C3MHGld1.mjs} +3 -3
  57. package/dist/{hosted-client--hNFgixu.mjs → hosted-client-ZEKpS9vw.mjs} +19 -11
  58. package/dist/{hosted-ios-Chx9XQyI.mjs → hosted-ios-l-o3iM9J.mjs} +1 -1
  59. package/dist/{hosted-logs-Bkz0Hxzh.mjs → hosted-logs-EzQM7-3Z.mjs} +7 -7
  60. package/dist/{hosted-macos-ckTjN-0V.mjs → hosted-macos-BACVAVqE.mjs} +10 -8
  61. package/dist/{hosted-native-3KXZ5-qn.mjs → hosted-native-A4s1QPXe.mjs} +13 -11
  62. package/dist/{idle-shutdown-DhAUyf5s.mjs → idle-shutdown-DtxhPTKe.mjs} +7 -7
  63. package/dist/{ios-BDBN-xpf.mjs → ios-BwVCF7oA.mjs} +8 -8
  64. package/dist/{ios-CQ8bHQXB.mjs → ios-Ce7bc7br.mjs} +29 -29
  65. package/dist/{ios-o896T9PE.mjs → ios-RkW4pnQf.mjs} +6 -6
  66. package/dist/{ios-device-B1B14xND.mjs → ios-device-B5veSDDQ.mjs} +1 -1
  67. package/dist/{ios-device-BWHKGaJq.mjs → ios-device-D7pi2Sca.mjs} +14 -14
  68. package/dist/{ios-VGvNdsv2.mjs → ios-nOLJGVdy.mjs} +1 -1
  69. package/dist/{ios-project-BeOXKPt2.mjs → ios-project-K9hY_Jab.mjs} +8 -8
  70. package/dist/{ios-state-BsXMwo5y.mjs → ios-state-CBLe1xYw.mjs} +1 -1
  71. package/dist/{js-swap-Z_mSuRrx.mjs → js-swap-Bb3nsS07.mjs} +13 -13
  72. package/dist/{launch-BootbMk4.mjs → launch-C3qJ6Agb.mjs} +46 -45
  73. package/dist/{launch-V1zqiOYn.mjs → launch-F4sOqAhB.mjs} +21 -21
  74. package/dist/{launch-verify-Dl78EVgR.mjs → launch-verify-B6Q8hZP-.mjs} +11 -11
  75. package/dist/{logs-Bh4eqCCc.mjs → logs-BGrEUaEs.mjs} +10 -11
  76. package/dist/{macos-D7irBW3A.mjs → macos-Ch5VJmcS.mjs} +40 -24
  77. package/dist/macos-D7uDvO-z.mjs +2 -0
  78. package/dist/macos-run.mjs +1 -1
  79. package/dist/maintenance-run.mjs +7 -7
  80. package/dist/{metro-_ZIE3Axg.mjs → metro-DnCEjCxs.mjs} +8 -9
  81. package/dist/{metro-gateway-BzlQZQmU.mjs → metro-gateway-CX9Xlkq2.mjs} +3 -3
  82. package/dist/{miss-reason-SuTptY-I.mjs → miss-reason-mKzZ4VvN.mjs} +3 -3
  83. package/dist/{named-ports-O1TIl7tx.mjs → named-ports-4WopRPg-.mjs} +4 -5
  84. package/dist/{native-android-D94RlJ-X.mjs → native-android-D5qc3-_v.mjs} +10 -10
  85. package/dist/{native-gradle-inputs-BQnIdAlL.mjs → native-gradle-inputs-BsLRrl7u.mjs} +3 -10
  86. package/dist/{native-runtime-D024BAvm.mjs → native-runtime-k8dTIrbK.mjs} +7 -8
  87. package/dist/{native-xcode-inputs-UElfGs59.mjs → native-xcode-inputs-CykopJdM.mjs} +7 -8
  88. package/dist/{native-xcode-ios-CjS-nDVY.mjs → native-xcode-ios-Bbf30Gm0.mjs} +15 -15
  89. package/dist/offload-worker.mjs +34 -38
  90. package/dist/{ownership-BrjepDiv.mjs → ownership-DCtw_2IA.mjs} +3 -3
  91. package/dist/{page-Bv9s2KwY.mjs → page-DRHy329N.mjs} +1 -1
  92. package/dist/{placement-log-BItXET1x.mjs → placement-log-MOfPVgaM.mjs} +1 -1
  93. package/dist/{plan-Jwu_vr-F.mjs → plan-C4TjdPsR.mjs} +10 -10
  94. package/dist/{plan-placement-B466UYMU.mjs → plan-placement-V0TdzYXp.mjs} +3 -3
  95. package/dist/{ports-BFRL6JTj.mjs → ports-DdSUicVo.mjs} +3 -3
  96. package/dist/{prebuild-DB_zLOLc.mjs → prebuild-DYbucPXy.mjs} +7 -8
  97. package/dist/{preview-BRLFRhTz.mjs → preview-78a9kR_-.mjs} +31 -24
  98. package/dist/{project-DX8fXyw_.mjs → project-_phNIJfs.mjs} +15 -16
  99. package/dist/{pull-request-vOhLNmIb.mjs → pull-request-CQ8sPbZa.mjs} +5 -18
  100. package/dist/pull-requests.mjs +1 -1
  101. package/dist/{react-native-android-CuXM3QS8.mjs → react-native-android-CM1XRDwv.mjs} +34 -30
  102. package/dist/{react-native-build-JUF31S8U.mjs → react-native-build-CtCccJtb.mjs} +6 -6
  103. package/dist/{react-native-doctor-BQHqiXaQ.mjs → react-native-doctor-CfRnFfjs.mjs} +5 -5
  104. package/dist/{react-native-ios-DtVO4qf2.mjs → react-native-ios-Dhq_eiYQ.mjs} +14 -14
  105. package/dist/{recordings-Bk-VivUV.mjs → recordings-D0d5aQt0.mjs} +1 -1
  106. package/dist/{reload-D9V7D8gP.mjs → reload-C8JhxjSh.mjs} +17 -17
  107. package/dist/{remote-CZiTijxG.mjs → remote-BiR6aYjy.mjs} +7 -7
  108. package/dist/{remote-cache-fxcl5C-L.mjs → remote-cache-OyOyVIS3.mjs} +4 -4
  109. package/dist/{result-BrfgXtdO.mjs → result-CaJg5Iat.mjs} +8 -8
  110. package/dist/{run-ClC8UVB5.mjs → run-BtPgpKks.mjs} +3 -3
  111. package/dist/{server-bare-dWjAarki.mjs → server-bare-R2m_gsH8.mjs} +3 -3
  112. package/dist/{server-command-DnJYLnr4.mjs → server-command-CTtCkmcQ.mjs} +5 -5
  113. package/dist/server-expo-Bigriskl.mjs +2 -0
  114. package/dist/{server-expo-CUuzP9Mp.mjs → server-expo-DsguMGUF.mjs} +5 -10
  115. package/dist/{settings-Bbztm4oV.mjs → settings-B717odTD.mjs} +74 -115
  116. package/dist/{settings-BuKMOANA.mjs → settings-BORNaaCO.mjs} +5 -5
  117. package/dist/{simslim-ChMfe8rg.mjs → simslim-CCr3rE-A.mjs} +2 -3
  118. package/dist/{slot-launch-CeCRr6MK.mjs → slot-launch-DPt0m9Nd.mjs} +6 -6
  119. package/dist/{spawn-claims-Kqiifsk2.mjs → spawn-claims-DVS5RkMS.mjs} +1 -1
  120. package/dist/{stage-BNKKdDNc.mjs → stage-KNTQopqv.mjs} +9 -9
  121. package/dist/{start-CRkG-mZ7.mjs → start-BWqzODpb.mjs} +19 -20
  122. package/dist/{start-mh6bS27z.mjs → start-TXeMmmO2.mjs} +1 -1
  123. package/dist/{state-BUpAmt2r.mjs → state-CG_OFoaA.mjs} +2 -2
  124. package/dist/{state-lqxdOH_g.mjs → state-D1Icyjlu.mjs} +5 -5
  125. package/dist/{stats-CaB1MxMi.mjs → stats-BoY5sEPU.mjs} +5 -5
  126. package/dist/{status-BDGHwkCs.mjs → status-BTA7kKiQ.mjs} +1 -1
  127. package/dist/{status-C7vzkInu.mjs → status-WgFbkRzj.mjs} +30 -47
  128. package/dist/{status-watch-ZaVqRdtW.mjs → status-watch-C23ILtf9.mjs} +4 -4
  129. package/dist/{stim-desktop-8GQX2OV8.mjs → stim-desktop-BzBN2Em2.mjs} +1 -1
  130. package/dist/{stop-BO80KJoT.mjs → stop-BNmBMi1F.mjs} +18 -19
  131. package/dist/{stop-Cftw_sXJ.mjs → stop-DPEhunlw.mjs} +6 -6
  132. package/dist/{stop-BU7JaFCg.mjs → stop-DR6VoDIk.mjs} +2 -2
  133. package/dist/supervisor-run.mjs +16 -17
  134. package/dist/{support-Co0wk8Cv.mjs → support-CwjbFs9H.mjs} +9 -9
  135. package/dist/{support-Ca6PZbpr.mjs → support-DMTqj3Hm.mjs} +6 -6
  136. package/dist/{swiftpm-macos-siFSkmCO.mjs → swiftpm-macos-DRNVJWlb.mjs} +9 -9
  137. package/dist/{tailnet-D7-tE_ug.mjs → tailnet-Dh-qiYzG.mjs} +5 -5
  138. package/dist/toolchain-BFkAcstd.mjs +2 -0
  139. package/dist/{toolchain-SqehyPLw.mjs → toolchain-DxSsNssu.mjs} +10 -10
  140. package/dist/trigger-9_USgmxz.mjs +2 -0
  141. package/dist/{trigger-C0MWBi8O.mjs → trigger-CigAYjeL.mjs} +2 -2
  142. package/dist/{warm-progress-5FAXkXIg.mjs → warm-progress-BuY-Fvfn.mjs} +43 -61
  143. package/dist/{watchman-CqmaGcIb.mjs → watchman-CPQFZLXY.mjs} +6 -6
  144. package/dist/{web-BTjzE8mc.mjs → web-BDBMxDpx.mjs} +9 -9
  145. package/dist/web-Dq-i3wzJ.mjs +2 -0
  146. package/dist/web-run.mjs +14 -14
  147. package/dist/{workspace-state-CvgTFe-h.mjs → workspace-state-DJt_MMvf.mjs} +13 -3
  148. package/dist/{workspaces-C4kqIOlx.mjs → workspaces-C36s2jb9.mjs} +15 -16
  149. package/dist/{worktree-DtRsh6go.mjs → worktree-CgvJYJ-Q.mjs} +94 -87
  150. package/dist/{worktree-Cgnm6vZt.mjs → worktree-DpLdCHga.mjs} +1 -1
  151. package/package.json +5 -5
  152. package/dist/macos-kivF8qKz.mjs +0 -2
  153. package/dist/process-identity-Biv3arCO.mjs +0 -40
  154. package/dist/server-expo-Dvkd7JcF.mjs +0 -2
  155. package/dist/toolchain-B12psPA2.mjs +0 -2
  156. package/dist/trigger-SHLOWJ4O.mjs +0 -2
  157. package/dist/web-CHN5gh34.mjs +0 -2
@@ -1,10 +1,10 @@
1
- import { R as deviceSlotKey, _ as loadConfig$1 } from "./config-D0LhTY3S.mjs";
2
- import { a as updateWorkspaceState, r as readWorkspaceState$1 } from "./workspace-state-CvgTFe-h.mjs";
3
- import { o as formatLongDuration } from "./command-output-CPDq_90S.mjs";
4
- import { T as canonicalPath, b as teardownOwnedIosSim, v as teardownOwnedAvd } from "./workspaces-C4kqIOlx.mjs";
5
- import { f as collectOwnedDeviceActivity, g as workspaceBuildInProgress } from "./budget-RFbwFpG5.mjs";
6
- import { m as workspaceDeviceLastUseAt } from "./activity-BaMpUQ4-.mjs";
7
- import { d as listAllIosSims } from "./ios-o896T9PE.mjs";
1
+ import { B as deviceSlotKey, _ as loadConfig$1 } from "./config-BYDxlMY3.mjs";
2
+ import { a as updateWorkspaceState, r as readWorkspaceState$1 } from "./workspace-state-DJt_MMvf.mjs";
3
+ import { o as formatLongDuration } from "./command-output-BTy8hZ0F.mjs";
4
+ import { T as canonicalPath, b as teardownOwnedIosSim, v as teardownOwnedAvd } from "./workspaces-C36s2jb9.mjs";
5
+ import { f as collectOwnedDeviceActivity, g as workspaceBuildInProgress } from "./budget-f7516Zk0.mjs";
6
+ import { m as workspaceDeviceLastUseAt } from "./activity-BSV745Kz.mjs";
7
+ import { d as listAllIosSims } from "./ios-RkW4pnQf.mjs";
8
8
  import { DEVICE_IDLE_SHUTDOWN_KEY, DEVICE_RECLAIM_REASON, readDeviceIdleShutdowns } from "@stim-cli/core/state";
9
9
  //#region src/devices/idle-shutdown.ts
10
10
  const SIM_LIST_TIMEOUT_MS = 1e4;
@@ -1,9 +1,9 @@
1
- import { h as shortUdid, i as formatDuration, l as phaseLine, m as shortHash } from "./command-output-CPDq_90S.mjs";
2
- import { D as schemesFromInfoPlist, T as pickDevClientScheme } from "./app-install-Cg9YJy3x.mjs";
3
- import { n as ensureWorkspaceStorageSafely } from "./native-runtime-D024BAvm.mjs";
4
- import { t as devClientScheme } from "./dev-client-BqYjMIaC.mjs";
5
- import { f as podAction, h as resolveDeviceType, i as deviceLabel, m as resolveConfiguration, n as buildLogFile, s as iosConfigurationSetting, t as appNameFromPath, u as isReleaseConfiguration, v as resolveRuntime } from "./support-Co0wk8Cv.mjs";
6
- import { a as lastBuildRecord, i as iosFacts, n as cacheDescription, s as writeLastBuild } from "./ios-project-BeOXKPt2.mjs";
7
- import { n as registerIos, r as runIosOperation, t as iosCommand } from "./ios-CQ8bHQXB.mjs";
8
- import { a as collectorEntry, o as replaceCollector } from "./launch-BootbMk4.mjs";
1
+ import { h as shortUdid, i as formatDuration, l as phaseLine, m as shortHash } from "./command-output-BTy8hZ0F.mjs";
2
+ import { E as pickDevClientScheme, O as schemesFromInfoPlist } from "./app-install-BIKtMfPq.mjs";
3
+ import { n as ensureWorkspaceStorageSafely } from "./native-runtime-k8dTIrbK.mjs";
4
+ import { t as devClientScheme } from "./dev-client-DAWVIGBu.mjs";
5
+ import { f as podAction, h as resolveDeviceType, i as deviceLabel, m as resolveConfiguration, n as buildLogFile, s as iosConfigurationSetting, t as appNameFromPath, u as isReleaseConfiguration, v as resolveRuntime } from "./support-CwjbFs9H.mjs";
6
+ import { a as lastBuildRecord, i as iosFacts, n as cacheDescription, s as writeLastBuild } from "./ios-project-K9hY_Jab.mjs";
7
+ import { n as registerIos, r as runIosOperation, t as iosCommand } from "./ios-Ce7bc7br.mjs";
8
+ import { a as collectorEntry, o as replaceCollector } from "./launch-C3qJ6Agb.mjs";
9
9
  export { appNameFromPath, buildLogFile, cacheDescription, collectorEntry, iosCommand as default, devClientScheme, deviceLabel, ensureWorkspaceStorageSafely, formatDuration, iosConfigurationSetting, iosFacts, isReleaseConfiguration, lastBuildRecord, phaseLine, pickDevClientScheme, podAction, registerIos, replaceCollector, resolveConfiguration, resolveDeviceType, resolveRuntime, runIosOperation, schemesFromInfoPlist, shortHash, shortUdid, writeLastBuild };
@@ -1,34 +1,34 @@
1
- import { L as deviceSlotFileKey, V as parseDeviceSlotOption, W as validateDeviceSlot } from "./config-D0LhTY3S.mjs";
2
- import { C as iosSigningIdentitySha1Setting, I as projectSettingsContext, L as publicUrlSetting, N as metroWarmupUrlSetting, S as iosSigningIdentitySettingError, _ as iosLanHostSetting, a as SETTING_SHAPE_REMEDY, g as deviceReclaimIdleMinutesSetting, j as metroPortSetting, tt as tunnelModeSetting, v as iosLanHostSettingError, w as iosSigningIdentitySha1SettingError, x as iosSigningIdentitySetting } from "./settings-Bbztm4oV.mjs";
3
- import { i as recordWorkspaceUse, w as workspaceLogsDir$1 } from "./workspace-state-CvgTFe-h.mjs";
4
- import { _ as stepTimer, g as stepClock, i as formatDuration, l as phaseLine } from "./command-output-CPDq_90S.mjs";
5
- import { I as workspaceDevServerMode, t as NO_PROJECT_REFUSAL } from "./project-DX8fXyw_.mjs";
6
- import { at as POOL_SETTING_REMEDY, dt as parkedMaxSetting } from "./android-DE8-JfGW.mjs";
7
- import { At as createRunRecorder, It as statsProjectKey$1, Ot as startBuildProgress, kt as tapBuildLog, yt as NO_BUILD_PROGRESS } from "./budget-RFbwFpG5.mjs";
8
- import { S as withNativeBuildRun, b as runCancellation, p as cancelledFailure, x as runCancellationSignal } from "./tailnet-D7-tE_ug.mjs";
1
+ import { K as validateDeviceSlot, U as parseDeviceSlotOption, z as deviceSlotFileKey } from "./config-BYDxlMY3.mjs";
2
+ import { C as iosSigningIdentitySha1Setting, I as projectSettingsContext, L as publicUrlSetting, N as metroWarmupUrlSetting, S as iosSigningIdentitySettingError, _ as iosLanHostSetting, a as SETTING_SHAPE_REMEDY, g as deviceReclaimIdleMinutesSetting, j as metroPortSetting, tt as tunnelModeSetting, v as iosLanHostSettingError, w as iosSigningIdentitySha1SettingError, x as iosSigningIdentitySetting } from "./settings-B717odTD.mjs";
3
+ import { i as recordWorkspaceUse, w as workspaceLogsDir$1 } from "./workspace-state-DJt_MMvf.mjs";
4
+ import { _ as stepTimer, g as stepClock, i as formatDuration, l as phaseLine } from "./command-output-BTy8hZ0F.mjs";
5
+ import { I as workspaceDevServerMode, t as NO_PROJECT_REFUSAL } from "./project-_phNIJfs.mjs";
6
+ import { at as POOL_SETTING_REMEDY, dt as parkedMaxSetting } from "./android-Mz_Inn3w.mjs";
7
+ import { At as createRunRecorder, It as statsProjectKey$1, Ot as startBuildProgress, kt as tapBuildLog, yt as NO_BUILD_PROGRESS } from "./budget-f7516Zk0.mjs";
8
+ import { S as withNativeBuildRun, b as runCancellation, p as cancelledFailure, x as runCancellationSignal } from "./tailnet-Dh-qiYzG.mjs";
9
9
  import { d as optimizationBuildProfile, l as artifactCachePolicy } from "./errors-DzkMYh8Q.mjs";
10
- import { o as exitAfterFlush } from "./remote-cache-fxcl5C-L.mjs";
11
- import { d as simulatorRuntime, f as setRemoteLogSink, g as parseBuildMachineOption } from "./client-zqjFd79D.mjs";
12
- import { i as createIosSimSnapshot } from "./ios-o896T9PE.mjs";
13
- import { r as DEFAULT_METRO_PORT } from "./app-install-Cg9YJy3x.mjs";
14
- import { r as isPhysicalDeviceRequest, t as ensureDevServer } from "./native-runtime-D024BAvm.mjs";
15
- import { _ as COMPILATION_CACHE_NOT_RUN } from "./toolchain-SqehyPLw.mjs";
16
- import "./dev-client-BqYjMIaC.mjs";
17
- import { f as waitFlagConflict, o as leaseExpiryText } from "./device-lease-run-Baelt3nc.mjs";
18
- import { r as hostedMetroSettings } from "./metro-gateway-BzlQZQmU.mjs";
19
- import { i as writeDevicePlacement } from "./ios-state-BsXMwo5y.mjs";
20
- import { a as refusePlan, i as printPlan, n as planFlagRefusal } from "./build-plan-CRjAA6Qi.mjs";
21
- import { r as siblingPlatformSlots, t as launchSlotScope } from "./slot-launch-CeCRr6MK.mjs";
22
- import { S as ownedSessionName, n as binOnPath } from "./device-remote-DjsNw8DD.mjs";
23
- import { r as isEasBuildFailure } from "./eas-build-0gadvrca.mjs";
24
- import { t as didSetUpDevice } from "./device-D4DqjSZZ.mjs";
10
+ import { o as exitAfterFlush } from "./remote-cache-OyOyVIS3.mjs";
11
+ import { d as simulatorRuntime, f as setRemoteLogSink, g as parseBuildMachineOption } from "./client-qQAaXSUs.mjs";
12
+ import { i as createIosSimSnapshot } from "./ios-RkW4pnQf.mjs";
13
+ import { r as DEFAULT_METRO_PORT } from "./app-install-BIKtMfPq.mjs";
14
+ import { r as isPhysicalDeviceRequest, t as ensureDevServer } from "./native-runtime-k8dTIrbK.mjs";
15
+ import { _ as COMPILATION_CACHE_NOT_RUN } from "./toolchain-DxSsNssu.mjs";
16
+ import "./dev-client-DAWVIGBu.mjs";
17
+ import { f as waitFlagConflict, o as leaseExpiryText } from "./device-lease-run-Cw2M4z51.mjs";
18
+ import { r as hostedMetroSettings } from "./metro-gateway-CX9Xlkq2.mjs";
19
+ import { i as writeDevicePlacement } from "./ios-state-CBLe1xYw.mjs";
20
+ import { a as refusePlan, i as printPlan, n as planFlagRefusal } from "./build-plan-B7SZsc2N.mjs";
21
+ import { r as siblingPlatformSlots, t as launchSlotScope } from "./slot-launch-DPt0m9Nd.mjs";
22
+ import { S as ownedSessionName, n as binOnPath } from "./device-remote-xRT0Vmo9.mjs";
23
+ import { r as isEasBuildFailure } from "./eas-build-JyfqyHfC.mjs";
24
+ import { t as didSetUpDevice } from "./device-BECOiufl.mjs";
25
25
  import { t as unsupportedPlan } from "./project-plan-BPwbLwQu.mjs";
26
- import { _ as resolveIosWait, a as deviceModelRefusal, b as resolveSimulatorAppFlag, c as iosProjectPathError, d as ownedSimFailure, g as resolveIosBuildSetup, h as resolveDeviceType, i as deviceLabel, m as resolveConfiguration, n as buildLogFile, r as createIosDeviceWaitRun, u as isReleaseConfiguration, v as resolveRuntime, x as simulatorBuildArch, y as resolveSchemeSelection } from "./support-Co0wk8Cv.mjs";
27
- import { a as lastBuildRecord, o as reportIosResult, s as writeLastBuild } from "./ios-project-BeOXKPt2.mjs";
28
- import { t as acquireIosArtifact } from "./artifact-Ctb2jpw6.mjs";
29
- import { a as iosPlacementBudget, i as hostedIosSelectors, n as connectIosTarget, o as selectIosPlacement, r as hostedIosMetroNote, t as connectIosBackend } from "./remote-CZiTijxG.mjs";
30
- import { a as iosPoolCandidates, c as isWirelessIosDevice, f as resolveIosPhysicalDevice, o as iosPoolNoCandidatesRefusal, r as iosDeviceBounds } from "./ios-device-BWHKGaJq.mjs";
31
- import { i as DEFAULT_DEPS, l as lanOriginUrlFor, s as chooseLanAddress, t as finishIosRun } from "./launch-BootbMk4.mjs";
26
+ import { _ as resolveIosWait, a as deviceModelRefusal, b as resolveSimulatorAppFlag, c as iosProjectPathError, d as ownedSimFailure, g as resolveIosBuildSetup, h as resolveDeviceType, i as deviceLabel, m as resolveConfiguration, n as buildLogFile, r as createIosDeviceWaitRun, u as isReleaseConfiguration, v as resolveRuntime, x as simulatorBuildArch, y as resolveSchemeSelection } from "./support-CwjbFs9H.mjs";
27
+ import { a as lastBuildRecord, o as reportIosResult, s as writeLastBuild } from "./ios-project-K9hY_Jab.mjs";
28
+ import { t as acquireIosArtifact } from "./artifact-HSwkIWEQ.mjs";
29
+ import { a as iosPlacementBudget, i as hostedIosSelectors, n as connectIosTarget, o as selectIosPlacement, r as hostedIosMetroNote, t as connectIosBackend } from "./remote-BiR6aYjy.mjs";
30
+ import { a as iosPoolCandidates, c as isWirelessIosDevice, f as resolveIosPhysicalDevice, o as iosPoolNoCandidatesRefusal, r as iosDeviceBounds } from "./ios-device-D7pi2Sca.mjs";
31
+ import { i as DEFAULT_DEPS, l as lanOriginUrlFor, s as chooseLanAddress, t as finishIosRun } from "./launch-C3qJ6Agb.mjs";
32
32
  import { basename, join } from "node:path";
33
33
  import { hostedIosStatus, parseMachine } from "@stim-cli/core/state";
34
34
  import { workspaceId } from "@stim-cli/core";
@@ -1,9 +1,9 @@
1
- import { t as getExecutor } from "./exec-B81Qodjn.mjs";
2
- import { _ as loadConfig$1, j as formatBytes } from "./config-D0LhTY3S.mjs";
1
+ import { N as formatBytes, _ as loadConfig$1 } from "./config-BYDxlMY3.mjs";
2
+ import { t as getExecutor } from "./exec-DqKo9GKJ.mjs";
3
3
  import { n as stripAnsi, r as waitForChild, t as createLineReader } from "./process-output-Fpl8PYi8.mjs";
4
- import { n as settingDefault, t as STIM_DESKTOP_OPEN_OPTIONS } from "./stim-desktop-8GQX2OV8.mjs";
5
- import { it as isStimOwnedSim } from "./android-DE8-JfGW.mjs";
6
- import { r as recordCreatedDevice, t as forgetCreatedDevice } from "./created-devices-CXBMtoj5.mjs";
4
+ import { n as settingDefault, t as STIM_DESKTOP_OPEN_OPTIONS } from "./stim-desktop-BzBN2Em2.mjs";
5
+ import { it as isStimOwnedSim } from "./android-Mz_Inn3w.mjs";
6
+ import { r as recordCreatedDevice, t as forgetCreatedDevice } from "./created-devices-Dzd5C2LF.mjs";
7
7
  import { closeSync, existsSync, lstatSync, mkdtempSync, openSync, readSync, readdirSync, rmSync, writeFileSync } from "node:fs";
8
8
  import { dirname, isAbsolute, join, resolve } from "node:path";
9
9
  import { IOS_SIMULATOR_APPS, isJsonObject, settingDefinition } from "@stim-cli/core/state";
@@ -822,7 +822,7 @@ function listUserApps(udid) {
822
822
  "-o",
823
823
  "-",
824
824
  plist
825
- ]));
825
+ ], { timeoutMs: 1e4 }));
826
826
  } finally {
827
827
  rmSync(dir, {
828
828
  recursive: true,
@@ -1,4 +1,4 @@
1
- import { t as getExecutor } from "./exec-B81Qodjn.mjs";
1
+ import { t as getExecutor } from "./exec-DqKo9GKJ.mjs";
2
2
  //#region src/collector/ios-device.ts
3
3
  const CONSOLE_ENV = { OS_ACTIVITY_DT_MODE: "enable" };
4
4
  const DEV_MENU_LAUNCH_ARGS = [
@@ -1,6 +1,6 @@
1
- import { t as getExecutor } from "./exec-B81Qodjn.mjs";
2
- import { n as TOOL_ERROR_PREFIX } from "./ios-device-B1B14xND.mjs";
3
- import { i as INSTALL_ERROR } from "./app-install-Cg9YJy3x.mjs";
1
+ import { t as getExecutor } from "./exec-DqKo9GKJ.mjs";
2
+ import { n as TOOL_ERROR_PREFIX } from "./ios-device-B5veSDDQ.mjs";
3
+ import { i as INSTALL_ERROR, l as appProcessFromPid } from "./app-install-BIKtMfPq.mjs";
4
4
  import { mkdtempSync, readFileSync, rmSync } from "node:fs";
5
5
  import { join } from "node:path";
6
6
  import { tmpdir } from "node:os";
@@ -364,9 +364,9 @@ function iosDeviceProcess({ udid, appName }, { exec = null } = {}) {
364
364
  "--json-output",
365
365
  out
366
366
  ], { timeoutMs: DEVICECTL_TIMEOUT_MS });
367
- return deviceProcessPid(parseDeviceProcesses(readFileSync(out, "utf-8")), appName);
367
+ return appProcessFromPid(deviceProcessPid(parseDeviceProcesses(readFileSync(out, "utf-8")), appName));
368
368
  } catch {
369
- return;
369
+ return { state: "unknown" };
370
370
  } finally {
371
371
  rmSync(dir, {
372
372
  recursive: true,
@@ -427,8 +427,8 @@ async function awaitIosDeviceLaunch({ udid, bundleId, appName, collectorPid = nu
427
427
  for (;;) {
428
428
  const records = collectorRecordsFor(readRecords(), collectorPid);
429
429
  const ended = records.find((entry) => typeof entry.event === "string" && COLLECTOR_ENDED_EVENTS.has(entry.event));
430
- const pid = probeProcess();
431
- if (typeof pid === "number") return { pid };
430
+ const running = probeProcess();
431
+ if (running.state === "running") return { pid: running.pid };
432
432
  if (ended) {
433
433
  const evidence = launchEvidence(records);
434
434
  const lines = evidence.slice(-6);
@@ -482,22 +482,22 @@ async function verifyIosDeviceReleaseLaunch({ udid, appName, waitMs = 3e3, probe
482
482
  }));
483
483
  const startedAt = now();
484
484
  await sleep(Math.max(0, waitMs));
485
- const pid = probeProcess();
485
+ const running = probeProcess();
486
486
  const waitedMs = now() - startedAt;
487
- if (pid === void 0) return {
487
+ if (running.state === "unknown") return {
488
488
  verified: false,
489
489
  reason: "probe-failed",
490
490
  waitedMs
491
491
  };
492
- return pid === null ? {
492
+ return running.state === "running" ? {
493
+ verified: true,
494
+ waitedMs,
495
+ pid: running.pid
496
+ } : {
493
497
  verified: false,
494
498
  reason: "exited",
495
499
  waitedMs,
496
500
  pid: null
497
- } : {
498
- verified: true,
499
- waitedMs,
500
- pid
501
501
  };
502
502
  }
503
503
  const LOCAL_NETWORK_PROHIBITED = /_NSURLErrorNWPathKey=unsatisfied \(Local network prohibited\)/;
@@ -1,4 +1,4 @@
1
- import { t as getExecutor } from "./exec-B81Qodjn.mjs";
1
+ import { t as getExecutor } from "./exec-DqKo9GKJ.mjs";
2
2
  //#region src/collector/ios.ts
3
3
  const MESSAGE_TYPE_LEVEL = {
4
4
  Debug: "debug",
@@ -1,11 +1,11 @@
1
- import { y as workspaceAgentDeviceDir } from "./workspace-state-CvgTFe-h.mjs";
2
- import { i as formatDuration, l as phaseLine } from "./command-output-CPDq_90S.mjs";
3
- import { i as workspaceLinkLine } from "./stim-desktop-8GQX2OV8.mjs";
4
- import { Dt as recordFinishedBuild } from "./budget-RFbwFpG5.mjs";
5
- import { a as easAuthNote, n as UPLOAD_TIMEOUT_MS, r as cacheLevel, s as isEasAuthFailureText } from "./remote-cache-fxcl5C-L.mjs";
6
- import "./launch-verify-Dl78EVgR.mjs";
7
- import { S as compilationCacheActivityLine, _ as COMPILATION_CACHE_NOT_RUN } from "./toolchain-SqehyPLw.mjs";
8
- import { i as deviceLabel } from "./support-Co0wk8Cv.mjs";
1
+ import { y as workspaceAgentDeviceDir } from "./workspace-state-DJt_MMvf.mjs";
2
+ import { i as formatDuration, l as phaseLine } from "./command-output-BTy8hZ0F.mjs";
3
+ import { i as workspaceLinkLine } from "./stim-desktop-BzBN2Em2.mjs";
4
+ import { Dt as recordFinishedBuild } from "./budget-f7516Zk0.mjs";
5
+ import { a as easAuthNote, n as UPLOAD_TIMEOUT_MS, r as cacheLevel, s as isEasAuthFailureText } from "./remote-cache-OyOyVIS3.mjs";
6
+ import "./launch-verify-B6Q8hZP-.mjs";
7
+ import { S as compilationCacheActivityLine, _ as COMPILATION_CACHE_NOT_RUN } from "./toolchain-DxSsNssu.mjs";
8
+ import { i as deviceLabel } from "./support-CwjbFs9H.mjs";
9
9
  import { buildDiagnostics } from "@stim-cli/core/state";
10
10
  import chalk from "chalk";
11
11
  //#region src/commands/ios/result.ts
@@ -1,4 +1,4 @@
1
- import { a as updateWorkspaceState, r as readWorkspaceState$1 } from "./workspace-state-CvgTFe-h.mjs";
1
+ import { a as updateWorkspaceState, r as readWorkspaceState$1 } from "./workspace-state-DJt_MMvf.mjs";
2
2
  import { HOSTED_METRO_REQUESTS_KEY, hostedMetroRequests, hostedNativeRecords, isJsonObject, parseHostedNativePlacement, unreadableHostedNative } from "@stim-cli/core/state";
3
3
  //#region src/device-host/ios-state.ts
4
4
  function readHostedNative(root, platform, slot) {
@@ -1,8 +1,8 @@
1
- import { t as getExecutor } from "./exec-B81Qodjn.mjs";
2
- import { Ft as removeTemporaryEntry, Pt as makeTemporaryDirectory } from "./settings-Bbztm4oV.mjs";
1
+ import { t as getExecutor } from "./exec-DqKo9GKJ.mjs";
2
+ import { Ft as makeTemporaryDirectory, It as removeTemporaryEntry } from "./settings-B717odTD.mjs";
3
3
  import { r as waitForChild, t as createLineReader } from "./process-output-Fpl8PYi8.mjs";
4
- import { t as cleanLine } from "./server-expo-CUuzP9Mp.mjs";
5
- import { M as startBuildHeartbeat, P as tailLines, y as HEARTBEAT_INTERVAL_MS } from "./toolchain-SqehyPLw.mjs";
4
+ import { t as cleanLine } from "./server-expo-DsguMGUF.mjs";
5
+ import { M as startBuildHeartbeat, P as tailLines, y as HEARTBEAT_INTERVAL_MS } from "./toolchain-DxSsNssu.mjs";
6
6
  import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
7
7
  import { basename, join } from "node:path";
8
8
  import { randomUUID } from "node:crypto";
@@ -116,7 +116,7 @@ function readPlistKey(e, plist, key, format) {
116
116
  "-o",
117
117
  "-",
118
118
  plist
119
- ]);
119
+ ], { timeoutMs: 1e4 });
120
120
  } catch (err) {
121
121
  if (/No value at that key path/.test(describe(err))) return null;
122
122
  throw err;
@@ -237,14 +237,14 @@ async function swapJsBundle({ root, iosDir, isExpo, cachedAppPath, logWriter = n
237
237
  "-R",
238
238
  cachedAppPath,
239
239
  appCopy
240
- ]);
240
+ ], { timeoutMs: "unbounded" });
241
241
  } catch {
242
242
  removeTemporaryEntry(appCopy);
243
243
  e.runFile("cp", [
244
244
  "-R",
245
245
  cachedAppPath,
246
246
  appCopy
247
- ]);
247
+ ], { timeoutMs: "unbounded" });
248
248
  }
249
249
  } catch (err) {
250
250
  return fail("copy", `could not copy ${cachedAppPath} aside: ${describe(err)}`);
@@ -353,8 +353,8 @@ async function swapJsBundle({ root, iosDir, isExpo, cachedAppPath, logWriter = n
353
353
  e.runFile(hermesc, hermescArgs({
354
354
  bundle: bundleOutput,
355
355
  out: hbc
356
- }));
357
- e.runFile("mv", [hbc, bundleOutput]);
356
+ }), { timeoutMs: "unbounded" });
357
+ e.runFile("mv", [hbc, bundleOutput], { timeoutMs: 3e4 });
358
358
  hermes = true;
359
359
  } catch (err) {
360
360
  return fail("hermesc", `hermesc failed on ${bundleOutput}: ${describe(err)}`);
@@ -362,12 +362,12 @@ async function swapJsBundle({ root, iosDir, isExpo, cachedAppPath, logWriter = n
362
362
  }
363
363
  }
364
364
  try {
365
- e.runFile("cp", [bundleOutput, join(appCopy, JS_BUNDLE_NAME)]);
365
+ e.runFile("cp", [bundleOutput, join(appCopy, JS_BUNDLE_NAME)], { timeoutMs: "unbounded" });
366
366
  e.runFile("cp", [
367
367
  "-R",
368
368
  `${assetsDest}/.`,
369
369
  `${appCopy}/`
370
- ]);
370
+ ], { timeoutMs: "unbounded" });
371
371
  } catch (err) {
372
372
  return fail("replace", `could not replace the JS bundle inside ${appCopy}: ${describe(err)}`);
373
373
  }
@@ -384,7 +384,7 @@ async function swapJsBundle({ root, iosDir, isExpo, cachedAppPath, logWriter = n
384
384
  catalog: catalogDir,
385
385
  out: catalogBundle,
386
386
  target: catalogTarget
387
- }));
387
+ }), { timeoutMs: "unbounded" });
388
388
  if (!exists(join(catalogBundle, "Assets.car"))) return fail("actool", `actool wrote no Assets.car into ${catalogBundle}`, tailLines(output.split("\n"), LAST_LINES));
389
389
  writeFileSync(join(catalogBundle, "Info.plist"), ASSET_CATALOG_BUNDLE_INFO_PLIST);
390
390
  }
@@ -405,7 +405,7 @@ async function swapJsBundle({ root, iosDir, isExpo, cachedAppPath, logWriter = n
405
405
  "--sign",
406
406
  "-",
407
407
  appCopy
408
- ]);
408
+ ], { timeoutMs: "unbounded" });
409
409
  } catch (err) {
410
410
  return fail("codesign", `codesign --force --sign - ${appCopy} failed: ${describe(err)}`);
411
411
  }
@@ -1,43 +1,44 @@
1
- import { t as getExecutor } from "./exec-B81Qodjn.mjs";
1
+ import { B as deviceSlotKey, E as upsertProject, p as getProject, u as getConcurrencyLimits, v as recordIosSchemeApprovals, z as deviceSlotFileKey } from "./config-BYDxlMY3.mjs";
2
+ import { t as getExecutor } from "./exec-DqKo9GKJ.mjs";
2
3
  import { t as spawnEntry } from "./spawn-entry-Dcb7sDUz.mjs";
3
- import { E as upsertProject, L as deviceSlotFileKey, R as deviceSlotKey, p as getProject, u as getConcurrencyLimits, v as recordIosSchemeApprovals } from "./config-D0LhTY3S.mjs";
4
- import { Et as repoRoot, Ft as removeTemporaryEntry, Pt as makeTemporaryDirectory, W as resolveCacheProviderConfig, Z as settingOriginScope, at as detectProviders, et as settingsLayers, mt as gitCommonDir, q as resolveSettings } from "./settings-Bbztm4oV.mjs";
5
- import { D as fingerprintProject, N as resolveBuild, P as storeBuild, R as untrackedNativeFiles, _ as waitForBuild, g as releaseBuildLock, m as acquireBuildLock } from "./device-lease-C309csaB.mjs";
6
- import { c as writeWorkspaceState, r as readWorkspaceState, w as workspaceLogsDir } from "./workspace-state-CvgTFe-h.mjs";
7
- import { _ as stepTimer, c as launchErrorReport, i as formatDuration, l as phaseLine, n as appReadinessMessage, v as launchErrorPreview } from "./command-output-CPDq_90S.mjs";
8
- import { I as workspaceDevServerMode, R as writeWorkspaceLaunch, _ as detectIsExpo, d as projectRegistry, r as findProjectRoot } from "./project-DX8fXyw_.mjs";
9
- import { a as workspaceLinks } from "./stim-desktop-8GQX2OV8.mjs";
10
- import { d as signalProcessTree, s as pidExists, u as resolveProjectMetro } from "./metro-_ZIE3Axg.mjs";
11
- import { F as acquireBuildSlot, L as releaseBuildSlot } from "./workspaces-C4kqIOlx.mjs";
12
- import { Ft as recordRunStats, Nt as recordCapacityRefusal, jt as readRunEstimates, t as budgetGate } from "./budget-RFbwFpG5.mjs";
4
+ import { Dt as repoRoot, Ft as makeTemporaryDirectory, It as removeTemporaryEntry, W as resolveCacheProviderConfig, Z as settingOriginScope, et as settingsLayers, ht as gitCommonDir, ot as detectProviders, q as resolveSettings } from "./settings-B717odTD.mjs";
5
+ import { D as fingerprintProject, N as resolveBuild, P as storeBuild, R as untrackedNativeFiles, _ as waitForBuild, g as releaseBuildLock, m as acquireBuildLock } from "./device-lease-BX1sJQ2E.mjs";
6
+ import { c as writeWorkspaceState, r as readWorkspaceState, w as workspaceLogsDir } from "./workspace-state-DJt_MMvf.mjs";
7
+ import { _ as stepTimer, c as launchErrorReport, i as formatDuration, l as phaseLine, n as appReadinessMessage, v as launchErrorPreview } from "./command-output-BTy8hZ0F.mjs";
8
+ import { I as workspaceDevServerMode, R as writeWorkspaceLaunch, _ as detectIsExpo, d as projectRegistry, r as findProjectRoot } from "./project-_phNIJfs.mjs";
9
+ import { a as workspaceLinks } from "./stim-desktop-BzBN2Em2.mjs";
10
+ import { d as signalProcessTree, s as pidExists, u as resolveProjectMetro } from "./metro-DnCEjCxs.mjs";
11
+ import { F as acquireBuildSlot, L as releaseBuildSlot } from "./workspaces-C36s2jb9.mjs";
12
+ import { Ft as recordRunStats, Nt as recordCapacityRefusal, jt as readRunEstimates, t as budgetGate } from "./budget-f7516Zk0.mjs";
13
+ import { t as cancellableSleep } from "./cancellation-C_22VQTH.mjs";
13
14
  import { r as createNdjsonWriter } from "./ndjson-GOnbyvso.mjs";
14
- import { c as loadProjectProvider, f as resolveEasCliBin, i as checkEasAuth, m as uploadRemote, p as resolveRemote } from "./remote-cache-fxcl5C-L.mjs";
15
- import { c as startDevServer, g as detectBundleId } from "./start-CRkG-mZ7.mjs";
16
- import { d as listAllIosSims, m as listIosRuntimes, r as clearIosAppData } from "./ios-o896T9PE.mjs";
17
- import { c as readMetroRecords, f as verifyLaunch, i as RELEASE_VERIFY_WAIT_MS, l as unattributedLaunchLines, n as LAUNCH_FATAL, o as isBundleProof, p as verifyReleaseLaunch, r as LAUNCH_UNVERIFIED, s as readCollectorRecords, t as LAUNCH_BUNDLING, u as unverifiedLaunchLines } from "./launch-verify-Dl78EVgR.mjs";
18
- import { S as restartedAppNote, _ as installIosApp, a as IOS_DEV_MENU_OFF_DEFAULTS_PLIST, d as devClientUrl, l as clearOtherUserApps, v as iosAppProcess, x as launchIosApp } from "./app-install-Cg9YJy3x.mjs";
19
- import { a as sleep, i as launchOutcomeRecord, n as ensureWorkspaceStorageSafely } from "./native-runtime-D024BAvm.mjs";
20
- import { A as readBundleId, f as podsAreStale, g as runPodInstall, j as resolveScheme, k as readBundleExecutable, p as readPodState } from "./toolchain-SqehyPLw.mjs";
21
- import { r as checkDeviceCapacity } from "./device-capacity-DrwHwR97.mjs";
22
- import { n as devClientTakesDevMenuParams, t as devClientScheme } from "./dev-client-BqYjMIaC.mjs";
23
- import { a as discoverXcodeProject, r as buildIos } from "./react-native-build-JUF31S8U.mjs";
24
- import { a as acquireRunLease, c as lostRefusal, d as runLease, s as lostLine, t as DEBUG_VERIFY_STEP_MS, u as releaseLeaseOnSignal } from "./device-lease-run-Baelt3nc.mjs";
25
- import { n as readHostedIos, o as writeHostedIos } from "./ios-state-BsXMwo5y.mjs";
26
- import { o as checkEasFallback, s as automaticDevicePlacement } from "./build-plan-CRjAA6Qi.mjs";
27
- import { n as nativeRunCommand, r as siblingPlatformSlots, t as launchSlotScope } from "./slot-launch-CeCRr6MK.mjs";
28
- import { D as gateMetroOrigin, E as readRemoteSimulatorArch, a as ensureMetroReachable, l as remoteIosDeps, o as ensureRemoteBootOwned, r as bundleEntryPoint, u as resolveRemoteContext } from "./device-remote-DjsNw8DD.mjs";
29
- import { a as resolveEasDevelopmentBuild } from "./eas-build-0gadvrca.mjs";
30
- import { n as verifyCollectorOwnership } from "./ownership-BrjepDiv.mjs";
31
- import { n as ensureBooted, o as warmMetro, r as ensureOwnedDevice } from "./device-D4DqjSZZ.mjs";
32
- import { n as clearIosAdoptionPending } from "./device-ios-DE8KJd3b.mjs";
33
- import { t as selectFromPool } from "./device-pool-DtK9S6AD.mjs";
34
- import { a as printNativeCrashReport, n as IOS_CRASH_REPORT_RETRY, o as simulatorConsolePaths, r as captureNativeCrashes, t as errorDiagnostics } from "./error-diagnostics-BhQtoLrZ.mjs";
35
- import { r as runPrebuild, t as planPrebuild } from "./prebuild-DB_zLOLc.mjs";
36
- import { i as deviceLabel, o as deviceShortName, t as appNameFromPath } from "./support-Co0wk8Cv.mjs";
37
- import { o as reportIosResult } from "./ios-project-BeOXKPt2.mjs";
38
- import { n as prepareHostedIos, t as placeHostedIos } from "./hosted-ios-Chx9XQyI.mjs";
39
- import { c as isWirelessIosDevice, i as iosDeviceProcess, l as listIosDevices, n as installIosDeviceApp, p as verifyIosDeviceReleaseLaunch, r as iosDeviceBounds, t as awaitIosDeviceLaunch, u as localNetworkPending } from "./ios-device-BWHKGaJq.mjs";
40
- import { i as swapJsBundle } from "./js-swap-Z_mSuRrx.mjs";
15
+ import { c as loadProjectProvider, f as resolveEasCliBin, i as checkEasAuth, m as uploadRemote, p as resolveRemote } from "./remote-cache-OyOyVIS3.mjs";
16
+ import { c as startDevServer, g as detectBundleId } from "./start-BWqzODpb.mjs";
17
+ import { d as listAllIosSims, m as listIosRuntimes, r as clearIosAppData } from "./ios-RkW4pnQf.mjs";
18
+ import { c as readMetroRecords, f as verifyLaunch, i as RELEASE_VERIFY_WAIT_MS, l as unattributedLaunchLines, n as LAUNCH_FATAL, o as isBundleProof, p as verifyReleaseLaunch, r as LAUNCH_UNVERIFIED, s as readCollectorRecords, t as LAUNCH_BUNDLING, u as unverifiedLaunchLines } from "./launch-verify-B6Q8hZP-.mjs";
19
+ import { C as restartedAppNote, S as launchIosApp, a as IOS_DEV_MENU_OFF_DEFAULTS_PLIST, f as devClientUrl, u as clearOtherUserApps, v as installIosApp, y as iosAppProcess } from "./app-install-BIKtMfPq.mjs";
20
+ import { i as launchOutcomeRecord, n as ensureWorkspaceStorageSafely } from "./native-runtime-k8dTIrbK.mjs";
21
+ import { A as readBundleId, f as podsAreStale, g as runPodInstall, j as resolveScheme, k as readBundleExecutable, p as readPodState } from "./toolchain-DxSsNssu.mjs";
22
+ import { r as checkDeviceCapacity } from "./device-capacity-CBUAcRyQ.mjs";
23
+ import { n as devClientTakesDevMenuParams, t as devClientScheme } from "./dev-client-DAWVIGBu.mjs";
24
+ import { a as discoverXcodeProject, r as buildIos } from "./react-native-build-CtCccJtb.mjs";
25
+ import { a as acquireRunLease, c as lostRefusal, d as runLease, s as lostLine, t as DEBUG_VERIFY_STEP_MS, u as releaseLeaseOnSignal } from "./device-lease-run-Cw2M4z51.mjs";
26
+ import { n as readHostedIos, o as writeHostedIos } from "./ios-state-CBLe1xYw.mjs";
27
+ import { o as checkEasFallback, s as automaticDevicePlacement } from "./build-plan-B7SZsc2N.mjs";
28
+ import { n as nativeRunCommand, r as siblingPlatformSlots, t as launchSlotScope } from "./slot-launch-DPt0m9Nd.mjs";
29
+ import { D as gateMetroOrigin, E as readRemoteSimulatorArch, a as ensureMetroReachable, l as remoteIosDeps, o as ensureRemoteBootOwned, r as bundleEntryPoint, u as resolveRemoteContext } from "./device-remote-xRT0Vmo9.mjs";
30
+ import { a as resolveEasDevelopmentBuild } from "./eas-build-JyfqyHfC.mjs";
31
+ import { n as verifyCollectorOwnership } from "./ownership-DCtw_2IA.mjs";
32
+ import { n as ensureBooted, o as warmMetro, r as ensureOwnedDevice } from "./device-BECOiufl.mjs";
33
+ import { n as clearIosAdoptionPending } from "./device-ios-COSi6oS1.mjs";
34
+ import { t as selectFromPool } from "./device-pool-Bf-pOhSw.mjs";
35
+ import { a as printNativeCrashReport, n as IOS_CRASH_REPORT_RETRY, o as simulatorConsolePaths, r as captureNativeCrashes, t as errorDiagnostics } from "./error-diagnostics-BR677IDM.mjs";
36
+ import { r as runPrebuild, t as planPrebuild } from "./prebuild-DYbucPXy.mjs";
37
+ import { i as deviceLabel, o as deviceShortName, t as appNameFromPath } from "./support-CwjbFs9H.mjs";
38
+ import { o as reportIosResult } from "./ios-project-K9hY_Jab.mjs";
39
+ import { n as prepareHostedIos, t as placeHostedIos } from "./hosted-ios-l-o3iM9J.mjs";
40
+ import { c as isWirelessIosDevice, i as iosDeviceProcess, l as listIosDevices, n as installIosDeviceApp, p as verifyIosDeviceReleaseLaunch, r as iosDeviceBounds, t as awaitIosDeviceLaunch, u as localNetworkPending } from "./ios-device-D7pi2Sca.mjs";
41
+ import { i as swapJsBundle } from "./js-swap-Bb3nsS07.mjs";
41
42
  import { existsSync, mkdirSync, mkdtempSync, openSync, rmSync, writeFileSync } from "node:fs";
42
43
  import { basename, join } from "node:path";
43
44
  import { loadCacheProvider } from "@stim-cli/cache";
@@ -559,7 +560,7 @@ function copyAppAside(appPath, { exec = null, mkdtemp = () => makeTemporaryDirec
559
560
  "-R",
560
561
  appPath,
561
562
  copy
562
- ]);
563
+ ], { timeoutMs: "unbounded" });
563
564
  } catch {
564
565
  try {
565
566
  removeTemporaryEntry(copy);
@@ -567,7 +568,7 @@ function copyAppAside(appPath, { exec = null, mkdtemp = () => makeTemporaryDirec
567
568
  "-R",
568
569
  appPath,
569
570
  copy
570
- ]);
571
+ ], { timeoutMs: "unbounded" });
571
572
  } catch (error) {
572
573
  removeTemporaryEntry(tmpDir);
573
574
  throw error;
@@ -645,7 +646,7 @@ async function stopPreviousCollector({ root, slot = "default", kill = (pid, sign
645
646
  if (err?.code !== "ESRCH") note(chalk.yellow(`Could not stop the previous ios log collector (pid ${previousPid}): ${err?.message || err}`));
646
647
  }
647
648
  const deadline = Date.now() + waitMs;
648
- while (Date.now() < deadline && alive(previousPid)) await sleep(COLLECTOR_POLL_MS);
649
+ while (Date.now() < deadline && alive(previousPid)) await cancellableSleep(COLLECTOR_POLL_MS);
649
650
  } else if (ownership.status === "unverified") note(chalk.dim(`Previous ios log collector (pid ${previousPid}): ${ownership.reason}, so it was not signalled -- starting a replacement anyway`));
650
651
  }
651
652
  return { killed };
@@ -897,11 +898,11 @@ async function verifyIosMetroRun({ root, slot, appPath, d, launched, phase, note
897
898
  physical
898
899
  }, logsDir);
899
900
  const deviceProcess = () => {
900
- const pid = d.iosDeviceProcess({
901
+ const running = d.iosDeviceProcess({
901
902
  udid,
902
903
  appName: appName ?? bundleId
903
904
  });
904
- return pid === void 0 ? null : pid !== null;
905
+ return running.state === "unknown" ? null : running.state === "running";
905
906
  };
906
907
  const siblings = metroCheck ? siblingPlatformSlots(root, "ios", slot) : [];
907
908
  const verification = metroCheck ? await d.verifyLaunch({
@@ -919,8 +920,8 @@ async function verifyIosMetroRun({ root, slot, appPath, d, launched, phase, note
919
920
  readNativeCrashes,
920
921
  processAlive: remoteDevice ? null : physical ? deviceProcess : () => {
921
922
  if (launched?.pid) return d.pidExists(launched.pid);
922
- const pid = iosAppProcess(udid, bundleId);
923
- return pid === void 0 ? null : pid !== null;
923
+ const running = iosAppProcess(udid, bundleId);
924
+ return running.state === "unknown" ? null : running.state === "running";
924
925
  }
925
926
  }) : {
926
927
  verified: false,
@@ -1,23 +1,23 @@
1
+ import { B as deviceSlotKey, C as saveConfig, D as withConfigLock, E as upsertProject, N as formatBytes, V as deviceSlotPlatforms, _ as loadConfig, w as setDevice, z as deviceSlotFileKey } from "./config-BYDxlMY3.mjs";
1
2
  import { t as spawnEntry } from "./spawn-entry-Dcb7sDUz.mjs";
2
- import { C as saveConfig, D as withConfigLock, E as upsertProject, L as deviceSlotFileKey, R as deviceSlotKey, _ as loadConfig, j as formatBytes, w as setDevice, z as deviceSlotPlatforms } from "./config-D0LhTY3S.mjs";
3
- import { j as providerUploadOutcome } from "./device-lease-C309csaB.mjs";
4
- import { w as workspaceLogsDir } from "./workspace-state-CvgTFe-h.mjs";
5
- import { _ as stepTimer, c as launchErrorReport, i as formatDuration, l as phaseLine, n as appReadinessMessage, v as launchErrorPreview } from "./command-output-CPDq_90S.mjs";
6
- import { I as workspaceDevServerMode } from "./project-DX8fXyw_.mjs";
7
- import { a as workspaceLinks } from "./stim-desktop-8GQX2OV8.mjs";
8
- import { $ as trimAndroidCaches, i as androidDataFreeBytes, q as resetAdoptedAvd, u as androidToolCwd } from "./android-DE8-JfGW.mjs";
9
- import { d as signalProcessTree, s as pidExists } from "./metro-_ZIE3Axg.mjs";
10
- import { v as teardownOwnedAvd } from "./workspaces-C4kqIOlx.mjs";
11
- import { o as exitAfterFlush } from "./remote-cache-fxcl5C-L.mjs";
12
- import { a as VERIFY_TIMEOUT_MS, i as RELEASE_VERIFY_WAIT_MS, l as unattributedLaunchLines, n as LAUNCH_FATAL, r as LAUNCH_UNVERIFIED, t as LAUNCH_BUNDLING, u as unverifiedLaunchLines } from "./launch-verify-Dl78EVgR.mjs";
13
- import { S as restartedAppNote, c as androidDevClientUrl, g as installConflictKind, s as androidAppProcess, t as ADB_INSTALL_TIMEOUT_MS } from "./app-install-Cg9YJy3x.mjs";
14
- import { i as launchOutcomeRecord } from "./native-runtime-D024BAvm.mjs";
15
- import { a as PLATFORM, b as noDeviceDiagnostic, h as displayPath, n as LAUNCH_FAILED, r as NO_DEVICE, t as INSTALL_FAILED } from "./support-Ca6PZbpr.mjs";
16
- import { c as lostRefusal, s as lostLine, t as DEBUG_VERIFY_STEP_MS } from "./device-lease-run-Baelt3nc.mjs";
17
- import { a as reportAndroidResult, i as persistLastBuild, n as finishAndroidUpload } from "./result-BrfgXtdO.mjs";
18
- import { n as nativeRunCommand, r as siblingPlatformSlots, t as launchSlotScope } from "./slot-launch-CeCRr6MK.mjs";
19
- import { n as verifyCollectorOwnership, r as readCollectors } from "./ownership-BrjepDiv.mjs";
20
- import { a as printNativeCrashReport, r as captureNativeCrashes, t as errorDiagnostics } from "./error-diagnostics-BhQtoLrZ.mjs";
3
+ import { j as providerUploadOutcome } from "./device-lease-BX1sJQ2E.mjs";
4
+ import { w as workspaceLogsDir } from "./workspace-state-DJt_MMvf.mjs";
5
+ import { _ as stepTimer, c as launchErrorReport, i as formatDuration, l as phaseLine, n as appReadinessMessage, v as launchErrorPreview } from "./command-output-BTy8hZ0F.mjs";
6
+ import { I as workspaceDevServerMode } from "./project-_phNIJfs.mjs";
7
+ import { a as workspaceLinks } from "./stim-desktop-BzBN2Em2.mjs";
8
+ import { $ as trimAndroidCaches, i as androidDataFreeBytes, q as resetAdoptedAvd, u as androidToolCwd } from "./android-Mz_Inn3w.mjs";
9
+ import { d as signalProcessTree, s as pidExists } from "./metro-DnCEjCxs.mjs";
10
+ import { v as teardownOwnedAvd } from "./workspaces-C36s2jb9.mjs";
11
+ import { o as exitAfterFlush } from "./remote-cache-OyOyVIS3.mjs";
12
+ import { a as VERIFY_TIMEOUT_MS, i as RELEASE_VERIFY_WAIT_MS, l as unattributedLaunchLines, n as LAUNCH_FATAL, r as LAUNCH_UNVERIFIED, t as LAUNCH_BUNDLING, u as unverifiedLaunchLines } from "./launch-verify-B6Q8hZP-.mjs";
13
+ import { C as restartedAppNote, _ as installConflictKind, c as androidDevClientUrl, s as androidAppProcess, t as ADB_INSTALL_TIMEOUT_MS } from "./app-install-BIKtMfPq.mjs";
14
+ import { i as launchOutcomeRecord } from "./native-runtime-k8dTIrbK.mjs";
15
+ import { a as PLATFORM, b as noDeviceDiagnostic, h as displayPath, n as LAUNCH_FAILED, r as NO_DEVICE, t as INSTALL_FAILED } from "./support-DMTqj3Hm.mjs";
16
+ import { c as lostRefusal, s as lostLine, t as DEBUG_VERIFY_STEP_MS } from "./device-lease-run-Cw2M4z51.mjs";
17
+ import { a as reportAndroidResult, i as persistLastBuild, n as finishAndroidUpload } from "./result-CaJg5Iat.mjs";
18
+ import { n as nativeRunCommand, r as siblingPlatformSlots, t as launchSlotScope } from "./slot-launch-DPt0m9Nd.mjs";
19
+ import { n as verifyCollectorOwnership, r as readCollectors } from "./ownership-DCtw_2IA.mjs";
20
+ import { a as printNativeCrashReport, r as captureNativeCrashes, t as errorDiagnostics } from "./error-diagnostics-BR677IDM.mjs";
21
21
  import { mkdirSync, openSync, statSync } from "node:fs";
22
22
  import { basename, join } from "node:path";
23
23
  import chalk from "chalk";
@@ -217,8 +217,8 @@ async function verifyAndroidMetroRun({ root, slot, remoteDevice, verifyLaunched,
217
217
  mode: workspaceDevServerMode(root, isExpo),
218
218
  readNativeCrashes,
219
219
  processAlive: () => {
220
- const pid = androidAppProcess(serial, androidPackage);
221
- return pid === void 0 ? null : pid !== null;
220
+ const running = androidAppProcess(serial, androidPackage);
221
+ return running.state === "unknown" ? null : running.state === "running";
222
222
  }
223
223
  }) : {
224
224
  verified: false,
@@ -1,8 +1,8 @@
1
- import { t as getExecutor } from "./exec-B81Qodjn.mjs";
2
- import { s as isAppLaunchError } from "./command-output-CPDq_90S.mjs";
1
+ import { t as getExecutor } from "./exec-DqKo9GKJ.mjs";
2
+ import { s as isAppLaunchError } from "./command-output-BTy8hZ0F.mjs";
3
3
  import { s as readNdjsonGenerations } from "./ndjson-GOnbyvso.mjs";
4
- import { t as DEV_MENU_LAUNCH_ARGS } from "./ios-device-B1B14xND.mjs";
5
- import { f as deviceShellArg, n as ANDROID_DISABLE_AUTO_LAUNCH_EXTRA, s as androidAppProcess } from "./app-install-Cg9YJy3x.mjs";
4
+ import { t as DEV_MENU_LAUNCH_ARGS } from "./ios-device-B5veSDDQ.mjs";
5
+ import { n as ANDROID_DISABLE_AUTO_LAUNCH_EXTRA, p as deviceShellArg, s as androidAppProcess } from "./app-install-BIKtMfPq.mjs";
6
6
  import { join } from "node:path";
7
7
  //#region src/engine/app-readiness.ts
8
8
  const APP_READINESS_TIMEOUT_MS = 3e4;
@@ -39,22 +39,22 @@ async function verifyAndroidReleaseLaunch({ serial, packageName, waitMs = RELEAS
39
39
  const e = exec || getExecutor();
40
40
  const startedAt = now();
41
41
  await sleep(Math.max(0, waitMs));
42
- const pid = androidAppProcess(serial, packageName, { exec: e });
42
+ const running = androidAppProcess(serial, packageName, { exec: e });
43
43
  const waitedMs = now() - startedAt;
44
- if (pid === void 0) return {
44
+ if (running.state === "unknown") return {
45
45
  verified: false,
46
46
  reason: "probe-failed",
47
47
  waitedMs
48
48
  };
49
- return pid === null ? {
49
+ return running.state === "running" ? {
50
+ verified: true,
51
+ waitedMs,
52
+ pid: running.pid
53
+ } : {
50
54
  verified: false,
51
55
  reason: "exited",
52
56
  waitedMs,
53
57
  pid: null
54
- } : {
55
- verified: true,
56
- waitedMs,
57
- pid
58
58
  };
59
59
  }
60
60
  function isProcessAlive(pid) {
@@ -1,15 +1,14 @@
1
- import { t as process_identity_exports } from "./process-identity-Biv3arCO.mjs";
2
- import { H as projectDeviceSlots, V as parseDeviceSlotOption, _ as loadConfig$1, g as isPathPrefix } from "./config-D0LhTY3S.mjs";
3
- import { r as readWorkspaceState$1, w as workspaceLogsDir$1 } from "./workspace-state-CvgTFe-h.mjs";
4
- import { f as refuseNoProject, l as phaseLine, v as launchErrorPreview } from "./command-output-CPDq_90S.mjs";
5
- import { n as findCommandWorkspace } from "./project-DX8fXyw_.mjs";
1
+ import { U as parseDeviceSlotOption, W as projectDeviceSlots, _ as loadConfig$1, g as isPathPrefix, k as process_identity_exports } from "./config-BYDxlMY3.mjs";
2
+ import { r as readWorkspaceState$1, w as workspaceLogsDir$1 } from "./workspace-state-DJt_MMvf.mjs";
3
+ import { f as refuseNoProject, l as phaseLine, v as launchErrorPreview } from "./command-output-BTy8hZ0F.mjs";
4
+ import { n as findCommandWorkspace } from "./project-_phNIJfs.mjs";
6
5
  import { n as SOURCES, t as LEVELS } from "./ndjson-GOnbyvso.mjs";
7
- import { n as agentDeviceLiveness, u as readAgentDeviceRecords } from "./activity-BaMpUQ4-.mjs";
8
- import { s as connectHost } from "./hosted-client--hNFgixu.mjs";
9
- import { n as pullHostedNativeLogs, t as pullHostedMacosLogs } from "./hosted-logs-Bkz0Hxzh.mjs";
10
- import { n as readHostedIos, t as readHostedAndroid } from "./ios-state-BsXMwo5y.mjs";
11
- import { i as captureWorkspaceCrashes, t as errorDiagnostics } from "./error-diagnostics-BhQtoLrZ.mjs";
12
- import "./hosted-macos-ckTjN-0V.mjs";
6
+ import { n as agentDeviceLiveness, u as readAgentDeviceRecords } from "./activity-BSV745Kz.mjs";
7
+ import { c as connectHost } from "./hosted-client-ZEKpS9vw.mjs";
8
+ import { n as pullHostedNativeLogs, t as pullHostedMacosLogs } from "./hosted-logs-EzQM7-3Z.mjs";
9
+ import { n as readHostedIos, t as readHostedAndroid } from "./ios-state-CBLe1xYw.mjs";
10
+ import { i as captureWorkspaceCrashes, t as errorDiagnostics } from "./error-diagnostics-BR677IDM.mjs";
11
+ import "./hosted-macos-BACVAVqE.mjs";
13
12
  import { t as watchStdoutReader } from "./stdout-reader-C8yjre1x.mjs";
14
13
  import { realpathSync } from "node:fs";
15
14
  import { dirname, join, relative, resolve, sep } from "node:path";