@swmansion/argent 0.35.1-next.14 → 0.35.1-next.15

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.
@@ -523,6 +523,8 @@ export interface ArgentToolArgs {
523
523
  text?: string;
524
524
  /** Named key to press: enter, escape, backspace, tab, space, arrow-up, arrow-down, arrow-left, arrow-right, f1-f12. Cannot be combined with `text`; to do both, send two `keyboard` steps in one `run-sequence`. Not supported on Apple TV / Android TV; move focus with `tv-remote` (up/down/left/right) instead. Physical iOS: only `enter` and `backspace`. HarmonyOS: only enter (return), backspace (delete), space, arrow-left and arrow-right; any other key fails with 400 KEYBOARD_KEY_UNSUPPORTED. Mac app: also delete (forward delete), home, end, page-up, page-down, and shortcuts with modifiers joined by + (command, shift, option, control), e.g. command+a. */
525
525
  key?: string;
526
+ /** Press `key` this many times in one call, e.g. `{ key: "backspace", repeat: 12 }`. Only valid with `key`. */
527
+ repeat?: number;
526
528
  /** Delay in ms between key presses (default 50). Ignored on Android phones/tablets, HarmonyOS, Vega, Apple TV / Android TV and physical iOS, which type the whole string in one shot or at their own cadence. */
527
529
  delayMs?: number;
528
530
  };
@@ -101760,11 +101760,11 @@ function scheduleGroupSigkill(pid, graceMs, opts) {
101760
101760
  }
101761
101761
  async function pollPidsUntilGone(pids, opts) {
101762
101762
  const isAlive2 = opts.isAlive ?? pidIsAlive;
101763
- const sleep20 = opts.sleep ?? ((ms3) => new Promise((resolve21) => setTimeout(resolve21, ms3)));
101763
+ const sleep21 = opts.sleep ?? ((ms3) => new Promise((resolve21) => setTimeout(resolve21, ms3)));
101764
101764
  const maxPolls = Math.max(1, Math.ceil(opts.timeoutMs / opts.pollIntervalMs));
101765
101765
  let remaining = pids.filter((pid) => isAlive2(pid));
101766
101766
  for (let poll = 0; poll < maxPolls && remaining.length > 0; poll += 1) {
101767
- await sleep20(opts.pollIntervalMs);
101767
+ await sleep21(opts.pollIntervalMs);
101768
101768
  remaining = remaining.filter((pid) => isAlive2(pid));
101769
101769
  }
101770
101770
  return remaining;
@@ -114386,10 +114386,11 @@ async function injectAndroidText(serial, text) {
114386
114386
  });
114387
114387
  }
114388
114388
  }
114389
- async function injectAndroidKeycode(serial, keycode) {
114390
- await adbShell(serial, `input keyevent ${keycode}`, { timeoutMs: ADB_INPUT_TIMEOUT_MS });
114389
+ async function injectAndroidKeycode(serial, keycode, repeat = 1) {
114390
+ const keycodes = Array(repeat).fill(keycode).join(" ");
114391
+ await adbShell(serial, `input keyevent ${keycodes}`, { timeoutMs: ADB_INPUT_TIMEOUT_MS });
114391
114392
  }
114392
- async function injectAndroidNamedKey(serial, name) {
114393
+ async function injectAndroidNamedKey(serial, name, repeat = 1) {
114393
114394
  const lower = name.toLowerCase();
114394
114395
  const keycode = Object.hasOwn(ANDROID_NAMED_KEYCODES, lower) ? ANDROID_NAMED_KEYCODES[lower] : void 0;
114395
114396
  if (keycode == null) {
@@ -114402,7 +114403,7 @@ async function injectAndroidNamedKey(serial, name) {
114402
114403
  }
114403
114404
  );
114404
114405
  }
114405
- await injectAndroidKeycode(serial, keycode);
114406
+ await injectAndroidKeycode(serial, keycode, repeat);
114406
114407
  }
114407
114408
 
114408
114409
  // ../tool-server/src/blueprints/android-tv-control.ts
@@ -139549,7 +139550,11 @@ async function typeSimulatorServer(registry2, device, params) {
139549
139550
  }
139550
139551
  );
139551
139552
  }
