@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.
Files changed (355) hide show
  1. package/dist/bubble-bundle.d.ts +633 -1658
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +165 -43
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubble-flow/bubble-flow-class.d.ts +22 -1
  6. package/dist/bubble-flow/bubble-flow-class.d.ts.map +1 -1
  7. package/dist/bubble-flow/bubble-flow-class.js +36 -0
  8. package/dist/bubble-flow/bubble-flow-class.js.map +1 -1
  9. package/dist/bubble-flow/sample/data-analyst-flow.d.ts +1 -1
  10. package/dist/bubble-flow/sample/data-analyst-flow.d.ts.map +1 -1
  11. package/dist/bubble-flow/sample/error-ts.d.ts +1 -1
  12. package/dist/bubble-flow/sample/error-ts.d.ts.map +1 -1
  13. package/dist/bubble-flow/sample/sanitytest.d.ts +1 -1
  14. package/dist/bubble-flow/sample/sanitytest.d.ts.map +1 -1
  15. package/dist/bubble-flow/sample/simple-webhook-2.d.ts +1 -1
  16. package/dist/bubble-flow/sample/simple-webhook-2.d.ts.map +1 -1
  17. package/dist/bubble-flow/sample/simple-webhook.d.ts +1 -1
  18. package/dist/bubble-flow/sample/simple-webhook.d.ts.map +1 -1
  19. package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts +1 -1
  20. package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts.map +1 -1
  21. package/dist/bubble-flow/sample/simplified-data-analysis.flow.js +6 -3
  22. package/dist/bubble-flow/sample/simplified-data-analysis.flow.js.map +1 -1
  23. package/dist/bubble-flow/sample/slack-v0.1.d.ts +1 -1
  24. package/dist/bubble-flow/sample/slack-v0.1.d.ts.map +1 -1
  25. package/dist/bubble-flow/sample/slackagenttest.d.ts +1 -1
  26. package/dist/bubble-flow/sample/slackagenttest.d.ts.map +1 -1
  27. package/dist/bubbles/service-bubble/agi-inc.d.ts +1121 -0
  28. package/dist/bubbles/service-bubble/agi-inc.d.ts.map +1 -0
  29. package/dist/bubbles/service-bubble/agi-inc.js +730 -0
  30. package/dist/bubbles/service-bubble/agi-inc.js.map +1 -0
  31. package/dist/bubbles/service-bubble/ai-agent.d.ts +297 -85
  32. package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
  33. package/dist/bubbles/service-bubble/ai-agent.js +535 -399
  34. package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
  35. package/dist/bubbles/service-bubble/airtable.d.ts +1753 -0
  36. package/dist/bubbles/service-bubble/airtable.d.ts.map +1 -0
  37. package/dist/bubbles/service-bubble/airtable.js +1173 -0
  38. package/dist/bubbles/service-bubble/airtable.js.map +1 -0
  39. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts +240 -0
  40. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts.map +1 -0
  41. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.js +119 -0
  42. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.js.map +1 -0
  43. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +38 -38
  44. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +56 -56
  45. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +137 -0
  46. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts.map +1 -0
  47. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.js +81 -0
  48. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.js.map +1 -0
  49. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +27 -27
  50. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +38 -38
  51. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +488 -0
  52. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts.map +1 -0
  53. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.js +463 -0
  54. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.js.map +1 -0
  55. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +262 -0
  56. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts.map +1 -0
  57. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.js +291 -0
  58. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.js.map +1 -0
  59. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +184 -0
  60. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts.map +1 -0
  61. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.js +145 -0
  62. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.js.map +1 -0
  63. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.d.ts +52 -0
  64. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.d.ts.map +1 -0
  65. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.js +29 -0
  66. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.js.map +1 -0
  67. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +1483 -123
  68. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts.map +1 -1
  69. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js +48 -0
  70. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js.map +1 -1
  71. package/dist/bubbles/service-bubble/apify/apify.d.ts +156 -11
  72. package/dist/bubbles/service-bubble/apify/apify.d.ts.map +1 -1
  73. package/dist/bubbles/service-bubble/apify/apify.js +205 -32
  74. package/dist/bubbles/service-bubble/apify/apify.js.map +1 -1
  75. package/dist/bubbles/service-bubble/apify/index.d.ts +2 -0
  76. package/dist/bubbles/service-bubble/apify/index.d.ts.map +1 -1
  77. package/dist/bubbles/service-bubble/apify/index.js +3 -0
  78. package/dist/bubbles/service-bubble/apify/index.js.map +1 -1
  79. package/dist/bubbles/service-bubble/apify/types.js +1 -2
  80. package/dist/bubbles/service-bubble/apify/types.js.map +1 -1
  81. package/dist/bubbles/service-bubble/eleven-labs.d.ts +421 -0
  82. package/dist/bubbles/service-bubble/eleven-labs.d.ts.map +1 -0
  83. package/dist/bubbles/service-bubble/eleven-labs.js +479 -0
  84. package/dist/bubbles/service-bubble/eleven-labs.js.map +1 -0
  85. package/dist/bubbles/service-bubble/firecrawl.d.ts +37748 -0
  86. package/dist/bubbles/service-bubble/firecrawl.d.ts.map +1 -0
  87. package/dist/bubbles/service-bubble/firecrawl.js +1489 -0
  88. package/dist/bubbles/service-bubble/firecrawl.js.map +1 -0
  89. package/dist/bubbles/service-bubble/followupboss.d.ts +6822 -0
  90. package/dist/bubbles/service-bubble/followupboss.d.ts.map +1 -0
  91. package/dist/bubbles/service-bubble/followupboss.js +1394 -0
  92. package/dist/bubbles/service-bubble/followupboss.js.map +1 -0
  93. package/dist/bubbles/service-bubble/github.d.ts +2399 -0
  94. package/dist/bubbles/service-bubble/github.d.ts.map +1 -0
  95. package/dist/bubbles/service-bubble/github.js +1052 -0
  96. package/dist/bubbles/service-bubble/github.js.map +1 -0
  97. package/dist/bubbles/service-bubble/gmail.d.ts +726 -232
  98. package/dist/bubbles/service-bubble/gmail.d.ts.map +1 -1
  99. package/dist/bubbles/service-bubble/gmail.js +435 -7
  100. package/dist/bubbles/service-bubble/gmail.js.map +1 -1
  101. package/dist/bubbles/service-bubble/google-calendar.d.ts +8 -8
  102. package/dist/bubbles/service-bubble/google-drive.d.ts +270 -40
  103. package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -1
  104. package/dist/bubbles/service-bubble/google-drive.js +100 -78
  105. package/dist/bubbles/service-bubble/google-drive.js.map +1 -1
  106. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +943 -0
  107. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts.map +1 -0
  108. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.d.ts +31 -0
  109. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.d.ts.map +1 -0
  110. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.js +184 -0
  111. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.js.map +1 -0
  112. package/dist/bubbles/service-bubble/google-sheets/google-sheets.js +401 -0
  113. package/dist/bubbles/service-bubble/google-sheets/google-sheets.js.map +1 -0
  114. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts +1024 -0
  115. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts.map +1 -0
  116. package/dist/bubbles/service-bubble/{google-sheets.js → google-sheets/google-sheets.schema.js} +45 -409
  117. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.js.map +1 -0
  118. package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.d.ts +38 -0
  119. package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.d.ts.map +1 -0
  120. package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.js +183 -0
  121. package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.js.map +1 -0
  122. package/dist/bubbles/service-bubble/google-sheets/index.d.ts +4 -0
  123. package/dist/bubbles/service-bubble/google-sheets/index.d.ts.map +1 -0
  124. package/dist/bubbles/service-bubble/google-sheets/index.js +4 -0
  125. package/dist/bubbles/service-bubble/google-sheets/index.js.map +1 -0
  126. package/dist/bubbles/service-bubble/hello-world.js +2 -2
  127. package/dist/bubbles/service-bubble/hello-world.js.map +1 -1
  128. package/dist/bubbles/service-bubble/http.d.ts +6 -6
  129. package/dist/bubbles/service-bubble/http.d.ts.map +1 -1
  130. package/dist/bubbles/service-bubble/http.js +7 -1
  131. package/dist/bubbles/service-bubble/http.js.map +1 -1
  132. package/dist/bubbles/service-bubble/insforge-db.d.ts +140 -0
  133. package/dist/bubbles/service-bubble/insforge-db.d.ts.map +1 -0
  134. package/dist/bubbles/service-bubble/insforge-db.js +260 -0
  135. package/dist/bubbles/service-bubble/insforge-db.js.map +1 -0
  136. package/dist/bubbles/service-bubble/notion/index.d.ts +3 -0
  137. package/dist/bubbles/service-bubble/notion/index.d.ts.map +1 -0
  138. package/dist/bubbles/service-bubble/notion/index.js +3 -0
  139. package/dist/bubbles/service-bubble/notion/index.js.map +1 -0
  140. package/dist/bubbles/service-bubble/notion/notion.d.ts +35405 -0
  141. package/dist/bubbles/service-bubble/notion/notion.d.ts.map +1 -0
  142. package/dist/bubbles/service-bubble/notion/notion.js +1492 -0
  143. package/dist/bubbles/service-bubble/notion/notion.js.map +1 -0
  144. package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +1148 -0
  145. package/dist/bubbles/service-bubble/notion/property-schemas.d.ts.map +1 -0
  146. package/dist/bubbles/service-bubble/notion/property-schemas.js +341 -0
  147. package/dist/bubbles/service-bubble/notion/property-schemas.js.map +1 -0
  148. package/dist/bubbles/service-bubble/postgresql.d.ts +8 -8
  149. package/dist/bubbles/service-bubble/resend.d.ts +30 -9
  150. package/dist/bubbles/service-bubble/resend.d.ts.map +1 -1
  151. package/dist/bubbles/service-bubble/resend.js +133 -2
  152. package/dist/bubbles/service-bubble/resend.js.map +1 -1
  153. package/dist/bubbles/service-bubble/slack.d.ts +525 -525
  154. package/dist/bubbles/service-bubble/slack.d.ts.map +1 -1
  155. package/dist/bubbles/service-bubble/slack.js +2 -2
  156. package/dist/bubbles/service-bubble/slack.js.map +1 -1
  157. package/dist/bubbles/service-bubble/storage.d.ts +21 -17
  158. package/dist/bubbles/service-bubble/storage.d.ts.map +1 -1
  159. package/dist/bubbles/service-bubble/storage.js +59 -7
  160. package/dist/bubbles/service-bubble/storage.js.map +1 -1
  161. package/dist/bubbles/service-bubble/telegram.d.ts +7742 -0
  162. package/dist/bubbles/service-bubble/telegram.d.ts.map +1 -0
  163. package/dist/bubbles/service-bubble/telegram.js +1132 -0
  164. package/dist/bubbles/service-bubble/telegram.js.map +1 -0
  165. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +60 -4
  166. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts.map +1 -1
  167. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.js +12 -0
  168. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.js.map +1 -1
  169. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +4 -4
  170. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +188 -0
  171. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts.map +1 -0
  172. package/dist/bubbles/tool-bubble/code-edit-tool.js +321 -0
  173. package/dist/bubbles/tool-bubble/code-edit-tool.js.map +1 -0
  174. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +8 -4
  175. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts.map +1 -1
  176. package/dist/bubbles/tool-bubble/get-bubble-details-tool.js +132 -19
  177. package/dist/bubbles/tool-bubble/get-bubble-details-tool.js.map +1 -1
  178. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +455 -0
  179. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts.map +1 -0
  180. package/dist/bubbles/tool-bubble/google-maps-tool.js +205 -0
  181. package/dist/bubbles/tool-bubble/google-maps-tool.js.map +1 -0
  182. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +90 -90
  183. package/dist/bubbles/tool-bubble/instagram-tool.d.ts.map +1 -1
  184. package/dist/bubbles/tool-bubble/instagram-tool.js +2 -2
  185. package/dist/bubbles/tool-bubble/instagram-tool.js.map +1 -1
  186. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +808 -431
  187. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts.map +1 -1
  188. package/dist/bubbles/tool-bubble/linkedin-tool.js +232 -12
  189. package/dist/bubbles/tool-bubble/linkedin-tool.js.map +1 -1
  190. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
  191. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +21 -16
  192. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts.map +1 -1
  193. package/dist/bubbles/tool-bubble/reddit-scrape-tool.js +97 -22
  194. package/dist/bubbles/tool-bubble/reddit-scrape-tool.js.map +1 -1
  195. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +17 -16
  196. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts.map +1 -1
  197. package/dist/bubbles/tool-bubble/research-agent-tool.js +27 -17
  198. package/dist/bubbles/tool-bubble/research-agent-tool.js.map +1 -1
  199. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
  200. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +485 -0
  201. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts.map +1 -0
  202. package/dist/bubbles/tool-bubble/tiktok-tool.js +226 -0
  203. package/dist/bubbles/tool-bubble/tiktok-tool.js.map +1 -0
  204. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +947 -0
  205. package/dist/bubbles/tool-bubble/twitter-tool.d.ts.map +1 -0
  206. package/dist/bubbles/tool-bubble/twitter-tool.js +494 -0
  207. package/dist/bubbles/tool-bubble/twitter-tool.js.map +1 -0
  208. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +32 -26
  209. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts.map +1 -1
  210. package/dist/bubbles/tool-bubble/web-crawl-tool.js +58 -59
  211. package/dist/bubbles/tool-bubble/web-crawl-tool.js.map +1 -1
  212. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +4 -4
  213. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts.map +1 -1
  214. package/dist/bubbles/tool-bubble/web-extract-tool.js +17 -17
  215. package/dist/bubbles/tool-bubble/web-extract-tool.js.map +1 -1
  216. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +23 -115
  217. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts.map +1 -1
  218. package/dist/bubbles/tool-bubble/web-scrape-tool.js +51 -72
  219. package/dist/bubbles/tool-bubble/web-scrape-tool.js.map +1 -1
  220. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +18 -6
  221. package/dist/bubbles/tool-bubble/web-search-tool.d.ts.map +1 -1
  222. package/dist/bubbles/tool-bubble/web-search-tool.js +46 -32
  223. package/dist/bubbles/tool-bubble/web-search-tool.js.map +1 -1
  224. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +394 -0
  225. package/dist/bubbles/tool-bubble/youtube-tool.d.ts.map +1 -0
  226. package/dist/bubbles/tool-bubble/youtube-tool.js +352 -0
  227. package/dist/bubbles/tool-bubble/youtube-tool.js.map +1 -0
  228. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +78 -78
  229. package/dist/bubbles/workflow-bubble/generate-document.workflow.js +1 -1
  230. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +62 -62
  231. package/dist/bubbles/workflow-bubble/parse-document.workflow.js +1 -1
  232. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +80 -80
  233. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts.map +1 -1
  234. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js +4 -4
  235. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js.map +1 -1
  236. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +52 -52
  237. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts.map +1 -1
  238. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js +2 -2
  239. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js.map +1 -1
  240. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +32 -32
  241. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts.map +1 -1
  242. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js +6 -6
  243. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js.map +1 -1
  244. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +46 -46
  245. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts.map +1 -1
  246. package/dist/bubbles/workflow-bubble/slack-formatter-agent.js +24 -4
  247. package/dist/bubbles/workflow-bubble/slack-formatter-agent.js.map +1 -1
  248. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +27 -27
  249. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts.map +1 -1
  250. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js +8 -8
  251. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js.map +1 -1
  252. package/dist/bubbles.json +251 -88
  253. package/dist/index.d.ts +27 -6
  254. package/dist/index.d.ts.map +1 -1
  255. package/dist/index.js +18 -4
  256. package/dist/index.js.map +1 -1
  257. package/dist/logging/BubbleLogger.d.ts +45 -16
  258. package/dist/logging/BubbleLogger.d.ts.map +1 -1
  259. package/dist/logging/BubbleLogger.js +197 -89
  260. package/dist/logging/BubbleLogger.js.map +1 -1
  261. package/dist/logging/StreamingBubbleLogger.d.ts +13 -1
  262. package/dist/logging/StreamingBubbleLogger.d.ts.map +1 -1
  263. package/dist/logging/StreamingBubbleLogger.js +56 -13
  264. package/dist/logging/StreamingBubbleLogger.js.map +1 -1
  265. package/dist/logging/WebhookStreamLogger.d.ts +66 -0
  266. package/dist/logging/WebhookStreamLogger.d.ts.map +1 -0
  267. package/dist/logging/WebhookStreamLogger.js +291 -0
  268. package/dist/logging/WebhookStreamLogger.js.map +1 -0
  269. package/dist/types/available-tools.d.ts +1 -1
  270. package/dist/types/available-tools.d.ts.map +1 -1
  271. package/dist/types/available-tools.js +1 -0
  272. package/dist/types/available-tools.js.map +1 -1
  273. package/dist/types/base-bubble-class.d.ts +7 -5
  274. package/dist/types/base-bubble-class.d.ts.map +1 -1
  275. package/dist/types/base-bubble-class.js +63 -40
  276. package/dist/types/base-bubble-class.js.map +1 -1
  277. package/dist/types/bubble.d.ts +3 -10
  278. package/dist/types/bubble.d.ts.map +1 -1
  279. package/dist/types/bubble.js +1 -1
  280. package/dist/types/bubble.js.map +1 -1
  281. package/dist/types/service-bubble-class.d.ts +2 -2
  282. package/dist/types/service-bubble-class.d.ts.map +1 -1
  283. package/dist/types/service-bubble-class.js +2 -2
  284. package/dist/types/service-bubble-class.js.map +1 -1
  285. package/dist/types/tool-bubble-class.d.ts +2 -2
  286. package/dist/types/tool-bubble-class.d.ts.map +1 -1
  287. package/dist/types/tool-bubble-class.js +2 -4
  288. package/dist/types/tool-bubble-class.js.map +1 -1
  289. package/dist/types/workflow-bubble-class.d.ts +2 -2
  290. package/dist/types/workflow-bubble-class.d.ts.map +1 -1
  291. package/dist/types/workflow-bubble-class.js +2 -2
  292. package/dist/types/workflow-bubble-class.js.map +1 -1
  293. package/dist/utils/agent-formatter.d.ts +14 -2
  294. package/dist/utils/agent-formatter.d.ts.map +1 -1
  295. package/dist/utils/agent-formatter.js +176 -28
  296. package/dist/utils/agent-formatter.js.map +1 -1
  297. package/dist/utils/bubbleflow-validation.d.ts +7 -0
  298. package/dist/utils/bubbleflow-validation.d.ts.map +1 -1
  299. package/dist/utils/bubbleflow-validation.js +257 -35
  300. package/dist/utils/bubbleflow-validation.js.map +1 -1
  301. package/dist/utils/error-sanitizer.d.ts +12 -0
  302. package/dist/utils/error-sanitizer.d.ts.map +1 -0
  303. package/dist/utils/error-sanitizer.js +77 -0
  304. package/dist/utils/error-sanitizer.js.map +1 -0
  305. package/dist/utils/json-parsing.d.ts.map +1 -1
  306. package/dist/utils/json-parsing.js +146 -0
  307. package/dist/utils/json-parsing.js.map +1 -1
  308. package/dist/utils/safe-gemini-chat.d.ts +31 -0
  309. package/dist/utils/safe-gemini-chat.d.ts.map +1 -0
  310. package/dist/utils/safe-gemini-chat.js +93 -0
  311. package/dist/utils/safe-gemini-chat.js.map +1 -0
  312. package/dist/utils/schema-comparison.d.ts +92 -0
  313. package/dist/utils/schema-comparison.d.ts.map +1 -0
  314. package/dist/utils/schema-comparison.js +716 -0
  315. package/dist/utils/schema-comparison.js.map +1 -0
  316. package/dist/utils/zod-schema.d.ts +24 -0
  317. package/dist/utils/zod-schema.d.ts.map +1 -0
  318. package/dist/utils/zod-schema.js +56 -0
  319. package/dist/utils/zod-schema.js.map +1 -0
  320. package/package.json +7 -6
  321. package/dist/bubble-trigger/index.d.ts +0 -2
  322. package/dist/bubble-trigger/index.d.ts.map +0 -1
  323. package/dist/bubble-trigger/index.js +0 -2
  324. package/dist/bubble-trigger/index.js.map +0 -1
  325. package/dist/bubble-trigger/types.d.ts +0 -87
  326. package/dist/bubble-trigger/types.d.ts.map +0 -1
  327. package/dist/bubble-trigger/types.js +0 -14
  328. package/dist/bubble-trigger/types.js.map +0 -1
  329. package/dist/bubbles/service-bubble/apify/api-scraper.schema.d.ts +0 -370
  330. package/dist/bubbles/service-bubble/apify/api-scraper.schema.d.ts.map +0 -1
  331. package/dist/bubbles/service-bubble/apify/api-scraper.schema.js +0 -14
  332. package/dist/bubbles/service-bubble/apify/api-scraper.schema.js.map +0 -1
  333. package/dist/bubbles/service-bubble/apify.d.ts +0 -136
  334. package/dist/bubbles/service-bubble/apify.d.ts.map +0 -1
  335. package/dist/bubbles/service-bubble/apify.js +0 -282
  336. package/dist/bubbles/service-bubble/apify.js.map +0 -1
  337. package/dist/bubbles/service-bubble/google-sheets.d.ts +0 -1811
  338. package/dist/bubbles/service-bubble/google-sheets.d.ts.map +0 -1
  339. package/dist/bubbles/service-bubble/google-sheets.js.map +0 -1
  340. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +0 -114
  341. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +0 -1
  342. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +0 -782
  343. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +0 -1
  344. package/dist/types/ai-models.d.ts +0 -4
  345. package/dist/types/ai-models.d.ts.map +0 -1
  346. package/dist/types/ai-models.js +0 -20
  347. package/dist/types/ai-models.js.map +0 -1
  348. package/dist/types/api-scraper.schema.d.ts +0 -453
  349. package/dist/types/api-scraper.schema.d.ts.map +0 -1
  350. package/dist/types/api-scraper.schema.js +0 -160
  351. package/dist/types/api-scraper.schema.js.map +0 -1
  352. package/dist/utils/param-helper.d.ts +0 -2
  353. package/dist/utils/param-helper.d.ts.map +0 -1
  354. package/dist/utils/param-helper.js +0 -5
  355. package/dist/utils/param-helper.js.map +0 -1
