stim 1.37.0 → 1.38.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 (140) hide show
  1. package/dist/{acquire-artifact-zBUbPuDP.mjs → acquire-artifact-QKPDkesw.mjs} +1 -1
  2. package/dist/{act-BGAFjY8f.mjs → act-Bh3t-NuH.mjs} +23 -29
  3. package/dist/{activity-CdpXXSq2.mjs → activity-CANftndU.mjs} +3 -3
  4. package/dist/{agent-device-usage-output-D0582GHy.mjs → agent-device-usage-output-CuROXefb.mjs} +3 -3
  5. package/dist/{android-CGctfYpv.mjs → android-27_JgJ1T.mjs} +3 -3
  6. package/dist/{android-CaSsewbu.mjs → android-Biwc4Dck.mjs} +5 -5
  7. package/dist/{android-BPBARZMR.mjs → android-DGLG_VQ3.mjs} +1 -1
  8. package/dist/{android-BBwLpxRh.mjs → android-Z6Eev9rL.mjs} +44 -38
  9. package/dist/{android-cas-p8gna03x.mjs → android-cas-BDAwwL82.mjs} +2 -2
  10. package/dist/{android-image-DY8KxK2m.mjs → android-image-BcUD6bPi.mjs} +2 -2
  11. package/dist/api.d.mts +2 -2
  12. package/dist/api.mjs +25 -25
  13. package/dist/{apk-signed-tail-BMv-KLcB.mjs → apk-signed-tail-DHMkXs4s.mjs} +2 -2
  14. package/dist/{artifact-BsimBWxG.mjs → artifact-Dc1GsK7o.mjs} +28 -14
  15. package/dist/{artifact-BrNZTZtA.mjs → artifact-sGoFVK1q.mjs} +11 -11
  16. package/dist/{auto-placement-CFKNrWLU.mjs → auto-placement-RNh4kx2T.mjs} +6 -6
  17. package/dist/{browser-web-YFsgCP_a.mjs → browser-web-7Oj57Roa.mjs} +10 -10
  18. package/dist/{build-DIhuoozz.mjs → build-DkE5vjp1.mjs} +22 -22
  19. package/dist/{build-cache-Dt-dhCJF.mjs → build-cache-CJ65Efv7.mjs} +7 -4
  20. package/dist/{build-plan-CgnLDof9.mjs → build-plan-DWajg5l_.mjs} +7 -6
  21. package/dist/{cli-BGUrlSH3.mjs → cli-BSlwv9hI.mjs} +18 -18
  22. package/dist/cli.mjs +1 -1
  23. package/dist/{client-DU6dnGX1.mjs → client-qwmHFSga.mjs} +12 -8
  24. package/dist/collector-run.mjs +3 -3
  25. package/dist/{command-output-ByEmIwur.mjs → command-output-DsjhOzJ3.mjs} +1 -1
  26. package/dist/{dependencies-BozoTBqa.mjs → dependencies-oku1ZLep.mjs} +76 -41
  27. package/dist/{dependency-state-BQeC4FVn.mjs → dependency-state-CBhPJAs_.mjs} +1 -1
  28. package/dist/{dev-client-3SQzMRXZ.mjs → dev-client-DL5UtVdx.mjs} +2 -2
  29. package/dist/{device-DGMvzoZZ.mjs → device-CxMwX0VO.mjs} +15 -14
  30. package/dist/{device-android-CBat355q.mjs → device-android-CSlBXuh_.mjs} +7 -7
  31. package/dist/{device-capacity-DWUOvY13.mjs → device-capacity-D_IlxZRL.mjs} +78 -31
  32. package/dist/device-host-worker.mjs +24 -12
  33. package/dist/{device-pool-B8IqZKqm.mjs → device-pool-BEaTdtss.mjs} +2 -2
  34. package/dist/{device-provision-DWAoSKEw.mjs → device-provision-C9NPdCne.mjs} +8 -8
  35. package/dist/{device-BIg1iExg.mjs → device-yfuJ-v4s.mjs} +9 -9
  36. package/dist/{doctor-CxgR5vPi.mjs → doctor-BAA3zN5U.mjs} +1 -1
  37. package/dist/{doctor-CPzwqcXY.mjs → doctor-BQ1Kl44s.mjs} +13 -19
  38. package/dist/{doctor-Bknt0121.mjs → doctor-QNzDE4aW.mjs} +18 -18
  39. package/dist/doctor-fingerprint.mjs +1 -1
  40. package/dist/{doctor-watchman-CPE4C8KV.mjs → doctor-watchman-B8e3s9ko.mjs} +3 -3
  41. package/dist/{eas-build-CwOXKJwa.mjs → eas-build-4rg9WpEg.mjs} +2 -2
  42. package/dist/{eas-fallback-Cnb12a50.mjs → eas-fallback-UGo0SG7T.mjs} +3 -3
  43. package/dist/{eas-session-ledger-TE1miVz5.mjs → eas-session-ledger-BDpSdFDM.mjs} +4 -4
  44. package/dist/{error-diagnostics-CXTT3bYC.mjs → error-diagnostics-CW9xl6ot.mjs} +7 -7
  45. package/dist/{gc-0jdcnDHs.mjs → gc-3DHVCn-k.mjs} +49 -33
  46. package/dist/{gc-1ZLq1djg.mjs → gc-BQ5dXnC7.mjs} +2 -2
  47. package/dist/{guide-COxIANZu.mjs → guide-DqJCc4vW.mjs} +138 -43
  48. package/dist/{hosted-android-D8JbIzgC.mjs → hosted-android-gwLspaz6.mjs} +3 -3
  49. package/dist/{hosted-client-BLwuXEZS.mjs → hosted-client-B_h_bTlz.mjs} +2 -2
  50. package/dist/{hosted-logs-BWEQNJx_.mjs → hosted-logs-BpQSRDRU.mjs} +15 -8
  51. package/dist/{hosted-logs-sync-uWSrH2mf.mjs → hosted-logs-sync-D3L1hDpM.mjs} +5 -5
  52. package/dist/{hosted-macos-BnCYAv1y.mjs → hosted-macos-GK4O1s7x.mjs} +5 -5
  53. package/dist/{hosted-native-OBT2sJxn.mjs → hosted-native-B6ur_0OJ.mjs} +7 -7
  54. package/dist/{ios-Bjz7aPLy.mjs → ios-Bi0bQiZ_.mjs} +8 -8
  55. package/dist/{ios-BveW7qK1.mjs → ios-DQEzde6f.mjs} +9 -6
  56. package/dist/{ios-CGyx4PA7.mjs → ios-M7nRVb33.mjs} +94 -32
  57. package/dist/{ios-device-ByrDWSpC.mjs → ios-device-BLm1BZB4.mjs} +1 -1
  58. package/dist/{ios-project-XHg87vyQ.mjs → ios-project-Bsm-eqwv.mjs} +6 -6
  59. package/dist/ios-runtime-DLiKoOkd.mjs +150 -0
  60. package/dist/{ios-signing-CRYQ1W42.mjs → ios-signing-rWR_Mu5Z.mjs} +1 -1
  61. package/dist/{ios-state-enWc5P6U.mjs → ios-state-tzD0s7pt.mjs} +1 -1
  62. package/dist/{js-swap-C6vl3vEd.mjs → js-swap-Cuky0ZAQ.mjs} +5 -5
  63. package/dist/{launch-f3RnbFW5.mjs → launch-B-pkNlqg.mjs} +17 -17
  64. package/dist/{lightened-Cdfmo8MO.mjs → lightened-KHWHmzGs.mjs} +4 -4
  65. package/dist/{logs-x3em2-oI.mjs → logs-B0etn-BD.mjs} +6 -6
  66. package/dist/{logs-DAjxBF3c.mjs → logs-HomiqPhV.mjs} +4 -4
  67. package/dist/{macos-ZfpWlzBO.mjs → macos-C5liDnbP.mjs} +1 -1
  68. package/dist/macos-run.mjs +1 -1
  69. package/dist/{macos-D_LAseN9.mjs → macos-zMxSibx5.mjs} +18 -19
  70. package/dist/maintenance-run.mjs +4 -4
  71. package/dist/{metro-TIQ1Wft-.mjs → metro-Cj6W4qOO.mjs} +1 -1
  72. package/dist/{metro-request-DcUxyaq8.mjs → metro-request-BWCl3Zco.mjs} +1 -1
  73. package/dist/{prebuild-BKkj3OyL.mjs → miss-reason-CeHvzeVm.mjs} +10 -270
  74. package/dist/{named-ports-BfEMi9bK.mjs → named-ports-DZ8DrkH1.mjs} +1 -1
  75. package/dist/{native-android-COOrNDk2.mjs → native-android-DtWLzg6g.mjs} +15 -15
  76. package/dist/{native-gradle-artifact-inputs-B4Mwydmf.mjs → native-gradle-artifact-inputs-D4w20_6d.mjs} +3 -3
  77. package/dist/{native-runtime-UxUBU8up.mjs → native-runtime-BfvvAJLd.mjs} +6 -6
  78. package/dist/{native-xcode-inputs-DUv7Q3ok.mjs → native-xcode-inputs-BHvnAq4o.mjs} +2 -2
  79. package/dist/{native-xcode-ios-DXcteLVi.mjs → native-xcode-ios-CYxrg_kK.mjs} +15 -15
  80. package/dist/offload-worker.mjs +19 -18
  81. package/dist/{ownership-CQTg6v1d.mjs → ownership-BLgOimfp.mjs} +2 -2
  82. package/dist/{phone-reverses-CHtco460.mjs → phone-reverses-vRveZKSG.mjs} +3 -3
  83. package/dist/{placement-log-oQnELAvQ.mjs → placement-log-CM0DSELs.mjs} +1 -1
  84. package/dist/{plan-placement-45EOlIG1.mjs → plan-placement-CIrvKq8y.mjs} +5 -5
  85. package/dist/{ports-DKO7EUNt.mjs → ports-CKORWlC0.mjs} +2 -2
  86. package/dist/{project-BCtQz48d.mjs → project-DIo71tGq.mjs} +14 -14
  87. package/dist/{react-native-android-MI4ktuhL.mjs → react-native-android-B7VYSlKj.mjs} +36 -27
  88. package/dist/{react-native-build-dixAL2G8.mjs → react-native-build-CFYTYmG4.mjs} +10 -7
  89. package/dist/{react-native-doctor-CvkWincj.mjs → react-native-doctor-CnpVfE0k.mjs} +5 -5
  90. package/dist/{react-native-ios-DF5otoBR.mjs → react-native-ios-ByeXo_NP.mjs} +15 -14
  91. package/dist/{recorded-build-CGHGCO8m.mjs → recorded-build-B4prJjSD.mjs} +1 -1
  92. package/dist/{recordings-BcOzqFD1.mjs → recordings-Byu5SzlI.mjs} +1 -1
  93. package/dist/{reload-DWxmO9dY.mjs → reload-DANrKhQR.mjs} +1 -1
  94. package/dist/{reload-DGWfNFwQ.mjs → reload-DTd9g1EG.mjs} +13 -13
  95. package/dist/{remote-DWYGW2f5.mjs → remote-BWuq9qHV.mjs} +3 -3
  96. package/dist/{remote-CV2jBcLv.mjs → remote-NOM82XE0.mjs} +8 -8
  97. package/dist/{result-CWyxwPvZ.mjs → result-C-ISEJ5F.mjs} +15 -15
  98. package/dist/{run-FZtMQgrx.mjs → run-DQwx6djG.mjs} +1 -1
  99. package/dist/{server-bare-Ksh1NKeI.mjs → server-bare-B_wRfchQ.mjs} +1 -1
  100. package/dist/{server-command-BO2DIsJV.mjs → server-command-DgXYowQf.mjs} +5 -5
  101. package/dist/{server-expo-ZS9_WaNG.mjs → server-expo-ByBM8DVv.mjs} +9 -7
  102. package/dist/server-expo-D7rwjAFp.mjs +2 -0
  103. package/dist/{settings-TYrzDh8T.mjs → settings-BthPoY3t.mjs} +2 -2
  104. package/dist/{settings-Ag4pbs0z.mjs → settings-Cz8kQJzr.mjs} +44 -8
  105. package/dist/{settings-payload-CUM0DYwz.mjs → settings-payload-BOcxsZ6k.mjs} +2 -2
  106. package/dist/{settings-write-D_9_IEx7.mjs → settings-write-BuMPL1rd.mjs} +3 -3
  107. package/dist/settings.schema.json +32 -2
  108. package/dist/{slot-launch-DW_29Bmu.mjs → slot-launch-BIm9w8kH.mjs} +5 -5
  109. package/dist/{stage-_8k8p7uq.mjs → stage-CX1Byp3n.mjs} +5 -4
  110. package/dist/{start-CdgtOksb.mjs → start-BZWr85b2.mjs} +1 -1
  111. package/dist/{start-CzBB5R7N.mjs → start-DI0ofPO-.mjs} +8 -8
  112. package/dist/{state-DsrFh3yv.mjs → state-45P8Kd6Z.mjs} +1 -1
  113. package/dist/{state-CfP-ccP8.mjs → state-C2vELPyr.mjs} +2 -2
  114. package/dist/{stats-BgTyuzib.mjs → stats-BDljWVWU.mjs} +3 -3
  115. package/dist/{status-C7Zzb-Eh.mjs → status-BG2S-a1d.mjs} +1 -1
  116. package/dist/{status-Bcdy5eHt.mjs → status-DEZjHP4q.mjs} +27 -29
  117. package/dist/{status-watch-DY0EZcmg.mjs → status-watch-Cs18eFkQ.mjs} +4 -4
  118. package/dist/status-worker.mjs +1 -1
  119. package/dist/{stop-iGkvEvDn.mjs → stop-B2zDplJa.mjs} +2 -2
  120. package/dist/{stop-CkmBkNyg.mjs → stop-BPrTEOaz.mjs} +14 -14
  121. package/dist/{stop-CbxsTKyZ.mjs → stop-DrxHVVX9.mjs} +4 -4
  122. package/dist/supervisor-run.mjs +11 -11
  123. package/dist/{support-CfYmOdQs.mjs → support-BeVRaMWT.mjs} +9 -9
  124. package/dist/{support-JZ4KRW0C.mjs → support-DBKG3Yyb.mjs} +5 -5
  125. package/dist/{swiftpm-artifact-inputs-C1rZDRDs.mjs → swiftpm-artifact-inputs-CfNAb6Vm.mjs} +1 -1
  126. package/dist/{swiftpm-macos-DRTjC7Ff.mjs → swiftpm-macos-xdHjJHIj.mjs} +7 -7
  127. package/dist/toolchain-CTsPS5tL.mjs +2 -0
  128. package/dist/{toolchain-BeD7tbBW.mjs → toolchain-CZvtCZ-m.mjs} +9 -6
  129. package/dist/{warm-progress-CJQ8tk5O.mjs → warm-progress-D3a0KviW.mjs} +17 -13
  130. package/dist/{web-BXbmysa1.mjs → web-BvAweypa.mjs} +6 -6
  131. package/dist/web-DDL3usMb.mjs +2 -0
  132. package/dist/web-run.mjs +4 -4
  133. package/dist/{workspace-state-DOPXG2Gp.mjs → workspace-state-CHEN_xzy.mjs} +1 -1
  134. package/dist/{workspaces-DCzDzydB.mjs → workspaces-BgAYIccE.mjs} +213 -50
  135. package/dist/{worktree-6ngObKkw.mjs → worktree-C0YZ6mnk.mjs} +1 -1
  136. package/dist/{worktree-BAC43Kio.mjs → worktree-kGPE9Pcw.mjs} +335 -33
  137. package/package.json +7 -7
  138. package/dist/server-expo-9hQwyLze.mjs +0 -2
  139. package/dist/toolchain-CNlKc9pH.mjs +0 -2
  140. package/dist/web-BcaySU05.mjs +0 -2
