@swmansion/argent 0.14.1-next.20 → 0.14.1-next.22
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 +7 -2
- package/package.json +1 -1
package/dist/tool-server.cjs
CHANGED
|
@@ -109659,6 +109659,7 @@ async function openMoqClient(udid) {
|
|
|
109659
109659
|
async function openMoqClientFromInfo(info) {
|
|
109660
109660
|
await ensurePolyfill();
|
|
109661
109661
|
const url2 = new URL(info.url);
|
|
109662
|
+
if (info.token) url2.searchParams.set("token", info.token);
|
|
109662
109663
|
const fingerprint = decodeHexFingerprint(info.fingerprint);
|
|
109663
109664
|
let established;
|
|
109664
109665
|
try {
|
|
@@ -119139,7 +119140,7 @@ var zodSchema9 = external_exports.object({
|
|
|
119139
119140
|
),
|
|
119140
119141
|
force: external_exports.boolean().optional().describe("Shut down and re-boot the device even if already running."),
|
|
119141
119142
|
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."
|
|
119143
|
+
"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
119144
|
),
|
|
119144
119145
|
electronAppPath: external_exports.string().optional().describe(
|
|
119145
119146
|
"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 +119213,10 @@ function selectExtraEmulatorArgs() {
|
|
|
119212
119213
|
const trimmed = (process.env.ARGENT_EMULATOR_NO_WINDOW ?? "").trim().toLowerCase();
|
|
119213
119214
|
return ["1", "true", "yes"].includes(trimmed) ? ["-no-window"] : [];
|
|
119214
119215
|
}
|
|
119216
|
+
function iosHeadlessFromEnv() {
|
|
119217
|
+
const trimmed = (process.env.ARGENT_SIMULATOR_NO_WINDOW ?? "").trim().toLowerCase();
|
|
119218
|
+
return ["1", "true", "yes"].includes(trimmed);
|
|
119219
|
+
}
|
|
119215
119220
|
var BOOT_POLL_INTERVALS_MS = {
|
|
119216
119221
|
serialByAvd: 1500,
|
|
119217
119222
|
// findSerialByAvdName: re-scan when >1 new emulator appeared
|
|
@@ -119380,7 +119385,7 @@ async function bootIos(udid, registry2, force, headless) {
|
|
|
119380
119385
|
udid
|
|
119381
119386
|
]).catch(() => {
|
|
119382
119387
|
});
|
|
119383
|
-
if (!headless) {
|
|
119388
|
+
if (!headless && !iosHeadlessFromEnv()) {
|
|
119384
119389
|
await execFileAsync11("open", ["-a", "Simulator.app"]).catch(() => execFileAsync11("open", ["-b", "com.apple.dt.Devices"])).catch(() => {
|
|
119385
119390
|
});
|
|
119386
119391
|
}
|