@bubblelab/bubble-core 0.1.175 → 0.1.176
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/bubble-bundle.d.ts +141 -141
- package/dist/bubbles/service-bubble/agi-inc.d.ts +88 -88
- package/dist/bubbles/service-bubble/airtable.d.ts +108 -108
- package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts +2 -2
- package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +4 -4
- package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +12 -12
- package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +2 -2
- package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +8 -8
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-detail.d.ts +52 -52
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +18 -18
- package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +10 -10
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +27 -27
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +8 -8
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +131 -131
- package/dist/bubbles/service-bubble/apify/apify.d.ts +4 -4
- package/dist/bubbles/service-bubble/ashby/ashby.d.ts +28 -28
- package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +84 -84
- package/dist/bubbles/service-bubble/attio/attio.d.ts +46 -46
- package/dist/bubbles/service-bubble/attio/attio.schema.d.ts +28 -28
- package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +31 -31
- package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +30 -30
- package/dist/bubbles/service-bubble/capability-pipeline.js +2 -2
- package/dist/bubbles/service-bubble/capability-pipeline.js.map +1 -1
- package/dist/bubbles/service-bubble/confluence/confluence.d.ts +26 -26
- package/dist/bubbles/service-bubble/confluence/confluence.schema.d.ts +24 -24
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +56 -56
- package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +158 -158
- package/dist/bubbles/service-bubble/eleven-labs.d.ts +32 -32
- package/dist/bubbles/service-bubble/firecrawl.d.ts +982 -982
- package/dist/bubbles/service-bubble/followupboss.d.ts +192 -192
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +72 -72
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.schema.d.ts +108 -108
- package/dist/bubbles/service-bubble/github.d.ts +174 -174
- package/dist/bubbles/service-bubble/gmail.d.ts +533 -533
- package/dist/bubbles/service-bubble/google-calendar.d.ts +134 -134
- package/dist/bubbles/service-bubble/google-drive.d.ts +66 -66
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +52 -52
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts +48 -48
- package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
- package/dist/bubbles/service-bubble/http.d.ts +16 -16
- package/dist/bubbles/service-bubble/hubspot/hubspot.d.ts +13 -13
- package/dist/bubbles/service-bubble/hubspot/hubspot.schema.d.ts +8 -8
- package/dist/bubbles/service-bubble/insforge-db.d.ts +8 -8
- package/dist/bubbles/service-bubble/jira/jira.d.ts +47 -47
- package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +94 -94
- package/dist/bubbles/service-bubble/linear/linear.d.ts +39 -39
- package/dist/bubbles/service-bubble/linear/linear.schema.d.ts +32 -32
- package/dist/bubbles/service-bubble/notion/notion.d.ts +1577 -1577
- package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +8 -8
- package/dist/bubbles/service-bubble/postgresql.d.ts +8 -8
- package/dist/bubbles/service-bubble/posthog/posthog.d.ts +23 -23
- package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts +26 -26
- package/dist/bubbles/service-bubble/resend.d.ts +28 -28
- package/dist/bubbles/service-bubble/sendsafely/sendsafely.d.ts +8 -8
- package/dist/bubbles/service-bubble/sendsafely/sendsafely.schema.d.ts +12 -12
- package/dist/bubbles/service-bubble/slack/slack.d.ts +412 -412
- package/dist/bubbles/service-bubble/storage.d.ts +20 -20
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts +126 -126
- package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +143 -143
- package/dist/bubbles/service-bubble/telegram.d.ts +1888 -1888
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +15 -15
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +13 -13
- package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.d.ts +5 -30
- package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.js +70 -204
- package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.js.map +1 -1
- package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.types.d.ts +4 -0
- package/dist/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.types.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/browser-tools/_shared/schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.d.ts +33 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.js +202 -39
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +16 -16
- package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +22 -22
- package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +54 -54
- package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/instagram-tool.d.ts +18 -18
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +190 -190
- package/dist/bubbles/tool-bubble/people-search-tool.d.ts +48 -48
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +26 -26
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +32 -32
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +54 -54
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +14 -14
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +10 -10
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts +18 -18
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +24 -24
- package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +4 -4
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +74 -74
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +8 -8
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +28 -28
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +84 -84
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +4 -4
- package/dist/bubbles.json +1 -1
- package/package.json +2 -2
|
@@ -37,8 +37,8 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
37
37
|
credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
|
|
38
38
|
}, "strip", import("zod").ZodTypeAny, {
|
|
39
39
|
operation: "add_to_cart";
|
|
40
|
-
quantity: number;
|
|
41
40
|
product_url: string;
|
|
41
|
+
quantity: number;
|
|
42
42
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
operation: "add_to_cart";
|
|
@@ -69,13 +69,13 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
69
69
|
max_results: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
70
70
|
credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
|
|
71
71
|
}, "strip", import("zod").ZodTypeAny, {
|
|
72
|
-
operation: "search";
|
|
73
72
|
query: string;
|
|
73
|
+
operation: "search";
|
|
74
74
|
max_results: number;
|
|
75
75
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
76
76
|
}, {
|
|
77
|
-
operation: "search";
|
|
78
77
|
query: string;
|
|
78
|
+
operation: "search";
|
|
79
79
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
80
80
|
max_results?: number | undefined;
|
|
81
81
|
}>, import("zod").ZodObject<{
|
|
@@ -113,15 +113,15 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
113
113
|
cart_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
114
114
|
error: import("zod").ZodString;
|
|
115
115
|
}, "strip", import("zod").ZodTypeAny, {
|
|
116
|
-
operation: "add_to_cart";
|
|
117
116
|
success: boolean;
|
|
118
117
|
error: string;
|
|
118
|
+
operation: "add_to_cart";
|
|
119
119
|
message?: string | undefined;
|
|
120
120
|
cart_count?: number | undefined;
|
|
121
121
|
}, {
|
|
122
|
-
operation: "add_to_cart";
|
|
123
122
|
success: boolean;
|
|
124
123
|
error: string;
|
|
124
|
+
operation: "add_to_cart";
|
|
125
125
|
message?: string | undefined;
|
|
126
126
|
cart_count?: number | undefined;
|
|
127
127
|
}>, import("zod").ZodObject<{
|
|
@@ -154,9 +154,9 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
154
154
|
screenshot_url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
155
155
|
error: import("zod").ZodString;
|
|
156
156
|
}, "strip", import("zod").ZodTypeAny, {
|
|
157
|
-
operation: "get_cart";
|
|
158
157
|
success: boolean;
|
|
159
158
|
error: string;
|
|
159
|
+
operation: "get_cart";
|
|
160
160
|
items?: {
|
|
161
161
|
title: string;
|
|
162
162
|
price: string;
|
|
@@ -169,9 +169,9 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
169
169
|
total_items?: number | undefined;
|
|
170
170
|
screenshot_url?: string | undefined;
|
|
171
171
|
}, {
|
|
172
|
-
operation: "get_cart";
|
|
173
172
|
success: boolean;
|
|
174
173
|
error: string;
|
|
174
|
+
operation: "get_cart";
|
|
175
175
|
items?: {
|
|
176
176
|
title: string;
|
|
177
177
|
price: string;
|
|
@@ -210,9 +210,9 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
210
210
|
screenshot_url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
211
211
|
error: import("zod").ZodString;
|
|
212
212
|
}, "strip", import("zod").ZodTypeAny, {
|
|
213
|
-
operation: "checkout";
|
|
214
213
|
success: boolean;
|
|
215
214
|
error: string;
|
|
215
|
+
operation: "checkout";
|
|
216
216
|
items?: {
|
|
217
217
|
title: string;
|
|
218
218
|
price?: string | undefined;
|
|
@@ -228,9 +228,9 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
228
228
|
shipping_address?: string | undefined;
|
|
229
229
|
payment_method?: string | undefined;
|
|
230
230
|
}, {
|
|
231
|
-
operation: "checkout";
|
|
232
231
|
success: boolean;
|
|
233
232
|
error: string;
|
|
233
|
+
operation: "checkout";
|
|
234
234
|
items?: {
|
|
235
235
|
title: string;
|
|
236
236
|
price?: string | undefined;
|
|
@@ -279,9 +279,9 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
279
279
|
total_results: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
280
280
|
error: import("zod").ZodString;
|
|
281
281
|
}, "strip", import("zod").ZodTypeAny, {
|
|
282
|
-
operation: "search";
|
|
283
282
|
success: boolean;
|
|
284
283
|
error: string;
|
|
284
|
+
operation: "search";
|
|
285
285
|
results?: {
|
|
286
286
|
title: string;
|
|
287
287
|
url: string;
|
|
@@ -294,9 +294,9 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
294
294
|
}[] | undefined;
|
|
295
295
|
total_results?: number | undefined;
|
|
296
296
|
}, {
|
|
297
|
-
operation: "search";
|
|
298
297
|
success: boolean;
|
|
299
298
|
error: string;
|
|
299
|
+
operation: "search";
|
|
300
300
|
results?: {
|
|
301
301
|
title: string;
|
|
302
302
|
url: string;
|
|
@@ -347,9 +347,9 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
347
347
|
}>>;
|
|
348
348
|
error: import("zod").ZodString;
|
|
349
349
|
}, "strip", import("zod").ZodTypeAny, {
|
|
350
|
-
operation: "get_product";
|
|
351
350
|
success: boolean;
|
|
352
351
|
error: string;
|
|
352
|
+
operation: "get_product";
|
|
353
353
|
product?: {
|
|
354
354
|
title: string;
|
|
355
355
|
url: string;
|
|
@@ -363,9 +363,9 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
363
363
|
availability?: string | undefined;
|
|
364
364
|
} | undefined;
|
|
365
365
|
}, {
|
|
366
|
-
operation: "get_product";
|
|
367
366
|
success: boolean;
|
|
368
367
|
error: string;
|
|
368
|
+
operation: "get_product";
|
|
369
369
|
product?: {
|
|
370
370
|
title: string;
|
|
371
371
|
url: string;
|
|
@@ -384,14 +384,14 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
384
384
|
screenshot_url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
385
385
|
error: import("zod").ZodString;
|
|
386
386
|
}, "strip", import("zod").ZodTypeAny, {
|
|
387
|
-
operation: "screenshot";
|
|
388
387
|
success: boolean;
|
|
389
388
|
error: string;
|
|
389
|
+
operation: "screenshot";
|
|
390
390
|
screenshot_url?: string | undefined;
|
|
391
391
|
}, {
|
|
392
|
-
operation: "screenshot";
|
|
393
392
|
success: boolean;
|
|
394
393
|
error: string;
|
|
394
|
+
operation: "screenshot";
|
|
395
395
|
screenshot_url?: string | undefined;
|
|
396
396
|
}>]>;
|
|
397
397
|
static readonly shortDescription = "Amazon shopping automation - add to cart, view cart, checkout, search products";
|
|
@@ -37,8 +37,8 @@ export declare const AmazonShoppingToolParamsSchema: z.ZodDiscriminatedUnion<"op
|
|
|
37
37
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
operation: "add_to_cart";
|
|
40
|
-
quantity: number;
|
|
41
40
|
product_url: string;
|
|
41
|
+
quantity: number;
|
|
42
42
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
operation: "add_to_cart";
|
|
@@ -186,14 +186,14 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
186
186
|
cart_count: z.ZodOptional<z.ZodNumber>;
|
|
187
187
|
error: z.ZodString;
|
|
188
188
|
}, "strip", z.ZodTypeAny, {
|
|
189
|
-
error: string;
|
|
190
189
|
success: boolean;
|
|
190
|
+
error: string;
|
|
191
191
|
operation: "add_to_cart";
|
|
192
192
|
message?: string | undefined;
|
|
193
193
|
cart_count?: number | undefined;
|
|
194
194
|
}, {
|
|
195
|
-
error: string;
|
|
196
195
|
success: boolean;
|
|
196
|
+
error: string;
|
|
197
197
|
operation: "add_to_cart";
|
|
198
198
|
message?: string | undefined;
|
|
199
199
|
cart_count?: number | undefined;
|
|
@@ -227,8 +227,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
227
227
|
screenshot_url: z.ZodOptional<z.ZodString>;
|
|
228
228
|
error: z.ZodString;
|
|
229
229
|
}, "strip", z.ZodTypeAny, {
|
|
230
|
-
error: string;
|
|
231
230
|
success: boolean;
|
|
231
|
+
error: string;
|
|
232
232
|
operation: "get_cart";
|
|
233
233
|
items?: {
|
|
234
234
|
title: string;
|
|
@@ -242,8 +242,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
242
242
|
total_items?: number | undefined;
|
|
243
243
|
screenshot_url?: string | undefined;
|
|
244
244
|
}, {
|
|
245
|
-
error: string;
|
|
246
245
|
success: boolean;
|
|
246
|
+
error: string;
|
|
247
247
|
operation: "get_cart";
|
|
248
248
|
items?: {
|
|
249
249
|
title: string;
|
|
@@ -283,8 +283,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
283
283
|
screenshot_url: z.ZodOptional<z.ZodString>;
|
|
284
284
|
error: z.ZodString;
|
|
285
285
|
}, "strip", z.ZodTypeAny, {
|
|
286
|
-
error: string;
|
|
287
286
|
success: boolean;
|
|
287
|
+
error: string;
|
|
288
288
|
operation: "checkout";
|
|
289
289
|
items?: {
|
|
290
290
|
title: string;
|
|
@@ -301,8 +301,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
301
301
|
shipping_address?: string | undefined;
|
|
302
302
|
payment_method?: string | undefined;
|
|
303
303
|
}, {
|
|
304
|
-
error: string;
|
|
305
304
|
success: boolean;
|
|
305
|
+
error: string;
|
|
306
306
|
operation: "checkout";
|
|
307
307
|
items?: {
|
|
308
308
|
title: string;
|
|
@@ -352,8 +352,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
352
352
|
total_results: z.ZodOptional<z.ZodNumber>;
|
|
353
353
|
error: z.ZodString;
|
|
354
354
|
}, "strip", z.ZodTypeAny, {
|
|
355
|
-
error: string;
|
|
356
355
|
success: boolean;
|
|
356
|
+
error: string;
|
|
357
357
|
operation: "search";
|
|
358
358
|
results?: {
|
|
359
359
|
title: string;
|
|
@@ -367,8 +367,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
367
367
|
}[] | undefined;
|
|
368
368
|
total_results?: number | undefined;
|
|
369
369
|
}, {
|
|
370
|
-
error: string;
|
|
371
370
|
success: boolean;
|
|
371
|
+
error: string;
|
|
372
372
|
operation: "search";
|
|
373
373
|
results?: {
|
|
374
374
|
title: string;
|
|
@@ -420,8 +420,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
420
420
|
}>>;
|
|
421
421
|
error: z.ZodString;
|
|
422
422
|
}, "strip", z.ZodTypeAny, {
|
|
423
|
-
error: string;
|
|
424
423
|
success: boolean;
|
|
424
|
+
error: string;
|
|
425
425
|
operation: "get_product";
|
|
426
426
|
product?: {
|
|
427
427
|
title: string;
|
|
@@ -436,8 +436,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
436
436
|
availability?: string | undefined;
|
|
437
437
|
} | undefined;
|
|
438
438
|
}, {
|
|
439
|
-
error: string;
|
|
440
439
|
success: boolean;
|
|
440
|
+
error: string;
|
|
441
441
|
operation: "get_product";
|
|
442
442
|
product?: {
|
|
443
443
|
title: string;
|
|
@@ -457,13 +457,13 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
457
457
|
screenshot_url: z.ZodOptional<z.ZodString>;
|
|
458
458
|
error: z.ZodString;
|
|
459
459
|
}, "strip", z.ZodTypeAny, {
|
|
460
|
-
error: string;
|
|
461
460
|
success: boolean;
|
|
461
|
+
error: string;
|
|
462
462
|
operation: "screenshot";
|
|
463
463
|
screenshot_url?: string | undefined;
|
|
464
464
|
}, {
|
|
465
|
-
error: string;
|
|
466
465
|
success: boolean;
|
|
466
|
+
error: string;
|
|
467
467
|
operation: "screenshot";
|
|
468
468
|
screenshot_url?: string | undefined;
|
|
469
469
|
}>]>;
|
|
@@ -3,8 +3,9 @@ import type { AIBrowserAction, AIBrowserAgentConfig } from './ai-browser-agent.t
|
|
|
3
3
|
/**
|
|
4
4
|
* AI Browser Agent for error recovery and data extraction.
|
|
5
5
|
*
|
|
6
|
-
* Uses
|
|
7
|
-
*
|
|
6
|
+
* Uses vision AI to analyze screenshots and suggest recovery actions
|
|
7
|
+
* or extract structured data. No DOM inspection needed — the AI
|
|
8
|
+
* looks at the screenshot and decides coordinates directly.
|
|
8
9
|
*/
|
|
9
10
|
export declare class AIBrowserAgent {
|
|
10
11
|
private sessionId;
|
|
@@ -13,51 +14,25 @@ export declare class AIBrowserAgent {
|
|
|
13
14
|
constructor(config: AIBrowserAgentConfig);
|
|
14
15
|
/**
|
|
15
16
|
* Suggest a recovery action for a failed step.
|
|
16
|
-
*
|
|
17
|
-
* @param task - Description of what the step was trying to accomplish
|
|
18
|
-
* @param error - The error message from the failed step
|
|
19
|
-
* @returns The suggested recovery action
|
|
17
|
+
* Takes a screenshot and lets the AI decide what to do.
|
|
20
18
|
*/
|
|
21
19
|
suggestRecoveryAction(task: string, error: string): Promise<AIBrowserAction>;
|
|
22
20
|
/**
|
|
23
21
|
* Extract structured data from the page using AI vision.
|
|
24
|
-
*
|
|
25
|
-
* @param schema - Zod schema defining the expected data structure
|
|
26
|
-
* @param task - Description of what data to extract
|
|
27
|
-
* @returns The extracted data matching the schema, or null if extraction fails
|
|
28
22
|
*/
|
|
29
23
|
extractData<T>(schema: z.ZodType<T>, task: string): Promise<T | null>;
|
|
30
24
|
/**
|
|
31
25
|
* Execute the suggested recovery action on the page.
|
|
32
|
-
*
|
|
33
|
-
* @param action - The action to execute
|
|
34
|
-
* @returns true if the action was executed successfully
|
|
35
26
|
*/
|
|
36
27
|
executeAction(action: AIBrowserAction): Promise<boolean>;
|
|
37
|
-
/**
|
|
38
|
-
* Capture a screenshot from the current browser session.
|
|
39
|
-
*/
|
|
40
28
|
private captureScreenshot;
|
|
41
|
-
/**
|
|
42
|
-
* Get the current page URL.
|
|
43
|
-
*/
|
|
44
29
|
private getCurrentUrl;
|
|
45
|
-
/**
|
|
46
|
-
* Extract interactive elements from the page.
|
|
47
|
-
*/
|
|
48
|
-
private extractInteractiveElements;
|
|
49
|
-
/**
|
|
50
|
-
* Call the AI agent with a message and optional screenshot.
|
|
51
|
-
*/
|
|
52
30
|
private callAI;
|
|
53
|
-
/**
|
|
54
|
-
* Build the prompt for recovery action suggestion.
|
|
55
|
-
*/
|
|
56
|
-
private buildRecoveryPrompt;
|
|
57
31
|
/**
|
|
58
32
|
* Parse the AI response into a typed action.
|
|
59
33
|
*/
|
|
60
34
|
private parseRecoveryAction;
|
|
35
|
+
private hasValidCoordinates;
|
|
61
36
|
/**
|
|
62
37
|
* Generate a human-readable description of a Zod schema.
|
|
63
38
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-browser-agent.d.ts","sourceRoot":"","sources":["../../../../../../src/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAK7B,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ai-browser-agent.d.ts","sourceRoot":"","sources":["../../../../../../src/bubbles/tool-bubble/browser-tools/_shared/ai/ai-browser-agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAK7B,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AAmDrC;;;;;;GAMG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,OAAO,CAAC,CAAgB;IAChC,OAAO,CAAC,WAAW,CAAC,CAAyB;gBAEjC,MAAM,EAAE,oBAAoB;IAMxC;;;OAGG;IACG,qBAAqB,CACzB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,eAAe,CAAC;IAsC3B;;OAEG;IACG,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IA2C3E;;OAEG;IACG,aAAa,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC;YA4EhD,iBAAiB;YAejB,aAAa;YAWb,MAAM;IA4CpB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAuE3B,OAAO,CAAC,mBAAmB;IAW3B;;OAEG;IACH,OAAO,CAAC,iBAAiB;CA4B1B"}
|