@crawlee/stagehand 4.0.0-beta.141 → 4.0.0-beta.142

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.
@@ -318,19 +318,6 @@ export declare class StagehandCrawler<ContextExtension = Dictionary<never>, Exte
318
318
  * @internal
319
319
  */
320
320
  protected static optionsShape: {
321
- stagehandOptions: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
322
- headless: z.ZodOptional<z.ZodBoolean>;
323
- navigationTimeoutSecs: z.ZodDefault<z.ZodCustom<number, number>>;
324
- preNavigationHooks: z.ZodDefault<z.ZodCustom<unknown[], unknown[]>>;
325
- postNavigationHooks: z.ZodDefault<z.ZodCustom<unknown[], unknown[]>>;
326
- launchContext: z.ZodDefault<z.ZodCustom<Dictionary, Dictionary>>;
327
- browserPool: z.ZodOptional<z.ZodType<Dictionary<any>, unknown, z.core.$ZodTypeInternals<Dictionary<any>, unknown>>>;
328
- browserPoolBuilder: z.ZodOptional<z.ZodCustom<(...args: any[]) => unknown, (...args: any[]) => unknown>>;
329
- remoteBrowser: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
330
- saveResponseCookies: z.ZodDefault<z.ZodBoolean>;
331
- proxyConfiguration: z.ZodOptional<z.ZodType<Dictionary<any>, unknown, z.core.$ZodTypeInternals<Dictionary<any>, unknown>>>;
332
- ignoreIframes: z.ZodDefault<z.ZodBoolean>;
333
- ignoreShadowRoots: z.ZodDefault<z.ZodBoolean>;
334
321
  contextPipelineBuilder: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
335
322
  extendContext: z.ZodOptional<z.ZodCustom<(...args: any[]) => unknown, (...args: any[]) => unknown>>;
336
323
  requestList: z.ZodOptional<z.ZodType<Dictionary<any>, unknown, z.core.$ZodTypeInternals<Dictionary<any>, unknown>>>;
@@ -375,11 +362,6 @@ export declare class StagehandCrawler<ContextExtension = Dictionary<never>, Exte
375
362
  keepAlive: z.ZodOptional<z.ZodBoolean>;
376
363
  statistics: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
377
364
  id: z.ZodOptional<z.ZodString>;
378
- };
379
- /** @internal */
380
- protected static optionsSchema: z.ZodObject<{
381
- stagehandOptions: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
382
- headless: z.ZodOptional<z.ZodBoolean>;
383
365
  navigationTimeoutSecs: z.ZodDefault<z.ZodCustom<number, number>>;
384
366
  preNavigationHooks: z.ZodDefault<z.ZodCustom<unknown[], unknown[]>>;
385
367
  postNavigationHooks: z.ZodDefault<z.ZodCustom<unknown[], unknown[]>>;
@@ -391,6 +373,11 @@ export declare class StagehandCrawler<ContextExtension = Dictionary<never>, Exte
391
373
  proxyConfiguration: z.ZodOptional<z.ZodType<Dictionary<any>, unknown, z.core.$ZodTypeInternals<Dictionary<any>, unknown>>>;
392
374
  ignoreIframes: z.ZodDefault<z.ZodBoolean>;
393
375
  ignoreShadowRoots: z.ZodDefault<z.ZodBoolean>;
376
+ stagehandOptions: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
377
+ headless: z.ZodOptional<z.ZodBoolean>;
378
+ };
379
+ /** @internal */
380
+ protected static optionsSchema: z.ZodObject<{
394
381
  contextPipelineBuilder: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
395
382
  extendContext: z.ZodOptional<z.ZodCustom<(...args: any[]) => unknown, (...args: any[]) => unknown>>;
396
383
  requestList: z.ZodOptional<z.ZodType<Dictionary<any>, unknown, z.core.$ZodTypeInternals<Dictionary<any>, unknown>>>;
@@ -435,6 +422,19 @@ export declare class StagehandCrawler<ContextExtension = Dictionary<never>, Exte
435
422
  keepAlive: z.ZodOptional<z.ZodBoolean>;
436
423
  statistics: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
437
424
  id: z.ZodOptional<z.ZodString>;
425
+ navigationTimeoutSecs: z.ZodDefault<z.ZodCustom<number, number>>;
426
+ preNavigationHooks: z.ZodDefault<z.ZodCustom<unknown[], unknown[]>>;
427
+ postNavigationHooks: z.ZodDefault<z.ZodCustom<unknown[], unknown[]>>;
428
+ launchContext: z.ZodDefault<z.ZodCustom<Dictionary, Dictionary>>;
429
+ browserPool: z.ZodOptional<z.ZodType<Dictionary<any>, unknown, z.core.$ZodTypeInternals<Dictionary<any>, unknown>>>;
430
+ browserPoolBuilder: z.ZodOptional<z.ZodCustom<(...args: any[]) => unknown, (...args: any[]) => unknown>>;
431
+ remoteBrowser: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
432
+ saveResponseCookies: z.ZodDefault<z.ZodBoolean>;
433
+ proxyConfiguration: z.ZodOptional<z.ZodType<Dictionary<any>, unknown, z.core.$ZodTypeInternals<Dictionary<any>, unknown>>>;
434
+ ignoreIframes: z.ZodDefault<z.ZodBoolean>;
435
+ ignoreShadowRoots: z.ZodDefault<z.ZodBoolean>;
436
+ stagehandOptions: z.ZodOptional<z.ZodCustom<Dictionary, Dictionary>>;
437
+ headless: z.ZodOptional<z.ZodBoolean>;
438
438
  }, z.core.$strict>;
