stim 1.32.0 → 1.34.0

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 (173) hide show
  1. package/dist/{acquire-artifact-CI9fIokp.mjs → acquire-artifact-B0SWoVNt.mjs} +2 -2
  2. package/dist/{act-BfChMxcU.mjs → act-7f7wIvCQ.mjs} +22 -22
  3. package/dist/{activity-yjH7Q3zn.mjs → activity-DkS-Ir6V.mjs} +6 -6
  4. package/dist/{agent-device-usage-output-DO412bsG.mjs → agent-device-usage-output-BVdgKbfz.mjs} +5 -5
  5. package/dist/{android-BeeC15Ve.mjs → android-B2DSKg-A.mjs} +2 -2
  6. package/dist/{android-D56S_GX3.mjs → android-BU4uBX8I.mjs} +5 -5
  7. package/dist/{android-BNm5A40S.mjs → android-D7qjT2fq.mjs} +87 -53
  8. package/dist/{android-DsEj2CCs.mjs → android-Iq0M2t2d.mjs} +27 -15
  9. package/dist/{android-cas-CbumHXIq.mjs → android-cas-Dhcjkys1.mjs} +4 -4
  10. package/dist/android-cas-compiler.mjs +1 -1
  11. package/dist/android-image-DFk26aY6.mjs +254 -0
  12. package/dist/{android-project-CCEQyYJK.d.mts → android-project-DhO6el8N.d.mts} +2 -2
  13. package/dist/api.d.mts +2 -1
  14. package/dist/api.mjs +28 -28
  15. package/dist/{apk-signed-tail-B9Usseps.mjs → apk-signed-tail-CPpA-3vu.mjs} +2 -2
  16. package/dist/{artifact-k1x9Jrn0.mjs → artifact-CNnTZs3R.mjs} +34 -21
  17. package/dist/{artifact-C8Nvp07y.mjs → artifact-DmRtKFXW.mjs} +13 -13
  18. package/dist/{artifact-platform-BO2Uvk_A.mjs → artifact-platform-DqCWUieN.mjs} +1 -1
  19. package/dist/{auto-placement--nfdQ9rp.mjs → auto-placement-DA65VQH7.mjs} +11 -9
  20. package/dist/{browser-web-6RDAeH0z.mjs → browser-web-Dn_hgKZC.mjs} +15 -15
  21. package/dist/{build-VXX_dtl5.mjs → build-D7SuVoRX.mjs} +23 -23
  22. package/dist/build-artifact-cache-D7B6seMj.mjs +174 -0
  23. package/dist/build-artifact-cache.d.mts +25 -0
  24. package/dist/build-artifact-cache.mjs +2 -0
  25. package/dist/{build-cache-BsKim4V7.mjs → build-cache-Cqj4FGnX.mjs} +20 -8
  26. package/dist/{build-plan-BK34X2iY.mjs → build-plan-Ct1FiA3E.mjs} +7 -7
  27. package/dist/{cache-manifest-CfiEny4T.mjs → cache-manifest-8JX9S1QJ.mjs} +1 -1
  28. package/dist/cache-manifest.mjs +1 -1
  29. package/dist/{ccache-BrwGIxmV.mjs → ccache-ChBMXlBq.mjs} +35 -67
  30. package/dist/{cdp-C3svvXiE.mjs → cdp-C216kOAn.mjs} +1 -1
  31. package/dist/{chrome-DyDWurWG.mjs → chrome-C8sC5tdl.mjs} +1 -1
  32. package/dist/{cli-Jc7obreB.mjs → cli-DjdvQG5U.mjs} +20 -20
  33. package/dist/cli.mjs +1 -1
  34. package/dist/{client-lDmA-5jx.mjs → client-kU37gURU.mjs} +70 -13
  35. package/dist/collector-run.mjs +7 -7
  36. package/dist/{command-output-CfPW1bKP.mjs → command-output-DjExb_tZ.mjs} +1 -1
  37. package/dist/{config-D5qNWJEP.mjs → config-BW0fAtoK.mjs} +256 -246
  38. package/dist/{dependencies-DkZ8681S.mjs → dependencies-CZ7c8XX_.mjs} +39 -39
  39. package/dist/{dependency-state-DZVln1P9.mjs → dependency-state-mL5g4H6K.mjs} +2 -2
  40. package/dist/{detached-entry-BPlSaCwC.mjs → detached-entry-tfrgGVWb.mjs} +1 -1
  41. package/dist/{dev-client-eDZy6RoX.mjs → dev-client-D3wOllNd.mjs} +2 -2
  42. package/dist/{device-CeIikWac.mjs → device-CWPFAqs0.mjs} +13 -13
  43. package/dist/{device-CTozKhU0.mjs → device-DH5yf6TU.mjs} +11 -11
  44. package/dist/{device-android-zgD9We85.mjs → device-android-ChfF5I9A.mjs} +10 -10
  45. package/dist/{device-capacity-Bki6B-7h.mjs → device-capacity-CHC3dKWg.mjs} +9 -9
  46. package/dist/device-host-worker.mjs +58 -17
  47. package/dist/{device-ios-TE5ejeXx.mjs → device-ios-B3-Ah--R.mjs} +9 -9
  48. package/dist/{device-lease-run-DeNGjJZM.mjs → device-lease-run-i3FNX4OE.mjs} +5 -5
  49. package/dist/{device-pool-mjyUYaau.mjs → device-pool-EZziQ0uS.mjs} +3 -3
  50. package/dist/{device-provision-j_B7G0e6.mjs → device-provision-CfpEy-Vm.mjs} +10 -10
  51. package/dist/{doctor-sSLtn-j1.mjs → doctor-B5uEZiKp.mjs} +30 -17
  52. package/dist/{doctor-CNZuvTSe.mjs → doctor-CGBsS_68.mjs} +1 -1
  53. package/dist/{doctor-BlrcoQ7B.mjs → doctor-dwRboaXx.mjs} +54 -25
  54. package/dist/{doctor-fingerprint-o7ZI9YLn.mjs → doctor-fingerprint-DqWvIhMb.mjs} +1 -1
  55. package/dist/doctor-fingerprint.mjs +1 -1
  56. package/dist/{doctor-watchman-CCuboyj1.mjs → doctor-watchman-r7M9UPi0.mjs} +5 -5
  57. package/dist/{eas-build-CaG-Sfs9.mjs → eas-build-BpHIt_M3.mjs} +4 -4
  58. package/dist/{eas-fallback-BpX1lpco.mjs → eas-fallback-CNPcjq3K.mjs} +6 -6
  59. package/dist/{eas-session-ledger-B-nTfdfk.mjs → eas-session-ledger-CXwagcQ7.mjs} +6 -6
  60. package/dist/{error-diagnostics-q56Im4D8.mjs → error-diagnostics-Ym2mjmJ0.mjs} +10 -10
  61. package/dist/{exec-aULwtNly.mjs → exec-CGuDzt40.mjs} +103 -103
  62. package/dist/{gc-By2Kc-Ek.mjs → gc-B464w_a5.mjs} +2 -2
  63. package/dist/{gc-Dv6nb9nf.mjs → gc-C7YxKNci.mjs} +25 -54
  64. package/dist/{guide-CwpsGWTJ.mjs → guide-BFW-cB7R.mjs} +141 -44
  65. package/dist/{hosted-android-c5nPJA6S.mjs → hosted-android-B7yfqXEy.mjs} +4 -4
  66. package/dist/{hosted-client-Hs-fD4L3.mjs → hosted-client-CQuzZwAu.mjs} +6 -5
  67. package/dist/{hosted-logs-BteXG8rm.mjs → hosted-logs-DfYCqrrR.mjs} +7 -7
  68. package/dist/{hosted-logs-sync-B8bjLEMs.mjs → hosted-logs-sync-Dlpa2mQF.mjs} +5 -5
  69. package/dist/{hosted-macos-B4byscei.mjs → hosted-macos-JKefapEm.mjs} +6 -6
  70. package/dist/{hosted-native-Bh9IJ_t5.mjs → hosted-native-B7OFt5gB.mjs} +14 -10
  71. package/dist/{idle-shutdown-BaeCo4ps.mjs → idle-shutdown-DPD8oV36.mjs} +6 -6
  72. package/dist/{ios-CdAV4-1E.mjs → ios-BdZdNsAj.mjs} +6 -6
  73. package/dist/{ios-D3oK9-O4.mjs → ios-DSBs9c6d.mjs} +28 -28
  74. package/dist/{ios-CsRVik64.mjs → ios-Qam0bT9n.mjs} +1 -1
  75. package/dist/{ios-device-CiBA-er9.mjs → ios-device-DLdEDWJj.mjs} +1 -1
  76. package/dist/{ios-device-D7Gi3e1I.mjs → ios-device-Drplrgzo.mjs} +3 -3
  77. package/dist/{ios-project-DDQlX_jX.mjs → ios-project-DoTQYghg.mjs} +7 -7
  78. package/dist/{ios-D1XKSITX.mjs → ios-sUPbWqEh.mjs} +8 -8
  79. package/dist/ios-signing-R34vbrNU.mjs +202 -0
  80. package/dist/{ios-state-BEIJRJ7P.mjs → ios-state-CWsBysyN.mjs} +1 -1
  81. package/dist/{js-swap-C8N5DXHl.mjs → js-swap-DrokhOfo.mjs} +6 -6
  82. package/dist/{launch-DxpvL6il.mjs → launch-Cy-MWEZc.mjs} +20 -20
  83. package/dist/{lightened-Df6II_XI.mjs → lightened-ALwQcQtV.mjs} +5 -5
  84. package/dist/{logs-zv3ge7c6.mjs → logs-DWT7jGpF.mjs} +6 -6
  85. package/dist/{logs-CuWJWF88.mjs → logs-DuED-01Z.mjs} +7 -7
  86. package/dist/{macos-C6U-4Iip.mjs → macos-CtBtA_hW.mjs} +22 -22
  87. package/dist/{macos-CbRZheLw.mjs → macos-kWGcfLzx.mjs} +1 -1
  88. package/dist/macos-run.mjs +1 -1
  89. package/dist/maintenance-run.mjs +6 -6
  90. package/dist/{metro-mKHEMO-a.mjs → metro-B5PVz0Wv.mjs} +4 -4
  91. package/dist/{metro-request-DODHNXCN.mjs → metro-request-2LmFpC1z.mjs} +2 -2
  92. package/dist/{named-ports-B0hCk2v-.mjs → named-ports-CA0nB9Yw.mjs} +3 -3
  93. package/dist/{native-android-9dVFqvTT.mjs → native-android-tISP2EVp.mjs} +29 -19
  94. package/dist/{native-gradle-artifact-inputs-BlY97pt8.mjs → native-gradle-artifact-inputs-DVoeZkrw.mjs} +5 -5
  95. package/dist/{native-runtime-DQfxW5Au.mjs → native-runtime-CNgxeOCG.mjs} +6 -6
  96. package/dist/{native-source-D1AzWiuP.mjs → native-source-ChAGj7R1.mjs} +1 -1
  97. package/dist/{native-xcode-inputs-tDuUvSU8.mjs → native-xcode-inputs-DGzkhpu4.mjs} +3 -3
  98. package/dist/{native-xcode-ios-CG-PD-7g.mjs → native-xcode-ios-B9nsfId2.mjs} +17 -17
  99. package/dist/offload-worker.d.mts +8 -1
  100. package/dist/offload-worker.mjs +62 -23
  101. package/dist/{operation-exec-Dp4FuIGR.mjs → operation-exec-DKlBcKAL.mjs} +1 -1
  102. package/dist/{ownership-CCfiBfOP.mjs → ownership-hC7xvvxF.mjs} +3 -3
  103. package/dist/{page-CQJlcj3x.mjs → page-Dj8IqvGM.mjs} +2 -2
  104. package/dist/{phone-reverses-CnNwdz9A.mjs → phone-reverses-Bo0EzJ-P.mjs} +4 -4
  105. package/dist/{placement-log-CRL0IY-k.mjs → placement-log-BsGvKLtU.mjs} +1 -1
  106. package/dist/{plan-placement-2imvnlWP.mjs → plan-placement-Am0IjuxB.mjs} +6 -6
  107. package/dist/{ports-CKktj5lV.mjs → ports-CNzg1LYD.mjs} +3 -3
  108. package/dist/{prebuild-CyNrUWgV.mjs → prebuild-BfJII57G.mjs} +12 -12
  109. package/dist/{project-Crtcbfl0.mjs → project-DU3jjnBE.mjs} +16 -16
  110. package/dist/{pull-request-BzLmzAIQ.mjs → pull-request-BpMTNkMB.mjs} +2 -2
  111. package/dist/pull-requests.mjs +1 -1
  112. package/dist/{react-native-android-Cabe2YER.mjs → react-native-android-3dZiJv-4.mjs} +37 -33
  113. package/dist/{react-native-build-DhWBUV_H.mjs → react-native-build-CuvNPt-q.mjs} +10 -10
  114. package/dist/{react-native-doctor-D-twmBon.mjs → react-native-doctor-a35BwMUO.mjs} +6 -6
  115. package/dist/{react-native-ios-u_ley41B.mjs → react-native-ios-CqnReM1t.mjs} +22 -17
  116. package/dist/{recordings-BWnIlhZH.mjs → recordings-AKZfsW2W.mjs} +1 -1
  117. package/dist/{registration-BwCe64PH.mjs → registration-DKjJGQ6p.mjs} +1 -1
  118. package/dist/{reload-D2TpUlns.mjs → reload-CC3sNo10.mjs} +17 -17
  119. package/dist/{reload-f9hvEHE9.mjs → reload-YPnvXGlB.mjs} +1 -1
  120. package/dist/{remote-BsBAjlD2.mjs → remote-BfaIHnhM.mjs} +9 -9
  121. package/dist/{result-EOsWV6sp.mjs → result-H-AxY7Ud.mjs} +24 -20
  122. package/dist/{run-2CHAJ9Oj.mjs → run-N-BbRxnC.mjs} +2 -2
  123. package/dist/{selection-C4ZQz_ER.mjs → selection-CH-MUVGD.mjs} +5 -4
  124. package/dist/{server-bare-CFyVFZXJ.mjs → server-bare-BTlICuaX.mjs} +2 -2
  125. package/dist/{server-command-BMyKtnjH.mjs → server-command-Bn_gOObU.mjs} +5 -5
  126. package/dist/server-expo-B59N16uT.mjs +2 -0
  127. package/dist/{server-expo-BLxcN2x2.mjs → server-expo-CUJ2fuv1.mjs} +3 -3
  128. package/dist/{settings-C6UTYW2K.mjs → settings-B5IBDfTx.mjs} +4 -4
  129. package/dist/{settings-jeS0WmUF.mjs → settings-DoWHJopy.mjs} +2 -2
  130. package/dist/{settings-payload-CrX933Xi.mjs → settings-payload-Bxw3hid5.mjs} +5 -5
  131. package/dist/{settings-write-DMcT23Kl.mjs → settings-write-C6d7EC54.mjs} +6 -6
  132. package/dist/settings.schema.json +38 -0
  133. package/dist/{simslim-93xmPh-d.mjs → simslim-DKdJx0LL.mjs} +2 -2
  134. package/dist/{slot-launch-CSpQcFZw.mjs → slot-launch-kq0-7w9C.mjs} +6 -6
  135. package/dist/{stage-Cf9uSM1a.mjs → stage-CBfMTUK3.mjs} +2 -2
  136. package/dist/{start-CquYgzVf.mjs → start-Diu8q6_U.mjs} +1 -1
  137. package/dist/{start-CLN_r9EG.mjs → start-WTMumMHi.mjs} +12 -12
  138. package/dist/{state-CM_HvvkS.mjs → state-CtmYTRWm.mjs} +4 -4
  139. package/dist/{state-CiflgxTP.mjs → state-DSOUqO-o.mjs} +2 -2
  140. package/dist/{stats-BVEZuSlg.mjs → stats-D4cW247z.mjs} +5 -5
  141. package/dist/{stats-report-B86Cv7Uc.mjs → stats-report-BVRCqwWA.mjs} +1 -1
  142. package/dist/{status-Bhdy07v0.mjs → status-B-oeWS0Z.mjs} +1 -1
  143. package/dist/{status-D0ruTmPl.mjs → status-CEwxo-PS.mjs} +37 -28
  144. package/dist/{status-GQ-JqvRi.mjs → status-DTFhDnd1.mjs} +1 -1
  145. package/dist/{status-watch-DSu_hhg6.mjs → status-watch-D63R5nSI.mjs} +5 -5
  146. package/dist/status-worker.mjs +1 -1
  147. package/dist/{stim-desktop-1XxET4S8.mjs → stim-desktop-_WTria-r.mjs} +2 -2
  148. package/dist/{stop-RZqER_Ww.mjs → stop-Dm9ON6Os.mjs} +2 -2
  149. package/dist/{stop-B616ZyTv.mjs → stop-HL2RvhrE.mjs} +5 -5
  150. package/dist/{stop-W4DK8qZq.mjs → stop-vX4w3_8V.mjs} +16 -16
  151. package/dist/supervisor-run.mjs +16 -16
  152. package/dist/{support-S_5nkkzs.mjs → support-BNe1_Hg7.mjs} +18 -8
  153. package/dist/{support-NxnD8QXd.mjs → support-ivsfDj0v.mjs} +9 -9
  154. package/dist/{swiftpm-artifact-inputs-yp8D5LE4.mjs → swiftpm-artifact-inputs-uq5oV7xR.mjs} +4 -4
  155. package/dist/{swiftpm-macos-Gtq9bNQb.mjs → swiftpm-macos-ClF203_2.mjs} +11 -11
  156. package/dist/{toolchain-B2bN8jEo.mjs → toolchain-CECahBDa.mjs} +1 -1
  157. package/dist/{toolchain-Bnm8vUCV.mjs → toolchain-CYonNjd_.mjs} +429 -20
  158. package/dist/{trigger-CfnOfpDd.mjs → trigger-BtB4kbe0.mjs} +2 -2
  159. package/dist/trigger-D8B7QR0q.mjs +2 -0
  160. package/dist/{warm-progress-_aTMvkIH.mjs → warm-progress-q11Vdvhh.mjs} +6 -6
  161. package/dist/{web-BdWG8b5_.mjs → web-BdaMBr2O.mjs} +9 -9
  162. package/dist/web-CIpHpGp8.mjs +2 -0
  163. package/dist/web-run.mjs +8 -8
  164. package/dist/windows-report.mjs +1 -1
  165. package/dist/{workspace-state-3bF4TB8P.mjs → workspace-state-BdZ-QgmB.mjs} +3 -3
  166. package/dist/{workspaces-C59v9bpD.mjs → workspaces-B9v5V7Es.mjs} +14 -14
  167. package/dist/{worktree-CinoSsGy.mjs → worktree-C3N86KpI.mjs} +77 -31
  168. package/dist/{worktree-K9F50fD_.mjs → worktree-C4MBOMz7.mjs} +1 -1
  169. package/package.json +12 -7
  170. package/dist/ios-signing-BJzvDPfU.mjs +0 -489
  171. package/dist/server-expo-DwR3eD-a.mjs +0 -2
  172. package/dist/trigger-DBZ-GBrl.mjs +0 -2
  173. package/dist/web-DwuluWJt.mjs +0 -2
