@wingman-ai/gateway 0.3.0 → 0.3.2

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.
Files changed (124) hide show
  1. package/README.md +8 -0
  2. package/dist/agent/config/agentConfig.cjs +12 -0
  3. package/dist/agent/config/agentConfig.d.ts +22 -0
  4. package/dist/agent/config/agentConfig.js +10 -1
  5. package/dist/agent/config/agentLoader.cjs +9 -0
  6. package/dist/agent/config/agentLoader.js +9 -0
  7. package/dist/agent/config/toolRegistry.cjs +17 -0
  8. package/dist/agent/config/toolRegistry.d.ts +15 -0
  9. package/dist/agent/config/toolRegistry.js +17 -0
  10. package/dist/agent/tests/agentConfig.test.cjs +6 -1
  11. package/dist/agent/tests/agentConfig.test.js +6 -1
  12. package/dist/agent/tests/browserControlHelpers.test.cjs +35 -0
  13. package/dist/agent/tests/browserControlHelpers.test.d.ts +1 -0
  14. package/dist/agent/tests/browserControlHelpers.test.js +29 -0
  15. package/dist/agent/tests/browserControlTool.test.cjs +2117 -0
  16. package/dist/agent/tests/browserControlTool.test.d.ts +1 -0
  17. package/dist/agent/tests/browserControlTool.test.js +2111 -0
  18. package/dist/agent/tests/internet_search.test.cjs +22 -28
  19. package/dist/agent/tests/internet_search.test.js +22 -28
  20. package/dist/agent/tests/toolRegistry.test.cjs +6 -0
  21. package/dist/agent/tests/toolRegistry.test.js +6 -0
  22. package/dist/agent/tools/browser_control.cjs +1282 -0
  23. package/dist/agent/tools/browser_control.d.ts +478 -0
  24. package/dist/agent/tools/browser_control.js +1242 -0
  25. package/dist/agent/tools/internet_search.cjs +9 -5
  26. package/dist/agent/tools/internet_search.js +9 -5
  27. package/dist/cli/commands/agent.cjs +16 -2
  28. package/dist/cli/commands/agent.js +16 -2
  29. package/dist/cli/commands/browser.cjs +603 -0
  30. package/dist/cli/commands/browser.d.ts +13 -0
  31. package/dist/cli/commands/browser.js +566 -0
  32. package/dist/cli/commands/gateway.cjs +18 -7
  33. package/dist/cli/commands/gateway.d.ts +5 -1
  34. package/dist/cli/commands/gateway.js +18 -7
  35. package/dist/cli/commands/init.cjs +134 -45
  36. package/dist/cli/commands/init.js +134 -45
  37. package/dist/cli/commands/skill.cjs +3 -2
  38. package/dist/cli/commands/skill.js +3 -2
  39. package/dist/cli/config/loader.cjs +15 -0
  40. package/dist/cli/config/loader.js +15 -0
  41. package/dist/cli/config/schema.cjs +51 -2
  42. package/dist/cli/config/schema.d.ts +49 -0
  43. package/dist/cli/config/schema.js +44 -1
  44. package/dist/cli/core/workspace.cjs +89 -0
  45. package/dist/cli/core/workspace.d.ts +1 -0
  46. package/dist/cli/core/workspace.js +55 -0
  47. package/dist/cli/index.cjs +53 -5
  48. package/dist/cli/index.js +53 -5
  49. package/dist/cli/types/browser.cjs +18 -0
  50. package/dist/cli/types/browser.d.ts +9 -0
  51. package/dist/cli/types/browser.js +0 -0
  52. package/dist/gateway/browserRelayServer.cjs +338 -0
  53. package/dist/gateway/browserRelayServer.d.ts +38 -0
  54. package/dist/gateway/browserRelayServer.js +301 -0
  55. package/dist/gateway/http/agents.cjs +22 -0
  56. package/dist/gateway/http/agents.js +22 -0
  57. package/dist/gateway/http/fs.cjs +57 -0
  58. package/dist/gateway/http/fs.js +58 -1
  59. package/dist/gateway/server.cjs +43 -6
  60. package/dist/gateway/server.d.ts +4 -1
  61. package/dist/gateway/server.js +36 -5
  62. package/dist/gateway/transport/websocket.cjs +45 -10
  63. package/dist/gateway/transport/websocket.d.ts +1 -0
  64. package/dist/gateway/transport/websocket.js +41 -9
  65. package/dist/gateway/types.d.ts +4 -0
  66. package/dist/tests/agents-api.test.cjs +52 -0
  67. package/dist/tests/agents-api.test.js +53 -1
  68. package/dist/tests/browser-command.test.cjs +264 -0
  69. package/dist/tests/browser-command.test.d.ts +1 -0
  70. package/dist/tests/browser-command.test.js +258 -0
  71. package/dist/tests/browser-relay-server.test.cjs +20 -0
  72. package/dist/tests/browser-relay-server.test.d.ts +1 -0
  73. package/dist/tests/browser-relay-server.test.js +14 -0
  74. package/dist/tests/cli-config-loader.test.cjs +43 -0
  75. package/dist/tests/cli-config-loader.test.js +43 -0
  76. package/dist/tests/cli-init.test.cjs +25 -2
  77. package/dist/tests/cli-init.test.js +25 -2
  78. package/dist/tests/cli-workspace-root.test.cjs +114 -0
  79. package/dist/tests/cli-workspace-root.test.d.ts +1 -0
  80. package/dist/tests/cli-workspace-root.test.js +108 -0
  81. package/dist/tests/fs-api.test.cjs +138 -0
  82. package/dist/tests/fs-api.test.d.ts +1 -0
  83. package/dist/tests/fs-api.test.js +132 -0
  84. package/dist/tests/gateway-command-workspace.test.cjs +150 -0
  85. package/dist/tests/gateway-command-workspace.test.d.ts +1 -0
  86. package/dist/tests/gateway-command-workspace.test.js +144 -0
  87. package/dist/tests/gateway-request-execution-overrides.test.cjs +42 -0
  88. package/dist/tests/gateway-request-execution-overrides.test.d.ts +1 -0
  89. package/dist/tests/gateway-request-execution-overrides.test.js +36 -0
  90. package/dist/tests/gateway.test.cjs +31 -0
  91. package/dist/tests/gateway.test.js +31 -0
  92. package/dist/tests/websocket-transport.test.cjs +31 -0
  93. package/dist/tests/websocket-transport.test.d.ts +1 -0
  94. package/dist/tests/websocket-transport.test.js +25 -0
  95. package/dist/webui/assets/index-Cwkg4DKj.css +11 -0
  96. package/dist/webui/assets/{index-0nUBsUUq.js → index-DHbfLOUR.js} +109 -107
  97. package/dist/webui/index.html +2 -2
  98. package/extensions/wingman-browser-extension/README.md +27 -0
  99. package/extensions/wingman-browser-extension/background.js +416 -0
  100. package/extensions/wingman-browser-extension/manifest.json +19 -0
  101. package/extensions/wingman-browser-extension/options.html +156 -0
  102. package/extensions/wingman-browser-extension/options.js +106 -0
  103. package/package.json +8 -8
  104. package/{.wingman → templates}/agents/README.md +2 -1
  105. package/{.wingman → templates}/agents/coding/agent.md +0 -1
  106. package/{.wingman → templates}/agents/coding-v2/agent.md +0 -1
  107. package/{.wingman → templates}/agents/game-dev/agent.md +8 -1
  108. package/{.wingman → templates}/agents/game-dev/art-generation.md +1 -0
  109. package/{.wingman → templates}/agents/main/agent.md +5 -0
  110. package/{.wingman → templates}/agents/researcher/agent.md +9 -0
  111. package/{.wingman → templates}/agents/stock-trader/agent.md +1 -0
  112. package/dist/webui/assets/index-kk7OrD-G.css +0 -11
  113. /package/{.wingman → templates}/agents/coding-v2/implementor.md +0 -0
  114. /package/{.wingman → templates}/agents/game-dev/asset-refinement.md +0 -0
  115. /package/{.wingman → templates}/agents/game-dev/planning-idea.md +0 -0
  116. /package/{.wingman → templates}/agents/game-dev/ui-specialist.md +0 -0
  117. /package/{.wingman → templates}/agents/stock-trader/chain-curator.md +0 -0
  118. /package/{.wingman → templates}/agents/stock-trader/goal-translator.md +0 -0
  119. /package/{.wingman → templates}/agents/stock-trader/guardrails-veto.md +0 -0
  120. /package/{.wingman → templates}/agents/stock-trader/path-planner.md +0 -0
  121. /package/{.wingman → templates}/agents/stock-trader/regime-analyst.md +0 -0
  122. /package/{.wingman → templates}/agents/stock-trader/risk.md +0 -0
  123. /package/{.wingman → templates}/agents/stock-trader/selection.md +0 -0
  124. /package/{.wingman → templates}/agents/stock-trader/strategy-composer.md +0 -0
