@swmansion/argent 0.35.1-next.72 → 0.35.1-next.73

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
@@ -38904,7 +38904,7 @@ function isCi(env = process.env) {
38904
38904
  var SESSION_ID2 = randomUUID5();
38905
38905
  function readCliVersion() {
38906
38906
  if (true) {
38907
- return "0.35.1-next.72";
38907
+ return "0.35.1-next.73";
38908
38908
  }
38909
38909
  return "0.0.0";
38910
38910
  }
@@ -17136,7 +17136,7 @@ function isCi(env = process.env) {
17136
17136
  var SESSION_ID = randomUUID4();
17137
17137
  function readCliVersion() {
17138
17138
  if (true) {
17139
- return "0.35.1-next.72";
17139
+ return "0.35.1-next.73";
17140
17140
  }
17141
17141
  return "0.0.0";
17142
17142
  }
@@ -38468,7 +38468,7 @@ async function startMcpServer(options) {
38468
38468
  const autoDescribeOn = autoDescribeEnabled();
38469
38469
  const whatsNewOn = whatsNewEnabled();
38470
38470
  const installedVersion = getInstalledVersion();
38471
- const highlightsVersion = true ? "0.35.1-next.72" : installedVersion;
38471
+ const highlightsVersion = true ? "0.35.1-next.73" : installedVersion;
38472
38472
  const captureTimeoutMs = options.captureTimeoutMs ?? CAPTURE_TIMEOUT_MS;
38473
38473
  const trees = createTreeMemory();
38474
38474
  const screenshots = createScreenshotMemory();
@@ -73314,7 +73314,7 @@ function isCi(env = process.env) {
73314
73314
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
73315
73315
  function readCliVersion() {
73316
73316
  if (true) {
73317
- return "0.35.1-next.72";
73317
+ return "0.35.1-next.73";
73318
73318
  }
73319
73319
  return "0.0.0";
73320
73320
  }
@@ -104087,11 +104087,11 @@ function scheduleGroupSigkill(pid, graceMs, opts) {
104087
104087
  }
104088
104088
  async function pollPidsUntilGone(pids, opts) {
104089
104089
  const isAlive2 = opts.isAlive ?? pidIsAlive;
104090
- const sleep21 = opts.sleep ?? ((ms3) => new Promise((resolve24) => setTimeout(resolve24, ms3)));
104090
+ const sleep22 = opts.sleep ?? ((ms3) => new Promise((resolve24) => setTimeout(resolve24, ms3)));
104091
104091
  const maxPolls = Math.max(1, Math.ceil(opts.timeoutMs / opts.pollIntervalMs));
104092
104092
  let remaining = pids.filter((pid) => isAlive2(pid));
104093
104093
  for (let poll = 0; poll < maxPolls && remaining.length > 0; poll += 1) {
104094
- await sleep21(opts.pollIntervalMs);
104094
+ await sleep22(opts.pollIntervalMs);
104095
104095
  remaining = remaining.filter((pid) => isAlive2(pid));
104096
104096
  }
104097
104097
  return remaining;
@@ -116076,14 +116076,14 @@ Connection: close\r
116076
116076
  return wss;
116077
116077
  }
116078
116078
  function bindWsToServer(ws, server) {
116079
- const sendJson2 = (payload) => {
116079
+ const sendJson = (payload) => {
116080
116080
  try {
116081
116081
  ws.send(JSON.stringify(payload));
116082
116082
  } catch {
116083
116083
  }
116084
116084
  };
116085
- const onFps = (report2) => sendJson2({ event: "fpsReport", ...report2 });
116086
- const onFrame = (frame2) => sendJson2({ event: "frame", sessionId: frame2.sessionId });
116085
+ const onFps = (report2) => sendJson({ event: "fpsReport", ...report2 });
116086
+ const onFrame = (frame2) => sendJson({ event: "frame", sessionId: frame2.sessionId });
116087
116087
  server.events.on("fpsReport", onFps);
116088
116088
  server.events.on("frame", onFrame);
116089
116089
  ws.on("close", () => {
@@ -116096,15 +116096,15 @@ function bindWsToServer(ws, server) {
116096
116096
  try {
116097
116097
  msg = JSON.parse(text);
116098
116098
  } catch (err) {
116099
- sendJson2({ status: "error", message: `parse error: ${err.message}` });
116099
+ sendJson({ status: "error", message: `parse error: ${err.message}` });
116100
116100
  return;
116101
116101
  }
116102
116102
  const id = msg.id;
116103
116103
  try {
116104
116104
  const result = await handleWsCommand(msg, server);
116105
- sendJson2({ id, status: "ok", ...result });
116105
+ sendJson({ id, status: "ok", ...result });
116106
116106
  } catch (err) {
116107
- sendJson2({ id, status: "error", message: err instanceof Error ? err.message : String(err) });
116107
+ sendJson({ id, status: "error", message: err instanceof Error ? err.message : String(err) });
116108
116108
  }
116109
116109
  });
116110
116110
  }
@@ -116368,6 +116368,185 @@ var fs38 = __toESM(require("node:fs"));
116368
116368
  var import_node_child_process27 = require("node:child_process");
116369
116369
  init_src2();
116370
116370
  init_capability();
116371
+
116372
+ // ../tool-server/src/blueprints/tvos-typing.ts
116373
+ init_src2();
116374
+
116375
+ // ../tool-server/src/tools/keyboard/key-codes.ts
116376
+ var SHIFT_KEYCODE = 225;
116377
+ var SYMBOL_KEYCODES = {
116378
+ "\n": 40,
116379
+ "\r": 40,
116380
+ " ": 43,
116381
+ " ": 44,
116382
+ "-": 45,
116383
+ "=": 46,
116384
+ "[": 47,
116385
+ "]": 48,
116386
+ "\\": 49,
116387
+ ";": 51,
116388
+ "'": 52,
116389
+ "`": 53,
116390
+ ",": 54,
116391
+ ".": 55,
116392
+ "/": 56
116393
+ };
116394
+ var SHIFTED_SYMBOLS = {
116395
+ "!": "1",
116396
+ "@": "2",
116397
+ "#": "3",
116398
+ "$": "4",
116399
+ "%": "5",
116400
+ "^": "6",
116401
+ "&": "7",
116402
+ "*": "8",
116403
+ "(": "9",
116404
+ ")": "0",
116405
+ "_": "-",
116406
+ "+": "=",
116407
+ "{": "[",
116408
+ "}": "]",
116409
+ "|": "\\",
116410
+ ":": ";",
116411
+ '"': "'",
116412
+ "~": "`",
116413
+ "<": ",",
116414
+ ">": ".",
116415
+ "?": "/"
116416
+ };
116417
+ var NAMED_KEYS = {
116418
+ "enter": 40,
116419
+ "return": 40,
116420
+ "escape": 41,
116421
+ "esc": 41,
116422
+ "backspace": 42,
116423
+ "delete": 42,
116424
+ "tab": 43,
116425
+ "space": 44,
116426
+ "arrow-right": 79,
116427
+ "arrow-left": 80,
116428
+ "arrow-down": 81,
116429
+ "arrow-up": 82,
116430
+ "f1": 58,
116431
+ "f2": 59,
116432
+ "f3": 60,
116433
+ "f4": 61,
116434
+ "f5": 62,
116435
+ "f6": 63,
116436
+ "f7": 64,
116437
+ "f8": 65,
116438
+ "f9": 66,
116439
+ "f10": 67,
116440
+ "f11": 68,
116441
+ "f12": 69
116442
+ };
116443
+ function charToKeyPress(char) {
116444
+ if (char.length !== 1) return void 0;
116445
+ const c = char.charCodeAt(0);
116446
+ if (c >= 97 && c <= 122) return { keyCode: c - 97 + 4, withShift: false };
116447
+ if (c >= 65 && c <= 90) return { keyCode: c - 65 + 4, withShift: true };
116448
+ if (c >= 49 && c <= 57) return { keyCode: c - 49 + 30, withShift: false };
116449
+ if (char === "0") return { keyCode: 39, withShift: false };
116450
+ const base = SHIFTED_SYMBOLS[char];
116451
+ if (base !== void 0) {
116452
+ const basePress = charToKeyPress(base);
116453
+ if (basePress === void 0) return void 0;
116454
+ return { keyCode: basePress.keyCode, withShift: true };
116455
+ }
116456
+ const code = SYMBOL_KEYCODES[char];
116457
+ if (code === void 0) return void 0;
116458
+ return { keyCode: code, withShift: false };
116459
+ }
116460
+
116461
+ // ../tool-server/src/blueprints/tvos-typing.ts
116462
+ init_capability();
116463
+ var LEFT_SHIFT = 225;
116464
+ var LEFT_OPTION = 226;
116465
+ var DEAD_KEYS = {
116466
+ "\u0300": { keyCode: 53, bases: "aeiou" },
116467
+ // grave: Option + `
116468
+ // Not y: the dead key types "´y", not "ý".
116469
+ "\u0301": { keyCode: 8, bases: "aeiou" },
116470
+ // acute: Option + e
116471
+ "\u0302": { keyCode: 12, bases: "aeiou" },
116472
+ // circumflex: Option + i
116473
+ "\u0303": { keyCode: 17, bases: "ano" },
116474
+ // tilde: Option + n
116475
+ "\u0308": { keyCode: 24, bases: "aeiouy" }
116476
+ // diaeresis: Option + u
116477
+ };
116478
+ var OPTION_LETTERS = {
116479
+ \u00E7: { keyCode: 6, shift: false, option: true },
116480
+ \u00C7: { keyCode: 6, shift: true, option: true },
116481
+ \u00DF: { keyCode: 22, shift: false, option: true }
116482
+ };
116483
+ function accentedPresses(char) {
116484
+ const direct = OPTION_LETTERS[char];
116485
+ if (direct) return [direct];
116486
+ const [base, mark, ...rest] = char.normalize("NFD");
116487
+ if (base === void 0 || mark === void 0 || rest.length > 0) return void 0;
116488
+ const dead = DEAD_KEYS[mark];
116489
+ if (!dead || !dead.bases.includes(base.toLowerCase())) return void 0;
116490
+ const basePress = charToKeyPress(base);
116491
+ if (!basePress) return void 0;
116492
+ return [
116493
+ { keyCode: dead.keyCode, shift: false, option: true },
116494
+ { keyCode: basePress.keyCode, shift: basePress.withShift, option: false }
116495
+ ];
116496
+ }
116497
+ function isPrintableAscii(char) {
116498
+ const cp = char.codePointAt(0);
116499
+ return cp >= 32 && cp <= 126;
116500
+ }
116501
+ function planTvosTyping(text) {
116502
+ const steps = [];
116503
+ let run2 = "";
116504
+ const flushRun = () => {
116505
+ const trimmed = run2.replace(/ +$/, "");
116506
+ if (trimmed) steps.push({ kind: "text", text: trimmed });
116507
+ for (const char of run2.slice(trimmed.length)) {
116508
+ const press = charToKeyPress(char);
116509
+ steps.push({
116510
+ kind: "press",
116511
+ press: { keyCode: press.keyCode, shift: press.withShift, option: false }
116512
+ });
116513
+ }
116514
+ run2 = "";
116515
+ };
116516
+ for (const char of text.normalize("NFC")) {
116517
+ if (isPrintableAscii(char)) {
116518
+ run2 += char;
116519
+ continue;
116520
+ }
116521
+ const tab = charToKeyPress(" ");
116522
+ const presses = char === " " ? [{ keyCode: tab.keyCode, shift: false, option: false }] : accentedPresses(char);
116523
+ if (!presses) {
116524
+ const hex3 = char.codePointAt(0).toString(16).toUpperCase().padStart(4, "0");
116525
+ throw new InvalidToolInputError(
116526
+ `Apple TV keyboard cannot type "${char}" (U+${hex3}), so nothing was typed. It types printable ASCII, tabs, a/e/i/o/u with a grave, acute, circumflex, or diaeresis, y with a diaeresis, a/n/o with a tilde (any case), and \xE7, \xC7, \xDF. Remove or replace the character.`,
116527
+ {
116528
+ error_code: FAILURE_CODES.KEYBOARD_CHARACTER_UNSUPPORTED,
116529
+ failure_stage: "keyboard_char_tvos",
116530
+ error_kind: "unsupported"
116531
+ }
116532
+ );
116533
+ }
116534
+ flushRun();
116535
+ for (const press of presses) steps.push({ kind: "press", press });
116536
+ }
116537
+ flushRun();
116538
+ return steps;
116539
+ }
116540
+ function pressLines(press) {
116541
+ const down = [
116542
+ ...press.option ? [LEFT_OPTION] : [],
116543
+ ...press.shift ? [LEFT_SHIFT] : [],
116544
+ press.keyCode
116545
+ ];
116546
+ return { down, up: [...down].reverse() };
116547
+ }
116548
+
116549
+ // ../tool-server/src/blueprints/tv-control.ts
116371
116550
  var TV_CONTROL_NAMESPACE = "TvControl";
116372
116551
  function tvControlRef(device) {
116373
116552
  return {
@@ -116412,9 +116591,18 @@ var TYPE_BASE_MS = 1e4;
116412
116591
  function typeTimeoutMs(textLength) {
116413
116592
  return TYPE_BASE_MS + textLength * TYPE_MS_PER_CHAR;
116414
116593
  }
116415
- async function sendJson(socketPath, command2, timeoutMs) {
116416
- return parseReply((await sendLine(socketPath, command2, timeoutMs)).trim(), command2);
116594
+ async function sendHid(socketPath, verb, command2, timeoutMs) {
116595
+ const reply = parseReply((await sendLine(socketPath, command2, timeoutMs)).trim(), verb);
116596
+ if (reply && typeof reply === "object" && reply.ok === false) {
116597
+ const error63 = reply.error;
116598
+ throw new Error(
116599
+ `tvOS HID daemon refused "${verb}": ${typeof error63 === "string" ? error63 : "no reason given"}`
116600
+ );
116601
+ }
116417
116602
  }
116603
+ var KEY_HOLD_MS = 20;
116604
+ var MODIFIER_GAP_MS = 10;
116605
+ var sleep2 = (ms3) => new Promise((r) => setTimeout(r, ms3));
116418
116606
  function parseReply(raw, command2) {
116419
116607
  if (!raw) return {};
116420
116608
  try {
@@ -116661,6 +116849,25 @@ var tvControlBlueprint = {
116661
116849
  }
116662
116850
  }
116663
116851
  }
116852
+ async function pressKey2(press) {
116853
+ const { down, up } = pressLines(press);
116854
+ try {
116855
+ for (const keyCode of down) {
116856
+ await sendHid(hidSock, "key_down", `key_down ${keyCode}`);
116857
+ await sleep2(keyCode === press.keyCode ? KEY_HOLD_MS : MODIFIER_GAP_MS);
116858
+ }
116859
+ for (const keyCode of up) {
116860
+ await sendHid(hidSock, "key_up", `key_up ${keyCode}`);
116861
+ await sleep2(MODIFIER_GAP_MS);
116862
+ }
116863
+ } catch (err) {
116864
+ for (const keyCode of up) {
116865
+ await sendHid(hidSock, "key_up", `key_up ${keyCode}`).catch(() => {
116866
+ });
116867
+ }
116868
+ throw err;
116869
+ }
116870
+ }
116664
116871
  const api = {
116665
116872
  async describe() {
116666
116873
  const r = await sendAx("describe", 1e4);
@@ -116674,13 +116881,19 @@ var tvControlBlueprint = {
116674
116881
  return await sendAx("hierarchy", 1e4);
116675
116882
  },
116676
116883
  async navigate(direction) {
116677
- await sendJson(hidSock, `navigate ${direction}`);
116884
+ await sendHid(hidSock, "navigate", `navigate ${direction}`);
116678
116885
  },
116679
116886
  async type(text) {
116680
116887
  if (/[\n\r]/.test(text)) {
116681
116888
  throw new Error("Apple TV keyboard text must not contain newlines");
116682
116889
  }
116683
- await sendJson(hidSock, `type ${text}`, typeTimeoutMs(text.length));
116890
+ for (const step of planTvosTyping(text)) {
116891
+ if (step.kind === "text") {
116892
+ await sendHid(hidSock, "type", `type ${step.text}`, typeTimeoutMs(step.text.length));
116893
+ continue;
116894
+ }
116895
+ await pressKey2(step.press);
116896
+ }
116684
116897
  },
116685
116898
  async recycleAx() {
116686
116899
  await recycleAx();
@@ -125610,7 +125823,7 @@ function scaleDecodedPng(src, scale) {
125610
125823
  }
125611
125824
 
125612
125825
  // ../tool-server/src/utils/macos-input.ts
125613
- var sleep2 = (ms3) => new Promise((r) => setTimeout(r, ms3));
125826
+ var sleep3 = (ms3) => new Promise((r) => setTimeout(r, ms3));
125614
125827
  function macosAppServices(device) {
125615
125828
  return macosAppsUnavailableReason() === null ? { macosApp: macosAppRef(device) } : {};
125616
125829
  }
@@ -125660,7 +125873,7 @@ async function macosClick(app, x, y, opts = {}) {
125660
125873
  await macosMouse(app, { ...event2, type: "down" });
125661
125874
  await macosMouse(app, { ...event2, type: "up" });
125662
125875
  }
125663
- await sleep2(MACOS_CLICK_SETTLE_MS);
125876
+ await sleep3(MACOS_CLICK_SETTLE_MS);
125664
125877
  }
125665
125878
  async function macosScroll(app, event2) {
125666
125879
  await app.call("Input.scroll", insideMaxEdges(event2));
@@ -125768,7 +125981,7 @@ async function macosTypeText(app, text, opts = {}) {
125768
125981
  if (!pending) return;
125769
125982
  await macosInsertText(app, pending);
125770
125983
  pending = "";
125771
- await sleep2(delay4);
125984
+ await sleep3(delay4);
125772
125985
  };
125773
125986
  let afterCr = false;
125774
125987
  for (const char of text) {
@@ -125786,7 +125999,7 @@ async function macosTypeText(app, text, opts = {}) {
125786
125999
  pending += char;
125787
126000
  continue;
125788
126001
  }
125789
- await sleep2(delay4);
126002
+ await sleep3(delay4);
125790
126003
  }
125791
126004
  await flush();
125792
126005
  return count2;
@@ -129743,7 +129956,7 @@ function createInspector(serial, packageName, initialMetroPort) {
129743
129956
  try {
129744
129957
  let step = 0;
129745
129958
  while (step < RECHECK_DELAYS_MS.length) {
129746
- await sleep3(RECHECK_DELAYS_MS[step]);
129959
+ await sleep4(RECHECK_DELAYS_MS[step]);
129747
129960
  if (disposed) return;
129748
129961
  if (recheck.restart) {
129749
129962
  recheck.restart = false;
@@ -130212,7 +130425,7 @@ function createInspector(serial, packageName, initialMetroPort) {
130212
130425
  failOrphans(runningKeys(read));
130213
130426
  if (current) return { kind: await attach2(current), proc: current };
130214
130427
  if (Date.now() >= deadline) return { kind: "no_process" };
130215
- await sleep3(PROCESS_POLL_INTERVAL_MS);
130428
+ await sleep4(PROCESS_POLL_INTERVAL_MS);
130216
130429
  checkpoint();
130217
130430
  }
130218
130431
  });
@@ -130475,7 +130688,7 @@ function firstLine3(detail) {
130475
130688
  function errorMessage3(err) {
130476
130689
  return err instanceof Error ? err.message : String(err);
130477
130690
  }
130478
- function sleep3(ms3) {
130691
+ function sleep4(ms3) {
130479
130692
  return new Promise((resolve24) => {
130480
130693
  setTimeout(resolve24, ms3).unref();
130481
130694
  });
@@ -140767,7 +140980,7 @@ async function assertChromiumWindowVisible(chromium, action) {
140767
140980
  // ../tool-server/src/tools/gesture-tap/index.ts
140768
140981
  init_device_info();
140769
140982
  init_capability();
140770
- var sleep4 = (ms3) => new Promise((r) => setTimeout(r, ms3));
140983
+ var sleep5 = (ms3) => new Promise((r) => setTimeout(r, ms3));
140771
140984
  function tapDescription(params, tense) {
140772
140985
  const count2 = params.clickCount ?? 1;
140773
140986
  const action = count2 === 1 ? tense === "present" ? "Tapping" : "Tapped" : count2 === 2 ? tense === "present" ? "Double-tapping" : "Double-tapped" : `${tense === "present" ? "Tapping" : "Tapped"} ${count2} times`;
@@ -140791,9 +141004,9 @@ async function tapChromium(api, x, y, clickCount) {
140791
141004
  const pxY = Math.max(0, Math.min(vp.height, y * vp.height));
140792
141005
  await api.dispatchMouseEvent({ type: "mouseMoved", x: pxX, y: pxY });
140793
141006
  for (let i = 1; i <= clickCount; i++) {
140794
- if (i > 1) await sleep4(MULTI_TAP_GAP_MS);
141007
+ if (i > 1) await sleep5(MULTI_TAP_GAP_MS);
140795
141008
  await api.dispatchMouseEvent({ type: "mousePressed", x: pxX, y: pxY, clickCount: i });
140796
- await sleep4(TAP_HOLD_MS);
141009
+ await sleep5(TAP_HOLD_MS);
140797
141010
  await api.dispatchMouseEvent({ type: "mouseReleased", x: pxX, y: pxY, clickCount: i });
140798
141011
  }
140799
141012
  }
@@ -140819,7 +141032,7 @@ async function tapHarmony(connectKey, x, y, clickCount, signal) {
140819
141032
  return;
140820
141033
  }
140821
141034
  for (let i = 0; i < clickCount; i++) {
140822
- if (i > 0) await sleep4(MULTI_TAP_GAP_MS);
141035
+ if (i > 0) await sleep5(MULTI_TAP_GAP_MS);
140823
141036
  await ui.touch("click", point);
140824
141037
  }
140825
141038
  },
@@ -140921,7 +141134,7 @@ Use when tapping a button, link, or control. Returns { tapped: true, timestampMs
140921
141134
  const api = services.simulatorServer;
140922
141135
  let warning;
140923
141136
  for (let i = 1; i <= clickCount; i++) {
140924
- if (i > 1) await sleep4(MULTI_TAP_GAP_MS);
141137
+ if (i > 1) await sleep5(MULTI_TAP_GAP_MS);
140925
141138
  const down = await sendCommand(api, {
140926
141139
  cmd: "touch",
140927
141140
  type: "Down",
@@ -140931,7 +141144,7 @@ Use when tapping a button, link, or control. Returns { tapped: true, timestampMs
140931
141144
  second_y: null
140932
141145
  });
140933
141146
  warning ??= down.warning;
140934
- await sleep4(TAP_HOLD_MS);
141147
+ await sleep5(TAP_HOLD_MS);
140935
141148
  await sendCommand(api, {
140936
141149
  cmd: "touch",
140937
141150
  type: "Up",
@@ -140948,7 +141161,7 @@ Use when tapping a button, link, or control. Returns { tapped: true, timestampMs
140948
141161
  // ../tool-server/src/tools/gesture-swipe/index.ts
140949
141162
  init_zod();
140950
141163
  init_device_info();
140951
- var sleep5 = (ms3) => new Promise((r) => setTimeout(r, ms3));
141164
+ var sleep6 = (ms3) => new Promise((r) => setTimeout(r, ms3));
140952
141165
  var MOMENTUM_FREE_EASE_EXPONENT = 3;
140953
141166
  var DEFAULT_DURATION_MS = 300;
140954
141167
  var MOMENTUM_FREE_MIN_DURATION_MS = 150;
@@ -141117,7 +141330,7 @@ Physical iOS: an edge gesture (back-swipe) needs \`fromX: 0\` exactly; \`duratio
141117
141330
  if (type === "Down") warning = sent.warning;
141118
141331
  lastX = x;
141119
141332
  lastY = y;
141120
- if (i < steps) await sleep5(16);
141333
+ if (i < steps) await sleep6(16);
141121
141334
  }
141122
141335
  return { swiped: true, timestampMs, ...warning !== void 0 ? { warning } : {} };
141123
141336
  }
@@ -141126,7 +141339,7 @@ Physical iOS: an edge gesture (back-swipe) needs \`fromX: 0\` exactly; \`duratio
141126
141339
  // ../tool-server/src/tools/gesture-scroll/index.ts
141127
141340
  init_zod();
141128
141341
  init_device_info();
141129
- var sleep6 = (ms3) => new Promise((r) => setTimeout(r, ms3));
141342
+ var sleep7 = (ms3) => new Promise((r) => setTimeout(r, ms3));
141130
141343
  function scrollDirection(params) {
141131
141344
  const horizontal = (params.deltaX ?? 0) > 0 ? "right" : "left";
141132
141345
  const vertical = (params.deltaY ?? 0) > 0 ? "down" : "up";
@@ -141193,7 +141406,7 @@ Returns \`{ scrolled: true, timestampMs }\`. Fails if CDP is unreachable<flag:ma
141193
141406
  const point = { x: params.x, y: params.y };
141194
141407
  for (let i = 0; i < steps; i++) {
141195
141408
  await chromium.server.sendWheel(point, totalDx / steps, totalDy / steps);
141196
- if (i < steps - 1) await sleep6(16);
141409
+ if (i < steps - 1) await sleep7(16);
141197
141410
  }
141198
141411
  return { scrolled: true, timestampMs };
141199
141412
  }
@@ -141202,7 +141415,7 @@ Returns \`{ scrolled: true, timestampMs }\`. Fails if CDP is unreachable<flag:ma
141202
141415
  // ../tool-server/src/tools/gesture-drag/index.ts
141203
141416
  init_zod();
141204
141417
  init_device_info();
141205
- var sleep7 = (ms3) => new Promise((r) => setTimeout(r, ms3));
141418
+ var sleep8 = (ms3) => new Promise((r) => setTimeout(r, ms3));
141206
141419
  var MOMENTUM_FREE_EASE_EXPONENT2 = 3;
141207
141420
  var MOMENTUM_FREE_MIN_STEPS = 8;
141208
141421
  var MAX_DURATION_MS2 = 1e4;
@@ -141246,7 +141459,7 @@ async function runPointerDrag(from2, to, opts, pointer) {
141246
141459
  try {
141247
141460
  for (let i = 1; i < steps; i++) {
141248
141461
  if (opts.signal?.aborted) await releaseAndAbort(i);
141249
- await sleep7(Math.max(0, t0 + i * frameMs - Date.now()));
141462
+ await sleep8(Math.max(0, t0 + i * frameMs - Date.now()));
141250
141463
  const t = i / steps;
141251
141464
  const progress = momentumFree ? 1 - Math.pow(1 - t, MOMENTUM_FREE_EASE_EXPONENT2) : t;
141252
141465
  const point = {
@@ -141257,7 +141470,7 @@ async function runPointerDrag(from2, to, opts, pointer) {
141257
141470
  last = point;
141258
141471
  }
141259
141472
  if (opts.signal?.aborted) await releaseAndAbort(steps);
141260
- await sleep7(Math.max(0, t0 + durationMs - Date.now()));
141473
+ await sleep8(Math.max(0, t0 + durationMs - Date.now()));
141261
141474
  if (opts.signal?.aborted) await releaseAndAbort(steps);
141262
141475
  await release3(to);
141263
141476
  } catch (err) {
@@ -141341,7 +141554,7 @@ Returns \`{ dragged: true, timestampMs }\`. Fails if the CDP session is unreacha
141341
141554
  }
141342
141555
  }
141343
141556
  );
141344
- await sleep7(MACOS_CLICK_SETTLE_MS);
141557
+ await sleep8(MACOS_CLICK_SETTLE_MS);
141345
141558
  return { dragged: true, timestampMs };
141346
141559
  }
141347
141560
  const chromium = services.chromium;
@@ -141494,7 +141707,7 @@ function stepTo(finger, point, tMs) {
141494
141707
  // ../tool-server/src/tools/gesture-custom/index.ts
141495
141708
  init_device_info();
141496
141709
  init_capability();
141497
- var sleep8 = (ms3) => new Promise((r) => setTimeout(r, ms3));
141710
+ var sleep9 = (ms3) => new Promise((r) => setTimeout(r, ms3));
141498
141711
  var capability14 = {
141499
141712
  apple: { simulator: true, device: true },
141500
141713
  appleRemote: { simulator: true },
@@ -141652,7 +141865,7 @@ async function playTrain(api, deviceId, edge, events) {
141652
141865
  let warning;
141653
141866
  try {
141654
141867
  for (const event2 of events) {
141655
- await sleep8(event2.delayMs ?? 16);
141868
+ await sleep9(event2.delayMs ?? 16);
141656
141869
  const sent = await sendCommand(
141657
141870
  api,
141658
141871
  {
@@ -141925,7 +142138,7 @@ Returns \`{ rotated: true, timestampMs, reactivated? }\` (on physical iOS, \`rea
141925
142138
  init_zod();
141926
142139
  init_device_info();
141927
142140
  init_capability();
141928
- var sleep9 = (ms3) => new Promise((r) => setTimeout(r, ms3));
142141
+ var sleep10 = (ms3) => new Promise((r) => setTimeout(r, ms3));
141929
142142
  var BUTTONS_BY_PLATFORM = {
141930
142143
  "ios": /* @__PURE__ */ new Set(["home", "power", "volumeUp", "volumeDown", "appSwitch", "actionButton"]),
141931
142144
  "ios-remote": /* @__PURE__ */ new Set(["home", "power", "volumeUp", "volumeDown", "appSwitch", "actionButton"]),
@@ -142066,7 +142279,7 @@ Fails if the device backend is not reachable: the simulator-server for iOS, <fla
142066
142279
  direction: "Down",
142067
142280
  button: params.button
142068
142281
  });
142069
- await sleep9(50);
142282
+ await sleep10(50);
142070
142283
  await sendCommand(api, { cmd: "button", direction: "Up", button: params.button });
142071
142284
  return { pressed: params.button };
142072
142285
  }
@@ -142164,96 +142377,10 @@ function unsupportedFieldError(detail, stage) {
142164
142377
  init_src2();
142165
142378
  init_src2();
142166
142379
 
142167
- // ../tool-server/src/tools/keyboard/key-codes.ts
142168
- var SHIFT_KEYCODE = 225;
142169
- var SYMBOL_KEYCODES = {
142170
- "\n": 40,
142171
- "\r": 40,
142172
- " ": 43,
142173
- " ": 44,
142174
- "-": 45,
142175
- "=": 46,
142176
- "[": 47,
142177
- "]": 48,
142178
- "\\": 49,
142179
- ";": 51,
142180
- "'": 52,
142181
- "`": 53,
142182
- ",": 54,
142183
- ".": 55,
142184
- "/": 56
142185
- };
142186
- var SHIFTED_SYMBOLS = {
142187
- "!": "1",
142188
- "@": "2",
142189
- "#": "3",
142190
- "$": "4",
142191
- "%": "5",
142192
- "^": "6",
142193
- "&": "7",
142194
- "*": "8",
142195
- "(": "9",
142196
- ")": "0",
142197
- "_": "-",
142198
- "+": "=",
142199
- "{": "[",
142200
- "}": "]",
142201
- "|": "\\",
142202
- ":": ";",
142203
- '"': "'",
142204
- "~": "`",
142205
- "<": ",",
142206
- ">": ".",
142207
- "?": "/"
142208
- };
142209
- var NAMED_KEYS = {
142210
- "enter": 40,
142211
- "return": 40,
142212
- "escape": 41,
142213
- "esc": 41,
142214
- "backspace": 42,
142215
- "delete": 42,
142216
- "tab": 43,
142217
- "space": 44,
142218
- "arrow-right": 79,
142219
- "arrow-left": 80,
142220
- "arrow-down": 81,
142221
- "arrow-up": 82,
142222
- "f1": 58,
142223
- "f2": 59,
142224
- "f3": 60,
142225
- "f4": 61,
142226
- "f5": 62,
142227
- "f6": 63,
142228
- "f7": 64,
142229
- "f8": 65,
142230
- "f9": 66,
142231
- "f10": 67,
142232
- "f11": 68,
142233
- "f12": 69
142234
- };
142235
- function charToKeyPress(char) {
142236
- if (char.length !== 1) return void 0;
142237
- const c = char.charCodeAt(0);
142238
- if (c >= 97 && c <= 122) return { keyCode: c - 97 + 4, withShift: false };
142239
- if (c >= 65 && c <= 90) return { keyCode: c - 65 + 4, withShift: true };
142240
- if (c >= 49 && c <= 57) return { keyCode: c - 49 + 30, withShift: false };
142241
- if (char === "0") return { keyCode: 39, withShift: false };
142242
- const base = SHIFTED_SYMBOLS[char];
142243
- if (base !== void 0) {
142244
- const basePress = charToKeyPress(base);
142245
- if (basePress === void 0) return void 0;
142246
- return { keyCode: basePress.keyCode, withShift: true };
142247
- }
142248
- const code = SYMBOL_KEYCODES[char];
142249
- if (code === void 0) return void 0;
142250
- return { keyCode: code, withShift: false };
142251
- }
142252
-
142253
142380
  // ../tool-server/src/tools/keyboard/simulator-server-keys.ts
142254
142381
  init_src2();
142255
142382
  init_capability();
142256
- var sleep10 = (ms3) => new Promise((r) => setTimeout(r, ms3));
142383
+ var sleep11 = (ms3) => new Promise((r) => setTimeout(r, ms3));
142257
142384
  var KEY_HOLD = { ms: 20 };
142258
142385
  async function typeSimulatorServer(registry2, device, params) {
142259
142386
  const ref = simulatorServerRef(device);
@@ -142263,13 +142390,13 @@ async function typeSimulatorServer(registry2, device, params) {
142263
142390
  const pressKeyCode = async (keyCode, withShift = false) => {
142264
142391
  if (withShift) {
142265
142392
  await api.pressKey("Down", SHIFT_KEYCODE);
142266
- await sleep10(10);
142393
+ await sleep11(10);
142267
142394
  }
142268
142395
  await api.pressKey("Down", keyCode);
142269
- await sleep10(KEY_HOLD.ms);
142396
+ await sleep11(KEY_HOLD.ms);
142270
142397
  await api.pressKey("Up", keyCode);
142271
142398
  if (withShift) {
142272
- await sleep10(10);
142399
+ await sleep11(10);
142273
142400
  await api.pressKey("Up", SHIFT_KEYCODE);
142274
142401
  }
142275
142402
  keysPressed++;
@@ -142284,7 +142411,7 @@ async function typeSimulatorServer(registry2, device, params) {
142284
142411
  error_kind: "unsupported"
142285
142412
  });
142286
142413
  await pressKeyCode(press.keyCode, press.withShift);
142287
- await sleep10(delay4);
142414
+ await sleep11(delay4);
142288
142415
  }
142289
142416
  }
142290
142417
  if (params.key) {
@@ -142303,7 +142430,7 @@ async function typeSimulatorServer(registry2, device, params) {
142303
142430
  const count2 = params.repeat ?? 1;
142304
142431
  for (let i = 0; i < count2; i++) {
142305
142432
  await pressKeyCode(namedKeyCode);
142306
- if (i < count2 - 1) await sleep10(delay4);
142433
+ if (i < count2 - 1) await sleep11(delay4);
142307
142434
  }
142308
142435
  }
142309
142436
  return { typed: params.text ?? params.key ?? "", keys: keysPressed };
@@ -142313,7 +142440,7 @@ async function typeSimulatorServer(registry2, device, params) {
142313
142440
  var MAX_CLEAR_KEYS = 100;
142314
142441
  var XCTEST_DELETE = "\b";
142315
142442
  var KEY_TIMING = { holdMs: 20, settleMs: 300, typeDelayMs: 30 };
142316
- var sleep11 = (ms3) => new Promise((r) => setTimeout(r, ms3));
142443
+ var sleep12 = (ms3) => new Promise((r) => setTimeout(r, ms3));
142317
142444
  function typeableOnSimulator(text) {
142318
142445
  for (const char of text) if (!charToKeyPress(char)) return false;
142319
142446
  return true;
@@ -142338,9 +142465,9 @@ async function pressSimulatorBackspace(registry2, device) {
142338
142465
  const ref = simulatorServerRef(device);
142339
142466
  const api = await registry2.resolveService(ref.urn, ref.options);
142340
142467
  await api.pressKey("Down", NAMED_KEYS.backspace);
142341
- await sleep11(KEY_TIMING.holdMs);
142468
+ await sleep12(KEY_TIMING.holdMs);
142342
142469
  await api.pressKey("Up", NAMED_KEYS.backspace);
142343
- await sleep11(KEY_TIMING.settleMs);
142470
+ await sleep12(KEY_TIMING.settleMs);
142344
142471
  }
142345
142472
  async function typeOnSimulator(registry2, device, text) {
142346
142473
  if (!text) return;
@@ -143079,7 +143206,7 @@ function charToChromiumKey(char) {
143079
143206
  }
143080
143207
 
143081
143208
  // ../tool-server/src/tools/keyboard/platforms/chromium.ts
143082
- var sleep12 = (ms3) => new Promise((r) => setTimeout(r, ms3));
143209
+ var sleep13 = (ms3) => new Promise((r) => setTimeout(r, ms3));
143083
143210
  var isOutsideAscii = (char) => char.codePointAt(0) >= 128;
143084
143211
  function assertTypeable(char) {
143085
143212
  if (charToChromiumKey(char) || isOutsideAscii(char)) return;
@@ -143099,7 +143226,7 @@ async function runChromium(api, params) {
143099
143226
  assertTypeable(char);
143100
143227
  await api.cdp.send("Input.insertText", { text: char });
143101
143228
  keysPressed++;
143102
- await sleep12(delay4);
143229
+ await sleep13(delay4);
143103
143230
  continue;
143104
143231
  }
143105
143232
  await api.dispatchKeyEvent({
@@ -143116,7 +143243,7 @@ async function runChromium(api, params) {
143116
143243
  windowsVirtualKeyCode: desc.windowsVirtualKeyCode
143117
143244
  });
143118
143245
  keysPressed++;
143119
- await sleep12(delay4);
143246
+ await sleep13(delay4);
143120
143247
  }
143121
143248
  }
143122
143249
  if (params.key) {
@@ -143142,7 +143269,7 @@ async function runChromium(api, params) {
143142
143269
  code: named.code,
143143
143270
  windowsVirtualKeyCode: named.windowsVirtualKeyCode
143144
143271
  });
143145
- await sleep12(delay4);
143272
+ await sleep13(delay4);
143146
143273
  await api.dispatchKeyEvent({
143147
143274
  type: "keyUp",
143148
143275
  key: named.key,
@@ -143150,7 +143277,7 @@ async function runChromium(api, params) {
143150
143277
  windowsVirtualKeyCode: named.windowsVirtualKeyCode
143151
143278
  });
143152
143279
  keysPressed++;
143153
- if (i < count2 - 1) await sleep12(delay4);
143280
+ if (i < count2 - 1) await sleep13(delay4);
143154
143281
  }
143155
143282
  }
143156
143283
  return { typed: params.text ?? params.key ?? "", keys: keysPressed };
@@ -143175,7 +143302,7 @@ function makeChromiumImpl(registry2) {
143175
143302
 
143176
143303
  // ../tool-server/src/tools/keyboard/platforms/macos.ts
143177
143304
  init_capability();
143178
- var sleep13 = (ms3) => new Promise((r) => setTimeout(r, ms3));
143305
+ var sleep14 = (ms3) => new Promise((r) => setTimeout(r, ms3));
143179
143306
  function makeMacosImpl(registry2) {
143180
143307
  return {
143181
143308
  handler: async (_services, params, device) => {
@@ -143196,7 +143323,7 @@ function makeMacosImpl(registry2) {
143196
143323
  const delay4 = params.delayMs ?? 50;
143197
143324
  for (let i = 0; i < count2; i++) {
143198
143325
  await macosPressKey(app, params.key);
143199
- if (i < count2 - 1) await sleep13(delay4);
143326
+ if (i < count2 - 1) await sleep14(delay4);
143200
143327
  }
143201
143328
  return { typed: params.key, keys: count2 };
143202
143329
  }
@@ -143610,7 +143737,7 @@ init_capability();
143610
143737
  var LEFT_GUI_KEYCODE = 227;
143611
143738
  var V_KEYCODE = charToKeyPress("v").keyCode;
143612
143739
  var CHORD_STEP_MS = 50;
143613
- var sleep14 = (ms3) => new Promise((r) => setTimeout(r, ms3));
143740
+ var sleep15 = (ms3) => new Promise((r) => setTimeout(r, ms3));
143614
143741
  var typesAsText = (char) => !"\n\r ".includes(char) && !!charToKeyPress(char);
143615
143742
  function rejectTv(device) {
143616
143743
  throw new UnsupportedOperationError(
@@ -143636,13 +143763,13 @@ async function pasteSimulator(registry2, device, api, params) {
143636
143763
  return { pasted: true, via: "keyboard" };
143637
143764
  }
143638
143765
  await api.pressKey("Down", LEFT_GUI_KEYCODE);
143639
- await sleep14(CHORD_STEP_MS);
143766
+ await sleep15(CHORD_STEP_MS);
143640
143767
  await api.pressKey("Down", V_KEYCODE);
143641
- await sleep14(CHORD_STEP_MS);
143768
+ await sleep15(CHORD_STEP_MS);
143642
143769
  await api.pressKey("Up", V_KEYCODE);
143643
- await sleep14(CHORD_STEP_MS);
143770
+ await sleep15(CHORD_STEP_MS);
143644
143771
  await api.pressKey("Up", LEFT_GUI_KEYCODE);
143645
- await sleep14(CHORD_STEP_MS);
143772
+ await sleep15(CHORD_STEP_MS);
143646
143773
  return { pasted: true };
143647
143774
  }
143648
143775
  function makeIosImpl4(registry2) {
@@ -144054,7 +144181,7 @@ async function prepareHostWindowShake(target) {
144054
144181
  var execFileAsync37 = (0, import_node_util38.promisify)(import_node_child_process49.execFile);
144055
144182
  var SHAKE_NOTIFICATION = "com.apple.UIKit.SimulatorShake";
144056
144183
  var SHAKE_INTERVAL_MS = 400;
144057
- var sleep15 = (ms3) => new Promise((r) => setTimeout(r, ms3));
144184
+ var sleep16 = (ms3) => new Promise((r) => setTimeout(r, ms3));
144058
144185
  var NOTIFYUTIL_ARGV = ["notifyutil", "-p", SHAKE_NOTIFICATION];
144059
144186
  function rejectTv2(toolId, device) {
144060
144187
  throw new UnsupportedOperationError(
@@ -144090,7 +144217,7 @@ var iosImpl4 = {
144090
144217
  const args = await simctlArgsForUdid(udid, ["spawn", udid, ...NOTIFYUTIL_ARGV]);
144091
144218
  const shaker = await prepareHostWindowShake({ kind: "ios", udid, name: device.name });
144092
144219
  for (let i = 0; i < count2; i++) {
144093
- if (i > 0) await sleep15(SHAKE_INTERVAL_MS);
144220
+ if (i > 0) await sleep16(SHAKE_INTERVAL_MS);
144094
144221
  shaker.begin();
144095
144222
  try {
144096
144223
  await execFileAsync37("xcrun", args, { timeout: 15e3 });
@@ -144110,7 +144237,7 @@ var iosRemoteImpl6 = {
144110
144237
  const count2 = params.count ?? 1;
144111
144238
  if (await isRemoteTvOsSimulator(udid)) rejectTv2("shake", device);
144112
144239
  for (let i = 0; i < count2; i++) {
144113
- if (i > 0) await sleep15(SHAKE_INTERVAL_MS);
144240
+ if (i > 0) await sleep16(SHAKE_INTERVAL_MS);
144114
144241
  let result;
144115
144242
  try {
144116
144243
  result = await simctlSpawn(udid, { args: NOTIFYUTIL_ARGV });
@@ -144158,7 +144285,7 @@ function restingVectorFrom(stdout) {
144158
144285
  return read;
144159
144286
  }
144160
144287
  var fmt = (v) => `${v.x.toFixed(4)}:${v.y.toFixed(4)}:${v.z.toFixed(4)}`;
144161
- var sleep16 = (ms3) => new Promise((r) => setTimeout(r, ms3));
144288
+ var sleep17 = (ms3) => new Promise((r) => setTimeout(r, ms3));
144162
144289
  var inFlightByDevice = /* @__PURE__ */ new Map();
144163
144290
  function withDeviceLock(serial, fn) {
144164
144291
  const previous = inFlightByDevice.get(serial) ?? Promise.resolve();
@@ -144223,7 +144350,7 @@ var androidImpl6 = {
144223
144350
  y: rest.y,
144224
144351
  z: rest.z
144225
144352
  });
144226
- await sleep16(SWING_INTERVAL_MS);
144353
+ await sleep17(SWING_INTERVAL_MS);
144227
144354
  }
144228
144355
  }
144229
144356
  } catch (err) {
@@ -144588,7 +144715,7 @@ var DISMISS_SPACING_MS = 1e3;
144588
144715
  var DISMISS_TIMEOUT_MS = 5e3;
144589
144716
  var WAKE_GRACE_READS = 2;
144590
144717
  var abortReason2 = (signal) => signal.reason instanceof Error ? signal.reason : new Error("The fold was cancelled.");
144591
- var sleep17 = (ms3, signal) => new Promise((resolve24, reject) => {
144718
+ var sleep18 = (ms3, signal) => new Promise((resolve24, reject) => {
144592
144719
  if (signal?.aborted) return reject(abortReason2(signal));
144593
144720
  const timer = setTimeout(resolve24, ms3);
144594
144721
  signal?.addEventListener(
@@ -144662,7 +144789,7 @@ async function awaitSettled(serial, expected, wake, signal) {
144662
144789
  let agreeing = 0;
144663
144790
  const deadline = Date.now() + SETTLE_TIMEOUT_MS2;
144664
144791
  while (Date.now() < deadline) {
144665
- await sleep17(POLL_MS2, signal);
144792
+ await sleep18(POLL_MS2, signal);
144666
144793
  const read = await readSnapshot(serial);
144667
144794
  const same = read.state === last?.state && read.awake === last?.awake;
144668
144795
  if (!isReady(read, expected)) agreeing = 0;
@@ -144697,7 +144824,7 @@ async function dismissFoldLockScreen(serial, signal) {
144697
144824
  await shell(serial, "wm dismiss-keyguard");
144698
144825
  }
144699
144826
  }
144700
- await sleep17(POLL_MS2, signal);
144827
+ await sleep18(POLL_MS2, signal);
144701
144828
  }
144702
144829
  return "The fold raised the lock screen and argent could not dismiss it (a PIN or password keeps it up). Unlock the device before the next action.";
144703
144830
  }
@@ -149274,7 +149401,7 @@ function formatDescribeTree(root, opts) {
149274
149401
  }
149275
149402
 
149276
149403
  // ../tool-server/src/tools/describe/platforms/tv.ts
149277
- var sleep18 = (ms3) => new Promise((r) => setTimeout(r, ms3));
149404
+ var sleep19 = (ms3) => new Promise((r) => setTimeout(r, ms3));
149278
149405
  var EMPTY_RETRY_ATTEMPTS = 3;
149279
149406
  var EMPTY_RETRY_DELAY_MS = 600;
149280
149407
  var EMPTY_HINT2 = "No focusable elements after retrying and recycling the read path. Either the app is still loading or mid-transition (after launch-app / restart-app, or a press that opened an app), or the screen has nothing focusable (sleep, screensaver, video playback). Wait ~2-3s and call describe again; a React Native app only exposes focus once its JS bundle has loaded. If it stays empty, take a screenshot to confirm what's actually on screen.";
@@ -149306,7 +149433,7 @@ async function describeTv(registry2, device, raw) {
149306
149433
  let res = await api.describe();
149307
149434
  if (device.platform !== "android") {
149308
149435
  for (let attempt = 1; attempt < EMPTY_RETRY_ATTEMPTS && isEmptyFocus(res); attempt++) {
149309
- await sleep18(EMPTY_RETRY_DELAY_MS);
149436
+ await sleep19(EMPTY_RETRY_DELAY_MS);
149310
149437
  res = await api.describe();
149311
149438
  }
149312
149439
  }
@@ -178390,7 +178517,7 @@ var path75 = __toESM(require("node:path"));
178390
178517
  init_zod();
178391
178518
  init_capability();
178392
178519
  init_device_info();
178393
- var sleep19 = (ms3) => new Promise((r) => setTimeout(r, ms3));
178520
+ var sleep20 = (ms3) => new Promise((r) => setTimeout(r, ms3));
178394
178521
  var DEFAULT_PANEL_TIMEOUT_MS = 5e3;
178395
178522
  var MAX_PANEL_TIMEOUT_MS = 3e4;
178396
178523
  var PANEL_POLL_MS2 = 100;
@@ -178500,7 +178627,7 @@ async function waitForPanel(app, params, signal) {
178500
178627
  "file_panel_not_open"
178501
178628
  );
178502
178629
  }
178503
- await sleep19(PANEL_POLL_MS2);
178630
+ await sleep20(PANEL_POLL_MS2);
178504
178631
  }
178505
178632
  }
178506
178633
  async function choose(app, params, ctx) {
@@ -178620,7 +178747,7 @@ Fails if no panel appears within timeoutMs, if more than one panel is open and p
178620
178747
  init_zod();
178621
178748
  init_capability();
178622
178749
  init_device_info();
178623
- var sleep20 = (ms3) => new Promise((r) => setTimeout(r, ms3));
178750
+ var sleep21 = (ms3) => new Promise((r) => setTimeout(r, ms3));
178624
178751
  var MAX_PATH_TITLES = 9;
178625
178752
  var capability41 = {
178626
178753
  macos: { app: true, catalyst: true }
@@ -178745,7 +178872,7 @@ Fails if no item matches (the error lists the titles at that level), if the item
178745
178872
  "Menu.perform",
178746
178873
  params.path !== void 0 ? { path: params.path } : { identifier: params.identifier }
178747
178874
  );
178748
- await sleep20(MACOS_CLICK_SETTLE_MS);
178875
+ await sleep21(MACOS_CLICK_SETTLE_MS);
178749
178876
  return {
178750
178877
  chosen: chosen.path,
178751
178878
  ...chosen.identifier !== void 0 ? { identifier: chosen.identifier } : {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.35.1-next.72",
3
+ "version": "0.35.1-next.73",
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": "8933d7f63ffb48738c7c4d1407fdd93389c25fe2"
101
+ "gitHead": "80e7a413256034d5728969ed90f0f398d358e90b"
102
102
  }