stim 1.33.0 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acquire-artifact-DTh_LxrE.mjs → acquire-artifact-0E_iw7Rf.mjs} +1 -1
- package/dist/{act-Cur4YKtK.mjs → act-CyxFP8Vj.mjs} +9 -10
- package/dist/{activity-C8kBq9w0.mjs → activity-BQpJpAjA.mjs} +2 -2
- package/dist/{agent-device-usage-output-BTRaK_up.mjs → agent-device-usage-output-BoOC3ZF9.mjs} +3 -3
- package/dist/{android-D5mCdVl2.mjs → android-CjcJE7uA.mjs} +5 -5
- package/dist/{android-BL-QqHjc.mjs → android-YRb1UzSy.mjs} +27 -29
- package/dist/{android-project-BDlPnfmL.d.mts → android-project-DhO6el8N.d.mts} +1 -1
- package/dist/api.d.mts +1 -1
- package/dist/api.mjs +21 -21
- package/dist/{artifact-BufzdGbT.mjs → artifact-2NIRz6SC.mjs} +19 -15
- package/dist/{artifact-BMjubIP2.mjs → artifact-BG4h_WTC.mjs} +11 -11
- package/dist/{auto-placement-D7P98glJ.mjs → auto-placement-CBdWa87P.mjs} +4 -5
- package/dist/{browser-web-C74et-Nv.mjs → browser-web-CNlRugJv.mjs} +5 -5
- package/dist/{build-DFBGWOTc.mjs → build-CNE3Wo5-.mjs} +15 -16
- package/dist/build-artifact-cache-D7B6seMj.mjs +174 -0
- package/dist/build-artifact-cache.d.mts +25 -0
- package/dist/build-artifact-cache.mjs +2 -0
- package/dist/{build-cache-Cqj4FGnX.mjs → build-cache-_fkewiwH.mjs} +6 -1
- package/dist/{build-plan-T3Hi24ax.mjs → build-plan-BSgR9yKo.mjs} +5 -5
- package/dist/{cli-B2YSjc9s.mjs → cli-DK24VzHi.mjs} +17 -17
- package/dist/cli.mjs +1 -1
- package/dist/{client-0_Mnfz0a.mjs → client-Dy0eJJtz.mjs} +49 -11
- package/dist/{command-output-DWI9tGPU.mjs → command-output-CGxrQ3Bd.mjs} +1 -1
- package/dist/{dependencies-CgvBZbXD.mjs → dependencies-IVl2Ga2D.mjs} +27 -30
- package/dist/{dev-client-ChsHwgrn.mjs → dev-client-DDApoVvd.mjs} +2 -2
- package/dist/{device-android-B8TQP5AX.mjs → device-android-C-biM49_.mjs} +3 -3
- package/dist/{ccache-BXtzEL6M.mjs → device-capacity-C0PiTyRb.mjs} +1004 -63
- package/dist/device-host-worker.mjs +6 -7
- package/dist/{device-B0htCt2u.mjs → device-mOFYiHiw.mjs} +8 -8
- package/dist/{device-DOehZpyx.mjs → device-p_cp8IzW.mjs} +6 -6
- package/dist/{device-pool-DP4sCeCC.mjs → device-pool-nsMvt2X2.mjs} +2 -2
- package/dist/{device-provision-CnNOIxCF.mjs → device-provision-BYYJuRKZ.mjs} +7 -7
- package/dist/{doctor-C6Xn96RS.mjs → doctor-BBAb8NLe.mjs} +1 -1
- package/dist/{doctor-9GrW5YSP.mjs → doctor-BptE4PaK.mjs} +10 -11
- package/dist/{doctor-nRLBoajo.mjs → doctor-RosbBfTV.mjs} +11 -12
- package/dist/doctor-fingerprint.mjs +1 -1
- package/dist/{doctor-watchman-CDhpC3Oh.mjs → doctor-watchman-CKOnCINh.mjs} +2 -2
- package/dist/{eas-build-CpJ4h9tG.mjs → eas-build-BxJdzQnF.mjs} +2 -2
- package/dist/{eas-fallback-B3z5nL1g.mjs → eas-fallback-DU2WDF8r.mjs} +2 -2
- package/dist/{eas-session-ledger-Bspy-VJQ.mjs → eas-session-ledger-DCUfh6m7.mjs} +1 -1
- package/dist/{error-diagnostics-DoLGklYX.mjs → error-diagnostics-D6wlK-yX.mjs} +3 -3
- package/dist/{gc-DolXpMSB.mjs → gc-BUkonUfz.mjs} +10 -10
- package/dist/{gc-BWoOp9q7.mjs → gc-CvMEytXz.mjs} +2 -2
- package/dist/{guide-CmZB0GtP.mjs → guide-BWozWG7D.mjs} +25 -15
- package/dist/{hosted-android-ByG-ICuh.mjs → hosted-android-y6K3DKQT.mjs} +2 -2
- package/dist/{hosted-client-D19Lv0tg.mjs → hosted-client-Bb89P6an.mjs} +2 -2
- package/dist/{hosted-logs-D7anR6Dk.mjs → hosted-logs-DYPsnWMF.mjs} +2 -2
- package/dist/{hosted-logs-sync-D182b1eJ.mjs → hosted-logs-sync-DfUJ2GpF.mjs} +4 -4
- package/dist/{hosted-macos-D0DDQxvl.mjs → hosted-macos-DsEzYVY_.mjs} +4 -4
- package/dist/{hosted-native-BzXIy97W.mjs → hosted-native-C9xQYYFb.mjs} +4 -4
- package/dist/{ios-AdhPKXO3.mjs → ios-BCKxjpRp.mjs} +8 -8
- package/dist/{ios-dbXzjTxx.mjs → ios-FhMkDfNC.mjs} +19 -21
- package/dist/{ios-device-DXbHZfFe.mjs → ios-device-DMOnaH5n.mjs} +1 -1
- package/dist/{ios-project-BzfLigfh.mjs → ios-project-PXBDoaii.mjs} +5 -5
- package/dist/ios-signing-CCFNjjWU.mjs +202 -0
- package/dist/{js-swap-EDVOJmqx.mjs → js-swap-07ikLRJJ.mjs} +3 -3
- package/dist/{launch-CKHpthsw.mjs → launch-CTq5gBim.mjs} +13 -13
- package/dist/{lightened-Cv4ToJRX.mjs → lightened-DikgC3-S.mjs} +2 -2
- package/dist/{logs-IagR9dWI.mjs → logs-DwI3Rkpf.mjs} +5 -5
- package/dist/{logs-DCQ3_tGS.mjs → logs-YDMfEohb.mjs} +3 -3
- package/dist/{macos-Ch7vuM-G.mjs → macos-BoNM-l6f.mjs} +14 -14
- package/dist/{macos-pc0aVVbN.mjs → macos-C_e9f5-5.mjs} +1 -1
- package/dist/maintenance-run.mjs +3 -3
- package/dist/{native-android-B3CEDq4R.mjs → native-android-Mv4YTrVN.mjs} +11 -11
- package/dist/{native-gradle-artifact-inputs-BLnO2hHR.mjs → native-gradle-artifact-inputs-C_TU6wPq.mjs} +2 -2
- package/dist/{native-runtime-e1OU8gEN.mjs → native-runtime-oDqT4UES.mjs} +3 -3
- package/dist/{native-xcode-inputs-DL3ETb8s.mjs → native-xcode-inputs-DsozghTX.mjs} +1 -1
- package/dist/{native-xcode-ios-D4e8k2Jy.mjs → native-xcode-ios-UXnH9NRY.mjs} +13 -13
- package/dist/offload-worker.d.mts +6 -1
- package/dist/offload-worker.mjs +40 -15
- package/dist/{phone-reverses-rvyxW1Fl.mjs → phone-reverses-B9WyCBKQ.mjs} +1 -1
- package/dist/{placement-log-nnGnu8mo.mjs → placement-log-D0DZLcJk.mjs} +1 -1
- package/dist/{plan-placement-D3JD-T-K.mjs → plan-placement-DqmLrWoX.mjs} +4 -4
- package/dist/{ports-CZJJfJ8Q.mjs → ports-C1_1Qgdy.mjs} +1 -1
- package/dist/{prebuild-Bhs7TTcz.mjs → prebuild-BptrXmh_.mjs} +6 -6
- package/dist/{project-DWEXiBA9.mjs → project-Dqqj3IkW.mjs} +11 -11
- package/dist/{react-native-android-C6Y270GS.mjs → react-native-android-Bsm_o4A8.mjs} +18 -18
- package/dist/{react-native-build-DaPfzf_e.mjs → react-native-build-BTUcE926.mjs} +4 -4
- package/dist/{react-native-doctor-DGMPxkPS.mjs → react-native-doctor-CfsCTKZt.mjs} +4 -4
- package/dist/{react-native-ios-dX48_92n.mjs → react-native-ios-_cK2pjZn.mjs} +25 -19
- package/dist/{reload-BGwblBJ9.mjs → reload-CXgce4Yo.mjs} +1 -1
- package/dist/{reload-DsOByDfy.mjs → reload-DsTMtMDU.mjs} +6 -6
- package/dist/{remote-D0uJZ76R.mjs → remote-BsmYHUxH.mjs} +6 -6
- package/dist/{result-DuimMZKJ.mjs → result-DK6nTO-M.mjs} +9 -10
- package/dist/{server-command-BC0EgMfY.mjs → server-command-Cu2w-UjB.mjs} +2 -2
- package/dist/{server-expo-15RjL0ir.mjs → server-expo-CjQwxvIi.mjs} +1 -1
- package/dist/server-expo-DbSypdNl.mjs +2 -0
- package/dist/{settings-CuP55ieT.mjs → settings-DcmVICCn.mjs} +2 -2
- package/dist/{settings-payload-BIGGQ3or.mjs → settings-payload-BoiFMiFq.mjs} +1 -1
- package/dist/{settings-write-D85j8mej.mjs → settings-write-B3LzEVwf.mjs} +2 -2
- package/dist/{slot-launch-D4oREwhx.mjs → slot-launch-DsQmPdlg.mjs} +2 -2
- package/dist/{stage-DKC6tDXu.mjs → stage-Dqk0qvaI.mjs} +1 -1
- package/dist/{start-BsEV4S-s.mjs → start-DIFiT2P5.mjs} +5 -5
- package/dist/{start-DfPSLc__.mjs → start-GkRBR1e3.mjs} +1 -1
- package/dist/{stats-ByEUblPr.mjs → stats-Dz08IopP.mjs} +3 -3
- package/dist/{status-C6hLlDqW.mjs → status-DhKv_e8a.mjs} +11 -12
- package/dist/{status-FP1MH9qn.mjs → status-Dost__Vn.mjs} +1 -1
- package/dist/{status-watch-D8s823CZ.mjs → status-watch-UecLnPQD.mjs} +1 -1
- package/dist/status-worker.mjs +1 -1
- package/dist/{stop-CpTy6bod.mjs → stop-CcZISot5.mjs} +2 -2
- package/dist/{stop-5LKfVv-0.mjs → stop-QFOqgICJ.mjs} +2 -2
- package/dist/{stop-BVI2-L7s.mjs → stop-vRe6TQk5.mjs} +9 -9
- package/dist/supervisor-run.mjs +7 -8
- package/dist/{support-CqyWfZZI.mjs → support-CNqJDBrH.mjs} +3 -3
- package/dist/support-DW575Dnx.mjs +2050 -0
- package/dist/{swiftpm-artifact-inputs-uq5oV7xR.mjs → swiftpm-artifact-inputs-DQTJTczX.mjs} +1 -1
- package/dist/{swiftpm-macos-BuhqYB3n.mjs → swiftpm-macos-BKczZ0k9.mjs} +4 -4
- package/dist/{toolchain-D_jotUG7.mjs → toolchain-BDlugtoh.mjs} +1 -1
- package/dist/{toolchain-s5ZmG42Z.mjs → toolchain-DRQyCvlp.mjs} +406 -8
- package/dist/web-D1m1LKEz.mjs +2 -0
- package/dist/{web-DwYCTFdh.mjs → web-TDWjHUT3.mjs} +3 -3
- package/dist/web-run.mjs +1 -1
- package/dist/{workspaces-B3ahAHZc.mjs → workspaces-CY3KSdC0.mjs} +2 -2
- package/dist/{worktree-CrjsPIs2.mjs → worktree-D6myrQ2H.mjs} +1 -1
- package/dist/{worktree-BhsML6GV.mjs → worktree-fKKe8j5M.mjs} +10 -10
- package/package.json +12 -7
- package/dist/device-capacity-BAkETfIl.mjs +0 -867
- package/dist/device-ios-DFaYFdar.mjs +0 -716
- package/dist/device-lease-run-DpiCnRbZ.mjs +0 -282
- package/dist/idle-shutdown-6i8CHoNq.mjs +0 -142
- package/dist/ios-signing-D-tSX1iF.mjs +0 -489
- package/dist/selection-xS50Mt0V.mjs +0 -791
- package/dist/server-expo-gYIypb0-.mjs +0 -2
- package/dist/support-D8OH0z98.mjs +0 -287
- package/dist/web-cCfM8kwV.mjs +0 -2
|
@@ -1,33 +1,31 @@
|
|
|
1
1
|
import { a as recordWorkspaceUseAsync, k as workspaceLogsDir$1 } from "./workspace-state-BdZ-QgmB.mjs";
|
|
2
|
-
import { _ as stepTimer, g as stepClock, i as formatDuration, l as phaseLine } from "./command-output-
|
|
2
|
+
import { _ as stepTimer, g as stepClock, i as formatDuration, l as phaseLine } from "./command-output-CGxrQ3Bd.mjs";
|
|
3
3
|
import { _t as validateDeviceSlot, mt as parseDeviceSlotOption, ut as deviceSlotFileKey } from "./config-BW0fAtoK.mjs";
|
|
4
4
|
import { B as publicUrlSetting, C as iosSigningIdentitySettingError, F as metroWarmupUrlSetting, N as metroPortSetting, S as iosSigningIdentitySetting, T as iosSigningIdentitySha1SettingError, a as SETTING_SHAPE_REMEDY, g as deviceReclaimIdleMinutesSetting, ot as tunnelModeSetting, v as iosLanHostSetting, w as iosSigningIdentitySha1Setting, y as iosLanHostSettingError, z as projectSettingsContextAsync } from "./settings-B5IBDfTx.mjs";
|
|
5
|
-
import { t as NO_PROJECT_REFUSAL } from "./project-
|
|
5
|
+
import { t as NO_PROJECT_REFUSAL } from "./project-Dqqj3IkW.mjs";
|
|
6
6
|
import { bt as parkedMaxSetting, mt as POOL_SETTING_REMEDY } from "./android-Iq0M2t2d.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import { $ as tapBuildLog, H as NO_BUILD_PROGRESS, Q as startBuildProgress, Z as runFailureRecord, et as thrownRunFailureRecord, lt as statsProjectKey$1, rt as createRunRecorder } from "./workspaces-
|
|
9
|
-
import {
|
|
7
|
+
import { Hn as exitAfterFlush, Wn as runProcessOperation, dr as ownedSessionName, qt as binOnPath, yn as DEFAULT_METRO_PORT } from "./device-capacity-C0PiTyRb.mjs";
|
|
8
|
+
import { $ as tapBuildLog, H as NO_BUILD_PROGRESS, Q as startBuildProgress, Z as runFailureRecord, et as thrownRunFailureRecord, lt as statsProjectKey$1, rt as createRunRecorder } from "./workspaces-CY3KSdC0.mjs";
|
|
9
|
+
import { A as COMPILATION_CACHE_NOT_RUN, _t as runCancellationSignal, gt as runCancellation, lt as cancelledFailure, vt as withNativeBuildRun } from "./toolchain-DRQyCvlp.mjs";
|
|
10
10
|
import { i as createIosSimSnapshot } from "./ios-BdZdNsAj.mjs";
|
|
11
11
|
import { d as optimizationBuildProfile, l as artifactCachePolicy } from "./errors-DHm_U5gv.mjs";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { C as setRemoteLogSink, d as simulatorRuntime } from "./client-Dy0eJJtz.mjs";
|
|
13
|
+
import { N as parseBuildMachineOption, W as leaseExpiryText, X as waitFlagConflict, _ as resolveIosWait, a as deviceModelRefusal, b as resolveSimulatorAppFlag, c as iosProjectPathError, d as ownedSimFailure, g as resolveIosBuildSetup, h as resolveDeviceType, i as deviceLabel, m as resolveConfiguration, n as buildLogFile, r as createIosDeviceWaitRun, u as isReleaseConfiguration, v as resolveRuntime, x as simulatorBuildArch, y as resolveSchemeSelection } from "./support-DW575Dnx.mjs";
|
|
14
14
|
import { i as hostedMetroSettings } from "./metro-request-2LmFpC1z.mjs";
|
|
15
15
|
import { i as writeDevicePlacementAsync } from "./ios-state-CWsBysyN.mjs";
|
|
16
|
-
import { t as devClientPortBusy } from "./hosted-native-
|
|
17
|
-
import { i as restoreLightenedDependencies, n as printLightenedFailure } from "./lightened-
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { r as
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
23
|
-
import "./dev-client-ChsHwgrn.mjs";
|
|
24
|
-
import { t as didSetUpDevice } from "./device-DOehZpyx.mjs";
|
|
16
|
+
import { t as devClientPortBusy } from "./hosted-native-C9xQYYFb.mjs";
|
|
17
|
+
import { i as restoreLightenedDependencies, n as printLightenedFailure } from "./lightened-DikgC3-S.mjs";
|
|
18
|
+
import { r as isEasBuildFailure } from "./eas-build-BxJdzQnF.mjs";
|
|
19
|
+
import { a as iosPoolCandidates, c as isWirelessIosDevice, f as resolveIosPhysicalDevice, o as iosPoolNoCandidatesRefusal, r as iosDeviceBounds } from "./ios-device-DMOnaH5n.mjs";
|
|
20
|
+
import { i as launchOutcomeRecord, r as isPhysicalDeviceRequest, t as ensureDevServer } from "./native-runtime-oDqT4UES.mjs";
|
|
21
|
+
import "./dev-client-DDApoVvd.mjs";
|
|
22
|
+
import { t as didSetUpDevice } from "./device-p_cp8IzW.mjs";
|
|
25
23
|
import { t as unsupportedPlan } from "./project-plan-BPwbLwQu.mjs";
|
|
26
|
-
import { a as refusePlan, i as printPlan, n as planFlagRefusal } from "./build-plan-
|
|
27
|
-
import { a as iosLedgerDevice, c as writeLastBuild, o as lastBuildRecord, s as reportIosResult } from "./ios-project-
|
|
28
|
-
import { t as acquireIosArtifact } from "./artifact-
|
|
29
|
-
import { a as hostedIosSelectors, i as hostedIosMetroNote, n as connectIosTarget, o as iosPlacementBudget, r as deviceRemoteConflict, s as selectIosPlacement, t as connectIosBackend } from "./remote-
|
|
30
|
-
import { i as lanOriginUrlFor, l as verifyIosMetroRun, n as chooseLanAddress, o as finishIosRun, t as DEFAULT_DEPS } from "./dependencies-
|
|
24
|
+
import { a as refusePlan, i as printPlan, n as planFlagRefusal } from "./build-plan-BSgR9yKo.mjs";
|
|
25
|
+
import { a as iosLedgerDevice, c as writeLastBuild, o as lastBuildRecord, s as reportIosResult } from "./ios-project-PXBDoaii.mjs";
|
|
26
|
+
import { t as acquireIosArtifact } from "./artifact-2NIRz6SC.mjs";
|
|
27
|
+
import { a as hostedIosSelectors, i as hostedIosMetroNote, n as connectIosTarget, o as iosPlacementBudget, r as deviceRemoteConflict, s as selectIosPlacement, t as connectIosBackend } from "./remote-BsmYHUxH.mjs";
|
|
28
|
+
import { i as lanOriginUrlFor, l as verifyIosMetroRun, n as chooseLanAddress, o as finishIosRun, t as DEFAULT_DEPS } from "./dependencies-IVl2Ga2D.mjs";
|
|
31
29
|
import { join } from "node:path";
|
|
32
30
|
import { workspaceId } from "@stim-cli/core";
|
|
33
31
|
import { hostedIosStatus, parseMachine } from "@stim-cli/core/state";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as getExecutor } from "./exec-CGuDzt40.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { bn as INSTALL_ERROR, wn as appProcessFromPid } from "./device-capacity-C0PiTyRb.mjs";
|
|
3
3
|
import { n as TOOL_ERROR_PREFIX } from "./ios-device-DLdEDWJj.mjs";
|
|
4
4
|
import { mkdtempSync, readFileSync, rmSync } from "node:fs";
|
|
5
5
|
import { tmpdir } from "node:os";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { w as workspaceAgentDeviceDir } from "./workspace-state-BdZ-QgmB.mjs";
|
|
2
|
-
import { i as formatDuration, l as phaseLine } from "./command-output-
|
|
2
|
+
import { i as formatDuration, l as phaseLine } from "./command-output-CGxrQ3Bd.mjs";
|
|
3
3
|
import { a as workspaceLinkLine } from "./stim-desktop-_WTria-r.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { X as recordFinishedBuild } from "./workspaces-
|
|
6
|
-
import { A as COMPILATION_CACHE_NOT_RUN, F as compilationCacheActivityLine } from "./toolchain-
|
|
7
|
-
import { i as deviceLabel } from "./support-
|
|
4
|
+
import { Kn as UPLOAD_TIMEOUT_MS, Xn as isEasAuthFailureText, Yn as easAuthNote, qn as cacheLevel } from "./device-capacity-C0PiTyRb.mjs";
|
|
5
|
+
import { X as recordFinishedBuild } from "./workspaces-CY3KSdC0.mjs";
|
|
6
|
+
import { A as COMPILATION_CACHE_NOT_RUN, F as compilationCacheActivityLine } from "./toolchain-DRQyCvlp.mjs";
|
|
7
|
+
import { i as deviceLabel } from "./support-DW575Dnx.mjs";
|
|
8
8
|
import { buildDiagnostics } from "@stim-cli/core/state";
|
|
9
9
|
import chalk from "chalk";
|
|
10
10
|
//#region src/commands/ios/result.ts
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { d as throwIfCancelled, t as getExecutor } from "./exec-CGuDzt40.mjs";
|
|
2
|
+
import { a as killOnAbort, r as childEnvironment } from "./operation-exec-DKlBcKAL.mjs";
|
|
3
|
+
import { at as profileGate, it as parseSigningIdentities, ot as signingGate, rt as parseProvisioningProfilePlist, tt as SIGNING_CODES } from "./toolchain-DRQyCvlp.mjs";
|
|
4
|
+
import { existsSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
5
|
+
import { tmpdir } from "node:os";
|
|
6
|
+
import { join } from "node:path";
|
|
7
|
+
//#region src/engine/ios-signing.ts
|
|
8
|
+
const EMBEDDED_PROFILE = "embedded.mobileprovision";
|
|
9
|
+
const SIGNING_TIMEOUT_MS = 12e4;
|
|
10
|
+
function lastLines(text, count = 5) {
|
|
11
|
+
return String(text ?? "").split(/\r?\n/).map((line) => line.trimEnd()).filter((line) => line.trim() !== "").slice(-count);
|
|
12
|
+
}
|
|
13
|
+
function errorText(error) {
|
|
14
|
+
const withOutput = error;
|
|
15
|
+
const stderr = String(withOutput?.stderr ?? "").trim();
|
|
16
|
+
const stdout = String(withOutput?.stdout ?? "").trim();
|
|
17
|
+
return stderr || stdout || String(withOutput?.message ?? error);
|
|
18
|
+
}
|
|
19
|
+
async function signingCommand(file, args, { exec, env, signal }) {
|
|
20
|
+
throwIfCancelled(signal, "iOS signing");
|
|
21
|
+
try {
|
|
22
|
+
const output = await (exec || getExecutor()).runFileAsync(file, args, {
|
|
23
|
+
timeoutMs: SIGNING_TIMEOUT_MS,
|
|
24
|
+
...env ? childEnvironment(env) : {},
|
|
25
|
+
onSpawn: killOnAbort(signal)
|
|
26
|
+
});
|
|
27
|
+
throwIfCancelled(signal, "iOS signing");
|
|
28
|
+
return output;
|
|
29
|
+
} catch (error) {
|
|
30
|
+
throwIfCancelled(signal, "iOS signing");
|
|
31
|
+
throw error;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
async function readEmbeddedProfile(appPath, options = {}) {
|
|
35
|
+
throwIfCancelled(options.signal, "iOS signing");
|
|
36
|
+
const path = join(appPath, EMBEDDED_PROFILE);
|
|
37
|
+
if (!existsSync(path)) return {
|
|
38
|
+
present: false,
|
|
39
|
+
profile: null
|
|
40
|
+
};
|
|
41
|
+
const plist = await decodeProvisioningProfile(path, options);
|
|
42
|
+
return {
|
|
43
|
+
present: true,
|
|
44
|
+
profile: plist === null ? null : parseProvisioningProfilePlist(plist)
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
async function decodeProvisioningProfile(path, options = {}) {
|
|
48
|
+
try {
|
|
49
|
+
return await signingCommand("/usr/bin/openssl", [
|
|
50
|
+
"smime",
|
|
51
|
+
"-verify",
|
|
52
|
+
"-noverify",
|
|
53
|
+
"-inform",
|
|
54
|
+
"DER",
|
|
55
|
+
"-in",
|
|
56
|
+
path
|
|
57
|
+
], options);
|
|
58
|
+
} catch {
|
|
59
|
+
throwIfCancelled(options.signal, "iOS signing");
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
async function findSigningIdentities(options = {}) {
|
|
64
|
+
return await probeSigningIdentities(options) ?? [];
|
|
65
|
+
}
|
|
66
|
+
/** The keychain's code signing identities, or null when `security find-identity` itself failed. */
|
|
67
|
+
async function probeSigningIdentities(options = {}) {
|
|
68
|
+
try {
|
|
69
|
+
return parseSigningIdentities(await signingCommand("security", [
|
|
70
|
+
"find-identity",
|
|
71
|
+
"-v",
|
|
72
|
+
"-p",
|
|
73
|
+
"codesigning"
|
|
74
|
+
], options));
|
|
75
|
+
} catch {
|
|
76
|
+
throwIfCancelled(options.signal, "iOS signing");
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
async function gateProfileForDevice(options) {
|
|
81
|
+
const read = await readEmbeddedProfile(options.appPath, options);
|
|
82
|
+
return profileGate({
|
|
83
|
+
profilePresent: read.present,
|
|
84
|
+
profile: read.profile,
|
|
85
|
+
identities: [],
|
|
86
|
+
udid: options.udid,
|
|
87
|
+
configuration: options.configuration ?? null,
|
|
88
|
+
...options.now === void 0 ? {} : { now: options.now }
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
async function gateAppForDevice(options) {
|
|
92
|
+
const read = await readEmbeddedProfile(options.appPath, options);
|
|
93
|
+
return signingGate({
|
|
94
|
+
profilePresent: read.present,
|
|
95
|
+
profile: read.profile,
|
|
96
|
+
identities: read.present ? await findSigningIdentities(options) : [],
|
|
97
|
+
udid: options.udid,
|
|
98
|
+
configuration: options.configuration ?? null,
|
|
99
|
+
pinnedName: options.pinnedName ?? null,
|
|
100
|
+
pinnedSha1: options.pinnedSha1 ?? null,
|
|
101
|
+
...options.now === void 0 ? {} : { now: options.now }
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
async function extractEntitlements(appPath, options) {
|
|
105
|
+
try {
|
|
106
|
+
return String(await signingCommand("codesign", [
|
|
107
|
+
"-d",
|
|
108
|
+
"--entitlements",
|
|
109
|
+
"-",
|
|
110
|
+
"--xml",
|
|
111
|
+
appPath
|
|
112
|
+
], options)).trim();
|
|
113
|
+
} catch {
|
|
114
|
+
throwIfCancelled(options.signal, "iOS signing");
|
|
115
|
+
return "";
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
async function resealBundle({ appPath, identity, ...options }) {
|
|
119
|
+
const signAs = identity.sha1 || identity.name;
|
|
120
|
+
let mode = "preserve-metadata";
|
|
121
|
+
let preserveError = null;
|
|
122
|
+
try {
|
|
123
|
+
await signingCommand("codesign", [
|
|
124
|
+
"--force",
|
|
125
|
+
"--sign",
|
|
126
|
+
signAs,
|
|
127
|
+
"--preserve-metadata=identifier,entitlements,flags,runtime",
|
|
128
|
+
appPath
|
|
129
|
+
], options);
|
|
130
|
+
} catch (error) {
|
|
131
|
+
throwIfCancelled(options.signal, "iOS signing");
|
|
132
|
+
preserveError = error;
|
|
133
|
+
}
|
|
134
|
+
let tempDir = null;
|
|
135
|
+
if (preserveError) {
|
|
136
|
+
const entitlements = await extractEntitlements(appPath, options);
|
|
137
|
+
const args = [
|
|
138
|
+
"--force",
|
|
139
|
+
"--sign",
|
|
140
|
+
signAs
|
|
141
|
+
];
|
|
142
|
+
if (entitlements !== "") {
|
|
143
|
+
tempDir = mkdtempSync(join(tmpdir(), "stim-entitlements-"));
|
|
144
|
+
const plist = join(tempDir, "entitlements.plist");
|
|
145
|
+
writeFileSync(plist, `${entitlements}\n`, "utf-8");
|
|
146
|
+
args.push("--entitlements", plist);
|
|
147
|
+
mode = "entitlements";
|
|
148
|
+
} else mode = "no-entitlements";
|
|
149
|
+
args.push(appPath);
|
|
150
|
+
try {
|
|
151
|
+
await signingCommand("codesign", args, options);
|
|
152
|
+
} catch (error) {
|
|
153
|
+
throwIfCancelled(options.signal, "iOS signing");
|
|
154
|
+
return {
|
|
155
|
+
ok: false,
|
|
156
|
+
code: SIGNING_CODES.codesignFailed,
|
|
157
|
+
reason: `codesign could not re-seal ${appPath} with "${identity.name}": ${errorText(error)}`,
|
|
158
|
+
remedy: `Unlock the login keychain (\`security unlock-keychain\`) and confirm exactly one identity matches "${identity.name}".`,
|
|
159
|
+
lastLines: [...lastLines(errorText(preserveError)), ...lastLines(errorText(error))]
|
|
160
|
+
};
|
|
161
|
+
} finally {
|
|
162
|
+
if (tempDir) rmSync(tempDir, {
|
|
163
|
+
recursive: true,
|
|
164
|
+
force: true
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
try {
|
|
169
|
+
await signingCommand("codesign", [
|
|
170
|
+
"--verify",
|
|
171
|
+
"--strict",
|
|
172
|
+
appPath
|
|
173
|
+
], options);
|
|
174
|
+
} catch (error) {
|
|
175
|
+
throwIfCancelled(options.signal, "iOS signing");
|
|
176
|
+
return {
|
|
177
|
+
ok: false,
|
|
178
|
+
code: SIGNING_CODES.codesignFailed,
|
|
179
|
+
reason: `codesign --verify --strict rejected ${appPath} after re-sealing it with "${identity.name}": ${errorText(error)}`,
|
|
180
|
+
remedy: "The bundle signed but did not seal. Delete the cached artifact with `stim gc --delete` and build fresh, then retry.",
|
|
181
|
+
lastLines: lastLines(errorText(error))
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
return {
|
|
185
|
+
ok: true,
|
|
186
|
+
identity,
|
|
187
|
+
mode
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
async function sealAppForDevice(options) {
|
|
191
|
+
const gate = await gateAppForDevice(options);
|
|
192
|
+
if (!gate.ok) return {
|
|
193
|
+
...gate,
|
|
194
|
+
lastLines: []
|
|
195
|
+
};
|
|
196
|
+
return resealBundle({
|
|
197
|
+
...options,
|
|
198
|
+
identity: gate.identity
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
//#endregion
|
|
202
|
+
export { sealAppForDevice as a, probeSigningIdentities as i, findSigningIdentities as n, gateProfileForDevice as r, decodeProvisioningProfile as t };
|
|
@@ -2,9 +2,9 @@ import { C as operationState, b as spawnDeclared, d as throwIfCancelled, t as ge
|
|
|
2
2
|
import { r as waitForChild, t as createLineReader } from "./process-output-Fpl8PYi8.mjs";
|
|
3
3
|
import { a as killOnAbort, t as runOperationFile } from "./operation-exec-DKlBcKAL.mjs";
|
|
4
4
|
import { an as makeTemporaryDirectory, on as removeTemporaryEntry } from "./settings-B5IBDfTx.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { K as tailLines, M as HEARTBEAT_INTERVAL_MS, W as startBuildHeartbeat } from "./toolchain-
|
|
7
|
-
import { s as expoTelemetryEnv, t as cleanLine } from "./server-expo-
|
|
5
|
+
import { ir as bundleInvocation } from "./device-capacity-C0PiTyRb.mjs";
|
|
6
|
+
import { K as tailLines, M as HEARTBEAT_INTERVAL_MS, W as startBuildHeartbeat } from "./toolchain-DRQyCvlp.mjs";
|
|
7
|
+
import { s as expoTelemetryEnv, t as cleanLine } from "./server-expo-CjQwxvIi.mjs";
|
|
8
8
|
import { randomUUID } from "node:crypto";
|
|
9
9
|
import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
|
|
10
10
|
import { basename, join } from "node:path";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { w as withDrainingCancellation } from "./exec-CGuDzt40.mjs";
|
|
2
2
|
import { k as workspaceLogsDir } from "./workspace-state-BdZ-QgmB.mjs";
|
|
3
|
-
import { _ as stepTimer, c as launchErrorReport, i as formatDuration, l as phaseLine, n as appReadinessMessage, v as launchErrorPreview } from "./command-output-
|
|
3
|
+
import { _ as stepTimer, c as launchErrorReport, i as formatDuration, l as phaseLine, n as appReadinessMessage, v as launchErrorPreview } from "./command-output-CGxrQ3Bd.mjs";
|
|
4
4
|
import { D as upsertProject, T as setDevice, dt as deviceSlotKey, ft as deviceSlotPlatforms, k as withConfigLockAsync, rt as formatBytes, ut as deviceSlotFileKey, v as loadConfig, w as saveConfig } from "./config-BW0fAtoK.mjs";
|
|
5
|
-
import { L as workspaceDevServerMode } from "./project-
|
|
5
|
+
import { L as workspaceDevServerMode } from "./project-Dqqj3IkW.mjs";
|
|
6
6
|
import { o as workspaceLinks } from "./stim-desktop-_WTria-r.mjs";
|
|
7
7
|
import { ct as trimAndroidCaches, i as androidDataFreeBytes, rt as resetAdoptedAvd, u as androidToolCwd } from "./android-Iq0M2t2d.mjs";
|
|
8
8
|
import { c as pidExists, f as signalProcessTree } from "./metro-B5PVz0Wv.mjs";
|
|
9
|
-
import {
|
|
10
|
-
import { pt as teardownOwnedAvd } from "./workspaces-
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
9
|
+
import { Cn as androidDevClientUrl, Ln as restartedAppNote, Sn as androidAppProcess, an as LAUNCH_UNVERIFIED, cn as VERIFY_TIMEOUT_MS, fn as unattributedLaunchLines, in as LAUNCH_FATAL, jn as installConflictKind, pn as unverifiedLaunchLines, rn as LAUNCH_BUNDLING, sn as RELEASE_VERIFY_WAIT_MS, vn as ADB_INSTALL_TIMEOUT_MS } from "./device-capacity-C0PiTyRb.mjs";
|
|
10
|
+
import { pt as teardownOwnedAvd } from "./workspaces-CY3KSdC0.mjs";
|
|
11
|
+
import { C as providerUploadOutcome } from "./build-cache-_fkewiwH.mjs";
|
|
12
|
+
import { G as lostLine, K as lostRefusal, z as DEBUG_VERIFY_STEP_MS } from "./support-DW575Dnx.mjs";
|
|
13
|
+
import { t as recordPhoneReverse } from "./phone-reverses-B9WyCBKQ.mjs";
|
|
13
14
|
import { n as verifyCollectorOwnership, r as readCollectors } from "./ownership-hC7xvvxF.mjs";
|
|
14
|
-
import { n as nativeRunCommand, r as siblingPlatformSlots, t as launchSlotScope } from "./slot-launch-
|
|
15
|
+
import { n as nativeRunCommand, r as siblingPlatformSlots, t as launchSlotScope } from "./slot-launch-DsQmPdlg.mjs";
|
|
15
16
|
import { t as spawnEntry } from "./spawn-entry-jw19m8Nl.mjs";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { a as
|
|
21
|
-
import { a as persistLastBuild, n as finishAndroidUpload, s as reportAndroidResult } from "./result-DuimMZKJ.mjs";
|
|
17
|
+
import { a as captureNativeCrashes, r as androidCrashClockOffset, s as printNativeCrashReport, t as errorDiagnostics } from "./error-diagnostics-D6wlK-yX.mjs";
|
|
18
|
+
import { f as settleFingerprintCheck } from "./prebuild-BptrXmh_.mjs";
|
|
19
|
+
import { i as launchOutcomeRecord } from "./native-runtime-oDqT4UES.mjs";
|
|
20
|
+
import { a as PLATFORM, b as noDeviceDiagnostic, h as displayPath, n as LAUNCH_FAILED, r as NO_DEVICE, t as INSTALL_FAILED } from "./support-CNqJDBrH.mjs";
|
|
21
|
+
import { a as persistLastBuild, n as finishAndroidUpload, s as reportAndroidResult } from "./result-DK6nTO-M.mjs";
|
|
22
22
|
import { mkdirSync, openSync, statSync } from "node:fs";
|
|
23
23
|
import { basename, join } from "node:path";
|
|
24
24
|
import { ambientEnv } from "@stim-cli/core";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { f as WorkspaceProcessCleanupError } from "./exec-CGuDzt40.mjs";
|
|
2
2
|
import { c as withWorkspaceStateLock } from "./workspace-state-BdZ-QgmB.mjs";
|
|
3
|
-
import { l as phaseLine } from "./command-output-
|
|
3
|
+
import { l as phaseLine } from "./command-output-CGxrQ3Bd.mjs";
|
|
4
4
|
import { Jt as warmWorktreePaths, Lt as podsOutOfSync, Q as resolveSettings, Rt as readWorktreeExclude, kt as listCarryableIgnoredEntries, vt as depsOutOfSync } from "./settings-B5IBDfTx.mjs";
|
|
5
5
|
import { t as canonicalPath } from "./paths-BsJMoPP2.mjs";
|
|
6
|
-
import { m as warmWorktreeTarget } from "./worktree-
|
|
6
|
+
import { m as warmWorktreeTarget } from "./worktree-fKKe8j5M.mjs";
|
|
7
7
|
import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
8
8
|
import { basename, dirname, join, relative } from "node:path";
|
|
9
9
|
import { isJsonObject, readJsonObject, workspaceLightenedFile, workspaceMetadataFile } from "@stim-cli/core/state";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i as recordWorkspaceUse, k as workspaceLogsDir$1, r as readWorkspaceState$1 } from "./workspace-state-BdZ-QgmB.mjs";
|
|
2
|
-
import { f as refuseNoProject, v as launchErrorPreview } from "./command-output-
|
|
2
|
+
import { f as refuseNoProject, v as launchErrorPreview } from "./command-output-CGxrQ3Bd.mjs";
|
|
3
3
|
import { _ as isPathPrefix$1, mt as parseDeviceSlotOption, v as loadConfig$1 } from "./config-BW0fAtoK.mjs";
|
|
4
|
-
import { n as findCommandWorkspace } from "./project-
|
|
4
|
+
import { n as findCommandWorkspace } from "./project-Dqqj3IkW.mjs";
|
|
5
5
|
import { n as SOURCES$1, t as LEVELS$1 } from "./ndjson-CrjIsGzw.mjs";
|
|
6
|
-
import { i as followAgentActions, n as openWorkspaceLogs } from "./logs-
|
|
7
|
-
import { t as errorDiagnostics } from "./error-diagnostics-
|
|
8
|
-
import { n as followHostedLogs } from "./hosted-logs-sync-
|
|
6
|
+
import { i as followAgentActions, n as openWorkspaceLogs } from "./logs-YDMfEohb.mjs";
|
|
7
|
+
import { t as errorDiagnostics } from "./error-diagnostics-D6wlK-yX.mjs";
|
|
8
|
+
import { n as followHostedLogs } from "./hosted-logs-sync-DfUJ2GpF.mjs";
|
|
9
9
|
import { t as watchStdoutReader } from "./stdout-reader-C8yjre1x.mjs";
|
|
10
10
|
import { realpathSync } from "node:fs";
|
|
11
11
|
import { relative, sep } from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { T as process_identity_exports } from "./exec-CGuDzt40.mjs";
|
|
2
2
|
import { k as workspaceLogsDir$1 } from "./workspace-state-BdZ-QgmB.mjs";
|
|
3
3
|
import { ht as projectDeviceSlots, v as loadConfig$1 } from "./config-BW0fAtoK.mjs";
|
|
4
|
-
import { f as readAgentDeviceRecordsAsync, n as agentDeviceLiveness, o as envDir } from "./activity-
|
|
5
|
-
import { o as captureWorkspaceCrashes } from "./error-diagnostics-
|
|
6
|
-
import { n as followHostedLogs, r as syncHostedLogs } from "./hosted-logs-sync-
|
|
4
|
+
import { f as readAgentDeviceRecordsAsync, n as agentDeviceLiveness, o as envDir } from "./activity-BQpJpAjA.mjs";
|
|
5
|
+
import { o as captureWorkspaceCrashes } from "./error-diagnostics-D6wlK-yX.mjs";
|
|
6
|
+
import { n as followHostedLogs, r as syncHostedLogs } from "./hosted-logs-sync-DfUJ2GpF.mjs";
|
|
7
7
|
import { readdirSync, statSync, watch } from "node:fs";
|
|
8
8
|
import { homedir } from "node:os";
|
|
9
9
|
import { dirname, join, relative, resolve, sep } from "node:path";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { b as spawnDeclared, d as throwIfCancelled, p as withWorkspaceProcessLock, t as getExecutor, w as withDrainingCancellation } from "./exec-CGuDzt40.mjs";
|
|
2
2
|
import { E as workspaceDir, a as recordWorkspaceUseAsync, f as writeWorkspaceStateAsync, k as workspaceLogsDir$1, v as ensureWorkspaceStorageAsync, w as workspaceAgentDeviceDir } from "./workspace-state-BdZ-QgmB.mjs";
|
|
3
|
-
import { l as phaseLine } from "./command-output-
|
|
3
|
+
import { l as phaseLine } from "./command-output-CGxrQ3Bd.mjs";
|
|
4
4
|
import { D as upsertProject, k as withConfigLockAsync$1, u as getConcurrencyLimits } from "./config-BW0fAtoK.mjs";
|
|
5
5
|
import { Z as resolveProjectSettingsAsync, a as SETTING_SHAPE_REMEDY, it as settingValueAt, rt as settingShapeErrors } from "./settings-B5IBDfTx.mjs";
|
|
6
|
-
import { f as projectRegistry, i as findProjectRoot$1, s as ownedDeviceLabel } from "./project-
|
|
6
|
+
import { f as projectRegistry, i as findProjectRoot$1, s as ownedDeviceLabel } from "./project-Dqqj3IkW.mjs";
|
|
7
7
|
import { i as macosProcess, n as macosDir, o as requiredMacosRecord, r as macosLogFile } from "./state-DSOUqO-o.mjs";
|
|
8
8
|
import { i as createNdjsonWriter } from "./ndjson-CrjIsGzw.mjs";
|
|
9
|
-
import {
|
|
10
|
-
import { $ as tapBuildLog, H as NO_BUILD_PROGRESS, Q as startBuildProgress, St as acquireBuildSlot, Tt as releaseBuildSlot, X as recordFinishedBuild, Y as recordBuildPhase, tt as errorRemedy } from "./workspaces-
|
|
11
|
-
import {
|
|
9
|
+
import { Un as processContext, Wn as runProcessOperation } from "./device-capacity-C0PiTyRb.mjs";
|
|
10
|
+
import { $ as tapBuildLog, H as NO_BUILD_PROGRESS, Q as startBuildProgress, St as acquireBuildSlot, Tt as releaseBuildSlot, X as recordFinishedBuild, Y as recordBuildPhase, tt as errorRemedy } from "./workspaces-CY3KSdC0.mjs";
|
|
11
|
+
import { _t as runCancellationSignal, vt as withNativeBuildRun } from "./toolchain-DRQyCvlp.mjs";
|
|
12
12
|
import { O as sanitizeDeviceLabel } from "./ios-BdZdNsAj.mjs";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { u as connectHost } from "./hosted-client-
|
|
16
|
-
import { t as placeHostedMacos } from "./hosted-macos-
|
|
17
|
-
import { i as stopMacosAppHeld, t as stopBundleInstances } from "./stop-
|
|
13
|
+
import { C as setRemoteLogSink, c as offloadPlacement, i as closeOffload, l as placementLoad, n as buildPlacementCandidates, o as offloadBuild, r as chooseBuildMachine, u as remotePhaseText } from "./client-Dy0eJJtz.mjs";
|
|
14
|
+
import { D as OffloadRefusal, F as requireLocalBuild, L as resolveBuildPlacement, M as namedBuildMachine, N as parseBuildMachineOption, O as automaticBuild } from "./support-DW575Dnx.mjs";
|
|
15
|
+
import { u as connectHost } from "./hosted-client-Bb89P6an.mjs";
|
|
16
|
+
import { t as placeHostedMacos } from "./hosted-macos-DsEzYVY_.mjs";
|
|
17
|
+
import { i as stopMacosAppHeld, t as stopBundleInstances } from "./stop-CcZISot5.mjs";
|
|
18
18
|
import { t as spawnEntry } from "./spawn-entry-jw19m8Nl.mjs";
|
|
19
|
-
import { t as buildPlacementRecord } from "./placement-log-
|
|
20
|
-
import { n as devicePlacementLine, t as automaticDevicePlacement } from "./auto-placement-
|
|
21
|
-
import { t as reidentifyBundle } from "./stage-
|
|
19
|
+
import { t as buildPlacementRecord } from "./placement-log-D0DZLcJk.mjs";
|
|
20
|
+
import { n as devicePlacementLine, t as automaticDevicePlacement } from "./auto-placement-CBdWa87P.mjs";
|
|
21
|
+
import { t as reidentifyBundle } from "./stage-Dqk0qvaI.mjs";
|
|
22
22
|
import { t as validateMacosArtifactPlatform } from "./artifact-platform-DqCWUieN.mjs";
|
|
23
23
|
import { t as waitForMacosRegistration } from "./registration-DKjJGQ6p.mjs";
|
|
24
24
|
import { createHash, randomUUID } from "node:crypto";
|
|
@@ -344,7 +344,7 @@ async function planMacos(context, root, buildMachineFlag) {
|
|
|
344
344
|
if (selected.failure) throw Object.assign(new Error(selected.failure.message), selected.failure);
|
|
345
345
|
const macos = settings.macos;
|
|
346
346
|
if (!macos?.product || !macos.infoPlist) throw Object.assign(/* @__PURE__ */ new Error("Set macos.product and macos.infoPlist explicitly in .stim.json. See stim guide macos."), { code: "STIM_BAD_ARG" });
|
|
347
|
-
const { swiftpmMacosProject } = await import("./swiftpm-macos-
|
|
347
|
+
const { swiftpmMacosProject } = await import("./swiftpm-macos-BKczZ0k9.mjs");
|
|
348
348
|
const recipe = await swiftpmMacosProject(root).prepare(context, settings);
|
|
349
349
|
let identity = null;
|
|
350
350
|
let cacheHit = false;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as runMacos, r as waitForLaunchServices, t as macosCommand } from "./macos-
|
|
1
|
+
import { n as runMacos, r as waitForLaunchServices, t as macosCommand } from "./macos-BoNM-l6f.mjs";
|
|
2
2
|
export { macosCommand as default, runMacos, waitForLaunchServices };
|
package/dist/maintenance-run.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { rt as formatBytes } from "./config-BW0fAtoK.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as levelStillShort, Ft as deviceSweepIsScoped, Q as levelFloors, R as resolveBudget, Z as diskPressureLevel, at as maintenanceLogger, et as lowestFree, it as openGcLog, rt as maintenanceItem } from "./device-capacity-C0PiTyRb.mjs";
|
|
3
3
|
import { I as memoryCulpritsUnder, V as memoryCulpritAdvice } from "./ios-BdZdNsAj.mjs";
|
|
4
4
|
import { t as resolveMaintenanceSettings } from "./settings-D9LtQaUw.mjs";
|
|
5
|
-
import { C as sizeScanDeferred, S as measureSizes, b as measurePressure, v as measureDisk } from "./worktree-
|
|
5
|
+
import { C as sizeScanDeferred, S as measureSizes, b as measurePressure, v as measureDisk } from "./worktree-fKKe8j5M.mjs";
|
|
6
6
|
import { t as relaunchWithLogFile } from "./detached-entry-tfrgGVWb.mjs";
|
|
7
|
-
import { i as plannedMaintenance, n as diskRecovered, o as triggeringRoot, r as executeAction, v as measureOwnedDevices } from "./act-
|
|
7
|
+
import { i as plannedMaintenance, n as diskRecovered, o as triggeringRoot, r as executeAction, v as measureOwnedDevices } from "./act-CyxFP8Vj.mjs";
|
|
8
8
|
import { r as due, t as capChildLog } from "./attempt-ClyJlZPT.mjs";
|
|
9
9
|
import { releaseClaim, tryAcquireClaim } from "@stim-cli/core/ownership-claim";
|
|
10
10
|
import { randomBytes } from "node:crypto";
|
|
@@ -3,19 +3,19 @@ import { E as workspaceDir, y as sharedBuildCache } from "./workspace-state-BdZ-
|
|
|
3
3
|
import { _t as validateDeviceSlot, ft as deviceSlotPlatforms, m as getProject } from "./config-BW0fAtoK.mjs";
|
|
4
4
|
import { it as settingValueAt } from "./settings-B5IBDfTx.mjs";
|
|
5
5
|
import { H as ownedAvdDeviceProfile, J as ownedAvdSystemImage, O as findBuildTool, U as ownedAvdDirectory, l as androidSystemImageAbi, o as androidHome, z as listInstalledSystemImages } from "./android-Iq0M2t2d.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { O as resolveCcache } from "./device-capacity-C0PiTyRb.mjs";
|
|
7
7
|
import { r as register } from "./cache-manifest-8JX9S1QJ.mjs";
|
|
8
|
-
import { lt as statsProjectKey } from "./workspaces-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { d as buildGradle, l as androidSdkRefusal } from "./react-native-build-
|
|
8
|
+
import { lt as statsProjectKey } from "./workspaces-CY3KSdC0.mjs";
|
|
9
|
+
import { _t as runCancellationSignal, r as androidToolchainAsync } from "./toolchain-DRQyCvlp.mjs";
|
|
10
|
+
import { T as resolveBuild, c as entryDir, t as artifactIn } from "./build-cache-_fkewiwH.mjs";
|
|
11
|
+
import { b as nativeGradleTransfer, g as gradleOffloadInputs } from "./client-Dy0eJJtz.mjs";
|
|
12
|
+
import { d as buildGradle, l as androidSdkRefusal } from "./react-native-build-BTUcE926.mjs";
|
|
13
13
|
import { n as decideSystemImage, t as androidImageInstallPolicy } from "./android-image-DFk26aY6.mjs";
|
|
14
|
-
import { s as explainBuildMiss, u as skippedMissReason } from "./prebuild-
|
|
15
|
-
import { u as resolveAndroidRunPlan } from "./result-
|
|
16
|
-
import { n as androidProcessRuntime } from "./launch-
|
|
17
|
-
import { n as planFlagRefusal, r as planPayload } from "./build-plan-
|
|
18
|
-
import { a as nativeGradleWorkerArtifactIdentity, n as gradleArtifactInputs, r as nativeGradleArtifactSnapshot, t as NATIVE_GRADLE_CACHE_LIMIT } from "./native-gradle-artifact-inputs-
|
|
14
|
+
import { s as explainBuildMiss, u as skippedMissReason } from "./prebuild-BptrXmh_.mjs";
|
|
15
|
+
import { u as resolveAndroidRunPlan } from "./result-DK6nTO-M.mjs";
|
|
16
|
+
import { n as androidProcessRuntime } from "./launch-CTq5gBim.mjs";
|
|
17
|
+
import { n as planFlagRefusal, r as planPayload } from "./build-plan-BSgR9yKo.mjs";
|
|
18
|
+
import { a as nativeGradleWorkerArtifactIdentity, n as gradleArtifactInputs, r as nativeGradleArtifactSnapshot, t as NATIVE_GRADLE_CACHE_LIMIT } from "./native-gradle-artifact-inputs-C_TU6wPq.mjs";
|
|
19
19
|
import { createHash } from "node:crypto";
|
|
20
20
|
import { createReadStream, createWriteStream, existsSync, readFileSync, statSync } from "node:fs";
|
|
21
21
|
import { tmpdir } from "node:os";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as getExecutor } from "./exec-CGuDzt40.mjs";
|
|
2
2
|
import { r as childEnvironment } from "./operation-exec-DKlBcKAL.mjs";
|
|
3
3
|
import { o as androidHome } from "./android-Iq0M2t2d.mjs";
|
|
4
|
-
import { n as buildCacheKey } from "./build-cache-
|
|
5
|
-
import {
|
|
4
|
+
import { n as buildCacheKey } from "./build-cache-_fkewiwH.mjs";
|
|
5
|
+
import { g as gradleOffloadInputs, v as nativeGradleLocalSourceDigest } from "./client-Dy0eJJtz.mjs";
|
|
6
6
|
import { n as fingerprintNativeInputs } from "./native-inputs-TRTTTRxt.mjs";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
8
8
|
import { homedir } from "node:os";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as readWorkspaceState$1, v as ensureWorkspaceStorageAsync } from "./workspace-state-BdZ-QgmB.mjs";
|
|
2
|
-
import { l as phaseLine } from "./command-output-
|
|
2
|
+
import { l as phaseLine } from "./command-output-CGxrQ3Bd.mjs";
|
|
3
3
|
import { N as metroPortSetting } from "./settings-B5IBDfTx.mjs";
|
|
4
4
|
import { d as resolveProjectMetro } from "./metro-B5PVz0Wv.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { c as startDevServer } from "./start-
|
|
5
|
+
import { an as LAUNCH_UNVERIFIED, rn as LAUNCH_BUNDLING } from "./device-capacity-C0PiTyRb.mjs";
|
|
6
|
+
import { c as startDevServer } from "./start-DIFiT2P5.mjs";
|
|
7
7
|
import { readIdleStop } from "@stim-cli/core/state";
|
|
8
8
|
import chalk from "chalk";
|
|
9
9
|
//#region src/commands/native-runtime.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as workspaceDir, T as workspaceDerivedData } from "./workspace-state-BdZ-QgmB.mjs";
|
|
2
2
|
import { a as killOnAbort, l as gitQuietAsync, r as childEnvironment } from "./operation-exec-DKlBcKAL.mjs";
|
|
3
|
-
import { h as pbxString, m as pbxReferences } from "./project-
|
|
3
|
+
import { h as pbxString, m as pbxReferences } from "./project-Dqqj3IkW.mjs";
|
|
4
4
|
import { n as fingerprintNativeInputs, t as NativeInputError } from "./native-inputs-TRTTTRxt.mjs";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as getExecutor } from "./exec-CGuDzt40.mjs";
|
|
2
2
|
import { x as sharedCompilationCache } from "./workspace-state-BdZ-QgmB.mjs";
|
|
3
3
|
import { G as remoteIosSetting, J as resolveCacheProviderConfig, Vt as repoRootAsync, rt as settingShapeErrors } from "./settings-B5IBDfTx.mjs";
|
|
4
|
-
import { g as selectNativeXcodeProject, h as pbxString, p as NativeXcodeError } from "./project-
|
|
5
|
-
import {
|
|
4
|
+
import { g as selectNativeXcodeProject, h as pbxString, p as NativeXcodeError } from "./project-Dqqj3IkW.mjs";
|
|
5
|
+
import { Un as processContext } from "./device-capacity-C0PiTyRb.mjs";
|
|
6
6
|
import { r as register } from "./cache-manifest-8JX9S1QJ.mjs";
|
|
7
|
-
import { lt as statsProjectKey } from "./workspaces-
|
|
8
|
-
import { E as readPodState, H as readBundleId, I as compilationCacheSettings, M as HEARTBEAT_INTERVAL_MS, O as runCaptured, P as buildXcode, R as parseSwiftVersion, T as podsAreStale,
|
|
9
|
-
import {
|
|
7
|
+
import { lt as statsProjectKey } from "./workspaces-CY3KSdC0.mjs";
|
|
8
|
+
import { E as readPodState, H as readBundleId, I as compilationCacheSettings, M as HEARTBEAT_INTERVAL_MS, O as runCaptured, P as buildXcode, R as parseSwiftVersion, T as podsAreStale, _t as runCancellationSignal, c as iosToolchainAsync, k as runPodInstall, z as parseXcodeMajor } from "./toolchain-DRQyCvlp.mjs";
|
|
9
|
+
import { n as buildCacheKey, p as filesystemBuildCapability } from "./build-cache-_fkewiwH.mjs";
|
|
10
10
|
import { l as artifactCachePolicy, p as resolveOptimizations } from "./errors-DHm_U5gv.mjs";
|
|
11
|
-
import { a as nativeTransferRefusal } from "./client-
|
|
12
|
-
import { a as deviceModelRefusal, h as resolveDeviceType, m as resolveConfiguration, v as resolveRuntime, x as simulatorBuildArch, y as resolveSchemeSelection } from "./support-
|
|
13
|
-
import { r as gateProfileForDevice } from "./ios-signing-
|
|
14
|
-
import { a as nativeXcodeSources, i as nativeXcodePackages, n as nativeXcodeInputSnapshot, t as nativeXcodeHasPackages } from "./native-xcode-inputs-
|
|
15
|
-
import { s as explainBuildMiss, u as skippedMissReason } from "./prebuild-
|
|
16
|
-
import { n as planFlagRefusal, t as planCachedBuild } from "./build-plan-
|
|
17
|
-
import { t as IosRecipeRefusal } from "./ios-project-
|
|
18
|
-
import { c as iosProcessRuntime, t as DEFAULT_DEPS } from "./dependencies-
|
|
11
|
+
import { a as nativeTransferRefusal } from "./client-Dy0eJJtz.mjs";
|
|
12
|
+
import { a as deviceModelRefusal, h as resolveDeviceType, m as resolveConfiguration, v as resolveRuntime, x as simulatorBuildArch, y as resolveSchemeSelection } from "./support-DW575Dnx.mjs";
|
|
13
|
+
import { r as gateProfileForDevice } from "./ios-signing-CCFNjjWU.mjs";
|
|
14
|
+
import { a as nativeXcodeSources, i as nativeXcodePackages, n as nativeXcodeInputSnapshot, t as nativeXcodeHasPackages } from "./native-xcode-inputs-DsozghTX.mjs";
|
|
15
|
+
import { s as explainBuildMiss, u as skippedMissReason } from "./prebuild-BptrXmh_.mjs";
|
|
16
|
+
import { n as planFlagRefusal, t as planCachedBuild } from "./build-plan-BSgR9yKo.mjs";
|
|
17
|
+
import { t as IosRecipeRefusal } from "./ios-project-PXBDoaii.mjs";
|
|
18
|
+
import { c as iosProcessRuntime, t as DEFAULT_DEPS } from "./dependencies-IVl2Ga2D.mjs";
|
|
19
19
|
import { existsSync } from "node:fs";
|
|
20
20
|
import { join } from "node:path";
|
|
21
21
|
//#region src/integrations/native-xcode-ios.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as CompilationCacheActivity, g as CcacheActivity, i as AndroidBuildOptions, l as IosToolchain, m as Optimizations, r as SwiftpmArtifactToolchain, t as NativeGradleArtifactReceipt, u as WorkerToolchain } from "./android-project-
|
|
1
|
+
import { _ as CompilationCacheActivity, g as CcacheActivity, i as AndroidBuildOptions, l as IosToolchain, m as Optimizations, r as SwiftpmArtifactToolchain, t as NativeGradleArtifactReceipt, u as WorkerToolchain } from "./android-project-DhO6el8N.mjs";
|
|
2
2
|
import { StimContext } from "@stim-cli/core";
|
|
3
3
|
import { BuildFingerprintSource, BuildReactNativeArtifactQuery, BuildStartParams, BuildSwiftpmArtifactQuery } from "@stim-cli/core/protocol";
|
|
4
4
|
//#region src/offload/react-native-artifact.d.ts
|
|
@@ -94,6 +94,10 @@ interface WorkerJob {
|
|
|
94
94
|
cacheArtifact?: boolean;
|
|
95
95
|
/** The client has no Xcode and left pod install to this machine, which may then rekey sources in the iOS project. */
|
|
96
96
|
podsOnWorker?: boolean;
|
|
97
|
+
/** The client's cache reads allow the app stim-server retained under the fingerprint after this machine's pod install. */
|
|
98
|
+
reuseArtifact?: boolean;
|
|
99
|
+
/** The directory of stim-server's retained artifacts for this client's repository. */
|
|
100
|
+
artifactCache?: string;
|
|
97
101
|
stimBuild?: string;
|
|
98
102
|
compat?: number;
|
|
99
103
|
/** The JDK major the client builds on; the build runs on an installed JDK of it when the default differs. */
|
|
@@ -121,6 +125,7 @@ type WorkerResult = {
|
|
|
121
125
|
sha256: string;
|
|
122
126
|
};
|
|
123
127
|
fingerprint: string | null;
|
|
128
|
+
reused?: true;
|
|
124
129
|
androidPackage?: string;
|
|
125
130
|
sourceDigest?: string;
|
|
126
131
|
cacheArtifact?: {
|