@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 +9 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -34,7 +34,7 @@ var AgentBrowserThreadManager = class extends ThreadManager {
|
|
|
34
34
|
if (this.scope === "thread") {
|
|
35
35
|
const manager = new BrowserManager();
|
|
36
36
|
const launchOptions = {
|
|
37
|
-
headless: this.browserConfig.headless
|
|
37
|
+
headless: this.browserConfig.headless,
|
|
38
38
|
viewport: this.browserConfig.viewport,
|
|
39
39
|
profile: this.browserConfig.profile,
|
|
40
40
|
executablePath: this.browserConfig.executablePath,
|
|
@@ -533,7 +533,7 @@ var AgentBrowser = class extends MastraBrowser {
|
|
|
533
533
|
const effectiveScope = config.cdpUrl ? config.scope ?? "shared" : config.scope ?? "thread";
|
|
534
534
|
this.threadManager = new AgentBrowserThreadManager({
|
|
535
535
|
scope: effectiveScope,
|
|
536
|
-
browserConfig: config,
|
|
536
|
+
browserConfig: { ...config, headless: this.headless },
|
|
537
537
|
resolveCdpUrl: this.resolveCdpUrl.bind(this),
|
|
538
538
|
logger: this.logger,
|
|
539
539
|
// When a new thread session is created, notify listeners so screencast can start
|
|
@@ -597,7 +597,7 @@ var AgentBrowser = class extends MastraBrowser {
|
|
|
597
597
|
this.sharedManager = new BrowserManager();
|
|
598
598
|
const localConfig = this.config;
|
|
599
599
|
const launchOptions = {
|
|
600
|
-
headless:
|
|
600
|
+
headless: this.headless,
|
|
601
601
|
viewport: localConfig.viewport,
|
|
602
602
|
profile: localConfig.profile,
|
|
603
603
|
executablePath: localConfig.executablePath,
|