@@ -1,4 +1,4 @@
1
- import { s as gitAsync } from "./operation-exec-Dp4FuIGR.mjs";
1
+ import { s as gitAsync } from "./operation-exec-DKlBcKAL.mjs";
2
2
  import { n as fingerprintNativeInputs, r as manifestDigest } from "./native-inputs-TRTTTRxt.mjs";
3
3
  import { createHash } from "node:crypto";
4
4
  import { createReadStream } from "node:fs";
@@ -1,6 +1,6 @@
1
- import { E as workspaceDir, T as workspaceDerivedData } from "./workspace-state-3bF4TB8P.mjs";
2
- import { a as killOnAbort, l as gitQuietAsync, r as childEnvironment } from "./operation-exec-Dp4FuIGR.mjs";
3
- import { h as pbxString, m as pbxReferences } from "./project-Crtcbfl0.mjs";
1
+ import { E as workspaceDir, T as workspaceDerivedData } from "./workspace-state-BdZ-QgmB.mjs";
2
+ import { a as killOnAbort, l as gitQuietAsync, r as childEnvironment } from "./operation-exec-DKlBcKAL.mjs";
3
+ import { h as pbxString, m as pbxReferences } from "./project-DU3jjnBE.mjs";
4
4
  import { n as fingerprintNativeInputs, t as NativeInputError } from "./native-inputs-TRTTTRxt.mjs";
