@bubblelab/bubble-core 0.1.122 → 0.1.124

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/bubble-bundle.d.ts +163 -143
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +2 -0
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubbles/service-bubble/agi-inc.d.ts +148 -148
  6. package/dist/bubbles/service-bubble/ai-agent.d.ts +106 -106
  7. package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
  8. package/dist/bubbles/service-bubble/ai-agent.js +168 -87
  9. package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
  10. package/dist/bubbles/service-bubble/airtable.d.ts +170 -170
  11. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +2 -2
  12. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +8 -8
  13. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +2 -2
  14. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +22 -22
  15. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +52 -52
  16. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +6 -6
  17. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +12 -12
  18. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +12 -12
  19. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +88 -88
  20. package/dist/bubbles/service-bubble/apify/apify.d.ts +30 -30
  21. package/dist/bubbles/service-bubble/ashby/ashby.d.ts +72 -72
  22. package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +96 -96
  23. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +32 -32
  24. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +34 -34
  25. package/dist/bubbles/service-bubble/confluence/confluence.d.ts +26 -26
  26. package/dist/bubbles/service-bubble/confluence/confluence.schema.d.ts +26 -26
  27. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +130 -130
  28. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +162 -162
  29. package/dist/bubbles/service-bubble/eleven-labs.d.ts +28 -28
  30. package/dist/bubbles/service-bubble/firecrawl.d.ts +864 -864
  31. package/dist/bubbles/service-bubble/followupboss.d.ts +164 -164
  32. package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +72 -72
  33. package/dist/bubbles/service-bubble/fullenrich/fullenrich.schema.d.ts +112 -112
  34. package/dist/bubbles/service-bubble/github.d.ts +152 -152
  35. package/dist/bubbles/service-bubble/gmail.d.ts +657 -657
  36. package/dist/bubbles/service-bubble/google-calendar.d.ts +138 -138
  37. package/dist/bubbles/service-bubble/google-drive.d.ts +102 -102
  38. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +52 -52
  39. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts +56 -56
  40. package/dist/bubbles/service-bubble/http.d.ts +22 -22
  41. package/dist/bubbles/service-bubble/insforge-db.d.ts +12 -12
  42. package/dist/bubbles/service-bubble/jira/jira.d.ts +70 -70
  43. package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +74 -74
  44. package/dist/bubbles/service-bubble/notion/notion.d.ts +642 -642
  45. package/dist/bubbles/service-bubble/notion/notion.d.ts.map +1 -1
  46. package/dist/bubbles/service-bubble/notion/notion.js +2 -1
  47. package/dist/bubbles/service-bubble/notion/notion.js.map +1 -1
  48. package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +8 -8
  49. package/dist/bubbles/service-bubble/postgresql.d.ts +12 -12
  50. package/dist/bubbles/service-bubble/resend.d.ts +32 -32
  51. package/dist/bubbles/service-bubble/salesforce/index.d.ts +4 -0
  52. package/dist/bubbles/service-bubble/salesforce/index.d.ts.map +1 -0
  53. package/dist/bubbles/service-bubble/salesforce/index.js +4 -0
  54. package/dist/bubbles/service-bubble/salesforce/index.js.map +1 -0
  55. package/dist/bubbles/service-bubble/salesforce/salesforce.d.ts +1331 -0
  56. package/dist/bubbles/service-bubble/salesforce/salesforce.d.ts.map +1 -0
  57. package/dist/bubbles/service-bubble/salesforce/salesforce.js +618 -0
  58. package/dist/bubbles/service-bubble/salesforce/salesforce.js.map +1 -0
  59. package/dist/bubbles/service-bubble/salesforce/salesforce.schema.d.ts +1445 -0
  60. package/dist/bubbles/service-bubble/salesforce/salesforce.schema.d.ts.map +1 -0
  61. package/dist/bubbles/service-bubble/salesforce/salesforce.schema.js +609 -0
  62. package/dist/bubbles/service-bubble/salesforce/salesforce.schema.js.map +1 -0
  63. package/dist/bubbles/service-bubble/salesforce/salesforce.utils.d.ts +87 -0
  64. package/dist/bubbles/service-bubble/salesforce/salesforce.utils.d.ts.map +1 -0
  65. package/dist/bubbles/service-bubble/salesforce/salesforce.utils.js +181 -0
  66. package/dist/bubbles/service-bubble/salesforce/salesforce.utils.js.map +1 -0
  67. package/dist/bubbles/service-bubble/slack/slack.d.ts +684 -684
  68. package/dist/bubbles/service-bubble/storage.d.ts +20 -20
  69. package/dist/bubbles/service-bubble/stripe/stripe.d.ts +153 -153
  70. package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +175 -175
  71. package/dist/bubbles/service-bubble/telegram.d.ts +1590 -1590
  72. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +17 -17
  73. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +17 -17
  74. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +16 -16
  75. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +22 -22
  76. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +4 -4
  77. package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +58 -58
  78. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +24 -24
  79. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +14 -14
  80. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts +2 -2
  81. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.d.ts +2 -2
  82. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +378 -378
  83. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
  84. package/dist/bubbles/tool-bubble/list-capabilities-tool.d.ts +235 -0
  85. package/dist/bubbles/tool-bubble/list-capabilities-tool.d.ts.map +1 -0
  86. package/dist/bubbles/tool-bubble/list-capabilities-tool.js +105 -0
  87. package/dist/bubbles/tool-bubble/list-capabilities-tool.js.map +1 -0
  88. package/dist/bubbles/tool-bubble/people-search-tool.d.ts +122 -122
  89. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +24 -24
  90. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +8 -8
  91. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +80 -80
  92. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +178 -178
  93. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +18 -18
  94. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +4 -4
  95. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +8 -8
  96. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +6 -6
  97. package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +50 -50
  98. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +48 -48
  99. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +36 -36
  100. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +4 -4
  101. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +90 -90
  102. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +24 -24
  103. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +28 -28
  104. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +108 -108
  105. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +4 -4
  106. package/dist/bubbles.json +137 -4
  107. package/dist/capabilities/define-capability.d.ts +8 -2
  108. package/dist/capabilities/define-capability.d.ts.map +1 -1
  109. package/dist/capabilities/define-capability.js +3 -0
  110. package/dist/capabilities/define-capability.js.map +1 -1
  111. package/dist/index.d.ts +1 -0
  112. package/dist/index.d.ts.map +1 -1
  113. package/dist/index.js +1 -0
  114. package/dist/index.js.map +1 -1
  115. package/dist/types/available-tools.d.ts +1 -1
  116. package/dist/types/available-tools.d.ts.map +1 -1
  117. package/dist/types/available-tools.js +1 -0
  118. package/dist/types/available-tools.js.map +1 -1
  119. package/package.json +2 -2
