visor-ai 0.2.6 → 0.2.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/adapters.js CHANGED
@@ -373,11 +373,11 @@ export class RealAppiumAdapter {
373
373
  async tapPoint(x, y) {
374
374
  const driver = this.requireDriver();
375
375
  if (this.platform === 'android') {
376
- await driver.execute('mobile: clickGesture', [{ x, y }]);
376
+ await driver.execute('mobile: clickGesture', { x, y });
377
377
  return;
378
378
  }
379
379
  if (this.platform === 'ios') {
380
- await driver.execute('mobile: tap', [{ x, y }]);
380
+ await driver.execute('mobile: tap', { x, y });
381
381
  return;
382
382
  }
383
383
  throw new Error(`Coordinate tap is unsupported for platform: ${this.platform}`);
@@ -390,16 +390,26 @@ export class RealAppiumAdapter {
390
390
  const width = Math.max(1, Math.round(size.width * 0.8));
391
391
  const height = Math.max(1, Math.round(size.height * 0.8));
392
392
  if (this.platform === 'android') {
393
- await driver.execute('mobile: scrollGesture', [
394
- { left, top, width, height, direction, percent: gesturePercent }
395
- ]);
393
+ await driver.execute('mobile: scrollGesture', {
394
+ left,
395
+ top,
396
+ width,
397
+ height,
398
+ direction,
399
+ percent: gesturePercent
400
+ });
396
401
  return;
397
402
  }
398
403
  if (this.platform === 'ios') {
399
404
  try {
400
- await driver.execute('mobile: scrollGesture', [
401
- { left, top, width, height, direction, percent: gesturePercent }
402
- ]);
405
+ await driver.execute('mobile: scrollGesture', {
406
+ left,
407
+ top,
408
+ width,
409
+ height,
410
+ direction,
411
+ percent: gesturePercent
412
+ });
403
413
  return;
404
414
  }
405
415
  catch {