@crawlee/stagehand 3.15.4-beta.39 → 3.15.4-beta.43
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/index.d.ts +1 -1
- package/index.js +1 -1
- package/internals/stagehand-controller.d.ts +1 -0
- package/internals/stagehand-crawler.d.ts +48 -4
- package/internals/stagehand-crawler.js +1 -1
- package/internals/stagehand-launcher.d.ts +12 -0
- package/internals/stagehand-plugin.d.ts +1 -0
- package/internals/utils/stagehand-utils.d.ts +1 -0
- package/internals/utils/stagehand-utils.d.ts.map +1 -1
- package/internals/utils/stagehand-utils.js +6 -3
- package/internals/utils/stagehand-utils.js.map +1 -1
- package/package.json +16 -8
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* AI-powered web crawling with Stagehand integration for Crawlee.
|
|
3
3
|
*
|
|
4
|
-
* This package provides {@
|
|
4
|
+
* This package provides {@link StagehandCrawler}, which extends {@link BrowserCrawler}
|
|
5
5
|
* with natural language browser automation capabilities powered by Browserbase's Stagehand library.
|
|
6
6
|
*
|
|
7
7
|
* ## Key Features
|
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* AI-powered web crawling with Stagehand integration for Crawlee.
|
|
4
4
|
*
|
|
5
|
-
* This package provides {@
|
|
5
|
+
* This package provides {@link StagehandCrawler}, which extends {@link BrowserCrawler}
|
|
6
6
|
* with natural language browser automation capabilities powered by Browserbase's Stagehand library.
|
|
7
7
|
*
|
|
8
8
|
* ## Key Features
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Stagehand } from '@browserbasehq/stagehand';
|
|
2
2
|
import { BrowserController } from '@crawlee/browser-pool';
|
|
3
3
|
import type { Cookie } from '@crawlee/types';
|
|
4
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
4
5
|
import type { Browser as PlaywrightBrowser, BrowserType, LaunchOptions, Page } from 'playwright';
|
|
5
6
|
import type { StagehandPlugin } from './stagehand-plugin';
|
|
6
7
|
/**
|
|
@@ -2,6 +2,7 @@ import type { Action, ActOptions, ActResult, AgentConfig, ExtractOptions, LLMCli
|
|
|
2
2
|
import type { BrowserCrawlerOptions, BrowserCrawlingContext, BrowserHook, BrowserRequestHandler, GetUserDataFromRequest, LoadedContext, RouterRoutes } from '@crawlee/browser';
|
|
3
3
|
import { BrowserCrawler, Configuration } from '@crawlee/browser';
|
|
4
4
|
import type { Dictionary } from '@crawlee/types';
|
|
5
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
5
6
|
import type { LaunchOptions, Page, Response } from 'playwright';
|
|
6
7
|
import type { z } from 'zod';
|
|
7
8
|
import type { StagehandController } from './stagehand-controller';
|
|
@@ -212,10 +213,10 @@ export interface StagehandCrawlerOptions extends BrowserCrawlerOptions<Stagehand
|
|
|
212
213
|
/**
|
|
213
214
|
* Function that is called to process each request.
|
|
214
215
|
*
|
|
215
|
-
* The function receives the {@
|
|
216
|
-
* - `request` is an instance of the {@
|
|
216
|
+
* The function receives the {@link StagehandCrawlingContext} as an argument, where:
|
|
217
|
+
* - `request` is an instance of the {@link Request} object with details about the URL to open, HTTP method etc.
|
|
217
218
|
* - `page` is an enhanced Playwright [`Page`](https://playwright.dev/docs/api/class-page) with AI methods
|
|
218
|
-
* - `browserController` is an instance of {@
|
|
219
|
+
* - `browserController` is an instance of {@link StagehandController}
|
|
219
220
|
* - `response` is the main resource response as returned by `page.goto(request.url)`
|
|
220
221
|
* - `stagehand` is the Stagehand instance for advanced control
|
|
221
222
|
*
|
|
@@ -271,7 +272,7 @@ export interface StagehandCrawlerOptions extends BrowserCrawlerOptions<Stagehand
|
|
|
271
272
|
/**
|
|
272
273
|
* StagehandCrawler provides AI-powered web crawling using Browserbase's Stagehand library.
|
|
273
274
|
*
|
|
274
|
-
* It extends {@
|
|
275
|
+
* It extends {@link BrowserCrawler} and adds natural language interaction capabilities:
|
|
275
276
|
* - `page.act()` - Perform actions using natural language
|
|
276
277
|
* - `page.extract()` - Extract structured data with AI
|
|
277
278
|
* - `page.observe()` - Get AI-suggested actions
|
|
@@ -322,47 +323,89 @@ export declare class StagehandCrawler extends BrowserCrawler<{
|
|
|
322
323
|
}, LaunchOptions, StagehandCrawlingContext> {
|
|
323
324
|
readonly config: Configuration;
|
|
324
325
|
protected static optionsShape: {
|
|
326
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
325
327
|
stagehandOptions: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
328
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
326
329
|
browserPoolOptions: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
330
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
327
331
|
handlePageFunction: import("ow").Predicate<Function> & import("ow").BasePredicate<Function | undefined>;
|
|
332
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
328
333
|
navigationTimeoutSecs: import("ow").NumberPredicate & import("ow").BasePredicate<number | undefined>;
|
|
334
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
329
335
|
preNavigationHooks: import("ow").ArrayPredicate<unknown> & import("ow").BasePredicate<unknown[] | undefined>;
|
|
336
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
330
337
|
postNavigationHooks: import("ow").ArrayPredicate<unknown> & import("ow").BasePredicate<unknown[] | undefined>;
|
|
338
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
331
339
|
launchContext: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
340
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
332
341
|
headless: import("ow").AnyPredicate<string | boolean>;
|
|
342
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
333
343
|
sessionPoolOptions: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
344
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
334
345
|
persistCookiesPerSession: import("ow").BooleanPredicate & import("ow").BasePredicate<boolean | undefined>;
|
|
346
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
335
347
|
useSessionPool: import("ow").BooleanPredicate & import("ow").BasePredicate<boolean | undefined>;
|
|
348
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
336
349
|
proxyConfiguration: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
350
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
337
351
|
ignoreShadowRoots: import("ow").BooleanPredicate & import("ow").BasePredicate<boolean | undefined>;
|
|
352
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
338
353
|
ignoreIframes: import("ow").BooleanPredicate & import("ow").BasePredicate<boolean | undefined>;
|
|
354
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
339
355
|
requestList: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
356
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
340
357
|
requestQueue: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
358
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
341
359
|
requestHandler: import("ow").Predicate<Function> & import("ow").BasePredicate<Function | undefined>;
|
|
360
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
342
361
|
handleRequestFunction: import("ow").Predicate<Function> & import("ow").BasePredicate<Function | undefined>;
|
|
362
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
343
363
|
requestHandlerTimeoutSecs: import("ow").NumberPredicate & import("ow").BasePredicate<number | undefined>;
|
|
364
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
344
365
|
handleRequestTimeoutSecs: import("ow").NumberPredicate & import("ow").BasePredicate<number | undefined>;
|
|
366
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
345
367
|
errorHandler: import("ow").Predicate<Function> & import("ow").BasePredicate<Function | undefined>;
|
|
368
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
346
369
|
failedRequestHandler: import("ow").Predicate<Function> & import("ow").BasePredicate<Function | undefined>;
|
|
370
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
347
371
|
handleFailedRequestFunction: import("ow").Predicate<Function> & import("ow").BasePredicate<Function | undefined>;
|
|
372
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
348
373
|
maxRequestRetries: import("ow").NumberPredicate & import("ow").BasePredicate<number | undefined>;
|
|
374
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
349
375
|
sameDomainDelaySecs: import("ow").NumberPredicate & import("ow").BasePredicate<number | undefined>;
|
|
376
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
350
377
|
maxSessionRotations: import("ow").NumberPredicate & import("ow").BasePredicate<number | undefined>;
|
|
378
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
351
379
|
maxRequestsPerCrawl: import("ow").NumberPredicate & import("ow").BasePredicate<number | undefined>;
|
|
380
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
352
381
|
maxCrawlDepth: import("ow").NumberPredicate & import("ow").BasePredicate<number | undefined>;
|
|
382
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
353
383
|
autoscaledPoolOptions: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
384
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
354
385
|
statusMessageLoggingInterval: import("ow").NumberPredicate & import("ow").BasePredicate<number | undefined>;
|
|
386
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
355
387
|
statusMessageCallback: import("ow").Predicate<Function> & import("ow").BasePredicate<Function | undefined>;
|
|
388
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
356
389
|
retryOnBlocked: import("ow").BooleanPredicate & import("ow").BasePredicate<boolean | undefined>;
|
|
390
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
357
391
|
respectRobotsTxtFile: import("ow").AnyPredicate<boolean | object>;
|
|
392
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
358
393
|
onSkippedRequest: import("ow").Predicate<Function> & import("ow").BasePredicate<Function | undefined>;
|
|
394
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
359
395
|
httpClient: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
396
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
360
397
|
minConcurrency: import("ow").NumberPredicate & import("ow").BasePredicate<number | undefined>;
|
|
398
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
361
399
|
maxConcurrency: import("ow").NumberPredicate & import("ow").BasePredicate<number | undefined>;
|
|
400
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
362
401
|
maxRequestsPerMinute: import("ow").NumberPredicate & import("ow").BasePredicate<number | undefined>;
|
|
402
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
363
403
|
keepAlive: import("ow").BooleanPredicate & import("ow").BasePredicate<boolean | undefined>;
|
|
404
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
364
405
|
log: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
406
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
365
407
|
experiments: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
408
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
366
409
|
statisticsOptions: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
367
410
|
};
|
|
368
411
|
/**
|
|
@@ -415,5 +458,6 @@ export declare class StagehandCrawler extends BrowserCrawler<{
|
|
|
415
458
|
* });
|
|
416
459
|
* ```
|
|
417
460
|
*/
|
|
461
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
418
462
|
export declare function createStagehandRouter<Context extends StagehandCrawlingContext = StagehandCrawlingContext, UserData extends Dictionary = GetUserDataFromRequest<Context['request']>>(routes?: RouterRoutes<Context, UserData>): import("@crawlee/browser").RouterHandler<Context>;
|
|
419
463
|
//# sourceMappingURL=stagehand-crawler.d.ts.map
|
|
@@ -10,7 +10,7 @@ const stagehand_utils_1 = require("./utils/stagehand-utils");
|
|
|
10
10
|
/**
|
|
11
11
|
* StagehandCrawler provides AI-powered web crawling using Browserbase's Stagehand library.
|
|
12
12
|
*
|
|
13
|
-
* It extends {@
|
|
13
|
+
* It extends {@link BrowserCrawler} and adds natural language interaction capabilities:
|
|
14
14
|
* - `page.act()` - Perform actions using natural language
|
|
15
15
|
* - `page.extract()` - Extract structured data with AI
|
|
16
16
|
* - `page.observe()` - Get AI-suggested actions
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BrowserLaunchContext } from '@crawlee/browser';
|
|
2
2
|
import { BrowserLauncher, Configuration } from '@crawlee/browser';
|
|
3
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
3
4
|
import type { BrowserType, LaunchOptions } from 'playwright';
|
|
4
5
|
import type { StagehandOptions } from './stagehand-crawler';
|
|
5
6
|
import { StagehandPlugin } from './stagehand-plugin';
|
|
@@ -55,16 +56,27 @@ export interface StagehandLaunchContext extends BrowserLaunchContext<LaunchOptio
|
|
|
55
56
|
export declare class StagehandLauncher extends BrowserLauncher<StagehandPlugin> {
|
|
56
57
|
readonly config: Configuration;
|
|
57
58
|
protected static optionsShape: {
|
|
59
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
58
60
|
launcher: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
61
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
59
62
|
launchContextOptions: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
63
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
60
64
|
stagehandOptions: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
65
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
61
66
|
proxyUrl: import("ow").StringPredicate & import("ow").BasePredicate<string | undefined>;
|
|
67
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
62
68
|
useChrome: import("ow").BooleanPredicate & import("ow").BasePredicate<boolean | undefined>;
|
|
69
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
63
70
|
useIncognitoPages: import("ow").BooleanPredicate & import("ow").BasePredicate<boolean | undefined>;
|
|
71
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
64
72
|
browserPerProxy: import("ow").BooleanPredicate & import("ow").BasePredicate<boolean | undefined>;
|
|
73
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
65
74
|
experimentalContainers: import("ow").BooleanPredicate & import("ow").BasePredicate<boolean | undefined>;
|
|
75
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
66
76
|
userDataDir: import("ow").StringPredicate & import("ow").BasePredicate<string | undefined>;
|
|
77
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
67
78
|
launchOptions: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
79
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
68
80
|
userAgent: import("ow").StringPredicate & import("ow").BasePredicate<string | undefined>;
|
|
69
81
|
};
|
|
70
82
|
private readonly stagehandOptions;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Stagehand } from '@browserbasehq/stagehand';
|
|
2
2
|
import type { BrowserController, BrowserPluginOptions, LaunchContext } from '@crawlee/browser-pool';
|
|
3
3
|
import { BrowserPlugin } from '@crawlee/browser-pool';
|
|
4
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
4
5
|
import type { Browser as PlaywrightBrowser, BrowserType, LaunchOptions } from 'playwright';
|
|
5
6
|
import type { StagehandOptions } from './stagehand-crawler';
|
|
6
7
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stagehand-utils.d.ts","sourceRoot":"","sources":["../../../src/internals/utils/stagehand-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA2D,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACnH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAgC1D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"stagehand-utils.d.ts","sourceRoot":"","sources":["../../../src/internals/utils/stagehand-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA2D,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACnH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAgC1D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,GAAG,aAAa,CA8ExF"}
|
|
@@ -56,7 +56,8 @@ function enhancePageWithStagehand(page, stagehand) {
|
|
|
56
56
|
enhancedPage.act = async (instruction, options) => {
|
|
57
57
|
try {
|
|
58
58
|
// Pass the page option to ensure Stagehand operates on this specific page
|
|
59
|
-
|
|
59
|
+
// Cast needed because Stagehand types reference older playwright-core versions
|
|
60
|
+
return await stagehand.act(instruction, { ...options, page: page });
|
|
60
61
|
}
|
|
61
62
|
catch (error) {
|
|
62
63
|
throw new Error(`Stagehand act() failed: ${improveErrorMessage(error)}`, {
|
|
@@ -71,7 +72,8 @@ function enhancePageWithStagehand(page, stagehand) {
|
|
|
71
72
|
enhancedPage.extract = async (instruction, schema, options) => {
|
|
72
73
|
try {
|
|
73
74
|
// Pass the page option to ensure Stagehand operates on this specific page
|
|
74
|
-
|
|
75
|
+
// Cast needed because Stagehand types reference older playwright-core versions
|
|
76
|
+
return await stagehand.extract(instruction, schema, { ...options, page: page });
|
|
75
77
|
}
|
|
76
78
|
catch (error) {
|
|
77
79
|
throw new Error(`Stagehand extract() failed: ${improveErrorMessage(error)}`, {
|
|
@@ -86,7 +88,8 @@ function enhancePageWithStagehand(page, stagehand) {
|
|
|
86
88
|
enhancedPage.observe = async (options) => {
|
|
87
89
|
try {
|
|
88
90
|
// Pass the page option to ensure Stagehand operates on this specific page
|
|
89
|
-
|
|
91
|
+
// Cast needed because Stagehand types reference older playwright-core versions
|
|
92
|
+
return await stagehand.observe({ ...options, page: page });
|
|
90
93
|
}
|
|
91
94
|
catch (error) {
|
|
92
95
|
throw new Error(`Stagehand observe() failed: ${improveErrorMessage(error)}`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stagehand-utils.js","sourceRoot":"","sources":["../../../src/internals/utils/stagehand-utils.ts"],"names":[],"mappings":";;AAwDA,
|
|
1
|
+
{"version":3,"file":"stagehand-utils.js","sourceRoot":"","sources":["../../../src/internals/utils/stagehand-utils.ts"],"names":[],"mappings":";;AAwDA,4DA8EC;AAhID,MAAM,iBAAiB,GAA2B;IAC9C,MAAM,EAAE,gBAAgB;IACxB,SAAS,EAAE,mBAAmB;IAC9B,MAAM,EAAE,gBAAgB;CAC3B,CAAC;AAEF;;;GAGG;AACH,SAAS,mBAAmB,CAAC,KAAc;IACvC,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAEvE,0DAA0D;IAC1D,IAAI,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,CAAC;QACzC,IAAI,QAAQ,GAAG,cAAc,CAAC;QAC9B,KAAK,MAAM,IAAI,IAA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
"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": ">=16.0.0"
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@apify/log": "^2.4.0",
|
|
60
60
|
"@apify/timeout": "^0.3.1",
|
|
61
|
-
"@crawlee/browser": "3.15.4-beta.
|
|
62
|
-
"@crawlee/browser-pool": "3.15.4-beta.
|
|
63
|
-
"@crawlee/core": "3.15.4-beta.
|
|
64
|
-
"@crawlee/types": "3.15.4-beta.
|
|
65
|
-
"@crawlee/utils": "3.15.4-beta.
|
|
61
|
+
"@crawlee/browser": "3.15.4-beta.43",
|
|
62
|
+
"@crawlee/browser-pool": "3.15.4-beta.43",
|
|
63
|
+
"@crawlee/core": "3.15.4-beta.43",
|
|
64
|
+
"@crawlee/types": "3.15.4-beta.43",
|
|
65
|
+
"@crawlee/utils": "3.15.4-beta.43",
|
|
66
66
|
"ow": "^0.28.1",
|
|
67
67
|
"tslib": "^2.4.0"
|
|
68
68
|
},
|
|
@@ -84,7 +84,15 @@
|
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@browserbasehq/stagehand": "^3.0.7",
|
|
87
|
-
"playwright": "^1.
|
|
87
|
+
"playwright": "^1.58.0",
|
|
88
88
|
"zod": "^4.3.5"
|
|
89
|
-
}
|
|
89
|
+
},
|
|
90
|
+
"lerna": {
|
|
91
|
+
"command": {
|
|
92
|
+
"publish": {
|
|
93
|
+
"assets": []
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"gitHead": "7b58c80cdfb902996d684a92add411daa51fbf8b"
|
|
90
98
|
}
|