@mastra/agent-browser 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 +34 -0
  2. package/LICENSE.md +30 -0
  3. package/package.json +16 -16
package/CHANGELOG.md ADDED
@@ -0,0 +1,34 @@
1
+ # @mastra/agent-browser
2
+
3
+ ## 0.1.0-alpha.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add browser automation support with screencast streaming, input injection, and thread isolation ([#14938](https://github.com/mastra-ai/mastra/pull/14938))
8
+
9
+ **New Features:**
10
+ - Browser tools for web automation (navigate, click, type, scroll, extract, etc.)
11
+ - Real-time screencast streaming via WebSocket
12
+ - Mouse and keyboard input injection
13
+ - Thread-scoped browser isolation (`scope: 'thread'`)
14
+ - State persistence and restoration across sessions
15
+ - Support for cloud providers (Browserbase, Browser-Use, Browserless)
16
+
17
+ **Configuration:**
18
+
19
+ ```typescript
20
+ import { AgentBrowser } from '@mastra/agent-browser';
21
+
22
+ const browser = new AgentBrowser({
23
+ headless: true,
24
+ scope: 'thread', // Each thread gets isolated browser
25
+ viewport: { width: 1280, height: 720 },
26
+ });
27
+
28
+ const agent = mastra.getAgent('my-agent', { browser });
29
+ ```
30
+
31
+ ### Patch Changes
32
+
33
+ - 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)]:
34
+ - @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/agent-browser",
3
- "version": "0.0.0",
3
+ "version": "0.1.0-alpha.0",
4
4
  "description": "Browser automation for Mastra agents using agent-browser",
5
5
  "type": "module",
6
6
  "files": [
@@ -22,30 +22,24 @@
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
  "agent-browser": "0.19.0",
34
28
  "typed-emitter": "^2.1.0"
35
29
  },
36
30
  "devDependencies": {
37
- "@internal/lint": "workspace:*",
38
- "@internal/types-builder": "workspace:*",
39
- "@mastra/core": "workspace:*",
40
31
  "@types/node": "22.19.15",
41
32
  "playwright-core": "^1.57.0",
42
- "@vitest/coverage-v8": "catalog:",
43
- "@vitest/ui": "catalog:",
33
+ "@vitest/coverage-v8": "4.0.18",
34
+ "@vitest/ui": "4.0.18",
44
35
  "eslint": "^9.39.4",
45
36
  "tsup": "^8.5.1",
46
- "typescript": "catalog:",
47
- "vitest": "catalog:",
48
- "zod": "catalog:"
37
+ "typescript": "^5.9.3",
38
+ "vitest": "4.0.18",
39
+ "zod": "^4.3.6",
40
+ "@internal/lint": "0.0.78",
41
+ "@internal/types-builder": "0.0.53",
42
+ "@mastra/core": "1.22.0-alpha.2"
49
43
  },
50
44
  "peerDependencies": {
51
45
  "@mastra/core": ">=1.22.0-0 <2.0.0-0",
@@ -62,5 +56,11 @@
62
56
  },
63
57
  "engines": {
64
58
  "node": ">=22.13.0"
59
+ },
60
+ "scripts": {
61
+ "build": "tsup --silent --config tsup.config.ts",
62
+ "build:watch": "tsup --watch --silent --config tsup.config.ts",
63
+ "test": "vitest run",
64
+ "lint": "eslint ."
65
65
  }
66
- }
66
+ }