@mastra/stagehand 0.0.0 → 0.1.0-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.
Files changed (3) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/LICENSE.md +30 -0
  3. package/package.json +16 -16
package/CHANGELOG.md ADDED
@@ -0,0 +1,41 @@
1
+ # @mastra/stagehand
2
+
3
+ ## 0.1.0-alpha.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add AI-powered browser automation with Stagehand SDK integration ([#14938](https://github.com/mastra-ai/mastra/pull/14938))
8
+
9
+ **New Features:**
10
+ - AI-powered browser automation using Stagehand's act/extract/observe primitives
11
+ - Native Browserbase integration for cloud browser sessions
12
+ - Real-time screencast streaming via WebSocket
13
+ - Mouse and keyboard input injection
14
+ - Thread-scoped browser isolation (`scope: 'thread'`)
15
+ - State persistence and restoration across sessions
16
+
17
+ **Configuration:**
18
+
19
+ ```typescript
20
+ import { StagehandBrowser } from '@mastra/stagehand';
21
+
22
+ // Local browser
23
+ const browser = new StagehandBrowser({
24
+ headless: true,
25
+ scope: 'thread',
26
+ });
27
+
28
+ // Browserbase cloud
29
+ const browser = new StagehandBrowser({
30
+ env: 'BROWSERBASE',
31
+ apiKey: process.env.BROWSERBASE_API_KEY,
32
+ projectId: process.env.BROWSERBASE_PROJECT_ID,
33
+ });
34
+
35
+ const agent = mastra.getAgent('my-agent', { browser });
36
+ ```
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies [[`cb15509`](https://github.com/mastra-ai/mastra/commit/cb15509b58f6a83e11b765c945082afc027db972), [`80c5668`](https://github.com/mastra-ai/mastra/commit/80c5668e365470d3a96d3e953868fd7a643ff67c), [`3d478c1`](https://github.com/mastra-ai/mastra/commit/3d478c1e13f17b80f330ac49d7aa42ef929b93ff), [`6039f17`](https://github.com/mastra-ai/mastra/commit/6039f176f9c457304825ff1df8c83b8e457376c0), [`06b928d`](https://github.com/mastra-ai/mastra/commit/06b928dfc2f5630d023467476cc5919dfa858d0a), [`6a8d984`](https://github.com/mastra-ai/mastra/commit/6a8d9841f2933456ee1598099f488d742b600054)]:
41
+ - @mastra/core@1.22.0-alpha.2
package/LICENSE.md ADDED
@@ -0,0 +1,30 @@
1
+ Portions of this software are licensed as follows:
2
+
3
+ - All content that resides under any directory named "ee/" within this
4
+ repository, including but not limited to:
5
+ - `packages/core/src/auth/ee/`
6
+ - `packages/server/src/server/auth/ee/`
7
+ is licensed under the license defined in `ee/LICENSE`.
8
+
9
+ - All third-party components incorporated into the Mastra Software are
10
+ licensed under the original license provided by the owner of the
11
+ applicable component.
12
+
13
+ - Content outside of the above-mentioned directories or restrictions is
14
+ available under the "Apache License 2.0" as defined below.
15
+
16
+ # Apache License 2.0
17
+
18
+ Copyright (c) 2025 Kepler Software, Inc.
19
+
20
+ Licensed under the Apache License, Version 2.0 (the "License");
21
+ you may not use this file except in compliance with the License.
22
+ You may obtain a copy of the License at
23
+
24
+ http://www.apache.org/licenses/LICENSE-2.0
25
+
26
+ Unless required by applicable law or agreed to in writing, software
27
+ distributed under the License is distributed on an "AS IS" BASIS,
28
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29
+ See the License for the specific language governing permissions and
30
+ limitations under the License.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/stagehand",
3
- "version": "0.0.0",
3
+ "version": "0.1.0-alpha.0",
4
4
  "description": "AI-powered browser automation for Mastra agents using Stagehand",
5
5
  "type": "module",
6
6
  "files": [
@@ -22,28 +22,22 @@
22
22
  },
23
23
  "./package.json": "./package.json"
24
24
  },
25
- "scripts": {
26
- "build": "tsup --silent --config tsup.config.ts",
27
- "build:watch": "tsup --watch --silent --config tsup.config.ts",
28
- "test": "vitest run",
29
- "lint": "eslint ."
30
- },
31
25
  "license": "Apache-2.0",
32
26
  "dependencies": {
33
27
  "@browserbasehq/stagehand": "^3.2.0"
34
28
  },
35
29
  "devDependencies": {
36
- "@internal/lint": "workspace:*",
37
- "@internal/types-builder": "workspace:*",
38
- "@mastra/core": "workspace:*",
39
30
  "@types/node": "22.19.15",
40
- "@vitest/coverage-v8": "catalog:",
41
- "@vitest/ui": "catalog:",
31
+ "@vitest/coverage-v8": "4.0.18",
32
+ "@vitest/ui": "4.0.18",
42
33
  "eslint": "^9.39.4",
43
34
  "tsup": "^8.5.1",
44
- "typescript": "catalog:",
45
- "vitest": "catalog:",
46
- "zod": "catalog:"
35
+ "typescript": "^5.9.3",
36
+ "vitest": "4.0.18",
37
+ "zod": "^4.3.6",
38
+ "@internal/lint": "0.0.78",
39
+ "@mastra/core": "1.22.0-alpha.2",
40
+ "@internal/types-builder": "0.0.53"
47
41
  },
48
42
  "peerDependencies": {
49
43
  "@mastra/core": ">=1.22.0-0 <2.0.0-0",
@@ -60,5 +54,11 @@
60
54
  },
61
55
  "engines": {
62
56
  "node": ">=22.13.0"
57
+ },
58
+ "scripts": {
59
+ "build": "tsup --silent --config tsup.config.ts",
60
+ "build:watch": "tsup --watch --silent --config tsup.config.ts",
61
+ "test": "vitest run",
62
+ "lint": "eslint ."
63
63
  }
64
- }
64
+ }