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/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 };