@crawlee/stagehand 4.0.0-beta.85 → 4.0.0-beta.86
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.
|
@@ -197,9 +197,9 @@ export interface StagehandRequestHandler extends RequestHandler<LoadedContext<St
|
|
|
197
197
|
/**
|
|
198
198
|
* Options for StagehandCrawler.
|
|
199
199
|
*/
|
|
200
|
-
export interface StagehandCrawlerOptions<ContextExtension = Dictionary<never>, ExtendedContext extends StagehandCrawlingContext = StagehandCrawlingContext & ContextExtension> extends BrowserCrawlerOptions<StagehandPage, Response, StagehandCrawlingContext, ContextExtension, ExtendedContext, {
|
|
200
|
+
export interface StagehandCrawlerOptions<ContextExtension = Dictionary<never>, ExtendedContext extends StagehandCrawlingContext = StagehandCrawlingContext & ContextExtension, Routes extends Record<keyof Routes, Dictionary> = Record<string, GetUserDataFromRequest<StagehandCrawlingContext['request']>>> extends BrowserCrawlerOptions<StagehandPage, Response, StagehandCrawlingContext, ContextExtension, ExtendedContext, {
|
|
201
201
|
browserPlugins: [StagehandPlugin];
|
|
202
|
-
}> {
|
|
202
|
+
}, Routes> {
|
|
203
203
|
/**
|
|
204
204
|
* Stagehand-specific configuration options.
|
|
205
205
|
* These options configure the AI behavior and Browserbase integration.
|
|
@@ -253,7 +253,7 @@ export interface StagehandCrawlerOptions<ContextExtension = Dictionary<never>, E
|
|
|
253
253
|
* }
|
|
254
254
|
* ```
|
|
255
255
|
*/
|
|
256
|
-
requestHandler?:
|
|
256
|
+
requestHandler?: RouterHandler<ExtendedContext, Routes> | RequestHandler<ExtendedContext>;
|
|
257
257
|
/**
|
|
258
258
|
* Async functions that are sequentially evaluated before the navigation.
|
|
259
259
|
*/
|
|
@@ -312,9 +312,9 @@ export interface StagehandCrawlerOptions<ContextExtension = Dictionary<never>, E
|
|
|
312
312
|
* await crawler.run(['https://example.com']);
|
|
313
313
|
* ```
|
|
314
314
|
*/
|
|
315
|
-
export declare class StagehandCrawler<ContextExtension = Dictionary<never>, ExtendedContext extends StagehandCrawlingContext = StagehandCrawlingContext & ContextExtension> extends BrowserCrawler<StagehandPage, Response, {
|
|
315
|
+
export declare class StagehandCrawler<ContextExtension = Dictionary<never>, ExtendedContext extends StagehandCrawlingContext = StagehandCrawlingContext & ContextExtension, Routes extends Record<keyof Routes, Dictionary> = Record<string, GetUserDataFromRequest<StagehandCrawlingContext['request']>>> extends BrowserCrawler<StagehandPage, Response, {
|
|
316
316
|
browserPlugins: [StagehandPlugin];
|
|
317
|
-
}, LaunchOptions, StagehandCrawlingContext, ContextExtension, ExtendedContext> {
|
|
317
|
+
}, LaunchOptions, StagehandCrawlingContext, ContextExtension, ExtendedContext, Routes> {
|
|
318
318
|
protected static optionsShape: {
|
|
319
319
|
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
320
320
|
stagehandOptions: import("ow", { with: { "resolution-mode": "import" } }).ObjectPredicate<object> & import("ow", { with: { "resolution-mode": "import" } }).BasePredicate<object | undefined>;
|
|
@@ -410,7 +410,7 @@ export declare class StagehandCrawler<ContextExtension = Dictionary<never>, Exte
|
|
|
410
410
|
*
|
|
411
411
|
* @param options - Crawler configuration options
|
|
412
412
|
*/
|
|
413
|
-
constructor(options?: StagehandCrawlerOptions<ContextExtension, ExtendedContext>);
|
|
413
|
+
constructor(options?: StagehandCrawlerOptions<ContextExtension, ExtendedContext, Routes>);
|
|
414
414
|
protected buildContextPipeline(): ContextPipeline<CrawlingContext, StagehandCrawlingContext>;
|
|
415
415
|
/**
|
|
416
416
|
* Resolves the {@link StagehandController} that owns the given page, or
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crawlee/stagehand",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.86",
|
|
4
4
|
"description": "AI-powered web crawling with Stagehand integration for Crawlee - enables natural language browser automation with act(), extract(), and observe() methods.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.0.0"
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@apify/timeout": "^0.3.2",
|
|
60
|
-
"@crawlee/browser": "4.0.0-beta.
|
|
61
|
-
"@crawlee/browser-pool": "4.0.0-beta.
|
|
62
|
-
"@crawlee/core": "4.0.0-beta.
|
|
63
|
-
"@crawlee/types": "4.0.0-beta.
|
|
64
|
-
"@crawlee/utils": "4.0.0-beta.
|
|
60
|
+
"@crawlee/browser": "4.0.0-beta.86",
|
|
61
|
+
"@crawlee/browser-pool": "4.0.0-beta.86",
|
|
62
|
+
"@crawlee/core": "4.0.0-beta.86",
|
|
63
|
+
"@crawlee/types": "4.0.0-beta.86",
|
|
64
|
+
"@crawlee/utils": "4.0.0-beta.86",
|
|
65
65
|
"ow": "^2.0.0",
|
|
66
66
|
"tslib": "^2.8.1"
|
|
67
67
|
},
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "c2f251426f3ccfcc6efc920e6d492be57beac43b"
|
|
97
97
|
}
|