@bubblelab/bubble-core 0.1.213 → 0.1.216

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 (119) hide show
  1. package/dist/bubble-bundle.d.ts +163 -163
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +0 -1
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubbles/service-bubble/agi-inc.d.ts +80 -80
  6. package/dist/bubbles/service-bubble/ai-agent.d.ts +72 -72
  7. package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
  8. package/dist/bubbles/service-bubble/ai-agent.js +25 -9
  9. package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
  10. package/dist/bubbles/service-bubble/airtable.d.ts +102 -102
  11. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts +2 -2
  12. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +4 -4
  13. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +12 -12
  14. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +2 -2
  15. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +8 -8
  16. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-detail.d.ts +52 -52
  17. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +18 -18
  18. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +10 -10
  19. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +27 -27
  20. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +8 -8
  21. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +131 -131
  22. package/dist/bubbles/service-bubble/apify/apify.d.ts +26 -26
  23. package/dist/bubbles/service-bubble/ashby/ashby.d.ts +64 -64
  24. package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +86 -86
  25. package/dist/bubbles/service-bubble/assembled/assembled.d.ts +42 -42
  26. package/dist/bubbles/service-bubble/assembled/assembled.schema.d.ts +36 -36
  27. package/dist/bubbles/service-bubble/attio/attio.d.ts +30 -30
  28. package/dist/bubbles/service-bubble/attio/attio.schema.d.ts +30 -30
  29. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +31 -31
  30. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +33 -33
  31. package/dist/bubbles/service-bubble/capability-pipeline.d.ts.map +1 -1
  32. package/dist/bubbles/service-bubble/capability-pipeline.js +15 -5
  33. package/dist/bubbles/service-bubble/capability-pipeline.js.map +1 -1
  34. package/dist/bubbles/service-bubble/confluence/confluence.d.ts +24 -24
  35. package/dist/bubbles/service-bubble/confluence/confluence.schema.d.ts +24 -24
  36. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +130 -130
  37. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +166 -166
  38. package/dist/bubbles/service-bubble/eleven-labs.d.ts +28 -28
  39. package/dist/bubbles/service-bubble/firecrawl.d.ts +882 -882
  40. package/dist/bubbles/service-bubble/followupboss.d.ts +144 -144
  41. package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +68 -68
  42. package/dist/bubbles/service-bubble/fullenrich/fullenrich.schema.d.ts +108 -108
  43. package/dist/bubbles/service-bubble/github.d.ts +144 -144
  44. package/dist/bubbles/service-bubble/gmail.d.ts +240 -240
  45. package/dist/bubbles/service-bubble/google-calendar.d.ts +138 -138
  46. package/dist/bubbles/service-bubble/google-drive.d.ts +84 -84
  47. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +44 -44
  48. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts +48 -48
  49. package/dist/bubbles/service-bubble/hello-world.d.ts +8 -8
  50. package/dist/bubbles/service-bubble/http.d.ts +18 -18
  51. package/dist/bubbles/service-bubble/hubspot/hubspot.d.ts +8 -8
  52. package/dist/bubbles/service-bubble/hubspot/hubspot.schema.d.ts +8 -8
  53. package/dist/bubbles/service-bubble/insforge-db.d.ts +16 -16
  54. package/dist/bubbles/service-bubble/jira/jira.d.ts +56 -56
  55. package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +58 -58
  56. package/dist/bubbles/service-bubble/linear/linear.d.ts +32 -32
  57. package/dist/bubbles/service-bubble/linear/linear.schema.d.ts +32 -32
  58. package/dist/bubbles/service-bubble/notion/notion.d.ts +1777 -1777
  59. package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +8 -8
  60. package/dist/bubbles/service-bubble/postgresql.d.ts +16 -16
  61. package/dist/bubbles/service-bubble/posthog/posthog.d.ts +24 -24
  62. package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts +30 -30
  63. package/dist/bubbles/service-bubble/resend.d.ts +28 -28
  64. package/dist/bubbles/service-bubble/s3/s3.d.ts +10 -10
  65. package/dist/bubbles/service-bubble/s3/s3.schema.d.ts +10 -10
  66. package/dist/bubbles/service-bubble/sendsafely/sendsafely.d.ts +10 -10
  67. package/dist/bubbles/service-bubble/sendsafely/sendsafely.schema.d.ts +12 -12
  68. package/dist/bubbles/service-bubble/slack/slack.d.ts +434 -434
  69. package/dist/bubbles/service-bubble/storage.d.ts +20 -20
  70. package/dist/bubbles/service-bubble/stripe/stripe.d.ts +149 -149
  71. package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +171 -171
  72. package/dist/bubbles/service-bubble/telegram.d.ts +1561 -1561
  73. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +15 -15
  74. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +15 -15
  75. package/dist/bubbles/tool-bubble/browser-tools/_shared/schema.d.ts +2 -2
  76. package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/schema.d.ts +2 -2
  77. package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/tool.d.ts +2 -2
  78. package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/schema.d.ts +2 -2
  79. package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.d.ts +2 -2
  80. package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/schema.d.ts +2 -2
  81. package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.d.ts +2 -2
  82. package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/schema.d.ts +2 -2
  83. package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.d.ts +2 -2
  84. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +20 -20
  85. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +26 -26
  86. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +4 -4
  87. package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +52 -52
  88. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +4 -4
  89. package/dist/bubbles/tool-bubble/get-trigger-detail-tool.d.ts +4 -4
  90. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +4 -4
  91. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +14 -14
  92. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +502 -502
  93. package/dist/bubbles/tool-bubble/list-airtable-bases-tool.d.ts +4 -4
  94. package/dist/bubbles/tool-bubble/list-airtable-tables-tool.d.ts +4 -4
  95. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
  96. package/dist/bubbles/tool-bubble/list-capabilities-tool.d.ts +4 -4
  97. package/dist/bubbles/tool-bubble/people-search-tool.d.ts +48 -48
  98. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +28 -28
  99. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +4 -4
  100. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +8 -8
  101. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +80 -80
  102. package/dist/bubbles/tool-bubble/tool-template.d.ts +4 -4
  103. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +178 -178
  104. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +22 -22
  105. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +8 -8
  106. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +8 -8
  107. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +8 -8
  108. package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +26 -26
  109. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +38 -38
  110. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
  111. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +40 -40
  112. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +8 -8
  113. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +72 -72
  114. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +16 -16
  115. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +32 -32
  116. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +96 -96
  117. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +8 -8
  118. package/dist/bubbles.json +1 -1
  119. package/package.json +2 -2
