@swmansion/argent 0.36.1-next.7 → 0.36.1-next.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli-cmds.mjs CHANGED
@@ -39193,7 +39193,7 @@ function isCi(env = process.env) {
39193
39193
  var SESSION_ID2 = randomUUID5();
39194
39194
  function readCliVersion() {
39195
39195
  if (true) {
39196
- return "0.36.1-next.7";
39196
+ return "0.36.1-next.8";
39197
39197
  }
39198
39198
  return "0.0.0";
39199
39199
  }
@@ -17199,7 +17199,7 @@ function isCi(env = process.env) {
17199
17199
  var SESSION_ID = randomUUID4();
17200
17200
  function readCliVersion() {
17201
17201
  if (true) {
17202
- return "0.36.1-next.7";
17202
+ return "0.36.1-next.8";
17203
17203
  }
17204
17204
  return "0.0.0";
17205
17205
  }
@@ -38677,7 +38677,7 @@ async function startMcpServer(options) {
38677
38677
  const autoDescribeOn = autoDescribeEnabled();
38678
38678
  const whatsNewOn = whatsNewEnabled();
38679
38679
  const installedVersion = getInstalledVersion();
38680
- const highlightsVersion = true ? "0.36.1-next.7" : installedVersion;
38680
+ const highlightsVersion = true ? "0.36.1-next.8" : installedVersion;
38681
38681
  const captureTimeoutMs = options.captureTimeoutMs ?? CAPTURE_TIMEOUT_MS;
38682
38682
  const trees = createTreeMemory();
38683
38683
  const screenshots = createScreenshotMemory();
@@ -73485,7 +73485,7 @@ function isCi(env = process.env) {
73485
73485
  var SESSION_ID = (0, import_node_crypto4.randomUUID)();
73486
73486
  function readCliVersion() {
73487
73487
  if (true) {
73488
- return "0.36.1-next.7";
73488
+ return "0.36.1-next.8";
73489
73489
  }
73490
73490
  return "0.0.0";
73491
73491
  }
@@ -100313,6 +100313,9 @@ async function connectMoq(info, options = {}) {
100313
100313
  try {
100314
100314
  return await connection_exports.connect(url2, {
100315
100315
  webtransport: {
100316
+ // Every endpoint is QUIC or the WebSocket below. A client that
100317
+ // retries over HTTP/2 only delays the real error.
100318
+ requireUnreliable: true,
100316
100319
  ...options.webtransport,
100317
100320
  serverCertificateHashes: [{ algorithm: "sha-256", value: fingerprint }]
100318
100321
  },
@@ -100725,23 +100728,58 @@ var MoqDeviceSession = class {
100725
100728
  };
100726
100729
 
100727
100730
  // ../../node_modules/@swmansion/argent-cloud-sdk/dist/node.js
100731
+ var POLYFILL = "@fails-components/webtransport";
100732
+ var QUIC_ADDON = "@fails-components/webtransport-transport-http3-quiche";
100728
100733
  var ready = null;
100729
100734
  function installNodeWebTransport() {
100730
- if (ready) return ready;
100731
- ready = (async () => {
100732
- const globals = globalThis;
100733
- if (typeof globals.WebSocket === "undefined") {
100734
- const ws = await Promise.resolve().then(() => (init_wrapper(), wrapper_exports));
100735
- globals.WebSocket = ws.default;
100736
- }
100737
- if (typeof globals.WebTransport === "undefined") {
100738
- const wt = await import("@fails-components/webtransport");
100739
- globals.WebTransport = wt.WebTransport;
100740
- await wt.quicheLoaded;
100741
- }
100742
- })();
100735
+ ready ??= install();
100743
100736
  return ready;
100744
100737
  }
100738
+ async function install() {
100739
+ const globals = globalThis;
100740
+ if (typeof globals.WebSocket === "undefined") {
100741
+ const ws = await Promise.resolve().then(() => (init_wrapper(), wrapper_exports));
100742
+ globals.WebSocket = ws.default;
100743
+ }
100744
+ if (typeof globals.WebTransport !== "undefined") return { available: true };
100745
+ try {
100746
+ await import("@fails-components/webtransport-transport-http3-quiche");
100747
+ } catch (cause) {
100748
+ const missing = isNotInstalled(cause);
100749
+ return { available: false, cause: missing ? notInstalled(QUIC_ADDON, cause) : addonNotBuilt(cause) };
100750
+ }
100751
+ try {
100752
+ const wt = await import("@fails-components/webtransport");
100753
+ await wt.quicheLoaded;
100754
+ globals.WebTransport = wt.WebTransport;
100755
+ return { available: true };
100756
+ } catch (cause) {
100757
+ const missing = isNotInstalled(cause);
100758
+ return { available: false, cause: missing ? notInstalled(POLYFILL, cause) : didNotLoad(POLYFILL, cause) };
100759
+ }
100760
+ }
100761
+ function isNotInstalled(cause) {
100762
+ return cause?.code === "ERR_MODULE_NOT_FOUND";
100763
+ }
100764
+ function notInstalled(peer, cause) {
100765
+ return new Error(
100766
+ `QUIC is unavailable: ${peer} is not installed. QUIC needs both ${POLYFILL} and ${QUIC_ADDON}.`,
100767
+ { cause }
100768
+ );
100769
+ }
100770
+ function didNotLoad(peer, cause) {
100771
+ return new Error(`QUIC is unavailable: ${peer} did not load (${firstLine(cause)}).`, { cause });
100772
+ }
100773
+ function addonNotBuilt(cause) {
100774
+ return new Error(
100775
+ `QUIC is unavailable: the native addon of ${QUIC_ADDON} did not load (${firstLine(cause)}). Its install script downloads the binary, and the package manager did not run it. Allow that script and run it with the package manager's own command; a second install alone does not run it. Then restart this process: Node does not retry a failed load.`,
100776
+ { cause }
100777
+ );
100778
+ }
100779
+ function firstLine(cause) {
100780
+ const [line = ""] = (cause instanceof Error ? cause.message : String(cause)).split("\n");
100781
+ return line;
100782
+ }
100745
100783
 
100746
100784
  // ../tool-server/src/utils/sim-remote.ts
100747
100785
  var import_node_child_process16 = require("node:child_process");
@@ -100962,9 +101000,26 @@ var PUBLISH_PATH = "argent";
100962
101000
  async function openMoqClient(udid) {
100963
101001
  return openMoqClientFromInfo(await moqInfo(udid));
100964
101002
  }
101003
+ var warnedNoQuic = false;
101004
+ var QUIC_MODULE_FIX = "The command for each package manager is at https://docs.swmansion.com/argent/docs/cloud/integrations/argent#the-quic-module. The process to restart is Argent's tool server: run `argent server stop`, and the next tool call starts a new one.";
101005
+ async function connect2(info) {
101006
+ const quic = await installNodeWebTransport();
101007
+ if (quic.available) return connectMoq(info);
101008
+ try {
101009
+ const connection = await connectMoq(info);
101010
+ if (!warnedNoQuic) {
101011
+ warnedNoQuic = true;
101012
+ process.stderr.write(`[moq] connected over WebSocket. ${quic.cause.message}
101013
+ `);
101014
+ }
101015
+ return connection;
101016
+ } catch (err) {
101017
+ const failure3 = err instanceof Error ? err.message : String(err);
101018
+ throw new Error(`${failure3}. ${quic.cause.message} ${QUIC_MODULE_FIX}`, { cause: err });
101019
+ }
101020
+ }
100965
101021
  async function openMoqClientFromInfo(info) {
100966
- await installNodeWebTransport();
100967
- const session = new MoqDeviceSession(await connectMoq(info), { publishPath: PUBLISH_PATH });
101022
+ const session = new MoqDeviceSession(await connect2(info), { publishPath: PUBLISH_PATH });
100968
101023
  let closed = false;
100969
101024
  disposeWhenTransportDies(session, () => closed = true);
100970
101025
  const refuseClosed = (send) => closed ? Promise.reject(new Error("MoQ session is closed")) : send();
@@ -101462,7 +101517,7 @@ function parseDisplaysPayload(json2) {
101462
101517
  if (activeScreen === void 0) return null;
101463
101518
  return { activeScreen, panels };
101464
101519
  }
101465
- function firstLine(err) {
101520
+ function firstLine2(err) {
101466
101521
  const text = err instanceof Error ? err.message : String(err);
101467
101522
  return text.split("\n")[0]?.trim() || "unknown error";
101468
101523
  }
@@ -101490,7 +101545,7 @@ async function readCoreDeviceDisplays(udid) {
101490
101545
  const timedOut3 = err?.signal === "SIGKILL";
101491
101546
  return {
101492
101547
  displays: null,
101493
- reason: timedOut3 ? `CoreDevice did not answer within ${DEVICECTL_TIMEOUT_MS / 1e3} s` : `CoreDevice failed (${firstLine(err)})`
101548
+ reason: timedOut3 ? `CoreDevice did not answer within ${DEVICECTL_TIMEOUT_MS / 1e3} s` : `CoreDevice failed (${firstLine2(err)})`
101494
101549
  };
101495
101550
  }
101496
101551
  let payload;
@@ -101516,7 +101571,7 @@ async function askAxService(udid) {
101516
101571
  case "timeout":
101517
101572
  return `the accessibility service did not answer within ${AX_LIVE_PANEL_TIMEOUT_MS / 1e3} s`;
101518
101573
  case "error":
101519
- return `the accessibility service failed (${firstLine(settled.cause)})`;
101574
+ return `the accessibility service failed (${firstLine2(settled.cause)})`;
101520
101575
  case "aborted":
101521
101576
  return "the accessibility service read was aborted";
101522
101577
  }
@@ -106116,7 +106171,7 @@ async function runDevicectl(args, action, opts = {}) {
106116
106171
  }
106117
106172
  }
106118
106173
  throw withFailureSignal(
106119
- new IosDeviceControlError(`Failed to ${action}: ${firstLine2(e.stderr || e.message)}`, {
106174
+ new IosDeviceControlError(`Failed to ${action}: ${firstLine3(e.stderr || e.message)}`, {
106120
106175
  hint: resolveDevicectlHint(output2, opts.bundleId),
106121
106176
  cause: Object.assign(error63, { devicectlJson: errorJson })
106122
106177
  }),
@@ -106133,7 +106188,7 @@ async function runDevicectl(args, action, opts = {}) {
106133
106188
  });
106134
106189
  }
106135
106190
  }
106136
- function firstLine2(text) {
106191
+ function firstLine3(text) {
106137
106192
  return (text ?? "").trim().split("\n")[0] ?? "";
106138
106193
  }
106139
106194
  async function listIosPhysicalDevices() {
@@ -131090,7 +131145,7 @@ function createInspector(serial, packageName, initialMetroPort) {
131090
131145
  } catch (err) {
131091
131146
  attachedProcesses.delete(key2);
131092
131147
  checkpoint();
131093
- note = `attach-agent failed for pid ${proc.pid} (${firstLine3(adbFailureDetail(err))}); the next launch or network-capture-start tries again`;
131148
+ note = `attach-agent failed for pid ${proc.pid} (${firstLine4(adbFailureDetail(err))}); the next launch or network-capture-start tries again`;
131094
131149
  log2(note);
131095
131150
  return "attach_failed";
131096
131151
  }
@@ -131112,7 +131167,7 @@ function createInspector(serial, packageName, initialMetroPort) {
131112
131167
  if (awaiting === target) target.reason = reason2;
131113
131168
  } catch (err) {
131114
131169
  log2(
131115
- `could not read the agent's logcat lines for pid ${proc.pid}: ${firstLine3(adbFailureDetail(err))}`
131170
+ `could not read the agent's logcat lines for pid ${proc.pid}: ${firstLine4(adbFailureDetail(err))}`
131116
131171
  );
131117
131172
  }
131118
131173
  return target.reason;
@@ -131167,7 +131222,7 @@ function createInspector(serial, packageName, initialMetroPort) {
131167
131222
  );
131168
131223
  } catch (err) {
131169
131224
  log2(
131170
- `could not remove the agent's session file for Android user ${forUser}: ${firstLine3(adbFailureDetail(err))}`
131225
+ `could not remove the agent's session file for Android user ${forUser}: ${firstLine4(adbFailureDetail(err))}`
131171
131226
  );
131172
131227
  }
131173
131228
  })
@@ -131887,7 +131942,7 @@ function createInspector(serial, packageName, initialMetroPort) {
131887
131942
  if (isUnavailableFailure(err)) return unavailableStart(errorMessage3(err));
131888
131943
  live = true;
131889
131944
  unavailableReason2 = void 0;
131890
- const reason2 = isOwnFailure(err) ? errorMessage3(err) : `adb did not answer (${firstLine3(adbFailureDetail(err))}); the next launch or network-capture-start tries again`;
131945
+ const reason2 = isOwnFailure(err) ? errorMessage3(err) : `adb did not answer (${firstLine4(adbFailureDetail(err))}); the next launch or network-capture-start tries again`;
131891
131946
  log2(reason2);
131892
131947
  note = reason2;
131893
131948
  startNote = reason2;
@@ -131992,7 +132047,7 @@ function createInspector(serial, packageName, initialMetroPort) {
131992
132047
  } catch (err) {
131993
132048
  if (disposed) return void 0;
131994
132049
  if (err instanceof InspectorStopped) return stoppedLaunchNote(packageName);
131995
- return `native network capture could not follow this launch of ${packageName}: ${firstLine3(isOwnFailure(err) ? errorMessage3(err) : adbFailureDetail(err))}`;
132050
+ return `native network capture could not follow this launch of ${packageName}: ${firstLine4(isOwnFailure(err) ? errorMessage3(err) : adbFailureDetail(err))}`;
131996
132051
  }
131997
132052
  if (outcome.kind === "attached") await waitForArmed(processKey(outcome.proc), ARM_WAIT_MS2);
131998
132053
  const reason2 = "proc" in outcome && !armedFor(processKey(outcome.proc)) ? await refreshAgentReason(outcome.proc) : void 0;
@@ -132240,7 +132295,7 @@ function adbFailureDetail(err) {
132240
132295
  const at = message.indexOf(marker);
132241
132296
  return (at >= 0 ? message.slice(at + marker.length) : message).trim();
132242
132297
  }
132243
- function firstLine3(detail) {
132298
+ function firstLine4(detail) {
132244
132299
  const lines = detail.split("\n").map((line) => line.trim()).filter(Boolean);
132245
132300
  const thrown = lines.map((line) => /^[\w.$]+(?:Exception|Error): (.+)$/.exec(line)?.[1]).find(Boolean);
132246
132301
  return capString(thrown ?? lines[0] ?? detail, 300);
@@ -136383,10 +136438,10 @@ async function installNetworkInterceptor(cdp, payload, runtimeApp) {
136383
136438
  if (neverSent(err)) capture.installed = before;
136384
136439
  throw err;
136385
136440
  }
136386
- const install = parseInstall(await cdp.evaluate(NETWORK_INTERCEPTOR_SCRIPT));
136387
- if (install.installed || install.reason === "already installed") return { installed: true };
136388
- if (install.reason === NO_XHR_YET) capture.installed = before;
136389
- return install;
136441
+ const install2 = parseInstall(await cdp.evaluate(NETWORK_INTERCEPTOR_SCRIPT));
136442
+ if (install2.installed || install2.reason === "already installed") return { installed: true };
136443
+ if (install2.reason === NO_XHR_YET) capture.installed = before;
136444
+ return install2;
136390
136445
  }
136391
136446
  function neverSent(err) {
136392
136447
  const code = getFailureSignal(err)?.error_code;
@@ -140414,7 +140469,7 @@ async function terminateHarmonyApp(connectKey, bundleId) {
140414
140469
  );
140415
140470
  if (stdout.includes(AA_STOP_SUCCESS)) return;
140416
140471
  throw new FailureError(
140417
- `Failed to stop '${bundleId}' on HarmonyOS device '${connectKey}': ${firstLine4(stdout)}`,
140472
+ `Failed to stop '${bundleId}' on HarmonyOS device '${connectKey}': ${firstLine5(stdout)}`,
140418
140473
  {
140419
140474
  error_code: FAILURE_CODES.HARMONY_ABILITY_STOP_FAILED,
140420
140475
  failure_stage: "harmony_force_stop",
@@ -140447,7 +140502,7 @@ async function openHarmonyUrl(connectKey, url2) {
140447
140502
  );
140448
140503
  if (!stdout.includes(AA_SUCCESS)) {
140449
140504
  throw new FailureError(
140450
- `HarmonyOS device '${connectKey}' could not open '${url2}': ${firstLine4(stdout)}. If no installed app claims the scheme \`aa\` reports \`10103101\`; either way the device may now be showing a chooser dialog.`,
140505
+ `HarmonyOS device '${connectKey}' could not open '${url2}': ${firstLine5(stdout)}. If no installed app claims the scheme \`aa\` reports \`10103101\`; either way the device may now be showing a chooser dialog.`,
140451
140506
  {
140452
140507
  error_code: FAILURE_CODES.HARMONY_ABILITY_START_FAILED,
140453
140508
  failure_stage: "harmony_open_url",
@@ -140461,7 +140516,7 @@ async function openHarmonyUrl(connectKey, url2) {
140461
140516
  function assertAbilityStarted(stdout, connectKey, bundleId) {
140462
140517
  if (stdout.includes(AA_SUCCESS)) return;
140463
140518
  throw new FailureError(
140464
- `Failed to launch '${bundleId}' on HarmonyOS device '${connectKey}': ${firstLine4(stdout)}`,
140519
+ `Failed to launch '${bundleId}' on HarmonyOS device '${connectKey}': ${firstLine5(stdout)}`,
140465
140520
  {
140466
140521
  error_code: FAILURE_CODES.HARMONY_ABILITY_START_FAILED,
140467
140522
  failure_stage: "harmony_ability_start",
@@ -140471,7 +140526,7 @@ function assertAbilityStarted(stdout, connectKey, bundleId) {
140471
140526
  }
140472
140527
  );
140473
140528
  }
140474
- function firstLine4(stdout) {
140529
+ function firstLine5(stdout) {
140475
140530
  const lines = stdout.split(/\r?\n/).map((l) => l.trim()).filter((l) => l.length > 0);
140476
140531
  if (lines.length === 0) return "the ability assistant printed nothing";
140477
140532
  const coded = lines.find((l) => l.startsWith("Error Code:"));
@@ -141359,9 +141414,9 @@ var harmonyImpl3 = {
141359
141414
  if (!uninstall.stdout.includes(UNINSTALLED) && !uninstall.stdout.includes(NOT_INSTALLED)) {
141360
141415
  throw reinstallFailure("uninstall", connectKey, bundleId, uninstall);
141361
141416
  }
141362
- const install = await runHdc(["-t", connectKey, "install", absolute], 18e4);
141363
- if (!install.stdout.includes(INSTALLED)) {
141364
- throw reinstallFailure("install", connectKey, bundleId, install);
141417
+ const install2 = await runHdc(["-t", connectKey, "install", absolute], 18e4);
141418
+ if (!install2.stdout.includes(INSTALLED)) {
141419
+ throw reinstallFailure("install", connectKey, bundleId, install2);
141365
141420
  }
141366
141421
  return { reinstalled: true, bundleId };
141367
141422
  }
@@ -149586,7 +149641,7 @@ init_zod();
149586
149641
  var import_bytes3 = __toESM(require_bytes());
149587
149642
  init_device_info();
149588
149643
  var ITEMS_PER_PAGE = 50;
149589
- function notInstalled(installError) {
149644
+ function notInstalled2(installError) {
149590
149645
  return installError ? `Network interceptor could not be installed in the app's JS runtime: ${installError}` : "Network interceptor not installed: the app's JS runtime reloaded, which clears captured requests. Call view-network-logs again to reinstall it, then repeat the action that sends the requests.";
149591
149646
  }
149592
149647
  var NOT_STARTED = "Network capture is not started for this app, so no requests are recorded. Call network-capture-start with udid and bundleId, repeat the action, then";
@@ -149796,7 +149851,7 @@ Returns a paginated list of request IDs, status, size, and timing. Fails if Chro
149796
149851
  (err) => err instanceof Error ? err.message : String(err)
149797
149852
  );
149798
149853
  return renderJsLog(api.cdp, port, params.pageIndex, redact2, {
149799
- noLog: () => notInstalled(installError),
149854
+ noLog: () => notInstalled2(installError),
149800
149855
  empty: "No network traffic captured. Make sure the app is running and making HTTP requests. Network interception is active: it records XMLHttpRequest (axios included), React Native's fetch, Expo's fetch, and a fetch library that sends through React Native's network module, but not requests sent before capture started (at the first network-tool call)."
149801
149856
  });
149802
149857
  }
@@ -150715,15 +150770,15 @@ async function startJsLayer(registry2, udid, logicalDeviceId, bundleId, port) {
150715
150770
  }
150716
150771
  try {
150717
150772
  const api = await registry2.resolveService(`NetworkInspector:${payload}`);
150718
- const install = await installNetworkInterceptor(api.cdp, payload, dbg.runtimeApp);
150719
- if (install.installed) {
150773
+ const install2 = await installNetworkInterceptor(api.cdp, payload, dbg.runtimeApp);
150774
+ if (install2.installed) {
150720
150775
  if (capture.mark?.install === null) {
150721
150776
  const installed = await readMark(dbg).catch(() => void 0);
150722
150777
  if (installed?.install) capture.mark = { install: installed.install, lastId: 0 };
150723
150778
  }
150724
150779
  return { layer: "js", armed: true };
150725
150780
  }
150726
- if (install.reason === NO_XHR_YET) {
150781
+ if (install2.reason === NO_XHR_YET) {
150727
150782
  return {
150728
150783
  layer: "js",
150729
150784
  armed: false,
@@ -150733,7 +150788,7 @@ async function startJsLayer(registry2, udid, logicalDeviceId, bundleId, port) {
150733
150788
  return {
150734
150789
  layer: "js",
150735
150790
  armed: false,
150736
- reason: `the interceptor did not install: ${install.reason}`
150791
+ reason: `the interceptor did not install: ${install2.reason}`
150737
150792
  };
150738
150793
  } catch (err) {
150739
150794
  return {
@@ -152338,7 +152393,7 @@ async function chromiumLayer(registry2, device) {
152338
152393
  }
152339
152394
  };
152340
152395
  }
152341
- function fromJs(entry, install) {
152396
+ function fromJs(entry, install2) {
152342
152397
  const state3 = entry.state === "finished" ? "complete" : entry.state === "failed" ? "failed" : entry.status !== void 0 ? "headers" : "pending";
152343
152398
  return {
152344
152399
  id: entry.requestId ?? "",
@@ -152351,7 +152406,7 @@ function fromJs(entry, install) {
152351
152406
  ...entry.errorText ? { errorText: entry.errorText } : {},
152352
152407
  ...typeof entry.timestamp === "number" ? { startedAt: entry.timestamp * 1e3 } : {},
152353
152408
  ..."headers" in entry ? { requestHeaders: [entry.headers ?? {}] } : {},
152354
- ...install ? { install } : {}
152409
+ ...install2 ? { install: install2 } : {}
152355
152410
  };
152356
152411
  }
152357
152412
  function jsLayer(registry2, device, bundleId, startWindow, withHeaders) {
@@ -152458,10 +152513,10 @@ function jsLayer(registry2, device, bundleId, startWindow, withHeaders) {
152458
152513
  () => installNetworkInterceptor(dbg.cdp, payload, dbg.runtimeApp)
152459
152514
  );
152460
152515
  if ("note" in installed) return unreadable("js", installed.note);
152461
- const install = installed.value;
152462
- const note2 = install.installed ? "the app's JS runtime had no interceptor (it reloaded, or its JavaScript had not loaded at the start), so the wait installed it: requests from now on are recorded, earlier ones in that runtime are missing" : `the interceptor did not install: ${install.reason}`;
152463
- if (install.installed) capture.missed = note2;
152464
- return unreadable("js", note2, false, install.installed);
152516
+ const install2 = installed.value;
152517
+ const note2 = install2.installed ? "the app's JS runtime had no interceptor (it reloaded, or its JavaScript had not loaded at the start), so the wait installed it: requests from now on are recorded, earlier ones in that runtime are missing" : `the interceptor did not install: ${install2.reason}`;
152518
+ if (install2.installed) capture.missed = note2;
152519
+ return unreadable("js", note2, false, install2.installed);
152465
152520
  }
152466
152521
  let note;
152467
152522
  let gap = false;
@@ -152470,11 +152525,11 @@ function jsLayer(registry2, device, bundleId, startWindow, withHeaders) {
152470
152525
  () => installNetworkInterceptor(dbg.cdp, payload, dbg.runtimeApp)
152471
152526
  );
152472
152527
  if ("note" in resumed) return unreadable("js", resumed.note);
152473
- const install = resumed.value;
152474
- note = install.installed ? "a stop's pause was still in the app's JS runtime, so the wait resumed the capture: requests sent while it was paused are missing" : `a stop's pause is still in the app's JS runtime, and the wait could not resume it: ${install.reason}`;
152475
- gap = install.installed;
152476
- if (install.installed) capture.missed = note;
152477
- if (!install.installed) {
152528
+ const install2 = resumed.value;
152529
+ note = install2.installed ? "a stop's pause was still in the app's JS runtime, so the wait resumed the capture: requests sent while it was paused are missing" : `a stop's pause is still in the app's JS runtime, and the wait could not resume it: ${install2.reason}`;
152530
+ gap = install2.installed;
152531
+ if (install2.installed) capture.missed = note;
152532
+ if (!install2.installed) {
152478
152533
  return {
152479
152534
  layer: "js",
152480
152535
  readable: true,
@@ -171168,9 +171223,9 @@ async function terminateCommand(device) {
171168
171223
  }
171169
171224
  }
171170
171225
  function firstClause(err) {
171171
- const firstLine5 = errMsg4(err).split("\n", 1)[0];
171172
- const sentenceEnd = /\.(?=\s|$)/.exec(firstLine5);
171173
- return sentenceEnd === null ? firstLine5 : firstLine5.slice(0, sentenceEnd.index + 1);
171226
+ const firstLine6 = errMsg4(err).split("\n", 1)[0];
171227
+ const sentenceEnd = /\.(?=\s|$)/.exec(firstLine6);
171228
+ return sentenceEnd === null ? firstLine6 : firstLine6.slice(0, sentenceEnd.index + 1);
171174
171229
  }
171175
171230
  var MAX_LISTED_APPS = 2;
171176
171231
  function cappedList(bundleIds) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.36.1-next.7",
3
+ "version": "0.36.1-next.8",
4
4
  "mcpName": "io.github.software-mansion/argent",
5
5
  "description": "MCP server for iOS Simulator, Android Emulator, Chromium app and Mac app control",
6
6
  "license": "Apache-2.0",
@@ -98,5 +98,5 @@
98
98
  "vitest": "^5.0.5",
99
99
  "yaml": "^2.9.1"
100
100
  },
101
- "gitHead": "6cc4f9d5539978cb251a979a621f9d3dcaa5121f"
101
+ "gitHead": "1cc158e29096dc588a25b17b122ad8e7921fa377"
102
102
  }