@zerowidth/workbench-sdk 2.0.0-alpha.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.
Files changed (1266) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +799 -0
  3. package/nodes/absolute/absolute.config.json +24 -0
  4. package/nodes/absolute/absolute.process.js +7 -0
  5. package/nodes/absolute/absolute.tests.json +38 -0
  6. package/nodes/absolute-value/absolute-value.config.json +24 -0
  7. package/nodes/absolute-value/absolute-value.process.js +5 -0
  8. package/nodes/absolute-value/absolute-value.tests.json +17 -0
  9. package/nodes/add/add.config.json +31 -0
  10. package/nodes/add/add.process.js +9 -0
  11. package/nodes/add/add.tests.json +41 -0
  12. package/nodes/airtable-create-record/airtable-create-record.config.json +64 -0
  13. package/nodes/airtable-create-record/airtable-create-record.process.js +44 -0
  14. package/nodes/airtable-create-record/airtable-create-record.tests.json +50 -0
  15. package/nodes/airtable-delete-record/airtable-delete-record.config.json +44 -0
  16. package/nodes/airtable-delete-record/airtable-delete-record.process.js +34 -0
  17. package/nodes/airtable-delete-record/airtable-delete-record.tests.json +23 -0
  18. package/nodes/airtable-get-record/airtable-get-record.config.json +56 -0
  19. package/nodes/airtable-get-record/airtable-get-record.process.js +36 -0
  20. package/nodes/airtable-get-record/airtable-get-record.tests.json +25 -0
  21. package/nodes/airtable-list-records/airtable-list-records.config.json +87 -0
  22. package/nodes/airtable-list-records/airtable-list-records.process.js +52 -0
  23. package/nodes/airtable-list-records/airtable-list-records.tests.json +46 -0
  24. package/nodes/airtable-update-record/airtable-update-record.config.json +71 -0
  25. package/nodes/airtable-update-record/airtable-update-record.process.js +48 -0
  26. package/nodes/airtable-update-record/airtable-update-record.tests.json +44 -0
  27. package/nodes/and-gate/and-gate.config.json +30 -0
  28. package/nodes/and-gate/and-gate.process.js +10 -0
  29. package/nodes/and-gate/and-gate.tests.json +22 -0
  30. package/nodes/anthropic-claude-3-5-haiku/anthropic-claude-3-5-haiku.config.json +155 -0
  31. package/nodes/anthropic-claude-3-5-haiku/anthropic-claude-3-5-haiku.process.js +136 -0
  32. package/nodes/anthropic-claude-3-5-haiku/anthropic-claude-3-5-haiku.tests.json +80 -0
  33. package/nodes/anthropic-claude-3-haiku/anthropic-claude-3-haiku.config.json +155 -0
  34. package/nodes/anthropic-claude-3-haiku/anthropic-claude-3-haiku.process.js +136 -0
  35. package/nodes/anthropic-claude-3-haiku/anthropic-claude-3-haiku.tests.json +80 -0
  36. package/nodes/anthropic-claude-haiku-4-5/anthropic-claude-haiku-4-5.config.json +186 -0
  37. package/nodes/anthropic-claude-haiku-4-5/anthropic-claude-haiku-4-5.process.js +138 -0
  38. package/nodes/anthropic-claude-haiku-4-5/anthropic-claude-haiku-4-5.tests.json +80 -0
  39. package/nodes/anthropic-claude-opus-4/anthropic-claude-opus-4.config.json +176 -0
  40. package/nodes/anthropic-claude-opus-4/anthropic-claude-opus-4.process.js +138 -0
  41. package/nodes/anthropic-claude-opus-4/anthropic-claude-opus-4.tests.json +80 -0
  42. package/nodes/anthropic-claude-opus-4-1/anthropic-claude-opus-4-1.config.json +186 -0
  43. package/nodes/anthropic-claude-opus-4-1/anthropic-claude-opus-4-1.process.js +138 -0
  44. package/nodes/anthropic-claude-opus-4-1/anthropic-claude-opus-4-1.tests.json +80 -0
  45. package/nodes/anthropic-claude-opus-4-5/anthropic-claude-opus-4-5.config.json +179 -0
  46. package/nodes/anthropic-claude-opus-4-5/anthropic-claude-opus-4-5.process.js +138 -0
  47. package/nodes/anthropic-claude-opus-4-5/anthropic-claude-opus-4-5.tests.json +80 -0
  48. package/nodes/anthropic-claude-opus-4-6/anthropic-claude-opus-4-6.config.json +188 -0
  49. package/nodes/anthropic-claude-opus-4-6/anthropic-claude-opus-4-6.process.js +138 -0
  50. package/nodes/anthropic-claude-opus-4-6/anthropic-claude-opus-4-6.tests.json +80 -0
  51. package/nodes/anthropic-claude-opus-4-6-fast/anthropic-claude-opus-4-6-fast.config.json +186 -0
  52. package/nodes/anthropic-claude-opus-4-6-fast/anthropic-claude-opus-4-6-fast.process.js +138 -0
  53. package/nodes/anthropic-claude-opus-4-6-fast/anthropic-claude-opus-4-6-fast.tests.json +80 -0
  54. package/nodes/anthropic-claude-opus-4-7/anthropic-claude-opus-4-7.config.json +170 -0
  55. package/nodes/anthropic-claude-opus-4-7/anthropic-claude-opus-4-7.process.js +138 -0
  56. package/nodes/anthropic-claude-opus-4-7/anthropic-claude-opus-4-7.tests.json +57 -0
  57. package/nodes/anthropic-claude-opus-4-7-fast/anthropic-claude-opus-4-7-fast.config.json +170 -0
  58. package/nodes/anthropic-claude-opus-4-7-fast/anthropic-claude-opus-4-7-fast.process.js +138 -0
  59. package/nodes/anthropic-claude-opus-4-7-fast/anthropic-claude-opus-4-7-fast.tests.json +57 -0
  60. package/nodes/anthropic-claude-opus-4-8/anthropic-claude-opus-4-8.config.json +170 -0
  61. package/nodes/anthropic-claude-opus-4-8/anthropic-claude-opus-4-8.process.js +138 -0
  62. package/nodes/anthropic-claude-opus-4-8/anthropic-claude-opus-4-8.tests.json +57 -0
  63. package/nodes/anthropic-claude-opus-4-8-fast/anthropic-claude-opus-4-8-fast.config.json +170 -0
  64. package/nodes/anthropic-claude-opus-4-8-fast/anthropic-claude-opus-4-8-fast.process.js +138 -0
  65. package/nodes/anthropic-claude-opus-4-8-fast/anthropic-claude-opus-4-8-fast.tests.json +57 -0
  66. package/nodes/anthropic-claude-sonnet-4/anthropic-claude-sonnet-4.config.json +177 -0
  67. package/nodes/anthropic-claude-sonnet-4/anthropic-claude-sonnet-4.process.js +138 -0
  68. package/nodes/anthropic-claude-sonnet-4/anthropic-claude-sonnet-4.tests.json +80 -0
  69. package/nodes/anthropic-claude-sonnet-4-5/anthropic-claude-sonnet-4-5.config.json +186 -0
  70. package/nodes/anthropic-claude-sonnet-4-5/anthropic-claude-sonnet-4-5.process.js +138 -0
  71. package/nodes/anthropic-claude-sonnet-4-5/anthropic-claude-sonnet-4-5.tests.json +80 -0
  72. package/nodes/anthropic-claude-sonnet-4-6/anthropic-claude-sonnet-4-6.config.json +188 -0
  73. package/nodes/anthropic-claude-sonnet-4-6/anthropic-claude-sonnet-4-6.process.js +138 -0
  74. package/nodes/anthropic-claude-sonnet-4-6/anthropic-claude-sonnet-4-6.tests.json +80 -0
  75. package/nodes/array-builder/array-builder.config.json +27 -0
  76. package/nodes/array-builder/array-builder.process.js +12 -0
  77. package/nodes/array-builder/array-builder.tests.json +20 -0
  78. package/nodes/array-filter/array-filter.config.json +47 -0
  79. package/nodes/array-filter/array-filter.process.js +58 -0
  80. package/nodes/array-filter/array-filter.tests.json +67 -0
  81. package/nodes/array-find/array-find.config.json +66 -0
  82. package/nodes/array-find/array-find.process.js +61 -0
  83. package/nodes/array-find/array-find.tests.json +83 -0
  84. package/nodes/array-flatten/array-flatten.config.json +39 -0
  85. package/nodes/array-flatten/array-flatten.process.js +67 -0
  86. package/nodes/array-flatten/array-flatten.tests.json +79 -0
  87. package/nodes/array-index-selector/array-index-selector.config.json +36 -0
  88. package/nodes/array-index-selector/array-index-selector.process.js +20 -0
  89. package/nodes/array-index-selector/array-index-selector.tests.json +37 -0
  90. package/nodes/array-join/array-join.config.json +30 -0
  91. package/nodes/array-join/array-join.process.js +9 -0
  92. package/nodes/array-join/array-join.tests.json +41 -0
  93. package/nodes/array-length/array-length.config.json +28 -0
  94. package/nodes/array-length/array-length.process.js +14 -0
  95. package/nodes/array-length/array-length.tests.json +32 -0
  96. package/nodes/array-map/array-map.config.json +30 -0
  97. package/nodes/array-map/array-map.process.js +16 -0
  98. package/nodes/array-map/array-map.tests.json +44 -0
  99. package/nodes/array-reverse/array-reverse.config.json +29 -0
  100. package/nodes/array-reverse/array-reverse.process.js +12 -0
  101. package/nodes/array-reverse/array-reverse.tests.json +60 -0
  102. package/nodes/array-shuffle/array-shuffle.config.json +38 -0
  103. package/nodes/array-shuffle/array-shuffle.process.js +37 -0
  104. package/nodes/array-shuffle/array-shuffle.tests.json +82 -0
  105. package/nodes/array-slice/array-slice.config.json +37 -0
  106. package/nodes/array-slice/array-slice.process.js +18 -0
  107. package/nodes/array-slice/array-slice.tests.json +43 -0
  108. package/nodes/array-sort/array-sort.config.json +55 -0
  109. package/nodes/array-sort/array-sort.process.js +45 -0
  110. package/nodes/array-sort/array-sort.tests.json +95 -0
  111. package/nodes/array-split/array-split.config.json +50 -0
  112. package/nodes/array-split/array-split.process.js +32 -0
  113. package/nodes/array-split/array-split.tests.json +77 -0
  114. package/nodes/array-unique/array-unique.config.json +65 -0
  115. package/nodes/array-unique/array-unique.process.js +55 -0
  116. package/nodes/array-unique/array-unique.tests.json +96 -0
  117. package/nodes/baai-bge-base-en-v1-5/baai-bge-base-en-v1-5.config.json +90 -0
  118. package/nodes/baai-bge-base-en-v1-5/baai-bge-base-en-v1-5.process.js +36 -0
  119. package/nodes/baai-bge-base-en-v1-5/baai-bge-base-en-v1-5.tests.json +48 -0
  120. package/nodes/baai-bge-large-en-v1-5/baai-bge-large-en-v1-5.config.json +90 -0
  121. package/nodes/baai-bge-large-en-v1-5/baai-bge-large-en-v1-5.process.js +36 -0
  122. package/nodes/baai-bge-large-en-v1-5/baai-bge-large-en-v1-5.tests.json +48 -0
  123. package/nodes/baai-bge-m3/baai-bge-m3.config.json +90 -0
  124. package/nodes/baai-bge-m3/baai-bge-m3.process.js +36 -0
  125. package/nodes/baai-bge-m3/baai-bge-m3.tests.json +48 -0
  126. package/nodes/base64-decode/base64-decode.config.json +36 -0
  127. package/nodes/base64-decode/base64-decode.process.js +18 -0
  128. package/nodes/base64-decode/base64-decode.tests.json +46 -0
  129. package/nodes/base64-encode/base64-encode.config.json +24 -0
  130. package/nodes/base64-encode/base64-encode.process.js +11 -0
  131. package/nodes/base64-encode/base64-encode.tests.json +38 -0
  132. package/nodes/boolean/boolean.config.json +37 -0
  133. package/nodes/boolean/boolean.process.js +9 -0
  134. package/nodes/boolean/boolean.tests.json +47 -0
  135. package/nodes/boolean-inverter/boolean-inverter.config.json +37 -0
  136. package/nodes/boolean-inverter/boolean-inverter.process.js +12 -0
  137. package/nodes/boolean-inverter/boolean-inverter.tests.json +22 -0
  138. package/nodes/ceil/ceil.config.json +23 -0
  139. package/nodes/ceil/ceil.process.js +8 -0
  140. package/nodes/ceil/ceil.tests.json +38 -0
  141. package/nodes/clean-text/clean-text.config.json +126 -0
  142. package/nodes/cohere-rerank-4-fast/cohere-rerank-4-fast.config.json +95 -0
  143. package/nodes/cohere-rerank-4-fast/cohere-rerank-4-fast.process.js +60 -0
  144. package/nodes/cohere-rerank-4-fast/cohere-rerank-4-fast.tests.json +47 -0
  145. package/nodes/cohere-rerank-4-pro/cohere-rerank-4-pro.config.json +95 -0
  146. package/nodes/cohere-rerank-4-pro/cohere-rerank-4-pro.process.js +60 -0
  147. package/nodes/cohere-rerank-4-pro/cohere-rerank-4-pro.tests.json +47 -0
  148. package/nodes/cohere-rerank-v3-5/cohere-rerank-v3-5.config.json +95 -0
  149. package/nodes/cohere-rerank-v3-5/cohere-rerank-v3-5.process.js +60 -0
  150. package/nodes/cohere-rerank-v3-5/cohere-rerank-v3-5.tests.json +47 -0
  151. package/nodes/combine-document-chunks/combine-document-chunks.config.json +58 -0
  152. package/nodes/combine-document-chunks/combine-document-chunks.process.js +119 -0
  153. package/nodes/combine-document-chunks/combine-document-chunks.tests.json +51 -0
  154. package/nodes/condition-check/condition-check.config.json +38 -0
  155. package/nodes/condition-check/condition-check.process.js +16 -0
  156. package/nodes/condition-check/condition-check.tests.json +112 -0
  157. package/nodes/confluence-get-page/confluence-get-page.config.json +45 -0
  158. package/nodes/confluence-get-page/confluence-get-page.process.js +22 -0
  159. package/nodes/confluence-get-page/confluence-get-page.tests.json +12 -0
  160. package/nodes/confluence-search/confluence-search.config.json +53 -0
  161. package/nodes/confluence-search/confluence-search.process.js +21 -0
  162. package/nodes/confluence-search/confluence-search.tests.json +14 -0
  163. package/nodes/conversation-to-text/conversation-to-text.config.json +55 -0
  164. package/nodes/conversation-to-text/conversation-to-text.process.js +58 -0
  165. package/nodes/conversation-to-text/conversation-to-text.tests.json +134 -0
  166. package/nodes/csv-parser/csv-parser.config.json +74 -0
  167. package/nodes/csv-parser/csv-parser.process.js +114 -0
  168. package/nodes/csv-parser/csv-parser.tests.json +93 -0
  169. package/nodes/csv-stringifier/csv-stringifier.config.json +76 -0
  170. package/nodes/csv-stringifier/csv-stringifier.process.js +101 -0
  171. package/nodes/csv-stringifier/csv-stringifier.tests.json +63 -0
  172. package/nodes/date-formatter/date-formatter.config.json +66 -0
  173. package/nodes/date-formatter/date-formatter.process.js +113 -0
  174. package/nodes/date-formatter/date-formatter.tests.json +50 -0
  175. package/nodes/dedupe-messages/dedupe-messages.config.json +30 -0
  176. package/nodes/dedupe-messages/dedupe-messages.process.js +44 -0
  177. package/nodes/dedupe-messages/dedupe-messages.tests.json +149 -0
  178. package/nodes/deepseek-deepseek-chat/deepseek-deepseek-chat.config.json +191 -0
  179. package/nodes/deepseek-deepseek-chat/deepseek-deepseek-chat.process.js +136 -0
  180. package/nodes/deepseek-deepseek-chat/deepseek-deepseek-chat.tests.json +80 -0
  181. package/nodes/deepseek-deepseek-chat-v3-0324/deepseek-deepseek-chat-v3-0324.config.json +191 -0
  182. package/nodes/deepseek-deepseek-chat-v3-0324/deepseek-deepseek-chat-v3-0324.process.js +136 -0
  183. package/nodes/deepseek-deepseek-chat-v3-0324/deepseek-deepseek-chat-v3-0324.tests.json +80 -0
  184. package/nodes/deepseek-deepseek-chat-v3-1/deepseek-deepseek-chat-v3-1.config.json +213 -0
  185. package/nodes/deepseek-deepseek-chat-v3-1/deepseek-deepseek-chat-v3-1.process.js +138 -0
  186. package/nodes/deepseek-deepseek-chat-v3-1/deepseek-deepseek-chat-v3-1.tests.json +80 -0
  187. package/nodes/deepseek-deepseek-r1/deepseek-deepseek-r1.config.json +212 -0
  188. package/nodes/deepseek-deepseek-r1/deepseek-deepseek-r1.process.js +138 -0
  189. package/nodes/deepseek-deepseek-r1/deepseek-deepseek-r1.tests.json +80 -0
  190. package/nodes/deepseek-deepseek-r1-0528/deepseek-deepseek-r1-0528.config.json +213 -0
  191. package/nodes/deepseek-deepseek-r1-0528/deepseek-deepseek-r1-0528.process.js +138 -0
  192. package/nodes/deepseek-deepseek-r1-0528/deepseek-deepseek-r1-0528.tests.json +80 -0
  193. package/nodes/deepseek-deepseek-r1-distill-llama-70b/deepseek-deepseek-r1-distill-llama-70b.config.json +189 -0
  194. package/nodes/deepseek-deepseek-r1-distill-llama-70b/deepseek-deepseek-r1-distill-llama-70b.process.js +138 -0
  195. package/nodes/deepseek-deepseek-r1-distill-llama-70b/deepseek-deepseek-r1-distill-llama-70b.tests.json +80 -0
  196. package/nodes/deepseek-deepseek-r1-distill-qwen-32b/deepseek-deepseek-r1-distill-qwen-32b.config.json +209 -0
  197. package/nodes/deepseek-deepseek-r1-distill-qwen-32b/deepseek-deepseek-r1-distill-qwen-32b.process.js +139 -0
  198. package/nodes/deepseek-deepseek-r1-distill-qwen-32b/deepseek-deepseek-r1-distill-qwen-32b.tests.json +80 -0
  199. package/nodes/deepseek-deepseek-v3-1-terminus/deepseek-deepseek-v3-1-terminus.config.json +213 -0
  200. package/nodes/deepseek-deepseek-v3-1-terminus/deepseek-deepseek-v3-1-terminus.process.js +138 -0
  201. package/nodes/deepseek-deepseek-v3-1-terminus/deepseek-deepseek-v3-1-terminus.tests.json +80 -0
  202. package/nodes/deepseek-deepseek-v3-2/deepseek-deepseek-v3-2.config.json +213 -0
  203. package/nodes/deepseek-deepseek-v3-2/deepseek-deepseek-v3-2.process.js +138 -0
  204. package/nodes/deepseek-deepseek-v3-2/deepseek-deepseek-v3-2.tests.json +80 -0
  205. package/nodes/deepseek-deepseek-v3-2-exp/deepseek-deepseek-v3-2-exp.config.json +213 -0
  206. package/nodes/deepseek-deepseek-v3-2-exp/deepseek-deepseek-v3-2-exp.process.js +138 -0
  207. package/nodes/deepseek-deepseek-v3-2-exp/deepseek-deepseek-v3-2-exp.tests.json +80 -0
  208. package/nodes/deepseek-deepseek-v4-flash/deepseek-deepseek-v4-flash.config.json +235 -0
  209. package/nodes/deepseek-deepseek-v4-flash/deepseek-deepseek-v4-flash.process.js +139 -0
  210. package/nodes/deepseek-deepseek-v4-flash/deepseek-deepseek-v4-flash.tests.json +80 -0
  211. package/nodes/deepseek-deepseek-v4-pro/deepseek-deepseek-v4-pro.config.json +235 -0
  212. package/nodes/deepseek-deepseek-v4-pro/deepseek-deepseek-v4-pro.process.js +139 -0
  213. package/nodes/deepseek-deepseek-v4-pro/deepseek-deepseek-v4-pro.tests.json +80 -0
  214. package/nodes/delay/delay.config.json +43 -0
  215. package/nodes/delay/delay.process.js +16 -0
  216. package/nodes/delay/delay.tests.json +59 -0
  217. package/nodes/delete-object-property/delete-object-property.config.json +53 -0
  218. package/nodes/delete-object-property/delete-object-property.process.js +42 -0
  219. package/nodes/delete-object-property/delete-object-property.tests.json +173 -0
  220. package/nodes/divide/divide.config.json +31 -0
  221. package/nodes/divide/divide.process.js +18 -0
  222. package/nodes/divide/divide.tests.json +42 -0
  223. package/nodes/duration-calculator/duration-calculator.config.json +77 -0
  224. package/nodes/duration-calculator/duration-calculator.process.js +96 -0
  225. package/nodes/duration-calculator/duration-calculator.tests.json +124 -0
  226. package/nodes/embedding/embedding.config.json +81 -0
  227. package/nodes/embedding/embedding.process.js +44 -0
  228. package/nodes/embedding/embedding.tests.json +26 -0
  229. package/nodes/equals/equals.config.json +32 -0
  230. package/nodes/equals/equals.process.js +29 -0
  231. package/nodes/equals/equals.tests.json +111 -0
  232. package/nodes/extract-code/extract-code.config.json +57 -0
  233. package/nodes/extract-code/extract-code.process.js +53 -0
  234. package/nodes/extract-code/extract-code.tests.json +162 -0
  235. package/nodes/extract-emails/extract-emails.config.json +85 -0
  236. package/nodes/extract-hashtags/extract-hashtags.config.json +85 -0
  237. package/nodes/extract-json/extract-json.config.json +44 -0
  238. package/nodes/extract-json/extract-json.process.js +102 -0
  239. package/nodes/extract-json/extract-json.tests.json +146 -0
  240. package/nodes/extract-mentions/extract-mentions.config.json +85 -0
  241. package/nodes/extract-phone-numbers/extract-phone-numbers.config.json +85 -0
  242. package/nodes/extract-text-content/extract-text-content.config.json +56 -0
  243. package/nodes/extract-text-content/extract-text-content.process.js +85 -0
  244. package/nodes/extract-text-content/extract-text-content.tests.json +144 -0
  245. package/nodes/extract-urls/extract-urls.config.json +85 -0
  246. package/nodes/filter-messages/filter-messages.config.json +53 -0
  247. package/nodes/filter-messages/filter-messages.process.js +88 -0
  248. package/nodes/filter-messages/filter-messages.tests.json +125 -0
  249. package/nodes/filter-tools/filter-tools.config.json +29 -0
  250. package/nodes/filter-tools/filter-tools.process.js +13 -0
  251. package/nodes/filter-tools/filter-tools.tests.json +89 -0
  252. package/nodes/firecrawl-scrape/firecrawl-scrape.config.json +171 -0
  253. package/nodes/firecrawl-scrape/firecrawl-scrape.process.js +69 -0
  254. package/nodes/firecrawl-scrape/firecrawl-scrape.tests.json +57 -0
  255. package/nodes/floor/floor.config.json +23 -0
  256. package/nodes/floor/floor.process.js +8 -0
  257. package/nodes/floor/floor.tests.json +38 -0
  258. package/nodes/generate-uuid/generate-uuid.config.json +31 -0
  259. package/nodes/generate-uuid/generate-uuid.process.js +15 -0
  260. package/nodes/generate-uuid/generate-uuid.tests.json +7 -0
  261. package/nodes/get-chunk-by-index/get-chunk-by-index.config.json +45 -0
  262. package/nodes/get-chunk-by-index/get-chunk-by-index.process.js +80 -0
  263. package/nodes/get-chunk-by-index/get-chunk-by-index.tests.json +51 -0
  264. package/nodes/get-first-n-messages/get-first-n-messages.config.json +37 -0
  265. package/nodes/get-first-n-messages/get-first-n-messages.process.js +27 -0
  266. package/nodes/get-first-n-messages/get-first-n-messages.tests.json +66 -0
  267. package/nodes/get-last-n-messages/get-last-n-messages.config.json +37 -0
  268. package/nodes/get-last-n-messages/get-last-n-messages.process.js +27 -0
  269. package/nodes/get-last-n-messages/get-last-n-messages.tests.json +66 -0
  270. package/nodes/get-messages-by-role/get-messages-by-role.config.json +37 -0
  271. package/nodes/get-messages-by-role/get-messages-by-role.process.js +28 -0
  272. package/nodes/get-messages-by-role/get-messages-by-role.tests.json +87 -0
  273. package/nodes/get-messages-range/get-messages-range.config.json +44 -0
  274. package/nodes/get-messages-range/get-messages-range.process.js +44 -0
  275. package/nodes/get-messages-range/get-messages-range.tests.json +104 -0
  276. package/nodes/get-object-property/get-object-property.config.json +54 -0
  277. package/nodes/get-object-property/get-object-property.process.js +35 -0
  278. package/nodes/get-object-property/get-object-property.tests.json +101 -0
  279. package/nodes/github-create-issue/github-create-issue.config.json +72 -0
  280. package/nodes/github-create-issue/github-create-issue.process.js +22 -0
  281. package/nodes/github-create-issue/github-create-issue.tests.json +15 -0
  282. package/nodes/google-custom-search/google-custom-search.config.json +229 -0
  283. package/nodes/google-custom-search/google-custom-search.process.js +96 -0
  284. package/nodes/google-custom-search/google-custom-search.tests.json +69 -0
  285. package/nodes/google-gemini-2-5-flash/google-gemini-2-5-flash.config.json +193 -0
  286. package/nodes/google-gemini-2-5-flash/google-gemini-2-5-flash.process.js +138 -0
  287. package/nodes/google-gemini-2-5-flash/google-gemini-2-5-flash.tests.json +80 -0
  288. package/nodes/google-gemini-2-5-flash-image/google-gemini-2-5-flash-image.config.json +129 -0
  289. package/nodes/google-gemini-2-5-flash-image/google-gemini-2-5-flash-image.process.js +55 -0
  290. package/nodes/google-gemini-2-5-flash-image/google-gemini-2-5-flash-image.tests.json +44 -0
  291. package/nodes/google-gemini-2-5-flash-lite/google-gemini-2-5-flash-lite.config.json +193 -0
  292. package/nodes/google-gemini-2-5-flash-lite/google-gemini-2-5-flash-lite.process.js +138 -0
  293. package/nodes/google-gemini-2-5-flash-lite/google-gemini-2-5-flash-lite.tests.json +80 -0
  294. package/nodes/google-gemini-2-5-flash-lite-preview-09-2025/google-gemini-2-5-flash-lite-preview-09-2025.config.json +193 -0
  295. package/nodes/google-gemini-2-5-flash-lite-preview-09-2025/google-gemini-2-5-flash-lite-preview-09-2025.process.js +138 -0
  296. package/nodes/google-gemini-2-5-flash-lite-preview-09-2025/google-gemini-2-5-flash-lite-preview-09-2025.tests.json +80 -0
  297. package/nodes/google-gemini-2-5-pro/google-gemini-2-5-pro.config.json +193 -0
  298. package/nodes/google-gemini-2-5-pro/google-gemini-2-5-pro.process.js +138 -0
  299. package/nodes/google-gemini-2-5-pro/google-gemini-2-5-pro.tests.json +80 -0
  300. package/nodes/google-gemini-2-5-pro-preview/google-gemini-2-5-pro-preview.config.json +193 -0
  301. package/nodes/google-gemini-2-5-pro-preview/google-gemini-2-5-pro-preview.process.js +138 -0
  302. package/nodes/google-gemini-2-5-pro-preview/google-gemini-2-5-pro-preview.tests.json +80 -0
  303. package/nodes/google-gemini-2-5-pro-preview-05-06/google-gemini-2-5-pro-preview-05-06.config.json +193 -0
  304. package/nodes/google-gemini-2-5-pro-preview-05-06/google-gemini-2-5-pro-preview-05-06.process.js +138 -0
  305. package/nodes/google-gemini-2-5-pro-preview-05-06/google-gemini-2-5-pro-preview-05-06.tests.json +80 -0
  306. package/nodes/google-gemini-3-1-flash-image-preview/google-gemini-3-1-flash-image-preview.config.json +151 -0
  307. package/nodes/google-gemini-3-1-flash-image-preview/google-gemini-3-1-flash-image-preview.process.js +57 -0
  308. package/nodes/google-gemini-3-1-flash-image-preview/google-gemini-3-1-flash-image-preview.tests.json +44 -0
  309. package/nodes/google-gemini-3-1-flash-lite/google-gemini-3-1-flash-lite.config.json +193 -0
  310. package/nodes/google-gemini-3-1-flash-lite/google-gemini-3-1-flash-lite.process.js +138 -0
  311. package/nodes/google-gemini-3-1-flash-lite/google-gemini-3-1-flash-lite.tests.json +80 -0
  312. package/nodes/google-gemini-3-1-flash-lite-preview/google-gemini-3-1-flash-lite-preview.config.json +193 -0
  313. package/nodes/google-gemini-3-1-flash-lite-preview/google-gemini-3-1-flash-lite-preview.process.js +138 -0
  314. package/nodes/google-gemini-3-1-flash-lite-preview/google-gemini-3-1-flash-lite-preview.tests.json +80 -0
  315. package/nodes/google-gemini-3-1-pro-preview/google-gemini-3-1-pro-preview.config.json +193 -0
  316. package/nodes/google-gemini-3-1-pro-preview/google-gemini-3-1-pro-preview.process.js +138 -0
  317. package/nodes/google-gemini-3-1-pro-preview/google-gemini-3-1-pro-preview.tests.json +80 -0
  318. package/nodes/google-gemini-3-1-pro-preview-customtools/google-gemini-3-1-pro-preview-customtools.config.json +193 -0
  319. package/nodes/google-gemini-3-1-pro-preview-customtools/google-gemini-3-1-pro-preview-customtools.process.js +138 -0
  320. package/nodes/google-gemini-3-1-pro-preview-customtools/google-gemini-3-1-pro-preview-customtools.tests.json +80 -0
  321. package/nodes/google-gemini-3-5-flash/google-gemini-3-5-flash.config.json +193 -0
  322. package/nodes/google-gemini-3-5-flash/google-gemini-3-5-flash.process.js +138 -0
  323. package/nodes/google-gemini-3-5-flash/google-gemini-3-5-flash.tests.json +80 -0
  324. package/nodes/google-gemini-3-flash-preview/google-gemini-3-flash-preview.config.json +193 -0
  325. package/nodes/google-gemini-3-flash-preview/google-gemini-3-flash-preview.process.js +138 -0
  326. package/nodes/google-gemini-3-flash-preview/google-gemini-3-flash-preview.tests.json +80 -0
  327. package/nodes/google-gemini-3-pro-image-preview/google-gemini-3-pro-image-preview.config.json +151 -0
  328. package/nodes/google-gemini-3-pro-image-preview/google-gemini-3-pro-image-preview.process.js +57 -0
  329. package/nodes/google-gemini-3-pro-image-preview/google-gemini-3-pro-image-preview.tests.json +44 -0
  330. package/nodes/google-gemini-embedding-001/google-gemini-embedding-001.config.json +90 -0
  331. package/nodes/google-gemini-embedding-001/google-gemini-embedding-001.process.js +36 -0
  332. package/nodes/google-gemini-embedding-001/google-gemini-embedding-001.tests.json +48 -0
  333. package/nodes/google-gemini-embedding-2/google-gemini-embedding-2.config.json +94 -0
  334. package/nodes/google-gemini-embedding-2/google-gemini-embedding-2.process.js +36 -0
  335. package/nodes/google-gemini-embedding-2/google-gemini-embedding-2.tests.json +48 -0
  336. package/nodes/google-gemini-embedding-2-preview/google-gemini-embedding-2-preview.config.json +94 -0
  337. package/nodes/google-gemini-embedding-2-preview/google-gemini-embedding-2-preview.process.js +36 -0
  338. package/nodes/google-gemini-embedding-2-preview/google-gemini-embedding-2-preview.tests.json +48 -0
  339. package/nodes/google-gemma-2-27b-it/google-gemma-2-27b-it.config.json +165 -0
  340. package/nodes/google-gemma-2-27b-it/google-gemma-2-27b-it.process.js +136 -0
  341. package/nodes/google-gemma-2-27b-it/google-gemma-2-27b-it.tests.json +80 -0
  342. package/nodes/google-gemma-3-12b-it/google-gemma-3-12b-it.config.json +191 -0
  343. package/nodes/google-gemma-3-12b-it/google-gemma-3-12b-it.process.js +136 -0
  344. package/nodes/google-gemma-3-12b-it/google-gemma-3-12b-it.tests.json +80 -0
  345. package/nodes/google-gemma-3-27b-it/google-gemma-3-27b-it.config.json +191 -0
  346. package/nodes/google-gemma-3-27b-it/google-gemma-3-27b-it.process.js +136 -0
  347. package/nodes/google-gemma-3-27b-it/google-gemma-3-27b-it.tests.json +80 -0
  348. package/nodes/google-gemma-3-4b-it/google-gemma-3-4b-it.config.json +168 -0
  349. package/nodes/google-gemma-3-4b-it/google-gemma-3-4b-it.process.js +136 -0
  350. package/nodes/google-gemma-3-4b-it/google-gemma-3-4b-it.tests.json +80 -0
  351. package/nodes/google-gemma-3n-e4b-it/google-gemma-3n-e4b-it.config.json +123 -0
  352. package/nodes/google-gemma-3n-e4b-it/google-gemma-3n-e4b-it.process.js +51 -0
  353. package/nodes/google-gemma-3n-e4b-it/google-gemma-3n-e4b-it.tests.json +44 -0
  354. package/nodes/google-gemma-4-26b-a4b-it/google-gemma-4-26b-a4b-it.config.json +235 -0
  355. package/nodes/google-gemma-4-26b-a4b-it/google-gemma-4-26b-a4b-it.process.js +139 -0
  356. package/nodes/google-gemma-4-26b-a4b-it/google-gemma-4-26b-a4b-it.tests.json +80 -0
  357. package/nodes/google-gemma-4-26b-a4b-it-free/google-gemma-4-26b-a4b-it-free.config.json +184 -0
  358. package/nodes/google-gemma-4-26b-a4b-it-free/google-gemma-4-26b-a4b-it-free.process.js +138 -0
  359. package/nodes/google-gemma-4-26b-a4b-it-free/google-gemma-4-26b-a4b-it-free.tests.json +80 -0
  360. package/nodes/google-gemma-4-31b-it/google-gemma-4-31b-it.config.json +235 -0
  361. package/nodes/google-gemma-4-31b-it/google-gemma-4-31b-it.process.js +139 -0
  362. package/nodes/google-gemma-4-31b-it/google-gemma-4-31b-it.tests.json +80 -0
  363. package/nodes/google-gemma-4-31b-it-free/google-gemma-4-31b-it-free.config.json +192 -0
  364. package/nodes/google-gemma-4-31b-it-free/google-gemma-4-31b-it-free.process.js +138 -0
  365. package/nodes/google-gemma-4-31b-it-free/google-gemma-4-31b-it-free.tests.json +80 -0
  366. package/nodes/google-lyria-3-clip-preview/google-lyria-3-clip-preview.config.json +111 -0
  367. package/nodes/google-lyria-3-clip-preview/google-lyria-3-clip-preview.process.js +51 -0
  368. package/nodes/google-lyria-3-clip-preview/google-lyria-3-clip-preview.tests.json +44 -0
  369. package/nodes/google-lyria-3-pro-preview/google-lyria-3-pro-preview.config.json +111 -0
  370. package/nodes/google-lyria-3-pro-preview/google-lyria-3-pro-preview.process.js +51 -0
  371. package/nodes/google-lyria-3-pro-preview/google-lyria-3-pro-preview.tests.json +44 -0
  372. package/nodes/greater-than/greater-than.config.json +33 -0
  373. package/nodes/greater-than/greater-than.process.js +11 -0
  374. package/nodes/greater-than/greater-than.tests.json +47 -0
  375. package/nodes/greater-than-equal/greater-than-equal.config.json +33 -0
  376. package/nodes/greater-than-equal/greater-than-equal.process.js +11 -0
  377. package/nodes/greater-than-equal/greater-than-equal.tests.json +52 -0
  378. package/nodes/has-object-property/has-object-property.config.json +55 -0
  379. package/nodes/has-object-property/has-object-property.process.js +42 -0
  380. package/nodes/has-object-property/has-object-property.tests.json +148 -0
  381. package/nodes/hash-content/hash-content.config.json +33 -0
  382. package/nodes/hash-content/hash-content.process.js +19 -0
  383. package/nodes/hash-content/hash-content.tests.json +51 -0
  384. package/nodes/histogram/histogram.config.json +36 -0
  385. package/nodes/histogram/histogram.process.js +73 -0
  386. package/nodes/histogram/histogram.tests.json +57 -0
  387. package/nodes/histogram-fixed/histogram-fixed.config.json +62 -0
  388. package/nodes/histogram-fixed/histogram-fixed.process.js +42 -0
  389. package/nodes/histogram-fixed/histogram-fixed.tests.json +62 -0
  390. package/nodes/http-request/http-request.config.json +90 -0
  391. package/nodes/http-request/http-request.process.js +89 -0
  392. package/nodes/http-request/http-request.tests.json +115 -0
  393. package/nodes/hubspot-read-contacts/hubspot-read-contacts.config.json +71 -0
  394. package/nodes/hubspot-read-contacts/hubspot-read-contacts.process.js +56 -0
  395. package/nodes/hubspot-search-contacts/hubspot-search-contacts.config.json +89 -0
  396. package/nodes/hubspot-search-contacts/hubspot-search-contacts.process.js +71 -0
  397. package/nodes/if-else/if-else.config.json +50 -0
  398. package/nodes/if-else/if-else.process.js +39 -0
  399. package/nodes/if-else/if-else.tests.json +94 -0
  400. package/nodes/input-chat/input-chat.config.json +45 -0
  401. package/nodes/input-chat/input-chat.process.js +29 -0
  402. package/nodes/input-data/input-data.config.json +59 -0
  403. package/nodes/input-data/input-data.process.js +25 -0
  404. package/nodes/input-data/input-data.tests.json +53 -0
  405. package/nodes/input-plugins/input-plugins.config.json +17 -0
  406. package/nodes/input-plugins/input-plugins.process.js +11 -0
  407. package/nodes/input-prompt/input-prompt.config.json +39 -0
  408. package/nodes/input-prompt/input-prompt.process.js +9 -0
  409. package/nodes/intfloat-e5-base-v2/intfloat-e5-base-v2.config.json +90 -0
  410. package/nodes/intfloat-e5-base-v2/intfloat-e5-base-v2.process.js +36 -0
  411. package/nodes/intfloat-e5-base-v2/intfloat-e5-base-v2.tests.json +48 -0
  412. package/nodes/intfloat-e5-large-v2/intfloat-e5-large-v2.config.json +90 -0
  413. package/nodes/intfloat-e5-large-v2/intfloat-e5-large-v2.process.js +36 -0
  414. package/nodes/intfloat-e5-large-v2/intfloat-e5-large-v2.tests.json +48 -0
  415. package/nodes/intfloat-multilingual-e5-large/intfloat-multilingual-e5-large.config.json +90 -0
  416. package/nodes/intfloat-multilingual-e5-large/intfloat-multilingual-e5-large.process.js +36 -0
  417. package/nodes/intfloat-multilingual-e5-large/intfloat-multilingual-e5-large.tests.json +48 -0
  418. package/nodes/jira-create-issue/jira-create-issue.config.json +87 -0
  419. package/nodes/jira-create-issue/jira-create-issue.process.js +24 -0
  420. package/nodes/jira-create-issue/jira-create-issue.tests.json +14 -0
  421. package/nodes/jira-list-issues/jira-list-issues.config.json +53 -0
  422. package/nodes/jira-list-issues/jira-list-issues.process.js +19 -0
  423. package/nodes/jira-list-issues/jira-list-issues.tests.json +14 -0
  424. package/nodes/jira-update-issue/jira-update-issue.config.json +60 -0
  425. package/nodes/jira-update-issue/jira-update-issue.process.js +30 -0
  426. package/nodes/jira-update-issue/jira-update-issue.tests.json +12 -0
  427. package/nodes/json-parser/json-parser.config.json +47 -0
  428. package/nodes/json-parser/json-parser.process.js +23 -0
  429. package/nodes/json-parser/json-parser.tests.json +57 -0
  430. package/nodes/json-stringifier/json-stringifier.config.json +54 -0
  431. package/nodes/json-stringifier/json-stringifier.process.js +20 -0
  432. package/nodes/json-stringifier/json-stringifier.tests.json +58 -0
  433. package/nodes/json-to-xml/json-to-xml.config.json +48 -0
  434. package/nodes/json-to-xml/json-to-xml.process.js +60 -0
  435. package/nodes/json-to-xml/json-to-xml.tests.json +103 -0
  436. package/nodes/json-to-yaml/json-to-yaml.config.json +32 -0
  437. package/nodes/json-to-yaml/json-to-yaml.process.js +89 -0
  438. package/nodes/json-to-yaml/json-to-yaml.tests.json +101 -0
  439. package/nodes/keep-bookends/keep-bookends.config.json +44 -0
  440. package/nodes/keep-bookends/keep-bookends.process.js +44 -0
  441. package/nodes/keep-bookends/keep-bookends.tests.json +185 -0
  442. package/nodes/less-than/less-than.config.json +33 -0
  443. package/nodes/less-than/less-than.process.js +11 -0
  444. package/nodes/less-than/less-than.tests.json +47 -0
  445. package/nodes/less-than-equal/less-than-equal.config.json +33 -0
  446. package/nodes/less-than-equal/less-than-equal.process.js +11 -0
  447. package/nodes/less-than-equal/less-than-equal.tests.json +52 -0
  448. package/nodes/linear-create-issue/linear-create-issue.config.json +72 -0
  449. package/nodes/linear-create-issue/linear-create-issue.process.js +24 -0
  450. package/nodes/linear-create-issue/linear-create-issue.tests.json +14 -0
  451. package/nodes/linear-list-issues/linear-list-issues.config.json +58 -0
  452. package/nodes/linear-list-issues/linear-list-issues.process.js +22 -0
  453. package/nodes/linear-list-issues/linear-list-issues.tests.json +13 -0
  454. package/nodes/linear-update-issue/linear-update-issue.config.json +72 -0
  455. package/nodes/linear-update-issue/linear-update-issue.process.js +24 -0
  456. package/nodes/linear-update-issue/linear-update-issue.tests.json +13 -0
  457. package/nodes/liquid-lfm-2-24b-a2b/liquid-lfm-2-24b-a2b.config.json +123 -0
  458. package/nodes/liquid-lfm-2-24b-a2b/liquid-lfm-2-24b-a2b.process.js +51 -0
  459. package/nodes/liquid-lfm-2-24b-a2b/liquid-lfm-2-24b-a2b.tests.json +44 -0
  460. package/nodes/liquid-lfm-2-5-1-2b-instruct-free/liquid-lfm-2-5-1-2b-instruct-free.config.json +130 -0
  461. package/nodes/liquid-lfm-2-5-1-2b-instruct-free/liquid-lfm-2-5-1-2b-instruct-free.process.js +51 -0
  462. package/nodes/liquid-lfm-2-5-1-2b-instruct-free/liquid-lfm-2-5-1-2b-instruct-free.tests.json +44 -0
  463. package/nodes/liquid-lfm-2-5-1-2b-thinking-free/liquid-lfm-2-5-1-2b-thinking-free.config.json +152 -0
  464. package/nodes/liquid-lfm-2-5-1-2b-thinking-free/liquid-lfm-2-5-1-2b-thinking-free.process.js +53 -0
  465. package/nodes/liquid-lfm-2-5-1-2b-thinking-free/liquid-lfm-2-5-1-2b-thinking-free.tests.json +44 -0
  466. package/nodes/loop-end/loop-end.config.json +74 -0
  467. package/nodes/loop-end/loop-end.process.js +69 -0
  468. package/nodes/loop-end/loop-end.tests.json +139 -0
  469. package/nodes/loop-start/loop-start.config.json +28 -0
  470. package/nodes/loop-start/loop-start.process.js +18 -0
  471. package/nodes/loop-start/loop-start.tests.json +65 -0
  472. package/nodes/mean/mean.config.json +23 -0
  473. package/nodes/mean/mean.process.js +23 -0
  474. package/nodes/mean/mean.tests.json +45 -0
  475. package/nodes/median/median.config.json +23 -0
  476. package/nodes/median/median.process.js +29 -0
  477. package/nodes/median/median.tests.json +54 -0
  478. package/nodes/merge-consecutive-roles/merge-consecutive-roles.config.json +38 -0
  479. package/nodes/merge-consecutive-roles/merge-consecutive-roles.process.js +75 -0
  480. package/nodes/merge-consecutive-roles/merge-consecutive-roles.tests.json +199 -0
  481. package/nodes/merge-messages/merge-messages.config.json +60 -0
  482. package/nodes/merge-messages/merge-messages.process.js +99 -0
  483. package/nodes/merge-messages/merge-messages.tests.json +174 -0
  484. package/nodes/message/message.config.json +57 -0
  485. package/nodes/message/message.process.js +40 -0
  486. package/nodes/message-bus/message-bus.config.json +103 -0
  487. package/nodes/message-bus/message-bus.process.js +69 -0
  488. package/nodes/message-bus/message-bus.tests.json +150 -0
  489. package/nodes/message-role-swap/message-role-swap.config.json +26 -0
  490. package/nodes/message-role-swap/message-role-swap.process.js +39 -0
  491. package/nodes/message-role-swap/message-role-swap.tests.json +197 -0
  492. package/nodes/mistralai-codestral-2508/mistralai-codestral-2508.config.json +187 -0
  493. package/nodes/mistralai-codestral-2508/mistralai-codestral-2508.process.js +136 -0
  494. package/nodes/mistralai-codestral-2508/mistralai-codestral-2508.tests.json +80 -0
  495. package/nodes/mistralai-codestral-embed-2505/mistralai-codestral-embed-2505.config.json +90 -0
  496. package/nodes/mistralai-codestral-embed-2505/mistralai-codestral-embed-2505.process.js +36 -0
  497. package/nodes/mistralai-codestral-embed-2505/mistralai-codestral-embed-2505.tests.json +48 -0
  498. package/nodes/mistralai-devstral-2512/mistralai-devstral-2512.config.json +187 -0
  499. package/nodes/mistralai-devstral-2512/mistralai-devstral-2512.process.js +136 -0
  500. package/nodes/mistralai-devstral-2512/mistralai-devstral-2512.tests.json +80 -0
  501. package/nodes/mistralai-ministral-14b-2512/mistralai-ministral-14b-2512.config.json +210 -0
  502. package/nodes/mistralai-ministral-14b-2512/mistralai-ministral-14b-2512.process.js +137 -0
  503. package/nodes/mistralai-ministral-14b-2512/mistralai-ministral-14b-2512.tests.json +80 -0
  504. package/nodes/mistralai-ministral-3b-2512/mistralai-ministral-3b-2512.config.json +210 -0
  505. package/nodes/mistralai-ministral-3b-2512/mistralai-ministral-3b-2512.process.js +137 -0
  506. package/nodes/mistralai-ministral-3b-2512/mistralai-ministral-3b-2512.tests.json +80 -0
  507. package/nodes/mistralai-ministral-8b-2512/mistralai-ministral-8b-2512.config.json +210 -0
  508. package/nodes/mistralai-ministral-8b-2512/mistralai-ministral-8b-2512.process.js +137 -0
  509. package/nodes/mistralai-ministral-8b-2512/mistralai-ministral-8b-2512.tests.json +80 -0
  510. package/nodes/mistralai-mistral-embed-2312/mistralai-mistral-embed-2312.config.json +90 -0
  511. package/nodes/mistralai-mistral-embed-2312/mistralai-mistral-embed-2312.process.js +36 -0
  512. package/nodes/mistralai-mistral-embed-2312/mistralai-mistral-embed-2312.tests.json +48 -0
  513. package/nodes/mistralai-mistral-large/mistralai-mistral-large.config.json +187 -0
  514. package/nodes/mistralai-mistral-large/mistralai-mistral-large.process.js +136 -0
  515. package/nodes/mistralai-mistral-large/mistralai-mistral-large.tests.json +80 -0
  516. package/nodes/mistralai-mistral-large-2407/mistralai-mistral-large-2407.config.json +187 -0
  517. package/nodes/mistralai-mistral-large-2407/mistralai-mistral-large-2407.process.js +136 -0
  518. package/nodes/mistralai-mistral-large-2407/mistralai-mistral-large-2407.tests.json +80 -0
  519. package/nodes/mistralai-mistral-large-2512/mistralai-mistral-large-2512.config.json +187 -0
  520. package/nodes/mistralai-mistral-large-2512/mistralai-mistral-large-2512.process.js +136 -0
  521. package/nodes/mistralai-mistral-large-2512/mistralai-mistral-large-2512.tests.json +80 -0
  522. package/nodes/mistralai-mistral-medium-3/mistralai-mistral-medium-3.config.json +187 -0
  523. package/nodes/mistralai-mistral-medium-3/mistralai-mistral-medium-3.process.js +136 -0
  524. package/nodes/mistralai-mistral-medium-3/mistralai-mistral-medium-3.tests.json +80 -0
  525. package/nodes/mistralai-mistral-medium-3-1/mistralai-mistral-medium-3-1.config.json +187 -0
  526. package/nodes/mistralai-mistral-medium-3-1/mistralai-mistral-medium-3-1.process.js +136 -0
  527. package/nodes/mistralai-mistral-medium-3-1/mistralai-mistral-medium-3-1.tests.json +80 -0
  528. package/nodes/mistralai-mistral-medium-3-5/mistralai-mistral-medium-3-5.config.json +209 -0
  529. package/nodes/mistralai-mistral-medium-3-5/mistralai-mistral-medium-3-5.process.js +138 -0
  530. package/nodes/mistralai-mistral-medium-3-5/mistralai-mistral-medium-3-5.tests.json +80 -0
  531. package/nodes/mistralai-mistral-nemo/mistralai-mistral-nemo.config.json +191 -0
  532. package/nodes/mistralai-mistral-nemo/mistralai-mistral-nemo.process.js +136 -0
  533. package/nodes/mistralai-mistral-nemo/mistralai-mistral-nemo.tests.json +80 -0
  534. package/nodes/mistralai-mistral-saba/mistralai-mistral-saba.config.json +187 -0
  535. package/nodes/mistralai-mistral-saba/mistralai-mistral-saba.process.js +136 -0
  536. package/nodes/mistralai-mistral-saba/mistralai-mistral-saba.tests.json +80 -0
  537. package/nodes/mistralai-mistral-small-24b-instruct-2501/mistralai-mistral-small-24b-instruct-2501.config.json +140 -0
  538. package/nodes/mistralai-mistral-small-24b-instruct-2501/mistralai-mistral-small-24b-instruct-2501.process.js +51 -0
  539. package/nodes/mistralai-mistral-small-24b-instruct-2501/mistralai-mistral-small-24b-instruct-2501.tests.json +44 -0
  540. package/nodes/mistralai-mistral-small-2603/mistralai-mistral-small-2603.config.json +210 -0
  541. package/nodes/mistralai-mistral-small-2603/mistralai-mistral-small-2603.process.js +138 -0
  542. package/nodes/mistralai-mistral-small-2603/mistralai-mistral-small-2603.tests.json +80 -0
  543. package/nodes/mistralai-mistral-small-3-1-24b-instruct/mistralai-mistral-small-3-1-24b-instruct.config.json +131 -0
  544. package/nodes/mistralai-mistral-small-3-1-24b-instruct/mistralai-mistral-small-3-1-24b-instruct.process.js +51 -0
  545. package/nodes/mistralai-mistral-small-3-1-24b-instruct/mistralai-mistral-small-3-1-24b-instruct.tests.json +44 -0
  546. package/nodes/mistralai-mistral-small-3-2-24b-instruct/mistralai-mistral-small-3-2-24b-instruct.config.json +191 -0
  547. package/nodes/mistralai-mistral-small-3-2-24b-instruct/mistralai-mistral-small-3-2-24b-instruct.process.js +136 -0
  548. package/nodes/mistralai-mistral-small-3-2-24b-instruct/mistralai-mistral-small-3-2-24b-instruct.tests.json +80 -0
  549. package/nodes/mistralai-mixtral-8x22b-instruct/mistralai-mixtral-8x22b-instruct.config.json +187 -0
  550. package/nodes/mistralai-mixtral-8x22b-instruct/mistralai-mixtral-8x22b-instruct.process.js +136 -0
  551. package/nodes/mistralai-mixtral-8x22b-instruct/mistralai-mixtral-8x22b-instruct.tests.json +80 -0
  552. package/nodes/mistralai-voxtral-small-24b-2507/mistralai-voxtral-small-24b-2507.config.json +187 -0
  553. package/nodes/mistralai-voxtral-small-24b-2507/mistralai-voxtral-small-24b-2507.process.js +136 -0
  554. package/nodes/mistralai-voxtral-small-24b-2507/mistralai-voxtral-small-24b-2507.tests.json +80 -0
  555. package/nodes/mode/mode.config.json +29 -0
  556. package/nodes/mode/mode.process.js +45 -0
  557. package/nodes/mode/mode.tests.json +53 -0
  558. package/nodes/modulo/modulo.config.json +30 -0
  559. package/nodes/modulo/modulo.process.js +31 -0
  560. package/nodes/modulo/modulo.tests.json +66 -0
  561. package/nodes/multiply/multiply.config.json +30 -0
  562. package/nodes/multiply/multiply.process.js +9 -0
  563. package/nodes/multiply/multiply.tests.json +42 -0
  564. package/nodes/nand-gate/nand-gate.config.json +30 -0
  565. package/nodes/nand-gate/nand-gate.process.js +10 -0
  566. package/nodes/nand-gate/nand-gate.tests.json +22 -0
  567. package/nodes/newsdata-io-archive/newsdata-io-archive.config.json +144 -0
  568. package/nodes/newsdata-io-archive/newsdata-io-archive.process.js +60 -0
  569. package/nodes/newsdata-io-archive/newsdata-io-archive.tests.json +68 -0
  570. package/nodes/newsdata-io-latest/newsdata-io-latest.config.json +142 -0
  571. package/nodes/newsdata-io-latest/newsdata-io-latest.process.js +60 -0
  572. package/nodes/newsdata-io-latest/newsdata-io-latest.tests.json +74 -0
  573. package/nodes/newsdata-io-sources/newsdata-io-sources.config.json +51 -0
  574. package/nodes/newsdata-io-sources/newsdata-io-sources.process.js +41 -0
  575. package/nodes/newsdata-io-sources/newsdata-io-sources.tests.json +53 -0
  576. package/nodes/nor-gate/nor-gate.config.json +30 -0
  577. package/nodes/nor-gate/nor-gate.process.js +10 -0
  578. package/nodes/nor-gate/nor-gate.tests.json +22 -0
  579. package/nodes/normalize-whitespace/normalize-whitespace.config.json +56 -0
  580. package/nodes/normalize-whitespace/normalize-whitespace.process.js +36 -0
  581. package/nodes/normalize-whitespace/normalize-whitespace.tests.json +76 -0
  582. package/nodes/not-equals/not-equals.config.json +32 -0
  583. package/nodes/not-equals/not-equals.process.js +29 -0
  584. package/nodes/not-equals/not-equals.tests.json +77 -0
  585. package/nodes/notion-append-blocks/notion-append-blocks.config.json +38 -0
  586. package/nodes/notion-append-blocks/notion-append-blocks.process.js +34 -0
  587. package/nodes/notion-append-blocks/notion-append-blocks.tests.json +80 -0
  588. package/nodes/notion-archive-page/notion-archive-page.config.json +44 -0
  589. package/nodes/notion-archive-page/notion-archive-page.process.js +29 -0
  590. package/nodes/notion-archive-page/notion-archive-page.tests.json +26 -0
  591. package/nodes/notion-create-page/notion-create-page.config.json +71 -0
  592. package/nodes/notion-create-page/notion-create-page.process.js +45 -0
  593. package/nodes/notion-create-page/notion-create-page.tests.json +92 -0
  594. package/nodes/notion-get-blocks/notion-get-blocks.config.json +51 -0
  595. package/nodes/notion-get-blocks/notion-get-blocks.process.js +29 -0
  596. package/nodes/notion-get-blocks/notion-get-blocks.tests.json +22 -0
  597. package/nodes/notion-get-page/notion-get-page.config.json +54 -0
  598. package/nodes/notion-get-page/notion-get-page.process.js +29 -0
  599. package/nodes/notion-get-page/notion-get-page.tests.json +14 -0
  600. package/nodes/notion-query-database/notion-query-database.config.json +65 -0
  601. package/nodes/notion-query-database/notion-query-database.process.js +31 -0
  602. package/nodes/notion-query-database/notion-query-database.tests.json +52 -0
  603. package/nodes/notion-search/notion-search.config.json +74 -0
  604. package/nodes/notion-search/notion-search.process.js +41 -0
  605. package/nodes/notion-search/notion-search.tests.json +46 -0
  606. package/nodes/notion-update-page/notion-update-page.config.json +57 -0
  607. package/nodes/notion-update-page/notion-update-page.process.js +34 -0
  608. package/nodes/notion-update-page/notion-update-page.tests.json +44 -0
  609. package/nodes/null-bomb/null-bomb.config.json +36 -0
  610. package/nodes/null-bomb/null-bomb.process.js +21 -0
  611. package/nodes/null-bomb/null-bomb.tests.json +83 -0
  612. package/nodes/number/number.config.json +59 -0
  613. package/nodes/number/number.process.js +16 -0
  614. package/nodes/number/number.tests.json +46 -0
  615. package/nodes/nvidia-llama-nemotron-embed-vl-1b-v2-free/nvidia-llama-nemotron-embed-vl-1b-v2-free.config.json +91 -0
  616. package/nodes/nvidia-llama-nemotron-embed-vl-1b-v2-free/nvidia-llama-nemotron-embed-vl-1b-v2-free.process.js +36 -0
  617. package/nodes/nvidia-llama-nemotron-embed-vl-1b-v2-free/nvidia-llama-nemotron-embed-vl-1b-v2-free.tests.json +48 -0
  618. package/nodes/nvidia-llama-nemotron-rerank-vl-1b-v2-free/nvidia-llama-nemotron-rerank-vl-1b-v2-free.config.json +95 -0
  619. package/nodes/nvidia-llama-nemotron-rerank-vl-1b-v2-free/nvidia-llama-nemotron-rerank-vl-1b-v2-free.process.js +60 -0
  620. package/nodes/nvidia-llama-nemotron-rerank-vl-1b-v2-free/nvidia-llama-nemotron-rerank-vl-1b-v2-free.tests.json +47 -0
  621. package/nodes/object-merge/object-merge.config.json +34 -0
  622. package/nodes/object-merge/object-merge.process.js +53 -0
  623. package/nodes/object-merge/object-merge.tests.json +146 -0
  624. package/nodes/openai-gpt-3-5-turbo/openai-gpt-3-5-turbo.config.json +210 -0
  625. package/nodes/openai-gpt-3-5-turbo/openai-gpt-3-5-turbo.process.js +137 -0
  626. package/nodes/openai-gpt-3-5-turbo/openai-gpt-3-5-turbo.tests.json +80 -0
  627. package/nodes/openai-gpt-3-5-turbo-0613/openai-gpt-3-5-turbo-0613.config.json +203 -0
  628. package/nodes/openai-gpt-3-5-turbo-0613/openai-gpt-3-5-turbo-0613.process.js +137 -0
  629. package/nodes/openai-gpt-3-5-turbo-0613/openai-gpt-3-5-turbo-0613.tests.json +80 -0
  630. package/nodes/openai-gpt-3-5-turbo-16k/openai-gpt-3-5-turbo-16k.config.json +211 -0
  631. package/nodes/openai-gpt-3-5-turbo-16k/openai-gpt-3-5-turbo-16k.process.js +137 -0
  632. package/nodes/openai-gpt-3-5-turbo-16k/openai-gpt-3-5-turbo-16k.tests.json +80 -0
  633. package/nodes/openai-gpt-3-5-turbo-instruct/openai-gpt-3-5-turbo-instruct.config.json +187 -0
  634. package/nodes/openai-gpt-3-5-turbo-instruct/openai-gpt-3-5-turbo-instruct.process.js +137 -0
  635. package/nodes/openai-gpt-3-5-turbo-instruct/openai-gpt-3-5-turbo-instruct.tests.json +80 -0
  636. package/nodes/openai-gpt-4/openai-gpt-4.config.json +211 -0
  637. package/nodes/openai-gpt-4/openai-gpt-4.process.js +137 -0
  638. package/nodes/openai-gpt-4/openai-gpt-4.tests.json +80 -0
  639. package/nodes/openai-gpt-4-1/openai-gpt-4-1.config.json +164 -0
  640. package/nodes/openai-gpt-4-1/openai-gpt-4-1.process.js +136 -0
  641. package/nodes/openai-gpt-4-1/openai-gpt-4-1.tests.json +80 -0
  642. package/nodes/openai-gpt-4-1-mini/openai-gpt-4-1-mini.config.json +164 -0
  643. package/nodes/openai-gpt-4-1-mini/openai-gpt-4-1-mini.process.js +136 -0
  644. package/nodes/openai-gpt-4-1-mini/openai-gpt-4-1-mini.tests.json +80 -0
  645. package/nodes/openai-gpt-4-1-nano/openai-gpt-4-1-nano.config.json +164 -0
  646. package/nodes/openai-gpt-4-1-nano/openai-gpt-4-1-nano.process.js +136 -0
  647. package/nodes/openai-gpt-4-1-nano/openai-gpt-4-1-nano.tests.json +80 -0
  648. package/nodes/openai-gpt-4-1106-preview/openai-gpt-4-1106-preview.config.json +210 -0
  649. package/nodes/openai-gpt-4-1106-preview/openai-gpt-4-1106-preview.process.js +137 -0
  650. package/nodes/openai-gpt-4-1106-preview/openai-gpt-4-1106-preview.tests.json +80 -0
  651. package/nodes/openai-gpt-4-turbo/openai-gpt-4-turbo.config.json +210 -0
  652. package/nodes/openai-gpt-4-turbo/openai-gpt-4-turbo.process.js +137 -0
  653. package/nodes/openai-gpt-4-turbo/openai-gpt-4-turbo.tests.json +80 -0
  654. package/nodes/openai-gpt-4-turbo-preview/openai-gpt-4-turbo-preview.config.json +210 -0
  655. package/nodes/openai-gpt-4-turbo-preview/openai-gpt-4-turbo-preview.process.js +137 -0
  656. package/nodes/openai-gpt-4-turbo-preview/openai-gpt-4-turbo-preview.tests.json +80 -0
  657. package/nodes/openai-gpt-4o/openai-gpt-4o.config.json +224 -0
  658. package/nodes/openai-gpt-4o/openai-gpt-4o.process.js +139 -0
  659. package/nodes/openai-gpt-4o/openai-gpt-4o.tests.json +80 -0
  660. package/nodes/openai-gpt-4o-2024-05-13/openai-gpt-4o-2024-05-13.config.json +224 -0
  661. package/nodes/openai-gpt-4o-2024-05-13/openai-gpt-4o-2024-05-13.process.js +139 -0
  662. package/nodes/openai-gpt-4o-2024-05-13/openai-gpt-4o-2024-05-13.tests.json +80 -0
  663. package/nodes/openai-gpt-4o-2024-08-06/openai-gpt-4o-2024-08-06.config.json +224 -0
  664. package/nodes/openai-gpt-4o-2024-08-06/openai-gpt-4o-2024-08-06.process.js +139 -0
  665. package/nodes/openai-gpt-4o-2024-08-06/openai-gpt-4o-2024-08-06.tests.json +80 -0
  666. package/nodes/openai-gpt-4o-2024-11-20/openai-gpt-4o-2024-11-20.config.json +223 -0
  667. package/nodes/openai-gpt-4o-2024-11-20/openai-gpt-4o-2024-11-20.process.js +139 -0
  668. package/nodes/openai-gpt-4o-2024-11-20/openai-gpt-4o-2024-11-20.tests.json +80 -0
  669. package/nodes/openai-gpt-4o-mini/openai-gpt-4o-mini.config.json +224 -0
  670. package/nodes/openai-gpt-4o-mini/openai-gpt-4o-mini.process.js +139 -0
  671. package/nodes/openai-gpt-4o-mini/openai-gpt-4o-mini.tests.json +80 -0
  672. package/nodes/openai-gpt-4o-mini-2024-07-18/openai-gpt-4o-mini-2024-07-18.config.json +223 -0
  673. package/nodes/openai-gpt-4o-mini-2024-07-18/openai-gpt-4o-mini-2024-07-18.process.js +139 -0
  674. package/nodes/openai-gpt-4o-mini-2024-07-18/openai-gpt-4o-mini-2024-07-18.tests.json +80 -0
  675. package/nodes/openai-gpt-4o-mini-search-preview/openai-gpt-4o-mini-search-preview.config.json +101 -0
  676. package/nodes/openai-gpt-4o-mini-search-preview/openai-gpt-4o-mini-search-preview.process.js +53 -0
  677. package/nodes/openai-gpt-4o-mini-search-preview/openai-gpt-4o-mini-search-preview.tests.json +26 -0
  678. package/nodes/openai-gpt-4o-search-preview/openai-gpt-4o-search-preview.config.json +101 -0
  679. package/nodes/openai-gpt-4o-search-preview/openai-gpt-4o-search-preview.process.js +53 -0
  680. package/nodes/openai-gpt-4o-search-preview/openai-gpt-4o-search-preview.tests.json +26 -0
  681. package/nodes/openai-gpt-5/openai-gpt-5.config.json +170 -0
  682. package/nodes/openai-gpt-5/openai-gpt-5.process.js +138 -0
  683. package/nodes/openai-gpt-5/openai-gpt-5.tests.json +57 -0
  684. package/nodes/openai-gpt-5-1/openai-gpt-5-1.config.json +170 -0
  685. package/nodes/openai-gpt-5-1/openai-gpt-5-1.process.js +138 -0
  686. package/nodes/openai-gpt-5-1/openai-gpt-5-1.tests.json +57 -0
  687. package/nodes/openai-gpt-5-1-chat/openai-gpt-5-1-chat.config.json +148 -0
  688. package/nodes/openai-gpt-5-1-chat/openai-gpt-5-1-chat.process.js +136 -0
  689. package/nodes/openai-gpt-5-1-chat/openai-gpt-5-1-chat.tests.json +57 -0
  690. package/nodes/openai-gpt-5-1-codex/openai-gpt-5-1-codex.config.json +170 -0
  691. package/nodes/openai-gpt-5-1-codex/openai-gpt-5-1-codex.process.js +138 -0
  692. package/nodes/openai-gpt-5-1-codex/openai-gpt-5-1-codex.tests.json +57 -0
  693. package/nodes/openai-gpt-5-1-codex-max/openai-gpt-5-1-codex-max.config.json +170 -0
  694. package/nodes/openai-gpt-5-1-codex-max/openai-gpt-5-1-codex-max.process.js +138 -0
  695. package/nodes/openai-gpt-5-1-codex-max/openai-gpt-5-1-codex-max.tests.json +57 -0
  696. package/nodes/openai-gpt-5-1-codex-mini/openai-gpt-5-1-codex-mini.config.json +170 -0
  697. package/nodes/openai-gpt-5-1-codex-mini/openai-gpt-5-1-codex-mini.process.js +138 -0
  698. package/nodes/openai-gpt-5-1-codex-mini/openai-gpt-5-1-codex-mini.tests.json +57 -0
  699. package/nodes/openai-gpt-5-2/openai-gpt-5-2.config.json +170 -0
  700. package/nodes/openai-gpt-5-2/openai-gpt-5-2.process.js +138 -0
  701. package/nodes/openai-gpt-5-2/openai-gpt-5-2.tests.json +57 -0
  702. package/nodes/openai-gpt-5-2-chat/openai-gpt-5-2-chat.config.json +148 -0
  703. package/nodes/openai-gpt-5-2-chat/openai-gpt-5-2-chat.process.js +136 -0
  704. package/nodes/openai-gpt-5-2-chat/openai-gpt-5-2-chat.tests.json +57 -0
  705. package/nodes/openai-gpt-5-2-codex/openai-gpt-5-2-codex.config.json +170 -0
  706. package/nodes/openai-gpt-5-2-codex/openai-gpt-5-2-codex.process.js +138 -0
  707. package/nodes/openai-gpt-5-2-codex/openai-gpt-5-2-codex.tests.json +57 -0
  708. package/nodes/openai-gpt-5-2-pro/openai-gpt-5-2-pro.config.json +169 -0
  709. package/nodes/openai-gpt-5-2-pro/openai-gpt-5-2-pro.process.js +138 -0
  710. package/nodes/openai-gpt-5-2-pro/openai-gpt-5-2-pro.tests.json +57 -0
  711. package/nodes/openai-gpt-5-3-chat/openai-gpt-5-3-chat.config.json +148 -0
  712. package/nodes/openai-gpt-5-3-chat/openai-gpt-5-3-chat.process.js +136 -0
  713. package/nodes/openai-gpt-5-3-chat/openai-gpt-5-3-chat.tests.json +57 -0
  714. package/nodes/openai-gpt-5-3-codex/openai-gpt-5-3-codex.config.json +170 -0
  715. package/nodes/openai-gpt-5-3-codex/openai-gpt-5-3-codex.process.js +138 -0
  716. package/nodes/openai-gpt-5-3-codex/openai-gpt-5-3-codex.tests.json +57 -0
  717. package/nodes/openai-gpt-5-4/openai-gpt-5-4.config.json +170 -0
  718. package/nodes/openai-gpt-5-4/openai-gpt-5-4.process.js +138 -0
  719. package/nodes/openai-gpt-5-4/openai-gpt-5-4.tests.json +57 -0
  720. package/nodes/openai-gpt-5-4-image-2/openai-gpt-5-4-image-2.config.json +153 -0
  721. package/nodes/openai-gpt-5-4-image-2/openai-gpt-5-4-image-2.process.js +58 -0
  722. package/nodes/openai-gpt-5-4-image-2/openai-gpt-5-4-image-2.tests.json +26 -0
  723. package/nodes/openai-gpt-5-4-mini/openai-gpt-5-4-mini.config.json +170 -0
  724. package/nodes/openai-gpt-5-4-mini/openai-gpt-5-4-mini.process.js +138 -0
  725. package/nodes/openai-gpt-5-4-mini/openai-gpt-5-4-mini.tests.json +57 -0
  726. package/nodes/openai-gpt-5-4-nano/openai-gpt-5-4-nano.config.json +170 -0
  727. package/nodes/openai-gpt-5-4-nano/openai-gpt-5-4-nano.process.js +138 -0
  728. package/nodes/openai-gpt-5-4-nano/openai-gpt-5-4-nano.tests.json +57 -0
  729. package/nodes/openai-gpt-5-4-pro/openai-gpt-5-4-pro.config.json +170 -0
  730. package/nodes/openai-gpt-5-4-pro/openai-gpt-5-4-pro.process.js +138 -0
  731. package/nodes/openai-gpt-5-4-pro/openai-gpt-5-4-pro.tests.json +57 -0
  732. package/nodes/openai-gpt-5-5/openai-gpt-5-5.config.json +170 -0
  733. package/nodes/openai-gpt-5-5/openai-gpt-5-5.process.js +138 -0
  734. package/nodes/openai-gpt-5-5/openai-gpt-5-5.tests.json +57 -0
  735. package/nodes/openai-gpt-5-5-pro/openai-gpt-5-5-pro.config.json +169 -0
  736. package/nodes/openai-gpt-5-5-pro/openai-gpt-5-5-pro.process.js +138 -0
  737. package/nodes/openai-gpt-5-5-pro/openai-gpt-5-5-pro.tests.json +57 -0
  738. package/nodes/openai-gpt-5-chat/openai-gpt-5-chat.config.json +96 -0
  739. package/nodes/openai-gpt-5-chat/openai-gpt-5-chat.process.js +51 -0
  740. package/nodes/openai-gpt-5-chat/openai-gpt-5-chat.tests.json +26 -0
  741. package/nodes/openai-gpt-5-codex/openai-gpt-5-codex.config.json +169 -0
  742. package/nodes/openai-gpt-5-codex/openai-gpt-5-codex.process.js +138 -0
  743. package/nodes/openai-gpt-5-codex/openai-gpt-5-codex.tests.json +57 -0
  744. package/nodes/openai-gpt-5-image/openai-gpt-5-image.config.json +169 -0
  745. package/nodes/openai-gpt-5-image/openai-gpt-5-image.process.js +58 -0
  746. package/nodes/openai-gpt-5-image/openai-gpt-5-image.tests.json +44 -0
  747. package/nodes/openai-gpt-5-image-mini/openai-gpt-5-image-mini.config.json +169 -0
  748. package/nodes/openai-gpt-5-image-mini/openai-gpt-5-image-mini.process.js +58 -0
  749. package/nodes/openai-gpt-5-image-mini/openai-gpt-5-image-mini.tests.json +44 -0
  750. package/nodes/openai-gpt-5-mini/openai-gpt-5-mini.config.json +170 -0
  751. package/nodes/openai-gpt-5-mini/openai-gpt-5-mini.process.js +138 -0
  752. package/nodes/openai-gpt-5-mini/openai-gpt-5-mini.tests.json +57 -0
  753. package/nodes/openai-gpt-5-nano/openai-gpt-5-nano.config.json +170 -0
  754. package/nodes/openai-gpt-5-nano/openai-gpt-5-nano.process.js +138 -0
  755. package/nodes/openai-gpt-5-nano/openai-gpt-5-nano.tests.json +57 -0
  756. package/nodes/openai-gpt-5-pro/openai-gpt-5-pro.config.json +169 -0
  757. package/nodes/openai-gpt-5-pro/openai-gpt-5-pro.process.js +138 -0
  758. package/nodes/openai-gpt-5-pro/openai-gpt-5-pro.tests.json +57 -0
  759. package/nodes/openai-gpt-audio/openai-gpt-audio.config.json +210 -0
  760. package/nodes/openai-gpt-audio/openai-gpt-audio.process.js +137 -0
  761. package/nodes/openai-gpt-audio/openai-gpt-audio.tests.json +80 -0
  762. package/nodes/openai-gpt-audio-mini/openai-gpt-audio-mini.config.json +210 -0
  763. package/nodes/openai-gpt-audio-mini/openai-gpt-audio-mini.process.js +137 -0
  764. package/nodes/openai-gpt-audio-mini/openai-gpt-audio-mini.tests.json +80 -0
  765. package/nodes/openai-gpt-chat-latest/openai-gpt-chat-latest.config.json +194 -0
  766. package/nodes/openai-gpt-chat-latest/openai-gpt-chat-latest.process.js +137 -0
  767. package/nodes/openai-gpt-chat-latest/openai-gpt-chat-latest.tests.json +57 -0
  768. package/nodes/openai-gpt-oss-120b/openai-gpt-oss-120b.config.json +235 -0
  769. package/nodes/openai-gpt-oss-120b/openai-gpt-oss-120b.process.js +139 -0
  770. package/nodes/openai-gpt-oss-120b/openai-gpt-oss-120b.tests.json +80 -0
  771. package/nodes/openai-gpt-oss-120b-free/openai-gpt-oss-120b-free.config.json +176 -0
  772. package/nodes/openai-gpt-oss-120b-free/openai-gpt-oss-120b-free.process.js +138 -0
  773. package/nodes/openai-gpt-oss-120b-free/openai-gpt-oss-120b-free.tests.json +80 -0
  774. package/nodes/openai-gpt-oss-20b/openai-gpt-oss-20b.config.json +235 -0
  775. package/nodes/openai-gpt-oss-20b/openai-gpt-oss-20b.process.js +139 -0
  776. package/nodes/openai-gpt-oss-20b/openai-gpt-oss-20b.tests.json +80 -0
  777. package/nodes/openai-gpt-oss-20b-free/openai-gpt-oss-20b-free.config.json +176 -0
  778. package/nodes/openai-gpt-oss-20b-free/openai-gpt-oss-20b-free.process.js +138 -0
  779. package/nodes/openai-gpt-oss-20b-free/openai-gpt-oss-20b-free.tests.json +80 -0
  780. package/nodes/openai-gpt-oss-safeguard-20b/openai-gpt-oss-safeguard-20b.config.json +192 -0
  781. package/nodes/openai-gpt-oss-safeguard-20b/openai-gpt-oss-safeguard-20b.process.js +138 -0
  782. package/nodes/openai-gpt-oss-safeguard-20b/openai-gpt-oss-safeguard-20b.tests.json +80 -0
  783. package/nodes/openai-o1/openai-o1.config.json +169 -0
  784. package/nodes/openai-o1/openai-o1.process.js +138 -0
  785. package/nodes/openai-o1/openai-o1.tests.json +57 -0
  786. package/nodes/openai-o1-pro/openai-o1-pro.config.json +118 -0
  787. package/nodes/openai-o1-pro/openai-o1-pro.process.js +53 -0
  788. package/nodes/openai-o1-pro/openai-o1-pro.tests.json +26 -0
  789. package/nodes/openai-o3/openai-o3.config.json +169 -0
  790. package/nodes/openai-o3/openai-o3.process.js +138 -0
  791. package/nodes/openai-o3/openai-o3.tests.json +57 -0
  792. package/nodes/openai-o3-deep-research/openai-o3-deep-research.config.json +244 -0
  793. package/nodes/openai-o3-deep-research/openai-o3-deep-research.process.js +141 -0
  794. package/nodes/openai-o3-deep-research/openai-o3-deep-research.tests.json +80 -0
  795. package/nodes/openai-o3-mini/openai-o3-mini.config.json +169 -0
  796. package/nodes/openai-o3-mini/openai-o3-mini.process.js +138 -0
  797. package/nodes/openai-o3-mini/openai-o3-mini.tests.json +57 -0
  798. package/nodes/openai-o3-mini-high/openai-o3-mini-high.config.json +169 -0
  799. package/nodes/openai-o3-mini-high/openai-o3-mini-high.process.js +138 -0
  800. package/nodes/openai-o3-mini-high/openai-o3-mini-high.tests.json +57 -0
  801. package/nodes/openai-o3-pro/openai-o3-pro.config.json +169 -0
  802. package/nodes/openai-o3-pro/openai-o3-pro.process.js +138 -0
  803. package/nodes/openai-o3-pro/openai-o3-pro.tests.json +57 -0
  804. package/nodes/openai-o4-mini/openai-o4-mini.config.json +169 -0
  805. package/nodes/openai-o4-mini/openai-o4-mini.process.js +138 -0
  806. package/nodes/openai-o4-mini/openai-o4-mini.tests.json +57 -0
  807. package/nodes/openai-o4-mini-deep-research/openai-o4-mini-deep-research.config.json +244 -0
  808. package/nodes/openai-o4-mini-deep-research/openai-o4-mini-deep-research.process.js +141 -0
  809. package/nodes/openai-o4-mini-deep-research/openai-o4-mini-deep-research.tests.json +80 -0
  810. package/nodes/openai-o4-mini-high/openai-o4-mini-high.config.json +169 -0
  811. package/nodes/openai-o4-mini-high/openai-o4-mini-high.process.js +138 -0
  812. package/nodes/openai-o4-mini-high/openai-o4-mini-high.tests.json +57 -0
  813. package/nodes/openai-omni-moderation-latest/openai-omni-moderation-latest.config.json +183 -0
  814. package/nodes/openai-omni-moderation-latest/openai-omni-moderation-latest.process.js +93 -0
  815. package/nodes/openai-omni-moderation-latest/openai-omni-moderation-latest.tests.json +103 -0
  816. package/nodes/openai-text-embedding-3-large/openai-text-embedding-3-large.config.json +90 -0
  817. package/nodes/openai-text-embedding-3-large/openai-text-embedding-3-large.process.js +36 -0
  818. package/nodes/openai-text-embedding-3-large/openai-text-embedding-3-large.tests.json +48 -0
  819. package/nodes/openai-text-embedding-3-small/openai-text-embedding-3-small.config.json +90 -0
  820. package/nodes/openai-text-embedding-3-small/openai-text-embedding-3-small.process.js +36 -0
  821. package/nodes/openai-text-embedding-3-small/openai-text-embedding-3-small.tests.json +48 -0
  822. package/nodes/openai-text-embedding-ada-002/openai-text-embedding-ada-002.config.json +90 -0
  823. package/nodes/openai-text-embedding-ada-002/openai-text-embedding-ada-002.process.js +36 -0
  824. package/nodes/openai-text-embedding-ada-002/openai-text-embedding-ada-002.tests.json +48 -0
  825. package/nodes/or-gate/or-gate.config.json +30 -0
  826. package/nodes/or-gate/or-gate.process.js +10 -0
  827. package/nodes/or-gate/or-gate.tests.json +22 -0
  828. package/nodes/output-chat/output-chat.config.json +49 -0
  829. package/nodes/output-chat/output-chat.process.js +20 -0
  830. package/nodes/output-data/output-data.config.json +59 -0
  831. package/nodes/output-data/output-data.process.js +10 -0
  832. package/nodes/parse-url/parse-url.config.json +72 -0
  833. package/nodes/parse-url/parse-url.process.js +61 -0
  834. package/nodes/parse-url/parse-url.tests.json +121 -0
  835. package/nodes/perplexity-pplx-embed-v1-0-6b/perplexity-pplx-embed-v1-0-6b.config.json +90 -0
  836. package/nodes/perplexity-pplx-embed-v1-0-6b/perplexity-pplx-embed-v1-0-6b.process.js +36 -0
  837. package/nodes/perplexity-pplx-embed-v1-0-6b/perplexity-pplx-embed-v1-0-6b.tests.json +48 -0
  838. package/nodes/perplexity-pplx-embed-v1-4b/perplexity-pplx-embed-v1-4b.config.json +90 -0
  839. package/nodes/perplexity-pplx-embed-v1-4b/perplexity-pplx-embed-v1-4b.process.js +36 -0
  840. package/nodes/perplexity-pplx-embed-v1-4b/perplexity-pplx-embed-v1-4b.tests.json +48 -0
  841. package/nodes/perplexity-sonar/perplexity-sonar.config.json +125 -0
  842. package/nodes/perplexity-sonar/perplexity-sonar.process.js +53 -0
  843. package/nodes/perplexity-sonar/perplexity-sonar.tests.json +44 -0
  844. package/nodes/perplexity-sonar-deep-research/perplexity-sonar-deep-research.config.json +175 -0
  845. package/nodes/perplexity-sonar-deep-research/perplexity-sonar-deep-research.process.js +140 -0
  846. package/nodes/perplexity-sonar-deep-research/perplexity-sonar-deep-research.tests.json +80 -0
  847. package/nodes/perplexity-sonar-pro/perplexity-sonar-pro.config.json +125 -0
  848. package/nodes/perplexity-sonar-pro/perplexity-sonar-pro.process.js +53 -0
  849. package/nodes/perplexity-sonar-pro/perplexity-sonar-pro.tests.json +44 -0
  850. package/nodes/perplexity-sonar-pro-search/perplexity-sonar-pro-search.config.json +148 -0
  851. package/nodes/perplexity-sonar-pro-search/perplexity-sonar-pro-search.process.js +55 -0
  852. package/nodes/perplexity-sonar-pro-search/perplexity-sonar-pro-search.tests.json +44 -0
  853. package/nodes/perplexity-sonar-reasoning-pro/perplexity-sonar-reasoning-pro.config.json +175 -0
  854. package/nodes/perplexity-sonar-reasoning-pro/perplexity-sonar-reasoning-pro.process.js +140 -0
  855. package/nodes/perplexity-sonar-reasoning-pro/perplexity-sonar-reasoning-pro.tests.json +80 -0
  856. package/nodes/pinecone-query/pinecone-query.config.json +69 -0
  857. package/nodes/pinecone-query/pinecone-query.process.js +22 -0
  858. package/nodes/pinecone-query/pinecone-query.tests.json +12 -0
  859. package/nodes/pinecone-upsert/pinecone-upsert.config.json +32 -0
  860. package/nodes/pinecone-upsert/pinecone-upsert.process.js +15 -0
  861. package/nodes/pinecone-upsert/pinecone-upsert.tests.json +13 -0
  862. package/nodes/power/power.config.json +30 -0
  863. package/nodes/power/power.process.js +9 -0
  864. package/nodes/power/power.tests.json +42 -0
  865. package/nodes/quartiles/quartiles.config.json +41 -0
  866. package/nodes/quartiles/quartiles.process.js +62 -0
  867. package/nodes/quartiles/quartiles.tests.json +69 -0
  868. package/nodes/query-knowledge-base/query-knowledge-base.config.json +81 -0
  869. package/nodes/query-knowledge-base/query-knowledge-base.process.js +35 -0
  870. package/nodes/qwen-qwen-2-5-72b-instruct/qwen-qwen-2-5-72b-instruct.config.json +191 -0
  871. package/nodes/qwen-qwen-2-5-72b-instruct/qwen-qwen-2-5-72b-instruct.process.js +136 -0
  872. package/nodes/qwen-qwen-2-5-72b-instruct/qwen-qwen-2-5-72b-instruct.tests.json +80 -0
  873. package/nodes/qwen-qwen-2-5-7b-instruct/qwen-qwen-2-5-7b-instruct.config.json +159 -0
  874. package/nodes/qwen-qwen-2-5-7b-instruct/qwen-qwen-2-5-7b-instruct.process.js +136 -0
  875. package/nodes/qwen-qwen-2-5-7b-instruct/qwen-qwen-2-5-7b-instruct.tests.json +80 -0
  876. package/nodes/qwen-qwen-2-5-coder-32b-instruct/qwen-qwen-2-5-coder-32b-instruct.config.json +159 -0
  877. package/nodes/qwen-qwen-2-5-coder-32b-instruct/qwen-qwen-2-5-coder-32b-instruct.process.js +136 -0
  878. package/nodes/qwen-qwen-2-5-coder-32b-instruct/qwen-qwen-2-5-coder-32b-instruct.tests.json +80 -0
  879. package/nodes/qwen-qwen-plus/qwen-qwen-plus.config.json +170 -0
  880. package/nodes/qwen-qwen-plus/qwen-qwen-plus.process.js +136 -0
  881. package/nodes/qwen-qwen-plus/qwen-qwen-plus.tests.json +80 -0
  882. package/nodes/qwen-qwen-plus-2025-07-28/qwen-qwen-plus-2025-07-28.config.json +171 -0
  883. package/nodes/qwen-qwen-plus-2025-07-28/qwen-qwen-plus-2025-07-28.process.js +136 -0
  884. package/nodes/qwen-qwen-plus-2025-07-28/qwen-qwen-plus-2025-07-28.tests.json +80 -0
  885. package/nodes/qwen-qwen-plus-2025-07-28-thinking/qwen-qwen-plus-2025-07-28-thinking.config.json +193 -0
  886. package/nodes/qwen-qwen-plus-2025-07-28-thinking/qwen-qwen-plus-2025-07-28-thinking.process.js +138 -0
  887. package/nodes/qwen-qwen-plus-2025-07-28-thinking/qwen-qwen-plus-2025-07-28-thinking.tests.json +80 -0
  888. package/nodes/qwen-qwen2-5-vl-72b-instruct/qwen-qwen2-5-vl-72b-instruct.config.json +139 -0
  889. package/nodes/qwen-qwen2-5-vl-72b-instruct/qwen-qwen2-5-vl-72b-instruct.process.js +51 -0
  890. package/nodes/qwen-qwen2-5-vl-72b-instruct/qwen-qwen2-5-vl-72b-instruct.tests.json +44 -0
  891. package/nodes/qwen-qwen3-14b/qwen-qwen3-14b.config.json +235 -0
  892. package/nodes/qwen-qwen3-14b/qwen-qwen3-14b.process.js +139 -0
  893. package/nodes/qwen-qwen3-14b/qwen-qwen3-14b.tests.json +80 -0
  894. package/nodes/qwen-qwen3-235b-a22b/qwen-qwen3-235b-a22b.config.json +192 -0
  895. package/nodes/qwen-qwen3-235b-a22b/qwen-qwen3-235b-a22b.process.js +138 -0
  896. package/nodes/qwen-qwen3-235b-a22b/qwen-qwen3-235b-a22b.tests.json +80 -0
  897. package/nodes/qwen-qwen3-235b-a22b-2507/qwen-qwen3-235b-a22b-2507.config.json +191 -0
  898. package/nodes/qwen-qwen3-235b-a22b-2507/qwen-qwen3-235b-a22b-2507.process.js +136 -0
  899. package/nodes/qwen-qwen3-235b-a22b-2507/qwen-qwen3-235b-a22b-2507.tests.json +80 -0
  900. package/nodes/qwen-qwen3-235b-a22b-thinking-2507/qwen-qwen3-235b-a22b-thinking-2507.config.json +213 -0
  901. package/nodes/qwen-qwen3-235b-a22b-thinking-2507/qwen-qwen3-235b-a22b-thinking-2507.process.js +138 -0
  902. package/nodes/qwen-qwen3-235b-a22b-thinking-2507/qwen-qwen3-235b-a22b-thinking-2507.tests.json +80 -0
  903. package/nodes/qwen-qwen3-30b-a3b/qwen-qwen3-30b-a3b.config.json +235 -0
  904. package/nodes/qwen-qwen3-30b-a3b/qwen-qwen3-30b-a3b.process.js +139 -0
  905. package/nodes/qwen-qwen3-30b-a3b/qwen-qwen3-30b-a3b.tests.json +80 -0
  906. package/nodes/qwen-qwen3-30b-a3b-instruct-2507/qwen-qwen3-30b-a3b-instruct-2507.config.json +191 -0
  907. package/nodes/qwen-qwen3-30b-a3b-instruct-2507/qwen-qwen3-30b-a3b-instruct-2507.process.js +136 -0
  908. package/nodes/qwen-qwen3-30b-a3b-instruct-2507/qwen-qwen3-30b-a3b-instruct-2507.tests.json +80 -0
  909. package/nodes/qwen-qwen3-30b-a3b-thinking-2507/qwen-qwen3-30b-a3b-thinking-2507.config.json +213 -0
  910. package/nodes/qwen-qwen3-30b-a3b-thinking-2507/qwen-qwen3-30b-a3b-thinking-2507.process.js +138 -0
  911. package/nodes/qwen-qwen3-30b-a3b-thinking-2507/qwen-qwen3-30b-a3b-thinking-2507.tests.json +80 -0
  912. package/nodes/qwen-qwen3-32b/qwen-qwen3-32b.config.json +213 -0
  913. package/nodes/qwen-qwen3-32b/qwen-qwen3-32b.process.js +138 -0
  914. package/nodes/qwen-qwen3-32b/qwen-qwen3-32b.tests.json +80 -0
  915. package/nodes/qwen-qwen3-5-122b-a10b/qwen-qwen3-5-122b-a10b.config.json +235 -0
  916. package/nodes/qwen-qwen3-5-122b-a10b/qwen-qwen3-5-122b-a10b.process.js +139 -0
  917. package/nodes/qwen-qwen3-5-122b-a10b/qwen-qwen3-5-122b-a10b.tests.json +80 -0
  918. package/nodes/qwen-qwen3-5-27b/qwen-qwen3-5-27b.config.json +235 -0
  919. package/nodes/qwen-qwen3-5-27b/qwen-qwen3-5-27b.process.js +139 -0
  920. package/nodes/qwen-qwen3-5-27b/qwen-qwen3-5-27b.tests.json +80 -0
  921. package/nodes/qwen-qwen3-5-35b-a3b/qwen-qwen3-5-35b-a3b.config.json +235 -0
  922. package/nodes/qwen-qwen3-5-35b-a3b/qwen-qwen3-5-35b-a3b.process.js +139 -0
  923. package/nodes/qwen-qwen3-5-35b-a3b/qwen-qwen3-5-35b-a3b.tests.json +80 -0
  924. package/nodes/qwen-qwen3-5-397b-a17b/qwen-qwen3-5-397b-a17b.config.json +235 -0
  925. package/nodes/qwen-qwen3-5-397b-a17b/qwen-qwen3-5-397b-a17b.process.js +139 -0
  926. package/nodes/qwen-qwen3-5-397b-a17b/qwen-qwen3-5-397b-a17b.tests.json +80 -0
  927. package/nodes/qwen-qwen3-5-9b/qwen-qwen3-5-9b.config.json +235 -0
  928. package/nodes/qwen-qwen3-5-9b/qwen-qwen3-5-9b.process.js +139 -0
  929. package/nodes/qwen-qwen3-5-9b/qwen-qwen3-5-9b.tests.json +80 -0
  930. package/nodes/qwen-qwen3-5-flash-02-23/qwen-qwen3-5-flash-02-23.config.json +193 -0
  931. package/nodes/qwen-qwen3-5-flash-02-23/qwen-qwen3-5-flash-02-23.process.js +138 -0
  932. package/nodes/qwen-qwen3-5-flash-02-23/qwen-qwen3-5-flash-02-23.tests.json +80 -0
  933. package/nodes/qwen-qwen3-5-plus-02-15/qwen-qwen3-5-plus-02-15.config.json +193 -0
  934. package/nodes/qwen-qwen3-5-plus-02-15/qwen-qwen3-5-plus-02-15.process.js +138 -0
  935. package/nodes/qwen-qwen3-5-plus-02-15/qwen-qwen3-5-plus-02-15.tests.json +80 -0
  936. package/nodes/qwen-qwen3-5-plus-20260420/qwen-qwen3-5-plus-20260420.config.json +193 -0
  937. package/nodes/qwen-qwen3-5-plus-20260420/qwen-qwen3-5-plus-20260420.process.js +138 -0
  938. package/nodes/qwen-qwen3-5-plus-20260420/qwen-qwen3-5-plus-20260420.tests.json +80 -0
  939. package/nodes/qwen-qwen3-6-27b/qwen-qwen3-6-27b.config.json +235 -0
  940. package/nodes/qwen-qwen3-6-27b/qwen-qwen3-6-27b.process.js +139 -0
  941. package/nodes/qwen-qwen3-6-27b/qwen-qwen3-6-27b.tests.json +80 -0
  942. package/nodes/qwen-qwen3-6-35b-a3b/qwen-qwen3-6-35b-a3b.config.json +235 -0
  943. package/nodes/qwen-qwen3-6-35b-a3b/qwen-qwen3-6-35b-a3b.process.js +139 -0
  944. package/nodes/qwen-qwen3-6-35b-a3b/qwen-qwen3-6-35b-a3b.tests.json +80 -0
  945. package/nodes/qwen-qwen3-6-flash/qwen-qwen3-6-flash.config.json +193 -0
  946. package/nodes/qwen-qwen3-6-flash/qwen-qwen3-6-flash.process.js +138 -0
  947. package/nodes/qwen-qwen3-6-flash/qwen-qwen3-6-flash.tests.json +80 -0
  948. package/nodes/qwen-qwen3-6-max-preview/qwen-qwen3-6-max-preview.config.json +215 -0
  949. package/nodes/qwen-qwen3-6-max-preview/qwen-qwen3-6-max-preview.process.js +139 -0
  950. package/nodes/qwen-qwen3-6-max-preview/qwen-qwen3-6-max-preview.tests.json +80 -0
  951. package/nodes/qwen-qwen3-6-plus/qwen-qwen3-6-plus.config.json +193 -0
  952. package/nodes/qwen-qwen3-6-plus/qwen-qwen3-6-plus.process.js +138 -0
  953. package/nodes/qwen-qwen3-6-plus/qwen-qwen3-6-plus.tests.json +80 -0
  954. package/nodes/qwen-qwen3-7-max/qwen-qwen3-7-max.config.json +215 -0
  955. package/nodes/qwen-qwen3-7-max/qwen-qwen3-7-max.process.js +139 -0
  956. package/nodes/qwen-qwen3-7-max/qwen-qwen3-7-max.tests.json +80 -0
  957. package/nodes/qwen-qwen3-7-plus/qwen-qwen3-7-plus.config.json +215 -0
  958. package/nodes/qwen-qwen3-7-plus/qwen-qwen3-7-plus.process.js +139 -0
  959. package/nodes/qwen-qwen3-7-plus/qwen-qwen3-7-plus.tests.json +80 -0
  960. package/nodes/qwen-qwen3-8b/qwen-qwen3-8b.config.json +213 -0
  961. package/nodes/qwen-qwen3-8b/qwen-qwen3-8b.process.js +138 -0
  962. package/nodes/qwen-qwen3-8b/qwen-qwen3-8b.tests.json +80 -0
  963. package/nodes/qwen-qwen3-coder/qwen-qwen3-coder.config.json +191 -0
  964. package/nodes/qwen-qwen3-coder/qwen-qwen3-coder.process.js +136 -0
  965. package/nodes/qwen-qwen3-coder/qwen-qwen3-coder.tests.json +80 -0
  966. package/nodes/qwen-qwen3-coder-30b-a3b-instruct/qwen-qwen3-coder-30b-a3b-instruct.config.json +189 -0
  967. package/nodes/qwen-qwen3-coder-30b-a3b-instruct/qwen-qwen3-coder-30b-a3b-instruct.process.js +136 -0
  968. package/nodes/qwen-qwen3-coder-30b-a3b-instruct/qwen-qwen3-coder-30b-a3b-instruct.tests.json +80 -0
  969. package/nodes/qwen-qwen3-coder-flash/qwen-qwen3-coder-flash.config.json +170 -0
  970. package/nodes/qwen-qwen3-coder-flash/qwen-qwen3-coder-flash.process.js +136 -0
  971. package/nodes/qwen-qwen3-coder-flash/qwen-qwen3-coder-flash.tests.json +80 -0
  972. package/nodes/qwen-qwen3-coder-free/qwen-qwen3-coder-free.config.json +171 -0
  973. package/nodes/qwen-qwen3-coder-free/qwen-qwen3-coder-free.process.js +136 -0
  974. package/nodes/qwen-qwen3-coder-free/qwen-qwen3-coder-free.tests.json +80 -0
  975. package/nodes/qwen-qwen3-coder-next/qwen-qwen3-coder-next.config.json +191 -0
  976. package/nodes/qwen-qwen3-coder-next/qwen-qwen3-coder-next.process.js +136 -0
  977. package/nodes/qwen-qwen3-coder-next/qwen-qwen3-coder-next.tests.json +80 -0
  978. package/nodes/qwen-qwen3-coder-plus/qwen-qwen3-coder-plus.config.json +171 -0
  979. package/nodes/qwen-qwen3-coder-plus/qwen-qwen3-coder-plus.process.js +136 -0
  980. package/nodes/qwen-qwen3-coder-plus/qwen-qwen3-coder-plus.tests.json +80 -0
  981. package/nodes/qwen-qwen3-embedding-4b/qwen-qwen3-embedding-4b.config.json +90 -0
  982. package/nodes/qwen-qwen3-embedding-4b/qwen-qwen3-embedding-4b.process.js +36 -0
  983. package/nodes/qwen-qwen3-embedding-4b/qwen-qwen3-embedding-4b.tests.json +48 -0
  984. package/nodes/qwen-qwen3-embedding-8b/qwen-qwen3-embedding-8b.config.json +90 -0
  985. package/nodes/qwen-qwen3-embedding-8b/qwen-qwen3-embedding-8b.process.js +36 -0
  986. package/nodes/qwen-qwen3-embedding-8b/qwen-qwen3-embedding-8b.tests.json +48 -0
  987. package/nodes/qwen-qwen3-max/qwen-qwen3-max.config.json +170 -0
  988. package/nodes/qwen-qwen3-max/qwen-qwen3-max.process.js +136 -0
  989. package/nodes/qwen-qwen3-max/qwen-qwen3-max.tests.json +80 -0
  990. package/nodes/qwen-qwen3-max-thinking/qwen-qwen3-max-thinking.config.json +193 -0
  991. package/nodes/qwen-qwen3-max-thinking/qwen-qwen3-max-thinking.process.js +138 -0
  992. package/nodes/qwen-qwen3-max-thinking/qwen-qwen3-max-thinking.tests.json +80 -0
  993. package/nodes/qwen-qwen3-next-80b-a3b-instruct/qwen-qwen3-next-80b-a3b-instruct.config.json +191 -0
  994. package/nodes/qwen-qwen3-next-80b-a3b-instruct/qwen-qwen3-next-80b-a3b-instruct.process.js +136 -0
  995. package/nodes/qwen-qwen3-next-80b-a3b-instruct/qwen-qwen3-next-80b-a3b-instruct.tests.json +80 -0
  996. package/nodes/qwen-qwen3-next-80b-a3b-instruct-free/qwen-qwen3-next-80b-a3b-instruct-free.config.json +180 -0
  997. package/nodes/qwen-qwen3-next-80b-a3b-instruct-free/qwen-qwen3-next-80b-a3b-instruct-free.process.js +136 -0
  998. package/nodes/qwen-qwen3-next-80b-a3b-instruct-free/qwen-qwen3-next-80b-a3b-instruct-free.tests.json +80 -0
  999. package/nodes/qwen-qwen3-next-80b-a3b-thinking/qwen-qwen3-next-80b-a3b-thinking.config.json +213 -0
  1000. package/nodes/qwen-qwen3-next-80b-a3b-thinking/qwen-qwen3-next-80b-a3b-thinking.process.js +138 -0
  1001. package/nodes/qwen-qwen3-next-80b-a3b-thinking/qwen-qwen3-next-80b-a3b-thinking.tests.json +80 -0
  1002. package/nodes/qwen-qwen3-vl-235b-a22b-instruct/qwen-qwen3-vl-235b-a22b-instruct.config.json +191 -0
  1003. package/nodes/qwen-qwen3-vl-235b-a22b-instruct/qwen-qwen3-vl-235b-a22b-instruct.process.js +136 -0
  1004. package/nodes/qwen-qwen3-vl-235b-a22b-instruct/qwen-qwen3-vl-235b-a22b-instruct.tests.json +80 -0
  1005. package/nodes/qwen-qwen3-vl-235b-a22b-thinking/qwen-qwen3-vl-235b-a22b-thinking.config.json +210 -0
  1006. package/nodes/qwen-qwen3-vl-235b-a22b-thinking/qwen-qwen3-vl-235b-a22b-thinking.process.js +138 -0
  1007. package/nodes/qwen-qwen3-vl-235b-a22b-thinking/qwen-qwen3-vl-235b-a22b-thinking.tests.json +80 -0
  1008. package/nodes/qwen-qwen3-vl-30b-a3b-instruct/qwen-qwen3-vl-30b-a3b-instruct.config.json +191 -0
  1009. package/nodes/qwen-qwen3-vl-30b-a3b-instruct/qwen-qwen3-vl-30b-a3b-instruct.process.js +136 -0
  1010. package/nodes/qwen-qwen3-vl-30b-a3b-instruct/qwen-qwen3-vl-30b-a3b-instruct.tests.json +80 -0
  1011. package/nodes/qwen-qwen3-vl-30b-a3b-thinking/qwen-qwen3-vl-30b-a3b-thinking.config.json +211 -0
  1012. package/nodes/qwen-qwen3-vl-30b-a3b-thinking/qwen-qwen3-vl-30b-a3b-thinking.process.js +138 -0
  1013. package/nodes/qwen-qwen3-vl-30b-a3b-thinking/qwen-qwen3-vl-30b-a3b-thinking.tests.json +80 -0
  1014. package/nodes/qwen-qwen3-vl-32b-instruct/qwen-qwen3-vl-32b-instruct.config.json +170 -0
  1015. package/nodes/qwen-qwen3-vl-32b-instruct/qwen-qwen3-vl-32b-instruct.process.js +136 -0
  1016. package/nodes/qwen-qwen3-vl-32b-instruct/qwen-qwen3-vl-32b-instruct.tests.json +80 -0
  1017. package/nodes/qwen-qwen3-vl-8b-instruct/qwen-qwen3-vl-8b-instruct.config.json +191 -0
  1018. package/nodes/qwen-qwen3-vl-8b-instruct/qwen-qwen3-vl-8b-instruct.process.js +136 -0
  1019. package/nodes/qwen-qwen3-vl-8b-instruct/qwen-qwen3-vl-8b-instruct.tests.json +80 -0
  1020. package/nodes/qwen-qwen3-vl-8b-thinking/qwen-qwen3-vl-8b-thinking.config.json +193 -0
  1021. package/nodes/qwen-qwen3-vl-8b-thinking/qwen-qwen3-vl-8b-thinking.process.js +138 -0
  1022. package/nodes/qwen-qwen3-vl-8b-thinking/qwen-qwen3-vl-8b-thinking.tests.json +80 -0
  1023. package/nodes/random-error/random-error.config.json +50 -0
  1024. package/nodes/random-error/random-error.process.js +25 -0
  1025. package/nodes/random-error/random-error.tests.json +38 -0
  1026. package/nodes/random-number/random-number.config.json +66 -0
  1027. package/nodes/random-number/random-number.process.js +67 -0
  1028. package/nodes/random-number/random-number.tests.json +59 -0
  1029. package/nodes/range/range.config.json +35 -0
  1030. package/nodes/range/range.process.js +22 -0
  1031. package/nodes/range/range.tests.json +68 -0
  1032. package/nodes/read-website/read-website.config.json +71 -0
  1033. package/nodes/remote-mcp-tool/remote-mcp-tool.config.json +21 -0
  1034. package/nodes/resend-send-email/resend-send-email.config.json +74 -0
  1035. package/nodes/resend-send-email/resend-send-email.process.js +26 -0
  1036. package/nodes/resend-send-email/resend-send-email.tests.json +14 -0
  1037. package/nodes/response-format/response-format.config.json +62 -0
  1038. package/nodes/response-format/response-format.process.js +17 -0
  1039. package/nodes/response-format/response-format.tests.json +233 -0
  1040. package/nodes/round/round.config.json +23 -0
  1041. package/nodes/round/round.process.js +8 -0
  1042. package/nodes/round/round.tests.json +38 -0
  1043. package/nodes/route/route.config.json +38 -0
  1044. package/nodes/route/route.process.js +16 -0
  1045. package/nodes/route/route.tests.json +90 -0
  1046. package/nodes/search-internet/search-internet.config.json +71 -0
  1047. package/nodes/self-healing-error/self-healing-error.config.json +43 -0
  1048. package/nodes/self-healing-error/self-healing-error.process.js +31 -0
  1049. package/nodes/self-healing-error/self-healing-error.tests.json +34 -0
  1050. package/nodes/semantic-search/semantic-search.config.json +75 -0
  1051. package/nodes/semantic-search/semantic-search.process.js +70 -0
  1052. package/nodes/sendgrid-send-email/sendgrid-send-email.config.json +81 -0
  1053. package/nodes/sendgrid-send-email/sendgrid-send-email.process.js +43 -0
  1054. package/nodes/sendgrid-send-email/sendgrid-send-email.tests.json +41 -0
  1055. package/nodes/sentence-transformers-all-minilm-l12-v2/sentence-transformers-all-minilm-l12-v2.config.json +90 -0
  1056. package/nodes/sentence-transformers-all-minilm-l12-v2/sentence-transformers-all-minilm-l12-v2.process.js +36 -0
  1057. package/nodes/sentence-transformers-all-minilm-l12-v2/sentence-transformers-all-minilm-l12-v2.tests.json +48 -0
  1058. package/nodes/sentence-transformers-all-minilm-l6-v2/sentence-transformers-all-minilm-l6-v2.config.json +90 -0
  1059. package/nodes/sentence-transformers-all-minilm-l6-v2/sentence-transformers-all-minilm-l6-v2.process.js +36 -0
  1060. package/nodes/sentence-transformers-all-minilm-l6-v2/sentence-transformers-all-minilm-l6-v2.tests.json +48 -0
  1061. package/nodes/sentence-transformers-all-mpnet-base-v2/sentence-transformers-all-mpnet-base-v2.config.json +90 -0
  1062. package/nodes/sentence-transformers-all-mpnet-base-v2/sentence-transformers-all-mpnet-base-v2.process.js +36 -0
  1063. package/nodes/sentence-transformers-all-mpnet-base-v2/sentence-transformers-all-mpnet-base-v2.tests.json +48 -0
  1064. package/nodes/sentence-transformers-multi-qa-mpnet-base-dot-v1/sentence-transformers-multi-qa-mpnet-base-dot-v1.config.json +90 -0
  1065. package/nodes/sentence-transformers-multi-qa-mpnet-base-dot-v1/sentence-transformers-multi-qa-mpnet-base-dot-v1.process.js +36 -0
  1066. package/nodes/sentence-transformers-multi-qa-mpnet-base-dot-v1/sentence-transformers-multi-qa-mpnet-base-dot-v1.tests.json +48 -0
  1067. package/nodes/sentence-transformers-paraphrase-minilm-l6-v2/sentence-transformers-paraphrase-minilm-l6-v2.config.json +90 -0
  1068. package/nodes/sentence-transformers-paraphrase-minilm-l6-v2/sentence-transformers-paraphrase-minilm-l6-v2.process.js +36 -0
  1069. package/nodes/sentence-transformers-paraphrase-minilm-l6-v2/sentence-transformers-paraphrase-minilm-l6-v2.tests.json +48 -0
  1070. package/nodes/set-object-property/set-object-property.config.json +70 -0
  1071. package/nodes/set-object-property/set-object-property.process.js +55 -0
  1072. package/nodes/set-object-property/set-object-property.tests.json +173 -0
  1073. package/nodes/simple-agent/simple-agent.config.json +121 -0
  1074. package/nodes/simple-agent/simple-agent.process.js +121 -0
  1075. package/nodes/simple-agent/simple-agent.tests.json +28 -0
  1076. package/nodes/slack-send-message/slack-send-message.config.json +51 -0
  1077. package/nodes/slack-send-message/slack-send-message.process.js +19 -0
  1078. package/nodes/slack-send-message/slack-send-message.tests.json +13 -0
  1079. package/nodes/split-into-chunks/split-into-chunks.config.json +54 -0
  1080. package/nodes/split-into-chunks/split-into-chunks.process.js +42 -0
  1081. package/nodes/split-into-chunks/split-into-chunks.tests.json +74 -0
  1082. package/nodes/standard-deviation/standard-deviation.config.json +29 -0
  1083. package/nodes/standard-deviation/standard-deviation.process.js +35 -0
  1084. package/nodes/standard-deviation/standard-deviation.tests.json +49 -0
  1085. package/nodes/string/string.config.json +39 -0
  1086. package/nodes/string/string.process.js +14 -0
  1087. package/nodes/string/string.tests.json +56 -0
  1088. package/nodes/string-case/string-case.config.json +33 -0
  1089. package/nodes/string-case/string-case.process.js +46 -0
  1090. package/nodes/string-case/string-case.tests.json +44 -0
  1091. package/nodes/string-concat/string-concat.config.json +30 -0
  1092. package/nodes/string-concat/string-concat.process.js +9 -0
  1093. package/nodes/string-concat/string-concat.tests.json +12 -0
  1094. package/nodes/string-contains/string-contains.config.json +45 -0
  1095. package/nodes/string-contains/string-contains.process.js +19 -0
  1096. package/nodes/string-contains/string-contains.tests.json +58 -0
  1097. package/nodes/string-length/string-length.config.json +23 -0
  1098. package/nodes/string-length/string-length.process.js +5 -0
  1099. package/nodes/string-length/string-length.tests.json +22 -0
  1100. package/nodes/string-match/string-match.config.json +58 -0
  1101. package/nodes/string-match/string-match.process.js +32 -0
  1102. package/nodes/string-match/string-match.tests.json +82 -0
  1103. package/nodes/string-replace/string-replace.config.json +53 -0
  1104. package/nodes/string-replace/string-replace.process.js +19 -0
  1105. package/nodes/string-replace/string-replace.tests.json +62 -0
  1106. package/nodes/string-split/string-split.config.json +39 -0
  1107. package/nodes/string-split/string-split.process.js +12 -0
  1108. package/nodes/string-split/string-split.tests.json +26 -0
  1109. package/nodes/string-substring/string-substring.config.json +37 -0
  1110. package/nodes/string-substring/string-substring.process.js +10 -0
  1111. package/nodes/string-substring/string-substring.tests.json +44 -0
  1112. package/nodes/string-template/string-template.config.json +39 -0
  1113. package/nodes/string-template/string-template.process.js +15 -0
  1114. package/nodes/string-template/string-template.tests.json +63 -0
  1115. package/nodes/string-trim/string-trim.config.json +40 -0
  1116. package/nodes/string-trim/string-trim.process.js +22 -0
  1117. package/nodes/string-trim/string-trim.tests.json +38 -0
  1118. package/nodes/strip-html/strip-html.config.json +40 -0
  1119. package/nodes/strip-html/strip-html.process.js +61 -0
  1120. package/nodes/strip-html/strip-html.tests.json +94 -0
  1121. package/nodes/stripe-list-customers/stripe-list-customers.config.json +52 -0
  1122. package/nodes/stripe-list-customers/stripe-list-customers.process.js +18 -0
  1123. package/nodes/stripe-list-customers/stripe-list-customers.tests.json +24 -0
  1124. package/nodes/subtract/subtract.config.json +31 -0
  1125. package/nodes/subtract/subtract.process.js +15 -0
  1126. package/nodes/subtract/subtract.tests.json +41 -0
  1127. package/nodes/supabase-query/supabase-query.config.json +67 -0
  1128. package/nodes/supabase-query/supabase-query.process.js +21 -0
  1129. package/nodes/supabase-query/supabase-query.tests.json +14 -0
  1130. package/nodes/switch/switch.config.json +59 -0
  1131. package/nodes/switch/switch.process.js +40 -0
  1132. package/nodes/switch/switch.tests.json +85 -0
  1133. package/nodes/system-prompt/system-prompt.config.json +54 -0
  1134. package/nodes/system-prompt/system-prompt.process.js +62 -0
  1135. package/nodes/temperature/temperature.config.json +46 -0
  1136. package/nodes/temperature/temperature.process.js +16 -0
  1137. package/nodes/temperature/temperature.tests.json +47 -0
  1138. package/nodes/text-scratch-pad/text-scratch-pad.config.json +63 -0
  1139. package/nodes/text-scratch-pad/text-scratch-pad.process.js +40 -0
  1140. package/nodes/text-scratch-pad/text-scratch-pad.tests.json +131 -0
  1141. package/nodes/text-to-conversation/text-to-conversation.config.json +46 -0
  1142. package/nodes/text-to-conversation/text-to-conversation.process.js +50 -0
  1143. package/nodes/text-to-conversation/text-to-conversation.tests.json +132 -0
  1144. package/nodes/thenlper-gte-base/thenlper-gte-base.config.json +90 -0
  1145. package/nodes/thenlper-gte-base/thenlper-gte-base.process.js +36 -0
  1146. package/nodes/thenlper-gte-base/thenlper-gte-base.tests.json +48 -0
  1147. package/nodes/thenlper-gte-large/thenlper-gte-large.config.json +90 -0
  1148. package/nodes/thenlper-gte-large/thenlper-gte-large.process.js +36 -0
  1149. package/nodes/thenlper-gte-large/thenlper-gte-large.tests.json +48 -0
  1150. package/nodes/throw-error/throw-error.config.json +36 -0
  1151. package/nodes/throw-error/throw-error.process.js +24 -0
  1152. package/nodes/throw-error/throw-error.tests.json +44 -0
  1153. package/nodes/time-adder/time-adder.config.json +81 -0
  1154. package/nodes/time-adder/time-adder.process.js +111 -0
  1155. package/nodes/time-adder/time-adder.tests.json +158 -0
  1156. package/nodes/timestamp/timestamp.config.json +45 -0
  1157. package/nodes/timestamp/timestamp.process.js +71 -0
  1158. package/nodes/timestamp/timestamp.tests.json +90 -0
  1159. package/nodes/token-count/token-count.config.json +24 -0
  1160. package/nodes/token-count/token-count.process.js +74 -0
  1161. package/nodes/token-count/token-count.tests.json +163 -0
  1162. package/nodes/tokenizer/tokenizer.config.json +38 -0
  1163. package/nodes/tokenizer/tokenizer.process.js +74 -0
  1164. package/nodes/tokenizer/tokenizer.tests.json +129 -0
  1165. package/nodes/tool/tool.config.json +60 -0
  1166. package/nodes/tool/tool.process.js +26 -0
  1167. package/nodes/tool-cleanup/tool-cleanup.config.json +30 -0
  1168. package/nodes/tool-cleanup/tool-cleanup.process.js +99 -0
  1169. package/nodes/tool-cleanup/tool-cleanup.tests.json +160 -0
  1170. package/nodes/truncate-by-tokens/truncate-by-tokens.config.json +57 -0
  1171. package/nodes/truncate-by-tokens/truncate-by-tokens.process.js +72 -0
  1172. package/nodes/truncate-by-tokens/truncate-by-tokens.tests.json +84 -0
  1173. package/nodes/truncate-by-tokens-from-start/truncate-by-tokens-from-start.config.json +57 -0
  1174. package/nodes/truncate-by-tokens-from-start/truncate-by-tokens-from-start.process.js +72 -0
  1175. package/nodes/truncate-by-tokens-from-start/truncate-by-tokens-from-start.tests.json +84 -0
  1176. package/nodes/truncate-by-tokens-preserve-system/truncate-by-tokens-preserve-system.config.json +71 -0
  1177. package/nodes/truncate-by-tokens-preserve-system/truncate-by-tokens-preserve-system.process.js +130 -0
  1178. package/nodes/truncate-by-tokens-preserve-system/truncate-by-tokens-preserve-system.tests.json +144 -0
  1179. package/nodes/truncate-old-tool-responses/truncate-old-tool-responses.config.json +46 -0
  1180. package/nodes/truncate-old-tool-responses/truncate-old-tool-responses.process.js +40 -0
  1181. package/nodes/truncate-old-tool-responses/truncate-old-tool-responses.tests.json +207 -0
  1182. package/nodes/truncate-text/truncate-text.config.json +68 -0
  1183. package/nodes/truncate-text/truncate-text.process.js +77 -0
  1184. package/nodes/truncate-text/truncate-text.tests.json +115 -0
  1185. package/nodes/twilio-send-sms/twilio-send-sms.config.json +45 -0
  1186. package/nodes/twilio-send-sms/twilio-send-sms.process.js +17 -0
  1187. package/nodes/twilio-send-sms/twilio-send-sms.tests.json +14 -0
  1188. package/nodes/untokenizer/untokenizer.config.json +38 -0
  1189. package/nodes/untokenizer/untokenizer.process.js +46 -0
  1190. package/nodes/untokenizer/untokenizer.tests.json +83 -0
  1191. package/nodes/word-count/word-count.config.json +54 -0
  1192. package/nodes/word-count/word-count.process.js +40 -0
  1193. package/nodes/word-count/word-count.tests.json +100 -0
  1194. package/nodes/x-ai-grok-4-20/x-ai-grok-4-20.config.json +207 -0
  1195. package/nodes/x-ai-grok-4-20/x-ai-grok-4-20.process.js +139 -0
  1196. package/nodes/x-ai-grok-4-20/x-ai-grok-4-20.tests.json +80 -0
  1197. package/nodes/x-ai-grok-4-20-multi-agent/x-ai-grok-4-20-multi-agent.config.json +156 -0
  1198. package/nodes/x-ai-grok-4-20-multi-agent/x-ai-grok-4-20-multi-agent.process.js +54 -0
  1199. package/nodes/x-ai-grok-4-20-multi-agent/x-ai-grok-4-20-multi-agent.tests.json +44 -0
  1200. package/nodes/x-ai-grok-4-3/x-ai-grok-4-3.config.json +231 -0
  1201. package/nodes/x-ai-grok-4-3/x-ai-grok-4-3.process.js +139 -0
  1202. package/nodes/x-ai-grok-4-3/x-ai-grok-4-3.tests.json +80 -0
  1203. package/nodes/x-ai-grok-build-0-1/x-ai-grok-build-0-1.config.json +231 -0
  1204. package/nodes/x-ai-grok-build-0-1/x-ai-grok-build-0-1.process.js +139 -0
  1205. package/nodes/x-ai-grok-build-0-1/x-ai-grok-build-0-1.tests.json +80 -0
  1206. package/nodes/xml-to-json/xml-to-json.config.json +44 -0
  1207. package/nodes/xml-to-json/xml-to-json.process.js +163 -0
  1208. package/nodes/xml-to-json/xml-to-json.tests.json +113 -0
  1209. package/nodes/xnor-gate/xnor-gate.config.json +30 -0
  1210. package/nodes/xnor-gate/xnor-gate.process.js +10 -0
  1211. package/nodes/xnor-gate/xnor-gate.tests.json +22 -0
  1212. package/nodes/xor-gate/xor-gate.config.json +30 -0
  1213. package/nodes/xor-gate/xor-gate.process.js +10 -0
  1214. package/nodes/xor-gate/xor-gate.tests.json +22 -0
  1215. package/nodes/yaml-to-json/yaml-to-json.config.json +36 -0
  1216. package/nodes/yaml-to-json/yaml-to-json.process.js +178 -0
  1217. package/nodes/yaml-to-json/yaml-to-json.tests.json +112 -0
  1218. package/package.json +37 -0
  1219. package/src/classes/ErrorManager.js +234 -0
  1220. package/src/index.js +2998 -0
  1221. package/src/integrations/airtable.js +192 -0
  1222. package/src/integrations/confluence.js +87 -0
  1223. package/src/integrations/firecrawl.js +157 -0
  1224. package/src/integrations/github.js +80 -0
  1225. package/src/integrations/google_custom_search.js +136 -0
  1226. package/src/integrations/hubspot.js +282 -0
  1227. package/src/integrations/jira.js +115 -0
  1228. package/src/integrations/knowledge-base-interface.js +119 -0
  1229. package/src/integrations/linear.js +134 -0
  1230. package/src/integrations/newsdata_io.js +201 -0
  1231. package/src/integrations/notion.js +208 -0
  1232. package/src/integrations/openai.js +185 -0
  1233. package/src/integrations/openrouter.js +751 -0
  1234. package/src/integrations/pinecone.js +80 -0
  1235. package/src/integrations/resend.js +76 -0
  1236. package/src/integrations/sendgrid.js +118 -0
  1237. package/src/integrations/slack.js +70 -0
  1238. package/src/integrations/sqlite.js +477 -0
  1239. package/src/integrations/stripe.js +78 -0
  1240. package/src/integrations/supabase.js +104 -0
  1241. package/src/integrations/twilio.js +66 -0
  1242. package/src/types/README.md +181 -0
  1243. package/src/types/content.converters.js +21 -0
  1244. package/src/types/content.json +31 -0
  1245. package/src/types/conversation.converters.js +148 -0
  1246. package/src/types/conversation.json +51 -0
  1247. package/src/types/message.converters.js +45 -0
  1248. package/src/types/message.json +47 -0
  1249. package/src/types/plugin.converters.js +28 -0
  1250. package/src/types/plugin.json +10 -0
  1251. package/src/types/tool.converters.js +28 -0
  1252. package/src/types/tool.json +18 -0
  1253. package/src/utilities/cache.js +381 -0
  1254. package/src/utilities/helpers.js +87 -0
  1255. package/src/utilities/loaders.js +900 -0
  1256. package/src/utilities/mcp.js +165 -0
  1257. package/src/utilities/oauth.js +280 -0
  1258. package/src/utilities/sanitizeAPICall.js +63 -0
  1259. package/src/utilities/typeConverters.js +34 -0
  1260. package/src/utilities/typers.js +484 -0
  1261. package/src/utilities/validators.js +124 -0
  1262. package/types/content.json +31 -0
  1263. package/types/conversation.json +51 -0
  1264. package/types/message.json +47 -0
  1265. package/types/plugin.json +10 -0
  1266. package/types/tool.json +18 -0
