@browserbasehq/stagehand 2.5.2 → 2.5.3-alpha-b419fc348673cbdefd861cda62506f1eb11c9b63
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/README.md +1 -1
- package/dist/index.js +10 -3
- package/dist/lib/version.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -100,7 +100,7 @@ Visit [docs.stagehand.dev](https://docs.stagehand.dev) to view the full document
|
|
|
100
100
|
|
|
101
101
|
## Getting Started
|
|
102
102
|
|
|
103
|
-
Start with Stagehand with one line of code, or check out our [Quickstart Guide](https://docs.stagehand.dev/
|
|
103
|
+
Start with Stagehand with one line of code, or check out our [Quickstart Guide](https://docs.stagehand.dev/first-steps/quickstart) for more information:
|
|
104
104
|
|
|
105
105
|
```bash
|
|
106
106
|
npx create-browser-app
|
package/dist/index.js
CHANGED
|
@@ -493,7 +493,7 @@ var StagehandFunctionName = /* @__PURE__ */ ((StagehandFunctionName2) => {
|
|
|
493
493
|
})(StagehandFunctionName || {});
|
|
494
494
|
|
|
495
495
|
// lib/version.ts
|
|
496
|
-
var STAGEHAND_VERSION = "2.5.
|
|
496
|
+
var STAGEHAND_VERSION = "2.5.3-alpha-b419fc348673cbdefd861cda62506f1eb11c9b63";
|
|
497
497
|
|
|
498
498
|
// types/stagehandErrors.ts
|
|
499
499
|
var StagehandError = class extends Error {
|
|
@@ -21953,12 +21953,13 @@ var GoogleCUAClient = class extends AgentClient {
|
|
|
21953
21953
|
initializeHistory(instruction) {
|
|
21954
21954
|
return __async(this, null, function* () {
|
|
21955
21955
|
const parts = [{ text: instruction }];
|
|
21956
|
+
const systemPromptContent = this.userProvidedInstructions ? this.userProvidedInstructions : buildGoogleCUASystemPrompt().content;
|
|
21956
21957
|
this.history = [
|
|
21957
21958
|
{
|
|
21958
21959
|
role: "user",
|
|
21959
21960
|
parts: [
|
|
21960
21961
|
{
|
|
21961
|
-
text: "System prompt: " +
|
|
21962
|
+
text: "System prompt: " + systemPromptContent
|
|
21962
21963
|
}
|
|
21963
21964
|
]
|
|
21964
21965
|
},
|
|
@@ -22704,7 +22705,10 @@ var CuaAgentHandler = class {
|
|
|
22704
22705
|
case "keypress": {
|
|
22705
22706
|
const { keys } = action;
|
|
22706
22707
|
if (Array.isArray(keys)) {
|
|
22707
|
-
|
|
22708
|
+
const mappedKeys = keys.map(
|
|
22709
|
+
(key) => mapKeyToPlaywright(String(key))
|
|
22710
|
+
);
|
|
22711
|
+
yield this.page.keyboard.press(mappedKeys.join("+"));
|
|
22708
22712
|
}
|
|
22709
22713
|
return { success: true };
|
|
22710
22714
|
}
|
|
@@ -24850,6 +24854,9 @@ var Stagehand3 = class {
|
|
|
24850
24854
|
if (!this.apiClient) {
|
|
24851
24855
|
throw new StagehandNotInitializedError("API client");
|
|
24852
24856
|
}
|
|
24857
|
+
if (!options) {
|
|
24858
|
+
options = {};
|
|
24859
|
+
}
|
|
24853
24860
|
if (!options.options) {
|
|
24854
24861
|
options.options = {};
|
|
24855
24862
|
}
|
package/dist/lib/version.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@browserbasehq/stagehand",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.3-alpha-b419fc348673cbdefd861cda62506f1eb11c9b63",
|
|
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",
|