439
439
  /**
440
440
  * Creates a new instance of StagehandCrawler.
@@ -61,12 +61,6 @@ export declare class StagehandLauncher extends BrowserLauncher<StagehandPlugin>
61
61
  * @internal
62
62
  */
63
63
  protected static optionsShape: {
64
- // @ts-ignore optional peer dependency or compatibility with es2022
65
- launcher: z.ZodOptional<z.ZodCustom<import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary, import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary>>;
66
- // @ts-ignore optional peer dependency or compatibility with es2022
67
- launchContextOptions: z.ZodOptional<z.ZodCustom<import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary, import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary>>;
68
- // @ts-ignore optional peer dependency or compatibility with es2022
69
- stagehandOptions: z.ZodOptional<z.ZodCustom<import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary, import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary>>;
70
64
  proxyUrl: z.ZodOptional<z.ZodURL>;
71
65
  useChrome: z.ZodOptional<z.ZodBoolean>;
72
66
  useIncognitoPages: z.ZodOptional<z.ZodBoolean>;
@@ -76,15 +70,15 @@ export declare class StagehandLauncher extends BrowserLauncher<StagehandPlugin>
76
70
  // @ts-ignore optional peer dependency or compatibility with es2022
77
71
  launchOptions: z.ZodOptional<z.ZodCustom<import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary, import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary>>;
78
72
  userAgent: z.ZodOptional<z.ZodString>;
79
- };
80
- /** @internal */
81
- protected static optionsSchema: z.ZodObject<{
82
73
  // @ts-ignore optional peer dependency or compatibility with es2022
83
74
  launcher: z.ZodOptional<z.ZodCustom<import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary, import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary>>;
84
75
  // @ts-ignore optional peer dependency or compatibility with es2022
85
76
  launchContextOptions: z.ZodOptional<z.ZodCustom<import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary, import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary>>;
86
77
  // @ts-ignore optional peer dependency or compatibility with es2022
87
78
  stagehandOptions: z.ZodOptional<z.ZodCustom<import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary, import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary>>;
79
+ };
80
+ /** @internal */
81
+ protected static optionsSchema: z.ZodObject<{
88
82
  proxyUrl: z.ZodOptional<z.ZodURL>;
89
83
  useChrome: z.ZodOptional<z.ZodBoolean>;
90
84
  useIncognitoPages: z.ZodOptional<z.ZodBoolean>;
@@ -94,6 +88,12 @@ export declare class StagehandLauncher extends BrowserLauncher<StagehandPlugin>
94
88
  // @ts-ignore optional peer dependency or compatibility with es2022
95
89
  launchOptions: z.ZodOptional<z.ZodCustom<import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary, import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary>>;
96
90
  userAgent: z.ZodOptional<z.ZodString>;
91
+ // @ts-ignore optional peer dependency or compatibility with es2022
92
+ launcher: z.ZodOptional<z.ZodCustom<import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary, import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary>>;
93
+ // @ts-ignore optional peer dependency or compatibility with es2022
94
+ launchContextOptions: z.ZodOptional<z.ZodCustom<import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary, import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary>>;
95
+ // @ts-ignore optional peer dependency or compatibility with es2022
96
+ stagehandOptions: z.ZodOptional<z.ZodCustom<import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary, import("@crawlee/types", { with: { "resolution-mode": "import" } }).Dictionary>>;
97
97
  }, z.core.$strict>;
98
98
  /**
99
99
  * All StagehandLauncher parameters are passed via the launchContext object.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/stagehand",
3
- "version": "4.0.0-beta.141",
3
+ "version": "4.0.0-beta.142",
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.4.4",
60
- "@crawlee/browser": "4.0.0-beta.141",
61
- "@crawlee/browser-pool": "4.0.0-beta.141",
62
- "@crawlee/core": "4.0.0-beta.141",
63
- "@crawlee/types": "4.0.0-beta.141",
64
- "@crawlee/utils": "4.0.0-beta.141",
60
+ "@crawlee/browser": "4.0.0-beta.142",
61
+ "@crawlee/browser-pool": "4.0.0-beta.142",
62
+ "@crawlee/core": "4.0.0-beta.142",
63
+ "@crawlee/types": "4.0.0-beta.142",
64
+ "@crawlee/utils": "4.0.0-beta.142",
65
65
  "tslib": "^2.8.1",
66
66
  "zod": "^4.4.3"
67
67
  },
@@ -88,5 +88,5 @@
88
88
  }
89
89
  }
90
90
  },
91
- "gitHead": "6f97ccc5beda6b4ec0455b26323dba311a5799e4"
91
+ "gitHead": "d40a48fcb78865bd622a05027103155ac08a227f"
92
92
  }