139552
- await pressKeyCode(namedKeyCode);
139553
+ const count2 = params.repeat ?? 1;
139554
+ for (let i = 0; i < count2; i++) {
139555
+ await pressKeyCode(namedKeyCode);
139556
+ if (i < count2 - 1) await sleep10(delay3);
139557
+ }
139553
139558
  }
139554
139559
  return { typed: params.text ?? params.key ?? "", keys: keysPressed };
139555
139560
  }
@@ -139765,15 +139770,20 @@ function makeIosDeviceImpl(registry2) {
139765
139770
  reactivated ||= typed.reactivated;
139766
139771
  keys += params.text.length;
139767
139772
  }
139773
+ const count2 = params.repeat ?? 1;
139768
139774
  if (key2 === "enter") {
139769
- const pressed = await mapNotFocused(pressKeyboardReturn(api, bundleId));
139770
- reactivated ||= pressed.reactivated;
139771
- keys += 1;
139775
+ for (let i = 0; i < count2; i++) {
139776
+ const pressed = await mapNotFocused(pressKeyboardReturn(api, bundleId));
139777
+ reactivated ||= pressed.reactivated;
139778
+ keys += 1;
139779
+ }
139772
139780
  }
139773
139781
  if (key2 === "backspace") {
139774
- const pressed = await mapNotFocused(pressKeyboardDelete(api, bundleId));
139775
- reactivated ||= pressed.reactivated;
139776
- keys += 1;
139782
+ for (let i = 0; i < count2; i++) {
139783
+ const pressed = await mapNotFocused(pressKeyboardDelete(api, bundleId));
139784
+ reactivated ||= pressed.reactivated;
139785
+ keys += 1;
139786
+ }
139777
139787
  }
139778
139788
  return {
139779
139789
  typed: params.text ?? params.key ?? "",
@@ -139793,8 +139803,9 @@ async function typeAndroidPhone(device, params) {
139793
139803
  keysPressed += params.text.length;
139794
139804
  }
139795
139805
  if (params.key) {
139796
- await injectAndroidNamedKey(device.id, params.key);
139797
- keysPressed++;
139806
+ const count2 = params.repeat ?? 1;
139807
+ await injectAndroidNamedKey(device.id, params.key, count2);
139808
+ keysPressed += count2;
139798
139809
  }
139799
139810
  return { typed: params.text ?? params.key ?? "", keys: keysPressed };
139800
139811
  }
@@ -139922,22 +139933,26 @@ async function runChromium(api, params) {
139922
139933
  }
139923
139934
  );
139924
139935
  }
139925
- await api.dispatchKeyEvent({
139926
- type: "keyDown",
139927
- // Chromium needs carriage-return text for Enter's default form submission.
139928
- ...named.key === "Enter" ? { text: "\r" } : {},
139929
- key: named.key,
139930
- code: named.code,
139931
- windowsVirtualKeyCode: named.windowsVirtualKeyCode
139932
- });
139933
- await sleep11(delay3);
139934
- await api.dispatchKeyEvent({
139935
- type: "keyUp",
139936
- key: named.key,
139937
- code: named.code,
139938
- windowsVirtualKeyCode: named.windowsVirtualKeyCode
139939
- });
139940
- keysPressed++;
139936
+ const count2 = params.repeat ?? 1;
139937
+ for (let i = 0; i < count2; i++) {
139938
+ await api.dispatchKeyEvent({
139939
+ type: "keyDown",
139940
+ // Chromium needs carriage-return text for Enter's default form submission.
139941
+ ...named.key === "Enter" ? { text: "\r" } : {},
139942
+ key: named.key,
139943
+ code: named.code,
139944
+ windowsVirtualKeyCode: named.windowsVirtualKeyCode
139945
+ });
139946
+ await sleep11(delay3);
139947
+ await api.dispatchKeyEvent({
139948
+ type: "keyUp",
139949
+ key: named.key,
139950
+ code: named.code,
139951
+ windowsVirtualKeyCode: named.windowsVirtualKeyCode
139952
+ });
139953
+ keysPressed++;
139954
+ if (i < count2 - 1) await sleep11(delay3);
139955
+ }
139941
139956
  }
139942
139957
  return { typed: params.text ?? params.key ?? "", keys: keysPressed };
