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,87 @@
|
|
|
1
|
+
import { type IntegrationPlugin } from "../registry";
|
|
2
|
+
import { SwitchIcon } from "./icon";
|
|
3
|
+
|
|
4
|
+
const switchPlugin: IntegrationPlugin = {
|
|
5
|
+
type: "switch",
|
|
6
|
+
label: "Switch",
|
|
7
|
+
description: "Route data to different outputs based on rules or expressions",
|
|
8
|
+
icon: SwitchIcon,
|
|
9
|
+
isBuiltIn: true,
|
|
10
|
+
|
|
11
|
+
formFields: [],
|
|
12
|
+
|
|
13
|
+
actions: [
|
|
14
|
+
{
|
|
15
|
+
slug: "route",
|
|
16
|
+
label: "Switch",
|
|
17
|
+
description:
|
|
18
|
+
"Evaluate rules or expressions to route data to different outputs",
|
|
19
|
+
category: "System",
|
|
20
|
+
stepFunction: "switchStep",
|
|
21
|
+
stepImportPath: "evaluate",
|
|
22
|
+
configFields: [
|
|
23
|
+
{
|
|
24
|
+
key: "mode",
|
|
25
|
+
label: "Mode",
|
|
26
|
+
type: "select",
|
|
27
|
+
options: [
|
|
28
|
+
{ value: "rules", label: "Rules" },
|
|
29
|
+
{ value: "expression", label: "Expression" },
|
|
30
|
+
],
|
|
31
|
+
defaultValue: "rules",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
key: "value",
|
|
35
|
+
label: "Value to Evaluate",
|
|
36
|
+
type: "template-input",
|
|
37
|
+
placeholder: "e.g., {{PreviousNode.status}}, {{Trigger.type}}",
|
|
38
|
+
showWhen: { field: "mode", equals: "rules" },
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
key: "rules",
|
|
42
|
+
label: "Rules (JSON array)",
|
|
43
|
+
type: "template-textarea",
|
|
44
|
+
placeholder:
|
|
45
|
+
"[{\"output\": 0, \"operator\": \"equals\", \"value\": \"active\", \"name\": \"Active\"}, {\"output\": 1, \"operator\": \"equals\", \"value\": \"inactive\", \"name\": \"Inactive\"}]",
|
|
46
|
+
rows: 5,
|
|
47
|
+
showWhen: { field: "mode", equals: "rules" },
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
key: "outputExpression",
|
|
51
|
+
label: "Output Index Expression",
|
|
52
|
+
type: "template-input",
|
|
53
|
+
placeholder: "e.g., {{PreviousNode.outputIndex}}",
|
|
54
|
+
showWhen: { field: "mode", equals: "expression" },
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
key: "fallbackOutput",
|
|
58
|
+
label: "When No Rule Matches",
|
|
59
|
+
type: "select",
|
|
60
|
+
options: [
|
|
61
|
+
{ value: "none", label: "Do nothing (discard)" },
|
|
62
|
+
{ value: "fallback", label: "Route to fallback output" },
|
|
63
|
+
],
|
|
64
|
+
defaultValue: "none",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
outputFields: [
|
|
68
|
+
{
|
|
69
|
+
field: "matchedOutput",
|
|
70
|
+
description: "Index of the matched output (0-based), or -1 if none",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
field: "matchedRuleName",
|
|
74
|
+
description: "Name of the matched rule, if set",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
field: "matchedRuleIndex",
|
|
78
|
+
description: "Index of the matched rule in the rules array",
|
|
79
|
+
},
|
|
80
|
+
{ field: "value", description: "The value that was evaluated" },
|
|
81
|
+
{ field: "outputCount", description: "Total number of outputs" },
|
|
82
|
+
],
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export default switchPlugin;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Executable step function for Switch action
|
|
3
|
+
* Evaluates routing rules and returns the matched output index
|
|
4
|
+
* Similar to n8n's Switch node
|
|
5
|
+
*/
|
|
6
|
+
import "server-only";
|
|
7
|
+
import { StepInput, withStepLogging } from "../../../lib/steps/step-handler";
|
|
8
|
+
|
|
9
|
+
export type SwitchRule = {
|
|
10
|
+
/** Which output index this rule routes to */
|
|
11
|
+
output: number;
|
|
12
|
+
/** Comparison operator */
|
|
13
|
+
operator: string;
|
|
14
|
+
/** Value to compare against */
|
|
15
|
+
value: string;
|
|
16
|
+
/** Optional human-readable name for the rule */
|
|
17
|
+
name?: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type SwitchInput = StepInput & {
|
|
21
|
+
/** Mode: "rules" or "expression" */
|
|
22
|
+
mode: string;
|
|
23
|
+
/** Value to evaluate against rules (rules mode) */
|
|
24
|
+
value?: string;
|
|
25
|
+
/** Parsed array of routing rules (rules mode) */
|
|
26
|
+
rules?: SwitchRule[];
|
|
27
|
+
/** Expression that resolves to an output index (expression mode) */
|
|
28
|
+
outputIndex?: number;
|
|
29
|
+
/** Fallback behavior: "none" or "fallback" */
|
|
30
|
+
fallbackOutput?: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type SwitchResult = {
|
|
34
|
+
/** Matched output index, or -1 if no match */
|
|
35
|
+
matchedOutput: number;
|
|
36
|
+
/** Index of the matched rule in the rules array, or -1 */
|
|
37
|
+
matchedRuleIndex: number;
|
|
38
|
+
/** Name of the matched rule, if set */
|
|
39
|
+
matchedRuleName: string;
|
|
40
|
+
/** The value that was evaluated */
|
|
41
|
+
value: string;
|
|
42
|
+
/** Total number of outputs (max output index + 1, or expression result + 1) */
|
|
43
|
+
outputCount: number;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
function applyOperator(
|
|
47
|
+
value: string,
|
|
48
|
+
operator: string,
|
|
49
|
+
operand: string,
|
|
50
|
+
): boolean {
|
|
51
|
+
switch (operator) {
|
|
52
|
+
case "equals":
|
|
53
|
+
return value === operand;
|
|
54
|
+
case "notEquals":
|
|
55
|
+
return value !== operand;
|
|
56
|
+
case "contains":
|
|
57
|
+
return value.includes(operand);
|
|
58
|
+
case "notContains":
|
|
59
|
+
return !value.includes(operand);
|
|
60
|
+
case "greaterThan":
|
|
61
|
+
return Number(value) > Number(operand);
|
|
62
|
+
case "lessThan":
|
|
63
|
+
return Number(value) < Number(operand);
|
|
64
|
+
case "startsWith":
|
|
65
|
+
return value.startsWith(operand);
|
|
66
|
+
case "endsWith":
|
|
67
|
+
return value.endsWith(operand);
|
|
68
|
+
case "regex":
|
|
69
|
+
try {
|
|
70
|
+
return new RegExp(operand).test(value);
|
|
71
|
+
} catch {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
case "isEmpty":
|
|
75
|
+
return value === "" || value === null || value === undefined;
|
|
76
|
+
case "isNotEmpty":
|
|
77
|
+
return value !== "" && value !== null && value !== undefined;
|
|
78
|
+
default:
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function evaluateSwitch(input: SwitchInput): SwitchResult {
|
|
84
|
+
const mode = input.mode || "rules";
|
|
85
|
+
|
|
86
|
+
// Expression mode: outputIndex is already resolved
|
|
87
|
+
if (mode === "expression") {
|
|
88
|
+
const outputIndex =
|
|
89
|
+
typeof input.outputIndex === "number" ? input.outputIndex : -1;
|
|
90
|
+
return {
|
|
91
|
+
matchedOutput: outputIndex,
|
|
92
|
+
matchedRuleIndex: -1,
|
|
93
|
+
matchedRuleName: "",
|
|
94
|
+
value: String(input.outputIndex ?? ""),
|
|
95
|
+
outputCount: outputIndex >= 0 ? outputIndex + 1 : 0,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// Rules mode: evaluate value against each rule
|
|
100
|
+
const value = String(input.value ?? "");
|
|
101
|
+
const rules = Array.isArray(input.rules) ? input.rules : [];
|
|
102
|
+
|
|
103
|
+
let maxOutput = 0;
|
|
104
|
+
for (const rule of rules) {
|
|
105
|
+
if (rule.output > maxOutput) {
|
|
106
|
+
maxOutput = rule.output;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
for (let i = 0; i < rules.length; i++) {
|
|
111
|
+
const rule = rules[i];
|
|
112
|
+
if (applyOperator(value, rule.operator, rule.value)) {
|
|
113
|
+
return {
|
|
114
|
+
matchedOutput: rule.output,
|
|
115
|
+
matchedRuleIndex: i,
|
|
116
|
+
matchedRuleName: rule.name || "",
|
|
117
|
+
value,
|
|
118
|
+
outputCount: maxOutput + 1,
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// No match
|
|
124
|
+
return {
|
|
125
|
+
matchedOutput: -1,
|
|
126
|
+
matchedRuleIndex: -1,
|
|
127
|
+
matchedRuleName: "",
|
|
128
|
+
value,
|
|
129
|
+
outputCount: maxOutput + 1,
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// biome-ignore lint/suspicious/useAwait: workflow "use step" requires async
|
|
134
|
+
export async function switchStep(input: SwitchInput): Promise<SwitchResult> {
|
|
135
|
+
"use step";
|
|
136
|
+
return withStepLogging(input, () => Promise.resolve(evaluateSwitch(input)));
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
switchStep.maxRetries = 0;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
diff --git a/workflow-builder/lib/workflow-executor.workflow.ts b/workflow-builder/lib/workflow-executor.workflow.ts
|
|
2
|
+
index 075494c78..9bbe7746a 100644
|
|
3
|
+
--- a/workflow-builder/lib/workflow-executor.workflow.ts
|
|
4
|
+
+++ b/workflow-builder/lib/workflow-executor.workflow.ts
|
|
5
|
+
@@ -312,6 +312,56 @@ async function executeActionStep(input: {
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
+ // Special handling for Switch action - rules/expression routing handled in executeNode
|
|
10
|
+
+ if (actionType === "Switch" || actionType === "switch/route") {
|
|
11
|
+
+ const stepImporter = getStepImporter("switch/route");
|
|
12
|
+
+ if (!stepImporter) {
|
|
13
|
+
+ return { success: false, error: "Switch step not found in plugin registry" };
|
|
14
|
+
+ }
|
|
15
|
+
+ const module = await stepImporter.importer();
|
|
16
|
+
+ const mode = (stepInput.mode as string) || "rules";
|
|
17
|
+
+
|
|
18
|
+
+ // Parse rules from JSON string if needed
|
|
19
|
+
+ let rules: unknown[] = [];
|
|
20
|
+
+ if (typeof stepInput.rules === "string") {
|
|
21
|
+
+ const trimmed = (stepInput.rules as string).trim();
|
|
22
|
+
+ if (trimmed.startsWith("[")) {
|
|
23
|
+
+ try {
|
|
24
|
+
+ rules = JSON.parse(trimmed);
|
|
25
|
+
+ } catch (e) {
|
|
26
|
+
+ console.error("[Switch] Failed to parse rules JSON:", e);
|
|
27
|
+
+ }
|
|
28
|
+
+ }
|
|
29
|
+
+ } else if (Array.isArray(stepInput.rules)) {
|
|
30
|
+
+ rules = stepInput.rules;
|
|
31
|
+
+ }
|
|
32
|
+
+
|
|
33
|
+
+ // Parse outputExpression to a number for expression mode
|
|
34
|
+
+ let outputIndex: number | undefined;
|
|
35
|
+
+ if (mode === "expression") {
|
|
36
|
+
+ const raw = stepInput.outputExpression;
|
|
37
|
+
+ if (typeof raw === "number") {
|
|
38
|
+
+ outputIndex = raw;
|
|
39
|
+
+ } else if (typeof raw === "string") {
|
|
40
|
+
+ outputIndex = parseInt(raw, 10);
|
|
41
|
+
+ if (Number.isNaN(outputIndex)) {
|
|
42
|
+
+ outputIndex = -1;
|
|
43
|
+
+ }
|
|
44
|
+
+ }
|
|
45
|
+
+ }
|
|
46
|
+
+
|
|
47
|
+
+ console.log("[Switch] Mode:", mode, "Rules:", rules.length, "OutputIndex:", outputIndex);
|
|
48
|
+
+
|
|
49
|
+
+ return await module[stepImporter.stepFunction]({
|
|
50
|
+
+ mode,
|
|
51
|
+
+ value: stepInput.value,
|
|
52
|
+
+ rules,
|
|
53
|
+
+ outputIndex,
|
|
54
|
+
+ fallbackOutput: stepInput.fallbackOutput ?? "none",
|
|
55
|
+
+ _context: context,
|
|
56
|
+
+ });
|
|
57
|
+
+ }
|
|
58
|
+
+
|
|
59
|
+
// Check system actions first (Database Query, HTTP Request)
|
|
60
|
+
const systemAction = SYSTEM_ACTIONS[actionType];
|
|
61
|
+
if (systemAction) {
|
|
62
|
+
@@ -734,6 +784,11 @@ export async function executeWorkflow(input: WorkflowExecutionInput) {
|
|
63
|
+
node.data.type === "action" &&
|
|
64
|
+
(loopActionType === "Loop" || loopActionType === "loop/iterate");
|
|
65
|
+
|
|
66
|
+
+ // Check if this is a switch node
|
|
67
|
+
+ const isSwitchNode =
|
|
68
|
+
+ node.data.type === "action" &&
|
|
69
|
+
+ (loopActionType === "Switch" || loopActionType === "switch/route");
|
|
70
|
+
+
|
|
71
|
+
if (isConditionNode) {
|
|
72
|
+
// For condition nodes, only execute next nodes if condition is true
|
|
73
|
+
const conditionResult = (result.data as { condition?: boolean })
|
|
74
|
+
@@ -817,6 +872,56 @@ export async function executeWorkflow(input: WorkflowExecutionInput) {
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
console.log("[Workflow Executor] Loop completed all iterations");
|
|
78
|
+
+ } else if (isSwitchNode) {
|
|
79
|
+
+ // For switch nodes, route to specific downstream nodes based on matched output
|
|
80
|
+
+ const switchResult = result.data as {
|
|
81
|
+
+ matchedOutput?: number;
|
|
82
|
+
+ fallbackOutput?: string;
|
|
83
|
+
+ };
|
|
84
|
+
+ const matchedOutput = switchResult?.matchedOutput ?? -1;
|
|
85
|
+
+ const fallbackOutput = node.data.config?.fallbackOutput as string || "none";
|
|
86
|
+
+
|
|
87
|
+
+ console.log(
|
|
88
|
+
+ "[Workflow Executor] Switch node: matchedOutput:", matchedOutput,
|
|
89
|
+
+ "fallbackOutput:", fallbackOutput
|
|
90
|
+
+ );
|
|
91
|
+
+
|
|
92
|
+
+ // Filter edges from this node based on sourceHandle
|
|
93
|
+
+ const switchEdges = edges.filter((edge) => edge.source === nodeId);
|
|
94
|
+
+ const matchedTargets: string[] = [];
|
|
95
|
+
+
|
|
96
|
+
+ for (const edge of switchEdges) {
|
|
97
|
+
+ const handle = edge.sourceHandle;
|
|
98
|
+
+
|
|
99
|
+
+ if (!handle) {
|
|
100
|
+
+ // No sourceHandle: always execute (backward compat)
|
|
101
|
+
+ matchedTargets.push(edge.target);
|
|
102
|
+
+ } else if (handle === "fallback") {
|
|
103
|
+
+ // Fallback handle: execute only when no rule matched and fallback is enabled
|
|
104
|
+
+ if (matchedOutput === -1 && fallbackOutput === "fallback") {
|
|
105
|
+
+ matchedTargets.push(edge.target);
|
|
106
|
+
+ }
|
|
107
|
+
+ } else if (handle.startsWith("output_")) {
|
|
108
|
+
+ // Numbered output handle: execute when matched
|
|
109
|
+
+ const outputIndex = parseInt(handle.replace("output_", ""), 10);
|
|
110
|
+
+ if (outputIndex === matchedOutput) {
|
|
111
|
+
+ matchedTargets.push(edge.target);
|
|
112
|
+
+ }
|
|
113
|
+
+ }
|
|
114
|
+
+ }
|
|
115
|
+
+
|
|
116
|
+
+ console.log(
|
|
117
|
+
+ "[Workflow Executor] Switch routing to",
|
|
118
|
+
+ matchedTargets.length,
|
|
119
|
+
+ "of",
|
|
120
|
+
+ switchEdges.length,
|
|
121
|
+
+ "downstream nodes"
|
|
122
|
+
+ );
|
|
123
|
+
+
|
|
124
|
+
+ // Execute matched downstream nodes (preserve loop context if inside a loop)
|
|
125
|
+
+ await Promise.all(
|
|
126
|
+
+ matchedTargets.map((targetId) => executeNode(targetId, visited, loopContext))
|
|
127
|
+
+ );
|
|
128
|
+
} else {
|
|
129
|
+
// For non-condition/non-loop nodes, execute all next nodes in parallel
|
|
130
|
+
const nextNodes = edgesBySource.get(nodeId) || [];
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
#!/usr/bin/env tsx
|
|
2
|
+
/**
|
|
3
|
+
* Plugin Scaffolding Script
|
|
4
|
+
*
|
|
5
|
+
* Creates a new plugin from templates using interactive prompts.
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* pnpm create-plugin
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { execFileSync } from "node:child_process";
|
|
12
|
+
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
13
|
+
import { join } from "node:path";
|
|
14
|
+
import { input } from "@inquirer/prompts";
|
|
15
|
+
|
|
16
|
+
const PLUGINS_DIR = join(process.cwd(), "plugins");
|
|
17
|
+
const TEMPLATE_DIR = join(import.meta.dirname, "..", "plugins", "_template");
|
|
18
|
+
|
|
19
|
+
// Regex patterns used for case conversions (hoisted for performance)
|
|
20
|
+
const LEADING_UPPERCASE_REGEX = /^[A-Z]/;
|
|
21
|
+
const VALID_IDENTIFIER_REGEX = /^[a-zA-Z_$][a-zA-Z0-9_$]*$/;
|
|
22
|
+
const UNSAFE_PATH_REGEX = /[/\\]|\.\./;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Convert a string to various case formats
|
|
26
|
+
*/
|
|
27
|
+
function toKebabCase(str: string): string {
|
|
28
|
+
return str
|
|
29
|
+
.replace(/([a-z])([A-Z])/g, "$1-$2")
|
|
30
|
+
.replace(/[\s_]+/g, "-")
|
|
31
|
+
.toLowerCase();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function toCamelCase(str: string): string {
|
|
35
|
+
return str
|
|
36
|
+
.replace(/[-_\s]+(.)?/g, (_, c) => (c ? c.toUpperCase() : ""))
|
|
37
|
+
.replace(LEADING_UPPERCASE_REGEX, (c) => c.toLowerCase());
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function toPascalCase(str: string): string {
|
|
41
|
+
const camel = toCamelCase(str);
|
|
42
|
+
return camel.charAt(0).toUpperCase() + camel.slice(1);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function toUpperSnake(str: string): string {
|
|
46
|
+
return str
|
|
47
|
+
.replace(/([a-z])([A-Z])/g, "$1_$2")
|
|
48
|
+
.replace(/[-\s]+/g, "_")
|
|
49
|
+
.toUpperCase();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function toTitleCase(str: string): string {
|
|
53
|
+
return str
|
|
54
|
+
.replace(/[-_]+/g, " ")
|
|
55
|
+
.replace(
|
|
56
|
+
/\w\S*/g,
|
|
57
|
+
(txt) => txt.charAt(0).toUpperCase() + txt.slice(1).toLowerCase()
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Escape special characters for use in string literals.
|
|
63
|
+
*/
|
|
64
|
+
function escapeString(str: string): string {
|
|
65
|
+
return str
|
|
66
|
+
.replace(/\\/g, "\\\\")
|
|
67
|
+
.replace(/"/g, '\\"')
|
|
68
|
+
.replace(/'/g, "\\'")
|
|
69
|
+
.replace(/`/g, "\\`")
|
|
70
|
+
.replace(/\$/g, "\\$")
|
|
71
|
+
.replace(/\n/g, "\\n")
|
|
72
|
+
.replace(/\r/g, "\\r")
|
|
73
|
+
.replace(/\t/g, "\\t")
|
|
74
|
+
.replace(/\0/g, "\\0");
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Check if a string is a valid JavaScript identifier
|
|
79
|
+
*/
|
|
80
|
+
function isValidIdentifier(str: string): boolean {
|
|
81
|
+
return VALID_IDENTIFIER_REGEX.test(str);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
type PluginConfig = {
|
|
85
|
+
integrationName: string;
|
|
86
|
+
integrationDescription: string;
|
|
87
|
+
actionName: string;
|
|
88
|
+
actionDescription: string;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Replace all placeholders in content
|
|
93
|
+
*/
|
|
94
|
+
function replacePlaceholders(content: string, config: PluginConfig): string {
|
|
95
|
+
const {
|
|
96
|
+
integrationName,
|
|
97
|
+
integrationDescription,
|
|
98
|
+
actionName,
|
|
99
|
+
actionDescription,
|
|
100
|
+
} = config;
|
|
101
|
+
|
|
102
|
+
// Integration placeholders
|
|
103
|
+
const intKebab = toKebabCase(integrationName);
|
|
104
|
+
const intCamel = toCamelCase(integrationName);
|
|
105
|
+
const intPascal = toPascalCase(integrationName);
|
|
106
|
+
const intUpperSnake = toUpperSnake(integrationName);
|
|
107
|
+
const intTitle = toTitleCase(integrationName);
|
|
108
|
+
|
|
109
|
+
// Action placeholders
|
|
110
|
+
const actKebab = toKebabCase(actionName);
|
|
111
|
+
const actCamel = toCamelCase(actionName);
|
|
112
|
+
const actPascal = toPascalCase(actionName);
|
|
113
|
+
const actUpperSnake = toUpperSnake(actionName);
|
|
114
|
+
const actTitle = toTitleCase(actionName);
|
|
115
|
+
|
|
116
|
+
return (
|
|
117
|
+
content
|
|
118
|
+
// Integration placeholders
|
|
119
|
+
.replace(/\[integration-type\]/g, intKebab)
|
|
120
|
+
.replace(/\[integration-name\]/g, intKebab)
|
|
121
|
+
.replace(/\[integrationName\]/g, intCamel)
|
|
122
|
+
.replace(/\[IntegrationName\]/g, intPascal)
|
|
123
|
+
.replace(/\[INTEGRATION_NAME\]/g, intUpperSnake)
|
|
124
|
+
.replace(/\[Integration Name\]/g, intTitle)
|
|
125
|
+
.replace(
|
|
126
|
+
/\[Integration Description\]/g,
|
|
127
|
+
escapeString(integrationDescription)
|
|
128
|
+
)
|
|
129
|
+
// Action placeholders
|
|
130
|
+
.replace(/\[action-slug\]/g, actKebab)
|
|
131
|
+
.replace(/\[actionName\]/g, actCamel)
|
|
132
|
+
.replace(/\[ActionName\]/g, actPascal)
|
|
133
|
+
.replace(/\[ACTION_NAME\]/g, actUpperSnake)
|
|
134
|
+
.replace(/\[Action Name\]/g, actTitle)
|
|
135
|
+
.replace(/\[Action Label\]/g, actTitle)
|
|
136
|
+
.replace(/\[Action Description\]/g, escapeString(actionDescription))
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Get dynamic template files based on action name
|
|
142
|
+
*/
|
|
143
|
+
function getTemplateFiles(actionSlug: string) {
|
|
144
|
+
return [
|
|
145
|
+
{ src: "index.ts.txt", dest: "index.ts" },
|
|
146
|
+
{ src: "icon.tsx.txt", dest: "icon.tsx" },
|
|
147
|
+
{ src: "test.ts.txt", dest: "test.ts" },
|
|
148
|
+
{ src: "credentials.ts.txt", dest: "credentials.ts" },
|
|
149
|
+
{ src: "steps/action.ts.txt", dest: `steps/${actionSlug}.ts` },
|
|
150
|
+
];
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Main execution
|
|
155
|
+
*/
|
|
156
|
+
async function main(): Promise<void> {
|
|
157
|
+
console.log("\nCreate New Plugin for Workflow Builder\n");
|
|
158
|
+
|
|
159
|
+
// Check if template directory exists (ships with the package)
|
|
160
|
+
if (!existsSync(TEMPLATE_DIR)) {
|
|
161
|
+
console.error("Error: Template directory not found at", TEMPLATE_DIR);
|
|
162
|
+
console.error(" The next-workflow-builder package may be corrupted.\n");
|
|
163
|
+
process.exit(1);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// Ensure plugins directory exists
|
|
167
|
+
if (!existsSync(PLUGINS_DIR)) {
|
|
168
|
+
mkdirSync(PLUGINS_DIR, { recursive: true });
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// Prompt for plugin details
|
|
172
|
+
const integrationName = await input({
|
|
173
|
+
message: "Integration Name:",
|
|
174
|
+
validate: (value) => {
|
|
175
|
+
if (!value.trim()) {
|
|
176
|
+
return "Integration name is required";
|
|
177
|
+
}
|
|
178
|
+
if (UNSAFE_PATH_REGEX.test(value)) {
|
|
179
|
+
return "Name cannot contain path separators (/, \\) or '..'";
|
|
180
|
+
}
|
|
181
|
+
const camel = toCamelCase(value);
|
|
182
|
+
const pascal = toPascalCase(value);
|
|
183
|
+
if (!(isValidIdentifier(camel) && isValidIdentifier(pascal))) {
|
|
184
|
+
return `Integration name must produce valid JavaScript identifiers. "${value}" converts to "${camel}" (camelCase) and "${pascal}" (PascalCase). Use only letters, numbers, underscores, and dollar signs.`;
|
|
185
|
+
}
|
|
186
|
+
const kebab = toKebabCase(value);
|
|
187
|
+
const dir = join(PLUGINS_DIR, kebab);
|
|
188
|
+
if (existsSync(dir)) {
|
|
189
|
+
return `Plugin already exists at plugins/${kebab}/`;
|
|
190
|
+
}
|
|
191
|
+
return true;
|
|
192
|
+
},
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
const integrationDescription = await input({
|
|
196
|
+
message: "Integration Description (<10 words):",
|
|
197
|
+
validate: (value) => {
|
|
198
|
+
if (!value.trim()) {
|
|
199
|
+
return "Integration description is required";
|
|
200
|
+
}
|
|
201
|
+
return true;
|
|
202
|
+
},
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
const actionName = await input({
|
|
206
|
+
message: "Action Name:",
|
|
207
|
+
validate: (value) => {
|
|
208
|
+
if (!value.trim()) {
|
|
209
|
+
return "Action name is required";
|
|
210
|
+
}
|
|
211
|
+
if (UNSAFE_PATH_REGEX.test(value)) {
|
|
212
|
+
return "Name cannot contain path separators (/, \\) or '..'";
|
|
213
|
+
}
|
|
214
|
+
const camel = toCamelCase(value);
|
|
215
|
+
const pascal = toPascalCase(value);
|
|
216
|
+
if (!(isValidIdentifier(camel) && isValidIdentifier(pascal))) {
|
|
217
|
+
return `Action name must produce valid JavaScript identifiers. "${value}" converts to "${camel}" (camelCase) and "${pascal}" (PascalCase). Use only letters, numbers, underscores, and dollar signs.`;
|
|
218
|
+
}
|
|
219
|
+
return true;
|
|
220
|
+
},
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
const actionDescription = await input({
|
|
224
|
+
message: "Action Description (<10 words):",
|
|
225
|
+
validate: (value) => {
|
|
226
|
+
if (!value.trim()) {
|
|
227
|
+
return "Action description is required";
|
|
228
|
+
}
|
|
229
|
+
return true;
|
|
230
|
+
},
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
const answers: PluginConfig = {
|
|
234
|
+
integrationName,
|
|
235
|
+
integrationDescription,
|
|
236
|
+
actionName,
|
|
237
|
+
actionDescription,
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
const pluginName = toKebabCase(integrationName);
|
|
241
|
+
const actionSlug = toKebabCase(actionName);
|
|
242
|
+
const pluginDir = join(PLUGINS_DIR, pluginName);
|
|
243
|
+
|
|
244
|
+
console.log(`\nGenerating plugin: ${pluginName}`);
|
|
245
|
+
|
|
246
|
+
// Create directories
|
|
247
|
+
mkdirSync(join(pluginDir, "steps"), { recursive: true });
|
|
248
|
+
|
|
249
|
+
// Copy and process template files
|
|
250
|
+
const createdFiles: string[] = [];
|
|
251
|
+
const templateFiles = getTemplateFiles(actionSlug);
|
|
252
|
+
|
|
253
|
+
for (const { src, dest } of templateFiles) {
|
|
254
|
+
const srcPath = join(TEMPLATE_DIR, src);
|
|
255
|
+
const destPath = join(pluginDir, dest);
|
|
256
|
+
|
|
257
|
+
if (!existsSync(srcPath)) {
|
|
258
|
+
console.error(`\nError: Template file not found: ${src}`);
|
|
259
|
+
console.error(" The template directory may be corrupted.\n");
|
|
260
|
+
process.exit(1);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
let content = readFileSync(srcPath, "utf-8");
|
|
264
|
+
content = replacePlaceholders(content, answers);
|
|
265
|
+
|
|
266
|
+
writeFileSync(destPath, content, "utf-8");
|
|
267
|
+
createdFiles.push(`plugins/${pluginName}/${dest}`);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
// Print created files
|
|
271
|
+
console.log(`\nCreated plugin at plugins/${pluginName}/\n`);
|
|
272
|
+
console.log("Files created:");
|
|
273
|
+
for (const file of createdFiles) {
|
|
274
|
+
console.log(` - ${file}`);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// Run discover-plugins to register the new plugin
|
|
278
|
+
console.log("\nAdding plugin to registry...");
|
|
279
|
+
execFileSync("npx", ["nwb", "discover-plugins"], { stdio: "inherit" });
|
|
280
|
+
|
|
281
|
+
console.log(
|
|
282
|
+
`\nPlugin "${answers.integrationName}" has been added to the registry!\n`
|
|
283
|
+
);
|
|
284
|
+
console.log("Next steps:");
|
|
285
|
+
console.log(` 1. Review and customize the files in plugins/${pluginName}/`);
|
|
286
|
+
console.log(" 2. Update the icon in icon.tsx with your integration's SVG");
|
|
287
|
+
console.log(
|
|
288
|
+
" 3. Implement the API logic in steps/ (codegen is auto-generated)"
|
|
289
|
+
);
|
|
290
|
+
console.log(" 4. Test: pnpm dev\n");
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
main().catch((error: unknown) => {
|
|
294
|
+
if (error instanceof Error && error.name === "ExitPromptError") {
|
|
295
|
+
console.log("\nCome back anytime to create your plugin.\n");
|
|
296
|
+
process.exit(0);
|
|
297
|
+
}
|
|
298
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
299
|
+
console.error("Error:", message);
|
|
300
|
+
process.exit(1);
|
|
301
|
+
});
|