@bubblelab/bubble-core 0.1.0
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/LICENSE.txt +202 -0
- package/dist/bubble-bundle.d.ts +2021 -0
- package/dist/bubble-factory.d.ts +161 -0
- package/dist/bubble-factory.d.ts.map +1 -0
- package/dist/bubble-factory.js +426 -0
- package/dist/bubble-factory.js.map +1 -0
- package/dist/bubble-flow/bubble-flow-class.d.ts +19 -0
- package/dist/bubble-flow/bubble-flow-class.d.ts.map +1 -0
- package/dist/bubble-flow/bubble-flow-class.js +23 -0
- package/dist/bubble-flow/bubble-flow-class.js.map +1 -0
- package/dist/bubble-flow/sample/data-analyst-flow.d.ts +15 -0
- package/dist/bubble-flow/sample/data-analyst-flow.d.ts.map +1 -0
- package/dist/bubble-flow/sample/data-analyst-flow.js +63 -0
- package/dist/bubble-flow/sample/data-analyst-flow.js.map +1 -0
- package/dist/bubble-flow/sample/error-ts.d.ts +23 -0
- package/dist/bubble-flow/sample/error-ts.d.ts.map +1 -0
- package/dist/bubble-flow/sample/error-ts.js +31 -0
- package/dist/bubble-flow/sample/error-ts.js.map +1 -0
- package/dist/bubble-flow/sample/sanitytest.d.ts +10 -0
- package/dist/bubble-flow/sample/sanitytest.d.ts.map +1 -0
- package/dist/bubble-flow/sample/sanitytest.js +13 -0
- package/dist/bubble-flow/sample/sanitytest.js.map +1 -0
- package/dist/bubble-flow/sample/simple-webhook-2.d.ts +19 -0
- package/dist/bubble-flow/sample/simple-webhook-2.d.ts.map +1 -0
- package/dist/bubble-flow/sample/simple-webhook-2.js +23 -0
- package/dist/bubble-flow/sample/simple-webhook-2.js.map +1 -0
- package/dist/bubble-flow/sample/simple-webhook.d.ts +10 -0
- package/dist/bubble-flow/sample/simple-webhook.d.ts.map +1 -0
- package/dist/bubble-flow/sample/simple-webhook.js +18 -0
- package/dist/bubble-flow/sample/simple-webhook.js.map +1 -0
- package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts +29 -0
- package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts.map +1 -0
- package/dist/bubble-flow/sample/simplified-data-analysis.flow.js +150 -0
- package/dist/bubble-flow/sample/simplified-data-analysis.flow.js.map +1 -0
- package/dist/bubble-flow/sample/slack-v0.1.d.ts +10 -0
- package/dist/bubble-flow/sample/slack-v0.1.d.ts.map +1 -0
- package/dist/bubble-flow/sample/slack-v0.1.js +59 -0
- package/dist/bubble-flow/sample/slack-v0.1.js.map +1 -0
- package/dist/bubble-flow/sample/slackagenttest.d.ts +10 -0
- package/dist/bubble-flow/sample/slackagenttest.d.ts.map +1 -0
- package/dist/bubble-flow/sample/slackagenttest.js +59 -0
- package/dist/bubble-flow/sample/slackagenttest.js.map +1 -0
- package/dist/bubble-trigger/index.d.ts +2 -0
- package/dist/bubble-trigger/index.d.ts.map +1 -0
- package/dist/bubble-trigger/index.js +2 -0
- package/dist/bubble-trigger/index.js.map +1 -0
- package/dist/bubble-trigger/types.d.ts +87 -0
- package/dist/bubble-trigger/types.d.ts.map +1 -0
- package/dist/bubble-trigger/types.js +14 -0
- package/dist/bubble-trigger/types.js.map +1 -0
- package/dist/bubbles/service-bubble/ai-agent.d.ts +428 -0
- package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/ai-agent.js +881 -0
- package/dist/bubbles/service-bubble/ai-agent.js.map +1 -0
- package/dist/bubbles/service-bubble/gmail.d.ts +3073 -0
- package/dist/bubbles/service-bubble/gmail.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/gmail.js +908 -0
- package/dist/bubbles/service-bubble/gmail.js.map +1 -0
- package/dist/bubbles/service-bubble/google-calendar.d.ts +3377 -0
- package/dist/bubbles/service-bubble/google-calendar.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/google-calendar.js +527 -0
- package/dist/bubbles/service-bubble/google-calendar.js.map +1 -0
- package/dist/bubbles/service-bubble/google-drive.d.ts +1152 -0
- package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/google-drive.js +943 -0
- package/dist/bubbles/service-bubble/google-drive.js.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets.d.ts +1811 -0
- package/dist/bubbles/service-bubble/google-sheets.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets.js +904 -0
- package/dist/bubbles/service-bubble/google-sheets.js.map +1 -0
- package/dist/bubbles/service-bubble/hello-world.d.ts +74 -0
- package/dist/bubbles/service-bubble/hello-world.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/hello-world.js +67 -0
- package/dist/bubbles/service-bubble/hello-world.js.map +1 -0
- package/dist/bubbles/service-bubble/http.d.ts +134 -0
- package/dist/bubbles/service-bubble/http.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/http.js +184 -0
- package/dist/bubbles/service-bubble/http.js.map +1 -0
- package/dist/bubbles/service-bubble/postgresql.d.ts +180 -0
- package/dist/bubbles/service-bubble/postgresql.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/postgresql.js +448 -0
- package/dist/bubbles/service-bubble/postgresql.js.map +1 -0
- package/dist/bubbles/service-bubble/resend.d.ts +301 -0
- package/dist/bubbles/service-bubble/resend.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/resend.js +253 -0
- package/dist/bubbles/service-bubble/resend.js.map +1 -0
- package/dist/bubbles/service-bubble/slack.d.ts +5869 -0
- package/dist/bubbles/service-bubble/slack.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/slack.js +1536 -0
- package/dist/bubbles/service-bubble/slack.js.map +1 -0
- package/dist/bubbles/service-bubble/storage.d.ts +571 -0
- package/dist/bubbles/service-bubble/storage.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/storage.js +504 -0
- package/dist/bubbles/service-bubble/storage.js.map +1 -0
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +308 -0
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.js +285 -0
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +416 -0
- package/dist/bubbles/tool-bubble/chart-js-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/chart-js-tool.js +570 -0
- package/dist/bubbles/tool-bubble/chart-js-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +99 -0
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.js +645 -0
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +112 -0
- package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/list-bubbles-tool.js +82 -0
- package/dist/bubbles/tool-bubble/list-bubbles-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +413 -0
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.js +327 -0
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +122 -0
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/research-agent-tool.js +343 -0
- package/dist/bubbles/tool-bubble/research-agent-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +131 -0
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/sql-query-tool.js +147 -0
- package/dist/bubbles/tool-bubble/sql-query-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/tool-template.d.ts +257 -0
- package/dist/bubbles/tool-bubble/tool-template.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/tool-template.js +238 -0
- package/dist/bubbles/tool-bubble/tool-template.js.map +1 -0
- package/dist/bubbles/tool-bubble/virtual-file-editor-example.d.ts +8 -0
- package/dist/bubbles/tool-bubble/virtual-file-editor-example.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/virtual-file-editor-example.js +65 -0
- package/dist/bubbles/tool-bubble/virtual-file-editor-example.js.map +1 -0
- package/dist/bubbles/tool-bubble/virtual-file-editor.tool.d.ts +125 -0
- package/dist/bubbles/tool-bubble/virtual-file-editor.tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/virtual-file-editor.tool.js +169 -0
- package/dist/bubbles/tool-bubble/virtual-file-editor.tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +218 -0
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/web-crawl-tool.js +255 -0
- package/dist/bubbles/tool-bubble/web-crawl-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +134 -0
- package/dist/bubbles/tool-bubble/web-extract-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/web-extract-tool.js +175 -0
- package/dist/bubbles/tool-bubble/web-extract-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +228 -0
- package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/web-scrape-tool.js +214 -0
- package/dist/bubbles/tool-bubble/web-scrape-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts +134 -0
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/web-search-tool.js +155 -0
- package/dist/bubbles/tool-bubble/web-search-tool.js.map +1 -0
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +114 -0
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +1 -0
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +777 -0
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +1 -0
- package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.d.ts +97 -0
- package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.d.ts.map +1 -0
- package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.js +327 -0
- package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.js.map +1 -0
- package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +303 -0
- package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts.map +1 -0
- package/dist/bubbles/workflow-bubble/database-analyzer.workflow.js +297 -0
- package/dist/bubbles/workflow-bubble/database-analyzer.workflow.js.map +1 -0
- package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.d.ts +157 -0
- package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.d.ts.map +1 -0
- package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.js +310 -0
- package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.js.map +1 -0
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +543 -0
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts.map +1 -0
- package/dist/bubbles/workflow-bubble/generate-document.workflow.js +628 -0
- package/dist/bubbles/workflow-bubble/generate-document.workflow.js.map +1 -0
- package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +679 -0
- package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts.map +1 -0
- package/dist/bubbles/workflow-bubble/parse-document.workflow.js +604 -0
- package/dist/bubbles/workflow-bubble/parse-document.workflow.js.map +1 -0
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +1011 -0
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts.map +1 -0
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js +841 -0
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js.map +1 -0
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +883 -0
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts.map +1 -0
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js +781 -0
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js.map +1 -0
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +300 -0
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts.map +1 -0
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js +508 -0
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js.map +1 -0
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +731 -0
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts.map +1 -0
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.js +690 -0
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.js.map +1 -0
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +401 -0
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts.map +1 -0
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js +382 -0
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js.map +1 -0
- package/dist/bubbles/workflow-bubble/workflow-template.d.ts +144 -0
- package/dist/bubbles/workflow-bubble/workflow-template.d.ts.map +1 -0
- package/dist/bubbles/workflow-bubble/workflow-template.js +124 -0
- package/dist/bubbles/workflow-bubble/workflow-template.js.map +1 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +53 -0
- package/dist/index.js.map +1 -0
- package/dist/logging/BubbleLogger.d.ts +146 -0
- package/dist/logging/BubbleLogger.d.ts.map +1 -0
- package/dist/logging/BubbleLogger.js +472 -0
- package/dist/logging/BubbleLogger.js.map +1 -0
- package/dist/logging/StreamingBubbleLogger.d.ts +85 -0
- package/dist/logging/StreamingBubbleLogger.d.ts.map +1 -0
- package/dist/logging/StreamingBubbleLogger.js +340 -0
- package/dist/logging/StreamingBubbleLogger.js.map +1 -0
- package/dist/types/ai-models.d.ts +4 -0
- package/dist/types/ai-models.d.ts.map +1 -0
- package/dist/types/ai-models.js +14 -0
- package/dist/types/ai-models.js.map +1 -0
- package/dist/types/available-tools.d.ts +4 -0
- package/dist/types/available-tools.d.ts.map +1 -0
- package/dist/types/available-tools.js +19 -0
- package/dist/types/available-tools.js.map +1 -0
- package/dist/types/base-bubble-class.d.ts +47 -0
- package/dist/types/base-bubble-class.d.ts.map +1 -0
- package/dist/types/base-bubble-class.js +212 -0
- package/dist/types/base-bubble-class.js.map +1 -0
- package/dist/types/bubble-errors.d.ts +44 -0
- package/dist/types/bubble-errors.d.ts.map +1 -0
- package/dist/types/bubble-errors.js +51 -0
- package/dist/types/bubble-errors.js.map +1 -0
- package/dist/types/bubble.d.ts +73 -0
- package/dist/types/bubble.d.ts.map +1 -0
- package/dist/types/bubble.js +2 -0
- package/dist/types/bubble.js.map +1 -0
- package/dist/types/credentials.d.ts +6 -0
- package/dist/types/credentials.d.ts.map +1 -0
- package/dist/types/credentials.js +6 -0
- package/dist/types/credentials.js.map +1 -0
- package/dist/types/service-bubble-class.d.ts +31 -0
- package/dist/types/service-bubble-class.d.ts.map +1 -0
- package/dist/types/service-bubble-class.js +36 -0
- package/dist/types/service-bubble-class.js.map +1 -0
- package/dist/types/streaming-events.d.ts +18 -0
- package/dist/types/streaming-events.d.ts.map +1 -0
- package/dist/types/streaming-events.js +5 -0
- package/dist/types/streaming-events.js.map +1 -0
- package/dist/types/tool-bubble-class.d.ts +19 -0
- package/dist/types/tool-bubble-class.d.ts.map +1 -0
- package/dist/types/tool-bubble-class.js +48 -0
- package/dist/types/tool-bubble-class.js.map +1 -0
- package/dist/types/workflow-bubble-class.d.ts +25 -0
- package/dist/types/workflow-bubble-class.d.ts.map +1 -0
- package/dist/types/workflow-bubble-class.js +30 -0
- package/dist/types/workflow-bubble-class.js.map +1 -0
- package/dist/utils/bubbleflow-parser.d.ts +32 -0
- package/dist/utils/bubbleflow-parser.d.ts.map +1 -0
- package/dist/utils/bubbleflow-parser.js +332 -0
- package/dist/utils/bubbleflow-parser.js.map +1 -0
- package/dist/utils/bubbleflow-validation.d.ts +9 -0
- package/dist/utils/bubbleflow-validation.d.ts.map +1 -0
- package/dist/utils/bubbleflow-validation.js +116 -0
- package/dist/utils/bubbleflow-validation.js.map +1 -0
- package/dist/utils/json-parsing.d.ts +20 -0
- package/dist/utils/json-parsing.d.ts.map +1 -0
- package/dist/utils/json-parsing.js +394 -0
- package/dist/utils/json-parsing.js.map +1 -0
- package/dist/utils/mock-data-generator.d.ts +43 -0
- package/dist/utils/mock-data-generator.d.ts.map +1 -0
- package/dist/utils/mock-data-generator.js +312 -0
- package/dist/utils/mock-data-generator.js.map +1 -0
- package/dist/utils/param-helper.d.ts +2 -0
- package/dist/utils/param-helper.d.ts.map +1 -0
- package/dist/utils/param-helper.js +5 -0
- package/dist/utils/param-helper.js.map +1 -0
- package/dist/utils/source-bubble-parser.d.ts +31 -0
- package/dist/utils/source-bubble-parser.d.ts.map +1 -0
- package/dist/utils/source-bubble-parser.js +231 -0
- package/dist/utils/source-bubble-parser.js.map +1 -0
- package/package.json +63 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slackagenttest.js","sourceRoot":"","sources":["../../../src/bubble-flow/sample/slackagenttest.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,8BAA8B,EAC9B,aAAa,EACb,gBAAgB,EAChB,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAQhC,yEAAyE;AACzE,MAAM,OAAO,cAAe,SAAQ,UAA0B;IAC5D;QACE,KAAK,CAAC,WAAW,EAAE,oCAAoC,CAAC,CAAC;IAC3D,CAAC;IACD,KAAK,CAAC,MAAM,CACV,OAAmD;QAEnD,MAAM,cAAc,GAAG,MAAM,IAAI,8BAA8B,CA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,EAAE,CAAC,CAAC;YAC1D,iBAAiB,EAAE,OAAO,CAAC,IAAI,EAAE,SAAmB;YACpD,aAAa,EAAE,aAAa;YAC5B,YAAY,EAAE,oCAAoC;YAClD,YAAY,EAAE,cAAc;YAC5B,iBAAiB,EAAE,IAAI;YACvB,gBAAgB,EAAE,IAAI;YACtB,OAAO,EAAE;gBACP,KAAK,EAAE,yBAAyB;gBAChC,WAAW,EAAE,GAAG;aACjB;SACF,CAAC,CAAC,MAAM,EAAE,CAAC;QAEZ,OAAO;YACL,OAAO,EAAE,iBAAiB,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC,SAAS,KAAK,OAAO,CAAC,IAAI,KAAK,iBAAiB,CAAC,IAAI,EAAE,WAAW,EAAE,gBAAgB,qBAAqB;SAC7J,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bubble-trigger/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/bubble-trigger/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export interface BubbleTriggerEventRegistry {
|
|
2
|
+
'slack/bot_mentioned': SlackMentionEvent;
|
|
3
|
+
'slack/message_received': SlackMessageReceivedEvent;
|
|
4
|
+
'gmail/email_received': GmailEmailEvent;
|
|
5
|
+
'schedule/cron/daily': CronEvent;
|
|
6
|
+
'webhook/http': WebhookEvent;
|
|
7
|
+
}
|
|
8
|
+
export declare const BUBBLE_TRIGGER_EVENTS: {
|
|
9
|
+
readonly 'slack/bot_mentioned': true;
|
|
10
|
+
readonly 'slack/message_received': true;
|
|
11
|
+
readonly 'gmail/email_received': true;
|
|
12
|
+
readonly 'schedule/cron/daily': true;
|
|
13
|
+
readonly 'webhook/http': true;
|
|
14
|
+
};
|
|
15
|
+
export declare function isValidBubbleTriggerEvent(eventType: string): eventType is keyof BubbleTriggerEventRegistry;
|
|
16
|
+
export interface BubbleTriggerEvent {
|
|
17
|
+
type: keyof BubbleTriggerEventRegistry;
|
|
18
|
+
timestamp: string;
|
|
19
|
+
path: string;
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
export interface SlackEventWrapper {
|
|
23
|
+
token: string;
|
|
24
|
+
team_id: string;
|
|
25
|
+
api_app_id: string;
|
|
26
|
+
event: SlackAppMentionEvent | SlackMessageEvent;
|
|
27
|
+
type: 'event_callback';
|
|
28
|
+
authorizations: Array<{
|
|
29
|
+
enterprise_id?: string;
|
|
30
|
+
team_id: string;
|
|
31
|
+
user_id: string;
|
|
32
|
+
is_bot: boolean;
|
|
33
|
+
}>;
|
|
34
|
+
event_context: string;
|
|
35
|
+
event_id: string;
|
|
36
|
+
event_time: number;
|
|
37
|
+
}
|
|
38
|
+
export interface SlackAppMentionEvent {
|
|
39
|
+
type: 'app_mention';
|
|
40
|
+
user: string;
|
|
41
|
+
text: string;
|
|
42
|
+
ts: string;
|
|
43
|
+
channel: string;
|
|
44
|
+
event_ts: string;
|
|
45
|
+
thread_ts?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface SlackMessageEvent {
|
|
48
|
+
type: 'message';
|
|
49
|
+
user: string;
|
|
50
|
+
text: string;
|
|
51
|
+
ts: string;
|
|
52
|
+
channel: string;
|
|
53
|
+
event_ts: string;
|
|
54
|
+
channel_type: 'channel' | 'group' | 'im' | 'mpim';
|
|
55
|
+
subtype?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface SlackMentionEvent extends BubbleTriggerEvent {
|
|
58
|
+
slack_event: SlackEventWrapper;
|
|
59
|
+
channel: string;
|
|
60
|
+
user: string;
|
|
61
|
+
text: string;
|
|
62
|
+
thread_ts?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface SlackMessageReceivedEvent extends BubbleTriggerEvent {
|
|
65
|
+
slack_event: SlackEventWrapper;
|
|
66
|
+
channel: string;
|
|
67
|
+
user: string;
|
|
68
|
+
text: string;
|
|
69
|
+
channel_type: 'channel' | 'group' | 'im' | 'mpim';
|
|
70
|
+
subtype?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface GmailEmailEvent extends BubbleTriggerEvent {
|
|
73
|
+
email: string;
|
|
74
|
+
}
|
|
75
|
+
export interface CronEvent extends BubbleTriggerEvent {
|
|
76
|
+
cron: string;
|
|
77
|
+
}
|
|
78
|
+
export interface WebhookEvent extends BubbleTriggerEvent {
|
|
79
|
+
body?: Record<string, unknown>;
|
|
80
|
+
}
|
|
81
|
+
export interface BubbleTriggerOptions {
|
|
82
|
+
name?: string;
|
|
83
|
+
description?: string;
|
|
84
|
+
timeout?: number;
|
|
85
|
+
retries?: number;
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/bubble-trigger/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACzC,qBAAqB,EAAE,iBAAiB,CAAC;IACzC,wBAAwB,EAAE,yBAAyB,CAAC;IACpD,sBAAsB,EAAE,eAAe,CAAC;IACxC,qBAAqB,EAAE,SAAS,CAAC;IACjC,cAAc,EAAE,YAAY,CAAC;CAC9B;AAID,eAAO,MAAM,qBAAqB;;;;;;CAMiC,CAAC;AAGpE,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,MAAM,GAChB,SAAS,IAAI,MAAM,0BAA0B,CAE/C;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,0BAA0B,CAAC;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAGD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM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AW,EAAE,iBAAiB,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,SAAS,GAAG,OAAO,GAAG,IAAI,GAAG,MAAM,CAAC;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,SAAU,SAAQ,kBAAkB;IACnD,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAa,SAAQ,kBAAkB;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Runtime object that mirrors the interface keys
|
|
2
|
+
// This allows us to validate event types at runtime
|
|
3
|
+
export const BUBBLE_TRIGGER_EVENTS = {
|
|
4
|
+
'slack/bot_mentioned': true,
|
|
5
|
+
'slack/message_received': true,
|
|
6
|
+
'gmail/email_received': true,
|
|
7
|
+
'schedule/cron/daily': true,
|
|
8
|
+
'webhook/http': true,
|
|
9
|
+
};
|
|
10
|
+
// Helper function to check if an event type is valid
|
|
11
|
+
export function isValidBubbleTriggerEvent(eventType) {
|
|
12
|
+
return eventType in BUBBLE_TRIGGER_EVENTS;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/bubble-trigger/types.ts"],"names":[],"mappings":"AAQA,iDAAiD;AACjD,oDAAoD;AACpD,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,qBAAqB,EAAE,IAAI;IAC3B,wBAAwB,EAAE,IAAI;IAC9B,sBAAsB,EAAE,IAAI;IAC5B,qBAAqB,EAAE,IAAI;IAC3B,cAAc,EAAE,IAAI;CAC6C,CAAC;AAEpE,qDAAqD;AACrD,MAAM,UAAU,yBAAyB,CACvC,SAAiB;IAEjB,OAAO,SAAS,IAAI,qBAAqB,CAAC;AAC5C,CAAC"}
|
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ServiceBubble } from '../../types/service-bubble-class.js';
|
|
3
|
+
import type { BubbleContext } from '../../types/bubble.js';
|
|
4
|
+
import { CredentialType } from '@bubblelab/shared-schemas';
|
|
5
|
+
import type { BubbleName } from '@bubblelab/shared-schemas';
|
|
6
|
+
export type StreamingEvent = {
|
|
7
|
+
type: 'start';
|
|
8
|
+
data: {
|
|
9
|
+
message: string;
|
|
10
|
+
maxIterations: number;
|
|
11
|
+
timestamp: string;
|
|
12
|
+
};
|
|
13
|
+
} | {
|
|
14
|
+
type: 'llm_start';
|
|
15
|
+
data: {
|
|
16
|
+
model: string;
|
|
17
|
+
temperature: number;
|
|
18
|
+
};
|
|
19
|
+
} | {
|
|
20
|
+
type: 'token';
|
|
21
|
+
data: {
|
|
22
|
+
content: string;
|
|
23
|
+
messageId: string;
|
|
24
|
+
};
|
|
25
|
+
} | {
|
|
26
|
+
type: 'llm_complete';
|
|
27
|
+
data: {
|
|
28
|
+
messageId: string;
|
|
29
|
+
totalTokens?: number;
|
|
30
|
+
};
|
|
31
|
+
} | {
|
|
32
|
+
type: 'tool_start';
|
|
33
|
+
data: {
|
|
34
|
+
tool: string;
|
|
35
|
+
input: unknown;
|
|
36
|
+
callId: string;
|
|
37
|
+
};
|
|
38
|
+
} | {
|
|
39
|
+
type: 'tool_complete';
|
|
40
|
+
data: {
|
|
41
|
+
callId: string;
|
|
42
|
+
output: unknown;
|
|
43
|
+
duration: number;
|
|
44
|
+
};
|
|
45
|
+
} | {
|
|
46
|
+
type: 'iteration_start';
|
|
47
|
+
data: {
|
|
48
|
+
iteration: number;
|
|
49
|
+
};
|
|
50
|
+
} | {
|
|
51
|
+
type: 'iteration_complete';
|
|
52
|
+
data: {
|
|
53
|
+
iteration: number;
|
|
54
|
+
hasToolCalls: boolean;
|
|
55
|
+
};
|
|
56
|
+
} | {
|
|
57
|
+
type: 'error';
|
|
58
|
+
data: {
|
|
59
|
+
error: string;
|
|
60
|
+
recoverable: boolean;
|
|
61
|
+
};
|
|
62
|
+
} | {
|
|
63
|
+
type: 'complete';
|
|
64
|
+
data: {
|
|
65
|
+
result: AIAgentResult;
|
|
66
|
+
totalDuration: number;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export type StreamingCallback = (event: StreamingEvent) => Promise<void> | void;
|
|
70
|
+
declare const AIAgentParamsSchema: z.ZodObject<{
|
|
71
|
+
message: z.ZodString;
|
|
72
|
+
images: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
73
|
+
type: z.ZodDefault<z.ZodLiteral<"base64">>;
|
|
74
|
+
data: z.ZodString;
|
|
75
|
+
mimeType: z.ZodDefault<z.ZodString>;
|
|
76
|
+
description: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
data: string;
|
|
79
|
+
type: "base64";
|
|
80
|
+
mimeType: string;
|
|
81
|
+
description?: string | undefined;
|
|
82
|
+
}, {
|
|
83
|
+
data: string;
|
|
84
|
+
type?: "base64" | undefined;
|
|
85
|
+
description?: string | undefined;
|
|
86
|
+
mimeType?: string | undefined;
|
|
87
|
+
}>, z.ZodObject<{
|
|
88
|
+
type: z.ZodLiteral<"url">;
|
|
89
|
+
url: z.ZodString;
|
|
90
|
+
description: z.ZodOptional<z.ZodString>;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
type: "url";
|
|
93
|
+
url: string;
|
|
94
|
+
description?: string | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
type: "url";
|
|
97
|
+
url: string;
|
|
98
|
+
description?: string | undefined;
|
|
99
|
+
}>]>, "many">>;
|
|
100
|
+
systemPrompt: z.ZodDefault<z.ZodString>;
|
|
101
|
+
name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
102
|
+
model: z.ZodDefault<z.ZodObject<{
|
|
103
|
+
model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>;
|
|
104
|
+
temperature: z.ZodDefault<z.ZodNumber>;
|
|
105
|
+
maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
106
|
+
jsonMode: z.ZodDefault<z.ZodBoolean>;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview";
|
|
109
|
+
temperature: number;
|
|
110
|
+
maxTokens: number;
|
|
111
|
+
jsonMode: boolean;
|
|
112
|
+
}, {
|
|
113
|
+
model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined;
|
|
114
|
+
temperature?: number | undefined;
|
|
115
|
+
maxTokens?: number | undefined;
|
|
116
|
+
jsonMode?: boolean | undefined;
|
|
117
|
+
}>>;
|
|
118
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
119
|
+
name: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "list-bubbles-tool", "get-bubble-details-tool", "bubbleflow-validation-tool", "chart-js-tool", "sql-query-tool"]>;
|
|
120
|
+
credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>;
|
|
121
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
name: "get-bubble-details-tool" | "list-bubbles-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";
|
|
124
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
125
|
+
config?: Record<string, unknown> | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
name: "get-bubble-details-tool" | "list-bubbles-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";
|
|
128
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
129
|
+
config?: Record<string, unknown> | undefined;
|
|
130
|
+
}>, "many">>;
|
|
131
|
+
maxIterations: z.ZodDefault<z.ZodNumber>;
|
|
132
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
133
|
+
streaming: z.ZodDefault<z.ZodBoolean>;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
message: string;
|
|
136
|
+
model: {
|
|
137
|
+
model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview";
|
|
138
|
+
temperature: number;
|
|
139
|
+
maxTokens: number;
|
|
140
|
+
jsonMode: boolean;
|
|
141
|
+
};
|
|
142
|
+
images: ({
|
|
143
|
+
data: string;
|
|
144
|
+
type: "base64";
|
|
145
|
+
mimeType: string;
|
|
146
|
+
description?: string | undefined;
|
|
147
|
+
} | {
|
|
148
|
+
type: "url";
|
|
149
|
+
url: string;
|
|
150
|
+
description?: string | undefined;
|
|
151
|
+
})[];
|
|
152
|
+
systemPrompt: string;
|
|
153
|
+
tools: {
|
|
154
|
+
name: "get-bubble-details-tool" | "list-bubbles-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";
|
|
155
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
156
|
+
config?: Record<string, unknown> | undefined;
|
|
157
|
+
}[];
|
|
158
|
+
maxIterations: number;
|
|
159
|
+
streaming: boolean;
|
|
160
|
+
name?: string | undefined;
|
|
161
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
162
|
+
}, {
|
|
163
|
+
message: string;
|
|
164
|
+
name?: string | undefined;
|
|
165
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
166
|
+
model?: {
|
|
167
|
+
model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined;
|
|
168
|
+
temperature?: number | undefined;
|
|
169
|
+
maxTokens?: number | undefined;
|
|
170
|
+
jsonMode?: boolean | undefined;
|
|
171
|
+
} | undefined;
|
|
172
|
+
images?: ({
|
|
173
|
+
data: string;
|
|
174
|
+
type?: "base64" | undefined;
|
|
175
|
+
description?: string | undefined;
|
|
176
|
+
mimeType?: string | undefined;
|
|
177
|
+
} | {
|
|
178
|
+
type: "url";
|
|
179
|
+
url: string;
|
|
180
|
+
description?: string | undefined;
|
|
181
|
+
})[] | undefined;
|
|
182
|
+
systemPrompt?: string | undefined;
|
|
183
|
+
tools?: {
|
|
184
|
+
name: "get-bubble-details-tool" | "list-bubbles-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";
|
|
185
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
186
|
+
config?: Record<string, unknown> | undefined;
|
|
187
|
+
}[] | undefined;
|
|
188
|
+
maxIterations?: number | undefined;
|
|
189
|
+
streaming?: boolean | undefined;
|
|
190
|
+
}>;
|
|
191
|
+
declare const AIAgentResultSchema: z.ZodObject<{
|
|
192
|
+
response: z.ZodString;
|
|
193
|
+
toolCalls: z.ZodArray<z.ZodObject<{
|
|
194
|
+
tool: z.ZodString;
|
|
195
|
+
input: z.ZodUnknown;
|
|
196
|
+
output: z.ZodUnknown;
|
|
197
|
+
}, "strip", z.ZodTypeAny, {
|
|
198
|
+
tool: string;
|
|
199
|
+
input?: unknown;
|
|
200
|
+
output?: unknown;
|
|
201
|
+
}, {
|
|
202
|
+
tool: string;
|
|
203
|
+
input?: unknown;
|
|
204
|
+
output?: unknown;
|
|
205
|
+
}>, "many">;
|
|
206
|
+
iterations: z.ZodNumber;
|
|
207
|
+
error: z.ZodString;
|
|
208
|
+
success: z.ZodBoolean;
|
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
success: boolean;
|
|
211
|
+
error: string;
|
|
212
|
+
response: string;
|
|
213
|
+
toolCalls: {
|
|
214
|
+
tool: string;
|
|
215
|
+
input?: unknown;
|
|
216
|
+
output?: unknown;
|
|
217
|
+
}[];
|
|
218
|
+
iterations: number;
|
|
219
|
+
}, {
|
|
220
|
+
success: boolean;
|
|
221
|
+
error: string;
|
|
222
|
+
response: string;
|
|
223
|
+
toolCalls: {
|
|
224
|
+
tool: string;
|
|
225
|
+
input?: unknown;
|
|
226
|
+
output?: unknown;
|
|
227
|
+
}[];
|
|
228
|
+
iterations: number;
|
|
229
|
+
}>;
|
|
230
|
+
type AIAgentParams = z.input<typeof AIAgentParamsSchema>;
|
|
231
|
+
type AIAgentParamsParsed = z.output<typeof AIAgentParamsSchema>;
|
|
232
|
+
type AIAgentResult = z.output<typeof AIAgentResultSchema>;
|
|
233
|
+
export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AIAgentResult> {
|
|
234
|
+
static readonly type: "service";
|
|
235
|
+
static readonly service = "ai-agent";
|
|
236
|
+
static readonly authType: "apikey";
|
|
237
|
+
static readonly bubbleName: BubbleName;
|
|
238
|
+
static readonly schema: z.ZodObject<{
|
|
239
|
+
message: z.ZodString;
|
|
240
|
+
images: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
241
|
+
type: z.ZodDefault<z.ZodLiteral<"base64">>;
|
|
242
|
+
data: z.ZodString;
|
|
243
|
+
mimeType: z.ZodDefault<z.ZodString>;
|
|
244
|
+
description: z.ZodOptional<z.ZodString>;
|
|
245
|
+
}, "strip", z.ZodTypeAny, {
|
|
246
|
+
data: string;
|
|
247
|
+
type: "base64";
|
|
248
|
+
mimeType: string;
|
|
249
|
+
description?: string | undefined;
|
|
250
|
+
}, {
|
|
251
|
+
data: string;
|
|
252
|
+
type?: "base64" | undefined;
|
|
253
|
+
description?: string | undefined;
|
|
254
|
+
mimeType?: string | undefined;
|
|
255
|
+
}>, z.ZodObject<{
|
|
256
|
+
type: z.ZodLiteral<"url">;
|
|
257
|
+
url: z.ZodString;
|
|
258
|
+
description: z.ZodOptional<z.ZodString>;
|
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
type: "url";
|
|
261
|
+
url: string;
|
|
262
|
+
description?: string | undefined;
|
|
263
|
+
}, {
|
|
264
|
+
type: "url";
|
|
265
|
+
url: string;
|
|
266
|
+
description?: string | undefined;
|
|
267
|
+
}>]>, "many">>;
|
|
268
|
+
systemPrompt: z.ZodDefault<z.ZodString>;
|
|
269
|
+
name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
270
|
+
model: z.ZodDefault<z.ZodObject<{
|
|
271
|
+
model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview"]>>;
|
|
272
|
+
temperature: z.ZodDefault<z.ZodNumber>;
|
|
273
|
+
maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
274
|
+
jsonMode: z.ZodDefault<z.ZodBoolean>;
|
|
275
|
+
}, "strip", z.ZodTypeAny, {
|
|
276
|
+
model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview";
|
|
277
|
+
temperature: number;
|
|
278
|
+
maxTokens: number;
|
|
279
|
+
jsonMode: boolean;
|
|
280
|
+
}, {
|
|
281
|
+
model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined;
|
|
282
|
+
temperature?: number | undefined;
|
|
283
|
+
maxTokens?: number | undefined;
|
|
284
|
+
jsonMode?: boolean | undefined;
|
|
285
|
+
}>>;
|
|
286
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
287
|
+
name: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "list-bubbles-tool", "get-bubble-details-tool", "bubbleflow-validation-tool", "chart-js-tool", "sql-query-tool"]>;
|
|
288
|
+
credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>;
|
|
289
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
290
|
+
}, "strip", z.ZodTypeAny, {
|
|
291
|
+
name: "get-bubble-details-tool" | "list-bubbles-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";
|
|
292
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
293
|
+
config?: Record<string, unknown> | undefined;
|
|
294
|
+
}, {
|
|
295
|
+
name: "get-bubble-details-tool" | "list-bubbles-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";
|
|
296
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
297
|
+
config?: Record<string, unknown> | undefined;
|
|
298
|
+
}>, "many">>;
|
|
299
|
+
maxIterations: z.ZodDefault<z.ZodNumber>;
|
|
300
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
301
|
+
streaming: z.ZodDefault<z.ZodBoolean>;
|
|
302
|
+
}, "strip", z.ZodTypeAny, {
|
|
303
|
+
message: string;
|
|
304
|
+
model: {
|
|
305
|
+
model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview";
|
|
306
|
+
temperature: number;
|
|
307
|
+
maxTokens: number;
|
|
308
|
+
jsonMode: boolean;
|
|
309
|
+
};
|
|
310
|
+
images: ({
|
|
311
|
+
data: string;
|
|
312
|
+
type: "base64";
|
|
313
|
+
mimeType: string;
|
|
314
|
+
description?: string | undefined;
|
|
315
|
+
} | {
|
|
316
|
+
type: "url";
|
|
317
|
+
url: string;
|
|
318
|
+
description?: string | undefined;
|
|
319
|
+
})[];
|
|
320
|
+
systemPrompt: string;
|
|
321
|
+
tools: {
|
|
322
|
+
name: "get-bubble-details-tool" | "list-bubbles-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";
|
|
323
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
324
|
+
config?: Record<string, unknown> | undefined;
|
|
325
|
+
}[];
|
|
326
|
+
maxIterations: number;
|
|
327
|
+
streaming: boolean;
|
|
328
|
+
name?: string | undefined;
|
|
329
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
330
|
+
}, {
|
|
331
|
+
message: string;
|
|
332
|
+
name?: string | undefined;
|
|
333
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
334
|
+
model?: {
|
|
335
|
+
model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | undefined;
|
|
336
|
+
temperature?: number | undefined;
|
|
337
|
+
maxTokens?: number | undefined;
|
|
338
|
+
jsonMode?: boolean | undefined;
|
|
339
|
+
} | undefined;
|
|
340
|
+
images?: ({
|
|
341
|
+
data: string;
|
|
342
|
+
type?: "base64" | undefined;
|
|
343
|
+
description?: string | undefined;
|
|
344
|
+
mimeType?: string | undefined;
|
|
345
|
+
} | {
|
|
346
|
+
type: "url";
|
|
347
|
+
url: string;
|
|
348
|
+
description?: string | undefined;
|
|
349
|
+
})[] | undefined;
|
|
350
|
+
systemPrompt?: string | undefined;
|
|
351
|
+
tools?: {
|
|
352
|
+
name: "get-bubble-details-tool" | "list-bubbles-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";
|
|
353
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
354
|
+
config?: Record<string, unknown> | undefined;
|
|
355
|
+
}[] | undefined;
|
|
356
|
+
maxIterations?: number | undefined;
|
|
357
|
+
streaming?: boolean | undefined;
|
|
358
|
+
}>;
|
|
359
|
+
static readonly resultSchema: z.ZodObject<{
|
|
360
|
+
response: z.ZodString;
|
|
361
|
+
toolCalls: z.ZodArray<z.ZodObject<{
|
|
362
|
+
tool: z.ZodString;
|
|
363
|
+
input: z.ZodUnknown;
|
|
364
|
+
output: z.ZodUnknown;
|
|
365
|
+
}, "strip", z.ZodTypeAny, {
|
|
366
|
+
tool: string;
|
|
367
|
+
input?: unknown;
|
|
368
|
+
output?: unknown;
|
|
369
|
+
}, {
|
|
370
|
+
tool: string;
|
|
371
|
+
input?: unknown;
|
|
372
|
+
output?: unknown;
|
|
373
|
+
}>, "many">;
|
|
374
|
+
iterations: z.ZodNumber;
|
|
375
|
+
error: z.ZodString;
|
|
376
|
+
success: z.ZodBoolean;
|
|
377
|
+
}, "strip", z.ZodTypeAny, {
|
|
378
|
+
success: boolean;
|
|
379
|
+
error: string;
|
|
380
|
+
response: string;
|
|
381
|
+
toolCalls: {
|
|
382
|
+
tool: string;
|
|
383
|
+
input?: unknown;
|
|
384
|
+
output?: unknown;
|
|
385
|
+
}[];
|
|
386
|
+
iterations: number;
|
|
387
|
+
}, {
|
|
388
|
+
success: boolean;
|
|
389
|
+
error: string;
|
|
390
|
+
response: string;
|
|
391
|
+
toolCalls: {
|
|
392
|
+
tool: string;
|
|
393
|
+
input?: unknown;
|
|
394
|
+
output?: unknown;
|
|
395
|
+
}[];
|
|
396
|
+
iterations: number;
|
|
397
|
+
}>;
|
|
398
|
+
static readonly shortDescription = "AI agent with LangGraph for tool-enabled conversations, multimodal support, and JSON mode";
|
|
399
|
+
static readonly longDescription = "\n An AI agent powered by LangGraph that can use any tool bubble to answer questions.\n Use cases:\n - Add tools to enhance the AI agent's capabilities (web-search-tool, web-scrape-tool)\n - Multi-step reasoning with tool assistance\n - Tool-augmented conversations with any registered tool\n - JSON mode for structured output (strips markdown formatting)\n ";
|
|
400
|
+
static readonly alias = "agent";
|
|
401
|
+
private factory;
|
|
402
|
+
constructor(params?: AIAgentParams, context?: BubbleContext);
|
|
403
|
+
testCredential(): Promise<boolean>;
|
|
404
|
+
protected performAction(context?: BubbleContext): Promise<AIAgentResult>;
|
|
405
|
+
/**
|
|
406
|
+
* Execute the AI agent with streaming support for real-time feedback
|
|
407
|
+
*/
|
|
408
|
+
actionWithStreaming(streamingCallback: StreamingCallback, context?: BubbleContext): Promise<AIAgentResult>;
|
|
409
|
+
protected chooseCredential(): string | undefined;
|
|
410
|
+
/**
|
|
411
|
+
* Format final response with special handling for Gemini image models and JSON mode
|
|
412
|
+
*/
|
|
413
|
+
private formatFinalResponse;
|
|
414
|
+
/**
|
|
415
|
+
* Convert Gemini's inlineData format to LangChain-compatible data URI format
|
|
416
|
+
*/
|
|
417
|
+
private formatGeminiImageResponse;
|
|
418
|
+
private initializeModel;
|
|
419
|
+
private initializeTools;
|
|
420
|
+
private createAgentGraph;
|
|
421
|
+
private executeAgent;
|
|
422
|
+
/**
|
|
423
|
+
* Execute agent with streaming support using LangGraph streamEvents
|
|
424
|
+
*/
|
|
425
|
+
private executeAgentWithStreaming;
|
|
426
|
+
}
|
|
427
|
+
export {};
|
|
428
|
+
//# sourceMappingURL=ai-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-agent.d.ts","sourceRoot":"","sources":["../../../src/bubbles/service-bubble/ai-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,cAAc,EAEf,MAAM,2BAA2B,CAAC;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