@bubblelab/bubble-core 0.1.278 → 0.1.280
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 +178 -157
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +3 -0
- package/dist/bubble-factory.js.map +1 -1
- package/dist/bubble-trigger/index.d.ts +2 -0
- package/dist/bubble-trigger/index.d.ts.map +1 -0
- package/dist/bubble-trigger/index.js +2 -0
- package/dist/bubble-trigger/index.js.map +1 -0
- package/dist/bubble-trigger/types.d.ts +87 -0
- package/dist/bubble-trigger/types.d.ts.map +1 -0
- package/dist/bubble-trigger/types.js +14 -0
- package/dist/bubble-trigger/types.js.map +1 -0
- package/dist/bubbles/service-bubble/agi-inc.d.ts +20 -20
- package/dist/bubbles/service-bubble/ai-agent.d.ts +74 -74
- package/dist/bubbles/service-bubble/airtable.d.ts +76 -76
- package/dist/bubbles/service-bubble/apify/actors/app-rankings-scraper.d.ts +6 -6
- package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +2 -2
- package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +8 -8
- 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 +22 -22
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-detail.d.ts +38 -38
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +52 -52
- package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +6 -6
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +12 -12
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +12 -12
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +132 -132
- package/dist/bubbles/service-bubble/apify/apify.d.ts +18 -18
- package/dist/bubbles/service-bubble/asana/asana.d.ts +1 -1
- package/dist/bubbles/service-bubble/asana/asana.schema.d.ts +1 -1
- package/dist/bubbles/service-bubble/ashby/ashby.d.ts +20 -20
- package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +28 -28
- package/dist/bubbles/service-bubble/assembled/assembled.d.ts +8 -8
- package/dist/bubbles/service-bubble/assembled/assembled.schema.d.ts +8 -8
- package/dist/bubbles/service-bubble/attio/attio.d.ts +6 -6
- package/dist/bubbles/service-bubble/attio/attio.schema.d.ts +6 -6
- package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +1 -1
- package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +1 -1
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +10 -10
- package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +24 -24
- package/dist/bubbles/service-bubble/discord/discord.d.ts +12 -12
- package/dist/bubbles/service-bubble/discord/discord.schema.d.ts +12 -12
- package/dist/bubbles/service-bubble/firecrawl.d.ts +330 -330
- package/dist/bubbles/service-bubble/followupboss.d.ts +4 -4
- package/dist/bubbles/service-bubble/github.d.ts +60 -60
- package/dist/bubbles/service-bubble/gmail.d.ts +164 -164
- package/dist/bubbles/service-bubble/google-calendar.d.ts +6 -6
- package/dist/bubbles/service-bubble/google-drive.d.ts +4 -4
- package/dist/bubbles/service-bubble/google-sheets.d.ts +1811 -0
- package/dist/bubbles/service-bubble/google-sheets.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets.js +904 -0
- package/dist/bubbles/service-bubble/google-sheets.js.map +1 -0
- package/dist/bubbles/service-bubble/http.d.ts +6 -6
- package/dist/bubbles/service-bubble/hubspot/hubspot.d.ts +2 -2
- package/dist/bubbles/service-bubble/hubspot/hubspot.schema.d.ts +2 -2
- package/dist/bubbles/service-bubble/insforge-db.d.ts +8 -8
- package/dist/bubbles/service-bubble/jira/jira.d.ts +30 -30
- package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +36 -36
- package/dist/bubbles/service-bubble/looker/index.d.ts +3 -0
- package/dist/bubbles/service-bubble/looker/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/looker/index.js +3 -0
- package/dist/bubbles/service-bubble/looker/index.js.map +1 -0
- package/dist/bubbles/service-bubble/looker/looker.d.ts +768 -0
- package/dist/bubbles/service-bubble/looker/looker.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/looker/looker.js +319 -0
- package/dist/bubbles/service-bubble/looker/looker.js.map +1 -0
- package/dist/bubbles/service-bubble/looker/looker.schema.d.ts +735 -0
- package/dist/bubbles/service-bubble/looker/looker.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/looker/looker.schema.js +264 -0
- package/dist/bubbles/service-bubble/looker/looker.schema.js.map +1 -0
- package/dist/bubbles/service-bubble/metabase/index.d.ts +4 -0
- package/dist/bubbles/service-bubble/metabase/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/metabase/index.js +4 -0
- package/dist/bubbles/service-bubble/metabase/index.js.map +1 -0
- package/dist/bubbles/service-bubble/metabase/metabase.d.ts +746 -0
- package/dist/bubbles/service-bubble/metabase/metabase.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/metabase/metabase.js +221 -0
- package/dist/bubbles/service-bubble/metabase/metabase.js.map +1 -0
- package/dist/bubbles/service-bubble/metabase/metabase.schema.d.ts +1125 -0
- package/dist/bubbles/service-bubble/metabase/metabase.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/metabase/metabase.schema.js +222 -0
- package/dist/bubbles/service-bubble/metabase/metabase.schema.js.map +1 -0
- package/dist/bubbles/service-bubble/metabase/metabase.utils.d.ts +15 -0
- package/dist/bubbles/service-bubble/metabase/metabase.utils.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/metabase/metabase.utils.js +32 -0
- package/dist/bubbles/service-bubble/metabase/metabase.utils.js.map +1 -0
- package/dist/bubbles/service-bubble/notion/notion.d.ts +168 -168
- package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +16 -16
- package/dist/bubbles/service-bubble/postgresql.d.ts +8 -8
- package/dist/bubbles/service-bubble/posthog/posthog.d.ts +10 -10
- package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts +14 -14
- package/dist/bubbles/service-bubble/pylon/index.d.ts +3 -0
- package/dist/bubbles/service-bubble/pylon/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/pylon/index.js +3 -0
- package/dist/bubbles/service-bubble/pylon/index.js.map +1 -0
- package/dist/bubbles/service-bubble/pylon/pylon.d.ts +435 -0
- package/dist/bubbles/service-bubble/pylon/pylon.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/pylon/pylon.js +375 -0
- package/dist/bubbles/service-bubble/pylon/pylon.js.map +1 -0
- package/dist/bubbles/service-bubble/pylon/pylon.schema.d.ts +408 -0
- package/dist/bubbles/service-bubble/pylon/pylon.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/pylon/pylon.schema.js +249 -0
- package/dist/bubbles/service-bubble/pylon/pylon.schema.js.map +1 -0
- package/dist/bubbles/service-bubble/resend.d.ts +12 -12
- package/dist/bubbles/service-bubble/slack/slack.d.ts +392 -392
- package/dist/bubbles/service-bubble/slack.d.ts +5869 -0
- package/dist/bubbles/service-bubble/slack.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/slack.js +1536 -0
- package/dist/bubbles/service-bubble/slack.js.map +1 -0
- package/dist/bubbles/service-bubble/snowflake/snowflake.d.ts +4 -4
- package/dist/bubbles/service-bubble/snowflake/snowflake.schema.d.ts +4 -4
- package/dist/bubbles/service-bubble/sortly/sortly.d.ts +36 -36
- package/dist/bubbles/service-bubble/sortly/sortly.schema.d.ts +40 -40
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts +24 -24
- package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +28 -28
- package/dist/bubbles/service-bubble/xero/xero.d.ts +2 -2
- package/dist/bubbles/service-bubble/xero/xero.schema.d.ts +2 -2
- package/dist/bubbles/service-bubble/zendesk/zendesk.d.ts +20 -20
- package/dist/bubbles/service-bubble/zendesk/zendesk.schema.d.ts +20 -20
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +6 -6
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +8 -8
- package/dist/bubbles/tool-bubble/app-rankings-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +20 -20
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.d.ts +3 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.js +3 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.js.map +1 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts +160 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.js +706 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.d.ts +93 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.js +50 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.js.map +1 -0
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +384 -384
- package/dist/bubbles/tool-bubble/people-search-tool.d.ts +44 -44
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +10 -10
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +60 -60
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +134 -134
- package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts +20 -20
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +114 -0
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +1 -0
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +777 -0
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +1 -0
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +12 -12
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +24 -24
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +2 -2
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +34 -34
- package/dist/bubbles.json +510 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/types/ai-models.d.ts +4 -0
- package/dist/types/ai-models.d.ts.map +1 -0
- package/dist/types/ai-models.js +16 -0
- package/dist/types/ai-models.js.map +1 -0
- package/dist/utils/param-helper.d.ts +2 -0
- package/dist/utils/param-helper.d.ts.map +1 -0
- package/dist/utils/param-helper.js +5 -0
- package/dist/utils/param-helper.js.map +1 -0
- package/package.json +2 -2
|
@@ -17,12 +17,12 @@ declare const YouTubeVideoSchema: z.ZodObject<{
|
|
|
17
17
|
comments: z.ZodNullable<z.ZodNumber>;
|
|
18
18
|
thumbnail: z.ZodNullable<z.ZodString>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
duration: string | null;
|
|
21
20
|
description: string | null;
|
|
22
21
|
title: string | null;
|
|
23
22
|
date: string | null;
|
|
24
|
-
id: string | null;
|
|
25
23
|
url: string | null;
|
|
24
|
+
duration: string | null;
|
|
25
|
+
id: string | null;
|
|
26
26
|
thumbnail: string | null;
|
|
27
27
|
comments: number | null;
|
|
28
28
|
viewCount: number | null;
|
|
@@ -31,12 +31,12 @@ declare const YouTubeVideoSchema: z.ZodObject<{
|
|
|
31
31
|
channelUrl: string | null;
|
|
32
32
|
subscribers: number | null;
|
|
33
33
|
}, {
|
|
34
|
-
duration: string | null;
|
|
35
34
|
description: string | null;
|
|
36
35
|
title: string | null;
|
|
37
36
|
date: string | null;
|
|
38
|
-
id: string | null;
|
|
39
37
|
url: string | null;
|
|
38
|
+
duration: string | null;
|
|
39
|
+
id: string | null;
|
|
40
40
|
thumbnail: string | null;
|
|
41
41
|
comments: number | null;
|
|
42
42
|
viewCount: number | null;
|
|
@@ -103,12 +103,12 @@ declare const YouTubeToolResultSchema: z.ZodObject<{
|
|
|
103
103
|
comments: z.ZodNullable<z.ZodNumber>;
|
|
104
104
|
thumbnail: z.ZodNullable<z.ZodString>;
|
|
105
105
|
}, "strip", z.ZodTypeAny, {
|
|
106
|
-
duration: string | null;
|
|
107
106
|
description: string | null;
|
|
108
107
|
title: string | null;
|
|
109
108
|
date: string | null;
|
|
110
|
-
id: string | null;
|
|
111
109
|
url: string | null;
|
|
110
|
+
duration: string | null;
|
|
111
|
+
id: string | null;
|
|
112
112
|
thumbnail: string | null;
|
|
113
113
|
comments: number | null;
|
|
114
114
|
viewCount: number | null;
|
|
@@ -117,12 +117,12 @@ declare const YouTubeToolResultSchema: z.ZodObject<{
|
|
|
117
117
|
channelUrl: string | null;
|
|
118
118
|
subscribers: number | null;
|
|
119
119
|
}, {
|
|
120
|
-
duration: string | null;
|
|
121
120
|
description: string | null;
|
|
122
121
|
title: string | null;
|
|
123
122
|
date: string | null;
|
|
124
|
-
id: string | null;
|
|
125
123
|
url: string | null;
|
|
124
|
+
duration: string | null;
|
|
125
|
+
id: string | null;
|
|
126
126
|
thumbnail: string | null;
|
|
127
127
|
comments: number | null;
|
|
128
128
|
viewCount: number | null;
|
|
@@ -154,12 +154,12 @@ declare const YouTubeToolResultSchema: z.ZodObject<{
|
|
|
154
154
|
operation: "searchVideos" | "getTranscript" | "scrapeChannel";
|
|
155
155
|
totalResults: number;
|
|
156
156
|
videos?: {
|
|
157
|
-
duration: string | null;
|
|
158
157
|
description: string | null;
|
|
159
158
|
title: string | null;
|
|
160
159
|
date: string | null;
|
|
161
|
-
id: string | null;
|
|
162
160
|
url: string | null;
|
|
161
|
+
duration: string | null;
|
|
162
|
+
id: string | null;
|
|
163
163
|
thumbnail: string | null;
|
|
164
164
|
comments: number | null;
|
|
165
165
|
viewCount: number | null;
|
|
@@ -180,12 +180,12 @@ declare const YouTubeToolResultSchema: z.ZodObject<{
|
|
|
180
180
|
operation: "searchVideos" | "getTranscript" | "scrapeChannel";
|
|
181
181
|
totalResults: number;
|
|
182
182
|
videos?: {
|
|
183
|
-
duration: string | null;
|
|
184
183
|
description: string | null;
|
|
185
184
|
title: string | null;
|
|
186
185
|
date: string | null;
|
|
187
|
-
id: string | null;
|
|
188
186
|
url: string | null;
|
|
187
|
+
duration: string | null;
|
|
188
|
+
id: string | null;
|
|
189
189
|
thumbnail: string | null;
|
|
190
190
|
comments: number | null;
|
|
191
191
|
viewCount: number | null;
|
|
@@ -261,12 +261,12 @@ export declare class YouTubeTool extends ToolBubble<YouTubeToolParams, YouTubeTo
|
|
|
261
261
|
comments: z.ZodNullable<z.ZodNumber>;
|
|
262
262
|
thumbnail: z.ZodNullable<z.ZodString>;
|
|
263
263
|
}, "strip", z.ZodTypeAny, {
|
|
264
|
-
duration: string | null;
|
|
265
264
|
description: string | null;
|
|
266
265
|
title: string | null;
|
|
267
266
|
date: string | null;
|
|
268
|
-
id: string | null;
|
|
269
267
|
url: string | null;
|
|
268
|
+
duration: string | null;
|
|
269
|
+
id: string | null;
|
|
270
270
|
thumbnail: string | null;
|
|
271
271
|
comments: number | null;
|
|
272
272
|
viewCount: number | null;
|
|
@@ -275,12 +275,12 @@ export declare class YouTubeTool extends ToolBubble<YouTubeToolParams, YouTubeTo
|
|
|
275
275
|
channelUrl: string | null;
|
|
276
276
|
subscribers: number | null;
|
|
277
277
|
}, {
|
|
278
|
-
duration: string | null;
|
|
279
278
|
description: string | null;
|
|
280
279
|
title: string | null;
|
|
281
280
|
date: string | null;
|
|
282
|
-
id: string | null;
|
|
283
281
|
url: string | null;
|
|
282
|
+
duration: string | null;
|
|
283
|
+
id: string | null;
|
|
284
284
|
thumbnail: string | null;
|
|
285
285
|
comments: number | null;
|
|
286
286
|
viewCount: number | null;
|
|
@@ -312,12 +312,12 @@ export declare class YouTubeTool extends ToolBubble<YouTubeToolParams, YouTubeTo
|
|
|
312
312
|
operation: "searchVideos" | "getTranscript" | "scrapeChannel";
|
|
313
313
|
totalResults: number;
|
|
314
314
|
videos?: {
|
|
315
|
-
duration: string | null;
|
|
316
315
|
description: string | null;
|
|
317
316
|
title: string | null;
|
|
318
317
|
date: string | null;
|
|
319
|
-
id: string | null;
|
|
320
318
|
url: string | null;
|
|
319
|
+
duration: string | null;
|
|
320
|
+
id: string | null;
|
|
321
321
|
thumbnail: string | null;
|
|
322
322
|
comments: number | null;
|
|
323
323
|
viewCount: number | null;
|
|
@@ -338,12 +338,12 @@ export declare class YouTubeTool extends ToolBubble<YouTubeToolParams, YouTubeTo
|
|
|
338
338
|
operation: "searchVideos" | "getTranscript" | "scrapeChannel";
|
|
339
339
|
totalResults: number;
|
|
340
340
|
videos?: {
|
|
341
|
-
duration: string | null;
|
|
342
341
|
description: string | null;
|
|
343
342
|
title: string | null;
|
|
344
343
|
date: string | null;
|
|
345
|
-
id: string | null;
|
|
346
344
|
url: string | null;
|
|
345
|
+
duration: string | null;
|
|
346
|
+
id: string | null;
|
|
347
347
|
thumbnail: string | null;
|
|
348
348
|
comments: number | null;
|
|
349
349
|
viewCount: number | null;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SIMPLE BUBBLEFLOW GENERATOR WORKFLOW
|
|
3
|
+
*
|
|
4
|
+
* A simplified BubbleFlow generator that uses AI agent with tools to generate
|
|
5
|
+
* and validate BubbleFlow code from natural language prompts.
|
|
6
|
+
*
|
|
7
|
+
* Much simpler than the complex workflow - just AI + validation tool!
|
|
8
|
+
*/
|
|
9
|
+
import { z } from 'zod';
|
|
10
|
+
import { WorkflowBubble } from '../../types/workflow-bubble-class.js';
|
|
11
|
+
import type { BubbleContext } from '../../types/bubble.js';
|
|
12
|
+
import { CredentialType } from '@bubblelab/shared-schemas';
|
|
13
|
+
import { type StreamingCallback } from '../service-bubble/ai-agent.js';
|
|
14
|
+
/**
|
|
15
|
+
* Parameters schema for the simple BubbleFlow generator
|
|
16
|
+
*/
|
|
17
|
+
declare const BubbleFlowGeneratorParamsSchema: z.ZodObject<{
|
|
18
|
+
prompt: z.ZodString;
|
|
19
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
prompt: string;
|
|
22
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
prompt: string;
|
|
25
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
/**
|
|
28
|
+
* Result schema
|
|
29
|
+
*/
|
|
30
|
+
declare const BubbleFlowGeneratorResultSchema: z.ZodObject<{
|
|
31
|
+
generatedCode: z.ZodString;
|
|
32
|
+
isValid: z.ZodBoolean;
|
|
33
|
+
success: z.ZodBoolean;
|
|
34
|
+
error: z.ZodString;
|
|
35
|
+
toolCalls: z.ZodArray<z.ZodAny, "many">;
|
|
36
|
+
summary: z.ZodDefault<z.ZodString>;
|
|
37
|
+
inputsSchema: z.ZodDefault<z.ZodString>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
success: boolean;
|
|
40
|
+
error: string;
|
|
41
|
+
toolCalls: any[];
|
|
42
|
+
summary: string;
|
|
43
|
+
generatedCode: string;
|
|
44
|
+
isValid: boolean;
|
|
45
|
+
inputsSchema: string;
|
|
46
|
+
}, {
|
|
47
|
+
success: boolean;
|
|
48
|
+
error: string;
|
|
49
|
+
toolCalls: any[];
|
|
50
|
+
generatedCode: string;
|
|
51
|
+
isValid: boolean;
|
|
52
|
+
summary?: string | undefined;
|
|
53
|
+
inputsSchema?: string | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
type BubbleFlowGeneratorParams = z.output<typeof BubbleFlowGeneratorParamsSchema>;
|
|
56
|
+
type BubbleFlowGeneratorResult = z.output<typeof BubbleFlowGeneratorResultSchema>;
|
|
57
|
+
/**
|
|
58
|
+
* Simple BubbleFlow Generator using AI agent with tools
|
|
59
|
+
*/
|
|
60
|
+
export declare class BubbleFlowGeneratorWorkflow extends WorkflowBubble<BubbleFlowGeneratorParams, BubbleFlowGeneratorResult> {
|
|
61
|
+
static readonly type: "workflow";
|
|
62
|
+
static readonly bubbleName = "bubbleflow-generator";
|
|
63
|
+
static readonly schema: z.ZodObject<{
|
|
64
|
+
prompt: z.ZodString;
|
|
65
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
prompt: string;
|
|
68
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
prompt: string;
|
|
71
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
72
|
+
}>;
|
|
73
|
+
static readonly resultSchema: z.ZodObject<{
|
|
74
|
+
generatedCode: z.ZodString;
|
|
75
|
+
isValid: z.ZodBoolean;
|
|
76
|
+
success: z.ZodBoolean;
|
|
77
|
+
error: z.ZodString;
|
|
78
|
+
toolCalls: z.ZodArray<z.ZodAny, "many">;
|
|
79
|
+
summary: z.ZodDefault<z.ZodString>;
|
|
80
|
+
inputsSchema: z.ZodDefault<z.ZodString>;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
success: boolean;
|
|
83
|
+
error: string;
|
|
84
|
+
toolCalls: any[];
|
|
85
|
+
summary: string;
|
|
86
|
+
generatedCode: string;
|
|
87
|
+
isValid: boolean;
|
|
88
|
+
inputsSchema: string;
|
|
89
|
+
}, {
|
|
90
|
+
success: boolean;
|
|
91
|
+
error: string;
|
|
92
|
+
toolCalls: any[];
|
|
93
|
+
generatedCode: string;
|
|
94
|
+
isValid: boolean;
|
|
95
|
+
summary?: string | undefined;
|
|
96
|
+
inputsSchema?: string | undefined;
|
|
97
|
+
}>;
|
|
98
|
+
static readonly shortDescription = "Generate BubbleFlow code from natural language";
|
|
99
|
+
static readonly longDescription = "\n Simple BubbleFlow generator that uses AI with validation tools.\n \n Just provide a natural language prompt describing what you want your BubbleFlow to do,\n and it will generate complete TypeScript code with proper validation.\n \n Example prompts:\n - \"Create a flow that queries my database and sends results to Slack\"\n - \"Build a workflow that processes user data with AI and stores it\"\n - \"Make a flow that analyzes text and generates a summary\"\n ";
|
|
100
|
+
static readonly alias = "generate-flow";
|
|
101
|
+
private bubbleFactory;
|
|
102
|
+
constructor(params: z.input<typeof BubbleFlowGeneratorParamsSchema>, context?: BubbleContext);
|
|
103
|
+
private runValidationAgent;
|
|
104
|
+
private runSummarizeAgent;
|
|
105
|
+
private createSystemPrompt;
|
|
106
|
+
private createStreamingSystemPrompt;
|
|
107
|
+
protected performAction(context?: BubbleContext): Promise<BubbleFlowGeneratorResult>;
|
|
108
|
+
/**
|
|
109
|
+
* Execute the workflow with streaming support for real-time code generation feedback
|
|
110
|
+
*/
|
|
111
|
+
actionWithStreaming(streamingCallback: StreamingCallback, context?: BubbleContext): Promise<BubbleFlowGeneratorResult>;
|
|
112
|
+
}
|
|
113
|
+
export {};
|
|
114
|
+
//# sourceMappingURL=bubbleflow-generator.workflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bubbleflow-generator.workflow.d.ts","sourceRoot":"","sources":["../../../src/bubbles/workflow-bubble/bubbleflow-generator.workflow.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,+BAA+B,CAAC;AAiCvC;;GAEG;AACH,QAAA,MAAM,+BAA+B;;;;;;;;;EAUnC,CAAC;AAEH;;GAEG;AACH,QAAA,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;EAgBnC,CAAC;AAEH,KAAK,yBAAyB,GAAG,CAAC,CAAC,MAAM,CACvC,OAAO,+BAA+B,CACvC,CAAC;AACF,KAAK,yBAAyB,GAAG,CAAC,CAAC,MAAM,CACvC,OAAO,+BAA+B,CACvC,CAAC;AA0DF;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,cAAc,CAC7D,yBAAyB,EACzB,yBAAyB,CAC1B;IACC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAG,UAAU,CAAU;IAC3C,MAAM,CAAC,QAAQ,CAAC,UAAU,0BAA0B;IACpD,MAAM,CAAC,QAAQ,CAAC,MAAM;;;;;;;;;OAAmC;IACzD,MAAM,CAAC,QAAQ,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;OAAmC;IAC/D,MAAM,CAAC,QAAQ,CAAC,gBAAgB,oDACmB;IACnD,MAAM,CAAC,QAAQ,CAAC,eAAe,kfAU7B;IACF,MAAM,CAAC,QAAQ,CAAC,KAAK,mBAAmB;IAExC,OAAO,CAAC,aAAa,CAAgB;gBAGnC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,EACvD,OAAO,CAAC,EAAE,aAAa;YAMX,kBAAkB;YAmHlB,iBAAiB;IAkF/B,OAAO,CAAC,kBAAkB;IAmB1B,OAAO,CAAC,2BAA2B;cAmBnB,aAAa,CAC3B,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,yBAAyB,CAAC;IAiPrC;;OAEG;IACU,mBAAmB,CAC9B,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,yBAAyB,CAAC;CAiXtC"}
|