@@ -1,24 +1,24 @@
1
1
  import { w as withDrainingCancellation } from "./exec-L37dbiIb.mjs";
2
- import { k as workspaceLogsDir } from "./workspace-state-DOPXG2Gp.mjs";
3
- import { _ as stepTimer, c as launchErrorReport, i as formatDuration, l as phaseLine, n as appReadinessMessage, v as launchErrorPreview } from "./command-output-ByEmIwur.mjs";
2
+ import { k as workspaceLogsDir } from "./workspace-state-CHEN_xzy.mjs";
3
+ import { _ as stepTimer, c as launchErrorReport, i as formatDuration, l as phaseLine, n as appReadinessMessage, v as launchErrorPreview } from "./command-output-DsjhOzJ3.mjs";
4
4
  import { A as withConfigLockAsync, O as upsertProject, T as setDevice, dt as deviceSlotFileKey, ft as deviceSlotKey, it as formatBytes, pt as deviceSlotPlatforms, v as loadConfig, w as saveConfig } from "./config-CNmN-ndb.mjs";
5
- import { L as workspaceDevServerMode } from "./project-BCtQz48d.mjs";
5
+ import { L as workspaceDevServerMode } from "./project-DIo71tGq.mjs";
6
6
  import { o as workspaceLinks } from "./stim-desktop-DWGAfaud.mjs";
