@bubblelab/bubble-core 0.1.218 → 0.1.220
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 +100 -100
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +19 -46
- package/dist/bubble-factory.js.map +1 -1
- 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/ai-agent.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.js +23 -2
- package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
- package/dist/bubbles/service-bubble/airtable.d.ts +76 -76
- 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 +126 -126
- package/dist/bubbles/service-bubble/apify/apify.d.ts +18 -18
- package/dist/bubbles/service-bubble/ashby/ashby.d.ts +2 -2
- package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +2 -2
- package/dist/bubbles/service-bubble/assembled/assembled.d.ts +6 -6
- package/dist/bubbles/service-bubble/assembled/assembled.schema.d.ts +6 -6
- 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 +4 -4
- package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +8 -8
- package/dist/bubbles/service-bubble/firecrawl.d.ts +334 -334
- 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/http.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/notion/notion.d.ts +168 -168
- 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 +10 -10
- package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts +14 -14
- package/dist/bubbles/service-bubble/resend.d.ts +4 -4
- package/dist/bubbles/service-bubble/slack/slack-table-blocks.d.ts +1 -0
- package/dist/bubbles/service-bubble/slack/slack-table-blocks.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/slack/slack-table-blocks.js +1 -0
- package/dist/bubbles/service-bubble/slack/slack-table-blocks.js.map +1 -1
- package/dist/bubbles/service-bubble/slack/slack.d.ts +392 -392
- package/dist/bubbles/service-bubble/slack/slack.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/slack/slack.js +30 -25
- package/dist/bubbles/service-bubble/slack/slack.js.map +1 -1
- 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/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/bubbleflow-validation-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +20 -20
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +380 -380
- 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/generate-document.workflow.d.ts +12 -12
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +8 -8
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +2 -2
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +26 -26
- package/dist/bubbles.json +1 -1
- package/package.json +2 -2
|
@@ -46,8 +46,8 @@ declare const AIAgentParamsSchema: z.ZodObject<{
|
|
|
46
46
|
description: z.ZodOptional<z.ZodString>;
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
48
|
type: "base64";
|
|
49
|
-
mimeType: string;
|
|
50
49
|
data: string;
|
|
50
|
+
mimeType: string;
|
|
51
51
|
description?: string | undefined;
|
|
52
52
|
}, {
|
|
53
53
|
data: string;
|
|
@@ -164,12 +164,12 @@ declare const AIAgentParamsSchema: z.ZodObject<{
|
|
|
164
164
|
}, "strip", z.ZodTypeAny, {
|
|
165
165
|
description: string;
|
|
166
166
|
name: string;
|
|
167
|
-
schema: Record<string, unknown
|
|
167
|
+
schema: z.ZodTypeAny | Record<string, unknown>;
|
|
168
168
|
func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
|
|
169
169
|
}, {
|
|
170
170
|
description: string;
|
|
171
171
|
name: string;
|
|
172
|
-
schema: Record<string, unknown
|
|
172
|
+
schema: z.ZodTypeAny | Record<string, unknown>;
|
|
173
173
|
func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
|
|
174
174
|
}>, "many">>>;
|
|
175
175
|
maxIterations: z.ZodDefault<z.ZodNumber>;
|
|
@@ -196,6 +196,17 @@ declare const AIAgentParamsSchema: z.ZodObject<{
|
|
|
196
196
|
enableSlackHistory: z.ZodDefault<z.ZodBoolean>;
|
|
197
197
|
}, "strip", z.ZodTypeAny, {
|
|
198
198
|
message: string;
|
|
199
|
+
images: ({
|
|
200
|
+
type: "base64";
|
|
201
|
+
data: string;
|
|
202
|
+
mimeType: string;
|
|
203
|
+
description?: string | undefined;
|
|
204
|
+
} | {
|
|
205
|
+
type: "url";
|
|
206
|
+
url: string;
|
|
207
|
+
description?: string | undefined;
|
|
208
|
+
})[];
|
|
209
|
+
systemPrompt: string;
|
|
199
210
|
model: {
|
|
200
211
|
model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-6" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-sonnet-4.6" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/anthropic/claude-opus-4.6" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
|
|
201
212
|
temperature: number;
|
|
@@ -212,38 +223,27 @@ declare const AIAgentParamsSchema: z.ZodObject<{
|
|
|
212
223
|
maxRetries?: number | undefined;
|
|
213
224
|
} | undefined;
|
|
214
225
|
};
|
|
215
|
-
streaming: boolean;
|
|
216
226
|
tools: {
|
|
217
227
|
name: "get-bubble-details-tool" | "get-trigger-detail-tool" | "list-bubbles-tool" | "list-capabilities-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool" | "people-search-tool";
|
|
218
228
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
219
229
|
config?: Record<string, unknown> | undefined;
|
|
220
230
|
}[];
|
|
221
|
-
images: ({
|
|
222
|
-
type: "base64";
|
|
223
|
-
mimeType: string;
|
|
224
|
-
data: string;
|
|
225
|
-
description?: string | undefined;
|
|
226
|
-
} | {
|
|
227
|
-
type: "url";
|
|
228
|
-
url: string;
|
|
229
|
-
description?: string | undefined;
|
|
230
|
-
})[];
|
|
231
|
-
systemPrompt: string;
|
|
232
231
|
maxIterations: number;
|
|
232
|
+
streaming: boolean;
|
|
233
233
|
memoryEnabled: boolean;
|
|
234
234
|
enableSlackHistory: boolean;
|
|
235
235
|
name?: string | undefined;
|
|
236
|
-
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
237
236
|
conversationHistory?: {
|
|
238
237
|
role: "user" | "assistant" | "tool";
|
|
239
238
|
content: string;
|
|
240
239
|
toolCallId?: string | undefined;
|
|
241
240
|
name?: string | undefined;
|
|
242
241
|
}[] | undefined;
|
|
242
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
243
243
|
customTools?: {
|
|
244
244
|
description: string;
|
|
245
245
|
name: string;
|
|
246
|
-
schema: Record<string, unknown
|
|
246
|
+
schema: z.ZodTypeAny | Record<string, unknown>;
|
|
247
247
|
func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
|
|
248
248
|
}[] | undefined;
|
|
249
249
|
capabilities?: {
|
|
@@ -256,7 +256,23 @@ declare const AIAgentParamsSchema: z.ZodObject<{
|
|
|
256
256
|
}, {
|
|
257
257
|
message: string;
|
|
258
258
|
name?: string | undefined;
|
|
259
|
-
|
|
259
|
+
images?: ({
|
|
260
|
+
data: string;
|
|
261
|
+
type?: "base64" | undefined;
|
|
262
|
+
description?: string | undefined;
|
|
263
|
+
mimeType?: string | undefined;
|
|
264
|
+
} | {
|
|
265
|
+
type: "url";
|
|
266
|
+
url: string;
|
|
267
|
+
description?: string | undefined;
|
|
268
|
+
})[] | undefined;
|
|
269
|
+
conversationHistory?: {
|
|
270
|
+
role: "user" | "assistant" | "tool";
|
|
271
|
+
content: string;
|
|
272
|
+
toolCallId?: string | undefined;
|
|
273
|
+
name?: string | undefined;
|
|
274
|
+
}[] | undefined;
|
|
275
|
+
systemPrompt?: string | undefined;
|
|
260
276
|
model?: {
|
|
261
277
|
model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-6" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-sonnet-4.6" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/anthropic/claude-opus-4.6" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
|
|
262
278
|
temperature?: number | undefined;
|
|
@@ -273,36 +289,20 @@ declare const AIAgentParamsSchema: z.ZodObject<{
|
|
|
273
289
|
maxRetries?: number | undefined;
|
|
274
290
|
} | undefined;
|
|
275
291
|
} | undefined;
|
|
276
|
-
|
|
292
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
277
293
|
tools?: {
|
|
278
294
|
name: "get-bubble-details-tool" | "get-trigger-detail-tool" | "list-bubbles-tool" | "list-capabilities-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool" | "people-search-tool";
|
|
279
295
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
280
296
|
config?: Record<string, unknown> | undefined;
|
|
281
297
|
}[] | undefined;
|
|
282
|
-
images?: ({
|
|
283
|
-
data: string;
|
|
284
|
-
type?: "base64" | undefined;
|
|
285
|
-
description?: string | undefined;
|
|
286
|
-
mimeType?: string | undefined;
|
|
287
|
-
} | {
|
|
288
|
-
type: "url";
|
|
289
|
-
url: string;
|
|
290
|
-
description?: string | undefined;
|
|
291
|
-
})[] | undefined;
|
|
292
|
-
conversationHistory?: {
|
|
293
|
-
role: "user" | "assistant" | "tool";
|
|
294
|
-
content: string;
|
|
295
|
-
toolCallId?: string | undefined;
|
|
296
|
-
name?: string | undefined;
|
|
297
|
-
}[] | undefined;
|
|
298
|
-
systemPrompt?: string | undefined;
|
|
299
298
|
customTools?: {
|
|
300
299
|
description: string;
|
|
301
300
|
name: string;
|
|
302
|
-
schema: Record<string, unknown
|
|
301
|
+
schema: z.ZodTypeAny | Record<string, unknown>;
|
|
303
302
|
func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
|
|
304
303
|
}[] | undefined;
|
|
305
304
|
maxIterations?: number | undefined;
|
|
305
|
+
streaming?: boolean | undefined;
|
|
306
306
|
capabilities?: {
|
|
307
307
|
id: string;
|
|
308
308
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
@@ -385,8 +385,8 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
|
|
|
385
385
|
description: z.ZodOptional<z.ZodString>;
|
|
386
386
|
}, "strip", z.ZodTypeAny, {
|
|
387
387
|
type: "base64";
|
|
388
|
-
mimeType: string;
|
|
389
388
|
data: string;
|
|
389
|
+
mimeType: string;
|
|
390
390
|
description?: string | undefined;
|
|
391
391
|
}, {
|
|
392
392
|
data: string;
|
|
@@ -503,12 +503,12 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
|
|
|
503
503
|
}, "strip", z.ZodTypeAny, {
|
|
504
504
|
description: string;
|
|
505
505
|
name: string;
|
|
506
|
-
schema: Record<string, unknown
|
|
506
|
+
schema: z.ZodTypeAny | Record<string, unknown>;
|
|
507
507
|
func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
|
|
508
508
|
}, {
|
|
509
509
|
description: string;
|
|
510
510
|
name: string;
|
|
511
|
-
schema: Record<string, unknown
|
|
511
|
+
schema: z.ZodTypeAny | Record<string, unknown>;
|
|
512
512
|
func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
|
|
513
513
|
}>, "many">>>;
|
|
514
514
|
maxIterations: z.ZodDefault<z.ZodNumber>;
|
|
@@ -535,6 +535,17 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
|
|
|
535
535
|
enableSlackHistory: z.ZodDefault<z.ZodBoolean>;
|
|
536
536
|
}, "strip", z.ZodTypeAny, {
|
|
537
537
|
message: string;
|
|
538
|
+
images: ({
|
|
539
|
+
type: "base64";
|
|
540
|
+
data: string;
|
|
541
|
+
mimeType: string;
|
|
542
|
+
description?: string | undefined;
|
|
543
|
+
} | {
|
|
544
|
+
type: "url";
|
|
545
|
+
url: string;
|
|
546
|
+
description?: string | undefined;
|
|
547
|
+
})[];
|
|
548
|
+
systemPrompt: string;
|
|
538
549
|
model: {
|
|
539
550
|
model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-6" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-sonnet-4.6" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/anthropic/claude-opus-4.6" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
|
|
540
551
|
temperature: number;
|
|
@@ -551,38 +562,27 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
|
|
|
551
562
|
maxRetries?: number | undefined;
|
|
552
563
|
} | undefined;
|
|
553
564
|
};
|
|
554
|
-
streaming: boolean;
|
|
555
565
|
tools: {
|
|
556
566
|
name: "get-bubble-details-tool" | "get-trigger-detail-tool" | "list-bubbles-tool" | "list-capabilities-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool" | "people-search-tool";
|
|
557
567
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
558
568
|
config?: Record<string, unknown> | undefined;
|
|
559
569
|
}[];
|
|
560
|
-
images: ({
|
|
561
|
-
type: "base64";
|
|
562
|
-
mimeType: string;
|
|
563
|
-
data: string;
|
|
564
|
-
description?: string | undefined;
|
|
565
|
-
} | {
|
|
566
|
-
type: "url";
|
|
567
|
-
url: string;
|
|
568
|
-
description?: string | undefined;
|
|
569
|
-
})[];
|
|
570
|
-
systemPrompt: string;
|
|
571
570
|
maxIterations: number;
|
|
571
|
+
streaming: boolean;
|
|
572
572
|
memoryEnabled: boolean;
|
|
573
573
|
enableSlackHistory: boolean;
|
|
574
574
|
name?: string | undefined;
|
|
575
|
-
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
576
575
|
conversationHistory?: {
|
|
577
576
|
role: "user" | "assistant" | "tool";
|
|
578
577
|
content: string;
|
|
579
578
|
toolCallId?: string | undefined;
|
|
580
579
|
name?: string | undefined;
|
|
581
580
|
}[] | undefined;
|
|
581
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
582
582
|
customTools?: {
|
|
583
583
|
description: string;
|
|
584
584
|
name: string;
|
|
585
|
-
schema: Record<string, unknown
|
|
585
|
+
schema: z.ZodTypeAny | Record<string, unknown>;
|
|
586
586
|
func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
|
|
587
587
|
}[] | undefined;
|
|
588
588
|
capabilities?: {
|
|
@@ -595,7 +595,23 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
|
|
|
595
595
|
}, {
|
|
596
596
|
message: string;
|
|
597
597
|
name?: string | undefined;
|
|
598
|
-
|
|
598
|
+
images?: ({
|
|
599
|
+
data: string;
|
|
600
|
+
type?: "base64" | undefined;
|
|
601
|
+
description?: string | undefined;
|
|
602
|
+
mimeType?: string | undefined;
|
|
603
|
+
} | {
|
|
604
|
+
type: "url";
|
|
605
|
+
url: string;
|
|
606
|
+
description?: string | undefined;
|
|
607
|
+
})[] | undefined;
|
|
608
|
+
conversationHistory?: {
|
|
609
|
+
role: "user" | "assistant" | "tool";
|
|
610
|
+
content: string;
|
|
611
|
+
toolCallId?: string | undefined;
|
|
612
|
+
name?: string | undefined;
|
|
613
|
+
}[] | undefined;
|
|
614
|
+
systemPrompt?: string | undefined;
|
|
599
615
|
model?: {
|
|
600
616
|
model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-6" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/z-ai/glm-4.7" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/anthropic/claude-sonnet-4.6" | "openrouter/anthropic/claude-opus-4.5" | "openrouter/anthropic/claude-opus-4.6" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
|
|
601
617
|
temperature?: number | undefined;
|
|
@@ -612,36 +628,20 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
|
|
|
612
628
|
maxRetries?: number | undefined;
|
|
613
629
|
} | undefined;
|
|
614
630
|
} | undefined;
|
|
615
|
-
|
|
631
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
616
632
|
tools?: {
|
|
617
633
|
name: "get-bubble-details-tool" | "get-trigger-detail-tool" | "list-bubbles-tool" | "list-capabilities-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool" | "people-search-tool";
|
|
618
634
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
619
635
|
config?: Record<string, unknown> | undefined;
|
|
620
636
|
}[] | undefined;
|
|
621
|
-
images?: ({
|
|
622
|
-
data: string;
|
|
623
|
-
type?: "base64" | undefined;
|
|
624
|
-
description?: string | undefined;
|
|
625
|
-
mimeType?: string | undefined;
|
|
626
|
-
} | {
|
|
627
|
-
type: "url";
|
|
628
|
-
url: string;
|
|
629
|
-
description?: string | undefined;
|
|
630
|
-
})[] | undefined;
|
|
631
|
-
conversationHistory?: {
|
|
632
|
-
role: "user" | "assistant" | "tool";
|
|
633
|
-
content: string;
|
|
634
|
-
toolCallId?: string | undefined;
|
|
635
|
-
name?: string | undefined;
|
|
636
|
-
}[] | undefined;
|
|
637
|
-
systemPrompt?: string | undefined;
|
|
638
637
|
customTools?: {
|
|
639
638
|
description: string;
|
|
640
639
|
name: string;
|
|
641
|
-
schema: Record<string, unknown
|
|
640
|
+
schema: z.ZodTypeAny | Record<string, unknown>;
|
|
642
641
|
func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
|
|
643
642
|
}[] | undefined;
|
|
644
643
|
maxIterations?: number | undefined;
|
|
644
|
+
streaming?: boolean | undefined;
|
|
645
645
|
capabilities?: {
|
|
646
646
|
id: string;
|
|
647
647
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-agent.d.ts","sourceRoot":"","sources":["../../../src/bubbles/service-bubble/ai-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAmB,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAInC,OAAO,EAEL,SAAS,EAGT,cAAc,EACf,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAM5D,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAuBtE,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,aAAa,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACnC,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAGF,MAAM,MAAM,aA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C,gBAAgB,IAAI,MAAM,GAAG,SAAS;IA2BhD;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAO3B;;;OAGG;YACW,gCAAgC;IA6J9C,OAAO,CAAC,eAAe;YAyKT,eAAe;IAwb7B;;;;OAIG;IACH,OAAO,CAAC,4BAA4B;IAgCpC;;;;OAIG;IACH,OAAO,CAAC,yBAAyB;IAgDjC;;;OAGG;IACH,OAAO,CAAC,eAAe;IAuDvB;;OAEG;YACW,qBAAqB;YA6RrB,gBAAgB;YA4ahB,YAAY;CAmwB3B"}
|
|
@@ -651,10 +651,13 @@ export class AIAgentBubble extends ServiceBubble {
|
|
|
651
651
|
}
|
|
652
652
|
// Add the final response
|
|
653
653
|
messages.push({ role: 'assistant', content: result.response });
|
|
654
|
-
// Fire-and-forget
|
|
655
|
-
memoryReflectionCallback(messages).catch((err) => {
|
|
654
|
+
// Fire-and-forget — but store promise so trace flush can await it
|
|
655
|
+
const reflectionPromise = memoryReflectionCallback(messages).catch((err) => {
|
|
656
656
|
console.error('[AIAgent] Memory reflection failed:', err);
|
|
657
657
|
});
|
|
658
|
+
if (execMeta) {
|
|
659
|
+
execMeta._reflectionPromise = reflectionPromise;
|
|
660
|
+
}
|
|
658
661
|
}
|
|
659
662
|
getCredentialType() {
|
|
660
663
|
return this.getCredentialTypeForModel(this.params.model.model);
|
|
@@ -1630,6 +1633,7 @@ export class AIAgentBubble extends ServiceBubble {
|
|
|
1630
1633
|
this._trace('agentNode', `LLM CALL`, {
|
|
1631
1634
|
model: this.params.model.model,
|
|
1632
1635
|
temperature: this.params.model.temperature,
|
|
1636
|
+
systemPrompt,
|
|
1633
1637
|
messageCount: messages.length,
|
|
1634
1638
|
messages: messages.map((m) => {
|
|
1635
1639
|
const role = m._getType();
|
|
@@ -2481,6 +2485,23 @@ export class AIAgentBubble extends ServiceBubble {
|
|
|
2481
2485
|
};
|
|
2482
2486
|
}
|
|
2483
2487
|
const finalResponse = formattedResult.response;
|
|
2488
|
+
// When an approval is pending, the master's final response is typically
|
|
2489
|
+
// a memory JSON — override with the subagent's reasoning text instead.
|
|
2490
|
+
const execMeta = this.context?.executionMeta;
|
|
2491
|
+
if (execMeta?._pendingApproval) {
|
|
2492
|
+
const pendingApproval = execMeta._pendingApproval;
|
|
2493
|
+
const approvalResponse = pendingApproval.lastAIText ||
|
|
2494
|
+
(pendingApproval.targetFlowName
|
|
2495
|
+
? `Requesting approval to **${pendingApproval.action}** "${pendingApproval.targetFlowName}".`
|
|
2496
|
+
: `Requesting approval to **${pendingApproval.action}**.`);
|
|
2497
|
+
return {
|
|
2498
|
+
response: approvalResponse,
|
|
2499
|
+
toolCalls: toolCalls.length > 0 ? toolCalls : [],
|
|
2500
|
+
iterations,
|
|
2501
|
+
error: '',
|
|
2502
|
+
success: true,
|
|
2503
|
+
};
|
|
2504
|
+
}
|
|
2484
2505
|
console.log('[AIAgent] Final response length:', typeof finalResponse === 'string'
|
|
2485
2506
|
? finalResponse.length
|
|
2486
2507
|
: JSON.stringify(finalResponse).length);
|