stim 1.36.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.
- package/README.md +3 -1
- package/dist/{acquire-artifact-DGTHCd0Q.mjs → acquire-artifact-QKPDkesw.mjs} +2 -2
- package/dist/{act-CvN9xyV6.mjs → act-Bh3t-NuH.mjs} +28 -34
- package/dist/{activity-BpdDvA8Q.mjs → activity-CANftndU.mjs} +6 -6
- package/dist/{agent-device-usage-output-pbhaW7_k.mjs → agent-device-usage-output-CuROXefb.mjs} +5 -5
- package/dist/{android-SJx1V3R3.mjs → android-27_JgJ1T.mjs} +7 -7
- package/dist/{android-B0qTdwnt.mjs → android-Biwc4Dck.mjs} +5 -5
- package/dist/{android-5wkcMFDG.mjs → android-DGLG_VQ3.mjs} +2 -2
- package/dist/{android-e9WP10cE.mjs → android-Z6Eev9rL.mjs} +51 -42
- package/dist/{android-cas-BS9_55U5.mjs → android-cas-BDAwwL82.mjs} +4 -4
- package/dist/android-cas-compiler.mjs +1 -1
- package/dist/{android-image-BZ57YL6R.mjs → android-image-BcUD6bPi.mjs} +3 -3
- package/dist/api.d.mts +12 -5
- package/dist/api.mjs +34 -31
- package/dist/{apk-signed-tail-eZyXIrnc.mjs → apk-signed-tail-DHMkXs4s.mjs} +2 -2
- package/dist/{artifact-C3srrGVU.mjs → artifact-Dc1GsK7o.mjs} +29 -15
- package/dist/{artifact-platform-DqCWUieN.mjs → artifact-platform-BaGL1i1X.mjs} +1 -1
- package/dist/{artifact-ubNdxo_K.mjs → artifact-sGoFVK1q.mjs} +12 -12
- package/dist/{auto-placement-CKFpFCuq.mjs → auto-placement-RNh4kx2T.mjs} +7 -7
- package/dist/{browser-web-B63vLrj6.mjs → browser-web-7Oj57Roa.mjs} +15 -15
- package/dist/{build-B_Dx9SKJ.mjs → build-DkE5vjp1.mjs} +29 -28
- package/dist/{build-cache-BW8T4oD2.mjs → build-cache-CJ65Efv7.mjs} +10 -7
- package/dist/{build-plan-CeIooJqn.mjs → build-plan-DWajg5l_.mjs} +8 -7
- package/dist/{cache-manifest-CxWkZmUr.mjs → cache-manifest-BO0TIcPV.mjs} +1 -1
- package/dist/cache-manifest.mjs +1 -1
- package/dist/{cdp-C216kOAn.mjs → cdp-CgT47_9A.mjs} +1 -1
- package/dist/{chrome-C8sC5tdl.mjs → chrome-DL5znvmo.mjs} +1 -1
- package/dist/{cli-COdXswmc.mjs → cli-BSlwv9hI.mjs} +21 -21
- package/dist/cli.mjs +1 -1
- package/dist/{client-KSWIeQLA.mjs → client-qwmHFSga.mjs} +16 -12
- package/dist/collector-run.mjs +7 -7
- package/dist/{command-output-T3cDctRE.mjs → command-output-DsjhOzJ3.mjs} +1 -1
- package/dist/{config-BA3TgoIP.mjs → config-CNmN-ndb.mjs} +2 -2
- package/dist/{dependencies-LH-7k1Vr.mjs → dependencies-oku1ZLep.mjs} +144 -71
- package/dist/{dependency-state-Blfp3AkG.mjs → dependency-state-CBhPJAs_.mjs} +2 -2
- package/dist/{detached-entry-tfrgGVWb.mjs → detached-entry-VqFeEE9W.mjs} +1 -1
- package/dist/{dev-client-MO_DjTZr.mjs → dev-client-DL5UtVdx.mjs} +2 -2
- package/dist/{device-DNTWFFB1.mjs → device-CxMwX0VO.mjs} +17 -16
- package/dist/{device-android-BB9Lugr8.mjs → device-android-CSlBXuh_.mjs} +9 -9
- package/dist/{device-capacity-CpAVcKgq.mjs → device-capacity-D_IlxZRL.mjs} +84 -37
- package/dist/device-host-worker.mjs +28 -16
- package/dist/{device-pool-BJToGG-q.mjs → device-pool-BEaTdtss.mjs} +3 -3
- package/dist/{device-provision-CxQDCtrc.mjs → device-provision-C9NPdCne.mjs} +10 -10
- package/dist/{device-BZWt_aPJ.mjs → device-yfuJ-v4s.mjs} +11 -11
- package/dist/{doctor-C-46SkBe.mjs → doctor-BAA3zN5U.mjs} +1 -1
- package/dist/{doctor-DV639Iw_.mjs → doctor-BQ1Kl44s.mjs} +15 -21
- package/dist/{doctor-CYZ45LnX.mjs → doctor-QNzDE4aW.mjs} +24 -24
- package/dist/{doctor-fingerprint-DqWvIhMb.mjs → doctor-fingerprint-Bo4z8YNP.mjs} +1 -1
- package/dist/doctor-fingerprint.mjs +1 -1
- package/dist/{doctor-watchman-TZxYt_98.mjs → doctor-watchman-B8e3s9ko.mjs} +5 -5
- package/dist/{eas-build-Xf5Jd6LR.mjs → eas-build-4rg9WpEg.mjs} +4 -4
- package/dist/{eas-fallback-DNYPNinw.mjs → eas-fallback-UGo0SG7T.mjs} +6 -6
- package/dist/{eas-session-ledger-CXZ4aix0.mjs → eas-session-ledger-BDpSdFDM.mjs} +6 -6
- package/dist/{error-diagnostics-CvB5bpPU.mjs → error-diagnostics-CW9xl6ot.mjs} +10 -10
- package/dist/{exec-CGuDzt40.mjs → exec-L37dbiIb.mjs} +7 -1
- package/dist/{gc-DiUhrVFo.mjs → gc-3DHVCn-k.mjs} +52 -36
- package/dist/{gc-8Qm_K1iy.mjs → gc-BQ5dXnC7.mjs} +2 -2
- package/dist/{guide-CuvHRP53.mjs → guide-DqJCc4vW.mjs} +209 -78
- package/dist/{hosted-android-D__HGVIO.mjs → hosted-android-gwLspaz6.mjs} +4 -4
- package/dist/{hosted-client-DMOOu8vD.mjs → hosted-client-B_h_bTlz.mjs} +4 -4
- package/dist/{hosted-logs-CClIktQM.mjs → hosted-logs-BpQSRDRU.mjs} +17 -10
- package/dist/{hosted-logs-sync-B7XCeqVm.mjs → hosted-logs-sync-D3L1hDpM.mjs} +5 -5
- package/dist/{hosted-macos-D4sDJIbB.mjs → hosted-macos-GK4O1s7x.mjs} +6 -6
- package/dist/{hosted-native-BiiUG_Q6.mjs → hosted-native-B6ur_0OJ.mjs} +8 -8
- package/dist/{ios-Qam0bT9n.mjs → ios-2Qr4_Zu2.mjs} +1 -1
- package/dist/{ios-BZuhvLGr.mjs → ios-Bi0bQiZ_.mjs} +8 -8
- package/dist/{ios-BhfpRfNf.mjs → ios-DQEzde6f.mjs} +23 -10
- package/dist/{ios-BhpUWyN7.mjs → ios-M7nRVb33.mjs} +100 -37
- package/dist/{ios-device-vhYL1N--.mjs → ios-device-BLm1BZB4.mjs} +3 -3
- package/dist/{ios-device-DLdEDWJj.mjs → ios-device-ygijU78G.mjs} +1 -1
- package/dist/{ios-project-Cz0S1Sz-.mjs → ios-project-Bsm-eqwv.mjs} +7 -7
- package/dist/ios-runtime-DLiKoOkd.mjs +150 -0
- package/dist/{ios-signing-BcH88ecn.mjs → ios-signing-rWR_Mu5Z.mjs} +3 -3
- package/dist/{ios-state-Avwz2cbZ.mjs → ios-state-tzD0s7pt.mjs} +1 -1
- package/dist/{js-swap-Desu2iII.mjs → js-swap-Cuky0ZAQ.mjs} +60 -13
- package/dist/{launch-6ckG9UrC.mjs → launch-B-pkNlqg.mjs} +48 -28
- package/dist/{lightened-B6TnpHMX.mjs → lightened-KHWHmzGs.mjs} +5 -5
- package/dist/{logs-B-DMy1K0.mjs → logs-B0etn-BD.mjs} +7 -7
- package/dist/{logs-CO0CJRiC.mjs → logs-HomiqPhV.mjs} +6 -6
- package/dist/{macos-CduEmWAK.mjs → macos-C5liDnbP.mjs} +1 -1
- package/dist/macos-run.mjs +1 -1
- package/dist/{macos-B1aCXhem.mjs → macos-zMxSibx5.mjs} +22 -23
- package/dist/maintenance-run.mjs +6 -6
- package/dist/{metro-DM3yJL1M.mjs → metro-Cj6W4qOO.mjs} +4 -4
- package/dist/{metro-request-O8Q-JvBg.mjs → metro-request-BWCl3Zco.mjs} +2 -2
- package/dist/{prebuild-Di2IhUue.mjs → miss-reason-CeHvzeVm.mjs} +12 -272
- package/dist/{named-ports-BvB_CO9B.mjs → named-ports-DZ8DrkH1.mjs} +3 -3
- package/dist/{native-android-28NOG2-y.mjs → native-android-DtWLzg6g.mjs} +18 -18
- package/dist/{native-gradle-artifact-inputs-DxVEtS6_.mjs → native-gradle-artifact-inputs-D4w20_6d.mjs} +5 -5
- package/dist/{native-runtime-C3_NkUlW.mjs → native-runtime-BfvvAJLd.mjs} +6 -6
- package/dist/{native-source-ChAGj7R1.mjs → native-source-D2ZfiQ6U.mjs} +1 -1
- package/dist/{native-xcode-inputs-BWFTw5cJ.mjs → native-xcode-inputs-BHvnAq4o.mjs} +3 -3
- package/dist/{native-xcode-ios-B4Qoc7-U.mjs → native-xcode-ios-CYxrg_kK.mjs} +18 -19
- package/dist/offload-worker.mjs +23 -22
- package/dist/{operation-exec-DKlBcKAL.mjs → operation-exec-DNynwpqO.mjs} +1 -1
- package/dist/{ownership-C3y8wLSl.mjs → ownership-BLgOimfp.mjs} +3 -3
- package/dist/{page-Dj8IqvGM.mjs → page-CoN9al_x.mjs} +2 -2
- package/dist/{phone-reverses-BhSxbqom.mjs → phone-reverses-vRveZKSG.mjs} +4 -4
- package/dist/{placement-log-B8RCSzOm.mjs → placement-log-CM0DSELs.mjs} +1 -1
- package/dist/{plan-placement-BI4r55aP.mjs → plan-placement-CIrvKq8y.mjs} +6 -6
- package/dist/{ports-DhOSyWm9.mjs → ports-CKORWlC0.mjs} +3 -3
- package/dist/{project-Clk1JAWL.mjs → project-DIo71tGq.mjs} +16 -16
- package/dist/{pull-request-BpMTNkMB.mjs → pull-request-m8cMZ3aE.mjs} +2 -2
- package/dist/pull-requests.mjs +1 -1
- package/dist/{react-native-android-bdHBMrnf.mjs → react-native-android-B7VYSlKj.mjs} +41 -36
- package/dist/{react-native-build-CJega_NM.mjs → react-native-build-CFYTYmG4.mjs} +13 -10
- package/dist/{react-native-doctor-CY7BGITE.mjs → react-native-doctor-CnpVfE0k.mjs} +6 -6
- package/dist/{react-native-ios-Bo5EDVel.mjs → react-native-ios-ByeXo_NP.mjs} +18 -18
- package/dist/{recorded-build-BuGL_fnm.mjs → recorded-build-B4prJjSD.mjs} +20 -2
- package/dist/{recordings-6i2-x8LU.mjs → recordings-Byu5SzlI.mjs} +1 -1
- package/dist/{registration-DKjJGQ6p.mjs → registration-C-3PDR3X.mjs} +1 -1
- package/dist/{reload-BvDuvygc.mjs → reload-DANrKhQR.mjs} +1 -1
- package/dist/{reload-A_axEbeS.mjs → reload-DTd9g1EG.mjs} +16 -16
- package/dist/{remote-PD6CM0xp.mjs → remote-BWuq9qHV.mjs} +4 -4
- package/dist/{remote-WK_swZEw.mjs → remote-NOM82XE0.mjs} +10 -10
- package/dist/{result-BkDpN5Mz.mjs → result-C-ISEJ5F.mjs} +17 -17
- package/dist/{run-CTFi4Nq2.mjs → run-DQwx6djG.mjs} +2 -2
- package/dist/{server-bare-W0aPsRZE.mjs → server-bare-B_wRfchQ.mjs} +2 -2
- package/dist/{server-command-S00-ddjK.mjs → server-command-DgXYowQf.mjs} +6 -6
- package/dist/{server-expo-cc-cmfsl.mjs → server-expo-ByBM8DVv.mjs} +10 -8
- package/dist/server-expo-D7rwjAFp.mjs +2 -0
- package/dist/{settings-C_Xu4RNZ.mjs → settings-BthPoY3t.mjs} +2 -2
- package/dist/{settings-Bap-qjnp.mjs → settings-Cz8kQJzr.mjs} +49 -12
- package/dist/{settings-payload-D5jjhmrw.mjs → settings-payload-BOcxsZ6k.mjs} +5 -5
- package/dist/{settings-write-C5huI-iS.mjs → settings-write-BuMPL1rd.mjs} +6 -6
- package/dist/settings.schema.json +32 -2
- package/dist/{simslim-DlBvwgeF.mjs → simslim-BMgpTRWe.mjs} +2 -2
- package/dist/{slot-launch-qEQVTth7.mjs → slot-launch-BIm9w8kH.mjs} +6 -6
- package/dist/{stage-CxVI_MlP.mjs → stage-CX1Byp3n.mjs} +6 -5
- package/dist/{start-CVzivp35.mjs → start-BZWr85b2.mjs} +1 -1
- package/dist/{start-YpT_JpQQ.mjs → start-DI0ofPO-.mjs} +12 -12
- package/dist/{state-B4B5P4LU.mjs → state-45P8Kd6Z.mjs} +2 -2
- package/dist/{state-B9VFI6r0.mjs → state-C2vELPyr.mjs} +4 -4
- package/dist/{stats-COoePEri.mjs → stats-BDljWVWU.mjs} +5 -5
- package/dist/{stats-report-BVRCqwWA.mjs → stats-report-Ci6TAfFm.mjs} +1 -1
- package/dist/{status-CIvU5-TF.mjs → status-BG2S-a1d.mjs} +1 -1
- package/dist/{status-CQWmNl1f.mjs → status-C2PdxK6q.mjs} +1 -1
- package/dist/{status-CIg0k7Qb.mjs → status-DEZjHP4q.mjs} +32 -34
- package/dist/{status-watch--rfZynD_.mjs → status-watch-Cs18eFkQ.mjs} +5 -5
- package/dist/status-worker.mjs +1 -1
- package/dist/{stim-desktop-D0P_bzmd.mjs → stim-desktop-DWGAfaud.mjs} +2 -2
- package/dist/{stop-BiI4_VFG.mjs → stop-B2zDplJa.mjs} +2 -2
- package/dist/{stop-C3d5qG7C.mjs → stop-BPrTEOaz.mjs} +16 -16
- package/dist/{stop-BEBBruvD.mjs → stop-DrxHVVX9.mjs} +5 -5
- package/dist/supervisor-run.mjs +15 -15
- package/dist/{support-BJbXovoO.mjs → support-BeVRaMWT.mjs} +13 -14
- package/dist/{support-Vckdzrmk.mjs → support-DBKG3Yyb.mjs} +7 -7
- package/dist/{swiftpm-artifact-inputs-DbuF-Yrr.mjs → swiftpm-artifact-inputs-CfNAb6Vm.mjs} +4 -4
- package/dist/{swiftpm-macos-Bu8xeBfM.mjs → swiftpm-macos-xdHjJHIj.mjs} +11 -11
- package/dist/toolchain-CTsPS5tL.mjs +2 -0
- package/dist/{toolchain-DCnWAxQL.mjs → toolchain-CZvtCZ-m.mjs} +11 -8
- package/dist/trigger-Bp3lruF2.mjs +2 -0
- package/dist/{trigger-BtB4kbe0.mjs → trigger-G_gbfIVB.mjs} +2 -2
- package/dist/{warm-progress-DwsGBpph.mjs → warm-progress-D3a0KviW.mjs} +20 -16
- package/dist/{web-D2En0Wa5.mjs → web-BvAweypa.mjs} +9 -9
- package/dist/web-DDL3usMb.mjs +2 -0
- package/dist/web-run.mjs +8 -8
- package/dist/windows-report.mjs +1 -1
- package/dist/{workspace-state-BhwAJBgA.mjs → workspace-state-CHEN_xzy.mjs} +3 -3
- package/dist/{workspaces-Dh5N70qW.mjs → workspaces-BgAYIccE.mjs} +218 -54
- package/dist/{worktree-DLm4s2Ib.mjs → worktree-C0YZ6mnk.mjs} +1 -1
- package/dist/{worktree-Yw3EW77B.mjs → worktree-kGPE9Pcw.mjs} +339 -37
- package/package.json +7 -7
- package/dist/server-expo-BWJDa7Qb.mjs +0 -2
- package/dist/toolchain-CIRdNl-c.mjs +0 -2
- package/dist/trigger-D8B7QR0q.mjs +0 -2
- package/dist/web-Dpj70t4p.mjs +0 -2
package/README.md
CHANGED
|
@@ -104,7 +104,9 @@ Build-only preserves existing sessions and uses the same cache and build locks.
|
|
|
104
104
|
Successful builds include `result.facts.links.workspace`, an HTTPS workspace link
|
|
105
105
|
agents can share with an already-paired phone or Desktop, including when the
|
|
106
106
|
build machine has no Desktop app installed.
|
|
107
|
-
Each result is a separate copy
|
|
107
|
+
Each result is a separate copy in the workspace. It lasts until a build replaces
|
|
108
|
+
its recorded build (for macOS, until the next macOS build) or `stim worktree remove`;
|
|
109
|
+
copy or export a result you need to keep before the next build.
|
|
108
110
|
Run results preserve the CLI's launch evidence, including `'bundling'` and
|
|
109
111
|
`'unverified'` results.
|
|
110
112
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as WorkspaceProcessCleanupError } from "./exec-
|
|
2
|
-
import { I as waitForSharedBuild } from "./activity-
|
|
1
|
+
import { f as WorkspaceProcessCleanupError } from "./exec-L37dbiIb.mjs";
|
|
2
|
+
import { I as waitForSharedBuild } from "./activity-CANftndU.mjs";
|
|
3
3
|
import { copyFileSync, rmSync } from "node:fs";
|
|
4
4
|
//#region src/engine/failed-transcript.ts
|
|
5
5
|
/**
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { T as process_identity_exports, f as WorkspaceProcessCleanupError, m as workspaceProcessLockError, n as isTimeoutError, p as withWorkspaceProcessLock, t as getExecutor } from "./exec-
|
|
2
|
-
import { E as workspaceDir, j as workspaceStateFile$1, k as workspaceLogsDir$1, r as readWorkspaceState$1, u as workspaceLastUsed, w as workspaceAgentDeviceDir } from "./workspace-state-
|
|
3
|
-
import { o as formatLongDuration, u as plural } from "./command-output-
|
|
4
|
-
import { ct as measuredDirectorySizeAsync, gt as projectDeviceSlots, it as formatBytes, m as getProject, ot as isOnMountedVolume, rt as directorySizeAsync, st as listMountedVolumes, v as loadConfig$1 } from "./config-
|
|
5
|
-
import { c as gitQuiet, l as gitQuietAsync, n as runOperationFileQuiet, r as childEnvironment } from "./operation-exec-
|
|
6
|
-
import { At as listWorktrees, Et as hasUncommittedWorkAsync, Ft as matchWorktreeEntry, Kt as sourceCheckoutOf, O as maintenanceKeepSetting, Pt as lockReason, Ut as resolveFullRefAsync, Wt as resolveSourceCheckoutAsync, X as resolveProjectSettings, Xt as worktreeLockAsync, Z as resolveProjectSettingsAsync, bt as dirtyPathsAsync, h as deviceIdleShutdownMinutesSetting, it as settingValueAt, jt as listWorktreesAsync, mt as LOCKED_REASON, qt as unpushedCommitsAsync, sn as removeTemporaryEntryAsync, wt as hasPopulatedSubmodulesAsync } from "./settings-
|
|
7
|
-
import { P as readRemoteSession, i as findProjectRoot$1 } from "./project-
|
|
8
|
-
import { A as getAvdNameForSerialAsync, L as listAvds, N as listAdbDevices, P as listAdbDevicesAsync, R as listAvdsAsync, U as ownedAvdDirectory, k as getAvdNameForSerial, q as ownedAvdSerialResolverAsync, xt as readParked } from "./android-
|
|
9
|
-
import { c as pidExists } from "./metro-
|
|
10
|
-
import { At as
|
|
11
|
-
import { o as readWebRecord, u as webFacts } from "./state-
|
|
12
|
-
import { a as unregister, n as readManifest } from "./cache-manifest-
|
|
13
|
-
import {
|
|
1
|
+
import { T as process_identity_exports, f as WorkspaceProcessCleanupError, m as workspaceProcessLockError, n as isTimeoutError, p as withWorkspaceProcessLock, t as getExecutor } from "./exec-L37dbiIb.mjs";
|
|
2
|
+
import { E as workspaceDir, j as workspaceStateFile$1, k as workspaceLogsDir$1, r as readWorkspaceState$1, u as workspaceLastUsed, w as workspaceAgentDeviceDir } from "./workspace-state-CHEN_xzy.mjs";
|
|
3
|
+
import { o as formatLongDuration, u as plural } from "./command-output-DsjhOzJ3.mjs";
|
|
4
|
+
import { ct as measuredDirectorySizeAsync, gt as projectDeviceSlots, it as formatBytes, m as getProject, ot as isOnMountedVolume, rt as directorySizeAsync, st as listMountedVolumes, v as loadConfig$1 } from "./config-CNmN-ndb.mjs";
|
|
5
|
+
import { c as gitQuiet, l as gitQuietAsync, n as runOperationFileQuiet, r as childEnvironment } from "./operation-exec-DNynwpqO.mjs";
|
|
6
|
+
import { At as listWorktrees, Et as hasUncommittedWorkAsync, Ft as matchWorktreeEntry, Kt as sourceCheckoutOf, O as maintenanceKeepSetting, Pt as lockReason, Ut as resolveFullRefAsync, Wt as resolveSourceCheckoutAsync, X as resolveProjectSettings, Xt as worktreeLockAsync, Z as resolveProjectSettingsAsync, bt as dirtyPathsAsync, h as deviceIdleShutdownMinutesSetting, it as settingValueAt, jt as listWorktreesAsync, mt as LOCKED_REASON, qt as unpushedCommitsAsync, sn as removeTemporaryEntryAsync, wt as hasPopulatedSubmodulesAsync } from "./settings-Cz8kQJzr.mjs";
|
|
7
|
+
import { P as readRemoteSession, i as findProjectRoot$1 } from "./project-DIo71tGq.mjs";
|
|
8
|
+
import { A as getAvdNameForSerialAsync, L as listAvds, N as listAdbDevices, P as listAdbDevicesAsync, R as listAvdsAsync, U as ownedAvdDirectory, k as getAvdNameForSerial, q as ownedAvdSerialResolverAsync, xt as readParked } from "./android-27_JgJ1T.mjs";
|
|
9
|
+
import { c as pidExists } from "./metro-Cj6W4qOO.mjs";
|
|
10
|
+
import { At as collectParkedSims, B as stopOwnedMetro, Cr as memorySweepIsScoped, Dr as stopIdleGradleDaemons, Dt as DEVICE_LIST_TIMEOUT_MS, Ht as findStaleProjectDevices, Lt as deviceSweepIsScoped, M as enforceBudget, Mr as pruneCache, Mt as deleteParkedSims, Nt as deleteProjectDevices, Or as phase, P as machineNumber, Q as levelFloors, R as resolveBudget, Z as diskPressureLevel, b as shutDownIdleDevices, et as lowestFree, j as cacheLabel, jr as discoverCaches, jt as deleteParkedAvds, kt as collectParkedAvds, ot as emptyCaches, pt as planCacheEmptying, tt as protectWindowMs, vr as collectMemoryReport, vt as collectGradleVersions, wt as waitForGradleExit, x as writeIdleShutdownEvent, y as dueIdleDevices, yt as deleteGradleVersion, z as trimmableCaches } from "./device-capacity-D_IlxZRL.mjs";
|
|
11
|
+
import { o as readWebRecord, u as webFacts } from "./state-C2vELPyr.mjs";
|
|
12
|
+
import { a as unregister, n as readManifest } from "./cache-manifest-BO0TIcPV.mjs";
|
|
13
|
+
import { At as eachLimited, Dt as GC_OUTPUT, F as collectOwnedDeviceActivity, I as collectOwnedDeviceActivityAsync, Mt as readConcurrency, V as workspaceBuildInProgress, a as collectOrphanedWorkspaces, b as workspaceInUseAsync, c as isInsideWorkspaces, d as recentNativeUseReason, g as ARTIFACT_DIRS, h as workspaceDirRemoved, i as clearWorkspaceOutputs, kt as takeGcResults, l as keptByLock, m as workspaceBuildReasons, o as collectWorkspaceOutputs, s as deleteOrphanedWorkspaces, t as LIGHTEN_AFTER_MS, u as listWorkspaceDirs, v as withIdleWorkspace, x as resolveSupervisorTarget, y as workspaceInUse } from "./workspaces-BgAYIccE.mjs";
|
|
14
|
+
import { t as resolveMaintenanceSettings } from "./settings-D9LtQaUw.mjs";
|
|
14
15
|
import { t as canonicalPath } from "./paths-BsJMoPP2.mjs";
|
|
15
|
-
import { N as listBuildLocks, _ as workspaceDeviceLastUseAt, b as leaseIsExpired, g as workspaceActivity, x as listLeaseFiles } from "./activity-
|
|
16
|
-
import { d as listAllIosSims, f as listAllIosSimsAsync } from "./ios-
|
|
16
|
+
import { N as listBuildLocks, _ as workspaceDeviceLastUseAt, b as leaseIsExpired, g as workspaceActivity, x as listLeaseFiles } from "./activity-CANftndU.mjs";
|
|
17
|
+
import { d as listAllIosSims, f as listAllIosSimsAsync } from "./ios-DQEzde6f.mjs";
|
|
17
18
|
import { s as metroStoreRoot } from "./errors-DHm_U5gv.mjs";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { o as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { a as
|
|
24
|
-
import { a as restoreProblem, r as recordLightened, t as finishLightened } from "./lightened-B6TnpHMX.mjs";
|
|
19
|
+
import { m as probeHostedSession } from "./hosted-client-B_h_bTlz.mjs";
|
|
20
|
+
import { o as runStop } from "./stop-BPrTEOaz.mjs";
|
|
21
|
+
import { D as stimCliUseOf, E as stimCliEntries, M as worktreeArchiveLimits, T as serviceRunningFrom, _ as cacheBlocked, a as nestedWorktrees, b as measurePressure, i as excludeWatchmanCookies, o as porcelainPath, p as removeWorktreeTarget, r as excludePodChurn, s as reclaimKeys, v as measureDisk, w as uncommittedActivityOf, x as measurePressureAsync, y as measureDiskAsync } from "./worktree-kGPE9Pcw.mjs";
|
|
22
|
+
import { n as describePullRequest, r as endedPullRequest, s as pullRequestLookups } from "./pull-request-m8cMZ3aE.mjs";
|
|
23
|
+
import { a as lastFetchedAtAsync, c as mergeStateAsync, f as recordPullRequestLookup, i as fetchDefaultBranchAsync, o as localDefaultBranchAsync, r as FETCH_FRESH_MS } from "./warm-progress-D3a0KviW.mjs";
|
|
24
|
+
import { a as restoreProblem, r as recordLightened, t as finishLightened } from "./lightened-KHWHmzGs.mjs";
|
|
25
25
|
import { readClaimSet } from "@stim-cli/core/ownership-claim";
|
|
26
26
|
import { existsSync, lstatSync, readFileSync, readdirSync, readlinkSync, realpathSync, rmSync, statSync } from "node:fs";
|
|
27
27
|
import { tmpdir } from "node:os";
|
|
@@ -833,7 +833,6 @@ function plan({ pressure, sizes, settings, budget, diskSteps = [], protectedRoot
|
|
|
833
833
|
return true;
|
|
834
834
|
};
|
|
835
835
|
const floor = Math.max(budget.minFreeDiskMb, budget.hardFloorDiskMb);
|
|
836
|
-
const emergency = pressure?.disk.some((disk) => disk.freeMb < budget.hardFloorDiskMb) ?? false;
|
|
837
836
|
const low = pressure?.disk.filter((disk) => disk.freeMb < floor) ?? [];
|
|
838
837
|
const reason = low.map((disk) => `free disk ${(disk.freeMb / 1024).toFixed(1)}G on ${disk.volume} under the ${(floor / 1024).toFixed(1)}G floor`).join("; ");
|
|
839
838
|
const kinds = {
|
|
@@ -892,14 +891,7 @@ function plan({ pressure, sizes, settings, budget, diskSteps = [], protectedRoot
|
|
|
892
891
|
if (cap === 0 || total <= cap) continue;
|
|
893
892
|
let remaining = total;
|
|
894
893
|
const targetBytes = cap * settings.capTargetPercent / 100;
|
|
895
|
-
const why = `${category} ${(total / 1024 ** 3).toFixed(1)}G over the ${capGb}G cap; target ${(targetBytes / 1024 ** 3).toFixed(1)}G`;
|
|
896
|
-
if (category === "compilation-cache" && !emergency) {
|
|
897
|
-
skips.push({
|
|
898
|
-
target: entries[0]?.dir ?? category,
|
|
899
|
-
reason: `${why}; it can only be emptied whole, which runs only below the ${(budget.hardFloorDiskMb / 1024).toFixed(1)}G hard floor`
|
|
900
|
-
});
|
|
901
|
-
continue;
|
|
902
|
-
}
|
|
894
|
+
const why = `${category} ${(total / 1024 ** 3).toFixed(1)}G over the ${capGb}G cap; ${category === "compilation-cache" ? "emptied whole" : `target ${(targetBytes / 1024 ** 3).toFixed(1)}G`}`;
|
|
903
895
|
for (const size of entries.toSorted((a, b) => (b.idleDays ?? 0) - (a.idleDays ?? 0))) {
|
|
904
896
|
if (remaining <= targetBytes) break;
|
|
905
897
|
const kept = size.workspace === protectedRoot ? "the triggering workspace is protected" : size.blocked;
|
|
@@ -1366,7 +1358,7 @@ async function planSweep({ settings, sizes, protectedRoot, pinned, now, devices
|
|
|
1366
1358
|
kind: "would-remove-orphan",
|
|
1367
1359
|
target: orphan.dir,
|
|
1368
1360
|
bytes: orphan.bytes ?? 0,
|
|
1369
|
-
reason: `its project ${orphan.projectRoot} no longer exists`,
|
|
1361
|
+
reason: orphan.projectRoot === null ? "it is empty and has no workspace.json" : `its project ${orphan.projectRoot} no longer exists`,
|
|
1370
1362
|
check: "sweep"
|
|
1371
1363
|
});
|
|
1372
1364
|
for (const kept of orphans.skipped) skips.push({
|
|
@@ -3282,8 +3274,10 @@ function trimCache(action, context) {
|
|
|
3282
3274
|
};
|
|
3283
3275
|
}
|
|
3284
3276
|
async function emptyCompilationCache(action, context) {
|
|
3285
|
-
|
|
3286
|
-
|
|
3277
|
+
if (action.level === 3) {
|
|
3278
|
+
const floor = levelFloors(context.budget, context.settings)[3];
|
|
3279
|
+
if (!measureDisk().some((disk) => disk.freeMb < floor)) return kept("free disk is back above the level 3 floor, and this cache can only be emptied whole");
|
|
3280
|
+
}
|
|
3287
3281
|
const dir = sharedCompilationCache();
|
|
3288
3282
|
const blocked = cacheBlocked({
|
|
3289
3283
|
name: "Swift compilation cache",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as ownership_claim_exports, T as process_identity_exports, _ as declareSpawnsOn, t as getExecutor, x as stopDeclaringSpawnsOn } from "./exec-
|
|
2
|
-
import { M as withDirLock$1, N as withDirLockAsync$1, c as withWorkspaceStateLock, d as writeWorkspaceState, k as workspaceLogsDir$1, l as withWorkspaceStateLockAsync, n as clearWorkspaceStateKeys, r as readWorkspaceState$1 } from "./workspace-state-
|
|
3
|
-
import { a as formatElapsed, i as formatDuration, m as shortHash } from "./command-output-
|
|
4
|
-
import { d as getConfigDir, ft as deviceSlotKey, mt as parseDeviceSlotKey, vt as validateDeviceSlot } from "./config-
|
|
5
|
-
import { n as runOperationFileQuiet } from "./operation-exec-
|
|
6
|
-
import { T as resolveBuild } from "./build-cache-
|
|
1
|
+
import { D as ownership_claim_exports, T as process_identity_exports, _ as declareSpawnsOn, t as getExecutor, x as stopDeclaringSpawnsOn } from "./exec-L37dbiIb.mjs";
|
|
2
|
+
import { M as withDirLock$1, N as withDirLockAsync$1, c as withWorkspaceStateLock, d as writeWorkspaceState, k as workspaceLogsDir$1, l as withWorkspaceStateLockAsync, n as clearWorkspaceStateKeys, r as readWorkspaceState$1 } from "./workspace-state-CHEN_xzy.mjs";
|
|
3
|
+
import { a as formatElapsed, i as formatDuration, m as shortHash } from "./command-output-DsjhOzJ3.mjs";
|
|
4
|
+
import { d as getConfigDir, ft as deviceSlotKey, mt as parseDeviceSlotKey, vt as validateDeviceSlot } from "./config-CNmN-ndb.mjs";
|
|
5
|
+
import { n as runOperationFileQuiet } from "./operation-exec-DNynwpqO.mjs";
|
|
6
|
+
import { T as resolveBuild } from "./build-cache-CJ65Efv7.mjs";
|
|
7
7
|
import { randomBytes } from "node:crypto";
|
|
8
8
|
import { closeSync, fstatSync, mkdirSync, openSync, readFileSync, readSync, readdirSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
9
9
|
import { homedir } from "node:os";
|
package/dist/{agent-device-usage-output-pbhaW7_k.mjs → agent-device-usage-output-CuROXefb.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as process_identity_exports } from "./exec-
|
|
2
|
-
import { o as formatLongDuration } from "./command-output-
|
|
3
|
-
import { it as formatBytes } from "./config-
|
|
4
|
-
import {
|
|
5
|
-
import { c as parseAgentDeviceRecord, o as envDir, u as processMatches } from "./activity-
|
|
1
|
+
import { T as process_identity_exports } from "./exec-L37dbiIb.mjs";
|
|
2
|
+
import { o as formatLongDuration } from "./command-output-DsjhOzJ3.mjs";
|
|
3
|
+
import { it as formatBytes } from "./config-CNmN-ndb.mjs";
|
|
4
|
+
import { St as writeUsageCache, bt as canonical, u as listWorkspaceDirs, xt as measureDu } from "./workspaces-BgAYIccE.mjs";
|
|
5
|
+
import { c as parseAgentDeviceRecord, o as envDir, u as processMatches } from "./activity-CANftndU.mjs";
|
|
6
6
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
7
7
|
import { homedir } from "node:os";
|
|
8
8
|
import { isAbsolute, join, relative, sep } from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as ownership_claim_exports, T as process_identity_exports, _ as declareSpawnsOn, f as WorkspaceProcessCleanupError, l as cancellableSleep, t as getExecutor, x as stopDeclaringSpawnsOn } from "./exec-
|
|
2
|
-
import { M as withDirLock$1, N as withDirLockAsync$1 } from "./workspace-state-
|
|
3
|
-
import { A as withConfigLockAsync$1, _t as removeSlotDevice, c as ensureConfig, d as getConfigDir, f as getConfigPath$1, gt as projectDeviceSlots, k as withConfigLock$1, pt as deviceSlotPlatforms, ut as assignSlotDevice, v as loadConfig$1, w as saveConfig } from "./config-
|
|
4
|
-
import { n as runOperationFileQuiet, t as runOperationFile } from "./operation-exec-
|
|
5
|
-
import { c as androidDataPartitionSizeBytes } from "./settings-
|
|
6
|
-
import { i as stimDesktopInstalledAsync, n as settingDefault, t as STIM_DESKTOP_OPEN_OPTIONS } from "./stim-desktop-
|
|
7
|
-
import { c as pidExists, p as signalProcessTreeAsync } from "./metro-
|
|
1
|
+
import { D as ownership_claim_exports, T as process_identity_exports, _ as declareSpawnsOn, f as WorkspaceProcessCleanupError, l as cancellableSleep, t as getExecutor, x as stopDeclaringSpawnsOn } from "./exec-L37dbiIb.mjs";
|
|
2
|
+
import { M as withDirLock$1, N as withDirLockAsync$1 } from "./workspace-state-CHEN_xzy.mjs";
|
|
3
|
+
import { A as withConfigLockAsync$1, _t as removeSlotDevice, c as ensureConfig, d as getConfigDir, f as getConfigPath$1, gt as projectDeviceSlots, k as withConfigLock$1, pt as deviceSlotPlatforms, ut as assignSlotDevice, v as loadConfig$1, w as saveConfig } from "./config-CNmN-ndb.mjs";
|
|
4
|
+
import { n as runOperationFileQuiet, t as runOperationFile } from "./operation-exec-DNynwpqO.mjs";
|
|
5
|
+
import { c as androidDataPartitionSizeBytes } from "./settings-Cz8kQJzr.mjs";
|
|
6
|
+
import { i as stimDesktopInstalledAsync, n as settingDefault, t as STIM_DESKTOP_OPEN_OPTIONS } from "./stim-desktop-DWGAfaud.mjs";
|
|
7
|
+
import { c as pidExists, p as signalProcessTreeAsync } from "./metro-Cj6W4qOO.mjs";
|
|
8
8
|
import { renameSync, rmSync, writeFileSync } from "node:fs";
|
|
9
9
|
import { isDeepStrictEqual } from "node:util";
|
|
10
10
|
import { join } from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as formatDuration, l as phaseLine, m as shortHash } from "./command-output-
|
|
2
|
-
import { E as resolveVariant, T as resolveSystemImage, _ as findAapt, b as noDeviceDiagnostic, d as androidVariantSetting, f as apkDevClientFacts, g as dumpApkManifest, h as displayPath, i as NO_FINGERPRINT, p as apkPackage, r as NO_DEVICE, s as androidDevClientScheme, u as androidSystemImageSetting, x as parseXmltree, y as isReleaseVariant } from "./support-
|
|
3
|
-
import { r as lastBuildRecord, t as androidFacts } from "./result-
|
|
4
|
-
import { i as runAndroidOperation, n as registerAndroid, r as runAndroid, t as androidCommand } from "./android-
|
|
5
|
-
import { a as collectorLogFile, o as killPreviousCollector, s as startCollector } from "./launch-
|
|
1
|
+
import { i as formatDuration, l as phaseLine, m as shortHash } from "./command-output-DsjhOzJ3.mjs";
|
|
2
|
+
import { E as resolveVariant, T as resolveSystemImage, _ as findAapt, b as noDeviceDiagnostic, d as androidVariantSetting, f as apkDevClientFacts, g as dumpApkManifest, h as displayPath, i as NO_FINGERPRINT, p as apkPackage, r as NO_DEVICE, s as androidDevClientScheme, u as androidSystemImageSetting, x as parseXmltree, y as isReleaseVariant } from "./support-DBKG3Yyb.mjs";
|
|
3
|
+
import { r as lastBuildRecord, t as androidFacts } from "./result-C-ISEJ5F.mjs";
|
|
4
|
+
import { i as runAndroidOperation, n as registerAndroid, r as runAndroid, t as androidCommand } from "./android-Z6Eev9rL.mjs";
|
|
5
|
+
import { a as collectorLogFile, o as killPreviousCollector, s as startCollector } from "./launch-B-pkNlqg.mjs";
|
|
6
6
|
export { NO_DEVICE, NO_FINGERPRINT, androidDevClientScheme, androidFacts, androidSystemImageSetting, androidVariantSetting, apkDevClientFacts, apkPackage, collectorLogFile, androidCommand as default, displayPath, dumpApkManifest, findAapt, formatDuration, isReleaseVariant, killPreviousCollector, lastBuildRecord, noDeviceDiagnostic, parseXmltree, phaseLine, registerAndroid, resolveSystemImage, resolveVariant, runAndroid, runAndroidOperation, shortHash, startCollector };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as getExecutor } from "./exec-
|
|
2
|
-
import { u as androidToolCwd } from "./android-
|
|
1
|
+
import { t as getExecutor } from "./exec-L37dbiIb.mjs";
|
|
2
|
+
import { u as androidToolCwd } from "./android-27_JgJ1T.mjs";
|
|
3
3
|
//#region src/collector/android.ts
|
|
4
4
|
const LEVEL_BY_LETTER = {
|
|
5
5
|
V: "debug",
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { D as ownership_claim_exports, t as getExecutor } from "./exec-
|
|
2
|
-
import { a as recordWorkspaceUseAsync, f as writeWorkspaceStateAsync, g as emulatorLogFile, k as workspaceLogsDir$1, r as readWorkspaceState$1 } from "./workspace-state-
|
|
3
|
-
import { _ as stepTimer, f as refuseNoProject, g as stepClock, i as formatDuration, l as phaseLine } from "./command-output-
|
|
4
|
-
import { A as withConfigLockAsync$1, O as upsertProject, dt as deviceSlotFileKey, ht as parseDeviceSlotOption, m as getProject, pt as deviceSlotPlatforms, u as getConcurrencyLimits, vt as validateDeviceSlot } from "./config-
|
|
5
|
-
import { B as publicUrlSetting, F as metroWarmupUrlSetting, J as resolveCacheProviderConfig, N as metroPortSetting, Q as resolveSettings, W as remoteEasFallbackSetting, Z as resolveProjectSettingsAsync, a as SETTING_SHAPE_REMEDY, dt as detectProviders, g as deviceReclaimIdleMinutesSetting, ot as tunnelModeSetting, z as projectSettingsContextAsync } from "./settings-
|
|
6
|
-
import { f as projectRegistry, i as findProjectRoot$1, l as projectShortcut, t as NO_PROJECT_REFUSAL, z as writeWorkspaceLaunchAsync } from "./project-
|
|
7
|
-
import { $ as probeEmulatorSerial, At as configuredAndroidEmulatorApp, E as emulatorProbeSession, M as isEmulatorToolAbsent, P as listAdbDevicesAsync, U as ownedAvdDirectory, Z as physicalDeviceModel, a as androidDeviceAbi, at as resolvePhysicalDevice, it as resolveOwnedAvdSerialAsync, ut as waitForBoot, v as avdStorageExists, z as listInstalledSystemImages } from "./android-
|
|
8
|
-
import { c as pidExists, d as resolveProjectMetro } from "./metro-
|
|
1
|
+
import { D as ownership_claim_exports, t as getExecutor } from "./exec-L37dbiIb.mjs";
|
|
2
|
+
import { a as recordWorkspaceUseAsync, f as writeWorkspaceStateAsync, g as emulatorLogFile, k as workspaceLogsDir$1, r as readWorkspaceState$1 } from "./workspace-state-CHEN_xzy.mjs";
|
|
3
|
+
import { _ as stepTimer, f as refuseNoProject, g as stepClock, i as formatDuration, l as phaseLine } from "./command-output-DsjhOzJ3.mjs";
|
|
4
|
+
import { A as withConfigLockAsync$1, O as upsertProject, dt as deviceSlotFileKey, ht as parseDeviceSlotOption, m as getProject, pt as deviceSlotPlatforms, u as getConcurrencyLimits, vt as validateDeviceSlot } from "./config-CNmN-ndb.mjs";
|
|
5
|
+
import { B as publicUrlSetting, F as metroWarmupUrlSetting, J as resolveCacheProviderConfig, N as metroPortSetting, Q as resolveSettings, W as remoteEasFallbackSetting, Z as resolveProjectSettingsAsync, a as SETTING_SHAPE_REMEDY, dt as detectProviders, g as deviceReclaimIdleMinutesSetting, ot as tunnelModeSetting, z as projectSettingsContextAsync } from "./settings-Cz8kQJzr.mjs";
|
|
6
|
+
import { f as projectRegistry, i as findProjectRoot$1, l as projectShortcut, t as NO_PROJECT_REFUSAL, z as writeWorkspaceLaunchAsync } from "./project-DIo71tGq.mjs";
|
|
7
|
+
import { $ as probeEmulatorSerial, At as configuredAndroidEmulatorApp, E as emulatorProbeSession, M as isEmulatorToolAbsent, P as listAdbDevicesAsync, U as ownedAvdDirectory, Z as physicalDeviceModel, a as androidDeviceAbi, at as resolvePhysicalDevice, it as resolveOwnedAvdSerialAsync, ut as waitForBoot, v as avdStorageExists, z as listInstalledSystemImages } from "./android-27_JgJ1T.mjs";
|
|
8
|
+
import { c as pidExists, d as resolveProjectMetro } from "./metro-Cj6W4qOO.mjs";
|
|
9
9
|
import { i as createNdjsonWriter } from "./ndjson-CrjIsGzw.mjs";
|
|
10
|
-
import { $t as
|
|
11
|
-
import { $ as
|
|
12
|
-
import {
|
|
13
|
-
import { F as waitForBuild, M as acquireBuildLock, P as releaseBuildLock } from "./activity-
|
|
14
|
-
import { D as storedAppId } from "./build-cache-
|
|
15
|
-
import { C as setRemoteLogSink } from "./client-
|
|
16
|
-
import { J as releaseLeaseOnAbort, L as resolveBuildPlacement, N as parseBuildMachineOption, U as acquireRunLease, W as leaseExpiryText, X as waitFlagConflict, Y as runLease } from "./support-
|
|
17
|
-
import { i as hostedMetroSettings } from "./metro-request-
|
|
18
|
-
import { a as writeHostedAndroidAsync, i as writeDevicePlacementAsync, t as readHostedAndroid } from "./ios-state-
|
|
19
|
-
import { n as prepareHostedAndroid, t as placeHostedAndroid } from "./hosted-android-
|
|
20
|
-
import { n as verifyCollectorOwnership } from "./ownership-
|
|
21
|
-
import { i as restoreLightenedDependencies, n as printLightenedFailure } from "./lightened-
|
|
22
|
-
import { c as startDevServer } from "./start-
|
|
23
|
-
import { r as ensureSystemImage, t as androidImageInstallPolicy } from "./android-image-
|
|
24
|
-
import { a as resolveEasDevelopmentBuild, r as isEasBuildFailure } from "./eas-build-
|
|
25
|
-
import { t as followHostedLaunchLogs } from "./hosted-logs-sync-
|
|
26
|
-
import {
|
|
27
|
-
import { i as launchOutcomeRecord, n as ensureWorkspaceStorageSafely, r as isPhysicalDeviceRequest, t as ensureDevServer } from "./native-runtime-
|
|
28
|
-
import { t as lookupRecordedBuild } from "./recorded-build-
|
|
29
|
-
import { S as pooledAndroidDevice, a as PLATFORM, b as noDeviceDiagnostic, g as dumpApkManifest, h as displayPath, o as androidBuildOptions, p as apkPackage, r as NO_DEVICE, s as androidDevClientScheme } from "./support-
|
|
30
|
-
import { n as devicePlacementRecord } from "./placement-log-
|
|
31
|
-
import { n as acquireAndroidArtifactOrRecorded } from "./artifact-
|
|
32
|
-
import { a as persistLastBuild, c as androidDeviceSelectorRefusal, i as logPostBuildFailure, n as finishAndroidUpload, o as persistThrownBuild, s as reportAndroidResult, u as resolveAndroidRunPlan } from "./result-
|
|
33
|
-
import { n as devicePlacementLine, t as automaticDevicePlacement } from "./auto-placement-
|
|
34
|
-
import { i as verifyAndroidMetroRun, r as finishAndroidRun } from "./launch-
|
|
35
|
-
import { t as checkEasFallback } from "./eas-fallback-
|
|
36
|
-
import { i as warmMetro, n as ensureBooted, r as ensureOwnedDevice, t as didSetUpDevice } from "./device-
|
|
37
|
-
import { a as AvdBootError, o as AvdRecoveryError } from "./device-android-
|
|
38
|
-
import { t as selectFromPool } from "./device-pool-
|
|
10
|
+
import { $t as ensureMetroReachable, Gn as exitAfterFlush, Ln as launchAndroidApp, Nn as installAndroidApp, Rn as launchAndroidReleaseApp, S as CCACHE_NOT_RUN, Sn as DEFAULT_METRO_PORT, Xt as binOnPath, Zn as checkEasAuth, _n as verifyAndroidReleaseLaunch, ar as resolveRemote, en as ensureRemoteBootOwned, in as resolveRemoteContext, ir as resolveEasCliBin, k as budgetGate, mr as ownedSessionName, n as DeviceAdmissionRefusal, nn as remoteAndroidDeps, or as uploadRemote, qn as runProcessOperation, r as checkDeviceCapacity, vn as verifyLaunch, xn as ADB_INSTALL_TIMEOUT_MS } from "./device-capacity-D_IlxZRL.mjs";
|
|
11
|
+
import { $ as startBuildProgress, Ct as acquireBuildSlot, Et as releaseBuildSlot, Q as runFailureRecord, U as NO_BUILD_PROGRESS, at as readRunEstimates, et as tapBuildLog, it as createRunRecorder, lt as recordRunStats, st as recordCapacityRefusal, tt as thrownRunFailureRecord, ut as statsProjectKey$1 } from "./workspaces-BgAYIccE.mjs";
|
|
12
|
+
import { ht as withNativeBuildRun, mt as runCancellationSignal, ot as cancelledFailure, pt as runCancellation } from "./toolchain-CZvtCZ-m.mjs";
|
|
13
|
+
import { F as waitForBuild, M as acquireBuildLock, P as releaseBuildLock } from "./activity-CANftndU.mjs";
|
|
14
|
+
import { D as storedAppId } from "./build-cache-CJ65Efv7.mjs";
|
|
15
|
+
import { C as setRemoteLogSink } from "./client-qwmHFSga.mjs";
|
|
16
|
+
import { J as releaseLeaseOnAbort, L as resolveBuildPlacement, N as parseBuildMachineOption, U as acquireRunLease, W as leaseExpiryText, X as waitFlagConflict, Y as runLease } from "./support-BeVRaMWT.mjs";
|
|
17
|
+
import { i as hostedMetroSettings } from "./metro-request-BWCl3Zco.mjs";
|
|
18
|
+
import { a as writeHostedAndroidAsync, i as writeDevicePlacementAsync, t as readHostedAndroid } from "./ios-state-tzD0s7pt.mjs";
|
|
19
|
+
import { n as prepareHostedAndroid, t as placeHostedAndroid } from "./hosted-android-gwLspaz6.mjs";
|
|
20
|
+
import { n as verifyCollectorOwnership } from "./ownership-BLgOimfp.mjs";
|
|
21
|
+
import { i as restoreLightenedDependencies, n as printLightenedFailure } from "./lightened-KHWHmzGs.mjs";
|
|
22
|
+
import { c as startDevServer } from "./start-DI0ofPO-.mjs";
|
|
23
|
+
import { r as ensureSystemImage, t as androidImageInstallPolicy } from "./android-image-BcUD6bPi.mjs";
|
|
24
|
+
import { a as resolveEasDevelopmentBuild, r as isEasBuildFailure } from "./eas-build-4rg9WpEg.mjs";
|
|
25
|
+
import { t as followHostedLaunchLogs } from "./hosted-logs-sync-D3L1hDpM.mjs";
|
|
26
|
+
import { o as settleFingerprintCheck } from "./miss-reason-CeHvzeVm.mjs";
|
|
27
|
+
import { i as launchOutcomeRecord, n as ensureWorkspaceStorageSafely, r as isPhysicalDeviceRequest, t as ensureDevServer } from "./native-runtime-BfvvAJLd.mjs";
|
|
28
|
+
import { t as lookupRecordedBuild } from "./recorded-build-B4prJjSD.mjs";
|
|
29
|
+
import { S as pooledAndroidDevice, a as PLATFORM, b as noDeviceDiagnostic, g as dumpApkManifest, h as displayPath, o as androidBuildOptions, p as apkPackage, r as NO_DEVICE, s as androidDevClientScheme } from "./support-DBKG3Yyb.mjs";
|
|
30
|
+
import { n as devicePlacementRecord } from "./placement-log-CM0DSELs.mjs";
|
|
31
|
+
import { n as acquireAndroidArtifactOrRecorded } from "./artifact-Dc1GsK7o.mjs";
|
|
32
|
+
import { a as persistLastBuild, c as androidDeviceSelectorRefusal, i as logPostBuildFailure, n as finishAndroidUpload, o as persistThrownBuild, s as reportAndroidResult, u as resolveAndroidRunPlan } from "./result-C-ISEJ5F.mjs";
|
|
33
|
+
import { n as devicePlacementLine, t as automaticDevicePlacement } from "./auto-placement-RNh4kx2T.mjs";
|
|
34
|
+
import { i as verifyAndroidMetroRun, r as finishAndroidRun } from "./launch-B-pkNlqg.mjs";
|
|
35
|
+
import { t as checkEasFallback } from "./eas-fallback-UGo0SG7T.mjs";
|
|
36
|
+
import { i as warmMetro, n as ensureBooted, r as ensureOwnedDevice, t as didSetUpDevice } from "./device-yfuJ-v4s.mjs";
|
|
37
|
+
import { a as AvdBootError, o as AvdRecoveryError } from "./device-android-CSlBXuh_.mjs";
|
|
38
|
+
import { t as selectFromPool } from "./device-pool-BEaTdtss.mjs";
|
|
39
39
|
import { t as unsupportedPlan } from "./project-plan-BPwbLwQu.mjs";
|
|
40
|
-
import { a as refusePlan, i as printPlan, n as planFlagRefusal } from "./build-plan-
|
|
40
|
+
import { a as refusePlan, i as printPlan, n as planFlagRefusal } from "./build-plan-DWajg5l_.mjs";
|
|
41
41
|
import { join } from "node:path";
|
|
42
42
|
import { workspaceId } from "@stim-cli/core";
|
|
43
43
|
import { hostedAndroidStatus, parseMachine } from "@stim-cli/core/state";
|
|
@@ -430,6 +430,7 @@ function runAndroidOperation(context, root, opts = {}) {
|
|
|
430
430
|
slot: opts.slot,
|
|
431
431
|
easProfile: opts.easProfile,
|
|
432
432
|
recordedBuild: opts.recordedBuild,
|
|
433
|
+
cleanAppState: opts.cleanAppState,
|
|
433
434
|
json: Boolean(opts.json),
|
|
434
435
|
metroCheck: opts.metroCheck !== false,
|
|
435
436
|
useBuildCache: opts.buildCache !== false,
|
|
@@ -447,7 +448,7 @@ function runAndroidOperation(context, root, opts = {}) {
|
|
|
447
448
|
}
|
|
448
449
|
}, { write: (line) => context.output("stderr", `${chalk.dim(phaseLine("lock", line))}\n`) });
|
|
449
450
|
}
|
|
450
|
-
function resolveRunAndroidOptions({ context, root, json = false, remoteDevice: commandRemoteBackend = null, resolveSettingsFor = resolveSettings, resolveRemoteDeviceContext = resolveRemoteContext, remoteDeviceDeps: makeRemoteDeviceDeps = remoteAndroidDeps, resolveEasBin = resolveEasCliBin, ensureMetroReachable: ensureRemoteMetro = ensureMetroReachable, ensureRemoteBootOwned: ensureRemoteOwned = ensureRemoteBootOwned, detectRemoteProviders = detectProviders, metroCheck = true, useBuildCache = true, easProfile, recordedBuild, resolveEasDevelopmentBuild: resolveEasBuild = resolveEasDevelopmentBuild, variant: variantFlag = null, systemImage: systemImageFlag = null, deviceProfile: deviceProfileFlag, device: deviceFlag = null, wait: waitFlag = void 0, waitConflict = false, acquireLease = acquireRunLease, makeRunLease = runLease, selectPool = selectFromPool, onLeaseSignal = releaseLeaseOnAbort, listDevices = listAdbDevicesAsync, deviceModel = physicalDeviceModel, deviceAbi = androidDeviceAbi, isEmulatorDevice = probeEmulatorSerial, readApkPackage = async (apkPath) => apkPackage(await dumpApkManifest(apkPath, { context })), getLimits = getConcurrencyLimits, checkCapacity = checkDeviceCapacity, acquireSlot = acquireBuildSlot, releaseSlot = releaseBuildSlot, ensureDevice = ensureOwnedDevice, listSystemImages = listInstalledSystemImages, listDeviceProfiles, ensureDeviceBooted = ensureBooted, resolveAvdSerial = resolveOwnedAvdSerialAsync, waitForDeviceBoot = waitForBoot, dataFreeBytes, trimCaches, wipeDevice, resolveMetro = resolveProjectMetro, warmMetro: prewarmMetro = warmMetro, startServer = startDevServer, readState = readWorkspaceState$1, pidAlive = pidExists, verifyCollector = verifyCollectorOwnership, verifyLaunched = verifyLaunch, ensureStorage = ensureWorkspaceStorageSafely, acquireLock = acquireBuildLock, releaseLock = releaseBuildLock, waitForBuild: waitForBuild$1 = waitForBuild, easAuth = checkEasAuth, resolveRemoteBuild = resolveRemote, uploadRemoteBuild = uploadRemote, resolveCacheProvider = resolveCacheProviderConfig, loadCacheProviderModule = loadCacheProvider, storedAppId: storedAppId$1 = storedAppId, install = installAndroidApp, launch = launchAndroidApp, launchRelease = launchAndroidReleaseApp, verifyReleaseLaunched = verifyAndroidReleaseLaunch, resolveDevClientScheme = (projectRoot, apkPath, options) => androidDevClientScheme(projectRoot, apkPath, {
|
|
451
|
+
function resolveRunAndroidOptions({ context, root, json = false, remoteDevice: commandRemoteBackend = null, resolveSettingsFor = resolveSettings, resolveRemoteDeviceContext = resolveRemoteContext, remoteDeviceDeps: makeRemoteDeviceDeps = remoteAndroidDeps, resolveEasBin = resolveEasCliBin, ensureMetroReachable: ensureRemoteMetro = ensureMetroReachable, ensureRemoteBootOwned: ensureRemoteOwned = ensureRemoteBootOwned, detectRemoteProviders = detectProviders, metroCheck = true, useBuildCache = true, easProfile, recordedBuild, cleanAppState = false, resolveEasDevelopmentBuild: resolveEasBuild = resolveEasDevelopmentBuild, variant: variantFlag = null, systemImage: systemImageFlag = null, deviceProfile: deviceProfileFlag, device: deviceFlag = null, wait: waitFlag = void 0, waitConflict = false, acquireLease = acquireRunLease, makeRunLease = runLease, selectPool = selectFromPool, onLeaseSignal = releaseLeaseOnAbort, listDevices = listAdbDevicesAsync, deviceModel = physicalDeviceModel, deviceAbi = androidDeviceAbi, isEmulatorDevice = probeEmulatorSerial, readApkPackage = async (apkPath) => apkPackage(await dumpApkManifest(apkPath, { context })), getLimits = getConcurrencyLimits, checkCapacity = checkDeviceCapacity, acquireSlot = acquireBuildSlot, releaseSlot = releaseBuildSlot, ensureDevice = ensureOwnedDevice, listSystemImages = listInstalledSystemImages, listDeviceProfiles, ensureDeviceBooted = ensureBooted, resolveAvdSerial = resolveOwnedAvdSerialAsync, waitForDeviceBoot = waitForBoot, dataFreeBytes, trimCaches, wipeDevice, resolveMetro = resolveProjectMetro, warmMetro: prewarmMetro = warmMetro, startServer = startDevServer, readState = readWorkspaceState$1, pidAlive = pidExists, verifyCollector = verifyCollectorOwnership, verifyLaunched = verifyLaunch, ensureStorage = ensureWorkspaceStorageSafely, acquireLock = acquireBuildLock, releaseLock = releaseBuildLock, waitForBuild: waitForBuild$1 = waitForBuild, easAuth = checkEasAuth, resolveRemoteBuild = resolveRemote, uploadRemoteBuild = uploadRemote, resolveCacheProvider = resolveCacheProviderConfig, loadCacheProviderModule = loadCacheProvider, storedAppId: storedAppId$1 = storedAppId, install = installAndroidApp, launch = launchAndroidApp, launchRelease = launchAndroidReleaseApp, verifyReleaseLaunched = verifyAndroidReleaseLaunch, resolveDevClientScheme = (projectRoot, apkPath, options) => androidDevClientScheme(projectRoot, apkPath, {
|
|
451
452
|
...options,
|
|
452
453
|
context
|
|
453
454
|
}), spawn = (cmd, args, opts) => getExecutor().spawn(cmd, args, opts), kill = (pid, signal) => process.kill(pid, signal), createWriter = createNdjsonWriter, writeLaunch = writeWorkspaceLaunchAsync, writeState = writeWorkspaceStateAsync, recordBuild, recordStats = recordRunStats, recordCapacityRefusal: recordRefusal, readEstimates = readRunEstimates, now = Date.now, out = (line) => context ? context.output("stderr", `${line}\n`) : console.error(line), emit = (line) => context ? context.output("stdout", `${line}\n`) : console.log(line) } = {}) {
|
|
@@ -466,6 +467,7 @@ function resolveRunAndroidOptions({ context, root, json = false, remoteDevice: c
|
|
|
466
467
|
useBuildCache,
|
|
467
468
|
easProfile,
|
|
468
469
|
recordedBuild,
|
|
470
|
+
cleanAppState,
|
|
469
471
|
resolveEasBuild,
|
|
470
472
|
variantFlag,
|
|
471
473
|
systemImageFlag,
|
|
@@ -611,7 +613,7 @@ async function localRunRefusal(budgetRefusal, target, keepsAvd, ensureImage, rec
|
|
|
611
613
|
}
|
|
612
614
|
async function runAndroid(options = {}) {
|
|
613
615
|
const { context } = options;
|
|
614
|
-
let { root, json, commandRemoteBackend, resolveSettingsFor, resolveRemoteDeviceContext, makeRemoteDeviceDeps, resolveEasBin, ensureRemoteMetro, ensureRemoteOwned, detectRemoteProviders, metroCheck, useBuildCache: requestedBuildCache, easProfile, recordedBuild: recordedBuildRequested, resolveEasBuild, variantFlag, systemImageFlag, deviceProfileFlag, deviceFlag, waitFlag, waitConflict, acquireLease, makeRunLease, selectPool, onLeaseSignal, listDevices, deviceModel, deviceAbi, isEmulatorDevice, readApkPackage, getLimits, checkCapacity, acquireSlot, releaseSlot, ensureDevice, listSystemImages, listDeviceProfiles, ensureDeviceBooted, resolveAvdSerial, waitForDeviceBoot, dataFreeBytes, trimCaches, wipeDevice, resolveMetro, prewarmMetro, startServer, readState, pidAlive, verifyCollector, verifyLaunched, ensureStorage, acquireLock, releaseLock, waitForBuild, easAuth, resolveRemoteBuild, uploadRemoteBuild, resolveCacheProvider, loadCacheProviderModule, storedAppId, install, launch, launchRelease, verifyReleaseLaunched, resolveDevClientScheme, spawn, kill, createWriter, writeLaunch, writeState, recordBuild, recordStats, recordCapacityRefusal: recordRefusal = recordCapacityRefusal, readEstimates, now, out, emit } = androidSlotOptions(options);
|
|
616
|
+
let { root, json, commandRemoteBackend, resolveSettingsFor, resolveRemoteDeviceContext, makeRemoteDeviceDeps, resolveEasBin, ensureRemoteMetro, ensureRemoteOwned, detectRemoteProviders, metroCheck, useBuildCache: requestedBuildCache, easProfile, recordedBuild: recordedBuildRequested, cleanAppState, resolveEasBuild, variantFlag, systemImageFlag, deviceProfileFlag, deviceFlag, waitFlag, waitConflict, acquireLease, makeRunLease, selectPool, onLeaseSignal, listDevices, deviceModel, deviceAbi, isEmulatorDevice, readApkPackage, getLimits, checkCapacity, acquireSlot, releaseSlot, ensureDevice, listSystemImages, listDeviceProfiles, ensureDeviceBooted, resolveAvdSerial, waitForDeviceBoot, dataFreeBytes, trimCaches, wipeDevice, resolveMetro, prewarmMetro, startServer, readState, pidAlive, verifyCollector, verifyLaunched, ensureStorage, acquireLock, releaseLock, waitForBuild, easAuth, resolveRemoteBuild, uploadRemoteBuild, resolveCacheProvider, loadCacheProviderModule, storedAppId, install, launch, launchRelease, verifyReleaseLaunched, resolveDevClientScheme, spawn, kill, createWriter, writeLaunch, writeState, recordBuild, recordStats, recordCapacityRefusal: recordRefusal = recordCapacityRefusal, readEstimates, now, out, emit } = androidSlotOptions(options);
|
|
615
617
|
const progress = options.progress ?? NO_BUILD_PROGRESS;
|
|
616
618
|
const slot = validateDeviceSlot(options.slot);
|
|
617
619
|
const started = now();
|
|
@@ -1285,7 +1287,10 @@ async function runAndroid(options = {}) {
|
|
|
1285
1287
|
metroCheck,
|
|
1286
1288
|
writer,
|
|
1287
1289
|
emit,
|
|
1288
|
-
recordRun
|
|
1290
|
+
recordRun: (outcome) => recordRun({
|
|
1291
|
+
...outcome,
|
|
1292
|
+
remoteDevice: true
|
|
1293
|
+
}),
|
|
1289
1294
|
reclaimed,
|
|
1290
1295
|
devServer,
|
|
1291
1296
|
recordBuild
|
|
@@ -1371,6 +1376,7 @@ async function runAndroid(options = {}) {
|
|
|
1371
1376
|
device,
|
|
1372
1377
|
physical,
|
|
1373
1378
|
remoteDevice,
|
|
1379
|
+
cleanAppState,
|
|
1374
1380
|
bootPromise,
|
|
1375
1381
|
resolveAvdSerial,
|
|
1376
1382
|
waitForDeviceBoot,
|
|
@@ -1414,7 +1420,10 @@ async function runAndroid(options = {}) {
|
|
|
1414
1420
|
now,
|
|
1415
1421
|
out,
|
|
1416
1422
|
emit,
|
|
1417
|
-
recordRun
|
|
1423
|
+
recordRun: (outcome) => recordRun({
|
|
1424
|
+
...outcome,
|
|
1425
|
+
remoteDevice: Boolean(remoteDevice)
|
|
1426
|
+
}),
|
|
1418
1427
|
reclaimed,
|
|
1419
1428
|
devServer,
|
|
1420
1429
|
enterPhase: progress.step,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { M as withDirLock$1, _ as ensureWorkspaceStorage } from "./workspace-state-
|
|
2
|
-
import { d as getConfigDir } from "./config-
|
|
3
|
-
import { m as defaultAndroidLayout } from "./settings-
|
|
4
|
-
import { r as register } from "./cache-manifest-
|
|
1
|
+
import { M as withDirLock$1, _ as ensureWorkspaceStorage } from "./workspace-state-CHEN_xzy.mjs";
|
|
2
|
+
import { d as getConfigDir } from "./config-CNmN-ndb.mjs";
|
|
3
|
+
import { m as defaultAndroidLayout } from "./settings-Cz8kQJzr.mjs";
|
|
4
|
+
import { r as register } from "./cache-manifest-BO0TIcPV.mjs";
|
|
5
5
|
import { createHash, randomUUID } from "node:crypto";
|
|
6
6
|
import { accessSync, constants, existsSync, mkdirSync, readFileSync, realpathSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
7
7
|
import { join } from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as getExecutor } from "./exec-
|
|
2
|
+
import { t as getExecutor } from "./exec-L37dbiIb.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { join } from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as ownership_claim_exports, T as process_identity_exports, l as cancellableSleep, t as getExecutor } from "./exec-
|
|
2
|
-
import { it as settingValueAt } from "./settings-
|
|
3
|
-
import { Q as pickDefaultSystemImage, d as androidToolPath, j as hostSystemImageArch, kt as recordInstalledSystemImageAsync, o as androidHome, z as listInstalledSystemImages } from "./android-
|
|
1
|
+
import { D as ownership_claim_exports, T as process_identity_exports, l as cancellableSleep, t as getExecutor } from "./exec-L37dbiIb.mjs";
|
|
2
|
+
import { it as settingValueAt } from "./settings-Cz8kQJzr.mjs";
|
|
3
|
+
import { Q as pickDefaultSystemImage, d as androidToolPath, j as hostSystemImageArch, kt as recordInstalledSystemImageAsync, o as androidHome, z as listInstalledSystemImages } from "./android-27_JgJ1T.mjs";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
import { existsSync, readFileSync, realpathSync, statfsSync } from "node:fs";
|
|
6
6
|
import { isAbsolute, join } from "node:path";
|
package/dist/api.d.mts
CHANGED
|
@@ -50,7 +50,7 @@ type AndroidBuildOptions = Omit<Extract<PlatformBuildOptions, {
|
|
|
50
50
|
easProfile?: string;
|
|
51
51
|
};
|
|
52
52
|
interface AndroidBuildFacts {
|
|
53
|
-
/** Owned copy, retained
|
|
53
|
+
/** Owned copy, retained until a build replaces its recorded build or the worktree is removed. */
|
|
54
54
|
apkPath: string;
|
|
55
55
|
androidPackage: string | null;
|
|
56
56
|
variant: string;
|
|
@@ -76,7 +76,7 @@ type MacosBuildOptions = Omit<Extract<PlatformBuildOptions, {
|
|
|
76
76
|
}>, "platform">;
|
|
77
77
|
interface MacosBuildFacts {
|
|
78
78
|
product: string;
|
|
79
|
-
/** Owned copy, retained with this workspace until
|
|
79
|
+
/** Owned copy, retained with this workspace until the next macOS build or worktree removal. */
|
|
80
80
|
bundle: string;
|
|
81
81
|
bundleId: string;
|
|
82
82
|
executable: string;
|
|
@@ -97,7 +97,7 @@ type IosBuildOptions = Omit<Extract<PlatformBuildOptions, {
|
|
|
97
97
|
easProfile?: string;
|
|
98
98
|
};
|
|
99
99
|
interface IosBuildFacts {
|
|
100
|
-
/** Owned simulator app, retained
|
|
100
|
+
/** Owned simulator app, retained until a build replaces its recorded build or the worktree is removed. */
|
|
101
101
|
appPath: string;
|
|
102
102
|
bundleId: string | null;
|
|
103
103
|
configuration: string;
|
|
@@ -566,7 +566,7 @@ interface GcJsonSections {
|
|
|
566
566
|
}[];
|
|
567
567
|
orphanedWorkspaces: {
|
|
568
568
|
dir: string;
|
|
569
|
-
projectRoot: string;
|
|
569
|
+
projectRoot: string | null;
|
|
570
570
|
bytes: number | null;
|
|
571
571
|
}[];
|
|
572
572
|
linkedWorktrees: {
|
|
@@ -642,7 +642,7 @@ interface GcJsonSections {
|
|
|
642
642
|
workspaceRoot: string;
|
|
643
643
|
}[];
|
|
644
644
|
staleStatusCaches: {
|
|
645
|
-
kind: "disk-usage" | "pull-request";
|
|
645
|
+
kind: "disk-usage" | "pull-request" | "git-merge";
|
|
646
646
|
path: string;
|
|
647
647
|
file: string;
|
|
648
648
|
bytes: number;
|
|
@@ -870,6 +870,13 @@ type StimRunOptions = PlatformRunOptions & {
|
|
|
870
870
|
* STIM_NO_RECORDED_BUILD when there is none. Not part of the private Desktop transport.
|
|
871
871
|
*/
|
|
872
872
|
recordedBuild?: boolean;
|
|
873
|
+
/**
|
|
874
|
+
* iOS and Android: start the app from clean state on the workspace's owned local simulator or emulator. Before install,
|
|
875
|
+
* uninstall every other user app and clear the kept app's data: on iOS its defaults and data container, then the
|
|
876
|
+
* simulator keychain; on Android `pm clear`. Applies whether or not the install is skipped. `stim-ci run` always sets
|
|
877
|
+
* it. A run placed on another machine or on EAS is not cleaned. Refused with a physical device.
|
|
878
|
+
*/
|
|
879
|
+
cleanAppState?: boolean;
|
|
873
880
|
signal?: AbortSignal;
|
|
874
881
|
};
|
|
875
882
|
type StimRunResult = {
|
package/dist/api.mjs
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { C as operationState, D as ownership_claim_exports, a as trackReportResource, d as throwIfCancelled, f as WorkspaceProcessCleanupError, i as runReport, u as cancelledError } from "./exec-
|
|
2
|
-
import { E as workspaceDir, a as recordWorkspaceUseAsync, k as workspaceLogsDir$1, v as ensureWorkspaceStorageAsync } from "./workspace-state-
|
|
3
|
-
import { l as phaseLine } from "./command-output-
|
|
4
|
-
import { A as withConfigLockAsync$1, O as upsertProject, b as refuseRelativeStimPaths, m as getProject, vt as validateDeviceSlot } from "./config-
|
|
5
|
-
import { Vt as repoRootAsync, Z as resolveProjectSettingsAsync, _ as inertSettingWarning, a as SETTING_SHAPE_REMEDY, p as cacheProviderSettingError, rt as settingShapeErrors, st as unknownSettingKeys } from "./settings-
|
|
6
|
-
import { c as projectProblem, f as projectRegistry, i as findProjectRoot$1, r as findCommandWorkspaceAsync, t as NO_PROJECT_REFUSAL } from "./project-
|
|
7
|
-
import { n as macosDir } from "./state-
|
|
8
|
-
import { c as ensureHomeIdentity, s as workspaceShareURL } from "./stim-desktop-
|
|
1
|
+
import { C as operationState, D as ownership_claim_exports, a as trackReportResource, d as throwIfCancelled, f as WorkspaceProcessCleanupError, i as runReport, u as cancelledError } from "./exec-L37dbiIb.mjs";
|
|
2
|
+
import { E as workspaceDir, a as recordWorkspaceUseAsync, k as workspaceLogsDir$1, v as ensureWorkspaceStorageAsync } from "./workspace-state-CHEN_xzy.mjs";
|
|
3
|
+
import { l as phaseLine } from "./command-output-DsjhOzJ3.mjs";
|
|
4
|
+
import { A as withConfigLockAsync$1, O as upsertProject, b as refuseRelativeStimPaths, m as getProject, vt as validateDeviceSlot } from "./config-CNmN-ndb.mjs";
|
|
5
|
+
import { Vt as repoRootAsync, Z as resolveProjectSettingsAsync, _ as inertSettingWarning, a as SETTING_SHAPE_REMEDY, p as cacheProviderSettingError, rt as settingShapeErrors, st as unknownSettingKeys } from "./settings-Cz8kQJzr.mjs";
|
|
6
|
+
import { c as projectProblem, f as projectRegistry, i as findProjectRoot$1, r as findCommandWorkspaceAsync, t as NO_PROJECT_REFUSAL } from "./project-DIo71tGq.mjs";
|
|
7
|
+
import { n as macosDir } from "./state-45P8Kd6Z.mjs";
|
|
8
|
+
import { c as ensureHomeIdentity, s as workspaceShareURL } from "./stim-desktop-DWGAfaud.mjs";
|
|
9
9
|
import { i as createNdjsonWriter } from "./ndjson-CrjIsGzw.mjs";
|
|
10
|
-
import { $ as
|
|
11
|
-
import {
|
|
12
|
-
import { L as resolveBuildPlacement } from "./support-
|
|
13
|
-
import { c as stopWorkspaceNow } from "./stop-
|
|
14
|
-
import { r as runReload } from "./reload-
|
|
15
|
-
import { m as warmWorktreeTarget, p as removeWorktreeTarget } from "./worktree-
|
|
16
|
-
import { i as restoreLightenedDependencies } from "./lightened-
|
|
17
|
-
import { c as startDevServer } from "./start-
|
|
18
|
-
import { s as recordDoctorCheck } from "./doctor-watchman-
|
|
19
|
-
import { c as readSettingsPayload, s as readSettingsContext, t as SettingsRefusal } from "./settings-payload-
|
|
20
|
-
import { a as readDoctorReport } from "./doctor-
|
|
21
|
-
import { i as readGcReport, n as executeGc, o as withGcMaintenanceClaim } from "./gc-
|
|
22
|
-
import { r as readWorkspaceLogs, t as followWorkspaceLogs } from "./logs-
|
|
23
|
-
import { t as readProjectStats } from "./stats-report-
|
|
24
|
-
import { n as
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { t as
|
|
10
|
+
import { $ as startBuildProgress, 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 { L as resolveBuildPlacement } from "./support-BeVRaMWT.mjs";
|
|
13
|
+
import { c as stopWorkspaceNow } from "./stop-BPrTEOaz.mjs";
|
|
14
|
+
import { r as runReload } from "./reload-DTd9g1EG.mjs";
|
|
15
|
+
import { m as warmWorktreeTarget, p as removeWorktreeTarget } from "./worktree-kGPE9Pcw.mjs";
|
|
16
|
+
import { i as restoreLightenedDependencies } from "./lightened-KHWHmzGs.mjs";
|
|
17
|
+
import { c as startDevServer } from "./start-DI0ofPO-.mjs";
|
|
18
|
+
import { s as recordDoctorCheck } from "./doctor-watchman-B8e3s9ko.mjs";
|
|
19
|
+
import { c as readSettingsPayload, s as readSettingsContext, t as SettingsRefusal } from "./settings-payload-BOcxsZ6k.mjs";
|
|
20
|
+
import { a as readDoctorReport } from "./doctor-BQ1Kl44s.mjs";
|
|
21
|
+
import { i as readGcReport, n as executeGc, o as withGcMaintenanceClaim } from "./gc-3DHVCn-k.mjs";
|
|
22
|
+
import { r as readWorkspaceLogs, t as followWorkspaceLogs } from "./logs-HomiqPhV.mjs";
|
|
23
|
+
import { t as readProjectStats } from "./stats-report-Ci6TAfFm.mjs";
|
|
24
|
+
import { n as pruneArtifactCopies } from "./recorded-build-B4prJjSD.mjs";
|
|
25
|
+
import { n as buildAndroidOperation, t as buildIosOperation } from "./build-DkE5vjp1.mjs";
|
|
26
|
+
import { a as readAndroidBuildPlan, i as runAndroidOperation } from "./android-Z6Eev9rL.mjs";
|
|
27
|
+
import { i as readIosBuildPlan, r as runIosOperation } from "./ios-M7nRVb33.mjs";
|
|
28
|
+
import { a as buildMacosBundle, i as planMacos, n as runMacos } from "./macos-zMxSibx5.mjs";
|
|
29
|
+
import { t as runWeb } from "./web-BvAweypa.mjs";
|
|
30
|
+
import { t as mutateSetting } from "./settings-write-BuMPL1rd.mjs";
|
|
30
31
|
import { randomBytes } from "node:crypto";
|
|
31
32
|
import { mkdirSync, mkdtempSync, readFileSync, realpathSync, rmSync } from "node:fs";
|
|
32
33
|
import { stripVTControlCharacters } from "node:util";
|
|
@@ -153,6 +154,7 @@ async function buildMacosOperation(context, root, options) {
|
|
|
153
154
|
recursive: true,
|
|
154
155
|
force: true
|
|
155
156
|
});
|
|
157
|
+
if (succeeded && directory) await pruneArtifactCopies(root, "macos", directory, (line) => note(phaseLine("artifacts", line)));
|
|
156
158
|
writer.close();
|
|
157
159
|
progress.clear();
|
|
158
160
|
}
|
|
@@ -723,10 +725,11 @@ async function build(context, options) {
|
|
|
723
725
|
}
|
|
724
726
|
}
|
|
725
727
|
async function run(context, options) {
|
|
726
|
-
|
|
728
|
+
const simulatorOnly = options.recordedBuild ? "recordedBuild" : options.cleanAppState ? "cleanAppState" : null;
|
|
729
|
+
if (simulatorOnly && "device" in options && options.device !== void 0) throw new StimError({
|
|
727
730
|
code: "STIM_BAD_ARG",
|
|
728
|
-
message:
|
|
729
|
-
remedy:
|
|
731
|
+
message: `${simulatorOnly} applies to a simulator or emulator, not a physical device.`,
|
|
732
|
+
remedy: `Drop device, or run without ${simulatorOnly}.`
|
|
730
733
|
});
|
|
731
734
|
const root = context.projectRoot;
|
|
732
735
|
switch (options.platform) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { y as sharedBuildCache } from "./workspace-state-
|
|
2
|
-
import { O as findBuildTool } from "./android-
|
|
1
|
+
import { y as sharedBuildCache } from "./workspace-state-CHEN_xzy.mjs";
|
|
2
|
+
import { O as findBuildTool } from "./android-27_JgJ1T.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import { closeSync, fstatSync, openSync, readFileSync, readSync, realpathSync, renameSync, rmSync } from "node:fs";
|
|
5
5
|
import { basename, dirname, join } from "node:path";
|