@cogitator-ai/browser 0.4.19 → 0.4.20
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/tools/extraction.d.ts +14 -14
- package/dist/tools/extraction.d.ts.map +1 -1
- package/dist/tools/interaction.d.ts +18 -18
- package/dist/tools/interaction.d.ts.map +1 -1
- package/dist/tools/navigation.d.ts +14 -14
- package/dist/tools/navigation.d.ts.map +1 -1
- package/dist/tools/network.d.ts +12 -12
- package/dist/tools/network.d.ts.map +1 -1
- package/dist/tools/vision.d.ts +8 -8
- package/dist/tools/vision.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -3,19 +3,19 @@ export declare function createGetTextTool(session: BrowserSession): import("@cog
|
|
|
3
3
|
selector?: string | undefined;
|
|
4
4
|
}, {
|
|
5
5
|
text: string;
|
|
6
|
-
}>;
|
|
6
|
+
}, unknown>;
|
|
7
7
|
export declare function createGetHtmlTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
8
8
|
selector?: string | undefined;
|
|
9
9
|
outer?: boolean | undefined;
|
|
10
10
|
}, {
|
|
11
11
|
html: string;
|
|
12
|
-
}>;
|
|
12
|
+
}, unknown>;
|
|
13
13
|
export declare function createGetAttributeTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
14
14
|
selector: string;
|
|
15
15
|
attribute: string;
|
|
16
16
|
}, {
|
|
17
17
|
value: string | null;
|
|
18
|
-
}>;
|
|
18
|
+
}, unknown>;
|
|
19
19
|
export declare function createGetLinksTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
20
20
|
selector?: string | undefined;
|
|
21
21
|
baseUrl?: string | undefined;
|
|
@@ -25,7 +25,7 @@ export declare function createGetLinksTool(session: BrowserSession): import("@co
|
|
|
25
25
|
href: string;
|
|
26
26
|
title: string | undefined;
|
|
27
27
|
}[];
|
|
28
|
-
}>;
|
|
28
|
+
}, unknown>;
|
|
29
29
|
export declare function createQuerySelectorAllTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
30
30
|
selector: string;
|
|
31
31
|
attributes?: string[] | undefined;
|
|
@@ -37,13 +37,13 @@ export declare function createQuerySelectorAllTool(session: BrowserSession): imp
|
|
|
37
37
|
attributes: Record<string, string>;
|
|
38
38
|
visible: boolean;
|
|
39
39
|
}[];
|
|
40
|
-
}>;
|
|
40
|
+
}, unknown>;
|
|
41
41
|
export declare function createExtractTableTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
42
42
|
selector?: string | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
headers: string[];
|
|
45
45
|
rows: string[][];
|
|
46
|
-
}>;
|
|
46
|
+
}, unknown>;
|
|
47
47
|
export declare function createExtractStructuredTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
48
48
|
instruction: string;
|
|
49
49
|
selector?: string | undefined;
|
|
@@ -52,22 +52,22 @@ export declare function createExtractStructuredTool(session: BrowserSession): im
|
|
|
52
52
|
text: string;
|
|
53
53
|
url: string;
|
|
54
54
|
title: string;
|
|
55
|
-
}>;
|
|
55
|
+
}, unknown>;
|
|
56
56
|
export declare function createExtractionTools(session: BrowserSession): [import("@cogitator-ai/types").Tool<{
|
|
57
57
|
selector?: string | undefined;
|
|
58
58
|
}, {
|
|
59
59
|
text: string;
|
|
60
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
60
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
61
61
|
selector?: string | undefined;
|
|
62
62
|
outer?: boolean | undefined;
|
|
63
63
|
}, {
|
|
64
64
|
html: string;
|
|
65
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
65
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
66
66
|
selector: string;
|
|
67
67
|
attribute: string;
|
|
68
68
|
}, {
|
|
69
69
|
value: string | null;
|
|
70
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
70
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
71
71
|
selector?: string | undefined;
|
|
72
72
|
baseUrl?: string | undefined;
|
|
73
73
|
}, {
|
|
@@ -76,7 +76,7 @@ export declare function createExtractionTools(session: BrowserSession): [import(
|
|
|
76
76
|
href: string;
|
|
77
77
|
title: string | undefined;
|
|
78
78
|
}[];
|
|
79
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
79
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
80
80
|
selector: string;
|
|
81
81
|
attributes?: string[] | undefined;
|
|
82
82
|
limit?: number | undefined;
|
|
@@ -87,12 +87,12 @@ export declare function createExtractionTools(session: BrowserSession): [import(
|
|
|
87
87
|
attributes: Record<string, string>;
|
|
88
88
|
visible: boolean;
|
|
89
89
|
}[];
|
|
90
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
90
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
91
91
|
selector?: string | undefined;
|
|
92
92
|
}, {
|
|
93
93
|
headers: string[];
|
|
94
94
|
rows: string[][];
|
|
95
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
95
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
96
96
|
instruction: string;
|
|
97
97
|
selector?: string | undefined;
|
|
98
98
|
}, {
|
|
@@ -100,5 +100,5 @@ export declare function createExtractionTools(session: BrowserSession): [import(
|
|
|
100
100
|
text: string;
|
|
101
101
|
url: string;
|
|
102
102
|
title: string;
|
|
103
|
-
}>];
|
|
103
|
+
}, unknown>];
|
|
104
104
|
//# sourceMappingURL=extraction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extraction.d.ts","sourceRoot":"","sources":["../../src/tools/extraction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAmBjD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,cAAc;;;;
|
|
1
|
+
{"version":3,"file":"extraction.d.ts","sourceRoot":"","sources":["../../src/tools/extraction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAmBjD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,cAAc;;;;YAqBxD;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,cAAc;;;;;YAqBxD;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,cAAc;;;;;YAY7D;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,cAAc;;;;;;;;;YAqCzD;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,cAAc;;;;;;aAcjD,MAAM;cACL,MAAM;oBACA,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;iBACzB,OAAO;;YAkC3B;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,cAAc;;;aAUvB,MAAM,EAAE;UAAc,MAAM,EAAE,EAAE;YA6BtE;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,cAAc;;;;;;;;YAmBlE;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aArG5C,MAAM;cACL,MAAM;oBACA,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;iBACzB,OAAO;;;;;aA8CW,MAAM,EAAE;UAAc,MAAM,EAAE,EAAE;;;;;;;;;aA8DtE"}
|
|
@@ -9,7 +9,7 @@ export declare function createClickTool(session: BrowserSession): import("@cogit
|
|
|
9
9
|
} | undefined;
|
|
10
10
|
}, {
|
|
11
11
|
clicked: boolean;
|
|
12
|
-
}>;
|
|
12
|
+
}, unknown>;
|
|
13
13
|
export declare function createTypeTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
14
14
|
selector: string;
|
|
15
15
|
text: string;
|
|
@@ -17,7 +17,7 @@ export declare function createTypeTool(session: BrowserSession): import("@cogita
|
|
|
17
17
|
clearFirst?: boolean | undefined;
|
|
18
18
|
}, {
|
|
19
19
|
typed: boolean;
|
|
20
|
-
}>;
|
|
20
|
+
}, unknown>;
|
|
21
21
|
export declare function createSelectOptionTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
22
22
|
selector: string;
|
|
23
23
|
value?: string | undefined;
|
|
@@ -25,7 +25,7 @@ export declare function createSelectOptionTool(session: BrowserSession): import(
|
|
|
25
25
|
index?: number | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
selected: string[];
|
|
28
|
-
}>;
|
|
28
|
+
}, unknown>;
|
|
29
29
|
export declare function createHoverTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
30
30
|
selector: string;
|
|
31
31
|
position?: {
|
|
@@ -34,26 +34,26 @@ export declare function createHoverTool(session: BrowserSession): import("@cogit
|
|
|
34
34
|
} | undefined;
|
|
35
35
|
}, {
|
|
36
36
|
hovered: boolean;
|
|
37
|
-
}>;
|
|
37
|
+
}, unknown>;
|
|
38
38
|
export declare function createScrollTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
39
39
|
direction: "left" | "right" | "up" | "down";
|
|
40
40
|
amount?: number | undefined;
|
|
41
41
|
selector?: string | undefined;
|
|
42
42
|
}, {
|
|
43
43
|
scrolled: boolean;
|
|
44
|
-
}>;
|
|
44
|
+
}, unknown>;
|
|
45
45
|
export declare function createPressKeyTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
46
46
|
key: string;
|
|
47
47
|
modifiers?: ("Shift" | "Control" | "Alt" | "Meta")[] | undefined;
|
|
48
48
|
}, {
|
|
49
49
|
pressed: boolean;
|
|
50
|
-
}>;
|
|
50
|
+
}, unknown>;
|
|
51
51
|
export declare function createDragAndDropTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
52
52
|
source: string;
|
|
53
53
|
target: string;
|
|
54
54
|
}, {
|
|
55
55
|
dropped: boolean;
|
|
56
|
-
}>;
|
|
56
|
+
}, unknown>;
|
|
57
57
|
export declare function createFillFormTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
58
58
|
fields: Record<string, string | boolean | string[]>;
|
|
59
59
|
}, {
|
|
@@ -63,13 +63,13 @@ export declare function createFillFormTool(session: BrowserSession): import("@co
|
|
|
63
63
|
field: string;
|
|
64
64
|
error: string;
|
|
65
65
|
}[];
|
|
66
|
-
}>;
|
|
66
|
+
}, unknown>;
|
|
67
67
|
export declare function createUploadFileTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
68
68
|
selector: string;
|
|
69
69
|
filePaths: string[];
|
|
70
70
|
}, {
|
|
71
71
|
uploaded: boolean;
|
|
72
|
-
}>;
|
|
72
|
+
}, unknown>;
|
|
73
73
|
export declare function createInteractionTools(session: BrowserSession): [import("@cogitator-ai/types").Tool<{
|
|
74
74
|
selector: string;
|
|
75
75
|
button?: "left" | "right" | "middle" | undefined;
|
|
@@ -80,21 +80,21 @@ export declare function createInteractionTools(session: BrowserSession): [import
|
|
|
80
80
|
} | undefined;
|
|
81
81
|
}, {
|
|
82
82
|
clicked: boolean;
|
|
83
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
83
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
84
84
|
selector: string;
|
|
85
85
|
text: string;
|
|
86
86
|
delay?: number | undefined;
|
|
87
87
|
clearFirst?: boolean | undefined;
|
|
88
88
|
}, {
|
|
89
89
|
typed: boolean;
|
|
90
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
90
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
91
91
|
selector: string;
|
|
92
92
|
value?: string | undefined;
|
|
93
93
|
label?: string | undefined;
|
|
94
94
|
index?: number | undefined;
|
|
95
95
|
}, {
|
|
96
96
|
selected: string[];
|
|
97
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
97
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
98
98
|
selector: string;
|
|
99
99
|
position?: {
|
|
100
100
|
x: number;
|
|
@@ -102,23 +102,23 @@ export declare function createInteractionTools(session: BrowserSession): [import
|
|
|
102
102
|
} | undefined;
|
|
103
103
|
}, {
|
|
104
104
|
hovered: boolean;
|
|
105
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
105
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
106
106
|
direction: "left" | "right" | "up" | "down";
|
|
107
107
|
amount?: number | undefined;
|
|
108
108
|
selector?: string | undefined;
|
|
109
109
|
}, {
|
|
110
110
|
scrolled: boolean;
|
|
111
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
111
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
112
112
|
key: string;
|
|
113
113
|
modifiers?: ("Shift" | "Control" | "Alt" | "Meta")[] | undefined;
|
|
114
114
|
}, {
|
|
115
115
|
pressed: boolean;
|
|
116
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
116
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
117
117
|
source: string;
|
|
118
118
|
target: string;
|
|
119
119
|
}, {
|
|
120
120
|
dropped: boolean;
|
|
121
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
121
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
122
122
|
fields: Record<string, string | boolean | string[]>;
|
|
123
123
|
}, {
|
|
124
124
|
filled: string[];
|
|
@@ -127,10 +127,10 @@ export declare function createInteractionTools(session: BrowserSession): [import
|
|
|
127
127
|
field: string;
|
|
128
128
|
error: string;
|
|
129
129
|
}[];
|
|
130
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
130
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
131
131
|
selector: string;
|
|
132
132
|
filePaths: string[];
|
|
133
133
|
}, {
|
|
134
134
|
uploaded: boolean;
|
|
135
|
-
}>];
|
|
135
|
+
}, unknown>];
|
|
136
136
|
//# sourceMappingURL=interaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interaction.d.ts","sourceRoot":"","sources":["../../src/tools/interaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAwBjD,wBAAgB,eAAe,CAAC,OAAO,EAAE,cAAc;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"interaction.d.ts","sourceRoot":"","sources":["../../src/tools/interaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAwBjD,wBAAgB,eAAe,CAAC,OAAO,EAAE,cAAc;;;;;;;;;;YAsBtD;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,cAAc;;;;;;;YA0BrD;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,cAAc;;;;;;;YAiB7D;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,cAAc;;;;;;;;YAiBtD;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,cAAc;;;;;;YAiCvD;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,cAAc;;;;;YAiBzD;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,cAAc;;;;;YAY5D;AAoBD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,cAAc;;;;;;eAWvB,MAAM;eAAS,MAAM;;YAgDvD;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,cAAc;;;;;YAsB3D;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA1E3B,MAAM;eAAS,MAAM;;;;;;;aAsFvD"}
|
|
@@ -6,41 +6,41 @@ export declare function createNavigateTool(session: BrowserSession): import("@co
|
|
|
6
6
|
url: string;
|
|
7
7
|
title: string;
|
|
8
8
|
status: number;
|
|
9
|
-
}>;
|
|
9
|
+
}, unknown>;
|
|
10
10
|
export declare function createGoBackTool(session: BrowserSession): import("@cogitator-ai/types").Tool<Record<string, never>, {
|
|
11
11
|
navigated: boolean;
|
|
12
12
|
url: string;
|
|
13
13
|
title: string;
|
|
14
|
-
}>;
|
|
14
|
+
}, unknown>;
|
|
15
15
|
export declare function createGoForwardTool(session: BrowserSession): import("@cogitator-ai/types").Tool<Record<string, never>, {
|
|
16
16
|
navigated: boolean;
|
|
17
17
|
url: string;
|
|
18
18
|
title: string;
|
|
19
|
-
}>;
|
|
19
|
+
}, unknown>;
|
|
20
20
|
export declare function createReloadTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
21
21
|
waitUntil?: "load" | "domcontentloaded" | "networkidle" | "commit" | undefined;
|
|
22
22
|
}, {
|
|
23
23
|
url: string;
|
|
24
24
|
title: string;
|
|
25
|
-
}>;
|
|
25
|
+
}, unknown>;
|
|
26
26
|
export declare function createWaitForNavigationTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
27
27
|
url?: string | undefined;
|
|
28
28
|
timeout?: number | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
url: string;
|
|
31
31
|
title: string;
|
|
32
|
-
}>;
|
|
32
|
+
}, unknown>;
|
|
33
33
|
export declare function createGetCurrentUrlTool(session: BrowserSession): import("@cogitator-ai/types").Tool<Record<string, never>, {
|
|
34
34
|
url: string;
|
|
35
35
|
title: string;
|
|
36
|
-
}>;
|
|
36
|
+
}, unknown>;
|
|
37
37
|
export declare function createWaitForSelectorTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
38
38
|
selector: string;
|
|
39
39
|
state?: "visible" | "hidden" | "attached" | "detached" | undefined;
|
|
40
40
|
timeout?: number | undefined;
|
|
41
41
|
}, {
|
|
42
42
|
found: boolean;
|
|
43
|
-
}>;
|
|
43
|
+
}, unknown>;
|
|
44
44
|
export declare function createNavigationTools(session: BrowserSession): [import("@cogitator-ai/types").Tool<{
|
|
45
45
|
url: string;
|
|
46
46
|
waitUntil?: "load" | "domcontentloaded" | "networkidle" | "commit" | undefined;
|
|
@@ -48,33 +48,33 @@ export declare function createNavigationTools(session: BrowserSession): [import(
|
|
|
48
48
|
url: string;
|
|
49
49
|
title: string;
|
|
50
50
|
status: number;
|
|
51
|
-
}>, import("@cogitator-ai/types").Tool<Record<string, never>, {
|
|
51
|
+
}, unknown>, import("@cogitator-ai/types").Tool<Record<string, never>, {
|
|
52
52
|
navigated: boolean;
|
|
53
53
|
url: string;
|
|
54
54
|
title: string;
|
|
55
|
-
}>, import("@cogitator-ai/types").Tool<Record<string, never>, {
|
|
55
|
+
}, unknown>, import("@cogitator-ai/types").Tool<Record<string, never>, {
|
|
56
56
|
navigated: boolean;
|
|
57
57
|
url: string;
|
|
58
58
|
title: string;
|
|
59
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
59
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
60
60
|
waitUntil?: "load" | "domcontentloaded" | "networkidle" | "commit" | undefined;
|
|
61
61
|
}, {
|
|
62
62
|
url: string;
|
|
63
63
|
title: string;
|
|
64
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
64
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
65
65
|
url?: string | undefined;
|
|
66
66
|
timeout?: number | undefined;
|
|
67
67
|
}, {
|
|
68
68
|
url: string;
|
|
69
69
|
title: string;
|
|
70
|
-
}>, import("@cogitator-ai/types").Tool<Record<string, never>, {
|
|
70
|
+
}, unknown>, import("@cogitator-ai/types").Tool<Record<string, never>, {
|
|
71
71
|
url: string;
|
|
72
72
|
title: string;
|
|
73
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
73
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
74
74
|
selector: string;
|
|
75
75
|
state?: "visible" | "hidden" | "attached" | "detached" | undefined;
|
|
76
76
|
timeout?: number | undefined;
|
|
77
77
|
}, {
|
|
78
78
|
found: boolean;
|
|
79
|
-
}>];
|
|
79
|
+
}, unknown>];
|
|
80
80
|
//# sourceMappingURL=navigation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/tools/navigation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAejD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,cAAc;;;;;;;
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/tools/navigation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAejD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,cAAc;;;;;;;YAqBzD;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,cAAc;;;;YAiBvD;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,cAAc;;;;YAiB1D;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,cAAc;;;;;YAgBvD;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,cAAc;;;;;;YAgBlE;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,cAAc;;;YAe9D;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,cAAc;;;;;;YAwBhE;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAU5D"}
|
package/dist/tools/network.d.ts
CHANGED
|
@@ -24,12 +24,12 @@ export declare function createInterceptRequestTool(session: BrowserSession): imp
|
|
|
24
24
|
} | {
|
|
25
25
|
interceptorId: string;
|
|
26
26
|
warning?: undefined;
|
|
27
|
-
}>;
|
|
27
|
+
}, unknown>;
|
|
28
28
|
export declare function createRemoveInterceptorTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
29
29
|
interceptorId?: string | undefined;
|
|
30
30
|
}, {
|
|
31
31
|
removed: string[];
|
|
32
|
-
}>;
|
|
32
|
+
}, unknown>;
|
|
33
33
|
export declare function createWaitForResponseTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
34
34
|
urlPattern: string;
|
|
35
35
|
timeout?: number | undefined;
|
|
@@ -40,14 +40,14 @@ export declare function createWaitForResponseTool(session: BrowserSession): impo
|
|
|
40
40
|
[key: string]: string;
|
|
41
41
|
};
|
|
42
42
|
body: string;
|
|
43
|
-
}>;
|
|
43
|
+
}, unknown>;
|
|
44
44
|
export declare function createBlockResourcesTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
45
45
|
types: ("image" | "stylesheet" | "font" | "media" | "script")[];
|
|
46
46
|
}, {
|
|
47
47
|
blocking: boolean;
|
|
48
48
|
interceptorId: string;
|
|
49
49
|
types: ("image" | "stylesheet" | "font" | "media" | "script")[];
|
|
50
|
-
}>;
|
|
50
|
+
}, unknown>;
|
|
51
51
|
export declare function createCaptureHarTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
52
52
|
action: "start" | "stop";
|
|
53
53
|
path?: string | undefined;
|
|
@@ -60,14 +60,14 @@ export declare function createCaptureHarTool(session: BrowserSession): import("@
|
|
|
60
60
|
entries: number;
|
|
61
61
|
truncated: boolean;
|
|
62
62
|
har: HarEntry[];
|
|
63
|
-
}>;
|
|
63
|
+
}, unknown>;
|
|
64
64
|
export declare function createGetApiCallsTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
65
65
|
urlPattern?: string | undefined;
|
|
66
66
|
method?: string | undefined;
|
|
67
67
|
clear?: boolean | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
calls: ApiCallRecord[];
|
|
70
|
-
}>;
|
|
70
|
+
}, unknown>;
|
|
71
71
|
export declare function createNetworkTools(session: BrowserSession): [import("@cogitator-ai/types").Tool<{
|
|
72
72
|
urlPattern: string;
|
|
73
73
|
action: "block" | "modify" | "continue";
|
|
@@ -82,7 +82,7 @@ export declare function createNetworkTools(session: BrowserSession): [import("@c
|
|
|
82
82
|
} | {
|
|
83
83
|
interceptorId: string;
|
|
84
84
|
warning?: undefined;
|
|
85
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
85
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
86
86
|
urlPattern: string;
|
|
87
87
|
timeout?: number | undefined;
|
|
88
88
|
}, {
|
|
@@ -92,13 +92,13 @@ export declare function createNetworkTools(session: BrowserSession): [import("@c
|
|
|
92
92
|
[key: string]: string;
|
|
93
93
|
};
|
|
94
94
|
body: string;
|
|
95
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
95
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
96
96
|
types: ("image" | "stylesheet" | "font" | "media" | "script")[];
|
|
97
97
|
}, {
|
|
98
98
|
blocking: boolean;
|
|
99
99
|
interceptorId: string;
|
|
100
100
|
types: ("image" | "stylesheet" | "font" | "media" | "script")[];
|
|
101
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
101
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
102
102
|
action: "start" | "stop";
|
|
103
103
|
path?: string | undefined;
|
|
104
104
|
}, {
|
|
@@ -110,16 +110,16 @@ export declare function createNetworkTools(session: BrowserSession): [import("@c
|
|
|
110
110
|
entries: number;
|
|
111
111
|
truncated: boolean;
|
|
112
112
|
har: HarEntry[];
|
|
113
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
113
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
114
114
|
urlPattern?: string | undefined;
|
|
115
115
|
method?: string | undefined;
|
|
116
116
|
clear?: boolean | undefined;
|
|
117
117
|
}, {
|
|
118
118
|
calls: ApiCallRecord[];
|
|
119
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
119
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
120
120
|
interceptorId?: string | undefined;
|
|
121
121
|
}, {
|
|
122
122
|
removed: string[];
|
|
123
|
-
}>];
|
|
123
|
+
}, unknown>];
|
|
124
124
|
export {};
|
|
125
125
|
//# sourceMappingURL=network.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../../src/tools/network.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAwBjD,UAAU,aAAa;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAgCD,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAQ7D;AAqUD,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,cAAc;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../../src/tools/network.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAwBjD,UAAU,aAAa;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAgCD,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAQ7D;AAqUD,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,cAAc;;;;;;;;;;;;;;YA4CjE;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,cAAc;;;;YAiBlE;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,cAAc;;;;;;;;;;YA4BhE;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,cAAc;;;;;;YAwB/D;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,cAAc;;;;;;;;;;;;YAwC3D;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,cAAc;;;;;;YAwB5D;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aASzD"}
|
package/dist/tools/vision.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare function createScreenshotTool(session: BrowserSession): import("@
|
|
|
8
8
|
mimeType: string;
|
|
9
9
|
width: number;
|
|
10
10
|
height: number;
|
|
11
|
-
}>;
|
|
11
|
+
}, unknown>;
|
|
12
12
|
export declare function createScreenshotElementTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
13
13
|
selector: string;
|
|
14
14
|
}, {
|
|
@@ -19,7 +19,7 @@ export declare function createScreenshotElementTool(session: BrowserSession): im
|
|
|
19
19
|
width: number;
|
|
20
20
|
height: number;
|
|
21
21
|
} | null;
|
|
22
|
-
}>;
|
|
22
|
+
}, unknown>;
|
|
23
23
|
export declare function createFindByDescriptionTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
24
24
|
description: string;
|
|
25
25
|
}, {
|
|
@@ -29,7 +29,7 @@ export declare function createFindByDescriptionTool(session: BrowserSession): im
|
|
|
29
29
|
description: string;
|
|
30
30
|
}[];
|
|
31
31
|
total: number;
|
|
32
|
-
}>;
|
|
32
|
+
}, unknown>;
|
|
33
33
|
export declare function createClickByDescriptionTool(session: BrowserSession): import("@cogitator-ai/types").Tool<{
|
|
34
34
|
description: string;
|
|
35
35
|
index?: number | undefined;
|
|
@@ -42,7 +42,7 @@ export declare function createClickByDescriptionTool(session: BrowserSession): i
|
|
|
42
42
|
description: string;
|
|
43
43
|
index: number;
|
|
44
44
|
};
|
|
45
|
-
}>;
|
|
45
|
+
}, unknown>;
|
|
46
46
|
export declare function createVisionTools(session: BrowserSession): [import("@cogitator-ai/types").Tool<{
|
|
47
47
|
fullPage?: boolean | undefined;
|
|
48
48
|
selector?: string | undefined;
|
|
@@ -52,7 +52,7 @@ export declare function createVisionTools(session: BrowserSession): [import("@co
|
|
|
52
52
|
mimeType: string;
|
|
53
53
|
width: number;
|
|
54
54
|
height: number;
|
|
55
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
55
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
56
56
|
selector: string;
|
|
57
57
|
}, {
|
|
58
58
|
image: string;
|
|
@@ -62,7 +62,7 @@ export declare function createVisionTools(session: BrowserSession): [import("@co
|
|
|
62
62
|
width: number;
|
|
63
63
|
height: number;
|
|
64
64
|
} | null;
|
|
65
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
65
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
66
66
|
description: string;
|
|
67
67
|
}, {
|
|
68
68
|
elements: {
|
|
@@ -71,7 +71,7 @@ export declare function createVisionTools(session: BrowserSession): [import("@co
|
|
|
71
71
|
description: string;
|
|
72
72
|
}[];
|
|
73
73
|
total: number;
|
|
74
|
-
}>, import("@cogitator-ai/types").Tool<{
|
|
74
|
+
}, unknown>, import("@cogitator-ai/types").Tool<{
|
|
75
75
|
description: string;
|
|
76
76
|
index?: number | undefined;
|
|
77
77
|
}, {
|
|
@@ -83,5 +83,5 @@ export declare function createVisionTools(session: BrowserSession): [import("@co
|
|
|
83
83
|
description: string;
|
|
84
84
|
index: number;
|
|
85
85
|
};
|
|
86
|
-
}>];
|
|
86
|
+
}, unknown>];
|
|
87
87
|
//# sourceMappingURL=vision.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vision.d.ts","sourceRoot":"","sources":["../../src/tools/vision.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAiDjD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,cAAc;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"vision.d.ts","sourceRoot":"","sources":["../../src/tools/vision.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAiDjD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,cAAc;;;;;;;;;YAmC3D;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,cAAc;;;;;;;;;;YAmBlE;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,cAAc;;;;cAchC,MAAM;cAAQ,MAAM;qBAAe,MAAM;;;YA6B3E;AAED,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,cAAc;;;;;;;;;;;;YA4CnE;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;cA7EtB,MAAM;cAAQ,MAAM;qBAAe,MAAM;;;;;;;;;;;;;;;aAoF3E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cogitator-ai/browser",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.20",
|
|
4
4
|
"description": "Browser automation tools for Cogitator AI agents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cogitator",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"node": ">=22.12.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@cogitator-ai/core": "0.
|
|
35
|
-
"@cogitator-ai/types": "0.
|
|
34
|
+
"@cogitator-ai/core": "0.43.0",
|
|
35
|
+
"@cogitator-ai/types": "0.45.0",
|
|
36
36
|
"playwright": "^1.63.0",
|
|
37
37
|
"zod": "^4.6.5"
|
|
38
38
|
},
|