@bubblelab/bubble-core 0.1.242 → 0.1.244

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 (126) hide show
  1. package/dist/bubble-bundle.d.ts +183 -183
  2. package/dist/bubbles/service-bubble/agi-inc.d.ts +80 -80
  3. package/dist/bubbles/service-bubble/ai-agent.d.ts +16 -16
  4. package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
  5. package/dist/bubbles/service-bubble/ai-agent.js +26 -5
  6. package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
  7. package/dist/bubbles/service-bubble/airtable.d.ts +78 -78
  8. package/dist/bubbles/service-bubble/apify/actors/app-rankings-scraper.d.ts +8 -8
  9. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts +2 -2
  10. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +4 -4
  11. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +12 -12
  12. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +2 -2
  13. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +8 -8
  14. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-detail.d.ts +52 -52
  15. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +18 -18
  16. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +10 -10
  17. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +27 -27
  18. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +8 -8
  19. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +139 -139
  20. package/dist/bubbles/service-bubble/apify/apify.d.ts +8 -8
  21. package/dist/bubbles/service-bubble/ashby/ashby.d.ts +100 -100
  22. package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +88 -88
  23. package/dist/bubbles/service-bubble/assembled/assembled.d.ts +41 -41
  24. package/dist/bubbles/service-bubble/assembled/assembled.schema.d.ts +36 -36
  25. package/dist/bubbles/service-bubble/attio/attio.d.ts +28 -28
  26. package/dist/bubbles/service-bubble/attio/attio.schema.d.ts +28 -28
  27. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +30 -30
  28. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +32 -32
  29. package/dist/bubbles/service-bubble/capability-pipeline.d.ts.map +1 -1
  30. package/dist/bubbles/service-bubble/capability-pipeline.js +8 -4
  31. package/dist/bubbles/service-bubble/capability-pipeline.js.map +1 -1
  32. package/dist/bubbles/service-bubble/confluence/confluence.d.ts +38 -38
  33. package/dist/bubbles/service-bubble/confluence/confluence.schema.d.ts +24 -24
  34. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +52 -52
  35. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +158 -158
  36. package/dist/bubbles/service-bubble/eleven-labs.d.ts +32 -32
  37. package/dist/bubbles/service-bubble/firecrawl.d.ts +826 -826
  38. package/dist/bubbles/service-bubble/followupboss.d.ts +196 -196
  39. package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +68 -68
  40. package/dist/bubbles/service-bubble/fullenrich/fullenrich.schema.d.ts +108 -108
  41. package/dist/bubbles/service-bubble/github.d.ts +190 -190
  42. package/dist/bubbles/service-bubble/gmail.d.ts +148 -148
  43. package/dist/bubbles/service-bubble/google-calendar.d.ts +218 -218
  44. package/dist/bubbles/service-bubble/google-drive.d.ts +92 -92
  45. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +44 -44
  46. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts +48 -48
  47. package/dist/bubbles/service-bubble/hello-world.d.ts +8 -8
  48. package/dist/bubbles/service-bubble/http.d.ts +20 -20
  49. package/dist/bubbles/service-bubble/hubspot/hubspot.d.ts +78 -78
  50. package/dist/bubbles/service-bubble/hubspot/hubspot.schema.d.ts +46 -46
  51. package/dist/bubbles/service-bubble/insforge-db.d.ts +12 -12
  52. package/dist/bubbles/service-bubble/jira/jira.d.ts +65 -65
  53. package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +94 -94
  54. package/dist/bubbles/service-bubble/linear/linear.d.ts +35 -35
  55. package/dist/bubbles/service-bubble/linear/linear.schema.d.ts +32 -32
  56. package/dist/bubbles/service-bubble/notion/notion.d.ts +818 -818
  57. package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +8 -8
  58. package/dist/bubbles/service-bubble/postgresql.d.ts +12 -12
  59. package/dist/bubbles/service-bubble/posthog/posthog.d.ts +26 -26
  60. package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts +26 -26
  61. package/dist/bubbles/service-bubble/ramp/ramp.d.ts +28 -28
  62. package/dist/bubbles/service-bubble/ramp/ramp.schema.d.ts +28 -28
  63. package/dist/bubbles/service-bubble/resend.d.ts +28 -28
  64. package/dist/bubbles/service-bubble/s3/s3.d.ts +12 -12
  65. package/dist/bubbles/service-bubble/s3/s3.schema.d.ts +10 -10
  66. package/dist/bubbles/service-bubble/sendsafely/sendsafely.d.ts +6 -6
  67. package/dist/bubbles/service-bubble/sendsafely/sendsafely.schema.d.ts +12 -12
  68. package/dist/bubbles/service-bubble/slab/slab.d.ts +24 -24
  69. package/dist/bubbles/service-bubble/slab/slab.schema.d.ts +44 -44
  70. package/dist/bubbles/service-bubble/slack/slack.d.ts +418 -418
  71. package/dist/bubbles/service-bubble/storage.d.ts +24 -24
  72. package/dist/bubbles/service-bubble/stripe/stripe.d.ts +146 -146
  73. package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +179 -179
  74. package/dist/bubbles/service-bubble/telegram.d.ts +1540 -1540
  75. package/dist/bubbles/service-bubble/xero/xero.d.ts +28 -28
  76. package/dist/bubbles/service-bubble/xero/xero.schema.d.ts +28 -28
  77. package/dist/bubbles/service-bubble/zendesk/zendesk.d.ts +119 -119
  78. package/dist/bubbles/service-bubble/zendesk/zendesk.schema.d.ts +103 -103
  79. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +15 -15
  80. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +13 -13
  81. package/dist/bubbles/tool-bubble/app-rankings-tool.d.ts +24 -24
  82. package/dist/bubbles/tool-bubble/browser-tools/_shared/schema.d.ts +2 -2
  83. package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/schema.d.ts +2 -2
  84. package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/tool.d.ts +2 -2
  85. package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/schema.d.ts +2 -2
  86. package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.d.ts +2 -2
  87. package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/schema.d.ts +2 -2
  88. package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.d.ts +2 -2
  89. package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/schema.d.ts +2 -2
  90. package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.d.ts +2 -2
  91. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +20 -20
  92. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +26 -26
  93. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +4 -4
  94. package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +52 -52
  95. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +4 -4
  96. package/dist/bubbles/tool-bubble/get-trigger-detail-tool.d.ts +4 -4
  97. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +4 -4
  98. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +14 -14
  99. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +234 -234
  100. package/dist/bubbles/tool-bubble/list-airtable-bases-tool.d.ts +4 -4
  101. package/dist/bubbles/tool-bubble/list-airtable-tables-tool.d.ts +4 -4
  102. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
  103. package/dist/bubbles/tool-bubble/list-capabilities-tool.d.ts +8 -8
  104. package/dist/bubbles/tool-bubble/people-search-tool.d.ts +48 -48
  105. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +32 -32
  106. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +8 -8
  107. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
  108. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +28 -28
  109. package/dist/bubbles/tool-bubble/tool-template.d.ts +4 -4
  110. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +82 -82
  111. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +18 -18
  112. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +4 -4
  113. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +4 -4
  114. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +14 -14
  115. package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +18 -18
  116. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +8 -8
  117. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
  118. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +28 -28
  119. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +8 -8
  120. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +120 -120
  121. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +16 -16
  122. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +34 -34
  123. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +86 -86
  124. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +8 -8
  125. package/dist/bubbles.json +1 -1
  126. 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;
