@swmansion/argent 0.14.1-next.20 → 0.14.1-next.21
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/tool-server.cjs +6 -2
- package/package.json +1 -1
package/dist/tool-server.cjs
CHANGED
|
@@ -119139,7 +119139,7 @@ var zodSchema9 = external_exports.object({
|
|
|
119139
119139
|
),
|
|
119140
119140
|
force: external_exports.boolean().optional().describe("Shut down and re-boot the device even if already running."),
|
|
119141
119141
|
headless: external_exports.boolean().optional().describe(
|
|
119142
|
-
"iOS only: boot the simulator core WITHOUT opening the Simulator.app GUI window. The device still streams via simulator-server; used by Argent Lens. Ignored on Android/Vega/Electron, which have no equivalent GUI step."
|
|
119142
|
+
"iOS only: boot the simulator core WITHOUT opening the Simulator.app GUI window. The device still streams via simulator-server; used by Argent Lens. Set the `ARGENT_SIMULATOR_NO_WINDOW` env var (1/true/yes) to force this host-wide without passing the flag per call (the iOS analog of `ARGENT_EMULATOR_NO_WINDOW`). Ignored on Android/Vega/Electron, which have no equivalent GUI step."
|
|
119143
119143
|
),
|
|
119144
119144
|
electronAppPath: external_exports.string().optional().describe(
|
|
119145
119145
|
"Electron: path to the Electron app to launch. Either a packaged .app bundle / executable, or a project directory whose package.json points the Electron binary at the entry script. Mutually exclusive with udid/avdName."
|
|
@@ -119212,6 +119212,10 @@ function selectExtraEmulatorArgs() {
|
|
|
119212
119212
|
const trimmed = (process.env.ARGENT_EMULATOR_NO_WINDOW ?? "").trim().toLowerCase();
|
|
119213
119213
|
return ["1", "true", "yes"].includes(trimmed) ? ["-no-window"] : [];
|
|
119214
119214
|
}
|
|
119215
|
+
function iosHeadlessFromEnv() {
|
|
119216
|
+
const trimmed = (process.env.ARGENT_SIMULATOR_NO_WINDOW ?? "").trim().toLowerCase();
|
|
119217
|
+
return ["1", "true", "yes"].includes(trimmed);
|
|
119218
|
+
}
|
|
119215
119219
|
var BOOT_POLL_INTERVALS_MS = {
|
|
119216
119220
|
serialByAvd: 1500,
|
|
119217
119221
|
// findSerialByAvdName: re-scan when >1 new emulator appeared
|
|
@@ -119380,7 +119384,7 @@ async function bootIos(udid, registry2, force, headless) {
|
|
|
119380
119384
|
udid
|
|
119381
119385
|
]).catch(() => {
|
|
119382
119386
|
});
|
|
119383
|
-
if (!headless) {
|
|
119387
|
+
if (!headless && !iosHeadlessFromEnv()) {
|
|
119384
119388
|
await execFileAsync11("open", ["-a", "Simulator.app"]).catch(() => execFileAsync11("open", ["-b", "com.apple.dt.Devices"])).catch(() => {
|
|
119385
119389
|
});
|
|
119386
119390
|
}
|