@swmansion/argent 0.22.1-next.3 → 0.22.1-next.5
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 +5 -1
- package/dist/installer.mjs +1 -1
- package/dist/tool-server.cjs +20 -6
- package/package.json +1 -1
package/dist/cli-cmds.mjs
CHANGED
|
@@ -2823,6 +2823,10 @@ var FLAG_REGISTRY = [
|
|
|
2823
2823
|
name: "tool-server-event-log",
|
|
2824
2824
|
description: "Write structured tool-server lifecycle events to a JSONL file."
|
|
2825
2825
|
},
|
|
2826
|
+
{
|
|
2827
|
+
name: "boot-sound",
|
|
2828
|
+
description: "Default boot-device's `sound` argument to true so Android emulators boot with audio output instead of muted. Only the argument's default changes \u2014 an explicit `sound: false` on a call still boots muted."
|
|
2829
|
+
},
|
|
2826
2830
|
{
|
|
2827
2831
|
name: "microinteractions",
|
|
2828
2832
|
description: "Amplify device actions with matching animations of the host window, so what happens on the guest is also visible on the desktop. Purely cosmetic, macOS only, and never affects whether the underlying action succeeds. Off by default."
|
|
@@ -7202,7 +7206,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
7202
7206
|
var SESSION_ID2 = randomUUID5();
|
|
7203
7207
|
function readCliVersion() {
|
|
7204
7208
|
if (true) {
|
|
7205
|
-
return "0.22.1-next.
|
|
7209
|
+
return "0.22.1-next.5";
|
|
7206
7210
|
}
|
|
7207
7211
|
return "0.0.0";
|
|
7208
7212
|
}
|
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.1-next.
|
|
16431
|
+
return "0.22.1-next.5";
|
|
16432
16432
|
}
|
|
16433
16433
|
return "0.0.0";
|
|
16434
16434
|
}
|
package/dist/tool-server.cjs
CHANGED
|
@@ -91789,6 +91789,10 @@ var FLAG_REGISTRY = [
|
|
|
91789
91789
|
name: "tool-server-event-log",
|
|
91790
91790
|
description: "Write structured tool-server lifecycle events to a JSONL file."
|
|
91791
91791
|
},
|
|
91792
|
+
{
|
|
91793
|
+
name: "boot-sound",
|
|
91794
|
+
description: "Default boot-device's `sound` argument to true so Android emulators boot with audio output instead of muted. Only the argument's default changes \u2014 an explicit `sound: false` on a call still boots muted."
|
|
91795
|
+
},
|
|
91792
91796
|
{
|
|
91793
91797
|
name: "microinteractions",
|
|
91794
91798
|
description: "Amplify device actions with matching animations of the host window, so what happens on the guest is also visible on the desktop. Purely cosmetic, macOS only, and never affects whether the underlying action succeeds. Off by default."
|
|
@@ -95664,7 +95668,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
95664
95668
|
var SESSION_ID = (0, import_node_crypto3.randomUUID)();
|
|
95665
95669
|
function readCliVersion() {
|
|
95666
95670
|
if (true) {
|
|
95667
|
-
return "0.22.1-next.
|
|
95671
|
+
return "0.22.1-next.5";
|
|
95668
95672
|
}
|
|
95669
95673
|
return "0.0.0";
|
|
95670
95674
|
}
|
|
@@ -118670,6 +118674,9 @@ var zodSchema9 = external_exports.object({
|
|
|
118670
118674
|
"Android/Vega: overall budget for the boot sequence. Default 480000 (8 min) on Android, 120000 (2 min) on Vega. Clamped to [30s, 15min]. Ignored on iOS."
|
|
118671
118675
|
),
|
|
118672
118676
|
force: external_exports.boolean().optional().describe("Shut down and re-boot the device even if already running."),
|
|
118677
|
+
sound: external_exports.boolean().optional().describe(
|
|
118678
|
+
"Android only: boot the emulator with audio output enabled. Defaults to false \u2014 argent boots emulators MUTED so several agent-driven devices don't all play sound on the host machine; pass `true` when the task involves playing, hearing, or testing audio. Takes effect at boot: if the emulator is already running muted, add `force: true` to reboot it with sound. A boot snapshot saved in the other audio mode can't be reused, so the first boot after toggling is a slower cold boot. The `boot-sound` argent flag flips this default to true. Ignored on iOS/Vega/Electron, which argent never mutes."
|
|
118679
|
+
),
|
|
118673
118680
|
headless: external_exports.boolean().optional().describe(
|
|
118674
118681
|
"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."
|
|
118675
118682
|
),
|
|
@@ -118687,13 +118694,15 @@ function bootTarget(params) {
|
|
|
118687
118694
|
return params.udid ?? params.avdName ?? params.vvdImage ?? params.electronAppPath ?? "device";
|
|
118688
118695
|
}
|
|
118689
118696
|
var LAUNCH_HARDENING_ARGS = [
|
|
118690
|
-
"-noaudio",
|
|
118691
118697
|
"-no-boot-anim",
|
|
118692
118698
|
"-netfast",
|
|
118693
118699
|
"-crash-report-mode",
|
|
118694
118700
|
"never",
|
|
118695
118701
|
"-no-metrics"
|
|
118696
118702
|
];
|
|
118703
|
+
function launchHardeningArgs(sound) {
|
|
118704
|
+
return sound ? [...LAUNCH_HARDENING_ARGS] : ["-noaudio", ...LAUNCH_HARDENING_ARGS];
|
|
118705
|
+
}
|
|
118697
118706
|
var STAGE_BUDGET = {
|
|
118698
118707
|
adbRegister: 6e4,
|
|
118699
118708
|
// adb devices sees the serial for this AVD
|
|
@@ -119125,6 +119134,7 @@ async function bootAndroidImpl(params) {
|
|
|
119125
119134
|
await ensureDep("emulator");
|
|
119126
119135
|
const gpuMode = selectGpuMode();
|
|
119127
119136
|
const extraEmulatorArgs = androidHeadlessFromEnv() ? ["-no-window"] : [];
|
|
119137
|
+
const hardeningArgs = launchHardeningArgs(params.sound);
|
|
119128
119138
|
for (const msg of linuxBootDiagnostics(params.avdName) ?? []) {
|
|
119129
119139
|
console.warn(`[boot-device:linux] ${msg}`);
|
|
119130
119140
|
}
|
|
@@ -119203,7 +119213,7 @@ async function bootAndroidImpl(params) {
|
|
|
119203
119213
|
} else {
|
|
119204
119214
|
const RENDERER_ARGS = ["-gpu", gpuMode, ...extraEmulatorArgs];
|
|
119205
119215
|
const probe3 = await checkSnapshotLoadable(params.avdName, "default_boot", {
|
|
119206
|
-
extraArgs: [...RENDERER_ARGS, ...
|
|
119216
|
+
extraArgs: [...RENDERER_ARGS, ...hardeningArgs]
|
|
119207
119217
|
});
|
|
119208
119218
|
if (!probe3.loadable) {
|
|
119209
119219
|
hotBootFailureReason = `-check-snapshot-loadable: ${probe3.reason ?? "unknown"}`;
|
|
@@ -119214,7 +119224,7 @@ async function bootAndroidImpl(params) {
|
|
|
119214
119224
|
"-force-snapshot-load",
|
|
119215
119225
|
"-no-snapshot-save",
|
|
119216
119226
|
...RENDERER_ARGS,
|
|
119217
|
-
...
|
|
119227
|
+
...hardeningArgs,
|
|
119218
119228
|
...crashReportArgs
|
|
119219
119229
|
];
|
|
119220
119230
|
const hotAttemptDeadline = Math.min(overallDeadline, Date.now() + HOT_BOOT_BUDGET_MS);
|
|
@@ -119258,7 +119268,7 @@ async function bootAndroidImpl(params) {
|
|
|
119258
119268
|
"-gpu",
|
|
119259
119269
|
gpuMode,
|
|
119260
119270
|
...extraEmulatorArgs,
|
|
119261
|
-
...
|
|
119271
|
+
...hardeningArgs,
|
|
119262
119272
|
...crashReportArgs
|
|
119263
119273
|
];
|
|
119264
119274
|
let coldResult;
|
|
@@ -119455,7 +119465,11 @@ Android boots take 2\u201310 minutes depending on machine and cold/warm state; t
|
|
|
119455
119465
|
return bootAndroid({
|
|
119456
119466
|
avdName: params.avdName,
|
|
119457
119467
|
bootTimeoutMs: params.bootTimeoutMs ?? 48e4,
|
|
119458
|
-
force: params.force
|
|
119468
|
+
force: params.force,
|
|
119469
|
+
// An explicit argument always wins; the `boot-sound` flag only moves
|
|
119470
|
+
// the default when the caller left `sound` unset. Read live per call
|
|
119471
|
+
// so `argent enable/disable boot-sound` applies without a restart.
|
|
119472
|
+
sound: params.sound ?? isFlagEnabled("boot-sound")
|
|
119459
119473
|
});
|
|
119460
119474
|
}
|
|
119461
119475
|
if (hasVega) {
|
package/package.json
CHANGED