browser-pilot 0.0.1
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/LICENSE +21 -0
- package/README.md +539 -0
- package/dist/actions.cjs +277 -0
- package/dist/actions.d.cts +33 -0
- package/dist/actions.d.ts +33 -0
- package/dist/actions.mjs +8 -0
- package/dist/browser.cjs +2765 -0
- package/dist/browser.d.cts +71 -0
- package/dist/browser.d.ts +71 -0
- package/dist/browser.mjs +19 -0
- package/dist/cdp.cjs +279 -0
- package/dist/cdp.d.cts +230 -0
- package/dist/cdp.d.ts +230 -0
- package/dist/cdp.mjs +10 -0
- package/dist/chunk-BCOZUKWS.mjs +251 -0
- package/dist/chunk-FI55U7JS.mjs +2108 -0
- package/dist/chunk-R3PS4PCM.mjs +207 -0
- package/dist/chunk-YEHK2XY3.mjs +250 -0
- package/dist/chunk-ZIQA4JOT.mjs +226 -0
- package/dist/cli.cjs +3587 -0
- package/dist/cli.d.cts +23 -0
- package/dist/cli.d.ts +23 -0
- package/dist/cli.mjs +827 -0
- package/dist/client-7Nqka5MV.d.cts +53 -0
- package/dist/client-7Nqka5MV.d.ts +53 -0
- package/dist/index.cjs +3074 -0
- package/dist/index.d.cts +157 -0
- package/dist/index.d.ts +157 -0
- package/dist/index.mjs +64 -0
- package/dist/providers.cjs +238 -0
- package/dist/providers.d.cts +86 -0
- package/dist/providers.d.ts +86 -0
- package/dist/providers.mjs +16 -0
- package/dist/types-Cs89wle0.d.cts +925 -0
- package/dist/types-DL_-3BZk.d.ts +925 -0
- package/dist/types-D_uDqh0Z.d.cts +56 -0
- package/dist/types-D_uDqh0Z.d.ts +56 -0
- package/package.json +91 -0
package/dist/cli.d.cts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
/**
|
|
3
|
+
* browser-pilot CLI - Browser automation for AI agents
|
|
4
|
+
*
|
|
5
|
+
* Key workflow:
|
|
6
|
+
* 1. bp snapshot --format text → Get page with element refs [ref=e4]
|
|
7
|
+
* 2. bp exec '{"selector":"ref:e4",...}' → Use refs for reliable targeting
|
|
8
|
+
*
|
|
9
|
+
* Commands:
|
|
10
|
+
* connect Create browser session
|
|
11
|
+
* exec Execute actions (supports --dialog accept|dismiss)
|
|
12
|
+
* snapshot Get page snapshot with element refs
|
|
13
|
+
* text Extract text content
|
|
14
|
+
* screenshot Take screenshot
|
|
15
|
+
* close Close session
|
|
16
|
+
* list List sessions
|
|
17
|
+
* actions Complete action reference
|
|
18
|
+
*
|
|
19
|
+
* Run 'bp actions' for full action DSL documentation.
|
|
20
|
+
*/
|
|
21
|
+
declare function output(data: unknown, format?: 'json' | 'pretty'): void;
|
|
22
|
+
|
|
23
|
+
export { output };
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
/**
|
|
3
|
+
* browser-pilot CLI - Browser automation for AI agents
|
|
4
|
+
*
|
|
5
|
+
* Key workflow:
|
|
6
|
+
* 1. bp snapshot --format text → Get page with element refs [ref=e4]
|
|
7
|
+
* 2. bp exec '{"selector":"ref:e4",...}' → Use refs for reliable targeting
|
|
8
|
+
*
|
|
9
|
+
* Commands:
|
|
10
|
+
* connect Create browser session
|
|
11
|
+
* exec Execute actions (supports --dialog accept|dismiss)
|
|
12
|
+
* snapshot Get page snapshot with element refs
|
|
13
|
+
* text Extract text content
|
|
14
|
+
* screenshot Take screenshot
|
|
15
|
+
* close Close session
|
|
16
|
+
* list List sessions
|
|
17
|
+
* actions Complete action reference
|
|
18
|
+
*
|
|
19
|
+
* Run 'bp actions' for full action DSL documentation.
|
|
20
|
+
*/
|
|
21
|
+
declare function output(data: unknown, format?: 'json' | 'pretty'): void;
|
|
22
|
+
|
|
23
|
+
export { output };
|