browser-pilot 0.0.13 → 0.0.14
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/README.md +59 -3
- package/dist/actions.cjs +418 -14
- package/dist/actions.d.cts +13 -3
- package/dist/actions.d.ts +13 -3
- package/dist/actions.mjs +1 -1
- package/dist/browser-LZTEHUDI.mjs +9 -0
- package/dist/browser.cjs +600 -20
- package/dist/browser.d.cts +12 -3
- package/dist/browser.d.ts +12 -3
- package/dist/browser.mjs +3 -3
- package/dist/cdp.cjs +31 -2
- package/dist/cdp.d.cts +1 -1
- package/dist/cdp.d.ts +1 -1
- package/dist/cdp.mjs +3 -1
- package/dist/chunk-7NDR6V7S.mjs +7788 -0
- package/dist/{chunk-VDAMDOS6.mjs → chunk-IN5HPAPB.mjs} +147 -7
- package/dist/{chunk-HP6R3W32.mjs → chunk-KIFB526Y.mjs} +44 -2
- package/dist/chunk-LUGLEMVR.mjs +11 -0
- package/dist/chunk-SPSZZH22.mjs +308 -0
- package/dist/{chunk-A2ZRAEO3.mjs → chunk-XMJABKCF.mjs} +408 -14
- package/dist/cli.mjs +1063 -7746
- package/dist/client-3AFV2IAF.mjs +10 -0
- package/dist/{client-DRqxBdHv.d.ts → client-Ck2nQksT.d.cts} +8 -6
- package/dist/{client-DRqxBdHv.d.cts → client-Ck2nQksT.d.ts} +8 -6
- package/dist/index.cjs +600 -20
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +3 -3
- package/dist/transport-WHEBAZUP.mjs +83 -0
- package/dist/{types-CzgQjai9.d.ts → types-BSoh5v1Y.d.cts} +62 -2
- package/dist/{types-BXMGFtnB.d.cts → types-CjT0vClo.d.ts} +62 -2
- package/package.json +2 -2
|
@@ -18,11 +18,6 @@ interface TransportOptions {
|
|
|
18
18
|
*/
|
|
19
19
|
declare function createTransport(wsUrl: string, options?: TransportOptions): Promise<Transport>;
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* CDP Client implementation
|
|
23
|
-
* Handles command/response correlation and event subscription
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
21
|
interface CDPClientOptions extends TransportOptions {
|
|
27
22
|
/** Enable debug logging */
|
|
28
23
|
debug?: boolean;
|
|
@@ -36,6 +31,8 @@ interface CDPClient {
|
|
|
36
31
|
off(event: string, handler: (params: Record<string, unknown>) => void): void;
|
|
37
32
|
/** Subscribe to all events (for debugging/logging) */
|
|
38
33
|
onAny(handler: (method: string, params: Record<string, unknown>) => void): void;
|
|
34
|
+
/** Unsubscribe from all-event handler */
|
|
35
|
+
offAny(handler: (method: string, params: Record<string, unknown>) => void): void;
|
|
39
36
|
/** Close the CDP connection */
|
|
40
37
|
close(): Promise<void>;
|
|
41
38
|
/** Attach to a target and return session ID */
|
|
@@ -45,9 +42,14 @@ interface CDPClient {
|
|
|
45
42
|
/** Check if connection is open */
|
|
46
43
|
readonly isConnected: boolean;
|
|
47
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Create a CDP client from an already-connected transport.
|
|
47
|
+
* Used by the daemon fast-path (Unix socket transport).
|
|
48
|
+
*/
|
|
49
|
+
declare function createCDPClientFromTransport(transport: Transport, options?: CDPClientOptions): CDPClient;
|
|
48
50
|
/**
|
|
49
51
|
* Create a new CDP client connected to the given WebSocket URL
|
|
50
52
|
*/
|
|
51
53
|
declare function createCDPClient(wsUrl: string, options?: CDPClientOptions): Promise<CDPClient>;
|
|
52
54
|
|
|
53
|
-
export { type CDPClient as C, type Transport as T, type CDPClientOptions as a,
|
|
55
|
+
export { type CDPClient as C, type Transport as T, type CDPClientOptions as a, createCDPClientFromTransport as b, createCDPClient as c, createTransport as d, type TransportOptions as e };
|
|
@@ -18,11 +18,6 @@ interface TransportOptions {
|
|
|
18
18
|
*/
|
|
19
19
|
declare function createTransport(wsUrl: string, options?: TransportOptions): Promise<Transport>;
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* CDP Client implementation
|
|
23
|
-
* Handles command/response correlation and event subscription
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
21
|
interface CDPClientOptions extends TransportOptions {
|
|
27
22
|
/** Enable debug logging */
|
|
28
23
|
debug?: boolean;
|
|
@@ -36,6 +31,8 @@ interface CDPClient {
|
|
|
36
31
|
off(event: string, handler: (params: Record<string, unknown>) => void): void;
|
|
37
32
|
/** Subscribe to all events (for debugging/logging) */
|
|
38
33
|
onAny(handler: (method: string, params: Record<string, unknown>) => void): void;
|
|
34
|
+
/** Unsubscribe from all-event handler */
|
|
35
|
+
offAny(handler: (method: string, params: Record<string, unknown>) => void): void;
|
|
39
36
|
/** Close the CDP connection */
|
|
40
37
|
close(): Promise<void>;
|
|
41
38
|
/** Attach to a target and return session ID */
|
|
@@ -45,9 +42,14 @@ interface CDPClient {
|
|
|
45
42
|
/** Check if connection is open */
|
|
46
43
|
readonly isConnected: boolean;
|
|
47
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Create a CDP client from an already-connected transport.
|
|
47
|
+
* Used by the daemon fast-path (Unix socket transport).
|
|
48
|
+
*/
|
|
49
|
+
declare function createCDPClientFromTransport(transport: Transport, options?: CDPClientOptions): CDPClient;
|
|
48
50
|
/**
|
|
49
51
|
* Create a new CDP client connected to the given WebSocket URL
|
|
50
52
|
*/
|
|
51
53
|
declare function createCDPClient(wsUrl: string, options?: CDPClientOptions): Promise<CDPClient>;
|
|
52
54
|
|
|
53
|
-
export { type CDPClient as C, type Transport as T, type CDPClientOptions as a,
|
|
55
|
+
export { type CDPClient as C, type Transport as T, type CDPClientOptions as a, createCDPClientFromTransport as b, createCDPClient as c, createTransport as d, type TransportOptions as e };
|