@bubblelab/bubble-core 0.1.9 → 0.1.11
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 +633 -1658
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +165 -43
- package/dist/bubble-factory.js.map +1 -1
- package/dist/bubble-flow/bubble-flow-class.d.ts +22 -1
- package/dist/bubble-flow/bubble-flow-class.d.ts.map +1 -1
- package/dist/bubble-flow/bubble-flow-class.js +36 -0
- package/dist/bubble-flow/bubble-flow-class.js.map +1 -1
- package/dist/bubble-flow/sample/data-analyst-flow.d.ts +1 -1
- package/dist/bubble-flow/sample/data-analyst-flow.d.ts.map +1 -1
- package/dist/bubble-flow/sample/error-ts.d.ts +1 -1
- package/dist/bubble-flow/sample/error-ts.d.ts.map +1 -1
- package/dist/bubble-flow/sample/sanitytest.d.ts +1 -1
- package/dist/bubble-flow/sample/sanitytest.d.ts.map +1 -1
- package/dist/bubble-flow/sample/simple-webhook-2.d.ts +1 -1
- package/dist/bubble-flow/sample/simple-webhook-2.d.ts.map +1 -1
- package/dist/bubble-flow/sample/simple-webhook.d.ts +1 -1
- package/dist/bubble-flow/sample/simple-webhook.d.ts.map +1 -1
- package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts +1 -1
- package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts.map +1 -1
- package/dist/bubble-flow/sample/simplified-data-analysis.flow.js +6 -3
- package/dist/bubble-flow/sample/simplified-data-analysis.flow.js.map +1 -1
- package/dist/bubble-flow/sample/slack-v0.1.d.ts +1 -1
- package/dist/bubble-flow/sample/slack-v0.1.d.ts.map +1 -1
- package/dist/bubble-flow/sample/slackagenttest.d.ts +1 -1
- package/dist/bubble-flow/sample/slackagenttest.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/agi-inc.d.ts +1121 -0
- package/dist/bubbles/service-bubble/agi-inc.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/agi-inc.js +730 -0
- package/dist/bubbles/service-bubble/agi-inc.js.map +1 -0
- package/dist/bubbles/service-bubble/ai-agent.d.ts +297 -85
- package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.js +535 -399
- package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
- package/dist/bubbles/service-bubble/airtable.d.ts +1753 -0
- package/dist/bubbles/service-bubble/airtable.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/airtable.js +1173 -0
- package/dist/bubbles/service-bubble/airtable.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts +240 -0
- package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.js +119 -0
- package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +38 -38
- package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +56 -56
- package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +137 -0
- package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.js +81 -0
- package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +27 -27
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +38 -38
- package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +488 -0
- package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.js +463 -0
- package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +262 -0
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.js +291 -0
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +184 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.js +145 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.d.ts +52 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.js +29 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +1483 -123
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js +48 -0
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js.map +1 -1
- package/dist/bubbles/service-bubble/apify/apify.d.ts +156 -11
- package/dist/bubbles/service-bubble/apify/apify.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/apify/apify.js +205 -32
- package/dist/bubbles/service-bubble/apify/apify.js.map +1 -1
- package/dist/bubbles/service-bubble/apify/index.d.ts +2 -0
- package/dist/bubbles/service-bubble/apify/index.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/apify/index.js +3 -0
- package/dist/bubbles/service-bubble/apify/index.js.map +1 -1
- package/dist/bubbles/service-bubble/apify/types.js +1 -2
- package/dist/bubbles/service-bubble/apify/types.js.map +1 -1
- package/dist/bubbles/service-bubble/eleven-labs.d.ts +421 -0
- package/dist/bubbles/service-bubble/eleven-labs.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/eleven-labs.js +479 -0
- package/dist/bubbles/service-bubble/eleven-labs.js.map +1 -0
- package/dist/bubbles/service-bubble/firecrawl.d.ts +37748 -0
- package/dist/bubbles/service-bubble/firecrawl.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/firecrawl.js +1489 -0
- package/dist/bubbles/service-bubble/firecrawl.js.map +1 -0
- package/dist/bubbles/service-bubble/followupboss.d.ts +6822 -0
- package/dist/bubbles/service-bubble/followupboss.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/followupboss.js +1394 -0
- package/dist/bubbles/service-bubble/followupboss.js.map +1 -0
- package/dist/bubbles/service-bubble/github.d.ts +2399 -0
- package/dist/bubbles/service-bubble/github.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/github.js +1052 -0
- package/dist/bubbles/service-bubble/github.js.map +1 -0
- package/dist/bubbles/service-bubble/gmail.d.ts +726 -232
- package/dist/bubbles/service-bubble/gmail.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/gmail.js +435 -7
- package/dist/bubbles/service-bubble/gmail.js.map +1 -1
- package/dist/bubbles/service-bubble/google-calendar.d.ts +8 -8
- package/dist/bubbles/service-bubble/google-drive.d.ts +270 -40
- package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/google-drive.js +100 -78
- package/dist/bubbles/service-bubble/google-drive.js.map +1 -1
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +943 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.d.ts +31 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.js +184 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.js.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.js +401 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.js.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts +1024 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/{google-sheets.js → google-sheets/google-sheets.schema.js} +45 -409
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.js.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.d.ts +38 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.js +183 -0
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.js.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets/index.d.ts +4 -0
- package/dist/bubbles/service-bubble/google-sheets/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets/index.js +4 -0
- package/dist/bubbles/service-bubble/google-sheets/index.js.map +1 -0
- package/dist/bubbles/service-bubble/hello-world.js +2 -2
- package/dist/bubbles/service-bubble/hello-world.js.map +1 -1
- package/dist/bubbles/service-bubble/http.d.ts +6 -6
- package/dist/bubbles/service-bubble/http.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/http.js +7 -1
- package/dist/bubbles/service-bubble/http.js.map +1 -1
- package/dist/bubbles/service-bubble/insforge-db.d.ts +140 -0
- package/dist/bubbles/service-bubble/insforge-db.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/insforge-db.js +260 -0
- package/dist/bubbles/service-bubble/insforge-db.js.map +1 -0
- package/dist/bubbles/service-bubble/notion/index.d.ts +3 -0
- package/dist/bubbles/service-bubble/notion/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/notion/index.js +3 -0
- package/dist/bubbles/service-bubble/notion/index.js.map +1 -0
- package/dist/bubbles/service-bubble/notion/notion.d.ts +35405 -0
- package/dist/bubbles/service-bubble/notion/notion.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/notion/notion.js +1492 -0
- package/dist/bubbles/service-bubble/notion/notion.js.map +1 -0
- package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +1148 -0
- package/dist/bubbles/service-bubble/notion/property-schemas.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/notion/property-schemas.js +341 -0
- package/dist/bubbles/service-bubble/notion/property-schemas.js.map +1 -0
- package/dist/bubbles/service-bubble/postgresql.d.ts +8 -8
- package/dist/bubbles/service-bubble/resend.d.ts +30 -9
- package/dist/bubbles/service-bubble/resend.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/resend.js +133 -2
- package/dist/bubbles/service-bubble/resend.js.map +1 -1
- package/dist/bubbles/service-bubble/slack.d.ts +525 -525
- package/dist/bubbles/service-bubble/slack.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/slack.js +2 -2
- package/dist/bubbles/service-bubble/slack.js.map +1 -1
- package/dist/bubbles/service-bubble/storage.d.ts +21 -17
- package/dist/bubbles/service-bubble/storage.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/storage.js +59 -7
- package/dist/bubbles/service-bubble/storage.js.map +1 -1
- package/dist/bubbles/service-bubble/telegram.d.ts +7742 -0
- package/dist/bubbles/service-bubble/telegram.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/telegram.js +1132 -0
- package/dist/bubbles/service-bubble/telegram.js.map +1 -0
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +60 -4
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.js +12 -0
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +188 -0
- package/dist/bubbles/tool-bubble/code-edit-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/code-edit-tool.js +321 -0
- package/dist/bubbles/tool-bubble/code-edit-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +8 -4
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.js +132 -19
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +455 -0
- package/dist/bubbles/tool-bubble/google-maps-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/google-maps-tool.js +205 -0
- package/dist/bubbles/tool-bubble/google-maps-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/instagram-tool.d.ts +90 -90
- package/dist/bubbles/tool-bubble/instagram-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/instagram-tool.js +2 -2
- package/dist/bubbles/tool-bubble/instagram-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +808 -431
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/linkedin-tool.js +232 -12
- package/dist/bubbles/tool-bubble/linkedin-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +21 -16
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.js +97 -22
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +17 -16
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/research-agent-tool.js +27 -17
- package/dist/bubbles/tool-bubble/research-agent-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +485 -0
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/tiktok-tool.js +226 -0
- package/dist/bubbles/tool-bubble/tiktok-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +947 -0
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/twitter-tool.js +494 -0
- package/dist/bubbles/tool-bubble/twitter-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +32 -26
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/web-crawl-tool.js +58 -59
- package/dist/bubbles/tool-bubble/web-crawl-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/web-extract-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/web-extract-tool.js +17 -17
- package/dist/bubbles/tool-bubble/web-extract-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +23 -115
- package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/web-scrape-tool.js +51 -72
- package/dist/bubbles/tool-bubble/web-scrape-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts +18 -6
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/web-search-tool.js +46 -32
- package/dist/bubbles/tool-bubble/web-search-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts +394 -0
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/youtube-tool.js +352 -0
- package/dist/bubbles/tool-bubble/youtube-tool.js.map +1 -0
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +78 -78
- package/dist/bubbles/workflow-bubble/generate-document.workflow.js +1 -1
- package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +62 -62
- package/dist/bubbles/workflow-bubble/parse-document.workflow.js +1 -1
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +80 -80
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts.map +1 -1
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js +4 -4
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js.map +1 -1
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +52 -52
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts.map +1 -1
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js +2 -2
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js.map +1 -1
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +32 -32
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts.map +1 -1
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js +6 -6
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js.map +1 -1
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +46 -46
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts.map +1 -1
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.js +24 -4
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.js.map +1 -1
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +27 -27
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts.map +1 -1
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js +8 -8
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js.map +1 -1
- package/dist/bubbles.json +251 -88
- package/dist/index.d.ts +27 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -4
- package/dist/index.js.map +1 -1
- package/dist/logging/BubbleLogger.d.ts +45 -16
- package/dist/logging/BubbleLogger.d.ts.map +1 -1
- package/dist/logging/BubbleLogger.js +197 -89
- package/dist/logging/BubbleLogger.js.map +1 -1
- package/dist/logging/StreamingBubbleLogger.d.ts +13 -1
- package/dist/logging/StreamingBubbleLogger.d.ts.map +1 -1
- package/dist/logging/StreamingBubbleLogger.js +56 -13
- package/dist/logging/StreamingBubbleLogger.js.map +1 -1
- package/dist/logging/WebhookStreamLogger.d.ts +66 -0
- package/dist/logging/WebhookStreamLogger.d.ts.map +1 -0
- package/dist/logging/WebhookStreamLogger.js +291 -0
- package/dist/logging/WebhookStreamLogger.js.map +1 -0
- package/dist/types/available-tools.d.ts +1 -1
- package/dist/types/available-tools.d.ts.map +1 -1
- package/dist/types/available-tools.js +1 -0
- package/dist/types/available-tools.js.map +1 -1
- package/dist/types/base-bubble-class.d.ts +7 -5
- package/dist/types/base-bubble-class.d.ts.map +1 -1
- package/dist/types/base-bubble-class.js +63 -40
- package/dist/types/base-bubble-class.js.map +1 -1
- package/dist/types/bubble.d.ts +3 -10
- package/dist/types/bubble.d.ts.map +1 -1
- package/dist/types/bubble.js +1 -1
- package/dist/types/bubble.js.map +1 -1
- package/dist/types/service-bubble-class.d.ts +2 -2
- package/dist/types/service-bubble-class.d.ts.map +1 -1
- package/dist/types/service-bubble-class.js +2 -2
- package/dist/types/service-bubble-class.js.map +1 -1
- package/dist/types/tool-bubble-class.d.ts +2 -2
- package/dist/types/tool-bubble-class.d.ts.map +1 -1
- package/dist/types/tool-bubble-class.js +2 -4
- package/dist/types/tool-bubble-class.js.map +1 -1
- package/dist/types/workflow-bubble-class.d.ts +2 -2
- package/dist/types/workflow-bubble-class.d.ts.map +1 -1
- package/dist/types/workflow-bubble-class.js +2 -2
- package/dist/types/workflow-bubble-class.js.map +1 -1
- package/dist/utils/agent-formatter.d.ts +14 -2
- package/dist/utils/agent-formatter.d.ts.map +1 -1
- package/dist/utils/agent-formatter.js +176 -28
- package/dist/utils/agent-formatter.js.map +1 -1
- package/dist/utils/bubbleflow-validation.d.ts +7 -0
- package/dist/utils/bubbleflow-validation.d.ts.map +1 -1
- package/dist/utils/bubbleflow-validation.js +257 -35
- package/dist/utils/bubbleflow-validation.js.map +1 -1
- package/dist/utils/error-sanitizer.d.ts +12 -0
- package/dist/utils/error-sanitizer.d.ts.map +1 -0
- package/dist/utils/error-sanitizer.js +77 -0
- package/dist/utils/error-sanitizer.js.map +1 -0
- package/dist/utils/json-parsing.d.ts.map +1 -1
- package/dist/utils/json-parsing.js +146 -0
- package/dist/utils/json-parsing.js.map +1 -1
- package/dist/utils/safe-gemini-chat.d.ts +31 -0
- package/dist/utils/safe-gemini-chat.d.ts.map +1 -0
- package/dist/utils/safe-gemini-chat.js +93 -0
- package/dist/utils/safe-gemini-chat.js.map +1 -0
- package/dist/utils/schema-comparison.d.ts +92 -0
- package/dist/utils/schema-comparison.d.ts.map +1 -0
- package/dist/utils/schema-comparison.js +716 -0
- package/dist/utils/schema-comparison.js.map +1 -0
- package/dist/utils/zod-schema.d.ts +24 -0
- package/dist/utils/zod-schema.d.ts.map +1 -0
- package/dist/utils/zod-schema.js +56 -0
- package/dist/utils/zod-schema.js.map +1 -0
- package/package.json +7 -6
- package/dist/bubble-trigger/index.d.ts +0 -2
- package/dist/bubble-trigger/index.d.ts.map +0 -1
- package/dist/bubble-trigger/index.js +0 -2
- package/dist/bubble-trigger/index.js.map +0 -1
- package/dist/bubble-trigger/types.d.ts +0 -87
- package/dist/bubble-trigger/types.d.ts.map +0 -1
- package/dist/bubble-trigger/types.js +0 -14
- package/dist/bubble-trigger/types.js.map +0 -1
- package/dist/bubbles/service-bubble/apify/api-scraper.schema.d.ts +0 -370
- package/dist/bubbles/service-bubble/apify/api-scraper.schema.d.ts.map +0 -1
- package/dist/bubbles/service-bubble/apify/api-scraper.schema.js +0 -14
- package/dist/bubbles/service-bubble/apify/api-scraper.schema.js.map +0 -1
- package/dist/bubbles/service-bubble/apify.d.ts +0 -136
- package/dist/bubbles/service-bubble/apify.d.ts.map +0 -1
- package/dist/bubbles/service-bubble/apify.js +0 -282
- package/dist/bubbles/service-bubble/apify.js.map +0 -1
- package/dist/bubbles/service-bubble/google-sheets.d.ts +0 -1811
- package/dist/bubbles/service-bubble/google-sheets.d.ts.map +0 -1
- package/dist/bubbles/service-bubble/google-sheets.js.map +0 -1
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +0 -114
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +0 -1
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +0 -782
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +0 -1
- package/dist/types/ai-models.d.ts +0 -4
- package/dist/types/ai-models.d.ts.map +0 -1
- package/dist/types/ai-models.js +0 -20
- package/dist/types/ai-models.js.map +0 -1
- package/dist/types/api-scraper.schema.d.ts +0 -453
- package/dist/types/api-scraper.schema.d.ts.map +0 -1
- package/dist/types/api-scraper.schema.js +0 -160
- package/dist/types/api-scraper.schema.js.map +0 -1
- package/dist/utils/param-helper.d.ts +0 -2
- package/dist/utils/param-helper.d.ts.map +0 -1
- package/dist/utils/param-helper.js +0 -5
- package/dist/utils/param-helper.js.map +0 -1
|
@@ -6,66 +6,17 @@ declare const WebScrapeToolParamsSchema: z.ZodObject<{
|
|
|
6
6
|
url: z.ZodString;
|
|
7
7
|
format: z.ZodDefault<z.ZodEnum<["markdown"]>>;
|
|
8
8
|
onlyMainContent: z.ZodDefault<z.ZodBoolean>;
|
|
9
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
|
-
type: z.ZodEnum<["wait", "click", "write", "press", "scroll", "executeJavascript"]>;
|
|
11
|
-
milliseconds: z.ZodOptional<z.ZodNumber>;
|
|
12
|
-
selector: z.ZodOptional<z.ZodString>;
|
|
13
|
-
text: z.ZodOptional<z.ZodString>;
|
|
14
|
-
key: z.ZodOptional<z.ZodString>;
|
|
15
|
-
direction: z.ZodOptional<z.ZodEnum<["up", "down"]>>;
|
|
16
|
-
script: z.ZodOptional<z.ZodString>;
|
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript";
|
|
19
|
-
text?: string | undefined;
|
|
20
|
-
script?: string | undefined;
|
|
21
|
-
key?: string | undefined;
|
|
22
|
-
milliseconds?: number | undefined;
|
|
23
|
-
selector?: string | undefined;
|
|
24
|
-
direction?: "up" | "down" | undefined;
|
|
25
|
-
}, {
|
|
26
|
-
type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript";
|
|
27
|
-
text?: string | undefined;
|
|
28
|
-
script?: string | undefined;
|
|
29
|
-
key?: string | undefined;
|
|
30
|
-
milliseconds?: number | undefined;
|
|
31
|
-
selector?: string | undefined;
|
|
32
|
-
direction?: "up" | "down" | undefined;
|
|
33
|
-
}>, "many">>;
|
|
34
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
35
|
-
waitFor: z.ZodDefault<z.ZodNumber>;
|
|
36
9
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
37
10
|
}, "strip", z.ZodTypeAny, {
|
|
38
11
|
format: "markdown";
|
|
39
12
|
url: string;
|
|
40
13
|
onlyMainContent: boolean;
|
|
41
|
-
waitFor: number;
|
|
42
14
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
43
|
-
headers?: Record<string, string> | undefined;
|
|
44
|
-
actions?: {
|
|
45
|
-
type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript";
|
|
46
|
-
text?: string | undefined;
|
|
47
|
-
script?: string | undefined;
|
|
48
|
-
key?: string | undefined;
|
|
49
|
-
milliseconds?: number | undefined;
|
|
50
|
-
selector?: string | undefined;
|
|
51
|
-
direction?: "up" | "down" | undefined;
|
|
52
|
-
}[] | undefined;
|
|
53
15
|
}, {
|
|
54
16
|
url: string;
|
|
55
17
|
format?: "markdown" | undefined;
|
|
56
18
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
57
|
-
headers?: Record<string, string> | undefined;
|
|
58
19
|
onlyMainContent?: boolean | undefined;
|
|
59
|
-
waitFor?: number | undefined;
|
|
60
|
-
actions?: {
|
|
61
|
-
type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript";
|
|
62
|
-
text?: string | undefined;
|
|
63
|
-
script?: string | undefined;
|
|
64
|
-
key?: string | undefined;
|
|
65
|
-
milliseconds?: number | undefined;
|
|
66
|
-
selector?: string | undefined;
|
|
67
|
-
direction?: "up" | "down" | undefined;
|
|
68
|
-
}[] | undefined;
|
|
69
20
|
}>;
|
|
70
21
|
declare const WebScrapeToolResultSchema: z.ZodObject<{
|
|
71
22
|
content: z.ZodString;
|
|
@@ -74,37 +25,40 @@ declare const WebScrapeToolResultSchema: z.ZodObject<{
|
|
|
74
25
|
format: z.ZodString;
|
|
75
26
|
success: z.ZodBoolean;
|
|
76
27
|
error: z.ZodString;
|
|
28
|
+
creditsUsed: z.ZodNumber;
|
|
77
29
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
78
30
|
statusCode: z.ZodOptional<z.ZodNumber>;
|
|
79
31
|
loadTime: z.ZodOptional<z.ZodNumber>;
|
|
80
32
|
}, "strip", z.ZodTypeAny, {
|
|
81
|
-
loadTime?: number | undefined;
|
|
82
33
|
statusCode?: number | undefined;
|
|
83
|
-
}, {
|
|
84
34
|
loadTime?: number | undefined;
|
|
35
|
+
}, {
|
|
85
36
|
statusCode?: number | undefined;
|
|
37
|
+
loadTime?: number | undefined;
|
|
86
38
|
}>>;
|
|
87
39
|
}, "strip", z.ZodTypeAny, {
|
|
88
40
|
format: string;
|
|
89
41
|
title: string;
|
|
42
|
+
error: string;
|
|
43
|
+
success: boolean;
|
|
90
44
|
content: string;
|
|
91
45
|
url: string;
|
|
92
|
-
|
|
93
|
-
error: string;
|
|
46
|
+
creditsUsed: number;
|
|
94
47
|
metadata?: {
|
|
95
|
-
loadTime?: number | undefined;
|
|
96
48
|
statusCode?: number | undefined;
|
|
49
|
+
loadTime?: number | undefined;
|
|
97
50
|
} | undefined;
|
|
98
51
|
}, {
|
|
99
52
|
format: string;
|
|
100
53
|
title: string;
|
|
54
|
+
error: string;
|
|
55
|
+
success: boolean;
|
|
101
56
|
content: string;
|
|
102
57
|
url: string;
|
|
103
|
-
|
|
104
|
-
error: string;
|
|
58
|
+
creditsUsed: number;
|
|
105
59
|
metadata?: {
|
|
106
|
-
loadTime?: number | undefined;
|
|
107
60
|
statusCode?: number | undefined;
|
|
61
|
+
loadTime?: number | undefined;
|
|
108
62
|
} | undefined;
|
|
109
63
|
}>;
|
|
110
64
|
type WebScrapeToolParams = z.output<typeof WebScrapeToolParamsSchema>;
|
|
@@ -116,66 +70,17 @@ export declare class WebScrapeTool extends ToolBubble<WebScrapeToolParams, WebSc
|
|
|
116
70
|
url: z.ZodString;
|
|
117
71
|
format: z.ZodDefault<z.ZodEnum<["markdown"]>>;
|
|
118
72
|
onlyMainContent: z.ZodDefault<z.ZodBoolean>;
|
|
119
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
120
|
-
type: z.ZodEnum<["wait", "click", "write", "press", "scroll", "executeJavascript"]>;
|
|
121
|
-
milliseconds: z.ZodOptional<z.ZodNumber>;
|
|
122
|
-
selector: z.ZodOptional<z.ZodString>;
|
|
123
|
-
text: z.ZodOptional<z.ZodString>;
|
|
124
|
-
key: z.ZodOptional<z.ZodString>;
|
|
125
|
-
direction: z.ZodOptional<z.ZodEnum<["up", "down"]>>;
|
|
126
|
-
script: z.ZodOptional<z.ZodString>;
|
|
127
|
-
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript";
|
|
129
|
-
text?: string | undefined;
|
|
130
|
-
script?: string | undefined;
|
|
131
|
-
key?: string | undefined;
|
|
132
|
-
milliseconds?: number | undefined;
|
|
133
|
-
selector?: string | undefined;
|
|
134
|
-
direction?: "up" | "down" | undefined;
|
|
135
|
-
}, {
|
|
136
|
-
type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript";
|
|
137
|
-
text?: string | undefined;
|
|
138
|
-
script?: string | undefined;
|
|
139
|
-
key?: string | undefined;
|
|
140
|
-
milliseconds?: number | undefined;
|
|
141
|
-
selector?: string | undefined;
|
|
142
|
-
direction?: "up" | "down" | undefined;
|
|
143
|
-
}>, "many">>;
|
|
144
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
145
|
-
waitFor: z.ZodDefault<z.ZodNumber>;
|
|
146
73
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
147
74
|
}, "strip", z.ZodTypeAny, {
|
|
148
75
|
format: "markdown";
|
|
149
76
|
url: string;
|
|
150
77
|
onlyMainContent: boolean;
|
|
151
|
-
waitFor: number;
|
|
152
78
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
153
|
-
headers?: Record<string, string> | undefined;
|
|
154
|
-
actions?: {
|
|
155
|
-
type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript";
|
|
156
|
-
text?: string | undefined;
|
|
157
|
-
script?: string | undefined;
|
|
158
|
-
key?: string | undefined;
|
|
159
|
-
milliseconds?: number | undefined;
|
|
160
|
-
selector?: string | undefined;
|
|
161
|
-
direction?: "up" | "down" | undefined;
|
|
162
|
-
}[] | undefined;
|
|
163
79
|
}, {
|
|
164
80
|
url: string;
|
|
165
81
|
format?: "markdown" | undefined;
|
|
166
82
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
167
|
-
headers?: Record<string, string> | undefined;
|
|
168
83
|
onlyMainContent?: boolean | undefined;
|
|
169
|
-
waitFor?: number | undefined;
|
|
170
|
-
actions?: {
|
|
171
|
-
type: "wait" | "click" | "write" | "press" | "scroll" | "executeJavascript";
|
|
172
|
-
text?: string | undefined;
|
|
173
|
-
script?: string | undefined;
|
|
174
|
-
key?: string | undefined;
|
|
175
|
-
milliseconds?: number | undefined;
|
|
176
|
-
selector?: string | undefined;
|
|
177
|
-
direction?: "up" | "down" | undefined;
|
|
178
|
-
}[] | undefined;
|
|
179
84
|
}>;
|
|
180
85
|
static readonly resultSchema: z.ZodObject<{
|
|
181
86
|
content: z.ZodString;
|
|
@@ -184,40 +89,43 @@ export declare class WebScrapeTool extends ToolBubble<WebScrapeToolParams, WebSc
|
|
|
184
89
|
format: z.ZodString;
|
|
185
90
|
success: z.ZodBoolean;
|
|
186
91
|
error: z.ZodString;
|
|
92
|
+
creditsUsed: z.ZodNumber;
|
|
187
93
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
188
94
|
statusCode: z.ZodOptional<z.ZodNumber>;
|
|
189
95
|
loadTime: z.ZodOptional<z.ZodNumber>;
|
|
190
96
|
}, "strip", z.ZodTypeAny, {
|
|
191
|
-
loadTime?: number | undefined;
|
|
192
97
|
statusCode?: number | undefined;
|
|
193
|
-
}, {
|
|
194
98
|
loadTime?: number | undefined;
|
|
99
|
+
}, {
|
|
195
100
|
statusCode?: number | undefined;
|
|
101
|
+
loadTime?: number | undefined;
|
|
196
102
|
}>>;
|
|
197
103
|
}, "strip", z.ZodTypeAny, {
|
|
198
104
|
format: string;
|
|
199
105
|
title: string;
|
|
106
|
+
error: string;
|
|
107
|
+
success: boolean;
|
|
200
108
|
content: string;
|
|
201
109
|
url: string;
|
|
202
|
-
|
|
203
|
-
error: string;
|
|
110
|
+
creditsUsed: number;
|
|
204
111
|
metadata?: {
|
|
205
|
-
loadTime?: number | undefined;
|
|
206
112
|
statusCode?: number | undefined;
|
|
113
|
+
loadTime?: number | undefined;
|
|
207
114
|
} | undefined;
|
|
208
115
|
}, {
|
|
209
116
|
format: string;
|
|
210
117
|
title: string;
|
|
118
|
+
error: string;
|
|
119
|
+
success: boolean;
|
|
211
120
|
content: string;
|
|
212
121
|
url: string;
|
|
213
|
-
|
|
214
|
-
error: string;
|
|
122
|
+
creditsUsed: number;
|
|
215
123
|
metadata?: {
|
|
216
|
-
loadTime?: number | undefined;
|
|
217
124
|
statusCode?: number | undefined;
|
|
125
|
+
loadTime?: number | undefined;
|
|
218
126
|
} | undefined;
|
|
219
127
|
}>;
|
|
220
|
-
static readonly shortDescription = "Scrapes content from a single web page
|
|
128
|
+
static readonly shortDescription = "Scrapes content from a single web page. Useful after web-search-tool to get the full content of a page. Also useful if you need to understand a site's structure or content.";
|
|
221
129
|
static readonly longDescription = "\n A simple and powerful web scraping tool that extracts content from any web page.\n \n Features:\n - Clean content extraction with main content focus\n - Multiple format support (markdown, html, rawHtml)\n - Fast and reliable using Firecrawl\n - Handles JavaScript-rendered pages\n - Optional browser automation for authentication flows\n - Custom headers support for session-based scraping\n - Requires FIRECRAWL_API_KEY credential\n \n Basic use cases:\n - Extract article content for analysis\n - Scrape product information from e-commerce sites\n - Get clean text from documentation pages\n - Extract data from any public web page\n \n Advanced use cases (with actions):\n - Login and scrape protected content\n - Navigate multi-step authentication flows\n - Interact with dynamic content requiring clicks/scrolls\n - Execute custom JavaScript for complex scenarios\n ";
|
|
222
130
|
static readonly alias = "scrape";
|
|
223
131
|
static readonly type = "tool";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-scrape-tool.d.ts","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/web-scrape-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAgC5E,QAAA,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"web-scrape-tool.d.ts","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/web-scrape-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,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import { FirecrawlBubble } from '../service-bubble/firecrawl.js';
|
|
4
4
|
import { CredentialType } from '@bubblelab/shared-schemas';
|
|
5
5
|
import { AIAgentBubble } from '../service-bubble/ai-agent.js';
|
|
6
6
|
// Action types for browser automation (Gemini-compatible: avoid const/anyOf)
|
|
7
|
-
const ActionSchema = z.object({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
});
|
|
7
|
+
// const ActionSchema = z.object({
|
|
8
|
+
// type: z
|
|
9
|
+
// .enum(['wait', 'click', 'write', 'press', 'scroll', 'executeJavascript'])
|
|
10
|
+
// .describe('Action type to perform'),
|
|
11
|
+
// milliseconds: z
|
|
12
|
+
// .number()
|
|
13
|
+
// .optional()
|
|
14
|
+
// .describe('Time to wait in milliseconds (for wait)'),
|
|
15
|
+
// selector: z
|
|
16
|
+
// .string()
|
|
17
|
+
// .optional()
|
|
18
|
+
// .describe('CSS selector to interact with (wait/click/write/scroll)'),
|
|
19
|
+
// text: z.string().optional().describe('Text to write (for write)'),
|
|
20
|
+
// key: z
|
|
21
|
+
// .string()
|
|
22
|
+
// .optional()
|
|
23
|
+
// .describe('Key to press (e.g., "Enter") (for press)'),
|
|
24
|
+
// direction: z
|
|
25
|
+
// .enum(['up', 'down'])
|
|
26
|
+
// .optional()
|
|
27
|
+
// .describe('Scroll direction (for scroll)'),
|
|
28
|
+
// script: z
|
|
29
|
+
// .string()
|
|
30
|
+
// .optional()
|
|
31
|
+
// .describe('JavaScript code (for executeJavascript)'),
|
|
32
|
+
// });
|
|
33
33
|
// Simple, focused parameters with optional advanced features
|
|
34
34
|
const WebScrapeToolParamsSchema = z.object({
|
|
35
35
|
url: z
|
|
@@ -44,20 +44,6 @@ const WebScrapeToolParamsSchema = z.object({
|
|
|
44
44
|
.boolean()
|
|
45
45
|
.default(true)
|
|
46
46
|
.describe('Extract only main content, filtering out navigation/footers'),
|
|
47
|
-
actions: z
|
|
48
|
-
.array(ActionSchema)
|
|
49
|
-
.optional()
|
|
50
|
-
.describe('Optional browser actions for authentication/navigation (e.g., login flows)'),
|
|
51
|
-
headers: z
|
|
52
|
-
.record(z.string())
|
|
53
|
-
.optional()
|
|
54
|
-
.describe('Optional HTTP headers (e.g., for session cookies)'),
|
|
55
|
-
waitFor: z
|
|
56
|
-
.number()
|
|
57
|
-
.min(0)
|
|
58
|
-
.max(30000)
|
|
59
|
-
.default(3000)
|
|
60
|
-
.describe('Time to wait for dynamic content in milliseconds (default: 3000)'),
|
|
61
47
|
credentials: z
|
|
62
48
|
.record(z.nativeEnum(CredentialType), z.string())
|
|
63
49
|
.optional()
|
|
@@ -71,6 +57,7 @@ const WebScrapeToolResultSchema = z.object({
|
|
|
71
57
|
format: z.string().describe('Format of the returned content'),
|
|
72
58
|
success: z.boolean().describe('Whether the scraping was successful'),
|
|
73
59
|
error: z.string().describe('Error message if scraping failed'),
|
|
60
|
+
creditsUsed: z.number().describe('Number of credits used'),
|
|
74
61
|
metadata: z
|
|
75
62
|
.object({
|
|
76
63
|
statusCode: z.number().optional(),
|
|
@@ -84,7 +71,7 @@ export class WebScrapeTool extends ToolBubble {
|
|
|
84
71
|
static bubbleName = 'web-scrape-tool';
|
|
85
72
|
static schema = WebScrapeToolParamsSchema;
|
|
86
73
|
static resultSchema = WebScrapeToolResultSchema;
|
|
87
|
-
static shortDescription =
|
|
74
|
+
static shortDescription = "Scrapes content from a single web page. Useful after web-search-tool to get the full content of a page. Also useful if you need to understand a site's structure or content.";
|
|
88
75
|
static longDescription = `
|
|
89
76
|
A simple and powerful web scraping tool that extracts content from any web page.
|
|
90
77
|
|
|
@@ -115,41 +102,28 @@ export class WebScrapeTool extends ToolBubble {
|
|
|
115
102
|
super(params, context);
|
|
116
103
|
}
|
|
117
104
|
async performAction() {
|
|
118
|
-
const { url, format,
|
|
105
|
+
const { url, format, credentials } = this.params;
|
|
119
106
|
const startTime = Date.now();
|
|
120
107
|
try {
|
|
121
|
-
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
// Initialize Firecrawl client
|
|
127
|
-
const firecrawl = new FirecrawlApp({ apiKey });
|
|
128
|
-
console.log('[WebScrapeTool] Scraping URL:', url, 'with format:', format);
|
|
129
|
-
// Configure scraping options
|
|
130
|
-
const scrapeOptions = {
|
|
108
|
+
console.debug('[WebScrapeTool] Scraping URL:', url, 'with format:', format);
|
|
109
|
+
const firecrawl = new FirecrawlBubble({
|
|
110
|
+
operation: 'scrape',
|
|
111
|
+
credentials,
|
|
112
|
+
url,
|
|
131
113
|
formats: [format],
|
|
132
|
-
|
|
114
|
+
// Wait for 2 seconds to ensure the page is loaded
|
|
115
|
+
waitFor: 2000,
|
|
133
116
|
// Sensible defaults for most use cases
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
};
|
|
137
|
-
// Add optional parameters if provided
|
|
138
|
-
if (actions && actions.length > 0) {
|
|
139
|
-
console.log('[WebScrapeTool] Using browser actions:', actions.length, 'steps');
|
|
140
|
-
scrapeOptions.actions = actions;
|
|
141
|
-
}
|
|
142
|
-
if (headers) {
|
|
143
|
-
console.log('[WebScrapeTool] Using custom headers');
|
|
144
|
-
scrapeOptions.headers = headers;
|
|
145
|
-
}
|
|
117
|
+
maxAge: 172800000,
|
|
118
|
+
parsers: ['pdf'],
|
|
119
|
+
}, this.context, 'web_scrape_tool_firecrawl');
|
|
146
120
|
// Execute scrape
|
|
147
|
-
const response = await firecrawl.
|
|
121
|
+
const response = await firecrawl.action();
|
|
148
122
|
// Extract content based on format
|
|
149
123
|
let content;
|
|
150
124
|
let title = '';
|
|
151
|
-
if (format === 'markdown' && response.markdown) {
|
|
152
|
-
content = response.markdown;
|
|
125
|
+
if (format === 'markdown' && response.data.markdown) {
|
|
126
|
+
content = response.data.markdown;
|
|
153
127
|
}
|
|
154
128
|
else {
|
|
155
129
|
throw new Error(`No content available in ${format} format`);
|
|
@@ -161,6 +135,7 @@ export class WebScrapeTool extends ToolBubble {
|
|
|
161
135
|
message: `Summarize the scraped content to condense all information and remove any non-essential information, include all links, contact information, companies, don't omit any information. Content: ${content}`,
|
|
162
136
|
model: {
|
|
163
137
|
model: 'google/gemini-2.5-flash-lite',
|
|
138
|
+
maxTokens: 80000,
|
|
164
139
|
},
|
|
165
140
|
name: 'Scrape Content Summarizer Agent',
|
|
166
141
|
credentials: this.params.credentials,
|
|
@@ -177,19 +152,22 @@ export class WebScrapeTool extends ToolBubble {
|
|
|
177
152
|
}
|
|
178
153
|
}
|
|
179
154
|
// Extract title from metadata
|
|
180
|
-
if (response.metadata?.title) {
|
|
181
|
-
title = response.metadata.title;
|
|
155
|
+
if (response.data.metadata?.title) {
|
|
156
|
+
title = response.data.metadata.title;
|
|
182
157
|
}
|
|
183
158
|
const loadTime = Date.now() - startTime;
|
|
159
|
+
// Token usage tracking is now centralized in FirecrawlBubble
|
|
184
160
|
return {
|
|
185
161
|
content: content.trim(),
|
|
186
162
|
title,
|
|
187
163
|
url,
|
|
164
|
+
// Per page 1 credit
|
|
165
|
+
creditsUsed: 1,
|
|
188
166
|
format,
|
|
189
167
|
success: true,
|
|
190
168
|
error: '',
|
|
191
169
|
metadata: {
|
|
192
|
-
statusCode: response.metadata?.statusCode,
|
|
170
|
+
statusCode: response.data.metadata?.statusCode,
|
|
193
171
|
loadTime,
|
|
194
172
|
},
|
|
195
173
|
};
|
|
@@ -204,6 +182,7 @@ export class WebScrapeTool extends ToolBubble {
|
|
|
204
182
|
format,
|
|
205
183
|
success: false,
|
|
206
184
|
error: errorMessage,
|
|
185
|
+
creditsUsed: 0,
|
|
207
186
|
metadata: {
|
|
208
187
|
loadTime: Date.now() - startTime,
|
|
209
188
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-scrape-tool.js","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/web-scrape-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,
|
|
1
|
+
{"version":3,"file":"web-scrape-tool.js","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/web-scrape-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAmB,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,6EAA6E;AAC7E,kCAAkC;AAClC,YAAY;AACZ,gFAAgF;AAChF,2CAA2C;AAC3C,oBAAoB;AACpB,gBAAgB;AAChB,kBAAkB;AAClB,4DAA4D;AAC5D,gBAAgB;AAChB,gBAAgB;AAChB,kBAAkB;AAClB,4EAA4E;AAC5E,uEAAuE;AACvE,WAAW;AACX,gBAAgB;AAChB,kBAAkB;AAClB,6DAA6D;AAC7D,iBAAiB;AACjB,4BAA4B;AAC5B,kBAAkB;AAClB,kDAAkD;AAClD,cAAc;AACd,gBAAgB;AAChB,kBAAkB;AAClB,4DAA4D;AAC5D,MAAM;AAEN,6DAA6D;AAC7D,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,GAAG,EAAE,CAAC;SACH,MAAM,EAAE;SACR,GAAG,CAAC,qBAAqB,CAAC;SAC1B,QAAQ,CAAC,gCAAgC,CAAC;IAC7C,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,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,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC;YAExC,6DAA6D;YAE7D,OAAO;gBACL,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE;gBACvB,KAAK;gBACL,GAAG;gBACH,oBAAoB;gBACpB,WAAW,EAAE,CAAC;gBACd,MAAM;gBACN,OAAO,EAAE,IAAI;gBACb,KAAK,EAAE,EAAE;gBACT,QAAQ,EAAE;oBACR,UAAU,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU;oBAC9C,QAAQ;iBACT;aACF,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,KAAK,CAAC,CAAC;YAEtD,MAAM,YAAY,GAChB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC;YAE3D,OAAO;gBACL,OAAO,EAAE,EAAE;gBACX,KAAK,EAAE,EAAE;gBACT,GAAG;gBACH,MAAM;gBACN,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,CAAC;gBACd,QAAQ,EAAE;oBACR,QAAQ,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS;iBACjC;aACF,CAAC;QACJ,CAAC;IACH,CAAC"}
|
|
@@ -5,11 +5,13 @@ import { CredentialType, type BubbleName } from '@bubblelab/shared-schemas';
|
|
|
5
5
|
declare const WebSearchToolParamsSchema: z.ZodObject<{
|
|
6
6
|
query: z.ZodString;
|
|
7
7
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
8
|
+
categories: z.ZodDefault<z.ZodArray<z.ZodEnum<["research", "pdf", "github"]>, "many">>;
|
|
8
9
|
location: z.ZodOptional<z.ZodString>;
|
|
9
10
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
10
11
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
limit: number;
|
|
12
12
|
query: string;
|
|
13
|
+
limit: number;
|
|
14
|
+
categories: ("github" | "pdf" | "research")[];
|
|
13
15
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
14
16
|
location?: string | undefined;
|
|
15
17
|
}, {
|
|
@@ -17,6 +19,7 @@ declare const WebSearchToolParamsSchema: z.ZodObject<{
|
|
|
17
19
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
18
20
|
limit?: number | undefined;
|
|
19
21
|
location?: string | undefined;
|
|
22
|
+
categories?: ("github" | "pdf" | "research")[] | undefined;
|
|
20
23
|
}>;
|
|
21
24
|
declare const WebSearchToolResultSchema: z.ZodObject<{
|
|
22
25
|
results: z.ZodArray<z.ZodObject<{
|
|
@@ -35,29 +38,32 @@ declare const WebSearchToolResultSchema: z.ZodObject<{
|
|
|
35
38
|
query: z.ZodString;
|
|
36
39
|
totalResults: z.ZodNumber;
|
|
37
40
|
searchEngine: z.ZodString;
|
|
41
|
+
creditsUsed: z.ZodNumber;
|
|
38
42
|
success: z.ZodBoolean;
|
|
39
43
|
error: z.ZodString;
|
|
40
44
|
}, "strip", z.ZodTypeAny, {
|
|
41
45
|
error: string;
|
|
42
46
|
success: boolean;
|
|
43
|
-
totalResults: number;
|
|
44
47
|
query: string;
|
|
45
48
|
results: {
|
|
46
49
|
title: string;
|
|
47
50
|
content: string;
|
|
48
51
|
url: string;
|
|
49
52
|
}[];
|
|
53
|
+
creditsUsed: number;
|
|
54
|
+
totalResults: number;
|
|
50
55
|
searchEngine: string;
|
|
51
56
|
}, {
|
|
52
57
|
error: string;
|
|
53
58
|
success: boolean;
|
|
54
|
-
totalResults: number;
|
|
55
59
|
query: string;
|
|
56
60
|
results: {
|
|
57
61
|
title: string;
|
|
58
62
|
content: string;
|
|
59
63
|
url: string;
|
|
60
64
|
}[];
|
|
65
|
+
creditsUsed: number;
|
|
66
|
+
totalResults: number;
|
|
61
67
|
searchEngine: string;
|
|
62
68
|
}>;
|
|
63
69
|
type WebSearchToolParams = z.output<typeof WebSearchToolParamsSchema>;
|
|
@@ -68,11 +74,13 @@ export declare class WebSearchTool extends ToolBubble<WebSearchToolParams, WebSe
|
|
|
68
74
|
static readonly schema: z.ZodObject<{
|
|
69
75
|
query: z.ZodString;
|
|
70
76
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
77
|
+
categories: z.ZodDefault<z.ZodArray<z.ZodEnum<["research", "pdf", "github"]>, "many">>;
|
|
71
78
|
location: z.ZodOptional<z.ZodString>;
|
|
72
79
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
73
80
|
}, "strip", z.ZodTypeAny, {
|
|
74
|
-
limit: number;
|
|
75
81
|
query: string;
|
|
82
|
+
limit: number;
|
|
83
|
+
categories: ("github" | "pdf" | "research")[];
|
|
76
84
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
77
85
|
location?: string | undefined;
|
|
78
86
|
}, {
|
|
@@ -80,6 +88,7 @@ export declare class WebSearchTool extends ToolBubble<WebSearchToolParams, WebSe
|
|
|
80
88
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
81
89
|
limit?: number | undefined;
|
|
82
90
|
location?: string | undefined;
|
|
91
|
+
categories?: ("github" | "pdf" | "research")[] | undefined;
|
|
83
92
|
}>;
|
|
84
93
|
static readonly resultSchema: z.ZodObject<{
|
|
85
94
|
results: z.ZodArray<z.ZodObject<{
|
|
@@ -98,29 +107,32 @@ export declare class WebSearchTool extends ToolBubble<WebSearchToolParams, WebSe
|
|
|
98
107
|
query: z.ZodString;
|
|
99
108
|
totalResults: z.ZodNumber;
|
|
100
109
|
searchEngine: z.ZodString;
|
|
110
|
+
creditsUsed: z.ZodNumber;
|
|
101
111
|
success: z.ZodBoolean;
|
|
102
112
|
error: z.ZodString;
|
|
103
113
|
}, "strip", z.ZodTypeAny, {
|
|
104
114
|
error: string;
|
|
105
115
|
success: boolean;
|
|
106
|
-
totalResults: number;
|
|
107
116
|
query: string;
|
|
108
117
|
results: {
|
|
109
118
|
title: string;
|
|
110
119
|
content: string;
|
|
111
120
|
url: string;
|
|
112
121
|
}[];
|
|
122
|
+
creditsUsed: number;
|
|
123
|
+
totalResults: number;
|
|
113
124
|
searchEngine: string;
|
|
114
125
|
}, {
|
|
115
126
|
error: string;
|
|
116
127
|
success: boolean;
|
|
117
|
-
totalResults: number;
|
|
118
128
|
query: string;
|
|
119
129
|
results: {
|
|
120
130
|
title: string;
|
|
121
131
|
content: string;
|
|
122
132
|
url: string;
|
|
123
133
|
}[];
|
|
134
|
+
creditsUsed: number;
|
|
135
|
+
totalResults: number;
|
|
124
136
|
searchEngine: string;
|
|
125
137
|
}>;
|
|
126
138
|
static readonly shortDescription = "Performs web searches using Firecrawl to find current information from the web";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-search-tool.d.ts","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/web-search-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"web-search-tool.d.ts","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/web-search-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAM5E,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;EAyB7B,CAAC;AAGH,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;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