7
- import { ct as trimAndroidCaches, i as androidDataFreeBytes, rt as resetAdoptedAvd, u as androidToolCwd } from "./android-CGctfYpv.mjs";
8
- import { c as pidExists, f as signalProcessTree } from "./metro-TIQ1Wft-.mjs";
9
- import { Cn as androidDevClientUrl, Ln as restartedAppNote, Sn as androidAppProcess, an as LAUNCH_UNVERIFIED, cn as VERIFY_TIMEOUT_MS, fn as unattributedLaunchLines, in as LAUNCH_FATAL, jn as installConflictKind, pn as unverifiedLaunchLines, rn as LAUNCH_BUNDLING, sn as RELEASE_VERIFY_WAIT_MS, vn as ADB_INSTALL_TIMEOUT_MS } from "./device-capacity-DWUOvY13.mjs";
10
- import { pt as teardownOwnedAvd } from "./workspaces-DCzDzydB.mjs";
11
- import { C as providerUploadOutcome } from "./build-cache-Dt-dhCJF.mjs";
12
- import { G as lostLine, K as lostRefusal, z as DEBUG_VERIFY_STEP_MS } from "./support-CfYmOdQs.mjs";
13
- import { t as recordPhoneReverse } from "./phone-reverses-CHtco460.mjs";
14
- import { n as verifyCollectorOwnership, r as readCollectors } from "./ownership-CQTg6v1d.mjs";
15
- import { n as nativeRunCommand, r as siblingPlatformSlots, t as launchSlotScope } from "./slot-launch-DW_29Bmu.mjs";
7
+ import { ct as trimAndroidCaches, i as androidDataFreeBytes, rt as resetAdoptedAvd, u as androidToolCwd } from "./android-27_JgJ1T.mjs";
8
+ import { c as pidExists, f as signalProcessTree } from "./metro-Cj6W4qOO.mjs";
9
+ import { Bn as restartedAppNote, En as androidDevClientUrl, Pn as installConflictKind, Tn as androidAppProcess, cn as LAUNCH_UNVERIFIED, dn as VERIFY_TIMEOUT_MS, gn as unverifiedLaunchLines, hn as unattributedLaunchLines, on as LAUNCH_BUNDLING, sn as LAUNCH_FATAL, un as RELEASE_VERIFY_WAIT_MS, xn as ADB_INSTALL_TIMEOUT_MS } from "./device-capacity-D_IlxZRL.mjs";
10
+ import { mt as teardownOwnedAvd } from "./workspaces-BgAYIccE.mjs";
11
+ import { C as providerUploadOutcome } from "./build-cache-CJ65Efv7.mjs";
12
+ import { G as lostLine, K as lostRefusal, z as DEBUG_VERIFY_STEP_MS } from "./support-BeVRaMWT.mjs";
13
+ import { t as recordPhoneReverse } from "./phone-reverses-vRveZKSG.mjs";
14
+ import { n as verifyCollectorOwnership, r as readCollectors } from "./ownership-BLgOimfp.mjs";
15
+ import { n as nativeRunCommand, r as siblingPlatformSlots, t as launchSlotScope } from "./slot-launch-BIm9w8kH.mjs";
16
16
  import { t as spawnEntry } from "./spawn-entry-jw19m8Nl.mjs";
17
- import { a as captureNativeCrashes, r as androidCrashClockOffset, s as printNativeCrashReport, t as errorDiagnostics } from "./error-diagnostics-CXTT3bYC.mjs";
18
- import { f as settleFingerprintCheck } from "./prebuild-BKkj3OyL.mjs";
19
- import { i as launchOutcomeRecord } from "./native-runtime-UxUBU8up.mjs";
20
- import { a as PLATFORM, b as noDeviceDiagnostic, h as displayPath, n as LAUNCH_FAILED, r as NO_DEVICE, t as INSTALL_FAILED } from "./support-JZ4KRW0C.mjs";
21
- import { a as persistLastBuild, n as finishAndroidUpload, s as reportAndroidResult } from "./result-CWyxwPvZ.mjs";
17
+ import { a as captureNativeCrashes, r as androidCrashClockOffset, s as printNativeCrashReport, t as errorDiagnostics } from "./error-diagnostics-CW9xl6ot.mjs";
18
+ import { o as settleFingerprintCheck } from "./miss-reason-CeHvzeVm.mjs";
19
+ import { i as launchOutcomeRecord } from "./native-runtime-BfvvAJLd.mjs";
20
+ import { a as PLATFORM, b as noDeviceDiagnostic, h as displayPath, n as LAUNCH_FAILED, r as NO_DEVICE, t as INSTALL_FAILED } from "./support-DBKG3Yyb.mjs";
21
+ import { a as persistLastBuild, n as finishAndroidUpload, s as reportAndroidResult } from "./result-C-ISEJ5F.mjs";
22
22
  import { mkdirSync, openSync, statSync } from "node:fs";
23
23
  import { basename, join } from "node:path";
24
24
  import { ambientEnv } from "@stim-cli/core";
@@ -1,9 +1,9 @@
1
1
  import { f as WorkspaceProcessCleanupError } from "./exec-L37dbiIb.mjs";
2
- import { c as withWorkspaceStateLock } from "./workspace-state-DOPXG2Gp.mjs";
3
- import { l as phaseLine } from "./command-output-ByEmIwur.mjs";
4
- import { Jt as warmWorktreePaths, Lt as podsOutOfSync, Q as resolveSettings, Rt as readWorktreeExclude, kt as listCarryableIgnoredEntries, vt as depsOutOfSync } from "./settings-Ag4pbs0z.mjs";
2
+ import { c as withWorkspaceStateLock } from "./workspace-state-CHEN_xzy.mjs";
3
+ import { l as phaseLine } from "./command-output-DsjhOzJ3.mjs";
4
+ import { Jt as warmWorktreePaths, Lt as podsOutOfSync, Q as resolveSettings, Rt as readWorktreeExclude, kt as listCarryableIgnoredEntries, vt as depsOutOfSync } from "./settings-Cz8kQJzr.mjs";
5
5
  import { t as canonicalPath } from "./paths-BsJMoPP2.mjs";
6
- import { m as warmWorktreeTarget } from "./worktree-BAC43Kio.mjs";
6
+ import { m as warmWorktreeTarget } from "./worktree-kGPE9Pcw.mjs";
7
7
  import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
8
8
  import { basename, dirname, join, relative } from "node:path";
9
9
  import { isJsonObject, readJsonObject, workspaceLightenedFile, workspaceMetadataFile } from "@stim-cli/core/state";
