@mastra/stagehand 0.3.6 → 0.3.7-alpha.0
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/dist/index.d.cts +13 -13
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ import { z } from "zod";
|
|
|
6
6
|
/**
|
|
7
7
|
* stagehand_act - Perform an action using natural language
|
|
8
8
|
*/
|
|
9
|
-
declare const actInputSchema: z.ZodObject<{
|
|
9
|
+
export declare const actInputSchema: z.ZodObject<{
|
|
10
10
|
instruction: z.ZodString;
|
|
11
11
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12
12
|
useVision: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -16,7 +16,7 @@ type ActInput = z.output<typeof actInputSchema>;
|
|
|
16
16
|
/**
|
|
17
17
|
* stagehand_extract - Extract structured data from a page
|
|
18
18
|
*/
|
|
19
|
-
declare const extractInputSchema: z.ZodObject<{
|
|
19
|
+
export declare const extractInputSchema: z.ZodObject<{
|
|
20
20
|
instruction: z.ZodString;
|
|
21
21
|
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
22
22
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
@@ -25,7 +25,7 @@ type ExtractInput = z.output<typeof extractInputSchema>;
|
|
|
25
25
|
/**
|
|
26
26
|
* stagehand_observe - Discover actionable elements on a page
|
|
27
27
|
*/
|
|
28
|
-
declare const observeInputSchema: z.ZodObject<{
|
|
28
|
+
export declare const observeInputSchema: z.ZodObject<{
|
|
29
29
|
instruction: z.ZodOptional<z.ZodString>;
|
|
30
30
|
onlyVisible: z.ZodOptional<z.ZodBoolean>;
|
|
31
31
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
@@ -34,7 +34,7 @@ type ObserveInput = z.output<typeof observeInputSchema>;
|
|
|
34
34
|
/**
|
|
35
35
|
* stagehand_navigate - Navigate to a URL
|
|
36
36
|
*/
|
|
37
|
-
declare const navigateInputSchema: z.ZodObject<{
|
|
37
|
+
export declare const navigateInputSchema: z.ZodObject<{
|
|
38
38
|
url: z.ZodString;
|
|
39
39
|
waitUntil: z.ZodOptional<z.ZodEnum<{
|
|
40
40
|
domcontentloaded: "domcontentloaded";
|
|
@@ -46,12 +46,12 @@ type NavigateInput = z.output<typeof navigateInputSchema>;
|
|
|
46
46
|
/**
|
|
47
47
|
* stagehand_close - Close the browser
|
|
48
48
|
*/
|
|
49
|
-
declare const closeInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
49
|
+
export declare const closeInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
50
50
|
type CloseInput = z.output<typeof closeInputSchema>;
|
|
51
51
|
/**
|
|
52
52
|
* stagehand_tabs - Manage browser tabs
|
|
53
53
|
*/
|
|
54
|
-
declare const tabsInputSchema: z.ZodObject<{
|
|
54
|
+
export declare const tabsInputSchema: z.ZodObject<{
|
|
55
55
|
action: z.ZodEnum<{
|
|
56
56
|
close: "close";
|
|
57
57
|
list: "list";
|
|
@@ -69,7 +69,7 @@ declare const screenshotInputSchema: z.ZodObject<{
|
|
|
69
69
|
fullPage: z.ZodOptional<z.ZodBoolean>;
|
|
70
70
|
}, z.core.$strip>;
|
|
71
71
|
type ScreenshotInput = z.output<typeof screenshotInputSchema>;
|
|
72
|
-
declare const stagehandSchemas: {
|
|
72
|
+
export declare const stagehandSchemas: {
|
|
73
73
|
readonly act: z.ZodObject<{
|
|
74
74
|
instruction: z.ZodString;
|
|
75
75
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -177,7 +177,7 @@ declare class StagehandThreadManager extends ThreadManager<V3> {
|
|
|
177
177
|
/**
|
|
178
178
|
* Stagehand Tool Constants
|
|
179
179
|
*/
|
|
180
|
-
declare const STAGEHAND_TOOLS: {
|
|
180
|
+
export declare const STAGEHAND_TOOLS: {
|
|
181
181
|
readonly ACT: 'stagehand_act';
|
|
182
182
|
readonly EXTRACT: 'stagehand_extract';
|
|
183
183
|
readonly OBSERVE: 'stagehand_observe';
|
|
@@ -202,7 +202,7 @@ type ModelConfiguration = ModelConfiguration$1;
|
|
|
202
202
|
* can reject a bad provider up front. Keep in sync with `AISDKProviders` in
|
|
203
203
|
* `@browserbasehq/stagehand`.
|
|
204
204
|
*/
|
|
205
|
-
declare const STAGEHAND_MODEL_PROVIDERS: readonly ['anthropic', 'azure', 'bedrock', 'cerebras', 'deepseek', 'gateway', 'google', 'groq', 'mistral', 'ollama', 'openai', 'perplexity', 'togetherai', 'vertex', 'xai'];
|
|
205
|
+
export declare const STAGEHAND_MODEL_PROVIDERS: readonly ['anthropic', 'azure', 'bedrock', 'cerebras', 'deepseek', 'gateway', 'google', 'groq', 'mistral', 'ollama', 'openai', 'perplexity', 'togetherai', 'vertex', 'xai'];
|
|
206
206
|
/**
|
|
207
207
|
* Stagehand-specific configuration fields.
|
|
208
208
|
*/
|
|
@@ -369,7 +369,7 @@ type V3Page = NonNullable<ReturnType<NonNullable<Stagehand['context']>['activePa
|
|
|
369
369
|
* - 'shared': All threads share the same Stagehand instance
|
|
370
370
|
* - 'thread': Each thread gets its own Stagehand instance (separate browser)
|
|
371
371
|
*/
|
|
372
|
-
declare class StagehandBrowser extends MastraBrowser {
|
|
372
|
+
export declare class StagehandBrowser extends MastraBrowser {
|
|
373
373
|
readonly id: string;
|
|
374
374
|
readonly name = "StagehandBrowser";
|
|
375
375
|
readonly provider = "browserbase/stagehand";
|
|
@@ -588,14 +588,14 @@ declare class StagehandBrowser extends MastraBrowser {
|
|
|
588
588
|
*
|
|
589
589
|
* Returns undefined if the PID can't be found (e.g. BROWSERBASE env, not yet init'd).
|
|
590
590
|
*/
|
|
591
|
-
declare function getStagehandChromePid(stagehand: Stagehand): number | undefined;
|
|
591
|
+
export declare function getStagehandChromePid(stagehand: Stagehand): number | undefined;
|
|
592
592
|
//#endregion
|
|
593
593
|
//#region src/tools/index.d.ts
|
|
594
594
|
/**
|
|
595
595
|
* Creates all Stagehand tools bound to a StagehandBrowser instance.
|
|
596
596
|
* The browser is lazily initialized on first tool use.
|
|
597
597
|
*/
|
|
598
|
-
declare function createStagehandTools(browser: StagehandBrowser): Record<string, Tool<any, any>>;
|
|
598
|
+
export declare function createStagehandTools(browser: StagehandBrowser): Record<string, Tool<any, any>>;
|
|
599
599
|
//#endregion
|
|
600
|
-
export {
|
|
600
|
+
export type { ActInput, ActResult, CloseInput, ExtractInput, ExtractResult, ModelConfiguration, NavigateInput, ObserveInput, ObserveResult, StagehandAction, StagehandBrowserConfig, StagehandToolName, TabsInput };
|
|
601
601
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":["V3Page","StagehandModelConfiguration","BaseBrowserConfig"],"sources":["../src/schemas.ts","../src/thread-manager.ts","../src/tools/constants.ts","../src/types.ts","../src/stagehand-browser.ts","../src/utils.ts","../src/tools/index.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":["V3Page","StagehandModelConfiguration","BaseBrowserConfig"],"sources":["../src/schemas.ts","../src/thread-manager.ts","../src/tools/constants.ts","../src/types.ts","../src/stagehand-browser.ts","../src/utils.ts","../src/tools/index.ts"],"mappings":";;;;;;;;qBAgBa,gBAAc,EAAA;;;;;GAQzB,EAAA,KAAA;KACU,WAAW,EAAE,cAAc;;;;qBAK1B,oBAAkB,EAAA;;;;GAO7B,EAAA,KAAA;KACU,eAAe,EAAE,cAAc;;;;qBAK9B,oBAAkB,EAAA;;;;GAS7B,EAAA,KAAA;KACU,eAAe,EAAE,cAAc;;;;qBAS9B,qBAAmB,EAAA;;;;;;;GAM9B,EAAA,KAAA;KACU,gBAAgB,EAAE,cAAc;;;;qBAK/B,kBAAgB,EAAA,cAA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AW,cAAc;;;;EAiBzB,gBAAgB,oBAAoB,QAAQ;;;;;YAwBjD,yBAAyB,oBAAoB;;;;UAS/C;;;;EA6BO,YAAY,oBAAoB,QAAQ;;;;EAQxC,kBAAkB,oBAAoB;EAUtC,gBAAgB,UAAU,oBAAoB,QAAQ;;;;;UAsDvD;EA+PC,iBAAiB,OAAO,kBAAkB,oBAAoB;EAkC9D,oBAAoB,OAAO,qBAAqB,oBAAoB;;;;;;;;;;;;;wBCzzCrE,sBAAsB,WAAW;;;;;;;wBCjBjC,qBAAqB,SAAS,mBAAmB,eAAe"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { z } from "zod";
|
|
|
6
6
|
/**
|
|
7
7
|
* stagehand_act - Perform an action using natural language
|
|
8
8
|
*/
|
|
9
|
-
declare const actInputSchema: z.ZodObject<{
|
|
9
|
+
export declare const actInputSchema: z.ZodObject<{
|
|
10
10
|
instruction: z.ZodString;
|
|
11
11
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12
12
|
useVision: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -16,7 +16,7 @@ type ActInput = z.output<typeof actInputSchema>;
|
|
|
16
16
|
/**
|
|
17
17
|
* stagehand_extract - Extract structured data from a page
|
|
18
18
|
*/
|
|
19
|
-
declare const extractInputSchema: z.ZodObject<{
|
|
19
|
+
export declare const extractInputSchema: z.ZodObject<{
|
|
20
20
|
instruction: z.ZodString;
|
|
21
21
|
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
22
22
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
@@ -25,7 +25,7 @@ type ExtractInput = z.output<typeof extractInputSchema>;
|
|
|
25
25
|
/**
|
|
26
26
|
* stagehand_observe - Discover actionable elements on a page
|
|
27
27
|
*/
|
|
28
|
-
declare const observeInputSchema: z.ZodObject<{
|
|
28
|
+
export declare const observeInputSchema: z.ZodObject<{
|
|
29
29
|
instruction: z.ZodOptional<z.ZodString>;
|
|
30
30
|
onlyVisible: z.ZodOptional<z.ZodBoolean>;
|
|
31
31
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
@@ -34,7 +34,7 @@ type ObserveInput = z.output<typeof observeInputSchema>;
|
|
|
34
34
|
/**
|
|
35
35
|
* stagehand_navigate - Navigate to a URL
|
|
36
36
|
*/
|
|
37
|
-
declare const navigateInputSchema: z.ZodObject<{
|
|
37
|
+
export declare const navigateInputSchema: z.ZodObject<{
|
|
38
38
|
url: z.ZodString;
|
|
39
39
|
waitUntil: z.ZodOptional<z.ZodEnum<{
|
|
40
40
|
domcontentloaded: "domcontentloaded";
|
|
@@ -46,12 +46,12 @@ type NavigateInput = z.output<typeof navigateInputSchema>;
|
|
|
46
46
|
/**
|
|
47
47
|
* stagehand_close - Close the browser
|
|
48
48
|
*/
|
|
49
|
-
declare const closeInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
49
|
+
export declare const closeInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
50
50
|
type CloseInput = z.output<typeof closeInputSchema>;
|
|
51
51
|
/**
|
|
52
52
|
* stagehand_tabs - Manage browser tabs
|
|
53
53
|
*/
|
|
54
|
-
declare const tabsInputSchema: z.ZodObject<{
|
|
54
|
+
export declare const tabsInputSchema: z.ZodObject<{
|
|
55
55
|
action: z.ZodEnum<{
|
|
56
56
|
close: "close";
|
|
57
57
|
list: "list";
|
|
@@ -69,7 +69,7 @@ declare const screenshotInputSchema: z.ZodObject<{
|
|
|
69
69
|
fullPage: z.ZodOptional<z.ZodBoolean>;
|
|
70
70
|
}, z.core.$strip>;
|
|
71
71
|
type ScreenshotInput = z.output<typeof screenshotInputSchema>;
|
|
72
|
-
declare const stagehandSchemas: {
|
|
72
|
+
export declare const stagehandSchemas: {
|
|
73
73
|
readonly act: z.ZodObject<{
|
|
74
74
|
instruction: z.ZodString;
|
|
75
75
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -177,7 +177,7 @@ declare class StagehandThreadManager extends ThreadManager<V3> {
|
|
|
177
177
|
/**
|
|
178
178
|
* Stagehand Tool Constants
|
|
179
179
|
*/
|
|
180
|
-
declare const STAGEHAND_TOOLS: {
|
|
180
|
+
export declare const STAGEHAND_TOOLS: {
|
|
181
181
|
readonly ACT: 'stagehand_act';
|
|
182
182
|
readonly EXTRACT: 'stagehand_extract';
|
|
183
183
|
readonly OBSERVE: 'stagehand_observe';
|
|
@@ -202,7 +202,7 @@ type ModelConfiguration = ModelConfiguration$1;
|
|
|
202
202
|
* can reject a bad provider up front. Keep in sync with `AISDKProviders` in
|
|
203
203
|
* `@browserbasehq/stagehand`.
|
|
204
204
|
*/
|
|
205
|
-
declare const STAGEHAND_MODEL_PROVIDERS: readonly ['anthropic', 'azure', 'bedrock', 'cerebras', 'deepseek', 'gateway', 'google', 'groq', 'mistral', 'ollama', 'openai', 'perplexity', 'togetherai', 'vertex', 'xai'];
|
|
205
|
+
export declare const STAGEHAND_MODEL_PROVIDERS: readonly ['anthropic', 'azure', 'bedrock', 'cerebras', 'deepseek', 'gateway', 'google', 'groq', 'mistral', 'ollama', 'openai', 'perplexity', 'togetherai', 'vertex', 'xai'];
|
|
206
206
|
/**
|
|
207
207
|
* Stagehand-specific configuration fields.
|
|
208
208
|
*/
|
|
@@ -369,7 +369,7 @@ type V3Page = NonNullable<ReturnType<NonNullable<Stagehand['context']>['activePa
|
|
|
369
369
|
* - 'shared': All threads share the same Stagehand instance
|
|
370
370
|
* - 'thread': Each thread gets its own Stagehand instance (separate browser)
|
|
371
371
|
*/
|
|
372
|
-
declare class StagehandBrowser extends MastraBrowser {
|
|
372
|
+
export declare class StagehandBrowser extends MastraBrowser {
|
|
373
373
|
readonly id: string;
|
|
374
374
|
readonly name = "StagehandBrowser";
|
|
375
375
|
readonly provider = "browserbase/stagehand";
|
|
@@ -588,14 +588,14 @@ declare class StagehandBrowser extends MastraBrowser {
|
|
|
588
588
|
*
|
|
589
589
|
* Returns undefined if the PID can't be found (e.g. BROWSERBASE env, not yet init'd).
|
|
590
590
|
*/
|
|
591
|
-
declare function getStagehandChromePid(stagehand: Stagehand): number | undefined;
|
|
591
|
+
export declare function getStagehandChromePid(stagehand: Stagehand): number | undefined;
|
|
592
592
|
//#endregion
|
|
593
593
|
//#region src/tools/index.d.ts
|
|
594
594
|
/**
|
|
595
595
|
* Creates all Stagehand tools bound to a StagehandBrowser instance.
|
|
596
596
|
* The browser is lazily initialized on first tool use.
|
|
597
597
|
*/
|
|
598
|
-
declare function createStagehandTools(browser: StagehandBrowser): Record<string, Tool<any, any>>;
|
|
598
|
+
export declare function createStagehandTools(browser: StagehandBrowser): Record<string, Tool<any, any>>;
|
|
599
599
|
//#endregion
|
|
600
|
-
export {
|
|
600
|
+
export type { ActInput, ActResult, CloseInput, ExtractInput, ExtractResult, ModelConfiguration, NavigateInput, ObserveInput, ObserveResult, StagehandAction, StagehandBrowserConfig, StagehandToolName, TabsInput };
|
|
601
601
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["V3Page","StagehandModelConfiguration","BaseBrowserConfig"],"sources":["../src/schemas.ts","../src/thread-manager.ts","../src/tools/constants.ts","../src/types.ts","../src/stagehand-browser.ts","../src/utils.ts","../src/tools/index.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["V3Page","StagehandModelConfiguration","BaseBrowserConfig"],"sources":["../src/schemas.ts","../src/thread-manager.ts","../src/tools/constants.ts","../src/types.ts","../src/stagehand-browser.ts","../src/utils.ts","../src/tools/index.ts"],"mappings":";;;;;;;;qBAgBa,gBAAc,EAAA;;;;;GAQzB,EAAA,KAAA;KACU,WAAW,EAAE,cAAc;;;;qBAK1B,oBAAkB,EAAA;;;;GAO7B,EAAA,KAAA;KACU,eAAe,EAAE,cAAc;;;;qBAK9B,oBAAkB,EAAA;;;;GAS7B,EA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oBACC;IACG;IAAe,OAAO;MAAQ;MAAe;MAAa;MAAe;;IAAoB;;IAC7F;IAAe;IAAgB;IAAc;IAAgB;IAAoB;MACnF;EA0HW,cAAc,oBAAoB;;;;EAoDlC,WAAW,cAAc;;;;EAiBzB,gBAAgB,oBAAoB,QAAQ;;;;;YAwBjD,yBAAyB,oBAAoB;;;;UAS/C;;;;EA6BO,YAAY,oBAAoB,QAAQ;;;;EAQxC,kBAAkB,oBAAoB;EAUtC,gBAAgB,UAAU,oBAAoB,QAAQ;;;;;UAsDvD;EA+PC,iBAAiB,OAAO,kBAAkB,oBAAoB;EAkC9D,oBAAoB,OAAO,qBAAqB,oBAAoB;;;;;;;;;;;;;wBCzzCrE,sBAAsB,WAAW;;;;;;;wBCjBjC,qBAAqB,SAAS,mBAAmB,eAAe"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/stagehand",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7-alpha.0",
|
|
4
4
|
"description": "AI-powered browser automation for Mastra agents using Stagehand",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -23,20 +23,20 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@browserbasehq/stagehand": "^3.
|
|
26
|
+
"@browserbasehq/stagehand": "^3.7.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@types/node": "22.20.
|
|
29
|
+
"@types/node": "22.20.5",
|
|
30
30
|
"@vitest/coverage-v8": "4.1.11",
|
|
31
31
|
"@vitest/ui": "4.1.11",
|
|
32
|
-
"tsdown": "0.
|
|
32
|
+
"tsdown": "0.23.1",
|
|
33
33
|
"typescript": "^7.0.2",
|
|
34
34
|
"vitest": "4.1.11",
|
|
35
35
|
"zod": "^4.6.7",
|
|
36
|
-
"@internal/browser-test-utils": "0.0.64",
|
|
37
36
|
"@internal/lint": "0.0.145",
|
|
37
|
+
"@internal/browser-test-utils": "0.0.64",
|
|
38
38
|
"@internal/types-builder": "0.0.120",
|
|
39
|
-
"@mastra/core": "1.
|
|
39
|
+
"@mastra/core": "1.80.0-alpha.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@mastra/core": ">=1.22.0-0 <2.0.0-0",
|