@mastra/agent-browser 0.5.2 → 0.5.3-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/dist/index.cjs +37 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -14
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -44657,7 +44657,7 @@ declare class AgentBrowser extends MastraBrowser {
|
|
|
44657
44657
|
* Set up close event listeners for 'shared' scope browser.
|
|
44658
44658
|
* This handles the case where the shared browser is closed externally.
|
|
44659
44659
|
*/
|
|
44660
|
-
protected setupCloseListenerForSharedScope(manager: BrowserManager): void;
|
|
44660
|
+
protected setupCloseListenerForSharedScope(manager: BrowserManager, connectedOverCdp?: boolean): void;
|
|
44661
44661
|
protected doClose(): Promise<void>;
|
|
44662
44662
|
closeThreadSession(threadId: string): Promise<void>;
|
|
44663
44663
|
/**
|
|
@@ -44692,6 +44692,17 @@ declare class AgentBrowser extends MastraBrowser {
|
|
|
44692
44692
|
* Set up close event listener for a thread's browser manager.
|
|
44693
44693
|
* This handles the case where a thread's browser is closed externally.
|
|
44694
44694
|
*/
|
|
44695
|
+
/**
|
|
44696
|
+
* Whether per-thread browsers are reached over CDP (a remote/container
|
|
44697
|
+
* browser we do not own). When true, their PID is never captured — signalling
|
|
44698
|
+
* it locally is meaningless and dangerous (issue #23588).
|
|
44699
|
+
*
|
|
44700
|
+
* Base AgentBrowser only connects over CDP when a `cdpUrl` is configured
|
|
44701
|
+
* (thread scope with `cdpUrl` is normally rejected by config validation, so
|
|
44702
|
+
* this is defense in depth). Subclasses that always drive a remote browser
|
|
44703
|
+
* per thread (e.g. Firecrawl) override this to return `true`.
|
|
44704
|
+
*/
|
|
44705
|
+
protected isRemoteThreadBrowser(): boolean;
|
|
44695
44706
|
private setupCloseListenerForThread;
|
|
44696
44707
|
/**
|
|
44697
44708
|
* Create an error response from an exception.
|