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.
- package/README.md +61 -1
- package/dist/actions.cjs +485 -9
- package/dist/actions.d.cts +24 -5
- package/dist/actions.d.ts +24 -5
- package/dist/actions.mjs +5 -3
- package/dist/browser.cjs +1761 -102
- package/dist/browser.d.cts +8 -4
- package/dist/browser.d.ts +8 -4
- package/dist/browser.mjs +6 -5
- package/dist/{chunk-PCNEJAJ7.mjs → chunk-7OSR2CAE.mjs} +1756 -46
- package/dist/chunk-KKW2SZLV.mjs +741 -0
- package/dist/cli.mjs +7576 -265
- package/dist/index.cjs +2434 -108
- package/dist/index.d.cts +142 -6
- package/dist/index.d.ts +142 -6
- package/dist/index.mjs +360 -13
- package/dist/providers.d.cts +2 -2
- package/dist/providers.d.ts +2 -2
- package/dist/{types-D_uDqh0Z.d.cts → types--wXNHUwt.d.cts} +1 -1
- package/dist/{types-D_uDqh0Z.d.ts → types--wXNHUwt.d.ts} +1 -1
- package/dist/{types-TVlTA7nH.d.cts → types-CYw-7vx1.d.cts} +280 -3
- package/dist/{types-CbdmaocU.d.ts → types-DOGsEYQa.d.ts} +280 -3
- package/package.json +3 -3
- package/dist/chunk-6RB3GKQP.mjs +0 -251
- package/dist/chunk-ZIQA4JOT.mjs +0 -226
- package/dist/cli.cjs +0 -4792
- package/dist/cli.d.cts +0 -25
- package/dist/cli.d.ts +0 -25
package/dist/actions.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as ActionType, c as StepResult } from './types-
|
|
1
|
+
import { y as Page, S as Step, B as BatchOptions, b as BatchResult } from './types-DOGsEYQa.js';
|
|
2
|
+
export { A as ActionType, c as StepResult } from './types-DOGsEYQa.js';
|
|
3
3
|
import './client-7Nqka5MV.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -18,8 +18,8 @@ declare class BatchExecutor {
|
|
|
18
18
|
*/
|
|
19
19
|
private executeStep;
|
|
20
20
|
/**
|
|
21
|
-
* Get the
|
|
22
|
-
*
|
|
21
|
+
* Get the actual selector that matched the element.
|
|
22
|
+
* Uses the last matched selector tracked by Page, falls back to first selector if unavailable.
|
|
23
23
|
*/
|
|
24
24
|
private getUsedSelector;
|
|
25
25
|
}
|
|
@@ -30,4 +30,23 @@ declare function addBatchToPage(page: Page): Page & {
|
|
|
30
30
|
batch: (steps: Step[], options?: BatchOptions) => Promise<BatchResult>;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Step validation for batch executor
|
|
35
|
+
*
|
|
36
|
+
* Validates steps before browser connection, catching malformed JSON
|
|
37
|
+
* from AI agents with actionable, specific feedback.
|
|
38
|
+
*/
|
|
39
|
+
interface ValidationError {
|
|
40
|
+
stepIndex: number;
|
|
41
|
+
field: string;
|
|
42
|
+
message: string;
|
|
43
|
+
suggestion?: string;
|
|
44
|
+
}
|
|
45
|
+
interface ValidationResult {
|
|
46
|
+
valid: boolean;
|
|
47
|
+
errors: ValidationError[];
|
|
48
|
+
formatted(): string;
|
|
49
|
+
}
|
|
50
|
+
declare function validateSteps(steps: unknown[]): ValidationResult;
|
|
51
|
+
|
|
52
|
+
export { BatchExecutor, BatchOptions, BatchResult, Step, type ValidationError, type ValidationResult, addBatchToPage, validateSteps };
|
package/dist/actions.mjs
CHANGED