5
5
  import { createHash } from "node:crypto";
6
6
  import { existsSync, readFileSync, realpathSync } from "node:fs";
@@ -1,21 +1,21 @@
1
- import { t as getExecutor } from "./exec-aULwtNly.mjs";
2
- import { x as sharedCompilationCache } from "./workspace-state-3bF4TB8P.mjs";
3
- import { G as remoteIosSetting, J as resolveCacheProviderConfig, Vt as repoRootAsync, rt as settingShapeErrors } from "./settings-C6UTYW2K.mjs";
4
- import { g as selectNativeXcodeProject, h as pbxString, p as NativeXcodeError } from "./project-Crtcbfl0.mjs";
5
- import { Tn as processContext } from "./ccache-BrwGIxmV.mjs";
6
- import { r as register } from "./cache-manifest-CfiEny4T.mjs";
7
- import { lt as statsProjectKey } from "./workspaces-C59v9bpD.mjs";
8
- import { E as readPodState, H as readBundleId, I as compilationCacheSettings, M as HEARTBEAT_INTERVAL_MS, O as runCaptured, P as buildXcode, R as parseSwiftVersion, T as podsAreStale, c as iosToolchainAsync, k as runPodInstall, st as runCancellationSignal, z as parseXcodeMajor } from "./toolchain-Bnm8vUCV.mjs";
9
- import { d as filesystemBuildCapability, n as buildCacheKey } from "./build-cache-BsKim4V7.mjs";
1
+ import { t as getExecutor } from "./exec-CGuDzt40.mjs";
2
+ import { x as sharedCompilationCache } from "./workspace-state-BdZ-QgmB.mjs";
3
+ import { G as remoteIosSetting, J as resolveCacheProviderConfig, Vt as repoRootAsync, rt as settingShapeErrors } from "./settings-B5IBDfTx.mjs";
4
+ import { g as selectNativeXcodeProject, h as pbxString, p as NativeXcodeError } from "./project-DU3jjnBE.mjs";
5
+ import { Sn as processContext } from "./ccache-ChBMXlBq.mjs";
6
+ import { r as register } from "./cache-manifest-8JX9S1QJ.mjs";
7
+ import { lt as statsProjectKey } from "./workspaces-B9v5V7Es.mjs";
8
+ import { E as readPodState, H as readBundleId, I as compilationCacheSettings, M as HEARTBEAT_INTERVAL_MS, O as runCaptured, P as buildXcode, R as parseSwiftVersion, T as podsAreStale, _t as runCancellationSignal, c as iosToolchainAsync, k as runPodInstall, z as parseXcodeMajor } from "./toolchain-CYonNjd_.mjs";
9
+ import { f as filesystemBuildCapability, n as buildCacheKey } from "./build-cache-Cqj4FGnX.mjs";
10
10
  import { l as artifactCachePolicy, p as resolveOptimizations } from "./errors-DHm_U5gv.mjs";
11
- import { a as nativeTransferRefusal } from "./client-lDmA-5jx.mjs";
12
- import { a as deviceModelRefusal, h as resolveDeviceType, m as resolveConfiguration, v as resolveRuntime, x as simulatorBuildArch, y as resolveSchemeSelection } from "./support-NxnD8QXd.mjs";
13
- import { r as gateProfileForDevice } from "./ios-signing-BJzvDPfU.mjs";
14
- import { a as nativeXcodeSources, i as nativeXcodePackages, n as nativeXcodeInputSnapshot, t as nativeXcodeHasPackages } from "./native-xcode-inputs-tDuUvSU8.mjs";
15
- import { s as explainBuildMiss, u as skippedMissReason } from "./prebuild-CyNrUWgV.mjs";
16
- import { n as planFlagRefusal, t as planCachedBuild } from "./build-plan-BK34X2iY.mjs";
17
- import { t as IosRecipeRefusal } from "./ios-project-DDQlX_jX.mjs";
18
- import { c as iosProcessRuntime, t as DEFAULT_DEPS } from "./dependencies-DkZ8681S.mjs";
11
+ import { a as nativeTransferRefusal } from "./client-kU37gURU.mjs";
12
+ import { a as deviceModelRefusal, h as resolveDeviceType, m as resolveConfiguration, v as resolveRuntime, x as simulatorBuildArch, y as resolveSchemeSelection } from "./support-ivsfDj0v.mjs";
13
+ import { r as gateProfileForDevice } from "./ios-signing-R34vbrNU.mjs";
14
+ import { a as nativeXcodeSources, i as nativeXcodePackages, n as nativeXcodeInputSnapshot, t as nativeXcodeHasPackages } from "./native-xcode-inputs-DGzkhpu4.mjs";
15
+ import { s as explainBuildMiss, u as skippedMissReason } from "./prebuild-BfJII57G.mjs";
16
+ import { n as planFlagRefusal, t as planCachedBuild } from "./build-plan-Ct1FiA3E.mjs";
17
+ import { t as IosRecipeRefusal } from "./ios-project-DoTQYghg.mjs";
18
+ import { c as iosProcessRuntime, t as DEFAULT_DEPS } from "./dependencies-CZ7c8XX_.mjs";
19
19
  import { existsSync } from "node:fs";
20
20
  import { join } from "node:path";
21
21
  //#region src/integrations/native-xcode-ios.ts
@@ -1,4 +1,4 @@
1
- import { _ as CompilationCacheActivity, g as CcacheActivity, i as AndroidBuildOptions, l as IosToolchain, m as Optimizations, r as SwiftpmArtifactToolchain, t as NativeGradleArtifactReceipt, u as WorkerToolchain } from "./android-project-CCEQyYJK.mjs";
1
+ import { _ as CompilationCacheActivity, g as CcacheActivity, i as AndroidBuildOptions, l as IosToolchain, m as Optimizations, r as SwiftpmArtifactToolchain, t as NativeGradleArtifactReceipt, u as WorkerToolchain } from "./android-project-DhO6el8N.mjs";
2
2
  import { StimContext } from "@stim-cli/core";
3
3
  import { BuildFingerprintSource, BuildReactNativeArtifactQuery, BuildStartParams, BuildSwiftpmArtifactQuery } from "@stim-cli/core/protocol";
4
4
  //#region src/offload/react-native-artifact.d.ts
