browser-pilot 0.0.7 → 0.0.9

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.
@@ -1,7 +1,7 @@
1
1
  import { C as CDPClient } from './client-7Nqka5MV.cjs';
2
- import { C as ConnectOptions } from './types-D_uDqh0Z.cjs';
3
- import { P as Page } from './types-TVlTA7nH.cjs';
4
- export { d as ActionOptions, e as ActionResult, C as ConsoleHandler, f as ConsoleMessage, g as ConsoleMessageType, h as CustomSelectConfig, D as Dialog, i as DialogHandler, j as DialogType, k as Download, E as ElementInfo, l as ElementNotFoundError, m as EmulationState, n as ErrorHandler, F as FileInput, o as FillOptions, G as GeolocationOptions, I as InteractiveElement, N as NavigationError, p as NetworkIdleOptions, q as PageError, r as PageSnapshot, s as SnapshotNode, t as SubmitOptions, T as TimeoutError, u as TypeOptions, U as UserAgentMetadata, v as UserAgentOptions, V as ViewportOptions, W as WaitForOptions } from './types-TVlTA7nH.cjs';
2
+ import { b as ConnectOptions } from './types--wXNHUwt.cjs';
3
+ import { y as Page } from './types-CYw-7vx1.cjs';
4
+ export { k as ActionOptions, l as ActionResult, m as ConsoleHandler, n as ConsoleMessage, o as ConsoleMessageType, p as CustomSelectConfig, D as Dialog, q as DialogHandler, r as DialogType, s as Download, E as ElementInfo, t as ElementNotFoundError, u as EmulationState, v as ErrorHandler, ae as FailureHint, F as FileInput, w as FillOptions, G as GeolocationOptions, I as InteractiveElement, N as NavigationError, x as NetworkIdleOptions, z as PageError, H as PageSnapshot, J as SnapshotNode, K as SubmitOptions, T as TimeoutError, L as TypeOptions, U as UserAgentMetadata, M as UserAgentOptions, V as ViewportOptions, W as WaitForOptions } from './types-CYw-7vx1.cjs';
5
5
 
6
6
  /**
7
7
  * Browser class - manages CDP connection and pages
@@ -11,6 +11,10 @@ interface BrowserOptions extends ConnectOptions {
11
11
  /** Enable debug logging */
12
12
  debug?: boolean;
13
13
  }
14
+ interface PageOptions {
15
+ /** Specific target ID to attach to */
16
+ targetId?: string;
17
+ }
14
18
  declare class Browser {
15
19
  private cdp;
16
20
  private providerSession;
@@ -24,7 +28,7 @@ declare class Browser {
24
28
  * Get or create a page by name
25
29
  * If no name is provided, returns the first available page or creates a new one
26
30
  */
27
- page(name?: string): Promise<Page>;
31
+ page(name?: string, options?: PageOptions): Promise<Page>;
28
32
  /**
29
33
  * Create a new page (tab)
30
34
  */
package/dist/browser.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { C as CDPClient } from './client-7Nqka5MV.js';
2
- import { C as ConnectOptions } from './types-D_uDqh0Z.js';
3
- import { P as Page } from './types-CbdmaocU.js';
4
- export { d as ActionOptions, e as ActionResult, C as ConsoleHandler, f as ConsoleMessage, g as ConsoleMessageType, h as CustomSelectConfig, D as Dialog, i as DialogHandler, j as DialogType, k as Download, E as ElementInfo, l as ElementNotFoundError, m as EmulationState, n as ErrorHandler, F as FileInput, o as FillOptions, G as GeolocationOptions, I as InteractiveElement, N as NavigationError, p as NetworkIdleOptions, q as PageError, r as PageSnapshot, s as SnapshotNode, t as SubmitOptions, T as TimeoutError, u as TypeOptions, U as UserAgentMetadata, v as UserAgentOptions, V as ViewportOptions, W as WaitForOptions } from './types-CbdmaocU.js';
2
+ import { b as ConnectOptions } from './types--wXNHUwt.js';
3
+ import { y as Page } from './types-DOGsEYQa.js';
4
+ export { k as ActionOptions, l as ActionResult, m as ConsoleHandler, n as ConsoleMessage, o as ConsoleMessageType, p as CustomSelectConfig, D as Dialog, q as DialogHandler, r as DialogType, s as Download, E as ElementInfo, t as ElementNotFoundError, u as EmulationState, v as ErrorHandler, ae as FailureHint, F as FileInput, w as FillOptions, G as GeolocationOptions, I as InteractiveElement, N as NavigationError, x as NetworkIdleOptions, z as PageError, H as PageSnapshot, J as SnapshotNode, K as SubmitOptions, T as TimeoutError, L as TypeOptions, U as UserAgentMetadata, M as UserAgentOptions, V as ViewportOptions, W as WaitForOptions } from './types-DOGsEYQa.js';
5
5
 
6
6
  /**
7
7
  * Browser class - manages CDP connection and pages
@@ -11,6 +11,10 @@ interface BrowserOptions extends ConnectOptions {
11
11
  /** Enable debug logging */
12
12
  debug?: boolean;
13
13
  }
14
+ interface PageOptions {
15
+ /** Specific target ID to attach to */
16
+ targetId?: string;
17
+ }
14
18
  declare class Browser {
15
19
  private cdp;
16
20
  private providerSession;
@@ -24,7 +28,7 @@ declare class Browser {
24
28
  * Get or create a page by name
25
29
  * If no name is provided, returns the first available page or creates a new one
26
30
  */
27
- page(name?: string): Promise<Page>;
31
+ page(name?: string, options?: PageOptions): Promise<Page>;
28
32
  /**
29
33
  * Create a new page (tab)
30
34
  */
package/dist/browser.mjs CHANGED
@@ -1,14 +1,15 @@
1
1
  import {
2
2
  Browser,
3
- ElementNotFoundError,
4
- NavigationError,
5
3
  Page,
6
- TimeoutError,
7
4
  connect
8
- } from "./chunk-PCNEJAJ7.mjs";
5
+ } from "./chunk-7OSR2CAE.mjs";
9
6
  import "./chunk-BCOZUKWS.mjs";
10
7
  import "./chunk-R3PS4PCM.mjs";
11
- import "./chunk-6RB3GKQP.mjs";
8
+ import {
9
+ ElementNotFoundError,
10
+ NavigationError,
11
+ TimeoutError
12
+ } from "./chunk-KKW2SZLV.mjs";
12
13
  export {
13
14
  Browser,
14
15
  ElementNotFoundError,