@@ -0,0 +1,478 @@
1
+ import * as z from "zod";
2
+ type BrowserPageLike = {
3
+ goto: (url: string, options?: {
4
+ waitUntil?: "domcontentloaded";
5
+ timeout?: number;
6
+ }) => Promise<unknown>;
7
+ bringToFront?: () => Promise<unknown>;
8
+ click: (selector: string, options?: {
9
+ timeout?: number;
10
+ }) => Promise<unknown>;
11
+ fill: (selector: string, text: string, options?: {
12
+ timeout?: number;
13
+ }) => Promise<unknown>;
14
+ keyboard: {
15
+ press: (key: string) => Promise<unknown>;
16
+ };
17
+ waitForTimeout: (ms: number) => Promise<unknown>;
18
+ waitForSelector?: (selector: string, options?: {
19
+ state?: "attached" | "detached" | "visible" | "hidden";
20
+ timeout?: number;
21
+ }) => Promise<unknown>;
22
+ waitForURL?: (url: string | RegExp, options?: {
23
+ timeout?: number;
24
+ waitUntil?: "load" | "domcontentloaded" | "networkidle";
25
+ }) => Promise<unknown>;
26
+ waitForLoadState?: (state?: "load" | "domcontentloaded" | "networkidle", options?: {
27
+ timeout?: number;
28
+ }) => Promise<unknown>;
29
+ waitForFunction?: (expression: string, arg?: unknown, options?: {
30
+ timeout?: number;
31
+ }) => Promise<unknown>;
32
+ textContent: (selector: string, options?: {
33
+ timeout?: number;
34
+ }) => Promise<string | null>;
35
+ evaluate: (expression: string) => Promise<unknown>;
36
+ screenshot: (options: {
37
+ path: string;
38
+ fullPage?: boolean;
39
+ }) => Promise<unknown>;
40
+ title: () => Promise<string>;
41
+ url: () => string;
42
+ };
43
+ type BrowserContextLike = {
44
+ pages: () => BrowserPageLike[];
45
+ newPage: () => Promise<BrowserPageLike>;
46
+ close?: () => Promise<unknown>;
47
+ };
48
+ type BrowserLike = {
49
+ contexts: () => BrowserContextLike[];
50
+ close: () => Promise<unknown>;
51
+ };
52
+ type LaunchPersistentContextOptions = {
53
+ executablePath?: string;
54
+ headless?: boolean;
55
+ timeout?: number;
56
+ args?: string[];
57
+ ignoreDefaultArgs?: string[];
58
+ };
59
+ type PlaywrightLike = {
60
+ chromium: {
61
+ connectOverCDP: (wsEndpoint: string, options?: {
62
+ timeout?: number;
63
+ }) => Promise<BrowserLike>;
64
+ launchPersistentContext?: (userDataDir: string, options?: LaunchPersistentContextOptions) => Promise<BrowserContextLike>;
65
+ };
66
+ };
67
+ interface StartChromeInput {
68
+ executablePath?: string;
69
+ headless: boolean;
70
+ launchTimeoutMs: number;
71
+ userDataDir: string;
72
+ chromeArgs?: string[];
73
+ }
74
+ interface StartedChromeSession {
75
+ wsEndpoint: string;
76
+ close: () => Promise<void>;
77
+ }
78
+ type BrowserTransportPreference = "auto" | "playwright" | "relay";
79
+ type BrowserRelayRuntimeConfig = {
80
+ enabled?: boolean;
81
+ host?: string;
82
+ port?: number;
83
+ requireAuth?: boolean;
84
+ authToken?: string;
85
+ };
86
+ type ResolvedBrowserRelayConfig = {
87
+ host: string;
88
+ port: number;
89
+ requireAuth: boolean;
90
+ authToken?: string;
91
+ };
92
+ interface BrowserControlDependencies {
93
+ importPlaywright: () => Promise<PlaywrightLike>;
94
+ startChrome: (input: StartChromeInput) => Promise<StartedChromeSession>;
95
+ resolveRelayWsEndpoint: (config: ResolvedBrowserRelayConfig, timeoutMs: number) => Promise<string>;
96
+ mkTempDir: () => string;
97
+ removeDir: (target: string) => void;
98
+ now: () => number;
99
+ }
100
+ export interface BrowserControlToolOptions {
101
+ workspace?: string;
102
+ configWorkspace?: string;
103
+ launchTimeoutMs?: number;
104
+ defaultExecutablePath?: string;
105
+ browserProfile?: string;
106
+ browserTransport?: BrowserTransportPreference;
107
+ relayConfig?: BrowserRelayRuntimeConfig;
108
+ profilesRootDir?: string;
109
+ profilePaths?: Record<string, string>;
110
+ browserExtensions?: string[];
111
+ extensionsRootDir?: string;
112
+ extensionPaths?: Record<string, string>;
113
+ defaultExtensions?: string[];
114
+ preferPersistentLaunch?: boolean;
115
+ }
116
+ export declare function clearStaleDevtoolsArtifacts(userDataDir: string): void;
117
+ export declare const createBrowserControlTool: (options?: BrowserControlToolOptions, dependencies?: Partial<BrowserControlDependencies>) => import("langchain").DynamicStructuredTool<z.ZodObject<{
118
+ url: z.ZodOptional<z.ZodString>;
119
+ actions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
120
+ type: z.ZodLiteral<"navigate">;
121
+ url: z.ZodString;
122
+ }, z.core.$strip>, z.ZodObject<{
123
+ type: z.ZodLiteral<"url">;
124
+ url: z.ZodString;
125
+ }, z.core.$strip>, z.ZodObject<{
126
+ type: z.ZodLiteral<"open">;
127
+ url: z.ZodString;
128
+ }, z.core.$strip>, z.ZodObject<{
129
+ type: z.ZodLiteral<"goto">;
130
+ url: z.ZodString;
131
+ }, z.core.$strip>, z.ZodObject<{
132
+ type: z.ZodLiteral<"click">;
133
+ selector: z.ZodString;
134
+ }, z.core.$strip>, z.ZodObject<{
135
+ type: z.ZodLiteral<"type">;
136
+ selector: z.ZodString;
137
+ text: z.ZodString;
138
+ submit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
139
+ }, z.core.$strip>, z.ZodObject<{
140
+ type: z.ZodLiteral<"press">;
141
+ key: z.ZodString;
142
+ }, z.core.$strip>, z.ZodObject<{
143
+ type: z.ZodLiteral<"wait">;
144
+ ms: z.ZodOptional<z.ZodNumber>;
145
+ selector: z.ZodOptional<z.ZodString>;
146
+ url: z.ZodOptional<z.ZodString>;
147
+ load: z.ZodOptional<z.ZodEnum<{
148
+ load: "load";
149
+ domcontentloaded: "domcontentloaded";
150
+ networkidle: "networkidle";
151
+ }>>;
152
+ fn: z.ZodOptional<z.ZodString>;
153
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
154
+ }, z.core.$strip>, z.ZodObject<{
155
+ type: z.ZodLiteral<"ms">;
156
+ ms: z.ZodNumber;
157
+ }, z.core.$strip>, z.ZodObject<{
158
+ type: z.ZodLiteral<"sleep">;
159
+ ms: z.ZodNumber;
160
+ }, z.core.$strip>, z.ZodObject<{
161
+ type: z.ZodLiteral<"pause">;
162
+ ms: z.ZodNumber;
163
+ }, z.core.$strip>, z.ZodObject<{
164
+ selector: z.ZodOptional<z.ZodString>;
165
+ url: z.ZodOptional<z.ZodString>;
166
+ load: z.ZodOptional<z.ZodEnum<{
167
+ load: "load";
168
+ domcontentloaded: "domcontentloaded";
169
+ networkidle: "networkidle";
170
+ }>>;
171
+ fn: z.ZodOptional<z.ZodString>;
172
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
173
+ type: z.ZodLiteral<"wait_for">;
174
+ }, z.core.$strip>, z.ZodObject<{
175
+ selector: z.ZodOptional<z.ZodString>;
176
+ url: z.ZodOptional<z.ZodString>;
177
+ load: z.ZodOptional<z.ZodEnum<{
178
+ load: "load";
179
+ domcontentloaded: "domcontentloaded";
180
+ networkidle: "networkidle";
181
+ }>>;
182
+ fn: z.ZodOptional<z.ZodString>;
183
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
184
+ type: z.ZodLiteral<"wait_until">;
185
+ }, z.core.$strip>, z.ZodObject<{
186
+ type: z.ZodLiteral<"extract_text">;
187
+ selector: z.ZodOptional<z.ZodString>;
188
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
189
+ }, z.core.$strip>, z.ZodObject<{
190
+ type: z.ZodLiteral<"selector">;
191
+ selector: z.ZodString;
192
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
193
+ }, z.core.$strip>, z.ZodObject<{
194
+ type: z.ZodLiteral<"extract">;
195
+ selector: z.ZodOptional<z.ZodString>;
196
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
197
+ }, z.core.$strip>, z.ZodObject<{
198
+ type: z.ZodLiteral<"getContent">;
199
+ selector: z.ZodOptional<z.ZodString>;
200
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
201
+ }, z.core.$strip>, z.ZodObject<{
202
+ type: z.ZodLiteral<"get_content">;
203
+ selector: z.ZodOptional<z.ZodString>;
204
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
205
+ }, z.core.$strip>, z.ZodObject<{
206
+ type: z.ZodLiteral<"querySelector">;
207
+ selector: z.ZodOptional<z.ZodString>;
208
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
209
+ }, z.core.$strip>, z.ZodObject<{
210
+ type: z.ZodLiteral<"query_selector">;
211
+ selector: z.ZodOptional<z.ZodString>;
212
+ maxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
213
+ }, z.core.$strip>, z.ZodObject<{
214
+ type: z.ZodLiteral<"screenshot">;
215
+ path: z.ZodOptional<z.ZodString>;
216
+ fullPage: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
217
+ }, z.core.$strip>, z.ZodObject<{
218
+ type: z.ZodLiteral<"path">;
219
+ path: z.ZodString;
220
+ fullPage: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
221
+ }, z.core.$strip>, z.ZodObject<{
222
+ type: z.ZodLiteral<"snapshot">;
223
+ path: z.ZodString;
224
+ fullPage: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
225
+ }, z.core.$strip>, z.ZodObject<{
226
+ type: z.ZodLiteral<"capture">;
227
+ path: z.ZodString;
228
+ fullPage: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
229
+ }, z.core.$strip>, z.ZodObject<{
230
+ type: z.ZodLiteral<"evaluate">;
231
+ expression: z.ZodString;
232
+ }, z.core.$strip>, z.ZodObject<{
233
+ type: z.ZodLiteral<"expression">;
234
+ expression: z.ZodString;
235
+ }, z.core.$strip>, z.ZodObject<{
236
+ type: z.ZodLiteral<"js">;
237
+ expression: z.ZodString;
238
+ }, z.core.$strip>, z.ZodObject<{
239
+ type: z.ZodLiteral<"script">;
240
+ expression: z.ZodString;
241
+ }, z.core.$strip>], "type">>>>;
242
+ headless: z.ZodOptional<z.ZodBoolean>;
243
+ timeoutMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
244
+ executablePath: z.ZodOptional<z.ZodString>;
245
+ }, z.core.$strip>, {
246
+ actions: ({
247
+ type: "wait";
248
+ ms?: number | undefined;
249
+ selector?: string | undefined;
250
+ url?: string | undefined;
251
+ load?: "load" | "domcontentloaded" | "networkidle" | undefined;
252
+ fn?: string | undefined;
253
+ timeoutMs?: number | undefined;
254
+ } | {
255
+ type: "wait_for";
256
+ selector?: string | undefined;
257
+ url?: string | undefined;
258
+ load?: "load" | "domcontentloaded" | "networkidle" | undefined;
259
+ fn?: string | undefined;
260
+ timeoutMs?: number | undefined;
261
+ } | {
262
+ type: "wait_until";
263
+ selector?: string | undefined;
264
+ url?: string | undefined;
265
+ load?: "load" | "domcontentloaded" | "networkidle" | undefined;
266
+ fn?: string | undefined;
267
+ timeoutMs?: number | undefined;
268
+ } | {
269
+ type: "navigate";
270
+ url: string;
271
+ } | {
272
+ type: "url";
273
+ url: string;
274
+ } | {
275
+ type: "open";
276
+ url: string;
277
+ } | {
278
+ type: "goto";
279
+ url: string;
280
+ } | {
281
+ type: "click";
282
+ selector: string;
283
+ } | {
284
+ type: "type";
285
+ selector: string;
286
+ text: string;
287
+ submit: boolean;
288
+ } | {
289
+ type: "press";
290
+ key: string;
291
+ } | {
292
+ type: "ms";
293
+ ms: number;
294
+ } | {
295
+ type: "sleep";
296
+ ms: number;
297
+ } | {
298
+ type: "pause";
299
+ ms: number;
300
+ } | {
301
+ type: "extract_text";
302
+ maxChars: number;
303
+ selector?: string | undefined;
304
+ } | {
305
+ type: "selector";
306
+ selector: string;
307
+ maxChars: number;
308
+ } | {
309
+ type: "extract";
310
+ maxChars: number;
311
+ selector?: string | undefined;
312
+ } | {
313
+ type: "getContent";
314
+ maxChars: number;
315
+ selector?: string | undefined;
316
+ } | {
317
+ type: "get_content";
318
+ maxChars: number;
319
+ selector?: string | undefined;
320
+ } | {
321
+ type: "querySelector";
322
+ maxChars: number;
323
+ selector?: string | undefined;
324
+ } | {
325
+ type: "query_selector";
326
+ maxChars: number;
327
+ selector?: string | undefined;
328
+ } | {
329
+ type: "screenshot";
330
+ fullPage: boolean;
331
+ path?: string | undefined;
332
+ } | {
333
+ type: "path";
334
+ path: string;
335
+ fullPage: boolean;
336
+ } | {
337
+ type: "snapshot";
338
+ path: string;
339
+ fullPage: boolean;
340
+ } | {
341
+ type: "capture";
342
+ path: string;
343
+ fullPage: boolean;
344
+ } | {
345
+ type: "evaluate";
346
+ expression: string;
347
+ } | {
348
+ type: "expression";
349
+ expression: string;
350
+ } | {
351
+ type: "js";
352
+ expression: string;
353
+ } | {
354
+ type: "script";
355
+ expression: string;
356
+ })[];
357
+ timeoutMs: number;
358
+ url?: string | undefined;
359
+ headless?: boolean | undefined;
360
+ executablePath?: string | undefined;
361
+ }, {
362
+ url?: string | undefined;
363
+ actions?: ({
364
+ type: "wait";
365
+ ms?: number | undefined;
366
+ selector?: string | undefined;
367
+ url?: string | undefined;
368
+ load?: "load" | "domcontentloaded" | "networkidle" | undefined;
369
+ fn?: string | undefined;
370
+ timeoutMs?: number | undefined;
371
+ } | {
372
+ type: "wait_for";
373
+ selector?: string | undefined;
374
+ url?: string | undefined;
375
+ load?: "load" | "domcontentloaded" | "networkidle" | undefined;
376
+ fn?: string | undefined;
377
+ timeoutMs?: number | undefined;
378
+ } | {
379
+ type: "wait_until";
380
+ selector?: string | undefined;
381
+ url?: string | undefined;
382
+ load?: "load" | "domcontentloaded" | "networkidle" | undefined;
383
+ fn?: string | undefined;
384
+ timeoutMs?: number | undefined;
385
+ } | {
386
+ type: "navigate";
387
+ url: string;
388
+ } | {
389
+ type: "url";
390
+ url: string;
391
+ } | {
392
+ type: "open";
393
+ url: string;
394
+ } | {
395
+ type: "goto";
396
+ url: string;
397
+ } | {
398
+ type: "click";
399
+ selector: string;
400
+ } | {
401
+ type: "type";
402
+ selector: string;
403
+ text: string;
404
+ submit?: boolean | undefined;
405
+ } | {
406
+ type: "press";
407
+ key: string;
408
+ } | {
409
+ type: "ms";
410
+ ms: number;
411
+ } | {
412
+ type: "sleep";
413
+ ms: number;
414
+ } | {
415
+ type: "pause";
416
+ ms: number;
417
+ } | {
418
+ type: "extract_text";
419
+ selector?: string | undefined;
420
+ maxChars?: number | undefined;
421
+ } | {
422
+ type: "selector";
423
+ selector: string;
424
+ maxChars?: number | undefined;
425
+ } | {
426
+ type: "extract";
427
+ selector?: string | undefined;
428
+ maxChars?: number | undefined;
429
+ } | {
430
+ type: "getContent";
431
+ selector?: string | undefined;
432
+ maxChars?: number | undefined;
433
+ } | {
434
+ type: "get_content";
435
+ selector?: string | undefined;
436
+ maxChars?: number | undefined;
437
+ } | {
438
+ type: "querySelector";
439
+ selector?: string | undefined;
440
+ maxChars?: number | undefined;
441
+ } | {
442
+ type: "query_selector";
443
+ selector?: string | undefined;
444
+ maxChars?: number | undefined;
445
+ } | {
446
+ type: "screenshot";
447
+ path?: string | undefined;
448
+ fullPage?: boolean | undefined;
449
+ } | {
450
+ type: "path";
451
+ path: string;
452
+ fullPage?: boolean | undefined;
453
+ } | {
454
+ type: "snapshot";
455
+ path: string;
456
+ fullPage?: boolean | undefined;
457
+ } | {
458
+ type: "capture";
459
+ path: string;
460
+ fullPage?: boolean | undefined;
461
+ } | {
462
+ type: "evaluate";
463
+ expression: string;
464
+ } | {
465
+ type: "expression";
466
+ expression: string;
467
+ } | {
468
+ type: "js";
469
+ expression: string;
470
+ } | {
471
+ type: "script";
472
+ expression: string;
473
+ })[] | undefined;
474
+ headless?: boolean | undefined;
475
+ timeoutMs?: number | undefined;
476
+ executablePath?: string | undefined;
477
+ }, string, "browser_control">;
478
+ export {};