@browserbasehq/orca 3.0.0-preview.5 → 3.0.0-preview.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 +8 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6496,7 +6496,7 @@ var import_path5 = __toESM(require("path"));
6496
6496
  var import_process2 = __toESM(require("process"));
6497
6497
 
6498
6498
  // lib/version.ts
6499
- var STAGEHAND_VERSION = "3.0.0-preview.5";
6499
+ var STAGEHAND_VERSION = "3.0.0-preview.6";
6500
6500
 
6501
6501
  // lib/v3/types/public/sdkErrors.ts
6502
6502
  var StagehandError = class extends Error {
@@ -38755,13 +38755,13 @@ var _V3 = class _V3 {
38755
38755
  level: 1
38756
38756
  });
38757
38757
  if (options == null ? void 0 : options.cua) {
38758
- if (!(options == null ? void 0 : options.model)) {
38759
- throw new Error("A CUA agent requires a model to be specified.");
38760
- }
38761
- const { modelName, isCua, clientOptions } = resolveModel(options.model);
38758
+ const modelToUse = (options == null ? void 0 : options.model) || __spreadValues({
38759
+ modelName: this.modelName
38760
+ }, this.modelClientOptions);
38761
+ const { modelName, isCua, clientOptions } = resolveModel(modelToUse);
38762
38762
  if (!isCua) {
38763
38763
  throw new Error(
38764
- "Model is not a CUA model. Try one of the following: " + AVAILABLE_CUA_MODELS.join(", ")
38764
+ "To use the computer use agent, please provide a CUA model in the agent constructor or stagehand config. Try one of our supported CUA models: " + AVAILABLE_CUA_MODELS.join(", ")
38765
38765
  );
38766
38766
  }
38767
38767
  const agentConfigSignature2 = this.agentCache.buildConfigSignature(options);
@@ -38848,10 +38848,11 @@ Do not ask follow up questions, the user will trust your judgement.`
38848
38848
  );
38849
38849
  }
38850
38850
  const tools = (options == null ? void 0 : options.integrations) ? yield resolveTools(options.integrations, options.tools) : (_a2 = options == null ? void 0 : options.tools) != null ? _a2 : {};
38851
+ const agentLlmClient = (options == null ? void 0 : options.model) ? this.resolveLlmClient(options.model) : this.llmClient;
38851
38852
  const handler = new V3AgentHandler(
38852
38853
  this,
38853
38854
  this.logger,
38854
- this.llmClient,
38855
+ agentLlmClient,
38855
38856
  typeof (options == null ? void 0 : options.executionModel) === "string" ? options.executionModel : (_b = options == null ? void 0 : options.executionModel) == null ? void 0 : _b.modelName,
38856
38857
  options == null ? void 0 : options.systemPrompt,
38857
38858
  tools
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@browserbasehq/orca",
3
- "version": "3.0.0-preview.5",
3
+ "version": "3.0.0-preview.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",