@@ -0,0 +1,900 @@
1
+ import path from "path";
2
+ import fs from "fs";
3
+ import AdmZip from "adm-zip";
4
+
5
+ import { convertImportToNodeType } from "./typers.js";
6
+ import { getDirname } from "./helpers.js";
7
+ import { isOAuthKey, OAuthRefreshManager } from "./oauth.js";
8
+
9
+
10
+ /**
11
+ * Load node configurations and processes
12
+ * @returns {Object} Map of node types to their definitions
13
+ */
14
+ export async function loadNodes(flow) {
15
+
16
+ this.convertImportToNodeType = convertImportToNodeType.bind(this);
17
+
18
+ // First, create a flattened array of node types used in this flow and in any imports
19
+ const nodeTypes = new Set();
20
+
21
+ const findNodeTypes = (flow) => {
22
+ flow.nodes.forEach(node => {
23
+ nodeTypes.add(node.type);
24
+ });
25
+ if (flow.imports && Array.isArray(flow.imports)) {
26
+ flow.imports.forEach(findNodeTypes);
27
+ }
28
+ }
29
+
30
+ findNodeTypes(flow);
31
+
32
+ const nodes = {};
33
+
34
+ // Load regular nodes from filesystem
35
+ const nodeLoadPromises = Array.from(nodeTypes).map(async (type) => {
36
+
37
+ if(type.startsWith('imported-')) {
38
+ return;
39
+ }
40
+
41
+ const nodePath = path.join(getDirname(import.meta.url), "../../nodes", type);
42
+ const configPath = path.join(nodePath, `${type}.config.json`);
43
+ const processPath = path.join(nodePath, `${type}.process.js`);
44
+
45
+ // Check if config file exists
46
+ if (fs.existsSync(configPath)) {
47
+ try {
48
+ // Convert path to file:// URL for dynamic import
49
+ const configFileUrl = `file://${path.resolve(configPath)}`;
50
+ const configModule = await import(configFileUrl, { with: { type: "json" } });
51
+
52
+ // Check if this is a macro node (no process file needed)
53
+ if (configModule.default.is_macro) {
54
+ nodes[type] = {
55
+ config: configModule.default,
56
+ process: null, // Macro nodes don't have process functions
57
+ };
58
+ } else if (fs.existsSync(processPath)) {
59
+ // Regular node - needs both config and process
60
+ const processFileUrl = `file://${path.resolve(processPath)}`;
61
+ const processModule = await import(processFileUrl);
62
+
63
+ nodes[type] = {
64
+ config: configModule.default,
65
+ process: processModule.default || processModule,
66
+ };
67
+ } else {
68
+ console.warn(`Missing process file for regular node ${type}:`, { processPath });
69
+ }
70
+ } catch (error) {
71
+ console.error(`Failed to load node ${type}:`, error);
72
+ }
73
+ } else {
74
+ console.warn(`Missing config file for node ${type}:`, { configPath });
75
+ }
76
+ });
77
+
78
+ // Wait for all nodes to load
79
+ await Promise.all(nodeLoadPromises);
80
+
81
+ // Load imports as node types
82
+ if (flow.imports && Array.isArray(flow.imports)) {
83
+ flow.imports.forEach(importDef => {
84
+ const nodeType = this.convertImportToNodeType(importDef);
85
+ // Store with both the import ID and the prefixed name for backward compatibility
86
+ nodes[importDef.id] = nodeType;
87
+ nodes[`imported-${importDef.id}`] = nodeType;
88
+ });
89
+ }
90
+
91
+ return nodes;
92
+ }
93
+
94
+ /**
95
+ * Load integrations
96
+ * @param {Object} config - Configuration object
97
+ * @param {Object} flow - Flow object (may contain knowledgeDbPath)
98
+ * @returns {Object} Map of integration names to their instances
99
+ */
100
+ export async function loadIntegrations(config, flow = null) {
101
+ const integrations = {};
102
+
103
+ // Load OpenRouter integration if API key is provided
104
+ if (config.keys?.openrouter) {
105
+ const openrouterPath = path.join(getDirname(import.meta.url), '../integrations', 'openrouter.js');
106
+ try {
107
+ const OpenRouterIntegration = await import(openrouterPath).then(module => module.default);
108
+ integrations.openrouter = new OpenRouterIntegration(config.keys.openrouter, {
109
+ baseURL: config.openrouterBaseURL || 'https://openrouter.ai/api/v1',
110
+ referer: 'https://workbench.zerowidth.ai',
111
+ title: 'Workbench by ZeroWidth'
112
+ });
113
+ } catch (error) {
114
+ throw error;
115
+ }
116
+ }
117
+
118
+ // Load knowledge base integration if available
119
+ const knowledgeBaseType = config.knowledgeBase?.type || 'sqlite';
120
+ const knowledgeBaseConfig = config.knowledgeBase || {};
121
+
122
+ if (flow?.knowledgeDbPath || knowledgeBaseConfig.enabled !== false) {
123
+
124
+ try {
125
+ // Load the appropriate knowledge base integration
126
+ const knowledgeBasePath = path.join(getDirname(import.meta.url), '../integrations', `${knowledgeBaseType}.js`);
127
+ const KnowledgeBaseIntegration = await import(knowledgeBasePath).then(module => module.default);
128
+
129
+ // Create integration instance with appropriate options
130
+ let integrationOptions = {
131
+ timeout: config.sqliteTimeout || 5000,
132
+ ...knowledgeBaseConfig.options
133
+ };
134
+
135
+ if (knowledgeBaseType === 'sqlite' && flow?.knowledgeDbPath) {
136
+ integrations.knowledgeBase = new KnowledgeBaseIntegration(flow.knowledgeDbPath, integrationOptions);
137
+
138
+ } else if (knowledgeBaseType !== 'sqlite') {
139
+ // For other knowledge base types, pass the config directly
140
+ integrations.knowledgeBase = new KnowledgeBaseIntegration(knowledgeBaseConfig, integrationOptions);
141
+
142
+ }
143
+
144
+ // Also keep the old sqlite key for backward compatibility
145
+ if (knowledgeBaseType === 'sqlite') {
146
+ integrations.sqlite = integrations.knowledgeBase;
147
+ }
148
+
149
+ } catch (error) {
150
+ console.warn(`[WARN] Failed to load ${knowledgeBaseType} knowledge base integration:`, error.message);
151
+ console.warn('[WARN] Error details:', error);
152
+ // Don't throw error - knowledge base is optional
153
+ }
154
+ }
155
+
156
+ // Initialize OAuth refresh manager if any OAuth keys are present
157
+ let oauthRefreshManager = null;
158
+ const hasOAuthKeys = Object.values(config.keys || {}).some(key => isOAuthKey(key));
159
+
160
+ if (hasOAuthKeys) {
161
+ oauthRefreshManager = new OAuthRefreshManager({
162
+ oauthExpirySkewMs: config.oauthExpirySkewMs,
163
+ oauthMaxRefreshRetries: config.oauthMaxRefreshRetries,
164
+ oauthRefreshTimeoutMs: config.oauthRefreshTimeoutMs,
165
+ onNodeUpdate: config.onNodeUpdate,
166
+ keys: config.keys // Pass reference for in-memory updates
167
+ });
168
+ }
169
+
170
+ // map of basic keys that share a integrationformat and implementation
171
+ const basicKeyIntegrations = ['firecrawl', 'newsdata_io', 'openai', 'google_custom_search', 'airtable', 'notion', 'sendgrid', 'slack', 'supabase', 'pinecone', 'twilio', 'github', 'linear', 'stripe', 'resend', 'jira', 'confluence'];
172
+
173
+ // Load basic integrations in parallel
174
+ await Promise.all(basicKeyIntegrations.map(async integration => {
175
+ if (config.keys?.[integration]) {
176
+ const integrationPath = path.join(getDirname(import.meta.url), '../integrations', `${integration}.js`);
177
+ try {
178
+ const Integration = await import(integrationPath).then(module => module.default);
179
+ integrations[integration] = new Integration(config.keys[integration]);
180
+ } catch (error) {
181
+ console.warn(`[WARN] Failed to load ${integration} integration:`, error.message);
182
+ // Don't throw error - integration is optional
183
+ }
184
+ }
185
+ }));
186
+
187
+ // Load OAuth-based integrations
188
+ // HubSpot integration
189
+ if (config.keys?.hubspot) {
190
+ const hubspotPath = path.join(getDirname(import.meta.url), '../integrations', 'hubspot.js');
191
+ try {
192
+ const HubSpotIntegration = await import(hubspotPath).then(module => module.default);
193
+ const hubspotIntegration = new HubSpotIntegration(config.keys.hubspot);
194
+
195
+ // Set refresh manager if available
196
+ if (oauthRefreshManager) {
197
+ hubspotIntegration.setRefreshManager(oauthRefreshManager);
198
+ }
199
+
200
+ integrations.hubspot = hubspotIntegration;
201
+ } catch (error) {
202
+ console.warn(`[WARN] Failed to load HubSpot integration:`, error.message);
203
+ // Don't throw error - integration is optional
204
+ }
205
+ }
206
+
207
+ // Store refresh manager in integrations for access by nodes
208
+ if (oauthRefreshManager) {
209
+ integrations._oauthRefreshManager = oauthRefreshManager;
210
+ }
211
+
212
+ // Set engine config reference on all integration instances
213
+ // This allows integrations to emit onAPICall events without signature changes
214
+ for (const [name, instance] of Object.entries(integrations)) {
215
+ if (instance && typeof instance === 'object' && !name.startsWith('_')) {
216
+ instance._engineConfig = config;
217
+ }
218
+ }
219
+
220
+ return integrations;
221
+ }
222
+
223
+ /**
224
+ * Load a .zv1 file and extract its contents
225
+ * .zv1 files are ZIP archives containing orchestration.json and optional imports folder
226
+ *
227
+ * @param {string} filePath - Path to the .zv1 file
228
+ * @returns {Promise<Object>} Extracted flow object with orchestration.json and imports
229
+ * @throws {Error} If file doesn't exist, is not a valid ZIP, or missing orchestration.json
230
+ */
231
+ export async function loadFlowArchive(filePath) {
232
+
233
+ // Validate file exists
234
+ if (!fs.existsSync(filePath)) {
235
+ throw new Error(`Zv1 file not found: ${filePath}`);
236
+ }
237
+
238
+ // Validate file extension. `.zwf` is the current extension; `.zv1` is
239
+ // the legacy name for the identical zip format — still accepted.
240
+ if (!filePath.endsWith('.zwf') && !filePath.endsWith('.zv1')) {
241
+ throw new Error(`Invalid file extension. Expected .zwf or .zv1, got: ${path.extname(filePath)}`);
242
+ }
243
+
244
+ try {
245
+ // Extract ZIP contents
246
+ const zip = new AdmZip(filePath);
247
+ const zipEntries = zip.getEntries();
248
+
249
+ // Find orchestration.json (required)
250
+ const orchestrationEntry = zipEntries.find(entry =>
251
+ entry.entryName === 'orchestration.json' ||
252
+ entry.entryName === './orchestration.json'
253
+ );
254
+
255
+ if (!orchestrationEntry) {
256
+ throw new Error('Missing required orchestration.json file in .zv1 archive');
257
+ }
258
+
259
+ // Parse orchestration.json
260
+ const orchestrationContent = orchestrationEntry.getData().toString('utf8');
261
+ let orchestrationData;
262
+ try {
263
+ orchestrationData = JSON.parse(orchestrationContent);
264
+ } catch (parseError) {
265
+ throw new Error(`Invalid JSON in orchestration.json: ${parseError.message}`);
266
+ }
267
+
268
+ // Validate orchestration.json structure
269
+ if (!orchestrationData.nodes || !Array.isArray(orchestrationData.nodes)) {
270
+ throw new Error('orchestration.json must contain a "nodes" array');
271
+ }
272
+ if (!orchestrationData.links || !Array.isArray(orchestrationData.links)) {
273
+ throw new Error('orchestration.json must contain a "links" array');
274
+ }
275
+
276
+ // Handle imports - support both legacy array format and new object format
277
+ let imports = [];
278
+
279
+ if (orchestrationData.imports) {
280
+ if (Array.isArray(orchestrationData.imports)) {
281
+ // Legacy format: imports as array (backward compatibility)
282
+ imports = orchestrationData.imports;
283
+ } else if (typeof orchestrationData.imports === 'object') {
284
+ // New format: imports as object { "import-id": "snapshot" }
285
+ imports = await loadFlowImportsFromObject(orchestrationData.imports, zipEntries);
286
+ }
287
+ }
288
+
289
+ // Look for knowledge.db file (optional)
290
+ let knowledgeDbPath = null;
291
+ const knowledgeDbEntry = zipEntries.find(entry =>
292
+ entry.entryName === 'knowledge.db' ||
293
+ entry.entryName === './knowledge.db'
294
+ );
295
+
296
+
297
+
298
+ if (knowledgeDbEntry) {
299
+ // Extract knowledge.db to a temporary location
300
+ const tempDir = path.join(process.cwd(), '.temp');
301
+ if (!fs.existsSync(tempDir)) {
302
+ fs.mkdirSync(tempDir, { recursive: true });
303
+ }
304
+
305
+ knowledgeDbPath = path.join(tempDir, `knowledge_${orchestrationData.id}.db`);
306
+
307
+ // Use file locking to prevent conflicts between multiple engine instances
308
+ const lockPath = `${knowledgeDbPath}.lock`;
309
+ const maxRetries = 10;
310
+ const retryDelay = 100; // ms
311
+
312
+ let retries = 0;
313
+ while (retries < maxRetries) {
314
+ try {
315
+ // Try to create lock file atomically
316
+ fs.writeFileSync(lockPath, process.pid.toString(), { flag: 'wx' });
317
+ break; // Success, we got the lock
318
+ } catch (error) {
319
+ if (error.code === 'EEXIST') {
320
+ // Lock file exists, wait and retry
321
+ retries++;
322
+ if (retries < maxRetries) {
323
+ await new Promise(resolve => setTimeout(resolve, retryDelay));
324
+ continue;
325
+ } else {
326
+ throw new Error(`Could not acquire lock for knowledge database after ${maxRetries} retries`);
327
+ }
328
+ } else {
329
+ throw error;
330
+ }
331
+ }
332
+ }
333
+
334
+ try {
335
+ fs.writeFileSync(knowledgeDbPath, knowledgeDbEntry.getData());
336
+ } finally {
337
+ // Always release the lock
338
+ try {
339
+ fs.unlinkSync(lockPath);
340
+ } catch (error) {
341
+ // Ignore lock cleanup errors
342
+ }
343
+ }
344
+
345
+ }
346
+
347
+ // Return unified flow structure
348
+ return {
349
+ ...orchestrationData,
350
+ imports: imports,
351
+ knowledgeDbPath: knowledgeDbPath
352
+ };
353
+
354
+ } catch (error) {
355
+ if (error instanceof Error) {
356
+ throw error;
357
+ }
358
+ throw new Error(`Failed to load .zv1 file: ${error.message}`);
359
+ }
360
+ }
361
+
362
+ /**
363
+ * Load imports from the new imports object format
364
+ * Maps import IDs to their corresponding folders and loads them
365
+ *
366
+ * @param {Object} importsObject - Object mapping import IDs to snapshots
367
+ * @param {Array<AdmZip.IZipEntry>} zipEntries - All ZIP entries
368
+ * @returns {Promise<Array>} Array of loaded import definitions
369
+ * @throws {Error} If import folders cannot be found or loaded
370
+ */
371
+ async function loadFlowImportsFromObject(importsObject, zipEntries) {
372
+ const imports = [];
373
+
374
+ // Find all import folder entries
375
+ const importEntries = zipEntries.filter(entry =>
376
+ entry.entryName.startsWith('imports/') &&
377
+ entry.entryName !== 'imports/' &&
378
+ !entry.entryName.endsWith('/')
379
+ );
380
+
381
+ // Group import entries by folder name
382
+ const importFolders = new Map();
383
+ for (const entry of importEntries) {
384
+ const pathParts = entry.entryName.split('/');
385
+ if (pathParts.length >= 2) {
386
+ const folderName = pathParts[1]; // imports/folderName/...
387
+ if (!importFolders.has(folderName)) {
388
+ importFolders.set(folderName, new Map());
389
+ }
390
+ const relativePath = pathParts.slice(2).join('/');
391
+ importFolders.get(folderName).set(relativePath, entry);
392
+ }
393
+ }
394
+
395
+ // Load each import based on the imports object
396
+ for (const [importId, snapshot] of Object.entries(importsObject)) {
397
+ try {
398
+ // Find the folder that matches this import ID and snapshot
399
+ const folderName = findImportFolder(importId, snapshot, importFolders);
400
+
401
+ if (!folderName) {
402
+ throw new Error(`Import '${importId}' with snapshot '${snapshot}' not found`);
403
+ }
404
+
405
+ const folderEntries = importFolders.get(folderName);
406
+ const importData = await loadFlowImportFolder(folderName, folderEntries);
407
+
408
+ // Add the import ID for reference
409
+ importData.importId = importId;
410
+ importData.requestedSnapshot = snapshot;
411
+
412
+ imports.push(importData);
413
+
414
+ } catch (importError) {
415
+ throw new Error(`Failed to load import '${importId}' (${snapshot}): ${importError.message}`);
416
+ }
417
+ }
418
+
419
+ return imports;
420
+ }
421
+
422
+ /**
423
+ * Find the import folder that matches the given import ID and version range
424
+ *
425
+ * @param {string} importId - The import ID (e.g., auto-generated UUID)
426
+ * @param {string} versionRange - The requested version range (e.g., "^1.2.3", "~1.2.3", "1.2.3", "latest")
427
+ * @param {Map<string, Map>} importFolders - Available import folders
428
+ * @returns {string|null} The matching folder name or null if not found
429
+ */
430
+ function findImportFolder(importId, versionRange, importFolders) {
431
+ // With simplified folder naming, we just look for the import ID directly
432
+ // Version information is stored in the import's orchestration.json metadata
433
+
434
+ // Strategy 1: Look for exact match with import ID
435
+ if (importFolders.has(importId)) {
436
+ return importId;
437
+ }
438
+
439
+ // Strategy 2: Look for any folder that contains this import ID anywhere in the name
440
+ for (const folderName of importFolders.keys()) {
441
+ if (folderName.includes(importId)) {
442
+ return folderName;
443
+ }
444
+ }
445
+
446
+ return null;
447
+ }
448
+
449
+
450
+ /**
451
+ * Load an import folder from a .zv1 file
452
+ * Each import folder contains its own orchestration.json and optional nested imports
453
+ *
454
+ * @param {string} folderName - Name of the import folder (e.g., "my-file.latest.135235g24s34")
455
+ * @param {Map<string, AdmZip.IZipEntry>} folderEntries - Map of relative paths to ZIP entries
456
+ * @returns {Promise<Object>} Import definition object
457
+ * @throws {Error} If orchestration.json is missing or invalid
458
+ */
459
+ async function loadFlowImportFolder(folderName, folderEntries) {
460
+ // Find orchestration.json in this import folder
461
+ const orchestrationEntry = folderEntries.get('orchestration.json');
462
+ if (!orchestrationEntry) {
463
+ throw new Error(`Missing orchestration.json in import folder '${folderName}'`);
464
+ }
465
+
466
+ // Parse orchestration.json
467
+ const orchestrationContent = orchestrationEntry.getData().toString('utf8');
468
+ let orchestrationData;
469
+ try {
470
+ orchestrationData = JSON.parse(orchestrationContent);
471
+ } catch (parseError) {
472
+ throw new Error(`Invalid JSON in import folder '${folderName}/orchestration.json': ${parseError.message}`);
473
+ }
474
+
475
+ // Validate orchestration.json structure
476
+ if (!orchestrationData.nodes || !Array.isArray(orchestrationData.nodes)) {
477
+ throw new Error(`Import folder '${folderName}' orchestration.json must contain a "nodes" array`);
478
+ }
479
+ if (!orchestrationData.links || !Array.isArray(orchestrationData.links)) {
480
+ throw new Error(`Import folder '${folderName}' orchestration.json must contain a "links" array`);
481
+ }
482
+
483
+ // Parse folder name - now just the import ID
484
+ const importId = orchestrationData.id;
485
+
486
+ // New simplified format: just importId
487
+ // Generate a unique ID from the import ID for backward compatibility
488
+ // uniqueId = importId.replace(/[^a-zA-Z0-9]/g, '').substring(0, 8);
489
+ let displayName = orchestrationData.metadata?.display_name || importId; // Use import ID as display name
490
+ let snapshot = orchestrationData.metadata?.snapshot || 'unknown'; // Get version from metadata
491
+
492
+ // Look for knowledge.db file in this import folder (optional)
493
+ let knowledgeDbPath = null;
494
+ const knowledgeDbEntry = folderEntries.get('knowledge.db');
495
+ if (knowledgeDbEntry) {
496
+ // Extract knowledge.db to a temporary location
497
+ const tempDir = path.join(process.cwd(), '.temp');
498
+ if (!fs.existsSync(tempDir)) {
499
+ fs.mkdirSync(tempDir, { recursive: true });
500
+ }
501
+
502
+ knowledgeDbPath = path.join(tempDir, `knowledge_${importId}.db`);
503
+ fs.writeFileSync(knowledgeDbPath, knowledgeDbEntry.getData());
504
+ }
505
+
506
+ // Look for nested imports in this folder
507
+ const nestedImportEntries = new Map();
508
+ for (const [relativePath, entry] of folderEntries) {
509
+ if (relativePath.startsWith('imports/')) {
510
+ const nestedPath = relativePath.substring(8); // Remove 'imports/' prefix
511
+ nestedImportEntries.set(nestedPath, entry);
512
+ }
513
+ }
514
+
515
+ // Load nested imports if they exist
516
+ let nestedImports = [];
517
+ if (nestedImportEntries.size > 0) {
518
+ // Group nested import entries by folder name
519
+ const nestedImportFolders = new Map();
520
+ for (const [nestedPath, entry] of nestedImportEntries) {
521
+ const pathParts = nestedPath.split('/');
522
+ if (pathParts.length >= 1) {
523
+ const nestedFolderName = pathParts[0];
524
+ if (!nestedImportFolders.has(nestedFolderName)) {
525
+ nestedImportFolders.set(nestedFolderName, new Map());
526
+ }
527
+ const relativePath = pathParts.slice(1).join('/');
528
+ nestedImportFolders.get(nestedFolderName).set(relativePath, entry);
529
+ }
530
+ }
531
+
532
+ // Load each nested import folder
533
+ for (const [nestedFolderName, nestedFolderEntries] of nestedImportFolders) {
534
+ try {
535
+ const nestedImportData = await loadFlowImportFolder(nestedFolderName, nestedFolderEntries);
536
+ nestedImports.push(nestedImportData);
537
+ } catch (nestedError) {
538
+ throw new Error(`Failed to load nested import '${nestedFolderName}' in '${folderName}': ${nestedError.message}`);
539
+ }
540
+ }
541
+ }
542
+
543
+ // Return import definition with metadata
544
+ return {
545
+ id: `imported-${importId}`,
546
+ display_name: displayName,
547
+ snapshot: snapshot,
548
+ unique_id: importId,
549
+ folder_name: folderName,
550
+ nodes: orchestrationData.nodes,
551
+ links: orchestrationData.links,
552
+ imports: nestedImports,
553
+ knowledgeDbPath: knowledgeDbPath,
554
+ // Preserve any additional metadata from orchestration.json
555
+ ...orchestrationData
556
+ };
557
+ }
558
+
559
+ /**
560
+ * Convert legacy imports array to the new unified format
561
+ * Legacy format has imports as an array of full orchestration objects
562
+ * New format has imports as an array of import definitions with metadata
563
+ *
564
+ * @param {Array<Object>} legacyImports - Array of legacy import objects
565
+ * @returns {Array<Object>} Array of converted import definitions
566
+ */
567
+ export function convertLegacyImports(legacyImports) {
568
+ if (!Array.isArray(legacyImports)) {
569
+ return [];
570
+ }
571
+
572
+ return legacyImports.map((legacyImport, index) => {
573
+ // Generate a unique ID if not present
574
+ const uniqueId = legacyImport.id || `legacy-import-${index}-${Date.now()}`;
575
+
576
+ // Extract display name from legacy import
577
+ const displayName = legacyImport.display_name || legacyImport.name || `Legacy Import ${index + 1}`;
578
+
579
+ // Create snapshot identifier (legacy imports don't have versioning)
580
+ const snapshot = legacyImport.snapshot || 'legacy';
581
+
582
+ return {
583
+ id: `imported-${uniqueId}`,
584
+ display_name: displayName,
585
+ snapshot: snapshot,
586
+ unique_id: uniqueId,
587
+ folder_name: `${displayName}.${snapshot}.${uniqueId}`,
588
+ nodes: legacyImport.nodes || [],
589
+ links: legacyImport.links || [],
590
+ imports: convertLegacyImports(legacyImport.imports || []), // Recursively convert nested imports
591
+ // Preserve any additional metadata
592
+ ...legacyImport
593
+ };
594
+ });
595
+ }
596
+
597
+ /**
598
+ * Detect the input format and load accordingly
599
+ * Supports legacy JSON files, new .zv1 files, and raw ZIP data in memory
600
+ *
601
+ * @param {string|Object|Buffer} input - File path (string), flow object (Object), or ZIP data (Buffer)
602
+ * @returns {Promise<Object>} Unified flow object ready for engine initialization
603
+ * @throws {Error} If input format is unsupported or file cannot be loaded
604
+ */
605
+ export async function detectAndLoadFlow(input) {
606
+
607
+ // If input is already an object, it's either a legacy flow or already processed
608
+ if (typeof input === 'object' && input !== null && !Buffer.isBuffer(input)) {
609
+
610
+ // Check if it's already in the new format (has imports array)
611
+ if (Array.isArray(input.imports)) {
612
+ return input;
613
+ }
614
+
615
+ // Check if it's a legacy flow with imports array
616
+ if (Array.isArray(input.imports)) {
617
+ return {
618
+ ...input,
619
+ imports: convertLegacyImports(input.imports)
620
+ };
621
+ }
622
+
623
+ // Legacy flow without imports - return as-is
624
+ return input;
625
+ }
626
+
627
+ // If input is a Buffer, treat it as raw ZIP data (.zv1 file in memory)
628
+ if (Buffer.isBuffer(input)) {
629
+ return await loadFlowFromBuffer(input);
630
+ }
631
+
632
+ // Input is a string - treat as file path
633
+ if (typeof input === 'string') {
634
+ const filePath = path.resolve(input);
635
+
636
+ // Check file extension to determine format (.zwf current, .zv1 legacy —
637
+ // identical zip archive either way).
638
+ if (filePath.endsWith('.zwf') || filePath.endsWith('.zv1')) {
639
+ return await loadFlowArchive(filePath);
640
+ } else if (filePath.endsWith('.json')) {
641
+ // Load legacy JSON file
642
+ const fileContent = fs.readFileSync(filePath, 'utf8');
643
+ const flowData = JSON.parse(fileContent);
644
+
645
+ // Convert legacy imports if present
646
+ if (Array.isArray(flowData.imports)) {
647
+ flowData.imports = convertLegacyImports(flowData.imports);
648
+ }
649
+
650
+ return flowData;
651
+ } else {
652
+ throw new Error(`Unsupported file format. Expected .zv1 or .json, got: ${path.extname(filePath)}`);
653
+ }
654
+ }
655
+
656
+ throw new Error('Invalid input type. Expected file path (string), flow object, or ZIP data (Buffer).');
657
+ }
658
+
659
+ /**
660
+ * Load a .zv1 file from raw ZIP data in memory
661
+ * This allows loading .zv1 files without writing them to disk first
662
+ *
663
+ * @param {Buffer} zipBuffer - Raw ZIP data as Buffer
664
+ * @returns {Promise<Object>} Extracted flow object with orchestration.json and imports
665
+ * @throws {Error} If buffer is not valid ZIP data or missing orchestration.json
666
+ */
667
+ export async function loadFlowFromBuffer(zipBuffer) {
668
+ // Validate that we have a Buffer
669
+ if (!Buffer.isBuffer(zipBuffer)) {
670
+ throw new Error('Input must be a Buffer containing ZIP data');
671
+ }
672
+
673
+ // Validate ZIP file signature (PK header)
674
+ if (zipBuffer.length < 4 || zipBuffer[0] !== 0x50 || zipBuffer[1] !== 0x4B) {
675
+ throw new Error('Invalid ZIP data: Missing ZIP file signature');
676
+ }
677
+
678
+ try {
679
+ // Create AdmZip instance from buffer
680
+ const zip = new AdmZip(zipBuffer);
681
+ const zipEntries = zip.getEntries();
682
+
683
+ // Find orchestration.json (required)
684
+ const orchestrationEntry = zipEntries.find(entry =>
685
+ entry.entryName === 'orchestration.json' ||
686
+ entry.entryName === './orchestration.json'
687
+ );
688
+
689
+ if (!orchestrationEntry) {
690
+ throw new Error('Missing required orchestration.json file in .zv1 archive');
691
+ }
692
+
693
+ // Parse orchestration.json
694
+ const orchestrationContent = orchestrationEntry.getData().toString('utf8');
695
+ let orchestrationData;
696
+ try {
697
+ orchestrationData = JSON.parse(orchestrationContent);
698
+ } catch (parseError) {
699
+ throw new Error(`Invalid JSON in orchestration.json: ${parseError.message}`);
700
+ }
701
+
702
+ // Validate orchestration.json structure
703
+ if (!orchestrationData.nodes || !Array.isArray(orchestrationData.nodes)) {
704
+ throw new Error('orchestration.json must contain a "nodes" array');
705
+ }
706
+ if (!orchestrationData.links || !Array.isArray(orchestrationData.links)) {
707
+ throw new Error('orchestration.json must contain a "links" array');
708
+ }
709
+
710
+ // Handle imports - support both legacy array format and new object format
711
+ let imports = [];
712
+
713
+ if (orchestrationData.imports) {
714
+ if (Array.isArray(orchestrationData.imports)) {
715
+ // Legacy format: imports as array (backward compatibility)
716
+ imports = orchestrationData.imports;
717
+ } else if (typeof orchestrationData.imports === 'object') {
718
+ // New format: imports as object { "import-id": "snapshot" }
719
+ imports = await loadFlowImportsFromObject(orchestrationData.imports, zipEntries);
720
+ }
721
+ }
722
+
723
+ // Look for knowledge.db file (optional)
724
+ let knowledgeDbPath = null;
725
+ const knowledgeDbEntry = zipEntries.find(entry =>
726
+ entry.entryName === 'knowledge.db' ||
727
+ entry.entryName === './knowledge.db'
728
+ );
729
+
730
+
731
+ if (knowledgeDbEntry) {
732
+ // Extract knowledge.db to a temporary location
733
+ const tempDir = path.join(process.cwd(), '.temp');
734
+ if (!fs.existsSync(tempDir)) {
735
+ fs.mkdirSync(tempDir, { recursive: true });
736
+ }
737
+
738
+ knowledgeDbPath = path.join(tempDir, `knowledge_${orchestrationData.id}.db`);
739
+ fs.writeFileSync(knowledgeDbPath, knowledgeDbEntry.getData());
740
+ }
741
+
742
+ // Return unified flow structure
743
+ return {
744
+ ...orchestrationData,
745
+ imports: imports,
746
+ knowledgeDbPath: knowledgeDbPath
747
+ };
748
+
749
+ } catch (error) {
750
+ if (error instanceof Error) {
751
+ throw error;
752
+ }
753
+ throw new Error(`Failed to load .zv1 from buffer: ${error.message}`);
754
+ }
755
+ }
756
+
757
+ /**
758
+ * Expand macros in a flow by replacing macro nodes with their internal flows
759
+ * @param {Object} flow - The flow containing nodes and links
760
+ * @param {Object} nodeConfigs - Map of node types to their configurations
761
+ * @returns {Object} Flow with macros expanded into regular nodes
762
+ */
763
+ export function expandMacrosInFlow(flow, nodeConfigs = {}) {
764
+ const expandedNodes = [];
765
+ const expandedLinks = [];
766
+
767
+ // First, collect all macro node IDs that will be expanded
768
+ const macroNodeIds = new Set();
769
+ for (const node of flow.nodes) {
770
+ // Check if this node type is a macro by looking at its config
771
+ const nodeConfig = nodeConfigs[node.type];
772
+ if (nodeConfig && nodeConfig.is_macro) {
773
+ macroNodeIds.add(node.id);
774
+ }
775
+ }
776
+
777
+ // Filter out links that connect to/from macro nodes (they'll be replaced)
778
+ const nonMacroLinks = flow.links.filter(link =>
779
+ !macroNodeIds.has(link.from.node_id) && !macroNodeIds.has(link.to.node_id)
780
+ );
781
+
782
+ // Process each node
783
+ for (const node of flow.nodes) {
784
+ const nodeConfig = nodeConfigs[node.type];
785
+ if (nodeConfig && nodeConfig.is_macro) {
786
+ // Expand the macro
787
+ const expanded = expandMacro(node, flow, nodeConfig);
788
+ expandedNodes.push(...expanded.nodes);
789
+ expandedLinks.push(...expanded.links);
790
+ } else {
791
+ expandedNodes.push(node);
792
+ }
793
+ }
794
+
795
+ return {
796
+ ...flow,
797
+ nodes: expandedNodes,
798
+ links: [...nonMacroLinks, ...expandedLinks]
799
+ };
800
+ }
801
+
802
+ /**
803
+ * Expand a macro node into its internal flow
804
+ * @param {Object} macroNode - The macro node from the flow
805
+ * @param {Object} flow - The parent flow containing the macro
806
+ * @param {Object} nodeConfig - The macro node's configuration
807
+ * @returns {Object} Expanded flow with nodes and links
808
+ */
809
+ function expandMacro(macroNode, flow, nodeConfig) {
810
+ const { macro_flow, inputs, outputs } = nodeConfig;
811
+
812
+ // Create internal nodes with unique IDs and macro metadata
813
+ const internalNodes = macro_flow.nodes.map(node => ({
814
+ ...node,
815
+ id: `${macroNode.id}_${node.id}`, // e.g., "read-website_scrape"
816
+ // Add macro metadata
817
+ macroMetadata: {
818
+ originalMacroId: macroNode.id, // "read-website"
819
+ originalMacroType: macroNode.type, // "read-website"
820
+ originalNodeId: node.id, // "scrape"
821
+ isMacroInternal: true
822
+ }
823
+ }));
824
+
825
+ // Process internal links to use new node IDs
826
+ const internalLinks = macro_flow.links.map(link => ({
827
+ ...link,
828
+ from: {
829
+ ...link.from,
830
+ node_id: `${macroNode.id}_${link.from.node_id}`
831
+ },
832
+ to: {
833
+ ...link.to,
834
+ node_id: `${macroNode.id}_${link.to.node_id}`
835
+ }
836
+ }));
837
+
838
+ // Create input links: connect external nodes to internal nodes
839
+ const inputLinks = [];
840
+ for (const input of inputs) {
841
+ const connectsTo = input.connects_to; // e.g., "scrape.url"
842
+ if (!connectsTo) continue;
843
+
844
+ const [targetNodeId, targetPort] = connectsTo.split('.');
845
+ if (!targetNodeId || !targetPort) continue;
846
+
847
+ // Find links in the parent flow that connect TO this macro node's input port
848
+ const incomingLinks = flow.links.filter(link =>
849
+ link.to.node_id === macroNode.id && link.to.port_name === input.name
850
+ );
851
+
852
+ // Create new links from external nodes to internal nodes
853
+ for (const incomingLink of incomingLinks) {
854
+ inputLinks.push({
855
+ from: {
856
+ node_id: incomingLink.from.node_id,
857
+ port_name: incomingLink.from.port_name
858
+ },
859
+ to: {
860
+ node_id: `${macroNode.id}_${targetNodeId}`,
861
+ port_name: targetPort
862
+ }
863
+ });
864
+ }
865
+ }
866
+
867
+ // Create output links: connect internal nodes to external nodes
868
+ const outputLinks = [];
869
+ for (const output of outputs) {
870
+ const connectsTo = output.connects_to; // e.g., "scrape.markdown"
871
+ if (!connectsTo) continue;
872
+
873
+ const [sourceNodeId, sourcePort] = connectsTo.split('.');
874
+ if (!sourceNodeId || !sourcePort) continue;
875
+
876
+ // Find links in the parent flow that connect FROM this macro node's output port
877
+ const outgoingLinks = flow.links.filter(link =>
878
+ link.from.node_id === macroNode.id && link.from.port_name === output.name
879
+ );
880
+
881
+ // Create new links from internal nodes to external nodes
882
+ for (const outgoingLink of outgoingLinks) {
883
+ outputLinks.push({
884
+ from: {
885
+ node_id: `${macroNode.id}_${sourceNodeId}`,
886
+ port_name: sourcePort
887
+ },
888
+ to: {
889
+ node_id: outgoingLink.to.node_id,
890
+ port_name: outgoingLink.to.port_name
891
+ }
892
+ });
893
+ }
894
+ }
895
+
896
+ return {
897
+ nodes: internalNodes,
898
+ links: [...inputLinks, ...internalLinks, ...outputLinks]
899
+ };
900
+ }