@@ -1,11 +1,11 @@
1
- import { i as recordWorkspaceUse, k as workspaceLogsDir$1, r as readWorkspaceState$1 } from "./workspace-state-DOPXG2Gp.mjs";
2
- import { f as refuseNoProject, v as launchErrorPreview } from "./command-output-ByEmIwur.mjs";
1
+ import { i as recordWorkspaceUse, k as workspaceLogsDir$1, r as readWorkspaceState$1 } from "./workspace-state-CHEN_xzy.mjs";
2
+ import { f as refuseNoProject, v as launchErrorPreview } from "./command-output-DsjhOzJ3.mjs";
3
3
  import { _ as isPathPrefix$1, ht as parseDeviceSlotOption, v as loadConfig$1 } from "./config-CNmN-ndb.mjs";
4
- import { n as findCommandWorkspace } from "./project-BCtQz48d.mjs";
4
+ import { n as findCommandWorkspace } from "./project-DIo71tGq.mjs";
5
5
  import { n as SOURCES$1, t as LEVELS$1 } from "./ndjson-CrjIsGzw.mjs";
6
- import { i as followAgentActions, n as openWorkspaceLogs } from "./logs-DAjxBF3c.mjs";
7
- import { t as errorDiagnostics } from "./error-diagnostics-CXTT3bYC.mjs";
8
- import { n as followHostedLogs } from "./hosted-logs-sync-uWSrH2mf.mjs";
6
+ import { i as followAgentActions, n as openWorkspaceLogs } from "./logs-HomiqPhV.mjs";
7
+ import { t as errorDiagnostics } from "./error-diagnostics-CW9xl6ot.mjs";
8
+ import { n as followHostedLogs } from "./hosted-logs-sync-D3L1hDpM.mjs";
9
9
  import { t as watchStdoutReader } from "./stdout-reader-C8yjre1x.mjs";
10
10
  import { realpathSync } from "node:fs";
11
11
  import { relative, sep } from "node:path";
@@ -1,9 +1,9 @@
1
1
  import { T as process_identity_exports } from "./exec-L37dbiIb.mjs";
2
- import { k as workspaceLogsDir$1 } from "./workspace-state-DOPXG2Gp.mjs";
2
+ import { k as workspaceLogsDir$1 } from "./workspace-state-CHEN_xzy.mjs";
3
3
  import { gt as projectDeviceSlots, v as loadConfig$1 } from "./config-CNmN-ndb.mjs";
4
- import { f as readAgentDeviceRecordsAsync, n as agentDeviceLiveness, o as envDir } from "./activity-CdpXXSq2.mjs";
5
- import { o as captureWorkspaceCrashes } from "./error-diagnostics-CXTT3bYC.mjs";
6
- import { n as followHostedLogs, r as syncHostedLogs } from "./hosted-logs-sync-uWSrH2mf.mjs";
4
+ import { f as readAgentDeviceRecordsAsync, n as agentDeviceLiveness, o as envDir } from "./activity-CANftndU.mjs";
5
+ import { o as captureWorkspaceCrashes } from "./error-diagnostics-CW9xl6ot.mjs";
6
+ import { n as followHostedLogs, r as syncHostedLogs } from "./hosted-logs-sync-D3L1hDpM.mjs";
7
7
  import { readdirSync, statSync, watch } from "node:fs";
8
8
  import { homedir } from "node:os";
9
9
  import { dirname, join, relative, resolve, sep } from "node:path";
@@ -1,2 +1,2 @@
1
- import { n as runMacos, r as waitForLaunchServices, t as macosCommand } from "./macos-D_LAseN9.mjs";
1
+ import { n as runMacos, r as waitForLaunchServices, t as macosCommand } from "./macos-zMxSibx5.mjs";
2
2
  export { macosCommand as default, runMacos, waitForLaunchServices };
@@ -1,2 +1,2 @@
1
- import { n as runMacosSupervisor, t as logLines } from "./run-FZtMQgrx.mjs";
1
+ import { n as runMacosSupervisor, t as logLines } from "./run-DQwx6djG.mjs";
2
2
  export { logLines, runMacosSupervisor };
@@ -1,24 +1,24 @@
1
1
  import { b as spawnDeclared, d as throwIfCancelled, p as withWorkspaceProcessLock, t as getExecutor, w as withDrainingCancellation } from "./exec-L37dbiIb.mjs";
2
- import { E as workspaceDir, a as recordWorkspaceUseAsync, f as writeWorkspaceStateAsync, k as workspaceLogsDir$1, v as ensureWorkspaceStorageAsync, w as workspaceAgentDeviceDir } from "./workspace-state-DOPXG2Gp.mjs";
3
- import { l as phaseLine } from "./command-output-ByEmIwur.mjs";
2
+ import { E as workspaceDir, a as recordWorkspaceUseAsync, f as writeWorkspaceStateAsync, k as workspaceLogsDir$1, v as ensureWorkspaceStorageAsync, w as workspaceAgentDeviceDir } from "./workspace-state-CHEN_xzy.mjs";
3
+ import { l as phaseLine } from "./command-output-DsjhOzJ3.mjs";
4
4
  import { A as withConfigLockAsync$1, O as upsertProject, u as getConcurrencyLimits } from "./config-CNmN-ndb.mjs";
5
- import { Z as resolveProjectSettingsAsync, a as SETTING_SHAPE_REMEDY, it as settingValueAt, rt as settingShapeErrors } from "./settings-Ag4pbs0z.mjs";
6
- import { f as projectRegistry, i as findProjectRoot$1, s as ownedDeviceLabel } from "./project-BCtQz48d.mjs";
7
- import { i as macosProcess, n as macosDir, o as requiredMacosRecord, r as macosLogFile } from "./state-DsrFh3yv.mjs";
5
+ import { Z as resolveProjectSettingsAsync, a as SETTING_SHAPE_REMEDY, it as settingValueAt, rt as settingShapeErrors } from "./settings-Cz8kQJzr.mjs";
6
+ import { f as projectRegistry, i as findProjectRoot$1, s as ownedDeviceLabel } from "./project-DIo71tGq.mjs";
7
+ import { i as macosProcess, n as macosDir, o as requiredMacosRecord, r as macosLogFile } from "./state-45P8Kd6Z.mjs";
8
8
  import { i as createNdjsonWriter } from "./ndjson-CrjIsGzw.mjs";
9
- import { Un as processContext, Wn as runProcessOperation } from "./device-capacity-DWUOvY13.mjs";
10
- import { $ as tapBuildLog, H as NO_BUILD_PROGRESS, Q as startBuildProgress, St as acquireBuildSlot, Tt as releaseBuildSlot, X as recordFinishedBuild, Y as recordBuildPhase, tt as errorRemedy } from "./workspaces-DCzDzydB.mjs";
11
- import { _t as runCancellationSignal, vt as withNativeBuildRun } from "./toolchain-BeD7tbBW.mjs";
12
- import { O as sanitizeDeviceLabel } from "./ios-BveW7qK1.mjs";
13
- import { C as setRemoteLogSink, c as offloadPlacement, i as closeOffload, l as placementLoad, n as buildPlacementCandidates, o as offloadBuild, r as chooseBuildMachine, u as remotePhaseText } from "./client-DU6dnGX1.mjs";
14
- import { D as OffloadRefusal, F as requireLocalBuild, L as resolveBuildPlacement, M as namedBuildMachine, N as parseBuildMachineOption, O as automaticBuild } from "./support-CfYmOdQs.mjs";
15
- import { u as connectHost } from "./hosted-client-BLwuXEZS.mjs";
16
- import { t as placeHostedMacos } from "./hosted-macos-BnCYAv1y.mjs";
17
- import { i as stopMacosAppHeld, t as stopBundleInstances } from "./stop-CbxsTKyZ.mjs";
9
+ import { Kn as processContext, qn as runProcessOperation } from "./device-capacity-D_IlxZRL.mjs";
10
+ import { $ as startBuildProgress, Ct as acquireBuildSlot, Et as releaseBuildSlot, U as NO_BUILD_PROGRESS, X as recordBuildPhase, Z as recordFinishedBuild, et as tapBuildLog, nt as errorRemedy } from "./workspaces-BgAYIccE.mjs";
11
+ import { ht as withNativeBuildRun, mt as runCancellationSignal } from "./toolchain-CZvtCZ-m.mjs";
12
+ import { O as sanitizeDeviceLabel } from "./ios-DQEzde6f.mjs";
13
+ import { C as setRemoteLogSink, c as offloadPlacement, i as closeOffload, l as placementLoad, n as buildPlacementCandidates, o as offloadBuild, r as chooseBuildMachine, u as remotePhaseText } from "./client-qwmHFSga.mjs";
14
+ import { D as OffloadRefusal, F as requireLocalBuild, L as resolveBuildPlacement, M as namedBuildMachine, N as parseBuildMachineOption, O as automaticBuild } from "./support-BeVRaMWT.mjs";
15
+ import { u as connectHost } from "./hosted-client-B_h_bTlz.mjs";
16
+ import { t as placeHostedMacos } from "./hosted-macos-GK4O1s7x.mjs";
17
+ import { i as stopMacosAppHeld, t as stopBundleInstances } from "./stop-DrxHVVX9.mjs";
18
18
  import { t as spawnEntry } from "./spawn-entry-jw19m8Nl.mjs";
