@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.
- package/dist/index.js +36 -32
- 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-
|
|
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
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
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
|
-
|
|
26228
|
-
|
|
26229
|
-
|
|
26230
|
-
|
|
26231
|
-
|
|
26232
|
-
|
|
26233
|
-
|
|
26234
|
-
|
|
26235
|
-
|
|
26236
|
-
|
|
26237
|
-
|
|
26238
|
-
|
|
26239
|
-
|
|
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:
|
|
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-
|
|
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",
|