@browserbasehq/stagehand 3.0.6-alpha-34e7e5b292f5e6af6efc0da60118663310c5f718 → 3.0.6-alpha-d4237e40951ecd10abfdbe766672d498f8806484
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 +18 -9
- 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-d4237e40951ecd10abfdbe766672d498f8806484";
|
|
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,
|
|
@@ -36206,7 +36204,7 @@ var AISdkClient = class extends LLMClient {
|
|
|
36206
36204
|
);
|
|
36207
36205
|
let objectResponse;
|
|
36208
36206
|
const isGPT5 = this.model.modelId.includes("gpt-5");
|
|
36209
|
-
const
|
|
36207
|
+
const usesLowReasoningEffort = this.model.modelId.includes("gpt-5.1") || this.model.modelId.includes("gpt-5.2");
|
|
36210
36208
|
if (options.response_model) {
|
|
36211
36209
|
const llmRequestId2 = (0, import_uuid5.v7)();
|
|
36212
36210
|
const promptPreview2 = formatLlmPromptPreview(options.messages, {
|
|
@@ -36228,7 +36226,7 @@ var AISdkClient = class extends LLMClient {
|
|
|
36228
36226
|
openai: {
|
|
36229
36227
|
textVerbosity: "low",
|
|
36230
36228
|
// Making these the default for gpt-5 for now
|
|
36231
|
-
reasoningEffort:
|
|
36229
|
+
reasoningEffort: usesLowReasoningEffort ? "low" : "minimal"
|
|
36232
36230
|
}
|
|
36233
36231
|
} : void 0
|
|
36234
36232
|
});
|
|
@@ -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-
|
|
3
|
+
"version": "3.0.6-alpha-d4237e40951ecd10abfdbe766672d498f8806484",
|
|
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",
|