stim 1.21.0 → 1.22.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 +60 -7
- package/dist/{acquire-artifact-CD4lbiWE.mjs → acquire-artifact-Co2k4f7O.mjs} +21 -3
- package/dist/{act-DHAw2A2S.mjs → act-DsuqEkiM.mjs} +298 -164
- package/dist/{activity-BzVfHSrY.mjs → activity-CMLmzp7o.mjs} +33 -12
- package/dist/{agent-device-usage-output-zh1vhbLp.mjs → agent-device-usage-output-DUFaTMdd.mjs} +7 -7
- package/dist/{android-BLgbNqox.mjs → android-ByRMUoiJ.mjs} +66 -52
- package/dist/{android-DUYkNF4u.mjs → android-C7sVmyI9.mjs} +160 -59
- package/dist/{android-CV_GCELZ.mjs → android-DGkNqa_c.mjs} +5 -5
- package/dist/{android-BEJ8Jpl7.mjs → android-DR5lZ2Az.mjs} +2 -2
- package/dist/android-cas-compiler.mjs +1 -1
- package/dist/{android-cas-Ct5b1xCK.mjs → android-cas-ngferVq2.mjs} +3 -3
- package/dist/{client-B7QVOlCr.d.mts → android-project-DVWyCbWU.d.mts} +145 -7
- package/dist/api.d.mts +132 -118
- package/dist/api.mjs +239 -42
- package/dist/{artifact-B8T3S5gi.mjs → artifact-8EY8SAPw.mjs} +40 -35
- package/dist/{artifact-DAuZ-FNU.mjs → artifact-DJPy518Y.mjs} +69 -40
- package/dist/artifact-platform-CXcmX_j3.mjs +27 -0
- package/dist/{browser-web-QQzVjz3O.mjs → browser-web-Bcv99PBM.mjs} +187 -59
- package/dist/{budget-Bs6SxxzO.mjs → budget-Cvwn54qV.mjs} +830 -699
- package/dist/{build-CoPzQRNw.mjs → build-CabC3G23.mjs} +34 -27
- package/dist/{build-cache-DmyR9Zzc.mjs → build-cache-Dv7RN200.mjs} +4 -4
- package/dist/{build-plan-CaFskB7_.mjs → build-plan-DUC8Ka9y.mjs} +74 -14
- package/dist/{cache-manifest-DkkqguoK.mjs → cache-manifest-DSeQjt-Q.mjs} +1 -1
- package/dist/cache-manifest.mjs +1 -1
- package/dist/{ccache-BJRZ9pG3.mjs → ccache-Btwc36-I.mjs} +6 -6
- package/dist/{cdp-CWmIUMbw.mjs → cdp-3fwICjzi.mjs} +1 -1
- package/dist/{chrome-B6tfCta1.mjs → chrome-Bbw689-6.mjs} +1 -1
- package/dist/{cli-0DYf8QhQ.mjs → cli-CHZa9Lvk.mjs} +20 -20
- package/dist/cli.mjs +1 -1
- package/dist/{client-UXD70ZbM.mjs → client-OyRoEuSr.mjs} +218 -47
- package/dist/collector-run.d.mts +1 -1
- package/dist/collector-run.mjs +6 -6
- package/dist/{command-output-B1UrjZHL.mjs → command-output-gwpm28fu.mjs} +1 -1
- package/dist/{config-CYcBF478.mjs → config-DlrsduwG.mjs} +17 -11
- package/dist/{created-devices-CqeBlrEn.mjs → created-devices-x9rN6bhs.mjs} +13 -3
- package/dist/{dependency-state-BbKQW83h.mjs → dependency-state-1I9KZT1Y.mjs} +2 -2
- package/dist/{detached-entry-DFRyG1_o.mjs → detached-entry-BwNEtIrP.mjs} +1 -1
- package/dist/{dev-client-UOeESKm6.mjs → dev-client-BSDR5h3F.mjs} +2 -2
- package/dist/{device-ExJq8Ei7.mjs → device-B-L3Fbxy.mjs} +71 -14
- package/dist/{device-DCxH7_By.mjs → device-DklWZLqb.mjs} +16 -16
- package/dist/{device-capacity-CMlqEcvw.mjs → device-capacity-DK5_EwRS.mjs} +9 -10
- package/dist/device-host-worker.mjs +25 -32
- package/dist/{device-ios-DRUeKaFV.mjs → device-ios-DoB6KFCO.mjs} +39 -16
- package/dist/{device-lease-run-C8raGFoP.mjs → device-lease-run-xJPQ_QQG.mjs} +5 -5
- package/dist/{device-pool-DMRpVX9a.mjs → device-pool-BMkdsefq.mjs} +3 -3
- package/dist/{doctor-DTvaDOda.mjs → doctor-Bo7BXLux.mjs} +24 -37
- package/dist/{doctor-Dhqebm0q.mjs → doctor-D5_EzwfA.mjs} +19 -16
- package/dist/doctor-fingerprint-DZLoYFVb.mjs +16 -0
- package/dist/doctor-fingerprint.mjs +1 -1
- package/dist/{doctor-BLHCYxzi.mjs → doctor-thjWAV0z.mjs} +1 -1
- package/dist/{doctor-watchman-Cv1F10Kj.mjs → doctor-watchman-N2wDotwQ.mjs} +5 -5
- package/dist/{eas-build-BomfRnFT.mjs → eas-build-CwknaQYj.mjs} +4 -4
- package/dist/{eas-fallback-DJwZpy0c.mjs → eas-fallback-CSgAulr5.mjs} +27 -18
- package/dist/{eas-session-ledger-op6A54yi.mjs → eas-session-ledger-DlY_serQ.mjs} +8 -7
- package/dist/{error-diagnostics-Bf0rZvG9.mjs → error-diagnostics-DBWO2rxE.mjs} +10 -10
- package/dist/{exec-_UbtCQcG.mjs → exec-DEoAhcze.mjs} +155 -47
- package/dist/{exec-H20xSg2T.d.mts → exec-DnYc4HGH.d.mts} +17 -4
- package/dist/{gc-_-dCXdyL.mjs → gc-CXxN-4SE.mjs} +587 -313
- package/dist/gc-DnNDQyaP.mjs +3 -0
- package/dist/{guide-Yqwt2bd6.mjs → guide-Br0LEfKy.mjs} +239 -43
- package/dist/{hosted-android-Bw-honsd.mjs → hosted-android-B-9f-jkd.mjs} +6 -6
- package/dist/{hosted-client-DB_gBPfY.mjs → hosted-client-DZAPrcro.mjs} +4 -4
- package/dist/{hosted-ios-CUvOf4Vr.mjs → hosted-ios-CsCS21hn.mjs} +1 -1
- package/dist/{hosted-logs-DL_P5AdN.mjs → hosted-logs-FIRx9X2f.mjs} +5 -5
- package/dist/{hosted-macos-QI141yKk.mjs → hosted-macos-_awYSpfv.mjs} +21 -12
- package/dist/{hosted-native-Ksyjgzq-.mjs → hosted-native-BdzE668-.mjs} +27 -14
- package/dist/{idle-BVeRGroT.d.mts → idle-C4cZ757K.d.mts} +3 -3
- package/dist/{idle-shutdown-DaKmZi0z.mjs → idle-shutdown-DDg3SdvY.mjs} +7 -7
- package/dist/ios-CDvlmUs7.d.mts +24 -0
- package/dist/{ios-CQ68hG9s.mjs → ios-Ds1clbIt.mjs} +8 -8
- package/dist/{ios-device-CwFMehUS.mjs → ios-device--h_-8ENa.mjs} +3 -3
- package/dist/{ios-device-CXGP1bsD.mjs → ios-device-BXZ0c7Kb.mjs} +1 -1
- package/dist/{ios-CpByZy12.mjs → ios-hcBpnEGk.mjs} +81 -34
- package/dist/{ios-ubFsBzwq.mjs → ios-pm4nL6By.mjs} +59 -50
- package/dist/{ios-project-WuwwBdvW.mjs → ios-project-CZhKODF3.mjs} +5 -5
- package/dist/{ios-signing-DTTIChGs.mjs → ios-signing-BtAffm0A.mjs} +2 -2
- package/dist/{ios-state-DvFX-K_l.mjs → ios-state-Dtw5K2aI.mjs} +1 -1
- package/dist/{ios-qNJt4dFm.mjs → ios-xtlRHaeB.mjs} +1 -1
- package/dist/{js-swap-Cc1dttps.mjs → js-swap-Bwhh4S7V.mjs} +7 -29
- package/dist/{launch-Zq2mOSDy.mjs → launch-BjxemNpK.mjs} +40 -39
- package/dist/{launch-CD1yVc7U.mjs → launch-CCzXlc8r.mjs} +16 -16
- package/dist/{logs-BS00Anxf.mjs → logs-BfwwadsZ.mjs} +151 -24
- package/dist/{logs-CMm05HxN.mjs → logs-jTS_lHSo.mjs} +10 -17
- package/dist/{macos-B65--pPd.mjs → macos-DVlSSyUg.mjs} +1 -1
- package/dist/{macos-C-0qJ6zq.mjs → macos-NfV2D7dO.mjs} +143 -46
- package/dist/macos-run.mjs +1 -1
- package/dist/maintenance-run.mjs +8 -8
- package/dist/{metro-DEXpIhHC.mjs → metro-DiXtA3Ty.mjs} +59 -37
- package/dist/{metro-gateway-BMJNlj3E.mjs → metro-gateway-CKZqKqx7.mjs} +120 -22
- package/dist/{named-ports-BWTzt6mu.mjs → named-ports-DkEzOfzO.mjs} +40 -33
- package/dist/{native-android-JACyjTZs.mjs → native-android-CqgnOgsT.mjs} +43 -242
- package/dist/native-gradle-artifact-inputs-DHFnmrVf.mjs +270 -0
- package/dist/{native-gradle-inputs-Bep9JcSF.mjs → native-gradle-inputs-Dnh84Zbd.mjs} +3 -129
- package/dist/{native-run-DY_RLx3C.mjs → native-run-NwUuxbkg.mjs} +4 -5
- package/dist/{native-runtime-Dg1Q7tfF.mjs → native-runtime-B7KIafpM.mjs} +8 -7
- package/dist/native-source-Y0yLhFyQ.mjs +133 -0
- package/dist/{native-xcode-inputs-CB2iQeWq.mjs → native-xcode-inputs-D_VOfFL7.mjs} +2 -3
- package/dist/{native-xcode-ios-CXX39F7o.mjs → native-xcode-ios-BYDOHWLN.mjs} +27 -32
- package/dist/offload-worker.d.mts +65 -2
- package/dist/offload-worker.mjs +305 -73
- package/dist/operation-exec-BW0em61G.mjs +171 -0
- package/dist/{ownership-DEmM5vhh.mjs → ownership-C5fo5Edb.mjs} +3 -3
- package/dist/{page-CPaHeYqj.mjs → page-DBL2PiUU.mjs} +8 -4
- package/dist/{placement-log-BqGbTa61.mjs → placement-log-BnGgJRRZ.mjs} +1 -1
- package/dist/{plan-placement-Bwj-IjY1.mjs → plan-placement-DIsMtN-d.mjs} +12 -8
- package/dist/{ports-D-MmCTdv.mjs → ports-Cy1RkmuQ.mjs} +3 -3
- package/dist/{prebuild-uD_ipCxF.mjs → prebuild-D4JoEAEs.mjs} +49 -14
- package/dist/{project-BZNjmW_8.mjs → project-wM_XFTvE.mjs} +16 -16
- package/dist/{pull-request-Lfetn8Kr.mjs → pull-request-W1IuLXDt.mjs} +102 -20
- package/dist/{pull-request-zjCSAryH.d.mts → pull-request-eODyIqZF.d.mts} +6 -2
- package/dist/pull-requests.d.mts +2 -2
- package/dist/pull-requests.mjs +2 -2
- package/dist/{react-native-android-DuzH0cn3.mjs → react-native-android-6OZ7MSM7.mjs} +71 -48
- package/dist/{react-native-build-rhk4smwQ.mjs → react-native-build-Dvd8hC21.mjs} +8 -8
- package/dist/{react-native-doctor-CQpuIMso.mjs → react-native-doctor-DsoSF1Y9.mjs} +7 -7
- package/dist/{react-native-ios-Bhq1rJeV.mjs → react-native-ios-4u1Rn-GR.mjs} +40 -26
- package/dist/{recordings-DYteQSu4.mjs → recordings-CQmfzAh7.mjs} +1 -1
- package/dist/registration-BcRgF6Ox.mjs +51 -0
- package/dist/{reload-CmTRFJaX.mjs → reload-BzkYabB-.mjs} +16 -15
- package/dist/{reload-DzjSl5P_.mjs → reload-D7AVlb8N.mjs} +1 -1
- package/dist/{remote-ByYkXdGD.mjs → remote-DjGDmlTZ.mjs} +18 -15
- package/dist/{result-DNiS-tTP.mjs → result-D2Ykz_iD.mjs} +24 -23
- package/dist/{run-D23HmJMs.mjs → run-DidHghD1.mjs} +3 -2
- package/dist/{selection-CSl9i5qU.mjs → selection-DSMbWEX2.mjs} +6 -5
- package/dist/{server-bare-CxTrvDg8.mjs → server-bare-CafzuyFB.mjs} +2 -2
- package/dist/{server-command-CtzloH3v.mjs → server-command-C6QjeupS.mjs} +5 -5
- package/dist/{server-expo-DT_F_uVI.mjs → server-expo-CrjB29pq.mjs} +7 -5
- package/dist/server-expo-D58c9L0M.mjs +2 -0
- package/dist/{settings-CsJDEXgK.mjs → settings-C7O8A6ZI.mjs} +223 -243
- package/dist/{settings-T1gtc3bf.mjs → settings-DpR-1Wnn.mjs} +1 -1
- package/dist/{settings-write-HyVZ8eQ8.mjs → settings-write-CzD60rOD.mjs} +7 -6
- package/dist/settings.schema.json +13 -0
- package/dist/{simslim-Cgk17SXV.mjs → simslim-BNckWpXi.mjs} +2 -2
- package/dist/{slot-launch-DF8VfT64.mjs → slot-launch-CbfmNgM6.mjs} +6 -6
- package/dist/{stage-BIS0ydsV.mjs → stage-Bps5oius.mjs} +21 -4
- package/dist/{start-RChynRDp.mjs → start-Br-oxqMD.mjs} +1 -1
- package/dist/{start-7lpH7hmN.mjs → start-EojN4WFz.mjs} +622 -393
- package/dist/{state-C4ZtUisW.mjs → state--smjFSTL.mjs} +22 -7
- package/dist/{state-XMziexv2.mjs → state-08I3hw3_.mjs} +2 -2
- package/dist/{stats-53T7OTb9.mjs → stats-D3GerlFW.mjs} +5 -5
- package/dist/{stats-report-BFfMpWWF.mjs → stats-report-BzaPrRm6.mjs} +1 -1
- package/dist/{status-DqEUSSxs.mjs → status-BRROykC8.mjs} +2 -2
- package/dist/{status-CSi6tlRq.mjs → status-EvrK72L2.mjs} +1 -1
- package/dist/{status-BL7jVyAB.mjs → status-WBDajew2.mjs} +43 -29
- package/dist/{status-watch-GDCfqpTE.mjs → status-watch-Bg_u-pwR.mjs} +48 -16
- package/dist/status-worker.mjs +1 -1
- package/dist/{stim-desktop-C12we7lz.mjs → stim-desktop-D5OGpYZM.mjs} +2 -2
- package/dist/{stop-Bk_1qiV6.mjs → stop-DTZ9uTw3.mjs} +2 -2
- package/dist/{stop-D7h6jAXQ.mjs → stop-Dky10AEJ.mjs} +31 -22
- package/dist/{stop-CPzlM1L-.mjs → stop-Mv6W9FAk.mjs} +15 -16
- package/dist/supervisor-run.d.mts +3 -3
- package/dist/supervisor-run.mjs +28 -36
- package/dist/{support-Dlu37g6H.mjs → support-CNioewsd.mjs} +10 -10
- package/dist/{support-67vraa1Q.mjs → support-yUiOjnVY.mjs} +8 -8
- package/dist/swiftpm-artifact-inputs-DFcGsXDP.mjs +153 -0
- package/dist/swiftpm-macos-BIak-Rxv.mjs +532 -0
- package/dist/toolchain-BY8X8HXx.mjs +2 -0
- package/dist/{toolchain-Hp9sCpK4.mjs → toolchain-DpJMHq0n.mjs} +9 -6
- package/dist/{trigger-BAahxUPq.mjs → trigger-Cbyc41d_.mjs} +3 -3
- package/dist/trigger-yb_nFzPF.mjs +2 -0
- package/dist/{warm-progress-BHX5r0Ei.mjs → warm-progress-CA3TgT3-.mjs} +29 -16
- package/dist/web-CZ07gd77.mjs +2 -0
- package/dist/{web-CJmIj6AI.mjs → web-DKx6yoFA.mjs} +11 -10
- package/dist/web-run.mjs +11 -9
- package/dist/windows-report.mjs +1 -1
- package/dist/{workspace-state-Cjuigeeu.mjs → workspace-state-U08dEzhG.mjs} +3 -3
- package/dist/{workspaces-BccMFmGQ.mjs → workspaces-CpANmBlq.mjs} +594 -266
- package/dist/{worktree-DQ6Zi2Mv.mjs → worktree-CHecZ4Oq.mjs} +850 -551
- package/dist/worktree-ZqZVjD9K.mjs +2 -0
- package/dist/{xcode-Zlx3qjEs.mjs → xcode-BXn9-xYx.mjs} +5 -5
- package/package.json +7 -7
- package/shim/android-audio/Main.java +24 -0
- package/shim/android-audio/README.md +17 -0
- package/shim/android-audio.jar +0 -0
- package/dist/gc-C-WwL0yi.mjs +0 -3
- package/dist/git-C3iTsJaZ.mjs +0 -73
- package/dist/server-expo-C-90EhcG.mjs +0 -2
- package/dist/settings-DkdmlelE.d.mts +0 -15
- package/dist/swiftpm-macos-p8WZbxKU.mjs +0 -130
- package/dist/toolchain-DhKwp9iI.mjs +0 -2
- package/dist/trigger-Bf3uDcpv.mjs +0 -2
- package/dist/web-DknQETPs.mjs +0 -2
- package/dist/workspace-process-lock-1_1OoVW5.mjs +0 -57
- package/dist/worktree-CK2MpJW5.mjs +0 -2
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as withDrainingCancellation } from "./exec-DEoAhcze.mjs";
|
|
2
2
|
import { d as workspaceDir, m as workspaceLogsDir } from "./paths-DQtTgsBf.mjs";
|
|
3
|
-
import { E as upsertProject, p as getProject, u as getConcurrencyLimits } from "./config-
|
|
4
|
-
import { l as phaseLine } from "./command-output-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { E as upsertProject, p as getProject, u as getConcurrencyLimits } from "./config-DlrsduwG.mjs";
|
|
4
|
+
import { l as phaseLine } from "./command-output-gwpm28fu.mjs";
|
|
5
|
+
import { d as cancelledError, f as throwIfCancelled } from "./operation-exec-BW0em61G.mjs";
|
|
6
|
+
import { i as recordWorkspaceUse } from "./workspace-state-U08dEzhG.mjs";
|
|
7
|
+
import { G as resolveCacheProviderConfig, J as resolveProjectSettingsAsync, a as SETTING_SHAPE_REMEDY } from "./settings-C7O8A6ZI.mjs";
|
|
8
|
+
import { f as projectRegistry, v as detectIsExpo } from "./project-wM_XFTvE.mjs";
|
|
8
9
|
import { r as createNdjsonWriter } from "./ndjson-CgE_o3Dl.mjs";
|
|
9
|
-
import { B as recordFinishedBuild, Bn as checkEasAuth, H as tapBuildLog, J as recordRunStats, Jn as resolveRemote, U as createRunRecorder, V as startBuildProgress, W as readRunEstimates, Y as statsProjectKey, Yn as uploadRemote } from "./budget-
|
|
10
|
-
import { d as runCancellationSignal, f as withNativeBuildRun } from "./native-run-
|
|
11
|
-
import {
|
|
12
|
-
import { F as waitForBuild, M as acquireBuildLock, P as releaseBuildLock } from "./activity-
|
|
13
|
-
import { p as providerUploadOutcome } from "./build-cache-
|
|
14
|
-
import {
|
|
15
|
-
import { m as listIosRuntimes } from "./ios-
|
|
16
|
-
import { s as workspaceShareURL } from "./stim-desktop-
|
|
10
|
+
import { B as recordFinishedBuild, Bn as checkEasAuth, H as tapBuildLog, J as recordRunStats, Jn as resolveRemote, U as createRunRecorder, V as startBuildProgress, W as readRunEstimates, Y as statsProjectKey, Yn as uploadRemote } from "./budget-Cvwn54qV.mjs";
|
|
11
|
+
import { d as runCancellationSignal, f as withNativeBuildRun } from "./native-run-NwUuxbkg.mjs";
|
|
12
|
+
import { I as acquireBuildSlot, R as releaseBuildSlot } from "./workspaces-CpANmBlq.mjs";
|
|
13
|
+
import { F as waitForBuild, M as acquireBuildLock, P as releaseBuildLock } from "./activity-CMLmzp7o.mjs";
|
|
14
|
+
import { p as providerUploadOutcome } from "./build-cache-Dv7RN200.mjs";
|
|
15
|
+
import { k as hostSystemImageArch } from "./android-C7sVmyI9.mjs";
|
|
16
|
+
import { m as listIosRuntimes } from "./ios-hcBpnEGk.mjs";
|
|
17
|
+
import { s as workspaceShareURL } from "./stim-desktop-D5OGpYZM.mjs";
|
|
17
18
|
import { d as optimizationBuildProfile, l as artifactCachePolicy } from "./errors-ccaPc4ox.mjs";
|
|
18
|
-
import { p as readBundleId } from "./xcode-
|
|
19
|
-
import {
|
|
20
|
-
import { s as resolveBuildPlacement } from "./selection-
|
|
21
|
-
import { c as iosProjectPathError, g as resolveIosBuildSetup, m as resolveConfiguration, x as simulatorBuildArch, y as resolveSchemeSelection } from "./support-
|
|
22
|
-
import { n as ensureWorkspaceStorageSafely } from "./native-runtime-
|
|
23
|
-
import { t as acquireAndroidArtifact } from "./artifact-
|
|
24
|
-
import { i as persistLastBuild, n as finishAndroidUpload, s as resolveAndroidBuildPlan } from "./result-
|
|
25
|
-
import { a as lastBuildRecord } from "./ios-project-
|
|
26
|
-
import { t as acquireIosArtifact } from "./artifact-
|
|
19
|
+
import { p as readBundleId } from "./xcode-BXn9-xYx.mjs";
|
|
20
|
+
import { h as setRemoteLogSink } from "./client-OyRoEuSr.mjs";
|
|
21
|
+
import { s as resolveBuildPlacement } from "./selection-DSMbWEX2.mjs";
|
|
22
|
+
import { c as iosProjectPathError, g as resolveIosBuildSetup, m as resolveConfiguration, x as simulatorBuildArch, y as resolveSchemeSelection } from "./support-CNioewsd.mjs";
|
|
23
|
+
import { n as ensureWorkspaceStorageSafely } from "./native-runtime-B7KIafpM.mjs";
|
|
24
|
+
import { t as acquireAndroidArtifact } from "./artifact-DJPy518Y.mjs";
|
|
25
|
+
import { i as persistLastBuild, n as finishAndroidUpload, s as resolveAndroidBuildPlan } from "./result-D2Ykz_iD.mjs";
|
|
26
|
+
import { a as lastBuildRecord } from "./ios-project-CZhKODF3.mjs";
|
|
27
|
+
import { t as acquireIosArtifact } from "./artifact-8EY8SAPw.mjs";
|
|
27
28
|
import { constants, promises } from "node:fs";
|
|
28
29
|
import { basename, join } from "node:path";
|
|
29
30
|
import { hostSimulatorArch } from "@stim-cli/core";
|
|
30
31
|
import { loadCacheProvider } from "@stim-cli/cache";
|
|
31
32
|
//#region src/commands/android/build.ts
|
|
32
|
-
async function buildAndroidOperation(context, root, options, {
|
|
33
|
+
async function buildAndroidOperation(context, root, options, { artifactScope, cachePolicy } = {}) {
|
|
33
34
|
const note = (line) => context.output("stderr", `${line}\n`);
|
|
34
35
|
const selected = projectRegistry.selectAndroid(root);
|
|
35
36
|
if ("problem" in selected) throw Object.assign(new Error(selected.problem.message), {
|
|
@@ -132,12 +133,15 @@ async function buildAndroidOperation(context, root, options, { cacheArtifacts =
|
|
|
132
133
|
writer,
|
|
133
134
|
recipe: integration.artifact({
|
|
134
135
|
operation: context,
|
|
135
|
-
|
|
136
|
+
artifactScope,
|
|
136
137
|
root,
|
|
137
138
|
buildLog,
|
|
138
139
|
writer,
|
|
139
140
|
settings,
|
|
140
|
-
buildPlan:
|
|
141
|
+
buildPlan: {
|
|
142
|
+
...plan.plan.build,
|
|
143
|
+
...cachePolicy ? { cache: cachePolicy } : {}
|
|
144
|
+
},
|
|
141
145
|
target: { abi },
|
|
142
146
|
phase,
|
|
143
147
|
out: note,
|
|
@@ -148,7 +152,10 @@ async function buildAndroidOperation(context, root, options, { cacheArtifacts =
|
|
|
148
152
|
})
|
|
149
153
|
}),
|
|
150
154
|
targetOffloadRefusal: null,
|
|
151
|
-
buildPlan:
|
|
155
|
+
buildPlan: {
|
|
156
|
+
...plan.plan.build,
|
|
157
|
+
...cachePolicy ? { cache: cachePolicy } : {}
|
|
158
|
+
},
|
|
152
159
|
cacheProviderConfig: plan.plan.cacheProviderConfig,
|
|
153
160
|
requestedBuildCache: options.buildCache !== false,
|
|
154
161
|
easBuild: null,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as withDrainingCancellation, t as getExecutor } from "./exec-DEoAhcze.mjs";
|
|
2
2
|
import { i as sharedBuildCache } from "./paths-DQtTgsBf.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { r as register } from "./cache-manifest-
|
|
3
|
+
import { a as killOnAbort, c as gitQuiet, f as throwIfCancelled, o as git, r as childEnvironment } from "./operation-exec-BW0em61G.mjs";
|
|
4
|
+
import { m as defaultAndroidLayout } from "./settings-C7O8A6ZI.mjs";
|
|
5
|
+
import { r as register } from "./cache-manifest-DSeQjt-Q.mjs";
|
|
6
6
|
import { createHash } from "node:crypto";
|
|
7
7
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
8
8
|
import { join } from "node:path";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { y as trackReportResource } from "./exec-DEoAhcze.mjs";
|
|
2
|
+
import { i as formatDuration, l as phaseLine, m as shortHash, u as plural } from "./command-output-gwpm28fu.mjs";
|
|
3
|
+
import { Ht as makeTemporaryDirectory, Wt as removeTemporaryEntryAsync } from "./settings-C7O8A6ZI.mjs";
|
|
4
|
+
import { G as readStats, L as estimateBuild, Vn as easAuthNote } from "./budget-Cvwn54qV.mjs";
|
|
5
|
+
import { o as entryDir, t as artifactIn } from "./build-cache-Dv7RN200.mjs";
|
|
6
|
+
import { a as staleNativeDirRefusal, c as predictBuildMiss } from "./prebuild-D4JoEAEs.mjs";
|
|
6
7
|
import chalk from "chalk";
|
|
7
|
-
import { resolveTieredBuild } from "@stim-cli/cache";
|
|
8
|
+
import { PROVIDER_LOAD_TIMEOUT_ENV, PROVIDER_LOAD_TIMEOUT_MS, buildResolveTimeoutMs, resolveTieredBuild, timeoutFromEnv } from "@stim-cli/cache";
|
|
8
9
|
//#region src/commands/build-plan.ts
|
|
9
10
|
const DISCARD = {
|
|
10
11
|
file: "",
|
|
@@ -28,16 +29,53 @@ async function providerHit({ root, platform, cacheKey, providerConfig }, deps) {
|
|
|
28
29
|
deps.note(chalk.yellow(phaseLine("cache", `provider not checked: ${error?.message || error}`)));
|
|
29
30
|
return null;
|
|
30
31
|
}
|
|
32
|
+
let pending = Promise.resolve();
|
|
33
|
+
const cleanupFailure = Object.assign(/* @__PURE__ */ new Error(`Cache provider cleanup did not finish within 35 seconds. Retained ${destinationDir}.`), {
|
|
34
|
+
code: "STIM_CLAIM_UNAVAILABLE",
|
|
35
|
+
reportCleanup: true,
|
|
36
|
+
remedy: "Confirm that no cache work is still using the retained download directory before inspecting its permissions and removing it."
|
|
37
|
+
});
|
|
38
|
+
let cleanup;
|
|
39
|
+
let close;
|
|
40
|
+
const closed = new Promise((resolve) => {
|
|
41
|
+
close = resolve;
|
|
42
|
+
});
|
|
43
|
+
const finish = () => cleanup ??= finishProviderDownload(pending, destinationDir, cleanupFailure).finally(() => close());
|
|
44
|
+
trackReportResource(deps.operation, closed, finish, deps.operation?.signal, cleanupFailure);
|
|
31
45
|
try {
|
|
32
46
|
const found = await resolveTieredBuild({
|
|
33
47
|
local: {
|
|
34
48
|
resolve: () => null,
|
|
35
49
|
store: () => null
|
|
36
50
|
},
|
|
37
|
-
loadProvider: () =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
51
|
+
loadProvider: async () => {
|
|
52
|
+
const loaded = await deps.loadCacheProvider({
|
|
53
|
+
projectRoot: root,
|
|
54
|
+
config: providerConfig,
|
|
55
|
+
...deps.operation ? { env: deps.operation.env } : {},
|
|
56
|
+
timeoutMs: timeoutFromEnv(PROVIDER_LOAD_TIMEOUT_ENV, PROVIDER_LOAD_TIMEOUT_MS, deps.operation?.env)
|
|
57
|
+
});
|
|
58
|
+
const capability = loaded?.provider?.builds;
|
|
59
|
+
if (!capability) return loaded;
|
|
60
|
+
return {
|
|
61
|
+
...loaded,
|
|
62
|
+
provider: {
|
|
63
|
+
...loaded.provider,
|
|
64
|
+
builds: {
|
|
65
|
+
store: capability.store.bind(capability),
|
|
66
|
+
resolve: (request) => {
|
|
67
|
+
const resolving = Promise.resolve().then(() => capability.resolve(request));
|
|
68
|
+
pending = resolving.then(() => void 0, (cause) => {
|
|
69
|
+
if (cause instanceof Error && "reportCleanup" in cause) throw cause;
|
|
70
|
+
});
|
|
71
|
+
return resolving;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
signal: deps.operation?.signal,
|
|
78
|
+
timeoutMs: buildResolveTimeoutMs(deps.operation?.env),
|
|
41
79
|
target: {
|
|
42
80
|
projectRoot: root,
|
|
43
81
|
platform,
|
|
@@ -48,13 +86,31 @@ async function providerHit({ root, platform, cacheKey, providerConfig }, deps) {
|
|
|
48
86
|
});
|
|
49
87
|
return found ? found.providerName ?? "the cache provider" : null;
|
|
50
88
|
} finally {
|
|
51
|
-
|
|
89
|
+
await finish();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
async function finishProviderDownload(pending, destinationDir, cleanupFailure) {
|
|
93
|
+
let timer;
|
|
94
|
+
if (!await Promise.race([pending.then(() => true), new Promise((resolve) => {
|
|
95
|
+
timer = setTimeout(() => resolve(false), 35e3);
|
|
96
|
+
})]).finally(() => clearTimeout(timer))) throw cleanupFailure;
|
|
97
|
+
try {
|
|
98
|
+
await removeTemporaryEntryAsync(destinationDir);
|
|
99
|
+
} catch (cause) {
|
|
100
|
+
throw Object.assign(new Error(`Cache provider download cleanup failed. Retained ${destinationDir}.`, { cause }), {
|
|
101
|
+
code: "STIM_CLAIM_UNAVAILABLE",
|
|
102
|
+
reportCleanup: true,
|
|
103
|
+
remedy: "Check the retained directory permissions and remove it before retrying."
|
|
104
|
+
});
|
|
52
105
|
}
|
|
53
106
|
}
|
|
54
107
|
async function expoRemoteHit(lookup, deps) {
|
|
55
108
|
if (!lookup.expoRemote) return null;
|
|
56
109
|
const { root, platform, isExpo, fingerprint } = lookup;
|
|
57
|
-
const loaded = await deps.loadProjectProvider(root, {
|
|
110
|
+
const loaded = await deps.loadProjectProvider(root, {
|
|
111
|
+
isExpo,
|
|
112
|
+
context: deps.operation
|
|
113
|
+
});
|
|
58
114
|
if (loaded?.unavailable) {
|
|
59
115
|
deps.note(chalk.yellow(phaseLine("cache", `provider not usable: ${loaded.unavailable}`)));
|
|
60
116
|
return null;
|
|
@@ -63,6 +119,7 @@ async function expoRemoteHit(lookup, deps) {
|
|
|
63
119
|
const name = loaded.name ?? "the build cache provider";
|
|
64
120
|
if (name === "eas") {
|
|
65
121
|
const auth = await deps.checkEasAuth({
|
|
122
|
+
context: deps.operation,
|
|
66
123
|
projectRoot: root,
|
|
67
124
|
owner: loaded.owner || null
|
|
68
125
|
});
|
|
@@ -71,6 +128,7 @@ async function expoRemoteHit(lookup, deps) {
|
|
|
71
128
|
if (auth?.code === "logged-out") return null;
|
|
72
129
|
}
|
|
73
130
|
const hit = await deps.resolveRemote({
|
|
131
|
+
context: deps.operation,
|
|
74
132
|
provider: loaded.provider,
|
|
75
133
|
platform,
|
|
76
134
|
projectRoot: root,
|
|
@@ -84,6 +142,7 @@ async function expoRemoteHit(lookup, deps) {
|
|
|
84
142
|
}
|
|
85
143
|
async function planCachedBuild(lookup, deps) {
|
|
86
144
|
const { root, platform, isExpo, fingerprint, sources, cacheKey, cachePolicy } = lookup;
|
|
145
|
+
deps.operation?.signal.throwIfAborted();
|
|
87
146
|
let cacheHit = false;
|
|
88
147
|
let provider = null;
|
|
89
148
|
if (cachePolicy.read) {
|
|
@@ -93,15 +152,16 @@ async function planCachedBuild(lookup, deps) {
|
|
|
93
152
|
if (provider) cacheHit = "remote";
|
|
94
153
|
}
|
|
95
154
|
}
|
|
155
|
+
deps.operation?.signal.throwIfAborted();
|
|
96
156
|
let prebuild = null;
|
|
97
157
|
let refusal = null;
|
|
98
158
|
let missReason;
|
|
99
159
|
if (!cacheHit) {
|
|
100
|
-
prebuild = deps.planPrebuild(root, platform, {
|
|
160
|
+
prebuild = await deps.planPrebuild(root, platform, {
|
|
101
161
|
isExpo,
|
|
102
162
|
fingerprint,
|
|
103
163
|
sources
|
|
104
|
-
});
|
|
164
|
+
}, deps.operation?.signal);
|
|
105
165
|
if (prebuild === "refuse") refusal = staleNativeDirRefusal(platform);
|
|
106
166
|
else if (cachePolicy.read) missReason = predictBuildMiss({
|
|
107
167
|
root,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as getConfigDir } from "./config-
|
|
1
|
+
import { d as getConfigDir } from "./config-DlrsduwG.mjs";
|
|
2
2
|
import { cacheDirRefusal, readCacheManifest, updateCacheManifest } from "@stim-cli/core";
|
|
3
3
|
import { join, resolve } from "path";
|
|
4
4
|
import { existsSync } from "fs";
|
package/dist/cache-manifest.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as unregister, i as registeredCaches, n as readManifest, r as register, t as manifestPath } from "./cache-manifest-
|
|
1
|
+
import { a as unregister, i as registeredCaches, n as readManifest, r as register, t as manifestPath } from "./cache-manifest-DSeQjt-Q.mjs";
|
|
2
2
|
export { manifestPath, readManifest, register, registeredCaches, unregister };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as getExecutor } from "./exec-
|
|
1
|
+
import { t as getExecutor } from "./exec-DEoAhcze.mjs";
|
|
2
2
|
import { a as sharedCcache, m as workspaceLogsDir } from "./paths-DQtTgsBf.mjs";
|
|
3
|
-
import { _ as loadConfig } from "./config-
|
|
4
|
-
import { l as phaseLine } from "./command-output-
|
|
5
|
-
import { m as defaultAndroidLayout } from "./settings-
|
|
6
|
-
import { r as register } from "./cache-manifest-
|
|
7
|
-
import { o as machineNumber } from "./budget-
|
|
3
|
+
import { _ as loadConfig } from "./config-DlrsduwG.mjs";
|
|
4
|
+
import { l as phaseLine } from "./command-output-gwpm28fu.mjs";
|
|
5
|
+
import { m as defaultAndroidLayout } from "./settings-C7O8A6ZI.mjs";
|
|
6
|
+
import { r as register } from "./cache-manifest-DSeQjt-Q.mjs";
|
|
7
|
+
import { o as machineNumber } from "./budget-Cvwn54qV.mjs";
|
|
8
8
|
import { readFileSync, realpathSync } from "node:fs";
|
|
9
9
|
import { isAbsolute, join, relative } from "node:path";
|
|
10
10
|
import chalk from "chalk";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as cancelledError, f as throwIfCancelled } from "./operation-exec-BW0em61G.mjs";
|
|
2
2
|
import { WebSocket } from "ws";
|
|
3
3
|
//#region src/web/cdp.ts
|
|
4
4
|
const COMMAND_TIMEOUT_MS = 15e3;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { y as refuseRelativeStimPaths } from "./config-
|
|
1
|
+
import { b as debugLog } from "./exec-DEoAhcze.mjs";
|
|
2
|
+
import { y as refuseRelativeStimPaths } from "./config-DlrsduwG.mjs";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { runId } from "@stim-cli/core/state";
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
//#region bin/cli.ts
|
|
7
7
|
const commands = /* @__PURE__ */ new Map([
|
|
8
|
-
["doctor", () => import("./doctor-
|
|
9
|
-
["worktree", () => import("./worktree-
|
|
10
|
-
["start", () => import("./start-
|
|
11
|
-
["ports", () => import("./ports-
|
|
12
|
-
["stop", () => import("./stop-
|
|
13
|
-
["ios", () => import("./ios-
|
|
14
|
-
["android", () => import("./android-
|
|
15
|
-
["web", () => import("./web-
|
|
16
|
-
["macos", () => import("./macos-
|
|
17
|
-
["reload", () => import("./reload-
|
|
18
|
-
["device", () => import("./device-
|
|
19
|
-
["logs", () => import("./logs-
|
|
20
|
-
["settings", () => import("./settings-
|
|
21
|
-
["status", () => import("./status-
|
|
22
|
-
["stats", () => import("./stats-
|
|
23
|
-
["gc", () => import("./gc-
|
|
24
|
-
["guide", () => import("./guide-
|
|
8
|
+
["doctor", () => import("./doctor-thjWAV0z.mjs")],
|
|
9
|
+
["worktree", () => import("./worktree-ZqZVjD9K.mjs")],
|
|
10
|
+
["start", () => import("./start-Br-oxqMD.mjs")],
|
|
11
|
+
["ports", () => import("./ports-Cy1RkmuQ.mjs")],
|
|
12
|
+
["stop", () => import("./stop-DTZ9uTw3.mjs")],
|
|
13
|
+
["ios", () => import("./ios-Ds1clbIt.mjs")],
|
|
14
|
+
["android", () => import("./android-DGkNqa_c.mjs")],
|
|
15
|
+
["web", () => import("./web-CZ07gd77.mjs")],
|
|
16
|
+
["macos", () => import("./macos-DVlSSyUg.mjs")],
|
|
17
|
+
["reload", () => import("./reload-D7AVlb8N.mjs")],
|
|
18
|
+
["device", () => import("./device-DklWZLqb.mjs")],
|
|
19
|
+
["logs", () => import("./logs-jTS_lHSo.mjs")],
|
|
20
|
+
["settings", () => import("./settings-DpR-1Wnn.mjs")],
|
|
21
|
+
["status", () => import("./status-EvrK72L2.mjs")],
|
|
22
|
+
["stats", () => import("./stats-D3GerlFW.mjs")],
|
|
23
|
+
["gc", () => import("./gc-DnNDQyaP.mjs")],
|
|
24
|
+
["guide", () => import("./guide-Br0LEfKy.mjs")]
|
|
25
25
|
]);
|
|
26
26
|
const pkg = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf-8"));
|
|
27
27
|
const program = new Command();
|
|
@@ -52,7 +52,7 @@ try {
|
|
|
52
52
|
}));
|
|
53
53
|
}
|
|
54
54
|
try {
|
|
55
|
-
const { triggerMaintenance } = await import("./trigger-
|
|
55
|
+
const { triggerMaintenance } = await import("./trigger-yb_nFzPF.mjs");
|
|
56
56
|
triggerMaintenance(action.name());
|
|
57
57
|
} catch {}
|
|
58
58
|
});
|
package/dist/cli.mjs
CHANGED
|
@@ -4,6 +4,6 @@ const encode = (version) => version.split(".", 3).reduce((sum, part) => sum * 1e
|
|
|
4
4
|
if (encode(process.versions.node) < encode("22.12.0")) {
|
|
5
5
|
process.stderr.write(`STIM_NODE_UNSUPPORTED: Stim needs Node 22.12.0 or later; this is Node ${process.versions.node} at ${process.execPath}. To run Stim where a project pins an older Node, see https://stim.appandflow.com/docs/requirements#older-node-pins\n`);
|
|
6
6
|
process.exitCode = 1;
|
|
7
|
-
} else import("./cli-
|
|
7
|
+
} else import("./cli-CHZa9Lvk.mjs");
|
|
8
8
|
//#endregion
|
|
9
9
|
export {};
|