@@ -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> | z.ZodTypeAny;
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> | z.ZodTypeAny;
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,24 +223,13 @@ 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
- data: string;
224
- mimeType: 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;
@@ -243,7 +243,7 @@ declare const AIAgentParamsSchema: z.ZodObject<{
243
243
  customTools?: {
244
244
  description: string;
245
245
  name: string;
246
- schema: Record<string, unknown> | z.ZodTypeAny;
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?: {
@@ -257,6 +257,23 @@ declare const AIAgentParamsSchema: z.ZodObject<{
257
257
  message: string;
258
258
  name?: string | undefined;
259
259
  credentials?: Partial<Record<CredentialType, string>> | undefined;
260
+ images?: ({
261
+ data: string;
262
+ type?: "base64" | undefined;
263
+ description?: string | undefined;
264
+ mimeType?: string | undefined;
265
+ } | {
266
+ type: "url";
267
+ url: string;
268
+ description?: string | undefined;
269
+ })[] | undefined;
270
+ conversationHistory?: {
271
+ role: "user" | "assistant" | "tool";
272
+ content: string;
273
+ toolCallId?: string | undefined;
274
+ name?: string | undefined;
275
+ }[] | undefined;
276
+ systemPrompt?: string | undefined;
260
277
  model?: {
261
278
  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
279
  temperature?: number | undefined;
@@ -273,36 +290,19 @@ declare const AIAgentParamsSchema: z.ZodObject<{
273
290
  maxRetries?: number | undefined;
274
291
  } | undefined;
275
292
  } | undefined;
276
- streaming?: boolean | 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> | z.ZodTypeAny;
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;
@@ -334,8 +334,8 @@ declare const AIAgentResultSchema: z.ZodObject<{
334
334
  error: z.ZodString;
335
335
  success: z.ZodBoolean;
336
336
  }, "strip", z.ZodTypeAny, {
337
- error: string;
338
337
  success: boolean;
338
+ error: string;
339
339
  response: string;
340
340
  toolCalls: {
341
341
  tool: string;
@@ -346,8 +346,8 @@ declare const AIAgentResultSchema: z.ZodObject<{
346
346
  reasoning?: string | null | undefined;
347
347
  totalCost?: number | undefined;
348
348
  }, {
349
- error: string;
350
349
  success: boolean;
350
+ error: string;
351
351
  response: string;
352
352
  toolCalls: {
353
353
  tool: 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> | z.ZodTypeAny;
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> | z.ZodTypeAny;
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,24 +562,13 @@ 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
- data: string;
563
- mimeType: 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;
@@ -582,7 +582,7 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
582
582
  customTools?: {
583
583
  description: string;
584
584
  name: string;
585
- schema: Record<string, unknown> | z.ZodTypeAny;
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?: {
@@ -596,6 +596,23 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
596
596
  message: string;
597
597
  name?: string | undefined;
598
598
  credentials?: Partial<Record<CredentialType, string>> | undefined;
599
+ images?: ({
600
+ data: string;
601
+ type?: "base64" | undefined;
602
+ description?: string | undefined;
603
+ mimeType?: string | undefined;
604
+ } | {
605
+ type: "url";
606
+ url: string;
607
+ description?: string | undefined;
608
+ })[] | undefined;
609
+ conversationHistory?: {
610
+ role: "user" | "assistant" | "tool";
611
+ content: string;
612
+ toolCallId?: string | undefined;
613
+ name?: string | undefined;
614
+ }[] | undefined;
615
+ systemPrompt?: string | undefined;
599
616
  model?: {
600
617
  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
618
  temperature?: number | undefined;
@@ -612,36 +629,19 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
612
629
  maxRetries?: number | undefined;
613
630
  } | undefined;
614
631
  } | undefined;
615
- streaming?: boolean | 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> | z.ZodTypeAny;
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;
@@ -673,8 +673,8 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
673
673
  error: z.ZodString;
674
674
  success: z.ZodBoolean;
675
675
  }, "strip", z.ZodTypeAny, {
676
- error: string;
677
676
  success: boolean;
677
+ error: string;
678
678
  response: string;
679
679
  toolCalls: {
680
680
  tool: string;
@@ -685,8 +685,8 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
685
685
  reasoning?: string | null | undefined;
686
686
  totalCost?: number | undefined;
687
687
  }, {
688
- error: string;
689
688
  success: boolean;
689
+ error: string;
690
690
  response: string;
691
691
  toolCalls: {
692
692
  tool: string;
@@ -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,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ON.stringify(m.content);
1639
1639
  const entry = { role, content };
1640
- if ('tool_calls' in m && Array.isArray(m.tool_calls) && m.tool_calls.length > 0) {
1640
+ if ('tool_calls' in m &&
1641
+ Array.isArray(m.tool_calls) &&
1642
+ m.tool_calls.length > 0) {
1641
1643
  entry.toolCalls = m.tool_calls.map((tc) => ({
1642
1644
  name: tc.name,
1643
1645
  id: tc.id,
@@ -1760,9 +1762,11 @@ export class AIAgentBubble extends ServiceBubble {
1760
1762
  content: typeof response.content === 'string'
1761
1763
  ? response.content
1762
1764
  : JSON.stringify(response.content),
1763
- toolCalls: ('tool_calls' in response && Array.isArray(response.tool_calls))
1765
+ toolCalls: 'tool_calls' in response && Array.isArray(response.tool_calls)
1764
1766
  ? response.tool_calls.map((tc) => ({
1765
- name: tc.name, id: tc.id, args: tc.args,
1767
+ name: tc.name,
1768
+ id: tc.id,
1769
+ args: tc.args,
1766
1770
  }))
1767
1771
  : undefined,
1768
1772
  tokenUsage: response.usage_metadata
@@ -1782,9 +1786,11 @@ export class AIAgentBubble extends ServiceBubble {
1782
1786
  content: typeof response.content === 'string'
1783
1787
  ? response.content
1784
1788
  : JSON.stringify(response.content),
1785
- toolCalls: ('tool_calls' in response && Array.isArray(response.tool_calls))
1789
+ toolCalls: 'tool_calls' in response && Array.isArray(response.tool_calls)
1786
1790
  ? response.tool_calls.map((tc) => ({
1787
- name: tc.name, id: tc.id, args: tc.args,
1791
+ name: tc.name,
1792
+ id: tc.id,
1793
+ args: tc.args,
1788
1794
  }))
1789
1795
  : undefined,
1790
1796
  tokenUsage: response.usage_metadata
@@ -1909,7 +1915,11 @@ export class AIAgentBubble extends ServiceBubble {
1909
1915
  });
1910
1916
  // Check if the afterToolCall hook requested stopping
1911
1917
  if (this.shouldStopAfterTools) {
1912
- this._trace('shouldContinueAfterTools', `→ __end__ (shouldStopAfterTools)`, { result: '__end__', reason: 'shouldStopAfterTools', shouldStopAfterTools: true });
1918
+ this._trace('shouldContinueAfterTools', `→ __end__ (shouldStopAfterTools)`, {
1919
+ result: '__end__',
1920
+ reason: 'shouldStopAfterTools',
1921
+ shouldStopAfterTools: true,
1922
+ });
1913
1923
  return '__end__';
1914
1924
  }
1915
1925
  // Check for pending approval signal from sub-agent (shared via executionMeta).
@@ -1917,7 +1927,9 @@ export class AIAgentBubble extends ServiceBubble {
1917
1927
  // so a sub-agent setting _pendingApproval is visible here.
1918
1928
  if (execMeta?._pendingApproval) {
1919
1929
  this._trace('shouldContinueAfterTools', `→ __end__ (pendingApproval)`, {
1920
- result: '__end__', reason: 'pendingApproval', pendingApproval: true,
1930
+ result: '__end__',
1931
+ reason: 'pendingApproval',
1932
+ pendingApproval: true,
1921
1933
  });
1922
1934
  this.shouldStopAfterTools = true;
1923
1935
  return '__end__';
@@ -2118,9 +2130,13 @@ export class AIAgentBubble extends ServiceBubble {
2118
2130
  ? m.content
2119
2131
  : JSON.stringify(m.content);
2120
2132
  const entry = { role, content };
2121
- if ('tool_calls' in m && Array.isArray(m.tool_calls) && m.tool_calls.length > 0) {
2133
+ if ('tool_calls' in m &&
2134
+ Array.isArray(m.tool_calls) &&
2135
+ m.tool_calls.length > 0) {
2122
2136
  entry.toolCalls = m.tool_calls.map((tc) => ({
2123
- name: tc.name, id: tc.id, args: tc.args,
2137
+ name: tc.name,
2138
+ id: tc.id,
2139
+ args: tc.args,
2124
2140
  }));
2125
2141
  }
2126
2142
  if ('tool_call_id' in m) {