stim 1.35.0 → 1.37.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-0E_iw7Rf.mjs → acquire-artifact-zBUbPuDP.mjs} +20 -4
- package/dist/{act-CyxFP8Vj.mjs → act-BGAFjY8f.mjs} +21 -21
- package/dist/{activity-BQpJpAjA.mjs → activity-CdpXXSq2.mjs} +6 -6
- package/dist/{agent-device-usage-output-BoOC3ZF9.mjs → agent-device-usage-output-D0582GHy.mjs} +5 -5
- package/dist/{android-YRb1UzSy.mjs → android-BBwLpxRh.mjs} +51 -40
- package/dist/{android-B2DSKg-A.mjs → android-BPBARZMR.mjs} +2 -2
- package/dist/{android-Iq0M2t2d.mjs → android-CGctfYpv.mjs} +7 -7
- package/dist/{android-CjcJE7uA.mjs → android-CaSsewbu.mjs} +5 -5
- package/dist/android-cas-compiler.mjs +1 -1
- package/dist/{android-cas-Dhcjkys1.mjs → android-cas-p8gna03x.mjs} +4 -4
- package/dist/{android-image-DFk26aY6.mjs → android-image-DY8KxK2m.mjs} +3 -3
- package/dist/{android-project-DhO6el8N.d.mts → android-project-v_1nej_x.d.mts} +3 -1
- package/dist/api.d.mts +30 -9
- package/dist/api.mjs +36 -28
- package/dist/{apk-signed-tail-CPpA-3vu.mjs → apk-signed-tail-BMv-KLcB.mjs} +2 -2
- package/dist/{artifact-2NIRz6SC.mjs → artifact-BrNZTZtA.mjs} +44 -15
- package/dist/{artifact-BG4h_WTC.mjs → artifact-BsimBWxG.mjs} +37 -15
- package/dist/{artifact-platform-DqCWUieN.mjs → artifact-platform-BaGL1i1X.mjs} +1 -1
- package/dist/{auto-placement-CBdWa87P.mjs → auto-placement-CFKNrWLU.mjs} +7 -7
- package/dist/{browser-web-CNlRugJv.mjs → browser-web-YFsgCP_a.mjs} +15 -15
- package/dist/{build-CNE3Wo5-.mjs → build-DIhuoozz.mjs} +77 -28
- package/dist/{build-cache-_fkewiwH.mjs → build-cache-Dt-dhCJF.mjs} +6 -6
- package/dist/{build-plan-BSgR9yKo.mjs → build-plan-CgnLDof9.mjs} +7 -7
- package/dist/{cache-manifest-8JX9S1QJ.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-DK24VzHi.mjs → cli-BGUrlSH3.mjs} +21 -20
- package/dist/cli.mjs +1 -1
- package/dist/{client-Dy0eJJtz.mjs → client-DU6dnGX1.mjs} +7 -7
- package/dist/collector-run.mjs +7 -7
- package/dist/{command-output-CGxrQ3Bd.mjs → command-output-ByEmIwur.mjs} +1 -1
- package/dist/{config-BW0fAtoK.mjs → config-CNmN-ndb.mjs} +61 -12
- package/dist/{dependencies-IVl2Ga2D.mjs → dependencies-BozoTBqa.mjs} +102 -64
- package/dist/{dependency-state-mL5g4H6K.mjs → dependency-state-BQeC4FVn.mjs} +2 -2
- package/dist/{detached-entry-tfrgGVWb.mjs → detached-entry-VqFeEE9W.mjs} +1 -1
- package/dist/{dev-client-DDApoVvd.mjs → dev-client-3SQzMRXZ.mjs} +2 -2
- package/dist/{device-p_cp8IzW.mjs → device-BIg1iExg.mjs} +11 -11
- package/dist/{device-mOFYiHiw.mjs → device-DGMvzoZZ.mjs} +13 -13
- package/dist/{device-android-C-biM49_.mjs → device-android-CBat355q.mjs} +9 -9
- package/dist/{device-capacity-C0PiTyRb.mjs → device-capacity-DWUOvY13.mjs} +19 -19
- package/dist/device-host-worker.mjs +16 -16
- package/dist/{device-pool-nsMvt2X2.mjs → device-pool-B8IqZKqm.mjs} +3 -3
- package/dist/{device-provision-BYYJuRKZ.mjs → device-provision-DWAoSKEw.mjs} +10 -10
- package/dist/{doctor-RosbBfTV.mjs → doctor-Bknt0121.mjs} +24 -24
- package/dist/{doctor-BptE4PaK.mjs → doctor-CPzwqcXY.mjs} +15 -15
- package/dist/{doctor-BBAb8NLe.mjs → doctor-CxgR5vPi.mjs} +1 -1
- package/dist/{doctor-fingerprint-DqWvIhMb.mjs → doctor-fingerprint-Bo4z8YNP.mjs} +1 -1
- package/dist/doctor-fingerprint.mjs +1 -1
- package/dist/{doctor-watchman-CKOnCINh.mjs → doctor-watchman-CPE4C8KV.mjs} +5 -5
- package/dist/{eas-build-BxJdzQnF.mjs → eas-build-CwOXKJwa.mjs} +4 -4
- package/dist/{eas-fallback-DU2WDF8r.mjs → eas-fallback-Cnb12a50.mjs} +6 -6
- package/dist/{eas-session-ledger-DCUfh6m7.mjs → eas-session-ledger-TE1miVz5.mjs} +6 -6
- package/dist/{error-diagnostics-D6wlK-yX.mjs → error-diagnostics-CXTT3bYC.mjs} +10 -10
- package/dist/{exec-CGuDzt40.mjs → exec-L37dbiIb.mjs} +7 -1
- package/dist/{gc-BUkonUfz.mjs → gc-0jdcnDHs.mjs} +19 -19
- package/dist/{gc-CvMEytXz.mjs → gc-1ZLq1djg.mjs} +2 -2
- package/dist/{guide-BWozWG7D.mjs → guide-COxIANZu.mjs} +179 -86
- package/dist/{hosted-android-y6K3DKQT.mjs → hosted-android-D8JbIzgC.mjs} +4 -4
- package/dist/{hosted-client-Bb89P6an.mjs → hosted-client-BLwuXEZS.mjs} +7 -7
- package/dist/{hosted-logs-DYPsnWMF.mjs → hosted-logs-BWEQNJx_.mjs} +7 -7
- package/dist/{hosted-logs-sync-DfUJ2GpF.mjs → hosted-logs-sync-uWSrH2mf.mjs} +5 -5
- package/dist/{hosted-macos-DsEzYVY_.mjs → hosted-macos-BnCYAv1y.mjs} +6 -6
- package/dist/{hosted-native-C9xQYYFb.mjs → hosted-native-OBT2sJxn.mjs} +8 -8
- package/dist/{ios-Qam0bT9n.mjs → ios-2Qr4_Zu2.mjs} +1 -1
- package/dist/{ios-BCKxjpRp.mjs → ios-Bjz7aPLy.mjs} +8 -8
- package/dist/{ios-BdZdNsAj.mjs → ios-BveW7qK1.mjs} +16 -6
- package/dist/{ios-FhMkDfNC.mjs → ios-CGyx4PA7.mjs} +44 -34
- package/dist/{ios-device-DMOnaH5n.mjs → ios-device-ByrDWSpC.mjs} +3 -3
- package/dist/{ios-device-DLdEDWJj.mjs → ios-device-ygijU78G.mjs} +1 -1
- package/dist/{ios-project-PXBDoaii.mjs → ios-project-XHg87vyQ.mjs} +7 -7
- package/dist/{ios-signing-CCFNjjWU.mjs → ios-signing-CRYQ1W42.mjs} +3 -3
- package/dist/{ios-state-CWsBysyN.mjs → ios-state-enWc5P6U.mjs} +1 -1
- package/dist/{js-swap-07ikLRJJ.mjs → js-swap-C6vl3vEd.mjs} +60 -13
- package/dist/{launch-CTq5gBim.mjs → launch-f3RnbFW5.mjs} +48 -28
- package/dist/{lightened-DikgC3-S.mjs → lightened-Cdfmo8MO.mjs} +5 -5
- package/dist/{logs-YDMfEohb.mjs → logs-DAjxBF3c.mjs} +6 -6
- package/dist/{logs-DwI3Rkpf.mjs → logs-x3em2-oI.mjs} +7 -7
- package/dist/{macos-BoNM-l6f.mjs → macos-D_LAseN9.mjs} +22 -22
- package/dist/{macos-C_e9f5-5.mjs → macos-ZfpWlzBO.mjs} +1 -1
- package/dist/macos-run.mjs +1 -1
- package/dist/maintenance-run.mjs +6 -6
- package/dist/{metro-B5PVz0Wv.mjs → metro-TIQ1Wft-.mjs} +4 -4
- package/dist/{metro-request-2LmFpC1z.mjs → metro-request-DcUxyaq8.mjs} +2 -2
- package/dist/{named-ports-CA0nB9Yw.mjs → named-ports-BfEMi9bK.mjs} +3 -3
- package/dist/{native-android-Mv4YTrVN.mjs → native-android-COOrNDk2.mjs} +18 -18
- package/dist/{native-gradle-artifact-inputs-C_TU6wPq.mjs → native-gradle-artifact-inputs-B4Mwydmf.mjs} +5 -5
- package/dist/{native-runtime-oDqT4UES.mjs → native-runtime-UxUBU8up.mjs} +6 -6
- package/dist/{native-source-ChAGj7R1.mjs → native-source-D2ZfiQ6U.mjs} +1 -1
- package/dist/{native-xcode-inputs-DsozghTX.mjs → native-xcode-inputs-DUv7Q3ok.mjs} +3 -3
- package/dist/{native-xcode-ios-UXnH9NRY.mjs → native-xcode-ios-DXcteLVi.mjs} +18 -19
- package/dist/offload-worker.d.mts +1 -1
- package/dist/offload-worker.mjs +22 -22
- package/dist/{operation-exec-DKlBcKAL.mjs → operation-exec-DNynwpqO.mjs} +1 -1
- package/dist/{ownership-hC7xvvxF.mjs → ownership-CQTg6v1d.mjs} +3 -3
- package/dist/{page-Dj8IqvGM.mjs → page-CoN9al_x.mjs} +2 -2
- package/dist/{phone-reverses-B9WyCBKQ.mjs → phone-reverses-CHtco460.mjs} +4 -4
- package/dist/{placement-log-D0DZLcJk.mjs → placement-log-oQnELAvQ.mjs} +1 -1
- package/dist/{plan-placement-DqmLrWoX.mjs → plan-placement-45EOlIG1.mjs} +6 -6
- package/dist/{ports-C1_1Qgdy.mjs → ports-DKO7EUNt.mjs} +3 -3
- package/dist/{prebuild-BptrXmh_.mjs → prebuild-BKkj3OyL.mjs} +12 -12
- package/dist/{project-Dqqj3IkW.mjs → project-BCtQz48d.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-Bsm_o4A8.mjs → react-native-android-MI4ktuhL.mjs} +27 -31
- package/dist/{react-native-build-BTUcE926.mjs → react-native-build-dixAL2G8.mjs} +9 -9
- package/dist/{react-native-doctor-CfsCTKZt.mjs → react-native-doctor-CvkWincj.mjs} +6 -6
- package/dist/{react-native-ios-_cK2pjZn.mjs → react-native-ios-DF5otoBR.mjs} +17 -18
- package/dist/recorded-build-CGHGCO8m.mjs +76 -0
- package/dist/{recordings-AKZfsW2W.mjs → recordings-BcOzqFD1.mjs} +1 -1
- package/dist/{registration-DKjJGQ6p.mjs → registration-C-3PDR3X.mjs} +1 -1
- package/dist/{reload-DsTMtMDU.mjs → reload-DGWfNFwQ.mjs} +16 -16
- package/dist/{reload-CXgce4Yo.mjs → reload-DWxmO9dY.mjs} +1 -1
- package/dist/{remote-BsmYHUxH.mjs → remote-CV2jBcLv.mjs} +9 -9
- package/dist/remote-DWYGW2f5.mjs +158 -0
- package/dist/{result-DK6nTO-M.mjs → result-CWyxwPvZ.mjs} +23 -17
- package/dist/{run-N-BbRxnC.mjs → run-FZtMQgrx.mjs} +2 -2
- package/dist/{server-bare-BTlICuaX.mjs → server-bare-Ksh1NKeI.mjs} +2 -2
- package/dist/{server-command-Cu2w-UjB.mjs → server-command-BO2DIsJV.mjs} +5 -5
- package/dist/server-expo-9hQwyLze.mjs +2 -0
- package/dist/{server-expo-CjQwxvIi.mjs → server-expo-ZS9_WaNG.mjs} +3 -3
- package/dist/{settings-B5IBDfTx.mjs → settings-Ag4pbs0z.mjs} +5 -4
- package/dist/{settings-DcmVICCn.mjs → settings-TYrzDh8T.mjs} +2 -2
- package/dist/{settings-payload-BoiFMiFq.mjs → settings-payload-CUM0DYwz.mjs} +5 -5
- package/dist/{settings-write-B3LzEVwf.mjs → settings-write-D_9_IEx7.mjs} +6 -6
- package/dist/settings.schema.json +1 -1
- package/dist/{simslim-DKdJx0LL.mjs → simslim-BMgpTRWe.mjs} +2 -2
- package/dist/{slot-launch-DsQmPdlg.mjs → slot-launch-DW_29Bmu.mjs} +6 -6
- package/dist/{stage-Dqk0qvaI.mjs → stage-_8k8p7uq.mjs} +2 -2
- package/dist/{start-GkRBR1e3.mjs → start-CdgtOksb.mjs} +1 -1
- package/dist/{start-DIFiT2P5.mjs → start-CzBB5R7N.mjs} +12 -12
- package/dist/{state-CtmYTRWm.mjs → state-CfP-ccP8.mjs} +4 -4
- package/dist/{state-DSOUqO-o.mjs → state-DsrFh3yv.mjs} +2 -2
- package/dist/{stats-Dz08IopP.mjs → stats-BgTyuzib.mjs} +5 -5
- package/dist/{stats-report-BVRCqwWA.mjs → stats-report-Ci6TAfFm.mjs} +1 -1
- package/dist/{status-DhKv_e8a.mjs → status-Bcdy5eHt.mjs} +24 -24
- package/dist/{status-DTFhDnd1.mjs → status-C2PdxK6q.mjs} +1 -1
- package/dist/{status-Dost__Vn.mjs → status-C7Zzb-Eh.mjs} +1 -1
- package/dist/{status-watch-UecLnPQD.mjs → status-watch-DY0EZcmg.mjs} +5 -5
- package/dist/status-worker.mjs +1 -1
- package/dist/{stim-desktop-_WTria-r.mjs → stim-desktop-DWGAfaud.mjs} +2 -2
- package/dist/{stop-CcZISot5.mjs → stop-CbxsTKyZ.mjs} +5 -5
- package/dist/{stop-vRe6TQk5.mjs → stop-CkmBkNyg.mjs} +16 -16
- package/dist/{stop-QFOqgICJ.mjs → stop-iGkvEvDn.mjs} +2 -2
- package/dist/supervisor-run.mjs +15 -15
- package/dist/{support-DW575Dnx.mjs → support-CfYmOdQs.mjs} +76 -38
- package/dist/{support-CNqJDBrH.mjs → support-JZ4KRW0C.mjs} +7 -7
- package/dist/{swiftpm-artifact-inputs-DQTJTczX.mjs → swiftpm-artifact-inputs-C1rZDRDs.mjs} +4 -4
- package/dist/{swiftpm-macos-BKczZ0k9.mjs → swiftpm-macos-DRTjC7Ff.mjs} +11 -11
- package/dist/{toolchain-DRQyCvlp.mjs → toolchain-BeD7tbBW.mjs} +73 -9
- package/dist/{toolchain-BDlugtoh.mjs → toolchain-CNlKc9pH.mjs} +1 -1
- package/dist/trigger-Bp3lruF2.mjs +2 -0
- package/dist/{trigger-BtB4kbe0.mjs → trigger-G_gbfIVB.mjs} +2 -2
- package/dist/{warm-progress-q11Vdvhh.mjs → warm-progress-CJQ8tk5O.mjs} +6 -6
- package/dist/{web-TDWjHUT3.mjs → web-BXbmysa1.mjs} +9 -9
- package/dist/web-BcaySU05.mjs +2 -0
- package/dist/web-run.mjs +8 -8
- package/dist/windows-report.mjs +1 -1
- package/dist/{workspace-state-BdZ-QgmB.mjs → workspace-state-DOPXG2Gp.mjs} +3 -3
- package/dist/{workspaces-CY3KSdC0.mjs → workspaces-DCzDzydB.mjs} +15 -14
- package/dist/{worktree-D6myrQ2H.mjs → worktree-6ngObKkw.mjs} +1 -1
- package/dist/{worktree-fKKe8j5M.mjs → worktree-BAC43Kio.mjs} +27 -27
- package/package.json +7 -7
- package/dist/server-expo-DbSypdNl.mjs +0 -2
- package/dist/trigger-D8B7QR0q.mjs +0 -2
- package/dist/web-D1m1LKEz.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,6 +1,22 @@
|
|
|
1
|
-
import { f as WorkspaceProcessCleanupError } from "./exec-
|
|
2
|
-
import { I as waitForSharedBuild } from "./activity-
|
|
3
|
-
import { rmSync } from "node:fs";
|
|
1
|
+
import { f as WorkspaceProcessCleanupError } from "./exec-L37dbiIb.mjs";
|
|
2
|
+
import { I as waitForSharedBuild } from "./activity-CdpXXSq2.mjs";
|
|
3
|
+
import { copyFileSync, rmSync } from "node:fs";
|
|
4
|
+
//#region src/engine/failed-transcript.ts
|
|
5
|
+
/**
|
|
6
|
+
* Copies a failed build's transcript beside the log, where the next build in the workspace, which truncates the
|
|
7
|
+
* log, leaves it. The name does not end in `.ndjson`, so `stim logs` keeps reading only the current run. A later
|
|
8
|
+
* failed build replaces it. Returns the copy's path, or the log's own path when it cannot be copied.
|
|
9
|
+
*/
|
|
10
|
+
function retainFailedTranscript(logFile) {
|
|
11
|
+
const kept = `${logFile}.failed`;
|
|
12
|
+
try {
|
|
13
|
+
copyFileSync(logFile, kept);
|
|
14
|
+
return kept;
|
|
15
|
+
} catch {
|
|
16
|
+
return logFile;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
4
20
|
//#region src/engine/artifact-lifecycle.ts
|
|
5
21
|
async function runArtifactLifecycle(phases) {
|
|
6
22
|
try {
|
|
@@ -168,4 +184,4 @@ async function acquireArtifact(adapter, { root, logFile, deps }) {
|
|
|
168
184
|
}
|
|
169
185
|
}
|
|
170
186
|
//#endregion
|
|
171
|
-
export { settleArtifactUploads as n, acquireArtifact as t };
|
|
187
|
+
export { settleArtifactUploads as n, retainFailedTranscript as r, acquireArtifact as t };
|
|
@@ -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 {
|
|
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 deleteParkedAvds, B as stopOwnedMetro, Ct as waitForGradleExit, Et as DEVICE_LIST_TIMEOUT_MS, Ft as deviceSweepIsScoped, M as enforceBudget, Mt as deleteProjectDevices, Or as discoverCaches, Ot as collectParkedAvds, P as machineNumber, Q as levelFloors, R as resolveBudget, Tr as phase, Z as diskPressureLevel, _t as collectGradleVersions, b as shutDownIdleDevices, br as memorySweepIsScoped, et as lowestFree, ft as planCacheEmptying, hr as collectMemoryReport, j as cacheLabel, jt as deleteParkedSims, kr as pruneCache, kt as collectParkedSims, ot as emptyCaches, tt as protectWindowMs, vt as deleteGradleVersion, wr as stopIdleGradleDaemons, x as writeIdleShutdownEvent, y as dueIdleDevices, z as trimmableCaches, zt as findStaleProjectDevices } from "./device-capacity-
|
|
11
|
-
import { o as readWebRecord, u as webFacts } from "./state-
|
|
12
|
-
import { a as unregister, n as readManifest } from "./cache-manifest-
|
|
13
|
-
import { B as workspaceBuildInProgress, Et as GC_OUTPUT, F as collectOwnedDeviceActivityAsync, Ot as takeGcResults, P as collectOwnedDeviceActivity, a as collectOrphanedWorkspaces, b as workspaceInUseAsync, c as isInsideWorkspaces, d as recentNativeUseReason, g as ARTIFACT_DIRS, h as workspaceDirRemoved, i as clearWorkspaceOutputs, jt as readConcurrency, kt as eachLimited, 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-
|
|
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-DOPXG2Gp.mjs";
|
|
3
|
+
import { o as formatLongDuration, u as plural } from "./command-output-ByEmIwur.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-Ag4pbs0z.mjs";
|
|
7
|
+
import { P as readRemoteSession, i as findProjectRoot$1 } from "./project-BCtQz48d.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-CGctfYpv.mjs";
|
|
9
|
+
import { c as pidExists } from "./metro-TIQ1Wft-.mjs";
|
|
10
|
+
import { At as deleteParkedAvds, B as stopOwnedMetro, Ct as waitForGradleExit, Et as DEVICE_LIST_TIMEOUT_MS, Ft as deviceSweepIsScoped, M as enforceBudget, Mt as deleteProjectDevices, Or as discoverCaches, Ot as collectParkedAvds, P as machineNumber, Q as levelFloors, R as resolveBudget, Tr as phase, Z as diskPressureLevel, _t as collectGradleVersions, b as shutDownIdleDevices, br as memorySweepIsScoped, et as lowestFree, ft as planCacheEmptying, hr as collectMemoryReport, j as cacheLabel, jt as deleteParkedSims, kr as pruneCache, kt as collectParkedSims, ot as emptyCaches, tt as protectWindowMs, vt as deleteGradleVersion, wr as stopIdleGradleDaemons, x as writeIdleShutdownEvent, y as dueIdleDevices, z as trimmableCaches, zt as findStaleProjectDevices } from "./device-capacity-DWUOvY13.mjs";
|
|
11
|
+
import { o as readWebRecord, u as webFacts } from "./state-CfP-ccP8.mjs";
|
|
12
|
+
import { a as unregister, n as readManifest } from "./cache-manifest-BO0TIcPV.mjs";
|
|
13
|
+
import { B as workspaceBuildInProgress, Et as GC_OUTPUT, F as collectOwnedDeviceActivityAsync, Ot as takeGcResults, P as collectOwnedDeviceActivity, a as collectOrphanedWorkspaces, b as workspaceInUseAsync, c as isInsideWorkspaces, d as recentNativeUseReason, g as ARTIFACT_DIRS, h as workspaceDirRemoved, i as clearWorkspaceOutputs, jt as readConcurrency, kt as eachLimited, 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-DCzDzydB.mjs";
|
|
14
14
|
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-
|
|
15
|
+
import { N as listBuildLocks, _ as workspaceDeviceLastUseAt, b as leaseIsExpired, g as workspaceActivity, x as listLeaseFiles } from "./activity-CdpXXSq2.mjs";
|
|
16
|
+
import { d as listAllIosSims, f as listAllIosSimsAsync } from "./ios-BveW7qK1.mjs";
|
|
17
17
|
import { s as metroStoreRoot } from "./errors-DHm_U5gv.mjs";
|
|
18
18
|
import { t as resolveMaintenanceSettings } from "./settings-D9LtQaUw.mjs";
|
|
19
|
-
import { m as probeHostedSession } from "./hosted-client-
|
|
20
|
-
import { o as runStop } from "./stop-
|
|
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-
|
|
22
|
-
import { n as describePullRequest, r as endedPullRequest, s as pullRequestLookups } from "./pull-request-
|
|
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-
|
|
24
|
-
import { a as restoreProblem, r as recordLightened, t as finishLightened } from "./lightened-
|
|
19
|
+
import { m as probeHostedSession } from "./hosted-client-BLwuXEZS.mjs";
|
|
20
|
+
import { o as runStop } from "./stop-CkmBkNyg.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-BAC43Kio.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-CJQ8tk5O.mjs";
|
|
24
|
+
import { a as restoreProblem, r as recordLightened, t as finishLightened } from "./lightened-Cdfmo8MO.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";
|
|
@@ -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 {
|
|
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-DOPXG2Gp.mjs";
|
|
3
|
+
import { a as formatElapsed, i as formatDuration, m as shortHash } from "./command-output-ByEmIwur.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-Dt-dhCJF.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-BoOC3ZF9.mjs → agent-device-usage-output-D0582GHy.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 {
|
|
4
|
-
import { bt as measureDu, u as listWorkspaceDirs, xt as writeUsageCache, yt as canonical } from "./workspaces-
|
|
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-ByEmIwur.mjs";
|
|
3
|
+
import { it as formatBytes } from "./config-CNmN-ndb.mjs";
|
|
4
|
+
import { bt as measureDu, u as listWorkspaceDirs, xt as writeUsageCache, yt as canonical } from "./workspaces-DCzDzydB.mjs";
|
|
5
|
+
import { c as parseAgentDeviceRecord, o as envDir, u as processMatches } from "./activity-CdpXXSq2.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,42 +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 {
|
|
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-DOPXG2Gp.mjs";
|
|
3
|
+
import { _ as stepTimer, f as refuseNoProject, g as stepClock, i as formatDuration, l as phaseLine } from "./command-output-ByEmIwur.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-Ag4pbs0z.mjs";
|
|
6
|
+
import { f as projectRegistry, i as findProjectRoot$1, l as projectShortcut, t as NO_PROJECT_REFUSAL, z as writeWorkspaceLaunchAsync } from "./project-BCtQz48d.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-CGctfYpv.mjs";
|
|
8
|
+
import { c as pidExists, d as resolveProjectMetro } from "./metro-TIQ1Wft-.mjs";
|
|
9
9
|
import { i as createNdjsonWriter } from "./ndjson-CrjIsGzw.mjs";
|
|
10
|
-
import { $t as remoteAndroidDeps, An as installAndroidApp, Fn as launchAndroidReleaseApp, Hn as exitAfterFlush, Jn as checkEasAuth, Pn as launchAndroidApp, S as CCACHE_NOT_RUN, Wn as runProcessOperation, Xt as ensureMetroReachable, Zt as ensureRemoteBootOwned, dr as ownedSessionName, hn as verifyLaunch, k as budgetGate, mn as verifyAndroidReleaseLaunch, n as DeviceAdmissionRefusal, nr as resolveRemote, qt as binOnPath, r as checkDeviceCapacity, rr as uploadRemote, tn as resolveRemoteContext, tr as resolveEasCliBin, vn as ADB_INSTALL_TIMEOUT_MS, yn as DEFAULT_METRO_PORT } from "./device-capacity-
|
|
11
|
-
import { $ as tapBuildLog, H as NO_BUILD_PROGRESS, Q as startBuildProgress, St as acquireBuildSlot, Tt as releaseBuildSlot, Z as runFailureRecord, ct as recordRunStats, et as thrownRunFailureRecord, it as readRunEstimates, lt as statsProjectKey$1, ot as recordCapacityRefusal, rt as createRunRecorder } from "./workspaces-
|
|
12
|
-
import { _t as runCancellationSignal, gt as runCancellation, lt as cancelledFailure, vt as withNativeBuildRun } from "./toolchain-
|
|
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 { f as settleFingerprintCheck } from "./prebuild-
|
|
27
|
-
import { i as launchOutcomeRecord, n as ensureWorkspaceStorageSafely, r as isPhysicalDeviceRequest, t as ensureDevServer } from "./native-runtime-
|
|
28
|
-
import {
|
|
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 {
|
|
31
|
-
import {
|
|
32
|
-
import { n as
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
10
|
+
import { $t as remoteAndroidDeps, An as installAndroidApp, Fn as launchAndroidReleaseApp, Hn as exitAfterFlush, Jn as checkEasAuth, Pn as launchAndroidApp, S as CCACHE_NOT_RUN, Wn as runProcessOperation, Xt as ensureMetroReachable, Zt as ensureRemoteBootOwned, dr as ownedSessionName, hn as verifyLaunch, k as budgetGate, mn as verifyAndroidReleaseLaunch, n as DeviceAdmissionRefusal, nr as resolveRemote, qt as binOnPath, r as checkDeviceCapacity, rr as uploadRemote, tn as resolveRemoteContext, tr as resolveEasCliBin, vn as ADB_INSTALL_TIMEOUT_MS, yn as DEFAULT_METRO_PORT } from "./device-capacity-DWUOvY13.mjs";
|
|
11
|
+
import { $ as tapBuildLog, H as NO_BUILD_PROGRESS, Q as startBuildProgress, St as acquireBuildSlot, Tt as releaseBuildSlot, Z as runFailureRecord, ct as recordRunStats, et as thrownRunFailureRecord, it as readRunEstimates, lt as statsProjectKey$1, ot as recordCapacityRefusal, rt as createRunRecorder } from "./workspaces-DCzDzydB.mjs";
|
|
12
|
+
import { _t as runCancellationSignal, gt as runCancellation, lt as cancelledFailure, vt as withNativeBuildRun } from "./toolchain-BeD7tbBW.mjs";
|
|
13
|
+
import { F as waitForBuild, M as acquireBuildLock, P as releaseBuildLock } from "./activity-CdpXXSq2.mjs";
|
|
14
|
+
import { D as storedAppId } from "./build-cache-Dt-dhCJF.mjs";
|
|
15
|
+
import { C as setRemoteLogSink } from "./client-DU6dnGX1.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-CfYmOdQs.mjs";
|
|
17
|
+
import { i as hostedMetroSettings } from "./metro-request-DcUxyaq8.mjs";
|
|
18
|
+
import { a as writeHostedAndroidAsync, i as writeDevicePlacementAsync, t as readHostedAndroid } from "./ios-state-enWc5P6U.mjs";
|
|
19
|
+
import { n as prepareHostedAndroid, t as placeHostedAndroid } from "./hosted-android-D8JbIzgC.mjs";
|
|
20
|
+
import { n as verifyCollectorOwnership } from "./ownership-CQTg6v1d.mjs";
|
|
21
|
+
import { i as restoreLightenedDependencies, n as printLightenedFailure } from "./lightened-Cdfmo8MO.mjs";
|
|
22
|
+
import { c as startDevServer } from "./start-CzBB5R7N.mjs";
|
|
23
|
+
import { r as ensureSystemImage, t as androidImageInstallPolicy } from "./android-image-DY8KxK2m.mjs";
|
|
24
|
+
import { a as resolveEasDevelopmentBuild, r as isEasBuildFailure } from "./eas-build-CwOXKJwa.mjs";
|
|
25
|
+
import { t as followHostedLaunchLogs } from "./hosted-logs-sync-uWSrH2mf.mjs";
|
|
26
|
+
import { f as settleFingerprintCheck } from "./prebuild-BKkj3OyL.mjs";
|
|
27
|
+
import { i as launchOutcomeRecord, n as ensureWorkspaceStorageSafely, r as isPhysicalDeviceRequest, t as ensureDevServer } from "./native-runtime-UxUBU8up.mjs";
|
|
28
|
+
import { t as lookupRecordedBuild } from "./recorded-build-CGHGCO8m.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-JZ4KRW0C.mjs";
|
|
30
|
+
import { n as devicePlacementRecord } from "./placement-log-oQnELAvQ.mjs";
|
|
31
|
+
import { n as acquireAndroidArtifactOrRecorded } from "./artifact-BsimBWxG.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-CWyxwPvZ.mjs";
|
|
33
|
+
import { n as devicePlacementLine, t as automaticDevicePlacement } from "./auto-placement-CFKNrWLU.mjs";
|
|
34
|
+
import { i as verifyAndroidMetroRun, r as finishAndroidRun } from "./launch-f3RnbFW5.mjs";
|
|
35
|
+
import { t as checkEasFallback } from "./eas-fallback-Cnb12a50.mjs";
|
|
36
|
+
import { i as warmMetro, n as ensureBooted, r as ensureOwnedDevice, t as didSetUpDevice } from "./device-BIg1iExg.mjs";
|
|
37
|
+
import { a as AvdBootError, o as AvdRecoveryError } from "./device-android-CBat355q.mjs";
|
|
38
|
+
import { t as selectFromPool } from "./device-pool-B8IqZKqm.mjs";
|
|
38
39
|
import { t as unsupportedPlan } from "./project-plan-BPwbLwQu.mjs";
|
|
39
|
-
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-CgnLDof9.mjs";
|
|
40
41
|
import { join } from "node:path";
|
|
41
42
|
import { workspaceId } from "@stim-cli/core";
|
|
42
43
|
import { hostedAndroidStatus, parseMachine } from "@stim-cli/core/state";
|
|
@@ -428,6 +429,8 @@ function runAndroidOperation(context, root, opts = {}) {
|
|
|
428
429
|
buildMachine: opts.remoteBuild,
|
|
429
430
|
slot: opts.slot,
|
|
430
431
|
easProfile: opts.easProfile,
|
|
432
|
+
recordedBuild: opts.recordedBuild,
|
|
433
|
+
cleanAppState: opts.cleanAppState,
|
|
431
434
|
json: Boolean(opts.json),
|
|
432
435
|
metroCheck: opts.metroCheck !== false,
|
|
433
436
|
useBuildCache: opts.buildCache !== false,
|
|
@@ -445,7 +448,7 @@ function runAndroidOperation(context, root, opts = {}) {
|
|
|
445
448
|
}
|
|
446
449
|
}, { write: (line) => context.output("stderr", `${chalk.dim(phaseLine("lock", line))}\n`) });
|
|
447
450
|
}
|
|
448
|
-
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, 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, {
|
|
449
452
|
...options,
|
|
450
453
|
context
|
|
451
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) } = {}) {
|
|
@@ -463,6 +466,8 @@ function resolveRunAndroidOptions({ context, root, json = false, remoteDevice: c
|
|
|
463
466
|
metroCheck,
|
|
464
467
|
useBuildCache,
|
|
465
468
|
easProfile,
|
|
469
|
+
recordedBuild,
|
|
470
|
+
cleanAppState,
|
|
466
471
|
resolveEasBuild,
|
|
467
472
|
variantFlag,
|
|
468
473
|
systemImageFlag,
|
|
@@ -608,7 +613,7 @@ async function localRunRefusal(budgetRefusal, target, keepsAvd, ensureImage, rec
|
|
|
608
613
|
}
|
|
609
614
|
async function runAndroid(options = {}) {
|
|
610
615
|
const { context } = options;
|
|
611
|
-
let { root, json, commandRemoteBackend, resolveSettingsFor, resolveRemoteDeviceContext, makeRemoteDeviceDeps, resolveEasBin, ensureRemoteMetro, ensureRemoteOwned, detectRemoteProviders, metroCheck, useBuildCache: requestedBuildCache, easProfile, 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);
|
|
612
617
|
const progress = options.progress ?? NO_BUILD_PROGRESS;
|
|
613
618
|
const slot = validateDeviceSlot(options.slot);
|
|
614
619
|
const started = now();
|
|
@@ -781,6 +786,7 @@ async function runAndroid(options = {}) {
|
|
|
781
786
|
signal: context.signal,
|
|
782
787
|
slot,
|
|
783
788
|
easProfile,
|
|
789
|
+
recordedBuild: recordedBuildRequested,
|
|
784
790
|
variant: variantFlag,
|
|
785
791
|
systemImage: systemImageFlag,
|
|
786
792
|
deviceProfile: deviceProfileFlag,
|
|
@@ -818,6 +824,10 @@ async function runAndroid(options = {}) {
|
|
|
818
824
|
};
|
|
819
825
|
const { build: buildPlan, isExpo, cacheProviderConfig } = plan;
|
|
820
826
|
const { variant, release } = buildPlan;
|
|
827
|
+
const recordedLookup = lookupRecordedBuild(recordedBuildRequested, root, {
|
|
828
|
+
platform: "android",
|
|
829
|
+
configuration: variant
|
|
830
|
+
});
|
|
821
831
|
const runtimeKind = integration.runtimeKind(buildPlan);
|
|
822
832
|
const appMode = runtimeKind === "process" ? "process" : runtimeKind === "metro" ? "development" : "release";
|
|
823
833
|
record.configuration = variant ?? "debug";
|
|
@@ -1172,7 +1182,7 @@ async function runAndroid(options = {}) {
|
|
|
1172
1182
|
logsDir,
|
|
1173
1183
|
root
|
|
1174
1184
|
});
|
|
1175
|
-
const acquiredArtifact = await
|
|
1185
|
+
const acquiredArtifact = await acquireAndroidArtifactOrRecorded(recordedLookup.build, {
|
|
1176
1186
|
context,
|
|
1177
1187
|
root,
|
|
1178
1188
|
buildLog,
|
|
@@ -1363,6 +1373,7 @@ async function runAndroid(options = {}) {
|
|
|
1363
1373
|
device,
|
|
1364
1374
|
physical,
|
|
1365
1375
|
remoteDevice,
|
|
1376
|
+
cleanAppState,
|
|
1366
1377
|
bootPromise,
|
|
1367
1378
|
resolveAvdSerial,
|
|
1368
1379
|
waitForDeviceBoot,
|
|
@@ -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-CGctfYpv.mjs";
|
|
3
3
|
//#region src/collector/android.ts
|
|
4
4
|
const LEVEL_BY_LETTER = {
|
|
5
5
|
V: "debug",
|
|
@@ -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 {
|
|
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-DOPXG2Gp.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-Ag4pbs0z.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-TIQ1Wft-.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-ByEmIwur.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-JZ4KRW0C.mjs";
|
|
3
|
+
import { r as lastBuildRecord, t as androidFacts } from "./result-CWyxwPvZ.mjs";
|
|
4
|
+
import { i as runAndroidOperation, n as registerAndroid, r as runAndroid, t as androidCommand } from "./android-BBwLpxRh.mjs";
|
|
5
|
+
import { a as collectorLogFile, o as killPreviousCollector, s as startCollector } from "./launch-f3RnbFW5.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
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,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-DOPXG2Gp.mjs";
|
|
2
|
+
import { d as getConfigDir } from "./config-CNmN-ndb.mjs";
|
|
3
|
+
import { m as defaultAndroidLayout } from "./settings-Ag4pbs0z.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,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-Ag4pbs0z.mjs";
|
|
3
|
+
import { Q as pickDefaultSystemImage, d as androidToolPath, j as hostSystemImageArch, kt as recordInstalledSystemImageAsync, o as androidHome, z as listInstalledSystemImages } from "./android-CGctfYpv.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";
|
|
@@ -2,7 +2,7 @@ import { n as SettingsObject, t as AndroidLayout } from "./ios-CDvlmUs7.mjs";
|
|
|
2
2
|
import { r as createNdjsonWriter } from "./exec-DnYc4HGH.mjs";
|
|
3
3
|
import { readFileSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { StimContext, hostSimulatorArch } from "@stim-cli/core";
|
|
5
|
-
import { ANDROID_EMULATOR_APPS, BuildPhase, BuildPlanPayload, Endpoint, RunEstimates, SettingScope, WebViewport, machineCapacity } from "@stim-cli/core/state";
|
|
5
|
+
import { ANDROID_EMULATOR_APPS, BuildPhase, BuildPlanPayload, Endpoint, RunEstimates, SettingScope, TailnetIdentity, WebViewport, machineCapacity } from "@stim-cli/core/state";
|
|
6
6
|
import { readFileSync as readFileSync$1 } from "fs";
|
|
7
7
|
import { Command } from "commander";
|
|
8
8
|
import "@stim-cli/core/noise-session";
|
|
@@ -370,6 +370,8 @@ interface BuildMachineReport {
|
|
|
370
370
|
fingerprint?: string;
|
|
371
371
|
deviceId?: string;
|
|
372
372
|
requestedAt?: string;
|
|
373
|
+
/** The tailnet this machine was signed in to when it first reached the machine; absent for a pairing from before it was kept. */
|
|
374
|
+
tailnet?: TailnetIdentity;
|
|
373
375
|
expiresAt?: string;
|
|
374
376
|
host?: NonNullable<HelloResult["host"]>;
|
|
375
377
|
/** For an approved machine: whether it would take this project's build now, and every reason it would not. */
|
package/dist/api.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as CompilationCacheActivity, a as BuildMachinesInspection, c as TailnetMachineIo, d as BudgetReport, f as DoctorPlatform, g as CcacheActivity, h as AndroidFacts, n as WebLaunched, o as GeneratedTickets, p as Finding, s as KeyConfirmer, v as IosFacts } from "./android-project-
|
|
1
|
+
import { _ as CompilationCacheActivity, a as BuildMachinesInspection, c as TailnetMachineIo, d as BudgetReport, f as DoctorPlatform, g as CcacheActivity, h as AndroidFacts, n as WebLaunched, o as GeneratedTickets, p as Finding, s as KeyConfirmer, v as IosFacts } from "./android-project-v_1nej_x.mjs";
|
|
2
2
|
import { a as WorkspaceLaunchPlatform } from "./ios-CDvlmUs7.mjs";
|
|
3
3
|
import "./exec-DnYc4HGH.mjs";
|
|
4
4
|
import "./pull-request-eODyIqZF.mjs";
|
|
@@ -45,9 +45,12 @@ interface StartFacts {
|
|
|
45
45
|
//#region src/commands/android/build.d.ts
|
|
46
46
|
type AndroidBuildOptions = Omit<Extract<PlatformBuildOptions, {
|
|
47
47
|
platform: "android";
|
|
48
|
-
}>, "platform"
|
|
48
|
+
}>, "platform"> & {
|
|
49
|
+
/** Downloads this EAS profile's completed development build instead of compiling; not part of the Desktop transport. */
|
|
50
|
+
easProfile?: string;
|
|
51
|
+
};
|
|
49
52
|
interface AndroidBuildFacts {
|
|
50
|
-
/** Owned copy, retained
|
|
53
|
+
/** Owned copy, retained until a build replaces its recorded build or the worktree is removed. */
|
|
51
54
|
apkPath: string;
|
|
52
55
|
androidPackage: string | null;
|
|
53
56
|
variant: string;
|
|
@@ -73,7 +76,7 @@ type MacosBuildOptions = Omit<Extract<PlatformBuildOptions, {
|
|
|
73
76
|
}>, "platform">;
|
|
74
77
|
interface MacosBuildFacts {
|
|
75
78
|
product: string;
|
|
76
|
-
/** Owned copy, retained with this workspace until
|
|
79
|
+
/** Owned copy, retained with this workspace until the next macOS build or worktree removal. */
|
|
77
80
|
bundle: string;
|
|
78
81
|
bundleId: string;
|
|
79
82
|
executable: string;
|
|
@@ -89,9 +92,12 @@ interface MacosBuildFacts {
|
|
|
89
92
|
//#region src/commands/ios/build.d.ts
|
|
90
93
|
type IosBuildOptions = Omit<Extract<PlatformBuildOptions, {
|
|
91
94
|
platform: "ios";
|
|
92
|
-
}>, "platform"
|
|
95
|
+
}>, "platform"> & {
|
|
96
|
+
/** Downloads this EAS profile's completed development build instead of compiling; not part of the Desktop transport. */
|
|
97
|
+
easProfile?: string;
|
|
98
|
+
};
|
|
93
99
|
interface IosBuildFacts {
|
|
94
|
-
/** Owned simulator app, retained
|
|
100
|
+
/** Owned simulator app, retained until a build replaces its recorded build or the worktree is removed. */
|
|
95
101
|
appPath: string;
|
|
96
102
|
bundleId: string | null;
|
|
97
103
|
configuration: string;
|
|
@@ -228,11 +234,13 @@ interface Inspection {
|
|
|
228
234
|
machines: MachineReport[];
|
|
229
235
|
}
|
|
230
236
|
/**
|
|
231
|
-
* Reports the device-host approval of each remote machine, separate from its build approval. Only
|
|
232
|
-
* ticket
|
|
237
|
+
* Reports the device-host approval of each remote machine, separate from its build approval. Only `fix` makes a setup
|
|
238
|
+
* ticket, and only `forget`, which defaults to `fix`, forgets the credentials of machines not in `entries`; every
|
|
239
|
+
* server key stays pinned.
|
|
233
240
|
*/
|
|
234
|
-
declare function inspectDeviceHostMachines({ fix, version, tickets, operation, confirmKey }: {
|
|
241
|
+
declare function inspectDeviceHostMachines({ fix, forget, version, tickets, operation, confirmKey }: {
|
|
235
242
|
fix: boolean;
|
|
243
|
+
forget?: boolean;
|
|
236
244
|
version?: string;
|
|
237
245
|
tickets?: GeneratedTickets;
|
|
238
246
|
operation?: StimContext;
|
|
@@ -856,6 +864,19 @@ interface StimOptions {
|
|
|
856
864
|
onProgress?: (event: StimProgress) => void;
|
|
857
865
|
}
|
|
858
866
|
type StimRunOptions = PlatformRunOptions & {
|
|
867
|
+
/**
|
|
868
|
+
* iOS and Android: install and launch the app the last `build` with the same scheme and configuration or variant
|
|
869
|
+
* recorded in this workspace, without fingerprinting, building or replacing its JS. Refuses with
|
|
870
|
+
* STIM_NO_RECORDED_BUILD when there is none. Not part of the private Desktop transport.
|
|
871
|
+
*/
|
|
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;
|
|
859
880
|
signal?: AbortSignal;
|
|
860
881
|
};
|
|
861
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 {
|
|
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-DOPXG2Gp.mjs";
|
|
3
|
+
import { l as phaseLine } from "./command-output-ByEmIwur.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-Ag4pbs0z.mjs";
|
|
6
|
+
import { c as projectProblem, f as projectRegistry, i as findProjectRoot$1, r as findCommandWorkspaceAsync, t as NO_PROJECT_REFUSAL } from "./project-BCtQz48d.mjs";
|
|
7
|
+
import { n as macosDir } from "./state-DsrFh3yv.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 tapBuildLog, Q as startBuildProgress, X as recordFinishedBuild, tt as errorRemedy } from "./workspaces-
|
|
11
|
-
import { _t as runCancellationSignal, vt as withNativeBuildRun } from "./toolchain-
|
|
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 tapBuildLog, Q as startBuildProgress, X as recordFinishedBuild, tt as errorRemedy } from "./workspaces-DCzDzydB.mjs";
|
|
11
|
+
import { _t as runCancellationSignal, vt as withNativeBuildRun } from "./toolchain-BeD7tbBW.mjs";
|
|
12
|
+
import { L as resolveBuildPlacement } from "./support-CfYmOdQs.mjs";
|
|
13
|
+
import { c as stopWorkspaceNow } from "./stop-CkmBkNyg.mjs";
|
|
14
|
+
import { r as runReload } from "./reload-DGWfNFwQ.mjs";
|
|
15
|
+
import { m as warmWorktreeTarget, p as removeWorktreeTarget } from "./worktree-BAC43Kio.mjs";
|
|
16
|
+
import { i as restoreLightenedDependencies } from "./lightened-Cdfmo8MO.mjs";
|
|
17
|
+
import { c as startDevServer } from "./start-CzBB5R7N.mjs";
|
|
18
|
+
import { s as recordDoctorCheck } from "./doctor-watchman-CPE4C8KV.mjs";
|
|
19
|
+
import { c as readSettingsPayload, s as readSettingsContext, t as SettingsRefusal } from "./settings-payload-CUM0DYwz.mjs";
|
|
20
|
+
import { a as readDoctorReport } from "./doctor-CPzwqcXY.mjs";
|
|
21
|
+
import { i as readGcReport, n as executeGc, o as withGcMaintenanceClaim } from "./gc-0jdcnDHs.mjs";
|
|
22
|
+
import { r as readWorkspaceLogs, t as followWorkspaceLogs } from "./logs-DAjxBF3c.mjs";
|
|
23
|
+
import { t as readProjectStats } from "./stats-report-Ci6TAfFm.mjs";
|
|
24
|
+
import { n as pruneArtifactCopies } from "./recorded-build-CGHGCO8m.mjs";
|
|
25
|
+
import { n as buildAndroidOperation, t as buildIosOperation } from "./build-DIhuoozz.mjs";
|
|
26
|
+
import { a as readAndroidBuildPlan, i as runAndroidOperation } from "./android-BBwLpxRh.mjs";
|
|
27
|
+
import { i as readIosBuildPlan, r as runIosOperation } from "./ios-CGyx4PA7.mjs";
|
|
28
|
+
import { a as buildMacosBundle, i as planMacos, n as runMacos } from "./macos-D_LAseN9.mjs";
|
|
29
|
+
import { t as runWeb } from "./web-BXbmysa1.mjs";
|
|
30
|
+
import { t as mutateSetting } from "./settings-write-D_9_IEx7.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,6 +725,12 @@ async function build(context, options) {
|
|
|
723
725
|
}
|
|
724
726
|
}
|
|
725
727
|
async function run(context, options) {
|
|
728
|
+
const simulatorOnly = options.recordedBuild ? "recordedBuild" : options.cleanAppState ? "cleanAppState" : null;
|
|
729
|
+
if (simulatorOnly && "device" in options && options.device !== void 0) throw new StimError({
|
|
730
|
+
code: "STIM_BAD_ARG",
|
|
731
|
+
message: `${simulatorOnly} applies to a simulator or emulator, not a physical device.`,
|
|
732
|
+
remedy: `Drop device, or run without ${simulatorOnly}.`
|
|
733
|
+
});
|
|
726
734
|
const root = context.projectRoot;
|
|
727
735
|
switch (options.platform) {
|
|
728
736
|
case "ios": {
|
|
@@ -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-DOPXG2Gp.mjs";
|
|
2
|
+
import { O as findBuildTool } from "./android-CGctfYpv.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";
|