@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.
- package/LICENSE +201 -0
- package/README.md +799 -0
- package/nodes/absolute/absolute.config.json +24 -0
- package/nodes/absolute/absolute.process.js +7 -0
- package/nodes/absolute/absolute.tests.json +38 -0
- package/nodes/absolute-value/absolute-value.config.json +24 -0
- package/nodes/absolute-value/absolute-value.process.js +5 -0
- package/nodes/absolute-value/absolute-value.tests.json +17 -0
- package/nodes/add/add.config.json +31 -0
- package/nodes/add/add.process.js +9 -0
- package/nodes/add/add.tests.json +41 -0
- package/nodes/airtable-create-record/airtable-create-record.config.json +64 -0
- package/nodes/airtable-create-record/airtable-create-record.process.js +44 -0
- package/nodes/airtable-create-record/airtable-create-record.tests.json +50 -0
- package/nodes/airtable-delete-record/airtable-delete-record.config.json +44 -0
- package/nodes/airtable-delete-record/airtable-delete-record.process.js +34 -0
- package/nodes/airtable-delete-record/airtable-delete-record.tests.json +23 -0
- package/nodes/airtable-get-record/airtable-get-record.config.json +56 -0
- package/nodes/airtable-get-record/airtable-get-record.process.js +36 -0
- package/nodes/airtable-get-record/airtable-get-record.tests.json +25 -0
- package/nodes/airtable-list-records/airtable-list-records.config.json +87 -0
- package/nodes/airtable-list-records/airtable-list-records.process.js +52 -0
- package/nodes/airtable-list-records/airtable-list-records.tests.json +46 -0
- package/nodes/airtable-update-record/airtable-update-record.config.json +71 -0
- package/nodes/airtable-update-record/airtable-update-record.process.js +48 -0
- package/nodes/airtable-update-record/airtable-update-record.tests.json +44 -0
- package/nodes/and-gate/and-gate.config.json +30 -0
- package/nodes/and-gate/and-gate.process.js +10 -0
- package/nodes/and-gate/and-gate.tests.json +22 -0
- package/nodes/anthropic-claude-3-5-haiku/anthropic-claude-3-5-haiku.config.json +155 -0
- package/nodes/anthropic-claude-3-5-haiku/anthropic-claude-3-5-haiku.process.js +136 -0
- package/nodes/anthropic-claude-3-5-haiku/anthropic-claude-3-5-haiku.tests.json +80 -0
- package/nodes/anthropic-claude-3-haiku/anthropic-claude-3-haiku.config.json +155 -0
- package/nodes/anthropic-claude-3-haiku/anthropic-claude-3-haiku.process.js +136 -0
- package/nodes/anthropic-claude-3-haiku/anthropic-claude-3-haiku.tests.json +80 -0
- package/nodes/anthropic-claude-haiku-4-5/anthropic-claude-haiku-4-5.config.json +186 -0
- package/nodes/anthropic-claude-haiku-4-5/anthropic-claude-haiku-4-5.process.js +138 -0
- package/nodes/anthropic-claude-haiku-4-5/anthropic-claude-haiku-4-5.tests.json +80 -0
- package/nodes/anthropic-claude-opus-4/anthropic-claude-opus-4.config.json +176 -0
- package/nodes/anthropic-claude-opus-4/anthropic-claude-opus-4.process.js +138 -0
- package/nodes/anthropic-claude-opus-4/anthropic-claude-opus-4.tests.json +80 -0
- package/nodes/anthropic-claude-opus-4-1/anthropic-claude-opus-4-1.config.json +186 -0
- package/nodes/anthropic-claude-opus-4-1/anthropic-claude-opus-4-1.process.js +138 -0
- package/nodes/anthropic-claude-opus-4-1/anthropic-claude-opus-4-1.tests.json +80 -0
- package/nodes/anthropic-claude-opus-4-5/anthropic-claude-opus-4-5.config.json +179 -0
- package/nodes/anthropic-claude-opus-4-5/anthropic-claude-opus-4-5.process.js +138 -0
- package/nodes/anthropic-claude-opus-4-5/anthropic-claude-opus-4-5.tests.json +80 -0
- package/nodes/anthropic-claude-opus-4-6/anthropic-claude-opus-4-6.config.json +188 -0
- package/nodes/anthropic-claude-opus-4-6/anthropic-claude-opus-4-6.process.js +138 -0
- package/nodes/anthropic-claude-opus-4-6/anthropic-claude-opus-4-6.tests.json +80 -0
- package/nodes/anthropic-claude-opus-4-6-fast/anthropic-claude-opus-4-6-fast.config.json +186 -0
- package/nodes/anthropic-claude-opus-4-6-fast/anthropic-claude-opus-4-6-fast.process.js +138 -0
- package/nodes/anthropic-claude-opus-4-6-fast/anthropic-claude-opus-4-6-fast.tests.json +80 -0
- package/nodes/anthropic-claude-opus-4-7/anthropic-claude-opus-4-7.config.json +170 -0
- package/nodes/anthropic-claude-opus-4-7/anthropic-claude-opus-4-7.process.js +138 -0
- package/nodes/anthropic-claude-opus-4-7/anthropic-claude-opus-4-7.tests.json +57 -0
- package/nodes/anthropic-claude-opus-4-7-fast/anthropic-claude-opus-4-7-fast.config.json +170 -0
- package/nodes/anthropic-claude-opus-4-7-fast/anthropic-claude-opus-4-7-fast.process.js +138 -0
- package/nodes/anthropic-claude-opus-4-7-fast/anthropic-claude-opus-4-7-fast.tests.json +57 -0
- package/nodes/anthropic-claude-opus-4-8/anthropic-claude-opus-4-8.config.json +170 -0
- package/nodes/anthropic-claude-opus-4-8/anthropic-claude-opus-4-8.process.js +138 -0
- package/nodes/anthropic-claude-opus-4-8/anthropic-claude-opus-4-8.tests.json +57 -0
- package/nodes/anthropic-claude-opus-4-8-fast/anthropic-claude-opus-4-8-fast.config.json +170 -0
- package/nodes/anthropic-claude-opus-4-8-fast/anthropic-claude-opus-4-8-fast.process.js +138 -0
- package/nodes/anthropic-claude-opus-4-8-fast/anthropic-claude-opus-4-8-fast.tests.json +57 -0
- package/nodes/anthropic-claude-sonnet-4/anthropic-claude-sonnet-4.config.json +177 -0
- package/nodes/anthropic-claude-sonnet-4/anthropic-claude-sonnet-4.process.js +138 -0
- package/nodes/anthropic-claude-sonnet-4/anthropic-claude-sonnet-4.tests.json +80 -0
- package/nodes/anthropic-claude-sonnet-4-5/anthropic-claude-sonnet-4-5.config.json +186 -0
- package/nodes/anthropic-claude-sonnet-4-5/anthropic-claude-sonnet-4-5.process.js +138 -0
- package/nodes/anthropic-claude-sonnet-4-5/anthropic-claude-sonnet-4-5.tests.json +80 -0
- package/nodes/anthropic-claude-sonnet-4-6/anthropic-claude-sonnet-4-6.config.json +188 -0
- package/nodes/anthropic-claude-sonnet-4-6/anthropic-claude-sonnet-4-6.process.js +138 -0
- package/nodes/anthropic-claude-sonnet-4-6/anthropic-claude-sonnet-4-6.tests.json +80 -0
- package/nodes/array-builder/array-builder.config.json +27 -0
- package/nodes/array-builder/array-builder.process.js +12 -0
- package/nodes/array-builder/array-builder.tests.json +20 -0
- package/nodes/array-filter/array-filter.config.json +47 -0
- package/nodes/array-filter/array-filter.process.js +58 -0
- package/nodes/array-filter/array-filter.tests.json +67 -0
- package/nodes/array-find/array-find.config.json +66 -0
- package/nodes/array-find/array-find.process.js +61 -0
- package/nodes/array-find/array-find.tests.json +83 -0
- package/nodes/array-flatten/array-flatten.config.json +39 -0
- package/nodes/array-flatten/array-flatten.process.js +67 -0
- package/nodes/array-flatten/array-flatten.tests.json +79 -0
- package/nodes/array-index-selector/array-index-selector.config.json +36 -0
- package/nodes/array-index-selector/array-index-selector.process.js +20 -0
- package/nodes/array-index-selector/array-index-selector.tests.json +37 -0
- package/nodes/array-join/array-join.config.json +30 -0
- package/nodes/array-join/array-join.process.js +9 -0
- package/nodes/array-join/array-join.tests.json +41 -0
- package/nodes/array-length/array-length.config.json +28 -0
- package/nodes/array-length/array-length.process.js +14 -0
- package/nodes/array-length/array-length.tests.json +32 -0
- package/nodes/array-map/array-map.config.json +30 -0
- package/nodes/array-map/array-map.process.js +16 -0
- package/nodes/array-map/array-map.tests.json +44 -0
- package/nodes/array-reverse/array-reverse.config.json +29 -0
- package/nodes/array-reverse/array-reverse.process.js +12 -0
- package/nodes/array-reverse/array-reverse.tests.json +60 -0
- package/nodes/array-shuffle/array-shuffle.config.json +38 -0
- package/nodes/array-shuffle/array-shuffle.process.js +37 -0
- package/nodes/array-shuffle/array-shuffle.tests.json +82 -0
- package/nodes/array-slice/array-slice.config.json +37 -0
- package/nodes/array-slice/array-slice.process.js +18 -0
- package/nodes/array-slice/array-slice.tests.json +43 -0
- package/nodes/array-sort/array-sort.config.json +55 -0
- package/nodes/array-sort/array-sort.process.js +45 -0
- package/nodes/array-sort/array-sort.tests.json +95 -0
- package/nodes/array-split/array-split.config.json +50 -0
- package/nodes/array-split/array-split.process.js +32 -0
- package/nodes/array-split/array-split.tests.json +77 -0
- package/nodes/array-unique/array-unique.config.json +65 -0
- package/nodes/array-unique/array-unique.process.js +55 -0
- package/nodes/array-unique/array-unique.tests.json +96 -0
- package/nodes/baai-bge-base-en-v1-5/baai-bge-base-en-v1-5.config.json +90 -0
- package/nodes/baai-bge-base-en-v1-5/baai-bge-base-en-v1-5.process.js +36 -0
- package/nodes/baai-bge-base-en-v1-5/baai-bge-base-en-v1-5.tests.json +48 -0
- package/nodes/baai-bge-large-en-v1-5/baai-bge-large-en-v1-5.config.json +90 -0
- package/nodes/baai-bge-large-en-v1-5/baai-bge-large-en-v1-5.process.js +36 -0
- package/nodes/baai-bge-large-en-v1-5/baai-bge-large-en-v1-5.tests.json +48 -0
- package/nodes/baai-bge-m3/baai-bge-m3.config.json +90 -0
- package/nodes/baai-bge-m3/baai-bge-m3.process.js +36 -0
- package/nodes/baai-bge-m3/baai-bge-m3.tests.json +48 -0
- package/nodes/base64-decode/base64-decode.config.json +36 -0
- package/nodes/base64-decode/base64-decode.process.js +18 -0
- package/nodes/base64-decode/base64-decode.tests.json +46 -0
- package/nodes/base64-encode/base64-encode.config.json +24 -0
- package/nodes/base64-encode/base64-encode.process.js +11 -0
- package/nodes/base64-encode/base64-encode.tests.json +38 -0
- package/nodes/boolean/boolean.config.json +37 -0
- package/nodes/boolean/boolean.process.js +9 -0
- package/nodes/boolean/boolean.tests.json +47 -0
- package/nodes/boolean-inverter/boolean-inverter.config.json +37 -0
- package/nodes/boolean-inverter/boolean-inverter.process.js +12 -0
- package/nodes/boolean-inverter/boolean-inverter.tests.json +22 -0
- package/nodes/ceil/ceil.config.json +23 -0
- package/nodes/ceil/ceil.process.js +8 -0
- package/nodes/ceil/ceil.tests.json +38 -0
- package/nodes/clean-text/clean-text.config.json +126 -0
- package/nodes/cohere-rerank-4-fast/cohere-rerank-4-fast.config.json +95 -0
- package/nodes/cohere-rerank-4-fast/cohere-rerank-4-fast.process.js +60 -0
- package/nodes/cohere-rerank-4-fast/cohere-rerank-4-fast.tests.json +47 -0
- package/nodes/cohere-rerank-4-pro/cohere-rerank-4-pro.config.json +95 -0
- package/nodes/cohere-rerank-4-pro/cohere-rerank-4-pro.process.js +60 -0
- package/nodes/cohere-rerank-4-pro/cohere-rerank-4-pro.tests.json +47 -0
- package/nodes/cohere-rerank-v3-5/cohere-rerank-v3-5.config.json +95 -0
- package/nodes/cohere-rerank-v3-5/cohere-rerank-v3-5.process.js +60 -0
- package/nodes/cohere-rerank-v3-5/cohere-rerank-v3-5.tests.json +47 -0
- package/nodes/combine-document-chunks/combine-document-chunks.config.json +58 -0
- package/nodes/combine-document-chunks/combine-document-chunks.process.js +119 -0
- package/nodes/combine-document-chunks/combine-document-chunks.tests.json +51 -0
- package/nodes/condition-check/condition-check.config.json +38 -0
- package/nodes/condition-check/condition-check.process.js +16 -0
- package/nodes/condition-check/condition-check.tests.json +112 -0
- package/nodes/confluence-get-page/confluence-get-page.config.json +45 -0
- package/nodes/confluence-get-page/confluence-get-page.process.js +22 -0
- package/nodes/confluence-get-page/confluence-get-page.tests.json +12 -0
- package/nodes/confluence-search/confluence-search.config.json +53 -0
- package/nodes/confluence-search/confluence-search.process.js +21 -0
- package/nodes/confluence-search/confluence-search.tests.json +14 -0
- package/nodes/conversation-to-text/conversation-to-text.config.json +55 -0
- package/nodes/conversation-to-text/conversation-to-text.process.js +58 -0
- package/nodes/conversation-to-text/conversation-to-text.tests.json +134 -0
- package/nodes/csv-parser/csv-parser.config.json +74 -0
- package/nodes/csv-parser/csv-parser.process.js +114 -0
- package/nodes/csv-parser/csv-parser.tests.json +93 -0
- package/nodes/csv-stringifier/csv-stringifier.config.json +76 -0
- package/nodes/csv-stringifier/csv-stringifier.process.js +101 -0
- package/nodes/csv-stringifier/csv-stringifier.tests.json +63 -0
- package/nodes/date-formatter/date-formatter.config.json +66 -0
- package/nodes/date-formatter/date-formatter.process.js +113 -0
- package/nodes/date-formatter/date-formatter.tests.json +50 -0
- package/nodes/dedupe-messages/dedupe-messages.config.json +30 -0
- package/nodes/dedupe-messages/dedupe-messages.process.js +44 -0
- package/nodes/dedupe-messages/dedupe-messages.tests.json +149 -0
- package/nodes/deepseek-deepseek-chat/deepseek-deepseek-chat.config.json +191 -0
- package/nodes/deepseek-deepseek-chat/deepseek-deepseek-chat.process.js +136 -0
- package/nodes/deepseek-deepseek-chat/deepseek-deepseek-chat.tests.json +80 -0
- package/nodes/deepseek-deepseek-chat-v3-0324/deepseek-deepseek-chat-v3-0324.config.json +191 -0
- package/nodes/deepseek-deepseek-chat-v3-0324/deepseek-deepseek-chat-v3-0324.process.js +136 -0
- package/nodes/deepseek-deepseek-chat-v3-0324/deepseek-deepseek-chat-v3-0324.tests.json +80 -0
- package/nodes/deepseek-deepseek-chat-v3-1/deepseek-deepseek-chat-v3-1.config.json +213 -0
- package/nodes/deepseek-deepseek-chat-v3-1/deepseek-deepseek-chat-v3-1.process.js +138 -0
- package/nodes/deepseek-deepseek-chat-v3-1/deepseek-deepseek-chat-v3-1.tests.json +80 -0
- package/nodes/deepseek-deepseek-r1/deepseek-deepseek-r1.config.json +212 -0
- package/nodes/deepseek-deepseek-r1/deepseek-deepseek-r1.process.js +138 -0
- package/nodes/deepseek-deepseek-r1/deepseek-deepseek-r1.tests.json +80 -0
- package/nodes/deepseek-deepseek-r1-0528/deepseek-deepseek-r1-0528.config.json +213 -0
- package/nodes/deepseek-deepseek-r1-0528/deepseek-deepseek-r1-0528.process.js +138 -0
- package/nodes/deepseek-deepseek-r1-0528/deepseek-deepseek-r1-0528.tests.json +80 -0
- package/nodes/deepseek-deepseek-r1-distill-llama-70b/deepseek-deepseek-r1-distill-llama-70b.config.json +189 -0
- package/nodes/deepseek-deepseek-r1-distill-llama-70b/deepseek-deepseek-r1-distill-llama-70b.process.js +138 -0
- package/nodes/deepseek-deepseek-r1-distill-llama-70b/deepseek-deepseek-r1-distill-llama-70b.tests.json +80 -0
- package/nodes/deepseek-deepseek-r1-distill-qwen-32b/deepseek-deepseek-r1-distill-qwen-32b.config.json +209 -0
- package/nodes/deepseek-deepseek-r1-distill-qwen-32b/deepseek-deepseek-r1-distill-qwen-32b.process.js +139 -0
- package/nodes/deepseek-deepseek-r1-distill-qwen-32b/deepseek-deepseek-r1-distill-qwen-32b.tests.json +80 -0
- package/nodes/deepseek-deepseek-v3-1-terminus/deepseek-deepseek-v3-1-terminus.config.json +213 -0
- package/nodes/deepseek-deepseek-v3-1-terminus/deepseek-deepseek-v3-1-terminus.process.js +138 -0
- package/nodes/deepseek-deepseek-v3-1-terminus/deepseek-deepseek-v3-1-terminus.tests.json +80 -0
- package/nodes/deepseek-deepseek-v3-2/deepseek-deepseek-v3-2.config.json +213 -0
- package/nodes/deepseek-deepseek-v3-2/deepseek-deepseek-v3-2.process.js +138 -0
- package/nodes/deepseek-deepseek-v3-2/deepseek-deepseek-v3-2.tests.json +80 -0
- package/nodes/deepseek-deepseek-v3-2-exp/deepseek-deepseek-v3-2-exp.config.json +213 -0
- package/nodes/deepseek-deepseek-v3-2-exp/deepseek-deepseek-v3-2-exp.process.js +138 -0
- package/nodes/deepseek-deepseek-v3-2-exp/deepseek-deepseek-v3-2-exp.tests.json +80 -0
- package/nodes/deepseek-deepseek-v4-flash/deepseek-deepseek-v4-flash.config.json +235 -0
- package/nodes/deepseek-deepseek-v4-flash/deepseek-deepseek-v4-flash.process.js +139 -0
- package/nodes/deepseek-deepseek-v4-flash/deepseek-deepseek-v4-flash.tests.json +80 -0
- package/nodes/deepseek-deepseek-v4-pro/deepseek-deepseek-v4-pro.config.json +235 -0
- package/nodes/deepseek-deepseek-v4-pro/deepseek-deepseek-v4-pro.process.js +139 -0
- package/nodes/deepseek-deepseek-v4-pro/deepseek-deepseek-v4-pro.tests.json +80 -0
- package/nodes/delay/delay.config.json +43 -0
- package/nodes/delay/delay.process.js +16 -0
- package/nodes/delay/delay.tests.json +59 -0
- package/nodes/delete-object-property/delete-object-property.config.json +53 -0
- package/nodes/delete-object-property/delete-object-property.process.js +42 -0
- package/nodes/delete-object-property/delete-object-property.tests.json +173 -0
- package/nodes/divide/divide.config.json +31 -0
- package/nodes/divide/divide.process.js +18 -0
- package/nodes/divide/divide.tests.json +42 -0
- package/nodes/duration-calculator/duration-calculator.config.json +77 -0
- package/nodes/duration-calculator/duration-calculator.process.js +96 -0
- package/nodes/duration-calculator/duration-calculator.tests.json +124 -0
- package/nodes/embedding/embedding.config.json +81 -0
- package/nodes/embedding/embedding.process.js +44 -0
- package/nodes/embedding/embedding.tests.json +26 -0
- package/nodes/equals/equals.config.json +32 -0
- package/nodes/equals/equals.process.js +29 -0
- package/nodes/equals/equals.tests.json +111 -0
- package/nodes/extract-code/extract-code.config.json +57 -0
- package/nodes/extract-code/extract-code.process.js +53 -0
- package/nodes/extract-code/extract-code.tests.json +162 -0
- package/nodes/extract-emails/extract-emails.config.json +85 -0
- package/nodes/extract-hashtags/extract-hashtags.config.json +85 -0
- package/nodes/extract-json/extract-json.config.json +44 -0
- package/nodes/extract-json/extract-json.process.js +102 -0
- package/nodes/extract-json/extract-json.tests.json +146 -0
- package/nodes/extract-mentions/extract-mentions.config.json +85 -0
- package/nodes/extract-phone-numbers/extract-phone-numbers.config.json +85 -0
- package/nodes/extract-text-content/extract-text-content.config.json +56 -0
- package/nodes/extract-text-content/extract-text-content.process.js +85 -0
- package/nodes/extract-text-content/extract-text-content.tests.json +144 -0
- package/nodes/extract-urls/extract-urls.config.json +85 -0
- package/nodes/filter-messages/filter-messages.config.json +53 -0
- package/nodes/filter-messages/filter-messages.process.js +88 -0
- package/nodes/filter-messages/filter-messages.tests.json +125 -0
- package/nodes/filter-tools/filter-tools.config.json +29 -0
- package/nodes/filter-tools/filter-tools.process.js +13 -0
- package/nodes/filter-tools/filter-tools.tests.json +89 -0
- package/nodes/firecrawl-scrape/firecrawl-scrape.config.json +171 -0
- package/nodes/firecrawl-scrape/firecrawl-scrape.process.js +69 -0
- package/nodes/firecrawl-scrape/firecrawl-scrape.tests.json +57 -0
- package/nodes/floor/floor.config.json +23 -0
- package/nodes/floor/floor.process.js +8 -0
- package/nodes/floor/floor.tests.json +38 -0
- package/nodes/generate-uuid/generate-uuid.config.json +31 -0
- package/nodes/generate-uuid/generate-uuid.process.js +15 -0
- package/nodes/generate-uuid/generate-uuid.tests.json +7 -0
- package/nodes/get-chunk-by-index/get-chunk-by-index.config.json +45 -0
- package/nodes/get-chunk-by-index/get-chunk-by-index.process.js +80 -0
- package/nodes/get-chunk-by-index/get-chunk-by-index.tests.json +51 -0
- package/nodes/get-first-n-messages/get-first-n-messages.config.json +37 -0
- package/nodes/get-first-n-messages/get-first-n-messages.process.js +27 -0
- package/nodes/get-first-n-messages/get-first-n-messages.tests.json +66 -0
- package/nodes/get-last-n-messages/get-last-n-messages.config.json +37 -0
- package/nodes/get-last-n-messages/get-last-n-messages.process.js +27 -0
- package/nodes/get-last-n-messages/get-last-n-messages.tests.json +66 -0
- package/nodes/get-messages-by-role/get-messages-by-role.config.json +37 -0
- package/nodes/get-messages-by-role/get-messages-by-role.process.js +28 -0
- package/nodes/get-messages-by-role/get-messages-by-role.tests.json +87 -0
- package/nodes/get-messages-range/get-messages-range.config.json +44 -0
- package/nodes/get-messages-range/get-messages-range.process.js +44 -0
- package/nodes/get-messages-range/get-messages-range.tests.json +104 -0
- package/nodes/get-object-property/get-object-property.config.json +54 -0
- package/nodes/get-object-property/get-object-property.process.js +35 -0
- package/nodes/get-object-property/get-object-property.tests.json +101 -0
- package/nodes/github-create-issue/github-create-issue.config.json +72 -0
- package/nodes/github-create-issue/github-create-issue.process.js +22 -0
- package/nodes/github-create-issue/github-create-issue.tests.json +15 -0
- package/nodes/google-custom-search/google-custom-search.config.json +229 -0
- package/nodes/google-custom-search/google-custom-search.process.js +96 -0
- package/nodes/google-custom-search/google-custom-search.tests.json +69 -0
- package/nodes/google-gemini-2-5-flash/google-gemini-2-5-flash.config.json +193 -0
- package/nodes/google-gemini-2-5-flash/google-gemini-2-5-flash.process.js +138 -0
- package/nodes/google-gemini-2-5-flash/google-gemini-2-5-flash.tests.json +80 -0
- package/nodes/google-gemini-2-5-flash-image/google-gemini-2-5-flash-image.config.json +129 -0
- package/nodes/google-gemini-2-5-flash-image/google-gemini-2-5-flash-image.process.js +55 -0
- package/nodes/google-gemini-2-5-flash-image/google-gemini-2-5-flash-image.tests.json +44 -0
- package/nodes/google-gemini-2-5-flash-lite/google-gemini-2-5-flash-lite.config.json +193 -0
- package/nodes/google-gemini-2-5-flash-lite/google-gemini-2-5-flash-lite.process.js +138 -0
- package/nodes/google-gemini-2-5-flash-lite/google-gemini-2-5-flash-lite.tests.json +80 -0
- package/nodes/google-gemini-2-5-flash-lite-preview-09-2025/google-gemini-2-5-flash-lite-preview-09-2025.config.json +193 -0
- package/nodes/google-gemini-2-5-flash-lite-preview-09-2025/google-gemini-2-5-flash-lite-preview-09-2025.process.js +138 -0
- package/nodes/google-gemini-2-5-flash-lite-preview-09-2025/google-gemini-2-5-flash-lite-preview-09-2025.tests.json +80 -0
- package/nodes/google-gemini-2-5-pro/google-gemini-2-5-pro.config.json +193 -0
- package/nodes/google-gemini-2-5-pro/google-gemini-2-5-pro.process.js +138 -0
- package/nodes/google-gemini-2-5-pro/google-gemini-2-5-pro.tests.json +80 -0
- package/nodes/google-gemini-2-5-pro-preview/google-gemini-2-5-pro-preview.config.json +193 -0
- package/nodes/google-gemini-2-5-pro-preview/google-gemini-2-5-pro-preview.process.js +138 -0
- package/nodes/google-gemini-2-5-pro-preview/google-gemini-2-5-pro-preview.tests.json +80 -0
- package/nodes/google-gemini-2-5-pro-preview-05-06/google-gemini-2-5-pro-preview-05-06.config.json +193 -0
- package/nodes/google-gemini-2-5-pro-preview-05-06/google-gemini-2-5-pro-preview-05-06.process.js +138 -0
- package/nodes/google-gemini-2-5-pro-preview-05-06/google-gemini-2-5-pro-preview-05-06.tests.json +80 -0
- package/nodes/google-gemini-3-1-flash-image-preview/google-gemini-3-1-flash-image-preview.config.json +151 -0
- package/nodes/google-gemini-3-1-flash-image-preview/google-gemini-3-1-flash-image-preview.process.js +57 -0
- package/nodes/google-gemini-3-1-flash-image-preview/google-gemini-3-1-flash-image-preview.tests.json +44 -0
- package/nodes/google-gemini-3-1-flash-lite/google-gemini-3-1-flash-lite.config.json +193 -0
- package/nodes/google-gemini-3-1-flash-lite/google-gemini-3-1-flash-lite.process.js +138 -0
- package/nodes/google-gemini-3-1-flash-lite/google-gemini-3-1-flash-lite.tests.json +80 -0
- package/nodes/google-gemini-3-1-flash-lite-preview/google-gemini-3-1-flash-lite-preview.config.json +193 -0
- package/nodes/google-gemini-3-1-flash-lite-preview/google-gemini-3-1-flash-lite-preview.process.js +138 -0
- package/nodes/google-gemini-3-1-flash-lite-preview/google-gemini-3-1-flash-lite-preview.tests.json +80 -0
- package/nodes/google-gemini-3-1-pro-preview/google-gemini-3-1-pro-preview.config.json +193 -0
- package/nodes/google-gemini-3-1-pro-preview/google-gemini-3-1-pro-preview.process.js +138 -0
- package/nodes/google-gemini-3-1-pro-preview/google-gemini-3-1-pro-preview.tests.json +80 -0
- package/nodes/google-gemini-3-1-pro-preview-customtools/google-gemini-3-1-pro-preview-customtools.config.json +193 -0
- package/nodes/google-gemini-3-1-pro-preview-customtools/google-gemini-3-1-pro-preview-customtools.process.js +138 -0
- package/nodes/google-gemini-3-1-pro-preview-customtools/google-gemini-3-1-pro-preview-customtools.tests.json +80 -0
- package/nodes/google-gemini-3-5-flash/google-gemini-3-5-flash.config.json +193 -0
- package/nodes/google-gemini-3-5-flash/google-gemini-3-5-flash.process.js +138 -0
- package/nodes/google-gemini-3-5-flash/google-gemini-3-5-flash.tests.json +80 -0
- package/nodes/google-gemini-3-flash-preview/google-gemini-3-flash-preview.config.json +193 -0
- package/nodes/google-gemini-3-flash-preview/google-gemini-3-flash-preview.process.js +138 -0
- package/nodes/google-gemini-3-flash-preview/google-gemini-3-flash-preview.tests.json +80 -0
- package/nodes/google-gemini-3-pro-image-preview/google-gemini-3-pro-image-preview.config.json +151 -0
- package/nodes/google-gemini-3-pro-image-preview/google-gemini-3-pro-image-preview.process.js +57 -0
- package/nodes/google-gemini-3-pro-image-preview/google-gemini-3-pro-image-preview.tests.json +44 -0
- package/nodes/google-gemini-embedding-001/google-gemini-embedding-001.config.json +90 -0
- package/nodes/google-gemini-embedding-001/google-gemini-embedding-001.process.js +36 -0
- package/nodes/google-gemini-embedding-001/google-gemini-embedding-001.tests.json +48 -0
- package/nodes/google-gemini-embedding-2/google-gemini-embedding-2.config.json +94 -0
- package/nodes/google-gemini-embedding-2/google-gemini-embedding-2.process.js +36 -0
- package/nodes/google-gemini-embedding-2/google-gemini-embedding-2.tests.json +48 -0
- package/nodes/google-gemini-embedding-2-preview/google-gemini-embedding-2-preview.config.json +94 -0
- package/nodes/google-gemini-embedding-2-preview/google-gemini-embedding-2-preview.process.js +36 -0
- package/nodes/google-gemini-embedding-2-preview/google-gemini-embedding-2-preview.tests.json +48 -0
- package/nodes/google-gemma-2-27b-it/google-gemma-2-27b-it.config.json +165 -0
- package/nodes/google-gemma-2-27b-it/google-gemma-2-27b-it.process.js +136 -0
- package/nodes/google-gemma-2-27b-it/google-gemma-2-27b-it.tests.json +80 -0
- package/nodes/google-gemma-3-12b-it/google-gemma-3-12b-it.config.json +191 -0
- package/nodes/google-gemma-3-12b-it/google-gemma-3-12b-it.process.js +136 -0
- package/nodes/google-gemma-3-12b-it/google-gemma-3-12b-it.tests.json +80 -0
- package/nodes/google-gemma-3-27b-it/google-gemma-3-27b-it.config.json +191 -0
- package/nodes/google-gemma-3-27b-it/google-gemma-3-27b-it.process.js +136 -0
- package/nodes/google-gemma-3-27b-it/google-gemma-3-27b-it.tests.json +80 -0
- package/nodes/google-gemma-3-4b-it/google-gemma-3-4b-it.config.json +168 -0
- package/nodes/google-gemma-3-4b-it/google-gemma-3-4b-it.process.js +136 -0
- package/nodes/google-gemma-3-4b-it/google-gemma-3-4b-it.tests.json +80 -0
- package/nodes/google-gemma-3n-e4b-it/google-gemma-3n-e4b-it.config.json +123 -0
- package/nodes/google-gemma-3n-e4b-it/google-gemma-3n-e4b-it.process.js +51 -0
- package/nodes/google-gemma-3n-e4b-it/google-gemma-3n-e4b-it.tests.json +44 -0
- package/nodes/google-gemma-4-26b-a4b-it/google-gemma-4-26b-a4b-it.config.json +235 -0
- package/nodes/google-gemma-4-26b-a4b-it/google-gemma-4-26b-a4b-it.process.js +139 -0
- package/nodes/google-gemma-4-26b-a4b-it/google-gemma-4-26b-a4b-it.tests.json +80 -0
- package/nodes/google-gemma-4-26b-a4b-it-free/google-gemma-4-26b-a4b-it-free.config.json +184 -0
- package/nodes/google-gemma-4-26b-a4b-it-free/google-gemma-4-26b-a4b-it-free.process.js +138 -0
- package/nodes/google-gemma-4-26b-a4b-it-free/google-gemma-4-26b-a4b-it-free.tests.json +80 -0
- package/nodes/google-gemma-4-31b-it/google-gemma-4-31b-it.config.json +235 -0
- package/nodes/google-gemma-4-31b-it/google-gemma-4-31b-it.process.js +139 -0
- package/nodes/google-gemma-4-31b-it/google-gemma-4-31b-it.tests.json +80 -0
- package/nodes/google-gemma-4-31b-it-free/google-gemma-4-31b-it-free.config.json +192 -0
- package/nodes/google-gemma-4-31b-it-free/google-gemma-4-31b-it-free.process.js +138 -0
- package/nodes/google-gemma-4-31b-it-free/google-gemma-4-31b-it-free.tests.json +80 -0
- package/nodes/google-lyria-3-clip-preview/google-lyria-3-clip-preview.config.json +111 -0
- package/nodes/google-lyria-3-clip-preview/google-lyria-3-clip-preview.process.js +51 -0
- package/nodes/google-lyria-3-clip-preview/google-lyria-3-clip-preview.tests.json +44 -0
- package/nodes/google-lyria-3-pro-preview/google-lyria-3-pro-preview.config.json +111 -0
- package/nodes/google-lyria-3-pro-preview/google-lyria-3-pro-preview.process.js +51 -0
- package/nodes/google-lyria-3-pro-preview/google-lyria-3-pro-preview.tests.json +44 -0
- package/nodes/greater-than/greater-than.config.json +33 -0
- package/nodes/greater-than/greater-than.process.js +11 -0
- package/nodes/greater-than/greater-than.tests.json +47 -0
- package/nodes/greater-than-equal/greater-than-equal.config.json +33 -0
- package/nodes/greater-than-equal/greater-than-equal.process.js +11 -0
- package/nodes/greater-than-equal/greater-than-equal.tests.json +52 -0
- package/nodes/has-object-property/has-object-property.config.json +55 -0
- package/nodes/has-object-property/has-object-property.process.js +42 -0
- package/nodes/has-object-property/has-object-property.tests.json +148 -0
- package/nodes/hash-content/hash-content.config.json +33 -0
- package/nodes/hash-content/hash-content.process.js +19 -0
- package/nodes/hash-content/hash-content.tests.json +51 -0
- package/nodes/histogram/histogram.config.json +36 -0
- package/nodes/histogram/histogram.process.js +73 -0
- package/nodes/histogram/histogram.tests.json +57 -0
- package/nodes/histogram-fixed/histogram-fixed.config.json +62 -0
- package/nodes/histogram-fixed/histogram-fixed.process.js +42 -0
- package/nodes/histogram-fixed/histogram-fixed.tests.json +62 -0
- package/nodes/http-request/http-request.config.json +90 -0
- package/nodes/http-request/http-request.process.js +89 -0
- package/nodes/http-request/http-request.tests.json +115 -0
- package/nodes/hubspot-read-contacts/hubspot-read-contacts.config.json +71 -0
- package/nodes/hubspot-read-contacts/hubspot-read-contacts.process.js +56 -0
- package/nodes/hubspot-search-contacts/hubspot-search-contacts.config.json +89 -0
- package/nodes/hubspot-search-contacts/hubspot-search-contacts.process.js +71 -0
- package/nodes/if-else/if-else.config.json +50 -0
- package/nodes/if-else/if-else.process.js +39 -0
- package/nodes/if-else/if-else.tests.json +94 -0
- package/nodes/input-chat/input-chat.config.json +45 -0
- package/nodes/input-chat/input-chat.process.js +29 -0
- package/nodes/input-data/input-data.config.json +59 -0
- package/nodes/input-data/input-data.process.js +25 -0
- package/nodes/input-data/input-data.tests.json +53 -0
- package/nodes/input-plugins/input-plugins.config.json +17 -0
- package/nodes/input-plugins/input-plugins.process.js +11 -0
- package/nodes/input-prompt/input-prompt.config.json +39 -0
- package/nodes/input-prompt/input-prompt.process.js +9 -0
- package/nodes/intfloat-e5-base-v2/intfloat-e5-base-v2.config.json +90 -0
- package/nodes/intfloat-e5-base-v2/intfloat-e5-base-v2.process.js +36 -0
- package/nodes/intfloat-e5-base-v2/intfloat-e5-base-v2.tests.json +48 -0
- package/nodes/intfloat-e5-large-v2/intfloat-e5-large-v2.config.json +90 -0
- package/nodes/intfloat-e5-large-v2/intfloat-e5-large-v2.process.js +36 -0
- package/nodes/intfloat-e5-large-v2/intfloat-e5-large-v2.tests.json +48 -0
- package/nodes/intfloat-multilingual-e5-large/intfloat-multilingual-e5-large.config.json +90 -0
- package/nodes/intfloat-multilingual-e5-large/intfloat-multilingual-e5-large.process.js +36 -0
- package/nodes/intfloat-multilingual-e5-large/intfloat-multilingual-e5-large.tests.json +48 -0
- package/nodes/jira-create-issue/jira-create-issue.config.json +87 -0
- package/nodes/jira-create-issue/jira-create-issue.process.js +24 -0
- package/nodes/jira-create-issue/jira-create-issue.tests.json +14 -0
- package/nodes/jira-list-issues/jira-list-issues.config.json +53 -0
- package/nodes/jira-list-issues/jira-list-issues.process.js +19 -0
- package/nodes/jira-list-issues/jira-list-issues.tests.json +14 -0
- package/nodes/jira-update-issue/jira-update-issue.config.json +60 -0
- package/nodes/jira-update-issue/jira-update-issue.process.js +30 -0
- package/nodes/jira-update-issue/jira-update-issue.tests.json +12 -0
- package/nodes/json-parser/json-parser.config.json +47 -0
- package/nodes/json-parser/json-parser.process.js +23 -0
- package/nodes/json-parser/json-parser.tests.json +57 -0
- package/nodes/json-stringifier/json-stringifier.config.json +54 -0
- package/nodes/json-stringifier/json-stringifier.process.js +20 -0
- package/nodes/json-stringifier/json-stringifier.tests.json +58 -0
- package/nodes/json-to-xml/json-to-xml.config.json +48 -0
- package/nodes/json-to-xml/json-to-xml.process.js +60 -0
- package/nodes/json-to-xml/json-to-xml.tests.json +103 -0
- package/nodes/json-to-yaml/json-to-yaml.config.json +32 -0
- package/nodes/json-to-yaml/json-to-yaml.process.js +89 -0
- package/nodes/json-to-yaml/json-to-yaml.tests.json +101 -0
- package/nodes/keep-bookends/keep-bookends.config.json +44 -0
- package/nodes/keep-bookends/keep-bookends.process.js +44 -0
- package/nodes/keep-bookends/keep-bookends.tests.json +185 -0
- package/nodes/less-than/less-than.config.json +33 -0
- package/nodes/less-than/less-than.process.js +11 -0
- package/nodes/less-than/less-than.tests.json +47 -0
- package/nodes/less-than-equal/less-than-equal.config.json +33 -0
- package/nodes/less-than-equal/less-than-equal.process.js +11 -0
- package/nodes/less-than-equal/less-than-equal.tests.json +52 -0
- package/nodes/linear-create-issue/linear-create-issue.config.json +72 -0
- package/nodes/linear-create-issue/linear-create-issue.process.js +24 -0
- package/nodes/linear-create-issue/linear-create-issue.tests.json +14 -0
- package/nodes/linear-list-issues/linear-list-issues.config.json +58 -0
- package/nodes/linear-list-issues/linear-list-issues.process.js +22 -0
- package/nodes/linear-list-issues/linear-list-issues.tests.json +13 -0
- package/nodes/linear-update-issue/linear-update-issue.config.json +72 -0
- package/nodes/linear-update-issue/linear-update-issue.process.js +24 -0
- package/nodes/linear-update-issue/linear-update-issue.tests.json +13 -0
- package/nodes/liquid-lfm-2-24b-a2b/liquid-lfm-2-24b-a2b.config.json +123 -0
- package/nodes/liquid-lfm-2-24b-a2b/liquid-lfm-2-24b-a2b.process.js +51 -0
- package/nodes/liquid-lfm-2-24b-a2b/liquid-lfm-2-24b-a2b.tests.json +44 -0
- package/nodes/liquid-lfm-2-5-1-2b-instruct-free/liquid-lfm-2-5-1-2b-instruct-free.config.json +130 -0
- package/nodes/liquid-lfm-2-5-1-2b-instruct-free/liquid-lfm-2-5-1-2b-instruct-free.process.js +51 -0
- package/nodes/liquid-lfm-2-5-1-2b-instruct-free/liquid-lfm-2-5-1-2b-instruct-free.tests.json +44 -0
- package/nodes/liquid-lfm-2-5-1-2b-thinking-free/liquid-lfm-2-5-1-2b-thinking-free.config.json +152 -0
- package/nodes/liquid-lfm-2-5-1-2b-thinking-free/liquid-lfm-2-5-1-2b-thinking-free.process.js +53 -0
- package/nodes/liquid-lfm-2-5-1-2b-thinking-free/liquid-lfm-2-5-1-2b-thinking-free.tests.json +44 -0
- package/nodes/loop-end/loop-end.config.json +74 -0
- package/nodes/loop-end/loop-end.process.js +69 -0
- package/nodes/loop-end/loop-end.tests.json +139 -0
- package/nodes/loop-start/loop-start.config.json +28 -0
- package/nodes/loop-start/loop-start.process.js +18 -0
- package/nodes/loop-start/loop-start.tests.json +65 -0
- package/nodes/mean/mean.config.json +23 -0
- package/nodes/mean/mean.process.js +23 -0
- package/nodes/mean/mean.tests.json +45 -0
- package/nodes/median/median.config.json +23 -0
- package/nodes/median/median.process.js +29 -0
- package/nodes/median/median.tests.json +54 -0
- package/nodes/merge-consecutive-roles/merge-consecutive-roles.config.json +38 -0
- package/nodes/merge-consecutive-roles/merge-consecutive-roles.process.js +75 -0
- package/nodes/merge-consecutive-roles/merge-consecutive-roles.tests.json +199 -0
- package/nodes/merge-messages/merge-messages.config.json +60 -0
- package/nodes/merge-messages/merge-messages.process.js +99 -0
- package/nodes/merge-messages/merge-messages.tests.json +174 -0
- package/nodes/message/message.config.json +57 -0
- package/nodes/message/message.process.js +40 -0
- package/nodes/message-bus/message-bus.config.json +103 -0
- package/nodes/message-bus/message-bus.process.js +69 -0
- package/nodes/message-bus/message-bus.tests.json +150 -0
- package/nodes/message-role-swap/message-role-swap.config.json +26 -0
- package/nodes/message-role-swap/message-role-swap.process.js +39 -0
- package/nodes/message-role-swap/message-role-swap.tests.json +197 -0
- package/nodes/mistralai-codestral-2508/mistralai-codestral-2508.config.json +187 -0
- package/nodes/mistralai-codestral-2508/mistralai-codestral-2508.process.js +136 -0
- package/nodes/mistralai-codestral-2508/mistralai-codestral-2508.tests.json +80 -0
- package/nodes/mistralai-codestral-embed-2505/mistralai-codestral-embed-2505.config.json +90 -0
- package/nodes/mistralai-codestral-embed-2505/mistralai-codestral-embed-2505.process.js +36 -0
- package/nodes/mistralai-codestral-embed-2505/mistralai-codestral-embed-2505.tests.json +48 -0
- package/nodes/mistralai-devstral-2512/mistralai-devstral-2512.config.json +187 -0
- package/nodes/mistralai-devstral-2512/mistralai-devstral-2512.process.js +136 -0
- package/nodes/mistralai-devstral-2512/mistralai-devstral-2512.tests.json +80 -0
- package/nodes/mistralai-ministral-14b-2512/mistralai-ministral-14b-2512.config.json +210 -0
- package/nodes/mistralai-ministral-14b-2512/mistralai-ministral-14b-2512.process.js +137 -0
- package/nodes/mistralai-ministral-14b-2512/mistralai-ministral-14b-2512.tests.json +80 -0
- package/nodes/mistralai-ministral-3b-2512/mistralai-ministral-3b-2512.config.json +210 -0
- package/nodes/mistralai-ministral-3b-2512/mistralai-ministral-3b-2512.process.js +137 -0
- package/nodes/mistralai-ministral-3b-2512/mistralai-ministral-3b-2512.tests.json +80 -0
- package/nodes/mistralai-ministral-8b-2512/mistralai-ministral-8b-2512.config.json +210 -0
- package/nodes/mistralai-ministral-8b-2512/mistralai-ministral-8b-2512.process.js +137 -0
- package/nodes/mistralai-ministral-8b-2512/mistralai-ministral-8b-2512.tests.json +80 -0
- package/nodes/mistralai-mistral-embed-2312/mistralai-mistral-embed-2312.config.json +90 -0
- package/nodes/mistralai-mistral-embed-2312/mistralai-mistral-embed-2312.process.js +36 -0
- package/nodes/mistralai-mistral-embed-2312/mistralai-mistral-embed-2312.tests.json +48 -0
- package/nodes/mistralai-mistral-large/mistralai-mistral-large.config.json +187 -0
- package/nodes/mistralai-mistral-large/mistralai-mistral-large.process.js +136 -0
- package/nodes/mistralai-mistral-large/mistralai-mistral-large.tests.json +80 -0
- package/nodes/mistralai-mistral-large-2407/mistralai-mistral-large-2407.config.json +187 -0
- package/nodes/mistralai-mistral-large-2407/mistralai-mistral-large-2407.process.js +136 -0
- package/nodes/mistralai-mistral-large-2407/mistralai-mistral-large-2407.tests.json +80 -0
- package/nodes/mistralai-mistral-large-2512/mistralai-mistral-large-2512.config.json +187 -0
- package/nodes/mistralai-mistral-large-2512/mistralai-mistral-large-2512.process.js +136 -0
- package/nodes/mistralai-mistral-large-2512/mistralai-mistral-large-2512.tests.json +80 -0
- package/nodes/mistralai-mistral-medium-3/mistralai-mistral-medium-3.config.json +187 -0
- package/nodes/mistralai-mistral-medium-3/mistralai-mistral-medium-3.process.js +136 -0
- package/nodes/mistralai-mistral-medium-3/mistralai-mistral-medium-3.tests.json +80 -0
- package/nodes/mistralai-mistral-medium-3-1/mistralai-mistral-medium-3-1.config.json +187 -0
- package/nodes/mistralai-mistral-medium-3-1/mistralai-mistral-medium-3-1.process.js +136 -0
- package/nodes/mistralai-mistral-medium-3-1/mistralai-mistral-medium-3-1.tests.json +80 -0
- package/nodes/mistralai-mistral-medium-3-5/mistralai-mistral-medium-3-5.config.json +209 -0
- package/nodes/mistralai-mistral-medium-3-5/mistralai-mistral-medium-3-5.process.js +138 -0
- package/nodes/mistralai-mistral-medium-3-5/mistralai-mistral-medium-3-5.tests.json +80 -0
- package/nodes/mistralai-mistral-nemo/mistralai-mistral-nemo.config.json +191 -0
- package/nodes/mistralai-mistral-nemo/mistralai-mistral-nemo.process.js +136 -0
- package/nodes/mistralai-mistral-nemo/mistralai-mistral-nemo.tests.json +80 -0
- package/nodes/mistralai-mistral-saba/mistralai-mistral-saba.config.json +187 -0
- package/nodes/mistralai-mistral-saba/mistralai-mistral-saba.process.js +136 -0
- package/nodes/mistralai-mistral-saba/mistralai-mistral-saba.tests.json +80 -0
- package/nodes/mistralai-mistral-small-24b-instruct-2501/mistralai-mistral-small-24b-instruct-2501.config.json +140 -0
- package/nodes/mistralai-mistral-small-24b-instruct-2501/mistralai-mistral-small-24b-instruct-2501.process.js +51 -0
- package/nodes/mistralai-mistral-small-24b-instruct-2501/mistralai-mistral-small-24b-instruct-2501.tests.json +44 -0
- package/nodes/mistralai-mistral-small-2603/mistralai-mistral-small-2603.config.json +210 -0
- package/nodes/mistralai-mistral-small-2603/mistralai-mistral-small-2603.process.js +138 -0
- package/nodes/mistralai-mistral-small-2603/mistralai-mistral-small-2603.tests.json +80 -0
- package/nodes/mistralai-mistral-small-3-1-24b-instruct/mistralai-mistral-small-3-1-24b-instruct.config.json +131 -0
- package/nodes/mistralai-mistral-small-3-1-24b-instruct/mistralai-mistral-small-3-1-24b-instruct.process.js +51 -0
- package/nodes/mistralai-mistral-small-3-1-24b-instruct/mistralai-mistral-small-3-1-24b-instruct.tests.json +44 -0
- package/nodes/mistralai-mistral-small-3-2-24b-instruct/mistralai-mistral-small-3-2-24b-instruct.config.json +191 -0
- package/nodes/mistralai-mistral-small-3-2-24b-instruct/mistralai-mistral-small-3-2-24b-instruct.process.js +136 -0
- package/nodes/mistralai-mistral-small-3-2-24b-instruct/mistralai-mistral-small-3-2-24b-instruct.tests.json +80 -0
- package/nodes/mistralai-mixtral-8x22b-instruct/mistralai-mixtral-8x22b-instruct.config.json +187 -0
- package/nodes/mistralai-mixtral-8x22b-instruct/mistralai-mixtral-8x22b-instruct.process.js +136 -0
- package/nodes/mistralai-mixtral-8x22b-instruct/mistralai-mixtral-8x22b-instruct.tests.json +80 -0
- package/nodes/mistralai-voxtral-small-24b-2507/mistralai-voxtral-small-24b-2507.config.json +187 -0
- package/nodes/mistralai-voxtral-small-24b-2507/mistralai-voxtral-small-24b-2507.process.js +136 -0
- package/nodes/mistralai-voxtral-small-24b-2507/mistralai-voxtral-small-24b-2507.tests.json +80 -0
- package/nodes/mode/mode.config.json +29 -0
- package/nodes/mode/mode.process.js +45 -0
- package/nodes/mode/mode.tests.json +53 -0
- package/nodes/modulo/modulo.config.json +30 -0
- package/nodes/modulo/modulo.process.js +31 -0
- package/nodes/modulo/modulo.tests.json +66 -0
- package/nodes/multiply/multiply.config.json +30 -0
- package/nodes/multiply/multiply.process.js +9 -0
- package/nodes/multiply/multiply.tests.json +42 -0
- package/nodes/nand-gate/nand-gate.config.json +30 -0
- package/nodes/nand-gate/nand-gate.process.js +10 -0
- package/nodes/nand-gate/nand-gate.tests.json +22 -0
- package/nodes/newsdata-io-archive/newsdata-io-archive.config.json +144 -0
- package/nodes/newsdata-io-archive/newsdata-io-archive.process.js +60 -0
- package/nodes/newsdata-io-archive/newsdata-io-archive.tests.json +68 -0
- package/nodes/newsdata-io-latest/newsdata-io-latest.config.json +142 -0
- package/nodes/newsdata-io-latest/newsdata-io-latest.process.js +60 -0
- package/nodes/newsdata-io-latest/newsdata-io-latest.tests.json +74 -0
- package/nodes/newsdata-io-sources/newsdata-io-sources.config.json +51 -0
- package/nodes/newsdata-io-sources/newsdata-io-sources.process.js +41 -0
- package/nodes/newsdata-io-sources/newsdata-io-sources.tests.json +53 -0
- package/nodes/nor-gate/nor-gate.config.json +30 -0
- package/nodes/nor-gate/nor-gate.process.js +10 -0
- package/nodes/nor-gate/nor-gate.tests.json +22 -0
- package/nodes/normalize-whitespace/normalize-whitespace.config.json +56 -0
- package/nodes/normalize-whitespace/normalize-whitespace.process.js +36 -0
- package/nodes/normalize-whitespace/normalize-whitespace.tests.json +76 -0
- package/nodes/not-equals/not-equals.config.json +32 -0
- package/nodes/not-equals/not-equals.process.js +29 -0
- package/nodes/not-equals/not-equals.tests.json +77 -0
- package/nodes/notion-append-blocks/notion-append-blocks.config.json +38 -0
- package/nodes/notion-append-blocks/notion-append-blocks.process.js +34 -0
- package/nodes/notion-append-blocks/notion-append-blocks.tests.json +80 -0
- package/nodes/notion-archive-page/notion-archive-page.config.json +44 -0
- package/nodes/notion-archive-page/notion-archive-page.process.js +29 -0
- package/nodes/notion-archive-page/notion-archive-page.tests.json +26 -0
- package/nodes/notion-create-page/notion-create-page.config.json +71 -0
- package/nodes/notion-create-page/notion-create-page.process.js +45 -0
- package/nodes/notion-create-page/notion-create-page.tests.json +92 -0
- package/nodes/notion-get-blocks/notion-get-blocks.config.json +51 -0
- package/nodes/notion-get-blocks/notion-get-blocks.process.js +29 -0
- package/nodes/notion-get-blocks/notion-get-blocks.tests.json +22 -0
- package/nodes/notion-get-page/notion-get-page.config.json +54 -0
- package/nodes/notion-get-page/notion-get-page.process.js +29 -0
- package/nodes/notion-get-page/notion-get-page.tests.json +14 -0
- package/nodes/notion-query-database/notion-query-database.config.json +65 -0
- package/nodes/notion-query-database/notion-query-database.process.js +31 -0
- package/nodes/notion-query-database/notion-query-database.tests.json +52 -0
- package/nodes/notion-search/notion-search.config.json +74 -0
- package/nodes/notion-search/notion-search.process.js +41 -0
- package/nodes/notion-search/notion-search.tests.json +46 -0
- package/nodes/notion-update-page/notion-update-page.config.json +57 -0
- package/nodes/notion-update-page/notion-update-page.process.js +34 -0
- package/nodes/notion-update-page/notion-update-page.tests.json +44 -0
- package/nodes/null-bomb/null-bomb.config.json +36 -0
- package/nodes/null-bomb/null-bomb.process.js +21 -0
- package/nodes/null-bomb/null-bomb.tests.json +83 -0
- package/nodes/number/number.config.json +59 -0
- package/nodes/number/number.process.js +16 -0
- package/nodes/number/number.tests.json +46 -0
- package/nodes/nvidia-llama-nemotron-embed-vl-1b-v2-free/nvidia-llama-nemotron-embed-vl-1b-v2-free.config.json +91 -0
- package/nodes/nvidia-llama-nemotron-embed-vl-1b-v2-free/nvidia-llama-nemotron-embed-vl-1b-v2-free.process.js +36 -0
- package/nodes/nvidia-llama-nemotron-embed-vl-1b-v2-free/nvidia-llama-nemotron-embed-vl-1b-v2-free.tests.json +48 -0
- package/nodes/nvidia-llama-nemotron-rerank-vl-1b-v2-free/nvidia-llama-nemotron-rerank-vl-1b-v2-free.config.json +95 -0
- package/nodes/nvidia-llama-nemotron-rerank-vl-1b-v2-free/nvidia-llama-nemotron-rerank-vl-1b-v2-free.process.js +60 -0
- package/nodes/nvidia-llama-nemotron-rerank-vl-1b-v2-free/nvidia-llama-nemotron-rerank-vl-1b-v2-free.tests.json +47 -0
- package/nodes/object-merge/object-merge.config.json +34 -0
- package/nodes/object-merge/object-merge.process.js +53 -0
- package/nodes/object-merge/object-merge.tests.json +146 -0
- package/nodes/openai-gpt-3-5-turbo/openai-gpt-3-5-turbo.config.json +210 -0
- package/nodes/openai-gpt-3-5-turbo/openai-gpt-3-5-turbo.process.js +137 -0
- package/nodes/openai-gpt-3-5-turbo/openai-gpt-3-5-turbo.tests.json +80 -0
- package/nodes/openai-gpt-3-5-turbo-0613/openai-gpt-3-5-turbo-0613.config.json +203 -0
- package/nodes/openai-gpt-3-5-turbo-0613/openai-gpt-3-5-turbo-0613.process.js +137 -0
- package/nodes/openai-gpt-3-5-turbo-0613/openai-gpt-3-5-turbo-0613.tests.json +80 -0
- package/nodes/openai-gpt-3-5-turbo-16k/openai-gpt-3-5-turbo-16k.config.json +211 -0
- package/nodes/openai-gpt-3-5-turbo-16k/openai-gpt-3-5-turbo-16k.process.js +137 -0
- package/nodes/openai-gpt-3-5-turbo-16k/openai-gpt-3-5-turbo-16k.tests.json +80 -0
- package/nodes/openai-gpt-3-5-turbo-instruct/openai-gpt-3-5-turbo-instruct.config.json +187 -0
- package/nodes/openai-gpt-3-5-turbo-instruct/openai-gpt-3-5-turbo-instruct.process.js +137 -0
- package/nodes/openai-gpt-3-5-turbo-instruct/openai-gpt-3-5-turbo-instruct.tests.json +80 -0
- package/nodes/openai-gpt-4/openai-gpt-4.config.json +211 -0
- package/nodes/openai-gpt-4/openai-gpt-4.process.js +137 -0
- package/nodes/openai-gpt-4/openai-gpt-4.tests.json +80 -0
- package/nodes/openai-gpt-4-1/openai-gpt-4-1.config.json +164 -0
- package/nodes/openai-gpt-4-1/openai-gpt-4-1.process.js +136 -0
- package/nodes/openai-gpt-4-1/openai-gpt-4-1.tests.json +80 -0
- package/nodes/openai-gpt-4-1-mini/openai-gpt-4-1-mini.config.json +164 -0
- package/nodes/openai-gpt-4-1-mini/openai-gpt-4-1-mini.process.js +136 -0
- package/nodes/openai-gpt-4-1-mini/openai-gpt-4-1-mini.tests.json +80 -0
- package/nodes/openai-gpt-4-1-nano/openai-gpt-4-1-nano.config.json +164 -0
- package/nodes/openai-gpt-4-1-nano/openai-gpt-4-1-nano.process.js +136 -0
- package/nodes/openai-gpt-4-1-nano/openai-gpt-4-1-nano.tests.json +80 -0
- package/nodes/openai-gpt-4-1106-preview/openai-gpt-4-1106-preview.config.json +210 -0
- package/nodes/openai-gpt-4-1106-preview/openai-gpt-4-1106-preview.process.js +137 -0
- package/nodes/openai-gpt-4-1106-preview/openai-gpt-4-1106-preview.tests.json +80 -0
- package/nodes/openai-gpt-4-turbo/openai-gpt-4-turbo.config.json +210 -0
- package/nodes/openai-gpt-4-turbo/openai-gpt-4-turbo.process.js +137 -0
- package/nodes/openai-gpt-4-turbo/openai-gpt-4-turbo.tests.json +80 -0
- package/nodes/openai-gpt-4-turbo-preview/openai-gpt-4-turbo-preview.config.json +210 -0
- package/nodes/openai-gpt-4-turbo-preview/openai-gpt-4-turbo-preview.process.js +137 -0
- package/nodes/openai-gpt-4-turbo-preview/openai-gpt-4-turbo-preview.tests.json +80 -0
- package/nodes/openai-gpt-4o/openai-gpt-4o.config.json +224 -0
- package/nodes/openai-gpt-4o/openai-gpt-4o.process.js +139 -0
- package/nodes/openai-gpt-4o/openai-gpt-4o.tests.json +80 -0
- package/nodes/openai-gpt-4o-2024-05-13/openai-gpt-4o-2024-05-13.config.json +224 -0
- package/nodes/openai-gpt-4o-2024-05-13/openai-gpt-4o-2024-05-13.process.js +139 -0
- package/nodes/openai-gpt-4o-2024-05-13/openai-gpt-4o-2024-05-13.tests.json +80 -0
- package/nodes/openai-gpt-4o-2024-08-06/openai-gpt-4o-2024-08-06.config.json +224 -0
- package/nodes/openai-gpt-4o-2024-08-06/openai-gpt-4o-2024-08-06.process.js +139 -0
- package/nodes/openai-gpt-4o-2024-08-06/openai-gpt-4o-2024-08-06.tests.json +80 -0
- package/nodes/openai-gpt-4o-2024-11-20/openai-gpt-4o-2024-11-20.config.json +223 -0
- package/nodes/openai-gpt-4o-2024-11-20/openai-gpt-4o-2024-11-20.process.js +139 -0
- package/nodes/openai-gpt-4o-2024-11-20/openai-gpt-4o-2024-11-20.tests.json +80 -0
- package/nodes/openai-gpt-4o-mini/openai-gpt-4o-mini.config.json +224 -0
- package/nodes/openai-gpt-4o-mini/openai-gpt-4o-mini.process.js +139 -0
- package/nodes/openai-gpt-4o-mini/openai-gpt-4o-mini.tests.json +80 -0
- package/nodes/openai-gpt-4o-mini-2024-07-18/openai-gpt-4o-mini-2024-07-18.config.json +223 -0
- package/nodes/openai-gpt-4o-mini-2024-07-18/openai-gpt-4o-mini-2024-07-18.process.js +139 -0
- package/nodes/openai-gpt-4o-mini-2024-07-18/openai-gpt-4o-mini-2024-07-18.tests.json +80 -0
- package/nodes/openai-gpt-4o-mini-search-preview/openai-gpt-4o-mini-search-preview.config.json +101 -0
- package/nodes/openai-gpt-4o-mini-search-preview/openai-gpt-4o-mini-search-preview.process.js +53 -0
- package/nodes/openai-gpt-4o-mini-search-preview/openai-gpt-4o-mini-search-preview.tests.json +26 -0
- package/nodes/openai-gpt-4o-search-preview/openai-gpt-4o-search-preview.config.json +101 -0
- package/nodes/openai-gpt-4o-search-preview/openai-gpt-4o-search-preview.process.js +53 -0
- package/nodes/openai-gpt-4o-search-preview/openai-gpt-4o-search-preview.tests.json +26 -0
- package/nodes/openai-gpt-5/openai-gpt-5.config.json +170 -0
- package/nodes/openai-gpt-5/openai-gpt-5.process.js +138 -0
- package/nodes/openai-gpt-5/openai-gpt-5.tests.json +57 -0
- package/nodes/openai-gpt-5-1/openai-gpt-5-1.config.json +170 -0
- package/nodes/openai-gpt-5-1/openai-gpt-5-1.process.js +138 -0
- package/nodes/openai-gpt-5-1/openai-gpt-5-1.tests.json +57 -0
- package/nodes/openai-gpt-5-1-chat/openai-gpt-5-1-chat.config.json +148 -0
- package/nodes/openai-gpt-5-1-chat/openai-gpt-5-1-chat.process.js +136 -0
- package/nodes/openai-gpt-5-1-chat/openai-gpt-5-1-chat.tests.json +57 -0
- package/nodes/openai-gpt-5-1-codex/openai-gpt-5-1-codex.config.json +170 -0
- package/nodes/openai-gpt-5-1-codex/openai-gpt-5-1-codex.process.js +138 -0
- package/nodes/openai-gpt-5-1-codex/openai-gpt-5-1-codex.tests.json +57 -0
- package/nodes/openai-gpt-5-1-codex-max/openai-gpt-5-1-codex-max.config.json +170 -0
- package/nodes/openai-gpt-5-1-codex-max/openai-gpt-5-1-codex-max.process.js +138 -0
- package/nodes/openai-gpt-5-1-codex-max/openai-gpt-5-1-codex-max.tests.json +57 -0
- package/nodes/openai-gpt-5-1-codex-mini/openai-gpt-5-1-codex-mini.config.json +170 -0
- package/nodes/openai-gpt-5-1-codex-mini/openai-gpt-5-1-codex-mini.process.js +138 -0
- package/nodes/openai-gpt-5-1-codex-mini/openai-gpt-5-1-codex-mini.tests.json +57 -0
- package/nodes/openai-gpt-5-2/openai-gpt-5-2.config.json +170 -0
- package/nodes/openai-gpt-5-2/openai-gpt-5-2.process.js +138 -0
- package/nodes/openai-gpt-5-2/openai-gpt-5-2.tests.json +57 -0
- package/nodes/openai-gpt-5-2-chat/openai-gpt-5-2-chat.config.json +148 -0
- package/nodes/openai-gpt-5-2-chat/openai-gpt-5-2-chat.process.js +136 -0
- package/nodes/openai-gpt-5-2-chat/openai-gpt-5-2-chat.tests.json +57 -0
- package/nodes/openai-gpt-5-2-codex/openai-gpt-5-2-codex.config.json +170 -0
- package/nodes/openai-gpt-5-2-codex/openai-gpt-5-2-codex.process.js +138 -0
- package/nodes/openai-gpt-5-2-codex/openai-gpt-5-2-codex.tests.json +57 -0
- package/nodes/openai-gpt-5-2-pro/openai-gpt-5-2-pro.config.json +169 -0
- package/nodes/openai-gpt-5-2-pro/openai-gpt-5-2-pro.process.js +138 -0
- package/nodes/openai-gpt-5-2-pro/openai-gpt-5-2-pro.tests.json +57 -0
- package/nodes/openai-gpt-5-3-chat/openai-gpt-5-3-chat.config.json +148 -0
- package/nodes/openai-gpt-5-3-chat/openai-gpt-5-3-chat.process.js +136 -0
- package/nodes/openai-gpt-5-3-chat/openai-gpt-5-3-chat.tests.json +57 -0
- package/nodes/openai-gpt-5-3-codex/openai-gpt-5-3-codex.config.json +170 -0
- package/nodes/openai-gpt-5-3-codex/openai-gpt-5-3-codex.process.js +138 -0
- package/nodes/openai-gpt-5-3-codex/openai-gpt-5-3-codex.tests.json +57 -0
- package/nodes/openai-gpt-5-4/openai-gpt-5-4.config.json +170 -0
- package/nodes/openai-gpt-5-4/openai-gpt-5-4.process.js +138 -0
- package/nodes/openai-gpt-5-4/openai-gpt-5-4.tests.json +57 -0
- package/nodes/openai-gpt-5-4-image-2/openai-gpt-5-4-image-2.config.json +153 -0
- package/nodes/openai-gpt-5-4-image-2/openai-gpt-5-4-image-2.process.js +58 -0
- package/nodes/openai-gpt-5-4-image-2/openai-gpt-5-4-image-2.tests.json +26 -0
- package/nodes/openai-gpt-5-4-mini/openai-gpt-5-4-mini.config.json +170 -0
- package/nodes/openai-gpt-5-4-mini/openai-gpt-5-4-mini.process.js +138 -0
- package/nodes/openai-gpt-5-4-mini/openai-gpt-5-4-mini.tests.json +57 -0
- package/nodes/openai-gpt-5-4-nano/openai-gpt-5-4-nano.config.json +170 -0
- package/nodes/openai-gpt-5-4-nano/openai-gpt-5-4-nano.process.js +138 -0
- package/nodes/openai-gpt-5-4-nano/openai-gpt-5-4-nano.tests.json +57 -0
- package/nodes/openai-gpt-5-4-pro/openai-gpt-5-4-pro.config.json +170 -0
- package/nodes/openai-gpt-5-4-pro/openai-gpt-5-4-pro.process.js +138 -0
- package/nodes/openai-gpt-5-4-pro/openai-gpt-5-4-pro.tests.json +57 -0
- package/nodes/openai-gpt-5-5/openai-gpt-5-5.config.json +170 -0
- package/nodes/openai-gpt-5-5/openai-gpt-5-5.process.js +138 -0
- package/nodes/openai-gpt-5-5/openai-gpt-5-5.tests.json +57 -0
- package/nodes/openai-gpt-5-5-pro/openai-gpt-5-5-pro.config.json +169 -0
- package/nodes/openai-gpt-5-5-pro/openai-gpt-5-5-pro.process.js +138 -0
- package/nodes/openai-gpt-5-5-pro/openai-gpt-5-5-pro.tests.json +57 -0
- package/nodes/openai-gpt-5-chat/openai-gpt-5-chat.config.json +96 -0
- package/nodes/openai-gpt-5-chat/openai-gpt-5-chat.process.js +51 -0
- package/nodes/openai-gpt-5-chat/openai-gpt-5-chat.tests.json +26 -0
- package/nodes/openai-gpt-5-codex/openai-gpt-5-codex.config.json +169 -0
- package/nodes/openai-gpt-5-codex/openai-gpt-5-codex.process.js +138 -0
- package/nodes/openai-gpt-5-codex/openai-gpt-5-codex.tests.json +57 -0
- package/nodes/openai-gpt-5-image/openai-gpt-5-image.config.json +169 -0
- package/nodes/openai-gpt-5-image/openai-gpt-5-image.process.js +58 -0
- package/nodes/openai-gpt-5-image/openai-gpt-5-image.tests.json +44 -0
- package/nodes/openai-gpt-5-image-mini/openai-gpt-5-image-mini.config.json +169 -0
- package/nodes/openai-gpt-5-image-mini/openai-gpt-5-image-mini.process.js +58 -0
- package/nodes/openai-gpt-5-image-mini/openai-gpt-5-image-mini.tests.json +44 -0
- package/nodes/openai-gpt-5-mini/openai-gpt-5-mini.config.json +170 -0
- package/nodes/openai-gpt-5-mini/openai-gpt-5-mini.process.js +138 -0
- package/nodes/openai-gpt-5-mini/openai-gpt-5-mini.tests.json +57 -0
- package/nodes/openai-gpt-5-nano/openai-gpt-5-nano.config.json +170 -0
- package/nodes/openai-gpt-5-nano/openai-gpt-5-nano.process.js +138 -0
- package/nodes/openai-gpt-5-nano/openai-gpt-5-nano.tests.json +57 -0
- package/nodes/openai-gpt-5-pro/openai-gpt-5-pro.config.json +169 -0
- package/nodes/openai-gpt-5-pro/openai-gpt-5-pro.process.js +138 -0
- package/nodes/openai-gpt-5-pro/openai-gpt-5-pro.tests.json +57 -0
- package/nodes/openai-gpt-audio/openai-gpt-audio.config.json +210 -0
- package/nodes/openai-gpt-audio/openai-gpt-audio.process.js +137 -0
- package/nodes/openai-gpt-audio/openai-gpt-audio.tests.json +80 -0
- package/nodes/openai-gpt-audio-mini/openai-gpt-audio-mini.config.json +210 -0
- package/nodes/openai-gpt-audio-mini/openai-gpt-audio-mini.process.js +137 -0
- package/nodes/openai-gpt-audio-mini/openai-gpt-audio-mini.tests.json +80 -0
- package/nodes/openai-gpt-chat-latest/openai-gpt-chat-latest.config.json +194 -0
- package/nodes/openai-gpt-chat-latest/openai-gpt-chat-latest.process.js +137 -0
- package/nodes/openai-gpt-chat-latest/openai-gpt-chat-latest.tests.json +57 -0
- package/nodes/openai-gpt-oss-120b/openai-gpt-oss-120b.config.json +235 -0
- package/nodes/openai-gpt-oss-120b/openai-gpt-oss-120b.process.js +139 -0
- package/nodes/openai-gpt-oss-120b/openai-gpt-oss-120b.tests.json +80 -0
- package/nodes/openai-gpt-oss-120b-free/openai-gpt-oss-120b-free.config.json +176 -0
- package/nodes/openai-gpt-oss-120b-free/openai-gpt-oss-120b-free.process.js +138 -0
- package/nodes/openai-gpt-oss-120b-free/openai-gpt-oss-120b-free.tests.json +80 -0
- package/nodes/openai-gpt-oss-20b/openai-gpt-oss-20b.config.json +235 -0
- package/nodes/openai-gpt-oss-20b/openai-gpt-oss-20b.process.js +139 -0
- package/nodes/openai-gpt-oss-20b/openai-gpt-oss-20b.tests.json +80 -0
- package/nodes/openai-gpt-oss-20b-free/openai-gpt-oss-20b-free.config.json +176 -0
- package/nodes/openai-gpt-oss-20b-free/openai-gpt-oss-20b-free.process.js +138 -0
- package/nodes/openai-gpt-oss-20b-free/openai-gpt-oss-20b-free.tests.json +80 -0
- package/nodes/openai-gpt-oss-safeguard-20b/openai-gpt-oss-safeguard-20b.config.json +192 -0
- package/nodes/openai-gpt-oss-safeguard-20b/openai-gpt-oss-safeguard-20b.process.js +138 -0
- package/nodes/openai-gpt-oss-safeguard-20b/openai-gpt-oss-safeguard-20b.tests.json +80 -0
- package/nodes/openai-o1/openai-o1.config.json +169 -0
- package/nodes/openai-o1/openai-o1.process.js +138 -0
- package/nodes/openai-o1/openai-o1.tests.json +57 -0
- package/nodes/openai-o1-pro/openai-o1-pro.config.json +118 -0
- package/nodes/openai-o1-pro/openai-o1-pro.process.js +53 -0
- package/nodes/openai-o1-pro/openai-o1-pro.tests.json +26 -0
- package/nodes/openai-o3/openai-o3.config.json +169 -0
- package/nodes/openai-o3/openai-o3.process.js +138 -0
- package/nodes/openai-o3/openai-o3.tests.json +57 -0
- package/nodes/openai-o3-deep-research/openai-o3-deep-research.config.json +244 -0
- package/nodes/openai-o3-deep-research/openai-o3-deep-research.process.js +141 -0
- package/nodes/openai-o3-deep-research/openai-o3-deep-research.tests.json +80 -0
- package/nodes/openai-o3-mini/openai-o3-mini.config.json +169 -0
- package/nodes/openai-o3-mini/openai-o3-mini.process.js +138 -0
- package/nodes/openai-o3-mini/openai-o3-mini.tests.json +57 -0
- package/nodes/openai-o3-mini-high/openai-o3-mini-high.config.json +169 -0
- package/nodes/openai-o3-mini-high/openai-o3-mini-high.process.js +138 -0
- package/nodes/openai-o3-mini-high/openai-o3-mini-high.tests.json +57 -0
- package/nodes/openai-o3-pro/openai-o3-pro.config.json +169 -0
- package/nodes/openai-o3-pro/openai-o3-pro.process.js +138 -0
- package/nodes/openai-o3-pro/openai-o3-pro.tests.json +57 -0
- package/nodes/openai-o4-mini/openai-o4-mini.config.json +169 -0
- package/nodes/openai-o4-mini/openai-o4-mini.process.js +138 -0
- package/nodes/openai-o4-mini/openai-o4-mini.tests.json +57 -0
- package/nodes/openai-o4-mini-deep-research/openai-o4-mini-deep-research.config.json +244 -0
- package/nodes/openai-o4-mini-deep-research/openai-o4-mini-deep-research.process.js +141 -0
- package/nodes/openai-o4-mini-deep-research/openai-o4-mini-deep-research.tests.json +80 -0
- package/nodes/openai-o4-mini-high/openai-o4-mini-high.config.json +169 -0
- package/nodes/openai-o4-mini-high/openai-o4-mini-high.process.js +138 -0
- package/nodes/openai-o4-mini-high/openai-o4-mini-high.tests.json +57 -0
- package/nodes/openai-omni-moderation-latest/openai-omni-moderation-latest.config.json +183 -0
- package/nodes/openai-omni-moderation-latest/openai-omni-moderation-latest.process.js +93 -0
- package/nodes/openai-omni-moderation-latest/openai-omni-moderation-latest.tests.json +103 -0
- package/nodes/openai-text-embedding-3-large/openai-text-embedding-3-large.config.json +90 -0
- package/nodes/openai-text-embedding-3-large/openai-text-embedding-3-large.process.js +36 -0
- package/nodes/openai-text-embedding-3-large/openai-text-embedding-3-large.tests.json +48 -0
- package/nodes/openai-text-embedding-3-small/openai-text-embedding-3-small.config.json +90 -0
- package/nodes/openai-text-embedding-3-small/openai-text-embedding-3-small.process.js +36 -0
- package/nodes/openai-text-embedding-3-small/openai-text-embedding-3-small.tests.json +48 -0
- package/nodes/openai-text-embedding-ada-002/openai-text-embedding-ada-002.config.json +90 -0
- package/nodes/openai-text-embedding-ada-002/openai-text-embedding-ada-002.process.js +36 -0
- package/nodes/openai-text-embedding-ada-002/openai-text-embedding-ada-002.tests.json +48 -0
- package/nodes/or-gate/or-gate.config.json +30 -0
- package/nodes/or-gate/or-gate.process.js +10 -0
- package/nodes/or-gate/or-gate.tests.json +22 -0
- package/nodes/output-chat/output-chat.config.json +49 -0
- package/nodes/output-chat/output-chat.process.js +20 -0
- package/nodes/output-data/output-data.config.json +59 -0
- package/nodes/output-data/output-data.process.js +10 -0
- package/nodes/parse-url/parse-url.config.json +72 -0
- package/nodes/parse-url/parse-url.process.js +61 -0
- package/nodes/parse-url/parse-url.tests.json +121 -0
- package/nodes/perplexity-pplx-embed-v1-0-6b/perplexity-pplx-embed-v1-0-6b.config.json +90 -0
- package/nodes/perplexity-pplx-embed-v1-0-6b/perplexity-pplx-embed-v1-0-6b.process.js +36 -0
- package/nodes/perplexity-pplx-embed-v1-0-6b/perplexity-pplx-embed-v1-0-6b.tests.json +48 -0
- package/nodes/perplexity-pplx-embed-v1-4b/perplexity-pplx-embed-v1-4b.config.json +90 -0
- package/nodes/perplexity-pplx-embed-v1-4b/perplexity-pplx-embed-v1-4b.process.js +36 -0
- package/nodes/perplexity-pplx-embed-v1-4b/perplexity-pplx-embed-v1-4b.tests.json +48 -0
- package/nodes/perplexity-sonar/perplexity-sonar.config.json +125 -0
- package/nodes/perplexity-sonar/perplexity-sonar.process.js +53 -0
- package/nodes/perplexity-sonar/perplexity-sonar.tests.json +44 -0
- package/nodes/perplexity-sonar-deep-research/perplexity-sonar-deep-research.config.json +175 -0
- package/nodes/perplexity-sonar-deep-research/perplexity-sonar-deep-research.process.js +140 -0
- package/nodes/perplexity-sonar-deep-research/perplexity-sonar-deep-research.tests.json +80 -0
- package/nodes/perplexity-sonar-pro/perplexity-sonar-pro.config.json +125 -0
- package/nodes/perplexity-sonar-pro/perplexity-sonar-pro.process.js +53 -0
- package/nodes/perplexity-sonar-pro/perplexity-sonar-pro.tests.json +44 -0
- package/nodes/perplexity-sonar-pro-search/perplexity-sonar-pro-search.config.json +148 -0
- package/nodes/perplexity-sonar-pro-search/perplexity-sonar-pro-search.process.js +55 -0
- package/nodes/perplexity-sonar-pro-search/perplexity-sonar-pro-search.tests.json +44 -0
- package/nodes/perplexity-sonar-reasoning-pro/perplexity-sonar-reasoning-pro.config.json +175 -0
- package/nodes/perplexity-sonar-reasoning-pro/perplexity-sonar-reasoning-pro.process.js +140 -0
- package/nodes/perplexity-sonar-reasoning-pro/perplexity-sonar-reasoning-pro.tests.json +80 -0
- package/nodes/pinecone-query/pinecone-query.config.json +69 -0
- package/nodes/pinecone-query/pinecone-query.process.js +22 -0
- package/nodes/pinecone-query/pinecone-query.tests.json +12 -0
- package/nodes/pinecone-upsert/pinecone-upsert.config.json +32 -0
- package/nodes/pinecone-upsert/pinecone-upsert.process.js +15 -0
- package/nodes/pinecone-upsert/pinecone-upsert.tests.json +13 -0
- package/nodes/power/power.config.json +30 -0
- package/nodes/power/power.process.js +9 -0
- package/nodes/power/power.tests.json +42 -0
- package/nodes/quartiles/quartiles.config.json +41 -0
- package/nodes/quartiles/quartiles.process.js +62 -0
- package/nodes/quartiles/quartiles.tests.json +69 -0
- package/nodes/query-knowledge-base/query-knowledge-base.config.json +81 -0
- package/nodes/query-knowledge-base/query-knowledge-base.process.js +35 -0
- package/nodes/qwen-qwen-2-5-72b-instruct/qwen-qwen-2-5-72b-instruct.config.json +191 -0
- package/nodes/qwen-qwen-2-5-72b-instruct/qwen-qwen-2-5-72b-instruct.process.js +136 -0
- package/nodes/qwen-qwen-2-5-72b-instruct/qwen-qwen-2-5-72b-instruct.tests.json +80 -0
- package/nodes/qwen-qwen-2-5-7b-instruct/qwen-qwen-2-5-7b-instruct.config.json +159 -0
- package/nodes/qwen-qwen-2-5-7b-instruct/qwen-qwen-2-5-7b-instruct.process.js +136 -0
- package/nodes/qwen-qwen-2-5-7b-instruct/qwen-qwen-2-5-7b-instruct.tests.json +80 -0
- package/nodes/qwen-qwen-2-5-coder-32b-instruct/qwen-qwen-2-5-coder-32b-instruct.config.json +159 -0
- package/nodes/qwen-qwen-2-5-coder-32b-instruct/qwen-qwen-2-5-coder-32b-instruct.process.js +136 -0
- package/nodes/qwen-qwen-2-5-coder-32b-instruct/qwen-qwen-2-5-coder-32b-instruct.tests.json +80 -0
- package/nodes/qwen-qwen-plus/qwen-qwen-plus.config.json +170 -0
- package/nodes/qwen-qwen-plus/qwen-qwen-plus.process.js +136 -0
- package/nodes/qwen-qwen-plus/qwen-qwen-plus.tests.json +80 -0
- package/nodes/qwen-qwen-plus-2025-07-28/qwen-qwen-plus-2025-07-28.config.json +171 -0
- package/nodes/qwen-qwen-plus-2025-07-28/qwen-qwen-plus-2025-07-28.process.js +136 -0
- package/nodes/qwen-qwen-plus-2025-07-28/qwen-qwen-plus-2025-07-28.tests.json +80 -0
- package/nodes/qwen-qwen-plus-2025-07-28-thinking/qwen-qwen-plus-2025-07-28-thinking.config.json +193 -0
- package/nodes/qwen-qwen-plus-2025-07-28-thinking/qwen-qwen-plus-2025-07-28-thinking.process.js +138 -0
- package/nodes/qwen-qwen-plus-2025-07-28-thinking/qwen-qwen-plus-2025-07-28-thinking.tests.json +80 -0
- package/nodes/qwen-qwen2-5-vl-72b-instruct/qwen-qwen2-5-vl-72b-instruct.config.json +139 -0
- package/nodes/qwen-qwen2-5-vl-72b-instruct/qwen-qwen2-5-vl-72b-instruct.process.js +51 -0
- package/nodes/qwen-qwen2-5-vl-72b-instruct/qwen-qwen2-5-vl-72b-instruct.tests.json +44 -0
- package/nodes/qwen-qwen3-14b/qwen-qwen3-14b.config.json +235 -0
- package/nodes/qwen-qwen3-14b/qwen-qwen3-14b.process.js +139 -0
- package/nodes/qwen-qwen3-14b/qwen-qwen3-14b.tests.json +80 -0
- package/nodes/qwen-qwen3-235b-a22b/qwen-qwen3-235b-a22b.config.json +192 -0
- package/nodes/qwen-qwen3-235b-a22b/qwen-qwen3-235b-a22b.process.js +138 -0
- package/nodes/qwen-qwen3-235b-a22b/qwen-qwen3-235b-a22b.tests.json +80 -0
- package/nodes/qwen-qwen3-235b-a22b-2507/qwen-qwen3-235b-a22b-2507.config.json +191 -0
- package/nodes/qwen-qwen3-235b-a22b-2507/qwen-qwen3-235b-a22b-2507.process.js +136 -0
- package/nodes/qwen-qwen3-235b-a22b-2507/qwen-qwen3-235b-a22b-2507.tests.json +80 -0
- package/nodes/qwen-qwen3-235b-a22b-thinking-2507/qwen-qwen3-235b-a22b-thinking-2507.config.json +213 -0
- package/nodes/qwen-qwen3-235b-a22b-thinking-2507/qwen-qwen3-235b-a22b-thinking-2507.process.js +138 -0
- package/nodes/qwen-qwen3-235b-a22b-thinking-2507/qwen-qwen3-235b-a22b-thinking-2507.tests.json +80 -0
- package/nodes/qwen-qwen3-30b-a3b/qwen-qwen3-30b-a3b.config.json +235 -0
- package/nodes/qwen-qwen3-30b-a3b/qwen-qwen3-30b-a3b.process.js +139 -0
- package/nodes/qwen-qwen3-30b-a3b/qwen-qwen3-30b-a3b.tests.json +80 -0
- package/nodes/qwen-qwen3-30b-a3b-instruct-2507/qwen-qwen3-30b-a3b-instruct-2507.config.json +191 -0
- package/nodes/qwen-qwen3-30b-a3b-instruct-2507/qwen-qwen3-30b-a3b-instruct-2507.process.js +136 -0
- package/nodes/qwen-qwen3-30b-a3b-instruct-2507/qwen-qwen3-30b-a3b-instruct-2507.tests.json +80 -0
- package/nodes/qwen-qwen3-30b-a3b-thinking-2507/qwen-qwen3-30b-a3b-thinking-2507.config.json +213 -0
- package/nodes/qwen-qwen3-30b-a3b-thinking-2507/qwen-qwen3-30b-a3b-thinking-2507.process.js +138 -0
- package/nodes/qwen-qwen3-30b-a3b-thinking-2507/qwen-qwen3-30b-a3b-thinking-2507.tests.json +80 -0
- package/nodes/qwen-qwen3-32b/qwen-qwen3-32b.config.json +213 -0
- package/nodes/qwen-qwen3-32b/qwen-qwen3-32b.process.js +138 -0
- package/nodes/qwen-qwen3-32b/qwen-qwen3-32b.tests.json +80 -0
- package/nodes/qwen-qwen3-5-122b-a10b/qwen-qwen3-5-122b-a10b.config.json +235 -0
- package/nodes/qwen-qwen3-5-122b-a10b/qwen-qwen3-5-122b-a10b.process.js +139 -0
- package/nodes/qwen-qwen3-5-122b-a10b/qwen-qwen3-5-122b-a10b.tests.json +80 -0
- package/nodes/qwen-qwen3-5-27b/qwen-qwen3-5-27b.config.json +235 -0
- package/nodes/qwen-qwen3-5-27b/qwen-qwen3-5-27b.process.js +139 -0
- package/nodes/qwen-qwen3-5-27b/qwen-qwen3-5-27b.tests.json +80 -0
- package/nodes/qwen-qwen3-5-35b-a3b/qwen-qwen3-5-35b-a3b.config.json +235 -0
- package/nodes/qwen-qwen3-5-35b-a3b/qwen-qwen3-5-35b-a3b.process.js +139 -0
- package/nodes/qwen-qwen3-5-35b-a3b/qwen-qwen3-5-35b-a3b.tests.json +80 -0
- package/nodes/qwen-qwen3-5-397b-a17b/qwen-qwen3-5-397b-a17b.config.json +235 -0
- package/nodes/qwen-qwen3-5-397b-a17b/qwen-qwen3-5-397b-a17b.process.js +139 -0
- package/nodes/qwen-qwen3-5-397b-a17b/qwen-qwen3-5-397b-a17b.tests.json +80 -0
- package/nodes/qwen-qwen3-5-9b/qwen-qwen3-5-9b.config.json +235 -0
- package/nodes/qwen-qwen3-5-9b/qwen-qwen3-5-9b.process.js +139 -0
- package/nodes/qwen-qwen3-5-9b/qwen-qwen3-5-9b.tests.json +80 -0
- package/nodes/qwen-qwen3-5-flash-02-23/qwen-qwen3-5-flash-02-23.config.json +193 -0
- package/nodes/qwen-qwen3-5-flash-02-23/qwen-qwen3-5-flash-02-23.process.js +138 -0
- package/nodes/qwen-qwen3-5-flash-02-23/qwen-qwen3-5-flash-02-23.tests.json +80 -0
- package/nodes/qwen-qwen3-5-plus-02-15/qwen-qwen3-5-plus-02-15.config.json +193 -0
- package/nodes/qwen-qwen3-5-plus-02-15/qwen-qwen3-5-plus-02-15.process.js +138 -0
- package/nodes/qwen-qwen3-5-plus-02-15/qwen-qwen3-5-plus-02-15.tests.json +80 -0
- package/nodes/qwen-qwen3-5-plus-20260420/qwen-qwen3-5-plus-20260420.config.json +193 -0
- package/nodes/qwen-qwen3-5-plus-20260420/qwen-qwen3-5-plus-20260420.process.js +138 -0
- package/nodes/qwen-qwen3-5-plus-20260420/qwen-qwen3-5-plus-20260420.tests.json +80 -0
- package/nodes/qwen-qwen3-6-27b/qwen-qwen3-6-27b.config.json +235 -0
- package/nodes/qwen-qwen3-6-27b/qwen-qwen3-6-27b.process.js +139 -0
- package/nodes/qwen-qwen3-6-27b/qwen-qwen3-6-27b.tests.json +80 -0
- package/nodes/qwen-qwen3-6-35b-a3b/qwen-qwen3-6-35b-a3b.config.json +235 -0
- package/nodes/qwen-qwen3-6-35b-a3b/qwen-qwen3-6-35b-a3b.process.js +139 -0
- package/nodes/qwen-qwen3-6-35b-a3b/qwen-qwen3-6-35b-a3b.tests.json +80 -0
- package/nodes/qwen-qwen3-6-flash/qwen-qwen3-6-flash.config.json +193 -0
- package/nodes/qwen-qwen3-6-flash/qwen-qwen3-6-flash.process.js +138 -0
- package/nodes/qwen-qwen3-6-flash/qwen-qwen3-6-flash.tests.json +80 -0
- package/nodes/qwen-qwen3-6-max-preview/qwen-qwen3-6-max-preview.config.json +215 -0
- package/nodes/qwen-qwen3-6-max-preview/qwen-qwen3-6-max-preview.process.js +139 -0
- package/nodes/qwen-qwen3-6-max-preview/qwen-qwen3-6-max-preview.tests.json +80 -0
- package/nodes/qwen-qwen3-6-plus/qwen-qwen3-6-plus.config.json +193 -0
- package/nodes/qwen-qwen3-6-plus/qwen-qwen3-6-plus.process.js +138 -0
- package/nodes/qwen-qwen3-6-plus/qwen-qwen3-6-plus.tests.json +80 -0
- package/nodes/qwen-qwen3-7-max/qwen-qwen3-7-max.config.json +215 -0
- package/nodes/qwen-qwen3-7-max/qwen-qwen3-7-max.process.js +139 -0
- package/nodes/qwen-qwen3-7-max/qwen-qwen3-7-max.tests.json +80 -0
- package/nodes/qwen-qwen3-7-plus/qwen-qwen3-7-plus.config.json +215 -0
- package/nodes/qwen-qwen3-7-plus/qwen-qwen3-7-plus.process.js +139 -0
- package/nodes/qwen-qwen3-7-plus/qwen-qwen3-7-plus.tests.json +80 -0
- package/nodes/qwen-qwen3-8b/qwen-qwen3-8b.config.json +213 -0
- package/nodes/qwen-qwen3-8b/qwen-qwen3-8b.process.js +138 -0
- package/nodes/qwen-qwen3-8b/qwen-qwen3-8b.tests.json +80 -0
- package/nodes/qwen-qwen3-coder/qwen-qwen3-coder.config.json +191 -0
- package/nodes/qwen-qwen3-coder/qwen-qwen3-coder.process.js +136 -0
- package/nodes/qwen-qwen3-coder/qwen-qwen3-coder.tests.json +80 -0
- package/nodes/qwen-qwen3-coder-30b-a3b-instruct/qwen-qwen3-coder-30b-a3b-instruct.config.json +189 -0
- package/nodes/qwen-qwen3-coder-30b-a3b-instruct/qwen-qwen3-coder-30b-a3b-instruct.process.js +136 -0
- package/nodes/qwen-qwen3-coder-30b-a3b-instruct/qwen-qwen3-coder-30b-a3b-instruct.tests.json +80 -0
- package/nodes/qwen-qwen3-coder-flash/qwen-qwen3-coder-flash.config.json +170 -0
- package/nodes/qwen-qwen3-coder-flash/qwen-qwen3-coder-flash.process.js +136 -0
- package/nodes/qwen-qwen3-coder-flash/qwen-qwen3-coder-flash.tests.json +80 -0
- package/nodes/qwen-qwen3-coder-free/qwen-qwen3-coder-free.config.json +171 -0
- package/nodes/qwen-qwen3-coder-free/qwen-qwen3-coder-free.process.js +136 -0
- package/nodes/qwen-qwen3-coder-free/qwen-qwen3-coder-free.tests.json +80 -0
- package/nodes/qwen-qwen3-coder-next/qwen-qwen3-coder-next.config.json +191 -0
- package/nodes/qwen-qwen3-coder-next/qwen-qwen3-coder-next.process.js +136 -0
- package/nodes/qwen-qwen3-coder-next/qwen-qwen3-coder-next.tests.json +80 -0
- package/nodes/qwen-qwen3-coder-plus/qwen-qwen3-coder-plus.config.json +171 -0
- package/nodes/qwen-qwen3-coder-plus/qwen-qwen3-coder-plus.process.js +136 -0
- package/nodes/qwen-qwen3-coder-plus/qwen-qwen3-coder-plus.tests.json +80 -0
- package/nodes/qwen-qwen3-embedding-4b/qwen-qwen3-embedding-4b.config.json +90 -0
- package/nodes/qwen-qwen3-embedding-4b/qwen-qwen3-embedding-4b.process.js +36 -0
- package/nodes/qwen-qwen3-embedding-4b/qwen-qwen3-embedding-4b.tests.json +48 -0
- package/nodes/qwen-qwen3-embedding-8b/qwen-qwen3-embedding-8b.config.json +90 -0
- package/nodes/qwen-qwen3-embedding-8b/qwen-qwen3-embedding-8b.process.js +36 -0
- package/nodes/qwen-qwen3-embedding-8b/qwen-qwen3-embedding-8b.tests.json +48 -0
- package/nodes/qwen-qwen3-max/qwen-qwen3-max.config.json +170 -0
- package/nodes/qwen-qwen3-max/qwen-qwen3-max.process.js +136 -0
- package/nodes/qwen-qwen3-max/qwen-qwen3-max.tests.json +80 -0
- package/nodes/qwen-qwen3-max-thinking/qwen-qwen3-max-thinking.config.json +193 -0
- package/nodes/qwen-qwen3-max-thinking/qwen-qwen3-max-thinking.process.js +138 -0
- package/nodes/qwen-qwen3-max-thinking/qwen-qwen3-max-thinking.tests.json +80 -0
- package/nodes/qwen-qwen3-next-80b-a3b-instruct/qwen-qwen3-next-80b-a3b-instruct.config.json +191 -0
- package/nodes/qwen-qwen3-next-80b-a3b-instruct/qwen-qwen3-next-80b-a3b-instruct.process.js +136 -0
- package/nodes/qwen-qwen3-next-80b-a3b-instruct/qwen-qwen3-next-80b-a3b-instruct.tests.json +80 -0
- package/nodes/qwen-qwen3-next-80b-a3b-instruct-free/qwen-qwen3-next-80b-a3b-instruct-free.config.json +180 -0
- package/nodes/qwen-qwen3-next-80b-a3b-instruct-free/qwen-qwen3-next-80b-a3b-instruct-free.process.js +136 -0
- package/nodes/qwen-qwen3-next-80b-a3b-instruct-free/qwen-qwen3-next-80b-a3b-instruct-free.tests.json +80 -0
- package/nodes/qwen-qwen3-next-80b-a3b-thinking/qwen-qwen3-next-80b-a3b-thinking.config.json +213 -0
- package/nodes/qwen-qwen3-next-80b-a3b-thinking/qwen-qwen3-next-80b-a3b-thinking.process.js +138 -0
- package/nodes/qwen-qwen3-next-80b-a3b-thinking/qwen-qwen3-next-80b-a3b-thinking.tests.json +80 -0
- package/nodes/qwen-qwen3-vl-235b-a22b-instruct/qwen-qwen3-vl-235b-a22b-instruct.config.json +191 -0
- package/nodes/qwen-qwen3-vl-235b-a22b-instruct/qwen-qwen3-vl-235b-a22b-instruct.process.js +136 -0
- package/nodes/qwen-qwen3-vl-235b-a22b-instruct/qwen-qwen3-vl-235b-a22b-instruct.tests.json +80 -0
- package/nodes/qwen-qwen3-vl-235b-a22b-thinking/qwen-qwen3-vl-235b-a22b-thinking.config.json +210 -0
- package/nodes/qwen-qwen3-vl-235b-a22b-thinking/qwen-qwen3-vl-235b-a22b-thinking.process.js +138 -0
- package/nodes/qwen-qwen3-vl-235b-a22b-thinking/qwen-qwen3-vl-235b-a22b-thinking.tests.json +80 -0
- package/nodes/qwen-qwen3-vl-30b-a3b-instruct/qwen-qwen3-vl-30b-a3b-instruct.config.json +191 -0
- package/nodes/qwen-qwen3-vl-30b-a3b-instruct/qwen-qwen3-vl-30b-a3b-instruct.process.js +136 -0
- package/nodes/qwen-qwen3-vl-30b-a3b-instruct/qwen-qwen3-vl-30b-a3b-instruct.tests.json +80 -0
- package/nodes/qwen-qwen3-vl-30b-a3b-thinking/qwen-qwen3-vl-30b-a3b-thinking.config.json +211 -0
- package/nodes/qwen-qwen3-vl-30b-a3b-thinking/qwen-qwen3-vl-30b-a3b-thinking.process.js +138 -0
- package/nodes/qwen-qwen3-vl-30b-a3b-thinking/qwen-qwen3-vl-30b-a3b-thinking.tests.json +80 -0
- package/nodes/qwen-qwen3-vl-32b-instruct/qwen-qwen3-vl-32b-instruct.config.json +170 -0
- package/nodes/qwen-qwen3-vl-32b-instruct/qwen-qwen3-vl-32b-instruct.process.js +136 -0
- package/nodes/qwen-qwen3-vl-32b-instruct/qwen-qwen3-vl-32b-instruct.tests.json +80 -0
- package/nodes/qwen-qwen3-vl-8b-instruct/qwen-qwen3-vl-8b-instruct.config.json +191 -0
- package/nodes/qwen-qwen3-vl-8b-instruct/qwen-qwen3-vl-8b-instruct.process.js +136 -0
- package/nodes/qwen-qwen3-vl-8b-instruct/qwen-qwen3-vl-8b-instruct.tests.json +80 -0
- package/nodes/qwen-qwen3-vl-8b-thinking/qwen-qwen3-vl-8b-thinking.config.json +193 -0
- package/nodes/qwen-qwen3-vl-8b-thinking/qwen-qwen3-vl-8b-thinking.process.js +138 -0
- package/nodes/qwen-qwen3-vl-8b-thinking/qwen-qwen3-vl-8b-thinking.tests.json +80 -0
- package/nodes/random-error/random-error.config.json +50 -0
- package/nodes/random-error/random-error.process.js +25 -0
- package/nodes/random-error/random-error.tests.json +38 -0
- package/nodes/random-number/random-number.config.json +66 -0
- package/nodes/random-number/random-number.process.js +67 -0
- package/nodes/random-number/random-number.tests.json +59 -0
- package/nodes/range/range.config.json +35 -0
- package/nodes/range/range.process.js +22 -0
- package/nodes/range/range.tests.json +68 -0
- package/nodes/read-website/read-website.config.json +71 -0
- package/nodes/remote-mcp-tool/remote-mcp-tool.config.json +21 -0
- package/nodes/resend-send-email/resend-send-email.config.json +74 -0
- package/nodes/resend-send-email/resend-send-email.process.js +26 -0
- package/nodes/resend-send-email/resend-send-email.tests.json +14 -0
- package/nodes/response-format/response-format.config.json +62 -0
- package/nodes/response-format/response-format.process.js +17 -0
- package/nodes/response-format/response-format.tests.json +233 -0
- package/nodes/round/round.config.json +23 -0
- package/nodes/round/round.process.js +8 -0
- package/nodes/round/round.tests.json +38 -0
- package/nodes/route/route.config.json +38 -0
- package/nodes/route/route.process.js +16 -0
- package/nodes/route/route.tests.json +90 -0
- package/nodes/search-internet/search-internet.config.json +71 -0
- package/nodes/self-healing-error/self-healing-error.config.json +43 -0
- package/nodes/self-healing-error/self-healing-error.process.js +31 -0
- package/nodes/self-healing-error/self-healing-error.tests.json +34 -0
- package/nodes/semantic-search/semantic-search.config.json +75 -0
- package/nodes/semantic-search/semantic-search.process.js +70 -0
- package/nodes/sendgrid-send-email/sendgrid-send-email.config.json +81 -0
- package/nodes/sendgrid-send-email/sendgrid-send-email.process.js +43 -0
- package/nodes/sendgrid-send-email/sendgrid-send-email.tests.json +41 -0
- package/nodes/sentence-transformers-all-minilm-l12-v2/sentence-transformers-all-minilm-l12-v2.config.json +90 -0
- package/nodes/sentence-transformers-all-minilm-l12-v2/sentence-transformers-all-minilm-l12-v2.process.js +36 -0
- package/nodes/sentence-transformers-all-minilm-l12-v2/sentence-transformers-all-minilm-l12-v2.tests.json +48 -0
- package/nodes/sentence-transformers-all-minilm-l6-v2/sentence-transformers-all-minilm-l6-v2.config.json +90 -0
- package/nodes/sentence-transformers-all-minilm-l6-v2/sentence-transformers-all-minilm-l6-v2.process.js +36 -0
- package/nodes/sentence-transformers-all-minilm-l6-v2/sentence-transformers-all-minilm-l6-v2.tests.json +48 -0
- package/nodes/sentence-transformers-all-mpnet-base-v2/sentence-transformers-all-mpnet-base-v2.config.json +90 -0
- package/nodes/sentence-transformers-all-mpnet-base-v2/sentence-transformers-all-mpnet-base-v2.process.js +36 -0
- package/nodes/sentence-transformers-all-mpnet-base-v2/sentence-transformers-all-mpnet-base-v2.tests.json +48 -0
- package/nodes/sentence-transformers-multi-qa-mpnet-base-dot-v1/sentence-transformers-multi-qa-mpnet-base-dot-v1.config.json +90 -0
- package/nodes/sentence-transformers-multi-qa-mpnet-base-dot-v1/sentence-transformers-multi-qa-mpnet-base-dot-v1.process.js +36 -0
- package/nodes/sentence-transformers-multi-qa-mpnet-base-dot-v1/sentence-transformers-multi-qa-mpnet-base-dot-v1.tests.json +48 -0
- package/nodes/sentence-transformers-paraphrase-minilm-l6-v2/sentence-transformers-paraphrase-minilm-l6-v2.config.json +90 -0
- package/nodes/sentence-transformers-paraphrase-minilm-l6-v2/sentence-transformers-paraphrase-minilm-l6-v2.process.js +36 -0
- package/nodes/sentence-transformers-paraphrase-minilm-l6-v2/sentence-transformers-paraphrase-minilm-l6-v2.tests.json +48 -0
- package/nodes/set-object-property/set-object-property.config.json +70 -0
- package/nodes/set-object-property/set-object-property.process.js +55 -0
- package/nodes/set-object-property/set-object-property.tests.json +173 -0
- package/nodes/simple-agent/simple-agent.config.json +121 -0
- package/nodes/simple-agent/simple-agent.process.js +121 -0
- package/nodes/simple-agent/simple-agent.tests.json +28 -0
- package/nodes/slack-send-message/slack-send-message.config.json +51 -0
- package/nodes/slack-send-message/slack-send-message.process.js +19 -0
- package/nodes/slack-send-message/slack-send-message.tests.json +13 -0
- package/nodes/split-into-chunks/split-into-chunks.config.json +54 -0
- package/nodes/split-into-chunks/split-into-chunks.process.js +42 -0
- package/nodes/split-into-chunks/split-into-chunks.tests.json +74 -0
- package/nodes/standard-deviation/standard-deviation.config.json +29 -0
- package/nodes/standard-deviation/standard-deviation.process.js +35 -0
- package/nodes/standard-deviation/standard-deviation.tests.json +49 -0
- package/nodes/string/string.config.json +39 -0
- package/nodes/string/string.process.js +14 -0
- package/nodes/string/string.tests.json +56 -0
- package/nodes/string-case/string-case.config.json +33 -0
- package/nodes/string-case/string-case.process.js +46 -0
- package/nodes/string-case/string-case.tests.json +44 -0
- package/nodes/string-concat/string-concat.config.json +30 -0
- package/nodes/string-concat/string-concat.process.js +9 -0
- package/nodes/string-concat/string-concat.tests.json +12 -0
- package/nodes/string-contains/string-contains.config.json +45 -0
- package/nodes/string-contains/string-contains.process.js +19 -0
- package/nodes/string-contains/string-contains.tests.json +58 -0
- package/nodes/string-length/string-length.config.json +23 -0
- package/nodes/string-length/string-length.process.js +5 -0
- package/nodes/string-length/string-length.tests.json +22 -0
- package/nodes/string-match/string-match.config.json +58 -0
- package/nodes/string-match/string-match.process.js +32 -0
- package/nodes/string-match/string-match.tests.json +82 -0
- package/nodes/string-replace/string-replace.config.json +53 -0
- package/nodes/string-replace/string-replace.process.js +19 -0
- package/nodes/string-replace/string-replace.tests.json +62 -0
- package/nodes/string-split/string-split.config.json +39 -0
- package/nodes/string-split/string-split.process.js +12 -0
- package/nodes/string-split/string-split.tests.json +26 -0
- package/nodes/string-substring/string-substring.config.json +37 -0
- package/nodes/string-substring/string-substring.process.js +10 -0
- package/nodes/string-substring/string-substring.tests.json +44 -0
- package/nodes/string-template/string-template.config.json +39 -0
- package/nodes/string-template/string-template.process.js +15 -0
- package/nodes/string-template/string-template.tests.json +63 -0
- package/nodes/string-trim/string-trim.config.json +40 -0
- package/nodes/string-trim/string-trim.process.js +22 -0
- package/nodes/string-trim/string-trim.tests.json +38 -0
- package/nodes/strip-html/strip-html.config.json +40 -0
- package/nodes/strip-html/strip-html.process.js +61 -0
- package/nodes/strip-html/strip-html.tests.json +94 -0
- package/nodes/stripe-list-customers/stripe-list-customers.config.json +52 -0
- package/nodes/stripe-list-customers/stripe-list-customers.process.js +18 -0
- package/nodes/stripe-list-customers/stripe-list-customers.tests.json +24 -0
- package/nodes/subtract/subtract.config.json +31 -0
- package/nodes/subtract/subtract.process.js +15 -0
- package/nodes/subtract/subtract.tests.json +41 -0
- package/nodes/supabase-query/supabase-query.config.json +67 -0
- package/nodes/supabase-query/supabase-query.process.js +21 -0
- package/nodes/supabase-query/supabase-query.tests.json +14 -0
- package/nodes/switch/switch.config.json +59 -0
- package/nodes/switch/switch.process.js +40 -0
- package/nodes/switch/switch.tests.json +85 -0
- package/nodes/system-prompt/system-prompt.config.json +54 -0
- package/nodes/system-prompt/system-prompt.process.js +62 -0
- package/nodes/temperature/temperature.config.json +46 -0
- package/nodes/temperature/temperature.process.js +16 -0
- package/nodes/temperature/temperature.tests.json +47 -0
- package/nodes/text-scratch-pad/text-scratch-pad.config.json +63 -0
- package/nodes/text-scratch-pad/text-scratch-pad.process.js +40 -0
- package/nodes/text-scratch-pad/text-scratch-pad.tests.json +131 -0
- package/nodes/text-to-conversation/text-to-conversation.config.json +46 -0
- package/nodes/text-to-conversation/text-to-conversation.process.js +50 -0
- package/nodes/text-to-conversation/text-to-conversation.tests.json +132 -0
- package/nodes/thenlper-gte-base/thenlper-gte-base.config.json +90 -0
- package/nodes/thenlper-gte-base/thenlper-gte-base.process.js +36 -0
- package/nodes/thenlper-gte-base/thenlper-gte-base.tests.json +48 -0
- package/nodes/thenlper-gte-large/thenlper-gte-large.config.json +90 -0
- package/nodes/thenlper-gte-large/thenlper-gte-large.process.js +36 -0
- package/nodes/thenlper-gte-large/thenlper-gte-large.tests.json +48 -0
- package/nodes/throw-error/throw-error.config.json +36 -0
- package/nodes/throw-error/throw-error.process.js +24 -0
- package/nodes/throw-error/throw-error.tests.json +44 -0
- package/nodes/time-adder/time-adder.config.json +81 -0
- package/nodes/time-adder/time-adder.process.js +111 -0
- package/nodes/time-adder/time-adder.tests.json +158 -0
- package/nodes/timestamp/timestamp.config.json +45 -0
- package/nodes/timestamp/timestamp.process.js +71 -0
- package/nodes/timestamp/timestamp.tests.json +90 -0
- package/nodes/token-count/token-count.config.json +24 -0
- package/nodes/token-count/token-count.process.js +74 -0
- package/nodes/token-count/token-count.tests.json +163 -0
- package/nodes/tokenizer/tokenizer.config.json +38 -0
- package/nodes/tokenizer/tokenizer.process.js +74 -0
- package/nodes/tokenizer/tokenizer.tests.json +129 -0
- package/nodes/tool/tool.config.json +60 -0
- package/nodes/tool/tool.process.js +26 -0
- package/nodes/tool-cleanup/tool-cleanup.config.json +30 -0
- package/nodes/tool-cleanup/tool-cleanup.process.js +99 -0
- package/nodes/tool-cleanup/tool-cleanup.tests.json +160 -0
- package/nodes/truncate-by-tokens/truncate-by-tokens.config.json +57 -0
- package/nodes/truncate-by-tokens/truncate-by-tokens.process.js +72 -0
- package/nodes/truncate-by-tokens/truncate-by-tokens.tests.json +84 -0
- package/nodes/truncate-by-tokens-from-start/truncate-by-tokens-from-start.config.json +57 -0
- package/nodes/truncate-by-tokens-from-start/truncate-by-tokens-from-start.process.js +72 -0
- package/nodes/truncate-by-tokens-from-start/truncate-by-tokens-from-start.tests.json +84 -0
- package/nodes/truncate-by-tokens-preserve-system/truncate-by-tokens-preserve-system.config.json +71 -0
- package/nodes/truncate-by-tokens-preserve-system/truncate-by-tokens-preserve-system.process.js +130 -0
- package/nodes/truncate-by-tokens-preserve-system/truncate-by-tokens-preserve-system.tests.json +144 -0
- package/nodes/truncate-old-tool-responses/truncate-old-tool-responses.config.json +46 -0
- package/nodes/truncate-old-tool-responses/truncate-old-tool-responses.process.js +40 -0
- package/nodes/truncate-old-tool-responses/truncate-old-tool-responses.tests.json +207 -0
- package/nodes/truncate-text/truncate-text.config.json +68 -0
- package/nodes/truncate-text/truncate-text.process.js +77 -0
- package/nodes/truncate-text/truncate-text.tests.json +115 -0
- package/nodes/twilio-send-sms/twilio-send-sms.config.json +45 -0
- package/nodes/twilio-send-sms/twilio-send-sms.process.js +17 -0
- package/nodes/twilio-send-sms/twilio-send-sms.tests.json +14 -0
- package/nodes/untokenizer/untokenizer.config.json +38 -0
- package/nodes/untokenizer/untokenizer.process.js +46 -0
- package/nodes/untokenizer/untokenizer.tests.json +83 -0
- package/nodes/word-count/word-count.config.json +54 -0
- package/nodes/word-count/word-count.process.js +40 -0
- package/nodes/word-count/word-count.tests.json +100 -0
- package/nodes/x-ai-grok-4-20/x-ai-grok-4-20.config.json +207 -0
- package/nodes/x-ai-grok-4-20/x-ai-grok-4-20.process.js +139 -0
- package/nodes/x-ai-grok-4-20/x-ai-grok-4-20.tests.json +80 -0
- package/nodes/x-ai-grok-4-20-multi-agent/x-ai-grok-4-20-multi-agent.config.json +156 -0
- package/nodes/x-ai-grok-4-20-multi-agent/x-ai-grok-4-20-multi-agent.process.js +54 -0
- package/nodes/x-ai-grok-4-20-multi-agent/x-ai-grok-4-20-multi-agent.tests.json +44 -0
- package/nodes/x-ai-grok-4-3/x-ai-grok-4-3.config.json +231 -0
- package/nodes/x-ai-grok-4-3/x-ai-grok-4-3.process.js +139 -0
- package/nodes/x-ai-grok-4-3/x-ai-grok-4-3.tests.json +80 -0
- package/nodes/x-ai-grok-build-0-1/x-ai-grok-build-0-1.config.json +231 -0
- package/nodes/x-ai-grok-build-0-1/x-ai-grok-build-0-1.process.js +139 -0
- package/nodes/x-ai-grok-build-0-1/x-ai-grok-build-0-1.tests.json +80 -0
- package/nodes/xml-to-json/xml-to-json.config.json +44 -0
- package/nodes/xml-to-json/xml-to-json.process.js +163 -0
- package/nodes/xml-to-json/xml-to-json.tests.json +113 -0
- package/nodes/xnor-gate/xnor-gate.config.json +30 -0
- package/nodes/xnor-gate/xnor-gate.process.js +10 -0
- package/nodes/xnor-gate/xnor-gate.tests.json +22 -0
- package/nodes/xor-gate/xor-gate.config.json +30 -0
- package/nodes/xor-gate/xor-gate.process.js +10 -0
- package/nodes/xor-gate/xor-gate.tests.json +22 -0
- package/nodes/yaml-to-json/yaml-to-json.config.json +36 -0
- package/nodes/yaml-to-json/yaml-to-json.process.js +178 -0
- package/nodes/yaml-to-json/yaml-to-json.tests.json +112 -0
- package/package.json +37 -0
- package/src/classes/ErrorManager.js +234 -0
- package/src/index.js +2998 -0
- package/src/integrations/airtable.js +192 -0
- package/src/integrations/confluence.js +87 -0
- package/src/integrations/firecrawl.js +157 -0
- package/src/integrations/github.js +80 -0
- package/src/integrations/google_custom_search.js +136 -0
- package/src/integrations/hubspot.js +282 -0
- package/src/integrations/jira.js +115 -0
- package/src/integrations/knowledge-base-interface.js +119 -0
- package/src/integrations/linear.js +134 -0
- package/src/integrations/newsdata_io.js +201 -0
- package/src/integrations/notion.js +208 -0
- package/src/integrations/openai.js +185 -0
- package/src/integrations/openrouter.js +751 -0
- package/src/integrations/pinecone.js +80 -0
- package/src/integrations/resend.js +76 -0
- package/src/integrations/sendgrid.js +118 -0
- package/src/integrations/slack.js +70 -0
- package/src/integrations/sqlite.js +477 -0
- package/src/integrations/stripe.js +78 -0
- package/src/integrations/supabase.js +104 -0
- package/src/integrations/twilio.js +66 -0
- package/src/types/README.md +181 -0
- package/src/types/content.converters.js +21 -0
- package/src/types/content.json +31 -0
- package/src/types/conversation.converters.js +148 -0
- package/src/types/conversation.json +51 -0
- package/src/types/message.converters.js +45 -0
- package/src/types/message.json +47 -0
- package/src/types/plugin.converters.js +28 -0
- package/src/types/plugin.json +10 -0
- package/src/types/tool.converters.js +28 -0
- package/src/types/tool.json +18 -0
- package/src/utilities/cache.js +381 -0
- package/src/utilities/helpers.js +87 -0
- package/src/utilities/loaders.js +900 -0
- package/src/utilities/mcp.js +165 -0
- package/src/utilities/oauth.js +280 -0
- package/src/utilities/sanitizeAPICall.js +63 -0
- package/src/utilities/typeConverters.js +34 -0
- package/src/utilities/typers.js +484 -0
- package/src/utilities/validators.js +124 -0
- package/types/content.json +31 -0
- package/types/conversation.json +51 -0
- package/types/message.json +47 -0
- package/types/plugin.json +10 -0
- package/types/tool.json +18 -0
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
import sqlite3 from 'sqlite3';
|
|
2
|
+
import { promisify } from 'util';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
import fs from 'fs';
|
|
5
|
+
import { KnowledgeBaseInterface } from './knowledge-base-interface.js';
|
|
6
|
+
|
|
7
|
+
// Import sqlite-vec extension
|
|
8
|
+
import * as sqliteVec from 'sqlite-vec';
|
|
9
|
+
|
|
10
|
+
export default class SQLiteIntegration extends KnowledgeBaseInterface {
|
|
11
|
+
constructor(dbPath, options = {}) {
|
|
12
|
+
super(); // Call parent constructor first
|
|
13
|
+
this.dbPath = dbPath;
|
|
14
|
+
this.options = {
|
|
15
|
+
// Default options
|
|
16
|
+
timeout: 5000, // 5 second timeout for queries
|
|
17
|
+
...options
|
|
18
|
+
};
|
|
19
|
+
this.db = null;
|
|
20
|
+
this.isConnected = false;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Initialize the database connection
|
|
25
|
+
* @returns {Promise<void>}
|
|
26
|
+
*/
|
|
27
|
+
async connect() {
|
|
28
|
+
try {
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
// Check if database file exists
|
|
32
|
+
if (!fs.existsSync(this.dbPath)) {
|
|
33
|
+
throw new Error(`Database file not found: ${this.dbPath}`);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Create database connection
|
|
37
|
+
this.db = new sqlite3.Database(this.dbPath, (err) => {
|
|
38
|
+
if (err) {
|
|
39
|
+
throw new Error(`Failed to connect to database: ${err.message}`);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
// Promisify the database methods
|
|
44
|
+
this.db.run = promisify(this.db.run.bind(this.db));
|
|
45
|
+
this.db.get = promisify(this.db.get.bind(this.db));
|
|
46
|
+
this.db.all = promisify(this.db.all.bind(this.db));
|
|
47
|
+
this.db.close = promisify(this.db.close.bind(this.db));
|
|
48
|
+
|
|
49
|
+
// Load sqlite-vec extension
|
|
50
|
+
try {
|
|
51
|
+
sqliteVec.load(this.db);
|
|
52
|
+
} catch (error) {
|
|
53
|
+
console.warn('[WARN] Failed to load sqlite-vec extension:', error.message);
|
|
54
|
+
// Don't fail the connection, just warn
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Test the connection
|
|
58
|
+
await this.db.get("SELECT 1");
|
|
59
|
+
this.isConnected = true;
|
|
60
|
+
|
|
61
|
+
} catch (error) {
|
|
62
|
+
this.isConnected = false;
|
|
63
|
+
throw new Error(`SQLite connection failed: ${error.message}`);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Close the database connection and clean up temporary files
|
|
69
|
+
* @returns {Promise<void>}
|
|
70
|
+
*/
|
|
71
|
+
async disconnect() {
|
|
72
|
+
if (this.db && this.isConnected) {
|
|
73
|
+
try {
|
|
74
|
+
await this.db.close();
|
|
75
|
+
this.isConnected = false;
|
|
76
|
+
} catch (error) {
|
|
77
|
+
throw new Error(`Failed to close database: ${error.message}`);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Clean up temporary file if it exists
|
|
82
|
+
if (this.dbPath && (this.dbPath.includes('.temp') || this.dbPath.includes('knowledge_'))) {
|
|
83
|
+
try {
|
|
84
|
+
if (fs.existsSync(this.dbPath)) {
|
|
85
|
+
fs.unlinkSync(this.dbPath);
|
|
86
|
+
}
|
|
87
|
+
} catch (error) {
|
|
88
|
+
console.warn(`[WARN] Failed to cleanup temporary file ${this.dbPath}:`, error.message);
|
|
89
|
+
// Don't throw - cleanup should be best effort
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Execute a raw SQL query
|
|
96
|
+
* @param {string} query - SQL query to execute
|
|
97
|
+
* @param {Array} params - Query parameters for parameterized queries
|
|
98
|
+
* @param {string} operation - Type of operation (SELECT, INSERT, UPDATE, DELETE)
|
|
99
|
+
* @returns {Promise<Object>} Query result
|
|
100
|
+
*/
|
|
101
|
+
async query(query, params = [], operation = 'SELECT') {
|
|
102
|
+
if (!this.isConnected) {
|
|
103
|
+
await this.connect();
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
try {
|
|
107
|
+
// Basic SQL injection prevention - only allow certain operations
|
|
108
|
+
const allowedOperations = ['SELECT', 'INSERT', 'UPDATE', 'DELETE', 'CREATE', 'DROP', 'ALTER'];
|
|
109
|
+
const queryUpper = query.trim().toUpperCase();
|
|
110
|
+
const isAllowed = allowedOperations.some(op => queryUpper.startsWith(op));
|
|
111
|
+
|
|
112
|
+
if (!isAllowed) {
|
|
113
|
+
throw new Error(`Operation not allowed: ${queryUpper.split(' ')[0]}`);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// Execute query based on operation type
|
|
117
|
+
let result;
|
|
118
|
+
if (operation.toUpperCase() === 'SELECT') {
|
|
119
|
+
if (queryUpper.includes('LIMIT 1')) {
|
|
120
|
+
result = await this.db.get(query, params);
|
|
121
|
+
} else {
|
|
122
|
+
result = await this.db.all(query, params);
|
|
123
|
+
}
|
|
124
|
+
} else {
|
|
125
|
+
result = await this.db.run(query, params);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
success: true,
|
|
130
|
+
data: result,
|
|
131
|
+
operation: operation.toUpperCase(),
|
|
132
|
+
rowCount: result?.changes || (Array.isArray(result) ? result.length : 0)
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
} catch (error) {
|
|
136
|
+
throw new Error(`SQLite query failed: ${error.message}`);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Execute a SELECT query with parameterized values
|
|
142
|
+
* @param {string} query - SQL SELECT query
|
|
143
|
+
* @param {Array} params - Query parameters
|
|
144
|
+
* @returns {Promise<Array>} Query results
|
|
145
|
+
*/
|
|
146
|
+
async select(query, params = []) {
|
|
147
|
+
const result = await this.query(query, params, 'SELECT');
|
|
148
|
+
return result.data || [];
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Execute an INSERT query
|
|
153
|
+
* @param {string} query - SQL INSERT query
|
|
154
|
+
* @param {Array} params - Query parameters
|
|
155
|
+
* @returns {Promise<Object>} Insert result with lastID
|
|
156
|
+
*/
|
|
157
|
+
async insert(query, params = []) {
|
|
158
|
+
const result = await this.query(query, params, 'INSERT');
|
|
159
|
+
return {
|
|
160
|
+
success: result.success,
|
|
161
|
+
lastID: result.data?.lastID,
|
|
162
|
+
changes: result.data?.changes
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Execute an UPDATE query
|
|
168
|
+
* @param {string} query - SQL UPDATE query
|
|
169
|
+
* @param {Array} params - Query parameters
|
|
170
|
+
* @returns {Promise<Object>} Update result with changes count
|
|
171
|
+
*/
|
|
172
|
+
async update(query, params = []) {
|
|
173
|
+
const result = await this.query(query, params, 'UPDATE');
|
|
174
|
+
return {
|
|
175
|
+
success: result.success,
|
|
176
|
+
changes: result.data?.changes
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Execute a DELETE query
|
|
182
|
+
* @param {string} query - SQL DELETE query
|
|
183
|
+
* @param {Array} params - Query parameters
|
|
184
|
+
* @returns {Promise<Object>} Delete result with changes count
|
|
185
|
+
*/
|
|
186
|
+
async delete(query, params = []) {
|
|
187
|
+
const result = await this.query(query, params, 'DELETE');
|
|
188
|
+
return {
|
|
189
|
+
success: result.success,
|
|
190
|
+
changes: result.data?.changes
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Get database schema information
|
|
196
|
+
* @returns {Promise<Object>} Schema information
|
|
197
|
+
*/
|
|
198
|
+
async getSchema() {
|
|
199
|
+
const tables = await this.select(`
|
|
200
|
+
SELECT name FROM sqlite_master
|
|
201
|
+
WHERE type='table' AND name NOT LIKE 'sqlite_%'
|
|
202
|
+
ORDER BY name
|
|
203
|
+
`);
|
|
204
|
+
|
|
205
|
+
const schema = {};
|
|
206
|
+
for (const table of tables) {
|
|
207
|
+
const columns = await this.select(`PRAGMA table_info(${table.name})`);
|
|
208
|
+
schema[table.name] = columns;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
return schema;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Check if the database has the expected knowledge base schema
|
|
216
|
+
* @returns {Promise<Object>} Schema validation result
|
|
217
|
+
*/
|
|
218
|
+
async validateKnowledgeBaseSchema() {
|
|
219
|
+
try {
|
|
220
|
+
const schema = await this.getSchema();
|
|
221
|
+
|
|
222
|
+
const hasDocuments = 'documents' in schema;
|
|
223
|
+
const hasChunks = 'chunks' in schema;
|
|
224
|
+
|
|
225
|
+
if (!hasDocuments || !hasChunks) {
|
|
226
|
+
return {
|
|
227
|
+
valid: false,
|
|
228
|
+
missing: {
|
|
229
|
+
documents: !hasDocuments,
|
|
230
|
+
chunks: !hasChunks
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
// Check for required columns in documents table
|
|
236
|
+
const documentsColumns = schema.documents.map(col => col.name);
|
|
237
|
+
const requiredDocColumns = ['id', 'display_name', 'file_type', 'file_size', 'created_by', 'created_at', 'updated_at'];
|
|
238
|
+
const missingDocColumns = requiredDocColumns.filter(col => !documentsColumns.includes(col));
|
|
239
|
+
|
|
240
|
+
// Check for required columns in chunks table
|
|
241
|
+
const chunksColumns = schema.chunks.map(col => col.name);
|
|
242
|
+
const requiredChunkColumns = ['id', 'document_id', 'chunk_index', 'content', 'created_at', 'updated_at'];
|
|
243
|
+
const missingChunkColumns = requiredChunkColumns.filter(col => !chunksColumns.includes(col));
|
|
244
|
+
|
|
245
|
+
return {
|
|
246
|
+
valid: missingDocColumns.length === 0 && missingChunkColumns.length === 0,
|
|
247
|
+
missing: {
|
|
248
|
+
documents: missingDocColumns,
|
|
249
|
+
chunks: missingChunkColumns
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
} catch (error) {
|
|
254
|
+
return {
|
|
255
|
+
valid: false,
|
|
256
|
+
error: error.message
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Get basic statistics about the knowledge base
|
|
263
|
+
* @returns {Promise<Object>} Knowledge base statistics
|
|
264
|
+
*/
|
|
265
|
+
async getStats() {
|
|
266
|
+
try {
|
|
267
|
+
const docCount = await this.select('SELECT COUNT(*) as count FROM documents');
|
|
268
|
+
const chunkCount = await this.select('SELECT COUNT(*) as count FROM chunks');
|
|
269
|
+
const totalSize = await this.select('SELECT SUM(file_size) as total_size FROM documents');
|
|
270
|
+
|
|
271
|
+
return {
|
|
272
|
+
documents: docCount[0]?.count || 0,
|
|
273
|
+
chunks: chunkCount[0]?.count || 0,
|
|
274
|
+
totalSize: totalSize[0]?.total_size || 0
|
|
275
|
+
};
|
|
276
|
+
} catch (error) {
|
|
277
|
+
throw new Error(`Failed to get knowledge base stats: ${error.message}`);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Get the embedding model used by this knowledge base
|
|
283
|
+
* @returns {Promise<string>} Embedding model name
|
|
284
|
+
*/
|
|
285
|
+
async getEmbeddingModel() {
|
|
286
|
+
try {
|
|
287
|
+
const recentChunk = await this.select(
|
|
288
|
+
'SELECT embedding_model FROM chunks WHERE embedding_model IS NOT NULL ORDER BY created_at DESC LIMIT 1'
|
|
289
|
+
);
|
|
290
|
+
|
|
291
|
+
if (recentChunk.length > 0 && recentChunk[0].embedding_model) {
|
|
292
|
+
return recentChunk[0].embedding_model;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
// Fall back to default
|
|
296
|
+
return 'text-embedding-3-small';
|
|
297
|
+
} catch (error) {
|
|
298
|
+
console.warn('[WARN] Failed to get embedding model from database, using default:', error.message);
|
|
299
|
+
return 'text-embedding-3-small';
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Perform semantic search using vector similarity
|
|
305
|
+
* @param {string} query - Text query to search for
|
|
306
|
+
* @param {Object} options - Search options
|
|
307
|
+
* @param {number} options.limit - Maximum number of results (default: 10)
|
|
308
|
+
* @param {number} options.similarity_threshold - Minimum similarity score (default: 0.7)
|
|
309
|
+
* @param {string} options.document_id - Filter by specific document
|
|
310
|
+
* @param {string} options.embedding_model - Model to use for query embedding
|
|
311
|
+
* @returns {Promise<Array>} Search results with similarity scores
|
|
312
|
+
*/
|
|
313
|
+
async semanticSearch(query, options = {}) {
|
|
314
|
+
const {
|
|
315
|
+
limit = 10,
|
|
316
|
+
similarity_threshold = 0.7,
|
|
317
|
+
document_id = null,
|
|
318
|
+
embedding_model = null
|
|
319
|
+
} = options;
|
|
320
|
+
|
|
321
|
+
try {
|
|
322
|
+
if (!this.isConnected) {
|
|
323
|
+
await this.connect();
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
// Get the embedding model to use
|
|
327
|
+
let modelToUse = embedding_model;
|
|
328
|
+
if (!modelToUse) {
|
|
329
|
+
try {
|
|
330
|
+
modelToUse = await this.getEmbeddingModel();
|
|
331
|
+
} catch (error) {
|
|
332
|
+
console.warn('[WARN] Failed to get embedding model from database, using default:', error.message);
|
|
333
|
+
modelToUse = 'text-embedding-3-small';
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
// Check if sqlite-vec extension is loaded
|
|
338
|
+
try {
|
|
339
|
+
await this.db.get("SELECT vec_version()");
|
|
340
|
+
} catch (error) {
|
|
341
|
+
console.warn('[WARN] sqlite-vec extension not loaded properly, falling back to text search');
|
|
342
|
+
return await this._fallbackTextSearch(query, options);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
// Check if query embedding is provided (generated by the calling semantic search node)
|
|
346
|
+
if (!options.query_embedding) {
|
|
347
|
+
console.warn('[WARN] No query embedding provided, falling back to text search');
|
|
348
|
+
return await this._fallbackTextSearch(query, options);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
const queryEmbedding = options.query_embedding;
|
|
352
|
+
const embeddingDimensions = queryEmbedding.length;
|
|
353
|
+
const queryEmbeddingString = JSON.stringify(queryEmbedding);
|
|
354
|
+
|
|
355
|
+
// Build the KNN query using sqlite-vec scalar functions
|
|
356
|
+
let searchSql = `
|
|
357
|
+
SELECT
|
|
358
|
+
c.id,
|
|
359
|
+
c.document_id,
|
|
360
|
+
c.chunk_index,
|
|
361
|
+
c.content,
|
|
362
|
+
c.token_count,
|
|
363
|
+
c.chunk_type,
|
|
364
|
+
c.metadata,
|
|
365
|
+
c.embedding_model,
|
|
366
|
+
c.embedding_dimensions,
|
|
367
|
+
c.embedding,
|
|
368
|
+
c.created_at,
|
|
369
|
+
d.display_name as document_name,
|
|
370
|
+
d.file_type,
|
|
371
|
+
d.folder_path,
|
|
372
|
+
vec_distance_cosine(c.embedding, ?) as similarity
|
|
373
|
+
FROM chunks c
|
|
374
|
+
LEFT JOIN documents d ON c.document_id = d.id
|
|
375
|
+
WHERE c.embedding IS NOT NULL
|
|
376
|
+
AND c.embedding_model = ?
|
|
377
|
+
AND c.embedding_dimensions = ?
|
|
378
|
+
AND vec_distance_cosine(c.embedding, ?) >= ?
|
|
379
|
+
`;
|
|
380
|
+
|
|
381
|
+
const params = [queryEmbeddingString, modelToUse, embeddingDimensions, queryEmbeddingString, similarity_threshold];
|
|
382
|
+
|
|
383
|
+
// Add document filter if specified
|
|
384
|
+
if (document_id) {
|
|
385
|
+
searchSql += ' AND c.document_id = ?';
|
|
386
|
+
params.push(document_id);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
searchSql += `
|
|
390
|
+
ORDER BY vec_distance_cosine(c.embedding, ?) ASC
|
|
391
|
+
LIMIT ?
|
|
392
|
+
`;
|
|
393
|
+
|
|
394
|
+
// Add the query embedding and limit to params
|
|
395
|
+
params.push(queryEmbeddingString, limit);
|
|
396
|
+
|
|
397
|
+
const results = await this.db.all(searchSql, params);
|
|
398
|
+
|
|
399
|
+
// Parse JSON metadata and format results
|
|
400
|
+
return results.map(row => ({
|
|
401
|
+
id: row.id,
|
|
402
|
+
document_id: row.document_id,
|
|
403
|
+
document_name: row.document_name,
|
|
404
|
+
file_type: row.file_type,
|
|
405
|
+
folder_path: row.folder_path,
|
|
406
|
+
chunk_index: row.chunk_index,
|
|
407
|
+
content: row.content,
|
|
408
|
+
token_count: row.token_count,
|
|
409
|
+
chunk_type: row.chunk_type,
|
|
410
|
+
metadata: row.metadata ? JSON.parse(row.metadata) : {},
|
|
411
|
+
embedding_model: row.embedding_model,
|
|
412
|
+
embedding_dimensions: row.embedding_dimensions,
|
|
413
|
+
similarity_score: row.similarity,
|
|
414
|
+
created_at: row.created_at
|
|
415
|
+
}));
|
|
416
|
+
|
|
417
|
+
} catch (error) {
|
|
418
|
+
console.warn('[WARN] Vector search failed, falling back to text search:', error.message);
|
|
419
|
+
return await this._fallbackTextSearch(query, options);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Fallback text search when vector search is not available
|
|
425
|
+
* @param {string} query - Text query to search for
|
|
426
|
+
* @param {Object} options - Search options
|
|
427
|
+
* @returns {Promise<Array>} Search results with mock similarity scores
|
|
428
|
+
*/
|
|
429
|
+
async _fallbackTextSearch(query, options = {}) {
|
|
430
|
+
const {
|
|
431
|
+
limit = 10,
|
|
432
|
+
document_id = null
|
|
433
|
+
} = options;
|
|
434
|
+
|
|
435
|
+
try {
|
|
436
|
+
let sql = `
|
|
437
|
+
SELECT
|
|
438
|
+
c.id,
|
|
439
|
+
c.document_id,
|
|
440
|
+
c.chunk_index,
|
|
441
|
+
c.content,
|
|
442
|
+
c.token_count,
|
|
443
|
+
c.chunk_type,
|
|
444
|
+
c.metadata,
|
|
445
|
+
d.display_name as document_name,
|
|
446
|
+
d.file_type,
|
|
447
|
+
d.folder_path,
|
|
448
|
+
c.created_at
|
|
449
|
+
FROM chunks c
|
|
450
|
+
LEFT JOIN documents d ON c.document_id = d.id
|
|
451
|
+
WHERE c.content LIKE ?
|
|
452
|
+
`;
|
|
453
|
+
|
|
454
|
+
const params = [`%${query}%`];
|
|
455
|
+
|
|
456
|
+
if (document_id) {
|
|
457
|
+
sql += ' AND c.document_id = ?';
|
|
458
|
+
params.push(document_id);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
sql += ' ORDER BY c.created_at DESC LIMIT ?';
|
|
462
|
+
params.push(limit);
|
|
463
|
+
|
|
464
|
+
const results = await this.select(sql, params);
|
|
465
|
+
|
|
466
|
+
// Add mock similarity scores for text search
|
|
467
|
+
return results.map((result, index) => ({
|
|
468
|
+
...result,
|
|
469
|
+
similarity_score: 1.0 - (index * 0.1), // Mock decreasing similarity
|
|
470
|
+
match_type: 'text_search'
|
|
471
|
+
}));
|
|
472
|
+
|
|
473
|
+
} catch (error) {
|
|
474
|
+
throw new Error(`Fallback text search failed: ${error.message}`);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
import { emitAPICallEvent } from '../utilities/sanitizeAPICall.js';
|
|
3
|
+
|
|
4
|
+
export default class StripeIntegration {
|
|
5
|
+
constructor(apiKey, options = {}) {
|
|
6
|
+
this.apiKey = apiKey;
|
|
7
|
+
this.options = {
|
|
8
|
+
baseURL: 'https://api.stripe.com/v1',
|
|
9
|
+
timeout: 30000,
|
|
10
|
+
...options
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async _request(config) {
|
|
15
|
+
const requestHeaders = {
|
|
16
|
+
'Authorization': `Bearer ${this.apiKey}`,
|
|
17
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
18
|
+
...config.headers
|
|
19
|
+
};
|
|
20
|
+
const startTime = Date.now();
|
|
21
|
+
|
|
22
|
+
try {
|
|
23
|
+
const response = await axios({
|
|
24
|
+
...config,
|
|
25
|
+
headers: requestHeaders,
|
|
26
|
+
timeout: this.options.timeout
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
await emitAPICallEvent(this._engineConfig, {
|
|
30
|
+
timestamp: startTime, integration: 'stripe', nodeId: null, nodeType: null,
|
|
31
|
+
request: { method: config.method, url: config.url, headers: requestHeaders, body: config.data || null },
|
|
32
|
+
response: { status: response.status, statusText: response.statusText },
|
|
33
|
+
duration: Date.now() - startTime, error: null
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
return response.data;
|
|
37
|
+
} catch (error) {
|
|
38
|
+
await emitAPICallEvent(this._engineConfig, {
|
|
39
|
+
timestamp: startTime, integration: 'stripe', nodeId: null, nodeType: null,
|
|
40
|
+
request: { method: config.method, url: config.url, headers: requestHeaders, body: config.data || null },
|
|
41
|
+
response: { status: error.response?.status || 0, statusText: error.response?.statusText || 'Error' },
|
|
42
|
+
duration: Date.now() - startTime, error: error.message
|
|
43
|
+
});
|
|
44
|
+
if (error.response) {
|
|
45
|
+
const msg = error.response.data?.error?.message || error.response.statusText;
|
|
46
|
+
throw new Error(`Stripe API error (${error.response.status}): ${msg}`);
|
|
47
|
+
}
|
|
48
|
+
throw new Error(`Stripe API error: ${error.message}`);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
async listCustomers(options = {}) {
|
|
53
|
+
const params = {};
|
|
54
|
+
if (options.email) params.email = options.email;
|
|
55
|
+
if (options.limit) params.limit = options.limit;
|
|
56
|
+
if (options.starting_after) params.starting_after = options.starting_after;
|
|
57
|
+
|
|
58
|
+
return await this._request({
|
|
59
|
+
method: 'GET',
|
|
60
|
+
url: `${this.options.baseURL}/customers`,
|
|
61
|
+
params
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
async createCustomer(params = {}) {
|
|
66
|
+
const data = new URLSearchParams();
|
|
67
|
+
if (params.email) data.append('email', params.email);
|
|
68
|
+
if (params.name) data.append('name', params.name);
|
|
69
|
+
if (params.description) data.append('description', params.description);
|
|
70
|
+
if (params.phone) data.append('phone', params.phone);
|
|
71
|
+
|
|
72
|
+
return await this._request({
|
|
73
|
+
method: 'POST',
|
|
74
|
+
url: `${this.options.baseURL}/customers`,
|
|
75
|
+
data: data.toString()
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
import { emitAPICallEvent } from '../utilities/sanitizeAPICall.js';
|
|
3
|
+
|
|
4
|
+
export default class SupabaseIntegration {
|
|
5
|
+
constructor(config, options = {}) {
|
|
6
|
+
if (typeof config === 'object') {
|
|
7
|
+
this.url = config.url;
|
|
8
|
+
this.apiKey = config.key || config.api_key;
|
|
9
|
+
} else {
|
|
10
|
+
throw new Error('Supabase integration requires an object with url and key');
|
|
11
|
+
}
|
|
12
|
+
this.options = {
|
|
13
|
+
timeout: 30000,
|
|
14
|
+
...options
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
async _request(config) {
|
|
19
|
+
const requestHeaders = {
|
|
20
|
+
'apikey': this.apiKey,
|
|
21
|
+
'Authorization': `Bearer ${this.apiKey}`,
|
|
22
|
+
'Content-Type': 'application/json',
|
|
23
|
+
'Prefer': config.prefer || 'return=representation',
|
|
24
|
+
...config.headers
|
|
25
|
+
};
|
|
26
|
+
const startTime = Date.now();
|
|
27
|
+
|
|
28
|
+
try {
|
|
29
|
+
const response = await axios({
|
|
30
|
+
...config,
|
|
31
|
+
headers: requestHeaders,
|
|
32
|
+
timeout: this.options.timeout
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
await emitAPICallEvent(this._engineConfig, {
|
|
36
|
+
timestamp: startTime, integration: 'supabase', nodeId: null, nodeType: null,
|
|
37
|
+
request: { method: config.method, url: config.url, headers: requestHeaders, body: config.data || null },
|
|
38
|
+
response: { status: response.status, statusText: response.statusText },
|
|
39
|
+
duration: Date.now() - startTime, error: null
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
return response.data;
|
|
43
|
+
} catch (error) {
|
|
44
|
+
await emitAPICallEvent(this._engineConfig, {
|
|
45
|
+
timestamp: startTime, integration: 'supabase', nodeId: null, nodeType: null,
|
|
46
|
+
request: { method: config.method, url: config.url, headers: requestHeaders, body: config.data || null },
|
|
47
|
+
response: { status: error.response?.status || 0, statusText: error.response?.statusText || 'Error' },
|
|
48
|
+
duration: Date.now() - startTime, error: error.message
|
|
49
|
+
});
|
|
50
|
+
if (error.response) {
|
|
51
|
+
const msg = error.response.data?.message || error.response.data?.error || error.response.statusText;
|
|
52
|
+
throw new Error(`Supabase API error (${error.response.status}): ${msg}`);
|
|
53
|
+
}
|
|
54
|
+
throw new Error(`Supabase API error: ${error.message}`);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async query(table, options = {}) {
|
|
59
|
+
let url = `${this.url}/rest/v1/${encodeURIComponent(table)}`;
|
|
60
|
+
const params = {};
|
|
61
|
+
|
|
62
|
+
if (options.select) params.select = options.select;
|
|
63
|
+
if (options.filter) {
|
|
64
|
+
// filter is an array of {column, operator, value}
|
|
65
|
+
for (const f of (Array.isArray(options.filter) ? options.filter : [options.filter])) {
|
|
66
|
+
params[f.column] = `${f.operator}.${f.value}`;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
if (options.order) params.order = options.order;
|
|
70
|
+
if (options.limit) {
|
|
71
|
+
params.limit = options.limit;
|
|
72
|
+
}
|
|
73
|
+
if (options.offset) params.offset = options.offset;
|
|
74
|
+
|
|
75
|
+
return await this._request({ method: 'GET', url, params });
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
async insert(table, records) {
|
|
79
|
+
const url = `${this.url}/rest/v1/${encodeURIComponent(table)}`;
|
|
80
|
+
return await this._request({ method: 'POST', url, data: records });
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
async update(table, updates, filter) {
|
|
84
|
+
const url = `${this.url}/rest/v1/${encodeURIComponent(table)}`;
|
|
85
|
+
const params = {};
|
|
86
|
+
if (filter) {
|
|
87
|
+
for (const f of (Array.isArray(filter) ? filter : [filter])) {
|
|
88
|
+
params[f.column] = `${f.operator}.${f.value}`;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return await this._request({ method: 'PATCH', url, params, data: updates });
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
async deleteRows(table, filter) {
|
|
95
|
+
const url = `${this.url}/rest/v1/${encodeURIComponent(table)}`;
|
|
96
|
+
const params = {};
|
|
97
|
+
if (filter) {
|
|
98
|
+
for (const f of (Array.isArray(filter) ? filter : [filter])) {
|
|
99
|
+
params[f.column] = `${f.operator}.${f.value}`;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return await this._request({ method: 'DELETE', url, params });
|
|
103
|
+
}
|
|
104
|
+
}
|