stim 1.30.0 → 1.31.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.
- package/dist/{acquire-artifact-CrZ4rEbI.mjs → acquire-artifact-P84h3ssa.mjs} +1 -1
- package/dist/{act-BaKjDWGw.mjs → act-lcOIEy32.mjs} +18 -18
- package/dist/{activity-BTaUf0tc.mjs → activity-Dw4N_RFe.mjs} +4 -4
- package/dist/{agent-device-usage-output-DYBpO17K.mjs → agent-device-usage-output-Boie2yB-.mjs} +4 -4
- package/dist/{android-BEQUDpOg.mjs → android-BeeC15Ve.mjs} +1 -1
- package/dist/{android-BWqdDK6R.mjs → android-DhiWSOFU.mjs} +41 -39
- package/dist/{android-DdKG6lyD.mjs → android-DsEj2CCs.mjs} +27 -6
- package/dist/{android-BCYLwmH6.mjs → android-aIuJZoDu.mjs} +5 -5
- package/dist/{android-cas-BH6K12__.mjs → android-cas-CbumHXIq.mjs} +4 -4
- package/dist/api.mjs +26 -26
- package/dist/{apk-signed-tail-B8kw4a8K.mjs → apk-signed-tail-B9Usseps.mjs} +2 -2
- package/dist/{artifact-DTHXcmQ3.mjs → artifact-Cr34-Yyy.mjs} +12 -12
- package/dist/{artifact-M6W2l-xh.mjs → artifact-ta3xA0c4.mjs} +12 -12
- package/dist/{auto-placement-CZaWDmcY.mjs → auto-placement-DtTRG0rk.mjs} +10 -10
- package/dist/{browser-web-JQ7lFej3.mjs → browser-web-DuULNZrS.mjs} +11 -11
- package/dist/{build-C2ZWoCmg.mjs → build-BpFFbdXD.mjs} +22 -22
- package/dist/{build-cache-DlC3owap.mjs → build-cache-BsKim4V7.mjs} +4 -4
- package/dist/{build-plan-J3iRR3gI.mjs → build-plan-DH1rT11x.mjs} +6 -6
- package/dist/{cache-manifest-evF_zJ9U.mjs → cache-manifest-CfiEny4T.mjs} +1 -1
- package/dist/cache-manifest.mjs +1 -1
- package/dist/{ccache-B8gY50-h.mjs → ccache-DVDO2ocE.mjs} +15 -15
- package/dist/{cli-xRPXJPtA.mjs → cli-C0jjwTuM.mjs} +18 -18
- package/dist/cli.mjs +1 -1
- package/dist/{client-DrHykA24.mjs → client-DhJOvSvh.mjs} +4 -4
- package/dist/collector-run.mjs +4 -4
- package/dist/{command-output-BBW8eWPL.mjs → command-output-VrXd6qPX.mjs} +1 -1
- package/dist/{config-AbUjIBOQ.mjs → config-D5qNWJEP.mjs} +2 -2
- package/dist/{dependencies-vUh9mp5z.mjs → dependencies-DIU-5rnG.mjs} +37 -37
- package/dist/{dependency-state-CPKAKCZ8.mjs → dependency-state-DZVln1P9.mjs} +1 -1
- package/dist/{dev-client-CASgAOu7.mjs → dev-client-DeAg0fso.mjs} +2 -2
- package/dist/{device-ChnO7bR9.mjs → device-C2WsPgFt.mjs} +12 -12
- package/dist/{device-CsIdRXfm.mjs → device-DuNLOlR6.mjs} +11 -11
- package/dist/{device-android-CcdQqQWg.mjs → device-android-BjhH0Ru3.mjs} +20 -14
- package/dist/{device-capacity-C5C_jOQd.mjs → device-capacity-Du5wBTNJ.mjs} +173 -74
- package/dist/device-host-worker.mjs +19 -15
- package/dist/{device-ios-DbmtPIiw.mjs → device-ios-CUYUhSYO.mjs} +8 -8
- package/dist/{device-lease-run-Do6zYA7y.mjs → device-lease-run-CHXQEn-7.mjs} +4 -4
- package/dist/{device-pool-CpoYiCGO.mjs → device-pool-kUHO7MHO.mjs} +3 -3
- package/dist/{device-provision-B5Ms94qY.mjs → device-provision-e7bKS7lx.mjs} +8 -8
- package/dist/{doctor-CpfbYh3Q.mjs → doctor-B6kIVgU9.mjs} +1 -1
- package/dist/{doctor-CLE4AZEI.mjs → doctor-BGcsAgAV.mjs} +15 -15
- package/dist/doctor-fingerprint.mjs +1 -1
- package/dist/{doctor-CJSB5q-s.mjs → doctor-hva3sd9f.mjs} +36 -25
- package/dist/{doctor-watchman-D1IyMle9.mjs → doctor-watchman-DJY550yz.mjs} +4 -4
- package/dist/{eas-build-DIDOHw2P.mjs → eas-build-CBFgseh1.mjs} +2 -2
- package/dist/{eas-fallback-DVS9oBSc.mjs → eas-fallback-DFXdz4d6.mjs} +4 -4
- package/dist/{eas-session-ledger-CW3l-inB.mjs → eas-session-ledger-aFBLTZr2.mjs} +19 -6
- package/dist/{error-diagnostics-XJ9eWdtq.mjs → error-diagnostics-CCsq_3uG.mjs} +8 -8
- package/dist/{gc-Co7PE36D.mjs → gc-B0K4d_PL.mjs} +17 -17
- package/dist/{gc-BVIcxCxE.mjs → gc-DASUa3Z_.mjs} +2 -2
- package/dist/{guide-DkepBgHT.mjs → guide-Civo5-zV.mjs} +74 -21
- package/dist/{hosted-android-Du7NxufJ.mjs → hosted-android-CH1Sm4wo.mjs} +3 -3
- package/dist/{hosted-client-Cect92SZ.mjs → hosted-client-5ur3YpxY.mjs} +36 -12
- package/dist/{hosted-logs-Opcjv1Lr.mjs → hosted-logs-BYg4yeti.mjs} +6 -6
- package/dist/{hosted-logs-sync-wsI7N1Hv.mjs → hosted-logs-sync-BPe8xnMu.mjs} +5 -5
- package/dist/{hosted-macos-BP9Kucat.mjs → hosted-macos-BagT0Gn3.mjs} +5 -5
- package/dist/{hosted-native-DmdLSmvu.mjs → hosted-native-kaR4nUHk.mjs} +6 -6
- package/dist/{idle-shutdown-BcMN_cLm.mjs → idle-shutdown-BWHQ7mQG.mjs} +6 -6
- package/dist/{ios-BFkBHuRT.mjs → ios-BKR-Dq46.mjs} +8 -8
- package/dist/{ios-CXnoVO_z.mjs → ios-CdAV4-1E.mjs} +4 -4
- package/dist/{ios-CG0IsLtt.mjs → ios-DUL68MI5.mjs} +32 -31
- package/dist/{ios-device-ClSfuu-_.mjs → ios-device-Dz8gFZ0K.mjs} +1 -1
- package/dist/{ios-project-BM9TbTE7.mjs → ios-project-Br1tVYWX.mjs} +7 -7
- package/dist/{ios-state-Ce_dystM.mjs → ios-state-BEIJRJ7P.mjs} +1 -1
- package/dist/{js-swap-9Rx-5Nqz.mjs → js-swap-BfG8XpyS.mjs} +4 -4
- package/dist/{launch-DvJV1Mx4.mjs → launch-CrGndh8T.mjs} +19 -19
- package/dist/{lightened-23pqe7LS.mjs → lightened-DZ9Ip0T3.mjs} +4 -4
- package/dist/{logs-Pkeh3wZk.mjs → logs-C-hfMsxK.mjs} +5 -5
- package/dist/{logs-DJgZlf2K.mjs → logs-DpIKWT3A.mjs} +7 -7
- package/dist/{macos-Du07NsOB.mjs → macos-DNmKwfDy.mjs} +1 -1
- package/dist/{macos-DPvPQadc.mjs → macos-DZ9ZSolN.mjs} +19 -19
- package/dist/macos-run.mjs +1 -1
- package/dist/maintenance-run.mjs +5 -5
- package/dist/{metro-BMQHczcf.mjs → metro-mKHEMO-a.mjs} +2 -2
- package/dist/{metro-request-BtF7ox53.mjs → metro-request-RDhyx85c.mjs} +1 -1
- package/dist/{named-ports-DcktE2Pw.mjs → named-ports-B0hCk2v-.mjs} +2 -2
- package/dist/{native-android-CBOM1_gB.mjs → native-android-DExhFqR6.mjs} +16 -16
- package/dist/{native-gradle-artifact-inputs-D_iAfPuS.mjs → native-gradle-artifact-inputs-Bcmbdc23.mjs} +3 -3
- package/dist/{native-runtime-D4cTwU0Z.mjs → native-runtime-D4qgnjK_.mjs} +6 -6
- package/dist/{native-xcode-inputs-BF-ogSnG.mjs → native-xcode-inputs-EWma1lXh.mjs} +2 -2
- package/dist/{native-xcode-ios-DwJBfMP6.mjs → native-xcode-ios-Y6rzmWTc.mjs} +15 -15
- package/dist/offload-worker.mjs +19 -19
- package/dist/{ownership-Dtz9G5Gl.mjs → ownership-CCfiBfOP.mjs} +2 -2
- package/dist/{phone-reverses-CvhhkGMH.mjs → phone-reverses-Drj5QQCh.mjs} +4 -4
- package/dist/{placement-log-CRR_TE1r.mjs → placement-log-CFT8SnlS.mjs} +1 -1
- package/dist/{plan-placement-CdLc-pTb.mjs → plan-placement-DhKCH_wF.mjs} +6 -6
- package/dist/{ports-g4N_cfyg.mjs → ports-BNtJ5DCj.mjs} +3 -3
- package/dist/{prebuild-DBJMhwSS.mjs → prebuild-D0hvmO4j.mjs} +9 -9
- package/dist/{project-DPQjnpcI.mjs → project-DCLkDM8C.mjs} +15 -15
- package/dist/{react-native-android-idMWOwkX.mjs → react-native-android-Dp7vctEA.mjs} +22 -22
- package/dist/{react-native-build-BSoh4HkH.mjs → react-native-build-vK2lFYfN.mjs} +7 -7
- package/dist/{react-native-doctor-CYibY8-4.mjs → react-native-doctor-BtWzwZHU.mjs} +5 -5
- package/dist/{react-native-ios-13KIIOOy.mjs → react-native-ios-DW1Ax3Yv.mjs} +14 -14
- package/dist/{recordings-CHMaF73C.mjs → recordings-BWnIlhZH.mjs} +1 -1
- package/dist/{reload-BUQI3dSu.mjs → reload-B-d7-CsI.mjs} +14 -14
- package/dist/{reload-B9DZOjcV.mjs → reload-BS_ntVV_.mjs} +1 -1
- package/dist/{remote-C-RGHhAP.mjs → remote-DScVlaMz.mjs} +8 -8
- package/dist/{result-W4HCum4A.mjs → result-Epkl6gyG.mjs} +16 -16
- package/dist/{run-BQAmrohh.mjs → run-2CHAJ9Oj.mjs} +1 -1
- package/dist/{selection-PCMT97XD.mjs → selection-C95m--1_.mjs} +3 -3
- package/dist/{server-bare-CEQdB_F4.mjs → server-bare-CFyVFZXJ.mjs} +1 -1
- package/dist/{server-command-oqi3TDy7.mjs → server-command-B1gDRJB2.mjs} +4 -4
- package/dist/{server-expo-C1K07shx.mjs → server-expo-CP4dURQp.mjs} +2 -2
- package/dist/server-expo-D3k9mvP8.mjs +2 -0
- package/dist/{settings-D776ygML.mjs → settings-C6UTYW2K.mjs} +1 -1
- package/dist/{settings-CKlMOmhj.mjs → settings-CjTRNCi3.mjs} +2 -2
- package/dist/{settings-payload-CE-NZ6Lq.mjs → settings-payload-zf5EnCTg.mjs} +4 -4
- package/dist/{settings-write-D7Xwa_-M.mjs → settings-write-Fe0K6BeC.mjs} +5 -5
- package/dist/settings.schema.json +45 -3
- package/dist/{simslim-CbpHERcv.mjs → simslim-93xmPh-d.mjs} +1 -1
- package/dist/{slot-launch-CeIK1iUI.mjs → slot-launch-B4MHzVX2.mjs} +6 -6
- package/dist/{stage-Blqe6bWb.mjs → stage-DDrnM0CY.mjs} +1 -1
- package/dist/{start-CvP2pJjc.mjs → start-BXl5tkv8.mjs} +1 -1
- package/dist/{start-B7J5a9nS.mjs → start-LSwIFlBv.mjs} +10 -10
- package/dist/{state-D5ZxwCGJ.mjs → state-CM_HvvkS.mjs} +2 -2
- package/dist/{state-C2AUjjhg.mjs → state-CiflgxTP.mjs} +1 -1
- package/dist/{stats-Uo7l8OAk.mjs → stats-EgpYD536.mjs} +4 -4
- package/dist/{status-_rWXFSO7.mjs → status-BLDvhatv.mjs} +26 -25
- package/dist/{status-CqJI1TgG.mjs → status-DBMD7ZQT.mjs} +1 -1
- package/dist/{status-CK7ZoEhV.mjs → status-GQ-JqvRi.mjs} +1 -1
- package/dist/{status-watch-CnSyXUmj.mjs → status-watch-BwG4lJ1q.mjs} +4 -4
- package/dist/status-worker.mjs +1 -1
- package/dist/{stim-desktop-CYXLFpFS.mjs → stim-desktop-1XxET4S8.mjs} +1 -1
- package/dist/{stop-Bogo9oO2.mjs → stop-4SAV_RR8.mjs} +2 -2
- package/dist/{stop-CMVfaA-6.mjs → stop-BfNhzvXO.mjs} +4 -4
- package/dist/{stop-CnF9ixYe.mjs → stop-WyrZQuX6.mjs} +15 -15
- package/dist/supervisor-run.mjs +13 -13
- package/dist/{support-BGqpYMV8.mjs → support-Cffz6_Ft.mjs} +4 -4
- package/dist/{support-DUevTPur.mjs → support-Cs24xRQa.mjs} +9 -9
- package/dist/{swiftpm-artifact-inputs-BcJk6-3u.mjs → swiftpm-artifact-inputs-yp8D5LE4.mjs} +1 -1
- package/dist/{swiftpm-macos-DBrmoocG.mjs → swiftpm-macos-D0CzQtpp.mjs} +8 -8
- package/dist/{toolchain-Cw9VVHOY.mjs → toolchain-BEra9AIX.mjs} +1 -1
- package/dist/{toolchain-DLdoyxIt.mjs → toolchain-CGdgD4x4.mjs} +4 -4
- package/dist/{warm-progress-DQ2wQZKp.mjs → warm-progress-_aTMvkIH.mjs} +3 -3
- package/dist/{web-g9U7L1sR.mjs → web-BE89ONcc.mjs} +8 -8
- package/dist/web-DQPxvFVD.mjs +2 -0
- package/dist/web-run.mjs +4 -4
- package/dist/{workspace-state-DGwkPXwq.mjs → workspace-state-3bF4TB8P.mjs} +2 -2
- package/dist/{workspaces-7_RWoi6c.mjs → workspaces-BNEyJ1B_.mjs} +15 -12
- package/dist/{worktree-qKJ3x07S.mjs → worktree-BTrii9e_.mjs} +24 -24
- package/dist/{worktree-DEet9H3p.mjs → worktree-DB3Ypdj6.mjs} +1 -1
- package/package.json +7 -7
- package/dist/server-expo-BUFAq2In.mjs +0 -2
- package/dist/web-CI_qCRPw.mjs +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as throwIfCancelled, t as getExecutor, x as withDrainingCancellation } from "./exec-aULwtNly.mjs";
|
|
2
|
-
import { y as sharedBuildCache } from "./workspace-state-
|
|
2
|
+
import { y as sharedBuildCache } from "./workspace-state-3bF4TB8P.mjs";
|
|
3
3
|
import { a as killOnAbort, c as gitQuiet, o as git, r as childEnvironment, s as gitAsync } from "./operation-exec-Dp4FuIGR.mjs";
|
|
4
|
-
import { m as defaultAndroidLayout } from "./settings-
|
|
5
|
-
import { r as register } from "./cache-manifest-
|
|
6
|
-
import { r as writeSignedTail, t as computeSignedTail } from "./apk-signed-tail-
|
|
4
|
+
import { m as defaultAndroidLayout } from "./settings-C6UTYW2K.mjs";
|
|
5
|
+
import { r as register } from "./cache-manifest-CfiEny4T.mjs";
|
|
6
|
+
import { r as writeSignedTail, t as computeSignedTail } from "./apk-signed-tail-B9Usseps.mjs";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
8
8
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
9
9
|
import { join } from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { T as trackReportResource } from "./exec-aULwtNly.mjs";
|
|
2
|
-
import { i as formatDuration, l as phaseLine, m as shortHash, u as plural } from "./command-output-
|
|
3
|
-
import { an as makeTemporaryDirectory, sn as removeTemporaryEntryAsync } from "./settings-
|
|
4
|
-
import { jn as easAuthNote } from "./ccache-
|
|
5
|
-
import { at as readStats, q as estimateBuild } from "./workspaces-
|
|
6
|
-
import { s as entryDir, t as artifactIn } from "./build-cache-
|
|
7
|
-
import { l as predictBuildMiss, o as staleNativeDirRefusal } from "./prebuild-
|
|
2
|
+
import { i as formatDuration, l as phaseLine, m as shortHash, u as plural } from "./command-output-VrXd6qPX.mjs";
|
|
3
|
+
import { an as makeTemporaryDirectory, sn as removeTemporaryEntryAsync } from "./settings-C6UTYW2K.mjs";
|
|
4
|
+
import { jn as easAuthNote } from "./ccache-DVDO2ocE.mjs";
|
|
5
|
+
import { at as readStats, q as estimateBuild } from "./workspaces-BNEyJ1B_.mjs";
|
|
6
|
+
import { s as entryDir, t as artifactIn } from "./build-cache-BsKim4V7.mjs";
|
|
7
|
+
import { l as predictBuildMiss, o as staleNativeDirRefusal } from "./prebuild-D0hvmO4j.mjs";
|
|
8
8
|
import chalk from "chalk";
|
|
9
9
|
import { PROVIDER_LOAD_TIMEOUT_ENV, PROVIDER_LOAD_TIMEOUT_MS, buildResolveTimeoutMs, resolveTieredBuild, timeoutFromEnv } from "@stim-cli/cache";
|
|
10
10
|
//#region src/commands/build-plan.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as getConfigDir } from "./config-
|
|
1
|
+
import { d as getConfigDir } from "./config-D5qNWJEP.mjs";
|
|
2
2
|
import { cacheDirRefusal, readCacheManifest, updateCacheManifest } from "@stim-cli/core";
|
|
3
3
|
import { join, resolve } from "path";
|
|
4
4
|
import { existsSync } from "fs";
|
package/dist/cache-manifest.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as unregister, i as registeredCaches, n as readManifest, r as register, t as manifestPath } from "./cache-manifest-
|
|
1
|
+
import { a as unregister, i as registeredCaches, n as readManifest, r as register, t as manifestPath } from "./cache-manifest-CfiEny4T.mjs";
|
|
2
2
|
export { manifestPath, readManifest, register, registeredCaches, unregister };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { D as ownership_claim_exports, E as debugLog, S as process_identity_exports, b as operationState, c as throwIfCancelled, d as workspaceProcessLockError, l as WorkspaceProcessCleanupError, n as isTimeoutError, o as cancellableSleep, s as cancelledError, t as getExecutor, u as withWorkspaceProcessLock, y as isTermination } from "./exec-aULwtNly.mjs";
|
|
2
|
-
import { D as workspaceId$1, E as workspaceDir, M as withDirLock$1, b as sharedCcache$1, d as writeWorkspaceState, j as workspaceStateFile$1, k as workspaceLogsDir$1, l as withWorkspaceStateLockAsync, r as readWorkspaceState$1, t as clearWorkspaceStateKey, y as sharedBuildCache } from "./workspace-state-
|
|
3
|
-
import { F as
|
|
2
|
+
import { D as workspaceId$1, E as workspaceDir, M as withDirLock$1, b as sharedCcache$1, d as writeWorkspaceState, j as workspaceStateFile$1, k as workspaceLogsDir$1, l as withWorkspaceStateLockAsync, r as readWorkspaceState$1, t as clearWorkspaceStateKey, y as sharedBuildCache } from "./workspace-state-3bF4TB8P.mjs";
|
|
3
|
+
import { F as formatBytes, I as isOnMountedVolume, K as projectDeviceSlots, N as directorySize, P as directorySizeAsync, R as measuredDirectorySizeAsync, U as deviceSlotPlatforms, a as clearDevice, d as getConfigDir, k as withConfigLockAsync$1, m as getProject, o as clearSupervisor, v as loadConfig$1, z as volumeRootFor } from "./config-D5qNWJEP.mjs";
|
|
4
4
|
import { n as stripAnsi } from "./process-output-Fpl8PYi8.mjs";
|
|
5
|
-
import { a as formatElapsed, l as phaseLine, o as formatLongDuration, s as isAppLaunchError, u as plural } from "./command-output-
|
|
5
|
+
import { a as formatElapsed, l as phaseLine, o as formatLongDuration, s as isAppLaunchError, u as plural } from "./command-output-VrXd6qPX.mjs";
|
|
6
6
|
import { a as killOnAbort, n as runOperationFileQuiet, r as childEnvironment, t as runOperationFile } from "./operation-exec-Dp4FuIGR.mjs";
|
|
7
|
-
import { Z as resolveProjectSettingsAsync, d as androidLayoutSetting, ft as planMetroReach, m as defaultAndroidLayout } from "./settings-
|
|
8
|
-
import { C as resolvePackageJson, M as readMetroTunnel, N as readPidFile, P as readRemoteSession, i as findProjectRoot$1, j as clearWorkspaceSupervisor, k as clearRemoteSession, s as ownedDeviceLabel, v as detectIsExpo } from "./project-
|
|
9
|
-
import {
|
|
10
|
-
import { a as listeningPidsAsync, c as pidExists, d as resolveProjectMetro, h as isMetroRunning, r as killMetroTreeAsync, u as processCwds } from "./metro-
|
|
7
|
+
import { Z as resolveProjectSettingsAsync, d as androidLayoutSetting, ft as planMetroReach, m as defaultAndroidLayout } from "./settings-C6UTYW2K.mjs";
|
|
8
|
+
import { C as resolvePackageJson, M as readMetroTunnel, N as readPidFile, P as readRemoteSession, i as findProjectRoot$1, j as clearWorkspaceSupervisor, k as clearRemoteSession, s as ownedDeviceLabel, v as detectIsExpo } from "./project-DCLkDM8C.mjs";
|
|
9
|
+
import { R as listAvdsAsync, U as ownedAvdDirectory, X as parseAvdSystemImage, Y as parseAvdDeviceProfile, d as androidToolPath, ft as isStimOwnedAvd, gt as dropParked, m as avdIniPaths, o as androidHome, pt as isStimOwnedSim, q as ownedAvdSerialResolverAsync, xt as readParked, y as avdStorageRoots, z as listInstalledSystemImages } from "./android-DsEj2CCs.mjs";
|
|
10
|
+
import { a as listeningPidsAsync, c as pidExists, d as resolveProjectMetro, h as isMetroRunning, r as killMetroTreeAsync, u as processCwds } from "./metro-mKHEMO-a.mjs";
|
|
11
11
|
import { c as readNdjsonGenerations$1, i as createNdjsonWriter, r as createNdjsonTail } from "./ndjson-CrjIsGzw.mjs";
|
|
12
|
-
import { T as formatSpace, a as removeEasSessionClaim, d as parseWatchRoots, f as parseWatchmanClients, i as recordEasSessionClaim, l as parseSubscriberNames, n as easMachineStateRoot$1, o as removeEasSessionClaimAsync, p as parseWatchmanPid, r as readEasSessionLedger$1, s as compareStimVersions, t as assertEasMachineRootWritable, u as parseTriggerCount, w as environmentState, y as capacity } from "./eas-session-ledger-
|
|
13
|
-
import { i as registeredCaches, r as register } from "./cache-manifest-
|
|
14
|
-
import { At as mapLimited, B as workspaceBuildInProgress, Dt as createGcResults, Et as GC_OUTPUT, F as collectOwnedDeviceActivityAsync, L as idleShutdownCandidates, Mt as sizeConcurrency, N as collectIdleDevicesAsync, _t as teardownParkedIosSim, bt as measureDu, dt as eraseParkedIosSim, gt as teardownParkedAvd, ht as teardownOwnedIosSim, i as clearWorkspaceOutputs, l as keptByLock, o as collectWorkspaceOutputs, pt as teardownOwnedAvd, ut as eraseParkedAvd, v as withIdleWorkspace, vt as probePublicHttp, wt as listBuildSlots, x as resolveSupervisorTarget, xt as writeUsageCache, yt as canonical$1, z as shutDownIdleDevices } from "./workspaces-
|
|
12
|
+
import { T as formatSpace, a as removeEasSessionClaim, d as parseWatchRoots, f as parseWatchmanClients, i as recordEasSessionClaim, l as parseSubscriberNames, n as easMachineStateRoot$1, o as removeEasSessionClaimAsync, p as parseWatchmanPid, r as readEasSessionLedger$1, s as compareStimVersions, t as assertEasMachineRootWritable, u as parseTriggerCount, w as environmentState, y as capacity } from "./eas-session-ledger-aFBLTZr2.mjs";
|
|
13
|
+
import { i as registeredCaches, r as register } from "./cache-manifest-CfiEny4T.mjs";
|
|
14
|
+
import { At as mapLimited, B as workspaceBuildInProgress, Dt as createGcResults, Et as GC_OUTPUT, F as collectOwnedDeviceActivityAsync, L as idleShutdownCandidates, Mt as sizeConcurrency, N as collectIdleDevicesAsync, _t as teardownParkedIosSim, bt as measureDu, dt as eraseParkedIosSim, gt as teardownParkedAvd, ht as teardownOwnedIosSim, i as clearWorkspaceOutputs, l as keptByLock, o as collectWorkspaceOutputs, pt as teardownOwnedAvd, ut as eraseParkedAvd, v as withIdleWorkspace, vt as probePublicHttp, wt as listBuildSlots, x as resolveSupervisorTarget, xt as writeUsageCache, yt as canonical$1, z as shutDownIdleDevices } from "./workspaces-BNEyJ1B_.mjs";
|
|
15
15
|
import { t as canonicalPath } from "./paths-BsJMoPP2.mjs";
|
|
16
|
-
import { it as nativeRunWaitNotice, st as runCancellationSignal, ut as claimForEmptying } from "./toolchain-
|
|
17
|
-
import { N as listBuildLocks, b as leaseIsExpired, g as workspaceActivity, o as envDir, p as readHostProcessTableAsync, x as listLeaseFiles } from "./activity-
|
|
18
|
-
import { l as expoConfigContents } from "./build-cache-
|
|
19
|
-
import { G as deviceHoldsBundle, O as sanitizeDeviceLabel, W as deviceHoldsApk, b as parseSimctlList, f as listAllIosSimsAsync, g as listUserApps, j as uninstallIosApp, p as listIosDeviceTypesAsync, u as iosSimulatorFailureAdvice, y as parseRuntimeVersion } from "./ios-
|
|
16
|
+
import { it as nativeRunWaitNotice, st as runCancellationSignal, ut as claimForEmptying } from "./toolchain-CGdgD4x4.mjs";
|
|
17
|
+
import { N as listBuildLocks, b as leaseIsExpired, g as workspaceActivity, o as envDir, p as readHostProcessTableAsync, x as listLeaseFiles } from "./activity-Dw4N_RFe.mjs";
|
|
18
|
+
import { l as expoConfigContents } from "./build-cache-BsKim4V7.mjs";
|
|
19
|
+
import { G as deviceHoldsBundle, O as sanitizeDeviceLabel, W as deviceHoldsApk, b as parseSimctlList, f as listAllIosSimsAsync, g as listUserApps, j as uninstallIosApp, p as listIosDeviceTypesAsync, u as iosSimulatorFailureAdvice, y as parseRuntimeVersion } from "./ios-CdAV4-1E.mjs";
|
|
20
20
|
import { n as supervisorError } from "./errors-DHm_U5gv.mjs";
|
|
21
|
-
import { c as findBinUpward, n as expoBinFromPackage, r as expoBinPath, s as expoTelemetryEnv } from "./server-expo-
|
|
21
|
+
import { c as findBinUpward, n as expoBinFromPackage, r as expoBinPath, s as expoTelemetryEnv } from "./server-expo-CP4dURQp.mjs";
|
|
22
22
|
import { t as DEV_MENU_LAUNCH_ARGS } from "./ios-device-CiBA-er9.mjs";
|
|
23
23
|
import { t as resolveMaintenanceSettings } from "./settings-D9LtQaUw.mjs";
|
|
24
24
|
import { createRequire } from "node:module";
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { E as debugLog } from "./exec-aULwtNly.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { b as refuseRelativeStimPaths } from "./config-D5qNWJEP.mjs";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { runId, trace } from "@stim-cli/core/state";
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
//#region bin/cli.ts
|
|
7
7
|
const commands = /* @__PURE__ */ new Map([
|
|
8
|
-
["doctor", () => import("./doctor-
|
|
9
|
-
["worktree", () => import("./worktree-
|
|
10
|
-
["start", () => import("./start-
|
|
11
|
-
["ports", () => import("./ports-
|
|
12
|
-
["stop", () => import("./stop-
|
|
13
|
-
["ios", () => import("./ios-
|
|
14
|
-
["android", () => import("./android-
|
|
15
|
-
["web", () => import("./web-
|
|
16
|
-
["macos", () => import("./macos-
|
|
17
|
-
["reload", () => import("./reload-
|
|
18
|
-
["device", () => import("./device-
|
|
19
|
-
["logs", () => import("./logs-
|
|
20
|
-
["settings", () => import("./settings-
|
|
21
|
-
["status", () => import("./status-
|
|
22
|
-
["stats", () => import("./stats-
|
|
23
|
-
["gc", () => import("./gc-
|
|
24
|
-
["guide", () => import("./guide-
|
|
8
|
+
["doctor", () => import("./doctor-B6kIVgU9.mjs")],
|
|
9
|
+
["worktree", () => import("./worktree-DB3Ypdj6.mjs")],
|
|
10
|
+
["start", () => import("./start-BXl5tkv8.mjs")],
|
|
11
|
+
["ports", () => import("./ports-BNtJ5DCj.mjs")],
|
|
12
|
+
["stop", () => import("./stop-4SAV_RR8.mjs")],
|
|
13
|
+
["ios", () => import("./ios-BKR-Dq46.mjs")],
|
|
14
|
+
["android", () => import("./android-aIuJZoDu.mjs")],
|
|
15
|
+
["web", () => import("./web-DQPxvFVD.mjs")],
|
|
16
|
+
["macos", () => import("./macos-DNmKwfDy.mjs")],
|
|
17
|
+
["reload", () => import("./reload-BS_ntVV_.mjs")],
|
|
18
|
+
["device", () => import("./device-C2WsPgFt.mjs")],
|
|
19
|
+
["logs", () => import("./logs-DpIKWT3A.mjs")],
|
|
20
|
+
["settings", () => import("./settings-CjTRNCi3.mjs")],
|
|
21
|
+
["status", () => import("./status-DBMD7ZQT.mjs")],
|
|
22
|
+
["stats", () => import("./stats-EgpYD536.mjs")],
|
|
23
|
+
["gc", () => import("./gc-DASUa3Z_.mjs")],
|
|
24
|
+
["guide", () => import("./guide-Civo5-zV.mjs")]
|
|
25
25
|
]);
|
|
26
26
|
const pkg = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf-8"));
|
|
27
27
|
const program = new Command();
|
package/dist/cli.mjs
CHANGED
|
@@ -4,6 +4,6 @@ const encode = (version) => version.split(".", 3).reduce((sum, part) => sum * 1e
|
|
|
4
4
|
if (encode(process.versions.node) < encode("22.12.0")) {
|
|
5
5
|
process.stderr.write(`STIM_NODE_UNSUPPORTED: Stim needs Node 22.12.0 or later; this is Node ${process.versions.node} at ${process.execPath}. To run Stim where a project pins an older Node, see https://stim.appandflow.com/docs/requirements#older-node-pins\n`);
|
|
6
6
|
process.exitCode = 1;
|
|
7
|
-
} else import("./cli-
|
|
7
|
+
} else import("./cli-C0jjwTuM.mjs");
|
|
8
8
|
//#endregion
|
|
9
9
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { C as reportSignal, E as debugLog, b as operationState, c as throwIfCancelled, t as getExecutor } from "./exec-aULwtNly.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { ct as resolveEndpoint, lt as sayHello, rt as openAuthenticated, v as loadConfig$1 } from "./config-D5qNWJEP.mjs";
|
|
3
3
|
import { o as git, s as gitAsync } from "./operation-exec-Dp4FuIGR.mjs";
|
|
4
|
-
import { G as planCacheEmptying, R as maintenanceLogger, n as CCACHE_UNAVAILABLE, t as CCACHE_NOT_RUN, ur as discoverCaches, z as emptyCaches } from "./ccache-
|
|
4
|
+
import { G as planCacheEmptying, R as maintenanceLogger, n as CCACHE_UNAVAILABLE, t as CCACHE_NOT_RUN, ur as discoverCaches, z as emptyCaches } from "./ccache-DVDO2ocE.mjs";
|
|
5
5
|
import { t as canonicalPath } from "./paths-BsJMoPP2.mjs";
|
|
6
|
-
import { A as COMPILATION_CACHE_NOT_RUN, D as readRubyVersion, S as workerToolchain, b as toolchainNotes, c as iosToolchainAsync, j as COMPILATION_CACHE_UNAVAILABLE, o as cocoapodsDifference, st as runCancellationSignal, y as toolchainMismatches } from "./toolchain-
|
|
6
|
+
import { A as COMPILATION_CACHE_NOT_RUN, D as readRubyVersion, S as workerToolchain, b as toolchainNotes, c as iosToolchainAsync, j as COMPILATION_CACHE_UNAVAILABLE, o as cocoapodsDifference, st as runCancellationSignal, y as toolchainMismatches } from "./toolchain-CGdgD4x4.mjs";
|
|
7
7
|
import { t as resolveMaintenanceSettings } from "./settings-D9LtQaUw.mjs";
|
|
8
|
-
import { f as workerFailureReason, m as pairedMachines, o as namedBuildMachine, t as OffloadRefusal } from "./selection-
|
|
8
|
+
import { f as workerFailureReason, m as pairedMachines, o as namedBuildMachine, t as OffloadRefusal } from "./selection-C95m--1_.mjs";
|
|
9
9
|
import { n as fingerprintNativeInputs, r as manifestDigest } from "./native-inputs-TRTTTRxt.mjs";
|
|
10
10
|
import { a as sourceManifest, i as nativeTransferManifest, n as gitVisiblePaths, r as nativeFileDigest, t as checkNativeTransferMembership } from "./native-source-D1AzWiuP.mjs";
|
|
11
11
|
import { createHash, webcrypto } from "node:crypto";
|
package/dist/collector-run.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { S as process_identity_exports } from "./exec-aULwtNly.mjs";
|
|
2
|
-
import { k as workspaceLogsDir } from "./workspace-state-
|
|
3
|
-
import {
|
|
2
|
+
import { k as workspaceLogsDir } from "./workspace-state-3bF4TB8P.mjs";
|
|
3
|
+
import { H as deviceSlotKey, J as validateDeviceSlot } from "./config-D5qNWJEP.mjs";
|
|
4
4
|
import { t as createLineReader } from "./process-output-Fpl8PYi8.mjs";
|
|
5
|
-
import { c as watchAppPid, i as parseLogcatLine, o as startAndroidLogcat, s as waitForAppPid, t as androidClockOffset } from "./android-
|
|
5
|
+
import { c as watchAppPid, i as parseLogcatLine, o as startAndroidLogcat, s as waitForAppPid, t as androidClockOffset } from "./android-BeeC15Ve.mjs";
|
|
6
6
|
import { i as createNdjsonWriter } from "./ndjson-CrjIsGzw.mjs";
|
|
7
7
|
import { a as startIosDeviceConsole, i as parseDeviceConsoleLine } from "./ios-device-CiBA-er9.mjs";
|
|
8
|
-
import { a as unregisterCollector, i as registerCollector, r as readCollectors, t as collectorProcessTitle } from "./ownership-
|
|
8
|
+
import { a as unregisterCollector, i as registerCollector, r as readCollectors, t as collectorProcessTitle } from "./ownership-CCfiBfOP.mjs";
|
|
9
9
|
import { n as parseLogStreamLine, r as startIosLogStream, t as appNameFromBundleId } from "./ios-CsRVik64.mjs";
|
|
10
10
|
import { existsSync } from "node:fs";
|
|
11
11
|
import { isAbsolute, join, resolve } from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as stripAnsi } from "./process-output-Fpl8PYi8.mjs";
|
|
2
|
-
import { t as NO_PROJECT_REFUSAL } from "./project-
|
|
2
|
+
import { t as NO_PROJECT_REFUSAL } from "./project-DCLkDM8C.mjs";
|
|
3
3
|
import { quotedPath as quotedPath$1 } from "@stim-cli/core";
|
|
4
4
|
import chalk from "chalk";
|
|
5
5
|
//#region src/diagnostics/launch-error-preview.ts
|
|
@@ -2,7 +2,7 @@ import { C as reportSignal, D as ownership_claim_exports, S as process_identity_
|
|
|
2
2
|
import { t as runOperationFile } from "./operation-exec-Dp4FuIGR.mjs";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { ambientEnv, configDir, ensurePrivateDir } from "@stim-cli/core";
|
|
5
|
-
import { DEFAULT_SERVER_PORT, allMetroPorts, cannotHost, clientIdentity, configCorruptRepair, endpoint, endpoint as endpoint$1, findEnclosingWorktreeRoot, findPeer, findPeer as findPeer$1, getConcurrencyLimits, getConfigPath, getConfigPath as getConfigPath$1, getProject, getProjectSettings, getRepoSettings, isJsonObject, isPathPrefix as isPathPrefix$1, loadConfig, loadConfig as loadConfig$1, machineEndpoint, parseMachine, parseMachine as parseMachine$1, validateAutomaticPool, withConfigLock, withConfigLock as withConfigLock$1, withConfigLockAsync, withConfigLockAsync as withConfigLockAsync$1 } from "@stim-cli/core/state";
|
|
5
|
+
import { DEFAULT_SERVER_PORT, allMetroPorts, cannotHost, clientIdentity, configCorruptRepair, endpoint, endpoint as endpoint$1, findEnclosingWorktreeRoot, findPeer, findPeer as findPeer$1, getConcurrencyLimits, getConfigPath, getConfigPath as getConfigPath$1, getPlatformDeviceLimits, getProject, getProjectSettings, getRepoSettings, isJsonObject, isPathPrefix as isPathPrefix$1, loadConfig, loadConfig as loadConfig$1, machineEndpoint, parseMachine, parseMachine as parseMachine$1, validateAutomaticPool, withConfigLock, withConfigLock as withConfigLock$1, withConfigLockAsync, withConfigLockAsync as withConfigLockAsync$1 } from "@stim-cli/core/state";
|
|
6
6
|
import { dirname as dirname$1, isAbsolute as isAbsolute$1, join as join$1, normalize, parse, sep as sep$1 } from "path";
|
|
7
7
|
import { request } from "node:http";
|
|
8
8
|
import { request as request$1 } from "node:https";
|
|
@@ -1379,4 +1379,4 @@ function allConsolePortsAndSerials({ isMounted = isOnMountedVolume } = {}) {
|
|
|
1379
1379
|
return result;
|
|
1380
1380
|
}
|
|
1381
1381
|
//#endregion
|
|
1382
|
-
export {
|
|
1382
|
+
export { doctorIo as $, writeConfigSetting as A, assignSlotDevice as B, removeProject as C, upsertProject as D, setSupervisor as E, formatBytes as F, parseDeviceSlotOption as G, deviceSlotKey as H, isOnMountedVolume as I, validateDeviceSlot as J, projectDeviceSlots as K, listMountedVolumes as L, acquireAvdClaim as M, directorySize as N, withConfigLock$1 as O, directorySizeAsync as P, diagnoseTailscale as Q, measuredDirectorySizeAsync as R, releaseMetroPort as S, setDevice as T, deviceSlotPlatforms as U, deviceSlotFileKey as V, parseDeviceSlotKey as W, diagnoseConnectFailure as X, SERVER_OUTDATED as Y, diagnoseOutcome as Z, isPathPrefix$1 as _, clearDevice as a, parseMachine$1 as at, refuseRelativeStimPaths as b, ensureConfig as c, resolveEndpoint as ct, getConfigDir as d, tailscaleStatusAsync as dt, endpoint$1 as et, getConfigPath$1 as f, diagnoseLocalUnreachable as ft, getRepoSettings as g, readHostPermissions as gt, getProjectSettings as h, unconfirmedKeyFinding as ht, clearAndroidBootPending as i, outdatedServer as it, writeConfigSettingAsync as j, withConfigLockAsync$1 as k, findEnclosingWorktreeRoot as l, sayHello as lt, getProject as m, notOnTailnetDiagnosis as mt, allMetroPorts as n, keyConfirmer as nt, clearSupervisor as o, reachMachine as ot, getPlatformDeviceLimits as p, diagnosisFinding as pt, removeSlotDevice as q, claimMetroPort as r, openAuthenticated as rt, configCorruptRepair as s, realIo as st, allConsolePortsAndSerials as t, findPeer$1 as tt, getConcurrencyLimits as u, setupRemedy as ut, loadConfig$1 as v, saveConfig as w, releaseAndroidConsolePort as x, recordIosSchemeApprovals as y, volumeRootFor as z };
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import { o as cancellableSleep, t as getExecutor, x as withDrainingCancellation } from "./exec-aULwtNly.mjs";
|
|
2
|
-
import { f as writeWorkspaceStateAsync, k as workspaceLogsDir, r as readWorkspaceState } from "./workspace-state-
|
|
3
|
-
import {
|
|
4
|
-
import { _ as stepTimer, c as launchErrorReport, i as formatDuration, l as phaseLine, n as appReadinessMessage, v as launchErrorPreview } from "./command-output-
|
|
5
|
-
import { J as resolveCacheProviderConfig, Q as resolveSettings, St as gitCommonDirAsync, Vt as repoRootAsync, an as makeTemporaryDirectory, at as settingsLayers, dt as detectProviders, nt as settingOriginScope, on as removeTemporaryEntry } from "./settings-
|
|
6
|
-
import { L as workspaceDevServerMode, f as projectRegistry, i as findProjectRoot, v as detectIsExpo, z as writeWorkspaceLaunchAsync } from "./project-
|
|
7
|
-
import { o as workspaceLinks } from "./stim-desktop-
|
|
8
|
-
import { c as pidExists, d as resolveProjectMetro, f as signalProcessTree } from "./metro-
|
|
2
|
+
import { f as writeWorkspaceStateAsync, k as workspaceLogsDir, r as readWorkspaceState } from "./workspace-state-3bF4TB8P.mjs";
|
|
3
|
+
import { D as upsertProject, H as deviceSlotKey, V as deviceSlotFileKey, k as withConfigLockAsync, m as getProject, u as getConcurrencyLimits, y as recordIosSchemeApprovals } from "./config-D5qNWJEP.mjs";
|
|
4
|
+
import { _ as stepTimer, c as launchErrorReport, i as formatDuration, l as phaseLine, n as appReadinessMessage, v as launchErrorPreview } from "./command-output-VrXd6qPX.mjs";
|
|
5
|
+
import { J as resolveCacheProviderConfig, Q as resolveSettings, St as gitCommonDirAsync, Vt as repoRootAsync, an as makeTemporaryDirectory, at as settingsLayers, dt as detectProviders, nt as settingOriginScope, on as removeTemporaryEntry } from "./settings-C6UTYW2K.mjs";
|
|
6
|
+
import { L as workspaceDevServerMode, f as projectRegistry, i as findProjectRoot, v as detectIsExpo, z as writeWorkspaceLaunchAsync } from "./project-DCLkDM8C.mjs";
|
|
7
|
+
import { o as workspaceLinks } from "./stim-desktop-1XxET4S8.mjs";
|
|
8
|
+
import { c as pidExists, d as resolveProjectMetro, f as signalProcessTree } from "./metro-mKHEMO-a.mjs";
|
|
9
9
|
import { i as createNdjsonWriter } from "./ndjson-CrjIsGzw.mjs";
|
|
10
|
-
import { An as checkEasAuth, At as ensureRemoteBootOwned, Bt as RELEASE_VERIFY_WAIT_MS, Cn as gateMetroOrigin, Dt as bundleEntryPoint, Gt as unattributedLaunchLines, Ht as isBundleProof, It as LAUNCH_BUNDLING, Jt as verifyLaunch, Kt as unverifiedLaunchLines, Ln as resolveEasCliBin, Lt as LAUNCH_FATAL, Nn as loadProjectProvider, Nt as remoteIosDeps, Pt as resolveRemoteContext, Rn as resolveRemote, Rt as LAUNCH_UNVERIFIED, Sn as readRemoteSimulatorArch, Ut as readCollectorRecords, Wt as readMetroRecords, Yt as verifyReleaseLaunch, an as devClientUrl, c as budgetGate, dn as installIosApp, en as IOS_DEV_MENU_OFF_DEFAULTS_PLIST, fn as iosAppProcess, gn as restartedAppNote, hn as launchIosApp, in as clearOtherUserApps, kt as ensureMetroReachable, zn as uploadRemote } from "./ccache-
|
|
11
|
-
import { St as acquireBuildSlot, Tt as releaseBuildSlot, ct as recordRunStats, it as readRunEstimates, ot as recordCapacityRefusal } from "./workspaces-
|
|
12
|
-
import { E as readPodState, H as readBundleId, T as podsAreStale, U as resolveScheme, V as readBundleExecutable, c as iosToolchainAsync, k as runPodInstall } from "./toolchain-
|
|
13
|
-
import { F as waitForBuild, M as acquireBuildLock, P as releaseBuildLock } from "./activity-
|
|
14
|
-
import { A as untrackedNativeFiles, C as resolveBuild, c as evictBuild, m as fingerprintProject, w as storeBuild } from "./build-cache-
|
|
15
|
-
import { d as listAllIosSims, h as listIosRuntimesAsync, r as clearIosAppData } from "./ios-
|
|
16
|
-
import { n as readHostedIos, o as writeHostedIosAsync } from "./ios-state-
|
|
17
|
-
import { n as hostedMetroPortProbe } from "./hosted-native-
|
|
18
|
-
import { i as prepareHostedIos, r as placeHostedIos } from "./phone-reverses-
|
|
19
|
-
import { n as verifyCollectorOwnership } from "./ownership-
|
|
20
|
-
import { n as nativeRunCommand, r as siblingPlatformSlots, t as launchSlotScope } from "./slot-launch-
|
|
21
|
-
import { a as discoverXcodeProject, r as buildIos } from "./react-native-build-
|
|
22
|
-
import { c as startDevServer, g as detectBundleId } from "./start-
|
|
10
|
+
import { An as checkEasAuth, At as ensureRemoteBootOwned, Bt as RELEASE_VERIFY_WAIT_MS, Cn as gateMetroOrigin, Dt as bundleEntryPoint, Gt as unattributedLaunchLines, Ht as isBundleProof, It as LAUNCH_BUNDLING, Jt as verifyLaunch, Kt as unverifiedLaunchLines, Ln as resolveEasCliBin, Lt as LAUNCH_FATAL, Nn as loadProjectProvider, Nt as remoteIosDeps, Pt as resolveRemoteContext, Rn as resolveRemote, Rt as LAUNCH_UNVERIFIED, Sn as readRemoteSimulatorArch, Ut as readCollectorRecords, Wt as readMetroRecords, Yt as verifyReleaseLaunch, an as devClientUrl, c as budgetGate, dn as installIosApp, en as IOS_DEV_MENU_OFF_DEFAULTS_PLIST, fn as iosAppProcess, gn as restartedAppNote, hn as launchIosApp, in as clearOtherUserApps, kt as ensureMetroReachable, zn as uploadRemote } from "./ccache-DVDO2ocE.mjs";
|
|
11
|
+
import { St as acquireBuildSlot, Tt as releaseBuildSlot, ct as recordRunStats, it as readRunEstimates, ot as recordCapacityRefusal } from "./workspaces-BNEyJ1B_.mjs";
|
|
12
|
+
import { E as readPodState, H as readBundleId, T as podsAreStale, U as resolveScheme, V as readBundleExecutable, c as iosToolchainAsync, k as runPodInstall } from "./toolchain-CGdgD4x4.mjs";
|
|
13
|
+
import { F as waitForBuild, M as acquireBuildLock, P as releaseBuildLock } from "./activity-Dw4N_RFe.mjs";
|
|
14
|
+
import { A as untrackedNativeFiles, C as resolveBuild, c as evictBuild, m as fingerprintProject, w as storeBuild } from "./build-cache-BsKim4V7.mjs";
|
|
15
|
+
import { d as listAllIosSims, h as listIosRuntimesAsync, r as clearIosAppData } from "./ios-CdAV4-1E.mjs";
|
|
16
|
+
import { n as readHostedIos, o as writeHostedIosAsync } from "./ios-state-BEIJRJ7P.mjs";
|
|
17
|
+
import { n as hostedMetroPortProbe } from "./hosted-native-kaR4nUHk.mjs";
|
|
18
|
+
import { i as prepareHostedIos, r as placeHostedIos } from "./phone-reverses-Drj5QQCh.mjs";
|
|
19
|
+
import { n as verifyCollectorOwnership } from "./ownership-CCfiBfOP.mjs";
|
|
20
|
+
import { n as nativeRunCommand, r as siblingPlatformSlots, t as launchSlotScope } from "./slot-launch-B4MHzVX2.mjs";
|
|
21
|
+
import { a as discoverXcodeProject, r as buildIos } from "./react-native-build-vK2lFYfN.mjs";
|
|
22
|
+
import { c as startDevServer, g as detectBundleId } from "./start-LSwIFlBv.mjs";
|
|
23
23
|
import { t as spawnEntry } from "./spawn-entry-jw19m8Nl.mjs";
|
|
24
|
-
import { a as acquireRunLease, c as lostRefusal, d as runLease, s as lostLine, t as DEBUG_VERIFY_STEP_MS, u as releaseLeaseOnAbort } from "./device-lease-run-
|
|
25
|
-
import { r as checkDeviceCapacity } from "./device-capacity-
|
|
26
|
-
import { n as clearIosAdoptionPending } from "./device-ios-
|
|
27
|
-
import { i as deviceLabel, o as deviceShortName, t as appNameFromPath } from "./support-
|
|
24
|
+
import { a as acquireRunLease, c as lostRefusal, d as runLease, s as lostLine, t as DEBUG_VERIFY_STEP_MS, u as releaseLeaseOnAbort } from "./device-lease-run-CHXQEn-7.mjs";
|
|
25
|
+
import { r as checkDeviceCapacity } from "./device-capacity-Du5wBTNJ.mjs";
|
|
26
|
+
import { n as clearIosAdoptionPending } from "./device-ios-CUYUhSYO.mjs";
|
|
27
|
+
import { i as deviceLabel, o as deviceShortName, t as appNameFromPath } from "./support-Cs24xRQa.mjs";
|
|
28
28
|
import { a as sealAppForDevice, r as gateProfileForDevice } from "./ios-signing-BJzvDPfU.mjs";
|
|
29
|
-
import { a as resolveEasDevelopmentBuild } from "./eas-build-
|
|
30
|
-
import { c as isWirelessIosDevice, i as iosDeviceProcess, l as listIosDevices, n as installIosDeviceApp, p as verifyIosDeviceReleaseLaunch, r as iosDeviceBounds, t as awaitIosDeviceLaunch, u as localNetworkPending } from "./ios-device-
|
|
31
|
-
import { a as captureNativeCrashes, c as simulatorConsolePaths, i as bundleBindFailure, n as IOS_CRASH_REPORT_RETRY, s as printNativeCrashReport, t as errorDiagnostics } from "./error-diagnostics-
|
|
32
|
-
import { t as followHostedLaunchLogs } from "./hosted-logs-sync-
|
|
33
|
-
import { a as runPrebuild, d as memoizedFingerprint, n as planPrebuildAsync } from "./prebuild-
|
|
34
|
-
import { i as launchOutcomeRecord, n as ensureWorkspaceStorageSafely } from "./native-runtime-
|
|
35
|
-
import { n as devClientTakesDevMenuParams, r as hasDevClient, t as devClientScheme } from "./dev-client-
|
|
36
|
-
import { t as automaticDevicePlacement } from "./auto-placement-
|
|
37
|
-
import { t as checkEasFallback } from "./eas-fallback-
|
|
38
|
-
import { i as warmMetro, n as ensureBooted, r as ensureOwnedDevice } from "./device-
|
|
39
|
-
import { t as selectFromPool } from "./device-pool-
|
|
40
|
-
import { s as reportIosResult } from "./ios-project-
|
|
41
|
-
import { i as swapJsBundle } from "./js-swap-
|
|
29
|
+
import { a as resolveEasDevelopmentBuild } from "./eas-build-CBFgseh1.mjs";
|
|
30
|
+
import { c as isWirelessIosDevice, i as iosDeviceProcess, l as listIosDevices, n as installIosDeviceApp, p as verifyIosDeviceReleaseLaunch, r as iosDeviceBounds, t as awaitIosDeviceLaunch, u as localNetworkPending } from "./ios-device-Dz8gFZ0K.mjs";
|
|
31
|
+
import { a as captureNativeCrashes, c as simulatorConsolePaths, i as bundleBindFailure, n as IOS_CRASH_REPORT_RETRY, s as printNativeCrashReport, t as errorDiagnostics } from "./error-diagnostics-CCsq_3uG.mjs";
|
|
32
|
+
import { t as followHostedLaunchLogs } from "./hosted-logs-sync-BPe8xnMu.mjs";
|
|
33
|
+
import { a as runPrebuild, d as memoizedFingerprint, n as planPrebuildAsync } from "./prebuild-D0hvmO4j.mjs";
|
|
34
|
+
import { i as launchOutcomeRecord, n as ensureWorkspaceStorageSafely } from "./native-runtime-D4qgnjK_.mjs";
|
|
35
|
+
import { n as devClientTakesDevMenuParams, r as hasDevClient, t as devClientScheme } from "./dev-client-DeAg0fso.mjs";
|
|
36
|
+
import { t as automaticDevicePlacement } from "./auto-placement-DtTRG0rk.mjs";
|
|
37
|
+
import { t as checkEasFallback } from "./eas-fallback-DFXdz4d6.mjs";
|
|
38
|
+
import { i as warmMetro, n as ensureBooted, r as ensureOwnedDevice } from "./device-DuNLOlR6.mjs";
|
|
39
|
+
import { t as selectFromPool } from "./device-pool-kUHO7MHO.mjs";
|
|
40
|
+
import { s as reportIosResult } from "./ios-project-Br1tVYWX.mjs";
|
|
41
|
+
import { i as swapJsBundle } from "./js-swap-BfG8XpyS.mjs";
|
|
42
42
|
import { mkdirSync, openSync, writeFileSync } from "node:fs";
|
|
43
43
|
import { networkInterfaces } from "node:os";
|
|
44
44
|
import { basename, join } from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as getExecutor } from "./exec-aULwtNly.mjs";
|
|
2
|
-
import { Bt as repoRoot } from "./settings-
|
|
2
|
+
import { Bt as repoRoot } from "./settings-C6UTYW2K.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
import { dirname, join, relative } from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as resolvePackageJson, b as isPackageResolvable } from "./project-
|
|
2
|
-
import { bn as readBundleSchemes, yn as pickDevClientScheme } from "./ccache-
|
|
1
|
+
import { C as resolvePackageJson, b as isPackageResolvable } from "./project-DCLkDM8C.mjs";
|
|
2
|
+
import { bn as readBundleSchemes, yn as pickDevClientScheme } from "./ccache-DVDO2ocE.mjs";
|
|
3
3
|
import { dirname, join } from "node:path";
|
|
4
4
|
import { isJsonObject, readJsonObject } from "@stim-cli/core/state";
|
|
5
5
|
//#region src/commands/dev-client.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as getExecutor } from "./exec-aULwtNly.mjs";
|
|
2
|
-
import { r as readWorkspaceState$1 } from "./workspace-state-
|
|
3
|
-
import { G as
|
|
4
|
-
import { r as clockTime } from "./command-output-
|
|
5
|
-
import { I as readWorkspaceLaunches, P as readRemoteSession, i as findProjectRoot$1, t as NO_PROJECT_REFUSAL } from "./project-
|
|
6
|
-
import {
|
|
7
|
-
import { En as runProcessOperation } from "./ccache-
|
|
8
|
-
import { C as parseLeaseDuration, D as releaseWorkspaceLeases, j as takeLease, y as fileLeaseIo } from "./activity-
|
|
9
|
-
import { D as resolveOwnedIosSim, f as listAllIosSimsAsync } from "./ios-
|
|
10
|
-
import { l as parseDeviceWait, p as waitForDevice } from "./device-lease-run-
|
|
11
|
-
import { n as runProvision } from "./device-provision-
|
|
12
|
-
import { a as iosPoolCandidates, c as isWirelessIosDevice, f as resolveIosPhysicalDevice, l as listIosDevices, o as iosPoolNoCandidatesRefusal } from "./ios-device-
|
|
13
|
-
import { t as selectFromPool } from "./device-pool-
|
|
2
|
+
import { r as readWorkspaceState$1 } from "./workspace-state-3bF4TB8P.mjs";
|
|
3
|
+
import { G as parseDeviceSlotOption, H as deviceSlotKey, K as projectDeviceSlots, U as deviceSlotPlatforms, m as getProject } from "./config-D5qNWJEP.mjs";
|
|
4
|
+
import { r as clockTime } from "./command-output-VrXd6qPX.mjs";
|
|
5
|
+
import { I as readWorkspaceLaunches, P as readRemoteSession, i as findProjectRoot$1, t as NO_PROJECT_REFUSAL } from "./project-DCLkDM8C.mjs";
|
|
6
|
+
import { $ as probeEmulatorSerial, A as getAvdNameForSerialAsync, E as emulatorProbeSession, P as listAdbDevicesAsync, Z as physicalDeviceModel, at as resolvePhysicalDevice, c as androidPoolNoCandidatesRefusal, d as androidToolPath, it as resolveOwnedAvdSerialAsync, s as androidPoolCandidates, u as androidToolCwd } from "./android-DsEj2CCs.mjs";
|
|
7
|
+
import { En as runProcessOperation } from "./ccache-DVDO2ocE.mjs";
|
|
8
|
+
import { C as parseLeaseDuration, D as releaseWorkspaceLeases, j as takeLease, y as fileLeaseIo } from "./activity-Dw4N_RFe.mjs";
|
|
9
|
+
import { D as resolveOwnedIosSim, f as listAllIosSimsAsync } from "./ios-CdAV4-1E.mjs";
|
|
10
|
+
import { l as parseDeviceWait, p as waitForDevice } from "./device-lease-run-CHXQEn-7.mjs";
|
|
11
|
+
import { n as runProvision } from "./device-provision-e7bKS7lx.mjs";
|
|
12
|
+
import { a as iosPoolCandidates, c as isWirelessIosDevice, f as resolveIosPhysicalDevice, l as listIosDevices, o as iosPoolNoCandidatesRefusal } from "./ios-device-Dz8gFZ0K.mjs";
|
|
13
|
+
import { t as selectFromPool } from "./device-pool-kUHO7MHO.mjs";
|
|
14
14
|
import { hostedNativeRecords } from "@stim-cli/core/state";
|
|
15
15
|
import chalk from "chalk";
|
|
16
16
|
//#region src/commands/device-tools.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as ownedDeviceLabel } from "./project-
|
|
3
|
-
import {
|
|
4
|
-
import { c as pidExists } from "./metro-
|
|
5
|
-
import { pt as teardownOwnedAvd } from "./workspaces-
|
|
6
|
-
import { h as tailLines } from "./activity-
|
|
7
|
-
import "./ios-
|
|
8
|
-
import { t as clearDeviceIdleShutdown } from "./idle-shutdown-
|
|
9
|
-
import { i as ensureOwnedIosDevice, r as ensureIosBooted } from "./device-ios-
|
|
10
|
-
import { t as reconcileSimSlim } from "./simslim-
|
|
11
|
-
import { n as ensureAndroidBooted, r as ensureOwnedAndroidDevice, t as ANDROID_BOOT_TIMEOUT_MS } from "./device-android-
|
|
1
|
+
import { U as deviceSlotPlatforms } from "./config-D5qNWJEP.mjs";
|
|
2
|
+
import { s as ownedDeviceLabel } from "./project-DCLkDM8C.mjs";
|
|
3
|
+
import { x as configureNewOwnedAvd } from "./android-DsEj2CCs.mjs";
|
|
4
|
+
import { c as pidExists } from "./metro-mKHEMO-a.mjs";
|
|
5
|
+
import { pt as teardownOwnedAvd } from "./workspaces-BNEyJ1B_.mjs";
|
|
6
|
+
import { h as tailLines } from "./activity-Dw4N_RFe.mjs";
|
|
7
|
+
import "./ios-CdAV4-1E.mjs";
|
|
8
|
+
import { t as clearDeviceIdleShutdown } from "./idle-shutdown-BWHQ7mQG.mjs";
|
|
9
|
+
import { i as ensureOwnedIosDevice, r as ensureIosBooted } from "./device-ios-CUYUhSYO.mjs";
|
|
10
|
+
import { t as reconcileSimSlim } from "./simslim-93xmPh-d.mjs";
|
|
11
|
+
import { n as ensureAndroidBooted, r as ensureOwnedAndroidDevice, t as ANDROID_BOOT_TIMEOUT_MS } from "./device-android-BjhH0Ru3.mjs";
|
|
12
12
|
import { existsSync } from "node:fs";
|
|
13
13
|
import { dirname, join, resolve, sep } from "node:path";
|
|
14
14
|
import { rotatedLogPath } from "@stim-cli/core";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { D as ownership_claim_exports, t as getExecutor } from "./exec-aULwtNly.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { l as phaseLine } from "./command-output-
|
|
4
|
-
import { l as androidDataPartitionSizeGbSetting, o as androidAvdConfigSetting } from "./settings-
|
|
5
|
-
import {
|
|
6
|
-
import { c as pidExists } from "./metro-
|
|
7
|
-
import { gt as teardownParkedAvd, pt as teardownOwnedAvd } from "./workspaces-
|
|
8
|
-
import { B as reportMemoryCulprits, L as memoryCulpritsUnderAsync, R as readHostMemoryPressure, V as memoryCulpritAdvice, f as listAllIosSimsAsync } from "./ios-
|
|
9
|
-
import {
|
|
2
|
+
import { K as projectDeviceSlots, M as acquireAvdClaim, O as withConfigLock, T as setDevice, U as deviceSlotPlatforms, a as clearDevice, i as clearAndroidBootPending, k as withConfigLockAsync, t as allConsolePortsAndSerials, v as loadConfig, x as releaseAndroidConsolePort } from "./config-D5qNWJEP.mjs";
|
|
3
|
+
import { l as phaseLine } from "./command-output-VrXd6qPX.mjs";
|
|
4
|
+
import { l as androidDataPartitionSizeGbSetting, o as androidAvdConfigSetting } from "./settings-C6UTYW2K.mjs";
|
|
5
|
+
import { A as getAvdNameForSerialAsync, G as ownedAvdName, H as ownedAvdDeviceProfile, J as ownedAvdSystemImage, P as listAdbDevicesAsync, Q as pickDefaultSystemImage, R as listAvdsAsync, S as createOwnedAvd, V as nextConsolePort, W as ownedAvdMatchesConfiguration, _ as avdPoolConfiguration, b as bootAndroidEmulator, bt as parkedMaxSetting, ht as adoptParked, it as resolveOwnedAvdSerialAsync, n as OWNED_AVD_CONFIG_DEFAULTS, p as assertOwnedAvdStoppedAsync, t as DEFAULT_AVD_DEVICE_PROFILE, ut as waitForBoot, vt as isLegacyDeletionClaim, xt as readParked, z as listInstalledSystemImages } from "./android-DsEj2CCs.mjs";
|
|
6
|
+
import { c as pidExists } from "./metro-mKHEMO-a.mjs";
|
|
7
|
+
import { gt as teardownParkedAvd, pt as teardownOwnedAvd } from "./workspaces-BNEyJ1B_.mjs";
|
|
8
|
+
import { B as reportMemoryCulprits, L as memoryCulpritsUnderAsync, R as readHostMemoryPressure, V as memoryCulpritAdvice, f as listAllIosSimsAsync } from "./ios-CdAV4-1E.mjs";
|
|
9
|
+
import { _ as withDeviceBootAdmission, n as DeviceAdmissionRefusal, s as countLiveOwnedDevicesFrom } from "./device-capacity-Du5wBTNJ.mjs";
|
|
10
10
|
import { claimRemoveCommand, clearClaimChild, markClaimChildPending, processGroupAlive, releaseClaim, setClaimChild } from "@stim-cli/core/ownership-claim";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import { existsSync } from "node:fs";
|
|
@@ -65,8 +65,14 @@ async function prepareOwnedAvd({ projectPath, slot, label, previousAvdName, syst
|
|
|
65
65
|
throw new Error(`AVD ${current?.avdName ?? avdName} ${state} by another concurrent Stim run. Retry after that run finishes so the recorded device is resolved safely.`);
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
+
const releaseReservation = () => withConfigLockAsync(() => {
|
|
69
|
+
if (!isDeepStrictEqual(currentRecord(), reservation)) return;
|
|
70
|
+
if (previous) setDevice(projectPath, "android", previous, slot);
|
|
71
|
+
else clearDevice(projectPath, "android", slot, avdName);
|
|
72
|
+
});
|
|
68
73
|
let prepared;
|
|
69
74
|
let child;
|
|
75
|
+
let spawnAttempted = false;
|
|
70
76
|
const creationRunning = () => child?.pid !== void 0 && processGroupAlive(child.pid);
|
|
71
77
|
let configurationFailure;
|
|
72
78
|
try {
|
|
@@ -75,6 +81,7 @@ async function prepareOwnedAvd({ projectPath, slot, label, previousAvdName, syst
|
|
|
75
81
|
systemImage,
|
|
76
82
|
deviceProfile,
|
|
77
83
|
spawn: (...args) => {
|
|
84
|
+
spawnAttempted = true;
|
|
78
85
|
markClaimChildPending(claim);
|
|
79
86
|
child = getExecutor().spawn(...args);
|
|
80
87
|
if (child.pid !== void 0) {
|
|
@@ -98,7 +105,10 @@ async function prepareOwnedAvd({ projectPath, slot, label, previousAvdName, syst
|
|
|
98
105
|
};
|
|
99
106
|
} catch (error) {
|
|
100
107
|
const message = String(error?.message || error);
|
|
101
|
-
if (!message.includes("already exists"))
|
|
108
|
+
if (!message.includes("already exists")) {
|
|
109
|
+
if (!spawnAttempted) await releaseReservation();
|
|
110
|
+
throw error;
|
|
111
|
+
}
|
|
102
112
|
try {
|
|
103
113
|
if (!(await listAvdsAsync()).includes(avdName)) throw new AvdRecoveryError(`AVD ${avdName} already exists on disk but is not listed by the emulator. ${message}`, "Run `npx stim gc` to inspect orphaned owned AVDs, then `npx stim gc --delete` to reclaim those safe to delete. Retry `stim android` after cleanup; keep any AVD that GC cannot verify.", error);
|
|
104
114
|
await withConfigLockAsync(assertReservation);
|
|
@@ -116,11 +126,7 @@ async function prepareOwnedAvd({ projectPath, slot, label, previousAvdName, syst
|
|
|
116
126
|
} : {}
|
|
117
127
|
};
|
|
118
128
|
} catch (recoveryError) {
|
|
119
|
-
await
|
|
120
|
-
if (!isDeepStrictEqual(currentRecord(), reservation)) return;
|
|
121
|
-
if (previous) setDevice(projectPath, "android", previous, slot);
|
|
122
|
-
else clearDevice(projectPath, "android", slot, avdName);
|
|
123
|
-
});
|
|
129
|
+
await releaseReservation();
|
|
124
130
|
if (recoveryError instanceof AvdRecoveryError) throw recoveryError;
|
|
125
131
|
throw new AvdRecoveryError(`Could not recover owned AVD ${avdName}: ${String(recoveryError?.message || recoveryError)}`, "Inspect `npx stim status` and `adb devices`. Wait for any other Stim run using this AVD to finish, then retry `stim android`. Keep the AVD and its process locks while its state is unverified.", recoveryError);
|
|
126
132
|
}
|