@browserbasehq/stagehand
Advanced tools
Comparing version 1.12.0-alpha-1032d7d7d9c1ef8f30183c9019ea8324f1bdd5c6 to 1.12.0-alpha-5bc514fc18e6634b1c81553bbc1e8b7d71b67d34
@@ -208,2 +208,4 @@ import { z, ZodType } from 'zod'; | ||
onlyVisible?: boolean; | ||
/** @deprecated `useAccessibilityTree` is now deprecated. Use `onlyVisible` instead. */ | ||
useAccessibilityTree?: boolean; | ||
} | ||
@@ -210,0 +212,0 @@ interface ObserveResult { |
@@ -84,2 +84,4 @@ import Browserbase from "@browserbasehq/sdk"; | ||
onlyVisible?: boolean; | ||
/** @deprecated `useAccessibilityTree` is now deprecated. Use `onlyVisible` instead. */ | ||
useAccessibilityTree?: boolean; | ||
} | ||
@@ -86,0 +88,0 @@ export interface ObserveResult { |
@@ -507,4 +507,20 @@ import type { | ||
onlyVisible = false, | ||
useAccessibilityTree, | ||
} = options; | ||
if (useAccessibilityTree !== undefined) { | ||
this.stagehand.log({ | ||
category: "deprecation", | ||
message: | ||
"useAccessibilityTree is deprecated.\n" + | ||
" To use accessibility tree as context:\n" + | ||
" 1. Set onlyVisible to false (default)\n" + | ||
" 2. Don't declare useAccessibilityTree", | ||
level: 1, | ||
}); | ||
throw new Error( | ||
"useAccessibilityTree is deprecated. Use onlyVisible instead.", | ||
); | ||
} | ||
if (typeof useVision !== "undefined") { | ||
@@ -511,0 +527,0 @@ this.stagehand.log({ |
{ | ||
"name": "@browserbasehq/stagehand", | ||
"version": "1.12.0-alpha-1032d7d7d9c1ef8f30183c9019ea8324f1bdd5c6", | ||
"version": "1.12.0-alpha-5bc514fc18e6634b1c81553bbc1e8b7d71b67d34", | ||
"description": "An AI web browsing framework focused on simplicity and extensibility.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is too big to display
587789
15359