@browserbasehq/stagehand 3.0.6-alpha-6255e4cc9f8f9177b881b9c4750f47d6a6f9a95a → 3.0.6

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 +16 -7
  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-6255e4cc9f8f9177b881b9c4750f47d6a6f9a95a";
182
+ STAGEHAND_VERSION = "3.0.6";
183
183
  }
184
184
  });
185
185
 
@@ -26879,12 +26879,6 @@ var import_path6 = __toESM(require("path"));
26879
26879
  var import_process2 = __toESM(require("process"));
26880
26880
  var import_uuid6 = require("uuid");
26881
26881
 
26882
- // lib/utils.ts
26883
- init_sdkErrors();
26884
- var import_genai = require("@google/genai");
26885
- var import_zod2 = require("zod");
26886
- var import_v3 = __toESM(require("zod/v3"));
26887
-
26888
26882
  // lib/v3/zodCompat.ts
26889
26883
  var import_zod = require("zod");
26890
26884
  var import_zod_to_json_schema = __toESM(require("zod-to-json-schema"));
@@ -26902,6 +26896,10 @@ function toJsonSchema(schema) {
26902
26896
  }
26903
26897
 
26904
26898
  // lib/utils.ts
26899
+ init_sdkErrors();
26900
+ var import_genai = require("@google/genai");
26901
+ var import_zod2 = require("zod");
26902
+ var import_v3 = __toESM(require("zod/v3"));
26905
26903
  var ID_PATTERN = /^\d+-\d+$/;
26906
26904
  var zFactories = {
26907
26905
  v4: import_zod2.z,
@@ -65023,6 +65021,17 @@ var _V3 = class _V3 {
65023
65021
  } else {
65024
65022
  result = yield this.extractHandler.extract(handlerParams);
65025
65023
  }
65024
+ const historySchemaDescriptor = effectiveSchema ? toJsonSchema(effectiveSchema) : void 0;
65025
+ this.addToHistory(
65026
+ "extract",
65027
+ {
65028
+ instruction,
65029
+ selector: options == null ? void 0 : options.selector,
65030
+ timeout: options == null ? void 0 : options.timeout,
65031
+ schema: historySchemaDescriptor
65032
+ },
65033
+ result
65034
+ );
65026
65035
  return result;
65027
65036
  }));
65028
65037
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@browserbasehq/stagehand",
3
- "version": "3.0.6-alpha-6255e4cc9f8f9177b881b9c4750f47d6a6f9a95a",
3
+ "version": "3.0.6",
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",