@@ -92,6 +92,12 @@ interface WorkerJob {
92
92
  /** The top-level entries the client counted although an ignore pattern matches them; this checkout has no index. */
93
93
  expectedTracked?: string[];
94
94
  cacheArtifact?: boolean;
95
+ /** The client has no Xcode and left pod install to this machine, which may then rekey sources in the iOS project. */
96
+ podsOnWorker?: boolean;
97
+ /** The client's cache reads allow the app stim-server retained under the fingerprint after this machine's pod install. */
98
+ reuseArtifact?: boolean;
99
+ /** The directory of stim-server's retained artifacts for this client's repository. */
100
+ artifactCache?: string;
95
101
  stimBuild?: string;
96
102
  compat?: number;
97
103
  /** The JDK major the client builds on; the build runs on an installed JDK of it when the default differs. */
@@ -119,6 +125,7 @@ type WorkerResult = {
119
125
  sha256: string;
120
126
  };
121
127
  fingerprint: string | null;
128
+ reused?: true;
122
129
  androidPackage?: string;
123
130
  sourceDigest?: string;
124
131
  cacheArtifact?: {
@@ -1,28 +1,28 @@
1
- import { t as getExecutor } from "./exec-aULwtNly.mjs";
2
- import { E as workspaceDir, k as workspaceLogsDir$1 } from "./workspace-state-3bF4TB8P.mjs";
3
- import { A as writeConfigSetting } from "./config-D5qNWJEP.mjs";
1
+ import { t as getExecutor } from "./exec-CGuDzt40.mjs";
2
+ import { E as workspaceDir, k as workspaceLogsDir$1 } from "./workspace-state-BdZ-QgmB.mjs";
4
3
  import { n as stripAnsi } from "./process-output-Fpl8PYi8.mjs";
5
- import { o as git, s as gitAsync } from "./operation-exec-Dp4FuIGR.mjs";
6
- import { b as iosProjectDirSetting, d as androidLayoutSetting } from "./settings-C6UTYW2K.mjs";
7
- import { f as projectRegistry, g as selectNativeXcodeProject } from "./project-Crtcbfl0.mjs";
4
+ import { A as writeConfigSetting } from "./config-BW0fAtoK.mjs";
5
+ import { o as git, s as gitAsync } from "./operation-exec-DKlBcKAL.mjs";
6
+ import { b as iosProjectDirSetting, d as androidLayoutSetting } from "./settings-B5IBDfTx.mjs";
7
+ import { f as projectRegistry, g as selectNativeXcodeProject } from "./project-DU3jjnBE.mjs";
8
8
  import { s as parseNdjsonText$1 } from "./ndjson-CrjIsGzw.mjs";
9
- import { Tn as processContext, n as CCACHE_UNAVAILABLE, s as resolveCcache } from "./ccache-BrwGIxmV.mjs";
10
- import { E as readPodState, S as workerToolchain, T as podsAreStale, i as availableIphone, k as runPodInstall, x as useJdkMajor } from "./toolchain-Bnm8vUCV.mjs";
11
- import { S as refingerprintAfterMutation, i as compareSourceLists, m as fingerprintProject } from "./build-cache-BsKim4V7.mjs";
12
- import { _ as unmetNodePin, g as projectNodeLine, h as pathNodeVersion, v as withProjectNode } from "./server-expo-BLxcN2x2.mjs";
13
- import { C as COMPILATION_CACHE_CORRUPT, b as validateGradleManifest, f as reactNativeArtifactReceipt, g as gradleStateDirectories, h as gradleOffloadInputs, m as reactNativeBuildQuery, p as reactNativeArtifactToolchain, v as nativeGradleOutputs, w as clearCorruptCompilationCache, x as verifyGradleTransfer } from "./client-lDmA-5jx.mjs";
9
+ import { Sn as processContext, n as CCACHE_UNAVAILABLE, s as resolveCcache } from "./ccache-ChBMXlBq.mjs";
10
+ import { E as readPodState, S as workerToolchain, T as podsAreStale, i as availableIphone, k as runPodInstall, x as useJdkMajor } from "./toolchain-CYonNjd_.mjs";
11
+ import { C as refingerprintAfterMutation, a as compareSourceLists, h as fingerprintProject, i as changedOnlyInside } from "./build-cache-Cqj4FGnX.mjs";
12
+ import { _ as unmetNodePin, g as projectNodeLine, h as pathNodeVersion, v as withProjectNode } from "./server-expo-CUJ2fuv1.mjs";
13
+ import { S as verifyGradleTransfer, T as clearCorruptCompilationCache, _ as gradleStateDirectories, f as reactNativeArtifactReceipt, g as gradleOffloadInputs, h as reusedReactNativeArtifact, m as reactNativeBuildQuery, p as reactNativeArtifactToolchain, w as COMPILATION_CACHE_CORRUPT, x as validateGradleManifest, y as nativeGradleOutputs } from "./client-kU37gURU.mjs";
14
14
  import { n as fingerprintNativeInputs, r as manifestDigest } from "./native-inputs-TRTTTRxt.mjs";
15
- import { a as sourceManifest, o as verifyNativeTransfer } from "./native-source-D1AzWiuP.mjs";
16
- import { n as buildAndroid, o as gradlewPath, r as buildIos, u as assembleTaskFor } from "./react-native-build-DhWBUV_H.mjs";
17
- import { f as podAction } from "./support-NxnD8QXd.mjs";
18
- import { r as nativeXcodeMetadataDirectories } from "./native-xcode-inputs-tDuUvSU8.mjs";
19
- import { a as runPrebuild, r as recordPrebuild, t as planPrebuild } from "./prebuild-CyNrUWgV.mjs";
20
- import { g as dumpApkManifest, p as apkPackage } from "./support-S_5nkkzs.mjs";
21
- import { n as buildAndroidOperation, t as buildIosOperation } from "./build-VXX_dtl5.mjs";
22
- import { i as stageBundle, n as resolveBundleExtras } from "./stage-Cf9uSM1a.mjs";
23
- import { t as logLines } from "./run-2CHAJ9Oj.mjs";
24
- import { n as swiftpmArtifactInputs, r as swiftpmArtifactSnapshot, t as readSwiftpmArtifactToolchain } from "./swiftpm-artifact-inputs-yp8D5LE4.mjs";
25
- import { a as nativeGradleWorkerArtifactIdentity, i as nativeGradleArtifactSnapshotFromReceipt, o as nativeGradleWorkerScope } from "./native-gradle-artifact-inputs-BlY97pt8.mjs";
15
+ import { a as sourceManifest, o as verifyNativeTransfer } from "./native-source-ChAGj7R1.mjs";
16
+ import { n as buildAndroid, o as gradlewPath, r as buildIos, u as assembleTaskFor } from "./react-native-build-CuvNPt-q.mjs";
17
+ import { f as podAction } from "./support-ivsfDj0v.mjs";
18
+ import { r as nativeXcodeMetadataDirectories } from "./native-xcode-inputs-DGzkhpu4.mjs";
19
+ import { a as runPrebuild, r as recordPrebuild, t as planPrebuild } from "./prebuild-BfJII57G.mjs";
20
+ import { g as dumpApkManifest, p as apkPackage } from "./support-BNe1_Hg7.mjs";
21
+ import { n as buildAndroidOperation, t as buildIosOperation } from "./build-D7SuVoRX.mjs";
22
+ import { i as stageBundle, n as resolveBundleExtras } from "./stage-CBfMTUK3.mjs";
23
+ import { t as logLines } from "./run-N-BbRxnC.mjs";
24
+ import { n as swiftpmArtifactInputs, r as swiftpmArtifactSnapshot, t as readSwiftpmArtifactToolchain } from "./swiftpm-artifact-inputs-uq5oV7xR.mjs";
25
+ import { a as nativeGradleWorkerArtifactIdentity, i as nativeGradleArtifactSnapshotFromReceipt, o as nativeGradleWorkerScope } from "./native-gradle-artifact-inputs-DVoeZkrw.mjs";
26
26
  import { createHash } from "node:crypto";
27
27
  import { chmodSync, constants, copyFileSync, cpSync, createReadStream, createWriteStream, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, readlinkSync, realpathSync, renameSync, rmSync, statSync, symlinkSync, writeFileSync } from "node:fs";
28
28
  import { isDeepStrictEqual } from "node:util";
@@ -510,6 +510,16 @@ function fingerprintMismatch(job, there, sources, mutated) {
510
510
  ].join("; ");
511
511
  }
512
512
  /**
513
+ * Why the synced checkout does not build under the client's fingerprint, or null. A client without Xcode left pod
514
+ * install to this machine and cannot have the files it rewrites or generates in `iosDir`, so a fingerprint that
515
+ * differs only in sources there stands; any other difference, such as the app config, still refuses.
516
+ */
517
+ function fingerprintRefusal(job, iosDir, built, mutated) {
518
+ if (built.hash === job.expectedFingerprint) return null;
519
+ if (job.podsOnWorker && job.expectedSources && changedOnlyInside(job.expectedSources, [...built.sources], iosDir)) return null;
520
+ return fingerprintMismatch(job, built.hash, built.sources, mutated());
521
+ }
522
+ /**
513
523
  * Puts the Node that `root`, or the nearest directory above it in `src`, pins first on this worker's `PATH`, and
514
524
  * reports which Node the build runs on.
515
525
  */
@@ -769,6 +779,10 @@ async function build(job) {
769
779
  const pods = podAction(podState, podsAreStale(podState.lockText, podState.manifestText, podState.dir));
770
780
  if (pods.install) {
771
781
  note("pods", `${pods.reason ?? "Pods are stale"} -> pod install`);
782
+ rmSync(join(iosProject.dir, "Pods", "Local Podspecs"), {
783
+ recursive: true,
784
+ force: true
785
+ });
772
786
  const result = await time("podsMs", () => runPodInstall(realRoot, log, {
773
787
  directory: iosProject.dir,
774
788
  onHeartbeat: (line) => note("pods", line)
@@ -794,13 +808,26 @@ async function build(job) {
794
808
  sources = after.sources;
795
809
  if (mutations.includes("expo prebuild")) recordPrebuild(realRoot, platform, after.hash);
796
810
  }
797
- if (fingerprint !== job.expectedFingerprint) return failed("fingerprint-mismatch", fingerprintMismatch(job, fingerprint, sources, {
811
+ const refused = fingerprintRefusal(job, iosProject.relative, {
812
+ hash: fingerprint,
813
+ sources
814
+ }, () => ({
798
815
  steps: mutations,
799
816
  files: mutations.length ? rewrittenFiles(src, job.manifest, mirrored.record) : []
800
817
  }));
818
+ if (refused) return failed("fingerprint-mismatch", refused);
801
819
  const tools = job.cacheArtifact ? await reactNativeArtifactToolchain(platform, realRoot, iosProject.dir) : null;
802
820
  const query = tools ? reactNativeBuildQuery(job, fingerprint, job.project, tools) : null;
803
821
  const receipt = query ? reactNativeArtifactReceipt(query, tools) : null;
822
+ const reused = await reuseRetained(job, query, mutations, time);
823
+ if (reused) return {
824
+ ok: true,
825
+ artifact: reused,
826
+ fingerprint,
827
+ reused: true,
828
+ compilationCache: {},
829
+ timings
830
+ };
804
831
  compiled = platform === "android" ? await compileAndroid(job, realRoot, log, time, androidLayout) : await compileIos(job, realRoot, log, time);
805
832
  if (!compiled.ok) return failed(compiled.code, compiled.message);
806
833
  const builtFingerprint = fingerprint;
@@ -857,6 +884,18 @@ async function build(job) {
857
884
  });
858
885
  }
859
886
  }
887
+ /** The app stim-server retained under the fingerprint after `mutations`, in place of compiling; null builds. */
888
+ async function reuseRetained(job, query, mutations, time) {
889
+ if (!query) return null;
890
+ try {
891
+ const reused = await time("packageMs", () => reusedReactNativeArtifact(job, query, join(job.area, "out", job.job), AbortSignal.timeout(6e5)));
892
+ if (reused) note("cache", `hit ${query.fingerprint.slice(0, 12)} (post-${mutations.join(", ")} key)`);
893
+ return reused;
894
+ } catch (error) {
895
+ note("cache", `could not reuse the retained app: ${error instanceof Error ? error.message : String(error)}`);
896
+ return null;
897
+ }
898
+ }
860
899
  function differingParameters(here, there, path) {
861
900
  if (JSON.stringify(here) === JSON.stringify(there)) return [];
862
901
  if (!isJsonObject(here) || !isJsonObject(there)) return [path];
@@ -1,4 +1,4 @@
1
- import { b as operationState, c as throwIfCancelled, l as WorkspaceProcessCleanupError, t as getExecutor } from "./exec-aULwtNly.mjs";
1
+ import { C as operationState, d as throwIfCancelled, f as WorkspaceProcessCleanupError, t as getExecutor } from "./exec-CGuDzt40.mjs";
2
2
  import { sep } from "node:path";
3
3
  //#region src/workspace/git.ts
4
4
  const GIT_TIMEOUT_MS = 1e4;
@@ -1,6 +1,6 @@
1
- import { S as process_identity_exports } from "./exec-aULwtNly.mjs";
2
- import { c as withWorkspaceStateLock, d as writeWorkspaceState, r as readWorkspaceState } from "./workspace-state-3bF4TB8P.mjs";
3
- import { c as pidExists } from "./metro-mKHEMO-a.mjs";
1
+ import { T as process_identity_exports } from "./exec-CGuDzt40.mjs";
2
+ import { c as withWorkspaceStateLock, d as writeWorkspaceState, r as readWorkspaceState } from "./workspace-state-BdZ-QgmB.mjs";
3
+ import { c as pidExists } from "./metro-B5PVz0Wv.mjs";
4
4
  import { realpathSync } from "node:fs";
5
5
  //#region src/collector/state.ts
6
6
  function collectorRoot(root) {
@@ -1,5 +1,5 @@
1
- import { S as process_identity_exports, c as throwIfCancelled } from "./exec-aULwtNly.mjs";
2
- import { t as connectOwnedBrowser } from "./cdp-C3svvXiE.mjs";
1
+ import { T as process_identity_exports, d as throwIfCancelled } from "./exec-CGuDzt40.mjs";
2
+ import { t as connectOwnedBrowser } from "./cdp-C216kOAn.mjs";
3
3
  //#region src/web/page.ts
4
4
  /** The record of a verified live browser: its supervisor and Chrome are the processes the record names. */
5
5
  function liveWebRecord(record) {
@@ -1,7 +1,7 @@
1
- import { r as readWorkspaceState$1, s as updateWorkspaceStateAsync } from "./workspace-state-3bF4TB8P.mjs";
2
- import { H as deviceSlotKey, W as parseDeviceSlotKey } from "./config-D5qNWJEP.mjs";
3
- import { tt as removeMetroReverses } from "./android-DsEj2CCs.mjs";
4
- import { a as stopHostedNative, i as prepareHostedNative, r as placeHostedNative } from "./hosted-native-Bh9IJ_t5.mjs";
1
+ import { r as readWorkspaceState$1, s as updateWorkspaceStateAsync } from "./workspace-state-BdZ-QgmB.mjs";
2
+ import { dt as deviceSlotKey, pt as parseDeviceSlotKey } from "./config-BW0fAtoK.mjs";
3
+ import { tt as removeMetroReverses } from "./android-Iq0M2t2d.mjs";
4
+ import { a as stopHostedNative, i as prepareHostedNative, r as placeHostedNative } from "./hosted-native-B7OFt5gB.mjs";
5
5
  import { isJsonObject } from "@stim-cli/core/state";
6
6
  //#region src/device-host/hosted-ios.ts
7
7
  async function prepareHostedIos(machine, selectors, recorded, mode) {
@@ -1,4 +1,4 @@
1
- import { r as buildPlacementSettings } from "./selection-C4ZQz_ER.mjs";
1
+ import { r as buildPlacementSettings } from "./selection-CH-MUVGD.mjs";
2
2
  //#region src/placement-log.ts
3
3
  /** `machine` is `local` when the run stays on this machine. */
4
4
  function placementRecord(input) {
@@ -1,9 +1,9 @@
1
- import { v as loadConfig$1 } from "./config-D5qNWJEP.mjs";
2
- import { Tn as processContext } from "./ccache-BrwGIxmV.mjs";
3
- import { _ as hostingMachines } from "./selection-C4ZQz_ER.mjs";
4
- import { r as readHostedNative } from "./ios-state-BEIJRJ7P.mjs";
5
- import { n as buildPreferenceRefusal } from "./settings-payload-CrX933Xi.mjs";
6
- import { r as probeHost, t as automaticDevicePlacement } from "./auto-placement--nfdQ9rp.mjs";
1
+ import { v as loadConfig$1 } from "./config-BW0fAtoK.mjs";
2
+ import { Sn as processContext } from "./ccache-ChBMXlBq.mjs";
3
+ import { _ as hostingMachines } from "./selection-CH-MUVGD.mjs";
4
+ import { r as readHostedNative } from "./ios-state-CWsBysyN.mjs";
5
+ import { n as buildPreferenceRefusal } from "./settings-payload-Bxw3hid5.mjs";
6
+ import { r as probeHost, t as automaticDevicePlacement } from "./auto-placement-DA65VQH7.mjs";
7
7
  import { automaticMachineEnabled } from "@stim-cli/core/state";
8
8
  //#region src/device-host/plan-placement.ts
9
9
  const DOCTOR_REMEDY = "Run `stim doctor` to check the hosts and settings placement uses.";
@@ -1,6 +1,6 @@
1
- import { m as getProject } from "./config-D5qNWJEP.mjs";
2
- import { n as findCommandWorkspace } from "./project-Crtcbfl0.mjs";
3
- import { n as getNamedPort, t as clearNamedPorts } from "./named-ports-B0hCk2v-.mjs";
1
+ import { m as getProject } from "./config-BW0fAtoK.mjs";
2
+ import { n as findCommandWorkspace } from "./project-DU3jjnBE.mjs";
3
+ import { n as getNamedPort, t as clearNamedPorts } from "./named-ports-CA0nB9Yw.mjs";
4
4
  //#region src/commands/ports.ts
5
5
  async function inProject(action) {
6
6
  try {
@@ -1,16 +1,16 @@
1
- import { E as debugLog, _ as spawnDeclared, t as getExecutor } from "./exec-aULwtNly.mjs";
2
- import { M as withDirLock$1, l as withWorkspaceStateLockAsync, o as updateWorkspaceState, r as readWorkspaceState$1, y as sharedBuildCache } from "./workspace-state-3bF4TB8P.mjs";
1
+ import { E as debugLog, b as spawnDeclared, t as getExecutor } from "./exec-CGuDzt40.mjs";
2
+ import { M as withDirLock$1, l as withWorkspaceStateLockAsync, o as updateWorkspaceState, r as readWorkspaceState$1, y as sharedBuildCache } from "./workspace-state-BdZ-QgmB.mjs";
3
3
  import { n as stripAnsi, r as waitForChild, t as createLineReader } from "./process-output-Fpl8PYi8.mjs";
4
- import { m as shortHash } from "./command-output-CfPW1bKP.mjs";
5
- import { o as git, s as gitAsync } from "./operation-exec-Dp4FuIGR.mjs";
6
- import { Ct as gitCommonDirOnDisk } from "./settings-C6UTYW2K.mjs";
7
- import { v as detectIsExpo } from "./project-Crtcbfl0.mjs";
8
- import { Vn as remoteCliInvocation } from "./ccache-BrwGIxmV.mjs";
9
- import { r as register } from "./cache-manifest-CfiEny4T.mjs";
10
- import { nt as STIM_VERSION } from "./workspaces-C59v9bpD.mjs";
11
- import { D as storedSources, m as fingerprintProject, o as diffFingerprintSources, p as fingerprintOptions, u as expoEnvFiles, v as packageIn } from "./build-cache-BsKim4V7.mjs";
12
- import { i as expoBinRefusal, o as expoSdkMajor, r as expoBinPath, s as expoTelemetryEnv } from "./server-expo-BLxcN2x2.mjs";
13
- import { t as readDoctorFingerprint } from "./doctor-fingerprint-o7ZI9YLn.mjs";
4
+ import { m as shortHash } from "./command-output-DjExb_tZ.mjs";
5
+ import { o as git, s as gitAsync } from "./operation-exec-DKlBcKAL.mjs";
6
+ import { Ct as gitCommonDirOnDisk } from "./settings-B5IBDfTx.mjs";
7
+ import { v as detectIsExpo } from "./project-DU3jjnBE.mjs";
8
+ import { Rn as remoteCliInvocation } from "./ccache-ChBMXlBq.mjs";
9
+ import { r as register } from "./cache-manifest-8JX9S1QJ.mjs";
10
+ import { nt as STIM_VERSION } from "./workspaces-B9v5V7Es.mjs";
11
+ import { O as storedSources, d as expoEnvFiles, h as fingerprintProject, m as fingerprintOptions, s as diffFingerprintSources, y as packageIn } from "./build-cache-Cqj4FGnX.mjs";
12
+ import { i as expoBinRefusal, o as expoSdkMajor, r as expoBinPath, s as expoTelemetryEnv } from "./server-expo-CUJ2fuv1.mjs";
13
+ import { t as readDoctorFingerprint } from "./doctor-fingerprint-DqWvIhMb.mjs";
14
14
  import { createRequire } from "node:module";
15
15
  import { createHash } from "node:crypto";
16
16
  import { existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, readlinkSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
@@ -1,7 +1,7 @@
1
- import { S as process_identity_exports } from "./exec-aULwtNly.mjs";
2
- import { C as supervisorPidFile, c as withWorkspaceStateLock, j as workspaceStateFile$1, l as withWorkspaceStateLockAsync, o as updateWorkspaceState, r as readWorkspaceState$1, t as clearWorkspaceStateKey } from "./workspace-state-3bF4TB8P.mjs";
3
- import { H as deviceSlotKey, W as parseDeviceSlotKey, _ as isPathPrefix$1, l as findEnclosingWorktreeRoot, m as getProject, v as loadConfig$1 } from "./config-D5qNWJEP.mjs";
4
- import { Bt as repoRoot, Y as resolveIosProjectDir, ct as webSettings, it as settingValueAt, q as resolveAndroidLayout } from "./settings-C6UTYW2K.mjs";
1
+ import { T as process_identity_exports } from "./exec-CGuDzt40.mjs";
2
+ import { C as supervisorPidFile, c as withWorkspaceStateLock, j as workspaceStateFile$1, l as withWorkspaceStateLockAsync, o as updateWorkspaceState, r as readWorkspaceState$1, t as clearWorkspaceStateKey } from "./workspace-state-BdZ-QgmB.mjs";
3
+ import { _ as isPathPrefix$1, dt as deviceSlotKey, l as findEnclosingWorktreeRoot, m as getProject, pt as parseDeviceSlotKey, v as loadConfig$1 } from "./config-BW0fAtoK.mjs";
4
+ import { Bt as repoRoot, Y as resolveIosProjectDir, ct as webSettings, it as settingValueAt, q as resolveAndroidLayout } from "./settings-B5IBDfTx.mjs";
5
5
  import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, writeFileSync } from "node:fs";
6
6
  import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
7
7
  import { projectRootDirectories } from "@stim-cli/core/state";
@@ -311,8 +311,8 @@ const nativeAndroidIntegration = {
311
311
  application: true,
312
312
  platforms: () => ["android"],
313
313
  validate: (operation) => operation === "android" ? null : void 0,
314
- android: async () => (await import("./native-android-9dVFqvTT.mjs")).nativeAndroidProject(root),
315
- doctor: async () => (await import("./native-android-9dVFqvTT.mjs")).nativeAndroidDoctor(root)
314
+ android: async () => (await import("./native-android-tISP2EVp.mjs")).nativeAndroidProject(root),
315
+ doctor: async () => (await import("./native-android-tISP2EVp.mjs")).nativeAndroidDoctor(root)
316
316
  };
317
317
  }
318
318
  };
@@ -740,8 +740,8 @@ const nativeXcodeProjectIntegration = {
740
740
  application: problem === null,
741
741
  platforms: () => problem ? [] : ["ios"],
742
742
  validate: (operation) => operation === "ios" ? problem : void 0,
743
- ios: async () => (await import("./native-xcode-ios-CG-PD-7g.mjs")).nativeXcodeIosProject(root),
744
- doctor: async () => (await import("./native-xcode-ios-CG-PD-7g.mjs")).nativeXcodeDoctor(root)
743
+ ios: async () => (await import("./native-xcode-ios-B9nsfId2.mjs")).nativeXcodeIosProject(root),
744
+ doctor: async () => (await import("./native-xcode-ios-B9nsfId2.mjs")).nativeXcodeDoctor(root)
745
745
  };
746
746
  }
747
747
  };
@@ -946,7 +946,7 @@ function createProjectRegistry(integrations) {
946
946
  //#region src/integrations/projects.ts
947
947
  const expo = {
948
948
  mode: MODE_EXPO,
949
- loadDevServer: async () => (await import("./server-expo-DwR3eD-a.mjs")).startExpoServer,
949
+ loadDevServer: async () => (await import("./server-expo-B59N16uT.mjs")).startExpoServer,
950
950
  platforms(root) {
951
951
  const appJson = readAppJson(root);
952
952
  const config = appJson?.expo ?? appJson;
@@ -966,7 +966,7 @@ const expo = {
966
966
  };
967
967
  const reactNative = {
968
968
  mode: MODE_BARE,
969
- loadDevServer: async () => (await import("./server-bare-CFyVFZXJ.mjs")).startBareServer,
969
+ loadDevServer: async () => (await import("./server-bare-BTlICuaX.mjs")).startBareServer,
970
970
  platforms(root, { context, settings }) {
971
971
  if (!declaresAppDependency(readPackageJson(root))) return [];
972
972
  const platforms = [];
@@ -996,9 +996,9 @@ const projectRegistry = createProjectRegistry([
996
996
  ownedRoots: problem === null ? [join(root, "ios"), join(root, "android")] : [],
997
997
  platforms: (resolved) => nativeProjectIntegration(root).platforms(root, resolved),
998
998
  validate: (operation) => operation === "ios" || operation === "android" || operation === "dev-server" ? problem : void 0,
999
- ios: async (settings) => (await import("./react-native-ios-u_ley41B.mjs")).reactNativeIosProject(root, settings),
1000
- android: async (resolved) => (await import("./react-native-android-Cabe2YER.mjs")).reactNativeAndroidProject(root, resolved),
1001
- doctor: async () => (await import("./react-native-doctor-D-twmBon.mjs")).reactNativeProjectDoctor(root)
999
+ ios: async (settings) => (await import("./react-native-ios-CqnReM1t.mjs")).reactNativeIosProject(root, settings),
1000
+ android: async (resolved) => (await import("./react-native-android-3dZiJv-4.mjs")).reactNativeAndroidProject(root, resolved),
1001
+ doctor: async () => (await import("./react-native-doctor-a35BwMUO.mjs")).reactNativeProjectDoctor(root)
1002
1002
  };
1003
1003
  }
1004
1004
  },
@@ -1012,9 +1012,9 @@ const projectRegistry = createProjectRegistry([
1012
1012
  application: true,
1013
1013
  platforms: ({ settings }) => settingValueAt(settings, "macos.product") && settingValueAt(settings, "macos.infoPlist") ? ["macos"] : [],
1014
1014
  validate: (operation) => operation === "macos" ? null : void 0,
1015
- macos: async () => (await import("./swiftpm-macos-Gtq9bNQb.mjs")).swiftpmMacosProject(root),
1015
+ macos: async () => (await import("./swiftpm-macos-ClF203_2.mjs")).swiftpmMacosProject(root),
1016
1016
  doctor: async () => {
1017
- const { macosToolchain, macosToolchainAsync } = await import("./toolchain-B2bN8jEo.mjs");
1017
+ const { macosToolchain, macosToolchainAsync } = await import("./toolchain-CECahBDa.mjs");
1018
1018
  return {
1019
1019
  inspect: () => [],
1020
1020
  offloadTargets: ({ options: { host = process.platform, platform, operation } }) => host === "darwin" && platform === void 0 ? async () => [{
@@ -1034,7 +1034,7 @@ const projectRegistry = createProjectRegistry([
1034
1034
  application: false,
1035
1035
  platforms: ({ settings }) => webSettings(settings).url !== null ? ["web"] : [],
1036
1036
  validate: (operation) => operation === "web" ? null : void 0,
1037
- web: async () => (await import("./browser-web-6RDAeH0z.mjs")).browserWebProject(root)
1037
+ web: async () => (await import("./browser-web-Dn_hgKZC.mjs")).browserWebProject(root)
1038
1038
  };
1039
1039
  }
1040
1040
  },
@@ -1,5 +1,5 @@
1
- import { l as WorkspaceProcessCleanupError, t as getExecutor } from "./exec-aULwtNly.mjs";
2
- import { c as gitQuiet, l as gitQuietAsync, r as childEnvironment, s as gitAsync, t as runOperationFile } from "./operation-exec-Dp4FuIGR.mjs";
1
+ import { f as WorkspaceProcessCleanupError, t as getExecutor } from "./exec-CGuDzt40.mjs";
2
+ import { c as gitQuiet, l as gitQuietAsync, r as childEnvironment, s as gitAsync, t as runOperationFile } from "./operation-exec-DKlBcKAL.mjs";
3
3
  //#region src/workspace/pull-request.ts
4
4
  const GH_TIMEOUT_MS = 2e4;
5
5
  const GH_ENV = {
@@ -1,2 +1,2 @@
1
- import { a as pullRequestLookup, c as selectPullRequest, i as parseRemoteRepo, l as worktreePullRequests, n as describePullRequest, o as pullRequestLookupAsync, r as endedPullRequest, s as pullRequestLookups, t as checkCounts } from "./pull-request-BzLmzAIQ.mjs";
1
+ import { a as pullRequestLookup, c as selectPullRequest, i as parseRemoteRepo, l as worktreePullRequests, n as describePullRequest, o as pullRequestLookupAsync, r as endedPullRequest, s as pullRequestLookups, t as checkCounts } from "./pull-request-BpMTNkMB.mjs";
2
2
  export { checkCounts, describePullRequest, endedPullRequest, parseRemoteRepo, pullRequestLookup, pullRequestLookupAsync, pullRequestLookups, selectPullRequest, worktreePullRequests };
@@ -1,30 +1,31 @@
1
- import { C as reportSignal, _ as spawnDeclared, b as operationState, c as throwIfCancelled, t as getExecutor } from "./exec-aULwtNly.mjs";
2
- import { r as readWorkspaceState } from "./workspace-state-3bF4TB8P.mjs";
3
- import { J as validateDeviceSlot, U as deviceSlotPlatforms, m as getProject } from "./config-D5qNWJEP.mjs";
1
+ import { C as operationState, b as spawnDeclared, d as throwIfCancelled, r as reportSignal, t as getExecutor } from "./exec-CGuDzt40.mjs";
2
+ import { r as readWorkspaceState } from "./workspace-state-BdZ-QgmB.mjs";
4
3
  import { r as waitForChild, t as createLineReader } from "./process-output-Fpl8PYi8.mjs";
5
- import { i as formatDuration, l as phaseLine, m as shortHash } from "./command-output-CfPW1bKP.mjs";
6
- import { a as killOnAbort, t as runOperationFile } from "./operation-exec-Dp4FuIGR.mjs";
7
- import { B as publicUrlSetting, H as realpathInside, W as remoteEasFallbackSetting, an as makeTemporaryDirectory, at as settingsLayers, m as defaultAndroidLayout, nt as settingOriginScope, on as removeTemporaryEntry, ot as tunnelModeSetting, q as resolveAndroidLayout } from "./settings-C6UTYW2K.mjs";
8
- import { v as detectIsExpo } from "./project-Crtcbfl0.mjs";
9
- import { J as ownedAvdSystemImage, O as findBuildTool, Q as pickDefaultSystemImage, R as listAvdsAsync, U as ownedAvdDirectory, j as hostSystemImageArch, l as androidSystemImageAbi, r as androidBuildToolName, z as listInstalledSystemImages } from "./android-DsEj2CCs.mjs";
10
- import { An as checkEasAuth, Bn as bundleInvocation, Nn as loadProjectProvider, Rn as resolveRemote, Tn as processContext, s as resolveCcache } from "./ccache-BrwGIxmV.mjs";
11
- import { lt as statsProjectKey } from "./workspaces-C59v9bpD.mjs";
12
- import { K as tailLines, M as HEARTBEAT_INTERVAL_MS, W as startBuildHeartbeat, r as androidToolchainAsync, t as androidRequirements } from "./toolchain-Bnm8vUCV.mjs";
13
- import { A as untrackedNativeFiles, C as resolveBuild, E as storedAssetManifest, M as captureAssetManifest, N as compareAssetManifests, P as readAssetManifest, S as refingerprintAfterMutation, _ as inputsChangedDuringBuild, a as configInputsChanged, d as filesystemBuildCapability, f as fingerprintDiffRecord, h as gitignoredFingerprintInputs, j as assetDiffReason, k as untrackedMissLine, m as fingerprintProject, n as buildCacheKey, r as changedDuringBuildLine, w as storeBuild } from "./build-cache-BsKim4V7.mjs";
14
- import { s as expoTelemetryEnv, t as cleanLine } from "./server-expo-BLxcN2x2.mjs";
15
- import { c as readProductFlavors, h as androidPathRoomRefusal, n as buildAndroid, s as productFlavorRefusal } from "./react-native-build-DhWBUV_H.mjs";
16
- import { h as detectAppIds, m as detectAndroidPackage } from "./start-CLN_r9EG.mjs";
17
- import { t as readDoctorFingerprint } from "./doctor-fingerprint-o7ZI9YLn.mjs";
18
- import { i as planEasDevelopmentBuild } from "./eas-build-CaG-Sfs9.mjs";
19
- import { a as runPrebuild, c as fingerprintErrorMissReason, d as memoizedFingerprint, i as recordPrebuildAsync, n as planPrebuildAsync, o as staleNativeDirRefusal, s as explainBuildMiss, t as planPrebuild } from "./prebuild-CyNrUWgV.mjs";
20
- import { a as PLATFORM, c as androidGradleProject, g as dumpApkManifest, h as displayPath, i as NO_FINGERPRINT, l as androidJobLayout, o as androidBuildOptions, p as apkPackage, r as NO_DEVICE } from "./support-S_5nkkzs.mjs";
4
+ import { i as formatDuration, l as phaseLine, m as shortHash } from "./command-output-DjExb_tZ.mjs";
5
+ import { _t as validateDeviceSlot, ft as deviceSlotPlatforms, m as getProject } from "./config-BW0fAtoK.mjs";
6
+ import { a as killOnAbort, t as runOperationFile } from "./operation-exec-DKlBcKAL.mjs";
7
+ import { B as publicUrlSetting, H as realpathInside, W as remoteEasFallbackSetting, an as makeTemporaryDirectory, at as settingsLayers, m as defaultAndroidLayout, nt as settingOriginScope, on as removeTemporaryEntry, ot as tunnelModeSetting, q as resolveAndroidLayout } from "./settings-B5IBDfTx.mjs";
8
+ import { v as detectIsExpo } from "./project-DU3jjnBE.mjs";
9
+ import { J as ownedAvdSystemImage, O as findBuildTool, R as listAvdsAsync, U as ownedAvdDirectory, l as androidSystemImageAbi, r as androidBuildToolName, z as listInstalledSystemImages } from "./android-Iq0M2t2d.mjs";
10
+ import { An as loadProjectProvider, Dn as checkEasAuth, Fn as resolveRemote, Ln as bundleInvocation, Sn as processContext, s as resolveCcache } from "./ccache-ChBMXlBq.mjs";
11
+ import { lt as statsProjectKey } from "./workspaces-B9v5V7Es.mjs";
12
+ import { K as tailLines, M as HEARTBEAT_INTERVAL_MS, W as startBuildHeartbeat, r as androidToolchainAsync, t as androidRequirements } from "./toolchain-CYonNjd_.mjs";
13
+ import { A as untrackedMissLine, C as refingerprintAfterMutation, D as storedAssetManifest, F as readAssetManifest, M as assetDiffReason, N as captureAssetManifest, P as compareAssetManifests, T as storeBuild, f as filesystemBuildCapability, g as gitignoredFingerprintInputs, h as fingerprintProject, j as untrackedNativeFiles, n as buildCacheKey, o as configInputsChanged, p as fingerprintDiffRecord, r as changedDuringBuildLine, v as inputsChangedDuringBuild, w as resolveBuild } from "./build-cache-Cqj4FGnX.mjs";
14
+ import { s as expoTelemetryEnv, t as cleanLine } from "./server-expo-CUJ2fuv1.mjs";
15
+ import { c as readProductFlavors, h as androidPathRoomRefusal, n as buildAndroid, s as productFlavorRefusal } from "./react-native-build-CuvNPt-q.mjs";
16
+ import { h as detectAppIds, m as detectAndroidPackage } from "./start-WTMumMHi.mjs";
17
+ import { t as readDoctorFingerprint } from "./doctor-fingerprint-DqWvIhMb.mjs";
18
+ import { n as decideSystemImage, t as androidImageInstallPolicy } from "./android-image-DFk26aY6.mjs";
19
+ import { i as planEasDevelopmentBuild } from "./eas-build-BpHIt_M3.mjs";
20
+ import { a as runPrebuild, c as fingerprintErrorMissReason, d as memoizedFingerprint, i as recordPrebuildAsync, n as planPrebuildAsync, o as staleNativeDirRefusal, s as explainBuildMiss, t as planPrebuild } from "./prebuild-BfJII57G.mjs";
21
+ import { a as PLATFORM, c as androidGradleProject, g as dumpApkManifest, h as displayPath, i as NO_FINGERPRINT, l as androidJobLayout, o as androidBuildOptions, p as apkPackage, r as NO_DEVICE } from "./support-BNe1_Hg7.mjs";
21
22
  import { t as AndroidRecipeRefusal } from "./android-project-BCAAmMwz.mjs";
22
- import { u as resolveAndroidRunPlan } from "./result-EOsWV6sp.mjs";
23
- import { n as androidProcessRuntime, t as androidMetroRuntime } from "./launch-DxpvL6il.mjs";
24
- import { t as checkEasFallback } from "./eas-fallback-BpX1lpco.mjs";
25
- import { n as planFlagRefusal, r as planPayload, t as planCachedBuild } from "./build-plan-BK34X2iY.mjs";
26
- import { n as detectEntryFile, r as refreshUpdatesManifestFile, t as UPDATES_MANIFEST_NAME } from "./js-swap-C8N5DXHl.mjs";
27
- import { t as planHostedDevice } from "./plan-placement-2imvnlWP.mjs";
23
+ import { u as resolveAndroidRunPlan } from "./result-H-AxY7Ud.mjs";
24
+ import { n as androidProcessRuntime, t as androidMetroRuntime } from "./launch-Cy-MWEZc.mjs";
25
+ import { t as checkEasFallback } from "./eas-fallback-CNPcjq3K.mjs";
26
+ import { n as planFlagRefusal, r as planPayload, t as planCachedBuild } from "./build-plan-Ct1FiA3E.mjs";
27
+ import { n as detectEntryFile, r as refreshUpdatesManifestFile, t as UPDATES_MANIFEST_NAME } from "./js-swap-DrokhOfo.mjs";
28
+ import { t as planHostedDevice } from "./plan-placement-Am0IjuxB.mjs";
28
29
  import { constants, existsSync, mkdirSync, readFileSync, renameSync } from "node:fs";
29
30
  import { basename, dirname, isAbsolute, join, relative } from "node:path";
30
31
  import chalk from "chalk";
@@ -481,7 +482,7 @@ function imageReplacement(root, slot, flagImage, deps) {
481
482
  }
482
483
  };
483
484
  }
484
- async function emulatorImage(root, slot, requested, replaces, deps, signal) {
485
+ async function emulatorImage(root, slot, requested, replaces, policy, deps, signal) {
485
486
  const record = deviceSlotPlatforms(getProject(root), slot)?.android;
486
487
  if (record?.avdName && !record.setupIncomplete && !replaces) {
487
488
  if (record.owned && deps.avdDirectory(record.avdName)) return { systemImage: deps.avdSystemImage(record.avdName) };
@@ -497,13 +498,16 @@ async function emulatorImage(root, slot, requested, replaces, deps, signal) {
497
498
  remedy: "Check that ANDROID_HOME points at a readable SDK, then try again."
498
499
  } };
499
500
  }
500
- const picked = pickDefaultSystemImage(images, requested ? { systemImage: requested } : {});
501
- if (picked) return { systemImage: picked.pkg };
502
- const arch = hostSystemImageArch();
501
+ const decided = decideSystemImage({
502
+ requested,
503
+ installed: images,
504
+ policy
505
+ });
506
+ if (decided.kind !== "refuse") return { systemImage: decided.pkg };
503
507
  return { refusal: {
504
- code: NO_DEVICE,
505
- message: `No ${arch} Android system image is installed, so the emulator build's ABI and cache key are unknown.`,
506
- remedy: `Install one, e.g.: sdkmanager "system-images;android-36;google_apis;${arch}", then try again.`
508
+ code: decided.code,
509
+ message: decided.message,
510
+ remedy: decided.remedy
507
511
  } };
508
512
  }
509
513
  async function avdListed(avdName, list, signal) {
@@ -603,7 +607,7 @@ async function planReactNativeAndroid(root, opts, runtimeKind, { context: settin
603
607
  if (target.kind === "emulator" && replacement.refusal) return refuse(replacement.refusal);
604
608
  const abiKeyed = build.targetAbiOnly && !build.release;
605
609
  let localImageRead;
606
- const localImage = () => localImageRead ??= abiKeyed ? emulatorImage(root, slot, target.systemImage, replacement.replaces, deps, operation.signal) : Promise.resolve({ systemImage: null });
610
+ const localImage = () => localImageRead ??= abiKeyed ? emulatorImage(root, slot, target.systemImage, replacement.replaces, androidImageInstallPolicy(settings), deps, operation.signal) : Promise.resolve({ systemImage: null });
607
611
  let image;
608
612
  let hostedAbi = null;
609
613
  let placement;
@@ -1,20 +1,20 @@
1
- import { _ as spawnDeclared, t as getExecutor } from "./exec-aULwtNly.mjs";
2
- import { x as sharedCompilationCache } from "./workspace-state-3bF4TB8P.mjs";
1
+ import { b as spawnDeclared, t as getExecutor } from "./exec-CGuDzt40.mjs";
2
+ import { x as sharedCompilationCache } from "./workspace-state-BdZ-QgmB.mjs";
3
3
  import { n as stripAnsi, r as waitForChild, t as createLineReader } from "./process-output-Fpl8PYi8.mjs";
4
- import { l as phaseLine } from "./command-output-CfPW1bKP.mjs";
5
- import { a as killOnAbort } from "./operation-exec-Dp4FuIGR.mjs";
6
- import { C as resolvePackageJson } from "./project-Crtcbfl0.mjs";
7
- import { o as androidHome } from "./android-DsEj2CCs.mjs";
8
- import { n as CCACHE_UNAVAILABLE, o as readCcacheActivity } from "./ccache-BrwGIxmV.mjs";
9
- import { r as register } from "./cache-manifest-CfiEny4T.mjs";
10
- import { B as pickXcodeProject, G as swiftPrefixMappingSupported, I as compilationCacheSettings, M as HEARTBEAT_INTERVAL_MS, N as SWIFT_PREFIX_MAPPING_MIN_SWIFT, P as buildXcode, R as parseSwiftVersion, W as startBuildHeartbeat, z as parseXcodeMajor } from "./toolchain-Bnm8vUCV.mjs";
4
+ import { l as phaseLine } from "./command-output-DjExb_tZ.mjs";
5
+ import { a as killOnAbort } from "./operation-exec-DKlBcKAL.mjs";
6
+ import { C as resolvePackageJson } from "./project-DU3jjnBE.mjs";
7
+ import { o as androidHome } from "./android-Iq0M2t2d.mjs";
8
+ import { n as CCACHE_UNAVAILABLE, o as readCcacheActivity } from "./ccache-ChBMXlBq.mjs";
9
+ import { r as register } from "./cache-manifest-8JX9S1QJ.mjs";
10
+ import { B as pickXcodeProject, G as swiftPrefixMappingSupported, I as compilationCacheSettings, M as HEARTBEAT_INTERVAL_MS, N as SWIFT_PREFIX_MAPPING_MIN_SWIFT, P as buildXcode, R as parseSwiftVersion, W as startBuildHeartbeat, z as parseXcodeMajor } from "./toolchain-CYonNjd_.mjs";
11
11
  import { p as resolveOptimizations } from "./errors-DHm_U5gv.mjs";
12
12
  import { createHash } from "node:crypto";
13
13
  import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync } from "node:fs";
14
14
  import { dirname, isAbsolute, join, relative, sep } from "node:path";
15
15
  import { ambientContext } from "@stim-cli/core";
16
- import { fileURLToPath } from "node:url";
17
16
  import chalk from "chalk";
17
+ import { fileURLToPath } from "node:url";
18
18
  //#region src/engine/android-path-limit.ts
19
19
  /**
20
20
  * CMake's single-config Ninja generator measures an object against CMAKE_OBJECT_PATH_MAX from
@@ -1,9 +1,9 @@
1
- import { t as getExecutor } from "./exec-aULwtNly.mjs";
2
- import { l as phaseLine } from "./command-output-CfPW1bKP.mjs";
3
- import { Y as resolveIosProjectDir, q as resolveAndroidLayout } from "./settings-C6UTYW2K.mjs";
4
- import { v as detectIsExpo } from "./project-Crtcbfl0.mjs";
5
- import { Y as bundlerPin, a as buildsOnlyOnWorker, c as iosToolchainAsync, n as androidToolchain, r as androidToolchainAsync, t as androidRequirements } from "./toolchain-Bnm8vUCV.mjs";
6
- import { a as reactNativeDoctorFindings, i as mainCheckoutProjectRoot, n as detectFingerprintParity, r as detectLinkedLibraryGitMetadata, s as repairCxxLauncherState, t as checkMainCheckout } from "./doctor-BlrcoQ7B.mjs";
1
+ import { t as getExecutor } from "./exec-CGuDzt40.mjs";
2
+ import { l as phaseLine } from "./command-output-DjExb_tZ.mjs";
3
+ import { Y as resolveIosProjectDir, q as resolveAndroidLayout } from "./settings-B5IBDfTx.mjs";
4
+ import { v as detectIsExpo } from "./project-DU3jjnBE.mjs";
5
+ import { Y as bundlerPin, a as buildsOnlyOnWorker, c as iosToolchainAsync, n as androidToolchain, r as androidToolchainAsync, t as androidRequirements } from "./toolchain-CYonNjd_.mjs";
6
+ import { a as mainCheckoutProjectRoot, c as repairCxxLauncherState, i as detectLinkedLibraryGitMetadata, n as checkMainCheckout, o as reactNativeDoctorFindings, r as detectFingerprintParity } from "./doctor-dwRboaXx.mjs";
7
7
  import { existsSync, readdirSync, statSync } from "node:fs";
8
8
  import { join, relative } from "node:path";
9
9
  //#region src/diagnostics/doctor-ios-architectures.ts