19
- import { t as buildPlacementRecord } from "./placement-log-oQnELAvQ.mjs";
20
- import { n as devicePlacementLine, t as automaticDevicePlacement } from "./auto-placement-CFKNrWLU.mjs";
21
- import { t as reidentifyBundle } from "./stage-_8k8p7uq.mjs";
19
+ import { t as buildPlacementRecord } from "./placement-log-CM0DSELs.mjs";
20
+ import { n as devicePlacementLine, t as automaticDevicePlacement } from "./auto-placement-RNh4kx2T.mjs";
21
+ import { t as reidentifyBundle } from "./stage-CX1Byp3n.mjs";
22
22
  import { t as validateMacosArtifactPlatform } from "./artifact-platform-BaGL1i1X.mjs";
23
23
  import { t as waitForMacosRegistration } from "./registration-C-3PDR3X.mjs";
24
24
  import { createHash, randomUUID } from "node:crypto";
@@ -319,7 +319,6 @@ function clip(text, max) {
319
319
  const chars = [...text];
320
320
  return chars.length <= max ? text : `${chars.slice(0, max - 1).join("")}${ELLIPSIS}`;
321
321
  }
322
- /** The visible app name for a run: `<product> <dot> <label>`, or just the product when the label is empty. */
323
322
  function macosAppName(product, label) {
324
323
  const name = clip(product.replace(/[\p{Cc}/:\\]+/gu, " ").trim(), PRODUCT_MAX) || "App";
325
324
  const suffix = clip(sanitizeDeviceLabel(label), LABEL_MAX);
@@ -344,7 +343,7 @@ async function planMacos(context, root, buildMachineFlag) {
344
343
  if (selected.failure) throw Object.assign(new Error(selected.failure.message), selected.failure);
345
344
  const macos = settings.macos;
346
345
  if (!macos?.product || !macos.infoPlist) throw Object.assign(/* @__PURE__ */ new Error("Set macos.product and macos.infoPlist explicitly in .stim.json. See stim guide macos."), { code: "STIM_BAD_ARG" });
347
- const { swiftpmMacosProject } = await import("./swiftpm-macos-DRTjC7Ff.mjs");
346
+ const { swiftpmMacosProject } = await import("./swiftpm-macos-xdHjJHIj.mjs");
348
347
  const recipe = await swiftpmMacosProject(root).prepare(context, settings);
349
348
  let identity = null;
350
349
  let cacheHit = false;
@@ -1,10 +1,10 @@
1
1
  import { it as formatBytes } from "./config-CNmN-ndb.mjs";
2
- import { $ as levelStillShort, Ft as deviceSweepIsScoped, Q as levelFloors, R as resolveBudget, Z as diskPressureLevel, at as maintenanceLogger, et as lowestFree, it as openGcLog, rt as maintenanceItem } from "./device-capacity-DWUOvY13.mjs";
3
- import { I as memoryCulpritsUnder, V as memoryCulpritAdvice } from "./ios-BveW7qK1.mjs";
2
+ import { $ as levelStillShort, Lt as deviceSweepIsScoped, Q as levelFloors, R as resolveBudget, Z as diskPressureLevel, at as maintenanceLogger, et as lowestFree, it as openGcLog, rt as maintenanceItem } from "./device-capacity-D_IlxZRL.mjs";
4
3
  import { t as resolveMaintenanceSettings } from "./settings-D9LtQaUw.mjs";
5
- import { C as sizeScanDeferred, S as measureSizes, b as measurePressure, v as measureDisk } from "./worktree-BAC43Kio.mjs";
4
+ import { I as memoryCulpritsUnder, V as memoryCulpritAdvice } from "./ios-DQEzde6f.mjs";
5
+ import { C as sizeScanDeferred, S as measureSizes, b as measurePressure, v as measureDisk } from "./worktree-kGPE9Pcw.mjs";
6
6
  import { t as relaunchWithLogFile } from "./detached-entry-VqFeEE9W.mjs";
7
- import { i as plannedMaintenance, n as diskRecovered, o as triggeringRoot, r as executeAction, v as measureOwnedDevices } from "./act-BGAFjY8f.mjs";
7
+ import { i as plannedMaintenance, n as diskRecovered, o as triggeringRoot, r as executeAction, v as measureOwnedDevices } from "./act-Bh3t-NuH.mjs";
8
8
  import { r as due, t as capChildLog } from "./attempt-ClyJlZPT.mjs";
9
9
  import { releaseClaim, tryAcquireClaim } from "@stim-cli/core/ownership-claim";
10
10
  import { randomBytes } from "node:crypto";
@@ -1,5 +1,5 @@
1
1
  import { T as process_identity_exports, f as WorkspaceProcessCleanupError, t as getExecutor } from "./exec-L37dbiIb.mjs";
2
- import { r as readWorkspaceState } from "./workspace-state-DOPXG2Gp.mjs";
2
+ import { r as readWorkspaceState } from "./workspace-state-CHEN_xzy.mjs";
3
3
  import { A as withConfigLockAsync, S as releaseMetroPort, n as allMetroPorts, ot as isOnMountedVolume, r as claimMetroPort, st as listMountedVolumes, v as loadConfig } from "./config-CNmN-ndb.mjs";
4
4
  import { t as runOperationFile } from "./operation-exec-DNynwpqO.mjs";
5
5
  import { sep } from "path";
@@ -1,5 +1,5 @@
1
1
  import { T as process_identity_exports, d as throwIfCancelled, u as cancelledError } from "./exec-L37dbiIb.mjs";
2
- import { j as workspaceStateFile$1, l as withWorkspaceStateLockAsync, o as updateWorkspaceState, r as readWorkspaceState$1, s as updateWorkspaceStateAsync } from "./workspace-state-DOPXG2Gp.mjs";
2
+ import { j as workspaceStateFile$1, l as withWorkspaceStateLockAsync, o as updateWorkspaceState, r as readWorkspaceState$1, s as updateWorkspaceStateAsync } from "./workspace-state-CHEN_xzy.mjs";
3
3
  import { randomUUID } from "node:crypto";
4
4
  import { statSync, watch } from "node:fs";
5
5
  import { HOSTED_METRO_REQUESTS_KEY, hostedMetroLinks, hostedMetroRequests, isJsonObject } from "@stim-cli/core/state";
@@ -1,21 +1,16 @@
1
- import { E as debugLog, b as spawnDeclared, t as getExecutor } from "./exec-L37dbiIb.mjs";
2
- import { M as withDirLock$1, l as withWorkspaceStateLockAsync, o as updateWorkspaceState, r as readWorkspaceState$1, y as sharedBuildCache } from "./workspace-state-DOPXG2Gp.mjs";
3
- import { n as stripAnsi, r as waitForChild, t as createLineReader } from "./process-output-Fpl8PYi8.mjs";
4
- import { m as shortHash } from "./command-output-ByEmIwur.mjs";
5
- import { o as git, s as gitAsync } from "./operation-exec-DNynwpqO.mjs";
6
- import { Ct as gitCommonDirOnDisk } from "./settings-Ag4pbs0z.mjs";
7
- import { v as detectIsExpo } from "./project-BCtQz48d.mjs";
8
- import { ar as remoteCliInvocation } from "./device-capacity-DWUOvY13.mjs";
1
+ import { E as debugLog } from "./exec-L37dbiIb.mjs";
2
+ import { M as withDirLock, y as sharedBuildCache } from "./workspace-state-CHEN_xzy.mjs";
3
+ import { m as shortHash } from "./command-output-DsjhOzJ3.mjs";
4
+ import { s as gitAsync } from "./operation-exec-DNynwpqO.mjs";
5
+ import { Ct as gitCommonDirOnDisk } from "./settings-Cz8kQJzr.mjs";
9
6
  import { r as register } from "./cache-manifest-BO0TIcPV.mjs";
10
- import { nt as STIM_VERSION } from "./workspaces-DCzDzydB.mjs";
11
- import { b as packageIn, d as expoEnvFiles, g as fingerprintProject, h as fingerprintOptions, k as storedSources, s as diffFingerprintSources } from "./build-cache-Dt-dhCJF.mjs";
12
- import { i as expoBinRefusal, o as expoSdkMajor, r as expoBinPath, s as expoTelemetryEnv } from "./server-expo-ZS9_WaNG.mjs";
7
+ import { rt as STIM_VERSION } from "./workspaces-BgAYIccE.mjs";
8
+ import { b as packageIn, d as expoEnvFiles, g as fingerprintProject, h as fingerprintOptions, k as storedSources, s as diffFingerprintSources } from "./build-cache-CJ65Efv7.mjs";
13
9
  import { t as readDoctorFingerprint } from "./doctor-fingerprint-Bo4z8YNP.mjs";
14
10
  import { createRequire } from "node:module";
15
11
  import { createHash } from "node:crypto";
16
12
  import { existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, readlinkSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
17
13
  import { dirname, isAbsolute, join, posix, relative, resolve, sep } from "node:path";
18
- import { ambientContext } from "@stim-cli/core";
19
14
  import { FINGERPRINT_MEMO_SCHEMA, LAST_BUILD_KEYS, fingerprintMemoDir, fingerprintMemoFile, fingerprintMemoLock, loadConfig, readFingerprintMemo, readWorkspaceState, trace } from "@stim-cli/core/state";
20
15
  import { readFile } from "node:fs/promises";
21
16
  import * as expoFingerprint from "@expo/fingerprint";
@@ -556,7 +551,7 @@ function isSourceList(sources) {
556
551
  function writeRecord(record, { onlyIfAbsent = false } = {}) {
557
552
  const dir = fingerprintMemoDir(record.platform);
558
553
  const file = fingerprintMemoFile(record.platform, record.digest);
559
- withDirLock$1(fingerprintMemoLock(), () => {
554
+ withDirLock(fingerprintMemoLock(), () => {
560
555
  if (onlyIfAbsent && existsSync(file)) return;
561
556
  mkdirSync(dir, {
562
557
  recursive: true,
@@ -586,7 +581,7 @@ function writeRecord(record, { onlyIfAbsent = false } = {}) {
586
581
  function dropRecord(platform, digest) {
587
582
  const file = fingerprintMemoFile(platform, digest);
588
583
  if (!existsSync(file)) return;
589
- withDirLock$1(fingerprintMemoLock(), () => rmSync(file, { force: true }));
584
+ withDirLock(fingerprintMemoLock(), () => rmSync(file, { force: true }));
590
585
  }
591
586
  const runBackgroundFingerprint = (operation, projectRoot, target, signal) => readDoctorFingerprint({
592
587
  ...operation,
@@ -988,259 +983,4 @@ function fingerprintErrorMissReason(message) {
988
983
  };
989
984
  }
990
985
  //#endregion
991
- //#region src/engine/prebuild.ts
992
- const PREBUILD_ERROR = "STIM_PREBUILD_FAILED";
993
- const LAST_LINES = 20;
994
- function nativeDirName(platform) {
995
- return platform === "android" ? "android" : "ios";
996
- }
997
- function nativeDir(root, platform) {
998
- return join(root, nativeDirName(platform));
999
- }
1000
- function nativeDirInFingerprint(sources, platform) {
1001
- const dir = nativeDirName(platform);
1002
- return sources.some((source) => source.type === "dir" && source.filePath === dir && source.hash != null);
1003
- }
1004
- /**
1005
- * @expo/fingerprint leaves a native directory out of the hash when git ignores it (CNG), so the cache
1006
- * key only covers that directory when this workspace's recorded prebuild ran on the same fingerprint.
1007
- */
1008
- function prebuildAction({ isExpo, nativeDirExists, nativeDirFingerprinted, nativeDirTracked, generatedFrom, fingerprint }) {
1009
- if (!isExpo) return "none";
1010
- if (!nativeDirExists) return "generate";
1011
- if (nativeDirFingerprinted || generatedFrom === fingerprint) return "none";
1012
- return nativeDirTracked ? "refuse" : "regenerate";
1013
- }
1014
- function prebuildRecord(state) {
1015
- const record = state?.prebuild;
1016
- return record && typeof record === "object" ? record : {};
1017
- }
1018
- function unreadableGitTracksNativeDir(error) {
1019
- if (error instanceof Error && "code" in error && error.code === "ENOENT") return false;
1020
- return !/not a git repository \(or any (of the parent directories|parent up to mount point)/.test(error instanceof Error ? error.message : String(error));
1021
- }
1022
- function gitTracksNativeDir(root, platform) {
1023
- try {
1024
- return git(root, [
1025
- "ls-files",
1026
- "--",
1027
- nativeDirName(platform)
1028
- ], { env: {
1029
- LC_ALL: "C",
1030
- LANGUAGE: "C"
1031
- } }).trim() !== "";
1032
- } catch (error) {
1033
- return unreadableGitTracksNativeDir(error);
1034
- }
1035
- }
1036
- function prebuildInputs(root, platform, { isExpo, fingerprint, sources }) {
1037
- const nativeDirExists = existsSync(nativeDir(root, platform));
1038
- const fingerprinted = nativeDirInFingerprint(sources, platform);
1039
- const generatedFrom = prebuildRecord(readWorkspaceState$1(root))[platform];
1040
- return {
1041
- isExpo,
1042
- nativeDirExists,
1043
- nativeDirFingerprinted: fingerprinted,
1044
- generatedFrom: typeof generatedFrom === "string" ? generatedFrom : null,
1045
- fingerprint
1046
- };
1047
- }
1048
- function planPrebuild(root, platform, options) {
1049
- const inputs = prebuildInputs(root, platform, options);
1050
- return prebuildAction({
1051
- ...inputs,
1052
- nativeDirTracked: inputs.nativeDirExists && !inputs.nativeDirFingerprinted && gitTracksNativeDir(root, platform)
1053
- });
1054
- }
1055
- async function planPrebuildAsync(root, platform, options, signal) {
1056
- signal?.throwIfAborted();
1057
- const untracked = prebuildAction({
1058
- ...prebuildInputs(root, platform, options),
1059
- nativeDirTracked: false
1060
- });
1061
- if (untracked !== "regenerate") return untracked;
1062
- let tracked;
1063
- try {
1064
- tracked = (await gitAsync(root, [
1065
- "ls-files",
1066
- "--",
1067
- nativeDirName(platform)
1068
- ], {
1069
- env: {
1070
- LC_ALL: "C",
1071
- LANGUAGE: "C"
1072
- },
1073
- signal
1074
- })).trim() !== "";
1075
- } catch (error) {
1076
- signal?.throwIfAborted();
1077
- tracked = unreadableGitTracksNativeDir(error);
1078
- }
1079
- return tracked ? "refuse" : "regenerate";
1080
- }
1081
- function recordPrebuild(root, platform, fingerprint) {
1082
- updateWorkspaceState(root, (state) => ({
1083
- ...state,
1084
- prebuild: {
1085
- ...prebuildRecord(state),
1086
- [platform]: fingerprint
1087
- }
1088
- }));
1089
- }
1090
- /** Records the prebuild fingerprint after waiting for the workspace state lock without blocking the event loop. */
1091
- function recordPrebuildAsync(root, platform, fingerprint) {
1092
- return withWorkspaceStateLockAsync(root, () => recordPrebuild(root, platform, fingerprint));
1093
- }
1094
- /**
1095
- * @expo/cli 57 made `expo prebuild` delete existing native folders by default and added `--no-clean`
1096
- * to keep them (expo/expo#47209); earlier CLIs keep them by default and reject `--no-clean`.
1097
- */
1098
- function keepNativeDirArgs(root) {
1099
- return (expoSdkMajor(root) ?? 0) >= 57 ? ["--no-clean"] : [];
1100
- }
1101
- function staleNativeDirRemedy(platform) {
1102
- const dir = nativeDirName(platform);
1103
- return `Fix what the output above reports. Stim ran \`expo prebuild\` over the existing ${dir}/ without deleting it, which keeps what earlier config plugins wrote there. If ${dir}/ predates a removed config plugin or an Expo SDK upgrade, delete ${dir}/ and run again so Stim generates it fresh.`;
1104
- }
1105
- function staleNativeDirRefusal(platform) {
1106
- const dir = nativeDirName(platform);
1107
- return {
1108
- code: PREBUILD_ERROR,
1109
- message: `The fingerprint leaves ${dir}/ out of the cache key, and Stim cannot show that ${dir}/ was generated from the current app config. Git tracks files in it, or could not say whether it does, so Stim will not run \`expo prebuild\` over it.`,
1110
- remedy: `Stop excluding ${dir}/ from the fingerprint (check .fingerprintignore) so the cache key covers its files, or add ${dir}/ to .gitignore and untrack it so Stim regenerates it from the app config.`
1111
- };
1112
- }
1113
- function prebuildRefusal({ isExpo, platform, nativeDirExists }) {
1114
- if (nativeDirExists || isExpo) return null;
1115
- const dir = nativeDirName(platform);
1116
- return {
1117
- code: PREBUILD_ERROR,
1118
- message: `This project has no ${dir}/ directory and is not an Expo (CNG) project, so Stim cannot generate one.`,
1119
- remedy: `Check out or generate the native project (\`npx @react-native-community/cli init\` produced one originally), or add \`expo\` to the project so \`expo prebuild\` can create ${dir}/.`
1120
- };
1121
- }
1122
- function prebuildFailure(logWriter, result) {
1123
- logWriter?.write?.({
1124
- src: "build",
1125
- level: "error",
1126
- msg: result.reason || "Expo prebuild failed.",
1127
- event: "prebuild_failed"
1128
- });
1129
- return result;
1130
- }
1131
- async function runPrebuild(root, platform, logWriter, { spawnFn = null, now = Date.now, isExpo = null, clean = false } = {}) {
1132
- const dirExists = existsSync(nativeDir(root, platform));
1133
- const refusal = prebuildRefusal({
1134
- isExpo: isExpo === null ? detectIsExpo(root) : isExpo,
1135
- platform,
1136
- nativeDirExists: dirExists
1137
- });
1138
- if (refusal) return prebuildFailure(logWriter, {
1139
- failed: true,
1140
- code: refusal.code,
1141
- reason: refusal.message,
1142
- remedy: refusal.remedy,
1143
- error: refusal,
1144
- lastLines: []
1145
- });
1146
- const bin = expoBinPath(root);
1147
- if (!bin) {
1148
- const binRefusal = expoBinRefusal(root, "prebuild");
1149
- return prebuildFailure(logWriter, {
1150
- failed: true,
1151
- code: PREBUILD_ERROR,
1152
- reason: binRefusal.message,
1153
- remedy: binRefusal.remedy,
1154
- lastLines: []
1155
- });
1156
- }
1157
- const spawn = spawnFn || ((cmd, args, opts) => getExecutor().spawn(cmd, args, opts));
1158
- const startedAt = now();
1159
- const tail = [];
1160
- const push = (line) => {
1161
- const msg = stripAnsi(String(line)).trimEnd();
1162
- if (!msg.trim()) return;
1163
- tail.push(msg);
1164
- if (tail.length > LAST_LINES) tail.shift();
1165
- logWriter?.write?.({
1166
- src: "build",
1167
- level: "debug",
1168
- msg,
1169
- raw: true,
1170
- event: "prebuild"
1171
- });
1172
- };
1173
- let child;
1174
- try {
1175
- const invocation = remoteCliInvocation(bin, [
1176
- "prebuild",
1177
- "-p",
1178
- platform,
1179
- "--no-install",
1180
- ...clean ? ["--clean"] : dirExists ? keepNativeDirArgs(root) : []
1181
- ], "expo");
1182
- child = spawnDeclared(ambientContext(), () => spawn(invocation.file, invocation.args, {
1183
- cwd: root,
1184
- stdio: [
1185
- "ignore",
1186
- "pipe",
1187
- "pipe"
1188
- ],
1189
- env: {
1190
- ...ambientContext()?.env ?? process.env,
1191
- ...expoTelemetryEnv(ambientContext()?.env ?? process.env),
1192
- FORCE_COLOR: "0",
1193
- CI: "1"
1194
- }
1195
- }));
1196
- } catch (err) {
1197
- return prebuildFailure(logWriter, {
1198
- failed: true,
1199
- code: PREBUILD_ERROR,
1200
- reason: `Could not run \`expo prebuild\`: ${err?.message || err}`,
1201
- lastLines: []
1202
- });
1203
- }
1204
- const outReader = createLineReader(push);
1205
- const errReader = createLineReader(push);
1206
- child.stdout?.setEncoding?.("utf-8");
1207
- child.stderr?.setEncoding?.("utf-8");
1208
- child.stdout?.on("data", (chunk) => outReader.push(chunk));
1209
- child.stderr?.on("data", (chunk) => errReader.push(chunk));
1210
- const result = await waitForChild(child);
1211
- outReader.flush();
1212
- errReader.flush();
1213
- const durationMs = now() - startedAt;
1214
- if (result.error) return prebuildFailure(logWriter, {
1215
- failed: true,
1216
- code: PREBUILD_ERROR,
1217
- reason: `Could not run \`expo prebuild\`: ${result.error?.message || result.error}`,
1218
- lastLines: tail.slice(),
1219
- durationMs
1220
- });
1221
- if (result.code !== 0) {
1222
- const how = result.signal ? `signal ${result.signal}` : `exit code ${result.code}`;
1223
- return prebuildFailure(logWriter, {
1224
- failed: true,
1225
- code: PREBUILD_ERROR,
1226
- reason: `\`expo prebuild -p ${platform}\` failed (${how}).`,
1227
- ...dirExists && !clean ? { remedy: staleNativeDirRemedy(platform) } : {},
1228
- lastLines: tail.slice(),
1229
- durationMs
1230
- });
1231
- }
1232
- if (!existsSync(nativeDir(root, platform))) return prebuildFailure(logWriter, {
1233
- failed: true,
1234
- code: PREBUILD_ERROR,
1235
- reason: `\`expo prebuild -p ${platform}\` succeeded but did not create ${nativeDirName(platform)}/.`,
1236
- lastLines: tail.slice(),
1237
- durationMs
1238
- });
1239
- return {
1240
- ok: true,
1241
- durationMs,
1242
- nativeDir: nativeDir(root, platform)
1243
- };
1244
- }
1245
- //#endregion
1246
- export { runPrebuild as a, fingerprintErrorMissReason as c, memoizedFingerprint as d, settleFingerprintCheck as f, recordPrebuildAsync as i, predictBuildMiss as l, planPrebuildAsync as n, staleNativeDirRefusal as o, recordPrebuild as r, explainBuildMiss as s, planPrebuild as t, skippedMissReason as u };
986
+ export { memoizedFingerprint as a, skippedMissReason as i, fingerprintErrorMissReason as n, settleFingerprintCheck as o, predictBuildMiss as r, explainBuildMiss as t };
@@ -1,6 +1,6 @@
1
1
  import { T as process_identity_exports, p as withWorkspaceProcessLock, t as getExecutor } from "./exec-L37dbiIb.mjs";
2
2
  import { A as withConfigLockAsync, c as ensureConfig, d as getConfigDir, m as getProject, v as loadConfig, w as saveConfig } from "./config-CNmN-ndb.mjs";
3
- import { f as signalProcessTree, m as createPortProbe, s as parseNetstatPids } from "./metro-TIQ1Wft-.mjs";
3
+ import { f as signalProcessTree, m as createPortProbe, s as parseNetstatPids } from "./metro-Cj6W4qOO.mjs";
4
4
  import { realpathSync } from "node:fs";
5
5
  //#region src/named-ports.ts
6
6
  const FIRST_PORT = 8900;
@@ -1,21 +1,21 @@
1
1
  import { t as getExecutor } from "./exec-L37dbiIb.mjs";
2
- import { E as workspaceDir, y as sharedBuildCache } from "./workspace-state-DOPXG2Gp.mjs";
2
+ import { E as workspaceDir, y as sharedBuildCache } from "./workspace-state-CHEN_xzy.mjs";
3
3
  import { m as getProject, pt as deviceSlotPlatforms, vt as validateDeviceSlot } from "./config-CNmN-ndb.mjs";
4
- import { it as settingValueAt } from "./settings-Ag4pbs0z.mjs";
5
- import { H as ownedAvdDeviceProfile, J as ownedAvdSystemImage, O as findBuildTool, U as ownedAvdDirectory, l as androidSystemImageAbi, o as androidHome, z as listInstalledSystemImages } from "./android-CGctfYpv.mjs";
6
- import { O as resolveCcache } from "./device-capacity-DWUOvY13.mjs";
4
+ import { it as settingValueAt } from "./settings-Cz8kQJzr.mjs";
5
+ import { H as ownedAvdDeviceProfile, J as ownedAvdSystemImage, O as findBuildTool, U as ownedAvdDirectory, l as androidSystemImageAbi, o as androidHome, z as listInstalledSystemImages } from "./android-27_JgJ1T.mjs";
6
+ import { O as resolveCcache } from "./device-capacity-D_IlxZRL.mjs";
7
7
  import { r as register } from "./cache-manifest-BO0TIcPV.mjs";
8
- import { lt as statsProjectKey } from "./workspaces-DCzDzydB.mjs";
9
- import { _t as runCancellationSignal, r as androidToolchainAsync } from "./toolchain-BeD7tbBW.mjs";
10
- import { T as resolveBuild, c as entryDir, t as artifactIn } from "./build-cache-Dt-dhCJF.mjs";
11
- import { b as nativeGradleTransfer, g as gradleOffloadInputs } from "./client-DU6dnGX1.mjs";
12
- import { d as buildGradle, l as androidSdkRefusal } from "./react-native-build-dixAL2G8.mjs";
13
- import { n as decideSystemImage, t as androidImageInstallPolicy } from "./android-image-DY8KxK2m.mjs";
14
- import { s as explainBuildMiss, u as skippedMissReason } from "./prebuild-BKkj3OyL.mjs";
15
- import { u as resolveAndroidRunPlan } from "./result-CWyxwPvZ.mjs";
16
- import { n as androidProcessRuntime } from "./launch-f3RnbFW5.mjs";
17
- import { n as planFlagRefusal, r as planPayload } from "./build-plan-CgnLDof9.mjs";
18
- import { a as nativeGradleWorkerArtifactIdentity, n as gradleArtifactInputs, r as nativeGradleArtifactSnapshot, t as NATIVE_GRADLE_CACHE_LIMIT } from "./native-gradle-artifact-inputs-B4Mwydmf.mjs";
8
+ import { ut as statsProjectKey } from "./workspaces-BgAYIccE.mjs";
9
+ import { mt as runCancellationSignal, r as androidToolchainAsync } from "./toolchain-CZvtCZ-m.mjs";
10
+ import { T as resolveBuild, c as entryDir, t as artifactIn } from "./build-cache-CJ65Efv7.mjs";
11
+ import { b as nativeGradleTransfer, g as gradleOffloadInputs } from "./client-qwmHFSga.mjs";
12
+ import { d as buildGradle, l as androidSdkRefusal } from "./react-native-build-CFYTYmG4.mjs";
13
+ import { n as decideSystemImage, t as androidImageInstallPolicy } from "./android-image-BcUD6bPi.mjs";
14
+ import { i as skippedMissReason, t as explainBuildMiss } from "./miss-reason-CeHvzeVm.mjs";
15
+ import { u as resolveAndroidRunPlan } from "./result-C-ISEJ5F.mjs";
16
+ import { n as androidProcessRuntime } from "./launch-B-pkNlqg.mjs";
17
+ import { n as planFlagRefusal, r as planPayload } from "./build-plan-DWajg5l_.mjs";
18
+ import { a as nativeGradleWorkerArtifactIdentity, n as gradleArtifactInputs, r as nativeGradleArtifactSnapshot, t as NATIVE_GRADLE_CACHE_LIMIT } from "./native-gradle-artifact-inputs-D4w20_6d.mjs";
19
19
  import { createHash } from "node:crypto";
20
20
  import { createReadStream, createWriteStream, existsSync, readFileSync, statSync } from "node:fs";
21
21
  import { tmpdir } from "node:os";
@@ -1,8 +1,8 @@
1
1
  import { t as getExecutor } from "./exec-L37dbiIb.mjs";
2
2
  import { r as childEnvironment } from "./operation-exec-DNynwpqO.mjs";
3
- import { o as androidHome } from "./android-CGctfYpv.mjs";
4
- import { n as buildCacheKey } from "./build-cache-Dt-dhCJF.mjs";
5
- import { g as gradleOffloadInputs, v as nativeGradleLocalSourceDigest } from "./client-DU6dnGX1.mjs";
3
+ import { o as androidHome } from "./android-27_JgJ1T.mjs";
4
+ import { n as buildCacheKey } from "./build-cache-CJ65Efv7.mjs";
5
+ import { g as gradleOffloadInputs, v as nativeGradleLocalSourceDigest } from "./client-qwmHFSga.mjs";
6
6
  import { n as fingerprintNativeInputs } from "./native-inputs-TRTTTRxt.mjs";
7
7
  import { createHash } from "node:crypto";
8
8
  import { homedir } from "node:os";
@@ -1,9 +1,9 @@
1
- import { r as readWorkspaceState$1, v as ensureWorkspaceStorageAsync } from "./workspace-state-DOPXG2Gp.mjs";
2
- import { l as phaseLine } from "./command-output-ByEmIwur.mjs";
3
- import { N as metroPortSetting } from "./settings-Ag4pbs0z.mjs";
4
- import { d as resolveProjectMetro } from "./metro-TIQ1Wft-.mjs";
5
- import { an as LAUNCH_UNVERIFIED, rn as LAUNCH_BUNDLING } from "./device-capacity-DWUOvY13.mjs";
6
- import { c as startDevServer } from "./start-CzBB5R7N.mjs";
1
+ import { r as readWorkspaceState$1, v as ensureWorkspaceStorageAsync } from "./workspace-state-CHEN_xzy.mjs";
2
+ import { l as phaseLine } from "./command-output-DsjhOzJ3.mjs";
3
+ import { N as metroPortSetting } from "./settings-Cz8kQJzr.mjs";
4
+ import { d as resolveProjectMetro } from "./metro-Cj6W4qOO.mjs";
5
+ import { cn as LAUNCH_UNVERIFIED, on as LAUNCH_BUNDLING } from "./device-capacity-D_IlxZRL.mjs";
6
+ import { c as startDevServer } from "./start-DI0ofPO-.mjs";
7
7
  import { readIdleStop } from "@stim-cli/core/state";
8
8
  import chalk from "chalk";
9
9
  //#region src/commands/native-runtime.ts
@@ -1,6 +1,6 @@
1
- import { E as workspaceDir, T as workspaceDerivedData } from "./workspace-state-DOPXG2Gp.mjs";
1
+ import { E as workspaceDir, T as workspaceDerivedData } from "./workspace-state-CHEN_xzy.mjs";
2
2
  import { a as killOnAbort, l as gitQuietAsync, r as childEnvironment } from "./operation-exec-DNynwpqO.mjs";
3
- import { h as pbxString, m as pbxReferences } from "./project-BCtQz48d.mjs";
3
+ import { h as pbxString, m as pbxReferences } from "./project-DIo71tGq.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";