@@ -246,13 +246,13 @@ declare const AIAgentParamsSchema: z.ZodObject<{
246
246
  memoryEnabled: boolean;
247
247
  enableSlackHistory: boolean;
248
248
  name?: string | undefined;
249
- credentials?: Partial<Record<CredentialType, string>> | undefined;
250
249
  conversationHistory?: {
251
250
  role: "user" | "assistant" | "tool";
252
251
  content: string;
253
252
  toolCallId?: string | undefined;
254
253
  name?: string | undefined;
255
254
  }[] | undefined;
255
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
256
256
  customTools?: {
257
257
  description: string;
258
258
  name: string;
@@ -274,12 +274,11 @@ declare const AIAgentParamsSchema: z.ZodObject<{
274
274
  }, {
275
275
  message: string;
276
276
  name?: string | undefined;
277
- credentials?: Partial<Record<CredentialType, string>> | undefined;
278
277
  images?: ({
279
278
  data: string;
280
279
  type?: "base64" | undefined;
281
- description?: string | undefined;
282
280
  mimeType?: string | undefined;
281
+ description?: string | undefined;
283
282
  } | {
284
283
  type: "url";
285
284
  url: string;
@@ -308,6 +307,7 @@ declare const AIAgentParamsSchema: z.ZodObject<{
308
307
  maxRetries?: number | undefined;
309
308
  } | undefined;
310
309
  } | undefined;
310
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
311
311
  tools?: {
312
312
  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" | "app-rankings-tool" | "youtube-tool" | "amazon-shopping-tool" | "people-search-tool";
313
313
  credentials?: Partial<Record<CredentialType, string>> | undefined;
@@ -357,8 +357,6 @@ declare const AIAgentResultSchema: z.ZodObject<{
357
357
  error: z.ZodString;
358
358
  success: z.ZodBoolean;
359
359
  }, "strip", z.ZodTypeAny, {
360
- success: boolean;
361
- error: string;
362
360
  response: string;
363
361
  toolCalls: {
364
362
  tool: string;
@@ -366,11 +364,11 @@ declare const AIAgentResultSchema: z.ZodObject<{
366
364
  output?: unknown;
367
365
  }[];
368
366
  iterations: number;
367
+ error: string;
368
+ success: boolean;
369
369
  reasoning?: string | null | undefined;
370
370
  totalCost?: number | undefined;
371
371
  }, {
372
- success: boolean;
373
- error: string;
374
372
  response: string;
375
373
  toolCalls: {
376
374
  tool: string;
@@ -378,6 +376,8 @@ declare const AIAgentResultSchema: z.ZodObject<{
378
376
  output?: unknown;
379
377
  }[];
380
378
  iterations: number;
379
+ error: string;
380
+ success: boolean;
381
381
  reasoning?: string | null | undefined;
382
382
  totalCost?: number | undefined;
383
383
  }>;
@@ -414,8 +414,8 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
414
414
  }, {
415
415
  data: string;
416
416
  type?: "base64" | undefined;
417
- description?: string | undefined;
418
417
  mimeType?: string | undefined;
418
+ description?: string | undefined;
419
419
  }>, z.ZodObject<{
420
420
  type: z.ZodLiteral<"url">;
421
421
  url: z.ZodString;
@@ -608,13 +608,13 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
608
608
  memoryEnabled: boolean;
609
609
  enableSlackHistory: boolean;
610
610
  name?: string | undefined;
611
- credentials?: Partial<Record<CredentialType, string>> | undefined;
612
611
  conversationHistory?: {
613
612
  role: "user" | "assistant" | "tool";
614
613
  content: string;
615
614
  toolCallId?: string | undefined;
616
615
  name?: string | undefined;
617
616
  }[] | undefined;
617
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
618
618
  customTools?: {
619
619
  description: string;
620
620
  name: string;
@@ -636,12 +636,11 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
636
636
  }, {
637
637
  message: string;
638
638
  name?: string | undefined;
639
- credentials?: Partial<Record<CredentialType, string>> | undefined;
640
639
  images?: ({
641
640
  data: string;
642
641
  type?: "base64" | undefined;
643
- description?: string | undefined;
644
642
  mimeType?: string | undefined;
643
+ description?: string | undefined;
645
644
  } | {
646
645
  type: "url";
647
646
  url: string;
@@ -670,6 +669,7 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
670
669
  maxRetries?: number | undefined;
671
670
  } | undefined;
672
671
  } | undefined;
672
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
673
673
  tools?: {
674
674
  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" | "app-rankings-tool" | "youtube-tool" | "amazon-shopping-tool" | "people-search-tool";
675
675
  credentials?: Partial<Record<CredentialType, string>> | undefined;
@@ -719,8 +719,6 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
719
719
  error: z.ZodString;
720
720
  success: z.ZodBoolean;
721
721
  }, "strip", z.ZodTypeAny, {
722
- success: boolean;
723
- error: string;
724
722
  response: string;
725
723
  toolCalls: {
726
724
  tool: string;
@@ -728,11 +726,11 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
728
726
  output?: unknown;
729
727
  }[];
730
728
  iterations: number;
729
+ error: string;
730
+ success: boolean;
731
731
  reasoning?: string | null | undefined;
732
732
  totalCost?: number | undefined;
733
733
  }, {
734
- success: boolean;
735
- error: string;
736
734
  response: string;
737
735
  toolCalls: {
738
736
  tool: string;
@@ -740,6 +738,8 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
740
738
  output?: unknown;
741
739
  }[];
742
740
  iterations: number;
741
+ error: string;
742
+ success: boolean;
743
743
  reasoning?: string | null | undefined;
744
744
  totalCost?: number | undefined;
745
745
  }>;
@@ -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;AAwBtE,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,aAAa,GAAG,CAC1B,OAAO,EAAE,eAAe,KACrB,OAAO,CAAC;IAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;IAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAEhE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,eA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AAC;IAW/C;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAmBxB;;OAEG;YACW,gBAAgB;IAkC9B;;OAEG;cACsB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;cAiTtC,aAAa,CAC3B,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,aAAa,CAAC;IA4DzB;;;OAGG;IACH,OAAO,CAAC,2BAA2B;IAgDnC,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;IAof7B;;;;OAIG;IACH,OAAO,CAAC,4BAA4B;IAgCpC;;;;OAIG;IACH,OAAO,CAAC,yBAAyB;IAgDjC;;;OAGG;IACH,OAAO,CAAC,eAAe;IAuDvB;;OAEG;YACW,qBAAqB;YA6RrB,gBAAgB;YA8ahB,YAAY;CAmwB3B"}
@@ -1184,9 +1184,9 @@ export class AIAgentBubble extends ServiceBubble {
1184
1184
  .string()
1185
1185
  .describe('Clear description of what to do. Include any relevant context from the conversation. Always include information about the users timezone and current time.'),
1186
1186
  credentials: z
1187
- .record(z.nativeEnum(CredentialType), z.number())
1187
+ .record(z.nativeEnum(CredentialType), z.union([z.string(), z.number()]))
1188
1188
  .optional()
1189
- .describe('Optional: map credential type to credential ID to select a specific account. Only needed when multiple credentials of the same type are available. If omitted, the default credential is used.'),
1189
+ .describe('Optional: map credential type to the account name (e.g. "bubblelab-team") to select a specific account. Only needed when multiple credentials of the same type are available. If omitted, the default credential is used.'),
1190
1190
  }),
1191
1191
  func: async (input) => {
1192
1192
  const capabilityId = input.capabilityId;
@@ -1203,9 +1203,30 @@ export class AIAgentBubble extends ServiceBubble {
1203
1203
  if (credentialOverrides &&
1204
1204
  this.params.credentialPool &&
1205
1205
  subAgentCredentials) {
1206
- for (const [credType, credId] of Object.entries(credentialOverrides)) {
1206
+ for (const [credType, credSelector] of Object.entries(credentialOverrides)) {
1207
1207
  const pool = this.params.credentialPool[credType];
1208
- const match = pool?.find((c) => c.id === credId);
1208
+ if (!pool)
1209
+ continue;
1210
+ // Match by name first (string), fall back to ID (number)
1211
+ let match;
1212
+ if (typeof credSelector === 'string') {
1213
+ const sel = credSelector.toLowerCase();
1214
+ // Exact match first, then substring (handles "email (label)" format)
1215
+ match = pool.find((c) => c.name.toLowerCase() === sel);
1216
+ if (!match) {
1217
+ match = pool.find((c) => c.name.toLowerCase().includes(sel));
1218
+ }
1219
+ }
1220
+ if (!match && typeof credSelector === 'number') {
1221
+ match = pool.find((c) => c.id === credSelector);
1222
+ }
1223
+ // Also try parsing string as number for ID fallback
1224
+ if (!match && typeof credSelector === 'string') {
1225
+ const asNum = Number(credSelector);
1226
+ if (!Number.isNaN(asNum)) {
1227
+ match = pool.find((c) => c.id === asNum);
1228
+ }
1229
+ }
1209
1230
  if (match) {
1210
1231
  subAgentCredentials[credType] = match.value;
1211
1232
  }
@@ -1253,7 +1274,7 @@ export class AIAgentBubble extends ServiceBubble {
1253
1274
  return { success: true, response: result.data?.response };
1254
1275
  },
1255
1276
  }));
1256
- console.log(`🔧 [AIAgent] Multi-capability delegation mode: registered use-capability tool for [${capIds.join(', ')}]`);
1277
+ console.debug(`🔧 [AIAgent] Multi-capability delegation mode: registered use-capability tool for [${capIds.join(', ')}]`);
1257
1278
  }
1258
1279
  else {
1259
1280
  // Single capability or none: register tools directly as before