139943
139958
  }
@@ -139952,6 +139967,7 @@ function makeChromiumImpl(registry2) {
139952
139967
  }
139953
139968
 
139954
139969
  // ../tool-server/src/tools/keyboard/platforms/macos.ts
139970
+ var sleep12 = (ms3) => new Promise((r) => setTimeout(r, ms3));
139955
139971
  function makeMacosImpl(registry2) {
139956
139972
  return {
139957
139973
  handler: async (_services, params, device) => {
@@ -139961,8 +139977,13 @@ function makeMacosImpl(registry2) {
139961
139977
  return { typed: params.text, keys };
139962
139978
  }
139963
139979
  if (params.key) {
139964
- await macosPressKey(app, params.key);
139965
- return { typed: params.key, keys: 1 };
139980
+ const count2 = params.repeat ?? 1;
139981
+ const delay3 = params.delayMs ?? 50;
139982
+ for (let i = 0; i < count2; i++) {
139983
+ await macosPressKey(app, params.key);
139984
+ if (i < count2 - 1) await sleep12(delay3);
139985
+ }
139986
+ return { typed: params.key, keys: count2 };
139966
139987
  }
139967
139988
  return { typed: "", keys: 0 };
139968
139989
  }
@@ -140072,8 +140093,11 @@ async function runVega2(params) {
140072
140093
  keysPressed += [...params.text].length;
140073
140094
  }
140074
140095
  if (params.key) {
140075
- await injectVegaNamedKey(params.key);
140076
- keysPressed++;
140096
+ const count2 = params.repeat ?? 1;
140097
+ for (let i = 0; i < count2; i++) {
140098
+ await injectVegaNamedKey(params.key);
140099
+ keysPressed++;
140100
+ }
140077
140101
  }
140078
140102
  return { typed: params.text ?? params.key ?? "", keys: keysPressed };
140079
140103
  }
@@ -140162,8 +140186,11 @@ async function typeHarmony(connectKey, params, signal) {
140162
140186
  keysPressed += [...params.text].length;
140163
140187
  }
140164
140188
  if (keycode !== null) {
140165
- await ui.keyEvent(String(keycode));
140166
- keysPressed++;
140189
+ const count2 = params.repeat ?? 1;
140190
+ for (let i = 0; i < count2; i++) {
140191
+ await ui.keyEvent(String(keycode));
140192
+ keysPressed++;
140193
+ }
140167
140194
  }
140168
140195
  },
140169
140196
  signal
@@ -140195,6 +140222,9 @@ var zodSchema27 = external_exports.object({
140195
140222
  key: external_exports.string().optional().describe(
140196
140223
  "Named key to press: enter, escape, backspace, tab, space, arrow-up, arrow-down, arrow-left, arrow-right, f1-f12. Cannot be combined with `text`; to do both, send two `keyboard` steps in one `run-sequence`. Not supported on Apple TV / Android TV; move focus with `tv-remote` (up/down/left/right) instead. Physical iOS: only `enter` and `backspace`.<flag:harmonyos> HarmonyOS: only enter (return), backspace (delete), space, arrow-left and arrow-right; any other key fails with 400 KEYBOARD_KEY_UNSUPPORTED.</flag:harmonyos><flag:macos-apps> Mac app: also delete (forward delete), home, end, page-up, page-down, and shortcuts with modifiers joined by + (command, shift, option, control), e.g. command+a.</flag:macos-apps>"
140197
140224
  ),
140225
+ repeat: external_exports.number().int().min(1).max(100).optional().describe(
140226
+ 'Press `key` this many times in one call, e.g. `{ key: "backspace", repeat: 12 }`. Only valid with `key`.'
140227
+ ),
140198
140228
  delayMs: external_exports.number().optional().describe(
140199
140229
  "Delay in ms between key presses (default 50). Ignored on Android phones/tablets, <flag:harmonyos>HarmonyOS, </flag:harmonyos>Vega, Apple TV / Android TV and physical iOS, which type the whole string in one shot or at their own cadence."
140200
140230
  )
@@ -140232,11 +140262,16 @@ React Native: after typing, the next tap outside the field may only close the ke
140232
140262
  // rejects (text+key, `{ key: "" }`), while `completedMsg` runs only after
140233
140263
  // a success and sees neither. Both see the empty request, a no-op.
140234
140264
  startedMsg: ({ params }) => {
140235
- if (params.text === void 0) return "Pressing a key";
140265
+ if (params.text === void 0) {
140266
+ return (params.repeat ?? 1) > 1 ? `Pressing a key ${params.repeat} times` : "Pressing a key";
140267
+ }
140236
140268
  if (params.key === void 0) return "Entering text";
140237
140269
  return "Entering text and pressing a key";
140238
140270
  },
140239
- completedMsg: ({ params }) => params.text === void 0 ? "Pressed a key" : "Entered text",
140271
+ completedMsg: ({ params }) => {
140272
+ if (params.text !== void 0) return "Entered text";
140273
+ return (params.repeat ?? 1) > 1 ? `Pressed a key ${params.repeat} times` : "Pressed a key";
140274
+ },
140240
140275
  failedMsg: ({ failureSignal: failureSignal2 }) => `Failed to use keyboard: ${failureSignal2.error_code}`
140241
140276
  },
140242
140277
  capability: capability18,
@@ -140280,6 +140315,14 @@ React Native: after typing, the next tap outside the field may only close the ke
140280
140315
  }
