@swmansion/argent 0.22.2-next.1 → 0.22.2-next.2
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/cli-cmds.mjs +1 -1
- package/dist/installer.mjs +1 -1
- package/dist/tool-server.cjs +22 -11
- package/package.json +1 -1
package/dist/cli-cmds.mjs
CHANGED
package/dist/installer.mjs
CHANGED
|
@@ -16428,7 +16428,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
16428
16428
|
var SESSION_ID = randomUUID4();
|
|
16429
16429
|
function readCliVersion() {
|
|
16430
16430
|
if (true) {
|
|
16431
|
-
return "0.22.2-next.
|
|
16431
|
+
return "0.22.2-next.2";
|
|
16432
16432
|
}
|
|
16433
16433
|
return "0.0.0";
|
|
16434
16434
|
}
|
package/dist/tool-server.cjs
CHANGED
|
@@ -76339,15 +76339,28 @@ async function emulatorSupportsFlag(flag, options = {}) {
|
|
|
76339
76339
|
const cached3 = emulatorFlagSupportCache.get(cacheKey3);
|
|
76340
76340
|
if (cached3 !== void 0) return cached3;
|
|
76341
76341
|
let output;
|
|
76342
|
+
let failure = null;
|
|
76342
76343
|
try {
|
|
76343
76344
|
const { stdout, stderr } = await execFileAsync9(emulatorPath, ["-help"], {
|
|
76344
76345
|
timeout: options.timeoutMs ?? 1e4,
|
|
76346
|
+
// Same hazard runAdb guards against: a SIGTERM-immune child (emulator
|
|
76347
|
+
// wedged in Qt/graphics init) leaves execFile unsettled forever, and
|
|
76348
|
+
// this await has no deadline of its own.
|
|
76349
|
+
killSignal: "SIGKILL",
|
|
76345
76350
|
maxBuffer: 8 * 1024 * 1024
|
|
76346
76351
|
});
|
|
76347
76352
|
output = stdout + stderr;
|
|
76348
76353
|
} catch (err) {
|
|
76349
76354
|
const e = err;
|
|
76350
|
-
output = (e.stdout ?? "") + (e.stderr ?? "");
|
|
76355
|
+
output = e.killed ? "" : (e.stdout ?? "") + (e.stderr ?? "");
|
|
76356
|
+
failure = err instanceof Error ? err.message : String(err);
|
|
76357
|
+
}
|
|
76358
|
+
if (output === "") {
|
|
76359
|
+
process.stderr.write(
|
|
76360
|
+
`[argent] \`${emulatorPath} -help\` produced no complete listing ` + (failure ? `(${failure})` : "but exited successfully") + `; assuming "${flag}" unsupported for this boot and retrying on the next one
|
|
76361
|
+
`
|
|
76362
|
+
);
|
|
76363
|
+
return false;
|
|
76351
76364
|
}
|
|
76352
76365
|
const supported = output.includes(flag);
|
|
76353
76366
|
emulatorFlagSupportCache.set(cacheKey3, supported);
|
|
@@ -76557,7 +76570,10 @@ async function listAvds() {
|
|
|
76557
76570
|
const emulatorPath = await resolveAndroidBinary("emulator");
|
|
76558
76571
|
if (!emulatorPath) return [];
|
|
76559
76572
|
try {
|
|
76560
|
-
const { stdout } = await execFileAsync9(emulatorPath, ["-list-avds"], {
|
|
76573
|
+
const { stdout } = await execFileAsync9(emulatorPath, ["-list-avds"], {
|
|
76574
|
+
timeout: 5e3,
|
|
76575
|
+
killSignal: "SIGKILL"
|
|
76576
|
+
});
|
|
76561
76577
|
return stdout.split("\n").map((l) => l.trim()).filter((l) => l && AVD_NAME_PATTERN.test(l)).map((name) => ({ name }));
|
|
76562
76578
|
} catch {
|
|
76563
76579
|
return [];
|
|
@@ -76575,6 +76591,7 @@ async function checkSnapshotLoadable(avdName, snapshotName = "default_boot", opt
|
|
|
76575
76591
|
];
|
|
76576
76592
|
const { stdout } = await execFileAsync9(emulatorPath, args, {
|
|
76577
76593
|
timeout: options.timeoutMs ?? 1e4,
|
|
76594
|
+
killSignal: "SIGKILL",
|
|
76578
76595
|
maxBuffer: 4 * 1024 * 1024
|
|
76579
76596
|
});
|
|
76580
76597
|
const tail = stdout.split("\n").slice(-6).join("\n");
|
|
@@ -93869,7 +93886,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
93869
93886
|
var SESSION_ID = (0, import_node_crypto3.randomUUID)();
|
|
93870
93887
|
function readCliVersion() {
|
|
93871
93888
|
if (true) {
|
|
93872
|
-
return "0.22.2-next.
|
|
93889
|
+
return "0.22.2-next.2";
|
|
93873
93890
|
}
|
|
93874
93891
|
return "0.0.0";
|
|
93875
93892
|
}
|
|
@@ -116837,13 +116854,7 @@ var zodSchema9 = external_exports.object({
|
|
|
116837
116854
|
function bootTarget(params) {
|
|
116838
116855
|
return params.udid ?? params.avdName ?? params.vvdImage ?? params.electronAppPath ?? "device";
|
|
116839
116856
|
}
|
|
116840
|
-
var LAUNCH_HARDENING_ARGS = [
|
|
116841
|
-
"-no-boot-anim",
|
|
116842
|
-
"-netfast",
|
|
116843
|
-
"-crash-report-mode",
|
|
116844
|
-
"never",
|
|
116845
|
-
"-no-metrics"
|
|
116846
|
-
];
|
|
116857
|
+
var LAUNCH_HARDENING_ARGS = ["-no-boot-anim", "-netfast", "-no-metrics"];
|
|
116847
116858
|
function launchHardeningArgs(sound) {
|
|
116848
116859
|
return sound ? [...LAUNCH_HARDENING_ARGS] : ["-noaudio", ...LAUNCH_HARDENING_ARGS];
|
|
116849
116860
|
}
|
|
@@ -117357,7 +117368,7 @@ async function bootAndroidImpl(params) {
|
|
|
117357
117368
|
} else {
|
|
117358
117369
|
const RENDERER_ARGS = ["-gpu", gpuMode, ...extraEmulatorArgs];
|
|
117359
117370
|
const probe3 = await checkSnapshotLoadable(params.avdName, "default_boot", {
|
|
117360
|
-
extraArgs: [...RENDERER_ARGS, ...hardeningArgs]
|
|
117371
|
+
extraArgs: [...RENDERER_ARGS, ...hardeningArgs, ...crashReportArgs]
|
|
117361
117372
|
});
|
|
117362
117373
|
if (!probe3.loadable) {
|
|
117363
117374
|
hotBootFailureReason = `-check-snapshot-loadable: ${probe3.reason ?? "unknown"}`;
|
package/package.json
CHANGED