@bubblelab/bubble-core 0.1.237 → 0.1.239
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 +147 -126
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +3 -0
- package/dist/bubble-factory.js.map +1 -1
- package/dist/bubbles/service-bubble/agi-inc.d.ts +20 -20
- package/dist/bubbles/service-bubble/ai-agent.d.ts +128 -82
- package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.js +30 -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/app-rankings-scraper.d.ts +84 -0
- package/dist/bubbles/service-bubble/apify/actors/app-rankings-scraper.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/app-rankings-scraper.js +214 -0
- package/dist/bubbles/service-bubble/apify/actors/app-rankings-scraper.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts +2 -2
- 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 +4 -4
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +2 -2
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +95 -10
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js +8 -0
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js.map +1 -1
- package/dist/bubbles/service-bubble/apify/apify.d.ts +23 -23
- package/dist/bubbles/service-bubble/apify/apify.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/apify/apify.js +2 -1
- package/dist/bubbles/service-bubble/apify/apify.js.map +1 -1
- package/dist/bubbles/service-bubble/apify/index.d.ts +1 -0
- package/dist/bubbles/service-bubble/apify/index.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/apify/index.js +2 -0
- package/dist/bubbles/service-bubble/apify/index.js.map +1 -1
- 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 +2 -2
- package/dist/bubbles/service-bubble/attio/attio.d.ts +2 -2
- package/dist/bubbles/service-bubble/attio/attio.schema.d.ts +2 -2
- 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/capability-pipeline.d.ts +2 -2
- package/dist/bubbles/service-bubble/capability-pipeline.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/capability-pipeline.js +18 -1
- package/dist/bubbles/service-bubble/capability-pipeline.js.map +1 -1
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +8 -8
- package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +16 -16
- package/dist/bubbles/service-bubble/firecrawl.d.ts +346 -346
- 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 +36 -36
- package/dist/bubbles/service-bubble/http.d.ts +2 -2
- package/dist/bubbles/service-bubble/hubspot/hubspot.d.ts +2 -2
- package/dist/bubbles/service-bubble/hubspot/hubspot.schema.d.ts +2 -2
- package/dist/bubbles/service-bubble/insforge-db.d.ts +8 -8
- package/dist/bubbles/service-bubble/jira/jira.d.ts +42 -42
- package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +50 -50
- package/dist/bubbles/service-bubble/notion/notion.d.ts +848 -848
- 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/slack/slack.d.ts +238 -238
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts +46 -46
- package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +52 -52
- package/dist/bubbles/service-bubble/xero/xero.d.ts +2 -2
- package/dist/bubbles/service-bubble/xero/xero.schema.d.ts +2 -2
- package/dist/bubbles/service-bubble/zendesk/zendesk.d.ts +20 -20
- package/dist/bubbles/service-bubble/zendesk/zendesk.schema.d.ts +20 -20
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/app-rankings-tool.d.ts +285 -0
- package/dist/bubbles/tool-bubble/app-rankings-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/app-rankings-tool.js +230 -0
- package/dist/bubbles/tool-bubble/app-rankings-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/browser-tools/_shared/schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +10 -10
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +334 -334
- package/dist/bubbles/tool-bubble/people-search-tool.d.ts +34 -34
- 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 +52 -52
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +124 -124
- 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-ocr.workflow.d.ts +16 -16
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +2 -2
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +34 -34
- package/dist/bubbles.json +279 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/types/available-tools.d.ts +1 -1
- package/dist/types/available-tools.d.ts.map +1 -1
- package/dist/types/available-tools.js +1 -0
- package/dist/types/available-tools.js.map +1 -1
- package/package.json +2 -2
|
@@ -144,15 +144,15 @@ declare const AIAgentParamsSchema: z.ZodObject<{
|
|
|
144
144
|
} | undefined;
|
|
145
145
|
}>>;
|
|
146
146
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
147
|
-
name: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "instagram-tool", "list-bubbles-tool", "list-capabilities-tool", "get-bubble-details-tool", "get-trigger-detail-tool", "bubbleflow-validation-tool", "code-edit-tool", "chart-js-tool", "amazon-shopping-tool", "linkedin-tool", "tiktok-tool", "twitter-tool", "google-maps-tool", "youtube-tool", "people-search-tool", "sql-query-tool"]>;
|
|
147
|
+
name: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "instagram-tool", "list-bubbles-tool", "list-capabilities-tool", "get-bubble-details-tool", "get-trigger-detail-tool", "bubbleflow-validation-tool", "code-edit-tool", "chart-js-tool", "amazon-shopping-tool", "linkedin-tool", "tiktok-tool", "twitter-tool", "google-maps-tool", "app-rankings-tool", "youtube-tool", "people-search-tool", "sql-query-tool"]>;
|
|
148
148
|
credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>;
|
|
149
149
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
150
150
|
}, "strip", z.ZodTypeAny, {
|
|
151
|
-
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";
|
|
151
|
+
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";
|
|
152
152
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
153
153
|
config?: Record<string, unknown> | undefined;
|
|
154
154
|
}, {
|
|
155
|
-
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";
|
|
155
|
+
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";
|
|
156
156
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
157
157
|
config?: Record<string, unknown> | undefined;
|
|
158
158
|
}>, "many">>;
|
|
@@ -164,16 +164,29 @@ declare const AIAgentParamsSchema: z.ZodObject<{
|
|
|
164
164
|
}, "strip", z.ZodTypeAny, {
|
|
165
165
|
description: string;
|
|
166
166
|
name: string;
|
|
167
|
-
schema:
|
|
167
|
+
schema: Record<string, unknown> | z.ZodTypeAny;
|
|
168
168
|
func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
|
|
169
169
|
}, {
|
|
170
170
|
description: string;
|
|
171
171
|
name: string;
|
|
172
|
-
schema:
|
|
172
|
+
schema: Record<string, unknown> | z.ZodTypeAny;
|
|
173
173
|
func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
|
|
174
174
|
}>, "many">>>;
|
|
175
175
|
maxIterations: z.ZodDefault<z.ZodNumber>;
|
|
176
176
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
177
|
+
credentialPool: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodArray<z.ZodObject<{
|
|
178
|
+
id: z.ZodNumber;
|
|
179
|
+
name: z.ZodString;
|
|
180
|
+
value: z.ZodString;
|
|
181
|
+
}, "strip", z.ZodTypeAny, {
|
|
182
|
+
value: string;
|
|
183
|
+
name: string;
|
|
184
|
+
id: number;
|
|
185
|
+
}, {
|
|
186
|
+
value: string;
|
|
187
|
+
name: string;
|
|
188
|
+
id: number;
|
|
189
|
+
}>, "many">>>;
|
|
177
190
|
streaming: z.ZodDefault<z.ZodBoolean>;
|
|
178
191
|
capabilities: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
179
192
|
id: z.ZodString;
|
|
@@ -196,17 +209,6 @@ declare const AIAgentParamsSchema: z.ZodObject<{
|
|
|
196
209
|
enableSlackHistory: z.ZodDefault<z.ZodBoolean>;
|
|
197
210
|
}, "strip", z.ZodTypeAny, {
|
|
198
211
|
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;
|
|
210
212
|
model: {
|
|
211
213
|
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" | "google/gemini-3.1-flash-lite-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";
|
|
212
214
|
temperature: number;
|
|
@@ -223,29 +225,45 @@ declare const AIAgentParamsSchema: z.ZodObject<{
|
|
|
223
225
|
maxRetries?: number | undefined;
|
|
224
226
|
} | undefined;
|
|
225
227
|
};
|
|
228
|
+
streaming: boolean;
|
|
226
229
|
tools: {
|
|
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";
|
|
230
|
+
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";
|
|
228
231
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
229
232
|
config?: Record<string, unknown> | undefined;
|
|
230
233
|
}[];
|
|
234
|
+
images: ({
|
|
235
|
+
type: "base64";
|
|
236
|
+
data: string;
|
|
237
|
+
mimeType: string;
|
|
238
|
+
description?: string | undefined;
|
|
239
|
+
} | {
|
|
240
|
+
type: "url";
|
|
241
|
+
url: string;
|
|
242
|
+
description?: string | undefined;
|
|
243
|
+
})[];
|
|
244
|
+
systemPrompt: string;
|
|
231
245
|
maxIterations: number;
|
|
232
|
-
streaming: boolean;
|
|
233
246
|
memoryEnabled: boolean;
|
|
234
247
|
enableSlackHistory: boolean;
|
|
235
248
|
name?: string | undefined;
|
|
249
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
236
250
|
conversationHistory?: {
|
|
237
251
|
role: "user" | "assistant" | "tool";
|
|
238
252
|
content: string;
|
|
239
253
|
toolCallId?: string | undefined;
|
|
240
254
|
name?: string | undefined;
|
|
241
255
|
}[] | undefined;
|
|
242
|
-
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
243
256
|
customTools?: {
|
|
244
257
|
description: string;
|
|
245
258
|
name: string;
|
|
246
|
-
schema:
|
|
259
|
+
schema: Record<string, unknown> | z.ZodTypeAny;
|
|
247
260
|
func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
|
|
248
261
|
}[] | undefined;
|
|
262
|
+
credentialPool?: Partial<Record<CredentialType, {
|
|
263
|
+
value: string;
|
|
264
|
+
name: string;
|
|
265
|
+
id: number;
|
|
266
|
+
}[]>> | undefined;
|
|
249
267
|
capabilities?: {
|
|
250
268
|
id: string;
|
|
251
269
|
inputs: Record<string, string | number | boolean | string[]>;
|
|
@@ -256,23 +274,7 @@ declare const AIAgentParamsSchema: z.ZodObject<{
|
|
|
256
274
|
}, {
|
|
257
275
|
message: string;
|
|
258
276
|
name?: string | undefined;
|
|
259
|
-
|
|
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;
|
|
277
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
276
278
|
model?: {
|
|
277
279
|
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" | "google/gemini-3.1-flash-lite-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";
|
|
278
280
|
temperature?: number | undefined;
|
|
@@ -289,20 +291,41 @@ declare const AIAgentParamsSchema: z.ZodObject<{
|
|
|
289
291
|
maxRetries?: number | undefined;
|
|
290
292
|
} | undefined;
|
|
291
293
|
} | undefined;
|
|
292
|
-
|
|
294
|
+
streaming?: boolean | undefined;
|
|
293
295
|
tools?: {
|
|
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";
|
|
296
|
+
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";
|
|
295
297
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
296
298
|
config?: Record<string, unknown> | undefined;
|
|
297
299
|
}[] | undefined;
|
|
300
|
+
images?: ({
|
|
301
|
+
data: string;
|
|
302
|
+
type?: "base64" | undefined;
|
|
303
|
+
description?: string | undefined;
|
|
304
|
+
mimeType?: string | undefined;
|
|
305
|
+
} | {
|
|
306
|
+
type: "url";
|
|
307
|
+
url: string;
|
|
308
|
+
description?: string | undefined;
|
|
309
|
+
})[] | undefined;
|
|
310
|
+
conversationHistory?: {
|
|
311
|
+
role: "user" | "assistant" | "tool";
|
|
312
|
+
content: string;
|
|
313
|
+
toolCallId?: string | undefined;
|
|
314
|
+
name?: string | undefined;
|
|
315
|
+
}[] | undefined;
|
|
316
|
+
systemPrompt?: string | undefined;
|
|
298
317
|
customTools?: {
|
|
299
318
|
description: string;
|
|
300
319
|
name: string;
|
|
301
|
-
schema:
|
|
320
|
+
schema: Record<string, unknown> | z.ZodTypeAny;
|
|
302
321
|
func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
|
|
303
322
|
}[] | undefined;
|
|
304
323
|
maxIterations?: number | undefined;
|
|
305
|
-
|
|
324
|
+
credentialPool?: Partial<Record<CredentialType, {
|
|
325
|
+
value: string;
|
|
326
|
+
name: string;
|
|
327
|
+
id: number;
|
|
328
|
+
}[]>> | undefined;
|
|
306
329
|
capabilities?: {
|
|
307
330
|
id: string;
|
|
308
331
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
@@ -483,15 +506,15 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
|
|
|
483
506
|
} | undefined;
|
|
484
507
|
}>>;
|
|
485
508
|
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
486
|
-
name: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "instagram-tool", "list-bubbles-tool", "list-capabilities-tool", "get-bubble-details-tool", "get-trigger-detail-tool", "bubbleflow-validation-tool", "code-edit-tool", "chart-js-tool", "amazon-shopping-tool", "linkedin-tool", "tiktok-tool", "twitter-tool", "google-maps-tool", "youtube-tool", "people-search-tool", "sql-query-tool"]>;
|
|
509
|
+
name: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "instagram-tool", "list-bubbles-tool", "list-capabilities-tool", "get-bubble-details-tool", "get-trigger-detail-tool", "bubbleflow-validation-tool", "code-edit-tool", "chart-js-tool", "amazon-shopping-tool", "linkedin-tool", "tiktok-tool", "twitter-tool", "google-maps-tool", "app-rankings-tool", "youtube-tool", "people-search-tool", "sql-query-tool"]>;
|
|
487
510
|
credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>;
|
|
488
511
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
489
512
|
}, "strip", z.ZodTypeAny, {
|
|
490
|
-
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";
|
|
513
|
+
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";
|
|
491
514
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
492
515
|
config?: Record<string, unknown> | undefined;
|
|
493
516
|
}, {
|
|
494
|
-
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";
|
|
517
|
+
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";
|
|
495
518
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
496
519
|
config?: Record<string, unknown> | undefined;
|
|
497
520
|
}>, "many">>;
|
|
@@ -503,16 +526,29 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
|
|
|
503
526
|
}, "strip", z.ZodTypeAny, {
|
|
504
527
|
description: string;
|
|
505
528
|
name: string;
|
|
506
|
-
schema:
|
|
529
|
+
schema: Record<string, unknown> | z.ZodTypeAny;
|
|
507
530
|
func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
|
|
508
531
|
}, {
|
|
509
532
|
description: string;
|
|
510
533
|
name: string;
|
|
511
|
-
schema:
|
|
534
|
+
schema: Record<string, unknown> | z.ZodTypeAny;
|
|
512
535
|
func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
|
|
513
536
|
}>, "many">>>;
|
|
514
537
|
maxIterations: z.ZodDefault<z.ZodNumber>;
|
|
515
538
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
539
|
+
credentialPool: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodArray<z.ZodObject<{
|
|
540
|
+
id: z.ZodNumber;
|
|
541
|
+
name: z.ZodString;
|
|
542
|
+
value: z.ZodString;
|
|
543
|
+
}, "strip", z.ZodTypeAny, {
|
|
544
|
+
value: string;
|
|
545
|
+
name: string;
|
|
546
|
+
id: number;
|
|
547
|
+
}, {
|
|
548
|
+
value: string;
|
|
549
|
+
name: string;
|
|
550
|
+
id: number;
|
|
551
|
+
}>, "many">>>;
|
|
516
552
|
streaming: z.ZodDefault<z.ZodBoolean>;
|
|
517
553
|
capabilities: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
518
554
|
id: z.ZodString;
|
|
@@ -535,17 +571,6 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
|
|
|
535
571
|
enableSlackHistory: z.ZodDefault<z.ZodBoolean>;
|
|
536
572
|
}, "strip", z.ZodTypeAny, {
|
|
537
573
|
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;
|
|
549
574
|
model: {
|
|
550
575
|
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" | "google/gemini-3.1-flash-lite-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";
|
|
551
576
|
temperature: number;
|
|
@@ -562,29 +587,45 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
|
|
|
562
587
|
maxRetries?: number | undefined;
|
|
563
588
|
} | undefined;
|
|
564
589
|
};
|
|
590
|
+
streaming: boolean;
|
|
565
591
|
tools: {
|
|
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";
|
|
592
|
+
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";
|
|
567
593
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
568
594
|
config?: Record<string, unknown> | undefined;
|
|
569
595
|
}[];
|
|
596
|
+
images: ({
|
|
597
|
+
type: "base64";
|
|
598
|
+
data: string;
|
|
599
|
+
mimeType: string;
|
|
600
|
+
description?: string | undefined;
|
|
601
|
+
} | {
|
|
602
|
+
type: "url";
|
|
603
|
+
url: string;
|
|
604
|
+
description?: string | undefined;
|
|
605
|
+
})[];
|
|
606
|
+
systemPrompt: string;
|
|
570
607
|
maxIterations: number;
|
|
571
|
-
streaming: boolean;
|
|
572
608
|
memoryEnabled: boolean;
|
|
573
609
|
enableSlackHistory: boolean;
|
|
574
610
|
name?: string | undefined;
|
|
611
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
575
612
|
conversationHistory?: {
|
|
576
613
|
role: "user" | "assistant" | "tool";
|
|
577
614
|
content: string;
|
|
578
615
|
toolCallId?: string | undefined;
|
|
579
616
|
name?: string | undefined;
|
|
580
617
|
}[] | undefined;
|
|
581
|
-
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
582
618
|
customTools?: {
|
|
583
619
|
description: string;
|
|
584
620
|
name: string;
|
|
585
|
-
schema:
|
|
621
|
+
schema: Record<string, unknown> | z.ZodTypeAny;
|
|
586
622
|
func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
|
|
587
623
|
}[] | undefined;
|
|
624
|
+
credentialPool?: Partial<Record<CredentialType, {
|
|
625
|
+
value: string;
|
|
626
|
+
name: string;
|
|
627
|
+
id: number;
|
|
628
|
+
}[]>> | undefined;
|
|
588
629
|
capabilities?: {
|
|
589
630
|
id: string;
|
|
590
631
|
inputs: Record<string, string | number | boolean | string[]>;
|
|
@@ -595,23 +636,7 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
|
|
|
595
636
|
}, {
|
|
596
637
|
message: string;
|
|
597
638
|
name?: string | undefined;
|
|
598
|
-
|
|
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;
|
|
639
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
615
640
|
model?: {
|
|
616
641
|
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" | "google/gemini-3.1-flash-lite-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";
|
|
617
642
|
temperature?: number | undefined;
|
|
@@ -628,20 +653,41 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
|
|
|
628
653
|
maxRetries?: number | undefined;
|
|
629
654
|
} | undefined;
|
|
630
655
|
} | undefined;
|
|
631
|
-
|
|
656
|
+
streaming?: boolean | undefined;
|
|
632
657
|
tools?: {
|
|
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";
|
|
658
|
+
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";
|
|
634
659
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
635
660
|
config?: Record<string, unknown> | undefined;
|
|
636
661
|
}[] | undefined;
|
|
662
|
+
images?: ({
|
|
663
|
+
data: string;
|
|
664
|
+
type?: "base64" | undefined;
|
|
665
|
+
description?: string | undefined;
|
|
666
|
+
mimeType?: string | undefined;
|
|
667
|
+
} | {
|
|
668
|
+
type: "url";
|
|
669
|
+
url: string;
|
|
670
|
+
description?: string | undefined;
|
|
671
|
+
})[] | undefined;
|
|
672
|
+
conversationHistory?: {
|
|
673
|
+
role: "user" | "assistant" | "tool";
|
|
674
|
+
content: string;
|
|
675
|
+
toolCallId?: string | undefined;
|
|
676
|
+
name?: string | undefined;
|
|
677
|
+
}[] | undefined;
|
|
678
|
+
systemPrompt?: string | undefined;
|
|
637
679
|
customTools?: {
|
|
638
680
|
description: string;
|
|
639
681
|
name: string;
|
|
640
|
-
schema:
|
|
682
|
+
schema: Record<string, unknown> | z.ZodTypeAny;
|
|
641
683
|
func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
|
|
642
684
|
}[] | undefined;
|
|
643
685
|
maxIterations?: number | undefined;
|
|
644
|
-
|
|
686
|
+
credentialPool?: Partial<Record<CredentialType, {
|
|
687
|
+
value: string;
|
|
688
|
+
name: string;
|
|
689
|
+
id: number;
|
|
690
|
+
}[]>> | undefined;
|
|
645
691
|
capabilities?: {
|
|
646
692
|
id: string;
|
|
647
693
|
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,EAE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AC,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;IAsd7B;;;;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"}
|
|
@@ -219,6 +219,14 @@ const AIAgentParamsSchema = z.object({
|
|
|
219
219
|
.record(z.nativeEnum(CredentialType), z.string())
|
|
220
220
|
.optional()
|
|
221
221
|
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
222
|
+
credentialPool: z
|
|
223
|
+
.record(z.nativeEnum(CredentialType), z.array(z.object({
|
|
224
|
+
id: z.number(),
|
|
225
|
+
name: z.string(),
|
|
226
|
+
value: z.string(),
|
|
227
|
+
})))
|
|
228
|
+
.optional()
|
|
229
|
+
.describe('All available credentials per type with metadata. Used by master agent for delegation credential selection.'),
|
|
222
230
|
streaming: z
|
|
223
231
|
.boolean()
|
|
224
232
|
.default(false)
|
|
@@ -417,7 +425,7 @@ export class AIAgentBubble extends ServiceBubble {
|
|
|
417
425
|
});
|
|
418
426
|
this.params.systemPrompt = `${this.params.systemPrompt}\n\n**System time (UTC):** ${now}\nIMPORTANT: The system time above is in UTC. Always interpret and present times from the user's perspective and timezone. If the user's timezone is known (from conversation history, user profile, or context), convert all times accordingly. If unknown, ask the user for their timezone before making time-sensitive decisions.`;
|
|
419
427
|
// Apply capability model overrides and system prompt injections
|
|
420
|
-
await applyCapabilityPreprocessing(this.params, this.context, this.resolveCapabilityCredentials.bind(this));
|
|
428
|
+
await applyCapabilityPreprocessing(this.params, this.context, this.resolveCapabilityCredentials.bind(this), this.params.credentialPool);
|
|
421
429
|
// Extract execution metadata (used for conversation history + agent memory)
|
|
422
430
|
const execMeta = this.context?.executionMeta;
|
|
423
431
|
// Memory injection — tools, prompt, and reflection are built externally (Pro)
|
|
@@ -1175,14 +1183,34 @@ export class AIAgentBubble extends ServiceBubble {
|
|
|
1175
1183
|
task: z
|
|
1176
1184
|
.string()
|
|
1177
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
|
+
credentials: z
|
|
1187
|
+
.record(z.nativeEnum(CredentialType), z.number())
|
|
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.'),
|
|
1178
1190
|
}),
|
|
1179
1191
|
func: async (input) => {
|
|
1180
1192
|
const capabilityId = input.capabilityId;
|
|
1181
1193
|
const task = input.task;
|
|
1194
|
+
const credentialOverrides = input.credentials;
|
|
1182
1195
|
const capConfig = caps.find((c) => c.id === capabilityId);
|
|
1183
1196
|
const capDef = getCapability(capabilityId);
|
|
1184
1197
|
if (!capConfig || !capDef)
|
|
1185
1198
|
return { error: `Capability "${capabilityId}" not found` };
|
|
1199
|
+
// Resolve credential overrides from the credential pool
|
|
1200
|
+
const subAgentCredentials = this.params.credentials
|
|
1201
|
+
? { ...this.params.credentials }
|
|
1202
|
+
: undefined;
|
|
1203
|
+
if (credentialOverrides &&
|
|
1204
|
+
this.params.credentialPool &&
|
|
1205
|
+
subAgentCredentials) {
|
|
1206
|
+
for (const [credType, credId] of Object.entries(credentialOverrides)) {
|
|
1207
|
+
const pool = this.params.credentialPool[credType];
|
|
1208
|
+
const match = pool?.find((c) => c.id === credId);
|
|
1209
|
+
if (match) {
|
|
1210
|
+
subAgentCredentials[credType] = match.value;
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1186
1214
|
// Snapshot master agent state before delegation so that the
|
|
1187
1215
|
// subagent's beforeToolCall hook can save both states if an
|
|
1188
1216
|
// approval interrupt is triggered (fixes multi-cap state leak).
|
|
@@ -1206,7 +1234,7 @@ export class AIAgentBubble extends ServiceBubble {
|
|
|
1206
1234
|
name: `Capability Agent: ${capDef.metadata.name}`,
|
|
1207
1235
|
model: { ...this.params.model },
|
|
1208
1236
|
capabilities: [capConfig], // single cap = eager load in sub-agent
|
|
1209
|
-
credentials:
|
|
1237
|
+
credentials: subAgentCredentials,
|
|
1210
1238
|
}, this.context, `capability-${capabilityId}`);
|
|
1211
1239
|
const result = await subAgent.action();
|
|
1212
1240
|
// Clean up snapshot after delegation completes
|