@browserbasehq/stagehand 2.5.2 → 2.5.3-alpha-cbff109e46ec1c4df1dc5fb27a373e0a072f402a

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 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/get_started/quickstart) for more information:
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.2";
496
+ var STAGEHAND_VERSION = "2.5.3-alpha-cbff109e46ec1c4df1dc5fb27a373e0a072f402a";
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: " + buildGoogleCUASystemPrompt().content
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
- yield this.page.keyboard.press(keys.join("+"));
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
  }
@@ -2,4 +2,4 @@
2
2
  * AUTO-GENERATED — DO NOT EDIT BY HAND
3
3
  * Run `pnpm run gen-version` to refresh.
4
4
  */
5
- export declare const STAGEHAND_VERSION: "2.5.2";
5
+ export declare const STAGEHAND_VERSION: "2.5.3-alpha-cbff109e46ec1c4df1dc5fb27a373e0a072f402a";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@browserbasehq/stagehand",
3
- "version": "2.5.2",
3
+ "version": "2.5.3-alpha-cbff109e46ec1c4df1dc5fb27a373e0a072f402a",
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",