@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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @mastra/agent-browser
2
2
 
3
+ ## 0.5.1-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Honor a `'window'` viewport where the provider can support it. Agent Browser and the browser viewer disable viewport emulation so the page tracks the real window; Stagehand does the same when connecting over CDP and falls back to the default size for a locally launched browser, which always applies its own viewport. ([#21010](https://github.com/mastra-ai/mastra/pull/21010))
8
+
9
+ - Updated dependencies [[`f59032a`](https://github.com/mastra-ai/mastra/commit/f59032a73699443555a08a479e7ac578975784f2), [`bf936e2`](https://github.com/mastra-ai/mastra/commit/bf936e2c89b2ff0dad5695b873ddc009ba96d41e)]:
10
+ - @mastra/core@1.58.0-alpha.6
11
+
3
12
  ## 0.5.0
4
13
 
5
14
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -47,7 +47,7 @@ var AgentBrowserThreadManager = class extends _mastra_core_browser.ThreadManager
47
47
  const manager = new agent_browser.BrowserManager();
48
48
  const launchOptions = {
49
49
  headless: this.browserConfig.headless,
50
- viewport: this.browserConfig.viewport,
50
+ ...(0, _mastra_core_browser.resolveLaunchViewport)(this.browserConfig.viewport),
51
51
  profile: this.browserConfig.profile,
52
52
  executablePath: this.browserConfig.executablePath,
53
53
  storageState: this.browserConfig.storageState
@@ -816,7 +816,7 @@ var AgentBrowser = class extends _mastra_core_browser.MastraBrowser {
816
816
  const localConfig = this.config;
817
817
  const launchOptions = {
818
818
  headless: this.headless,
819
- viewport: localConfig.viewport,
819
+ ...(0, _mastra_core_browser.resolveLaunchViewport)(localConfig.viewport),
820
820
  profile: localConfig.profile,
821
821
  executablePath: localConfig.executablePath,
822
822
  storageState: localConfig.storageState