@mastra/agent-browser 0.5.0 → 0.5.1-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/CHANGELOG.md +9 -0
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_THREAD_ID, MastraBrowser, ScreencastStreamImpl, ThreadManager, createBrowserRecordingTools } from "@mastra/core/browser";
|
|
1
|
+
import { DEFAULT_THREAD_ID, MastraBrowser, ScreencastStreamImpl, ThreadManager, createBrowserRecordingTools, resolveLaunchViewport } from "@mastra/core/browser";
|
|
2
2
|
import { BrowserManager } from "agent-browser";
|
|
3
3
|
import { createTool } from "@mastra/core/tools";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -46,7 +46,7 @@ var AgentBrowserThreadManager = class extends ThreadManager {
|
|
|
46
46
|
const manager = new BrowserManager();
|
|
47
47
|
const launchOptions = {
|
|
48
48
|
headless: this.browserConfig.headless,
|
|
49
|
-
|
|
49
|
+
...resolveLaunchViewport(this.browserConfig.viewport),
|
|
50
50
|
profile: this.browserConfig.profile,
|
|
51
51
|
executablePath: this.browserConfig.executablePath,
|
|
52
52
|
storageState: this.browserConfig.storageState
|
|
@@ -815,7 +815,7 @@ var AgentBrowser = class extends MastraBrowser {
|
|
|
815
815
|
const localConfig = this.config;
|
|
816
816
|
const launchOptions = {
|
|
817
817
|
headless: this.headless,
|
|
818
|
-
|
|
818
|
+
...resolveLaunchViewport(localConfig.viewport),
|
|
819
819
|
profile: localConfig.profile,
|
|
820
820
|
executablePath: localConfig.executablePath,
|
|
821
821
|
storageState: localConfig.storageState
|