@browserbasehq/stagehand
Advanced tools
Comparing version 1.3.1-canary.0921e645.0 to 1.4.0-alpha-598cae230c7b8d4e31ae22fd63047a91b63e51b8
@@ -159,2 +159,3 @@ import { Page, BrowserContext, Browser } from '@playwright/test'; | ||
sessionUrl?: string; | ||
contextPath?: string; | ||
} | ||
@@ -187,2 +188,3 @@ | ||
private browserbaseResumeSessionID?; | ||
private contextPath?; | ||
private actHandler?; | ||
@@ -205,4 +207,5 @@ private extractHandler?; | ||
observe(options?: ObserveOptions): Promise<ObserveResult[]>; | ||
close(): Promise<void>; | ||
} | ||
export { type ActOptions, type ActResult, type AvailableModel, type BrowserResult, type ClientOptions, type ConstructorParams, type ExtractOptions, type ExtractResult, type InitFromPageOptions, type InitFromPageResult, type InitOptions, type InitResult, type LogLine, type ModelProvider, type ObserveOptions, type ObserveResult, PlaywrightCommandException, PlaywrightCommandMethodNotSupportedException, Stagehand, type ToolCall }; |
@@ -23,2 +23,3 @@ import { type BrowserContext, type Page } from "@playwright/test"; | ||
private browserbaseResumeSessionID?; | ||
private contextPath?; | ||
private actHandler?; | ||
@@ -41,2 +42,3 @@ private extractHandler?; | ||
observe(options?: ObserveOptions): Promise<ObserveResult[]>; | ||
close(): Promise<void>; | ||
} | ||
@@ -43,0 +45,0 @@ export * from "../types/browser"; |
@@ -7,2 +7,3 @@ import { Browser, BrowserContext } from "@playwright/test"; | ||
sessionUrl?: string; | ||
contextPath?: string; | ||
} |
{ | ||
"name": "@browserbasehq/stagehand", | ||
"version": "1.3.1-canary.0921e645.0", | ||
"version": "1.4.0-alpha-598cae230c7b8d4e31ae22fd63047a91b63e51b8", | ||
"description": "An AI web browsing framework focused on simplicity and extensibility.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -121,2 +121,3 @@ <div id="toc" align="center"> | ||
}); | ||
await stagehand.close(); | ||
console.log(`Our favorite contributor is ${contributor.username}`); | ||
@@ -301,2 +302,11 @@ ``` | ||
#### `close()` | ||
`close()` is a cleanup method to remove the temporary files created by Stagehand. It's highly recommended that you call this when you're done with your automation. | ||
- **Example:** | ||
```javascript | ||
await stagehand.close(); | ||
``` | ||
#### `page` and `context` | ||
@@ -303,0 +313,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
229749
5210
554