browser-pilot 0.0.14 → 0.0.15
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 +81 -672
- package/dist/actions.cjs +1058 -41
- package/dist/actions.d.cts +11 -3
- package/dist/actions.d.ts +11 -3
- package/dist/actions.mjs +1 -1
- package/dist/browser-MEWT75IB.mjs +11 -0
- package/dist/browser.cjs +1021 -40
- package/dist/browser.d.cts +3 -3
- package/dist/browser.d.ts +3 -3
- package/dist/browser.mjs +3 -3
- package/dist/cdp.cjs +5 -1
- package/dist/cdp.d.cts +1 -1
- package/dist/cdp.d.ts +1 -1
- package/dist/cdp.mjs +1 -1
- package/dist/{chunk-XMJABKCF.mjs → chunk-7YVCOL2W.mjs} +1058 -41
- package/dist/{chunk-KIFB526Y.mjs → chunk-BVZALQT4.mjs} +5 -1
- package/dist/chunk-DTVRFXKI.mjs +35 -0
- package/dist/{chunk-SPSZZH22.mjs → chunk-LCNFBXB5.mjs} +9 -33
- package/dist/{chunk-7NDR6V7S.mjs → chunk-USYSHCI3.mjs} +1369 -517
- package/dist/chunk-WPNW23CE.mjs +466 -0
- package/dist/{chunk-IN5HPAPB.mjs → chunk-ZAXQ5OTV.mjs} +6 -2
- package/dist/cli.mjs +2522 -1048
- package/dist/{client-Ck2nQksT.d.cts → client-B5QBRgIy.d.cts} +2 -0
- package/dist/{client-Ck2nQksT.d.ts → client-B5QBRgIy.d.ts} +2 -0
- package/dist/{client-3AFV2IAF.mjs → client-JWWZWO6L.mjs} +4 -2
- package/dist/index.cjs +1067 -42
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +3 -3
- package/dist/page-XPS6IC6V.mjs +7 -0
- package/dist/{types-CjT0vClo.d.ts → types-C9ySEdOX.d.cts} +17 -3
- package/dist/{types-BSoh5v1Y.d.cts → types-Cvvf0oGu.d.ts} +17 -3
- package/package.json +1 -1
- package/dist/browser-LZTEHUDI.mjs +0 -9
package/dist/browser.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as CDPClient } from './client-
|
|
1
|
+
import { C as CDPClient } from './client-B5QBRgIy.cjs';
|
|
2
2
|
import { TargetInfo } from './cdp.cjs';
|
|
3
3
|
import { b as ConnectOptions } from './types--wXNHUwt.cjs';
|
|
4
|
-
import { J as Page } from './types-
|
|
5
|
-
export { l as ActionOptions, m as ActionResult, n as ConsoleHandler, o as ConsoleMessage, p as ConsoleMessageType, q as CustomSelectConfig, D as Dialog, r as DialogHandler, s as DialogType, t as Download, E as ElementInfo, u as ElementNotFoundError, v as EmulationState, w as ErrorHandler, ai as FailureHint, F as FileInput, x as FillOptions, y as FormField, z as FormOption, G as GeolocationOptions, I as InteractiveElement, N as NavigationError, H as NetworkIdleOptions, K as PageError, L as PageSnapshot, M as SnapshotNode, O as SnapshotOptions, Q as SubmitOptions, T as TimeoutError, U as TypeOptions, V as UserAgentMetadata, W as UserAgentOptions, X as ViewportOptions, Y as WaitForOptions } from './types-
|
|
4
|
+
import { J as Page } from './types-C9ySEdOX.cjs';
|
|
5
|
+
export { l as ActionOptions, m as ActionResult, n as ConsoleHandler, o as ConsoleMessage, p as ConsoleMessageType, q as CustomSelectConfig, D as Dialog, r as DialogHandler, s as DialogType, t as Download, E as ElementInfo, u as ElementNotFoundError, v as EmulationState, w as ErrorHandler, ai as FailureHint, F as FileInput, x as FillOptions, y as FormField, z as FormOption, G as GeolocationOptions, I as InteractiveElement, N as NavigationError, H as NetworkIdleOptions, K as PageError, L as PageSnapshot, M as SnapshotNode, O as SnapshotOptions, Q as SubmitOptions, T as TimeoutError, U as TypeOptions, V as UserAgentMetadata, W as UserAgentOptions, X as ViewportOptions, Y as WaitForOptions } from './types-C9ySEdOX.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Browser class - manages CDP connection and pages
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as CDPClient } from './client-
|
|
1
|
+
import { C as CDPClient } from './client-B5QBRgIy.js';
|
|
2
2
|
import { TargetInfo } from './cdp.js';
|
|
3
3
|
import { b as ConnectOptions } from './types--wXNHUwt.js';
|
|
4
|
-
import { J as Page } from './types-
|
|
5
|
-
export { l as ActionOptions, m as ActionResult, n as ConsoleHandler, o as ConsoleMessage, p as ConsoleMessageType, q as CustomSelectConfig, D as Dialog, r as DialogHandler, s as DialogType, t as Download, E as ElementInfo, u as ElementNotFoundError, v as EmulationState, w as ErrorHandler, ai as FailureHint, F as FileInput, x as FillOptions, y as FormField, z as FormOption, G as GeolocationOptions, I as InteractiveElement, N as NavigationError, H as NetworkIdleOptions, K as PageError, L as PageSnapshot, M as SnapshotNode, O as SnapshotOptions, Q as SubmitOptions, T as TimeoutError, U as TypeOptions, V as UserAgentMetadata, W as UserAgentOptions, X as ViewportOptions, Y as WaitForOptions } from './types-
|
|
4
|
+
import { J as Page } from './types-Cvvf0oGu.js';
|
|
5
|
+
export { l as ActionOptions, m as ActionResult, n as ConsoleHandler, o as ConsoleMessage, p as ConsoleMessageType, q as CustomSelectConfig, D as Dialog, r as DialogHandler, s as DialogType, t as Download, E as ElementInfo, u as ElementNotFoundError, v as EmulationState, w as ErrorHandler, ai as FailureHint, F as FileInput, x as FillOptions, y as FormField, z as FormOption, G as GeolocationOptions, I as InteractiveElement, N as NavigationError, H as NetworkIdleOptions, K as PageError, L as PageSnapshot, M as SnapshotNode, O as SnapshotOptions, Q as SubmitOptions, T as TimeoutError, U as TypeOptions, V as UserAgentMetadata, W as UserAgentOptions, X as ViewportOptions, Y as WaitForOptions } from './types-Cvvf0oGu.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Browser class - manages CDP connection and pages
|
package/dist/browser.mjs
CHANGED
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
Browser,
|
|
3
3
|
Page,
|
|
4
4
|
connect
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-ZAXQ5OTV.mjs";
|
|
6
|
+
import "./chunk-BVZALQT4.mjs";
|
|
7
7
|
import "./chunk-BRAFQUMG.mjs";
|
|
8
8
|
import {
|
|
9
9
|
ElementNotFoundError,
|
|
10
10
|
NavigationError,
|
|
11
11
|
TimeoutError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7YVCOL2W.mjs";
|
|
13
13
|
import "./chunk-JXAUPHZM.mjs";
|
|
14
14
|
export {
|
|
15
15
|
Browser,
|
package/dist/cdp.cjs
CHANGED
|
@@ -192,7 +192,8 @@ function buildCDPClient(transport, options = {}) {
|
|
|
192
192
|
pending.delete(response.id);
|
|
193
193
|
clearTimeout(request.timer);
|
|
194
194
|
if (response.error) {
|
|
195
|
-
|
|
195
|
+
const error = typeof response.error === "string" ? { code: -32e3, message: response.error } : response.error;
|
|
196
|
+
request.reject(new CDPError(error));
|
|
196
197
|
} else {
|
|
197
198
|
request.resolve(response.result);
|
|
198
199
|
}
|
|
@@ -308,6 +309,9 @@ function buildCDPClient(transport, options = {}) {
|
|
|
308
309
|
get sessionId() {
|
|
309
310
|
return currentSessionId;
|
|
310
311
|
},
|
|
312
|
+
setSessionId(sessionId) {
|
|
313
|
+
currentSessionId = sessionId;
|
|
314
|
+
},
|
|
311
315
|
get isConnected() {
|
|
312
316
|
return connected;
|
|
313
317
|
}
|
package/dist/cdp.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CDPClient, a as CDPClientOptions, T as Transport, e as TransportOptions, c as createCDPClient, b as createCDPClientFromTransport, d as createTransport } from './client-
|
|
1
|
+
export { C as CDPClient, a as CDPClientOptions, T as Transport, e as TransportOptions, c as createCDPClient, b as createCDPClientFromTransport, d as createTransport } from './client-B5QBRgIy.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* CDP Protocol type definitions
|
package/dist/cdp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CDPClient, a as CDPClientOptions, T as Transport, e as TransportOptions, c as createCDPClient, b as createCDPClientFromTransport, d as createTransport } from './client-
|
|
1
|
+
export { C as CDPClient, a as CDPClientOptions, T as Transport, e as TransportOptions, c as createCDPClient, b as createCDPClientFromTransport, d as createTransport } from './client-B5QBRgIy.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* CDP Protocol type definitions
|