@bubblelab/bubble-core 0.1.208 → 0.1.210

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 (117) hide show
  1. package/dist/bubble-bundle.d.ts +161 -161
  2. package/dist/bubbles/service-bubble/agi-inc.d.ts +80 -80
  3. package/dist/bubbles/service-bubble/ai-agent.d.ts +26 -16
  4. package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
  5. package/dist/bubbles/service-bubble/ai-agent.js +74 -2
  6. package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
  7. package/dist/bubbles/service-bubble/airtable.d.ts +74 -74
  8. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts +2 -2
  9. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +4 -4
  10. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +12 -12
  11. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +2 -2
  12. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +8 -8
  13. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-detail.d.ts +52 -52
  14. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +18 -18
  15. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +10 -10
  16. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +27 -27
  17. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +8 -8
  18. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +131 -131
  19. package/dist/bubbles/service-bubble/apify/apify.d.ts +8 -8
  20. package/dist/bubbles/service-bubble/ashby/ashby.d.ts +94 -94
  21. package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +84 -84
  22. package/dist/bubbles/service-bubble/attio/attio.d.ts +28 -28
  23. package/dist/bubbles/service-bubble/attio/attio.schema.d.ts +28 -28
  24. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +28 -28
  25. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +30 -30
  26. package/dist/bubbles/service-bubble/capability-pipeline.d.ts.map +1 -1
  27. package/dist/bubbles/service-bubble/capability-pipeline.js +12 -3
  28. package/dist/bubbles/service-bubble/capability-pipeline.js.map +1 -1
  29. package/dist/bubbles/service-bubble/confluence/confluence.d.ts +24 -24
  30. package/dist/bubbles/service-bubble/confluence/confluence.schema.d.ts +24 -24
  31. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +52 -52
  32. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +158 -158
  33. package/dist/bubbles/service-bubble/eleven-labs.d.ts +28 -28
  34. package/dist/bubbles/service-bubble/firecrawl.d.ts +1015 -1015
  35. package/dist/bubbles/service-bubble/followupboss.d.ts +140 -140
  36. package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +68 -68
  37. package/dist/bubbles/service-bubble/fullenrich/fullenrich.schema.d.ts +108 -108
  38. package/dist/bubbles/service-bubble/github.d.ts +156 -156
  39. package/dist/bubbles/service-bubble/gmail.d.ts +140 -140
  40. package/dist/bubbles/service-bubble/google-calendar.d.ts +218 -218
  41. package/dist/bubbles/service-bubble/google-drive.d.ts +92 -92
  42. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +44 -44
  43. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts +48 -48
  44. package/dist/bubbles/service-bubble/hello-world.d.ts +8 -8
  45. package/dist/bubbles/service-bubble/http.d.ts +12 -12
  46. package/dist/bubbles/service-bubble/hubspot/hubspot.d.ts +8 -8
  47. package/dist/bubbles/service-bubble/hubspot/hubspot.schema.d.ts +8 -8
  48. package/dist/bubbles/service-bubble/insforge-db.d.ts +8 -8
  49. package/dist/bubbles/service-bubble/jira/jira.d.ts +56 -56
  50. package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +94 -94
  51. package/dist/bubbles/service-bubble/linear/linear.d.ts +32 -32
  52. package/dist/bubbles/service-bubble/linear/linear.schema.d.ts +32 -32
  53. package/dist/bubbles/service-bubble/notion/notion.d.ts +1627 -1627
  54. package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +8 -8
  55. package/dist/bubbles/service-bubble/postgresql.d.ts +8 -8
  56. package/dist/bubbles/service-bubble/posthog/posthog.d.ts +20 -20
  57. package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts +26 -26
  58. package/dist/bubbles/service-bubble/resend.d.ts +28 -28
  59. package/dist/bubbles/service-bubble/s3/s3.d.ts +10 -10
  60. package/dist/bubbles/service-bubble/s3/s3.schema.d.ts +10 -10
  61. package/dist/bubbles/service-bubble/sendsafely/sendsafely.d.ts +6 -6
  62. package/dist/bubbles/service-bubble/sendsafely/sendsafely.schema.d.ts +12 -12
  63. package/dist/bubbles/service-bubble/slack/slack.d.ts +342 -342
  64. package/dist/bubbles/service-bubble/storage.d.ts +20 -20
  65. package/dist/bubbles/service-bubble/stripe/stripe.d.ts +115 -115
  66. package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +143 -143
  67. package/dist/bubbles/service-bubble/telegram.d.ts +1537 -1537
  68. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +13 -13
  69. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +13 -13
  70. package/dist/bubbles/tool-bubble/browser-tools/_shared/schema.d.ts +2 -2
  71. package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/schema.d.ts +2 -2
  72. package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/tool.d.ts +2 -2
  73. package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/schema.d.ts +2 -2
  74. package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.d.ts +2 -2
  75. package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/schema.d.ts +2 -2
  76. package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.d.ts +2 -2
  77. package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/schema.d.ts +2 -2
  78. package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.d.ts +2 -2
  79. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +20 -20
  80. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +26 -26
  81. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +4 -4
  82. package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +52 -52
  83. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +4 -4
  84. package/dist/bubbles/tool-bubble/get-trigger-detail-tool.d.ts +4 -4
  85. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +4 -4
  86. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +14 -14
  87. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +186 -186
  88. package/dist/bubbles/tool-bubble/list-airtable-bases-tool.d.ts +4 -4
  89. package/dist/bubbles/tool-bubble/list-airtable-tables-tool.d.ts +4 -4
  90. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
  91. package/dist/bubbles/tool-bubble/list-capabilities-tool.d.ts +8 -8
  92. package/dist/bubbles/tool-bubble/people-search-tool.d.ts +48 -48
  93. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +28 -28
  94. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +8 -8
  95. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
  96. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +28 -28
  97. package/dist/bubbles/tool-bubble/tool-template.d.ts +4 -4
  98. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +54 -54
  99. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +18 -18
  100. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +4 -4
  101. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +4 -4
  102. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +8 -8
  103. package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +18 -18
  104. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +18 -18
  105. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
  106. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +28 -28
  107. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +8 -8
  108. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +104 -104
  109. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +16 -16
  110. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +34 -34
  111. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +94 -94
  112. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +8 -8
  113. package/dist/bubbles.json +6 -2
  114. package/dist/capabilities/define-capability.d.ts +2 -0
  115. package/dist/capabilities/define-capability.d.ts.map +1 -1
  116. package/dist/capabilities/define-capability.js.map +1 -1
  117. package/package.json +2 -2