@@ -0,0 +1,321 @@
1
+ /**
2
+ * EDIT BUBBLEFLOW TOOL
3
+ *
4
+ * A tool bubble that applies code edits to BubbleFlow files using Morph Fast Apply.
5
+ * This tool uses the Morph API via OpenRouter to intelligently merge code changes
6
+ * specified by an AI agent into existing BubbleFlow code, following the Fast Apply
7
+ * pattern used in Cursor.
8
+ *
9
+ * Features:
10
+ * - Intelligent code merging using Morph Fast Apply model
11
+ * - Support for lazy edits with "// ... existing code ..." markers
12
+ * - Minimal context repetition for efficient edits
13
+ * - Automatic validation after edits
14
+ * - Detailed diff reporting
15
+ */
16
+ import { z } from 'zod';
17
+ import { ToolBubble } from '../../types/tool-bubble-class.js';
18
+ import { CredentialType } from '@bubblelab/shared-schemas';
19
+ import { HttpBubble } from '../service-bubble/http.js';
20
+ /**
21
+ * Define the parameters schema using Zod
22
+ * This schema validates and types the input parameters for the edit tool
23
+ */
24
+ const EditBubbleFlowToolParamsSchema = z.object({
25
+ // The original BubbleFlow code
26
+ initialCode: z.string().describe('The original code to be edited'),
27
+ // The edit instructions
28
+ instructions: z
29
+ .string()
30
+ .describe('A single sentence instruction in first person describing what changes are being made (e.g., "I am adding error handling to the user auth and removing the old auth functions"). Used to help disambiguate uncertainty in the edit.'),
31
+ // The code edit with markers
32
+ codeEdit: z
33
+ .string()
34
+ .describe('The code changes to apply. Specify ONLY the precise lines of code that you wish to edit. Use "// ... existing code ..." to represent unchanged sections. DO NOT omit spans of pre-existing code without using the marker, as this may cause inadvertent deletion.'),
35
+ // Optional Morph model configuration
36
+ morphModel: z
37
+ .string()
38
+ .default('morph/morph-v3-large')
39
+ .optional()
40
+ .describe('Morph model to use for applying edits via OpenRouter'),
41
+ // Credentials (injected at runtime)
42
+ credentials: z
43
+ .record(z.string(), z.string())
44
+ .optional()
45
+ .describe('Credentials (HIDDEN from AI - injected at runtime)'),
46
+ // Optional configuration
47
+ config: z
48
+ .record(z.string(), z.unknown())
49
+ .optional()
50
+ .describe('Configuration for the edit tool (HIDDEN from AI - injected at runtime)'),
51
+ });
52
+ /**
53
+ * Define the result schema
54
+ * This schema defines what the edit tool returns
55
+ */
56
+ const EditBubbleFlowToolResultSchema = z.object({
57
+ // The final merged code
58
+ mergedCode: z.string().describe('The final code after applying edits'),
59
+ // Success indicator
60
+ applied: z.boolean().describe('Whether the edit was successfully applied'),
61
+ // Optional diff information
62
+ diff: z
63
+ .string()
64
+ .optional()
65
+ .describe('Unified diff showing the changes made (if available)'),
66
+ // Metadata
67
+ metadata: z.object({
68
+ editedAt: z.string().describe('Timestamp when edit was performed'),
69
+ originalLength: z
70
+ .number()
71
+ .describe('Length of original code in characters'),
72
+ finalLength: z.number().describe('Length of final code in characters'),
73
+ morphModel: z.string().describe('Morph model used for the edit'),
74
+ }),
75
+ // Standard result fields
76
+ success: z.boolean().describe('Whether the edit operation was successful'),
77
+ error: z.string().describe('Error message if edit failed'),
78
+ });
79
+ /**
80
+ * Edit BubbleFlow Tool
81
+ * Applies code edits using Morph Fast Apply API via AIAgent
82
+ */
83
+ export class EditBubbleFlowTool extends ToolBubble {
84
+ /**
85
+ * REQUIRED STATIC METADATA
86
+ */
87
+ // Bubble type - always 'tool' for tool bubbles
88
+ static type = 'tool';
89
+ // Unique identifier for the tool
90
+ static bubbleName = 'code-edit-tool';
91
+ // Schemas for validation
92
+ static schema = EditBubbleFlowToolParamsSchema;
93
+ static resultSchema = EditBubbleFlowToolResultSchema;
94
+ // Short description
95
+ static shortDescription = 'Applies code edits to BubbleFlow files using Morph Fast Apply';
96
+ // Long description with detailed information
97
+ static longDescription = `
98
+ A tool for intelligently applying code edits to BubbleFlow TypeScript files.
99
+ Uses the Morph Fast Apply API via OpenRouter to merge lazy code edits into existing code.
100
+
101
+ What it does:
102
+ - Merges code edits specified with "// ... existing code ..." markers
103
+ - Uses Morph's apply model for intelligent code merging
104
+ - Minimizes context repetition for efficient edits
105
+ - Returns the final merged code
106
+
107
+ How it works:
108
+ - Takes original code, edit instructions, and code edit as input
109
+ - Sends to Morph API via OpenRouter using HttpBubble
110
+ - Receives merged code from Morph's apply model
111
+ - Returns the final code ready to be written to file
112
+
113
+ Use cases:
114
+ - When an AI agent needs to make edits to BubbleFlow code
115
+ - When applying multiple distinct edits to a file at once
116
+ - When making targeted changes without rewriting entire files
117
+ - When following the Cursor Fast Apply pattern for code edits
118
+
119
+ Important:
120
+ - The codeEdit parameter should use "// ... existing code ..." to mark unchanged sections
121
+ - The instructions parameter should be generated by the model in first person
122
+ - Requires OPENROUTER_CRED credential for Morph API access via OpenRouter
123
+ `;
124
+ // Short alias for the tool
125
+ static alias = 'code-edit';
126
+ /**
127
+ * Main action method - performs code edit merging
128
+ */
129
+ async performAction() {
130
+ try {
131
+ // Extract parameters
132
+ const { initialCode, instructions, codeEdit, morphModel } = this.params;
133
+ // Validate inputs
134
+ if (!initialCode || initialCode.trim().length === 0) {
135
+ return {
136
+ mergedCode: '',
137
+ applied: false,
138
+ metadata: {
139
+ editedAt: new Date().toISOString(),
140
+ originalLength: 0,
141
+ finalLength: 0,
142
+ morphModel: morphModel ?? 'morph/morph-v3-large',
143
+ },
144
+ success: false,
145
+ error: 'Initial code cannot be empty',
146
+ };
147
+ }
148
+ if (!instructions || instructions.trim().length === 0) {
149
+ return {
150
+ mergedCode: initialCode,
151
+ applied: false,
152
+ metadata: {
153
+ editedAt: new Date().toISOString(),
154
+ originalLength: initialCode.length,
155
+ finalLength: initialCode.length,
156
+ morphModel: morphModel ?? 'morph/morph-v3-large',
157
+ },
158
+ success: false,
159
+ error: 'Instructions cannot be empty',
160
+ };
161
+ }
162
+ if (!codeEdit || codeEdit.trim().length === 0) {
163
+ return {
164
+ mergedCode: initialCode,
165
+ applied: false,
166
+ metadata: {
167
+ editedAt: new Date().toISOString(),
168
+ originalLength: initialCode.length,
169
+ finalLength: initialCode.length,
170
+ morphModel: morphModel ?? 'morph/morph-v3-large',
171
+ },
172
+ success: false,
173
+ error: 'Code edit cannot be empty',
174
+ };
175
+ }
176
+ // Get OpenRouter API key from credentials
177
+ const apiKey = this.params.credentials?.[CredentialType.OPENROUTER_CRED];
178
+ if (!apiKey) {
179
+ return {
180
+ mergedCode: initialCode,
181
+ applied: false,
182
+ metadata: {
183
+ editedAt: new Date().toISOString(),
184
+ originalLength: initialCode.length,
185
+ finalLength: initialCode.length,
186
+ morphModel: morphModel ?? 'morph/morph-v3-large',
187
+ },
188
+ success: false,
189
+ error: 'OpenRouter API key not found. Please provide OPENROUTER_CRED credential.',
190
+ };
191
+ }
192
+ // Construct the message for Morph API following the recommended format
193
+ const morphPrompt = `<instruction>${instructions}</instruction>\n<code>${initialCode}</code>\n<update>${codeEdit}</update>`;
194
+ // Use HttpBubble to call OpenRouter API
195
+ const httpBubble = new HttpBubble({
196
+ url: 'https://openrouter.ai/api/v1/chat/completions',
197
+ method: 'POST',
198
+ headers: {
199
+ Authorization: `Bearer ${apiKey}`,
200
+ 'Content-Type': 'application/json',
201
+ },
202
+ body: {
203
+ model: 'morph/morph-v3-large',
204
+ messages: [
205
+ {
206
+ role: 'user',
207
+ content: morphPrompt,
208
+ },
209
+ ],
210
+ },
211
+ timeout: 60000, // 60 second timeout for code generation
212
+ }, this.context);
213
+ // Execute the HTTP request
214
+ const result = await httpBubble.action();
215
+ if (!result.success || !result.data?.json) {
216
+ return {
217
+ mergedCode: initialCode,
218
+ applied: false,
219
+ metadata: {
220
+ editedAt: new Date().toISOString(),
221
+ originalLength: initialCode.length,
222
+ finalLength: initialCode.length,
223
+ morphModel: morphModel ?? 'morph/morph-v3-large',
224
+ },
225
+ success: false,
226
+ error: result.error || 'Morph API returned empty response',
227
+ };
228
+ }
229
+ const responseData = result.data.json;
230
+ // Extract token usage - OpenRouter uses 'usage' field (OpenAI format)
231
+ // Fallback to usage_metadata if present (some providers use this)
232
+ let inputTokens = 0;
233
+ let outputTokens = 0;
234
+ let totalTokens = 0;
235
+ if (responseData.usage) {
236
+ // OpenAI format: usage.prompt_tokens, usage.completion_tokens
237
+ inputTokens = responseData.usage.prompt_tokens ?? 0;
238
+ outputTokens = responseData.usage.completion_tokens ?? 0;
239
+ totalTokens = responseData.usage.total_tokens ?? 0;
240
+ }
241
+ else if (responseData.usage_metadata) {
242
+ // Alternative format: usage_metadata.input_tokens, usage_metadata.output_tokens
243
+ inputTokens = responseData.usage_metadata.input_tokens ?? 0;
244
+ outputTokens = responseData.usage_metadata.output_tokens ?? 0;
245
+ totalTokens = responseData.usage_metadata.total_tokens ?? 0;
246
+ }
247
+ const tokenUsage = {
248
+ inputTokens,
249
+ outputTokens,
250
+ totalTokens,
251
+ modelName: morphModel ?? 'morph/morph-v3-large',
252
+ };
253
+ if (this.context?.logger) {
254
+ this.context.logger.logTokenUsage({
255
+ usage: tokenUsage.inputTokens,
256
+ service: CredentialType.OPENROUTER_CRED,
257
+ unit: 'input_tokens',
258
+ subService: morphModel ?? 'morph/morph-v3-large',
259
+ }, `LLM completion: ${tokenUsage.inputTokens} input`, {
260
+ bubbleName: 'code-edit-tool',
261
+ variableId: this.context?.variableId,
262
+ operationType: 'bubble_execution',
263
+ });
264
+ this.context.logger.logTokenUsage({
265
+ usage: tokenUsage.outputTokens,
266
+ service: CredentialType.OPENROUTER_CRED,
267
+ unit: 'output_tokens',
268
+ subService: morphModel ?? 'morph/morph-v3-large',
269
+ }, `LLM completion: ${tokenUsage.outputTokens} output`, {
270
+ bubbleName: 'code-edit-tool',
271
+ variableId: this.context?.variableId,
272
+ operationType: 'bubble_execution',
273
+ });
274
+ }
275
+ const mergedCode = responseData.choices?.[0]?.message?.content;
276
+ if (!mergedCode) {
277
+ return {
278
+ mergedCode: initialCode,
279
+ applied: false,
280
+ metadata: {
281
+ editedAt: new Date().toISOString(),
282
+ originalLength: initialCode.length,
283
+ finalLength: initialCode.length,
284
+ morphModel: morphModel ?? 'morph/morph-v3-large',
285
+ },
286
+ success: false,
287
+ error: 'Morph API returned empty content',
288
+ };
289
+ }
290
+ // Return successful result
291
+ return {
292
+ mergedCode,
293
+ applied: true,
294
+ metadata: {
295
+ editedAt: new Date().toISOString(),
296
+ originalLength: initialCode.length,
297
+ finalLength: mergedCode.length,
298
+ morphModel: morphModel ?? 'openrouter/morph/morph-v3-large',
299
+ },
300
+ success: true,
301
+ error: '',
302
+ };
303
+ }
304
+ catch (error) {
305
+ // Handle unexpected errors gracefully
306
+ return {
307
+ mergedCode: this.params.initialCode || '',
308
+ applied: false,
309
+ metadata: {
310
+ editedAt: new Date().toISOString(),
311
+ originalLength: this.params.initialCode?.length || 0,
312
+ finalLength: this.params.initialCode?.length || 0,
313
+ morphModel: this.params.morphModel ?? 'openrouter/morph/morph-v3-large',
314
+ },
315
+ success: false,
316
+ error: error instanceof Error ? error.message : 'Unknown error occurred',
317
+ };
318
+ }
319
+ }
320
+ }
321
+ //# sourceMappingURL=code-edit-tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-edit-tool.js","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/code-edit-tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD;;;GAGG;AACH,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,+BAA+B;IAC/B,WAAW,EAAE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c,EAAE,WAAW,CAAC,MAAM;oBAClC,WAAW,EAAE,UAAU,CAAC,MAAM;oBAC9B,UAAU,EAAE,UAAU,IAAI,iCAAiC;iBAC5D;gBACD,OAAO,EAAE,IAAI;gBACb,KAAK,EAAE,EAAE;aACV,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,sCAAsC;YACtC,OAAO;gBACL,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,IAAI,EAAE;gBACzC,OAAO,EAAE,KAAK;gBACd,QAAQ,EAAE;oBACR,QAAQ,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;oBAClC,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC;oBACpD,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC;oBACjD,UAAU,EACR,IAAI,CAAC,MAAM,CAAC,UAAU,IAAI,iCAAiC;iBAC9D;gBACD,OAAO,EAAE,KAAK;gBACd,KAAK,EACH,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,wBAAwB;aACpE,CAAC;QACJ,CAAC;IACH,CAAC"}
@@ -28,16 +28,16 @@ declare const GetBubbleDetailsToolResultSchema: z.ZodObject<{
28
28
  error: z.ZodString;
29
29
  }, "strip", z.ZodTypeAny, {
30
30
  name: string;
31
- success: boolean;
32
31
  error: string;
32
+ success: boolean;
33
33
  outputSchema: string;
34
34
  usageExample: string;
35
35
  alias?: string | undefined;
36
36
  inputSchema?: string | undefined;
37
37
  }, {
38
38
  name: string;
39
- success: boolean;
40
39
  error: string;
40
+ success: boolean;
41
41
  outputSchema: string;
42
42
  usageExample: string;
43
43
  alias?: string | undefined;
@@ -69,16 +69,16 @@ export declare class GetBubbleDetailsTool extends ToolBubble<GetBubbleDetailsToo
69
69
  error: z.ZodString;
70
70
  }, "strip", z.ZodTypeAny, {
71
71
  name: string;
72
- success: boolean;
73
72
  error: string;
73
+ success: boolean;
74
74
  outputSchema: string;
75
75
  usageExample: string;
76
76
  alias?: string | undefined;
77
77
  inputSchema?: string | undefined;
78
78
  }, {
79
79
  name: string;
80
- success: boolean;
81
80
  error: string;
81
+ success: boolean;
82
82
  outputSchema: string;
83
83
  usageExample: string;
84
84
  alias?: string | undefined;
@@ -105,6 +105,10 @@ export declare class GetBubbleDetailsTool extends ToolBubble<GetBubbleDetailsToo
105
105
  private getParameterDescription;
106
106
  private generateExampleParams;
107
107
  private generateExampleValue;
108
+ /**
109
+ * Checks if a key represents a credential parameter that should be omitted from examples
110
+ */
111
+ private isCredentialKey;
108
112
  private toCamelCase;
109
113
  private toPascalCase;
110
114
  }
@@ -1 +1 @@
1
- {"version":3,"file":"get-bubble-details-tool.d.ts","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/get-bubble-details-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;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAK3D,QAAA,MAAM,gCAAgC;;;;;;;;;;;;EAgBpC,CAAC;AAGH,KAAK,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,gCAAgC,CACxC,CAAC;AACF,KAAK,0BAA0B,GAAG,CAAC,CAAC,MAAM,CACxC,OAAO,gCAAgC,CACxC,CAAC;AAEF,KAAK,0BAA0B,GAAG,CAAC,CAAC,MAAM,CACxC,OAAO,gCAAgC,CACxC,CAAC;AAGF,QAAA,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;EAepC,CAAC;AAEH,qBAAa,oBAAqB,SAAQ,UAAU,CAClD,0BAA0B,EAC1B,0BAA0B,CAC3B;IACC,MAAM,CAAC,QAAQ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