@browserbasehq/stagehand 3.0.6-alpha-943d2d79d0f289ac41c9164578f2f1dd876058f2 → 3.0.6-alpha-605ed6b81a3ff8f25d4022f1e5fce6b42aecfc19

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.
Files changed (2) hide show
  1. package/dist/index.js +36 -32
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -179,7 +179,7 @@ var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")])
179
179
  var STAGEHAND_VERSION;
180
180
  var init_version = __esm({
181
181
  "lib/version.ts"() {
182
- STAGEHAND_VERSION = "3.0.6-alpha-943d2d79d0f289ac41c9164578f2f1dd876058f2";
182
+ STAGEHAND_VERSION = "3.0.6-alpha-605ed6b81a3ff8f25d4022f1e5fce6b42aecfc19";
183
183
  }
184
184
  });
185
185
 
@@ -2795,20 +2795,22 @@ var init_locator = __esm({
2795
2795
  y: cy,
2796
2796
  button: "none"
2797
2797
  });
2798
- yield session.send("Input.dispatchMouseEvent", {
2799
- type: "mousePressed",
2800
- x: cx,
2801
- y: cy,
2802
- button,
2803
- clickCount
2804
- });
2805
- yield session.send("Input.dispatchMouseEvent", {
2806
- type: "mouseReleased",
2807
- x: cx,
2808
- y: cy,
2809
- button,
2810
- clickCount
2811
- });
2798
+ for (let i2 = 1; i2 <= clickCount; i2++) {
2799
+ yield session.send("Input.dispatchMouseEvent", {
2800
+ type: "mousePressed",
2801
+ x: cx,
2802
+ y: cy,
2803
+ button,
2804
+ clickCount: i2
2805
+ });
2806
+ yield session.send("Input.dispatchMouseEvent", {
2807
+ type: "mouseReleased",
2808
+ x: cx,
2809
+ y: cy,
2810
+ button,
2811
+ clickCount: i2
2812
+ });
2813
+ }
2812
2814
  } finally {
2813
2815
  try {
2814
2816
  yield session.send("Runtime.releaseObject", { objectId });
@@ -26224,20 +26226,22 @@ var init_page = __esm({
26224
26226
  y,
26225
26227
  button: "none"
26226
26228
  });
26227
- yield this.mainSession.send("Input.dispatchMouseEvent", {
26228
- type: "mousePressed",
26229
- x: x2,
26230
- y,
26231
- button,
26232
- clickCount
26233
- });
26234
- yield this.mainSession.send("Input.dispatchMouseEvent", {
26235
- type: "mouseReleased",
26236
- x: x2,
26237
- y,
26238
- button,
26239
- clickCount
26240
- });
26229
+ for (let i2 = 1; i2 <= clickCount; i2++) {
26230
+ yield this.mainSession.send("Input.dispatchMouseEvent", {
26231
+ type: "mousePressed",
26232
+ x: x2,
26233
+ y,
26234
+ button,
26235
+ clickCount: i2
26236
+ });
26237
+ yield this.mainSession.send("Input.dispatchMouseEvent", {
26238
+ type: "mouseReleased",
26239
+ x: x2,
26240
+ y,
26241
+ button,
26242
+ clickCount: i2
26243
+ });
26244
+ }
26241
26245
  if (options == null ? void 0 : options.returnXpath) return xpathResult != null ? xpathResult : "";
26242
26246
  });
26243
26247
  }
@@ -32205,9 +32209,9 @@ var AnthropicCUAClient = class extends AgentClient {
32205
32209
  }, input);
32206
32210
  } else if (action === "double_click" || action === "doubleClick") {
32207
32211
  return __spreadValues({
32208
- type: action,
32209
- x: input.x,
32210
- y: input.y
32212
+ type: "doubleClick",
32213
+ x: input.x || (input.coordinate ? input.coordinate[0] : 0),
32214
+ y: input.y || (input.coordinate ? input.coordinate[1] : 0)
32211
32215
  }, input);
32212
32216
  } else if (action === "scroll") {
32213
32217
  const x2 = input.x || (input.coordinate ? input.coordinate[0] : 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@browserbasehq/stagehand",
3
- "version": "3.0.6-alpha-943d2d79d0f289ac41c9164578f2f1dd876058f2",
3
+ "version": "3.0.6-alpha-605ed6b81a3ff8f25d4022f1e5fce6b42aecfc19",
4
4
  "description": "An AI web browsing framework focused on simplicity and extensibility.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",