@foresthubai/workflow-builder 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/NOTICE +16 -0
- package/README.md +93 -0
- package/dist/BuilderLayout.d.ts +34 -0
- package/dist/BuilderLayout.d.ts.map +1 -0
- package/dist/BuilderLayout.js +172 -0
- package/dist/BuilderLayout.js.map +1 -0
- package/dist/Canvas.d.ts +23 -0
- package/dist/Canvas.d.ts.map +1 -0
- package/dist/Canvas.js +141 -0
- package/dist/Canvas.js.map +1 -0
- package/dist/CanvasEditor.d.ts +46 -0
- package/dist/CanvasEditor.d.ts.map +1 -0
- package/dist/CanvasEditor.js +57 -0
- package/dist/CanvasEditor.js.map +1 -0
- package/dist/CanvasTabsToolbar.d.ts +11 -0
- package/dist/CanvasTabsToolbar.d.ts.map +1 -0
- package/dist/CanvasTabsToolbar.js +101 -0
- package/dist/CanvasTabsToolbar.js.map +1 -0
- package/dist/RightConfigPanel.d.ts +27 -0
- package/dist/RightConfigPanel.d.ts.map +1 -0
- package/dist/RightConfigPanel.js +102 -0
- package/dist/RightConfigPanel.js.map +1 -0
- package/dist/WorkflowBuilder.d.ts +62 -0
- package/dist/WorkflowBuilder.d.ts.map +1 -0
- package/dist/WorkflowBuilder.js +275 -0
- package/dist/WorkflowBuilder.js.map +1 -0
- package/dist/cn.d.ts +3 -0
- package/dist/cn.d.ts.map +1 -0
- package/dist/cn.js +6 -0
- package/dist/cn.js.map +1 -0
- package/dist/components/ui/add-button.d.ts +16 -0
- package/dist/components/ui/add-button.d.ts.map +1 -0
- package/dist/components/ui/add-button.js +21 -0
- package/dist/components/ui/add-button.js.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +21 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +30 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert.d.ts +9 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.js +23 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/badge.d.ts +10 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +21 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/button.d.ts +13 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +40 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +17 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +9 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +6 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/command.d.ts +82 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/command.js +29 -0
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/delete-button.d.ts +11 -0
- package/dist/components/ui/delete-button.d.ts.map +1 -0
- package/dist/components/ui/delete-button.js +14 -0
- package/dist/components/ui/delete-button.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +22 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +27 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +28 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +36 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/input.d.ts +13 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +34 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/label.d.ts +6 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +10 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/readonly-banner.d.ts +7 -0
- package/dist/components/ui/readonly-banner.d.ts.map +1 -0
- package/dist/components/ui/readonly-banner.js +12 -0
- package/dist/components/ui/readonly-banner.js.map +1 -0
- package/dist/components/ui/resizable.d.ts +24 -0
- package/dist/components/ui/resizable.d.ts.map +1 -0
- package/dist/components/ui/resizable.js +9 -0
- package/dist/components/ui/resizable.js.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +45 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.js +27 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/select.d.ts +14 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +30 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +8 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +8 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +12 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +34 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/toast.d.ts +16 -0
- package/dist/components/ui/toast.d.ts.map +1 -0
- package/dist/components/ui/toast.js +34 -0
- package/dist/components/ui/toast.js.map +1 -0
- package/dist/components/ui/toaster.d.ts +2 -0
- package/dist/components/ui/toaster.d.ts.map +1 -0
- package/dist/components/ui/toaster.js +10 -0
- package/dist/components/ui/toaster.js.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +13 -0
- package/dist/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/toggle-group.js +21 -0
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/toggle.d.ts +13 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle.js +26 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +14 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/dialogs/NodePickerDialog.d.ts +10 -0
- package/dist/dialogs/NodePickerDialog.d.ts.map +1 -0
- package/dist/dialogs/NodePickerDialog.js +39 -0
- package/dist/dialogs/NodePickerDialog.js.map +1 -0
- package/dist/dialogs/ValidationDialog.d.ts +17 -0
- package/dist/dialogs/ValidationDialog.d.ts.map +1 -0
- package/dist/dialogs/ValidationDialog.js +29 -0
- package/dist/dialogs/ValidationDialog.js.map +1 -0
- package/dist/graph/BaseNode.d.ts +9 -0
- package/dist/graph/BaseNode.d.ts.map +1 -0
- package/dist/graph/BaseNode.js +318 -0
- package/dist/graph/BaseNode.js.map +1 -0
- package/dist/graph/CustomEdge.d.ts +14 -0
- package/dist/graph/CustomEdge.d.ts.map +1 -0
- package/dist/graph/CustomEdge.js +107 -0
- package/dist/graph/CustomEdge.js.map +1 -0
- package/dist/graph/CustomNode.d.ts +3 -0
- package/dist/graph/CustomNode.d.ts.map +1 -0
- package/dist/graph/CustomNode.js +15 -0
- package/dist/graph/CustomNode.js.map +1 -0
- package/dist/graph/FunctionCallNode.d.ts +3 -0
- package/dist/graph/FunctionCallNode.d.ts.map +1 -0
- package/dist/graph/FunctionCallNode.js +25 -0
- package/dist/graph/FunctionCallNode.js.map +1 -0
- package/dist/graph/PortHandle.d.ts +21 -0
- package/dist/graph/PortHandle.d.ts.map +1 -0
- package/dist/graph/PortHandle.js +113 -0
- package/dist/graph/PortHandle.js.map +1 -0
- package/dist/graph/reactFlowRegistry.d.ts +65 -0
- package/dist/graph/reactFlowRegistry.d.ts.map +1 -0
- package/dist/graph/reactFlowRegistry.js +24 -0
- package/dist/graph/reactFlowRegistry.js.map +1 -0
- package/dist/hooks/use-toast.d.ts +47 -0
- package/dist/hooks/use-toast.d.ts.map +1 -0
- package/dist/hooks/use-toast.js +95 -0
- package/dist/hooks/use-toast.js.map +1 -0
- package/dist/hooks/useAvailableVariables.d.ts +12 -0
- package/dist/hooks/useAvailableVariables.d.ts.map +1 -0
- package/dist/hooks/useAvailableVariables.js +16 -0
- package/dist/hooks/useAvailableVariables.js.map +1 -0
- package/dist/hooks/useCanvasHistory.d.ts +14 -0
- package/dist/hooks/useCanvasHistory.d.ts.map +1 -0
- package/dist/hooks/useCanvasHistory.js +20 -0
- package/dist/hooks/useCanvasHistory.js.map +1 -0
- package/dist/hooks/useCanvasTabs.d.ts +23 -0
- package/dist/hooks/useCanvasTabs.d.ts.map +1 -0
- package/dist/hooks/useCanvasTabs.js +136 -0
- package/dist/hooks/useCanvasTabs.js.map +1 -0
- package/dist/hooks/useFunctionDiagnosticsSync.d.ts +14 -0
- package/dist/hooks/useFunctionDiagnosticsSync.d.ts.map +1 -0
- package/dist/hooks/useFunctionDiagnosticsSync.js +38 -0
- package/dist/hooks/useFunctionDiagnosticsSync.js.map +1 -0
- package/dist/hooks/useFunctionRegistry.d.ts +15 -0
- package/dist/hooks/useFunctionRegistry.d.ts.map +1 -0
- package/dist/hooks/useFunctionRegistry.js +22 -0
- package/dist/hooks/useFunctionRegistry.js.map +1 -0
- package/dist/hooks/useFunctions.d.ts +15 -0
- package/dist/hooks/useFunctions.d.ts.map +1 -0
- package/dist/hooks/useFunctions.js +34 -0
- package/dist/hooks/useFunctions.js.map +1 -0
- package/dist/hooks/useGraph.d.ts +40 -0
- package/dist/hooks/useGraph.d.ts.map +1 -0
- package/dist/hooks/useGraph.js +102 -0
- package/dist/hooks/useGraph.js.map +1 -0
- package/dist/hooks/useNodeDefinitions.d.ts +17 -0
- package/dist/hooks/useNodeDefinitions.d.ts.map +1 -0
- package/dist/hooks/useNodeDefinitions.js +65 -0
- package/dist/hooks/useNodeDefinitions.js.map +1 -0
- package/dist/hooks/useParamErrors.d.ts +12 -0
- package/dist/hooks/useParamErrors.d.ts.map +1 -0
- package/dist/hooks/useParamErrors.js +28 -0
- package/dist/hooks/useParamErrors.js.map +1 -0
- package/dist/hooks/useResolvedTheme.d.ts +10 -0
- package/dist/hooks/useResolvedTheme.d.ts.map +1 -0
- package/dist/hooks/useResolvedTheme.js +29 -0
- package/dist/hooks/useResolvedTheme.js.map +1 -0
- package/dist/hooks/useResourceDiagnosticsSync.d.ts +40 -0
- package/dist/hooks/useResourceDiagnosticsSync.d.ts.map +1 -0
- package/dist/hooks/useResourceDiagnosticsSync.js +39 -0
- package/dist/hooks/useResourceDiagnosticsSync.js.map +1 -0
- package/dist/hooks/useSuppressThemeTransition.d.ts +32 -0
- package/dist/hooks/useSuppressThemeTransition.d.ts.map +1 -0
- package/dist/hooks/useSuppressThemeTransition.js +75 -0
- package/dist/hooks/useSuppressThemeTransition.js.map +1 -0
- package/dist/hooks/useWorkflowSerialization.d.ts +24 -0
- package/dist/hooks/useWorkflowSerialization.d.ts.map +1 -0
- package/dist/hooks/useWorkflowSerialization.js +113 -0
- package/dist/hooks/useWorkflowSerialization.js.map +1 -0
- package/dist/i18n/index.d.ts +4 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +46 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/locales/de.json +501 -0
- package/dist/i18n/locales/en.json +557 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/inputs/ExpressionInput.d.ts +12 -0
- package/dist/inputs/ExpressionInput.d.ts.map +1 -0
- package/dist/inputs/ExpressionInput.js +203 -0
- package/dist/inputs/ExpressionInput.js.map +1 -0
- package/dist/inputs/ParameterEditor.d.ts +13 -0
- package/dist/inputs/ParameterEditor.d.ts.map +1 -0
- package/dist/inputs/ParameterEditor.js +204 -0
- package/dist/inputs/ParameterEditor.js.map +1 -0
- package/dist/inputs/PortSection.d.ts +31 -0
- package/dist/inputs/PortSection.d.ts.map +1 -0
- package/dist/inputs/PortSection.js +26 -0
- package/dist/inputs/PortSection.js.map +1 -0
- package/dist/panels/BuilderSidebar.d.ts +24 -0
- package/dist/panels/BuilderSidebar.d.ts.map +1 -0
- package/dist/panels/BuilderSidebar.js +202 -0
- package/dist/panels/BuilderSidebar.js.map +1 -0
- package/dist/panels/ChannelConfigPanel.d.ts +8 -0
- package/dist/panels/ChannelConfigPanel.d.ts.map +1 -0
- package/dist/panels/ChannelConfigPanel.js +26 -0
- package/dist/panels/ChannelConfigPanel.js.map +1 -0
- package/dist/panels/ChannelsPanel.d.ts +2 -0
- package/dist/panels/ChannelsPanel.d.ts.map +1 -0
- package/dist/panels/ChannelsPanel.js +16 -0
- package/dist/panels/ChannelsPanel.js.map +1 -0
- package/dist/panels/DebugConsolePanel.d.ts +2 -0
- package/dist/panels/DebugConsolePanel.d.ts.map +1 -0
- package/dist/panels/DebugConsolePanel.js +32 -0
- package/dist/panels/DebugConsolePanel.js.map +1 -0
- package/dist/panels/DebugContextPanel.d.ts +2 -0
- package/dist/panels/DebugContextPanel.d.ts.map +1 -0
- package/dist/panels/DebugContextPanel.js +32 -0
- package/dist/panels/DebugContextPanel.js.map +1 -0
- package/dist/panels/DebugExternalIOPanel.d.ts +9 -0
- package/dist/panels/DebugExternalIOPanel.d.ts.map +1 -0
- package/dist/panels/DebugExternalIOPanel.js +66 -0
- package/dist/panels/DebugExternalIOPanel.js.map +1 -0
- package/dist/panels/DiagnosticsPanel.d.ts +8 -0
- package/dist/panels/DiagnosticsPanel.d.ts.map +1 -0
- package/dist/panels/DiagnosticsPanel.js +86 -0
- package/dist/panels/DiagnosticsPanel.js.map +1 -0
- package/dist/panels/EdgeConfigPanel.d.ts +14 -0
- package/dist/panels/EdgeConfigPanel.d.ts.map +1 -0
- package/dist/panels/EdgeConfigPanel.js +34 -0
- package/dist/panels/EdgeConfigPanel.js.map +1 -0
- package/dist/panels/FunctionConfigPanel.d.ts +16 -0
- package/dist/panels/FunctionConfigPanel.d.ts.map +1 -0
- package/dist/panels/FunctionConfigPanel.js +62 -0
- package/dist/panels/FunctionConfigPanel.js.map +1 -0
- package/dist/panels/FunctionListPanel.d.ts +14 -0
- package/dist/panels/FunctionListPanel.d.ts.map +1 -0
- package/dist/panels/FunctionListPanel.js +25 -0
- package/dist/panels/FunctionListPanel.js.map +1 -0
- package/dist/panels/MemoryConfigPanel.d.ts +8 -0
- package/dist/panels/MemoryConfigPanel.d.ts.map +1 -0
- package/dist/panels/MemoryConfigPanel.js +22 -0
- package/dist/panels/MemoryConfigPanel.js.map +1 -0
- package/dist/panels/MemoryPanel.d.ts +2 -0
- package/dist/panels/MemoryPanel.d.ts.map +1 -0
- package/dist/panels/MemoryPanel.js +25 -0
- package/dist/panels/MemoryPanel.js.map +1 -0
- package/dist/panels/ModelConfigPanel.d.ts +8 -0
- package/dist/panels/ModelConfigPanel.d.ts.map +1 -0
- package/dist/panels/ModelConfigPanel.js +14 -0
- package/dist/panels/ModelConfigPanel.js.map +1 -0
- package/dist/panels/ModelsPanel.d.ts +8 -0
- package/dist/panels/ModelsPanel.d.ts.map +1 -0
- package/dist/panels/ModelsPanel.js +24 -0
- package/dist/panels/ModelsPanel.js.map +1 -0
- package/dist/panels/NodeConfigPanel.d.ts +16 -0
- package/dist/panels/NodeConfigPanel.d.ts.map +1 -0
- package/dist/panels/NodeConfigPanel.js +248 -0
- package/dist/panels/NodeConfigPanel.js.map +1 -0
- package/dist/panels/NodeLibrary.d.ts +16 -0
- package/dist/panels/NodeLibrary.d.ts.map +1 -0
- package/dist/panels/NodeLibrary.js +125 -0
- package/dist/panels/NodeLibrary.js.map +1 -0
- package/dist/panels/ResourceConfigPanel.d.ts +37 -0
- package/dist/panels/ResourceConfigPanel.d.ts.map +1 -0
- package/dist/panels/ResourceConfigPanel.js +35 -0
- package/dist/panels/ResourceConfigPanel.js.map +1 -0
- package/dist/panels/ResourceListPanel.d.ts +35 -0
- package/dist/panels/ResourceListPanel.d.ts.map +1 -0
- package/dist/panels/ResourceListPanel.js +35 -0
- package/dist/panels/ResourceListPanel.js.map +1 -0
- package/dist/panels/VariableConfigPanel.d.ts +9 -0
- package/dist/panels/VariableConfigPanel.d.ts.map +1 -0
- package/dist/panels/VariableConfigPanel.js +50 -0
- package/dist/panels/VariableConfigPanel.js.map +1 -0
- package/dist/panels/VariablesPanel.d.ts +7 -0
- package/dist/panels/VariablesPanel.d.ts.map +1 -0
- package/dist/panels/VariablesPanel.js +56 -0
- package/dist/panels/VariablesPanel.js.map +1 -0
- package/dist/stores/canvasStore.d.ts +41 -0
- package/dist/stores/canvasStore.d.ts.map +1 -0
- package/dist/stores/canvasStore.js +187 -0
- package/dist/stores/canvasStore.js.map +1 -0
- package/dist/stores/debugStore.d.ts +42 -0
- package/dist/stores/debugStore.d.ts.map +1 -0
- package/dist/stores/debugStore.js +22 -0
- package/dist/stores/debugStore.js.map +1 -0
- package/dist/stores/diagnosticsStore.d.ts +41 -0
- package/dist/stores/diagnosticsStore.d.ts.map +1 -0
- package/dist/stores/diagnosticsStore.js +67 -0
- package/dist/stores/diagnosticsStore.js.map +1 -0
- package/dist/stores/editorStore.d.ts +76 -0
- package/dist/stores/editorStore.d.ts.map +1 -0
- package/dist/stores/editorStore.js +116 -0
- package/dist/stores/editorStore.js.map +1 -0
- package/dist/utils/categoryConstants.d.ts +4 -0
- package/dist/utils/categoryConstants.d.ts.map +1 -0
- package/dist/utils/categoryConstants.js +24 -0
- package/dist/utils/categoryConstants.js.map +1 -0
- package/dist/utils/channelOperations.d.ts +21 -0
- package/dist/utils/channelOperations.d.ts.map +1 -0
- package/dist/utils/channelOperations.js +84 -0
- package/dist/utils/channelOperations.js.map +1 -0
- package/dist/utils/connectionRules.d.ts +15 -0
- package/dist/utils/connectionRules.d.ts.map +1 -0
- package/dist/utils/connectionRules.js +113 -0
- package/dist/utils/connectionRules.js.map +1 -0
- package/dist/utils/functionOperations.d.ts +27 -0
- package/dist/utils/functionOperations.d.ts.map +1 -0
- package/dist/utils/functionOperations.js +140 -0
- package/dist/utils/functionOperations.js.map +1 -0
- package/dist/utils/graphOperations.d.ts +54 -0
- package/dist/utils/graphOperations.d.ts.map +1 -0
- package/dist/utils/graphOperations.js +461 -0
- package/dist/utils/graphOperations.js.map +1 -0
- package/dist/utils/history.d.ts +76 -0
- package/dist/utils/history.d.ts.map +1 -0
- package/dist/utils/history.js +93 -0
- package/dist/utils/history.js.map +1 -0
- package/dist/utils/memoryOperations.d.ts +14 -0
- package/dist/utils/memoryOperations.d.ts.map +1 -0
- package/dist/utils/memoryOperations.js +55 -0
- package/dist/utils/memoryOperations.js.map +1 -0
- package/dist/utils/migrateFunctionNodes.d.ts +9 -0
- package/dist/utils/migrateFunctionNodes.d.ts.map +1 -0
- package/dist/utils/migrateFunctionNodes.js +89 -0
- package/dist/utils/migrateFunctionNodes.js.map +1 -0
- package/dist/utils/modelOperations.d.ts +13 -0
- package/dist/utils/modelOperations.d.ts.map +1 -0
- package/dist/utils/modelOperations.js +53 -0
- package/dist/utils/modelOperations.js.map +1 -0
- package/dist/utils/paramDisplay.d.ts +12 -0
- package/dist/utils/paramDisplay.d.ts.map +1 -0
- package/dist/utils/paramDisplay.js +56 -0
- package/dist/utils/paramDisplay.js.map +1 -0
- package/dist/utils/resourceHelpers.d.ts +17 -0
- package/dist/utils/resourceHelpers.d.ts.map +1 -0
- package/dist/utils/resourceHelpers.js +32 -0
- package/dist/utils/resourceHelpers.js.map +1 -0
- package/dist/utils/translation.d.ts +20 -0
- package/dist/utils/translation.d.ts.map +1 -0
- package/dist/utils/translation.js +23 -0
- package/dist/utils/translation.js.map +1 -0
- package/dist/utils/variableOperations.d.ts +15 -0
- package/dist/utils/variableOperations.d.ts.map +1 -0
- package/dist/utils/variableOperations.js +71 -0
- package/dist/utils/variableOperations.js.map +1 -0
- package/package.json +79 -0
- package/src/BuilderLayout.tsx +345 -0
- package/src/Canvas.tsx +261 -0
- package/src/CanvasEditor.tsx +142 -0
- package/src/CanvasTabsToolbar.tsx +176 -0
- package/src/RightConfigPanel.tsx +266 -0
- package/src/WorkflowBuilder.tsx +412 -0
- package/src/cn.ts +6 -0
- package/src/components/ui/add-button.tsx +39 -0
- package/src/components/ui/alert-dialog.tsx +141 -0
- package/src/components/ui/alert.tsx +59 -0
- package/src/components/ui/badge.tsx +36 -0
- package/src/components/ui/button.tsx +85 -0
- package/src/components/ui/card.tsx +79 -0
- package/src/components/ui/checkbox.tsx +28 -0
- package/src/components/ui/collapsible.tsx +9 -0
- package/src/components/ui/command.tsx +153 -0
- package/src/components/ui/delete-button.tsx +23 -0
- package/src/components/ui/dialog.tsx +125 -0
- package/src/components/ui/dropdown-menu.tsx +198 -0
- package/src/components/ui/input.tsx +55 -0
- package/src/components/ui/label.tsx +24 -0
- package/src/components/ui/readonly-banner.tsx +15 -0
- package/src/components/ui/resizable.tsx +43 -0
- package/src/components/ui/scroll-area.tsx +102 -0
- package/src/components/ui/select.tsx +160 -0
- package/src/components/ui/separator.tsx +29 -0
- package/src/components/ui/switch.tsx +27 -0
- package/src/components/ui/textarea.tsx +51 -0
- package/src/components/ui/toast.tsx +127 -0
- package/src/components/ui/toaster.tsx +33 -0
- package/src/components/ui/toggle-group.tsx +59 -0
- package/src/components/ui/toggle.tsx +43 -0
- package/src/components/ui/tooltip.tsx +32 -0
- package/src/dialogs/NodePickerDialog.tsx +84 -0
- package/src/dialogs/ValidationDialog.tsx +184 -0
- package/src/graph/BaseNode.tsx +557 -0
- package/src/graph/CustomEdge.tsx +185 -0
- package/src/graph/CustomNode.tsx +16 -0
- package/src/graph/FunctionCallNode.tsx +30 -0
- package/src/graph/PortHandle.tsx +189 -0
- package/src/graph/reactFlowRegistry.ts +26 -0
- package/src/hooks/use-toast.ts +125 -0
- package/src/hooks/useAvailableVariables.ts +20 -0
- package/src/hooks/useCanvasHistory.ts +22 -0
- package/src/hooks/useCanvasTabs.ts +168 -0
- package/src/hooks/useFunctionDiagnosticsSync.ts +40 -0
- package/src/hooks/useFunctionRegistry.ts +26 -0
- package/src/hooks/useFunctions.ts +44 -0
- package/src/hooks/useGraph.ts +161 -0
- package/src/hooks/useNodeDefinitions.ts +82 -0
- package/src/hooks/useParamErrors.ts +26 -0
- package/src/hooks/useResolvedTheme.ts +30 -0
- package/src/hooks/useResourceDiagnosticsSync.ts +58 -0
- package/src/hooks/useSuppressThemeTransition.ts +79 -0
- package/src/hooks/useWorkflowSerialization.ts +127 -0
- package/src/i18n/index.ts +53 -0
- package/src/i18n/locales/de.json +501 -0
- package/src/i18n/locales/en.json +557 -0
- package/src/index.ts +27 -0
- package/src/inputs/ExpressionInput.tsx +297 -0
- package/src/inputs/ParameterEditor.tsx +515 -0
- package/src/inputs/PortSection.tsx +144 -0
- package/src/panels/BuilderSidebar.tsx +301 -0
- package/src/panels/ChannelConfigPanel.tsx +49 -0
- package/src/panels/ChannelsPanel.tsx +28 -0
- package/src/panels/DebugConsolePanel.tsx +73 -0
- package/src/panels/DebugContextPanel.tsx +77 -0
- package/src/panels/DebugExternalIOPanel.tsx +180 -0
- package/src/panels/DiagnosticsPanel.tsx +170 -0
- package/src/panels/EdgeConfigPanel.tsx +104 -0
- package/src/panels/FunctionConfigPanel.tsx +179 -0
- package/src/panels/FunctionListPanel.tsx +45 -0
- package/src/panels/MemoryConfigPanel.tsx +55 -0
- package/src/panels/MemoryPanel.tsx +40 -0
- package/src/panels/ModelConfigPanel.tsx +41 -0
- package/src/panels/ModelsPanel.tsx +36 -0
- package/src/panels/NodeConfigPanel.tsx +630 -0
- package/src/panels/NodeLibrary.tsx +288 -0
- package/src/panels/ResourceConfigPanel.tsx +132 -0
- package/src/panels/ResourceListPanel.tsx +113 -0
- package/src/panels/VariableConfigPanel.tsx +161 -0
- package/src/panels/VariablesPanel.tsx +145 -0
- package/src/stores/canvasStore.test.ts +44 -0
- package/src/stores/canvasStore.ts +245 -0
- package/src/stores/debugStore.ts +74 -0
- package/src/stores/diagnosticsStore.ts +130 -0
- package/src/stores/editorStore.ts +202 -0
- package/src/styles/index.css +526 -0
- package/src/utils/categoryConstants.ts +26 -0
- package/src/utils/channelOperations.ts +86 -0
- package/src/utils/connectionRules.ts +137 -0
- package/src/utils/functionOperations.ts +179 -0
- package/src/utils/graphOperations.ts +550 -0
- package/src/utils/history.ts +207 -0
- package/src/utils/memoryOperations.ts +57 -0
- package/src/utils/migrateFunctionNodes.ts +107 -0
- package/src/utils/modelOperations.ts +55 -0
- package/src/utils/paramDisplay.ts +71 -0
- package/src/utils/resourceHelpers.ts +32 -0
- package/src/utils/translation.ts +28 -0
- package/src/utils/variableOperations.ts +75 -0
- package/tailwind-preset.ts +166 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TFunction } from "i18next";
|
|
2
|
+
import type { NodeDefinition } from "@foresthubai/workflow-core/node";
|
|
3
|
+
import type { Parameter } from "@foresthubai/workflow-core/parameter";
|
|
4
|
+
/**
|
|
5
|
+
* Convention-based i18n helpers for description strings only.
|
|
6
|
+
*
|
|
7
|
+
* Keys follow the pattern:
|
|
8
|
+
* nodes.<NodeType>.description
|
|
9
|
+
* edges.<EdgeType>.description
|
|
10
|
+
* <prefix>.params.<paramId>.description
|
|
11
|
+
*
|
|
12
|
+
* Labels, categories, port names, and option labels stay as raw English code values.
|
|
13
|
+
* Only natural-language descriptions are translated.
|
|
14
|
+
*/
|
|
15
|
+
export declare function getNodeDescription(t: TFunction, def: NodeDefinition): string;
|
|
16
|
+
export declare function getParamDescription(t: TFunction, translationPrefix: string, param: Parameter): string;
|
|
17
|
+
export declare function getEdgeDescription(t: TFunction, def: {
|
|
18
|
+
description: string;
|
|
19
|
+
}, portType: string): string;
|
|
20
|
+
//# sourceMappingURL=translation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../src/utils/translation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEtE;;;;;;;;;;GAUG;AAEH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,cAAc,GAAG,MAAM,CAE5E;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,GAAG,MAAM,CAGrG;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEvG"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convention-based i18n helpers for description strings only.
|
|
3
|
+
*
|
|
4
|
+
* Keys follow the pattern:
|
|
5
|
+
* nodes.<NodeType>.description
|
|
6
|
+
* edges.<EdgeType>.description
|
|
7
|
+
* <prefix>.params.<paramId>.description
|
|
8
|
+
*
|
|
9
|
+
* Labels, categories, port names, and option labels stay as raw English code values.
|
|
10
|
+
* Only natural-language descriptions are translated.
|
|
11
|
+
*/
|
|
12
|
+
export function getNodeDescription(t, def) {
|
|
13
|
+
return t(`nodes.${def.type}.description`, { defaultValue: def.description });
|
|
14
|
+
}
|
|
15
|
+
export function getParamDescription(t, translationPrefix, param) {
|
|
16
|
+
if (!param.description)
|
|
17
|
+
return "";
|
|
18
|
+
return t(`${translationPrefix}.params.${param.id}.description`, { defaultValue: param.description });
|
|
19
|
+
}
|
|
20
|
+
export function getEdgeDescription(t, def, portType) {
|
|
21
|
+
return t(`edges.${portType}.description`, { defaultValue: def.description });
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=translation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../src/utils/translation.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AAEH,MAAM,UAAU,kBAAkB,CAAC,CAAY,EAAE,GAAmB;IAClE,OAAO,CAAC,CAAC,SAAS,GAAG,CAAC,IAAI,cAAc,EAAE,EAAE,YAAY,EAAE,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;AAC/E,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,CAAY,EAAE,iBAAyB,EAAE,KAAgB;IAC3F,IAAI,CAAC,KAAK,CAAC,WAAW;QAAE,OAAO,EAAE,CAAC;IAClC,OAAO,CAAC,CAAC,GAAG,iBAAiB,WAAW,KAAK,CAAC,EAAE,cAAc,EAAE,EAAE,YAAY,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;AACvG,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,CAAY,EAAE,GAA4B,EAAE,QAAgB;IAC7F,OAAO,CAAC,CAAC,SAAS,QAAQ,cAAc,EAAE,EAAE,YAAY,EAAE,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type DeclaredVariable } from "@foresthubai/workflow-core/variable";
|
|
2
|
+
import type { DataType } from "@foresthubai/workflow-core";
|
|
3
|
+
/** Create a new declared variable on the given canvas. Returns its uid. */
|
|
4
|
+
export declare function addDeclaredVariable(canvasId: string): string;
|
|
5
|
+
/** Apply a partial patch to a declared variable. `kind`/`uid` are fixed. */
|
|
6
|
+
export declare function updateDeclaredVariable(canvasId: string, uid: string, updates: Partial<Omit<DeclaredVariable, "kind" | "uid">>): void;
|
|
7
|
+
/**
|
|
8
|
+
* Change a declared variable's dataType. The previous initialValue is dropped —
|
|
9
|
+
* a value entered for one type rarely makes sense for another, so we reset
|
|
10
|
+
* rather than attempt a lossy coercion.
|
|
11
|
+
*/
|
|
12
|
+
export declare function setDeclaredVariableType(canvasId: string, uid: string, dataType: DataType): void;
|
|
13
|
+
/** Delete a declared variable and clear its selection if it was open. */
|
|
14
|
+
export declare function deleteDeclaredVariable(canvasId: string, uid: string): void;
|
|
15
|
+
//# sourceMappingURL=variableOperations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variableOperations.d.ts","sourceRoot":"","sources":["../../src/utils/variableOperations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAC5F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAqB3D,2EAA2E;AAC3E,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAe5D;AAED,4EAA4E;AAC5E,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,KAAK,CAAC,CAAC,GAAG,IAAI,CASpI;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAE/F;AAED,yEAAyE;AACzE,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAY1E"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { declaredVarKey } from "@foresthubai/workflow-core/variable";
|
|
2
|
+
import { getOrCreateCanvasStore } from "../stores/canvasStore";
|
|
3
|
+
import { useEditorStore } from "../stores/editorStore";
|
|
4
|
+
import { generateId } from "@foresthubai/workflow-core/id";
|
|
5
|
+
/**
|
|
6
|
+
* Per-canvas mutation helpers for declared variables. Mirrors
|
|
7
|
+
* utils/modelOperations.ts, but declared variables are canvas-scoped (they live
|
|
8
|
+
* in canvasStore.variables, not editorStore), so every helper takes a canvasId.
|
|
9
|
+
*
|
|
10
|
+
* Each write takes a history checkpoint first, matching the inline editor it
|
|
11
|
+
* replaces, so a single edit is one undo step.
|
|
12
|
+
*/
|
|
13
|
+
/** Pick a fresh `var<N>` name that doesn't collide with existing declared variables. */
|
|
14
|
+
function nextDefaultName(existingNames) {
|
|
15
|
+
let counter = 1;
|
|
16
|
+
while (existingNames.includes(`var${counter}`))
|
|
17
|
+
counter++;
|
|
18
|
+
return `var${counter}`;
|
|
19
|
+
}
|
|
20
|
+
/** Create a new declared variable on the given canvas. Returns its uid. */
|
|
21
|
+
export function addDeclaredVariable(canvasId) {
|
|
22
|
+
const store = getOrCreateCanvasStore(canvasId);
|
|
23
|
+
store.takeCheckpoint();
|
|
24
|
+
const existingNames = Object.values(store.getState().variables)
|
|
25
|
+
.filter((v) => v.kind === "declared")
|
|
26
|
+
.map((v) => v.name);
|
|
27
|
+
const uid = generateId();
|
|
28
|
+
const newVar = {
|
|
29
|
+
kind: "declared",
|
|
30
|
+
uid,
|
|
31
|
+
name: nextDefaultName(existingNames),
|
|
32
|
+
dataType: "int",
|
|
33
|
+
};
|
|
34
|
+
store.getState().setVariables((vars) => ({ ...vars, [declaredVarKey(uid)]: newVar }));
|
|
35
|
+
return uid;
|
|
36
|
+
}
|
|
37
|
+
/** Apply a partial patch to a declared variable. `kind`/`uid` are fixed. */
|
|
38
|
+
export function updateDeclaredVariable(canvasId, uid, updates) {
|
|
39
|
+
const store = getOrCreateCanvasStore(canvasId);
|
|
40
|
+
store.takeCheckpoint();
|
|
41
|
+
const key = declaredVarKey(uid);
|
|
42
|
+
store.getState().setVariables((vars) => {
|
|
43
|
+
const existing = vars[key];
|
|
44
|
+
if (!existing || existing.kind !== "declared")
|
|
45
|
+
return vars;
|
|
46
|
+
return { ...vars, [key]: { ...existing, ...updates } };
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Change a declared variable's dataType. The previous initialValue is dropped —
|
|
51
|
+
* a value entered for one type rarely makes sense for another, so we reset
|
|
52
|
+
* rather than attempt a lossy coercion.
|
|
53
|
+
*/
|
|
54
|
+
export function setDeclaredVariableType(canvasId, uid, dataType) {
|
|
55
|
+
updateDeclaredVariable(canvasId, uid, { dataType, initialValue: undefined });
|
|
56
|
+
}
|
|
57
|
+
/** Delete a declared variable and clear its selection if it was open. */
|
|
58
|
+
export function deleteDeclaredVariable(canvasId, uid) {
|
|
59
|
+
const store = getOrCreateCanvasStore(canvasId);
|
|
60
|
+
store.takeCheckpoint();
|
|
61
|
+
const key = declaredVarKey(uid);
|
|
62
|
+
store.getState().setVariables((vars) => {
|
|
63
|
+
const { [key]: _drop, ...rest } = vars;
|
|
64
|
+
return rest;
|
|
65
|
+
});
|
|
66
|
+
const sel = useEditorStore.getState().selection;
|
|
67
|
+
if (sel.kind === "variable" && sel.uid === uid) {
|
|
68
|
+
useEditorStore.getState().clearSelection();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=variableOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variableOperations.js","sourceRoot":"","sources":["../../src/utils/variableOperations.ts"],"names":[],"mappings":"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"}
|
package/package.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@foresthubai/workflow-builder",
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Reusable React component library: the workflow canvas/editor. Imports workflow-core for types and validation.",
|
|
5
|
+
"license": "AGPL-3.0-only",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/ForestHubAI/edge-agents.git",
|
|
9
|
+
"directory": "ts/workflow-builder"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"main": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./styles/index.css": "./src/styles/index.css",
|
|
20
|
+
"./tailwind-preset": "./tailwind-preset.ts"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"src",
|
|
25
|
+
"tailwind-preset.ts",
|
|
26
|
+
"LICENSE",
|
|
27
|
+
"NOTICE"
|
|
28
|
+
],
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"registry": "https://registry.npmjs.org/",
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "tsc -b",
|
|
35
|
+
"test": "vitest run",
|
|
36
|
+
"prepublishOnly": "npm run build"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"react": ">=18",
|
|
40
|
+
"react-dom": ">=18",
|
|
41
|
+
"tailwindcss": "^3.4.0"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@foresthubai/workflow-core": "0.3.0",
|
|
45
|
+
"@radix-ui/react-alert-dialog": "^1.1.1",
|
|
46
|
+
"@radix-ui/react-checkbox": "^1.1.1",
|
|
47
|
+
"@radix-ui/react-collapsible": "^1.1.0",
|
|
48
|
+
"@radix-ui/react-dialog": "^1.1.2",
|
|
49
|
+
"@radix-ui/react-dropdown-menu": "^2.1.1",
|
|
50
|
+
"@radix-ui/react-label": "^2.1.0",
|
|
51
|
+
"@radix-ui/react-scroll-area": "^1.1.0",
|
|
52
|
+
"@radix-ui/react-select": "^2.1.1",
|
|
53
|
+
"@radix-ui/react-separator": "^1.1.0",
|
|
54
|
+
"@radix-ui/react-slot": "^1.1.0",
|
|
55
|
+
"@radix-ui/react-switch": "^1.1.0",
|
|
56
|
+
"@radix-ui/react-toast": "^1.2.1",
|
|
57
|
+
"@radix-ui/react-toggle": "^1.1.0",
|
|
58
|
+
"@radix-ui/react-toggle-group": "^1.1.0",
|
|
59
|
+
"@radix-ui/react-tooltip": "^1.1.4",
|
|
60
|
+
"@xyflow/react": "^12.8.1",
|
|
61
|
+
"class-variance-authority": "^0.7.1",
|
|
62
|
+
"clsx": "^2.1.1",
|
|
63
|
+
"cmdk": "^1.0.0",
|
|
64
|
+
"i18next": "^25.3.2",
|
|
65
|
+
"lucide-react": "^0.462.0",
|
|
66
|
+
"react-i18next": "^15.6.1",
|
|
67
|
+
"react-resizable-panels": "^2.1.3",
|
|
68
|
+
"tailwind-merge": "^2.5.2",
|
|
69
|
+
"tailwindcss-animate": "^1.0.7",
|
|
70
|
+
"zustand": "^5.0.10"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@types/react": "^18.3.0",
|
|
74
|
+
"@types/react-dom": "^18.3.0",
|
|
75
|
+
"tailwindcss": "^3.4.0",
|
|
76
|
+
"typescript": "^5.6.0",
|
|
77
|
+
"vitest": "^4.1.8"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import type { FunctionDeclaration } from "@foresthubai/workflow-core/function";
|
|
2
|
+
import type { NodeDefinition } from "@foresthubai/workflow-core/node";
|
|
3
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
|
+
import type { Connection, OnSelectionChangeFunc } from "@xyflow/react";
|
|
5
|
+
|
|
6
|
+
import { toast } from "./hooks/use-toast";
|
|
7
|
+
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "./components/ui/resizable";
|
|
8
|
+
import { BuilderSidebar } from "./panels/BuilderSidebar";
|
|
9
|
+
import { CanvasTabsToolbar } from "./CanvasTabsToolbar";
|
|
10
|
+
import { CanvasEditor } from "./CanvasEditor";
|
|
11
|
+
import { RightConfigPanel } from "./RightConfigPanel";
|
|
12
|
+
import { useCanvasHistory } from "./hooks/useCanvasHistory";
|
|
13
|
+
import { useGraph } from "./hooks/useGraph";
|
|
14
|
+
import { useNodeDefinitions } from "./hooks/useNodeDefinitions";
|
|
15
|
+
import { DebugConsolePanel } from "./panels/DebugConsolePanel";
|
|
16
|
+
import type { CanvasTab } from "./hooks/useCanvasTabs";
|
|
17
|
+
import { getOrCreateCanvasStore, MAIN_CANVAS_ID } from "./stores/canvasStore";
|
|
18
|
+
import { useEditorStore } from "./stores/editorStore";
|
|
19
|
+
import { isReadOnly } from "./WorkflowBuilder";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Chrome composer. Stable across canvas switches — only the {@link CanvasEditor}
|
|
23
|
+
* child remounts via `key={activeCanvasId}`.
|
|
24
|
+
*
|
|
25
|
+
* Owns:
|
|
26
|
+
* - Sidebar tab state and the mode → sidebar-tab auto-switch effect.
|
|
27
|
+
* - viewportCenterRef (populated by ReactFlow, consumed by sidebar's
|
|
28
|
+
* click-to-add path).
|
|
29
|
+
* - Selection-drag flag (lifted here so RightConfigPanel can read it).
|
|
30
|
+
* - All graph mutation handlers — bound to active canvas via
|
|
31
|
+
* `useGraph(activeCanvasId)`. Handlers stay stable enough to pass to the
|
|
32
|
+
* sidebar; closures refresh automatically when the active canvas changes.
|
|
33
|
+
* - Document-level keyboard handlers (undo/redo/copy/paste/delete/escape).
|
|
34
|
+
*
|
|
35
|
+
* Receives the open-tab list and function-CRUD callbacks from
|
|
36
|
+
* {@link WorkflowBuilder} above (which owns long-lived editor state).
|
|
37
|
+
*/
|
|
38
|
+
export interface BuilderLayoutProps {
|
|
39
|
+
functions: FunctionDeclaration[];
|
|
40
|
+
/** Open (and select) an existing function — used by the sidebar list and tab dropdown. */
|
|
41
|
+
onOpenFunction: (functionId: string) => void;
|
|
42
|
+
/** Create a new function and open it — the sidebar list's "Add" action. */
|
|
43
|
+
onCreateFunction: () => string;
|
|
44
|
+
|
|
45
|
+
canvasTabs: CanvasTab[];
|
|
46
|
+
onCanvasTabChange: (tabId: string) => void;
|
|
47
|
+
onCanvasTabClose: (tabId: string) => void;
|
|
48
|
+
onCanvasTabReorder: (fromIndex: number, toIndex: number) => void;
|
|
49
|
+
|
|
50
|
+
onTestNode?: (nodeId: string) => void;
|
|
51
|
+
onDebugStep?: (nodeId?: string) => void;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export const BuilderLayout = ({
|
|
55
|
+
functions,
|
|
56
|
+
onOpenFunction,
|
|
57
|
+
onCreateFunction,
|
|
58
|
+
canvasTabs,
|
|
59
|
+
onCanvasTabChange,
|
|
60
|
+
onCanvasTabClose,
|
|
61
|
+
onCanvasTabReorder,
|
|
62
|
+
onTestNode,
|
|
63
|
+
onDebugStep,
|
|
64
|
+
}: BuilderLayoutProps) => {
|
|
65
|
+
const activeCanvasId = useEditorStore((s) => s.activeCanvasId);
|
|
66
|
+
const builderMode = useEditorStore((s) => s.builderMode);
|
|
67
|
+
const readOnly = isReadOnly(builderMode);
|
|
68
|
+
const isDebugMode = builderMode.type === "debug";
|
|
69
|
+
|
|
70
|
+
// NodeRegistry (static) + dynamic function nodes — derived, not embedder-provided.
|
|
71
|
+
const { nodeDefinitions, getNodeDefinition, getAllCategories } = useNodeDefinitions();
|
|
72
|
+
|
|
73
|
+
const graph = useGraph(activeCanvasId, readOnly);
|
|
74
|
+
const { undo, redo, takeCheckpoint, canUndo, canRedo } = useCanvasHistory(activeCanvasId);
|
|
75
|
+
|
|
76
|
+
// Selection (project-wide in editorStore, mirrored to canvas store for RF visual)
|
|
77
|
+
const selection = useEditorStore((s) => s.selection);
|
|
78
|
+
const selectGraph = useEditorStore((s) => s.selectGraph);
|
|
79
|
+
const syncSelectionFromRF = useEditorStore((s) => s.syncSelectionFromRF);
|
|
80
|
+
const clearSelection = useEditorStore((s) => s.clearSelection);
|
|
81
|
+
|
|
82
|
+
// Sidebar tab state + mode auto-switch.
|
|
83
|
+
const activeSidebarTab = useEditorStore((s) => s.activeSidebarTab);
|
|
84
|
+
const setActiveSidebarTab = useEditorStore((s) => s.setActiveSidebarTab);
|
|
85
|
+
useEffect(() => {
|
|
86
|
+
const isDebugTab = activeSidebarTab === "debug-context";
|
|
87
|
+
if (isDebugMode && !isDebugTab) {
|
|
88
|
+
setActiveSidebarTab("debug-context");
|
|
89
|
+
} else if (!isDebugMode && isDebugTab) {
|
|
90
|
+
setActiveSidebarTab("nodes");
|
|
91
|
+
}
|
|
92
|
+
}, [isDebugMode, activeSidebarTab, setActiveSidebarTab]);
|
|
93
|
+
|
|
94
|
+
// Selection-drag flag (used by RightConfigPanel to suppress during drag).
|
|
95
|
+
const [selectionDrag, setSelectionDrag] = useState(false);
|
|
96
|
+
|
|
97
|
+
// ViewportCenter ref (populated by ReactFlow inside CanvasEditor, consumed
|
|
98
|
+
// here for sidebar's click-to-add path).
|
|
99
|
+
const viewportCenterRef = useRef<(() => { x: number; y: number }) | null>(null);
|
|
100
|
+
|
|
101
|
+
// ── Handlers ──────────────────────────────────────────────────────────────
|
|
102
|
+
|
|
103
|
+
const selectNodeById: (id: string) => void = useCallback(
|
|
104
|
+
(nodeId: string) => selectGraph([nodeId], []),
|
|
105
|
+
[selectGraph],
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
const selectEdgeById = useCallback((edgeId: string) => selectGraph([], [edgeId]), [selectGraph]);
|
|
109
|
+
|
|
110
|
+
const handleAddNode = useCallback(
|
|
111
|
+
(nodeDef: NodeDefinition, position?: { x: number; y: number }) => {
|
|
112
|
+
const pos = position ?? viewportCenterRef.current?.();
|
|
113
|
+
const id = graph.addNode(nodeDef, pos);
|
|
114
|
+
if (id == null) {
|
|
115
|
+
toast({ title: `Only one ${nodeDef.label} node allowed per canvas`, variant: "destructive" });
|
|
116
|
+
}
|
|
117
|
+
return id;
|
|
118
|
+
},
|
|
119
|
+
[graph],
|
|
120
|
+
);
|
|
121
|
+
|
|
122
|
+
const handleConnect = useCallback(
|
|
123
|
+
(conn: Connection) => {
|
|
124
|
+
const edgeType = graph.onConnect(conn);
|
|
125
|
+
// Auto-select agent edges so the config panel opens for parameter entry.
|
|
126
|
+
if (edgeType && edgeType !== "control" && edgeType !== "tool") {
|
|
127
|
+
const { edges: currentEdges } = getOrCreateCanvasStore(activeCanvasId).getState();
|
|
128
|
+
const newEdge = currentEdges.find(
|
|
129
|
+
(e) =>
|
|
130
|
+
e.source === conn.source &&
|
|
131
|
+
e.target === conn.target &&
|
|
132
|
+
e.sourceHandle === conn.sourceHandle &&
|
|
133
|
+
e.targetHandle === conn.targetHandle,
|
|
134
|
+
);
|
|
135
|
+
if (newEdge) selectEdgeById(newEdge.id);
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
[graph, activeCanvasId, selectEdgeById],
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
const handleAddNodeAndConnect = useCallback(
|
|
142
|
+
(
|
|
143
|
+
nodeDef: NodeDefinition,
|
|
144
|
+
position: { x: number; y: number },
|
|
145
|
+
connection: { source: string; sourceHandle: string; target: string; targetHandle: string },
|
|
146
|
+
) => {
|
|
147
|
+
const newNodeId = graph.addNodeAndConnect(nodeDef, position, connection);
|
|
148
|
+
if (newNodeId == null) {
|
|
149
|
+
toast({ title: `Only one ${nodeDef.label} node allowed per canvas`, variant: "destructive" });
|
|
150
|
+
}
|
|
151
|
+
return newNodeId;
|
|
152
|
+
},
|
|
153
|
+
[graph],
|
|
154
|
+
);
|
|
155
|
+
|
|
156
|
+
const handleSelectionChange: OnSelectionChangeFunc = useCallback(
|
|
157
|
+
({ nodes: selNodes, edges: selEdges }) => {
|
|
158
|
+
syncSelectionFromRF(
|
|
159
|
+
selNodes.map((n) => n.id),
|
|
160
|
+
selEdges.map((e) => e.id),
|
|
161
|
+
);
|
|
162
|
+
},
|
|
163
|
+
[syncSelectionFromRF],
|
|
164
|
+
);
|
|
165
|
+
|
|
166
|
+
const handleDeleteEdge = useCallback(
|
|
167
|
+
(edgeId: string) => {
|
|
168
|
+
graph.deleteEdges([edgeId]);
|
|
169
|
+
clearSelection();
|
|
170
|
+
},
|
|
171
|
+
[graph, clearSelection],
|
|
172
|
+
);
|
|
173
|
+
|
|
174
|
+
const handleNodeDragStart = useCallback(() => {
|
|
175
|
+
takeCheckpoint();
|
|
176
|
+
}, [takeCheckpoint]);
|
|
177
|
+
|
|
178
|
+
const deleteSelected = useCallback(() => {
|
|
179
|
+
const sel = useEditorStore.getState().selection;
|
|
180
|
+
const nodeIds = sel.kind === "graph" ? sel.nodeIds : [];
|
|
181
|
+
const edgeIds = sel.kind === "graph" ? sel.edgeIds : [];
|
|
182
|
+
graph.deleteSelected(nodeIds, edgeIds);
|
|
183
|
+
clearSelection();
|
|
184
|
+
}, [graph, clearSelection]);
|
|
185
|
+
|
|
186
|
+
const handlePaste = useCallback(
|
|
187
|
+
(offset?: { x: number; y: number }) => {
|
|
188
|
+
const result = graph.pasteSelection(offset);
|
|
189
|
+
if (result?.skippedLabels.length) {
|
|
190
|
+
for (const label of result.skippedLabels) {
|
|
191
|
+
toast({ title: `Only one ${label} node allowed per canvas`, variant: "destructive" });
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
return result;
|
|
195
|
+
},
|
|
196
|
+
[graph],
|
|
197
|
+
);
|
|
198
|
+
|
|
199
|
+
// Debug mode: clicking a node sets the debug cursor.
|
|
200
|
+
// useEffect(() => {
|
|
201
|
+
// if (!isDebugMode || selectedNodeIds.length !== 1) return;
|
|
202
|
+
// const nodeId = selectedNodeIds[0];
|
|
203
|
+
// const phase = useDebugStore.getState().phase;
|
|
204
|
+
// if (phase.status === "idle") {
|
|
205
|
+
// useDebugStore
|
|
206
|
+
// .getState()
|
|
207
|
+
// .setPhase({ status: "paused", sessionId: phase.sessionId, cursorNodeId: nodeId });
|
|
208
|
+
// } else if (phase.status === "paused") {
|
|
209
|
+
// useDebugStore.getState().setPhase({ ...phase, cursorNodeId: nodeId });
|
|
210
|
+
// }
|
|
211
|
+
// }, [isDebugMode, selectedNodeIds]);
|
|
212
|
+
|
|
213
|
+
// Keyboard handlers — undo/redo/copy/paste/delete/escape.
|
|
214
|
+
useEffect(() => {
|
|
215
|
+
const handleKeyDown = (event: KeyboardEvent) => {
|
|
216
|
+
const target = event.target as HTMLElement;
|
|
217
|
+
if (target?.tagName === "INPUT" || target?.tagName === "TEXTAREA" || target?.isContentEditable) {
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
if (readOnly) {
|
|
221
|
+
if (event.key === "Escape") clearSelection();
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
if ((event.ctrlKey || event.metaKey) && event.key === "z" && !event.shiftKey) {
|
|
225
|
+
event.preventDefault();
|
|
226
|
+
if (canUndo()) {
|
|
227
|
+
clearSelection();
|
|
228
|
+
undo();
|
|
229
|
+
}
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
if ((event.ctrlKey || event.metaKey) && (event.key === "y" || (event.key === "z" && event.shiftKey))) {
|
|
233
|
+
event.preventDefault();
|
|
234
|
+
if (canRedo()) {
|
|
235
|
+
clearSelection();
|
|
236
|
+
redo();
|
|
237
|
+
}
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
if ((event.ctrlKey || event.metaKey) && event.key === "c") {
|
|
241
|
+
if (selection.kind === "graph" && selection.nodeIds.length > 0) {
|
|
242
|
+
event.preventDefault();
|
|
243
|
+
graph.copySelection(selection.nodeIds);
|
|
244
|
+
}
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
if ((event.ctrlKey || event.metaKey) && event.key === "v") {
|
|
248
|
+
event.preventDefault();
|
|
249
|
+
handlePaste();
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
if (event.key === "Delete" || event.key === "Backspace") {
|
|
253
|
+
deleteSelected();
|
|
254
|
+
}
|
|
255
|
+
if (event.key === "Escape") {
|
|
256
|
+
clearSelection();
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
260
|
+
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
261
|
+
}, [canUndo, canRedo, undo, redo, clearSelection, deleteSelected, selection, graph, handlePaste, readOnly]);
|
|
262
|
+
|
|
263
|
+
const isFunctionCanvas = activeCanvasId !== MAIN_CANVAS_ID;
|
|
264
|
+
|
|
265
|
+
// ── Render ───────────────────────────────────────────────────────────────
|
|
266
|
+
|
|
267
|
+
const canvasArea = (
|
|
268
|
+
<div className="flex flex-col h-full min-w-0">
|
|
269
|
+
<CanvasTabsToolbar
|
|
270
|
+
tabs={canvasTabs}
|
|
271
|
+
activeTabId={activeCanvasId}
|
|
272
|
+
onTabChange={onCanvasTabChange}
|
|
273
|
+
onTabClose={onCanvasTabClose}
|
|
274
|
+
onTabReorder={onCanvasTabReorder}
|
|
275
|
+
/>
|
|
276
|
+
<div className="flex-1 relative">
|
|
277
|
+
<CanvasEditor
|
|
278
|
+
key={activeCanvasId}
|
|
279
|
+
canvasId={activeCanvasId}
|
|
280
|
+
viewportCenterRef={viewportCenterRef}
|
|
281
|
+
nodeDefinitions={nodeDefinitions}
|
|
282
|
+
onConnect={handleConnect}
|
|
283
|
+
onAddNode={handleAddNode}
|
|
284
|
+
onAddNodeAndConnect={handleAddNodeAndConnect}
|
|
285
|
+
onSelectionChange={handleSelectionChange}
|
|
286
|
+
onPaneClick={clearSelection}
|
|
287
|
+
onNodeDragStart={handleNodeDragStart}
|
|
288
|
+
setSelectionDrag={setSelectionDrag}
|
|
289
|
+
/>
|
|
290
|
+
</div>
|
|
291
|
+
</div>
|
|
292
|
+
);
|
|
293
|
+
|
|
294
|
+
return (
|
|
295
|
+
<div className="h-full bg-canvas-bg flex flex-col">
|
|
296
|
+
<div className="flex-1 flex overflow-hidden">
|
|
297
|
+
<BuilderSidebar
|
|
298
|
+
canvasId={activeCanvasId}
|
|
299
|
+
activeTab={activeSidebarTab}
|
|
300
|
+
onTabChange={setActiveSidebarTab}
|
|
301
|
+
onAddNode={handleAddNode}
|
|
302
|
+
nodeDefinitions={nodeDefinitions}
|
|
303
|
+
getAllCategories={getAllCategories}
|
|
304
|
+
onSelectNode={selectNodeById}
|
|
305
|
+
onSelectEdge={selectEdgeById}
|
|
306
|
+
isFunctionCanvas={isFunctionCanvas}
|
|
307
|
+
functions={functions}
|
|
308
|
+
onOpenFunction={onOpenFunction}
|
|
309
|
+
onCreateFunction={onCreateFunction}
|
|
310
|
+
isDebugMode={isDebugMode}
|
|
311
|
+
/>
|
|
312
|
+
|
|
313
|
+
<div className="flex-1 flex flex-col h-full min-w-0">
|
|
314
|
+
{isDebugMode ? (
|
|
315
|
+
<ResizablePanelGroup direction="vertical">
|
|
316
|
+
<ResizablePanel defaultSize={75} minSize={30}>
|
|
317
|
+
{canvasArea}
|
|
318
|
+
</ResizablePanel>
|
|
319
|
+
<ResizableHandle withHandle />
|
|
320
|
+
<ResizablePanel defaultSize={25} minSize={10}>
|
|
321
|
+
<DebugConsolePanel />
|
|
322
|
+
</ResizablePanel>
|
|
323
|
+
</ResizablePanelGroup>
|
|
324
|
+
) : (
|
|
325
|
+
canvasArea
|
|
326
|
+
)}
|
|
327
|
+
</div>
|
|
328
|
+
|
|
329
|
+
<RightConfigPanel
|
|
330
|
+
canvasId={activeCanvasId}
|
|
331
|
+
isDebugMode={isDebugMode}
|
|
332
|
+
selectionDrag={selectionDrag}
|
|
333
|
+
getNodeDef={getNodeDefinition}
|
|
334
|
+
onNodeUpdate={graph.updateNode}
|
|
335
|
+
onNodeDelete={graph.deleteNode}
|
|
336
|
+
onEdgeUpdate={graph.updateEdge}
|
|
337
|
+
onEdgeDelete={handleDeleteEdge}
|
|
338
|
+
onClearSelection={clearSelection}
|
|
339
|
+
onTestNode={onTestNode}
|
|
340
|
+
onDebugStep={onDebugStep}
|
|
341
|
+
/>
|
|
342
|
+
</div>
|
|
343
|
+
</div>
|
|
344
|
+
);
|
|
345
|
+
};
|