File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -4,29 +4,17 @@ import {
4
4
Page ,
5
5
} from "playwright-core" ;
6
6
import { Browserbase } from "@browserbasehq/sdk" ;
7
- import type { Config } from "./config.js" ; // Import Config type
7
+ import type { Config } from "./config.js" ;
8
8
import { SessionCreateParams } from "@browserbasehq/sdk/src/resources/sessions/sessions.js" ;
9
- // import { Writable } from "stream"; // Import Writable for process.stderr
10
9
import type { Cookie } from "playwright-core" ;
10
+
11
11
// Define the type for a session object
12
12
export type BrowserSession = {
13
13
browser : Browser ;
14
14
page : Page ;
15
15
sessionId : string ;
16
16
} ;
17
17
18
- // Type for session creation options
19
- type SessionCreationOptions = {
20
- projectId : string ;
21
- browserSettings ?: {
22
- context ?: {
23
- id : string ;
24
- persist : boolean ;
25
- } ;
26
- } ;
27
- // Add other potential Browserbase session options here if needed
28
- } ;
29
-
30
18
// Global state for managing browser sessions
31
19
const browsers = new Map < string , BrowserSession > ( ) ;
32
20
// Keep track of the default session explicitly
You can’t perform that action at this time.
0 commit comments