@@ -52,8 +52,8 @@ declare const AIAgentParamsSchema: z.ZodObject<{
52
52
  }, {
53
53
  data: string;
54
54
  type?: "base64" | undefined;
55
- description?: string | undefined;
56
55
  mimeType?: string | undefined;
56
+ description?: string | undefined;
57
57
  }>, z.ZodObject<{
58
58
  type: z.ZodLiteral<"url">;
59
59
  url: z.ZodString;
@@ -179,14 +179,17 @@ declare const AIAgentParamsSchema: z.ZodObject<{
179
179
  id: z.ZodString;
180
180
  inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>>;
181
181
  credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>;
182
+ context: z.ZodOptional<z.ZodString>;
182
183
  }, "strip", z.ZodTypeAny, {
183
184
  id: string;
184
185
  inputs: Record<string, string | number | boolean | string[]>;
185
186
  credentials?: Partial<Record<CredentialType, string>> | undefined;
187
+ context?: string | undefined;
186
188
  }, {
187
189
  id: string;
188
190
  credentials?: Partial<Record<CredentialType, string>> | undefined;
189
191
  inputs?: Record<string, string | number | boolean | string[]> | undefined;
192
+ context?: string | undefined;
190
193
  }>, "many">>>;
191
194
  expectedOutputSchema: z.ZodOptional<z.ZodUnion<[z.ZodType<z.ZodTypeAny, z.ZodTypeDef, z.ZodTypeAny>, z.ZodString]>>;
192
195
  memoryEnabled: z.ZodDefault<z.ZodBoolean>;
@@ -230,13 +233,13 @@ declare const AIAgentParamsSchema: z.ZodObject<{
230
233
  memoryEnabled: boolean;
231
234
  enableSlackHistory: boolean;
232
235
  name?: string | undefined;
233
- credentials?: Partial<Record<CredentialType, string>> | undefined;
234
236
  conversationHistory?: {
235
237
  role: "user" | "assistant" | "tool";
236
238
  content: string;
237
239
  toolCallId?: string | undefined;
238
240
  name?: string | undefined;
239
241
  }[] | undefined;
242
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
240
243
  customTools?: {
241
244
  description: string;
242
245
  name: string;
@@ -247,17 +250,17 @@ declare const AIAgentParamsSchema: z.ZodObject<{
247
250
  id: string;
248
251
  inputs: Record<string, string | number | boolean | string[]>;
249
252
  credentials?: Partial<Record<CredentialType, string>> | undefined;
253
+ context?: string | undefined;
250
254
  }[] | undefined;
251
255
  expectedOutputSchema?: string | z.ZodTypeAny | undefined;
252
256
  }, {
253
257
  message: string;
254
258
  name?: string | undefined;
255
- credentials?: Partial<Record<CredentialType, string>> | undefined;
256
259
  images?: ({
257
260
  data: string;
258
261
  type?: "base64" | undefined;
259
- description?: string | undefined;
260
262
  mimeType?: string | undefined;
263
+ description?: string | undefined;
261
264
  } | {
262
265
  type: "url";
263
266
  url: string;
@@ -286,6 +289,7 @@ declare const AIAgentParamsSchema: z.ZodObject<{
286
289
  maxRetries?: number | undefined;
287
290
  } | undefined;
288
291
  } | undefined;
292
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
289
293
  tools?: {
290
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";
291
295
  credentials?: Partial<Record<CredentialType, string>> | undefined;
@@ -303,6 +307,7 @@ declare const AIAgentParamsSchema: z.ZodObject<{
303
307
  id: string;
304
308
  credentials?: Partial<Record<CredentialType, string>> | undefined;
305
309
  inputs?: Record<string, string | number | boolean | string[]> | undefined;
310
+ context?: string | undefined;
306
311
  }[] | undefined;
307
312
  expectedOutputSchema?: string | z.ZodTypeAny | undefined;
308
313
  memoryEnabled?: boolean | undefined;
@@ -329,8 +334,6 @@ declare const AIAgentResultSchema: z.ZodObject<{
329
334
  error: z.ZodString;
330
335
  success: z.ZodBoolean;
331
336
  }, "strip", z.ZodTypeAny, {
332
- success: boolean;
333
- error: string;
334
337
  response: string;
335
338
  toolCalls: {
336
339
  tool: string;
@@ -338,11 +341,11 @@ declare const AIAgentResultSchema: z.ZodObject<{
338
341
  output?: unknown;
339
342
  }[];
340
343
  iterations: number;
344
+ error: string;
345
+ success: boolean;
341
346
  reasoning?: string | null | undefined;
342
347
  totalCost?: number | undefined;
343
348
  }, {
344
- success: boolean;
345
- error: string;
346
349
  response: string;
347
350
  toolCalls: {
348
351
  tool: string;
@@ -350,6 +353,8 @@ declare const AIAgentResultSchema: z.ZodObject<{
350
353
  output?: unknown;
351
354
  }[];
352
355
  iterations: number;
356
+ error: string;
357
+ success: boolean;
353
358
  reasoning?: string | null | undefined;
354
359
  totalCost?: number | undefined;
355
360
  }>;
@@ -386,8 +391,8 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
386
391
  }, {
387
392
  data: string;
388
393
  type?: "base64" | undefined;
389
- description?: string | undefined;
390
394
  mimeType?: string | undefined;
395
+ description?: string | undefined;
391
396
  }>, z.ZodObject<{
392
397
  type: z.ZodLiteral<"url">;
393
398
  url: z.ZodString;
@@ -513,14 +518,17 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
513
518
  id: z.ZodString;
514
519
  inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>>;
515
520
  credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>;
521
+ context: z.ZodOptional<z.ZodString>;
516
522
  }, "strip", z.ZodTypeAny, {
517
523
  id: string;
518
524
  inputs: Record<string, string | number | boolean | string[]>;
519
525
  credentials?: Partial<Record<CredentialType, string>> | undefined;
526
+ context?: string | undefined;
520
527
  }, {
521
528
  id: string;
522
529
  credentials?: Partial<Record<CredentialType, string>> | undefined;
523
530
  inputs?: Record<string, string | number | boolean | string[]> | undefined;
531
+ context?: string | undefined;
524
532
  }>, "many">>>;
525
533
  expectedOutputSchema: z.ZodOptional<z.ZodUnion<[z.ZodType<z.ZodTypeAny, z.ZodTypeDef, z.ZodTypeAny>, z.ZodString]>>;
526
534
  memoryEnabled: z.ZodDefault<z.ZodBoolean>;
@@ -564,13 +572,13 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
564
572
  memoryEnabled: boolean;
565
573
  enableSlackHistory: boolean;
566
574
  name?: string | undefined;
567
- credentials?: Partial<Record<CredentialType, string>> | undefined;
568
575
  conversationHistory?: {
569
576
  role: "user" | "assistant" | "tool";
570
577
  content: string;
571
578
  toolCallId?: string | undefined;
572
579
  name?: string | undefined;
573
580
  }[] | undefined;
581
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
574
582
  customTools?: {
575
583
  description: string;
576
584
  name: string;
@@ -581,17 +589,17 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
581
589
  id: string;
582
590
  inputs: Record<string, string | number | boolean | string[]>;
583
591
  credentials?: Partial<Record<CredentialType, string>> | undefined;
592
+ context?: string | undefined;
584
593
  }[] | undefined;
585
594
  expectedOutputSchema?: string | z.ZodTypeAny | undefined;
586
595
  }, {
587
596
  message: string;
588
597
  name?: string | undefined;
589
- credentials?: Partial<Record<CredentialType, string>> | undefined;
590
598
  images?: ({
591
599
  data: string;
592
600
  type?: "base64" | undefined;
593
- description?: string | undefined;
594
601
  mimeType?: string | undefined;
602
+ description?: string | undefined;
595
603
  } | {
596
604
  type: "url";
597
605
  url: string;
@@ -620,6 +628,7 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
620
628
  maxRetries?: number | undefined;
621
629
  } | undefined;
622
630
  } | undefined;
631
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
623
632
  tools?: {
624
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";
625
634
  credentials?: Partial<Record<CredentialType, string>> | undefined;
@@ -637,6 +646,7 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
637
646
  id: string;
638
647
  credentials?: Partial<Record<CredentialType, string>> | undefined;
639
648
  inputs?: Record<string, string | number | boolean | string[]> | undefined;
649
+ context?: string | undefined;
640
650
  }[] | undefined;
641
651
  expectedOutputSchema?: string | z.ZodTypeAny | undefined;
642
652
  memoryEnabled?: boolean | undefined;
@@ -663,8 +673,6 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
663
673
  error: z.ZodString;
664
674
  success: z.ZodBoolean;
665
675
  }, "strip", z.ZodTypeAny, {
666
- success: boolean;
667
- error: string;
668
676
  response: string;
669
677
  toolCalls: {
670
678
  tool: string;
@@ -672,11 +680,11 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
672
680
  output?: unknown;
673
681
  }[];
674
682
  iterations: number;
683
+ error: string;
684
+ success: boolean;
675
685
  reasoning?: string | null | undefined;
676
686
  totalCost?: number | undefined;
677
687
  }, {
678
- success: boolean;
679
- error: string;
680
688
  response: string;
681
689
  toolCalls: {
682
690
  tool: string;
@@ -684,6 +692,8 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
684
692
  output?: unknown;
685
693
  }[];
686
694
  iterations: number;
695
+ error: string;
696
+ success: boolean;
687
697
  reasoning?: string | null | undefined;
688
698
  totalCost?: number | undefined;
689
699
  }>;
@@ -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;AAG5D,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,M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AAO,CAAC,qBAAqB,CAAS;IACtC,OAAO,CAAC,cAAc,CAAK;IAC3B;+EAC2E;IAC3E,OAAO,CAAC,qBAAqB,CAAqB;IAElD,4EAA4E;IAC5E,OAAO,CAAC,MAAM;IAYd,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAK;IAChD,4FAA4F;IAC5F,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAU;gBAGrD,MAAM,GAAE,aAIP,EACD,OAAO,CAAC,EAAE,aAAa,EACvB,UAAU,CAAC,EAAE,MAAM;IAUR,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;IAW/C;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAmBxB;;OAEG;YACW,gBAAgB;IAkC9B;;OAEG;cACsB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;cA2QtC,aAAa,CAC3B,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,aAAa,CAAC;IA4DzB;;;OAGG;IACH,OAAO,CAAC,2BAA2B;IA2CnC,SAAS,CAAC,iBAAiB,IAAI,cAAc;IAI7C;;OAEG;IACH,OAAO,CAAC,yBAAyB;IAgBjC,SAAS,CAAC,gBAAgB,IAAI,MAAM,GAAG,SAAS;IA2BhD;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAO3B;;;OAGG;YACW,gCAAgC;IA6J9C,OAAO,CAAC,eAAe;YAyKT,eAAe;IAub7B;;;;OAIG;IACH,OAAO,CAAC,4BAA4B;IAgCpC;;;;OAIG;IACH,OAAO,CAAC,yBAAyB;IAgDjC;;;OAGG;IACH,OAAO,CAAC,eAAe;IAuDvB;;OAEG;YACW,qBAAqB;YA0OrB,gBAAgB;YAgWhB,YAAY;CAopB3B"}
@@ -6,7 +6,7 @@ import { ChatOpenAI } from '@langchain/openai';
6
6
  import { ChatAnthropic } from '@langchain/anthropic';
7
7
  import { HumanMessage, AIMessage, SystemMessage, ToolMessage, AIMessageChunk, } from '@langchain/core/messages';
8
8
  import { DynamicStructuredTool } from '@langchain/core/tools';
9
- import { AvailableModels } from '@bubblelab/shared-schemas';
9
+ import { AvailableModels, } from '@bubblelab/shared-schemas';
10
10
  import { AvailableTools, } from '../../types/available-tools.js';
11
11
  import { BubbleFactory } from '../../bubble-factory.js';
12
12
  import { ConversationMessageSchema } from '@bubblelab/shared-schemas';
@@ -165,6 +165,10 @@ const CapabilityConfigSchema = z.object({
165
165
  .default({})
166
166
  .optional()
167
167
  .describe('Capability-specific credentials (injected at runtime)'),
168
+ context: z
169
+ .string()
170
+ .optional()
171
+ .describe('Free-text context injected into this capability subagent system prompt (e.g., workspace-specific details, naming conventions, project prefixes)'),
168
172
  });
169
173
  // Define the parameters schema for the AI Agent bubble
170
174
  const AIAgentParamsSchema = z.object({
@@ -419,6 +423,16 @@ export class AIAgentBubble extends ServiceBubble {
419
423
  // Memory injection — tools, prompt, and reflection are built externally (Pro)
420
424
  // and passed via executionMeta. This keeps all memory logic out of OSS.
421
425
  const isCapabilityAgent = this.params.name?.startsWith('Capability Agent:');
426
+ // Custom capability model override for sub-agents (master applies its own at detection time)
427
+ if (isCapabilityAgent) {
428
+ const customModelOverride = execMeta?._customCapModelOverride;
429
+ if (customModelOverride) {
430
+ this.params.model.model =
431
+ customModelOverride.delegateModel;
432
+ this.params.model.reasoningEffort =
433
+ customModelOverride.reasoningEffort ?? undefined;
434
+ }
435
+ }
422
436
  // Inject Slack channel context into system prompt
423
437
  // Skip for capability agents (e.g. memory) — they only need their own prompt
424
438
  if (!isCapabilityAgent) {
@@ -465,7 +479,8 @@ export class AIAgentBubble extends ServiceBubble {
465
479
  // Initialize callLLM for memory tools that need it (update_memory merge, reflection)
466
480
  const memoryCallLLMInit = execMeta?.memoryCallLLMInit;
467
481
  if (memoryCallLLMInit) {
468
- const memoryModel = (execMeta?.memoryCallLLMModel || RECOMMENDED_MODELS.PRO);
482
+ const memoryModel = (execMeta?.memoryCallLLMModel ||
483
+ RECOMMENDED_MODELS.PRO);
469
484
  const callLLM = async (prompt) => {
470
485
  const memoryAgent = new AIAgentBubble({
471
486
  message: prompt,
@@ -497,6 +512,63 @@ export class AIAgentBubble extends ServiceBubble {
497
512
  this.params.customTools.push(imageTool);
498
513
  this.params.systemPrompt += `\n\n**Image Reading:** When users share images, the message will include \`[Attached files: ...]\` with image URLs. Use the \`read_image\` tool with these URLs to see and describe the image contents.`;
499
514
  }
515
+ // Inject capability management tools (e.g., Pearl self-management)
516
+ if (!isCapabilityAgent) {
517
+ const capabilityTools = execMeta?.capabilityTools;
518
+ if (capabilityTools?.length) {
519
+ if (!this.params.customTools) {
520
+ this.params.customTools = [];
521
+ }
522
+ this.params.customTools.push(...capabilityTools);
523
+ }
524
+ const capabilitySystemPrompt = execMeta?.capabilitySystemPrompt;
525
+ if (capabilitySystemPrompt) {
526
+ this.params.systemPrompt = `${this.params.systemPrompt}\n\n---\n\n${capabilitySystemPrompt}`;
527
+ }
528
+ }
529
+ // Custom capability detection — /name pattern in message injects stored prompt
530
+ const customCaps = execMeta?._availableCustomCapabilities;
531
+ if (customCaps && !isCapabilityAgent) {
532
+ // Match /command at start of message (optionally preceded by Slack mention)
533
+ const match = this.params.message.match(/^(?:<@[A-Z0-9]+>\s*)?\/([a-z0-9](?:[a-z0-9-]*[a-z0-9])?)\b\s*([\s\S]*)$/);
534
+ if (match) {
535
+ const cap = customCaps[match[1]];
536
+ if (cap) {
537
+ this.params.systemPrompt += `\n\n---\n\n[Custom Capability: ${match[1]}]\n${cap.systemPrompt}`;
538
+ this.params.message =
539
+ match[2].trim() || `(user invoked /${match[1]})`;
540
+ // Set model override based on effort level
541
+ const effort = cap.effort || 'medium';
542
+ const effortPresets = {
543
+ none: {
544
+ masterModel: RECOMMENDED_MODELS.ANTHROPIC_FAST,
545
+ delegateModel: RECOMMENDED_MODELS.GOOGLE_FAST,
546
+ },
547
+ low: {
548
+ masterModel: RECOMMENDED_MODELS.ANTHROPIC_FAST,
549
+ delegateModel: RECOMMENDED_MODELS.ANTHROPIC_FAST,
550
+ },
551
+ medium: {
552
+ masterModel: RECOMMENDED_MODELS.ANTHROPIC_FLAGSHIP,
553
+ delegateModel: RECOMMENDED_MODELS.GOOGLE_FLAGSHIP,
554
+ reasoningEffort: 'medium',
555
+ },
556
+ high: {
557
+ masterModel: RECOMMENDED_MODELS.ANTHROPIC_BEST,
558
+ delegateModel: RECOMMENDED_MODELS.GOOGLE_BEST,
559
+ reasoningEffort: 'high',
560
+ },
561
+ };
562
+ const preset = effortPresets[effort];
563
+ execMeta._customCapModelOverride = preset;
564
+ // Apply master model override immediately (sub-agents apply theirs in their own beforeAction)
565
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
566
+ this.params.model.model = preset.masterModel;
567
+ this.params.model.reasoningEffort =
568
+ preset.reasoningEffort ?? undefined;
569
+ }
570
+ }
571
+ }
500
572
  }
501
573
  async performAction(context) {
502
574
  // Context is available but not currently used in this implementation