next-workflow-builder 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/components/ai-elements/canvas.d.ts +9 -0
- package/dist/client/components/ai-elements/canvas.d.ts.map +1 -0
- package/dist/client/components/ai-elements/canvas.js +7 -0
- package/dist/client/components/ai-elements/canvas.js.map +1 -0
- package/dist/client/components/ai-elements/connection.d.ts +3 -0
- package/dist/client/components/ai-elements/connection.d.ts.map +1 -0
- package/dist/client/components/ai-elements/connection.js +4 -0
- package/dist/client/components/ai-elements/connection.js.map +1 -0
- package/dist/client/components/ai-elements/controls.d.ts +2 -0
- package/dist/client/components/ai-elements/controls.d.ts.map +1 -0
- package/dist/client/components/ai-elements/controls.js +26 -0
- package/dist/client/components/ai-elements/controls.js.map +1 -0
- package/dist/client/components/ai-elements/edge.d.ts +6 -0
- package/dist/client/components/ai-elements/edge.d.ts.map +1 -0
- package/dist/client/components/ai-elements/edge.js +86 -0
- package/dist/client/components/ai-elements/edge.js.map +1 -0
- package/dist/client/components/ai-elements/node.d.ts +23 -0
- package/dist/client/components/ai-elements/node.d.ts.map +1 -0
- package/dist/client/components/ai-elements/node.js +13 -0
- package/dist/client/components/ai-elements/node.js.map +1 -0
- package/dist/client/components/ai-elements/panel.d.ts +6 -0
- package/dist/client/components/ai-elements/panel.d.ts.map +1 -0
- package/dist/client/components/ai-elements/panel.js +5 -0
- package/dist/client/components/ai-elements/panel.js.map +1 -0
- package/dist/client/components/ai-elements/prompt.d.ts +7 -0
- package/dist/client/components/ai-elements/prompt.d.ts.map +1 -0
- package/dist/client/components/ai-elements/prompt.js +220 -0
- package/dist/client/components/ai-elements/prompt.js.map +1 -0
- package/dist/client/components/ai-elements/shimmer.d.ts +10 -0
- package/dist/client/components/ai-elements/shimmer.d.ts.map +1 -0
- package/dist/client/components/ai-elements/shimmer.js +19 -0
- package/dist/client/components/ai-elements/shimmer.js.map +1 -0
- package/dist/client/components/auth/dialog.d.ts +8 -0
- package/dist/client/components/auth/dialog.d.ts.map +1 -0
- package/dist/client/components/auth/dialog.js +181 -0
- package/dist/client/components/auth/dialog.js.map +1 -0
- package/dist/client/components/deploy-button.d.ts +2 -0
- package/dist/client/components/deploy-button.d.ts.map +1 -0
- package/dist/client/components/deploy-button.js +8 -0
- package/dist/client/components/deploy-button.js.map +1 -0
- package/dist/client/components/global-modals.d.ts +2 -0
- package/dist/client/components/global-modals.d.ts.map +1 -0
- package/dist/client/components/global-modals.js +8 -0
- package/dist/client/components/global-modals.js.map +1 -0
- package/dist/client/components/icons/github-icon.d.ts +4 -0
- package/dist/client/components/icons/github-icon.d.ts.map +1 -0
- package/dist/client/components/icons/github-icon.js +5 -0
- package/dist/client/components/icons/github-icon.js.map +1 -0
- package/dist/client/components/index.d.ts +7 -0
- package/dist/client/components/index.d.ts.map +1 -0
- package/dist/client/components/index.js +8 -0
- package/dist/client/components/index.js.map +1 -0
- package/dist/client/components/layout-provider.d.ts +4 -0
- package/dist/client/components/layout-provider.d.ts.map +1 -0
- package/dist/client/components/layout-provider.js +20 -0
- package/dist/client/components/layout-provider.js.map +1 -0
- package/dist/client/components/overlays/add-connection-overlay.d.ts +14 -0
- package/dist/client/components/overlays/add-connection-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/add-connection-overlay.js +218 -0
- package/dist/client/components/overlays/add-connection-overlay.js.map +1 -0
- package/dist/client/components/overlays/api-keys-overlay.d.ts +6 -0
- package/dist/client/components/overlays/api-keys-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/api-keys-overlay.js +124 -0
- package/dist/client/components/overlays/api-keys-overlay.js.map +1 -0
- package/dist/client/components/overlays/configuration-overlay.d.ts +5 -0
- package/dist/client/components/overlays/configuration-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/configuration-overlay.js +325 -0
- package/dist/client/components/overlays/configuration-overlay.js.map +1 -0
- package/dist/client/components/overlays/confirm-overlay.d.ts +15 -0
- package/dist/client/components/overlays/confirm-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/confirm-overlay.js +31 -0
- package/dist/client/components/overlays/confirm-overlay.js.map +1 -0
- package/dist/client/components/overlays/edit-connection-overlay.d.ts +16 -0
- package/dist/client/components/overlays/edit-connection-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/edit-connection-overlay.js +213 -0
- package/dist/client/components/overlays/edit-connection-overlay.js.map +1 -0
- package/dist/client/components/overlays/export-workflow-overlay.d.ts +8 -0
- package/dist/client/components/overlays/export-workflow-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/export-workflow-overlay.js +22 -0
- package/dist/client/components/overlays/export-workflow-overlay.js.map +1 -0
- package/dist/client/components/overlays/integrations-overlay.d.ts +6 -0
- package/dist/client/components/overlays/integrations-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/integrations-overlay.js +56 -0
- package/dist/client/components/overlays/integrations-overlay.js.map +1 -0
- package/dist/client/components/overlays/make-public-overlay.d.ts +7 -0
- package/dist/client/components/overlays/make-public-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/make-public-overlay.js +17 -0
- package/dist/client/components/overlays/make-public-overlay.js.map +1 -0
- package/dist/client/components/overlays/overlay-container.d.ts +2 -0
- package/dist/client/components/overlays/overlay-container.d.ts.map +1 -0
- package/dist/client/components/overlays/overlay-container.js +236 -0
- package/dist/client/components/overlays/overlay-container.js.map +1 -0
- package/dist/client/components/overlays/overlay-footer.d.ts +3 -0
- package/dist/client/components/overlays/overlay-footer.d.ts.map +1 -0
- package/dist/client/components/overlays/overlay-footer.js +25 -0
- package/dist/client/components/overlays/overlay-footer.js.map +1 -0
- package/dist/client/components/overlays/overlay-header.d.ts +8 -0
- package/dist/client/components/overlays/overlay-header.d.ts.map +1 -0
- package/dist/client/components/overlays/overlay-header.js +32 -0
- package/dist/client/components/overlays/overlay-header.js.map +1 -0
- package/dist/client/components/overlays/overlay-provider.d.ts +17 -0
- package/dist/client/components/overlays/overlay-provider.d.ts.map +1 -0
- package/dist/client/components/overlays/overlay-provider.js +120 -0
- package/dist/client/components/overlays/overlay-provider.js.map +1 -0
- package/dist/client/components/overlays/overlay-sync.d.ts +2 -0
- package/dist/client/components/overlays/overlay-sync.d.ts.map +1 -0
- package/dist/client/components/overlays/overlay-sync.js +21 -0
- package/dist/client/components/overlays/overlay-sync.js.map +1 -0
- package/dist/client/components/overlays/overlay.d.ts +7 -0
- package/dist/client/components/overlays/overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/overlay.js +9 -0
- package/dist/client/components/overlays/overlay.js.map +1 -0
- package/dist/client/components/overlays/settings-overlay.d.ts +6 -0
- package/dist/client/components/overlays/settings-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/settings-overlay.js +64 -0
- package/dist/client/components/overlays/settings-overlay.js.map +1 -0
- package/dist/client/components/overlays/types.d.ts +64 -0
- package/dist/client/components/overlays/types.d.ts.map +1 -0
- package/dist/client/components/overlays/types.js +2 -0
- package/dist/client/components/overlays/types.js.map +1 -0
- package/dist/client/components/overlays/workflow-issues-overlay.d.ts +37 -0
- package/dist/client/components/overlays/workflow-issues-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/workflow-issues-overlay.js +67 -0
- package/dist/client/components/overlays/workflow-issues-overlay.js.map +1 -0
- package/dist/client/components/pages/home-page.d.ts +3 -0
- package/dist/client/components/pages/home-page.d.ts.map +1 -0
- package/dist/client/components/pages/home-page.js +100 -0
- package/dist/client/components/pages/home-page.js.map +1 -0
- package/dist/client/components/pages/workflow-page.d.ts +4 -0
- package/dist/client/components/pages/workflow-page.d.ts.map +1 -0
- package/dist/client/components/pages/workflow-page.js +23 -0
- package/dist/client/components/pages/workflow-page.js.map +1 -0
- package/dist/client/components/pages/workflows-redirect.d.ts +3 -0
- package/dist/client/components/pages/workflows-redirect.d.ts.map +1 -0
- package/dist/client/components/pages/workflows-redirect.js +30 -0
- package/dist/client/components/pages/workflows-redirect.js.map +1 -0
- package/dist/client/components/settings/account-settings.d.ts +9 -0
- package/dist/client/components/settings/account-settings.d.ts.map +1 -0
- package/dist/client/components/settings/account-settings.js +8 -0
- package/dist/client/components/settings/account-settings.js.map +1 -0
- package/dist/client/components/settings/integrations-manager.d.ts +7 -0
- package/dist/client/components/settings/integrations-manager.d.ts.map +1 -0
- package/dist/client/components/settings/integrations-manager.js +120 -0
- package/dist/client/components/settings/integrations-manager.js.map +1 -0
- package/dist/client/components/theme-provider.d.ts +5 -0
- package/dist/client/components/theme-provider.d.ts.map +1 -0
- package/dist/client/components/theme-provider.js +6 -0
- package/dist/client/components/theme-provider.js.map +1 -0
- package/dist/client/components/ui/alert-dialog.d.ts +15 -0
- package/dist/client/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/client/components/ui/alert-dialog.js +40 -0
- package/dist/client/components/ui/alert-dialog.js.map +1 -0
- package/dist/client/components/ui/alert.d.ts +10 -0
- package/dist/client/components/ui/alert.d.ts.map +1 -0
- package/dist/client/components/ui/alert.js +25 -0
- package/dist/client/components/ui/alert.js.map +1 -0
- package/dist/client/components/ui/animated-border.d.ts +6 -0
- package/dist/client/components/ui/animated-border.d.ts.map +1 -0
- package/dist/client/components/ui/animated-border.js +34 -0
- package/dist/client/components/ui/animated-border.js.map +1 -0
- package/dist/client/components/ui/avatar.d.ts +7 -0
- package/dist/client/components/ui/avatar.d.ts.map +1 -0
- package/dist/client/components/ui/avatar.js +15 -0
- package/dist/client/components/ui/avatar.js.map +1 -0
- package/dist/client/components/ui/button-group.d.ts +12 -0
- package/dist/client/components/ui/button-group.d.ts.map +1 -0
- package/dist/client/components/ui/button-group.js +28 -0
- package/dist/client/components/ui/button-group.js.map +1 -0
- package/dist/client/components/ui/button.d.ts +11 -0
- package/dist/client/components/ui/button.d.ts.map +1 -0
- package/dist/client/components/ui/button.js +34 -0
- package/dist/client/components/ui/button.js.map +1 -0
- package/dist/client/components/ui/card.d.ts +10 -0
- package/dist/client/components/ui/card.d.ts.map +1 -0
- package/dist/client/components/ui/card.js +25 -0
- package/dist/client/components/ui/card.js.map +1 -0
- package/dist/client/components/ui/checkbox.d.ts +5 -0
- package/dist/client/components/ui/checkbox.d.ts.map +1 -0
- package/dist/client/components/ui/checkbox.js +10 -0
- package/dist/client/components/ui/checkbox.js.map +1 -0
- package/dist/client/components/ui/code-editor.d.ts +3 -0
- package/dist/client/components/ui/code-editor.d.ts.map +1 -0
- package/dist/client/components/ui/code-editor.js +17 -0
- package/dist/client/components/ui/code-editor.js.map +1 -0
- package/dist/client/components/ui/collapsible.d.ts +6 -0
- package/dist/client/components/ui/collapsible.d.ts.map +1 -0
- package/dist/client/components/ui/collapsible.js +14 -0
- package/dist/client/components/ui/collapsible.js.map +1 -0
- package/dist/client/components/ui/context-menu.d.ts +26 -0
- package/dist/client/components/ui/context-menu.d.ts.map +1 -0
- package/dist/client/components/ui/context-menu.js +52 -0
- package/dist/client/components/ui/context-menu.js.map +1 -0
- package/dist/client/components/ui/dialog.d.ts +16 -0
- package/dist/client/components/ui/dialog.d.ts.map +1 -0
- package/dist/client/components/ui/dialog.js +37 -0
- package/dist/client/components/ui/dialog.js.map +1 -0
- package/dist/client/components/ui/drawer.d.ts +14 -0
- package/dist/client/components/ui/drawer.d.ts.map +1 -0
- package/dist/client/components/ui/drawer.js +36 -0
- package/dist/client/components/ui/drawer.js.map +1 -0
- package/dist/client/components/ui/dropdown-menu.d.ts +26 -0
- package/dist/client/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/client/components/ui/dropdown-menu.js +52 -0
- package/dist/client/components/ui/dropdown-menu.js.map +1 -0
- package/dist/client/components/ui/input.d.ts +4 -0
- package/dist/client/components/ui/input.d.ts.map +1 -0
- package/dist/client/components/ui/input.js +7 -0
- package/dist/client/components/ui/input.js.map +1 -0
- package/dist/client/components/ui/integration-icon.d.ts +7 -0
- package/dist/client/components/ui/integration-icon.d.ts.map +1 -0
- package/dist/client/components/ui/integration-icon.js +25 -0
- package/dist/client/components/ui/integration-icon.js.map +1 -0
- package/dist/client/components/ui/integration-selector.d.ts +12 -0
- package/dist/client/components/ui/integration-selector.d.ts.map +1 -0
- package/dist/client/components/ui/integration-selector.js +198 -0
- package/dist/client/components/ui/integration-selector.js.map +1 -0
- package/dist/client/components/ui/label.d.ts +5 -0
- package/dist/client/components/ui/label.d.ts.map +1 -0
- package/dist/client/components/ui/label.js +9 -0
- package/dist/client/components/ui/label.js.map +1 -0
- package/dist/client/components/ui/resizable.d.ts +9 -0
- package/dist/client/components/ui/resizable.d.ts.map +1 -0
- package/dist/client/components/ui/resizable.js +16 -0
- package/dist/client/components/ui/resizable.js.map +1 -0
- package/dist/client/components/ui/select.d.ts +16 -0
- package/dist/client/components/ui/select.d.ts.map +1 -0
- package/dist/client/components/ui/select.js +39 -0
- package/dist/client/components/ui/select.js.map +1 -0
- package/dist/client/components/ui/separator.d.ts +5 -0
- package/dist/client/components/ui/separator.d.ts.map +1 -0
- package/dist/client/components/ui/separator.js +9 -0
- package/dist/client/components/ui/separator.js.map +1 -0
- package/dist/client/components/ui/sheet.d.ts +14 -0
- package/dist/client/components/ui/sheet.d.ts.map +1 -0
- package/dist/client/components/ui/sheet.js +41 -0
- package/dist/client/components/ui/sheet.js.map +1 -0
- package/dist/client/components/ui/sonner.d.ts +4 -0
- package/dist/client/components/ui/sonner.d.ts.map +1 -0
- package/dist/client/components/ui/sonner.js +22 -0
- package/dist/client/components/ui/sonner.js.map +1 -0
- package/dist/client/components/ui/spinner.d.ts +4 -0
- package/dist/client/components/ui/spinner.d.ts.map +1 -0
- package/dist/client/components/ui/spinner.js +9 -0
- package/dist/client/components/ui/spinner.js.map +1 -0
- package/dist/client/components/ui/tabs.d.ts +8 -0
- package/dist/client/components/ui/tabs.d.ts.map +1 -0
- package/dist/client/components/ui/tabs.js +18 -0
- package/dist/client/components/ui/tabs.js.map +1 -0
- package/dist/client/components/ui/template-autocomplete.d.ts +14 -0
- package/dist/client/components/ui/template-autocomplete.d.ts.map +1 -0
- package/dist/client/components/ui/template-autocomplete.js +239 -0
- package/dist/client/components/ui/template-autocomplete.js.map +1 -0
- package/dist/client/components/ui/template-badge-input.d.ts +10 -0
- package/dist/client/components/ui/template-badge-input.d.ts.map +1 -0
- package/dist/client/components/ui/template-badge-input.js +360 -0
- package/dist/client/components/ui/template-badge-input.js.map +1 -0
- package/dist/client/components/ui/template-badge-textarea.d.ts +11 -0
- package/dist/client/components/ui/template-badge-textarea.d.ts.map +1 -0
- package/dist/client/components/ui/template-badge-textarea.js +431 -0
- package/dist/client/components/ui/template-badge-textarea.js.map +1 -0
- package/dist/client/components/ui/timezone-select.d.ts +9 -0
- package/dist/client/components/ui/timezone-select.d.ts.map +1 -0
- package/dist/client/components/ui/timezone-select.js +87 -0
- package/dist/client/components/ui/timezone-select.js.map +1 -0
- package/dist/client/components/ui/tooltip.d.ts +8 -0
- package/dist/client/components/ui/tooltip.d.ts.map +1 -0
- package/dist/client/components/ui/tooltip.js +18 -0
- package/dist/client/components/ui/tooltip.js.map +1 -0
- package/dist/client/components/ui/workflow-icon.d.ts +4 -0
- package/dist/client/components/ui/workflow-icon.d.ts.map +1 -0
- package/dist/client/components/ui/workflow-icon.js +5 -0
- package/dist/client/components/ui/workflow-icon.js.map +1 -0
- package/dist/client/components/workflow/config/action-config-renderer.d.ts +10 -0
- package/dist/client/components/workflow/config/action-config-renderer.d.ts.map +1 -0
- package/dist/client/components/workflow/config/action-config-renderer.js +64 -0
- package/dist/client/components/workflow/config/action-config-renderer.js.map +1 -0
- package/dist/client/components/workflow/config/action-config.d.ts +9 -0
- package/dist/client/components/workflow/config/action-config.d.ts.map +1 -0
- package/dist/client/components/workflow/config/action-config.js +174 -0
- package/dist/client/components/workflow/config/action-config.js.map +1 -0
- package/dist/client/components/workflow/config/action-grid.d.ts +8 -0
- package/dist/client/components/workflow/config/action-grid.d.ts.map +1 -0
- package/dist/client/components/workflow/config/action-grid.js +162 -0
- package/dist/client/components/workflow/config/action-grid.js.map +1 -0
- package/dist/client/components/workflow/config/condition-config.d.ts +8 -0
- package/dist/client/components/workflow/config/condition-config.d.ts.map +1 -0
- package/dist/client/components/workflow/config/condition-config.js +7 -0
- package/dist/client/components/workflow/config/condition-config.js.map +1 -0
- package/dist/client/components/workflow/config/editor-config.d.ts +13 -0
- package/dist/client/components/workflow/config/editor-config.d.ts.map +1 -0
- package/dist/client/components/workflow/config/editor-config.js +34 -0
- package/dist/client/components/workflow/config/editor-config.js.map +1 -0
- package/dist/client/components/workflow/config/schema-builder.d.ts +17 -0
- package/dist/client/components/workflow/config/schema-builder.d.ts.map +1 -0
- package/dist/client/components/workflow/config/schema-builder.js +55 -0
- package/dist/client/components/workflow/config/schema-builder.js.map +1 -0
- package/dist/client/components/workflow/config/system-action.d.ts +9 -0
- package/dist/client/components/workflow/config/system-action.d.ts.map +1 -0
- package/dist/client/components/workflow/config/system-action.js +33 -0
- package/dist/client/components/workflow/config/system-action.js.map +1 -0
- package/dist/client/components/workflow/config/trigger-config.d.ts +9 -0
- package/dist/client/components/workflow/config/trigger-config.d.ts.map +1 -0
- package/dist/client/components/workflow/config/trigger-config.js +33 -0
- package/dist/client/components/workflow/config/trigger-config.js.map +1 -0
- package/dist/client/components/workflow/node-config-panel.d.ts +3 -0
- package/dist/client/components/workflow/node-config-panel.d.ts.map +1 -0
- package/dist/client/components/workflow/node-config-panel.js +353 -0
- package/dist/client/components/workflow/node-config-panel.js.map +1 -0
- package/dist/client/components/workflow/nodes/action-node.d.ts +10 -0
- package/dist/client/components/workflow/nodes/action-node.d.ts.map +1 -0
- package/dist/client/components/workflow/nodes/action-node.js +176 -0
- package/dist/client/components/workflow/nodes/action-node.js.map +1 -0
- package/dist/client/components/workflow/nodes/add-node.d.ts +9 -0
- package/dist/client/components/workflow/nodes/add-node.d.ts.map +1 -0
- package/dist/client/components/workflow/nodes/add-node.js +8 -0
- package/dist/client/components/workflow/nodes/add-node.js.map +1 -0
- package/dist/client/components/workflow/nodes/trigger-node.d.ts +8 -0
- package/dist/client/components/workflow/nodes/trigger-node.d.ts.map +1 -0
- package/dist/client/components/workflow/nodes/trigger-node.js +25 -0
- package/dist/client/components/workflow/nodes/trigger-node.js.map +1 -0
- package/dist/client/components/workflow/persistent-canvas.d.ts +2 -0
- package/dist/client/components/workflow/persistent-canvas.d.ts.map +1 -0
- package/dist/client/components/workflow/persistent-canvas.js +13 -0
- package/dist/client/components/workflow/persistent-canvas.js.map +1 -0
- package/dist/client/components/workflow/utils/code-generators.d.ts +12 -0
- package/dist/client/components/workflow/utils/code-generators.d.ts.map +1 -0
- package/dist/client/components/workflow/utils/code-generators.js +70 -0
- package/dist/client/components/workflow/utils/code-generators.js.map +1 -0
- package/dist/client/components/workflow/workflow-canvas.d.ts +3 -0
- package/dist/client/components/workflow/workflow-canvas.d.ts.map +1 -0
- package/dist/client/components/workflow/workflow-canvas.js +347 -0
- package/dist/client/components/workflow/workflow-canvas.js.map +1 -0
- package/dist/client/components/workflow/workflow-context-menu.d.ts +27 -0
- package/dist/client/components/workflow/workflow-context-menu.d.ts.map +1 -0
- package/dist/client/components/workflow/workflow-context-menu.js +156 -0
- package/dist/client/components/workflow/workflow-context-menu.js.map +1 -0
- package/dist/client/components/workflow/workflow-editor.d.ts +6 -0
- package/dist/client/components/workflow/workflow-editor.d.ts.map +1 -0
- package/dist/client/components/workflow/workflow-editor.js +443 -0
- package/dist/client/components/workflow/workflow-editor.js.map +1 -0
- package/dist/client/components/workflow/workflow-runs.d.ts +8 -0
- package/dist/client/components/workflow/workflow-runs.d.ts.map +1 -0
- package/dist/client/components/workflow/workflow-runs.js +336 -0
- package/dist/client/components/workflow/workflow-runs.js.map +1 -0
- package/dist/client/components/workflow/workflow-toolbar.d.ts +6 -0
- package/dist/client/components/workflow/workflow-toolbar.d.ts.map +1 -0
- package/dist/client/components/workflow/workflow-toolbar.js +707 -0
- package/dist/client/components/workflow/workflow-toolbar.js.map +1 -0
- package/dist/client/components/workflows/user-menu.d.ts +2 -0
- package/dist/client/components/workflows/user-menu.d.ts.map +1 -0
- package/dist/client/components/workflows/user-menu.js +65 -0
- package/dist/client/components/workflows/user-menu.js.map +1 -0
- package/dist/client/hooks/use-mobile.d.ts +2 -0
- package/dist/client/hooks/use-mobile.d.ts.map +1 -0
- package/dist/client/hooks/use-mobile.js +16 -0
- package/dist/client/hooks/use-mobile.js.map +1 -0
- package/dist/client/hooks/use-touch.d.ts +2 -0
- package/dist/client/hooks/use-touch.d.ts.map +1 -0
- package/dist/client/hooks/use-touch.js +12 -0
- package/dist/client/hooks/use-touch.js.map +1 -0
- package/dist/client/index.d.ts +11 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +12 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/package.json +1 -0
- package/dist/lib/api-client.d.ts +330 -0
- package/dist/lib/api-client.d.ts.map +1 -0
- package/dist/lib/api-client.js +274 -0
- package/dist/lib/api-client.js.map +1 -0
- package/dist/lib/atoms/overlay.d.ts +15 -0
- package/dist/lib/atoms/overlay.d.ts.map +1 -0
- package/dist/lib/atoms/overlay.js +78 -0
- package/dist/lib/atoms/overlay.js.map +1 -0
- package/dist/lib/auth-client.d.ts +871 -0
- package/dist/lib/auth-client.d.ts.map +1 -0
- package/dist/lib/auth-client.js +10 -0
- package/dist/lib/auth-client.js.map +1 -0
- package/dist/lib/auth-providers.d.ts +12 -0
- package/dist/lib/auth-providers.d.ts.map +1 -0
- package/dist/lib/auth-providers.js +27 -0
- package/dist/lib/auth-providers.js.map +1 -0
- package/dist/lib/auth.d.ts +5 -0
- package/dist/lib/auth.d.ts.map +1 -0
- package/dist/lib/auth.js +62 -0
- package/dist/lib/auth.js.map +1 -0
- package/dist/lib/codegen-templates/condition.d.ts +3 -0
- package/dist/lib/codegen-templates/condition.d.ts.map +1 -0
- package/dist/lib/codegen-templates/condition.js +9 -0
- package/dist/lib/codegen-templates/condition.js.map +1 -0
- package/dist/lib/codegen-templates/database-query.d.ts +3 -0
- package/dist/lib/codegen-templates/database-query.d.ts.map +1 -0
- package/dist/lib/codegen-templates/database-query.js +24 -0
- package/dist/lib/codegen-templates/database-query.js.map +1 -0
- package/dist/lib/codegen-templates/http-request.d.ts +3 -0
- package/dist/lib/codegen-templates/http-request.d.ts.map +1 -0
- package/dist/lib/codegen-templates/http-request.js +44 -0
- package/dist/lib/codegen-templates/http-request.js.map +1 -0
- package/dist/lib/condition-validator.d.ts +10 -0
- package/dist/lib/condition-validator.d.ts.map +1 -0
- package/dist/lib/condition-validator.js +230 -0
- package/dist/lib/condition-validator.js.map +1 -0
- package/dist/lib/constants.d.ts +3 -0
- package/dist/lib/constants.d.ts.map +1 -0
- package/dist/lib/constants.js +3 -0
- package/dist/lib/constants.js.map +1 -0
- package/dist/lib/credential-fetcher.d.ts +4 -0
- package/dist/lib/credential-fetcher.d.ts.map +1 -0
- package/dist/lib/credential-fetcher.js +38 -0
- package/dist/lib/credential-fetcher.js.map +1 -0
- package/dist/lib/db/index.d.ts +4 -0
- package/dist/lib/db/index.d.ts.map +1 -0
- package/dist/lib/db/index.js +17 -0
- package/dist/lib/db/index.js.map +1 -0
- package/dist/lib/db/integrations.d.ts +36 -0
- package/dist/lib/db/integrations.d.ts.map +1 -0
- package/dist/lib/db/integrations.js +170 -0
- package/dist/lib/db/integrations.js.map +1 -0
- package/dist/lib/db/schema.d.ts +1474 -0
- package/dist/lib/db/schema.d.ts.map +1 -0
- package/dist/lib/db/schema.js +143 -0
- package/dist/lib/db/schema.js.map +1 -0
- package/dist/lib/integrations-store.d.ts +13 -0
- package/dist/lib/integrations-store.d.ts.map +1 -0
- package/dist/lib/integrations-store.js +10 -0
- package/dist/lib/integrations-store.js.map +1 -0
- package/dist/lib/managed-connection.d.ts +49 -0
- package/dist/lib/managed-connection.d.ts.map +1 -0
- package/dist/lib/managed-connection.js +21 -0
- package/dist/lib/managed-connection.js.map +1 -0
- package/dist/lib/monaco-theme.d.ts +29 -0
- package/dist/lib/monaco-theme.d.ts.map +1 -0
- package/dist/lib/monaco-theme.js +54 -0
- package/dist/lib/monaco-theme.js.map +1 -0
- package/dist/lib/plugin-registry.d.ts +10 -0
- package/dist/lib/plugin-registry.d.ts.map +1 -0
- package/dist/lib/plugin-registry.js +16 -0
- package/dist/lib/plugin-registry.js.map +1 -0
- package/dist/lib/steps/credentials.d.ts +14 -0
- package/dist/lib/steps/credentials.d.ts.map +1 -0
- package/dist/lib/steps/credentials.js +65 -0
- package/dist/lib/steps/credentials.js.map +1 -0
- package/dist/lib/steps/http-request.d.ts +22 -0
- package/dist/lib/steps/http-request.d.ts.map +1 -0
- package/dist/lib/steps/http-request.js +72 -0
- package/dist/lib/steps/http-request.js.map +1 -0
- package/dist/lib/steps/index.d.ts +10 -0
- package/dist/lib/steps/index.d.ts.map +1 -0
- package/dist/lib/steps/index.js +14 -0
- package/dist/lib/steps/index.js.map +1 -0
- package/dist/lib/steps/step-handler.d.ts +30 -0
- package/dist/lib/steps/step-handler.d.ts.map +1 -0
- package/dist/lib/steps/step-handler.js +105 -0
- package/dist/lib/steps/step-handler.js.map +1 -0
- package/dist/lib/steps/trigger.d.ts +21 -0
- package/dist/lib/steps/trigger.d.ts.map +1 -0
- package/dist/lib/steps/trigger.js +17 -0
- package/dist/lib/steps/trigger.js.map +1 -0
- package/dist/lib/types/integration.d.ts +3 -0
- package/dist/lib/types/integration.d.ts.map +1 -0
- package/dist/lib/types/integration.js +2 -0
- package/dist/lib/types/integration.js.map +1 -0
- package/dist/lib/utils/format-number.d.ts +2 -0
- package/dist/lib/utils/format-number.d.ts.map +1 -0
- package/dist/lib/utils/format-number.js +16 -0
- package/dist/lib/utils/format-number.js.map +1 -0
- package/dist/lib/utils/id.d.ts +2 -0
- package/dist/lib/utils/id.d.ts.map +1 -0
- package/dist/lib/utils/id.js +6 -0
- package/dist/lib/utils/id.js.map +1 -0
- package/dist/lib/utils/redact.d.ts +4 -0
- package/dist/lib/utils/redact.d.ts.map +1 -0
- package/dist/lib/utils/redact.js +143 -0
- package/dist/lib/utils/redact.js.map +1 -0
- package/dist/lib/utils/template.d.ts +18 -0
- package/dist/lib/utils/template.d.ts.map +1 -0
- package/dist/lib/utils/template.js +323 -0
- package/dist/lib/utils/template.js.map +1 -0
- package/dist/lib/utils/time.d.ts +2 -0
- package/dist/lib/utils/time.d.ts.map +1 -0
- package/dist/lib/utils/time.js +34 -0
- package/dist/lib/utils/time.js.map +1 -0
- package/dist/lib/utils.d.ts +5 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +99 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/lib/workflow-codegen-sdk.d.ts +4 -0
- package/dist/lib/workflow-codegen-sdk.d.ts.map +1 -0
- package/dist/lib/workflow-codegen-sdk.js +482 -0
- package/dist/lib/workflow-codegen-sdk.js.map +1 -0
- package/dist/lib/workflow-codegen-shared.d.ts +26 -0
- package/dist/lib/workflow-codegen-shared.d.ts.map +1 -0
- package/dist/lib/workflow-codegen-shared.js +232 -0
- package/dist/lib/workflow-codegen-shared.js.map +1 -0
- package/dist/lib/workflow-codegen.d.ts +18 -0
- package/dist/lib/workflow-codegen.d.ts.map +1 -0
- package/dist/lib/workflow-codegen.js +786 -0
- package/dist/lib/workflow-codegen.js.map +1 -0
- package/dist/lib/workflow-executor.workflow.d.ts +33 -0
- package/dist/lib/workflow-executor.workflow.d.ts.map +1 -0
- package/dist/lib/workflow-executor.workflow.js +605 -0
- package/dist/lib/workflow-executor.workflow.js.map +1 -0
- package/dist/lib/workflow-logging.d.ts +29 -0
- package/dist/lib/workflow-logging.d.ts.map +1 -0
- package/dist/lib/workflow-logging.js +48 -0
- package/dist/lib/workflow-logging.js.map +1 -0
- package/dist/lib/workflow-store.d.ts +118 -0
- package/dist/lib/workflow-store.d.ts.map +1 -0
- package/dist/lib/workflow-store.js +351 -0
- package/dist/lib/workflow-store.js.map +1 -0
- package/dist/plugins/condition/components/condition-fields.d.ts +7 -0
- package/dist/plugins/condition/components/condition-fields.d.ts.map +1 -0
- package/dist/plugins/condition/components/condition-fields.js +8 -0
- package/dist/plugins/condition/components/condition-fields.js.map +1 -0
- package/dist/plugins/condition/index.d.ts +4 -0
- package/dist/plugins/condition/index.d.ts.map +1 -0
- package/dist/plugins/condition/index.js +23 -0
- package/dist/plugins/condition/index.js.map +1 -0
- package/dist/plugins/condition/steps/evaluate.d.ts +15 -0
- package/dist/plugins/condition/steps/evaluate.d.ts.map +1 -0
- package/dist/plugins/condition/steps/evaluate.js +10 -0
- package/dist/plugins/condition/steps/evaluate.js.map +1 -0
- package/dist/plugins/database/components/database-query-fields.d.ts +7 -0
- package/dist/plugins/database/components/database-query-fields.d.ts.map +1 -0
- package/dist/plugins/database/components/database-query-fields.js +18 -0
- package/dist/plugins/database/components/database-query-fields.js.map +1 -0
- package/dist/plugins/database/index.d.ts +4 -0
- package/dist/plugins/database/index.d.ts.map +1 -0
- package/dist/plugins/database/index.js +23 -0
- package/dist/plugins/database/index.js.map +1 -0
- package/dist/plugins/database/steps/query.d.ts +20 -0
- package/dist/plugins/database/steps/query.d.ts.map +1 -0
- package/dist/plugins/database/steps/query.js +92 -0
- package/dist/plugins/database/steps/query.js.map +1 -0
- package/dist/plugins/index.d.ts +10 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +6 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/legacy-mappings.d.ts +2 -0
- package/dist/plugins/legacy-mappings.d.ts.map +1 -0
- package/dist/plugins/legacy-mappings.js +2 -0
- package/dist/plugins/legacy-mappings.js.map +1 -0
- package/dist/plugins/loop/components/loop-fields.d.ts +7 -0
- package/dist/plugins/loop/components/loop-fields.d.ts.map +1 -0
- package/dist/plugins/loop/components/loop-fields.js +8 -0
- package/dist/plugins/loop/components/loop-fields.js.map +1 -0
- package/dist/plugins/loop/icon.d.ts +4 -0
- package/dist/plugins/loop/icon.d.ts.map +1 -0
- package/dist/plugins/loop/icon.js +5 -0
- package/dist/plugins/loop/icon.js.map +1 -0
- package/dist/plugins/loop/index.d.ts +4 -0
- package/dist/plugins/loop/index.d.ts.map +1 -0
- package/dist/plugins/loop/index.js +52 -0
- package/dist/plugins/loop/index.js.map +1 -0
- package/dist/plugins/loop/steps/iterate.d.ts +24 -0
- package/dist/plugins/loop/steps/iterate.d.ts.map +1 -0
- package/dist/plugins/loop/steps/iterate.js +31 -0
- package/dist/plugins/loop/steps/iterate.js.map +1 -0
- package/dist/plugins/registry.d.ts +136 -0
- package/dist/plugins/registry.d.ts.map +1 -0
- package/dist/plugins/registry.js +241 -0
- package/dist/plugins/registry.js.map +1 -0
- package/dist/plugins/switch/icon.d.ts +4 -0
- package/dist/plugins/switch/icon.d.ts.map +1 -0
- package/dist/plugins/switch/icon.js +5 -0
- package/dist/plugins/switch/icon.js.map +1 -0
- package/dist/plugins/switch/index.d.ts +4 -0
- package/dist/plugins/switch/index.d.ts.map +1 -0
- package/dist/plugins/switch/index.js +81 -0
- package/dist/plugins/switch/index.js.map +1 -0
- package/dist/plugins/switch/steps/evaluate.d.ts +27 -0
- package/dist/plugins/switch/steps/evaluate.d.ts.map +1 -0
- package/dist/plugins/switch/steps/evaluate.js +81 -0
- package/dist/plugins/switch/steps/evaluate.js.map +1 -0
- package/dist/scripts/create-plugin.d.ts +3 -0
- package/dist/scripts/create-plugin.d.ts.map +1 -0
- package/dist/scripts/create-plugin.js +205 -0
- package/dist/scripts/create-plugin.js.map +1 -0
- package/dist/scripts/discover-plugins.d.ts +3 -0
- package/dist/scripts/discover-plugins.d.ts.map +1 -0
- package/dist/scripts/discover-plugins.js +729 -0
- package/dist/scripts/discover-plugins.js.map +1 -0
- package/dist/scripts/migrate-prod.d.ts +2 -0
- package/dist/scripts/migrate-prod.d.ts.map +1 -0
- package/dist/scripts/migrate-prod.js +17 -0
- package/dist/scripts/migrate-prod.js.map +1 -0
- package/dist/scripts/nwb.d.ts +3 -0
- package/dist/scripts/nwb.d.ts.map +1 -0
- package/dist/scripts/nwb.js +33 -0
- package/dist/scripts/nwb.js.map +1 -0
- package/dist/server/api/handler-utils.d.ts +22 -0
- package/dist/server/api/handler-utils.d.ts.map +1 -0
- package/dist/server/api/handler-utils.js +42 -0
- package/dist/server/api/handler-utils.js.map +1 -0
- package/dist/server/api/handlers/ai/generate/route.d.ts +3 -0
- package/dist/server/api/handlers/ai/generate/route.d.ts.map +1 -0
- package/dist/server/api/handlers/ai/generate/route.js +260 -0
- package/dist/server/api/handlers/ai/generate/route.js.map +1 -0
- package/dist/server/api/handlers/api-keys/[keyId]/route.d.ts +3 -0
- package/dist/server/api/handlers/api-keys/[keyId]/route.d.ts.map +1 -0
- package/dist/server/api/handlers/api-keys/[keyId]/route.js +25 -0
- package/dist/server/api/handlers/api-keys/[keyId]/route.js.map +1 -0
- package/dist/server/api/handlers/api-keys/route.d.ts +3 -0
- package/dist/server/api/handlers/api-keys/route.d.ts.map +1 -0
- package/dist/server/api/handlers/api-keys/route.js +84 -0
- package/dist/server/api/handlers/api-keys/route.js.map +1 -0
- package/dist/server/api/handlers/auth/route.d.ts +3 -0
- package/dist/server/api/handlers/auth/route.d.ts.map +1 -0
- package/dist/server/api/handlers/auth/route.js +14 -0
- package/dist/server/api/handlers/auth/route.js.map +1 -0
- package/dist/server/api/handlers/integrations/[integrationId]/route.d.ts +16 -0
- package/dist/server/api/handlers/integrations/[integrationId]/route.d.ts.map +1 -0
- package/dist/server/api/handlers/integrations/[integrationId]/route.js +117 -0
- package/dist/server/api/handlers/integrations/[integrationId]/route.js.map +1 -0
- package/dist/server/api/handlers/integrations/[integrationId]/test/route.d.ts +7 -0
- package/dist/server/api/handlers/integrations/[integrationId]/test/route.d.ts.map +1 -0
- package/dist/server/api/handlers/integrations/[integrationId]/test/route.js +96 -0
- package/dist/server/api/handlers/integrations/[integrationId]/test/route.js.map +1 -0
- package/dist/server/api/handlers/integrations/route.d.ts +24 -0
- package/dist/server/api/handlers/integrations/route.d.ts.map +1 -0
- package/dist/server/api/handlers/integrations/route.js +80 -0
- package/dist/server/api/handlers/integrations/route.js.map +1 -0
- package/dist/server/api/handlers/integrations/test/route.d.ts +12 -0
- package/dist/server/api/handlers/integrations/test/route.d.ts.map +1 -0
- package/dist/server/api/handlers/integrations/test/route.js +76 -0
- package/dist/server/api/handlers/integrations/test/route.js.map +1 -0
- package/dist/server/api/handlers/og/workflow/[workflowId]/route.d.ts +7 -0
- package/dist/server/api/handlers/og/workflow/[workflowId]/route.d.ts.map +1 -0
- package/dist/server/api/handlers/og/workflow/[workflowId]/route.js +197 -0
- package/dist/server/api/handlers/og/workflow/[workflowId]/route.js.map +1 -0
- package/dist/server/api/handlers/user/route.d.ts +3 -0
- package/dist/server/api/handlers/user/route.d.ts.map +1 -0
- package/dist/server/api/handlers/user/route.js +81 -0
- package/dist/server/api/handlers/user/route.js.map +1 -0
- package/dist/server/api/handlers/workflow/[workflowId]/cron/route.d.ts +3 -0
- package/dist/server/api/handlers/workflow/[workflowId]/cron/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflow/[workflowId]/cron/route.js +65 -0
- package/dist/server/api/handlers/workflow/[workflowId]/cron/route.js.map +1 -0
- package/dist/server/api/handlers/workflow/[workflowId]/execute/route.d.ts +3 -0
- package/dist/server/api/handlers/workflow/[workflowId]/execute/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflow/[workflowId]/execute/route.js +72 -0
- package/dist/server/api/handlers/workflow/[workflowId]/execute/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/code/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/[workflowId]/code/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/code/route.js +24 -0
- package/dist/server/api/handlers/workflows/[workflowId]/code/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/cron/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/[workflowId]/cron/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/cron/route.js +65 -0
- package/dist/server/api/handlers/workflows/[workflowId]/cron/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/download/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/[workflowId]/download/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/download/route.js +24 -0
- package/dist/server/api/handlers/workflows/[workflowId]/download/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/duplicate/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/[workflowId]/duplicate/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/duplicate/route.js +89 -0
- package/dist/server/api/handlers/workflows/[workflowId]/duplicate/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/execute/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/[workflowId]/execute/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/execute/route.js +72 -0
- package/dist/server/api/handlers/workflows/[workflowId]/execute/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/executions/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/[workflowId]/executions/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/executions/route.js +63 -0
- package/dist/server/api/handlers/workflows/[workflowId]/executions/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/[workflowId]/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/route.js +132 -0
- package/dist/server/api/handlers/workflows/[workflowId]/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/webhook/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/[workflowId]/webhook/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/webhook/route.js +111 -0
- package/dist/server/api/handlers/workflows/[workflowId]/webhook/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/create/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/create/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/create/route.js +67 -0
- package/dist/server/api/handlers/workflows/create/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/current/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/current/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/current/route.js +89 -0
- package/dist/server/api/handlers/workflows/current/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/executions/[executionId]/logs/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/executions/[executionId]/logs/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/executions/[executionId]/logs/route.js +38 -0
- package/dist/server/api/handlers/workflows/executions/[executionId]/logs/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/executions/[executionId]/status/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/executions/[executionId]/status/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/executions/[executionId]/status/route.js +35 -0
- package/dist/server/api/handlers/workflows/executions/[executionId]/status/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/route.js +22 -0
- package/dist/server/api/handlers/workflows/route.js.map +1 -0
- package/dist/server/api/routes.d.ts +4 -0
- package/dist/server/api/routes.d.ts.map +1 -0
- package/dist/server/api/routes.js +51 -0
- package/dist/server/api/routes.js.map +1 -0
- package/dist/server/api/types.d.ts +41 -0
- package/dist/server/api/types.d.ts.map +1 -0
- package/dist/server/api/types.js +2 -0
- package/dist/server/api/types.js.map +1 -0
- package/dist/server/api/workflows.d.ts +8 -0
- package/dist/server/api/workflows.d.ts.map +1 -0
- package/dist/server/api/workflows.js +75 -0
- package/dist/server/api/workflows.js.map +1 -0
- package/dist/server/db/migrate.d.ts +2 -0
- package/dist/server/db/migrate.d.ts.map +1 -0
- package/dist/server/db/migrate.js +2 -0
- package/dist/server/db/migrate.js.map +1 -0
- package/dist/server/db/schema.d.ts +1465 -0
- package/dist/server/db/schema.d.ts.map +1 -0
- package/dist/server/db/schema.js +15 -0
- package/dist/server/db/schema.js.map +1 -0
- package/dist/server/index.d.ts +11 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +9 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/plugin.d.ts +17 -0
- package/dist/server/plugin.d.ts.map +1 -0
- package/dist/server/plugin.js +27 -0
- package/dist/server/plugin.js.map +1 -0
- package/dist/server/utils.d.ts +3 -0
- package/dist/server/utils.d.ts.map +1 -0
- package/dist/server/utils.js +7 -0
- package/dist/server/utils.js.map +1 -0
- package/dist/styles/globals.css +254 -0
- package/package.json +130 -0
- package/src/plugins/_template/credentials.ts.txt +10 -0
- package/src/plugins/_template/icon.tsx.txt +28 -0
- package/src/plugins/_template/index.ts.txt +122 -0
- package/src/plugins/_template/steps/action.ts.txt +103 -0
- package/src/plugins/_template/test.ts.txt +57 -0
- package/src/plugins/condition/components/condition-fields.tsx +32 -0
- package/src/plugins/condition/index.ts +27 -0
- package/src/plugins/condition/steps/evaluate.ts +32 -0
- package/src/plugins/database/components/database-query-fields.tsx +58 -0
- package/src/plugins/database/index.ts +27 -0
- package/src/plugins/database/steps/query.ts +141 -0
- package/src/plugins/index.ts +37 -0
- package/src/plugins/legacy-mappings.ts +11 -0
- package/src/plugins/loop/components/loop-fields.tsx +46 -0
- package/src/plugins/loop/icon.tsx +21 -0
- package/src/plugins/loop/index.ts +57 -0
- package/src/plugins/loop/steps/iterate.ts +74 -0
- package/src/plugins/loop/workflow-executor.patch +241 -0
- package/src/plugins/registry.ts +660 -0
- package/src/plugins/switch/icon.tsx +23 -0
- package/src/plugins/switch/index.ts +87 -0
- package/src/plugins/switch/steps/evaluate.ts +139 -0
- package/src/plugins/switch/workflow-executor.patch +130 -0
- package/src/scripts/create-plugin.ts +301 -0
- package/src/scripts/discover-plugins.ts +1122 -0
- package/src/scripts/migrate-prod.ts +16 -0
- package/src/scripts/nwb.ts +54 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Label } from "../../../client/components/ui/label";
|
|
2
|
+
import { TemplateBadgeInput } from "../../../client/components/ui/template-badge-input";
|
|
3
|
+
|
|
4
|
+
// Loop fields component
|
|
5
|
+
function LoopFields({
|
|
6
|
+
config,
|
|
7
|
+
onUpdateConfig,
|
|
8
|
+
disabled,
|
|
9
|
+
}: {
|
|
10
|
+
config: Record<string, unknown>;
|
|
11
|
+
onUpdateConfig: (key: string, value: string) => void;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
}) {
|
|
14
|
+
return (
|
|
15
|
+
<div className="space-y-4">
|
|
16
|
+
<div className="space-y-2">
|
|
17
|
+
<Label htmlFor="items">Items to Iterate</Label>
|
|
18
|
+
<TemplateBadgeInput
|
|
19
|
+
disabled={ disabled }
|
|
20
|
+
id="items"
|
|
21
|
+
onChange={ (value) => onUpdateConfig("items", value) }
|
|
22
|
+
placeholder="e.g., {{PreviousNode.rows}}, {{DatabaseQuery.results}}"
|
|
23
|
+
value={ (config?.items as string) || "" }
|
|
24
|
+
/>
|
|
25
|
+
<p className="text-muted-foreground text-xs">
|
|
26
|
+
Reference an array from a previous node. Use @ to reference outputs.
|
|
27
|
+
</p>
|
|
28
|
+
</div>
|
|
29
|
+
<div className="space-y-2">
|
|
30
|
+
<Label htmlFor="batchSize">Batch Size (optional)</Label>
|
|
31
|
+
<TemplateBadgeInput
|
|
32
|
+
disabled={ disabled }
|
|
33
|
+
id="batchSize"
|
|
34
|
+
onChange={ (value) => onUpdateConfig("batchSize", value) }
|
|
35
|
+
placeholder="1"
|
|
36
|
+
value={ (config?.batchSize as string) || "" }
|
|
37
|
+
/>
|
|
38
|
+
<p className="text-muted-foreground text-xs">
|
|
39
|
+
Number of items per batch. Default is 1 (process one item at a time).
|
|
40
|
+
</p>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { LoopFields };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function LoopIcon({ className }: { className?: string }) {
|
|
2
|
+
return (
|
|
3
|
+
<svg
|
|
4
|
+
aria-label="Loop icon"
|
|
5
|
+
className={className}
|
|
6
|
+
fill="none"
|
|
7
|
+
stroke="currentColor"
|
|
8
|
+
strokeLinecap="round"
|
|
9
|
+
strokeLinejoin="round"
|
|
10
|
+
strokeWidth="2"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
>
|
|
14
|
+
<title>Loop</title>
|
|
15
|
+
<path d="M17 2l4 4-4 4" />
|
|
16
|
+
<path d="M3 11v-1a4 4 0 0 1 4-4h14" />
|
|
17
|
+
<path d="M7 22l-4-4 4-4" />
|
|
18
|
+
<path d="M21 13v1a4 4 0 0 1-4 4H3" />
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { IntegrationPlugin } from "../registry";
|
|
2
|
+
import { LoopIcon } from "./icon";
|
|
3
|
+
|
|
4
|
+
const loopPlugin: IntegrationPlugin = {
|
|
5
|
+
type: "loop",
|
|
6
|
+
label: "Loop",
|
|
7
|
+
description: "Iterate over arrays and process items in batches",
|
|
8
|
+
icon: LoopIcon,
|
|
9
|
+
isBuiltIn: true,
|
|
10
|
+
|
|
11
|
+
formFields: [],
|
|
12
|
+
|
|
13
|
+
actions: [
|
|
14
|
+
{
|
|
15
|
+
slug: "iterate",
|
|
16
|
+
label: "Loop",
|
|
17
|
+
description: "Split data into batches and iterate over each batch",
|
|
18
|
+
category: "System",
|
|
19
|
+
stepFunction: "loopStep",
|
|
20
|
+
stepImportPath: "iterate",
|
|
21
|
+
configFields: [
|
|
22
|
+
{
|
|
23
|
+
key: "items",
|
|
24
|
+
label: "Items to Iterate",
|
|
25
|
+
type: "template-input",
|
|
26
|
+
placeholder:
|
|
27
|
+
"e.g., {{PreviousNode.rows}}, {{DatabaseQuery.results}}",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
key: "batchSize",
|
|
31
|
+
label: "Batch Size (optional)",
|
|
32
|
+
type: "template-input",
|
|
33
|
+
placeholder: "1",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
outputFields: [
|
|
37
|
+
{ field: "currentItem", description: "Current item being processed" },
|
|
38
|
+
{ field: "currentBatch", description: "Current batch of items" },
|
|
39
|
+
{
|
|
40
|
+
field: "currentIndex",
|
|
41
|
+
description: "Current item index (0-based)",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
field: "currentBatchIndex",
|
|
45
|
+
description: "Current batch index (0-based)",
|
|
46
|
+
},
|
|
47
|
+
{ field: "hasMore", description: "Whether more batches remain" },
|
|
48
|
+
{ field: "totalItems", description: "Total number of items" },
|
|
49
|
+
{ field: "totalBatches", description: "Total number of batches" },
|
|
50
|
+
{ field: "items", description: "All items in the array" },
|
|
51
|
+
{ field: "batchSize", description: "Number of items per batch" },
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export default loopPlugin;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Executable step function for Loop action
|
|
3
|
+
* Iterates over an array and executes downstream nodes for each item/batch
|
|
4
|
+
* Similar to n8n's SplitInBatches node
|
|
5
|
+
*/
|
|
6
|
+
import "server-only";
|
|
7
|
+
import { StepInput, withStepLogging } from "../../../lib/steps/step-handler";
|
|
8
|
+
|
|
9
|
+
export type LoopInput = StepInput & {
|
|
10
|
+
/** The array to iterate over */
|
|
11
|
+
items: unknown[];
|
|
12
|
+
/** Number of items per batch (default: 1) */
|
|
13
|
+
batchSize?: number;
|
|
14
|
+
/** Current batch index (set by executor) */
|
|
15
|
+
currentBatchIndex?: number;
|
|
16
|
+
/** Original items expression for logging */
|
|
17
|
+
expression?: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type LoopResult = {
|
|
21
|
+
/** Whether there are more batches to process */
|
|
22
|
+
hasMore: boolean;
|
|
23
|
+
/** Current batch index (0-based) */
|
|
24
|
+
currentBatchIndex: number;
|
|
25
|
+
/** Current batch of items being processed */
|
|
26
|
+
currentBatch: unknown[];
|
|
27
|
+
/** Current item (first item of batch, for single-item iterations) */
|
|
28
|
+
currentItem: unknown;
|
|
29
|
+
/** Current item index in the full array */
|
|
30
|
+
currentIndex: number;
|
|
31
|
+
/** Total number of items */
|
|
32
|
+
totalItems: number;
|
|
33
|
+
/** Total number of batches */
|
|
34
|
+
totalBatches: number;
|
|
35
|
+
/** All items in the array */
|
|
36
|
+
items: unknown[];
|
|
37
|
+
/** Batch size used */
|
|
38
|
+
batchSize: number;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
function evaluateLoop(input: LoopInput): LoopResult {
|
|
42
|
+
const items = Array.isArray(input.items) ? input.items : [];
|
|
43
|
+
const batchSize = Math.max(1, input.batchSize || 1);
|
|
44
|
+
const currentBatchIndex = input.currentBatchIndex ?? 0;
|
|
45
|
+
const totalItems = items.length;
|
|
46
|
+
const totalBatches = Math.ceil(totalItems / batchSize);
|
|
47
|
+
|
|
48
|
+
// Calculate current batch
|
|
49
|
+
const startIndex = currentBatchIndex * batchSize;
|
|
50
|
+
const endIndex = Math.min(startIndex + batchSize, totalItems);
|
|
51
|
+
const currentBatch = items.slice(startIndex, endIndex);
|
|
52
|
+
const currentItem = currentBatch[0];
|
|
53
|
+
const hasMore = currentBatchIndex < totalBatches - 1;
|
|
54
|
+
|
|
55
|
+
return {
|
|
56
|
+
hasMore,
|
|
57
|
+
currentBatchIndex,
|
|
58
|
+
currentBatch,
|
|
59
|
+
currentItem,
|
|
60
|
+
currentIndex: startIndex,
|
|
61
|
+
totalItems,
|
|
62
|
+
totalBatches,
|
|
63
|
+
items,
|
|
64
|
+
batchSize,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// biome-ignore lint/suspicious/useAwait: workflow "use step" requires async
|
|
69
|
+
export async function loopStep(input: LoopInput): Promise<LoopResult> {
|
|
70
|
+
"use step";
|
|
71
|
+
return withStepLogging(input, () => Promise.resolve(evaluateLoop(input)));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
loopStep.maxRetries = 0;
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
--- a/lib/workflow-executor.workflow.ts
|
|
2
|
+
+++ b/lib/workflow-executor.workflow.ts
|
|
3
|
+
@@ -248,6 +248,70 @@
|
|
4
|
+
});
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
+ // Special handling for Loop action - items are passed directly, iteration handled in executeNode
|
|
8
|
+
+ if (actionType === "Loop" || actionType === "loop/iterate") {
|
|
9
|
+
+ const stepImporter = getStepImporter("loop/iterate");
|
|
10
|
+
+ if (!stepImporter) {
|
|
11
|
+
+ return { success: false, error: "Loop step not found in plugin registry" };
|
|
12
|
+
+ }
|
|
13
|
+
+ const module = await stepImporter.importer();
|
|
14
|
+
+ const originalExpression = stepInput.items;
|
|
15
|
+
+
|
|
16
|
+
+ console.log("[Loop] Raw items input:", typeof stepInput.items, stepInput.items);
|
|
17
|
+
+
|
|
18
|
+
+ // Items should already be resolved by processTemplates
|
|
19
|
+
+ let items: unknown[] = [];
|
|
20
|
+
+ if (Array.isArray(stepInput.items)) {
|
|
21
|
+
+ items = stepInput.items;
|
|
22
|
+
+ } else if (typeof stepInput.items === "string") {
|
|
23
|
+
+ const trimmed = stepInput.items.trim();
|
|
24
|
+
+ // Try to parse if it's a JSON string (array or object with array property)
|
|
25
|
+
+ if (trimmed.startsWith("[") || trimmed.startsWith("{")) {
|
|
26
|
+
+ try {
|
|
27
|
+
+ const parsed = JSON.parse(trimmed);
|
|
28
|
+
+ if (Array.isArray(parsed)) {
|
|
29
|
+
+ items = parsed;
|
|
30
|
+
+ } else if (parsed && typeof parsed === "object") {
|
|
31
|
+
+ // Check for common array properties: rows, data, items, results
|
|
32
|
+
+ items = parsed.rows || parsed.data || parsed.items || parsed.results || [];
|
|
33
|
+
+ if (!Array.isArray(items)) {
|
|
34
|
+
+ items = [];
|
|
35
|
+
+ }
|
|
36
|
+
+ }
|
|
37
|
+
+ } catch (e) {
|
|
38
|
+
+ console.error("[Loop] Failed to parse items JSON:", e);
|
|
39
|
+
+ items = [];
|
|
40
|
+
+ }
|
|
41
|
+
+ }
|
|
42
|
+
+ } else if (stepInput.items && typeof stepInput.items === "object") {
|
|
43
|
+
+ // Direct object - check for array properties
|
|
44
|
+
+ const obj = stepInput.items as Record<string, unknown>;
|
|
45
|
+
+ const possibleArray = obj.rows || obj.data || obj.items || obj.results;
|
|
46
|
+
+ if (Array.isArray(possibleArray)) {
|
|
47
|
+
+ items = possibleArray;
|
|
48
|
+
+ }
|
|
49
|
+
+ }
|
|
50
|
+
+
|
|
51
|
+
+ // Parse batch size
|
|
52
|
+
+ let batchSize = 1;
|
|
53
|
+
+ if (typeof stepInput.batchSize === "number") {
|
|
54
|
+
+ batchSize = stepInput.batchSize;
|
|
55
|
+
+ } else if (typeof stepInput.batchSize === "string") {
|
|
56
|
+
+ batchSize = parseInt(stepInput.batchSize, 10) || 1;
|
|
57
|
+
+ }
|
|
58
|
+
+
|
|
59
|
+
+ console.log("[Loop] Resolved items count:", items.length, "Batch size:", batchSize);
|
|
60
|
+
+
|
|
61
|
+
+ return await module[stepImporter.stepFunction]({
|
|
62
|
+
+ items,
|
|
63
|
+
+ batchSize,
|
|
64
|
+
+ currentBatchIndex: stepInput.currentBatchIndex ?? 0,
|
|
65
|
+
+ expression:
|
|
66
|
+
+ typeof originalExpression === "string" ? originalExpression : undefined,
|
|
67
|
+
+ _context: context,
|
|
68
|
+
+ });
|
|
69
|
+
+ }
|
|
70
|
+
+
|
|
71
|
+
// Check system actions first (Database Query, HTTP Request)
|
|
72
|
+
const systemAction = SYSTEM_ACTIONS[actionType];
|
|
73
|
+
if (systemAction) {
|
|
74
|
+
@@ -393,10 +457,15 @@
|
|
75
|
+
// Build node and edge maps
|
|
76
|
+
const nodeMap = new Map(nodes.map((n) => [n.id, n]));
|
|
77
|
+
const edgesBySource = new Map<string, string[]>();
|
|
78
|
+
+ const edgesByTarget = new Map<string, string[]>();
|
|
79
|
+
for (const edge of edges) {
|
|
80
|
+
const targets = edgesBySource.get(edge.source) || [];
|
|
81
|
+
targets.push(edge.target);
|
|
82
|
+
edgesBySource.set(edge.source, targets);
|
|
83
|
+
+
|
|
84
|
+
+ const sources = edgesByTarget.get(edge.target) || [];
|
|
85
|
+
+ sources.push(edge.source);
|
|
86
|
+
+ edgesByTarget.set(edge.target, sources);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Find trigger nodes
|
|
90
|
+
@@ -435,7 +504,11 @@
|
|
91
|
+
|
|
92
|
+
// Helper to execute a single node
|
|
93
|
+
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: Node execution requires type checking and error handling
|
|
94
|
+
- async function executeNode(nodeId: string, visited: Set<string> = new Set()) {
|
|
95
|
+
+ async function executeNode(
|
|
96
|
+
+ nodeId: string,
|
|
97
|
+
+ visited: Set<string> = new Set(),
|
|
98
|
+
+ loopContext?: { iteration: number }
|
|
99
|
+
+ ) {
|
|
100
|
+
console.log("[Workflow Executor] Executing node:", nodeId);
|
|
101
|
+
|
|
102
|
+
if (visited.has(nodeId)) {
|
|
103
|
+
@@ -463,7 +536,7 @@
|
|
104
|
+
|
|
105
|
+
const nextNodes = edgesBySource.get(nodeId) || [];
|
|
106
|
+
await Promise.all(
|
|
107
|
+
- nextNodes.map((nextNodeId) => executeNode(nextNodeId, visited))
|
|
108
|
+
+ nextNodes.map((nextNodeId) => executeNode(nextNodeId, visited, loopContext))
|
|
109
|
+
);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
@@ -560,7 +633,26 @@
|
|
113
|
+
nodeId: node.id,
|
|
114
|
+
nodeName: getNodeName(node),
|
|
115
|
+
nodeType: actionType,
|
|
116
|
+
+ loopIteration: loopContext?.iteration,
|
|
117
|
+
};
|
|
118
|
+
+
|
|
119
|
+
+ // Merge output data from previous (source) nodes into the step input
|
|
120
|
+
+ // so that plugin steps can access previous step results directly
|
|
121
|
+
+ const sourceNodeIds = edgesByTarget.get(nodeId) || [];
|
|
122
|
+
+ for (const sourceId of sourceNodeIds) {
|
|
123
|
+
+ const sanitizedSourceId = sourceId.replace(/[^a-zA-Z0-9]/g, "_");
|
|
124
|
+
+ const sourceOutput = outputs[sanitizedSourceId];
|
|
125
|
+
+ if (sourceOutput?.data && typeof sourceOutput.data === "object") {
|
|
126
|
+
+ for (const [key, value] of Object.entries(
|
|
127
|
+
+ sourceOutput.data as Record<string, unknown>
|
|
128
|
+
+ )) {
|
|
129
|
+
+ // Don't overwrite explicit config values
|
|
130
|
+
+ if (!(key in processedConfig)) {
|
|
131
|
+
+ processedConfig[key] = value;
|
|
132
|
+
+ }
|
|
133
|
+
+ }
|
|
134
|
+
+ }
|
|
135
|
+
+ }
|
|
136
|
+
|
|
137
|
+
// Execute the action step with stepHandler (logging is handled inside)
|
|
138
|
+
// IMPORTANT: We pass integrationId via config, not actual credentials
|
|
139
|
+
@@ -636,6 +728,12 @@
|
|
140
|
+
node.data.type === "action" &&
|
|
141
|
+
node.data.config?.actionType === "Condition";
|
|
142
|
+
|
|
143
|
+
+ // Check if this is a loop node
|
|
144
|
+
+ const loopActionType = node.data.config?.actionType;
|
|
145
|
+
+ const isLoopNode =
|
|
146
|
+
+ node.data.type === "action" &&
|
|
147
|
+
+ (loopActionType === "Loop" || loopActionType === "loop/iterate");
|
|
148
|
+
+
|
|
149
|
+
if (isConditionNode) {
|
|
150
|
+
// For condition nodes, only execute next nodes if condition is true
|
|
151
|
+
const conditionResult = (result.data as { condition?: boolean })
|
|
152
|
+
@@ -652,26 +750,84 @@
|
|
153
|
+
nextNodes.length,
|
|
154
|
+
"next nodes in parallel"
|
|
155
|
+
);
|
|
156
|
+
- // Execute all next nodes in parallel
|
|
157
|
+
+ // Execute all next nodes in parallel (preserve loop context if inside a loop)
|
|
158
|
+
await Promise.all(
|
|
159
|
+
- nextNodes.map((nextNodeId) => executeNode(nextNodeId, visited))
|
|
160
|
+
+ nextNodes.map((nextNodeId) => executeNode(nextNodeId, visited, loopContext))
|
|
161
|
+
);
|
|
162
|
+
} else {
|
|
163
|
+
console.log(
|
|
164
|
+
"[Workflow Executor] Condition is false, skipping next nodes"
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
+ } else if (isLoopNode) {
|
|
168
|
+
+ // For loop nodes, execute next nodes for each batch
|
|
169
|
+
+ const loopResult = result.data as {
|
|
170
|
+
+ items?: unknown[];
|
|
171
|
+
+ totalItems?: number;
|
|
172
|
+
+ totalBatches?: number;
|
|
173
|
+
+ batchSize?: number;
|
|
174
|
+
+ };
|
|
175
|
+
+
|
|
176
|
+
+ const items = loopResult?.items || [];
|
|
177
|
+
+ const batchSize = loopResult?.batchSize || 1;
|
|
178
|
+
+ const totalBatches = loopResult?.totalBatches || Math.ceil(items.length / batchSize);
|
|
179
|
+
+ const nextNodes = edgesBySource.get(nodeId) || [];
|
|
180
|
+
+
|
|
181
|
+
+ console.log(
|
|
182
|
+
+ "[Workflow Executor] Loop node:",
|
|
183
|
+
+ "items:", items.length,
|
|
184
|
+
+ "batches:", totalBatches,
|
|
185
|
+
+ "nextNodes:", nextNodes.length
|
|
186
|
+
+ );
|
|
187
|
+
+
|
|
188
|
+
+ // Execute downstream nodes for each batch sequentially
|
|
189
|
+
+ for (let batchIndex = 0; batchIndex < totalBatches; batchIndex++) {
|
|
190
|
+
+ const startIndex = batchIndex * batchSize;
|
|
191
|
+
+ const endIndex = Math.min(startIndex + batchSize, items.length);
|
|
192
|
+
+ const currentBatch = items.slice(startIndex, endIndex);
|
|
193
|
+
+ const currentItem = currentBatch[0];
|
|
194
|
+
+
|
|
195
|
+
+ console.log(
|
|
196
|
+
+ `[Workflow Executor] Loop batch ${batchIndex + 1}/${totalBatches} (items ${startIndex + 1}-${endIndex})`
|
|
197
|
+
+ );
|
|
198
|
+
+
|
|
199
|
+
+ // Update the loop node output with current batch context
|
|
200
|
+
+ const loopSanitizedId = nodeId.replace(/[^a-zA-Z0-9]/g, "_");
|
|
201
|
+
+ outputs[loopSanitizedId] = {
|
|
202
|
+
+ label: node.data.label || nodeId,
|
|
203
|
+
+ data: {
|
|
204
|
+
+ ...loopResult,
|
|
205
|
+
+ currentBatchIndex: batchIndex,
|
|
206
|
+
+ currentBatch,
|
|
207
|
+
+ currentItem,
|
|
208
|
+
+ currentIndex: startIndex,
|
|
209
|
+
+ hasMore: batchIndex < totalBatches - 1,
|
|
210
|
+
+ },
|
|
211
|
+
+ };
|
|
212
|
+
+
|
|
213
|
+
+ // Execute all next nodes for this batch
|
|
214
|
+
+ // Use a fresh visited set containing ONLY the loop node to allow re-execution
|
|
215
|
+
+ // of downstream nodes on each iteration
|
|
216
|
+
+ // Pass loop context so steps can use it (e.g., for unique idempotency keys)
|
|
217
|
+
+ await Promise.all(
|
|
218
|
+
+ nextNodes.map((nextNodeId) =>
|
|
219
|
+
+ executeNode(nextNodeId, new Set([nodeId]), { iteration: batchIndex })
|
|
220
|
+
+ )
|
|
221
|
+
+ );
|
|
222
|
+
+ }
|
|
223
|
+
+
|
|
224
|
+
+ console.log("[Workflow Executor] Loop completed all iterations");
|
|
225
|
+
} else {
|
|
226
|
+
- // For non-condition nodes, execute all next nodes in parallel
|
|
227
|
+
+ // For non-condition/non-loop nodes, execute all next nodes in parallel
|
|
228
|
+
const nextNodes = edgesBySource.get(nodeId) || [];
|
|
229
|
+
console.log(
|
|
230
|
+
"[Workflow Executor] Executing",
|
|
231
|
+
nextNodes.length,
|
|
232
|
+
"next nodes in parallel"
|
|
233
|
+
);
|
|
234
|
+
- // Execute all next nodes in parallel
|
|
235
|
+
+ // Execute all next nodes in parallel (preserve loop context if inside a loop)
|
|
236
|
+
await Promise.all(
|
|
237
|
+
- nextNodes.map((nextNodeId) => executeNode(nextNodeId, visited))
|
|
238
|
+
+ nextNodes.map((nextNodeId) => executeNode(nextNodeId, visited, loopContext))
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
}
|