@swmansion/argent 0.35.1-next.66 → 0.35.1-next.67

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.
@@ -43269,7 +43269,7 @@ var require_view = __commonJS({
43269
43269
  var dirname29 = path77.dirname;
43270
43270
  var basename25 = path77.basename;
43271
43271
  var extname7 = path77.extname;
43272
- var join81 = path77.join;
43272
+ var join82 = path77.join;
43273
43273
  var resolve24 = path77.resolve;
43274
43274
  module2.exports = View;
43275
43275
  function View(name, options) {
@@ -43331,12 +43331,12 @@ var require_view = __commonJS({
43331
43331
  };
43332
43332
  View.prototype.resolve = function resolve25(dir, file2) {
43333
43333
  var ext = this.ext;
43334
- var path78 = join81(dir, file2);
43334
+ var path78 = join82(dir, file2);
43335
43335
  var stat11 = tryStat(path78);
43336
43336
  if (stat11 && stat11.isFile()) {
43337
43337
  return path78;
43338
43338
  }
43339
- path78 = join81(dir, basename25(file2, ext), "index" + ext);
43339
+ path78 = join82(dir, basename25(file2, ext), "index" + ext);
43340
43340
  stat11 = tryStat(path78);
43341
43341
  if (stat11 && stat11.isFile()) {
43342
43342
  return path78;
@@ -47276,7 +47276,7 @@ var require_send = __commonJS({
47276
47276
  var Stream2 = require("stream");
47277
47277
  var util = require("util");
47278
47278
  var extname7 = path77.extname;
47279
- var join81 = path77.join;
47279
+ var join82 = path77.join;
47280
47280
  var normalize = path77.normalize;
47281
47281
  var resolve24 = path77.resolve;
47282
47282
  var sep12 = path77.sep;
@@ -47448,7 +47448,7 @@ var require_send = __commonJS({
47448
47448
  return res;
47449
47449
  }
47450
47450
  parts2 = path78.split(sep12);
47451
- path78 = normalize(join81(root, path78));
47451
+ path78 = normalize(join82(root, path78));
47452
47452
  } else {
47453
47453
  if (UP_PATH_REGEXP.test(path78)) {
47454
47454
  debug('malicious path "%s"', path78);
@@ -47581,7 +47581,7 @@ var require_send = __commonJS({
47581
47581
  if (err) return self2.onStatError(err);
47582
47582
  return self2.error(404);
47583
47583
  }
47584
- var p = join81(path78, self2._index[i]);
47584
+ var p = join82(path78, self2._index[i]);
47585
47585
  debug('stat "%s"', p);
47586
47586
  fs93.stat(p, function(err2, stat11) {
47587
47587
  if (err2) return next(err2);
@@ -63065,7 +63065,7 @@ async function emulatorSupportsFlag(flag, options = {}) {
63065
63065
  let output2;
63066
63066
  let failure3 = null;
63067
63067
  try {
63068
- const { stdout, stderr } = await execFileAsync13(emulatorPath, ["-help"], {
63068
+ const { stdout, stderr } = await execFileAsync14(emulatorPath, ["-help"], {
63069
63069
  timeout: options.timeoutMs ?? 1e4,
63070
63070
  // Same hazard runAdb guards against: a SIGTERM-immune child (emulator
63071
63071
  // wedged in Qt/graphics init) leaves execFile unsettled forever, and
@@ -63116,7 +63116,7 @@ async function runAdb(args, options = {}) {
63116
63116
  const adbPath = await resolveAdbOrThrow();
63117
63117
  const argv = adbArgv(args);
63118
63118
  try {
63119
- const { stdout, stderr } = await execFileAsync13(adbPath, argv, {
63119
+ const { stdout, stderr } = await execFileAsync14(adbPath, argv, {
63120
63120
  timeout: options.timeoutMs ?? 3e4,
63121
63121
  killSignal: ADB_KILL_SIGNAL,
63122
63122
  maxBuffer: 64 * 1024 * 1024,
@@ -63132,7 +63132,7 @@ async function runAdbBinary(args, options = {}) {
63132
63132
  const adbPath = await resolveAdbOrThrow();
63133
63133
  const argv = adbArgv(args);
63134
63134
  try {
63135
- const { stdout } = await execFileAsync13(adbPath, argv, {
63135
+ const { stdout } = await execFileAsync14(adbPath, argv, {
63136
63136
  timeout: options.timeoutMs ?? 3e4,
63137
63137
  killSignal: ADB_KILL_SIGNAL,
63138
63138
  maxBuffer: 64 * 1024 * 1024,
@@ -63154,7 +63154,7 @@ async function adbShellInput(serial, shellCommand, input2, options = {}) {
63154
63154
  const adbPath = await resolveAdbOrThrow();
63155
63155
  const argv = adbArgv(["-s", serial, "shell", shellCommand]);
63156
63156
  return new Promise((resolve24, reject) => {
63157
- const child = (0, import_node_child_process18.execFile)(
63157
+ const child = (0, import_node_child_process19.execFile)(
63158
63158
  adbPath,
63159
63159
  argv,
63160
63160
  {
@@ -63387,7 +63387,7 @@ async function listAvds() {
63387
63387
  const emulatorPath = await resolveAndroidBinary("emulator");
63388
63388
  if (!emulatorPath) return [];
63389
63389
  try {
63390
- const { stdout } = await execFileAsync13(emulatorPath, ["-list-avds"], {
63390
+ const { stdout } = await execFileAsync14(emulatorPath, ["-list-avds"], {
63391
63391
  timeout: 5e3,
63392
63392
  killSignal: "SIGKILL"
63393
63393
  });
@@ -63406,7 +63406,7 @@ async function checkSnapshotLoadable(avdName, snapshotName = "default_boot", opt
63406
63406
  "-check-snapshot-loadable",
63407
63407
  snapshotName
63408
63408
  ];
63409
- const { stdout } = await execFileAsync13(emulatorPath, args, {
63409
+ const { stdout } = await execFileAsync14(emulatorPath, args, {
63410
63410
  timeout: options.timeoutMs ?? 1e4,
63411
63411
  killSignal: "SIGKILL",
63412
63412
  maxBuffer: 4 * 1024 * 1024
@@ -63423,7 +63423,7 @@ async function checkSnapshotLoadable(avdName, snapshotName = "default_boot", opt
63423
63423
  }
63424
63424
  }
63425
63425
  function avdRootCandidates() {
63426
- const home = (0, import_node_os3.homedir)();
63426
+ const home = (0, import_node_os4.homedir)();
63427
63427
  const candidates = [
63428
63428
  process.env.ANDROID_USER_HOME ? `${process.env.ANDROID_USER_HOME}/avd` : null,
63429
63429
  process.env.ANDROID_AVD_HOME,
@@ -63431,7 +63431,7 @@ function avdRootCandidates() {
63431
63431
  process.env.ANDROID_SDK_HOME ? `${process.env.ANDROID_SDK_HOME}/.android/avd` : null,
63432
63432
  home ? `${home}/.android/avd` : null
63433
63433
  ];
63434
- return candidates.filter((p) => Boolean(p && (0, import_node_path10.isAbsolute)(p)));
63434
+ return candidates.filter((p) => Boolean(p && (0, import_node_path11.isAbsolute)(p)));
63435
63435
  }
63436
63436
  async function resolveAvdPath(avdName) {
63437
63437
  const { readFile: readFile26 } = await import("node:fs/promises");
@@ -63441,7 +63441,7 @@ async function resolveAvdPath(avdName) {
63441
63441
  const raw = (0, import_ini.parse)(content).path;
63442
63442
  if (typeof raw !== "string") continue;
63443
63443
  const trimmed = raw.trim();
63444
- if (!(0, import_node_path10.isAbsolute)(trimmed)) continue;
63444
+ if (!(0, import_node_path11.isAbsolute)(trimmed)) continue;
63445
63445
  return trimmed;
63446
63446
  } catch {
63447
63447
  }
@@ -63476,20 +63476,20 @@ async function hasDefaultBootSnapshot(avdName) {
63476
63476
  return false;
63477
63477
  }
63478
63478
  }
63479
- var import_node_child_process18, import_node_util14, import_node_os3, import_node_path10, import_ini, execFileAsync13, emulatorFlagSupportCache, ADB_KILL_SIGNAL, ADB_DEVICE_STATES, ADB_DEVICES_TIMEOUT_MS, ENRICH_TIMEOUT_MS, androidRuntimeKindCache, TERMINAL_ADB_ERROR_PATTERNS, AVD_NAME_PATTERN;
63479
+ var import_node_child_process19, import_node_util15, import_node_os4, import_node_path11, import_ini, execFileAsync14, emulatorFlagSupportCache, ADB_KILL_SIGNAL, ADB_DEVICE_STATES, ADB_DEVICES_TIMEOUT_MS, ENRICH_TIMEOUT_MS, androidRuntimeKindCache, TERMINAL_ADB_ERROR_PATTERNS, AVD_NAME_PATTERN;
63480
63480
  var init_adb = __esm({
63481
63481
  "../tool-server/src/utils/adb.ts"() {
63482
63482
  "use strict";
63483
- import_node_child_process18 = require("node:child_process");
63484
- import_node_util14 = require("node:util");
63485
- import_node_os3 = require("node:os");
63486
- import_node_path10 = require("node:path");
63483
+ import_node_child_process19 = require("node:child_process");
63484
+ import_node_util15 = require("node:util");
63485
+ import_node_os4 = require("node:os");
63486
+ import_node_path11 = require("node:path");
63487
63487
  import_ini = __toESM(require_ini());
63488
63488
  init_src2();
63489
63489
  init_android_binary();
63490
63490
  init_subprocess_error();
63491
63491
  init_external_devices();
63492
- execFileAsync13 = (0, import_node_util14.promisify)(import_node_child_process18.execFile);
63492
+ execFileAsync14 = (0, import_node_util15.promisify)(import_node_child_process19.execFile);
63493
63493
  emulatorFlagSupportCache = /* @__PURE__ */ new Map();
63494
63494
  ADB_KILL_SIGNAL = "SIGKILL";
63495
63495
  ADB_DEVICE_STATES = /* @__PURE__ */ new Set([
@@ -73041,7 +73041,7 @@ function isCi(env = process.env) {
73041
73041
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
73042
73042
  function readCliVersion() {
73043
73043
  if (true) {
73044
- return "0.35.1-next.65";
73044
+ return "0.35.1-next.67";
73045
73045
  }
73046
73046
  return "0.0.0";
73047
73047
  }
@@ -73902,10 +73902,10 @@ async function shutdown(timeoutMs = SHORT_FLUSH_TIMEOUT_MS) {
73902
73902
  // ../tool-server/src/http.ts
73903
73903
  var import_express3 = __toESM(require_express2());
73904
73904
  var import_bytes2 = __toESM(require_bytes());
73905
- var import_node_fs13 = require("node:fs");
73906
- var import_promises13 = require("node:fs/promises");
73907
- var import_node_os10 = require("node:os");
73908
- var import_node_path15 = require("node:path");
73905
+ var import_node_fs14 = require("node:fs");
73906
+ var import_promises14 = require("node:fs/promises");
73907
+ var import_node_os11 = require("node:os");
73908
+ var import_node_path16 = require("node:path");
73909
73909
  init_src();
73910
73910
  var import_node_crypto14 = require("node:crypto");
73911
73911
 
@@ -74843,13 +74843,95 @@ async function hdcFileRecv(connectKey, remotePath, localPath, timeoutMs = DEFAUL
74843
74843
  // ../tool-server/src/utils/check-deps.ts
74844
74844
  init_command_on_path();
74845
74845
 
74846
+ // ../tool-server/src/utils/argent-cloud-bin.ts
74847
+ var import_node_child_process8 = require("node:child_process");
74848
+ var import_node_util6 = require("node:util");
74849
+ var import_node_fs6 = require("node:fs");
74850
+ var import_promises7 = require("node:fs/promises");
74851
+ var import_node_os3 = require("node:os");
74852
+ var import_node_path9 = require("node:path");
74853
+ var import_semver2 = __toESM(require_semver2());
74854
+ init_command_on_path();
74855
+ var execFileAsync6 = (0, import_node_util6.promisify)(import_node_child_process8.execFile);
74856
+ var MIN_ARGENT_CLOUD_VERSION = "1.1.0";
74857
+ var LEGACY_NAME = "sim-remote";
74858
+ var VERSION_TIMEOUT_MS = 5e3;
74859
+ var VERSION_TTL_MS = 6e4;
74860
+ var cachedBin;
74861
+ var versionCache = /* @__PURE__ */ new Map();
74862
+ async function isExecutable3(path77) {
74863
+ try {
74864
+ await (0, import_promises7.access)(path77, import_node_fs6.constants.X_OK);
74865
+ return true;
74866
+ } catch {
74867
+ return false;
74868
+ }
74869
+ }
74870
+ async function onPathOrLocalBin(name) {
74871
+ if (await commandOnPath(name)) return name;
74872
+ const local = (0, import_node_path9.join)((0, import_node_os3.homedir)(), ".local", "bin", name);
74873
+ return await isExecutable3(local) ? local : null;
74874
+ }
74875
+ async function findArgentCloudBin() {
74876
+ if (cachedBin) return cachedBin;
74877
+ const found = await locateArgentCloudBin();
74878
+ if (found) cachedBin = found;
74879
+ return found;
74880
+ }
74881
+ async function locateArgentCloudBin() {
74882
+ const fromEnv = envArgentCloudBin();
74883
+ if (fromEnv) return await isExecutable3(fromEnv) ? fromEnv : null;
74884
+ return await onPathOrLocalBin("argent-cloud") || await onPathOrLocalBin(LEGACY_NAME);
74885
+ }
74886
+ function envArgentCloudBin() {
74887
+ return process.env.ARGENT_CLOUD_BIN?.trim() || void 0;
74888
+ }
74889
+ async function argentCloudBin() {
74890
+ return await findArgentCloudBin() ?? envArgentCloudBin() ?? LEGACY_NAME;
74891
+ }
74892
+ function argentCloudCommand() {
74893
+ return cachedBin ?? LEGACY_NAME;
74894
+ }
74895
+ function forgetArgentCloudBin() {
74896
+ cachedBin = void 0;
74897
+ versionCache.clear();
74898
+ }
74899
+ function parseArgentCloudVersion(output2) {
74900
+ const match = /^\S+ v?(\d+\.\d+\.\d+\S*)$/.exec(output2.trim().split("\n")[0]?.trim() ?? "");
74901
+ return match && import_semver2.default.valid(match[1]) ? match[1] : null;
74902
+ }
74903
+ function isArgentCloudOutdated(version3) {
74904
+ const coerced = import_semver2.default.coerce(version3);
74905
+ return coerced !== null && import_semver2.default.lt(coerced, MIN_ARGENT_CLOUD_VERSION);
74906
+ }
74907
+ async function readVersion(bin) {
74908
+ try {
74909
+ const { stdout } = await execFileAsync6(bin, ["--version"], {
74910
+ timeout: VERSION_TIMEOUT_MS,
74911
+ encoding: "utf8"
74912
+ });
74913
+ return parseArgentCloudVersion(stdout);
74914
+ } catch {
74915
+ return null;
74916
+ }
74917
+ }
74918
+ async function argentCloudVersion() {
74919
+ const bin = await findArgentCloudBin();
74920
+ if (!bin) return null;
74921
+ const cached3 = versionCache.get(bin);
74922
+ if (cached3 && Date.now() - cached3.readAt < VERSION_TTL_MS) return cached3.version;
74923
+ const version3 = await readVersion(bin);
74924
+ versionCache.set(bin, { version: version3, readAt: Date.now() });
74925
+ return version3;
74926
+ }
74927
+
74846
74928
  // ../tool-server/src/utils/dependency-errors.ts
74847
74929
  init_src2();
74848
74930
 
74849
74931
  // ../tool-server/src/utils/xcode-first-launch.ts
74850
74932
  var fs13 = __toESM(require("node:fs"));
74851
74933
  var path13 = __toESM(require("node:path"));
74852
- var import_node_child_process8 = require("node:child_process");
74934
+ var import_node_child_process9 = require("node:child_process");
74853
74935
  var WRAPPER_DEVICES = {
74854
74936
  simctl: "local iOS simulators",
74855
74937
  devicectl: "physical iPhones"
@@ -74934,7 +75016,7 @@ function readBundleVersion(plistPath) {
74934
75016
  var PLUTIL_TIMEOUT_MS = 1e3;
74935
75017
  function readBinaryPlistVersion(plistPath) {
74936
75018
  try {
74937
- const version3 = (0, import_node_child_process8.execFileSync)(
75019
+ const version3 = (0, import_node_child_process9.execFileSync)(
74938
75020
  "/usr/bin/plutil",
74939
75021
  ["-extract", "CFBundleVersion", "raw", "-o", "-", plistPath],
74940
75022
  {
@@ -75008,7 +75090,7 @@ var INSTALL_HINTS = {
75008
75090
  "xcrun": "Xcode command-line tools not found \u2014 iOS/tvOS simulators need a macOS host with them installed. On macOS, run `xcode-select --install` (or install Xcode from the App Store) and retry.",
75009
75091
  "adb": "Android SDK Platform Tools not found. Install `platform-tools` via Android Studio \u2192 SDK Manager or `sdkmanager 'platform-tools'` (`brew install --cask android-platform-tools` on macOS). If installed, ensure `adb` is on PATH or point `$ANDROID_HOME` (or the `android.sdkRoot` config key) at the SDK root (the resolver checks `<root>/platform-tools/adb`). Only required for Android devices and emulators.",
75010
75092
  "emulator": "Android Emulator not found. Install via Android Studio \u2192 SDK Manager \u2192 Emulator, or `sdkmanager 'emulator'`. If installed, ensure `emulator` is on PATH or point `$ANDROID_HOME` (or the `android.sdkRoot` config key) at the SDK root (the resolver checks `<root>/emulator/emulator`). Only required to launch new Android emulators via `boot-device`.",
75011
- "sim-remote": "`sim-remote` CLI not found on PATH. Install via the radon-cloud project (see its README) and run `sim-remote login` before invoking any ios-remote tool. Only required for remote iOS simulators.",
75093
+ "sim-remote": "Argent Cloud CLI not found: `ARGENT_CLOUD_BIN` is unset or not executable, and no `argent-cloud` or `sim-remote` is on PATH or in `~/.local/bin`. Install it as described at https://docs.swmansion.com/argent/docs/cloud/fundamentals/installation, then run its `login` command (`sim-remote login`) before invoking any ios-remote tool. Only required for remote iOS simulators.",
75012
75094
  "vega": "Vega SDK CLI not found. Install the Amazon Vega SDK and run `source ~/vega/env` so `vega` (or its `kepler` alias) is on PATH; the resolver also checks `~/vega/bin/vega`. Only required for Vega (Fire TV) devices.",
75013
75095
  "harmony-emulator": "HarmonyOS emulator manager not found. Install DevEco Studio; a macOS install at `/Applications/DevEco-Studio.app` is found automatically, and anywhere else set `$DEVECO_STUDIO_HOME` to the directory holding `tools/emulator/Emulator` (the resolver also checks that path under `Contents/`, so a macOS app bundle works too). Only required to list or launch HarmonyOS emulators.",
75014
75096
  "hdc": "`hdc`, the HarmonyOS device connector, was not found. Install DevEco Studio (it ships `hdc` under `sdk/default/openharmony/toolchains`, and a macOS install at `/Applications/DevEco-Studio.app` is found automatically), or put `hdc` from the OpenHarmony command-line tools on PATH, or set `$DEVECO_STUDIO_HOME` to the directory holding `sdk/default/openharmony/toolchains/hdc` (the resolver also checks that path under `Contents/`, so a macOS app bundle works too). Only required to drive HarmonyOS devices."
@@ -75026,6 +75108,9 @@ async function probe2(dep) {
75026
75108
  if (dep === "hdc") {
75027
75109
  return await resolveHdc() !== null;
75028
75110
  }
75111
+ if (dep === "sim-remote") {
75112
+ return await findArgentCloudBin() !== null;
75113
+ }
75029
75114
  return await commandOnPath(dep) !== null;
75030
75115
  }
75031
75116
  async function isAvailable(dep) {
@@ -75108,9 +75193,9 @@ function toSimulatorNetworkError(toolLabel, err, apiUrl, fallbackHint) {
75108
75193
  }
75109
75194
 
75110
75195
  // ../tool-server/src/utils/update-checker.ts
75111
- var import_node_fs6 = __toESM(require("node:fs"));
75112
- var import_node_path9 = __toESM(require("node:path"));
75113
- var import_semver2 = __toESM(require_semver2());
75196
+ var import_node_fs7 = __toESM(require("node:fs"));
75197
+ var import_node_path10 = __toESM(require("node:path"));
75198
+ var import_semver3 = __toESM(require_semver2());
75114
75199
 
75115
75200
  // ../tool-server/package.json
75116
75201
  var version2 = "0.35.0";
@@ -75128,11 +75213,11 @@ var PACKAGE_NAME = "@swmansion/argent";
75128
75213
  var REGISTRY_URL = `https://registry.npmjs.org/${PACKAGE_NAME}`;
75129
75214
  var CHECK_INTERVAL_MS = 60 * 60 * 1e3 * 24;
75130
75215
  function getSuppressionFilePath() {
75131
- return import_node_path9.default.join(argentHomeDir(), "update-suppression.json");
75216
+ return import_node_path10.default.join(argentHomeDir(), "update-suppression.json");
75132
75217
  }
75133
75218
  function loadSuppressUntil() {
75134
75219
  try {
75135
- const raw = import_node_fs6.default.readFileSync(getSuppressionFilePath(), "utf8");
75220
+ const raw = import_node_fs7.default.readFileSync(getSuppressionFilePath(), "utf8");
75136
75221
  const parsed2 = JSON.parse(raw);
75137
75222
  const value = parsed2.suppressUntil;
75138
75223
  return typeof value === "number" && Number.isFinite(value) ? value : 0;
@@ -75142,13 +75227,13 @@ function loadSuppressUntil() {
75142
75227
  }
75143
75228
  function persistSuppressUntil(value) {
75144
75229
  const filePath = getSuppressionFilePath();
75145
- import_node_fs6.default.mkdirSync(import_node_path9.default.dirname(filePath), { recursive: true });
75230
+ import_node_fs7.default.mkdirSync(import_node_path10.default.dirname(filePath), { recursive: true });
75146
75231
  const tempPath = `${filePath}.${process.pid}.tmp`;
75147
75232
  try {
75148
- import_node_fs6.default.writeFileSync(tempPath, JSON.stringify({ suppressUntil: value }));
75149
- import_node_fs6.default.renameSync(tempPath, filePath);
75233
+ import_node_fs7.default.writeFileSync(tempPath, JSON.stringify({ suppressUntil: value }));
75234
+ import_node_fs7.default.renameSync(tempPath, filePath);
75150
75235
  } catch (error63) {
75151
- import_node_fs6.default.rmSync(tempPath, { force: true });
75236
+ import_node_fs7.default.rmSync(tempPath, { force: true });
75152
75237
  throw error63;
75153
75238
  }
75154
75239
  }
@@ -75182,9 +75267,9 @@ function suppressUpdateNote(durationMs) {
75182
75267
  }
75183
75268
  }
75184
75269
  function isNewerVersion(latest, current) {
75185
- if (!import_semver2.default.valid(latest) || !import_semver2.default.valid(current)) return false;
75186
- if (import_semver2.default.prerelease(latest)) return false;
75187
- return import_semver2.default.gt(latest, current);
75270
+ if (!import_semver3.default.valid(latest) || !import_semver3.default.valid(current)) return false;
75271
+ if (import_semver3.default.prerelease(latest)) return false;
75272
+ return import_semver3.default.gt(latest, current);
75188
75273
  }
75189
75274
  async function check2(options, generation) {
75190
75275
  const info = await (0, import_update_core.fetchRegistryInfo)(REGISTRY_URL);
@@ -75244,7 +75329,7 @@ function startUpdateChecker(options = {}) {
75244
75329
  }
75245
75330
 
75246
75331
  // ../tool-server/src/tools/system/update-argent.ts
75247
- var import_node_child_process9 = require("node:child_process");
75332
+ var import_node_child_process10 = require("node:child_process");
75248
75333
  var fs16 = __toESM(require("node:fs"));
75249
75334
  var path16 = __toESM(require("node:path"));
75250
75335
  init_zod();
@@ -75299,8 +75384,8 @@ function buildScreenRecordingNote(recordings2, nowMs) {
75299
75384
  // ../tool-server/src/tools/flows/flow-utils.ts
75300
75385
  var path15 = __toESM(require("node:path"));
75301
75386
  var fs15 = __toESM(require("node:fs/promises"));
75302
- var import_node_fs7 = require("node:fs");
75303
- var import_node_util6 = require("node:util");
75387
+ var import_node_fs8 = require("node:fs");
75388
+ var import_node_util7 = require("node:util");
75304
75389
  init_src();
75305
75390
  init_src2();
75306
75391
  var import_yaml = __toESM(require_dist8());
@@ -78872,7 +78957,7 @@ async function followDanglingLink(linkPath) {
78872
78957
  return current;
78873
78958
  }
78874
78959
  async function isWritable(filePath) {
78875
- return fs15.access(filePath, import_node_fs7.constants.W_OK).then(
78960
+ return fs15.access(filePath, import_node_fs8.constants.W_OK).then(
78876
78961
  () => true,
78877
78962
  () => false
78878
78963
  );
@@ -79139,7 +79224,7 @@ function keepRecordingOutput(session, block, doc, ranAgainst) {
79139
79224
  if (!Object.hasOwn(doc, key2)) changes.set(key2, REMOVED_OUTPUT_KEY);
79140
79225
  }
79141
79226
  for (const [key2, value] of Object.entries(doc)) {
79142
- if (!Object.hasOwn(ranAgainst, key2) || !(0, import_node_util6.isDeepStrictEqual)(ranAgainst[key2], value)) {
79227
+ if (!Object.hasOwn(ranAgainst, key2) || !(0, import_node_util7.isDeepStrictEqual)(ranAgainst[key2], value)) {
79143
79228
  changes.set(key2, value);
79144
79229
  }
79145
79230
  }
@@ -79301,7 +79386,7 @@ function scheduleUpdater(updateArgs, cliEntry, automatic = false) {
79301
79386
  }
79302
79387
  updateScheduled = true;
79303
79388
  const launch = () => {
79304
- const child = (0, import_node_child_process9.spawn)(
79389
+ const child = (0, import_node_child_process10.spawn)(
79305
79390
  cliEntry ? process.execPath : "argent",
79306
79391
  cliEntry ? [cliEntry, ...updateArgs] : updateArgs,
79307
79392
  {
@@ -79437,15 +79522,15 @@ This reminder comes from Argent itself. It will not repeat for the next 30 minut
79437
79522
  }
79438
79523
 
79439
79524
  // ../tool-server/src/utils/ios-device/team-detect.ts
79440
- var import_node_child_process10 = require("node:child_process");
79441
- var import_node_util7 = require("node:util");
79525
+ var import_node_child_process11 = require("node:child_process");
79526
+ var import_node_util8 = require("node:util");
79442
79527
  var import_node_crypto5 = require("node:crypto");
79443
- var execFileAsync6 = (0, import_node_util7.promisify)(import_node_child_process10.execFile);
79528
+ var execFileAsync7 = (0, import_node_util8.promisify)(import_node_child_process11.execFile);
79444
79529
  var SIGNING_CERT_COMMON_NAMES = ["Apple Development", "iPhone Developer"];
79445
79530
  var SECURITY_TIMEOUT_MS = 15e3;
79446
79531
  async function listCertificatePem(commonName) {
79447
79532
  try {
79448
- const { stdout } = await execFileAsync6(
79533
+ const { stdout } = await execFileAsync7(
79449
79534
  "security",
79450
79535
  ["find-certificate", "-c", commonName, "-a", "-p"],
79451
79536
  { timeout: SECURITY_TIMEOUT_MS }
@@ -79578,14 +79663,14 @@ function consumePendingSigningDetectionNote(udid) {
79578
79663
  }
79579
79664
 
79580
79665
  // ../tool-server/src/preview.ts
79581
- var import_node_fs10 = __toESM(require("node:fs"));
79582
- var import_node_os5 = __toESM(require("node:os"));
79583
- var import_node_path12 = __toESM(require("node:path"));
79666
+ var import_node_fs11 = __toESM(require("node:fs"));
79667
+ var import_node_os6 = __toESM(require("node:os"));
79668
+ var import_node_path13 = __toESM(require("node:path"));
79584
79669
  var import_express = __toESM(require_express2());
79585
79670
  init_src();
79586
79671
 
79587
79672
  // ../tool-server/src/blueprints/simulator-server.ts
79588
- var import_node_child_process19 = require("node:child_process");
79673
+ var import_node_child_process20 = require("node:child_process");
79589
79674
  var readline = __toESM(require("node:readline"));
79590
79675
  init_src2();
79591
79676
  init_src();
@@ -79594,8 +79679,8 @@ init_src();
79594
79679
  var fsAsync = __toESM(require("node:fs/promises"));
79595
79680
  var os3 = __toESM(require("node:os"));
79596
79681
  var path19 = __toESM(require("node:path"));
79597
- var import_node_child_process12 = require("node:child_process");
79598
- var import_node_util9 = require("node:util");
79682
+ var import_node_child_process13 = require("node:child_process");
79683
+ var import_node_util10 = require("node:util");
79599
79684
 
79600
79685
  // ../tool-server/src/utils/simctl-config.ts
79601
79686
  var SIMCTL_SPAWN_TIMEOUT_MS = 1e4;
@@ -79603,12 +79688,12 @@ var SIMCTL_KILL_SIGNAL = "SIGKILL";
79603
79688
 
79604
79689
  // ../tool-server/src/utils/ios-device-sets.ts
79605
79690
  var fs19 = __toESM(require("node:fs"));
79606
- var import_node_child_process11 = require("node:child_process");
79607
- var import_node_util8 = require("node:util");
79691
+ var import_node_child_process12 = require("node:child_process");
79692
+ var import_node_util9 = require("node:util");
79608
79693
  init_src2();
79609
79694
  init_src();
79610
79695
  init_external_devices();
79611
- var execFileAsync7 = (0, import_node_util8.promisify)(import_node_child_process11.execFile);
79696
+ var execFileAsync8 = (0, import_node_util9.promisify)(import_node_child_process12.execFile);
79612
79697
  var deviceSetByUdid = /* @__PURE__ */ new Map();
79613
79698
  function configuredAdditionalDeviceSets() {
79614
79699
  try {
@@ -79623,7 +79708,7 @@ function rememberDeviceSet(udid, deviceSet) {
79623
79708
  async function setContainsUdid(deviceSet, udid) {
79624
79709
  if (deviceSet && !fs19.existsSync(deviceSet)) return false;
79625
79710
  try {
79626
- const { stdout } = await execFileAsync7(
79711
+ const { stdout } = await execFileAsync8(
79627
79712
  "xcrun",
79628
79713
  [...simctlPrefix(deviceSet), "list", "devices", "--json"],
79629
79714
  { timeout: 1e4, killSignal: SIMCTL_KILL_SIGNAL }
@@ -79963,9 +80048,9 @@ var PRE_BOOT_ACCESSIBILITY_KEYS = [
79963
80048
  "AccessibilityEnabled",
79964
80049
  "ApplicationAccessibilityEnabled"
79965
80050
  ];
79966
- var execFileAsync8 = (0, import_node_util9.promisify)(import_node_child_process12.execFile);
80051
+ var execFileAsync9 = (0, import_node_util10.promisify)(import_node_child_process13.execFile);
79967
80052
  async function accessibilityDefaults(udid, verb, ...args) {
79968
- const { stdout } = await execFileAsync8(
80053
+ const { stdout } = await execFileAsync9(
79969
80054
  "xcrun",
79970
80055
  /**
79971
80056
  * On an external device this is only reached from ax-service contexts,
@@ -80021,22 +80106,22 @@ async function setAccessibilityPrefsPreBoot(udid, { isTvOs }) {
80021
80106
  await fsAsync.mkdir(path19.dirname(plistPath), { recursive: true });
80022
80107
  const exists3 = await fsAsync.access(plistPath).then(() => true).catch(() => false);
80023
80108
  if (!exists3) {
80024
- await execFileAsync8("plutil", ["-create", "binary1", plistPath]);
80109
+ await execFileAsync9("plutil", ["-create", "binary1", plistPath]);
80025
80110
  }
80026
80111
  const keys = isTvOs ? ["AutomationEnabled", ...PRE_BOOT_ACCESSIBILITY_KEYS] : PRE_BOOT_ACCESSIBILITY_KEYS;
80027
80112
  for (const key2 of keys) {
80028
- await execFileAsync8("plutil", ["-replace", key2, "-bool", "true", plistPath]);
80113
+ await execFileAsync9("plutil", ["-replace", key2, "-bool", "true", plistPath]);
80029
80114
  }
80030
80115
  }
80031
80116
 
80032
80117
  // ../tool-server/src/utils/ios-devices.ts
80033
80118
  var fs20 = __toESM(require("node:fs"));
80034
80119
  var path20 = __toESM(require("node:path"));
80035
- var import_node_child_process13 = require("node:child_process");
80036
- var import_node_util10 = require("node:util");
80120
+ var import_node_child_process14 = require("node:child_process");
80121
+ var import_node_util11 = require("node:util");
80037
80122
  init_external_devices();
80038
80123
  init_device_info();
80039
- var execFileAsync9 = (0, import_node_util10.promisify)(import_node_child_process13.execFile);
80124
+ var execFileAsync10 = (0, import_node_util11.promisify)(import_node_child_process14.execFile);
80040
80125
  var SIMCTL_LIST_TIMEOUT_MS = 1e4;
80041
80126
  function simctlListTimeoutAdvice(retry) {
80042
80127
  return `\`xcrun simctl list\` did not answer within ${SIMCTL_LIST_TIMEOUT_MS / 1e3}s. CoreSimulatorService is probably still starting, which can take about a minute after a reboot, so call ${retry} again shortly. If it keeps timing out and Xcode was just updated, ask the user to ${xcodeInstallInstruction()}; otherwise restart CoreSimulatorService.`;
@@ -80048,7 +80133,7 @@ function simulatorRuntimeKind(runtimeId) {
80048
80133
  async function listDeviceSetSimulators(deviceSet) {
80049
80134
  if (deviceSet && !fs20.existsSync(deviceSet)) return { simulators: [], timedOut: false };
80050
80135
  try {
80051
- const { stdout } = await execFileAsync9(
80136
+ const { stdout } = await execFileAsync10(
80052
80137
  "xcrun",
80053
80138
  [...simctlPrefix(deviceSet), "list", "devices", "--json"],
80054
80139
  { timeout: SIMCTL_LIST_TIMEOUT_MS, killSignal: SIMCTL_KILL_SIGNAL }
@@ -80132,7 +80217,7 @@ var deviceTypeReread = null;
80132
80217
  var foldableCache = /* @__PURE__ */ new Map();
80133
80218
  async function listDeviceTypeBundlePaths() {
80134
80219
  try {
80135
- const { stdout } = await execFileAsync9(
80220
+ const { stdout } = await execFileAsync10(
80136
80221
  "xcrun",
80137
80222
  [...simctlPrefix(null), "list", "devicetypes", "--json"],
80138
80223
  { timeout: 1e4, killSignal: SIMCTL_KILL_SIGNAL }
@@ -80167,7 +80252,7 @@ async function countIntegratedDisplays(bundlePath) {
80167
80252
  const plist = path20.join(bundlePath, "Contents", "Resources", "capabilities.plist");
80168
80253
  if (!fs20.existsSync(plist)) return 0;
80169
80254
  try {
80170
- const { stdout } = await execFileAsync9(
80255
+ const { stdout } = await execFileAsync10(
80171
80256
  "plutil",
80172
80257
  ["-extract", "capabilities.displays", "json", "-o", "-", plist],
80173
80258
  { timeout: 5e3 }
@@ -80964,7 +81049,7 @@ __export(path_exports, {
80964
81049
  encode: () => encode3,
80965
81050
  from: () => from,
80966
81051
  hasPrefix: () => hasPrefix,
80967
- join: () => join23,
81052
+ join: () => join24,
80968
81053
  normalizeRelative: () => normalizeRelative,
80969
81054
  parts: () => parts,
80970
81055
  relative: () => relative2,
@@ -81014,7 +81099,7 @@ function stripPrefix(prefix, path77) {
81014
81099
  }
81015
81100
  return path77.slice(prefix.length + 1);
81016
81101
  }
81017
- function join23(path77, other) {
81102
+ function join24(path77, other) {
81018
81103
  if (path77 === "") {
81019
81104
  return other;
81020
81105
  } else if (other === "") {
@@ -89781,7 +89866,7 @@ var Publisher = class {
89781
89866
  }
89782
89867
  const advertise2 = async (suffix) => {
89783
89868
  if (legacy) {
89784
- return await this.#advertise(join23(prefix, suffix), requests, refused);
89869
+ return await this.#advertise(join24(prefix, suffix), requests, refused);
89785
89870
  }
89786
89871
  await stream.writer.u53(SubscribeNamespaceEntry.id);
89787
89872
  await new SubscribeNamespaceEntry({ suffix, cluster: this.#advert }).encode(stream.writer, version3);
@@ -89789,7 +89874,7 @@ var Publisher = class {
89789
89874
  };
89790
89875
  const withdraw = async (suffix) => {
89791
89876
  if (legacy) {
89792
- await this.#withdraw(join23(prefix, suffix), requests);
89877
+ await this.#withdraw(join24(prefix, suffix), requests);
89793
89878
  } else {
89794
89879
  await stream.writer.u53(SubscribeNamespaceEntryDone.id);
89795
89880
  await new SubscribeNamespaceEntryDone({ suffix }).encode(stream.writer, version3);
@@ -89815,7 +89900,7 @@ var Publisher = class {
89815
89900
  continue;
89816
89901
  updated.set(suffix, producer);
89817
89902
  }
89818
- const live = new Set([...updated.keys()].map((suffix) => join23(prefix, suffix)));
89903
+ const live = new Set([...updated.keys()].map((suffix) => join24(prefix, suffix)));
89819
89904
  for (const path77 of [...refused.keys()]) {
89820
89905
  if (!live.has(path77))
89821
89906
  refused.delete(path77);
@@ -89830,13 +89915,13 @@ var Publisher = class {
89830
89915
  for (const [suffix, producer] of updated) {
89831
89916
  if (active.get(suffix) === producer)
89832
89917
  continue;
89833
- if (this.#offerable(join23(prefix, suffix), refused)) {
89918
+ if (this.#offerable(join24(prefix, suffix), refused)) {
89834
89919
  if (await advertise2(suffix))
89835
89920
  held.set(suffix, producer);
89836
89921
  }
89837
89922
  }
89838
89923
  active = held;
89839
- const outstanding = [...updated].some(([suffix, producer]) => active.get(suffix) !== producer && this.#pending(join23(prefix, suffix), refused));
89924
+ const outstanding = [...updated].some(([suffix, producer]) => active.get(suffix) !== producer && this.#pending(join24(prefix, suffix), refused));
89840
89925
  retry = outstanding ? Math.min(retry ? retry * 2 : RETRY_BASE, RETRY_MAX) : 0;
89841
89926
  const next = await (retry ? Promise.race([changed, stream.reader.closed, retryAfter(retry).then(() => broadcasts)]) : Promise.race([changed, stream.reader.closed]));
89842
89927
  dispose();
@@ -90482,7 +90567,7 @@ var Subscriber2 = class {
90482
90567
  const entry = await SubscribeNamespaceEntry.decode(stream.reader, version3, negotiated(this.#cluster));
90483
90568
  if (released)
90484
90569
  break;
90485
- const path77 = join23(prefix, entry.suffix);
90570
+ const path77 = join24(prefix, entry.suffix);
90486
90571
  if (this.#reflected(entry.cluster)) {
90487
90572
  console.debug(`dropping reflected namespace: broadcast=${path77}`);
90488
90573
  if (live.delete(path77))
@@ -90497,7 +90582,7 @@ var Subscriber2 = class {
90497
90582
  const entry = await SubscribeNamespaceEntryDone.decode(stream.reader, version3);
90498
90583
  if (released)
90499
90584
  break;
90500
- const path77 = join23(prefix, entry.suffix);
90585
+ const path77 = join24(prefix, entry.suffix);
90501
90586
  if (live.delete(path77)) {
90502
90587
  this.#detachAnnounce(path77);
90503
90588
  }
@@ -93292,7 +93377,7 @@ var Subscriber3 = class {
93292
93377
  case Version2.DRAFT_02: {
93293
93378
  const init2 = await AnnounceInit.decode(stream.reader, this.version);
93294
93379
  for (const suffix of init2.suffixes) {
93295
- const path77 = join23(prefix, suffix);
93380
+ const path77 = join24(prefix, suffix);
93296
93381
  if (advertised.has(suffix)) {
93297
93382
  throw new ProtocolViolation(`duplicate announce for ${path77}`);
93298
93383
  }
@@ -93351,7 +93436,7 @@ var Subscriber3 = class {
93351
93436
  break;
93352
93437
  }
93353
93438
  }
93354
- const path77 = join23(prefix, suffix);
93439
+ const path77 = join24(prefix, suffix);
93355
93440
  const duplicateIsRestart = restartSupported(this.version) && !hasAnnounceId(this.version);
93356
93441
  if (announce.status === "active" && !duplicateIsRestart && advertised.has(suffix)) {
93357
93442
  throw new ProtocolViolation(`duplicate announce for ${path77}`);
@@ -98241,18 +98326,19 @@ function installNodeWebTransport() {
98241
98326
  }
98242
98327
 
98243
98328
  // ../tool-server/src/utils/sim-remote.ts
98244
- var import_node_child_process14 = require("node:child_process");
98245
- var import_node_util11 = require("node:util");
98329
+ var import_node_child_process15 = require("node:child_process");
98330
+ var import_node_util12 = require("node:util");
98246
98331
  init_zod();
98247
98332
  init_device_info();
98248
- var execFileAsync10 = (0, import_node_util11.promisify)(import_node_child_process14.execFile);
98333
+ var execFileAsync11 = (0, import_node_util12.promisify)(import_node_child_process15.execFile);
98249
98334
  var SIM_REMOTE_TIMEOUT_MS = 3e4;
98250
98335
  function simRemoteExecError(err) {
98251
98336
  return err.cause ?? err;
98252
98337
  }
98253
98338
  async function run(args, options) {
98339
+ const bin = await argentCloudBin();
98254
98340
  try {
98255
- const { stdout } = await execFileAsync10("sim-remote", args, {
98341
+ const { stdout } = await execFileAsync11(bin, args, {
98256
98342
  timeout: options?.timeoutMs ?? SIM_REMOTE_TIMEOUT_MS,
98257
98343
  maxBuffer: 16 * 1024 * 1024,
98258
98344
  encoding: "utf8",
@@ -98262,10 +98348,11 @@ async function run(args, options) {
98262
98348
  return { stdout: typeof stdout === "string" ? stdout : stdout.toString("utf8") };
98263
98349
  } catch (err) {
98264
98350
  const e = err;
98351
+ if (e.code === "ENOENT") forgetArgentCloudBin();
98265
98352
  const stderr = (e.stderr ?? "").trim();
98266
98353
  const stdout = (e.stdout ?? "").trim();
98267
98354
  const suffix = stderr || stdout || e.message;
98268
- throw new Error(`sim-remote ${args.join(" ")} failed: ${suffix}`, { cause: err });
98355
+ throw new Error(`${bin} ${args.join(" ")} failed: ${suffix}`, { cause: err });
98269
98356
  }
98270
98357
  }
98271
98358
  async function simctlListDevices(options) {
@@ -98368,7 +98455,7 @@ async function setSimulatorEnv(udid, key2, value) {
98368
98455
  }
98369
98456
  async function proxyStart(udid, port) {
98370
98457
  try {
98371
- await run(["proxy", "start", stripRemotePrefix(udid), String(port)]);
98458
+ await run(["reverse", "start", stripRemotePrefix(udid), String(port)]);
98372
98459
  } catch (err) {
98373
98460
  const message = err.message ?? "";
98374
98461
  if (/already/i.test(message)) return;
@@ -98377,7 +98464,7 @@ async function proxyStart(udid, port) {
98377
98464
  }
98378
98465
  async function proxyStop(udid, port) {
98379
98466
  try {
98380
- await run(["proxy", "stop", stripRemotePrefix(udid), String(port)]);
98467
+ await run(["reverse", "stop", stripRemotePrefix(udid), String(port)]);
98381
98468
  } catch {
98382
98469
  }
98383
98470
  }
@@ -98778,11 +98865,11 @@ function captureOnDemandDropped(deviceId, endpoint) {
98778
98865
  }
98779
98866
 
98780
98867
  // ../tool-server/src/utils/foldable.ts
98781
- var import_node_child_process15 = require("node:child_process");
98868
+ var import_node_child_process16 = require("node:child_process");
98782
98869
  var fs21 = __toESM(require("node:fs"));
98783
- var import_node_util12 = require("node:util");
98870
+ var import_node_util13 = require("node:util");
98784
98871
  init_external_devices();
98785
- var execFileAsync11 = (0, import_node_util12.promisify)(import_node_child_process15.execFile);
98872
+ var execFileAsync12 = (0, import_node_util13.promisify)(import_node_child_process16.execFile);
98786
98873
  var MAIN_SCREEN_ID = 1;
98787
98874
  var AX_LIVE_PANEL_TIMEOUT_MS = 2e3;
98788
98875
  var DEVICECTL_TIMEOUT_MS = 5e3;
@@ -98805,7 +98892,7 @@ var developerDirPromise = null;
98805
98892
  function developerDir() {
98806
98893
  if (process.env.DEVELOPER_DIR) return Promise.resolve(process.env.DEVELOPER_DIR);
98807
98894
  if (!developerDirPromise) {
98808
- developerDirPromise = execFileAsync11("xcode-select", ["-p"], { timeout: 5e3 }).then(({ stdout }) => stdout.trim() || void 0).catch(() => void 0);
98895
+ developerDirPromise = execFileAsync12("xcode-select", ["-p"], { timeout: 5e3 }).then(({ stdout }) => stdout.trim() || void 0).catch(() => void 0);
98809
98896
  }
98810
98897
  return developerDirPromise;
98811
98898
  }
@@ -98867,7 +98954,7 @@ async function readCoreDeviceDisplays(udid) {
98867
98954
  }
98868
98955
  let stdout;
98869
98956
  try {
98870
- ({ stdout } = await execFileAsync11(bin, argv, {
98957
+ ({ stdout } = await execFileAsync12(bin, argv, {
98871
98958
  env,
98872
98959
  timeout: DEVICECTL_TIMEOUT_MS,
98873
98960
  killSignal: "SIGKILL",
@@ -100101,11 +100188,11 @@ function asString2(value) {
100101
100188
  }
100102
100189
 
100103
100190
  // ../tool-server/src/utils/ios-host.ts
100104
- var import_node_child_process16 = require("node:child_process");
100191
+ var import_node_child_process17 = require("node:child_process");
100105
100192
  var import_node_events = require("node:events");
100106
100193
  var fs25 = __toESM(require("node:fs"));
100107
100194
  var path23 = __toESM(require("node:path"));
100108
- var import_node_util13 = require("node:util");
100195
+ var import_node_util14 = require("node:util");
100109
100196
  init_src();
100110
100197
 
100111
100198
  // ../tool-server/src/utils/ios-audio-leftovers.ts
@@ -100392,7 +100479,7 @@ async function clearAudioLeftovers(dir) {
100392
100479
  }
100393
100480
 
100394
100481
  // ../tool-server/src/utils/ios-host.ts
100395
- var execFileAsync12 = (0, import_node_util13.promisify)(import_node_child_process16.execFile);
100482
+ var execFileAsync13 = (0, import_node_util14.promisify)(import_node_child_process17.execFile);
100396
100483
  var ARGENT_BOOTSTRAP_DYLIB_BASENAMES = /* @__PURE__ */ new Set(["libArgentInjectionBootstrap.dylib"]);
100397
100484
  var RECOGNISED_BOOTSTRAP_DYLIB_BASENAMES = /* @__PURE__ */ new Set([
100398
100485
  ...ARGENT_BOOTSTRAP_DYLIB_BASENAMES,
@@ -100467,7 +100554,7 @@ async function ensureAccessibilityEnabled(udid) {
100467
100554
  const { nativeId, prefix } = await simctlTargetForUdid(udid, { granted: "native-devtools" });
100468
100555
  await Promise.all(
100469
100556
  APP_ACCESSIBILITY_FLAGS.map(
100470
- (flag) => execFileAsync12(
100557
+ (flag) => execFileAsync13(
100471
100558
  "xcrun",
100472
100559
  [
100473
100560
  ...prefix,
@@ -100489,7 +100576,7 @@ async function setupNativeDevtoolsEnvLocal(udid, endpoint) {
100489
100576
  const tvOs = await isTvOsSimulator(udid);
100490
100577
  const bootstrapPath = await bootstrapPathFor(udid, endpoint);
100491
100578
  const { nativeId, prefix } = await simctlTargetForUdid(udid, { granted: "native-devtools" });
100492
- const result = await execFileAsync12(
100579
+ const result = await execFileAsync13(
100493
100580
  "xcrun",
100494
100581
  [...prefix, "spawn", nativeId, "launchctl", "getenv", "DYLD_INSERT_LIBRARIES"],
100495
100582
  { encoding: "utf8", timeout: SIMCTL_SPAWN_TIMEOUT_MS, killSignal: SIMCTL_KILL_SIGNAL }
@@ -100503,7 +100590,7 @@ async function setupNativeDevtoolsEnvLocal(udid, endpoint) {
100503
100590
  const audioDylib = !tvOs && endpoint.transport === "unix" && audioAlwaysInserted() ? installedAudioDylib() : null;
100504
100591
  if (audioDylib) updated = appendDyldInsertLibrary(updated, audioDylib);
100505
100592
  if (updated !== existing) {
100506
- await execFileAsync12(
100593
+ await execFileAsync13(
100507
100594
  "xcrun",
100508
100595
  [...prefix, "spawn", nativeId, "launchctl", "setenv", "DYLD_INSERT_LIBRARIES", updated],
100509
100596
  { timeout: SIMCTL_SPAWN_TIMEOUT_MS, killSignal: SIMCTL_KILL_SIGNAL }
@@ -100513,7 +100600,7 @@ async function setupNativeDevtoolsEnvLocal(udid, endpoint) {
100513
100600
  if (endpoint.port === void 0) {
100514
100601
  throw new Error("native-devtools TCP endpoint reached host setup before its port was bound");
100515
100602
  }
100516
- await execFileAsync12(
100603
+ await execFileAsync13(
100517
100604
  "xcrun",
100518
100605
  [
100519
100606
  ...prefix,
@@ -100527,7 +100614,7 @@ async function setupNativeDevtoolsEnvLocal(udid, endpoint) {
100527
100614
  { timeout: SIMCTL_SPAWN_TIMEOUT_MS, killSignal: SIMCTL_KILL_SIGNAL }
100528
100615
  );
100529
100616
  } else {
100530
- await execFileAsync12(
100617
+ await execFileAsync13(
100531
100618
  "xcrun",
100532
100619
  [
100533
100620
  ...prefix,
@@ -100544,7 +100631,7 @@ async function setupNativeDevtoolsEnvLocal(udid, endpoint) {
100544
100631
  if (audioDylib) {
100545
100632
  try {
100546
100633
  fs25.mkdirSync(audioDir(nativeId), { recursive: true, mode: 448 });
100547
- await execFileAsync12(
100634
+ await execFileAsync13(
100548
100635
  "xcrun",
100549
100636
  [
100550
100637
  ...prefix,
@@ -100572,14 +100659,14 @@ async function withdrawNativeDevtoolsEnvLocal(udid, endpoint) {
100572
100659
  const bootstrapPath = await bootstrapPathFor(udid, endpoint);
100573
100660
  const { nativeId, prefix } = await simctlTargetForWithdrawal(udid);
100574
100661
  const getenv = async (name2) => {
100575
- const result = await execFileAsync12(
100662
+ const result = await execFileAsync13(
100576
100663
  "xcrun",
100577
100664
  [...prefix, "spawn", nativeId, "launchctl", "getenv", name2],
100578
100665
  { encoding: "utf8", timeout: SIMCTL_SPAWN_TIMEOUT_MS, killSignal: SIMCTL_KILL_SIGNAL }
100579
100666
  ).catch((e) => ({ stdout: e.stdout ?? "" }));
100580
100667
  return (result.stdout ?? "").trim();
100581
100668
  };
100582
- const setenv = (args) => execFileAsync12("xcrun", [...prefix, "spawn", nativeId, "launchctl", ...args], {
100669
+ const setenv = (args) => execFileAsync13("xcrun", [...prefix, "spawn", nativeId, "launchctl", ...args], {
100583
100670
  timeout: SIMCTL_SPAWN_TIMEOUT_MS,
100584
100671
  killSignal: SIMCTL_KILL_SIGNAL
100585
100672
  });
@@ -100625,7 +100712,7 @@ function parseUIKitApplicationBundleIds(stdout) {
100625
100712
  return new Set(parseUIKitApplicationJobs(stdout).keys());
100626
100713
  }
100627
100714
  async function listRunningApps(udid) {
100628
- const { stdout } = await execFileAsync12(
100715
+ const { stdout } = await execFileAsync13(
100629
100716
  "xcrun",
100630
100717
  await simctlArgsForUdid(udid, ["spawn", udid, "launchctl", "list"]),
100631
100718
  {
@@ -100645,7 +100732,7 @@ async function listRunningUIKitApplicationBundleIds(udid) {
100645
100732
  async function readProcessLaunchState(pid) {
100646
100733
  let stdout;
100647
100734
  try {
100648
- ({ stdout } = await execFileAsync12(PS_BIN, ["eww", "-p", String(pid), "-o", "etime=,command="], {
100735
+ ({ stdout } = await execFileAsync13(PS_BIN, ["eww", "-p", String(pid), "-o", "etime=,command="], {
100649
100736
  encoding: "utf8",
100650
100737
  timeout: PS_PROBE_TIMEOUT_MS,
100651
100738
  // Matches the other `ps` probes (vega-process.ts): an environment can run
@@ -100681,7 +100768,7 @@ function spawnAxDaemonLocal(udid, endpoint) {
100681
100768
  }
100682
100769
  const endpointArgs = endpoint.transport === "tcp" ? ["--port", String(endpoint.port)] : ["--socket", endpoint.socketPath];
100683
100770
  const axTarget = simctlTargetForUdidSync(udid, { granted: "ax-service" });
100684
- const proc = (0, import_node_child_process16.execFile)(
100771
+ const proc = (0, import_node_child_process17.execFile)(
100685
100772
  "xcrun",
100686
100773
  [
100687
100774
  ...axTarget.prefix,
@@ -102315,7 +102402,7 @@ var nativeDevtoolsBlueprint = {
102315
102402
  init_external_devices();
102316
102403
 
102317
102404
  // ../tool-server/src/utils/simctl-exec.ts
102318
- var import_node_child_process17 = require("node:child_process");
102405
+ var import_node_child_process18 = require("node:child_process");
102319
102406
 
102320
102407
  // ../tool-server/src/utils/process-kill.ts
102321
102408
  function signalGroup(pid, signal) {
@@ -102379,7 +102466,7 @@ function execSimctl(args, options = {}) {
102379
102466
  reject(new Error(`xcrun ${args.join(" ")} aborted`));
102380
102467
  return;
102381
102468
  }
102382
- const child = (0, import_node_child_process17.spawn)("xcrun", args, { detached: true, stdio: ["ignore", "pipe", "pipe"] });
102469
+ const child = (0, import_node_child_process18.spawn)("xcrun", args, { detached: true, stdio: ["ignore", "pipe", "pipe"] });
102383
102470
  let stdout = "";
102384
102471
  let stderr = "";
102385
102472
  let settled = false;
@@ -102859,7 +102946,7 @@ async function spawnSimulatorServerProcess(udid, subcommand) {
102859
102946
  if (sdkRoot)
102860
102947
  process.stderr.write(`[sim ${udid.slice(0, 8)}] android.sdkRoot \u2192 ANDROID_HOME=${sdkRoot}
102861
102948
  `);
102862
- const proc = (0, import_node_child_process19.spawn)(BINARY_PATH, args, {
102949
+ const proc = (0, import_node_child_process20.spawn)(BINARY_PATH, args, {
102863
102950
  cwd: RUN_DIR,
102864
102951
  stdio: ["pipe", "pipe", "pipe"],
102865
102952
  ...sdkRoot ? { env: { ...process.env, ANDROID_HOME: sdkRoot } } : {}
@@ -103153,11 +103240,11 @@ function classifyDeviceForTelemetry(deviceId) {
103153
103240
  }
103154
103241
 
103155
103242
  // ../tool-server/src/utils/device-shutdown.ts
103156
- var import_node_child_process20 = require("node:child_process");
103157
- var import_node_util15 = require("node:util");
103243
+ var import_node_child_process21 = require("node:child_process");
103244
+ var import_node_util16 = require("node:util");
103158
103245
  init_device_info();
103159
103246
  init_android_binary();
103160
- var execFileAsync14 = (0, import_node_util15.promisify)(import_node_child_process20.execFile);
103247
+ var execFileAsync15 = (0, import_node_util16.promisify)(import_node_child_process21.execFile);
103161
103248
  var SHUTDOWN_EXEC_OPTIONS = { timeout: 3e4, killSignal: "SIGKILL" };
103162
103249
  async function shutdownOwnedDevice(id) {
103163
103250
  let platform;
@@ -103167,11 +103254,11 @@ async function shutdownOwnedDevice(id) {
103167
103254
  return;
103168
103255
  }
103169
103256
  if (platform === "ios") {
103170
- await simctlArgsForUdid(id, ["shutdown", id]).then((args) => execFileAsync14("xcrun", args, SHUTDOWN_EXEC_OPTIONS)).catch(() => {
103257
+ await simctlArgsForUdid(id, ["shutdown", id]).then((args) => execFileAsync15("xcrun", args, SHUTDOWN_EXEC_OPTIONS)).catch(() => {
103171
103258
  });
103172
103259
  } else if (platform === "android") {
103173
103260
  const adb = await resolveAndroidBinary("adb") ?? "adb";
103174
- await execFileAsync14(adb, ["-s", id, "emu", "kill"], SHUTDOWN_EXEC_OPTIONS).catch(() => {
103261
+ await execFileAsync15(adb, ["-s", id, "emu", "kill"], SHUTDOWN_EXEC_OPTIONS).catch(() => {
103175
103262
  });
103176
103263
  }
103177
103264
  }
@@ -103187,7 +103274,7 @@ async function shutdownDevice(id) {
103187
103274
  }
103188
103275
  try {
103189
103276
  if (device.platform === "ios") {
103190
- await execFileAsync14(
103277
+ await execFileAsync15(
103191
103278
  "xcrun",
103192
103279
  await simctlArgsForUdid(id, ["shutdown", id]),
103193
103280
  SHUTDOWN_EXEC_OPTIONS
@@ -103196,7 +103283,7 @@ async function shutdownDevice(id) {
103196
103283
  }
103197
103284
  if (device.platform === "android" && device.kind === "emulator") {
103198
103285
  const adb = await resolveAndroidBinary("adb") ?? "adb";
103199
- await execFileAsync14(adb, ["-s", id, "emu", "kill"], SHUTDOWN_EXEC_OPTIONS);
103286
+ await execFileAsync15(adb, ["-s", id, "emu", "kill"], SHUTDOWN_EXEC_OPTIONS);
103200
103287
  return { ok: true };
103201
103288
  }
103202
103289
  return {
@@ -103307,15 +103394,15 @@ function adbCommandPrefix(env) {
103307
103394
  }
103308
103395
 
103309
103396
  // ../tool-server/src/utils/ios-device/devicectl.ts
103310
- var import_node_child_process21 = require("node:child_process");
103311
- var import_node_util16 = require("node:util");
103397
+ var import_node_child_process22 = require("node:child_process");
103398
+ var import_node_util17 = require("node:util");
103312
103399
  var fs28 = __toESM(require("node:fs/promises"));
103313
103400
  var os6 = __toESM(require("node:os"));
103314
103401
  var path25 = __toESM(require("node:path"));
103315
103402
  var import_node_crypto8 = require("node:crypto");
103316
103403
  var import_node_net = require("node:net");
103317
103404
  init_src2();
103318
- var execFileAsync15 = (0, import_node_util16.promisify)(import_node_child_process21.execFile);
103405
+ var execFileAsync16 = (0, import_node_util17.promisify)(import_node_child_process22.execFile);
103319
103406
  var DEVICECTL_TIMEOUT_MS2 = 2e4;
103320
103407
  var DEVICECTL_INSTALL_TIMEOUT_MS = 12e4;
103321
103408
  var DEVICECTL_LIST_TIMEOUT_MS = 8e3;
@@ -103365,7 +103452,7 @@ async function runDevicectl(args, action, opts = {}) {
103365
103452
  argv.push("--json-output", jsonPath);
103366
103453
  }
103367
103454
  try {
103368
- const { stdout, stderr } = await execFileAsync15("xcrun", argv, {
103455
+ const { stdout, stderr } = await execFileAsync16("xcrun", argv, {
103369
103456
  timeout: timeoutMs,
103370
103457
  killSignal: "SIGKILL",
103371
103458
  maxBuffer: DEVICECTL_MAX_OUTPUT_BYTES
@@ -103643,19 +103730,19 @@ async function listTargets(strict, timeoutMs) {
103643
103730
  init_harmony_flag();
103644
103731
 
103645
103732
  // ../tool-server/src/utils/macos-apps.ts
103646
- var import_node_child_process22 = require("node:child_process");
103733
+ var import_node_child_process23 = require("node:child_process");
103647
103734
  var import_node_crypto9 = require("node:crypto");
103648
103735
  var fs29 = __toESM(require("node:fs"));
103649
103736
  var os7 = __toESM(require("node:os"));
103650
103737
  var path26 = __toESM(require("node:path"));
103651
- var import_node_util17 = require("node:util");
103738
+ var import_node_util18 = require("node:util");
103652
103739
  init_src();
103653
103740
  init_src2();
103654
103741
  init_capability();
103655
103742
  init_device_info();
103656
103743
  init_macos_app_kind();
103657
103744
  init_src();
103658
- var execFileAsync16 = (0, import_node_util17.promisify)(import_node_child_process22.execFile);
103745
+ var execFileAsync17 = (0, import_node_util18.promisify)(import_node_child_process23.execFile);
103659
103746
  function isMacosAppsEnabled() {
103660
103747
  return isFeatureEnabled(MACOS_APPS_FLAG);
103661
103748
  }
@@ -103780,7 +103867,7 @@ async function removeUnusedLibraries(libRoot, keep) {
103780
103867
  const root = fs29.realpathSync(libRoot);
103781
103868
  let open5;
103782
103869
  try {
103783
- ({ stdout: open5 } = await execFileAsync16("lsof", ["-Fn", "+D", root], {
103870
+ ({ stdout: open5 } = await execFileAsync17("lsof", ["-Fn", "+D", root], {
103784
103871
  timeout: 3e4,
103785
103872
  maxBuffer: 16 * 1024 * 1024
103786
103873
  }));
@@ -103804,7 +103891,7 @@ async function removeUnusedLibraries(libRoot, keep) {
103804
103891
  var EXPORTED_RELEASE_NOTE = "An exported or notarized Release build with the hardened runtime cannot be driven without extra entitlements.";
103805
103892
  async function signatureTeam(file2) {
103806
103893
  try {
103807
- return parseCodesignDisplay(await execFileAsync16("codesign", ["-dv", file2], { timeout: 1e4 })).teamId;
103894
+ return parseCodesignDisplay(await execFileAsync17("codesign", ["-dv", file2], { timeout: 1e4 })).teamId;
103808
103895
  } catch {
103809
103896
  return void 0;
103810
103897
  }
@@ -103905,7 +103992,7 @@ async function processRunsExecutable(pid, executable) {
103905
103992
  if (err.code !== "EPERM") return false;
103906
103993
  }
103907
103994
  try {
103908
- const { stdout } = await execFileAsync16(
103995
+ const { stdout } = await execFileAsync17(
103909
103996
  PS_BIN,
103910
103997
  ["-ww", "-o", "comm=", "-p", String(pid)],
103911
103998
  psOptions()
@@ -103917,7 +104004,7 @@ async function processRunsExecutable(pid, executable) {
103917
104004
  }
103918
104005
  async function processStartedWithEnv(pid, assignment) {
103919
104006
  try {
103920
- const { stdout } = await execFileAsync16(
104007
+ const { stdout } = await execFileAsync17(
103921
104008
  PS_BIN,
103922
104009
  ["eww", "-o", "command=", "-p", String(pid)],
103923
104010
  psOptions()
@@ -103945,7 +104032,7 @@ async function findRunningCopies(bundleId, executable, skipPid) {
103945
104032
  };
103946
104033
  let stdout;
103947
104034
  try {
103948
- ({ stdout } = await execFileAsync16(PS_BIN, ["-ww", "-axo", "pid=,comm="], psOptions()));
104035
+ ({ stdout } = await execFileAsync17(PS_BIN, ["-ww", "-axo", "pid=,comm="], psOptions()));
103949
104036
  } catch {
103950
104037
  return found;
103951
104038
  }
@@ -103980,7 +104067,7 @@ async function findRunningCopies(bundleId, executable, skipPid) {
103980
104067
  }
103981
104068
  async function gitWorktreeOf(dir) {
103982
104069
  try {
103983
- const { stdout } = await execFileAsync16(
104070
+ const { stdout } = await execFileAsync17(
103984
104071
  "git",
103985
104072
  ["-C", dir, "rev-parse", "--path-format=absolute", "--show-toplevel", "--git-common-dir"],
103986
104073
  { timeout: 5e3 }
@@ -104063,7 +104150,7 @@ function isCatalystSlice(read, offset) {
104063
104150
  }
104064
104151
  async function plistValue(plist, key2) {
104065
104152
  try {
104066
- const { stdout } = await execFileAsync16("plutil", ["-extract", key2, "raw", "-o", "-", plist], {
104153
+ const { stdout } = await execFileAsync17("plutil", ["-extract", key2, "raw", "-o", "-", plist], {
104067
104154
  timeout: 1e4
104068
104155
  });
104069
104156
  const value = stdout.trim();
@@ -104106,7 +104193,7 @@ async function readCodeSignature(target) {
104106
104193
  const operand = typeof target === "number" ? `+${target}` : target;
104107
104194
  try {
104108
104195
  return parseCodesignDisplay(
104109
- await execFileAsync16("codesign", ["-dv", "--entitlements", "-", "--xml", operand], {
104196
+ await execFileAsync17("codesign", ["-dv", "--entitlements", "-", "--xml", operand], {
104110
104197
  timeout: 1e4,
104111
104198
  maxBuffer: 4 * 1024 * 1024
104112
104199
  })
@@ -104117,7 +104204,7 @@ async function readCodeSignature(target) {
104117
104204
  }
104118
104205
  async function inBackgroundSession() {
104119
104206
  try {
104120
- const { stdout } = await execFileAsync16("launchctl", ["managername"], { timeout: 5e3 });
104207
+ const { stdout } = await execFileAsync17("launchctl", ["managername"], { timeout: 5e3 });
104121
104208
  return stdout.trim() === "Background";
104122
104209
  } catch {
104123
104210
  return false;
@@ -104127,7 +104214,7 @@ function listsWebKitMallocZone(vmmapOutput) {
104127
104214
  return /^WebKit Malloc_0x[0-9a-f]+\s/m.test(vmmapOutput);
104128
104215
  }
104129
104216
  async function processHasWebKitMallocZone(pid) {
104130
- const { stdout } = await execFileAsync16("vmmap", ["-summary", String(pid)], {
104217
+ const { stdout } = await execFileAsync17("vmmap", ["-summary", String(pid)], {
104131
104218
  timeout: 1e4,
104132
104219
  maxBuffer: 4 * 1024 * 1024
104133
104220
  });
@@ -104225,7 +104312,7 @@ async function findMacosAppByBundleId(bundleId) {
104225
104312
  if (!isMacosBundleId(bundleId)) return null;
104226
104313
  let stdout;
104227
104314
  try {
104228
- ({ stdout } = await execFileAsync16(
104315
+ ({ stdout } = await execFileAsync17(
104229
104316
  "mdfind",
104230
104317
  // The bundle id alphabet has no quote, so it cannot leave the string.
104231
104318
  [`kMDItemCFBundleIdentifier == '${bundleId}'`],
@@ -104255,7 +104342,7 @@ async function issueSandboxExtension(filePath, opts = {}) {
104255
104342
  const args = ["issue-extension", "--path", path26.resolve(filePath)];
104256
104343
  if (opts.readOnly) args.push("--read-only");
104257
104344
  try {
104258
- const { stdout } = await execFileAsync16(macosArtifacts().helper, args, { timeout: 1e4 });
104345
+ const { stdout } = await execFileAsync17(macosArtifacts().helper, args, { timeout: 1e4 });
104259
104346
  const token = stdout.trim();
104260
104347
  if (!token) throw new Error("argent-macos-helper printed no token");
104261
104348
  return token;
@@ -106448,14 +106535,14 @@ async function discoverChromiumDevices(options) {
106448
106535
  init_src2();
106449
106536
 
106450
106537
  // ../tool-server/src/utils/vega-sdk.ts
106451
- var import_promises7 = require("node:fs/promises");
106452
- var import_node_fs8 = require("node:fs");
106453
- var import_node_os4 = require("node:os");
106454
- var import_node_path11 = require("node:path");
106455
- var import_semver3 = __toESM(require_semver2());
106538
+ var import_promises8 = require("node:fs/promises");
106539
+ var import_node_fs9 = require("node:fs");
106540
+ var import_node_os5 = require("node:os");
106541
+ var import_node_path12 = require("node:path");
106542
+ var import_semver4 = __toESM(require_semver2());
106456
106543
  async function readVegaConfig() {
106457
106544
  try {
106458
- const raw = await (0, import_promises7.readFile)((0, import_node_path11.join)((0, import_node_os4.homedir)(), "vega", "config.json"), "utf-8");
106545
+ const raw = await (0, import_promises8.readFile)((0, import_node_path12.join)((0, import_node_os5.homedir)(), "vega", "config.json"), "utf-8");
106459
106546
  return JSON.parse(raw);
106460
106547
  } catch {
106461
106548
  return {};
@@ -106466,15 +106553,15 @@ function bareVersion(version3) {
106466
106553
  }
106467
106554
  function sdkComponentRoots(config2) {
106468
106555
  const roots = [
106469
- config2.sdkPath && (0, import_node_path11.join)(config2.sdkPath, "vega-sdk"),
106470
- (0, import_node_path11.join)((0, import_node_os4.homedir)(), "vega", "sdk", "vega-sdk")
106556
+ config2.sdkPath && (0, import_node_path12.join)(config2.sdkPath, "vega-sdk"),
106557
+ (0, import_node_path12.join)((0, import_node_os5.homedir)(), "vega", "sdk", "vega-sdk")
106471
106558
  ].filter((p) => Boolean(p));
106472
106559
  return Array.from(new Set(roots));
106473
106560
  }
106474
106561
  async function resolveVersion(channelDir, preferred) {
106475
- if (preferred && (0, import_node_fs8.existsSync)((0, import_node_path11.join)(channelDir, preferred))) return preferred;
106562
+ if (preferred && (0, import_node_fs9.existsSync)((0, import_node_path12.join)(channelDir, preferred))) return preferred;
106476
106563
  try {
106477
- const versions = (await (0, import_promises7.readdir)(channelDir)).filter((e) => import_semver3.default.valid(e)).sort(import_semver3.default.rcompare);
106564
+ const versions = (await (0, import_promises8.readdir)(channelDir)).filter((e) => import_semver4.default.valid(e)).sort(import_semver4.default.rcompare);
106478
106565
  return versions[0] ?? null;
106479
106566
  } catch {
106480
106567
  return null;
@@ -106486,11 +106573,11 @@ async function resolveVegaSdkImagesDir() {
106486
106573
  const channel = config2.defaultChannel || "main";
106487
106574
  const preferred = bareVersion(config2.defaultVersion);
106488
106575
  for (const root of sdkComponentRoots(config2)) {
106489
- const channelDir = (0, import_node_path11.join)(root, channel);
106576
+ const channelDir = (0, import_node_path12.join)(root, channel);
106490
106577
  const version3 = await resolveVersion(channelDir, preferred);
106491
106578
  if (!version3) continue;
106492
- const imagesDir = (0, import_node_path11.join)(channelDir, version3, "vvd", "images");
106493
- if ((0, import_node_fs8.existsSync)(imagesDir)) return imagesDir;
106579
+ const imagesDir = (0, import_node_path12.join)(channelDir, version3, "vvd", "images");
106580
+ if ((0, import_node_fs9.existsSync)(imagesDir)) return imagesDir;
106494
106581
  }
106495
106582
  return null;
106496
106583
  }
@@ -106498,8 +106585,8 @@ async function listVvdImages() {
106498
106585
  const dir = await resolveVegaSdkImagesDir();
106499
106586
  if (!dir) return [];
106500
106587
  try {
106501
- const entries = await (0, import_promises7.readdir)(dir, { withFileTypes: true });
106502
- return entries.filter((e) => e.isDirectory()).map((e) => ({ name: e.name, path: (0, import_node_path11.join)(dir, e.name) })).sort((a, b) => a.name.localeCompare(b.name));
106588
+ const entries = await (0, import_promises8.readdir)(dir, { withFileTypes: true });
106589
+ return entries.filter((e) => e.isDirectory()).map((e) => ({ name: e.name, path: (0, import_node_path12.join)(dir, e.name) })).sort((a, b) => a.name.localeCompare(b.name));
106503
106590
  } catch {
106504
106591
  return [];
106505
106592
  }
@@ -106621,18 +106708,22 @@ async function resolveRunningVvdSerial() {
106621
106708
 
106622
106709
  // ../tool-server/src/tools/devices/list-devices.ts
106623
106710
  init_external_devices();
106624
- var import_node_child_process23 = require("node:child_process");
106625
- var import_node_util18 = require("node:util");
106626
- var execFileAsync17 = (0, import_node_util18.promisify)(import_node_child_process23.execFile);
106711
+ var import_node_child_process24 = require("node:child_process");
106712
+ var import_node_util19 = require("node:util");
106713
+ var execFileAsync18 = (0, import_node_util19.promisify)(import_node_child_process24.execFile);
106627
106714
  var ARGENT_CLOUD_URL = "https://argent.swmansion.com/cloud/";
106628
106715
  var ARGENT_CLOUD_OFFER = `Argent Cloud, a hosted service that is not set up here, runs iOS simulators on remote Macs; once the user sets it up with their API key and the sim-remote CLI, they are listed as platform 'ios-remote'. ` + ARGENT_CLOUD_URL;
106629
106716
  function iosReachNote(host, cloud) {
106630
106717
  if (cloud === "logged-out") {
106631
- return `iOS: ${host.localIos ? "" : "this machine cannot run iOS simulators locally; "}sim-remote is installed but not logged in, so Argent Cloud simulators are not listed. The user runs \`sim-remote login\` in their own terminal.`;
106718
+ return `iOS: ${host.localIos ? "" : "this machine cannot run iOS simulators locally; "}${argentCloudCommand()} is installed but not logged in, so Argent Cloud simulators are not listed. The user runs \`${argentCloudCommand()} login\` in their own terminal.`;
106632
106719
  }
106633
106720
  if (cloud !== "absent" || host.localIos) return null;
106634
106721
  return host.darwin ? `iOS: no local simulators because \`simctl\` was not found in the active developer directory. Select your Xcode installation, or install Xcode if needed. ${ARGENT_CLOUD_OFFER}` : `iOS: this machine cannot run iOS simulators (they need macOS with Xcode). ${ARGENT_CLOUD_OFFER}`;
106635
106722
  }
106723
+ function outdatedCloudCliNote(version3) {
106724
+ if (!version3 || !isArgentCloudOutdated(version3)) return null;
106725
+ return `iOS: ${argentCloudCommand()} ${version3} is older than ${MIN_ARGENT_CLOUD_VERSION}, the version Argent expects. Argent Cloud simulators still work. The user can update it with \`argent cloud install\`.`;
106726
+ }
106636
106727
  var ANDROID_SDK_MISSING_NOTE = "Android: no SDK found (adb, emulator). Installing the platform tools and creating an AVD adds Android targets.";
106637
106728
  var EXTERNAL_DEVICES_HINT = `Some entries are tagged 'external: true': another application is already driving that device, and its 'provider' field names it ('provider.workspace' names the project it opened, when it published one). Drive them with the usual tools, by the 'ext:'-prefixed id. Two rules differ: prefer the external device whose 'provider.workspace.path' matches the project you are working in, and do NOT call boot-device on them, since the provider owns their lifecycle. stop-simulator-server IS safe on them and never stops the provider's server \u2014 it drops argent's cached handles, which is the recovery when calls keep failing against an endpoint the provider has since moved. Each entry's 'capabilities' lists the mechanisms that provider granted; a tool relying on one it withheld fails with a clear message naming the provider.`;
106638
106729
  function iosListTimedOutHint() {
@@ -106702,10 +106793,10 @@ async function listRemoteIosSimulators() {
106702
106793
  )
106703
106794
  );
106704
106795
  const left = BRANCH_DEADLINE_MS - REMOTE_LISTING_MARGIN_MS - (Date.now() - started);
106705
- const foldableTypes = await remoteFoldableTypes(
106706
- mobileTypes,
106707
- Math.max(0, Math.min(REMOTE_FOLDABLE_LOOKUP_MS, left))
106708
- );
106796
+ const [foldableTypes, version3] = await Promise.all([
106797
+ remoteFoldableTypes(mobileTypes, Math.max(0, Math.min(REMOTE_FOLDABLE_LOOKUP_MS, left))),
106798
+ argentCloudVersion()
106799
+ ]);
106709
106800
  const out = listed.map(({ runtime, runtimeKind, d }) => ({
106710
106801
  platform: "ios-remote",
106711
106802
  kind: "simulator",
@@ -106716,19 +106807,23 @@ async function listRemoteIosSimulators() {
106716
106807
  runtimeKind,
106717
106808
  ...runtimeKind === "mobile" && foldableTypes.has(d.deviceTypeIdentifier ?? "") ? { foldable: true } : {}
106718
106809
  }));
106719
- return { devices: out, cloud: "logged-in" };
106810
+ return { devices: out, cloud: "logged-in", version: version3 };
106720
106811
  } catch (err) {
106721
106812
  if (simRemoteExecError(err).code === "ENOENT") {
106722
- return { devices: [], cloud: "absent" };
106813
+ return { devices: [], cloud: "absent", version: null };
106723
106814
  }
106724
106815
  const loggedOut = err instanceof Error && /not logged in/i.test(err.message);
106725
- return { devices: [], cloud: loggedOut ? "logged-out" : "unknown" };
106816
+ return {
106817
+ devices: [],
106818
+ cloud: loggedOut ? "logged-out" : "unknown",
106819
+ version: await argentCloudVersion()
106820
+ };
106726
106821
  }
106727
106822
  }
106728
106823
  async function canRunLocalIos(simulatorsFound) {
106729
106824
  if (process.platform !== "darwin") return false;
106730
106825
  if (simulatorsFound) return true;
106731
- return execFileAsync17("xcrun", ["--find", "simctl"], { timeout: 5e3 }).then(
106826
+ return execFileAsync18("xcrun", ["--find", "simctl"], { timeout: 5e3 }).then(
106732
106827
  () => true,
106733
106828
  () => false
106734
106829
  );
@@ -106860,7 +106955,7 @@ Use when starting a session to discover target ids. Returns { devices, notes? }.
106860
106955
  ),
106861
106956
  withDeadline(
106862
106957
  listRemoteIosSimulators(),
106863
- { devices: [], cloud: "unknown" },
106958
+ { devices: [], cloud: "unknown", version: null },
106864
106959
  "ios-remote"
106865
106960
  ),
106866
106961
  withDeadline(
@@ -107000,9 +107095,11 @@ Use when starting a session to discover target ids. Returns { devices, notes? }.
107000
107095
  { localIos, darwin: process.platform === "darwin" },
107001
107096
  iosRemote.cloud
107002
107097
  );
107098
+ const cloudCliNote = outdatedCloudCliNote(iosRemote.version);
107003
107099
  const adbPrefix = adbCommandPrefix(process.env);
107004
107100
  const notes = [
107005
107101
  ...iosNote ? [iosNote] : [],
107102
+ ...cloudCliNote ? [cloudCliNote] : [],
107006
107103
  ...androidSdk ? [] : [ANDROID_SDK_MISSING_NOTE],
107007
107104
  ...xcodeInstallPending.length > 0 ? [xcodeFirstLaunchHint(xcodeInstallPending)] : [],
107008
107105
  ...ios.timedOut ? [iosListTimedOutHint()] : [],
@@ -109087,7 +109184,7 @@ function parseUiAutomatorDump(rawOutput, screenW, screenH, options = {}) {
109087
109184
  }
109088
109185
 
109089
109186
  // ../tool-server/src/blueprints/android-devtools.ts
109090
- var import_node_child_process24 = require("node:child_process");
109187
+ var import_node_child_process25 = require("node:child_process");
109091
109188
  var readline2 = __toESM(require("node:readline"));
109092
109189
  init_src2();
109093
109190
 
@@ -109124,8 +109221,8 @@ var TraceProcessorUnavailableError = class _TraceProcessorUnavailableError exten
109124
109221
  };
109125
109222
 
109126
109223
  // ../native-devtools-android/src/wasm-trace-processor.ts
109127
- var import_node_fs9 = require("node:fs");
109128
- var import_promises8 = require("node:fs/promises");
109224
+ var import_node_fs10 = require("node:fs");
109225
+ var import_promises9 = require("node:fs/promises");
109129
109226
  var path30 = __toESM(require("node:path"));
109130
109227
  var import_node_url2 = require("node:url");
109131
109228
  var import_node_vm = __toESM(require("node:vm"));
@@ -109453,7 +109550,7 @@ function engineGlobals() {
109453
109550
  function resolveTraceProcessorAssets() {
109454
109551
  const dir = path30.join(__dirname, "..", "assets", "trace-processor");
109455
109552
  const wasmOverride = process.env.ARGENT_TRACE_PROCESSOR_WASM;
109456
- if (wasmOverride && !(0, import_node_fs9.existsSync)(wasmOverride)) {
109553
+ if (wasmOverride && !(0, import_node_fs10.existsSync)(wasmOverride)) {
109457
109554
  throw new TraceProcessorUnavailableError("wasm_path_invalid", { path: wasmOverride });
109458
109555
  }
109459
109556
  return {
@@ -109549,8 +109646,8 @@ async function createEngine() {
109549
109646
  const dir = path30.dirname(wasmPath);
109550
109647
  setupWorkerScope(dir);
109551
109648
  const g = engineGlobals();
109552
- const wasmModule = await g.WebAssembly.compile(await (0, import_promises8.readFile)(wasmPath));
109553
- const src = patchGlueForNode((0, import_node_fs9.readFileSync)(gluePath, "utf8"));
109649
+ const wasmModule = await g.WebAssembly.compile(await (0, import_promises9.readFile)(wasmPath));
109650
+ const src = patchGlueForNode((0, import_node_fs10.readFileSync)(gluePath, "utf8"));
109554
109651
  import_node_vm.default.runInThisContext(src, { filename: "engine_bundle.node.patched.js" });
109555
109652
  const bridge = g.__TP_bridge;
109556
109653
  if (!bridge) throw new Error("patched glue did not expose globalThis.__TP_bridge");
@@ -109604,7 +109701,7 @@ function getWarmEngine(tracePath) {
109604
109701
  }
109605
109702
  const enginePromise = (async () => {
109606
109703
  const engine = await createEngine();
109607
- const bytes = new Uint8Array(await (0, import_promises8.readFile)(tracePath));
109704
+ const bytes = new Uint8Array(await (0, import_promises9.readFile)(tracePath));
109608
109705
  const load = (async () => {
109609
109706
  for (let offset = 0; offset < bytes.length; offset += TRACE_PARSE_CHUNK_BYTES) {
109610
109707
  await engine.parse(bytes.subarray(offset, offset + TRACE_PARSE_CHUNK_BYTES));
@@ -109930,7 +110027,7 @@ async function spawnHelper(serial) {
109930
110027
  }
109931
110028
  );
109932
110029
  }
109933
- const proc = (0, import_node_child_process24.spawn)(
110030
+ const proc = (0, import_node_child_process25.spawn)(
109934
110031
  adbPath,
109935
110032
  ["-s", serial, "shell", "am", "instrument", "-w", manifest.instrumentationRunner],
109936
110033
  { stdio: ["ignore", "pipe", "pipe"] }
@@ -113349,18 +113446,18 @@ function hasUnreadWebView(node2) {
113349
113446
  // ../tool-server/src/preview.ts
113350
113447
  function findUiFile(name) {
113351
113448
  const candidates = [
113352
- import_node_path12.default.join(__dirname, "preview-ui", name),
113353
- import_node_path12.default.resolve(__dirname, "..", "..", "..", "ui", name),
113354
- import_node_path12.default.resolve(__dirname, "..", "..", "ui", name)
113449
+ import_node_path13.default.join(__dirname, "preview-ui", name),
113450
+ import_node_path13.default.resolve(__dirname, "..", "..", "..", "ui", name),
113451
+ import_node_path13.default.resolve(__dirname, "..", "..", "ui", name)
113355
113452
  ];
113356
113453
  for (const p of candidates) {
113357
- if (import_node_fs10.default.existsSync(p)) return p;
113454
+ if (import_node_fs11.default.existsSync(p)) return p;
113358
113455
  }
113359
113456
  return null;
113360
113457
  }
113361
113458
  function serveUiFile(res, filePath, contentType) {
113362
113459
  res.set("Cache-Control", "no-store, must-revalidate");
113363
- res.type(contentType).sendFile(import_node_path12.default.basename(filePath), { root: import_node_path12.default.dirname(filePath) });
113460
+ res.type(contentType).sendFile(import_node_path13.default.basename(filePath), { root: import_node_path13.default.dirname(filePath) });
113364
113461
  }
113365
113462
  function wsUrlFromHttp(httpUrl2) {
113366
113463
  const u = new URL(httpUrl2);
@@ -113690,9 +113787,9 @@ data: ${JSON.stringify(data)}
113690
113787
  const MAX_PREVIEW_BYTES = 25 * 1024 * 1024;
113691
113788
  const allowedRoots = (() => {
113692
113789
  const roots = /* @__PURE__ */ new Set();
113693
- for (const r of [import_node_os5.default.tmpdir(), process.cwd(), "/tmp"]) {
113790
+ for (const r of [import_node_os6.default.tmpdir(), process.cwd(), "/tmp"]) {
113694
113791
  try {
113695
- roots.add(import_node_fs10.default.realpathSync(r));
113792
+ roots.add(import_node_fs11.default.realpathSync(r));
113696
113793
  } catch {
113697
113794
  }
113698
113795
  }
@@ -113711,8 +113808,8 @@ data: ${JSON.stringify(data)}
113711
113808
  let real;
113712
113809
  let size;
113713
113810
  try {
113714
- real = import_node_fs10.default.realpathSync(src);
113715
- const st = import_node_fs10.default.statSync(real);
113811
+ real = import_node_fs11.default.realpathSync(src);
113812
+ const st = import_node_fs11.default.statSync(real);
113716
113813
  if (!st.isFile()) throw new Error("not a file");
113717
113814
  size = st.size;
113718
113815
  } catch {
@@ -113720,16 +113817,16 @@ data: ${JSON.stringify(data)}
113720
113817
  return;
113721
113818
  }
113722
113819
  const contained = allowedRoots.some(
113723
- (root) => real === root || real.startsWith(root + import_node_path12.default.sep)
113820
+ (root) => real === root || real.startsWith(root + import_node_path13.default.sep)
113724
113821
  );
113725
- const mime = IMG_MIME[import_node_path12.default.extname(real).toLowerCase()];
113822
+ const mime = IMG_MIME[import_node_path13.default.extname(real).toLowerCase()];
113726
113823
  if (!contained || !mime || size > MAX_PREVIEW_BYTES) {
113727
113824
  res.status(404).end();
113728
113825
  return;
113729
113826
  }
113730
113827
  res.set("Cache-Control", "no-store");
113731
113828
  res.type(mime);
113732
- import_node_fs10.default.createReadStream(real).on("error", () => {
113829
+ import_node_fs11.default.createReadStream(real).on("error", () => {
113733
113830
  if (!res.headersSent) res.status(404).end();
113734
113831
  }).pipe(res);
113735
113832
  });
@@ -113785,9 +113882,9 @@ data: ${JSON.stringify(data)}
113785
113882
  }
113786
113883
 
113787
113884
  // ../tool-server/src/artifacts.ts
113788
- var import_node_fs11 = require("node:fs");
113789
- var import_promises9 = require("node:fs/promises");
113790
- var import_node_child_process25 = require("node:child_process");
113885
+ var import_node_fs12 = require("node:fs");
113886
+ var import_promises10 = require("node:fs/promises");
113887
+ var import_node_child_process26 = require("node:child_process");
113791
113888
  init_src2();
113792
113889
  function requireArtifacts(ctx) {
113793
113890
  if (!ctx?.artifacts) {
@@ -113806,7 +113903,7 @@ function makeArtifactRoute(registry2) {
113806
113903
  return;
113807
113904
  }
113808
113905
  try {
113809
- await (0, import_promises9.access)(entry.path);
113906
+ await (0, import_promises10.access)(entry.path);
113810
113907
  } catch {
113811
113908
  res.status(410).json({ error: `Artifact "${id}" file no longer exists on the tool-server host` });
113812
113909
  return;
@@ -113818,7 +113915,7 @@ function makeArtifactRoute(registry2) {
113818
113915
  res.setHeader("Content-Type", entry.mimeType);
113819
113916
  res.setHeader("Content-Disposition", `attachment; filename="${entry.filename}"`);
113820
113917
  if (entry.size > 0) res.setHeader("Content-Length", String(entry.size));
113821
- const stream = (0, import_node_fs11.createReadStream)(entry.path);
113918
+ const stream = (0, import_node_fs12.createReadStream)(entry.path);
113822
113919
  stream.on("error", () => {
113823
113920
  if (!res.headersSent) res.status(500).json({ error: `Failed to read artifact "${id}"` });
113824
113921
  else res.destroy();
@@ -113838,7 +113935,7 @@ function streamDirectoryAsArchive(id, entry, req, res) {
113838
113935
  res.setHeader("Content-Type", ARCHIVE_CONTENT_TYPES[format]);
113839
113936
  res.setHeader("Vary", "Accept");
113840
113937
  res.setHeader("Content-Disposition", `attachment; filename="${entry.filename}.${ext}"`);
113841
- const child = (0, import_node_child_process25.spawn)("tar", createTarArgs(entry.path), {
113938
+ const child = (0, import_node_child_process26.spawn)("tar", createTarArgs(entry.path), {
113842
113939
  stdio: ["ignore", "pipe", "ignore"]
113843
113940
  });
113844
113941
  child.on("error", (err) => {
@@ -113867,9 +113964,9 @@ function streamDirectoryAsArchive(id, entry, req, res) {
113867
113964
  }
113868
113965
 
113869
113966
  // ../tool-server/src/file-inputs.ts
113870
- var import_promises10 = require("node:fs/promises");
113871
- var import_node_os6 = require("node:os");
113872
- var import_node_path13 = require("node:path");
113967
+ var import_promises11 = require("node:fs/promises");
113968
+ var import_node_os7 = require("node:os");
113969
+ var import_node_path14 = require("node:path");
113873
113970
  var import_bytes = __toESM(require_bytes());
113874
113971
  init_src2();
113875
113972
  var MAX_UPLOAD_BYTES = 32 * 1024 * 1024;
@@ -113878,7 +113975,7 @@ var FileInputError = class extends Error {
113878
113975
  async function probeHostPath(wire, kind) {
113879
113976
  const miss = { present: false, statVerified: false };
113880
113977
  try {
113881
- const st = await (0, import_promises10.stat)(wire.path);
113978
+ const st = await (0, import_promises11.stat)(wire.path);
113882
113979
  if (kind === "directory") return { present: st.isDirectory(), statVerified: false };
113883
113980
  if (kind === "probe") return { present: true, statVerified: false };
113884
113981
  if (kind === "tar-upload" && st.isDirectory()) {
@@ -113925,9 +114022,9 @@ function decodeContent(wire) {
113925
114022
  }
113926
114023
  async function materializeUpload(wire) {
113927
114024
  const data = decodeContent(wire);
113928
- const dir = await (0, import_promises10.mkdtemp)((0, import_node_path13.join)((0, import_node_os6.tmpdir)(), "argent-file-input-"));
113929
- const filePath = (0, import_node_path13.join)(dir, sanitizeFilename((0, import_node_path13.basename)(wire.path)));
113930
- await (0, import_promises10.writeFile)(filePath, data);
114025
+ const dir = await (0, import_promises11.mkdtemp)((0, import_node_path14.join)((0, import_node_os7.tmpdir)(), "argent-file-input-"));
114026
+ const filePath = (0, import_node_path14.join)(dir, sanitizeFilename((0, import_node_path14.basename)(wire.path)));
114027
+ await (0, import_promises11.writeFile)(filePath, data);
113931
114028
  return { filePath, dir };
113932
114029
  }
113933
114030
  async function extractTarUpload(wire, uploadId, meta3, tempDirs, lookupUpload) {
@@ -113948,11 +114045,11 @@ async function extractTarUpload(wire, uploadId, meta3, tempDirs, lookupUpload) {
113948
114045
  `Upload content hash mismatch for "${wire.path}" \u2014 the tarball may have been corrupted in transit. Re-run the tool to upload again.`
113949
114046
  );
113950
114047
  }
113951
- const extractDir = await (0, import_promises10.mkdtemp)(
113952
- (0, import_node_path13.join)((0, import_node_os6.tmpdir)(), `argent-tar-upload-${entry.sha256.slice(0, 16)}-`)
114048
+ const extractDir = await (0, import_promises11.mkdtemp)(
114049
+ (0, import_node_path14.join)((0, import_node_os7.tmpdir)(), `argent-tar-upload-${entry.sha256.slice(0, 16)}-`)
113953
114050
  );
113954
114051
  tempDirs.push(extractDir);
113955
- const uploaded = await safeExtractArchive(entry.tarPath, extractDir, (0, import_node_path13.basename)(wire.path));
114052
+ const uploaded = await safeExtractArchive(entry.tarPath, extractDir, (0, import_node_path14.basename)(wire.path));
113956
114053
  return { value: uploaded, meta: { ...meta3, viaUpload: true } };
113957
114054
  } catch (err) {
113958
114055
  if (err instanceof FileInputError) throw err;
@@ -113960,7 +114057,7 @@ async function extractTarUpload(wire, uploadId, meta3, tempDirs, lookupUpload) {
113960
114057
  `Could not extract the uploaded archive for "${wire.path}": ${err instanceof Error ? err.message : String(err)}`
113961
114058
  );
113962
114059
  } finally {
113963
- await (0, import_promises10.rm)(entry.tarPath, { force: true }).catch(() => {
114060
+ await (0, import_promises11.rm)(entry.tarPath, { force: true }).catch(() => {
113964
114061
  });
113965
114062
  }
113966
114063
  }
@@ -114010,10 +114107,10 @@ async function memberText(member, tempDirs, lookupUpload, taken) {
114010
114107
  `Could not read the uploaded file "${member.path}": ${errorText(err)}`
114011
114108
  );
114012
114109
  };
114013
- const { size } = await (0, import_promises10.stat)(file2).catch(unreadable2);
114110
+ const { size } = await (0, import_promises11.stat)(file2).catch(unreadable2);
114014
114111
  checkUploadSize(member, size);
114015
114112
  countMemberBytes(member, taken, size);
114016
- return (0, import_promises10.readFile)(file2, "utf8").catch(unreadable2);
114113
+ return (0, import_promises11.readFile)(file2, "utf8").catch(unreadable2);
114017
114114
  }
114018
114115
  async function resolveMembers(members2, tempDirs, lookupUpload) {
114019
114116
  const out = {};
@@ -114052,7 +114149,7 @@ async function resolveMembers(members2, tempDirs, lookupUpload) {
114052
114149
  return out;
114053
114150
  }
114054
114151
  function unexpandedPathError(wire) {
114055
- if ((0, import_node_path13.isAbsolute)(wire.path) || import_node_path13.win32.isAbsolute(wire.path)) return void 0;
114152
+ if ((0, import_node_path14.isAbsolute)(wire.path) || import_node_path14.win32.isAbsolute(wire.path)) return void 0;
114056
114153
  return new FileInputError(
114057
114154
  `Path "${wire.path}" is not an absolute path. ` + (isUnexpandedPath(wire.path) ? `Nothing expands "~", variables, commands or URLs in a file argument, ` : `The tool-server resolves a relative path against its own working directory, `) + `so pass the file's absolute path.`
114058
114155
  );
@@ -114132,7 +114229,7 @@ async function releaseUploads(specs, body, lookupUpload) {
114132
114229
  await Promise.all(
114133
114230
  ids.map(async (id) => {
114134
114231
  const entry = typeof id === "string" ? lookupUpload?.(id) : void 0;
114135
- if (entry) await (0, import_promises10.rm)(entry.tarPath, { force: true }).catch(() => {
114232
+ if (entry) await (0, import_promises11.rm)(entry.tarPath, { force: true }).catch(() => {
114136
114233
  });
114137
114234
  })
114138
114235
  );
@@ -114141,7 +114238,7 @@ async function resolveFileInputs(def, body, lookupUpload) {
114141
114238
  const tempDirs = [];
114142
114239
  const cleanup = async () => {
114143
114240
  await Promise.all(
114144
- tempDirs.map((dir) => (0, import_promises10.rm)(dir, { recursive: true, force: true }).catch(() => {
114241
+ tempDirs.map((dir) => (0, import_promises11.rm)(dir, { recursive: true, force: true }).catch(() => {
114145
114242
  }))
114146
114243
  );
114147
114244
  };
@@ -114650,7 +114747,7 @@ init_device_info();
114650
114747
  // ../tool-server/src/blueprints/tv-control.ts
114651
114748
  var net5 = __toESM(require("node:net"));
114652
114749
  var fs36 = __toESM(require("node:fs"));
114653
- var import_node_child_process26 = require("node:child_process");
114750
+ var import_node_child_process27 = require("node:child_process");
114654
114751
  init_src2();
114655
114752
  init_capability();
114656
114753
  var TV_CONTROL_NAMESPACE = "TvControl";
@@ -114709,7 +114806,7 @@ function parseReply(raw, command) {
114709
114806
  }
114710
114807
  }
114711
114808
  function spawnAxDaemon(udid, socketPath, axTarget) {
114712
- const proc = (0, import_node_child_process26.execFile)(
114809
+ const proc = (0, import_node_child_process27.execFile)(
114713
114810
  "xcrun",
114714
114811
  [
114715
114812
  ...axTarget.prefix,
@@ -114729,10 +114826,10 @@ function spawnAxDaemon(udid, socketPath, axTarget) {
114729
114826
  }
114730
114827
  function reapDaemons(socketPath) {
114731
114828
  const pattern = `tvos-.* --socket ${socketPath.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`;
114732
- return new Promise((resolve24) => (0, import_node_child_process26.execFile)("pkill", ["-KILL", "-f", pattern], () => resolve24()));
114829
+ return new Promise((resolve24) => (0, import_node_child_process27.execFile)("pkill", ["-KILL", "-f", pattern], () => resolve24()));
114733
114830
  }
114734
114831
  function spawnHidDaemon(udid, socketPath) {
114735
- const proc = (0, import_node_child_process26.execFile)(
114832
+ const proc = (0, import_node_child_process27.execFile)(
114736
114833
  tvosHidDaemonBinaryPath(),
114737
114834
  ["--udid", udid, "--socket", socketPath, "--timeout", "3600"],
114738
114835
  { encoding: "utf8" }
@@ -115506,8 +115603,8 @@ function reserveLaunchMeasurement(udid) {
115506
115603
  }
115507
115604
 
115508
115605
  // ../tool-server/src/utils/ios-device/runner-artifact.ts
115509
- var import_node_child_process28 = require("node:child_process");
115510
- var import_node_util20 = require("node:util");
115606
+ var import_node_child_process29 = require("node:child_process");
115607
+ var import_node_util21 = require("node:util");
115511
115608
  var import_node_crypto10 = require("node:crypto");
115512
115609
  var fs38 = __toESM(require("node:fs"));
115513
115610
  var fsp = __toESM(require("node:fs/promises"));
@@ -115518,12 +115615,12 @@ init_src2();
115518
115615
  init_src2();
115519
115616
 
115520
115617
  // ../tool-server/src/utils/ios-device/provisioning-profiles.ts
115521
- var import_node_child_process27 = require("node:child_process");
115522
- var import_node_fs12 = require("node:fs");
115523
- var import_node_os7 = require("node:os");
115618
+ var import_node_child_process28 = require("node:child_process");
115619
+ var import_node_fs13 = require("node:fs");
115620
+ var import_node_os8 = require("node:os");
115524
115621
  var path33 = __toESM(require("node:path"));
115525
- var import_node_util19 = require("node:util");
115526
- var execFileAsync18 = (0, import_node_util19.promisify)(import_node_child_process27.execFile);
115622
+ var import_node_util20 = require("node:util");
115623
+ var execFileAsync19 = (0, import_node_util20.promisify)(import_node_child_process28.execFile);
115527
115624
  var PROFILE_DIRECTORIES = [
115528
115625
  path33.join("Library", "Developer", "Xcode", "UserData", "Provisioning Profiles"),
115529
115626
  path33.join("Library", "MobileDevice", "Provisioning Profiles")
@@ -115547,14 +115644,14 @@ function parseProvisioningProfile(xml) {
115547
115644
  async function readInstalledProfiles() {
115548
115645
  const files = (await Promise.all(
115549
115646
  PROFILE_DIRECTORIES.map(async (directory) => {
115550
- const absolute = path33.join((0, import_node_os7.homedir)(), directory);
115551
- const names = await import_node_fs12.promises.readdir(absolute).catch(() => []);
115647
+ const absolute = path33.join((0, import_node_os8.homedir)(), directory);
115648
+ const names = await import_node_fs13.promises.readdir(absolute).catch(() => []);
115552
115649
  return names.filter((name) => name.endsWith(".mobileprovision")).map((name) => path33.join(absolute, name));
115553
115650
  })
115554
115651
  )).flat();
115555
115652
  const decoded2 = await Promise.all(
115556
115653
  files.map(
115557
- (file2) => execFileAsync18("security", ["cms", "-D", "-i", file2], {
115654
+ (file2) => execFileAsync19("security", ["cms", "-D", "-i", file2], {
115558
115655
  timeout: PROFILE_DECODE_TIMEOUT_MS,
115559
115656
  maxBuffer: PROFILE_MAX_BYTES
115560
115657
  }).then(
@@ -115633,7 +115730,7 @@ function resolveSigningHint(output2) {
115633
115730
 
115634
115731
  // ../tool-server/src/utils/ios-device/runner-artifact.ts
115635
115732
  init_src();
115636
- var execFileAsync19 = (0, import_node_util20.promisify)(import_node_child_process28.execFile);
115733
+ var execFileAsync20 = (0, import_node_util21.promisify)(import_node_child_process29.execFile);
115637
115734
  var PROJECT_SUFFIX = "ios-device-runner/ArgentRunner/ArgentRunner.xcodeproj";
115638
115735
  function resolveRunnerProjectPath() {
115639
115736
  const override = process.env.ARGENT_IOS_RUNNER_PROJECT;
@@ -115692,7 +115789,7 @@ async function fingerprintRunnerSources(projectPath) {
115692
115789
  }
115693
115790
  async function xcodeVersionFingerprint() {
115694
115791
  try {
115695
- const { stdout } = await execFileAsync19("xcodebuild", ["-version"], { timeout: 2e4 });
115792
+ const { stdout } = await execFileAsync20("xcodebuild", ["-version"], { timeout: 2e4 });
115696
115793
  return stdout.trim().replace(/\n/g, " ");
115697
115794
  } catch {
115698
115795
  return "unknown-xcode";
@@ -115852,7 +115949,7 @@ async function buildRunnerArtifact(derivedDataPath, staticArgs, destinationUdid,
115852
115949
  ...runnerBuildLocationArgs(derivedDataPath)
115853
115950
  ];
115854
115951
  try {
115855
- await execFileAsync19("xcodebuild", args, {
115952
+ await execFileAsync20("xcodebuild", args, {
115856
115953
  timeout: BUILD_TIMEOUT_MS,
115857
115954
  killSignal: "SIGKILL",
115858
115955
  maxBuffer: BUILD_MAX_OUTPUT_BYTES
@@ -115901,15 +115998,15 @@ ${xcodebuildFailureSummary(output2)}`,
115901
115998
  }
115902
115999
 
115903
116000
  // ../tool-server/src/utils/ios-device/runner-launch.ts
115904
- var import_node_child_process29 = require("node:child_process");
116001
+ var import_node_child_process30 = require("node:child_process");
115905
116002
  var import_node_events2 = require("node:events");
115906
116003
  var fs39 = __toESM(require("node:fs"));
115907
116004
  var fsp2 = __toESM(require("node:fs/promises"));
115908
116005
  var path35 = __toESM(require("node:path"));
115909
- var import_node_util21 = require("node:util");
116006
+ var import_node_util22 = require("node:util");
115910
116007
  init_src2();
115911
116008
  init_src();
115912
- var execFileAsync20 = (0, import_node_util21.promisify)(import_node_child_process29.execFile);
116009
+ var execFileAsync21 = (0, import_node_util22.promisify)(import_node_child_process30.execFile);
115913
116010
  function logsRoot() {
115914
116011
  return path35.join(argentHomeDir(), "ios-device-runner", "logs");
115915
116012
  }
@@ -115926,7 +116023,7 @@ async function disableRunnerAttachments(xctestrunPath) {
115926
116023
  for (const target of RUNNER_TEST_TARGET_KEY_PATHS) {
115927
116024
  try {
115928
116025
  for (const [key2, value] of RUNNER_ATTACHMENT_SETTINGS) {
115929
- await execFileAsync20(
116026
+ await execFileAsync21(
115930
116027
  "plutil",
115931
116028
  ["-replace", `${target}.${key2}`, "-string", value, xctestrunPath],
115932
116029
  {
@@ -115952,7 +116049,7 @@ async function launchRunner(opts) {
115952
116049
  await fsp2.rm(resultBundlePath, { recursive: true, force: true });
115953
116050
  await disableRunnerAttachments(opts.xctestrunPath);
115954
116051
  const logFd = fs39.openSync(logPath, "w");
115955
- const child = (0, import_node_child_process29.spawn)(
116052
+ const child = (0, import_node_child_process30.spawn)(
115956
116053
  "xcodebuild",
115957
116054
  [
115958
116055
  "test-without-building",
@@ -116037,16 +116134,16 @@ function killRunnerProcess(child) {
116037
116134
  }
116038
116135
 
116039
116136
  // ../tool-server/src/utils/ios-device/runner-sweep.ts
116040
- var import_node_child_process30 = require("node:child_process");
116041
- var import_node_util22 = require("node:util");
116137
+ var import_node_child_process31 = require("node:child_process");
116138
+ var import_node_util23 = require("node:util");
116042
116139
  var path36 = __toESM(require("node:path"));
116043
116140
  init_src();
116044
- var execFileAsync21 = (0, import_node_util22.promisify)(import_node_child_process30.execFile);
116141
+ var execFileAsync22 = (0, import_node_util23.promisify)(import_node_child_process31.execFile);
116045
116142
  var PROCESS_TABLE_MAX_BYTES = 16 * 1024 * 1024;
116046
116143
  var STALE_EXIT_TIMEOUT_MS = 5e3;
116047
116144
  var STALE_EXIT_POLL_INTERVAL_MS = 100;
116048
116145
  async function listProcessTable() {
116049
- const { stdout } = await execFileAsync21(PS_BIN, ["-ax", "-o", "pid=,ppid=,command="], {
116146
+ const { stdout } = await execFileAsync22(PS_BIN, ["-ax", "-o", "pid=,ppid=,command="], {
116050
116147
  maxBuffer: PROCESS_TABLE_MAX_BYTES
116051
116148
  });
116052
116149
  return stdout;
@@ -116475,10 +116572,10 @@ function defaultSendViaUsbmux(udid, port, body, deadline) {
116475
116572
  }
116476
116573
 
116477
116574
  // ../tool-server/src/utils/ios-device/runner-crash.ts
116478
- var import_node_child_process31 = require("node:child_process");
116479
- var import_node_util23 = require("node:util");
116575
+ var import_node_child_process32 = require("node:child_process");
116576
+ var import_node_util24 = require("node:util");
116480
116577
  var fs40 = __toESM(require("node:fs/promises"));
116481
- var execFileAsync22 = (0, import_node_util23.promisify)(import_node_child_process31.execFile);
116578
+ var execFileAsync23 = (0, import_node_util24.promisify)(import_node_child_process32.execFile);
116482
116579
  var XCRESULTTOOL_TIMEOUT_MS = 15e3;
116483
116580
  var XCRESULTTOOL_MAX_JSON_BYTES = 32 * 1024 * 1024;
116484
116581
  function extractCrashFailureText(summary) {
@@ -116498,7 +116595,7 @@ function extractCrashFailureText(summary) {
116498
116595
  async function readRunnerCrashSummary(resultBundlePath) {
116499
116596
  try {
116500
116597
  await fs40.access(resultBundlePath);
116501
- const { stdout } = await execFileAsync22(
116598
+ const { stdout } = await execFileAsync23(
116502
116599
  "xcrun",
116503
116600
  ["xcresulttool", "get", "test-results", "summary", "--path", resultBundlePath],
116504
116601
  { timeout: XCRESULTTOOL_TIMEOUT_MS, maxBuffer: XCRESULTTOOL_MAX_JSON_BYTES }
@@ -121851,12 +121948,12 @@ async function describeVega(_serial) {
121851
121948
  }
121852
121949
 
121853
121950
  // ../tool-server/src/tools/describe/platforms/harmony/index.ts
121854
- var import_node_os8 = require("node:os");
121855
- var import_node_path14 = require("node:path");
121856
- var import_promises12 = require("node:fs/promises");
121951
+ var import_node_os9 = require("node:os");
121952
+ var import_node_path15 = require("node:path");
121953
+ var import_promises13 = require("node:fs/promises");
121857
121954
 
121858
121955
  // ../tool-server/src/utils/harmony-uitest.ts
121859
- var import_promises11 = require("node:fs/promises");
121956
+ var import_promises12 = require("node:fs/promises");
121860
121957
  init_src2();
121861
121958
  var REMOTE_TMP = "/data/local/tmp";
121862
121959
  var UITEST_TIMEOUT_MS = 2e4;
@@ -122105,7 +122202,7 @@ async function harmonyDumpLayout(connectKey, localPath, timeoutMs = UITEST_TIMEO
122105
122202
  },
122106
122203
  Date.now() + timeoutMs
122107
122204
  );
122108
- const raw = await (0, import_promises11.readFile)(localPath, "utf8");
122205
+ const raw = await (0, import_promises12.readFile)(localPath, "utf8");
122109
122206
  try {
122110
122207
  return JSON.parse(raw);
122111
122208
  } catch (err) {
@@ -122375,7 +122472,7 @@ function pollHarmonyTree(connectKey, budgetMs) {
122375
122472
  return describeHarmony(connectKey, budgetMs);
122376
122473
  }
122377
122474
  async function describeHarmony(connectKey, timeoutMs = HARMONY_INTERACTION_TIMEOUT_MS) {
122378
- const localPath = (0, import_node_path14.join)((0, import_node_os8.tmpdir)(), `argent-harmony-dump-${process.hrtime.bigint()}.json`);
122475
+ const localPath = (0, import_node_path15.join)((0, import_node_os9.tmpdir)(), `argent-harmony-dump-${process.hrtime.bigint()}.json`);
122379
122476
  const deadline = Date.now() + timeoutMs;
122380
122477
  const display = await harmonyDisplay(
122381
122478
  connectKey,
@@ -122400,7 +122497,7 @@ async function describeHarmony(connectKey, timeoutMs = HARMONY_INTERACTION_TIMEO
122400
122497
  ...display.screenOn ? {} : { stale: true }
122401
122498
  };
122402
122499
  } finally {
122403
- await (0, import_promises12.rm)(localPath, { force: true }).catch(() => {
122500
+ await (0, import_promises13.rm)(localPath, { force: true }).catch(() => {
122404
122501
  });
122405
122502
  }
122406
122503
  }
@@ -122410,7 +122507,7 @@ var import_pngjs2 = __toESM(require_png());
122410
122507
  init_src2();
122411
122508
 
122412
122509
  // ../tool-server/src/blueprints/macos-app.ts
122413
- var import_node_child_process32 = require("node:child_process");
122510
+ var import_node_child_process33 = require("node:child_process");
122414
122511
  var import_node_crypto12 = require("node:crypto");
122415
122512
  var import_node_events5 = require("node:events");
122416
122513
  var fs42 = __toESM(require("node:fs"));
@@ -123441,7 +123538,7 @@ function createMacosAppApi(bundleId) {
123441
123538
  if (listen3 && !info.sandboxed) fs42.rmSync(listen3.path, { force: true });
123442
123539
  fs42.writeFileSync(logPath, "");
123443
123540
  const args = opts.args ?? (opts.noLastArgs ? void 0 : tracked?.args) ?? [];
123444
- const helper = (0, import_node_child_process32.spawn)(
123541
+ const helper = (0, import_node_child_process33.spawn)(
123445
123542
  artifacts.helper,
123446
123543
  [
123447
123544
  "launch",
@@ -125905,7 +126002,7 @@ function directCallFailure(tool, result) {
125905
126002
  // ../tool-server/src/utils/argent-home-id.ts
125906
126003
  var import_node_crypto13 = require("node:crypto");
125907
126004
  var fs44 = __toESM(require("node:fs"));
125908
- var import_node_os9 = require("node:os");
126005
+ var import_node_os10 = require("node:os");
125909
126006
  var path39 = __toESM(require("node:path"));
125910
126007
  init_src();
125911
126008
  var ARGENT_HOME_HEADER = "x-argent-home";
@@ -125925,7 +126022,7 @@ function peerArgentHomeId(header) {
125925
126022
  var LOOPBACK_ADDRESSES = /* @__PURE__ */ new Set(["127.0.0.1", "::1", "::ffff:127.0.0.1"]);
125926
126023
  function isOwnAddress(address) {
125927
126024
  const ip = address.replace(/^::ffff:(?=\d+\.\d+\.\d+\.\d+$)/, "");
125928
- return Object.values((0, import_node_os9.networkInterfaces)()).some(
126025
+ return Object.values((0, import_node_os10.networkInterfaces)()).some(
125929
126026
  (list) => list?.some((a) => (a.family === "IPv4" || a.scopeid === 0) && a.address === ip)
125930
126027
  );
125931
126028
  }
@@ -126135,13 +126232,13 @@ function checkTokenExemptAccess(req, policy) {
126135
126232
  }
126136
126233
  function interfaceAddresses() {
126137
126234
  const out = [];
126138
- for (const list of Object.values((0, import_node_os10.networkInterfaces)())) {
126235
+ for (const list of Object.values((0, import_node_os11.networkInterfaces)())) {
126139
126236
  for (const a of list ?? []) out.push(a.address.split("%")[0]);
126140
126237
  }
126141
126238
  return out;
126142
126239
  }
126143
126240
  function machineHostnames() {
126144
- const name = (0, import_node_os10.hostname)().toLowerCase();
126241
+ const name = (0, import_node_os11.hostname)().toLowerCase();
126145
126242
  if (!name) return [];
126146
126243
  const bare = name.endsWith(".local") ? name.slice(0, -".local".length) : name;
126147
126244
  return [bare, `${bare}.local`];
@@ -126170,7 +126267,7 @@ function createHttpApp(registry2, options) {
126170
126267
  for (const [id, entry] of uploads) {
126171
126268
  if (entry.expireAt < now) {
126172
126269
  uploads.delete(id);
126173
- (0, import_promises13.rm)(entry.tarPath, { force: true }).catch(() => {
126270
+ (0, import_promises14.rm)(entry.tarPath, { force: true }).catch(() => {
126174
126271
  });
126175
126272
  }
126176
126273
  }
@@ -126298,8 +126395,8 @@ function createHttpApp(registry2, options) {
126298
126395
  return;
126299
126396
  }
126300
126397
  const id = (0, import_node_crypto14.randomUUID)();
126301
- const tarPath = (0, import_node_path15.join)((0, import_node_os10.tmpdir)(), `argent-upload-${id}.tar.gz`);
126302
- const ws = (0, import_node_fs13.createWriteStream)(tarPath);
126398
+ const tarPath = (0, import_node_path16.join)((0, import_node_os11.tmpdir)(), `argent-upload-${id}.tar.gz`);
126399
+ const ws = (0, import_node_fs14.createWriteStream)(tarPath);
126303
126400
  let received2 = 0;
126304
126401
  let released = false;
126305
126402
  const releaseInFlight = () => {
@@ -126310,7 +126407,7 @@ function createHttpApp(registry2, options) {
126310
126407
  const abort = (status, message) => {
126311
126408
  releaseInFlight();
126312
126409
  ws.destroy();
126313
- (0, import_promises13.rm)(tarPath, { force: true }).catch(() => {
126410
+ (0, import_promises14.rm)(tarPath, { force: true }).catch(() => {
126314
126411
  });
126315
126412
  if (!res.headersSent) res.status(status).json({ error: message });
126316
126413
  };
@@ -126337,7 +126434,7 @@ function createHttpApp(registry2, options) {
126337
126434
  if (req.readableEnded) return;
126338
126435
  releaseInFlight();
126339
126436
  ws.destroy();
126340
- (0, import_promises13.rm)(tarPath, { force: true }).catch(() => {
126437
+ (0, import_promises14.rm)(tarPath, { force: true }).catch(() => {
126341
126438
  });
126342
126439
  });
126343
126440
  ws.on("finish", () => {
@@ -126753,7 +126850,7 @@ function createHttpApp(registry2, options) {
126753
126850
  dispose: () => {
126754
126851
  idleTimer.dispose();
126755
126852
  clearInterval(uploadSweeper);
126756
- for (const entry of uploads.values()) (0, import_promises13.rm)(entry.tarPath, { force: true }).catch(() => {
126853
+ for (const entry of uploads.values()) (0, import_promises14.rm)(entry.tarPath, { force: true }).catch(() => {
126757
126854
  });
126758
126855
  uploads.clear();
126759
126856
  },
@@ -126785,15 +126882,15 @@ function createHttpApp(registry2, options) {
126785
126882
 
126786
126883
  // ../tool-server/src/event-log.ts
126787
126884
  var import_bunyan = __toESM(require_bunyan());
126788
- var import_node_fs14 = require("node:fs");
126789
- var import_node_path16 = require("node:path");
126885
+ var import_node_fs15 = require("node:fs");
126886
+ var import_node_path17 = require("node:path");
126790
126887
  init_src2();
126791
126888
  function createToolServerEventLog({
126792
126889
  filePath
126793
126890
  }) {
126794
- (0, import_node_fs14.mkdirSync)((0, import_node_path16.dirname)(filePath), { recursive: true });
126795
- (0, import_node_fs14.writeFileSync)(filePath, "");
126796
- const fileStream = (0, import_node_fs14.createWriteStream)(filePath, { flags: "a" });
126891
+ (0, import_node_fs15.mkdirSync)((0, import_node_path17.dirname)(filePath), { recursive: true });
126892
+ (0, import_node_fs15.writeFileSync)(filePath, "");
126893
+ const fileStream = (0, import_node_fs15.createWriteStream)(filePath, { flags: "a" });
126797
126894
  let disposed = false;
126798
126895
  let disposePromise = null;
126799
126896
  let streamError = null;
@@ -130473,11 +130570,11 @@ An Apple system app is rejected outright (terminal: never retry it).`,
130473
130570
  init_src2();
130474
130571
 
130475
130572
  // ../tool-server/src/utils/debugger/discovery.ts
130476
- var import_node_fs15 = require("node:fs");
130573
+ var import_node_fs16 = require("node:fs");
130477
130574
  init_src2();
130478
130575
  var DECOY_VM = "don't use";
130479
130576
  function decodeProjectRoot(raw) {
130480
- if (!raw.includes("%") || (0, import_node_fs15.existsSync)(raw)) return raw;
130577
+ if (!raw.includes("%") || (0, import_node_fs16.existsSync)(raw)) return raw;
130481
130578
  try {
130482
130579
  return decodeURIComponent(raw);
130483
130580
  } catch {
@@ -130722,10 +130819,10 @@ init_external_devices();
130722
130819
 
130723
130820
  // ../tool-server/src/utils/debugger/runtime-device.ts
130724
130821
  var import_node_crypto17 = require("node:crypto");
130725
- var import_node_child_process33 = require("node:child_process");
130726
- var import_node_util24 = require("node:util");
130822
+ var import_node_child_process34 = require("node:child_process");
130823
+ var import_node_util25 = require("node:util");
130727
130824
  init_adb();
130728
- var execFileAsync23 = (0, import_node_util24.promisify)(import_node_child_process33.execFile);
130825
+ var execFileAsync24 = (0, import_node_util25.promisify)(import_node_child_process34.execFile);
130729
130826
  var LOG_READ_TIMEOUT_MS = 5e3;
130730
130827
  var RETRY_DELAY_MS = 300;
130731
130828
  var OTHER_TRANSPORTS_GRACE_MS = 500;
@@ -130862,7 +130959,7 @@ async function simulatorLogHolds(udid, marker) {
130862
130959
  "--predicate",
130863
130960
  `eventMessage CONTAINS ${JSON.stringify(marker)} AND process != "log"`
130864
130961
  ]);
130865
- const { stdout } = await execFileAsync23("xcrun", args, {
130962
+ const { stdout } = await execFileAsync24("xcrun", args, {
130866
130963
  timeout: LOG_READ_TIMEOUT_MS,
130867
130964
  killSignal: SIMCTL_KILL_SIGNAL,
130868
130965
  encoding: "utf-8"
@@ -131507,7 +131604,7 @@ init_src2();
131507
131604
 
131508
131605
  // ../tool-server/src/utils/debugger/scripts/network-interceptor.ts
131509
131606
  var import_node_crypto18 = require("node:crypto");
131510
- var import_node_os11 = require("node:os");
131607
+ var import_node_os12 = require("node:os");
131511
131608
  init_src3();
131512
131609
  var BINARY_BODY_TYPES = /^(image\/(?!svg)|audio\/|video\/|font\/|application\/(octet-stream|pdf|zip|gzip|wasm|x-protobuf)$)/;
131513
131610
  var NETWORK_INTERCEPTOR_SCRIPT = `(function() {
@@ -132588,7 +132685,7 @@ var NETWORK_CAPTURE_MARK_SCRIPT = `(function() {
132588
132685
  })()`;
132589
132686
  var HOLDER = JSON.stringify((0, import_node_crypto18.randomUUID)());
132590
132687
  function holderRecord(capturing2) {
132591
- return JSON.stringify({ capturing: capturing2, pid: process.pid, host: (0, import_node_os11.hostname)() });
132688
+ return JSON.stringify({ capturing: capturing2, pid: process.pid, host: (0, import_node_os12.hostname)() });
132592
132689
  }
132593
132690
  function makeNetworkCaptureControlScript(paused) {
132594
132691
  return `(function() {
@@ -132635,7 +132732,7 @@ function exitedHolders(answer) {
132635
132732
  }
132636
132733
  return Object.keys(holders).filter((key2) => {
132637
132734
  const { pid, host } = holders[key2];
132638
- return host === (0, import_node_os11.hostname)() && typeof pid === "number" && !isProcessAlive(pid);
132735
+ return host === (0, import_node_os12.hostname)() && typeof pid === "number" && !isProcessAlive(pid);
132639
132736
  });
132640
132737
  }
132641
132738
  function makeNetworkLogReadScript(start2, limit, metroPort2) {
@@ -133847,25 +133944,25 @@ function clearLostProfilerRun(port, deviceId) {
133847
133944
  }
133848
133945
 
133849
133946
  // ../tool-server/src/tools/devices/boot-device.ts
133850
- var import_node_child_process37 = require("node:child_process");
133851
- var import_node_fs19 = require("node:fs");
133852
- var import_promises15 = require("node:fs/promises");
133947
+ var import_node_child_process38 = require("node:child_process");
133948
+ var import_node_fs20 = require("node:fs");
133949
+ var import_promises16 = require("node:fs/promises");
133853
133950
  var import_node_net4 = require("node:net");
133854
- var import_node_os13 = require("node:os");
133855
- var import_node_path20 = require("node:path");
133856
- var import_node_util27 = require("node:util");
133951
+ var import_node_os14 = require("node:os");
133952
+ var import_node_path21 = require("node:path");
133953
+ var import_node_util28 = require("node:util");
133857
133954
  init_zod();
133858
133955
  init_src();
133859
133956
  init_src2();
133860
133957
  init_adb();
133861
133958
 
133862
133959
  // ../tool-server/src/utils/android-read-only-boots.ts
133863
- var import_node_fs16 = __toESM(require("node:fs"));
133864
- var import_node_path17 = __toESM(require("node:path"));
133960
+ var import_node_fs17 = __toESM(require("node:fs"));
133961
+ var import_node_path18 = __toESM(require("node:path"));
133865
133962
  init_src();
133866
133963
  var ownRecords = /* @__PURE__ */ new Map();
133867
133964
  function recordsFilePath() {
133868
- return process.env.ARGENT_ANDROID_READ_ONLY_BOOTS_FILE ?? import_node_path17.default.join(argentHomeDir(), "android-read-only-boots.json");
133965
+ return process.env.ARGENT_ANDROID_READ_ONLY_BOOTS_FILE ?? import_node_path18.default.join(argentHomeDir(), "android-read-only-boots.json");
133869
133966
  }
133870
133967
  function isRecord5(value) {
133871
133968
  const v = value;
@@ -133873,7 +133970,7 @@ function isRecord5(value) {
133873
133970
  }
133874
133971
  function loadPersisted() {
133875
133972
  try {
133876
- const raw = JSON.parse(import_node_fs16.default.readFileSync(recordsFilePath(), "utf8"));
133973
+ const raw = JSON.parse(import_node_fs17.default.readFileSync(recordsFilePath(), "utf8"));
133877
133974
  if (typeof raw !== "object" || raw === null) return /* @__PURE__ */ new Map();
133878
133975
  return new Map(
133879
133976
  Object.entries(raw).filter((e) => isRecord5(e[1]))
@@ -133887,8 +133984,8 @@ function persist(mutate) {
133887
133984
  const file2 = recordsFilePath();
133888
133985
  const records = loadPersisted();
133889
133986
  mutate(records);
133890
- import_node_fs16.default.mkdirSync(import_node_path17.default.dirname(file2), { recursive: true });
133891
- import_node_fs16.default.writeFileSync(file2, JSON.stringify(Object.fromEntries(records)));
133987
+ import_node_fs17.default.mkdirSync(import_node_path18.default.dirname(file2), { recursive: true });
133988
+ import_node_fs17.default.writeFileSync(file2, JSON.stringify(Object.fromEntries(records)));
133892
133989
  } catch {
133893
133990
  }
133894
133991
  }
@@ -133916,11 +134013,11 @@ function readOnlyBootEntries() {
133916
134013
  }
133917
134014
 
133918
134015
  // ../tool-server/src/utils/emulator-process.ts
133919
- var import_node_child_process34 = require("node:child_process");
133920
- var import_node_fs17 = require("node:fs");
133921
- var import_promises14 = require("node:fs/promises");
133922
- var import_node_util25 = require("node:util");
133923
- var execFileAsync24 = (0, import_node_util25.promisify)(import_node_child_process34.execFile);
134016
+ var import_node_child_process35 = require("node:child_process");
134017
+ var import_node_fs18 = require("node:fs");
134018
+ var import_promises15 = require("node:fs/promises");
134019
+ var import_node_util26 = require("node:util");
134020
+ var execFileAsync25 = (0, import_node_util26.promisify)(import_node_child_process35.execFile);
133924
134021
  var EMULATOR_PROCESS_RE = /(?:^|\/)(?:qemu-system-[\w-]+|emulator|emulator64-[\w-]+)\s/;
133925
134022
  function escapeRegExp(value) {
133926
134023
  return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
@@ -133951,7 +134048,7 @@ async function listEmulatorProcessesForAvd(avdName) {
133951
134048
  async function readEmulatorProcessesForAvd(avdName) {
133952
134049
  if (process.platform === "win32") return null;
133953
134050
  try {
133954
- const { stdout } = await execFileAsync24(PS_BIN, [...PS_ARGS_WITH_PID], {
134051
+ const { stdout } = await execFileAsync25(PS_BIN, [...PS_ARGS_WITH_PID], {
133955
134052
  timeout: 5e3,
133956
134053
  maxBuffer: 16 * 1024 * 1024
133957
134054
  });
@@ -133964,14 +134061,14 @@ async function readEmulatorProcessesForAvd(avdName) {
133964
134061
  return null;
133965
134062
  }
133966
134063
  }
133967
- var LSOF_BIN = ["/usr/sbin/lsof", "/usr/bin/lsof"].find((p) => (0, import_node_fs17.existsSync)(p)) ?? "lsof";
134064
+ var LSOF_BIN = ["/usr/sbin/lsof", "/usr/bin/lsof"].find((p) => (0, import_node_fs18.existsSync)(p)) ?? "lsof";
133968
134065
  async function consoleOwnership(serial, ownPid) {
133969
134066
  const port = serial.match(/^emulator-(\d+)$/)?.[1];
133970
134067
  if (port === void 0 || process.platform === "win32") return "unavailable";
133971
134068
  let listener;
133972
134069
  let parentOf = null;
133973
134070
  try {
133974
- const { stdout } = await execFileAsync24(
134071
+ const { stdout } = await execFileAsync25(
133975
134072
  LSOF_BIN,
133976
134073
  ["-nP", `-iTCP:${port}`, "-sTCP:LISTEN", "-Fp"],
133977
134074
  { timeout: 3e3 }
@@ -134020,7 +134117,7 @@ async function procConsoleListener(port) {
134020
134117
  let read = false;
134021
134118
  for (const table of ["/proc/net/tcp", "/proc/net/tcp6"]) {
134022
134119
  try {
134023
- for (const i of parseProcNetTcpListeners(await (0, import_promises14.readFile)(table, "utf8"), port)) inodes.add(i);
134120
+ for (const i of parseProcNetTcpListeners(await (0, import_promises15.readFile)(table, "utf8"), port)) inodes.add(i);
134024
134121
  read = true;
134025
134122
  } catch {
134026
134123
  }
@@ -134030,19 +134127,19 @@ async function procConsoleListener(port) {
134030
134127
  const targets = new Set([...inodes].map((i) => `socket:[${i}]`));
134031
134128
  let pids;
134032
134129
  try {
134033
- pids = (await (0, import_promises14.readdir)("/proc")).filter((d) => /^\d+$/.test(d));
134130
+ pids = (await (0, import_promises15.readdir)("/proc")).filter((d) => /^\d+$/.test(d));
134034
134131
  } catch {
134035
134132
  return null;
134036
134133
  }
134037
134134
  for (const pid of pids) {
134038
134135
  let fds;
134039
134136
  try {
134040
- fds = await (0, import_promises14.readdir)(`/proc/${pid}/fd`);
134137
+ fds = await (0, import_promises15.readdir)(`/proc/${pid}/fd`);
134041
134138
  } catch {
134042
134139
  continue;
134043
134140
  }
134044
134141
  for (const fd of fds) {
134045
- const link = await (0, import_promises14.readlink)(`/proc/${pid}/fd/${fd}`).catch(() => "");
134142
+ const link = await (0, import_promises15.readlink)(`/proc/${pid}/fd/${fd}`).catch(() => "");
134046
134143
  if (targets.has(link)) return parseInt(pid, 10);
134047
134144
  }
134048
134145
  }
@@ -134050,7 +134147,7 @@ async function procConsoleListener(port) {
134050
134147
  }
134051
134148
  async function procParentPid(pid) {
134052
134149
  try {
134053
- const stat11 = await (0, import_promises14.readFile)(`/proc/${pid}/stat`, "utf8");
134150
+ const stat11 = await (0, import_promises15.readFile)(`/proc/${pid}/stat`, "utf8");
134054
134151
  const ppid = stat11.slice(stat11.lastIndexOf(")") + 2).split(" ")[1];
134055
134152
  return ppid === void 0 ? null : parseInt(ppid, 10);
134056
134153
  } catch {
@@ -134076,7 +134173,7 @@ function isDescendantOf(pid, ancestor, parents) {
134076
134173
  }
134077
134174
  async function readParentPids() {
134078
134175
  try {
134079
- const { stdout } = await execFileAsync24(PS_BIN, ["-A", "-o", "pid=,ppid="], {
134176
+ const { stdout } = await execFileAsync25(PS_BIN, ["-A", "-o", "pid=,ppid="], {
134080
134177
  timeout: 5e3,
134081
134178
  maxBuffer: 16 * 1024 * 1024
134082
134179
  });
@@ -134088,8 +134185,8 @@ async function readParentPids() {
134088
134185
 
134089
134186
  // ../tool-server/src/utils/linux-preflight.ts
134090
134187
  var fs48 = __toESM(require("node:fs"));
134091
- var import_node_os12 = require("node:os");
134092
- var import_node_path18 = require("node:path");
134188
+ var import_node_os13 = require("node:os");
134189
+ var import_node_path19 = require("node:path");
134093
134190
  var import_ini2 = __toESM(require_ini());
134094
134191
  function linuxBootDiagnostics(avdName) {
134095
134192
  if (process.platform !== "linux") return null;
@@ -134117,7 +134214,7 @@ function checkKvm() {
134117
134214
  var MIN_RAM_MB = 4096;
134118
134215
  var MIN_HEAP_MB = 512;
134119
134216
  function checkAvdSizing(avdName) {
134120
- const configPath = (0, import_node_path18.join)((0, import_node_os12.homedir)(), ".android", "avd", `${avdName}.avd`, "config.ini");
134217
+ const configPath = (0, import_node_path19.join)((0, import_node_os13.homedir)(), ".android", "avd", `${avdName}.avd`, "config.ini");
134121
134218
  let content;
134122
134219
  try {
134123
134220
  content = fs48.readFileSync(configPath, "utf8");
@@ -134151,22 +134248,22 @@ function readMb(config2, key2) {
134151
134248
  }
134152
134249
 
134153
134250
  // ../tool-server/src/utils/simulator-app-launch.ts
134154
- var import_node_child_process35 = require("node:child_process");
134155
- var import_node_fs18 = __toESM(require("node:fs"));
134156
- var import_node_path19 = __toESM(require("node:path"));
134157
- var import_node_util26 = require("node:util");
134251
+ var import_node_child_process36 = require("node:child_process");
134252
+ var import_node_fs19 = __toESM(require("node:fs"));
134253
+ var import_node_path20 = __toESM(require("node:path"));
134254
+ var import_node_util27 = require("node:util");
134158
134255
  init_src();
134159
- var execFileAsync25 = (0, import_node_util26.promisify)(import_node_child_process35.execFile);
134256
+ var execFileAsync26 = (0, import_node_util27.promisify)(import_node_child_process36.execFile);
134160
134257
  var CORE_SIMULATOR_INFO_PLIST = "/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/Resources/Info.plist";
134161
134258
  var LAUNCH_WATCH_MS = 1e4;
134162
134259
  var LAUNCH_POLL_MS = 250;
134163
134260
  var launchLocks = /* @__PURE__ */ new Map();
134164
134261
  function verdictFilePath() {
134165
- return import_node_path19.default.join(argentHomeDir(), "simulator-app-launch.json");
134262
+ return import_node_path20.default.join(argentHomeDir(), "simulator-app-launch.json");
134166
134263
  }
134167
134264
  function loadVerdicts() {
134168
134265
  try {
134169
- const parsed2 = JSON.parse(import_node_fs18.default.readFileSync(verdictFilePath(), "utf8"));
134266
+ const parsed2 = JSON.parse(import_node_fs19.default.readFileSync(verdictFilePath(), "utf8"));
134170
134267
  return parsed2 && typeof parsed2 === "object" ? parsed2 : {};
134171
134268
  } catch {
134172
134269
  return {};
@@ -134174,18 +134271,18 @@ function loadVerdicts() {
134174
134271
  }
134175
134272
  function persistVerdict(key2, verdict) {
134176
134273
  const filePath = verdictFilePath();
134177
- import_node_fs18.default.mkdirSync(import_node_path19.default.dirname(filePath), { recursive: true });
134274
+ import_node_fs19.default.mkdirSync(import_node_path20.default.dirname(filePath), { recursive: true });
134178
134275
  const tmpPath = `${filePath}.${process.pid}.tmp`;
134179
134276
  try {
134180
- import_node_fs18.default.writeFileSync(tmpPath, JSON.stringify({ ...loadVerdicts(), [key2]: verdict }, null, 2));
134181
- import_node_fs18.default.renameSync(tmpPath, filePath);
134277
+ import_node_fs19.default.writeFileSync(tmpPath, JSON.stringify({ ...loadVerdicts(), [key2]: verdict }, null, 2));
134278
+ import_node_fs19.default.renameSync(tmpPath, filePath);
134182
134279
  } catch (err) {
134183
- import_node_fs18.default.rmSync(tmpPath, { force: true });
134280
+ import_node_fs19.default.rmSync(tmpPath, { force: true });
134184
134281
  throw err;
134185
134282
  }
134186
134283
  }
134187
134284
  async function bundleVersion(infoPlist) {
134188
- const { stdout } = await execFileAsync25(
134285
+ const { stdout } = await execFileAsync26(
134189
134286
  "plutil",
134190
134287
  ["-extract", "CFBundleVersion", "raw", "-o", "-", infoPlist],
134191
134288
  { timeout: 5e3 }
@@ -134194,14 +134291,14 @@ async function bundleVersion(infoPlist) {
134194
134291
  }
134195
134292
  async function launchKey(simulatorApp) {
134196
134293
  const [appBuild, coreSimulatorBuild] = await Promise.all([
134197
- bundleVersion(import_node_path19.default.join(simulatorApp, "Contents", "Info.plist")),
134294
+ bundleVersion(import_node_path20.default.join(simulatorApp, "Contents", "Info.plist")),
134198
134295
  bundleVersion(CORE_SIMULATOR_INFO_PLIST)
134199
134296
  ]);
134200
134297
  return `${simulatorApp} ${appBuild} / CoreSimulator ${coreSimulatorBuild}`;
134201
134298
  }
134202
134299
  var comparablePath = (p) => p.normalize("NFC").toLowerCase();
134203
134300
  async function runningExecutables() {
134204
- const { stdout } = await execFileAsync25(PS_BIN, ["-xo", "comm="], {
134301
+ const { stdout } = await execFileAsync26(PS_BIN, ["-xo", "comm="], {
134205
134302
  timeout: 5e3,
134206
134303
  env: { ...process.env, LC_ALL: "en_US.UTF-8" }
134207
134304
  });
@@ -134225,7 +134322,7 @@ function launchSimulatorApp(simulatorApp, launch) {
134225
134322
  }
134226
134323
  const verdict = loadVerdicts()[key2];
134227
134324
  if (verdict === "crashes") return false;
134228
- const executable = import_node_path19.default.join(simulatorApp, "Contents", "MacOS", "Simulator");
134325
+ const executable = import_node_path20.default.join(simulatorApp, "Contents", "MacOS", "Simulator");
134229
134326
  const watch = verdict !== "runs" && !await runningExecutables().then((running) => running.some(isSimulatorApp)).catch(() => true);
134230
134327
  await launch();
134231
134328
  if (!watch) return true;
@@ -134266,7 +134363,7 @@ init_capability();
134266
134363
  init_harmony_flag();
134267
134364
 
134268
134365
  // ../tool-server/src/tools/devices/boot-electron.ts
134269
- var import_node_child_process36 = require("node:child_process");
134366
+ var import_node_child_process37 = require("node:child_process");
134270
134367
  var fs50 = __toESM(require("node:fs"));
134271
134368
  var path44 = __toESM(require("node:path"));
134272
134369
  init_src2();
@@ -134462,7 +134559,7 @@ async function bootElectronApp(options) {
134462
134559
  ];
134463
134560
  let child;
134464
134561
  try {
134465
- child = (0, import_node_child_process36.spawn)(launcher.command, args, {
134562
+ child = (0, import_node_child_process37.spawn)(launcher.command, args, {
134466
134563
  detached: true,
134467
134564
  // stdout is discarded, not piped: nothing reads it, and an unread pipe
134468
134565
  // blocks the child's writes once the OS buffer fills. The
@@ -134625,7 +134722,7 @@ async function bootMacosApp(registry2, opts) {
134625
134722
  }
134626
134723
 
134627
134724
  // ../tool-server/src/tools/devices/boot-device.ts
134628
- var execFileAsync26 = (0, import_node_util27.promisify)(import_node_child_process37.execFile);
134725
+ var execFileAsync27 = (0, import_node_util28.promisify)(import_node_child_process38.execFile);
134629
134726
  function bootTarget(params) {
134630
134727
  return params.udid ?? params.avdName ?? params.vvdImage ?? params.harmonyInstance ?? params.electronAppPath ?? params.macosAppPath ?? "device";
134631
134728
  }
@@ -134867,7 +134964,7 @@ async function pickOwnSerial(avdName, newSerials, ownPid) {
134867
134964
  }
134868
134965
  async function bootSimctl(prefix, [sub, udid, ...rest], timeoutMs) {
134869
134966
  try {
134870
- await execFileAsync26("xcrun", [...prefix, sub, udid, ...rest], {
134967
+ await execFileAsync27("xcrun", [...prefix, sub, udid, ...rest], {
134871
134968
  timeout: timeoutMs,
134872
134969
  killSignal: SIMCTL_KILL_SIGNAL
134873
134970
  });
@@ -134976,7 +135073,7 @@ async function bootIos(udid, registry2, force, headless, prepareOnly) {
134976
135073
  return buildInitFailedResult(udid, initFailure);
134977
135074
  }
134978
135075
  if (!deviceSet) {
134979
- await execFileAsync26("defaults", [
135076
+ await execFileAsync27("defaults", [
134980
135077
  "write",
134981
135078
  "com.apple.iphonesimulator",
134982
135079
  "CurrentDeviceUDID",
@@ -134992,20 +135089,20 @@ async function bootIos(udid, registry2, force, headless, prepareOnly) {
134992
135089
  }
134993
135090
  async function openSimulatorWindow(udid) {
134994
135091
  const timeout = 5e3;
134995
- const { stdout } = await execFileAsync26("xcode-select", ["-p"], { timeout });
134996
- const developerDir2 = (0, import_node_fs19.realpathSync)(stdout.trim());
134997
- const simulatorApp = (0, import_node_path20.join)(developerDir2, "Applications", "Simulator.app");
134998
- if ((0, import_node_fs19.existsSync)(simulatorApp)) {
135092
+ const { stdout } = await execFileAsync27("xcode-select", ["-p"], { timeout });
135093
+ const developerDir2 = (0, import_node_fs20.realpathSync)(stdout.trim());
135094
+ const simulatorApp = (0, import_node_path21.join)(developerDir2, "Applications", "Simulator.app");
135095
+ if ((0, import_node_fs20.existsSync)(simulatorApp)) {
134999
135096
  const launched = await launchSimulatorApp(
135000
135097
  simulatorApp,
135001
- () => execFileAsync26("open", ["-a", simulatorApp], { timeout })
135098
+ () => execFileAsync27("open", ["-a", simulatorApp], { timeout })
135002
135099
  );
135003
135100
  return launched ? void 0 : `${simulatorApp} exits right after launch on this host, so Argent no longer opens it and the device runs without a window. Delete ${verdictFilePath()} to try opening it again.`;
135004
135101
  }
135005
- const deviceHubApp = (0, import_node_path20.join)(developerDir2, "..", "Applications", "DeviceHub.app");
135006
- if ((0, import_node_fs19.existsSync)(deviceHubApp)) {
135102
+ const deviceHubApp = (0, import_node_path21.join)(developerDir2, "..", "Applications", "DeviceHub.app");
135103
+ if ((0, import_node_fs20.existsSync)(deviceHubApp)) {
135007
135104
  const url2 = `devices://device/open?id=${encodeURIComponent(udid)}`;
135008
- await execFileAsync26("open", ["-a", deviceHubApp, url2], { timeout });
135105
+ await execFileAsync27("open", ["-a", deviceHubApp, url2], { timeout });
135009
135106
  }
135010
135107
  }
135011
135108
  async function bootIosRemote(id, registry2, force) {
@@ -135093,18 +135190,18 @@ async function attemptBoot(params) {
135093
135190
  const portArg = params.emulatorArgs.indexOf("-port");
135094
135191
  const instance = portArg >= 0 ? `${params.avdName}-${params.emulatorArgs[portArg + 1]}` : params.avdName;
135095
135192
  const safeName = instance.replace(/[^\w.-]/g, "_");
135096
- const logPath = (0, import_node_path20.join)((0, import_node_os13.tmpdir)(), `argent-emulator-${safeName}.log`);
135097
- emulatorLogFd = (0, import_node_fs19.openSync)(logPath, "w");
135193
+ const logPath = (0, import_node_path21.join)((0, import_node_os14.tmpdir)(), `argent-emulator-${safeName}.log`);
135194
+ emulatorLogFd = (0, import_node_fs20.openSync)(logPath, "w");
135098
135195
  stdio = ["ignore", emulatorLogFd, emulatorLogFd];
135099
135196
  }
135100
- const child = (0, import_node_child_process37.spawn)(params.emulatorBinary, params.emulatorArgs, {
135197
+ const child = (0, import_node_child_process38.spawn)(params.emulatorBinary, params.emulatorArgs, {
135101
135198
  detached: true,
135102
135199
  stdio
135103
135200
  });
135104
135201
  child.unref();
135105
135202
  if (emulatorLogFd !== void 0) {
135106
135203
  try {
135107
- (0, import_node_fs19.closeSync)(emulatorLogFd);
135204
+ (0, import_node_fs20.closeSync)(emulatorLogFd);
135108
135205
  } catch {
135109
135206
  }
135110
135207
  }
@@ -135841,11 +135938,11 @@ async function startHarmonyEmulator(instanceName) {
135841
135938
  });
135842
135939
  }
135843
135940
  try {
135844
- for (const entry of (0, import_node_fs19.readdirSync)((0, import_node_os13.tmpdir)())) {
135941
+ for (const entry of (0, import_node_fs20.readdirSync)((0, import_node_os14.tmpdir)())) {
135845
135942
  if (!entry.startsWith("argent-harmony-") || !entry.endsWith(".log")) continue;
135846
135943
  try {
135847
- if (Date.now() - (0, import_node_fs19.statSync)((0, import_node_path20.join)((0, import_node_os13.tmpdir)(), entry)).mtimeMs > HARMONY_LOG_TTL_MS) {
135848
- (0, import_node_fs19.rmSync)((0, import_node_path20.join)((0, import_node_os13.tmpdir)(), entry), { force: true });
135944
+ if (Date.now() - (0, import_node_fs20.statSync)((0, import_node_path21.join)((0, import_node_os14.tmpdir)(), entry)).mtimeMs > HARMONY_LOG_TTL_MS) {
135945
+ (0, import_node_fs20.rmSync)((0, import_node_path21.join)((0, import_node_os14.tmpdir)(), entry), { force: true });
135849
135946
  }
135850
135947
  } catch {
135851
135948
  }
@@ -135853,21 +135950,21 @@ async function startHarmonyEmulator(instanceName) {
135853
135950
  } catch {
135854
135951
  }
135855
135952
  const safeName = instanceName.replace(/[^\w.-]/g, (c) => `%${c.codePointAt(0).toString(16)}`);
135856
- const logPath = (0, import_node_path20.join)((0, import_node_os13.tmpdir)(), `argent-harmony-${safeName}-${process.hrtime.bigint()}.log`);
135953
+ const logPath = (0, import_node_path21.join)((0, import_node_os14.tmpdir)(), `argent-harmony-${safeName}-${process.hrtime.bigint()}.log`);
135857
135954
  let logFd;
135858
135955
  try {
135859
- logFd = (0, import_node_fs19.openSync)(logPath, "w");
135956
+ logFd = (0, import_node_fs20.openSync)(logPath, "w");
135860
135957
  } catch {
135861
135958
  logFd = null;
135862
135959
  }
135863
- const child = (0, import_node_child_process37.spawn)(bin, ["-start", instanceName], {
135960
+ const child = (0, import_node_child_process38.spawn)(bin, ["-start", instanceName], {
135864
135961
  detached: true,
135865
135962
  stdio: logFd === null ? "ignore" : ["ignore", logFd, logFd]
135866
135963
  });
135867
135964
  child.unref();
135868
135965
  if (logFd !== null) {
135869
135966
  try {
135870
- (0, import_node_fs19.closeSync)(logFd);
135967
+ (0, import_node_fs20.closeSync)(logFd);
135871
135968
  } catch {
135872
135969
  }
135873
135970
  }
@@ -135876,7 +135973,7 @@ async function startHarmonyEmulator(instanceName) {
135876
135973
  if (exit) return;
135877
135974
  let output2 = "";
135878
135975
  try {
135879
- output2 = (0, import_node_fs19.readFileSync)(logPath, "utf8");
135976
+ output2 = (0, import_node_fs20.readFileSync)(logPath, "utf8");
135880
135977
  } catch {
135881
135978
  }
135882
135979
  exit = { reason: reason2, output: output2 };
@@ -135960,7 +136057,7 @@ async function waitForHarmonyTarget(before, deadline, checkAlive, expected) {
135960
136057
  }
135961
136058
  }
135962
136059
  async function waitForHarmonyDrivable(connectKey, deadline, checkAlive) {
135963
- const probePath = (0, import_node_path20.join)((0, import_node_os13.tmpdir)(), `argent-harmony-bootprobe-${process.hrtime.bigint()}.json`);
136060
+ const probePath = (0, import_node_path21.join)((0, import_node_os14.tmpdir)(), `argent-harmony-bootprobe-${process.hrtime.bigint()}.json`);
135964
136061
  let inFlight4 = null;
135965
136062
  try {
135966
136063
  for (; ; ) {
@@ -135987,7 +136084,7 @@ async function waitForHarmonyDrivable(connectKey, deadline, checkAlive) {
135987
136084
  await new Promise((r) => setTimeout(r, Math.min(HARMONY_TARGET_POLL_MS, remaining)));
135988
136085
  }
135989
136086
  } finally {
135990
- const remove = () => (0, import_promises15.rm)(probePath, { force: true }).catch(() => {
136087
+ const remove = () => (0, import_promises16.rm)(probePath, { force: true }).catch(() => {
135991
136088
  });
135992
136089
  if (inFlight4) void inFlight4.then(remove);
135993
136090
  else await remove();
@@ -136450,8 +136547,8 @@ function dispatchByPlatform(opts) {
136450
136547
  }
136451
136548
 
136452
136549
  // ../tool-server/src/tools/launch-app/platforms/ios.ts
136453
- var import_node_child_process38 = require("node:child_process");
136454
- var import_node_util28 = require("node:util");
136550
+ var import_node_child_process39 = require("node:child_process");
136551
+ var import_node_util29 = require("node:util");
136455
136552
  init_src2();
136456
136553
  init_external_devices();
136457
136554
 
@@ -136485,7 +136582,7 @@ async function awaitIosAppInFront(registry2, device, bundleId, signal) {
136485
136582
  }
136486
136583
 
136487
136584
  // ../tool-server/src/tools/launch-app/platforms/ios.ts
136488
- var execFileAsync27 = (0, import_node_util28.promisify)(import_node_child_process38.execFile);
136585
+ var execFileAsync28 = (0, import_node_util29.promisify)(import_node_child_process39.execFile);
136489
136586
  function makeIosImpl(registry2) {
136490
136587
  return {
136491
136588
  requires: ["xcrun"],
@@ -136501,7 +136598,7 @@ function makeIosImpl(registry2) {
136501
136598
  }
136502
136599
  if (params.launchArgs?.length) {
136503
136600
  try {
136504
- await execFileAsync27(
136601
+ await execFileAsync28(
136505
136602
  "xcrun",
136506
136603
  await simctlArgsForUdid(params.udid, ["terminate", params.udid, params.bundleId]),
136507
136604
  { timeout: 15e3, killSignal: SIMCTL_KILL_SIGNAL }
@@ -136524,7 +136621,7 @@ function makeIosImpl(registry2) {
136524
136621
  }
136525
136622
  await accessibility;
136526
136623
  try {
136527
- await execFileAsync27(
136624
+ await execFileAsync28(
136528
136625
  "xcrun",
136529
136626
  await simctlArgsForUdid(params.udid, [
136530
136627
  "launch",
@@ -137033,11 +137130,11 @@ init_zod();
137033
137130
  init_device_info();
137034
137131
 
137035
137132
  // ../tool-server/src/tools/restart-app/platforms/ios.ts
137036
- var import_node_child_process39 = require("node:child_process");
137037
- var import_node_util29 = require("node:util");
137133
+ var import_node_child_process40 = require("node:child_process");
137134
+ var import_node_util30 = require("node:util");
137038
137135
  init_src2();
137039
137136
  init_external_devices();
137040
- var execFileAsync28 = (0, import_node_util29.promisify)(import_node_child_process39.execFile);
137137
+ var execFileAsync29 = (0, import_node_util30.promisify)(import_node_child_process40.execFile);
137041
137138
  function makeIosImpl2(registry2) {
137042
137139
  return {
137043
137140
  requires: ["xcrun"],
@@ -137053,7 +137150,7 @@ function makeIosImpl2(registry2) {
137053
137150
  accessibility = enableAppAccessibilityBeforeLaunch(device);
137054
137151
  }
137055
137152
  try {
137056
- await execFileAsync28("xcrun", await simctlArgsForUdid(udid, ["terminate", udid, bundleId]), {
137153
+ await execFileAsync29("xcrun", await simctlArgsForUdid(udid, ["terminate", udid, bundleId]), {
137057
137154
  timeout: 15e3,
137058
137155
  killSignal: SIMCTL_KILL_SIGNAL
137059
137156
  });
@@ -137074,7 +137171,7 @@ function makeIosImpl2(registry2) {
137074
137171
  }
137075
137172
  await accessibility;
137076
137173
  try {
137077
- await execFileAsync28(
137174
+ await execFileAsync29(
137078
137175
  "xcrun",
137079
137176
  await simctlArgsForUdid(udid, ["launch", udid, bundleId, ...params.launchArgs ?? []]),
137080
137177
  { timeout: 3e4, killSignal: SIMCTL_KILL_SIGNAL }
@@ -137321,12 +137418,12 @@ Use when you need a clean in-memory app state without reinstalling. Returns { re
137321
137418
  }
137322
137419
 
137323
137420
  // ../tool-server/src/tools/terminate-app/index.ts
137324
- var import_node_child_process40 = require("node:child_process");
137325
- var import_node_util30 = require("node:util");
137421
+ var import_node_child_process41 = require("node:child_process");
137422
+ var import_node_util31 = require("node:util");
137326
137423
  init_zod();
137327
137424
  init_src2();
137328
137425
  init_adb();
137329
- var execFileAsync29 = (0, import_node_util30.promisify)(import_node_child_process40.execFile);
137426
+ var execFileAsync30 = (0, import_node_util31.promisify)(import_node_child_process41.execFile);
137330
137427
  var capability5 = {
137331
137428
  apple: { simulator: true },
137332
137429
  appleRemote: { simulator: true },
@@ -137360,7 +137457,7 @@ Succeeds when the app is not running or not installed.`,
137360
137457
  requires: ["xcrun"],
137361
137458
  handler: async (_services, { udid, bundleId }) => {
137362
137459
  const args = await simctlArgsForUdid(udid, ["terminate", udid, bundleId]);
137363
- const terminate = execFileAsync29("xcrun", args, {
137460
+ const terminate = execFileAsync30("xcrun", args, {
137364
137461
  timeout: 15e3,
137365
137462
  killSignal: SIMCTL_KILL_SIGNAL
137366
137463
  }).catch((err) => {
@@ -137415,26 +137512,26 @@ Succeeds when the app is not running or not installed.`,
137415
137512
  init_zod();
137416
137513
 
137417
137514
  // ../tool-server/src/tools/reinstall-app/platforms/ios.ts
137418
- var import_node_child_process42 = require("node:child_process");
137419
- var import_node_util32 = require("node:util");
137420
- var import_node_path22 = require("node:path");
137515
+ var import_node_child_process43 = require("node:child_process");
137516
+ var import_node_util33 = require("node:util");
137517
+ var import_node_path23 = require("node:path");
137421
137518
  init_src2();
137422
137519
 
137423
137520
  // ../tool-server/src/tools/reinstall-app/validate-app.ts
137424
- var import_node_child_process41 = require("node:child_process");
137425
- var import_promises17 = require("node:fs/promises");
137426
- var import_node_path21 = require("node:path");
137427
- var import_node_util31 = require("node:util");
137521
+ var import_node_child_process42 = require("node:child_process");
137522
+ var import_promises18 = require("node:fs/promises");
137523
+ var import_node_path22 = require("node:path");
137524
+ var import_node_util32 = require("node:util");
137428
137525
  init_capability();
137429
137526
 
137430
137527
  // ../tool-server/src/utils/apk-package.ts
137431
- var import_promises16 = require("node:fs/promises");
137528
+ var import_promises17 = require("node:fs/promises");
137432
137529
  var import_node_zlib2 = require("node:zlib");
137433
137530
  async function readApkPackageName(apkPath) {
137434
137531
  return parseManifestPackage(await readZipEntry(apkPath, "AndroidManifest.xml"));
137435
137532
  }
137436
137533
  async function readZipEntry(zipPath, entryName) {
137437
- const file2 = await (0, import_promises16.open)(zipPath, "r");
137534
+ const file2 = await (0, import_promises17.open)(zipPath, "r");
137438
137535
  try {
137439
137536
  const read = async (position, length) => {
137440
137537
  const buf = Buffer.alloc(length);
@@ -137523,9 +137620,9 @@ function readStringPool(xml, chunk) {
137523
137620
  }
137524
137621
 
137525
137622
  // ../tool-server/src/tools/reinstall-app/validate-app.ts
137526
- var execFileAsync30 = (0, import_node_util31.promisify)(import_node_child_process41.execFile);
137623
+ var execFileAsync31 = (0, import_node_util32.promisify)(import_node_child_process42.execFile);
137527
137624
  async function requirePath(absolute, kind, what) {
137528
- const info = await (0, import_promises17.stat)(absolute).catch(() => null);
137625
+ const info = await (0, import_promises18.stat)(absolute).catch(() => null);
137529
137626
  if (!info) {
137530
137627
  throw new InvalidToolInputError(`appPath ${absolute} does not exist. Nothing was uninstalled.`);
137531
137628
  }
@@ -137540,14 +137637,14 @@ function mismatch(bundleId, absolute, actual) {
137540
137637
  }
137541
137638
  async function assertIosAppBundle(absolute, bundleId, { readBundleId = true } = {}) {
137542
137639
  await requirePath(absolute, "directory", "an .app bundle directory");
137543
- const infoPlist = (0, import_node_path21.join)(absolute, "Info.plist");
137544
- if (!(await (0, import_promises17.stat)(infoPlist).catch(() => null))?.isFile()) {
137640
+ const infoPlist = (0, import_node_path22.join)(absolute, "Info.plist");
137641
+ if (!(await (0, import_promises18.stat)(infoPlist).catch(() => null))?.isFile()) {
137545
137642
  throw new InvalidToolInputError(
137546
137643
  `appPath ${absolute} has no Info.plist, so it is not an iOS .app bundle. Nothing was uninstalled.`
137547
137644
  );
137548
137645
  }
137549
137646
  if (!readBundleId) return;
137550
- const actual = await execFileAsync30("plutil", [
137647
+ const actual = await execFileAsync31("plutil", [
137551
137648
  "-extract",
137552
137649
  "CFBundleIdentifier",
137553
137650
  "raw",
@@ -137600,16 +137697,16 @@ async function assertHap(absolute, bundleName) {
137600
137697
  }
137601
137698
 
137602
137699
  // ../tool-server/src/tools/reinstall-app/platforms/ios.ts
137603
- var execFileAsync31 = (0, import_node_util32.promisify)(import_node_child_process42.execFile);
137700
+ var execFileAsync32 = (0, import_node_util33.promisify)(import_node_child_process43.execFile);
137604
137701
  var iosImpl = {
137605
137702
  requires: ["xcrun"],
137606
137703
  handler: async (_services, params) => {
137607
137704
  const { udid, bundleId, appPath } = params;
137608
- const absolute = (0, import_node_path22.resolve)(appPath);
137705
+ const absolute = (0, import_node_path23.resolve)(appPath);
137609
137706
  await assertIosAppBundle(absolute, bundleId);
137610
137707
  const { nativeId, prefix } = await simctlTargetForUdid(udid);
137611
137708
  try {
137612
- await execFileAsync31("xcrun", [...prefix, "uninstall", nativeId, bundleId], {
137709
+ await execFileAsync32("xcrun", [...prefix, "uninstall", nativeId, bundleId], {
137613
137710
  timeout: 3e4,
137614
137711
  killSignal: SIMCTL_KILL_SIGNAL
137615
137712
  });
@@ -137629,7 +137726,7 @@ var iosImpl = {
137629
137726
  }
137630
137727
  }
137631
137728
  try {
137632
- await execFileAsync31("xcrun", [...prefix, "install", nativeId, absolute], {
137729
+ await execFileAsync32("xcrun", [...prefix, "install", nativeId, absolute], {
137633
137730
  timeout: 18e4,
137634
137731
  killSignal: SIMCTL_KILL_SIGNAL
137635
137732
  });
@@ -137652,7 +137749,7 @@ var iosImpl = {
137652
137749
  };
137653
137750
 
137654
137751
  // ../tool-server/src/tools/reinstall-app/platforms/android.ts
137655
- var import_node_path23 = require("node:path");
137752
+ var import_node_path24 = require("node:path");
137656
137753
  init_src2();
137657
137754
  init_adb();
137658
137755
  async function isInstalled(udid, bundleId) {
@@ -137665,7 +137762,7 @@ var androidImpl3 = {
137665
137762
  requires: ["adb"],
137666
137763
  handler: async (_services, params) => {
137667
137764
  const { udid, bundleId, appPath } = params;
137668
- const absolute = (0, import_node_path23.resolve)(appPath);
137765
+ const absolute = (0, import_node_path24.resolve)(appPath);
137669
137766
  await assertApk(absolute, bundleId);
137670
137767
  const uninstall = await runAdb(["-s", udid, "uninstall", bundleId], {
137671
137768
  timeoutMs: 3e4
@@ -137717,7 +137814,7 @@ ${stderr}`;
137717
137814
  };
137718
137815
 
137719
137816
  // ../tool-server/src/tools/reinstall-app/platforms/ios-device.ts
137720
- var import_node_path24 = require("node:path");
137817
+ var import_node_path25 = require("node:path");
137721
137818
  init_capability();
137722
137819
  var iosDeviceImpl3 = {
137723
137820
  requires: ["xcrun"],
@@ -137727,7 +137824,7 @@ var iosDeviceImpl3 = {
137727
137824
  `${params.bundleId} is system UI: it is always running and cannot be reinstalled. Use launch-app to put it under automation.`
137728
137825
  );
137729
137826
  }
137730
- const absolute = (0, import_node_path24.resolve)(params.appPath);
137827
+ const absolute = (0, import_node_path25.resolve)(params.appPath);
137731
137828
  await assertIosAppBundle(absolute, params.bundleId);
137732
137829
  await ensureDeviceReady(params.udid);
137733
137830
  await uninstallApp(params.udid, params.bundleId);
@@ -137741,12 +137838,12 @@ var iosDeviceImpl3 = {
137741
137838
  };
137742
137839
 
137743
137840
  // ../tool-server/src/tools/reinstall-app/platforms/ios-remote.ts
137744
- var import_node_path25 = require("node:path");
137841
+ var import_node_path26 = require("node:path");
137745
137842
  var iosRemoteImpl3 = {
137746
137843
  requires: ["sim-remote"],
137747
137844
  handler: async (_services, params) => {
137748
137845
  const { udid, bundleId, appPath } = params;
137749
- const absolute = (0, import_node_path25.resolve)(appPath);
137846
+ const absolute = (0, import_node_path26.resolve)(appPath);
137750
137847
  await assertIosAppBundle(absolute, bundleId, { readBundleId: false });
137751
137848
  try {
137752
137849
  await simctlUninstall(udid, bundleId);
@@ -137758,13 +137855,13 @@ var iosRemoteImpl3 = {
137758
137855
  };
137759
137856
 
137760
137857
  // ../tool-server/src/tools/reinstall-app/platforms/vega.ts
137761
- var import_node_path26 = require("node:path");
137858
+ var import_node_path27 = require("node:path");
137762
137859
  init_src2();
137763
137860
  var vegaImpl3 = {
137764
137861
  requires: ["vega"],
137765
137862
  handler: async (_services, params) => {
137766
137863
  const { udid, bundleId, appPath } = params;
137767
- const absolute = (0, import_node_path26.resolve)(appPath);
137864
+ const absolute = (0, import_node_path27.resolve)(appPath);
137768
137865
  await assertVpkg(absolute);
137769
137866
  await vegaDevice(udid, ["uninstall-app", "-a", bundleId], { timeoutMs: 6e4 }).catch(
137770
137867
  () => {
@@ -137791,7 +137888,7 @@ ${stderr}`;
137791
137888
  };
137792
137889
 
137793
137890
  // ../tool-server/src/tools/reinstall-app/platforms/harmony.ts
137794
- var import_node_path27 = require("node:path");
137891
+ var import_node_path28 = require("node:path");
137795
137892
  init_src2();
137796
137893
  init_device_info();
137797
137894
  var INSTALLED = "msg:install bundle successfully.";
@@ -137802,7 +137899,7 @@ var harmonyImpl3 = {
137802
137899
  handler: async (_services, params, device) => {
137803
137900
  const { bundleId, appPath } = params;
137804
137901
  const connectKey = harmonyConnectKey(device.id);
137805
- const absolute = (0, import_node_path27.resolve)(appPath);
137902
+ const absolute = (0, import_node_path28.resolve)(appPath);
137806
137903
  await assertHap(absolute, bundleId);
137807
137904
  const uninstall = await runHdc(["-t", connectKey, "uninstall", bundleId], 6e4);
137808
137905
  if (!uninstall.stdout.includes(UNINSTALLED) && !uninstall.stdout.includes(NOT_INSTALLED)) {
@@ -137897,11 +137994,11 @@ var PERMISSION_NAMES = [
137897
137994
  ];
137898
137995
 
137899
137996
  // ../tool-server/src/tools/settings-permissions/platforms/ios.ts
137900
- var import_node_child_process43 = require("node:child_process");
137901
- var import_node_util33 = require("node:util");
137997
+ var import_node_child_process44 = require("node:child_process");
137998
+ var import_node_util34 = require("node:util");
137902
137999
  init_src2();
137903
138000
  init_capability();
137904
- var execFileAsync32 = (0, import_node_util33.promisify)(import_node_child_process43.execFile);
138001
+ var execFileAsync33 = (0, import_node_util34.promisify)(import_node_child_process44.execFile);
137905
138002
  var SIMCTL_ACTION = {
137906
138003
  grant: "grant",
137907
138004
  deny: "revoke",
@@ -137926,7 +138023,7 @@ var NON_TCC_GRANT_NEEDS_INSTALL = /* @__PURE__ */ new Set([
137926
138023
  ]);
137927
138024
  var localBackend = {
137928
138025
  async run(udid, simctlAction, service, bundleId) {
137929
- await execFileAsync32(
138026
+ await execFileAsync33(
137930
138027
  "xcrun",
137931
138028
  await simctlArgsForUdid(udid, ["privacy", udid, simctlAction, service, bundleId]),
137932
138029
  { timeout: 3e4 }
@@ -137934,7 +138031,7 @@ var localBackend = {
137934
138031
  },
137935
138032
  async isInstalled(udid, bundleId) {
137936
138033
  try {
137937
- await execFileAsync32(
138034
+ await execFileAsync33(
137938
138035
  "xcrun",
137939
138036
  await simctlArgsForUdid(udid, ["get_app_container", udid, bundleId]),
137940
138037
  { timeout: 15e3 }
@@ -138210,8 +138307,8 @@ init_zod();
138210
138307
  init_device_info();
138211
138308
 
138212
138309
  // ../tool-server/src/tools/open-url/platforms/ios.ts
138213
- var import_node_child_process44 = require("node:child_process");
138214
- var import_node_util34 = require("node:util");
138310
+ var import_node_child_process45 = require("node:child_process");
138311
+ var import_node_util35 = require("node:util");
138215
138312
  init_src2();
138216
138313
 
138217
138314
  // ../tool-server/src/tools/open-url/deep-link-note.ts
@@ -138221,13 +138318,13 @@ function httpDeepLinkNote(url2) {
138221
138318
  }
138222
138319
 
138223
138320
  // ../tool-server/src/tools/open-url/platforms/ios.ts
138224
- var execFileAsync33 = (0, import_node_util34.promisify)(import_node_child_process44.execFile);
138321
+ var execFileAsync34 = (0, import_node_util35.promisify)(import_node_child_process45.execFile);
138225
138322
  var iosImpl3 = {
138226
138323
  requires: ["xcrun"],
138227
138324
  handler: async (_services, params) => {
138228
138325
  await firstSimulatorPoll();
138229
138326
  try {
138230
- await execFileAsync33(
138327
+ await execFileAsync34(
138231
138328
  "xcrun",
138232
138329
  await simctlArgsForUdid(params.udid, ["openurl", params.udid, params.url]),
138233
138330
  { timeout: 3e4, killSignal: SIMCTL_KILL_SIGNAL }
@@ -138349,16 +138446,16 @@ var chromiumImpl2 = {
138349
138446
  };
138350
138447
 
138351
138448
  // ../tool-server/src/tools/open-url/platforms/macos.ts
138352
- var import_node_child_process45 = require("node:child_process");
138449
+ var import_node_child_process46 = require("node:child_process");
138353
138450
  var path45 = __toESM(require("node:path"));
138354
- var import_node_util35 = require("node:util");
138451
+ var import_node_util36 = require("node:util");
138355
138452
  init_src2();
138356
138453
  init_capability();
138357
- var execFileAsync34 = (0, import_node_util35.promisify)(import_node_child_process45.execFile);
138454
+ var execFileAsync35 = (0, import_node_util36.promisify)(import_node_child_process46.execFile);
138358
138455
  var WEB_URL_NOTE = "The URL went to the app of the device, not to the default browser. The app shows it only if it handles that URL.";
138359
138456
  async function declaredSchemes(appPath) {
138360
138457
  try {
138361
- const { stdout } = await execFileAsync34(
138458
+ const { stdout } = await execFileAsync35(
138362
138459
  "plutil",
138363
138460
  [
138364
138461
  "-extract",
@@ -138404,7 +138501,7 @@ var macosImpl3 = {
138404
138501
  );
138405
138502
  }
138406
138503
  try {
138407
- await execFileAsync34("open", ["-g", "-a", app.appPath, params.url], { timeout: 1e4 });
138504
+ await execFileAsync35("open", ["-g", "-a", app.appPath, params.url], { timeout: 1e4 });
138408
138505
  } catch (err) {
138409
138506
  const stderr = err.stderr?.trim();
138410
138507
  throw macosFailure(
@@ -138487,8 +138584,8 @@ Returns \`{ opened, url, note? }\`. Fails if no handler is registered<flag:harmo
138487
138584
  };
138488
138585
 
138489
138586
  // ../tool-server/src/tools/screenshot/index.ts
138490
- var import_node_child_process46 = require("node:child_process");
138491
- var import_node_util36 = require("node:util");
138587
+ var import_node_child_process47 = require("node:child_process");
138588
+ var import_node_util37 = require("node:util");
138492
138589
  var os12 = __toESM(require("node:os"));
138493
138590
  var path46 = __toESM(require("node:path"));
138494
138591
  init_zod();
@@ -138497,7 +138594,7 @@ init_device_info();
138497
138594
  init_adb();
138498
138595
 
138499
138596
  // ../tool-server/src/utils/device-orientation.ts
138500
- var import_node_fs20 = require("node:fs");
138597
+ var import_node_fs21 = require("node:fs");
138501
138598
  init_adb();
138502
138599
  var SURFACE_ROTATION_TO_NAME = {
138503
138600
  0: "Portrait",
@@ -138542,7 +138639,7 @@ function captureRotationForSurface(rotation) {
138542
138639
  async function readPngSize2(path77) {
138543
138640
  let handle;
138544
138641
  try {
138545
- handle = await import_node_fs20.promises.open(path77, "r");
138642
+ handle = await import_node_fs21.promises.open(path77, "r");
138546
138643
  const buf = Buffer.alloc(24);
138547
138644
  const { bytesRead } = await handle.read(buf, 0, 24, 0);
138548
138645
  if (bytesRead < 24) return null;
@@ -138632,16 +138729,16 @@ function androidDevtoolsRotationPeek(registry2, device) {
138632
138729
  }
138633
138730
 
138634
138731
  // ../tool-server/src/utils/vega-screen.ts
138635
- var import_promises18 = require("node:fs/promises");
138636
- var import_node_os15 = require("node:os");
138637
- var import_node_path29 = require("node:path");
138732
+ var import_promises19 = require("node:fs/promises");
138733
+ var import_node_os16 = require("node:os");
138734
+ var import_node_path30 = require("node:path");
138638
138735
  var import_pngjs3 = __toESM(require_png());
138639
138736
  init_src2();
138640
138737
  init_adb();
138641
138738
 
138642
138739
  // ../tool-server/src/utils/emulator-console.ts
138643
- var import_node_os14 = require("node:os");
138644
- var import_node_path28 = require("node:path");
138740
+ var import_node_os15 = require("node:os");
138741
+ var import_node_path29 = require("node:path");
138645
138742
  init_adb();
138646
138743
  async function runEmuConsole(serial, args) {
138647
138744
  const { stdout } = await runAdb(["-s", serial, "emu", ...args], { timeoutMs: 1e4 });
@@ -138657,7 +138754,7 @@ function describeConsoleReply(stdout) {
138657
138754
  const lines = replyLines(stdout);
138658
138755
  const reply = lines.join("; ") || "empty reply";
138659
138756
  if (!lines.at(-1)?.startsWith("KO: unknown command")) return reply;
138660
- const tokenFile = (0, import_node_path28.join)((0, import_node_os14.homedir)(), ".emulator_console_auth_token");
138757
+ const tokenFile = (0, import_node_path29.join)((0, import_node_os15.homedir)(), ".emulator_console_auth_token");
138661
138758
  const fileKind = process.platform === "win32" ? "a file" : "a regular file, not a symlink,";
138662
138759
  return `${reply} (adb authenticates to the console with ${tokenFile}, which must be ${fileKind} holding the emulator's token)`;
138663
138760
  }
@@ -138672,12 +138769,12 @@ async function captureVegaScreenshotPng(opts = {}) {
138672
138769
  async function captureViaEmulatorConsole(opts) {
138673
138770
  const port = await discoverVegaConsolePort();
138674
138771
  const serial = `emulator-${port}`;
138675
- const outDir = await (0, import_promises18.mkdtemp)((0, import_node_path29.join)((0, import_node_os15.tmpdir)(), "vega-shot-"));
138772
+ const outDir = await (0, import_promises19.mkdtemp)((0, import_node_path30.join)((0, import_node_os16.tmpdir)(), "vega-shot-"));
138676
138773
  try {
138677
138774
  const { stdout } = await runAdb(["-s", serial, "emu", "screenrecord", "screenshot", outDir], {
138678
138775
  timeoutMs: 2e4
138679
138776
  });
138680
- const pngName = (await (0, import_promises18.readdir)(outDir)).find((f) => f.toLowerCase().endsWith(".png"));
138777
+ const pngName = (await (0, import_promises19.readdir)(outDir)).find((f) => f.toLowerCase().endsWith(".png"));
138681
138778
  if (!pngName) {
138682
138779
  throw new FailureError(
138683
138780
  `emulator console wrote no PNG for ${serial}: ${describeConsoleReply(stdout)}`,
@@ -138689,24 +138786,24 @@ async function captureViaEmulatorConsole(opts) {
138689
138786
  }
138690
138787
  );
138691
138788
  }
138692
- const decoded2 = import_pngjs3.PNG.sync.read(await (0, import_promises18.readFile)((0, import_node_path29.join)(outDir, pngName)));
138789
+ const decoded2 = import_pngjs3.PNG.sync.read(await (0, import_promises19.readFile)((0, import_node_path30.join)(outDir, pngName)));
138693
138790
  const scaled = scaleDecodedPng(
138694
138791
  decoded2,
138695
138792
  opts.scale ?? getScreenshotScaleOverride() ?? tvDefaultScale(decoded2.width, decoded2.height)
138696
138793
  );
138697
- const outPath = (0, import_node_path29.join)((0, import_node_os15.tmpdir)(), `vega-screenshot-${process.hrtime.bigint()}.png`);
138698
- await (0, import_promises18.writeFile)(outPath, import_pngjs3.PNG.sync.write(scaled));
138794
+ const outPath = (0, import_node_path30.join)((0, import_node_os16.tmpdir)(), `vega-screenshot-${process.hrtime.bigint()}.png`);
138795
+ await (0, import_promises19.writeFile)(outPath, import_pngjs3.PNG.sync.write(scaled));
138699
138796
  return outPath;
138700
138797
  } finally {
138701
- await (0, import_promises18.rm)(outDir, { recursive: true, force: true }).catch(() => {
138798
+ await (0, import_promises19.rm)(outDir, { recursive: true, force: true }).catch(() => {
138702
138799
  });
138703
138800
  }
138704
138801
  }
138705
138802
 
138706
138803
  // ../tool-server/src/utils/harmony-screen.ts
138707
- var import_promises19 = require("node:fs/promises");
138708
- var import_node_os16 = require("node:os");
138709
- var import_node_path30 = require("node:path");
138804
+ var import_promises20 = require("node:fs/promises");
138805
+ var import_node_os17 = require("node:os");
138806
+ var import_node_path31 = require("node:path");
138710
138807
  var import_pngjs4 = __toESM(require_png());
138711
138808
  init_src2();
138712
138809
  function decodeCapture(raw, connectKey) {
@@ -138727,20 +138824,20 @@ function decodeCapture(raw, connectKey) {
138727
138824
  }
138728
138825
  }
138729
138826
  async function captureHarmonyScreenshotPng(opts) {
138730
- const rawPath = (0, import_node_path30.join)((0, import_node_os16.tmpdir)(), `argent-harmony-raw-${process.hrtime.bigint()}.png`);
138827
+ const rawPath = (0, import_node_path31.join)((0, import_node_os17.tmpdir)(), `argent-harmony-raw-${process.hrtime.bigint()}.png`);
138731
138828
  try {
138732
138829
  await harmonyScreenCap(opts.connectKey, rawPath);
138733
- const decoded2 = decodeCapture(await (0, import_promises19.readFile)(rawPath), opts.connectKey);
138830
+ const decoded2 = decodeCapture(await (0, import_promises20.readFile)(rawPath), opts.connectKey);
138734
138831
  const scaled = scaleDecodedPng(decoded2, opts.scale);
138735
- const outPath = (0, import_node_path30.join)((0, import_node_os16.tmpdir)(), `harmony-screenshot-${process.hrtime.bigint()}.png`);
138832
+ const outPath = (0, import_node_path31.join)((0, import_node_os17.tmpdir)(), `harmony-screenshot-${process.hrtime.bigint()}.png`);
138736
138833
  if (scaled === decoded2) {
138737
- await (0, import_promises19.rename)(rawPath, outPath);
138834
+ await (0, import_promises20.rename)(rawPath, outPath);
138738
138835
  } else {
138739
- await (0, import_promises19.writeFile)(outPath, import_pngjs4.PNG.sync.write(scaled));
138836
+ await (0, import_promises20.writeFile)(outPath, import_pngjs4.PNG.sync.write(scaled));
138740
138837
  }
138741
138838
  return outPath;
138742
138839
  } finally {
138743
- await (0, import_promises19.rm)(rawPath, { force: true }).catch(() => {
138840
+ await (0, import_promises20.rm)(rawPath, { force: true }).catch(() => {
138744
138841
  });
138745
138842
  }
138746
138843
  }
@@ -138748,7 +138845,7 @@ async function captureHarmonyScreenshotPng(opts) {
138748
138845
  // ../tool-server/src/tools/screenshot/index.ts
138749
138846
  init_capability();
138750
138847
  var fs52 = __toESM(require("node:fs/promises"));
138751
- var execFileAsync35 = (0, import_node_util36.promisify)(import_node_child_process46.execFile);
138848
+ var execFileAsync36 = (0, import_node_util37.promisify)(import_node_child_process47.execFile);
138752
138849
  var capability9 = {
138753
138850
  apple: { simulator: true, device: true },
138754
138851
  appleRemote: { simulator: true },
@@ -138788,7 +138885,7 @@ async function tvScreenshot(udid, scale, signal) {
138788
138885
  );
138789
138886
  const capture = async (out, type) => {
138790
138887
  const io = ["io", udid, "screenshot", ...type ? [`--type=${type}`] : [], out];
138791
- await execFileAsync35("xcrun", await simctlArgsForUdid(udid, io), { signal });
138888
+ await execFileAsync36("xcrun", await simctlArgsForUdid(udid, io), { signal });
138792
138889
  };
138793
138890
  if (scale !== void 0) {
138794
138891
  await capture(file2);
@@ -138799,7 +138896,7 @@ async function tvScreenshot(udid, scale, signal) {
138799
138896
  await capture(jpeg, "jpeg");
138800
138897
  try {
138801
138898
  const longSide = String(await tvTargetLongSide(jpeg, scale));
138802
- await execFileAsync35("sips", ["-Z", longSide, "-s", "format", "png", jpeg, "--out", file2], {
138899
+ await execFileAsync36("sips", ["-Z", longSide, "-s", "format", "png", jpeg, "--out", file2], {
138803
138900
  signal
138804
138901
  });
138805
138902
  } catch {
@@ -138812,7 +138909,7 @@ async function tvScreenshot(udid, scale, signal) {
138812
138909
  async function tvTargetLongSide(file2, scale) {
138813
138910
  let longSide = 3840;
138814
138911
  try {
138815
- const { stdout } = await execFileAsync35("sips", ["-g", "pixelWidth", "-g", "pixelHeight", file2]);
138912
+ const { stdout } = await execFileAsync36("sips", ["-g", "pixelWidth", "-g", "pixelHeight", file2]);
138816
138913
  const width = Number(/pixelWidth:\s*(\d+)/.exec(stdout)?.[1]);
138817
138914
  const height = Number(/pixelHeight:\s*(\d+)/.exec(stdout)?.[1]);
138818
138915
  if (Number.isFinite(width) && Number.isFinite(height) && width > 0 && height > 0) {
@@ -138847,7 +138944,7 @@ async function downscalePngInPlace(file2, scale, signal) {
138847
138944
  if (scale >= 1) {
138848
138945
  return;
138849
138946
  }
138850
- await execFileAsync35("sips", ["-Z", String(await tvTargetLongSide(file2, scale)), file2], {
138947
+ await execFileAsync36("sips", ["-Z", String(await tvTargetLongSide(file2, scale)), file2], {
138851
138948
  signal
138852
138949
  }).catch(() => {
138853
138950
  });
@@ -142057,13 +142154,13 @@ var shakeZodSchema = external_exports.object({
142057
142154
  });
142058
142155
 
142059
142156
  // ../tool-server/src/tools/shake/platforms/ios.ts
142060
- var import_node_child_process48 = require("node:child_process");
142061
- var import_node_util37 = require("node:util");
142157
+ var import_node_child_process49 = require("node:child_process");
142158
+ var import_node_util38 = require("node:util");
142062
142159
  init_src2();
142063
142160
  init_capability();
142064
142161
 
142065
142162
  // ../tool-server/src/utils/window-shake.ts
142066
- var import_node_child_process47 = require("node:child_process");
142163
+ var import_node_child_process48 = require("node:child_process");
142067
142164
  init_src();
142068
142165
  var MICROINTERACTIONS_FLAG = "microinteractions";
142069
142166
  var AMPLITUDE = 22;
@@ -142170,7 +142267,7 @@ end run
142170
142267
  }
142171
142268
  function runOsascript(script) {
142172
142269
  return new Promise((resolve24, reject) => {
142173
- const child = (0, import_node_child_process47.execFile)(
142270
+ const child = (0, import_node_child_process48.execFile)(
142174
142271
  "/usr/bin/osascript",
142175
142272
  ["-"],
142176
142273
  { timeout: OSASCRIPT_TIMEOUT_MS },
@@ -142263,7 +142360,7 @@ async function prepareHostWindowShake(target) {
142263
142360
  }
142264
142361
 
142265
142362
  // ../tool-server/src/tools/shake/platforms/ios.ts
142266
- var execFileAsync36 = (0, import_node_util37.promisify)(import_node_child_process48.execFile);
142363
+ var execFileAsync37 = (0, import_node_util38.promisify)(import_node_child_process49.execFile);
142267
142364
  var SHAKE_NOTIFICATION = "com.apple.UIKit.SimulatorShake";
142268
142365
  var SHAKE_INTERVAL_MS = 400;
142269
142366
  var sleep15 = (ms3) => new Promise((r) => setTimeout(r, ms3));
@@ -142305,7 +142402,7 @@ var iosImpl4 = {
142305
142402
  if (i > 0) await sleep15(SHAKE_INTERVAL_MS);
142306
142403
  shaker.begin();
142307
142404
  try {
142308
- await execFileAsync36("xcrun", args, { timeout: 15e3 });
142405
+ await execFileAsync37("xcrun", args, { timeout: 15e3 });
142309
142406
  } catch (err) {
142310
142407
  const error63 = err instanceof Error ? err : new Error(String(err));
142311
142408
  throw shakeFailure(udid, error63.message, error63);
@@ -145599,7 +145696,7 @@ Returns \`{ x, y, items, truncated?, hiddenCount? }\`. Fails if disconnected or
145599
145696
 
145600
145697
  // ../tool-server/src/tools/debugger/debugger-log-registry.ts
145601
145698
  init_zod();
145602
- var import_node_path31 = require("node:path");
145699
+ var import_node_path32 = require("node:path");
145603
145700
  init_src();
145604
145701
  var DEFAULT_TAIL = 20;
145605
145702
  var CONSOLE_LEVELS = [
@@ -145671,7 +145768,7 @@ Returns \`{ status: "connected", file, entries, clusters, note? }\` (\`note\` fl
145671
145768
  if (reaped2) response.note = describeReapedSession(reaped2, "JS-runtime debugger session");
145672
145769
  const inFile = api.logWriter.getFileEntryCount();
145673
145770
  const home = argentHomeDir();
145674
- const fileNote = !api.logWriter.hasFile() ? `No log file exists at ${stats.file}, so there is nothing to grep: the counts, clusters and { entries } are all that was captured. Usually the disk was full or ${(0, import_node_path31.join)(home, "tmp")} was not writable when this session started (if root owns ${home}: sudo chown -R "$USER" "${home}"). Only a new debugger session gets a file: once that is fixed, call stop-all-simulator-servers with devices: ["${canonicalDeviceId(params.device_id)}"], then debugger-connect again.` : inFile === 0 && stats.totalEntries > 0 ? `The log file at ${stats.file} holds none of the ${stats.totalEntries} captured entries: every write to it failed (e.g. a full disk), so there is nothing to grep and the counts, clusters and { entries } are all that was captured. Entries logged once the disk has room are written to it.` : inFile < stats.totalEntries ? `The log file at ${stats.file} holds only ${inFile} of the ${stats.totalEntries} captured entries: the other writes to it failed (e.g. a full disk or a file-size limit), so byLevel and clusters count entries that grepping it will not find. Entries logged once the disk has room are written to it.` : void 0;
145771
+ const fileNote = !api.logWriter.hasFile() ? `No log file exists at ${stats.file}, so there is nothing to grep: the counts, clusters and { entries } are all that was captured. Usually the disk was full or ${(0, import_node_path32.join)(home, "tmp")} was not writable when this session started (if root owns ${home}: sudo chown -R "$USER" "${home}"). Only a new debugger session gets a file: once that is fixed, call stop-all-simulator-servers with devices: ["${canonicalDeviceId(params.device_id)}"], then debugger-connect again.` : inFile === 0 && stats.totalEntries > 0 ? `The log file at ${stats.file} holds none of the ${stats.totalEntries} captured entries: every write to it failed (e.g. a full disk), so there is nothing to grep and the counts, clusters and { entries } are all that was captured. Entries logged once the disk has room are written to it.` : inFile < stats.totalEntries ? `The log file at ${stats.file} holds only ${inFile} of the ${stats.totalEntries} captured entries: the other writes to it failed (e.g. a full disk or a file-size limit), so byLevel and clusters count entries that grepping it will not find. Entries logged once the disk has room are written to it.` : void 0;
145675
145772
  if (fileNote) response.note = response.note ? `${response.note} ${fileNote}` : fileNote;
145676
145773
  return response;
145677
145774
  } catch (err) {
@@ -151326,7 +151423,7 @@ init_capability();
151326
151423
  // ../tool-server/src/utils/react-profiler/pipeline/session-context.ts
151327
151424
  var import_fs2 = require("fs");
151328
151425
  var import_path3 = require("path");
151329
- var import_semver4 = __toESM(require_semver2());
151426
+ var import_semver5 = __toESM(require_semver2());
151330
151427
  async function readFileSafe(path77) {
151331
151428
  try {
151332
151429
  return await import_fs2.promises.readFile(path77, "utf8");
@@ -151373,7 +151470,7 @@ async function detectSessionContext(input2) {
151373
151470
  rnArchitecture = input2.sessionMeta.detectedArchitecture;
151374
151471
  } else {
151375
151472
  const rnVersionStr = input2.sessionMeta.rnVersion ?? "";
151376
- const rnMinor = (0, import_semver4.coerce)(rnVersionStr)?.minor ?? 0;
151473
+ const rnMinor = (0, import_semver5.coerce)(rnVersionStr)?.minor ?? 0;
151377
151474
  const newArchDefault = rnMinor >= 76;
151378
151475
  rnArchitecture = newArchDefault ? "bridgeless" : "bridge";
151379
151476
  if (platform === "android") {
@@ -153778,8 +153875,8 @@ var import_util14 = require("util");
153778
153875
  var DEFAULT_EXEC_TIMEOUT_MS = 6e4;
153779
153876
  var DEFAULT_EXEC_MAX_BUFFER = 256 * 1024 * 1024;
153780
153877
  async function execFileAsyncWithTimeout(file2, args, options = {}) {
153781
- const execFileAsync48 = (0, import_util14.promisify)(import_child_process2.execFile);
153782
- const { stdout, stderr } = await execFileAsync48(file2, args, {
153878
+ const execFileAsync49 = (0, import_util14.promisify)(import_child_process2.execFile);
153879
+ const { stdout, stderr } = await execFileAsync49(file2, args, {
153783
153880
  encoding: "utf-8",
153784
153881
  ...options,
153785
153882
  // Applied after ...options so a caller cannot weaken the guards; maxBuffer
@@ -155583,10 +155680,10 @@ function inFlightGuardMessage(state3, retryAction) {
155583
155680
 
155584
155681
  // ../tool-server/src/tools/profiler/native-profiler/platforms/xctrace.ts
155585
155682
  var import_child_process5 = require("child_process");
155586
- var import_node_fs21 = require("node:fs");
155587
- var import_node_util38 = require("node:util");
155588
- init_src2();
155589
155683
  var import_node_fs22 = require("node:fs");
155684
+ var import_node_util39 = require("node:util");
155685
+ init_src2();
155686
+ var import_node_fs23 = require("node:fs");
155590
155687
  var path49 = __toESM(require("path"));
155591
155688
 
155592
155689
  // ../tool-server/src/utils/ios-profiler/notify.ts
@@ -155746,7 +155843,7 @@ function resolveDefaultTemplatePath() {
155746
155843
  )
155747
155844
  ];
155748
155845
  for (const candidate of candidates) {
155749
- if ((0, import_node_fs22.existsSync)(candidate)) return candidate;
155846
+ if ((0, import_node_fs23.existsSync)(candidate)) return candidate;
155750
155847
  }
155751
155848
  throw new FailureError(
155752
155849
  `Argent.tracetemplate not found. Looked in:
@@ -155945,18 +156042,18 @@ function commitXctraceRecording(api, started, capture) {
155945
156042
  traceFile: capture.traceFile
155946
156043
  };
155947
156044
  }
155948
- var execFileAsync37 = (0, import_node_util38.promisify)(import_child_process5.execFile);
156045
+ var execFileAsync38 = (0, import_node_util39.promisify)(import_child_process5.execFile);
155949
156046
  function xctraceProgressProbe(child, traceFile) {
155950
156047
  return async () => {
155951
156048
  if (!child.pid) return null;
155952
- const { stdout } = await execFileAsync37("ps", ["-o", "time=", "-p", String(child.pid)], {
156049
+ const { stdout } = await execFileAsync38("ps", ["-o", "time=", "-p", String(child.pid)], {
155953
156050
  timeout: 2e3
155954
156051
  });
155955
- const entries = await import_node_fs21.promises.readdir(traceFile, { recursive: true, withFileTypes: true });
156052
+ const entries = await import_node_fs22.promises.readdir(traceFile, { recursive: true, withFileTypes: true });
155956
156053
  let bytes = 0;
155957
156054
  for (const entry of entries) {
155958
156055
  if (!entry.isFile()) continue;
155959
- bytes += (await import_node_fs21.promises.stat(path49.join(entry.parentPath, entry.name))).size;
156056
+ bytes += (await import_node_fs22.promises.stat(path49.join(entry.parentPath, entry.name))).size;
155960
156057
  }
155961
156058
  return `${stdout.trim()}|${bytes}`;
155962
156059
  };
@@ -158239,23 +158336,23 @@ Use profiler-stack-query for details behind a finding.`,
158239
158336
  init_zod();
158240
158337
 
158241
158338
  // ../tool-server/src/tools/profiler/native-profiler/launch-analysis/measure.ts
158242
- var import_node_child_process50 = require("node:child_process");
158243
- var import_node_util40 = require("node:util");
158339
+ var import_node_child_process51 = require("node:child_process");
158340
+ var import_node_util41 = require("node:util");
158244
158341
  var fsp5 = __toESM(require("node:fs/promises"));
158245
158342
  var path55 = __toESM(require("node:path"));
158246
158343
  var import_node_crypto20 = require("node:crypto");
158247
158344
  init_src2();
158248
158345
 
158249
158346
  // ../tool-server/src/utils/ios-launch-time/workflow.ts
158250
- var import_node_child_process49 = require("node:child_process");
158251
- var import_node_util39 = require("node:util");
158252
- var import_promises20 = require("node:timers/promises");
158347
+ var import_node_child_process50 = require("node:child_process");
158348
+ var import_node_util40 = require("node:util");
158349
+ var import_promises21 = require("node:timers/promises");
158253
158350
  var fs66 = __toESM(require("node:fs"));
158254
158351
  var fsp4 = __toESM(require("node:fs/promises"));
158255
158352
  var path54 = __toESM(require("node:path"));
158256
158353
  init_src();
158257
158354
  init_src2();
158258
- var execFileAsync38 = (0, import_node_util39.promisify)(import_node_child_process49.execFile);
158355
+ var execFileAsync39 = (0, import_node_util40.promisify)(import_node_child_process50.execFile);
158259
158356
  var BUILD_TIMEOUT_MS2 = 60 * 6e4;
158260
158357
  var BOOTSTATUS_TIMEOUT_MS = 18e4;
158261
158358
  function runnerBuildCacheDir(key2) {
@@ -158357,7 +158454,7 @@ async function runLogged(command, args, options) {
158357
158454
  await fsp4.mkdir(path54.dirname(options.logPath), { recursive: true });
158358
158455
  options.signal?.throwIfAborted();
158359
158456
  const log = fs66.createWriteStream(options.logPath);
158360
- const child = (0, import_node_child_process49.spawn)(command, args, {
158457
+ const child = (0, import_node_child_process50.spawn)(command, args, {
158361
158458
  cwd: options.cwd,
158362
158459
  env: options.env ?? process.env,
158363
158460
  stdio: ["ignore", "pipe", "pipe"],
@@ -158416,7 +158513,7 @@ ${errorText2(tail, options.logPath)}`,
158416
158513
  }
158417
158514
  }
158418
158515
  async function smallCommand(command, args, signal, timeoutMs = 6e4) {
158419
- const { stdout } = await execFileAsync38(command, args, {
158516
+ const { stdout } = await execFileAsync39(command, args, {
158420
158517
  timeout: timeoutMs,
158421
158518
  maxBuffer: 8 * 1024 * 1024,
158422
158519
  signal
@@ -158436,7 +158533,7 @@ async function waitForDeviceAction(action, onProgress, signal) {
158436
158533
  if (!/unlock|locked|trust|developer mode|tunnel is still connecting/i.test(cause) || Date.now() >= deadline)
158437
158534
  throw error63;
158438
158535
  onProgress?.(`Waiting for iPhone setup: ${message}`);
158439
- await (0, import_promises20.setTimeout)(5e3, void 0, { signal });
158536
+ await (0, import_promises21.setTimeout)(5e3, void 0, { signal });
158440
158537
  }
158441
158538
  }
158442
158539
  }
@@ -158516,7 +158613,7 @@ async function selectDevice(request4, onProgress, signal) {
158516
158613
  };
158517
158614
  }
158518
158615
  function xcodeVersion() {
158519
- return execFileAsync38("xcodebuild", ["-version"], { timeout: 2e4 }).then(
158616
+ return execFileAsync39("xcodebuild", ["-version"], { timeout: 2e4 }).then(
158520
158617
  ({ stdout }) => stdout.trim().replace(/\n/g, " "),
158521
158618
  () => "unknown-xcode"
158522
158619
  );
@@ -158644,7 +158741,7 @@ async function terminateForWarmLaunch(context2, signal) {
158644
158741
  };
158645
158742
  let payload;
158646
158743
  try {
158647
- const { stdout } = await execFileAsync38(
158744
+ const { stdout } = await execFileAsync39(
158648
158745
  "xcrun",
158649
158746
  [
158650
158747
  "devicectl",
@@ -158794,7 +158891,7 @@ function optionalExportCrashNote(tables, xcodeVersion2, options = {}) {
158794
158891
  }
158795
158892
 
158796
158893
  // ../tool-server/src/tools/profiler/native-profiler/launch-analysis/measure.ts
158797
- var execFileAsync39 = (0, import_node_util40.promisify)(import_node_child_process50.execFile);
158894
+ var execFileAsync40 = (0, import_node_util41.promisify)(import_node_child_process51.execFile);
158798
158895
  var LAUNCH_ITERATIONS = 5;
158799
158896
  async function measureLaunch(params, ctx) {
158800
158897
  let release2;
@@ -158910,7 +159007,7 @@ async function measurePreparedLaunch(context2, ctx) {
158910
159007
  }
158911
159008
  let stdout;
158912
159009
  try {
158913
- ({ stdout } = await execFileAsync39(
159010
+ ({ stdout } = await execFileAsync40(
158914
159011
  "xcrun",
158915
159012
  ["xcresulttool", "get", "test-results", "metrics", "--path", resultPath],
158916
159013
  { timeout: 6e4, maxBuffer: 4 * 1024 * 1024, signal: ctx?.signal }
@@ -158964,9 +159061,9 @@ async function measurePreparedLaunch(context2, ctx) {
158964
159061
  }
158965
159062
 
158966
159063
  // ../tool-server/src/tools/profiler/native-profiler/launch-analysis/profile.ts
158967
- var import_node_child_process51 = require("node:child_process");
159064
+ var import_node_child_process52 = require("node:child_process");
158968
159065
  var import_node_crypto21 = require("node:crypto");
158969
- var import_node_util41 = require("node:util");
159066
+ var import_node_util42 = require("node:util");
158970
159067
  var fsp6 = __toESM(require("node:fs/promises"));
158971
159068
  var path56 = __toESM(require("node:path"));
158972
159069
  init_src2();
@@ -159208,7 +159305,7 @@ function cpuTableXpath(tocXml) {
159208
159305
  }
159209
159306
 
159210
159307
  // ../tool-server/src/tools/profiler/native-profiler/launch-analysis/profile.ts
159211
- var execFileAsync40 = (0, import_node_util41.promisify)(import_node_child_process51.execFile);
159308
+ var execFileAsync41 = (0, import_node_util42.promisify)(import_node_child_process52.execFile);
159212
159309
  var TABLE_XPATH = (schema) => `/trace-toc/run[@number="1"]/data/table[@schema="${schema}"]`;
159213
159310
  async function writeProfilerSession(xml) {
159214
159311
  const debugDir = await getDebugDir();
@@ -159320,7 +159417,7 @@ async function profileLaunch(params, ctx) {
159320
159417
  let toc = "";
159321
159418
  try {
159322
159419
  const { stdout } = await withXctraceCrashRetry(
159323
- () => execFileAsync40("xcrun", ["xctrace", "export", "--input", tracePath, "--toc"], {
159420
+ () => execFileAsync41("xcrun", ["xctrace", "export", "--input", tracePath, "--toc"], {
159324
159421
  timeout: 12e4,
159325
159422
  maxBuffer: 4 * 1024 * 1024,
159326
159423
  signal: ctx?.signal
@@ -159538,15 +159635,15 @@ Returns \`samplesCollected\` (\`measure\`) or \`launchMs\` + \`profilerSession\`
159538
159635
  init_zod();
159539
159636
 
159540
159637
  // ../tool-server/src/utils/ios-audio.ts
159541
- var import_node_child_process52 = require("node:child_process");
159638
+ var import_node_child_process53 = require("node:child_process");
159542
159639
  var fs67 = __toESM(require("node:fs"));
159543
159640
  var path57 = __toESM(require("node:path"));
159544
159641
  var import_node_crypto22 = require("node:crypto");
159545
- var import_node_util42 = require("node:util");
159642
+ var import_node_util43 = require("node:util");
159546
159643
  init_src2();
159547
159644
  init_capability();
159548
159645
  init_external_devices();
159549
- var execFileAsync41 = (0, import_node_util42.promisify)(import_node_child_process52.execFile);
159646
+ var execFileAsync42 = (0, import_node_util43.promisify)(import_node_child_process53.execFile);
159550
159647
  var AUDIO_DIR_ENV = "ARGENT_AUDIO_DIR";
159551
159648
  var AUDIO_HOOK_PROTO = 1;
159552
159649
  var MAX_CLIP_SECONDS = 600;
@@ -159572,11 +159669,11 @@ async function ensureAudioEnv(session) {
159572
159669
  granted: "native-devtools"
159573
159670
  });
159574
159671
  const options = { timeout: SIMCTL_SPAWN_TIMEOUT_MS, killSignal: SIMCTL_KILL_SIGNAL };
159575
- const getenv = async (name) => (await execFileAsync41("xcrun", [...prefix, "spawn", nativeId, "launchctl", "getenv", name], {
159672
+ const getenv = async (name) => (await execFileAsync42("xcrun", [...prefix, "spawn", nativeId, "launchctl", "getenv", name], {
159576
159673
  encoding: "utf8",
159577
159674
  ...options
159578
159675
  }).catch(() => ({ stdout: "" }))).stdout.trim();
159579
- const setenv = (name, value) => execFileAsync41(
159676
+ const setenv = (name, value) => execFileAsync42(
159580
159677
  "xcrun",
159581
159678
  [...prefix, "spawn", nativeId, "launchctl", "setenv", name, value],
159582
159679
  options
@@ -159696,7 +159793,7 @@ async function convertClip(inputPath, outputPath2) {
159696
159793
  throw new InvalidToolInputError(`Audio file not found: ${inputPath}`);
159697
159794
  }
159698
159795
  try {
159699
- await execFileAsync41(
159796
+ await execFileAsync42(
159700
159797
  "afconvert",
159701
159798
  ["-f", "WAVE", "-d", `LEF32@${STREAM_RATE}`, "-c", "1", inputPath, outputPath2],
159702
159799
  { timeout: 6e4 }
@@ -160523,7 +160620,7 @@ var screenRecordingSessionBlueprint = {
160523
160620
  recordReapedSession(
160524
160621
  "screen-recording",
160525
160622
  state3.deviceId,
160526
- abandonedOutput ? abandonedRemote ? `The runner-side recording was ended and its download started, so the video captured up to that point is at ${abandonedOutput} if the download finished. Otherwise the remote machine keeps it until the machine is released: \`sim-remote screen-record fetch ${stripRemotePrefix(state3.deviceId)} <FILE> --recording ${abandonedRemote.recordingId}\`.` : abandonedMacos ? `The app was asked to end the recording and write it out first, so the video captured up to that point is at ${abandonedOutput} if the app finished writing it.` : `ffmpeg was given a moment to finalize the container first, so the video captured up to that point is usually playable at ${abandonedOutput} \u2014 check it before re-recording.` : void 0
160623
+ abandonedOutput ? abandonedRemote ? `The runner-side recording was ended and its download started, so the video captured up to that point is at ${abandonedOutput} if the download finished. Otherwise the remote machine keeps it until the machine is released: \`${argentCloudCommand()} screen-record fetch ${stripRemotePrefix(state3.deviceId)} <FILE> --recording ${abandonedRemote.recordingId}\`.` : abandonedMacos ? `The app was asked to end the recording and write it out first, so the video captured up to that point is at ${abandonedOutput} if the app finished writing it.` : `ffmpeg was given a moment to finalize the container first, so the video captured up to that point is usually playable at ${abandonedOutput} \u2014 check it before re-recording.` : void 0
160527
160624
  );
160528
160625
  }
160529
160626
  }
@@ -160668,7 +160765,7 @@ var WATERMARK_PNG_HEIGHT = 277;
160668
160765
  var WATERMARK_PNG_BASE64 = "iVBORw0KGgoAAAANSUhEUgAAA4QAAAEVCAYAAAC46yv0AAAABmJLR0QA/wD/AP+gvaeTAAAgAElEQVR4nOydd7xkRbX916qGIcwQBAaQDEPOacgqIgoCgxJEQRiCCuJ7CCoIzwQYfoIYAJ8BFAUERYLwAEUBMcCoMAwZiUMSkJwGJMycWr8/ui709D23Y1Wf7tP7+/ncz3zm3HN27e7b4eyqXWsRhtEiksYBmCrp8wBWKzqffoLkqiRnFp2HYRiGYRiGYbTDPEUnYPQ/ksYD+LikzwFYvuh8+pTNAVhBaBiGYRiGYQwUVhAaYyJpMe/9YZIOA7B40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cuQv95WR1dHfX6Oqh53CM3M5nOS3iXpq3XlSD6fzTcFn+dIIvKLjFUBLFX8ZMg7gY8CeIBz0XYcxUXU0shfw2OjHrk066XoQCyB/GZZK2tqJS2JPGvpI/5c5yac74H8fJ9SNyZHodhWYxEATwN4qq3Pl5mZ2TwnIi5ssMltv2nOzczMzMzMbCqTtFpEPFPXIZT0b+Nuq5mZmbXPSWXMzOZvb0b9VgkPAjhjEtpiZmZmk8wdQjOz+ZSkBSUd2KDct8edGMXMzMzMzMxaJOmjDdYOZpLWHndbzczMzMzMrCFJqUi33+u5RbMs+1jk6jqE3qzbzMxsHuZtJ8zM5kGS1pR0C4CbAdwp6V4AGcnVAbwCwHJNwpB8KclrRtlWMzMzMzMza5GkNRuM/tX9OJGMmZnZPM5JZczMrJdHSL573I0wMzOz0XKH0MzMuonkQSTvHndDzMzMbLTcITQzs4lE8lCSPxx3Q8zMzGz03CE0M7PZHiS5H8mvjbshZmZmNjncITQzs6ckfYvkhiR/MO7GmJmZ2eTxthNmZvMgSYsC2A3AGhHxXABLkVwawEIAMkkzAPw1pXQtgItIPjrG5pqZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmc2X/j9B0/+uMB3y2gAAAABJRU5ErkJggg==";
160669
160766
 
160670
160767
  // ../tool-server/src/tools/screen-recording/watermark.ts
160671
- var execFileAsync42 = (0, import_util15.promisify)(import_child_process8.execFile);
160768
+ var execFileAsync43 = (0, import_util15.promisify)(import_child_process8.execFile);
160672
160769
  var OUTPUT_FPS = 30;
160673
160770
  var EVEN_CROP = "crop=trunc(iw/2)*2:trunc(ih/2)*2:0:0";
160674
160771
  function encoderArgs(outputFile) {
@@ -160703,7 +160800,7 @@ var MASK_DARK_MAX_LUMA = 90;
160703
160800
  var MASK_LIGHT_MIN_LUMA = 165;
160704
160801
  async function resolveBinary(name, fallbacks) {
160705
160802
  try {
160706
- await execFileAsync42("/bin/sh", ["-c", `command -v ${name}`], { timeout: 2e3 });
160803
+ await execFileAsync43("/bin/sh", ["-c", `command -v ${name}`], { timeout: 2e3 });
160707
160804
  return name;
160708
160805
  } catch {
160709
160806
  }
@@ -161296,7 +161393,7 @@ init_src2();
161296
161393
  init_device_info();
161297
161394
  var POST_PASS_TIMEOUT_MS = 10 * 6e4;
161298
161395
  var PROBE_TIMEOUT_MS3 = 15e3;
161299
- var execFileAsync43 = (0, import_util16.promisify)(import_child_process10.execFile);
161396
+ var execFileAsync44 = (0, import_util16.promisify)(import_child_process10.execFile);
161300
161397
  var TRIM_FILTERS = `fps=${OUTPUT_FPS},mpdecimate=hi=1:lo=1:frac=1,setpts=N/${OUTPUT_FPS}/TB,tpad=stop_mode=clone:stop_duration=1`;
161301
161398
  async function startRemoteCapture(api, params) {
161302
161399
  assertNoActiveRecording(api, "screen_recording_start");
@@ -161518,7 +161615,7 @@ async function postProcess(opts) {
161518
161615
  }
161519
161616
  args.push(...encoderArgs(outputFile));
161520
161617
  try {
161521
- await execFileAsync43(ffmpeg, args, { timeout: POST_PASS_TIMEOUT_MS });
161618
+ await execFileAsync44(ffmpeg, args, { timeout: POST_PASS_TIMEOUT_MS });
161522
161619
  await statNonEmptyOutput(outputFile, "screen_recording_post_process");
161523
161620
  return { outputFile, trimmed: opts.trimStatic, ...warning ? { warning } : {} };
161524
161621
  } catch (err) {
@@ -161538,7 +161635,7 @@ async function probe3(file2, entries) {
161538
161635
  const ffprobe = await resolveFfprobe();
161539
161636
  if (!ffprobe) return null;
161540
161637
  try {
161541
- const { stdout } = await execFileAsync43(
161638
+ const { stdout } = await execFileAsync44(
161542
161639
  ffprobe,
161543
161640
  [
161544
161641
  "-v",
@@ -161588,7 +161685,7 @@ function asStopFailure(err, ctx) {
161588
161685
  if (err instanceof FailureError) return err;
161589
161686
  const message = err instanceof Error ? err.message : String(err);
161590
161687
  const what = ctx.timeLimitSeconds === void 0 ? `The recording could not be retrieved from the remote simulator: ${message}.` : `The recording hit its ${ctx.timeLimitSeconds ?? "?"}s time limit, but the video could not be retrieved from the remote simulator: ${message}.`;
161591
- const recovery = `If the recording was stopped there, the remote machine keeps it until the machine is released. Download it with \`sim-remote screen-record fetch ${stripRemotePrefix(ctx.deviceId)} <FILE> --recording ${ctx.recordingId}\`. Do not retry the stop.`;
161688
+ const recovery = `If the recording was stopped there, the remote machine keeps it until the machine is released. Download it with \`${argentCloudCommand()} screen-record fetch ${stripRemotePrefix(ctx.deviceId)} <FILE> --recording ${ctx.recordingId}\`. Do not retry the stop.`;
161592
161689
  return new FailureError(
161593
161690
  `${what} ${recovery}`,
161594
161691
  {
@@ -161613,7 +161710,7 @@ var import_child_process11 = require("child_process");
161613
161710
  var import_util17 = require("util");
161614
161711
  init_src2();
161615
161712
  init_src();
161616
- var execFileAsync44 = (0, import_util17.promisify)(import_child_process11.execFile);
161713
+ var execFileAsync45 = (0, import_util17.promisify)(import_child_process11.execFile);
161617
161714
  var SOURCE_FILE = "ios-screen-stream.swift";
161618
161715
  var PLIST_FILE = "Info.plist";
161619
161716
  var BINARY_NAME = "ios-screen-stream";
@@ -161654,7 +161751,7 @@ async function ensureHelperBinary(sourceDir = resolveSourceDir()) {
161654
161751
  await import_fs20.promises.mkdir(dir, { recursive: true });
161655
161752
  const staging = `${binary}.${process.pid}.${Date.now()}`;
161656
161753
  try {
161657
- await execFileAsync44(
161754
+ await execFileAsync45(
161658
161755
  "xcrun",
161659
161756
  [
161660
161757
  "swiftc",
@@ -161675,7 +161772,7 @@ async function ensureHelperBinary(sourceDir = resolveSourceDir()) {
161675
161772
  ],
161676
161773
  { timeout: COMPILE_TIMEOUT_MS, maxBuffer: 8 * 1024 * 1024 }
161677
161774
  );
161678
- await execFileAsync44("codesign", ["-s", "-", "-f", "-i", SIGNING_IDENTIFIER, staging], {
161775
+ await execFileAsync45("codesign", ["-s", "-", "-f", "-i", SIGNING_IDENTIFIER, staging], {
161679
161776
  timeout: 3e4
161680
161777
  });
161681
161778
  await import_fs20.promises.rename(staging, binary);
@@ -162332,7 +162429,7 @@ function makePointerControl(simulator) {
162332
162429
  }
162333
162430
 
162334
162431
  // ../tool-server/src/tools/screen-recording/screen-recording-stop.ts
162335
- var import_node_path32 = require("node:path");
162432
+ var import_node_path33 = require("node:path");
162336
162433
  init_zod();
162337
162434
  init_device_info();
162338
162435
  init_capability();
@@ -162378,7 +162475,7 @@ Check \`warning\` for capture problems, such as an undetected foldable panel.<fl
162378
162475
  kind: "screen-recording",
162379
162476
  mimeType: "video/mp4",
162380
162477
  // Drop the internal `argent-` temp-file prefix from the saved name.
162381
- filename: (0, import_node_path32.basename)(stopped.outputFile).replace(/^argent-/, ""),
162478
+ filename: (0, import_node_path33.basename)(stopped.outputFile).replace(/^argent-/, ""),
162382
162479
  saveDir: RECORDINGS_DIR
162383
162480
  });
162384
162481
  const result = { video, durationMs: stopped.durationMs };
@@ -164717,8 +164814,8 @@ Returns \`{ stopped, unmatched?, left_running?, aborted? }\` (\`left_running\` n
164717
164814
 
164718
164815
  // ../tool-server/src/tools/simulator/stop-metro.ts
164719
164816
  init_zod();
164720
- var import_node_child_process53 = require("node:child_process");
164721
- var import_node_fs23 = require("node:fs");
164817
+ var import_node_child_process54 = require("node:child_process");
164818
+ var import_node_fs24 = require("node:fs");
164722
164819
  init_src2();
164723
164820
  function parseNetstatListeningPids(netstatOutput, port) {
164724
164821
  const pids = /* @__PURE__ */ new Set();
@@ -164738,7 +164835,7 @@ function procListeningPids(port, proc = "/proc") {
164738
164835
  for (const table of ["tcp", "tcp6"]) {
164739
164836
  let rows;
164740
164837
  try {
164741
- rows = (0, import_node_fs23.readFileSync)(`${proc}/net/${table}`, "utf-8");
164838
+ rows = (0, import_node_fs24.readFileSync)(`${proc}/net/${table}`, "utf-8");
164742
164839
  } catch (error63) {
164743
164840
  if (table === "tcp6" && error63.code === "ENOENT") continue;
164744
164841
  throw error63;
@@ -164753,11 +164850,11 @@ function procListeningPids(port, proc = "/proc") {
164753
164850
  if (inodes.size === 0) return [];
164754
164851
  const owned = /* @__PURE__ */ new Set();
164755
164852
  const pids = [];
164756
- for (const entry of (0, import_node_fs23.readdirSync)(proc)) {
164853
+ for (const entry of (0, import_node_fs24.readdirSync)(proc)) {
164757
164854
  if (!/^\d+$/.test(entry)) continue;
164758
164855
  let fds;
164759
164856
  try {
164760
- fds = (0, import_node_fs23.readdirSync)(`${proc}/${entry}/fd`);
164857
+ fds = (0, import_node_fs24.readdirSync)(`${proc}/${entry}/fd`);
164761
164858
  } catch {
164762
164859
  continue;
164763
164860
  }
@@ -164765,7 +164862,7 @@ function procListeningPids(port, proc = "/proc") {
164765
164862
  for (const fd of fds) {
164766
164863
  let target;
164767
164864
  try {
164768
- target = (0, import_node_fs23.readlinkSync)(`${proc}/${entry}/fd/${fd}`);
164865
+ target = (0, import_node_fs24.readlinkSync)(`${proc}/${entry}/fd/${fd}`);
164769
164866
  } catch {
164770
164867
  continue;
164771
164868
  }
@@ -164784,8 +164881,8 @@ function procListeningPids(port, proc = "/proc") {
164784
164881
  }
164785
164882
  return pids;
164786
164883
  }
164787
- var LSOF_BIN2 = ["/usr/sbin/lsof", "/usr/bin/lsof"].find((p) => (0, import_node_fs23.existsSync)(p)) ?? "lsof";
164788
- var DARWIN_NETSTAT_BIN = (0, import_node_fs23.existsSync)("/usr/sbin/netstat") ? "/usr/sbin/netstat" : "netstat";
164884
+ var LSOF_BIN2 = ["/usr/sbin/lsof", "/usr/bin/lsof"].find((p) => (0, import_node_fs24.existsSync)(p)) ?? "lsof";
164885
+ var DARWIN_NETSTAT_BIN = (0, import_node_fs24.existsSync)("/usr/sbin/netstat") ? "/usr/sbin/netstat" : "netstat";
164789
164886
  function parseDarwinNetstatHasListener(netstatOutput, port) {
164790
164887
  return netstatOutput.split("\n").some((line) => {
164791
164888
  const cols = line.trim().split(/\s+/);
@@ -164794,7 +164891,7 @@ function parseDarwinNetstatHasListener(netstatOutput, port) {
164794
164891
  }
164795
164892
  function listeningPids(port) {
164796
164893
  if (process.platform === "win32") {
164797
- const output3 = (0, import_node_child_process53.execFileSync)("netstat", ["-ano"], {
164894
+ const output3 = (0, import_node_child_process54.execFileSync)("netstat", ["-ano"], {
164798
164895
  encoding: "utf-8",
164799
164896
  timeout: 5e3,
164800
164897
  // `netstat -ano` dumps every socket on the host; Node's default 1 MiB
@@ -164806,7 +164903,7 @@ function listeningPids(port) {
164806
164903
  if (process.platform === "linux") return procListeningPids(port);
164807
164904
  let output2;
164808
164905
  try {
164809
- output2 = (0, import_node_child_process53.execFileSync)(LSOF_BIN2, ["-ti", `tcp:${port}`, "-sTCP:LISTEN"], {
164906
+ output2 = (0, import_node_child_process54.execFileSync)(LSOF_BIN2, ["-ti", `tcp:${port}`, "-sTCP:LISTEN"], {
164810
164907
  encoding: "utf-8",
164811
164908
  timeout: 5e3
164812
164909
  }).trim();
@@ -164814,7 +164911,7 @@ function listeningPids(port) {
164814
164911
  const { status, stderr } = error63;
164815
164912
  if (status !== 1 || stderr?.trim()) throw error63;
164816
164913
  if (process.platform === "darwin") {
164817
- const netstat = (0, import_node_child_process53.execFileSync)(DARWIN_NETSTAT_BIN, ["-an", "-p", "tcp"], {
164914
+ const netstat = (0, import_node_child_process54.execFileSync)(DARWIN_NETSTAT_BIN, ["-an", "-p", "tcp"], {
164818
164915
  encoding: "utf-8",
164819
164916
  timeout: 5e3,
164820
164917
  maxBuffer: 16 * 1024 * 1024
@@ -164910,7 +165007,7 @@ var import_node_url4 = require("node:url");
164910
165007
  init_src2();
164911
165008
 
164912
165009
  // ../tool-server/src/tools/flows/script/flow-script-executor.ts
164913
- var import_node_child_process54 = require("node:child_process");
165010
+ var import_node_child_process55 = require("node:child_process");
164914
165011
  var fs78 = __toESM(require("node:fs"));
164915
165012
  var os16 = __toESM(require("node:os"));
164916
165013
  var path63 = __toESM(require("node:path"));
@@ -165322,7 +165419,7 @@ var FlowScriptExecutor = class {
165322
165419
  detached: process.platform !== "win32",
165323
165420
  windowsHide: process.platform === "win32"
165324
165421
  };
165325
- child = (0, import_node_child_process54.fork)(scriptPath, [], forkOptions);
165422
+ child = (0, import_node_child_process55.fork)(scriptPath, [], forkOptions);
165326
165423
  } catch (err) {
165327
165424
  const reason2 = redactSecrets(errorMessage5(err), request4.secrets ?? []);
165328
165425
  return emptyResult(
@@ -165730,7 +165827,7 @@ function probeTypeStripping(nodeOptions) {
165730
165827
  }
165731
165828
  delete env[RUNNER_ACTIVATION_ENV];
165732
165829
  try {
165733
- (0, import_node_child_process54.execFile)(
165830
+ (0, import_node_child_process55.execFile)(
165734
165831
  process.execPath,
165735
165832
  [...nodeOptions, "-p", "process.features.typescript"],
165736
165833
  { env, timeout: TYPE_STRIPPING_PROBE_TIMEOUT_MS, windowsHide: true },
@@ -165842,7 +165939,7 @@ async function stopProcessTree(child, graceMs) {
165842
165939
  if (process.platform === "win32") {
165843
165940
  if (hasExited(child)) return;
165844
165941
  tryKill(() => {
165845
- const killer = (0, import_node_child_process54.spawn)("taskkill", ["/pid", String(pid), "/t", "/f"], {
165942
+ const killer = (0, import_node_child_process55.spawn)("taskkill", ["/pid", String(pid), "/t", "/f"], {
165846
165943
  windowsHide: true,
165847
165944
  stdio: "ignore"
165848
165945
  });
@@ -167187,7 +167284,7 @@ E2E test selector steps auto-target and cannot provide a bundleId. Bring that ap
167187
167284
  }
167188
167285
  async function terminateCommand(device) {
167189
167286
  if (device.platform === "ios-remote") {
167190
- return `sim-remote simctl terminate ${stripRemotePrefix(device.id)} <bundleId>`;
167287
+ return `${argentCloudCommand()} simctl terminate ${stripRemotePrefix(device.id)} <bundleId>`;
167191
167288
  }
167192
167289
  try {
167193
167290
  const { prefix } = await simctlTargetForUdid(device.id);
@@ -171098,7 +171195,7 @@ init_src2();
171098
171195
  init_device_info();
171099
171196
 
171100
171197
  // ../tool-server/src/tools/screenshot-diff/screenshot-diff.ts
171101
- var import_promises21 = __toESM(require("fs/promises"));
171198
+ var import_promises22 = __toESM(require("fs/promises"));
171102
171199
  var import_path8 = __toESM(require("path"));
171103
171200
  var import_pngjs6 = __toESM(require_png());
171104
171201
  init_src2();
@@ -171106,7 +171203,7 @@ init_src2();
171106
171203
  // ../tool-server/src/tools/screenshot-diff/screenshot-diff-ocr.ts
171107
171204
  var import_child_process12 = require("child_process");
171108
171205
  var import_util18 = require("util");
171109
- var execFileAsync45 = (0, import_util18.promisify)(import_child_process12.execFile);
171206
+ var execFileAsync46 = (0, import_util18.promisify)(import_child_process12.execFile);
171110
171207
  var OCR_TIMEOUT_MS = 1e4;
171111
171208
  var OCR_MAX_BUFFER_BYTES = 32 * 1024 * 1024;
171112
171209
  var TESSERACT_BINARY = "tesseract";
@@ -171151,7 +171248,7 @@ async function extractOcrTextBlocks(imagePath) {
171151
171248
  }
171152
171249
  }
171153
171250
  async function recognizeTsv(imagePath) {
171154
- const { stdout } = await execFileAsync45(
171251
+ const { stdout } = await execFileAsync46(
171155
171252
  TESSERACT_BINARY,
171156
171253
  [
171157
171254
  imagePath,
@@ -172801,7 +172898,7 @@ function outputArtifactBaseName(filePath) {
172801
172898
  }
172802
172899
  async function readPngFile(filePath) {
172803
172900
  try {
172804
- return await import_promises21.default.readFile(filePath);
172901
+ return await import_promises22.default.readFile(filePath);
172805
172902
  } catch (err) {
172806
172903
  throw unreadablePngError(filePath, err);
172807
172904
  }
@@ -172861,8 +172958,8 @@ function luminanceFromOffset(data, offset) {
172861
172958
  return 0.2126 * data[offset] + 0.7152 * data[offset + 1] + 0.0722 * data[offset + 2];
172862
172959
  }
172863
172960
  async function writePngFile(filePath, png) {
172864
- await import_promises21.default.mkdir(import_path8.default.dirname(filePath), { recursive: true });
172865
- await import_promises21.default.writeFile(filePath, import_pngjs6.PNG.sync.write(png, DIFF_PNG_ENCODING));
172961
+ await import_promises22.default.mkdir(import_path8.default.dirname(filePath), { recursive: true });
172962
+ await import_promises22.default.writeFile(filePath, import_pngjs6.PNG.sync.write(png, DIFF_PNG_ENCODING));
172866
172963
  }
172867
172964
  function downscalePng(source, scale) {
172868
172965
  const resized = resizeDecodedPng(
@@ -173454,11 +173551,11 @@ async function turnPngToNative(src, dest, orientation) {
173454
173551
  }
173455
173552
 
173456
173553
  // ../tool-server/src/utils/status-bar.ts
173457
- var import_node_child_process55 = require("node:child_process");
173458
- var import_node_util43 = require("node:util");
173554
+ var import_node_child_process56 = require("node:child_process");
173555
+ var import_node_util44 = require("node:util");
173459
173556
  init_adb();
173460
173557
  init_device_info();
173461
- var execFileAsync46 = (0, import_node_util43.promisify)(import_node_child_process55.execFile);
173558
+ var execFileAsync47 = (0, import_node_util44.promisify)(import_node_child_process56.execFile);
173462
173559
  var DEMO_BROADCAST = "am broadcast -a com.android.systemui.demo";
173463
173560
  var IOS_STATUS_BAR_OVERRIDE = [
173464
173561
  "override",
@@ -173482,7 +173579,7 @@ async function pinStatusBar(device, signal) {
173482
173579
  if (isIosPhysicalDevice(device)) return false;
173483
173580
  try {
173484
173581
  if (device.platform === "ios") {
173485
- await execFileAsync46(
173582
+ await execFileAsync47(
173486
173583
  "xcrun",
173487
173584
  await simctlArgsForUdid(device.id, ["status_bar", device.id, ...IOS_STATUS_BAR_OVERRIDE])
173488
173585
  );
@@ -173518,7 +173615,7 @@ async function pinStatusBar(device, signal) {
173518
173615
  async function restoreStatusBar(device) {
173519
173616
  try {
173520
173617
  if (device.platform === "ios") {
173521
- await execFileAsync46(
173618
+ await execFileAsync47(
173522
173619
  "xcrun",
173523
173620
  await simctlArgsForUdid(device.id, ["status_bar", device.id, "clear"])
173524
173621
  );
@@ -175345,13 +175442,13 @@ Address the e2e test exactly as you will address it in e2e-execute: name or e2e_
175345
175442
  init_zod();
175346
175443
 
175347
175444
  // ../tool-server/src/utils/workspace-reader.ts
175348
- var import_promises22 = require("node:fs/promises");
175349
- var import_node_path33 = require("node:path");
175350
- var import_node_child_process56 = require("node:child_process");
175445
+ var import_promises23 = require("node:fs/promises");
175446
+ var import_node_path34 = require("node:path");
175447
+ var import_node_child_process57 = require("node:child_process");
175351
175448
  var import_dotenv2 = __toESM(require_dist());
175352
175449
  async function exists2(path77) {
175353
175450
  try {
175354
- await (0, import_promises22.access)(path77);
175451
+ await (0, import_promises23.access)(path77);
175355
175452
  return true;
175356
175453
  } catch {
175357
175454
  return false;
@@ -175359,7 +175456,7 @@ async function exists2(path77) {
175359
175456
  }
175360
175457
  async function isDirectory2(path77) {
175361
175458
  try {
175362
- const s = await (0, import_promises22.stat)(path77);
175459
+ const s = await (0, import_promises23.stat)(path77);
175363
175460
  return s.isDirectory();
175364
175461
  } catch {
175365
175462
  return false;
@@ -175367,7 +175464,7 @@ async function isDirectory2(path77) {
175367
175464
  }
175368
175465
  async function readJsonFile(path77) {
175369
175466
  try {
175370
- const raw = await (0, import_promises22.readFile)(path77, "utf-8");
175467
+ const raw = await (0, import_promises23.readFile)(path77, "utf-8");
175371
175468
  return JSON.parse(raw);
175372
175469
  } catch {
175373
175470
  return null;
@@ -175375,14 +175472,14 @@ async function readJsonFile(path77) {
175375
175472
  }
175376
175473
  async function readTextFile(path77) {
175377
175474
  try {
175378
- return await (0, import_promises22.readFile)(path77, "utf-8");
175475
+ return await (0, import_promises23.readFile)(path77, "utf-8");
175379
175476
  } catch {
175380
175477
  return null;
175381
175478
  }
175382
175479
  }
175383
175480
  async function listDir(path77) {
175384
175481
  try {
175385
- const entries = await (0, import_promises22.readdir)(path77);
175482
+ const entries = await (0, import_promises23.readdir)(path77);
175386
175483
  return entries;
175387
175484
  } catch {
175388
175485
  return null;
@@ -175391,7 +175488,7 @@ async function listDir(path77) {
175391
175488
  var COMMAND_TIMEOUT_MS = 3e3;
175392
175489
  function runVersionCommand(cmd, args, cwd) {
175393
175490
  return new Promise((resolve24) => {
175394
- const child = (0, import_node_child_process56.execFile)(cmd, args, { cwd, timeout: COMMAND_TIMEOUT_MS }, (err, stdout) => {
175491
+ const child = (0, import_node_child_process57.execFile)(cmd, args, { cwd, timeout: COMMAND_TIMEOUT_MS }, (err, stdout) => {
175395
175492
  if (err) {
175396
175493
  resolve24(null);
175397
175494
  return;
@@ -175434,7 +175531,7 @@ async function detectLockfile(workspacePath) {
175434
175531
  const checks = await Promise.all(
175435
175532
  LOCKFILES.map(async (name) => ({
175436
175533
  name,
175437
- exists: await exists2((0, import_node_path33.join)(workspacePath, name))
175534
+ exists: await exists2((0, import_node_path34.join)(workspacePath, name))
175438
175535
  }))
175439
175536
  );
175440
175537
  return checks.find((c) => c.exists)?.name ?? null;
@@ -175453,7 +175550,7 @@ var CI_CONFIGS = [
175453
175550
  ];
175454
175551
  async function detectCiConfig(workspacePath) {
175455
175552
  for (const ci of CI_CONFIGS) {
175456
- if (await exists2((0, import_node_path33.join)(workspacePath, ci.path))) return ci.label;
175553
+ if (await exists2((0, import_node_path34.join)(workspacePath, ci.path))) return ci.label;
175457
175554
  }
175458
175555
  return null;
175459
175556
  }
@@ -175474,7 +175571,7 @@ async function detectLintStagedConfig(workspacePath, packageJson) {
175474
175571
  return packageJson["lint-staged"];
175475
175572
  }
175476
175573
  for (const file2 of LINT_STAGED_FILES) {
175477
- const full = (0, import_node_path33.join)(workspacePath, file2);
175574
+ const full = (0, import_node_path34.join)(workspacePath, file2);
175478
175575
  if (await exists2(full)) {
175479
175576
  if (file2.endsWith(".json") || file2 === ".lintstagedrc") {
175480
175577
  return readJsonFile(full);
@@ -175516,7 +175613,7 @@ var CONFIG_FILES = [
175516
175613
  async function detectConfigFiles(workspacePath) {
175517
175614
  const results = await Promise.allSettled(
175518
175615
  CONFIG_FILES.map(async (file2) => {
175519
- if (await exists2((0, import_node_path33.join)(workspacePath, file2))) return file2;
175616
+ if (await exists2((0, import_node_path34.join)(workspacePath, file2))) return file2;
175520
175617
  return null;
175521
175618
  })
175522
175619
  );
@@ -175555,7 +175652,7 @@ async function detectEnvFiles(workspacePath) {
175555
175652
  const envFileNames = entries.filter((e) => e === ".env" || e.startsWith(".env."));
175556
175653
  const results = await Promise.all(
175557
175654
  envFileNames.map(async (name) => {
175558
- const content = await readTextFile((0, import_node_path33.join)(workspacePath, name));
175655
+ const content = await readTextFile((0, import_node_path34.join)(workspacePath, name));
175559
175656
  return {
175560
175657
  name,
175561
175658
  keys: content ? extractEnvKeys(content) : []
@@ -175582,34 +175679,34 @@ async function readWorkspaceSnapshot(workspacePath) {
175582
175679
  ciConfig,
175583
175680
  configFilesFound
175584
175681
  ] = await Promise.all([
175585
- readJsonFile((0, import_node_path33.join)(workspacePath, "package.json")),
175586
- readJsonFile((0, import_node_path33.join)(workspacePath, "app.json")),
175587
- readJsonFile((0, import_node_path33.join)(workspacePath, "eas.json")),
175588
- readJsonFile((0, import_node_path33.join)(workspacePath, "tsconfig.json")),
175589
- readTextFile((0, import_node_path33.join)(workspacePath, "metro.config.js")).then(
175590
- (r) => r ?? readTextFile((0, import_node_path33.join)(workspacePath, "metro.config.ts"))
175682
+ readJsonFile((0, import_node_path34.join)(workspacePath, "package.json")),
175683
+ readJsonFile((0, import_node_path34.join)(workspacePath, "app.json")),
175684
+ readJsonFile((0, import_node_path34.join)(workspacePath, "eas.json")),
175685
+ readJsonFile((0, import_node_path34.join)(workspacePath, "tsconfig.json")),
175686
+ readTextFile((0, import_node_path34.join)(workspacePath, "metro.config.js")).then(
175687
+ (r) => r ?? readTextFile((0, import_node_path34.join)(workspacePath, "metro.config.ts"))
175591
175688
  ),
175592
- readTextFile((0, import_node_path33.join)(workspacePath, "babel.config.js")).then(
175593
- (r) => r ?? readTextFile((0, import_node_path33.join)(workspacePath, "babel.config.cjs"))
175689
+ readTextFile((0, import_node_path34.join)(workspacePath, "babel.config.js")).then(
175690
+ (r) => r ?? readTextFile((0, import_node_path34.join)(workspacePath, "babel.config.cjs"))
175594
175691
  ),
175595
- isDirectory2((0, import_node_path33.join)(workspacePath, "ios")),
175596
- isDirectory2((0, import_node_path33.join)(workspacePath, "android")),
175692
+ isDirectory2((0, import_node_path34.join)(workspacePath, "ios")),
175693
+ isDirectory2((0, import_node_path34.join)(workspacePath, "android")),
175597
175694
  detectLockfile(workspacePath),
175598
175695
  detectEnvFiles(workspacePath),
175599
175696
  detectToolVersions(workspacePath),
175600
- listDir((0, import_node_path33.join)(workspacePath, "scripts")),
175601
- listDir((0, import_node_path33.join)(workspacePath, ".husky")),
175697
+ listDir((0, import_node_path34.join)(workspacePath, "scripts")),
175698
+ listDir((0, import_node_path34.join)(workspacePath, ".husky")),
175602
175699
  detectCiConfig(workspacePath),
175603
175700
  detectConfigFiles(workspacePath)
175604
175701
  ]);
175605
- const iosDir = (0, import_node_path33.join)(workspacePath, "ios");
175606
- const androidDir = (0, import_node_path33.join)(workspacePath, "android");
175702
+ const iosDir = (0, import_node_path34.join)(workspacePath, "ios");
175703
+ const androidDir = (0, import_node_path34.join)(workspacePath, "android");
175607
175704
  const [iosWorkspace, iosHasPodfile, makefileText, lintStagedConfig, androidHasGradle] = await Promise.all([
175608
175705
  hasIosDir ? findIosWorkspace(iosDir) : Promise.resolve(null),
175609
- exists2((0, import_node_path33.join)(workspacePath, "ios", "Podfile")),
175610
- readTextFile((0, import_node_path33.join)(workspacePath, "Makefile")),
175706
+ exists2((0, import_node_path34.join)(workspacePath, "ios", "Podfile")),
175707
+ readTextFile((0, import_node_path34.join)(workspacePath, "Makefile")),
175611
175708
  detectLintStagedConfig(workspacePath, packageJson),
175612
- hasAndroidDir ? exists2((0, import_node_path33.join)(androidDir, "gradlew")) : Promise.resolve(false)
175709
+ hasAndroidDir ? exists2((0, import_node_path34.join)(androidDir, "gradlew")) : Promise.resolve(false)
175613
175710
  ]);
175614
175711
  const metroPort2 = metroConfigRaw ? extractMetroPort(metroConfigRaw) : null;
175615
175712
  const makefileTargets = makefileText ? extractMakefileTargets(makefileText) : null;
@@ -175720,8 +175817,8 @@ var dismissUpdateTool = {
175720
175817
 
175721
175818
  // ../tool-server/src/tools/screenshot-diff/index.ts
175722
175819
  var import_node_crypto25 = __toESM(require("node:crypto"));
175723
- var import_promises23 = __toESM(require("fs/promises"));
175724
- var import_node_os17 = __toESM(require("node:os"));
175820
+ var import_promises24 = __toESM(require("fs/promises"));
175821
+ var import_node_os18 = __toESM(require("node:os"));
175725
175822
  var import_path9 = __toESM(require("path"));
175726
175823
  init_zod();
175727
175824
  init_src2();
@@ -175854,18 +175951,18 @@ async function resolveOutputDir(params, options) {
175854
175951
  }
175855
175952
  if (params.outputDir) {
175856
175953
  try {
175857
- await import_promises23.default.mkdir(params.outputDir);
175954
+ await import_promises24.default.mkdir(params.outputDir);
175858
175955
  return params.outputDir;
175859
175956
  } catch (err) {
175860
175957
  if (err.code === "EEXIST") return params.outputDir;
175861
175958
  }
175862
175959
  }
175863
175960
  const dir = import_path9.default.join(
175864
- import_node_os17.default.tmpdir(),
175961
+ import_node_os18.default.tmpdir(),
175865
175962
  "argent-screenshot-diff",
175866
175963
  import_node_crypto25.default.randomBytes(6).toString("hex")
175867
175964
  );
175868
- await import_promises23.default.mkdir(dir, { recursive: true });
175965
+ await import_promises24.default.mkdir(dir, { recursive: true });
175869
175966
  return dir;
175870
175967
  }
175871
175968
  async function resolveInputPaths(services, params, outputDir, options, captureScreenshot2, peekFor) {
@@ -175970,8 +176067,8 @@ async function captureIosDeviceLiveInput(params) {
175970
176067
  async function writeLivePng(outputDir, name, png) {
175971
176068
  const suffix = import_node_crypto25.default.randomBytes(4).toString("hex");
175972
176069
  const destination = import_path9.default.join(outputDir, `${name}-${suffix}.live.png`);
175973
- await import_promises23.default.mkdir(outputDir, { recursive: true });
175974
- await import_promises23.default.writeFile(destination, png);
176070
+ await import_promises24.default.mkdir(outputDir, { recursive: true });
176071
+ await import_promises24.default.writeFile(destination, png);
175975
176072
  return destination;
175976
176073
  }
175977
176074
  async function captureHarmonyLiveInput(params) {
@@ -175989,10 +176086,10 @@ async function captureHarmonyLiveInput(params) {
175989
176086
  const suffix = import_node_crypto25.default.randomBytes(4).toString("hex");
175990
176087
  const destination = import_path9.default.join(params.outputDir, `${params.name}-${suffix}.live.png`);
175991
176088
  try {
175992
- await import_promises23.default.mkdir(params.outputDir, { recursive: true });
175993
- await import_promises23.default.copyFile(captured, destination);
176089
+ await import_promises24.default.mkdir(params.outputDir, { recursive: true });
176090
+ await import_promises24.default.copyFile(captured, destination);
175994
176091
  } finally {
175995
- await import_promises23.default.rm(captured, { force: true }).catch(() => {
176092
+ await import_promises24.default.rm(captured, { force: true }).catch(() => {
175996
176093
  });
175997
176094
  }
175998
176095
  return destination;
@@ -176011,8 +176108,8 @@ async function captureLiveInput(params) {
176011
176108
  );
176012
176109
  const suffix = import_node_crypto25.default.randomBytes(4).toString("hex");
176013
176110
  const destination = import_path9.default.join(params.outputDir, `${params.name}-${suffix}.live.png`);
176014
- await import_promises23.default.mkdir(params.outputDir, { recursive: true });
176015
- await import_promises23.default.copyFile(capture.path, destination);
176111
+ await import_promises24.default.mkdir(params.outputDir, { recursive: true });
176112
+ await import_promises24.default.copyFile(capture.path, destination);
176016
176113
  const warning = [panel?.warning, capture.note].filter((w) => w !== void 0).join(" ");
176017
176114
  return { path: destination, ...warning ? { warning } : {} };
176018
176115
  }
@@ -177078,15 +177175,15 @@ function createLensTools(registry2) {
177078
177175
  }
177079
177176
 
177080
177177
  // ../tool-server/src/utils/host-deps-report.ts
177081
- var import_node_child_process57 = require("node:child_process");
177082
- var import_node_fs24 = require("node:fs");
177083
- var import_node_path34 = require("node:path");
177084
- var import_node_util44 = require("node:util");
177178
+ var import_node_child_process58 = require("node:child_process");
177179
+ var import_node_fs25 = require("node:fs");
177180
+ var import_node_path35 = require("node:path");
177181
+ var import_node_util45 = require("node:util");
177085
177182
  init_android_binary();
177086
- var execFileAsync47 = (0, import_node_util44.promisify)(import_node_child_process57.execFile);
177183
+ var execFileAsync48 = (0, import_node_util45.promisify)(import_node_child_process58.execFile);
177087
177184
  async function activeDeveloperDir2() {
177088
177185
  try {
177089
- const { stdout } = await execFileAsync47("xcode-select", ["-p"], { timeout: 5e3 });
177186
+ const { stdout } = await execFileAsync48("xcode-select", ["-p"], { timeout: 5e3 });
177090
177187
  return stdout.trim() || null;
177091
177188
  } catch {
177092
177189
  return null;
@@ -177095,7 +177192,7 @@ async function activeDeveloperDir2() {
177095
177192
  async function probeXcode() {
177096
177193
  if (process.platform !== "darwin") return null;
177097
177194
  const developerDir2 = await activeDeveloperDir2();
177098
- const simctl = developerDir2 !== null && (0, import_node_fs24.existsSync)((0, import_node_path34.join)(developerDir2, "usr", "bin", "simctl"));
177195
+ const simctl = developerDir2 !== null && (0, import_node_fs25.existsSync)((0, import_node_path35.join)(developerDir2, "usr", "bin", "simctl"));
177099
177196
  const firstLaunch = simctl && xcodeFirstLaunchPending("simctl") ? xcodeInstallInstruction() : null;
177100
177197
  return { developerDir: developerDir2, simctl, firstLaunch };
177101
177198
  }
@@ -177126,7 +177223,7 @@ function probeArgentToolServer(host, port, timeoutMs = 500) {
177126
177223
  }
177127
177224
 
177128
177225
  // ../tool-server/src/utils/preview-window.ts
177129
- var import_node_child_process58 = require("node:child_process");
177226
+ var import_node_child_process59 = require("node:child_process");
177130
177227
  var fs92 = __toESM(require("node:fs"));
177131
177228
  var os21 = __toESM(require("node:os"));
177132
177229
  var path75 = __toESM(require("node:path"));
@@ -177158,10 +177255,10 @@ function ensureLensAppBundle(electronBin) {
177158
177255
  fs92.copyFileSync(path75.join(realContents, "Info.plist"), plist);
177159
177256
  const setPlist = (entry, value) => {
177160
177257
  try {
177161
- (0, import_node_child_process58.execFileSync)("/usr/libexec/PlistBuddy", ["-c", `Set :${entry} ${value}`, plist]);
177258
+ (0, import_node_child_process59.execFileSync)("/usr/libexec/PlistBuddy", ["-c", `Set :${entry} ${value}`, plist]);
177162
177259
  } catch {
177163
177260
  try {
177164
- (0, import_node_child_process58.execFileSync)("/usr/libexec/PlistBuddy", ["-c", `Add :${entry} string ${value}`, plist]);
177261
+ (0, import_node_child_process59.execFileSync)("/usr/libexec/PlistBuddy", ["-c", `Add :${entry} string ${value}`, plist]);
177165
177262
  } catch {
177166
177263
  }
177167
177264
  }
@@ -177220,7 +177317,7 @@ function createPreviewWindowManager(opts = {}) {
177220
177317
  const wrapperBin = ensureLensAppBundle(electronBin);
177221
177318
  const launchBin = wrapperBin ?? electronBin;
177222
177319
  const launchArgs = wrapperBin ? ["--no-sandbox", mainScript] : [mainScript];
177223
- const next = (0, import_node_child_process58.spawn)(launchBin, launchArgs, {
177320
+ const next = (0, import_node_child_process59.spawn)(launchBin, launchArgs, {
177224
177321
  // Strips ELECTRON_RUN_AS_NODE, which an Electron-based MCP host leaves in
177225
177322
  // our env, so the child boots as a GUI app instead of bare Node.
177226
177323
  env: electronGuiChildEnv({ ARGENT_PREVIEW_URL: url2 }),