@@ -31,6 +31,7 @@ declare const ListBubblesToolResultSchema: z.ZodObject<{
31
31
  }, "strip", z.ZodTypeAny, {
32
32
  error: string;
33
33
  success: boolean;
34
+ totalCount: number;
34
35
  bubbles: {
35
36
  type: string;
36
37
  name: string;
@@ -38,10 +39,10 @@ declare const ListBubblesToolResultSchema: z.ZodObject<{
38
39
  useCase: string;
39
40
  alias?: string | undefined;
40
41
  }[];
41
- totalCount: number;
42
42
  }, {
43
43
  error: string;
44
44
  success: boolean;
45
+ totalCount: number;
45
46
  bubbles: {
46
47
  type: string;
47
48
  name: string;
@@ -49,7 +50,6 @@ declare const ListBubblesToolResultSchema: z.ZodObject<{
49
50
  useCase: string;
50
51
  alias?: string | undefined;
51
52
  }[];
52
- totalCount: number;
53
53
  }>;
54
54
  export declare class ListBubblesTool extends ToolBubble<ListBubblesToolParams, ListBubblesToolResult> {
55
55
  static readonly bubbleName = "list-bubbles-tool";
@@ -80,6 +80,7 @@ export declare class ListBubblesTool extends ToolBubble<ListBubblesToolParams, L
80
80
  }, "strip", z.ZodTypeAny, {
81
81
  error: string;
82
82
  success: boolean;
83
+ totalCount: number;
83
84
  bubbles: {
84
85
  type: string;
85
86
  name: string;
@@ -87,10 +88,10 @@ export declare class ListBubblesTool extends ToolBubble<ListBubblesToolParams, L
87
88
  useCase: string;
88
89
  alias?: string | undefined;
89
90
  }[];
90
- totalCount: number;
91
91
  }, {
92
92
  error: string;
93
93
  success: boolean;
94
+ totalCount: number;
94
95
  bubbles: {
95
96
  type: string;
96
97
  name: string;
@@ -98,7 +99,6 @@ export declare class ListBubblesTool extends ToolBubble<ListBubblesToolParams, L
98
99
  useCase: string;
99
100
  alias?: string | undefined;
100
101
  }[];
101
- totalCount: number;
102
102
  }>;
103
103
  static readonly shortDescription = "Lists all available bubbles in the registry";
104
104
  static readonly longDescription = "\n A tool bubble that provides a comprehensive list of all registered bubbles in the NodeX system.\n \n Returns information about each bubble including:\n - Bubble name and alias\n - Short description\n - Extracted use cases\n - Bubble type (service, workflow, tool)\n \n Use cases:\n - AI agent discovery of available capabilities\n - System introspection and documentation\n - Dynamic tool selection for workflow building\n ";
@@ -0,0 +1,235 @@
1
+ import { z } from 'zod';
2
+ import { ToolBubble } from '../../types/tool-bubble-class.js';
3
+ import type { BubbleContext } from '../../types/bubble.js';
4
+ declare const ListCapabilitiesToolParamsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
5
+ type ListCapabilitiesToolParamsInput = z.input<typeof ListCapabilitiesToolParamsSchema>;
6
+ type ListCapabilitiesToolParams = z.output<typeof ListCapabilitiesToolParamsSchema>;
7
+ type ListCapabilitiesToolResult = z.output<typeof ListCapabilitiesToolResultSchema>;
8
+ declare const ListCapabilitiesToolResultSchema: z.ZodObject<{
9
+ capabilities: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodString;
11
+ name: z.ZodString;
12
+ description: z.ZodString;
13
+ category: z.ZodOptional<z.ZodString>;
14
+ requiredCredentials: z.ZodArray<z.ZodString, "many">;
15
+ optionalCredentials: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16
+ inputs: z.ZodArray<z.ZodObject<{
17
+ name: z.ZodString;
18
+ description: z.ZodString;
19
+ }, "strip", z.ZodTypeAny, {
20
+ description: string;
21
+ name: string;
22
+ }, {
23
+ description: string;
24
+ name: string;
25
+ }>, "many">;
26
+ tools: z.ZodArray<z.ZodObject<{
27
+ name: z.ZodString;
28
+ description: z.ZodString;
29
+ }, "strip", z.ZodTypeAny, {
30
+ description: string;
31
+ name: string;
32
+ }, {
33
+ description: string;
34
+ name: string;
35
+ }>, "many">;
36
+ delegationHint: z.ZodOptional<z.ZodString>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ description: string;
39
+ name: string;
40
+ id: string;
41
+ requiredCredentials: string[];
42
+ inputs: {
43
+ description: string;
44
+ name: string;
45
+ }[];
46
+ tools: {
47
+ description: string;
48
+ name: string;
49
+ }[];
50
+ category?: string | undefined;
51
+ optionalCredentials?: string[] | undefined;
52
+ delegationHint?: string | undefined;
53
+ }, {
54
+ description: string;
55
+ name: string;
56
+ id: string;
57
+ requiredCredentials: string[];
58
+ inputs: {
59
+ description: string;
60
+ name: string;
61
+ }[];
62
+ tools: {
63
+ description: string;
64
+ name: string;
65
+ }[];
66
+ category?: string | undefined;
67
+ optionalCredentials?: string[] | undefined;
68
+ delegationHint?: string | undefined;
69
+ }>, "many">;
70
+ totalCount: z.ZodNumber;
71
+ success: z.ZodBoolean;
72
+ error: z.ZodString;
73
+ }, "strip", z.ZodTypeAny, {
74
+ error: string;
75
+ success: boolean;
76
+ capabilities: {
77
+ description: string;
78
+ name: string;
79
+ id: string;
80
+ requiredCredentials: string[];
81
+ inputs: {
82
+ description: string;
83
+ name: string;
84
+ }[];
85
+ tools: {
86
+ description: string;
87
+ name: string;
88
+ }[];
89
+ category?: string | undefined;
90
+ optionalCredentials?: string[] | undefined;
91
+ delegationHint?: string | undefined;
92
+ }[];
93
+ totalCount: number;
94
+ }, {
95
+ error: string;
96
+ success: boolean;
97
+ capabilities: {
98
+ description: string;
99
+ name: string;
100
+ id: string;
101
+ requiredCredentials: string[];
102
+ inputs: {
103
+ description: string;
104
+ name: string;
105
+ }[];
106
+ tools: {
107
+ description: string;
108
+ name: string;
109
+ }[];
110
+ category?: string | undefined;
111
+ optionalCredentials?: string[] | undefined;
112
+ delegationHint?: string | undefined;
113
+ }[];
114
+ totalCount: number;
115
+ }>;
116
+ export declare class ListCapabilitiesTool extends ToolBubble<ListCapabilitiesToolParams, ListCapabilitiesToolResult> {
117
+ static readonly bubbleName = "list-capabilities-tool";
118
+ static readonly schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
119
+ static readonly resultSchema: z.ZodObject<{
120
+ capabilities: z.ZodArray<z.ZodObject<{
121
+ id: z.ZodString;
122
+ name: z.ZodString;
123
+ description: z.ZodString;
124
+ category: z.ZodOptional<z.ZodString>;
125
+ requiredCredentials: z.ZodArray<z.ZodString, "many">;
126
+ optionalCredentials: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
127
+ inputs: z.ZodArray<z.ZodObject<{
128
+ name: z.ZodString;
129
+ description: z.ZodString;
130
+ }, "strip", z.ZodTypeAny, {
131
+ description: string;
132
+ name: string;
133
+ }, {
134
+ description: string;
135
+ name: string;
136
+ }>, "many">;
137
+ tools: z.ZodArray<z.ZodObject<{
138
+ name: z.ZodString;
139
+ description: z.ZodString;
140
+ }, "strip", z.ZodTypeAny, {
141
+ description: string;
142
+ name: string;
143
+ }, {
144
+ description: string;
145
+ name: string;
146
+ }>, "many">;
147
+ delegationHint: z.ZodOptional<z.ZodString>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ description: string;
150
+ name: string;
151
+ id: string;
152
+ requiredCredentials: string[];
153
+ inputs: {
154
+ description: string;
155
+ name: string;
156
+ }[];
157
+ tools: {
158
+ description: string;
159
+ name: string;
160
+ }[];
161
+ category?: string | undefined;
162
+ optionalCredentials?: string[] | undefined;
163
+ delegationHint?: string | undefined;
164
+ }, {
165
+ description: string;
166
+ name: string;
167
+ id: string;
168
+ requiredCredentials: string[];
169
+ inputs: {
170
+ description: string;
171
+ name: string;
172
+ }[];
173
+ tools: {
174
+ description: string;
175
+ name: string;
176
+ }[];
177
+ category?: string | undefined;
178
+ optionalCredentials?: string[] | undefined;
179
+ delegationHint?: string | undefined;
180
+ }>, "many">;
181
+ totalCount: z.ZodNumber;
182
+ success: z.ZodBoolean;
183
+ error: z.ZodString;
184
+ }, "strip", z.ZodTypeAny, {
185
+ error: string;
186
+ success: boolean;
187
+ capabilities: {
188
+ description: string;
189
+ name: string;
190
+ id: string;
191
+ requiredCredentials: string[];
192
+ inputs: {
193
+ description: string;
194
+ name: string;
195
+ }[];
196
+ tools: {
197
+ description: string;
198
+ name: string;
199
+ }[];
200
+ category?: string | undefined;
201
+ optionalCredentials?: string[] | undefined;
202
+ delegationHint?: string | undefined;
203
+ }[];
204
+ totalCount: number;
205
+ }, {
206
+ error: string;
207
+ success: boolean;
208
+ capabilities: {
209
+ description: string;
210
+ name: string;
211
+ id: string;
212
+ requiredCredentials: string[];
213
+ inputs: {
214
+ description: string;
215
+ name: string;
216
+ }[];
217
+ tools: {
218
+ description: string;
219
+ name: string;
220
+ }[];
221
+ category?: string | undefined;
222
+ optionalCredentials?: string[] | undefined;
223
+ delegationHint?: string | undefined;
224
+ }[];
225
+ totalCount: number;
226
+ }>;
227
+ static readonly shortDescription = "Lists all available capabilities that can be attached to AI agents";
228
+ static readonly longDescription = "\n A tool that lists all registered capabilities \u2014 pre-built skill packs for AIAgentBubble.\n\n Capabilities bundle tools, system prompts, credential requirements, and user inputs\n into a declarative config that can be attached to AI agents.\n\n Returns information about each capability including:\n - ID, name, description, and category\n - Required and optional credentials\n - User-configurable inputs\n - Tools provided by the capability\n - Delegation hint for when to use\n\n Use cases:\n - Discovering available capabilities before building AI agent workflows\n - Checking if a pre-built capability exists instead of manually wiring tools\n - Understanding what credentials and inputs a capability needs\n ";
229
+ static readonly alias = "list-caps";
230
+ static readonly type = "tool";
231
+ constructor(params?: ListCapabilitiesToolParamsInput, context?: BubbleContext);
232
+ performAction(context?: BubbleContext): Promise<ListCapabilitiesToolResult>;
233
+ }
234
+ export {};
235
+ //# sourceMappingURL=list-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CAAC,IAAI,UAAU;gBAG5B,MAAM,GAAE,+BAAoC,EAC5C,OAAO,CAAC,EAAE,aAAa;IAKnB,aAAa,CACjB,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,0BAA0B,CAAC;CAgCvC"}
@@ -0,0 +1,105 @@
1
+ import { z } from 'zod';
2
+ import { ToolBubble } from '../../types/tool-bubble-class.js';
3
+ import { getAllCapabilityMetadata } from '../../capabilities/index.js';
4
+ // Define the parameters schema (no params needed)
5
+ const ListCapabilitiesToolParamsSchema = z.object({});
6
+ // Result schema for validation
7
+ const ListCapabilitiesToolResultSchema = z.object({
8
+ capabilities: z
9
+ .array(z.object({
10
+ id: z.string().describe('Unique identifier for the capability'),
11
+ name: z.string().describe('Display name of the capability'),
12
+ description: z.string().describe('What the capability does'),
13
+ category: z
14
+ .string()
15
+ .optional()
16
+ .describe('Category grouping (e.g., knowledge, data)'),
17
+ requiredCredentials: z
18
+ .array(z.string())
19
+ .describe('Credential types that must be provided'),
20
+ optionalCredentials: z
21
+ .array(z.string())
22
+ .optional()
23
+ .describe('Credential types that can optionally be provided'),
24
+ inputs: z
25
+ .array(z.object({
26
+ name: z.string(),
27
+ description: z.string(),
28
+ }))
29
+ .describe('User-configurable input parameters'),
30
+ tools: z
31
+ .array(z.object({
32
+ name: z.string(),
33
+ description: z.string(),
34
+ }))
35
+ .describe('Tools provided by this capability'),
36
+ delegationHint: z
37
+ .string()
38
+ .optional()
39
+ .describe('Guidance on when to use this capability'),
40
+ }))
41
+ .describe('Array of capability summary objects'),
42
+ totalCount: z.number().describe('Total number of registered capabilities'),
43
+ success: z.boolean().describe('Whether the operation was successful'),
44
+ error: z.string().describe('Error message if operation failed'),
45
+ });
46
+ export class ListCapabilitiesTool extends ToolBubble {
47
+ // Required static metadata
48
+ static bubbleName = 'list-capabilities-tool';
49
+ static schema = ListCapabilitiesToolParamsSchema;
50
+ static resultSchema = ListCapabilitiesToolResultSchema;
51
+ static shortDescription = 'Lists all available capabilities that can be attached to AI agents';
52
+ static longDescription = `
53
+ A tool that lists all registered capabilities — pre-built skill packs for AIAgentBubble.
54
+
55
+ Capabilities bundle tools, system prompts, credential requirements, and user inputs
56
+ into a declarative config that can be attached to AI agents.
57
+
58
+ Returns information about each capability including:
59
+ - ID, name, description, and category
60
+ - Required and optional credentials
61
+ - User-configurable inputs
62
+ - Tools provided by the capability
63
+ - Delegation hint for when to use
64
+
65
+ Use cases:
66
+ - Discovering available capabilities before building AI agent workflows
67
+ - Checking if a pre-built capability exists instead of manually wiring tools
68
+ - Understanding what credentials and inputs a capability needs
69
+ `;
70
+ static alias = 'list-caps';
71
+ static type = 'tool';
72
+ constructor(params = {}, context) {
73
+ super(params, context);
74
+ }
75
+ async performAction(context) {
76
+ void context;
77
+ const allMetadata = getAllCapabilityMetadata();
78
+ const capabilities = allMetadata
79
+ .filter((meta) => !meta.hidden)
80
+ .map((meta) => ({
81
+ id: meta.id,
82
+ name: meta.name,
83
+ description: meta.description,
84
+ category: meta.category,
85
+ requiredCredentials: meta.requiredCredentials,
86
+ optionalCredentials: meta.optionalCredentials,
87
+ inputs: meta.inputs.map((input) => ({
88
+ name: input.name,
89
+ description: input.description,
90
+ })),
91
+ tools: meta.tools.map((tool) => ({
92
+ name: tool.name,
93
+ description: tool.description,
94
+ })),
95
+ delegationHint: meta.delegationHint,
96
+ }));
97
+ return {
98
+ capabilities,
99
+ totalCount: capabilities.length,
100
+ success: true,
101
+ error: '',
102
+ };
103
+ }
104
+ }
105
+ //# sourceMappingURL=list-capabilities-tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-capabilities-tool.js","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/list-capabilities-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,kDA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