@browserbasehq/stagehand 3.0.6-alpha-a8a7c537fba30d8ce1441d9e454616086ae61fae → 3.0.6-alpha-fdbb58ce7ad8e63a4048089d0b548d76b1803782

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +14 -0
  2. package/dist/index.js +1219 -238
  3. package/package.json +2 -1
package/dist/index.d.ts CHANGED
@@ -75,8 +75,22 @@ declare class CdpConnection implements CDPSessionLike {
75
75
  private inflight;
76
76
  private eventHandlers;
77
77
  private sessions;
78
+ /** Maps sessionId -> targetId (1:1 mapping) */
79
+ private sessionToTarget;
78
80
  readonly id: string | null;
79
81
  private transportCloseHandlers;
82
+ /** Optional CDP logger - set this to receive all outgoing CDP method calls */
83
+ cdpLogger?: (info: {
84
+ method: string;
85
+ params?: object;
86
+ targetId?: string | null;
87
+ }) => void;
88
+ /** Optional CDP event logger - set this to receive all incoming CDP events */
89
+ cdpEventLogger?: (info: {
90
+ method: string;
91
+ params?: unknown;
92
+ targetId?: string | null;
93
+ }) => void;
80
94
  onTransportClosed(handler: (why: string) => void): void;
81
95
  offTransportClosed(handler: (why: string) => void): void;
82
96
  private emitTransportClosed;