@flowdrop/flowdrop 1.0.0 → 1.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/README.md +50 -50
- package/dist/adapters/WorkflowAdapter.d.ts +1 -1
- package/dist/adapters/WorkflowAdapter.js +25 -25
- package/dist/adapters/agentspec/AgentSpecAdapter.d.ts +2 -2
- package/dist/adapters/agentspec/AgentSpecAdapter.js +133 -122
- package/dist/adapters/agentspec/agentAdapter.d.ts +2 -2
- package/dist/adapters/agentspec/agentAdapter.js +10 -10
- package/dist/adapters/agentspec/autoLayout.d.ts +1 -1
- package/dist/adapters/agentspec/autoLayout.js +2 -2
- package/dist/adapters/agentspec/componentTypeDefaults.d.ts +1 -1
- package/dist/adapters/agentspec/componentTypeDefaults.js +120 -120
- package/dist/adapters/agentspec/defaultNodeTypes.d.ts +2 -2
- package/dist/adapters/agentspec/defaultNodeTypes.js +307 -307
- package/dist/adapters/agentspec/index.d.ts +10 -10
- package/dist/adapters/agentspec/index.js +6 -6
- package/dist/adapters/agentspec/validator.d.ts +2 -2
- package/dist/adapters/agentspec/validator.js +22 -20
- package/dist/api/enhanced-client.d.ts +3 -3
- package/dist/api/enhanced-client.js +73 -72
- package/dist/components/App.svelte +1081 -961
- package/dist/components/App.svelte.d.ts +9 -6
- package/dist/components/CanvasBanner.stories.svelte +23 -20
- package/dist/components/CanvasBanner.stories.svelte.d.ts +1 -1
- package/dist/components/CanvasBanner.svelte +46 -46
- package/dist/components/ConfigForm.svelte +1164 -1065
- package/dist/components/ConfigForm.svelte.d.ts +2 -2
- package/dist/components/ConfigModal.svelte +180 -180
- package/dist/components/ConfigModal.svelte.d.ts +1 -1
- package/dist/components/ConfigPanel.stories.svelte +35 -35
- package/dist/components/ConfigPanel.stories.svelte.d.ts +1 -1
- package/dist/components/ConfigPanel.svelte +178 -167
- package/dist/components/ConfigPanel.svelte.d.ts +1 -1
- package/dist/components/ConnectionLine.svelte +25 -25
- package/dist/components/EdgeRefresher.svelte +26 -26
- package/dist/components/FlowDropEdge.stories.svelte +197 -0
- package/dist/components/FlowDropEdge.stories.svelte.d.ts +26 -0
- package/dist/components/FlowDropEdge.svelte +168 -0
- package/dist/components/FlowDropEdge.svelte.d.ts +4 -0
- package/dist/components/FlowDropZone.svelte +63 -60
- package/dist/components/FlowDropZone.svelte.d.ts +1 -1
- package/dist/components/LoadingSpinner.stories.svelte +19 -19
- package/dist/components/LoadingSpinner.stories.svelte.d.ts +1 -1
- package/dist/components/LoadingSpinner.svelte +21 -21
- package/dist/components/LoadingSpinner.svelte.d.ts +1 -1
- package/dist/components/Logo.stories.svelte +13 -13
- package/dist/components/Logo.stories.svelte.d.ts +1 -1
- package/dist/components/Logo.svelte +101 -95
- package/dist/components/LogsSidebar.svelte +553 -546
- package/dist/components/LogsSidebar.svelte.d.ts +1 -1
- package/dist/components/MarkdownDisplay.stories.svelte +29 -23
- package/dist/components/MarkdownDisplay.stories.svelte.d.ts +1 -1
- package/dist/components/MarkdownDisplay.svelte +16 -14
- package/dist/components/Navbar.stories.svelte +43 -38
- package/dist/components/Navbar.stories.svelte.d.ts +1 -1
- package/dist/components/Navbar.svelte +760 -706
- package/dist/components/Navbar.svelte.d.ts +1 -1
- package/dist/components/NodeSidebar.svelte +900 -746
- package/dist/components/NodeSidebar.svelte.d.ts +3 -1
- package/dist/components/NodeStatusOverlay.stories.svelte +82 -70
- package/dist/components/NodeStatusOverlay.stories.svelte.d.ts +1 -1
- package/dist/components/NodeStatusOverlay.svelte +295 -280
- package/dist/components/NodeStatusOverlay.svelte.d.ts +3 -3
- package/dist/components/PipelineStatus.svelte +326 -300
- package/dist/components/PipelineStatus.svelte.d.ts +4 -4
- package/dist/components/PortCoordinateTracker.svelte +49 -47
- package/dist/components/PortCoordinateTracker.svelte.d.ts +1 -1
- package/dist/components/ReadOnlyDetails.svelte +156 -156
- package/dist/components/SchemaForm.stories.svelte +106 -98
- package/dist/components/SchemaForm.stories.svelte.d.ts +1 -1
- package/dist/components/SchemaForm.svelte +490 -463
- package/dist/components/SchemaForm.svelte.d.ts +2 -2
- package/dist/components/SettingsModal.svelte +226 -223
- package/dist/components/SettingsModal.svelte.d.ts +1 -1
- package/dist/components/SettingsPanel.svelte +637 -601
- package/dist/components/SettingsPanel.svelte.d.ts +1 -1
- package/dist/components/StatusIcon.stories.svelte +62 -49
- package/dist/components/StatusIcon.stories.svelte.d.ts +1 -1
- package/dist/components/StatusIcon.svelte +87 -87
- package/dist/components/StatusIcon.svelte.d.ts +2 -2
- package/dist/components/StatusLabel.stories.svelte +12 -12
- package/dist/components/StatusLabel.stories.svelte.d.ts +1 -1
- package/dist/components/StatusLabel.svelte +19 -19
- package/dist/components/ThemeToggle.stories.svelte +16 -16
- package/dist/components/ThemeToggle.stories.svelte.d.ts +1 -1
- package/dist/components/ThemeToggle.svelte +180 -169
- package/dist/components/ThemeToggle.svelte.d.ts +1 -1
- package/dist/components/UniversalNode.svelte +150 -138
- package/dist/components/UniversalNode.svelte.d.ts +3 -3
- package/dist/components/WorkflowEditor.svelte +1069 -1007
- package/dist/components/WorkflowEditor.svelte.d.ts +4 -4
- package/dist/components/form/FormArray.svelte +1034 -973
- package/dist/components/form/FormArray.svelte.d.ts +1 -1
- package/dist/components/form/FormAutocomplete.svelte +1021 -978
- package/dist/components/form/FormAutocomplete.svelte.d.ts +1 -1
- package/dist/components/form/FormCheckboxGroup.stories.svelte +23 -20
- package/dist/components/form/FormCheckboxGroup.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormCheckboxGroup.svelte +136 -136
- package/dist/components/form/FormCodeEditor.svelte +452 -434
- package/dist/components/form/FormField.svelte +366 -355
- package/dist/components/form/FormField.svelte.d.ts +2 -2
- package/dist/components/form/FormFieldLight.svelte +400 -384
- package/dist/components/form/FormFieldLight.svelte.d.ts +1 -1
- package/dist/components/form/FormFieldWrapper.stories.svelte +42 -42
- package/dist/components/form/FormFieldWrapper.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormFieldWrapper.svelte +100 -93
- package/dist/components/form/FormFieldWrapper.svelte.d.ts +1 -1
- package/dist/components/form/FormFieldset.svelte +108 -108
- package/dist/components/form/FormFieldset.svelte.d.ts +2 -2
- package/dist/components/form/FormMarkdownEditor.svelte +758 -725
- package/dist/components/form/FormNumberField.stories.svelte +25 -25
- package/dist/components/form/FormNumberField.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormNumberField.svelte +88 -88
- package/dist/components/form/FormRangeField.stories.svelte +20 -20
- package/dist/components/form/FormRangeField.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormRangeField.svelte +234 -226
- package/dist/components/form/FormSelect.stories.svelte +38 -38
- package/dist/components/form/FormSelect.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormSelect.svelte +101 -101
- package/dist/components/form/FormSelect.svelte.d.ts +1 -1
- package/dist/components/form/FormTemplateEditor.svelte +847 -798
- package/dist/components/form/FormTemplateEditor.svelte.d.ts +1 -1
- package/dist/components/form/FormTextField.stories.svelte +29 -23
- package/dist/components/form/FormTextField.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormTextField.svelte +68 -68
- package/dist/components/form/FormTextarea.stories.svelte +28 -25
- package/dist/components/form/FormTextarea.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormTextarea.svelte +74 -74
- package/dist/components/form/FormToggle.stories.svelte +23 -20
- package/dist/components/form/FormToggle.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormToggle.svelte +98 -98
- package/dist/components/form/FormUISchemaRenderer.svelte +120 -113
- package/dist/components/form/FormUISchemaRenderer.svelte.d.ts +3 -3
- package/dist/components/form/index.d.ts +19 -19
- package/dist/components/form/index.js +18 -18
- package/dist/components/form/templateAutocomplete.d.ts +2 -2
- package/dist/components/form/templateAutocomplete.js +64 -55
- package/dist/components/form/types.d.ts +6 -6
- package/dist/components/form/types.js +9 -4
- package/dist/components/icons/AlertCircleIcon.svelte +11 -0
- package/dist/components/icons/AlertCircleIcon.svelte.d.ts +26 -0
- package/dist/components/icons/CogIcon.svelte +11 -0
- package/dist/components/icons/CogIcon.svelte.d.ts +26 -0
- package/dist/components/interrupt/ChoicePrompt.stories.svelte +54 -38
- package/dist/components/interrupt/ChoicePrompt.stories.svelte.d.ts +1 -1
- package/dist/components/interrupt/ChoicePrompt.svelte +407 -383
- package/dist/components/interrupt/ChoicePrompt.svelte.d.ts +1 -1
- package/dist/components/interrupt/ConfirmationPrompt.stories.svelte +48 -48
- package/dist/components/interrupt/ConfirmationPrompt.stories.svelte.d.ts +1 -1
- package/dist/components/interrupt/ConfirmationPrompt.svelte +280 -274
- package/dist/components/interrupt/ConfirmationPrompt.svelte.d.ts +1 -1
- package/dist/components/interrupt/FormPrompt.svelte +223 -218
- package/dist/components/interrupt/FormPrompt.svelte.d.ts +1 -1
- package/dist/components/interrupt/InterruptBubble.svelte +617 -583
- package/dist/components/interrupt/InterruptBubble.svelte.d.ts +2 -2
- package/dist/components/interrupt/ReviewPrompt.stories.svelte +66 -56
- package/dist/components/interrupt/ReviewPrompt.stories.svelte.d.ts +1 -1
- package/dist/components/interrupt/ReviewPrompt.svelte +861 -841
- package/dist/components/interrupt/ReviewPrompt.svelte.d.ts +1 -1
- package/dist/components/interrupt/TextInputPrompt.stories.svelte +38 -33
- package/dist/components/interrupt/TextInputPrompt.stories.svelte.d.ts +1 -1
- package/dist/components/interrupt/TextInputPrompt.svelte +333 -328
- package/dist/components/interrupt/TextInputPrompt.svelte.d.ts +1 -1
- package/dist/components/interrupt/index.d.ts +5 -5
- package/dist/components/interrupt/index.js +5 -5
- package/dist/components/layouts/MainLayout.svelte +724 -691
- package/dist/components/layouts/MainLayout.svelte.d.ts +6 -6
- package/dist/components/nodes/GatewayNode.stories.svelte +100 -99
- package/dist/components/nodes/GatewayNode.svelte +605 -571
- package/dist/components/nodes/GatewayNode.svelte.d.ts +3 -3
- package/dist/components/nodes/IdeaNode.stories.svelte +44 -43
- package/dist/components/nodes/IdeaNode.svelte +451 -437
- package/dist/components/nodes/IdeaNode.svelte.d.ts +1 -1
- package/dist/components/nodes/NotesNode.stories.svelte +65 -64
- package/dist/components/nodes/NotesNode.svelte +380 -369
- package/dist/components/nodes/NotesNode.svelte.d.ts +1 -1
- package/dist/components/nodes/SimpleNode.stories.svelte +145 -144
- package/dist/components/nodes/SimpleNode.svelte +486 -424
- package/dist/components/nodes/SimpleNode.svelte.d.ts +1 -1
- package/dist/components/nodes/SquareNode.stories.svelte +73 -73
- package/dist/components/nodes/SquareNode.svelte +439 -380
- package/dist/components/nodes/SquareNode.svelte.d.ts +1 -1
- package/dist/components/nodes/TerminalNode.stories.svelte +13 -13
- package/dist/components/nodes/TerminalNode.svelte +709 -670
- package/dist/components/nodes/TerminalNode.svelte.d.ts +1 -1
- package/dist/components/nodes/ToolNode.stories.svelte +181 -180
- package/dist/components/nodes/ToolNode.svelte +505 -447
- package/dist/components/nodes/ToolNode.svelte.d.ts +1 -1
- package/dist/components/nodes/WorkflowNode.stories.svelte +70 -46
- package/dist/components/nodes/WorkflowNode.svelte +621 -551
- package/dist/components/nodes/WorkflowNode.svelte.d.ts +3 -3
- package/dist/components/playground/ChatPanel.svelte +945 -889
- package/dist/components/playground/ExecutionLogs.svelte +495 -472
- package/dist/components/playground/InputCollector.svelte +449 -428
- package/dist/components/playground/MessageBubble.stories.svelte +47 -47
- package/dist/components/playground/MessageBubble.stories.svelte.d.ts +1 -1
- package/dist/components/playground/MessageBubble.svelte +626 -610
- package/dist/components/playground/MessageBubble.svelte.d.ts +1 -1
- package/dist/components/playground/Playground.svelte +1088 -1057
- package/dist/components/playground/Playground.svelte.d.ts +3 -3
- package/dist/components/playground/PlaygroundModal.svelte +208 -204
- package/dist/components/playground/PlaygroundModal.svelte.d.ts +3 -3
- package/dist/components/playground/SessionManager.svelte +527 -521
- package/dist/components/playground/SessionManager.svelte.d.ts +1 -1
- package/dist/config/agentSpecEndpoints.d.ts +1 -1
- package/dist/config/agentSpecEndpoints.js +20 -20
- package/dist/config/constants.d.ts +8 -0
- package/dist/config/constants.js +10 -2
- package/dist/config/defaultCategories.d.ts +1 -1
- package/dist/config/defaultCategories.js +86 -86
- package/dist/config/defaultPortConfig.d.ts +1 -1
- package/dist/config/defaultPortConfig.js +144 -144
- package/dist/config/endpoints.d.ts +4 -4
- package/dist/config/endpoints.js +65 -65
- package/dist/config/runtimeConfig.d.ts +2 -2
- package/dist/config/runtimeConfig.js +8 -8
- package/dist/core/index.d.ts +63 -59
- package/dist/core/index.js +35 -33
- package/dist/display/index.d.ts +2 -2
- package/dist/display/index.js +2 -2
- package/dist/editor/index.d.ts +62 -62
- package/dist/editor/index.js +53 -53
- package/dist/form/code.d.ts +5 -5
- package/dist/form/code.js +14 -14
- package/dist/form/fieldRegistry.d.ts +3 -3
- package/dist/form/fieldRegistry.js +11 -9
- package/dist/form/full.d.ts +8 -8
- package/dist/form/full.js +9 -9
- package/dist/form/index.d.ts +18 -18
- package/dist/form/index.js +16 -16
- package/dist/form/markdown.d.ts +4 -4
- package/dist/form/markdown.js +8 -8
- package/dist/helpers/proximityConnect.d.ts +3 -3
- package/dist/helpers/proximityConnect.js +34 -32
- package/dist/helpers/workflowEditorHelper.d.ts +5 -5
- package/dist/helpers/workflowEditorHelper.js +108 -96
- package/dist/index.d.ts +6 -6
- package/dist/index.js +6 -6
- package/dist/mocks/app-environment.js +2 -2
- package/dist/mocks/app-forms.js +9 -9
- package/dist/mocks/app-navigation.js +11 -11
- package/dist/mocks/app-stores.js +8 -8
- package/dist/playground/index.d.ts +19 -19
- package/dist/playground/index.js +16 -16
- package/dist/playground/mount.d.ts +3 -3
- package/dist/playground/mount.js +24 -24
- package/dist/registry/builtinFormats.js +13 -13
- package/dist/registry/builtinNodes.d.ts +2 -2
- package/dist/registry/builtinNodes.js +77 -77
- package/dist/registry/index.d.ts +4 -4
- package/dist/registry/index.js +4 -4
- package/dist/registry/nodeComponentRegistry.d.ts +8 -8
- package/dist/registry/nodeComponentRegistry.js +11 -9
- package/dist/registry/plugin.d.ts +2 -2
- package/dist/registry/plugin.js +11 -11
- package/dist/registry/workflowFormatRegistry.d.ts +3 -3
- package/dist/registry/workflowFormatRegistry.js +2 -2
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.js +2 -2
- package/dist/schemas/v1/workflow.schema.json +22 -107
- package/dist/services/agentSpecExecutionService.d.ts +3 -3
- package/dist/services/agentSpecExecutionService.js +59 -55
- package/dist/services/api.d.ts +18 -4
- package/dist/services/api.js +46 -43
- package/dist/services/apiVariableService.d.ts +1 -1
- package/dist/services/apiVariableService.js +41 -34
- package/dist/services/autoSaveService.js +8 -8
- package/dist/services/categoriesApi.d.ts +2 -2
- package/dist/services/categoriesApi.js +8 -8
- package/dist/services/draftStorage.d.ts +1 -1
- package/dist/services/draftStorage.js +11 -11
- package/dist/services/dynamicSchemaService.d.ts +1 -1
- package/dist/services/dynamicSchemaService.js +41 -39
- package/dist/services/globalSave.d.ts +2 -2
- package/dist/services/globalSave.js +53 -42
- package/dist/services/historyService.d.ts +1 -1
- package/dist/services/historyService.js +8 -8
- package/dist/services/interruptService.d.ts +1 -1
- package/dist/services/interruptService.js +35 -29
- package/dist/services/nodeExecutionService.d.ts +1 -1
- package/dist/services/nodeExecutionService.js +45 -44
- package/dist/services/playgroundService.d.ts +1 -1
- package/dist/services/playgroundService.js +29 -29
- package/dist/services/portConfigApi.d.ts +2 -2
- package/dist/services/portConfigApi.js +8 -8
- package/dist/services/settingsService.d.ts +2 -2
- package/dist/services/settingsService.js +25 -19
- package/dist/services/toastService.d.ts +4 -4
- package/dist/services/toastService.js +33 -33
- package/dist/services/variableService.d.ts +1 -1
- package/dist/services/variableService.js +36 -36
- package/dist/services/workflowStorage.d.ts +2 -2
- package/dist/services/workflowStorage.js +13 -13
- package/dist/settings/index.d.ts +7 -7
- package/dist/settings/index.js +6 -6
- package/dist/skins/default.d.ts +2 -0
- package/dist/skins/default.js +1 -0
- package/dist/skins/index.d.ts +13 -0
- package/dist/skins/index.js +30 -0
- package/dist/skins/slate.d.ts +2 -0
- package/dist/skins/slate.js +78 -0
- package/dist/stores/categoriesStore.svelte.d.ts +1 -1
- package/dist/stores/categoriesStore.svelte.js +5 -5
- package/dist/stores/editorStateMachine.svelte.d.ts +2 -2
- package/dist/stores/editorStateMachine.svelte.js +65 -33
- package/dist/stores/historyStore.svelte.d.ts +4 -4
- package/dist/stores/historyStore.svelte.js +4 -4
- package/dist/stores/interruptStore.svelte.d.ts +3 -3
- package/dist/stores/interruptStore.svelte.js +21 -21
- package/dist/stores/playgroundStore.svelte.d.ts +2 -2
- package/dist/stores/playgroundStore.svelte.js +25 -18
- package/dist/stores/portCoordinateStore.svelte.d.ts +2 -2
- package/dist/stores/portCoordinateStore.svelte.js +15 -8
- package/dist/stores/settingsStore.svelte.d.ts +2 -2
- package/dist/stores/settingsStore.svelte.js +62 -57
- package/dist/stores/workflowStore.svelte.d.ts +3 -3
- package/dist/stores/workflowStore.svelte.js +50 -47
- package/dist/stories/CanvasDecorator.svelte +35 -32
- package/dist/stories/CanvasDecorator.svelte.d.ts +2 -2
- package/dist/stories/EdgeDecorator.svelte +125 -0
- package/dist/stories/EdgeDecorator.svelte.d.ts +17 -0
- package/dist/stories/NodeDecorator.svelte +59 -53
- package/dist/stories/NodeDecorator.svelte.d.ts +1 -1
- package/dist/stories/utils.d.ts +2 -2
- package/dist/stories/utils.js +105 -67
- package/dist/styles/base.css +599 -595
- package/dist/styles/toast.css +14 -14
- package/dist/styles/tokens.css +409 -378
- package/dist/svelte-app.d.ts +9 -9
- package/dist/svelte-app.js +39 -39
- package/dist/themes/default.d.ts +2 -0
- package/dist/themes/default.js +9 -0
- package/dist/themes/index.d.ts +13 -0
- package/dist/themes/index.js +44 -0
- package/dist/themes/minimal.d.ts +2 -0
- package/dist/themes/minimal.js +11 -0
- package/dist/types/agentspec.d.ts +18 -18
- package/dist/types/agentspec.js +2 -2
- package/dist/types/auth.d.ts +1 -1
- package/dist/types/auth.js +6 -6
- package/dist/types/config.d.ts +6 -6
- package/dist/types/events.d.ts +2 -2
- package/dist/types/events.js +2 -2
- package/dist/types/index.d.ts +32 -32
- package/dist/types/index.js +6 -6
- package/dist/types/interrupt.d.ts +6 -6
- package/dist/types/interrupt.js +21 -21
- package/dist/types/interruptState.d.ts +12 -12
- package/dist/types/interruptState.js +66 -66
- package/dist/types/playground.d.ts +7 -7
- package/dist/types/playground.js +14 -14
- package/dist/types/settings.d.ts +5 -3
- package/dist/types/settings.js +25 -18
- package/dist/types/skin.d.ts +31 -0
- package/dist/types/skin.js +1 -0
- package/dist/types/theme.d.ts +35 -0
- package/dist/types/theme.js +1 -0
- package/dist/types/uischema.d.ts +4 -4
- package/dist/types/uischema.js +3 -3
- package/dist/utils/colors.d.ts +1 -1
- package/dist/utils/colors.js +97 -95
- package/dist/utils/config.d.ts +2 -2
- package/dist/utils/config.js +48 -48
- package/dist/utils/connections.d.ts +2 -2
- package/dist/utils/connections.js +15 -15
- package/dist/utils/errors.js +3 -3
- package/dist/utils/fetchWithAuth.d.ts +1 -1
- package/dist/utils/fetchWithAuth.js +2 -2
- package/dist/utils/handleIds.d.ts +2 -2
- package/dist/utils/handleIds.js +8 -8
- package/dist/utils/handlePositioning.d.ts +1 -1
- package/dist/utils/handlePositioning.js +2 -2
- package/dist/utils/icons.d.ts +1 -1
- package/dist/utils/icons.js +74 -74
- package/dist/utils/logger.d.ts +1 -1
- package/dist/utils/logger.js +7 -7
- package/dist/utils/nodeStatus.d.ts +1 -1
- package/dist/utils/nodeStatus.js +48 -48
- package/dist/utils/nodeTypes.d.ts +1 -1
- package/dist/utils/nodeTypes.js +21 -20
- package/dist/utils/nodeWrapper.d.ts +7 -7
- package/dist/utils/nodeWrapper.js +21 -19
- package/dist/utils/performanceUtils.d.ts +1 -1
- package/dist/utils/performanceUtils.js +2 -1
- package/dist/utils/sanitize.js +1 -1
- package/dist/utils/uischema.d.ts +2 -2
- package/dist/utils/uischema.js +8 -8
- package/dist/utils/validation.js +20 -8
- package/package.json +296 -291
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* - External libraries to contribute node types via plugins
|
|
9
9
|
* - Runtime switching between different node visualizations
|
|
10
10
|
*/
|
|
11
|
-
import { BaseRegistry } from
|
|
11
|
+
import { BaseRegistry } from "./BaseRegistry.js";
|
|
12
12
|
/**
|
|
13
13
|
* Central registry for node component types.
|
|
14
14
|
* Allows built-in and third-party components to be registered and resolved.
|
|
@@ -32,9 +32,9 @@ import { BaseRegistry } from './BaseRegistry.js';
|
|
|
32
32
|
*/
|
|
33
33
|
class NodeComponentRegistry extends BaseRegistry {
|
|
34
34
|
/** Default type to use when requested type is not found */
|
|
35
|
-
defaultType =
|
|
35
|
+
defaultType = "workflowNode";
|
|
36
36
|
/** Initial default type, restored on clear() */
|
|
37
|
-
static INITIAL_DEFAULT_TYPE =
|
|
37
|
+
static INITIAL_DEFAULT_TYPE = "workflowNode";
|
|
38
38
|
/**
|
|
39
39
|
* Register a node component type.
|
|
40
40
|
*
|
|
@@ -191,10 +191,12 @@ class NodeComponentRegistry extends BaseRegistry {
|
|
|
191
191
|
* ```
|
|
192
192
|
*/
|
|
193
193
|
getOneOfOptions(filterFn) {
|
|
194
|
-
const registrations = filterFn
|
|
194
|
+
const registrations = filterFn
|
|
195
|
+
? this.getAll().filter(filterFn)
|
|
196
|
+
: this.getAll();
|
|
195
197
|
return registrations.map((r) => ({
|
|
196
198
|
const: r.type,
|
|
197
|
-
title: r.displayName
|
|
199
|
+
title: r.displayName,
|
|
198
200
|
}));
|
|
199
201
|
}
|
|
200
202
|
/**
|
|
@@ -204,7 +206,7 @@ class NodeComponentRegistry extends BaseRegistry {
|
|
|
204
206
|
* @returns The status position, or default "top-right"
|
|
205
207
|
*/
|
|
206
208
|
getStatusPosition(type) {
|
|
207
|
-
return this.items.get(type)?.statusPosition ??
|
|
209
|
+
return this.items.get(type)?.statusPosition ?? "top-right";
|
|
208
210
|
}
|
|
209
211
|
/**
|
|
210
212
|
* Get the status size for a node type.
|
|
@@ -213,7 +215,7 @@ class NodeComponentRegistry extends BaseRegistry {
|
|
|
213
215
|
* @returns The status size, or default "md"
|
|
214
216
|
*/
|
|
215
217
|
getStatusSize(type) {
|
|
216
|
-
return this.items.get(type)?.statusSize ??
|
|
218
|
+
return this.items.get(type)?.statusSize ?? "md";
|
|
217
219
|
}
|
|
218
220
|
}
|
|
219
221
|
/** Singleton instance of the node component registry */
|
|
@@ -251,12 +253,12 @@ export function createNamespacedType(namespace, type) {
|
|
|
251
253
|
* ```
|
|
252
254
|
*/
|
|
253
255
|
export function parseNamespacedType(namespacedType) {
|
|
254
|
-
const colonIndex = namespacedType.indexOf(
|
|
256
|
+
const colonIndex = namespacedType.indexOf(":");
|
|
255
257
|
if (colonIndex === -1) {
|
|
256
258
|
return null;
|
|
257
259
|
}
|
|
258
260
|
return {
|
|
259
261
|
namespace: namespacedType.slice(0, colonIndex),
|
|
260
|
-
type: namespacedType.slice(colonIndex + 1)
|
|
262
|
+
type: namespacedType.slice(colonIndex + 1),
|
|
261
263
|
};
|
|
262
264
|
}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* - Custom nodes are namespaced to avoid conflicts
|
|
8
8
|
* - Registration is simplified with a clean API
|
|
9
9
|
*/
|
|
10
|
-
import { type NodeComponentProps, type NodeComponentCategory, type StatusPosition, type StatusSize } from
|
|
11
|
-
import type { Component } from
|
|
10
|
+
import { type NodeComponentProps, type NodeComponentCategory, type StatusPosition, type StatusSize } from "./nodeComponentRegistry.js";
|
|
11
|
+
import type { Component } from "svelte";
|
|
12
12
|
/**
|
|
13
13
|
* Plugin configuration for external libraries.
|
|
14
14
|
* Use this to register multiple node types from a library.
|
package/dist/registry/plugin.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - Custom nodes are namespaced to avoid conflicts
|
|
8
8
|
* - Registration is simplified with a clean API
|
|
9
9
|
*/
|
|
10
|
-
import { nodeComponentRegistry, createNamespacedType } from
|
|
10
|
+
import { nodeComponentRegistry, createNamespacedType, } from "./nodeComponentRegistry.js";
|
|
11
11
|
/**
|
|
12
12
|
* Register a FlowDrop plugin with custom node components.
|
|
13
13
|
* All node types are automatically namespaced with the plugin namespace.
|
|
@@ -55,7 +55,7 @@ export function registerFlowDropPlugin(config) {
|
|
|
55
55
|
success: true,
|
|
56
56
|
namespace: config.namespace,
|
|
57
57
|
registeredTypes: [],
|
|
58
|
-
errors: []
|
|
58
|
+
errors: [],
|
|
59
59
|
};
|
|
60
60
|
// Validate namespace
|
|
61
61
|
if (!isValidNamespace(config.namespace)) {
|
|
@@ -74,10 +74,10 @@ export function registerFlowDropPlugin(config) {
|
|
|
74
74
|
description: nodeDef.description,
|
|
75
75
|
component: nodeDef.component,
|
|
76
76
|
icon: nodeDef.icon,
|
|
77
|
-
category: nodeDef.category ??
|
|
77
|
+
category: nodeDef.category ?? "custom",
|
|
78
78
|
source: config.namespace,
|
|
79
79
|
statusPosition: nodeDef.statusPosition,
|
|
80
|
-
statusSize: nodeDef.statusSize
|
|
80
|
+
statusSize: nodeDef.statusSize,
|
|
81
81
|
};
|
|
82
82
|
nodeComponentRegistry.register(registration);
|
|
83
83
|
result.registeredTypes.push(namespacedType);
|
|
@@ -133,7 +133,7 @@ export function getRegisteredPlugins() {
|
|
|
133
133
|
const sources = new Set();
|
|
134
134
|
const registrations = nodeComponentRegistry.getAll();
|
|
135
135
|
for (const reg of registrations) {
|
|
136
|
-
if (reg.source && reg.source !==
|
|
136
|
+
if (reg.source && reg.source !== "flowdrop") {
|
|
137
137
|
sources.add(reg.source);
|
|
138
138
|
}
|
|
139
139
|
}
|
|
@@ -175,10 +175,10 @@ export function registerCustomNode(type, displayName, component, options = {}) {
|
|
|
175
175
|
component,
|
|
176
176
|
description: options.description,
|
|
177
177
|
icon: options.icon,
|
|
178
|
-
category: options.category ??
|
|
179
|
-
source: options.source ??
|
|
178
|
+
category: options.category ?? "custom",
|
|
179
|
+
source: options.source ?? "custom",
|
|
180
180
|
statusPosition: options.statusPosition,
|
|
181
|
-
statusSize: options.statusSize
|
|
181
|
+
statusSize: options.statusSize,
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
@@ -203,7 +203,7 @@ export function createPlugin(namespace, name) {
|
|
|
203
203
|
const config = {
|
|
204
204
|
namespace,
|
|
205
205
|
name,
|
|
206
|
-
nodes: []
|
|
206
|
+
nodes: [],
|
|
207
207
|
};
|
|
208
208
|
const builder = {
|
|
209
209
|
/**
|
|
@@ -228,7 +228,7 @@ export function createPlugin(namespace, name) {
|
|
|
228
228
|
type,
|
|
229
229
|
displayName,
|
|
230
230
|
component,
|
|
231
|
-
...options
|
|
231
|
+
...options,
|
|
232
232
|
});
|
|
233
233
|
return builder;
|
|
234
234
|
},
|
|
@@ -243,7 +243,7 @@ export function createPlugin(namespace, name) {
|
|
|
243
243
|
*/
|
|
244
244
|
getConfig() {
|
|
245
245
|
return { ...config };
|
|
246
|
-
}
|
|
246
|
+
},
|
|
247
247
|
};
|
|
248
248
|
return builder;
|
|
249
249
|
}
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
*
|
|
12
12
|
* Extends BaseRegistry for shared mechanics (subscribe, onClear, etc.).
|
|
13
13
|
*/
|
|
14
|
-
import type { StandardWorkflow } from
|
|
15
|
-
import type { NodeMetadata, WorkflowFormat } from
|
|
16
|
-
import { BaseRegistry } from
|
|
14
|
+
import type { StandardWorkflow } from "../adapters/WorkflowAdapter.js";
|
|
15
|
+
import type { NodeMetadata, WorkflowFormat } from "../types/index.js";
|
|
16
|
+
import { BaseRegistry } from "./BaseRegistry.js";
|
|
17
17
|
/**
|
|
18
18
|
* Validation result returned by format adapters.
|
|
19
19
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* Extends BaseRegistry for shared mechanics (subscribe, onClear, etc.).
|
|
13
13
|
*/
|
|
14
|
-
import { BaseRegistry } from
|
|
14
|
+
import { BaseRegistry } from "./BaseRegistry.js";
|
|
15
15
|
/**
|
|
16
16
|
* Central registry for workflow format adapters.
|
|
17
17
|
* Singleton — extends BaseRegistry for shared mechanics.
|
|
@@ -88,7 +88,7 @@ class WorkflowFormatRegistry extends BaseRegistry {
|
|
|
88
88
|
getOneOfOptions() {
|
|
89
89
|
return this.getAll().map((adapter) => ({
|
|
90
90
|
const: adapter.id,
|
|
91
|
-
title: adapter.name
|
|
91
|
+
title: adapter.name,
|
|
92
92
|
}));
|
|
93
93
|
}
|
|
94
94
|
}
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* @module schema
|
|
19
19
|
*/
|
|
20
|
-
import workflowSchema from
|
|
20
|
+
import workflowSchema from "../schemas/v1/workflow.schema.json";
|
|
21
21
|
/** Current workflow schema format version */
|
|
22
22
|
export declare const WORKFLOW_SCHEMA_VERSION = "1.0.0";
|
|
23
23
|
export { workflowSchema };
|
package/dist/schema/index.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* @module schema
|
|
19
19
|
*/
|
|
20
|
-
import workflowSchema from
|
|
20
|
+
import workflowSchema from "../schemas/v1/workflow.schema.json";
|
|
21
21
|
/** Current workflow schema format version */
|
|
22
|
-
export const WORKFLOW_SCHEMA_VERSION =
|
|
22
|
+
export const WORKFLOW_SCHEMA_VERSION = "1.0.0";
|
|
23
23
|
export { workflowSchema };
|
|
@@ -38,13 +38,7 @@
|
|
|
38
38
|
"$ref": "#/$defs/WorkflowMetadata"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
|
-
"required": [
|
|
42
|
-
"id",
|
|
43
|
-
"name",
|
|
44
|
-
"nodes",
|
|
45
|
-
"edges",
|
|
46
|
-
"metadata"
|
|
47
|
-
],
|
|
41
|
+
"required": ["id", "name", "nodes", "edges", "metadata"],
|
|
48
42
|
"$defs": {
|
|
49
43
|
"AutocompleteConfig": {
|
|
50
44
|
"type": "object",
|
|
@@ -95,9 +89,7 @@
|
|
|
95
89
|
"description": "Whether to allow multiple selections.\nWhen true, users can select multiple values displayed as tags.\n"
|
|
96
90
|
}
|
|
97
91
|
},
|
|
98
|
-
"required": [
|
|
99
|
-
"url"
|
|
100
|
-
]
|
|
92
|
+
"required": ["url"]
|
|
101
93
|
},
|
|
102
94
|
"Branch": {
|
|
103
95
|
"type": "object",
|
|
@@ -125,10 +117,7 @@
|
|
|
125
117
|
"description": "Whether this is the default/fallback branch"
|
|
126
118
|
}
|
|
127
119
|
},
|
|
128
|
-
"required": [
|
|
129
|
-
"name",
|
|
130
|
-
"label"
|
|
131
|
-
]
|
|
120
|
+
"required": ["name", "label"]
|
|
132
121
|
},
|
|
133
122
|
"ConfigProperty": {
|
|
134
123
|
"type": "object",
|
|
@@ -136,14 +125,7 @@
|
|
|
136
125
|
"properties": {
|
|
137
126
|
"type": {
|
|
138
127
|
"type": "string",
|
|
139
|
-
"enum": [
|
|
140
|
-
"string",
|
|
141
|
-
"number",
|
|
142
|
-
"boolean",
|
|
143
|
-
"array",
|
|
144
|
-
"object",
|
|
145
|
-
"integer"
|
|
146
|
-
],
|
|
128
|
+
"enum": ["string", "number", "boolean", "array", "object", "integer"],
|
|
147
129
|
"description": "JSON Schema type"
|
|
148
130
|
},
|
|
149
131
|
"title": {
|
|
@@ -269,18 +251,14 @@
|
|
|
269
251
|
]
|
|
270
252
|
}
|
|
271
253
|
},
|
|
272
|
-
"required": [
|
|
273
|
-
"type"
|
|
274
|
-
]
|
|
254
|
+
"required": ["type"]
|
|
275
255
|
},
|
|
276
256
|
"ConfigSchema": {
|
|
277
257
|
"type": "object",
|
|
278
258
|
"properties": {
|
|
279
259
|
"type": {
|
|
280
260
|
"type": "string",
|
|
281
|
-
"enum": [
|
|
282
|
-
"object"
|
|
283
|
-
]
|
|
261
|
+
"enum": ["object"]
|
|
284
262
|
},
|
|
285
263
|
"properties": {
|
|
286
264
|
"type": "object",
|
|
@@ -301,10 +279,7 @@
|
|
|
301
279
|
"default": false
|
|
302
280
|
}
|
|
303
281
|
},
|
|
304
|
-
"required": [
|
|
305
|
-
"type",
|
|
306
|
-
"properties"
|
|
307
|
-
]
|
|
282
|
+
"required": ["type", "properties"]
|
|
308
283
|
},
|
|
309
284
|
"DynamicPort": {
|
|
310
285
|
"type": "object",
|
|
@@ -338,11 +313,7 @@
|
|
|
338
313
|
"description": "Whether this port is required for execution"
|
|
339
314
|
}
|
|
340
315
|
},
|
|
341
|
-
"required": [
|
|
342
|
-
"name",
|
|
343
|
-
"label",
|
|
344
|
-
"dataType"
|
|
345
|
-
]
|
|
316
|
+
"required": ["name", "label", "dataType"]
|
|
346
317
|
},
|
|
347
318
|
"NodeCategory": {
|
|
348
319
|
"type": "string",
|
|
@@ -433,11 +404,7 @@
|
|
|
433
404
|
"description": "Whether the node is currently being executed"
|
|
434
405
|
}
|
|
435
406
|
},
|
|
436
|
-
"required": [
|
|
437
|
-
"status",
|
|
438
|
-
"executionCount",
|
|
439
|
-
"isExecuting"
|
|
440
|
-
]
|
|
407
|
+
"required": ["status", "executionCount", "isExecuting"]
|
|
441
408
|
},
|
|
442
409
|
"NodeExecutionStatus": {
|
|
443
410
|
"type": "string",
|
|
@@ -581,11 +548,7 @@
|
|
|
581
548
|
},
|
|
582
549
|
"type": {
|
|
583
550
|
"type": "string",
|
|
584
|
-
"enum": [
|
|
585
|
-
"input",
|
|
586
|
-
"output",
|
|
587
|
-
"metadata"
|
|
588
|
-
],
|
|
551
|
+
"enum": ["input", "output", "metadata"],
|
|
589
552
|
"description": "Port direction (input receives data, output sends data)"
|
|
590
553
|
},
|
|
591
554
|
"dataType": {
|
|
@@ -614,12 +577,7 @@
|
|
|
614
577
|
]
|
|
615
578
|
}
|
|
616
579
|
},
|
|
617
|
-
"required": [
|
|
618
|
-
"id",
|
|
619
|
-
"name",
|
|
620
|
-
"type",
|
|
621
|
-
"dataType"
|
|
622
|
-
]
|
|
580
|
+
"required": ["id", "name", "type", "dataType"]
|
|
623
581
|
},
|
|
624
582
|
"NodeType": {
|
|
625
583
|
"type": "string",
|
|
@@ -677,9 +635,7 @@
|
|
|
677
635
|
"description": "Optional description for this option"
|
|
678
636
|
}
|
|
679
637
|
},
|
|
680
|
-
"required": [
|
|
681
|
-
"const"
|
|
682
|
-
]
|
|
638
|
+
"required": ["const"]
|
|
683
639
|
},
|
|
684
640
|
"PortDataSchema": {
|
|
685
641
|
"type": "object",
|
|
@@ -687,14 +643,7 @@
|
|
|
687
643
|
"properties": {
|
|
688
644
|
"type": {
|
|
689
645
|
"type": "string",
|
|
690
|
-
"enum": [
|
|
691
|
-
"object",
|
|
692
|
-
"array",
|
|
693
|
-
"string",
|
|
694
|
-
"number",
|
|
695
|
-
"integer",
|
|
696
|
-
"boolean"
|
|
697
|
-
],
|
|
646
|
+
"enum": ["object", "array", "string", "number", "integer", "boolean"],
|
|
698
647
|
"description": "The JSON Schema type. Use `object` for nested properties,\n`array` for lists with `items` schema.\n"
|
|
699
648
|
},
|
|
700
649
|
"title": {
|
|
@@ -743,10 +692,7 @@
|
|
|
743
692
|
"description": "Y coordinate"
|
|
744
693
|
}
|
|
745
694
|
},
|
|
746
|
-
"required": [
|
|
747
|
-
"x",
|
|
748
|
-
"y"
|
|
749
|
-
]
|
|
695
|
+
"required": ["x", "y"]
|
|
750
696
|
},
|
|
751
697
|
"TemplateVariable": {
|
|
752
698
|
"type": "object",
|
|
@@ -804,10 +750,7 @@
|
|
|
804
750
|
"description": "Source node ID"
|
|
805
751
|
}
|
|
806
752
|
},
|
|
807
|
-
"required": [
|
|
808
|
-
"name",
|
|
809
|
-
"type"
|
|
810
|
-
]
|
|
753
|
+
"required": ["name", "type"]
|
|
811
754
|
},
|
|
812
755
|
"TemplateVariablesConfig": {
|
|
813
756
|
"type": "object",
|
|
@@ -854,9 +797,7 @@
|
|
|
854
797
|
"description": "Map of available variables keyed by variable name"
|
|
855
798
|
}
|
|
856
799
|
},
|
|
857
|
-
"required": [
|
|
858
|
-
"variables"
|
|
859
|
-
]
|
|
800
|
+
"required": ["variables"]
|
|
860
801
|
},
|
|
861
802
|
"WorkflowEdge": {
|
|
862
803
|
"type": "object",
|
|
@@ -887,12 +828,7 @@
|
|
|
887
828
|
"type": {
|
|
888
829
|
"type": "string",
|
|
889
830
|
"description": "Connection line type",
|
|
890
|
-
"enum": [
|
|
891
|
-
"default",
|
|
892
|
-
"straight",
|
|
893
|
-
"step",
|
|
894
|
-
"smoothstep"
|
|
895
|
-
]
|
|
831
|
+
"enum": ["default", "straight", "step", "smoothstep"]
|
|
896
832
|
},
|
|
897
833
|
"selectable": {
|
|
898
834
|
"type": "boolean",
|
|
@@ -919,11 +855,7 @@
|
|
|
919
855
|
"properties": {
|
|
920
856
|
"edgeType": {
|
|
921
857
|
"type": "string",
|
|
922
|
-
"enum": [
|
|
923
|
-
"trigger",
|
|
924
|
-
"tool",
|
|
925
|
-
"data"
|
|
926
|
-
],
|
|
858
|
+
"enum": ["trigger", "tool", "data"],
|
|
927
859
|
"description": "Edge type for visual styling"
|
|
928
860
|
},
|
|
929
861
|
"sourcePortDataType": {
|
|
@@ -947,11 +879,7 @@
|
|
|
947
879
|
}
|
|
948
880
|
}
|
|
949
881
|
},
|
|
950
|
-
"required": [
|
|
951
|
-
"id",
|
|
952
|
-
"source",
|
|
953
|
-
"target"
|
|
954
|
-
]
|
|
882
|
+
"required": ["id", "source", "target"]
|
|
955
883
|
},
|
|
956
884
|
"WorkflowMetadata": {
|
|
957
885
|
"type": "object",
|
|
@@ -995,11 +923,7 @@
|
|
|
995
923
|
"default": "flowdrop"
|
|
996
924
|
}
|
|
997
925
|
},
|
|
998
|
-
"required": [
|
|
999
|
-
"version",
|
|
1000
|
-
"createdAt",
|
|
1001
|
-
"updatedAt"
|
|
1002
|
-
]
|
|
926
|
+
"required": ["version", "createdAt", "updatedAt"]
|
|
1003
927
|
},
|
|
1004
928
|
"WorkflowNode": {
|
|
1005
929
|
"type": "object",
|
|
@@ -1060,19 +984,10 @@
|
|
|
1060
984
|
]
|
|
1061
985
|
}
|
|
1062
986
|
},
|
|
1063
|
-
"required": [
|
|
1064
|
-
"label",
|
|
1065
|
-
"config",
|
|
1066
|
-
"metadata"
|
|
1067
|
-
]
|
|
987
|
+
"required": ["label", "config", "metadata"]
|
|
1068
988
|
}
|
|
1069
989
|
},
|
|
1070
|
-
"required": [
|
|
1071
|
-
"id",
|
|
1072
|
-
"type",
|
|
1073
|
-
"position",
|
|
1074
|
-
"data"
|
|
1075
|
-
]
|
|
990
|
+
"required": ["id", "type", "position", "data"]
|
|
1076
991
|
}
|
|
1077
992
|
}
|
|
1078
993
|
}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Follows the same singleton pattern as NodeExecutionService.
|
|
8
8
|
*/
|
|
9
|
-
import type { NodeExecutionInfo } from
|
|
10
|
-
import type { StandardWorkflow } from
|
|
11
|
-
import type { AgentSpecEndpointConfig } from
|
|
9
|
+
import type { NodeExecutionInfo } from "../types/index.js";
|
|
10
|
+
import type { StandardWorkflow } from "../adapters/WorkflowAdapter.js";
|
|
11
|
+
import type { AgentSpecEndpointConfig } from "../config/agentSpecEndpoints.js";
|
|
12
12
|
/** Result returned when starting an execution */
|
|
13
13
|
export interface AgentSpecExecutionHandle {
|
|
14
14
|
/** Unique execution ID from the runtime */
|