stim 1.21.0 → 1.23.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-ybouwJSR.mjs} +21 -3
- package/dist/{act-DHAw2A2S.mjs → act-DG54PWtJ.mjs} +298 -164
- package/dist/{activity-BzVfHSrY.mjs → activity-B5RtpFda.mjs} +33 -12
- package/dist/{agent-device-usage-output-zh1vhbLp.mjs → agent-device-usage-output-UJ5gC80l.mjs} +7 -7
- package/dist/{android-BLgbNqox.mjs → android-BoUJKbfz.mjs} +66 -52
- package/dist/{android-DUYkNF4u.mjs → android-C7sVmyI9.mjs} +160 -59
- package/dist/{android-CV_GCELZ.mjs → android-CHH4KLOR.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-DAuZ-FNU.mjs → artifact-5RteZem7.mjs} +69 -40
- package/dist/{artifact-B8T3S5gi.mjs → artifact-Dwdo7k1E.mjs} +40 -35
- package/dist/artifact-platform-CXcmX_j3.mjs +27 -0
- package/dist/{browser-web-QQzVjz3O.mjs → browser-web-CeEVlGug.mjs} +187 -59
- package/dist/{budget-Bs6SxxzO.mjs → budget-DnPX3DXj.mjs} +830 -699
- package/dist/{build-CoPzQRNw.mjs → build-CqufZFqy.mjs} +34 -27
- package/dist/{build-cache-DmyR9Zzc.mjs → build-cache-Dv7RN200.mjs} +4 -4
- package/dist/{build-plan-CaFskB7_.mjs → build-plan-C8CIvRyi.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-RcAy92gH.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-D-J9fWGV.mjs} +20 -20
- package/dist/cli.mjs +1 -1
- package/dist/{client-UXD70ZbM.mjs → client-yyso1bwi.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-Db8BqzxH.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-BnYSDiKa.mjs} +2 -2
- package/dist/{device-DCxH7_By.mjs → device-BvzPUBs3.mjs} +16 -16
- package/dist/{device-ExJq8Ei7.mjs → device-CCkWmkAA.mjs} +71 -14
- package/dist/{device-capacity-CMlqEcvw.mjs → device-capacity-CjaSdrhg.mjs} +9 -10
- package/dist/device-host-worker.mjs +25 -32
- package/dist/{device-ios-DRUeKaFV.mjs → device-ios-uOiEETX2.mjs} +39 -16
- package/dist/{device-lease-run-C8raGFoP.mjs → device-lease-run-BgwPHc6u.mjs} +5 -5
- package/dist/{device-pool-DMRpVX9a.mjs → device-pool-C-ptmZTa.mjs} +3 -3
- package/dist/{doctor-DTvaDOda.mjs → doctor-8sr2tFOL.mjs} +24 -37
- package/dist/{doctor-Dhqebm0q.mjs → doctor-D2SN3Ltx.mjs} +19 -16
- package/dist/doctor-fingerprint-DZLoYFVb.mjs +16 -0
- package/dist/doctor-fingerprint.mjs +1 -1
- package/dist/{doctor-BLHCYxzi.mjs → doctor-pxxvipYC.mjs} +1 -1
- package/dist/{doctor-watchman-Cv1F10Kj.mjs → doctor-watchman-sy_RNhFt.mjs} +5 -5
- package/dist/{eas-build-BomfRnFT.mjs → eas-build-CyjU5K7E.mjs} +4 -4
- package/dist/{eas-fallback-DJwZpy0c.mjs → eas-fallback-DV3Wytf1.mjs} +27 -18
- package/dist/{eas-session-ledger-op6A54yi.mjs → eas-session-ledger-BzzsX97d.mjs} +8 -7
- package/dist/{error-diagnostics-Bf0rZvG9.mjs → error-diagnostics-C6sVoeqO.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-CDoogxAI.mjs} +587 -313
- package/dist/gc-DLbzvTP2.mjs +3 -0
- package/dist/{guide-Yqwt2bd6.mjs → guide-BC37GcDG.mjs} +288 -59
- package/dist/{hosted-android-Bw-honsd.mjs → hosted-android-CkclQig_.mjs} +6 -6
- package/dist/{hosted-client-DB_gBPfY.mjs → hosted-client-ByuMMO5s.mjs} +4 -4
- package/dist/{hosted-ios-CUvOf4Vr.mjs → hosted-ios-DtYHeuYR.mjs} +1 -1
- package/dist/{hosted-logs-DL_P5AdN.mjs → hosted-logs-Br84qWy1.mjs} +5 -5
- package/dist/{hosted-macos-QI141yKk.mjs → hosted-macos-DdtYajZt.mjs} +21 -12
- package/dist/{hosted-native-Ksyjgzq-.mjs → hosted-native-UPI9zdZ4.mjs} +27 -14
- package/dist/{idle-BVeRGroT.d.mts → idle-C4cZ757K.d.mts} +3 -3
- package/dist/{idle-shutdown-DaKmZi0z.mjs → idle-shutdown-DO7oIRlc.mjs} +7 -7
- package/dist/ios-CDvlmUs7.d.mts +24 -0
- package/dist/{ios-ubFsBzwq.mjs → ios-DZZbNYlY.mjs} +59 -50
- package/dist/{ios-device-CXGP1bsD.mjs → ios-device-BXZ0c7Kb.mjs} +1 -1
- package/dist/{ios-device-CwFMehUS.mjs → ios-device-JC3uWM4K.mjs} +3 -3
- package/dist/{ios-CpByZy12.mjs → ios-hcBpnEGk.mjs} +81 -34
- package/dist/{ios-project-WuwwBdvW.mjs → ios-project-CVyNwjAF.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-CQ68hG9s.mjs → ios-vbUOqGXu.mjs} +8 -8
- package/dist/{ios-qNJt4dFm.mjs → ios-xtlRHaeB.mjs} +1 -1
- package/dist/{js-swap-Cc1dttps.mjs → js-swap-C3QxUFJR.mjs} +7 -29
- package/dist/{launch-CD1yVc7U.mjs → launch-Bz7JtaC4.mjs} +16 -16
- package/dist/{launch-Zq2mOSDy.mjs → launch-CHY3p-yz.mjs} +40 -39
- package/dist/{logs-CMm05HxN.mjs → logs-CtNeNDuq.mjs} +10 -17
- package/dist/{logs-BS00Anxf.mjs → logs-mxqsWpJs.mjs} +151 -24
- package/dist/{macos-B65--pPd.mjs → macos-inNFbBWc.mjs} +1 -1
- package/dist/macos-run.mjs +1 -1
- package/dist/{macos-C-0qJ6zq.mjs → macos-u0BoHKnO.mjs} +143 -46
- 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-CdCSylTn.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-BUTu8T7A.mjs} +4 -5
- package/dist/{native-runtime-Dg1Q7tfF.mjs → native-runtime-CRSOZxKY.mjs} +8 -7
- package/dist/native-source-Y0yLhFyQ.mjs +133 -0
- package/dist/{native-xcode-inputs-CB2iQeWq.mjs → native-xcode-inputs-G6rkkhxu.mjs} +2 -3
- package/dist/{native-xcode-ios-CXX39F7o.mjs → native-xcode-ios-_os2PlCD.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-BU42oOyT.mjs} +12 -8
- package/dist/{ports-D-MmCTdv.mjs → ports-BSmQKzW7.mjs} +3 -3
- package/dist/{prebuild-uD_ipCxF.mjs → prebuild-BFm63bQ0.mjs} +63 -16
- package/dist/{project-BZNjmW_8.mjs → project-CTLNHCfE.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-CFgUroxW.mjs} +73 -53
- package/dist/{react-native-build-rhk4smwQ.mjs → react-native-build-CmJkTljQ.mjs} +8 -8
- package/dist/{react-native-doctor-CQpuIMso.mjs → react-native-doctor-LTF-Xt8l.mjs} +7 -7
- package/dist/{react-native-ios-Bhq1rJeV.mjs → react-native-ios-ChBF1MkB.mjs} +43 -29
- package/dist/{recordings-DYteQSu4.mjs → recordings-CQmfzAh7.mjs} +1 -1
- package/dist/registration-BcRgF6Ox.mjs +51 -0
- package/dist/{reload-CmTRFJaX.mjs → reload-DF9hqUUB.mjs} +16 -15
- package/dist/{reload-DzjSl5P_.mjs → reload-RBi1nj6Z.mjs} +1 -1
- package/dist/{remote-ByYkXdGD.mjs → remote-BmvMCcJw.mjs} +18 -15
- package/dist/{result-DNiS-tTP.mjs → result-Cx5CRLvS.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-BTiGPEjS.mjs} +5 -5
- package/dist/server-expo-C-Buqvn_.mjs +2 -0
- package/dist/{server-expo-DT_F_uVI.mjs → server-expo-D9lEz4aq.mjs} +7 -5
- package/dist/{settings-CsJDEXgK.mjs → settings-C7O8A6ZI.mjs} +223 -243
- package/dist/{settings-T1gtc3bf.mjs → settings-eKF_vJJs.mjs} +1 -1
- package/dist/{settings-write-HyVZ8eQ8.mjs → settings-write-79mQRr9C.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-D7M2nE4b.mjs} +6 -6
- package/dist/{stage-BIS0ydsV.mjs → stage-DKNM4ZPd.mjs} +21 -4
- package/dist/{start-RChynRDp.mjs → start-CRfN1kWV.mjs} +1 -1
- package/dist/{start-7lpH7hmN.mjs → start-bjfiScgz.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-DioA6cBU.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-Eqx_20WC.mjs} +1 -1
- package/dist/{status-BL7jVyAB.mjs → status-kzbeWk4x.mjs} +43 -29
- package/dist/{status-watch-GDCfqpTE.mjs → status-watch-BIqqbJ6q.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-B18d8KDw.mjs} +2 -2
- package/dist/{stop-CPzlM1L-.mjs → stop-B2uLQfoM.mjs} +15 -16
- package/dist/{stop-D7h6jAXQ.mjs → stop-DzLJc7Ei.mjs} +31 -22
- package/dist/supervisor-run.d.mts +3 -3
- package/dist/supervisor-run.mjs +28 -36
- package/dist/{support-Dlu37g6H.mjs → support-BTpZ6RAJ.mjs} +15 -11
- package/dist/{support-67vraa1Q.mjs → support-DTBV56gy.mjs} +8 -8
- package/dist/swiftpm-artifact-inputs-DFcGsXDP.mjs +153 -0
- package/dist/swiftpm-macos-r_WSKlXr.mjs +532 -0
- package/dist/{toolchain-Hp9sCpK4.mjs → toolchain-CWeGJgCc.mjs} +9 -6
- package/dist/toolchain-GVgnf8d1.mjs +2 -0
- 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-Cduk0NSE.mjs +2 -0
- package/dist/{web-CJmIj6AI.mjs → web-CwREhjD-.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-BxzYlo3P.mjs} +594 -266
- package/dist/{worktree-DQ6Zi2Mv.mjs → worktree-8lqn_lBp.mjs} +850 -551
- package/dist/worktree-BxfVxG_b.mjs +2 -0
- package/dist/{xcode-Zlx3qjEs.mjs → xcode-iQnROM5o.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
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { m as operationState, r as WorkspaceProcessCleanupError, t as getExecutor } from "./exec-DEoAhcze.mjs";
|
|
2
|
+
import { sep } from "node:path";
|
|
3
|
+
//#region src/cancellation.ts
|
|
4
|
+
function cancelledError(what, cause) {
|
|
5
|
+
return Object.assign(new Error(`The ${what} was cancelled.`, cause === void 0 ? void 0 : { cause }), { code: "STIM_CANCELLED" });
|
|
6
|
+
}
|
|
7
|
+
function throwIfCancelled(signal, what) {
|
|
8
|
+
if (signal?.aborted) throw cancelledError(what);
|
|
9
|
+
}
|
|
10
|
+
function cancellableSleep(ms, { signal, what = "wait", ref = true } = {}) {
|
|
11
|
+
return new Promise((resolve, reject) => {
|
|
12
|
+
if (signal?.aborted) return reject(cancelledError(what));
|
|
13
|
+
const onAbort = () => {
|
|
14
|
+
clearTimeout(timer);
|
|
15
|
+
reject(cancelledError(what));
|
|
16
|
+
};
|
|
17
|
+
const timer = setTimeout(() => {
|
|
18
|
+
signal?.removeEventListener("abort", onAbort);
|
|
19
|
+
resolve();
|
|
20
|
+
}, ms);
|
|
21
|
+
if (!ref) timer.unref();
|
|
22
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/workspace/git.ts
|
|
27
|
+
const GIT_TIMEOUT_MS = 1e4;
|
|
28
|
+
const GIT_CONCURRENCY = 6;
|
|
29
|
+
function gitCall(cwd, args, { write, signal: _signal, timeoutMs = GIT_TIMEOUT_MS, ...opts }) {
|
|
30
|
+
return {
|
|
31
|
+
args: [
|
|
32
|
+
...write ? [] : ["--no-optional-locks"],
|
|
33
|
+
"-C",
|
|
34
|
+
cwd,
|
|
35
|
+
...args
|
|
36
|
+
],
|
|
37
|
+
opts: {
|
|
38
|
+
cwd,
|
|
39
|
+
...opts,
|
|
40
|
+
timeoutMs
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/** Runs git in `cwd`, bounded by `timeoutMs` (10 s by default); throws like `runFile`. */
|
|
45
|
+
function git(cwd, args, opts = {}) {
|
|
46
|
+
const call = gitCall(cwd, args, opts);
|
|
47
|
+
return getExecutor().runFile("git", call.args, call.opts);
|
|
48
|
+
}
|
|
49
|
+
/** `git`, returning null instead of throwing. */
|
|
50
|
+
function gitQuiet(cwd, args, opts = {}) {
|
|
51
|
+
const call = gitCall(cwd, args, opts);
|
|
52
|
+
return getExecutor().runFileQuiet("git", call.args, call.opts);
|
|
53
|
+
}
|
|
54
|
+
const queue = [];
|
|
55
|
+
let running = 0;
|
|
56
|
+
/** `git` without blocking the event loop, at most six at a time; the budget starts when the call leaves the queue. */
|
|
57
|
+
async function gitAsync(cwd, args, opts = {}) {
|
|
58
|
+
const signal = opts.signal ?? getExecutor().reportSignal?.();
|
|
59
|
+
signal?.throwIfAborted();
|
|
60
|
+
if (running < GIT_CONCURRENCY) running++;
|
|
61
|
+
else await new Promise((resolve, reject) => {
|
|
62
|
+
const proceed = () => {
|
|
63
|
+
signal?.removeEventListener("abort", cancel);
|
|
64
|
+
resolve();
|
|
65
|
+
};
|
|
66
|
+
const cancel = () => {
|
|
67
|
+
const index = queue.indexOf(proceed);
|
|
68
|
+
if (index !== -1) queue.splice(index, 1);
|
|
69
|
+
reject(signal?.reason);
|
|
70
|
+
};
|
|
71
|
+
queue.push(proceed);
|
|
72
|
+
signal?.addEventListener("abort", cancel, { once: true });
|
|
73
|
+
if (signal?.aborted) cancel();
|
|
74
|
+
});
|
|
75
|
+
let cleanupFailed = false;
|
|
76
|
+
try {
|
|
77
|
+
signal?.throwIfAborted();
|
|
78
|
+
const call = gitCall(cwd, args, opts);
|
|
79
|
+
return await getExecutor().runFileAsync("git", call.args, {
|
|
80
|
+
...call.opts,
|
|
81
|
+
signal
|
|
82
|
+
});
|
|
83
|
+
} catch (error) {
|
|
84
|
+
cleanupFailed = error instanceof WorkspaceProcessCleanupError || error instanceof Error && "reportCleanup" in error;
|
|
85
|
+
throw error;
|
|
86
|
+
} finally {
|
|
87
|
+
const next = queue.shift();
|
|
88
|
+
if (next) next();
|
|
89
|
+
else running--;
|
|
90
|
+
if (!cleanupFailed) signal?.throwIfAborted();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/** `gitAsync`, returning null for ordinary failures; cancellation and unresolved cleanup reject. */
|
|
94
|
+
async function gitQuietAsync(cwd, args, opts = {}) {
|
|
95
|
+
try {
|
|
96
|
+
return await gitAsync(cwd, args, opts);
|
|
97
|
+
} catch (error) {
|
|
98
|
+
if (error instanceof WorkspaceProcessCleanupError || error instanceof Error && "reportCleanup" in error) throw error;
|
|
99
|
+
(opts.signal ?? getExecutor().reportSignal?.())?.throwIfAborted();
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/workspace/git-read.ts
|
|
105
|
+
function childEnvironment(env) {
|
|
106
|
+
return {
|
|
107
|
+
env: Object.fromEntries(Object.entries(env).flatMap(([name, value]) => value === void 0 ? [] : [[name, value]])),
|
|
108
|
+
omitEnv: Object.keys(process.env).filter((name) => env[name] === void 0)
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
function killOnAbort(signal) {
|
|
112
|
+
return (child) => {
|
|
113
|
+
if (!signal || getExecutor().reportSignal?.()) return;
|
|
114
|
+
if (signal.aborted) return void child.kill("SIGKILL");
|
|
115
|
+
const kill = () => child.kill("SIGKILL");
|
|
116
|
+
signal.addEventListener("abort", kill, { once: true });
|
|
117
|
+
child.once("close", () => signal.removeEventListener("abort", kill));
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
/** `git rev-parse <args>` in `cwd` as a native path, or null; Git runs with exactly `env` and dies when `signal` aborts. */
|
|
121
|
+
function gitPath(cwd, args, env, signal) {
|
|
122
|
+
return gitAsync(cwd, ["rev-parse", ...args], {
|
|
123
|
+
...childEnvironment(env),
|
|
124
|
+
signal
|
|
125
|
+
}).then((out) => {
|
|
126
|
+
const path = out.trim();
|
|
127
|
+
if (!path) return null;
|
|
128
|
+
return sep === "/" ? path : path.replaceAll("/", sep);
|
|
129
|
+
}, () => null);
|
|
130
|
+
}
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region src/engine/operation-exec.ts
|
|
133
|
+
async function runOperationFile(context, executor, file, args, options) {
|
|
134
|
+
const signal = context ? operationState(context).runSignal ?? context.signal : options.signal;
|
|
135
|
+
throwIfCancelled(signal, file);
|
|
136
|
+
const environment = context ? childEnvironment(context.env) : {
|
|
137
|
+
env: {},
|
|
138
|
+
omitEnv: []
|
|
139
|
+
};
|
|
140
|
+
const output = await executor.runFileAsync(file, args, {
|
|
141
|
+
...environment,
|
|
142
|
+
...options,
|
|
143
|
+
...context ? { env: {
|
|
144
|
+
...environment.env,
|
|
145
|
+
...options.env
|
|
146
|
+
} } : {},
|
|
147
|
+
omitEnv: [...environment.omitEnv.filter((name) => options.env?.[name] === void 0), ...options.omitEnv ?? []],
|
|
148
|
+
declareFor: context,
|
|
149
|
+
signal
|
|
150
|
+
});
|
|
151
|
+
throwIfCancelled(signal, file);
|
|
152
|
+
return output;
|
|
153
|
+
}
|
|
154
|
+
/** Contextual probes return null for ordinary failures and propagate cancellation or unresolved cleanup; other calls retain the executor's quiet behavior. */
|
|
155
|
+
async function runOperationFileQuiet(context, executor, file, args, options) {
|
|
156
|
+
const signal = context ? operationState(context).runSignal ?? context.signal : options.signal;
|
|
157
|
+
signal?.throwIfAborted();
|
|
158
|
+
try {
|
|
159
|
+
const output = context ? await runOperationFile(context, executor, file, args, options) : await executor.runFileQuietAsync(file, args, options);
|
|
160
|
+
options.signal?.throwIfAborted();
|
|
161
|
+
signal?.throwIfAborted();
|
|
162
|
+
return output;
|
|
163
|
+
} catch (error) {
|
|
164
|
+
if (error instanceof WorkspaceProcessCleanupError || error instanceof Error && "reportCleanup" in error) throw error;
|
|
165
|
+
options.signal?.throwIfAborted();
|
|
166
|
+
signal?.throwIfAborted();
|
|
167
|
+
return null;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
//#endregion
|
|
171
|
+
export { killOnAbort as a, gitQuiet as c, cancelledError as d, throwIfCancelled as f, gitPath as i, gitQuietAsync as l, runOperationFileQuiet as n, git as o, childEnvironment as r, gitAsync as s, runOperationFile as t, cancellableSleep as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as withWorkspaceStateLock, d as writeWorkspaceState, r as readWorkspaceState } from "./workspace-state-
|
|
3
|
-
import {
|
|
1
|
+
import { g as process_identity_exports } from "./exec-DEoAhcze.mjs";
|
|
2
|
+
import { c as withWorkspaceStateLock, d as writeWorkspaceState, r as readWorkspaceState } from "./workspace-state-U08dEzhG.mjs";
|
|
3
|
+
import { c as pidExists } from "./metro-DiXtA3Ty.mjs";
|
|
4
4
|
import { realpathSync } from "node:fs";
|
|
5
5
|
//#region src/collector/state.ts
|
|
6
6
|
function collectorRoot(root) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as connectOwnedBrowser } from "./cdp-
|
|
1
|
+
import { g as process_identity_exports } from "./exec-DEoAhcze.mjs";
|
|
2
|
+
import { f as throwIfCancelled } from "./operation-exec-BW0em61G.mjs";
|
|
3
|
+
import { t as connectOwnedBrowser } from "./cdp-3fwICjzi.mjs";
|
|
4
4
|
//#region src/web/page.ts
|
|
5
5
|
/** The record of a verified live browser: its supervisor and Chrome are the processes the record names. */
|
|
6
6
|
function liveWebRecord(record) {
|
|
@@ -15,6 +15,7 @@ const NAVIGATE_ACK_MS = 1e3;
|
|
|
15
15
|
*/
|
|
16
16
|
async function sendToOwnedPage(record, method, params = {}, signal) {
|
|
17
17
|
const cdp = await connectOwnedBrowser(record.cdpPort, record.chromeProcess.pid, signal);
|
|
18
|
+
let navigateTimer;
|
|
18
19
|
try {
|
|
19
20
|
const { targetInfo } = await cdp.send("Target.getTargetInfo", { targetId: record.targetId });
|
|
20
21
|
throwIfCancelled(signal, "browser operation");
|
|
@@ -26,10 +27,13 @@ async function sendToOwnedPage(record, method, params = {}, signal) {
|
|
|
26
27
|
const reply = cdp.send(method, params, sessionId);
|
|
27
28
|
if (method === "Page.navigate") {
|
|
28
29
|
reply.catch(() => {});
|
|
29
|
-
await Promise.race([reply, new Promise((resolve) =>
|
|
30
|
+
await Promise.race([reply, new Promise((resolve) => {
|
|
31
|
+
navigateTimer = setTimeout(resolve, NAVIGATE_ACK_MS);
|
|
32
|
+
})]);
|
|
30
33
|
} else await reply;
|
|
31
34
|
return targetInfo.url;
|
|
32
35
|
} finally {
|
|
36
|
+
clearTimeout(navigateTimer);
|
|
33
37
|
cdp.close();
|
|
34
38
|
}
|
|
35
39
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as buildPlacementSettings } from "./selection-
|
|
1
|
+
import { n as buildPlacementSettings } from "./selection-DSMbWEX2.mjs";
|
|
2
2
|
//#region src/placement-log.ts
|
|
3
3
|
/** `machine` is `local` when the run stays on this machine. */
|
|
4
4
|
function placementRecord(input) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as hostingMachines } from "./selection-
|
|
2
|
-
import { r as readHostedNative } from "./ios-state-
|
|
3
|
-
import { i as probeHost, n as automaticDevicePlacement } from "./eas-fallback-
|
|
1
|
+
import { d as hostingMachines } from "./selection-DSMbWEX2.mjs";
|
|
2
|
+
import { r as readHostedNative } from "./ios-state-Dtw5K2aI.mjs";
|
|
3
|
+
import { i as probeHost, n as automaticDevicePlacement } from "./eas-fallback-DV3Wytf1.mjs";
|
|
4
4
|
import { automaticMachineEnabled } from "@stim-cli/core/state";
|
|
5
5
|
//#region src/device-host/plan-placement.ts
|
|
6
6
|
/**
|
|
@@ -9,10 +9,10 @@ import { automaticMachineEnabled } from "@stim-cli/core/state";
|
|
|
9
9
|
* give; `auto` repeats the placement decision a run makes now and, when that stays on this machine, notes any Mac
|
|
10
10
|
* whose device would key differently. The result predicts the cache key only; a run reads its own device.
|
|
11
11
|
*/
|
|
12
|
-
async function planHostedDevice({ root, slot, platform, machine, selectors, sameKey, eas, deps = {} }) {
|
|
13
|
-
const { automatic = automaticDevicePlacement, probe = probeHost, machines = hostingMachines } = deps;
|
|
12
|
+
async function planHostedDevice({ root, slot, platform, machine, selectors, sameKey, eas, deps = {}, operation }) {
|
|
13
|
+
const { automatic = automaticDevicePlacement, probe = probeHost, machines = () => hostingMachines(void 0, operation?.signal) } = deps;
|
|
14
14
|
const named = async (name) => {
|
|
15
|
-
const result = await probe(name, platform, selectors);
|
|
15
|
+
const result = await probe(name, platform, selectors, void 0, operation?.signal);
|
|
16
16
|
if ("failure" in result.probe) return {
|
|
17
17
|
kind: "unknown",
|
|
18
18
|
reason: `${name} did not give a ${platform} device (${result.probe.failure})`
|
|
@@ -38,6 +38,7 @@ async function planHostedDevice({ root, slot, platform, machine, selectors, same
|
|
|
38
38
|
platform,
|
|
39
39
|
selectors,
|
|
40
40
|
noWait: false,
|
|
41
|
+
signal: operation?.signal,
|
|
41
42
|
...eas ? { eas } : {}
|
|
42
43
|
}, {
|
|
43
44
|
read: () => ({}),
|
|
@@ -52,8 +53,10 @@ async function planHostedDevice({ root, slot, platform, machine, selectors, same
|
|
|
52
53
|
choice: placed.target.choice,
|
|
53
54
|
placement: `on ${placed.target.host.machine}, as auto would now`
|
|
54
55
|
};
|
|
55
|
-
const names = (machines() ?? []).filter((name) => automaticMachineEnabled("device", name));
|
|
56
|
-
|
|
56
|
+
const names = (await machines() ?? []).filter((name) => automaticMachineEnabled("device", name));
|
|
57
|
+
operation?.signal.throwIfAborted();
|
|
58
|
+
const offers = await Promise.all(names.map((name) => probe(name, platform, selectors, void 0, operation?.signal)));
|
|
59
|
+
const differs = (await Promise.all(offers.map(async ({ probe: each }) => "offer" in each && each.offer.choice && await sameKey(each.offer.choice) === false ? [each.machine] : []))).flat();
|
|
57
60
|
if (differs.length) return {
|
|
58
61
|
kind: "local",
|
|
59
62
|
placement: `this machine; auto may use ${differs.join(", ")}, which builds for another architecture, so its key differs`
|
|
@@ -63,6 +66,7 @@ async function planHostedDevice({ root, slot, platform, machine, selectors, same
|
|
|
63
66
|
placement: names.length ? `this machine; auto may use ${names.join(", ")}` : "this machine"
|
|
64
67
|
};
|
|
65
68
|
} catch (error) {
|
|
69
|
+
operation?.signal.throwIfAborted();
|
|
66
70
|
return {
|
|
67
71
|
kind: "unknown",
|
|
68
72
|
reason: error.message
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as getProject } from "./config-
|
|
2
|
-
import { n as findCommandWorkspace } from "./project-
|
|
3
|
-
import { n as getNamedPort, t as clearNamedPorts } from "./named-ports-
|
|
1
|
+
import { p as getProject } from "./config-DlrsduwG.mjs";
|
|
2
|
+
import { n as findCommandWorkspace } from "./project-CTLNHCfE.mjs";
|
|
3
|
+
import { n as getNamedPort, t as clearNamedPorts } from "./named-ports-DkEzOfzO.mjs";
|
|
4
4
|
//#region src/commands/ports.ts
|
|
5
5
|
async function inProject(action) {
|
|
6
6
|
try {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as spawnDeclared, t as getExecutor } from "./exec-DEoAhcze.mjs";
|
|
2
2
|
import { i as sharedBuildCache } from "./paths-DQtTgsBf.mjs";
|
|
3
3
|
import { n as stripAnsi, r as waitForChild, t as createLineReader } from "./process-output-Fpl8PYi8.mjs";
|
|
4
|
-
import { o as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { v as detectIsExpo } from "./project-
|
|
8
|
-
import { Zn as remoteCliInvocation } from "./budget-
|
|
9
|
-
import { a as diffFingerprintSources, v as storedSources } from "./build-cache-
|
|
10
|
-
import { i as expoBinRefusal, r as expoBinPath } from "./server-expo-
|
|
4
|
+
import { o as git, s as gitAsync } from "./operation-exec-BW0em61G.mjs";
|
|
5
|
+
import { o as updateWorkspaceState, r as readWorkspaceState$1 } from "./workspace-state-U08dEzhG.mjs";
|
|
6
|
+
import { yt as gitCommonDirOnDisk } from "./settings-C7O8A6ZI.mjs";
|
|
7
|
+
import { v as detectIsExpo } from "./project-CTLNHCfE.mjs";
|
|
8
|
+
import { Zn as remoteCliInvocation } from "./budget-DnPX3DXj.mjs";
|
|
9
|
+
import { a as diffFingerprintSources, v as storedSources } from "./build-cache-Dv7RN200.mjs";
|
|
10
|
+
import { i as expoBinRefusal, o as expoSdkMajor, r as expoBinPath } from "./server-expo-D9lEz4aq.mjs";
|
|
11
11
|
import { existsSync, realpathSync } from "node:fs";
|
|
12
12
|
import { dirname, join, relative } from "node:path";
|
|
13
13
|
import { ambientContext } from "@stim-cli/core";
|
|
@@ -270,6 +270,10 @@ function prebuildRecord(state) {
|
|
|
270
270
|
const record = state?.prebuild;
|
|
271
271
|
return record && typeof record === "object" ? record : {};
|
|
272
272
|
}
|
|
273
|
+
function unreadableGitTracksNativeDir(error) {
|
|
274
|
+
if (error instanceof Error && "code" in error && error.code === "ENOENT") return false;
|
|
275
|
+
return !/not a git repository \(or any (of the parent directories|parent up to mount point)/.test(error instanceof Error ? error.message : String(error));
|
|
276
|
+
}
|
|
273
277
|
function gitTracksNativeDir(root, platform) {
|
|
274
278
|
try {
|
|
275
279
|
return git(root, [
|
|
@@ -281,22 +285,53 @@ function gitTracksNativeDir(root, platform) {
|
|
|
281
285
|
LANGUAGE: "C"
|
|
282
286
|
} }).trim() !== "";
|
|
283
287
|
} catch (error) {
|
|
284
|
-
|
|
285
|
-
return !/not a git repository \(or any (of the parent directories|parent up to mount point)/.test(String(error?.message));
|
|
288
|
+
return unreadableGitTracksNativeDir(error);
|
|
286
289
|
}
|
|
287
290
|
}
|
|
288
|
-
function
|
|
291
|
+
function prebuildInputs(root, platform, { isExpo, fingerprint, sources }) {
|
|
289
292
|
const nativeDirExists = existsSync(nativeDir(root, platform));
|
|
290
293
|
const fingerprinted = nativeDirInFingerprint(sources, platform);
|
|
291
294
|
const generatedFrom = prebuildRecord(readWorkspaceState$1(root))[platform];
|
|
292
|
-
return
|
|
295
|
+
return {
|
|
293
296
|
isExpo,
|
|
294
297
|
nativeDirExists,
|
|
295
298
|
nativeDirFingerprinted: fingerprinted,
|
|
296
|
-
nativeDirTracked: nativeDirExists && !fingerprinted && gitTracksNativeDir(root, platform),
|
|
297
299
|
generatedFrom: typeof generatedFrom === "string" ? generatedFrom : null,
|
|
298
300
|
fingerprint
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
function planPrebuild(root, platform, options) {
|
|
304
|
+
const inputs = prebuildInputs(root, platform, options);
|
|
305
|
+
return prebuildAction({
|
|
306
|
+
...inputs,
|
|
307
|
+
nativeDirTracked: inputs.nativeDirExists && !inputs.nativeDirFingerprinted && gitTracksNativeDir(root, platform)
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
async function planPrebuildAsync(root, platform, options, signal) {
|
|
311
|
+
signal?.throwIfAborted();
|
|
312
|
+
const untracked = prebuildAction({
|
|
313
|
+
...prebuildInputs(root, platform, options),
|
|
314
|
+
nativeDirTracked: false
|
|
299
315
|
});
|
|
316
|
+
if (untracked !== "regenerate") return untracked;
|
|
317
|
+
let tracked;
|
|
318
|
+
try {
|
|
319
|
+
tracked = (await gitAsync(root, [
|
|
320
|
+
"ls-files",
|
|
321
|
+
"--",
|
|
322
|
+
nativeDirName(platform)
|
|
323
|
+
], {
|
|
324
|
+
env: {
|
|
325
|
+
LC_ALL: "C",
|
|
326
|
+
LANGUAGE: "C"
|
|
327
|
+
},
|
|
328
|
+
signal
|
|
329
|
+
})).trim() !== "";
|
|
330
|
+
} catch (error) {
|
|
331
|
+
signal?.throwIfAborted();
|
|
332
|
+
tracked = unreadableGitTracksNativeDir(error);
|
|
333
|
+
}
|
|
334
|
+
return tracked ? "refuse" : "regenerate";
|
|
300
335
|
}
|
|
301
336
|
function recordPrebuild(root, platform, fingerprint) {
|
|
302
337
|
updateWorkspaceState(root, (state) => ({
|
|
@@ -307,11 +342,22 @@ function recordPrebuild(root, platform, fingerprint) {
|
|
|
307
342
|
}
|
|
308
343
|
}));
|
|
309
344
|
}
|
|
345
|
+
/**
|
|
346
|
+
* @expo/cli 57 made `expo prebuild` delete existing native folders by default and added `--no-clean`
|
|
347
|
+
* to keep them (expo/expo#47209); earlier CLIs keep them by default and reject `--no-clean`.
|
|
348
|
+
*/
|
|
349
|
+
function keepNativeDirArgs(root) {
|
|
350
|
+
return (expoSdkMajor(root) ?? 0) >= 57 ? ["--no-clean"] : [];
|
|
351
|
+
}
|
|
352
|
+
function staleNativeDirRemedy(platform) {
|
|
353
|
+
const dir = nativeDirName(platform);
|
|
354
|
+
return `Fix what the output above reports. Stim ran \`expo prebuild\` over the existing ${dir}/ without deleting it, which keeps what earlier config plugins wrote there. If ${dir}/ predates a removed config plugin or an Expo SDK upgrade, delete ${dir}/ and run again so Stim generates it fresh.`;
|
|
355
|
+
}
|
|
310
356
|
function staleNativeDirRefusal(platform) {
|
|
311
357
|
const dir = nativeDirName(platform);
|
|
312
358
|
return {
|
|
313
359
|
code: PREBUILD_ERROR,
|
|
314
|
-
message: `The fingerprint leaves ${dir}/ out of the cache key, and Stim cannot show that ${dir}/ was generated from the current app config. Git tracks files in it, or could not say whether it does, so Stim will not
|
|
360
|
+
message: `The fingerprint leaves ${dir}/ out of the cache key, and Stim cannot show that ${dir}/ was generated from the current app config. Git tracks files in it, or could not say whether it does, so Stim will not run \`expo prebuild\` over it.`,
|
|
315
361
|
remedy: `Stop excluding ${dir}/ from the fingerprint (check .fingerprintignore) so the cache key covers its files, or add ${dir}/ to .gitignore and untrack it so Stim regenerates it from the app config.`
|
|
316
362
|
};
|
|
317
363
|
}
|
|
@@ -382,7 +428,7 @@ async function runPrebuild(root, platform, logWriter, { spawnFn = null, now = Da
|
|
|
382
428
|
"-p",
|
|
383
429
|
platform,
|
|
384
430
|
"--no-install",
|
|
385
|
-
...clean ? ["--clean"] : []
|
|
431
|
+
...clean ? ["--clean"] : dirExists ? keepNativeDirArgs(root) : []
|
|
386
432
|
], "expo");
|
|
387
433
|
child = spawnDeclared(ambientContext(), () => spawn(invocation.file, invocation.args, {
|
|
388
434
|
cwd: root,
|
|
@@ -428,6 +474,7 @@ async function runPrebuild(root, platform, logWriter, { spawnFn = null, now = Da
|
|
|
428
474
|
failed: true,
|
|
429
475
|
code: PREBUILD_ERROR,
|
|
430
476
|
reason: `\`expo prebuild -p ${platform}\` failed (${how}).`,
|
|
477
|
+
...dirExists && !clean ? { remedy: staleNativeDirRemedy(platform) } : {},
|
|
431
478
|
lastLines: tail.slice(),
|
|
432
479
|
durationMs
|
|
433
480
|
});
|
|
@@ -446,4 +493,4 @@ async function runPrebuild(root, platform, logWriter, { spawnFn = null, now = Da
|
|
|
446
493
|
};
|
|
447
494
|
}
|
|
448
495
|
//#endregion
|
|
449
|
-
export {
|
|
496
|
+
export { staleNativeDirRefusal as a, predictBuildMiss as c, runPrebuild as i, skippedMissReason as l, planPrebuildAsync as n, explainBuildMiss as o, recordPrebuild as r, fingerprintErrorMissReason as s, planPrebuild as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as process_identity_exports } from "./exec-DEoAhcze.mjs";
|
|
2
2
|
import { c as supervisorPidFile, g as workspaceStateFile$1 } from "./paths-DQtTgsBf.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { c as withWorkspaceStateLock, o as updateWorkspaceState, r as readWorkspaceState$1, t as clearWorkspaceStateKey } from "./workspace-state-
|
|
5
|
-
import {
|
|
3
|
+
import { U as parseDeviceSlotKey, V as deviceSlotKey, _ as loadConfig$1, g as isPathPrefix, l as findEnclosingWorktreeRoot, p as getProject } from "./config-DlrsduwG.mjs";
|
|
4
|
+
import { c as withWorkspaceStateLock, o as updateWorkspaceState, r as readWorkspaceState$1, t as clearWorkspaceStateKey } from "./workspace-state-U08dEzhG.mjs";
|
|
5
|
+
import { K as resolveIosProjectDir, Mt as repoRoot, W as resolveAndroidLayout, at as webSettings, tt as settingValueAt } from "./settings-C7O8A6ZI.mjs";
|
|
6
6
|
import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
7
7
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
8
8
|
import { projectRootDirectories } from "@stim-cli/core/state";
|
|
@@ -308,8 +308,8 @@ const nativeAndroidIntegration = {
|
|
|
308
308
|
application: true,
|
|
309
309
|
platforms: () => ["android"],
|
|
310
310
|
validate: (operation) => operation === "android" ? null : void 0,
|
|
311
|
-
android: async () => (await import("./native-android-
|
|
312
|
-
doctor: async () => (await import("./native-android-
|
|
311
|
+
android: async () => (await import("./native-android-CdCSylTn.mjs")).nativeAndroidProject(root),
|
|
312
|
+
doctor: async () => (await import("./native-android-CdCSylTn.mjs")).nativeAndroidDoctor(root)
|
|
313
313
|
};
|
|
314
314
|
}
|
|
315
315
|
};
|
|
@@ -737,8 +737,8 @@ const nativeXcodeProjectIntegration = {
|
|
|
737
737
|
application: problem === null,
|
|
738
738
|
platforms: () => problem ? [] : ["ios"],
|
|
739
739
|
validate: (operation) => operation === "ios" ? problem : void 0,
|
|
740
|
-
ios: async () => (await import("./native-xcode-ios-
|
|
741
|
-
doctor: async () => (await import("./native-xcode-ios-
|
|
740
|
+
ios: async () => (await import("./native-xcode-ios-_os2PlCD.mjs")).nativeXcodeIosProject(root),
|
|
741
|
+
doctor: async () => (await import("./native-xcode-ios-_os2PlCD.mjs")).nativeXcodeDoctor(root)
|
|
742
742
|
};
|
|
743
743
|
}
|
|
744
744
|
};
|
|
@@ -943,7 +943,7 @@ function createProjectRegistry(integrations) {
|
|
|
943
943
|
//#region src/integrations/projects.ts
|
|
944
944
|
const expo = {
|
|
945
945
|
mode: MODE_EXPO,
|
|
946
|
-
loadDevServer: async () => (await import("./server-expo-C-
|
|
946
|
+
loadDevServer: async () => (await import("./server-expo-C-Buqvn_.mjs")).startExpoServer,
|
|
947
947
|
platforms(root) {
|
|
948
948
|
const appJson = readAppJson(root);
|
|
949
949
|
const config = appJson?.expo ?? appJson;
|
|
@@ -963,7 +963,7 @@ const expo = {
|
|
|
963
963
|
};
|
|
964
964
|
const reactNative = {
|
|
965
965
|
mode: MODE_BARE,
|
|
966
|
-
loadDevServer: async () => (await import("./server-bare-
|
|
966
|
+
loadDevServer: async () => (await import("./server-bare-CafzuyFB.mjs")).startBareServer,
|
|
967
967
|
platforms(root, { context, settings }) {
|
|
968
968
|
if (!declaresAppDependency(readPackageJson(root))) return [];
|
|
969
969
|
const platforms = [];
|
|
@@ -993,9 +993,9 @@ const projectRegistry = createProjectRegistry([
|
|
|
993
993
|
ownedRoots: problem === null ? [join(root, "ios"), join(root, "android")] : [],
|
|
994
994
|
platforms: (resolved) => nativeProjectIntegration(root).platforms(root, resolved),
|
|
995
995
|
validate: (operation) => operation === "ios" || operation === "android" || operation === "dev-server" ? problem : void 0,
|
|
996
|
-
ios: async (settings) => (await import("./react-native-ios-
|
|
997
|
-
android: async (resolved) => (await import("./react-native-android-
|
|
998
|
-
doctor: async () => (await import("./react-native-doctor-
|
|
996
|
+
ios: async (settings) => (await import("./react-native-ios-ChBF1MkB.mjs")).reactNativeIosProject(root, settings),
|
|
997
|
+
android: async (resolved) => (await import("./react-native-android-CFgUroxW.mjs")).reactNativeAndroidProject(root, resolved),
|
|
998
|
+
doctor: async () => (await import("./react-native-doctor-LTF-Xt8l.mjs")).reactNativeProjectDoctor(root)
|
|
999
999
|
};
|
|
1000
1000
|
}
|
|
1001
1001
|
},
|
|
@@ -1009,9 +1009,9 @@ const projectRegistry = createProjectRegistry([
|
|
|
1009
1009
|
application: true,
|
|
1010
1010
|
platforms: ({ settings }) => settingValueAt(settings, "macos.product") && settingValueAt(settings, "macos.infoPlist") ? ["macos"] : [],
|
|
1011
1011
|
validate: (operation) => operation === "macos" ? null : void 0,
|
|
1012
|
-
macos: async () => (await import("./swiftpm-macos-
|
|
1012
|
+
macos: async () => (await import("./swiftpm-macos-r_WSKlXr.mjs")).swiftpmMacosProject(root),
|
|
1013
1013
|
doctor: async () => {
|
|
1014
|
-
const { macosToolchain, macosToolchainAsync } = await import("./toolchain-
|
|
1014
|
+
const { macosToolchain, macosToolchainAsync } = await import("./toolchain-GVgnf8d1.mjs");
|
|
1015
1015
|
return {
|
|
1016
1016
|
inspect: () => [],
|
|
1017
1017
|
offloadTargets: ({ options: { host = process.platform, platform, operation } }) => host === "darwin" && platform === void 0 ? async () => [{
|
|
@@ -1031,7 +1031,7 @@ const projectRegistry = createProjectRegistry([
|
|
|
1031
1031
|
application: false,
|
|
1032
1032
|
platforms: ({ settings }) => webSettings(settings).url !== null ? ["web"] : [],
|
|
1033
1033
|
validate: (operation) => operation === "web" ? null : void 0,
|
|
1034
|
-
web: async () => (await import("./browser-web-
|
|
1034
|
+
web: async () => (await import("./browser-web-CeEVlGug.mjs")).browserWebProject(root)
|
|
1035
1035
|
};
|
|
1036
1036
|
}
|
|
1037
1037
|
},
|