@bubblelab/bubble-core 0.1.180 → 0.1.181
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 +97 -96
- package/dist/bubbles/service-bubble/agi-inc.d.ts +20 -20
- package/dist/bubbles/service-bubble/ai-agent.d.ts +72 -72
- package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.js +73 -11
- 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/apify.d.ts +22 -22
- 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/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.map +1 -1
- package/dist/bubbles/service-bubble/capability-pipeline.js +20 -6
- 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 +40 -40
- package/dist/bubbles/service-bubble/http.d.ts +2 -2
- package/dist/bubbles/service-bubble/insforge-db.d.ts +8 -8
- package/dist/bubbles/service-bubble/jira/jira.d.ts +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 +240 -240
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts +24 -24
- package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +28 -28
- package/dist/bubbles/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/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 +330 -330
- 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 +26 -26
- package/dist/bubbles.json +1 -1
- package/dist/capabilities/define-capability.d.ts +5 -1
- package/dist/capabilities/define-capability.d.ts.map +1 -1
- package/dist/capabilities/define-capability.js +8 -1
- package/dist/capabilities/define-capability.js.map +1 -1
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/index.d.ts.map +1 -1
- package/dist/capabilities/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -61,12 +61,12 @@ declare const SlackFormatterAgentParamsSchema: z.ZodObject<{
|
|
|
61
61
|
additionalContext?: string | undefined;
|
|
62
62
|
}, {
|
|
63
63
|
message: string;
|
|
64
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
64
65
|
model?: {
|
|
65
66
|
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" | "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" | undefined;
|
|
66
67
|
temperature?: number | undefined;
|
|
67
68
|
maxTokens?: number | undefined;
|
|
68
69
|
} | undefined;
|
|
69
|
-
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
70
70
|
tools?: {
|
|
71
71
|
name: string;
|
|
72
72
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
@@ -154,13 +154,12 @@ declare const SlackFormatterAgentResultSchema: z.ZodObject<{
|
|
|
154
154
|
verbatim?: boolean | undefined;
|
|
155
155
|
}>, "many">>;
|
|
156
156
|
}, "strip", z.ZodTypeAny, {
|
|
157
|
-
type: "input" | "image" | "file" | "divider" | "context" | "section" | "header" | "actions"
|
|
157
|
+
type: "table" | "input" | "image" | "file" | "divider" | "context" | "section" | "header" | "actions";
|
|
158
158
|
title?: {
|
|
159
159
|
type: "plain_text";
|
|
160
160
|
text: string;
|
|
161
161
|
emoji?: boolean | undefined;
|
|
162
162
|
} | undefined;
|
|
163
|
-
optional?: boolean | undefined;
|
|
164
163
|
text?: {
|
|
165
164
|
type: "plain_text" | "mrkdwn";
|
|
166
165
|
text: string;
|
|
@@ -168,6 +167,7 @@ declare const SlackFormatterAgentResultSchema: z.ZodObject<{
|
|
|
168
167
|
verbatim?: boolean | undefined;
|
|
169
168
|
} | undefined;
|
|
170
169
|
image_url?: string | undefined;
|
|
170
|
+
optional?: boolean | undefined;
|
|
171
171
|
fields?: {
|
|
172
172
|
type: "plain_text" | "mrkdwn";
|
|
173
173
|
text: string;
|
|
@@ -187,13 +187,12 @@ declare const SlackFormatterAgentResultSchema: z.ZodObject<{
|
|
|
187
187
|
label?: unknown;
|
|
188
188
|
hint?: unknown;
|
|
189
189
|
}, {
|
|
190
|
-
type: "input" | "image" | "file" | "divider" | "context" | "section" | "header" | "actions"
|
|
190
|
+
type: "table" | "input" | "image" | "file" | "divider" | "context" | "section" | "header" | "actions";
|
|
191
191
|
title?: {
|
|
192
192
|
type: "plain_text";
|
|
193
193
|
text: string;
|
|
194
194
|
emoji?: boolean | undefined;
|
|
195
195
|
} | undefined;
|
|
196
|
-
optional?: boolean | undefined;
|
|
197
196
|
text?: {
|
|
198
197
|
type: "plain_text" | "mrkdwn";
|
|
199
198
|
text: string;
|
|
@@ -201,6 +200,7 @@ declare const SlackFormatterAgentResultSchema: z.ZodObject<{
|
|
|
201
200
|
verbatim?: boolean | undefined;
|
|
202
201
|
} | undefined;
|
|
203
202
|
image_url?: string | undefined;
|
|
203
|
+
optional?: boolean | undefined;
|
|
204
204
|
fields?: {
|
|
205
205
|
type: "plain_text" | "mrkdwn";
|
|
206
206
|
text: string;
|
|
@@ -255,27 +255,26 @@ declare const SlackFormatterAgentResultSchema: z.ZodObject<{
|
|
|
255
255
|
}, "strip", z.ZodTypeAny, {
|
|
256
256
|
error: string;
|
|
257
257
|
success: boolean;
|
|
258
|
-
response: string;
|
|
259
|
-
iterations: number;
|
|
260
258
|
metadata: {
|
|
261
259
|
verbosityLevel: string;
|
|
262
260
|
technicalityLevel: string;
|
|
263
261
|
wordCount: number;
|
|
264
262
|
blockCount?: number | undefined;
|
|
265
263
|
};
|
|
264
|
+
response: string;
|
|
265
|
+
iterations: number;
|
|
266
266
|
toolCalls?: {
|
|
267
267
|
tool: string;
|
|
268
268
|
input?: unknown;
|
|
269
269
|
output?: unknown;
|
|
270
270
|
}[] | undefined;
|
|
271
271
|
blocks?: {
|
|
272
|
-
type: "input" | "image" | "file" | "divider" | "context" | "section" | "header" | "actions"
|
|
272
|
+
type: "table" | "input" | "image" | "file" | "divider" | "context" | "section" | "header" | "actions";
|
|
273
273
|
title?: {
|
|
274
274
|
type: "plain_text";
|
|
275
275
|
text: string;
|
|
276
276
|
emoji?: boolean | undefined;
|
|
277
277
|
} | undefined;
|
|
278
|
-
optional?: boolean | undefined;
|
|
279
278
|
text?: {
|
|
280
279
|
type: "plain_text" | "mrkdwn";
|
|
281
280
|
text: string;
|
|
@@ -283,6 +282,7 @@ declare const SlackFormatterAgentResultSchema: z.ZodObject<{
|
|
|
283
282
|
verbatim?: boolean | undefined;
|
|
284
283
|
} | undefined;
|
|
285
284
|
image_url?: string | undefined;
|
|
285
|
+
optional?: boolean | undefined;
|
|
286
286
|
fields?: {
|
|
287
287
|
type: "plain_text" | "mrkdwn";
|
|
288
288
|
text: string;
|
|
@@ -305,27 +305,26 @@ declare const SlackFormatterAgentResultSchema: z.ZodObject<{
|
|
|
305
305
|
}, {
|
|
306
306
|
error: string;
|
|
307
307
|
success: boolean;
|
|
308
|
-
response: string;
|
|
309
|
-
iterations: number;
|
|
310
308
|
metadata: {
|
|
311
309
|
verbosityLevel: string;
|
|
312
310
|
technicalityLevel: string;
|
|
313
311
|
wordCount: number;
|
|
314
312
|
blockCount?: number | undefined;
|
|
315
313
|
};
|
|
314
|
+
response: string;
|
|
315
|
+
iterations: number;
|
|
316
316
|
toolCalls?: {
|
|
317
317
|
tool: string;
|
|
318
318
|
input?: unknown;
|
|
319
319
|
output?: unknown;
|
|
320
320
|
}[] | undefined;
|
|
321
321
|
blocks?: {
|
|
322
|
-
type: "input" | "image" | "file" | "divider" | "context" | "section" | "header" | "actions"
|
|
322
|
+
type: "table" | "input" | "image" | "file" | "divider" | "context" | "section" | "header" | "actions";
|
|
323
323
|
title?: {
|
|
324
324
|
type: "plain_text";
|
|
325
325
|
text: string;
|
|
326
326
|
emoji?: boolean | undefined;
|
|
327
327
|
} | undefined;
|
|
328
|
-
optional?: boolean | undefined;
|
|
329
328
|
text?: {
|
|
330
329
|
type: "plain_text" | "mrkdwn";
|
|
331
330
|
text: string;
|
|
@@ -333,6 +332,7 @@ declare const SlackFormatterAgentResultSchema: z.ZodObject<{
|
|
|
333
332
|
verbatim?: boolean | undefined;
|
|
334
333
|
} | undefined;
|
|
335
334
|
image_url?: string | undefined;
|
|
335
|
+
optional?: boolean | undefined;
|
|
336
336
|
fields?: {
|
|
337
337
|
type: "plain_text" | "mrkdwn";
|
|
338
338
|
text: string;
|
|
@@ -419,12 +419,12 @@ export declare class SlackFormatterAgentBubble extends WorkflowBubble<SlackForma
|
|
|
419
419
|
additionalContext?: string | undefined;
|
|
420
420
|
}, {
|
|
421
421
|
message: string;
|
|
422
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
422
423
|
model?: {
|
|
423
424
|
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" | "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" | undefined;
|
|
424
425
|
temperature?: number | undefined;
|
|
425
426
|
maxTokens?: number | undefined;
|
|
426
427
|
} | undefined;
|
|
427
|
-
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
428
428
|
tools?: {
|
|
429
429
|
name: string;
|
|
430
430
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
@@ -512,13 +512,12 @@ export declare class SlackFormatterAgentBubble extends WorkflowBubble<SlackForma
|
|
|
512
512
|
verbatim?: boolean | undefined;
|
|
513
513
|
}>, "many">>;
|
|
514
514
|
}, "strip", z.ZodTypeAny, {
|
|
515
|
-
type: "input" | "image" | "file" | "divider" | "context" | "section" | "header" | "actions"
|
|
515
|
+
type: "table" | "input" | "image" | "file" | "divider" | "context" | "section" | "header" | "actions";
|
|
516
516
|
title?: {
|
|
517
517
|
type: "plain_text";
|
|
518
518
|
text: string;
|
|
519
519
|
emoji?: boolean | undefined;
|
|
520
520
|
} | undefined;
|
|
521
|
-
optional?: boolean | undefined;
|
|
522
521
|
text?: {
|
|
523
522
|
type: "plain_text" | "mrkdwn";
|
|
524
523
|
text: string;
|
|
@@ -526,6 +525,7 @@ export declare class SlackFormatterAgentBubble extends WorkflowBubble<SlackForma
|
|
|
526
525
|
verbatim?: boolean | undefined;
|
|
527
526
|
} | undefined;
|
|
528
527
|
image_url?: string | undefined;
|
|
528
|
+
optional?: boolean | undefined;
|
|
529
529
|
fields?: {
|
|
530
530
|
type: "plain_text" | "mrkdwn";
|
|
531
531
|
text: string;
|
|
@@ -545,13 +545,12 @@ export declare class SlackFormatterAgentBubble extends WorkflowBubble<SlackForma
|
|
|
545
545
|
label?: unknown;
|
|
546
546
|
hint?: unknown;
|
|
547
547
|
}, {
|
|
548
|
-
type: "input" | "image" | "file" | "divider" | "context" | "section" | "header" | "actions"
|
|
548
|
+
type: "table" | "input" | "image" | "file" | "divider" | "context" | "section" | "header" | "actions";
|
|
549
549
|
title?: {
|
|
550
550
|
type: "plain_text";
|
|
551
551
|
text: string;
|
|
552
552
|
emoji?: boolean | undefined;
|
|
553
553
|
} | undefined;
|
|
554
|
-
optional?: boolean | undefined;
|
|
555
554
|
text?: {
|
|
556
555
|
type: "plain_text" | "mrkdwn";
|
|
557
556
|
text: string;
|
|
@@ -559,6 +558,7 @@ export declare class SlackFormatterAgentBubble extends WorkflowBubble<SlackForma
|
|
|
559
558
|
verbatim?: boolean | undefined;
|
|
560
559
|
} | undefined;
|
|
561
560
|
image_url?: string | undefined;
|
|
561
|
+
optional?: boolean | undefined;
|
|
562
562
|
fields?: {
|
|
563
563
|
type: "plain_text" | "mrkdwn";
|
|
564
564
|
text: string;
|
|
@@ -613,27 +613,26 @@ export declare class SlackFormatterAgentBubble extends WorkflowBubble<SlackForma
|
|
|
613
613
|
}, "strip", z.ZodTypeAny, {
|
|
614
614
|
error: string;
|
|
615
615
|
success: boolean;
|
|
616
|
-
response: string;
|
|
617
|
-
iterations: number;
|
|
618
616
|
metadata: {
|
|
619
617
|
verbosityLevel: string;
|
|
620
618
|
technicalityLevel: string;
|
|
621
619
|
wordCount: number;
|
|
622
620
|
blockCount?: number | undefined;
|
|
623
621
|
};
|
|
622
|
+
response: string;
|
|
623
|
+
iterations: number;
|
|
624
624
|
toolCalls?: {
|
|
625
625
|
tool: string;
|
|
626
626
|
input?: unknown;
|
|
627
627
|
output?: unknown;
|
|
628
628
|
}[] | undefined;
|
|
629
629
|
blocks?: {
|
|
630
|
-
type: "input" | "image" | "file" | "divider" | "context" | "section" | "header" | "actions"
|
|
630
|
+
type: "table" | "input" | "image" | "file" | "divider" | "context" | "section" | "header" | "actions";
|
|
631
631
|
title?: {
|
|
632
632
|
type: "plain_text";
|
|
633
633
|
text: string;
|
|
634
634
|
emoji?: boolean | undefined;
|
|
635
635
|
} | undefined;
|
|
636
|
-
optional?: boolean | undefined;
|
|
637
636
|
text?: {
|
|
638
637
|
type: "plain_text" | "mrkdwn";
|
|
639
638
|
text: string;
|
|
@@ -641,6 +640,7 @@ export declare class SlackFormatterAgentBubble extends WorkflowBubble<SlackForma
|
|
|
641
640
|
verbatim?: boolean | undefined;
|
|
642
641
|
} | undefined;
|
|
643
642
|
image_url?: string | undefined;
|
|
643
|
+
optional?: boolean | undefined;
|
|
644
644
|
fields?: {
|
|
645
645
|
type: "plain_text" | "mrkdwn";
|
|
646
646
|
text: string;
|
|
@@ -663,27 +663,26 @@ export declare class SlackFormatterAgentBubble extends WorkflowBubble<SlackForma
|
|
|
663
663
|
}, {
|
|
664
664
|
error: string;
|
|
665
665
|
success: boolean;
|
|
666
|
-
response: string;
|
|
667
|
-
iterations: number;
|
|
668
666
|
metadata: {
|
|
669
667
|
verbosityLevel: string;
|
|
670
668
|
technicalityLevel: string;
|
|
671
669
|
wordCount: number;
|
|
672
670
|
blockCount?: number | undefined;
|
|
673
671
|
};
|
|
672
|
+
response: string;
|
|
673
|
+
iterations: number;
|
|
674
674
|
toolCalls?: {
|
|
675
675
|
tool: string;
|
|
676
676
|
input?: unknown;
|
|
677
677
|
output?: unknown;
|
|
678
678
|
}[] | undefined;
|
|
679
679
|
blocks?: {
|
|
680
|
-
type: "input" | "image" | "file" | "divider" | "context" | "section" | "header" | "actions"
|
|
680
|
+
type: "table" | "input" | "image" | "file" | "divider" | "context" | "section" | "header" | "actions";
|
|
681
681
|
title?: {
|
|
682
682
|
type: "plain_text";
|
|
683
683
|
text: string;
|
|
684
684
|
emoji?: boolean | undefined;
|
|
685
685
|
} | undefined;
|
|
686
|
-
optional?: boolean | undefined;
|
|
687
686
|
text?: {
|
|
688
687
|
type: "plain_text" | "mrkdwn";
|
|
689
688
|
text: string;
|
|
@@ -691,6 +690,7 @@ export declare class SlackFormatterAgentBubble extends WorkflowBubble<SlackForma
|
|
|
691
690
|
verbatim?: boolean | undefined;
|
|
692
691
|
} | undefined;
|
|
693
692
|
image_url?: string | undefined;
|
|
693
|
+
optional?: boolean | undefined;
|
|
694
694
|
fields?: {
|
|
695
695
|
type: "plain_text" | "mrkdwn";
|
|
696
696
|
text: string;
|
package/dist/bubbles.json
CHANGED
|
@@ -15,6 +15,8 @@ export type CapabilityToolFunc = (params: Record<string, unknown>) => Promise<un
|
|
|
15
15
|
export type CapabilityToolFactory = (context: CapabilityRuntimeContext) => Record<string, CapabilityToolFunc>;
|
|
16
16
|
/** Factory that creates a system prompt addition given a runtime context. */
|
|
17
17
|
export type CapabilitySystemPromptFactory = (context: CapabilityRuntimeContext) => string | Promise<string>;
|
|
18
|
+
/** Factory that creates a delegation hint given a runtime context. */
|
|
19
|
+
export type CapabilityDelegationHintFactory = (context: CapabilityRuntimeContext) => string | Promise<string>;
|
|
18
20
|
/** Factory that creates text to append to the agent's final response. */
|
|
19
21
|
export type CapabilityResponseAppendFactory = (context: CapabilityRuntimeContext) => string | Promise<string>;
|
|
20
22
|
/** Full runtime capability definition with metadata + factories. */
|
|
@@ -22,6 +24,8 @@ export interface CapabilityDefinition {
|
|
|
22
24
|
metadata: CapabilityMetadata;
|
|
23
25
|
createTools: CapabilityToolFactory;
|
|
24
26
|
createSystemPrompt?: CapabilitySystemPromptFactory;
|
|
27
|
+
/** Async factory that resolves a delegation hint at runtime (multi-cap mode). */
|
|
28
|
+
createDelegationHint?: CapabilityDelegationHintFactory;
|
|
25
29
|
/** Called after the agent finishes — returned text is appended to the response. */
|
|
26
30
|
createResponseAppend?: CapabilityResponseAppendFactory;
|
|
27
31
|
hooks?: {
|
|
@@ -59,7 +63,7 @@ export interface DefineCapabilityOptions {
|
|
|
59
63
|
/** Optional model config overrides applied at runtime (e.g., force a specific model or raise maxTokens). */
|
|
60
64
|
modelConfigOverride?: CapabilityModelConfigOverride;
|
|
61
65
|
/** Short guidance for the main agent on when to delegate to this capability in multi-capability mode. */
|
|
62
|
-
delegationHint?: string;
|
|
66
|
+
delegationHint?: string | CapabilityDelegationHintFactory;
|
|
63
67
|
/** Hidden capabilities are registered for runtime use but not shown in the UI. */
|
|
64
68
|
hidden?: boolean;
|
|
65
69
|
/** Data-driven provider options for the wizard "Choose Providers" step. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-capability.d.ts","sourceRoot":"","sources":["../../src/capabilities/define-capability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,eAAe,EAEf,6BAA6B,EAC7B,0BAA0B,EAC1B,YAAY,EACb,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACd,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,uFAAuF;AACvF,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;IACrD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,CAAC,CAAC;IAC7D,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B;A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,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;QACnC,0EAA0E;QAC1E,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;QAC/B,kEAAkE;QAClE,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,yFAAyF;QACzF,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,IAAI,EAAE,CAAC,GAAG,EAAE,wBAAwB,KAAK,kBAAkB,CAAC;KAC7D,CAAC,CAAC;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,6BAA6B,CAAC;IACtD,uEAAuE;IACvE,cAAc,CAAC,EAAE,MAAM,GAAG,+BAA+B,CAAC;IAC1D,KAAK,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;IACtC,4GAA4G;IAC5G,mBAAmB,CAAC,EAAE,6BAA6B,CAAC;IACpD,yGAAyG;IACzG,cAAc,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"define-capability.d.ts","sourceRoot":"","sources":["../../src/capabilities/define-capability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,eAAe,EAEf,6BAA6B,EAC7B,0BAA0B,EAC1B,YAAY,EACb,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACd,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,uFAAuF;AACvF,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;IACrD,MAAM,EAAE,MAAM,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systemPrompt
|
|
35
35
|
: undefined,
|
|
36
36
|
modelConfigOverride: options.modelConfigOverride,
|
|
37
|
-
delegationHint: options.delegationHint
|
|
37
|
+
delegationHint: typeof options.delegationHint === 'string'
|
|
38
|
+
? options.delegationHint
|
|
39
|
+
: undefined,
|
|
38
40
|
hidden: options.hidden,
|
|
39
41
|
providers: options.providers,
|
|
40
42
|
};
|
|
@@ -50,6 +52,10 @@ export function defineCapability(options) {
|
|
|
50
52
|
const createSystemPrompt = typeof options.systemPrompt === 'function'
|
|
51
53
|
? options.systemPrompt
|
|
52
54
|
: undefined;
|
|
55
|
+
// Build delegation hint factory
|
|
56
|
+
const createDelegationHint = typeof options.delegationHint === 'function'
|
|
57
|
+
? options.delegationHint
|
|
58
|
+
: undefined;
|
|
53
59
|
// Build response append factory
|
|
54
60
|
const createResponseAppend = typeof options.responseAppend === 'function'
|
|
55
61
|
? options.responseAppend
|
|
@@ -60,6 +66,7 @@ export function defineCapability(options) {
|
|
|
60
66
|
metadata,
|
|
61
67
|
createTools,
|
|
62
68
|
createSystemPrompt,
|
|
69
|
+
createDelegationHint,
|
|
63
70
|
createResponseAppend,
|
|
64
71
|
hooks: options.hooks,
|
|
65
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-capability.js","sourceRoot":"","sources":["../../src/capabilities/define-capability.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"define-capability.js","sourceRoot":"","sources":["../../src/capabilities/define-capability.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAsFrD;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAC9B,OAAgC;IAEhC,uDAAuD;IACvD,MAAM,QAAQ,GAAwB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACjE,IAAI,EAAE,IAA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C,CAAC,SAAS;QACf,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,SAAS,EAAE,OAAO,CAAC,SAAS;KAC7B,CAAC;IAEF,8DAA8D;IAC9D,MAAM,WAAW,GAA0B,CAAC,GAAG,EAAE,EAAE;QACjD,MAAM,SAAS,GAAuC,EAAE,CAAC;QACzD,KAAK,MAAM,IAAI,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;YACjC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACxC,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;IAEF,8BAA8B;IAC9B,MAAM,kBAAkB,GACtB,OAAO,OAAO,CAAC,YAAY,KAAK,UAAU;QACxC,CAAC,CAAC,OAAO,CAAC,YAAY;QACtB,CAAC,CAAC,SAAS,CAAC;IAEhB,gCAAgC;IAChC,MAAM,oBAAoB,GACxB,OAAO,OAAO,CAAC,cAAc,KAAK,UAAU;QAC1C,CAAC,CAAC,OAAO,CAAC,cAAc;QACxB,CAAC,CAAC,SAAS,CAAC;IAEhB,gCAAgC;IAChC,MAAM,oBAAoB,GACxB,OAAO,OAAO,CAAC,cAAc,KAAK,UAAU;QAC1C,CAAC,CAAC,OAAO,CAAC,cAAc;QACxB,CAAC,CAAC,OAAO,OAAO,CAAC,cAAc,KAAK,QAAQ;YAC1C,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,cAAwB;YACxC,CAAC,CAAC,SAAS,CAAC;IAElB,OAAO;QACL,QAAQ;QACR,WAAW;QACX,kBAAkB;QAClB,oBAAoB;QACpB,oBAAoB;QACpB,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { defineCapability, type CapabilityDefinition, type CapabilityRuntimeContext, type CapabilityToolFunc, type CapabilityToolFactory, type CapabilitySystemPromptFactory, type CapabilityResponseAppendFactory, type DefineCapabilityOptions, } from './define-capability.js';
|
|
1
|
+
export { defineCapability, type CapabilityDefinition, type CapabilityRuntimeContext, type CapabilityToolFunc, type CapabilityToolFactory, type CapabilitySystemPromptFactory, type CapabilityDelegationHintFactory, type CapabilityResponseAppendFactory, type DefineCapabilityOptions, } from './define-capability.js';
|
|
2
2
|
export { registerCapability, getCapability, getAllCapabilities, getAllCapabilityMetadata, getCapabilityMetadataById, } from './registry.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/capabilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,uBAAuB,GAC7B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/capabilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,uBAAuB,GAC7B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/capabilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/capabilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,GASjB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bubblelab/bubble-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.181",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"puppeteer-core": "^24.10.0",
|
|
42
42
|
"resend": "^4.8.0",
|
|
43
43
|
"zod": "^3.24.1",
|
|
44
|
-
"@bubblelab/shared-schemas": "0.1.
|
|
44
|
+
"@bubblelab/shared-schemas": "0.1.181"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/node": "^20.12.12",
|