140281
140316
  );
140282
140317
  }
140318
+ if (params.repeat !== void 0 && params.key === void 0) {
140319
+ throw new InvalidToolInputError(
140320
+ '`repeat` only applies to `key`, not `text` or an empty request \u2014 nothing was typed. Pass a named `key` (e.g. { key: "backspace", repeat: 5 }), or omit `repeat`.',
140321
+ {
140322
+ failure_stage: "keyboard_repeat_without_key"
140323
+ }
140324
+ );
140325
+ }
140283
140326
  if (params.text === void 0) return dispatch(services, params, options);
140284
140327
  const { text, secrets } = resolveSecretPlaceholders(params.text, {
140285
140328
  clientSecrets: options?.clientSecrets
@@ -140313,7 +140356,7 @@ init_capability();
140313
140356
  var LEFT_GUI_KEYCODE = 227;
140314
140357
  var V_KEYCODE = charToKeyPress("v").keyCode;
140315
140358
  var CHORD_STEP_MS = 50;
140316
- var sleep12 = (ms3) => new Promise((r) => setTimeout(r, ms3));
140359
+ var sleep13 = (ms3) => new Promise((r) => setTimeout(r, ms3));
140317
140360
  var typesAsText = (char) => !"\n\r ".includes(char) && !!charToKeyPress(char);
140318
140361
  function rejectTv(device) {
140319
140362
  throw new UnsupportedOperationError(
@@ -140339,13 +140382,13 @@ async function pasteSimulator(registry2, device, api, params) {
140339
140382
  return { pasted: true, via: "keyboard" };
140340
140383
  }
140341
140384
  await api.pressKey("Down", LEFT_GUI_KEYCODE);
140342
- await sleep12(CHORD_STEP_MS);
140385
+ await sleep13(CHORD_STEP_MS);
140343
140386
  await api.pressKey("Down", V_KEYCODE);
140344
- await sleep12(CHORD_STEP_MS);
140387
+ await sleep13(CHORD_STEP_MS);
140345
140388
  await api.pressKey("Up", V_KEYCODE);
140346
- await sleep12(CHORD_STEP_MS);
140389
+ await sleep13(CHORD_STEP_MS);
140347
140390
  await api.pressKey("Up", LEFT_GUI_KEYCODE);
140348
- await sleep12(CHORD_STEP_MS);
140391
+ await sleep13(CHORD_STEP_MS);
140349
140392
  return { pasted: true };
140350
140393
  }
140351
140394
  function makeIosImpl4(registry2) {
@@ -140757,7 +140800,7 @@ async function prepareHostWindowShake(target) {
140757
140800
  var execFileAsync36 = (0, import_node_util37.promisify)(import_node_child_process48.execFile);
140758
140801
  var SHAKE_NOTIFICATION = "com.apple.UIKit.SimulatorShake";
140759
140802
  var SHAKE_INTERVAL_MS = 400;
140760
- var sleep13 = (ms3) => new Promise((r) => setTimeout(r, ms3));
140803
+ var sleep14 = (ms3) => new Promise((r) => setTimeout(r, ms3));
140761
140804
  var NOTIFYUTIL_ARGV = ["notifyutil", "-p", SHAKE_NOTIFICATION];
140762
140805
  function rejectTv2(toolId, device) {
140763
140806
  throw new UnsupportedOperationError(
@@ -140793,7 +140836,7 @@ var iosImpl4 = {
140793
140836
  const args = await simctlArgsForUdid(udid, ["spawn", udid, ...NOTIFYUTIL_ARGV]);
140794
140837
  const shaker = await prepareHostWindowShake({ kind: "ios", udid, name: device.name });
140795
140838
  for (let i = 0; i < count2; i++) {
140796
- if (i > 0) await sleep13(SHAKE_INTERVAL_MS);
140839
+ if (i > 0) await sleep14(SHAKE_INTERVAL_MS);
140797
140840
  shaker.begin();
140798
140841
  try {
140799
140842
  await execFileAsync36("xcrun", args, { timeout: 15e3 });
@@ -140813,7 +140856,7 @@ var iosRemoteImpl6 = {
140813
140856
  const count2 = params.count ?? 1;
140814
140857
  if (await isRemoteTvOsSimulator(udid)) rejectTv2("shake", device);
140815
140858
  for (let i = 0; i < count2; i++) {
140816
- if (i > 0) await sleep13(SHAKE_INTERVAL_MS);
140859
+ if (i > 0) await sleep14(SHAKE_INTERVAL_MS);
140817
140860
  let result;
140818
140861
  try {
140819
140862
  result = await simctlSpawn(udid, { args: NOTIFYUTIL_ARGV });
@@ -140861,7 +140904,7 @@ function restingVectorFrom(stdout) {
140861
140904
  return read;
140862
140905
  }
140863
140906
  var fmt = (v) => `${v.x.toFixed(4)}:${v.y.toFixed(4)}:${v.z.toFixed(4)}`;
140864
- var sleep14 = (ms3) => new Promise((r) => setTimeout(r, ms3));
140907
+ var sleep15 = (ms3) => new Promise((r) => setTimeout(r, ms3));
140865
140908
  var inFlightByDevice = /* @__PURE__ */ new Map();
140866
140909
  function withDeviceLock(serial, fn) {
140867
140910
  const previous = inFlightByDevice.get(serial) ?? Promise.resolve();
@@ -140926,7 +140969,7 @@ var androidImpl6 = {
140926
140969
  y: rest.y,
140927
140970
  z: rest.z
140928
140971
  });
140929
- await sleep14(SWING_INTERVAL_MS);
140972
+ await sleep15(SWING_INTERVAL_MS);
140930
140973
  }
140931
140974
  }
140932
140975
  } catch (err) {
@@ -141298,7 +141341,7 @@ var DISMISS_SPACING_MS = 1e3;
141298
141341
  var DISMISS_TIMEOUT_MS = 5e3;
141299
141342
  var WAKE_GRACE_READS = 2;
141300
141343
  var abortReason2 = (signal) => signal.reason instanceof Error ? signal.reason : new Error("The fold was cancelled.");
141301
- var sleep15 = (ms3, signal) => new Promise((resolve21, reject) => {
141344
+ var sleep16 = (ms3, signal) => new Promise((resolve21, reject) => {
141302
141345
  if (signal?.aborted) return reject(abortReason2(signal));
141303
141346
  const timer = setTimeout(resolve21, ms3);
141304
141347
  signal?.addEventListener(
@@ -141372,7 +141415,7 @@ async function awaitSettled(serial, expected, wake, signal) {
141372
141415
  let agreeing = 0;
141373
141416
  const deadline = Date.now() + SETTLE_TIMEOUT_MS2;
141374
141417
  while (Date.now() < deadline) {
141375
- await sleep15(POLL_MS2, signal);
141418
+ await sleep16(POLL_MS2, signal);
141376
141419
  const read = await readSnapshot(serial);
141377
141420
  const same = read.state === last?.state && read.awake === last?.awake;
141378
141421
  if (!isReady(read, expected)) agreeing = 0;
@@ -141407,7 +141450,7 @@ async function dismissFoldLockScreen(serial, signal) {
141407
141450
  await shell(serial, "wm dismiss-keyguard");
141408
141451
  }
141409
141452
  }
141410
- await sleep15(POLL_MS2, signal);
141453
+ await sleep16(POLL_MS2, signal);
141411
141454
  }
141412
141455
  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.";
141413
141456
  }
@@ -142165,7 +142208,7 @@ Allowed tools, args (? = optional) and targets. Positions and distances are 0\u2
142165
142208
  gesture-pinch: centerX, centerY, startDistance, endDistance, endCenterX?, endCenterY?, angle?, durationMs? [ios/android<flag:harmonyos>/harmony</flag:harmonyos>]
142166
142209
  gesture-rotate: centerX, centerY, startAngle, endAngle, radius (or radiusX + radiusY), durationMs? [ios/android]
142167
142210
  button: button: "home"|"back"|"power"|"volumeUp"|"volumeDown"|"appSwitch"|"actionButton" [ios/android<flag:harmonyos>; harmony: home/back/power</flag:harmonyos>]
142168
- keyboard: text? or key? (one per step, e.g. key "enter"), delayMs?; text may hold {{secret:<NAME>}} placeholders, resolved server-side [all; Apple TV/Android TV: text only]
142211
+ keyboard: text? or key? (one per step, e.g. key "enter"), repeat?, delayMs?; text may hold {{secret:<NAME>}} placeholders, resolved server-side [all; Apple TV/Android TV: text only]
142169
142212
  paste: text (only where a user would paste, e.g. an OTP) [ios sim/android emu<flag:macos-apps>/macos</flag:macos-apps>]
142170
142213
  rotate: orientation: "Portrait"|"LandscapeLeft"|"LandscapeRight"|"PortraitUpsideDown" [ios sim/android]
142171
142214
  shake: count? [ios sim/android emu]
@@ -145610,8 +145653,13 @@ function formatLine(n, indent, source) {
145610
145653
  const annotated = annotations ? ` ${annotations}` : "";
145611
145654
  return `${pad}${n.role}${annotated} ${fmtFrame(n.frame)}`;
145612
145655
  }
145656
+ var IOS_SCROLL_BAR_LABEL = /^(Vertical|Horizontal) scroll bar, .+\bpages?$/;
145657
+ var PERCENT_VALUE = /^\d+(?:\.\d+)?%$/;
145658
+ function isIosScrollBar(n) {
145659
+ return n.role === "AXAdjustable" && !n.identifier && !n.hint && typeof n.label === "string" && IOS_SCROLL_BAR_LABEL.test(n.label) && (n.value === void 0 || PERCENT_VALUE.test(n.value));
145660
+ }
145613
145661
  function renderFlat(root, contentRoles, source) {
145614
- return root.children.filter((n) => shouldEmit(n, contentRoles) || hasIosState(n)).slice().sort((a, b) => a.frame.y - b.frame.y || a.frame.x - b.frame.x).map((n) => formatLine(n, 1, source));
145662
+ return root.children.filter((n) => !isIosScrollBar(n) && (shouldEmit(n, contentRoles) || hasIosState(n))).slice().sort((a, b) => a.frame.y - b.frame.y || a.frame.x - b.frame.x).map((n) => formatLine(n, 1, source));
145615
145663
  }
145616
145664
  function renderNested(root, contentRoles, source) {
145617
145665
  const lines = [];
@@ -145660,7 +145708,7 @@ function formatDescribeTree(root, opts) {
145660
145708
  }
145661
145709
 
145662
145710
  // ../tool-server/src/tools/describe/platforms/tv.ts
145663
- var sleep16 = (ms3) => new Promise((r) => setTimeout(r, ms3));
145711
+ var sleep17 = (ms3) => new Promise((r) => setTimeout(r, ms3));
145664
145712
  var EMPTY_RETRY_ATTEMPTS = 3;
145665
145713
  var EMPTY_RETRY_DELAY_MS = 600;
145666
145714
  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.";
@@ -145692,7 +145740,7 @@ async function describeTv(registry2, device) {
145692
145740
  let res = await api.describe();
145693
145741
  if (device.platform !== "android") {
145694
145742
  for (let attempt = 1; attempt < EMPTY_RETRY_ATTEMPTS && isEmptyFocus(res); attempt++) {
145695
- await sleep16(EMPTY_RETRY_DELAY_MS);
145743
+ await sleep17(EMPTY_RETRY_DELAY_MS);
145696
145744
  res = await api.describe();
145697
145745
  }
145698
145746
  }
@@ -146372,7 +146420,7 @@ init_src2();
146372
146420
  var MAX_CLEAR_KEYS = 100;
146373
146421
  var XCTEST_DELETE = "\b";
146374
146422
  var KEY_TIMING = { holdMs: 20, settleMs: 300, typeDelayMs: 30 };
146375
- var sleep17 = (ms3) => new Promise((r) => setTimeout(r, ms3));
146423
+ var sleep18 = (ms3) => new Promise((r) => setTimeout(r, ms3));
146376
146424
  function typeableOnSimulator(text) {
146377
146425
  for (const char of text) if (!charToKeyPress(char)) return false;
146378
146426
  return true;
@@ -146397,9 +146445,9 @@ async function pressSimulatorBackspace(registry2, device) {
146397
146445
  const ref = simulatorServerRef(device);
146398
146446
  const api = await registry2.resolveService(ref.urn, ref.options);
146399
146447
  await api.pressKey("Down", NAMED_KEYS.backspace);
146400
- await sleep17(KEY_TIMING.holdMs);
146448
+ await sleep18(KEY_TIMING.holdMs);
146401
146449
  await api.pressKey("Up", NAMED_KEYS.backspace);
146402
- await sleep17(KEY_TIMING.settleMs);
146450
+ await sleep18(KEY_TIMING.settleMs);
146403
146451
  }
146404
146452
  async function typeOnSimulator(registry2, device, text) {
146405
146453
  if (!text) return;
@@ -174349,7 +174397,7 @@ var path71 = __toESM(require("node:path"));
174349
174397
  init_zod();
174350
174398
  init_capability();
174351
174399
  init_device_info();
174352
- var sleep18 = (ms3) => new Promise((r) => setTimeout(r, ms3));
174400
+ var sleep19 = (ms3) => new Promise((r) => setTimeout(r, ms3));
174353
174401
  var DEFAULT_PANEL_TIMEOUT_MS = 5e3;
174354
174402
  var MAX_PANEL_TIMEOUT_MS = 3e4;
174355
174403
  var PANEL_POLL_MS2 = 100;
@@ -174459,7 +174507,7 @@ async function waitForPanel(app, params, signal) {
174459
174507
  "file_panel_not_open"
174460
174508
  );
174461
174509
  }
174462
- await sleep18(PANEL_POLL_MS2);
174510
+ await sleep19(PANEL_POLL_MS2);
174463
174511
  }
174464
174512
  }
174465
174513
  async function choose(app, params, ctx) {
@@ -174579,7 +174627,7 @@ Fails if no panel appears within timeoutMs, if more than one panel is open and p
174579
174627
  init_zod();
174580
174628
  init_capability();
174581
174629
  init_device_info();
174582
- var sleep19 = (ms3) => new Promise((r) => setTimeout(r, ms3));
174630
+ var sleep20 = (ms3) => new Promise((r) => setTimeout(r, ms3));
174583
174631
  var MAX_PATH_TITLES = 9;
174584
174632
  var capability41 = {
174585
174633
  macos: { app: true, catalyst: true }
@@ -174704,7 +174752,7 @@ Fails if no item matches (the error lists the titles at that level), if the item
174704
174752
  "Menu.perform",
174705
174753
  params.path !== void 0 ? { path: params.path } : { identifier: params.identifier }
174706
174754
  );
174707
- await sleep19(MACOS_CLICK_SETTLE_MS);
174755
+ await sleep20(MACOS_CLICK_SETTLE_MS);
174708
174756
  return {
174709
174757
  chosen: chosen.path,
174710
174758
  ...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.14",
3
+ "version": "0.35.1-next.15",
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": "417672a11432f176fd4c1c28da3babc53057b58e"
101
+ "gitHead": "bdf1c1ea412400691634b21833c87573590d81bc"
102
102
  }