@mastra/agent-browser 0.2.1-alpha.0 → 0.2.1-alpha.1

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.2.1-alpha.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Standardize `headless` default to `true` across all browser providers. Each provider now resolves `headless` once in its constructor and passes it to the thread manager via the base class getter, removing duplicate fallback logic. ([#15696](https://github.com/mastra-ai/mastra/pull/15696))
8
+
9
+ - Updated dependencies [[`750b4d3`](https://github.com/mastra-ai/mastra/commit/750b4d3d8231f92e769b2c485921ac5a8ca639b9)]:
10
+ - @mastra/core@1.28.0-alpha.1
11
+
3
12
  ## 0.2.1-alpha.0
4
13
 
5
14
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -36,7 +36,7 @@ var AgentBrowserThreadManager = class extends browser.ThreadManager {
36
36
  if (this.scope === "thread") {
37
37
  const manager = new agentBrowser.BrowserManager();
38
38
  const launchOptions = {
39
- headless: this.browserConfig.headless ?? true,
39
+ headless: this.browserConfig.headless,
40
40
  viewport: this.browserConfig.viewport,
41
41
  profile: this.browserConfig.profile,
42
42
  executablePath: this.browserConfig.executablePath,
@@ -535,7 +535,7 @@ var AgentBrowser = class extends browser.MastraBrowser {
535
535
  const effectiveScope = config.cdpUrl ? config.scope ?? "shared" : config.scope ?? "thread";
536
536
  this.threadManager = new AgentBrowserThreadManager({
537
537
  scope: effectiveScope,
538
- browserConfig: config,
538
+ browserConfig: { ...config, headless: this.headless },
539
539
  resolveCdpUrl: this.resolveCdpUrl.bind(this),
540
540
  logger: this.logger,
541
541
  // When a new thread session is created, notify listeners so screencast can start
@@ -599,7 +599,7 @@ var AgentBrowser = class extends browser.MastraBrowser {
599
599
  this.sharedManager = new agentBrowser.BrowserManager();
600
600
  const localConfig = this.config;
601
601
  const launchOptions = {
602
- headless: localConfig.headless ?? true,
602
+ headless: this.headless,
603
603
  viewport: localConfig.viewport,
604
604
  profile: localConfig.profile,
605
605
  executablePath: localConfig.executablePath,