@flowdrop/flowdrop 1.5.0 → 1.6.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 +46 -47
- package/dist/adapters/WorkflowAdapter.d.ts +1 -1
- package/dist/adapters/WorkflowAdapter.js +26 -26
- package/dist/adapters/agentspec/AgentSpecAdapter.d.ts +2 -2
- package/dist/adapters/agentspec/AgentSpecAdapter.js +122 -133
- 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 +7 -9
- 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 +20 -22
- package/dist/api/enhanced-client.d.ts +3 -3
- package/dist/api/enhanced-client.js +72 -73
- package/dist/chat/commandClassifier.js +6 -6
- package/dist/chat/index.d.ts +5 -5
- package/dist/chat/index.js +4 -4
- package/dist/chat/responseParser.d.ts +6 -6
- package/dist/chat/responseParser.js +28 -24
- package/dist/commands/batch.d.ts +1 -1
- package/dist/commands/batch.js +5 -7
- package/dist/commands/executor.d.ts +2 -2
- package/dist/commands/executor.js +320 -231
- package/dist/commands/index.d.ts +6 -6
- package/dist/commands/index.js +5 -5
- package/dist/commands/parser.d.ts +1 -1
- package/dist/commands/parser.js +91 -74
- package/dist/commands/positioner.d.ts +2 -2
- package/dist/commands/positioner.js +1 -1
- package/dist/commands/storeIntegration.svelte.d.ts +2 -2
- package/dist/commands/storeIntegration.svelte.js +5 -5
- package/dist/commands/types.d.ts +42 -42
- package/dist/commands/types.js +2 -2
- package/dist/components/App.svelte +240 -294
- package/dist/components/App.svelte.d.ts +9 -9
- package/dist/components/CanvasBanner.stories.svelte +10 -16
- package/dist/components/CanvasBanner.stories.svelte.d.ts +1 -1
- package/dist/components/CanvasBanner.svelte +2 -2
- package/dist/components/CanvasBanner.svelte.d.ts +1 -1
- package/dist/components/CanvasController.svelte +3 -4
- package/dist/components/ConfigForm.svelte +118 -256
- package/dist/components/ConfigForm.svelte.d.ts +2 -2
- package/dist/components/ConfigMappingRow.svelte +7 -9
- package/dist/components/ConfigMappingRow.svelte.d.ts +1 -1
- package/dist/components/ConfigModal.svelte +3 -3
- package/dist/components/ConfigModal.svelte.d.ts +1 -1
- package/dist/components/ConfigPanel.stories.svelte +19 -19
- package/dist/components/ConfigPanel.stories.svelte.d.ts +1 -1
- package/dist/components/ConfigPanel.svelte +9 -20
- package/dist/components/ConfigPanel.svelte.d.ts +1 -1
- package/dist/components/ConnectionLine.svelte +4 -4
- package/dist/components/EdgeRefresher.svelte +1 -1
- package/dist/components/FlowDropEdge.stories.svelte +110 -110
- package/dist/components/FlowDropEdge.svelte +9 -9
- package/dist/components/FlowDropEdge.svelte.d.ts +1 -1
- package/dist/components/FlowDropZone.svelte +6 -9
- package/dist/components/FlowDropZone.svelte.d.ts +1 -1
- package/dist/components/LoadingSpinner.stories.svelte +13 -13
- package/dist/components/LoadingSpinner.stories.svelte.d.ts +1 -1
- package/dist/components/LoadingSpinner.svelte +3 -3
- package/dist/components/LoadingSpinner.svelte.d.ts +1 -1
- package/dist/components/Logo.stories.svelte +4 -4
- package/dist/components/Logo.stories.svelte.d.ts +1 -1
- package/dist/components/Logo.svelte +3 -9
- package/dist/components/LogsSidebar.svelte +41 -48
- package/dist/components/LogsSidebar.svelte.d.ts +1 -1
- package/dist/components/MarkdownDisplay.stories.svelte +10 -14
- package/dist/components/MarkdownDisplay.stories.svelte.d.ts +1 -1
- package/dist/components/MarkdownDisplay.svelte +4 -6
- package/dist/components/Navbar.stories.svelte +19 -19
- package/dist/components/Navbar.stories.svelte.d.ts +1 -1
- package/dist/components/Navbar.svelte +28 -49
- package/dist/components/Navbar.svelte.d.ts +2 -2
- package/dist/components/NodeSidebar.svelte +42 -88
- package/dist/components/NodeSidebar.svelte.d.ts +1 -1
- package/dist/components/NodeStatusOverlay.stories.svelte +19 -31
- package/dist/components/NodeStatusOverlay.stories.svelte.d.ts +1 -1
- package/dist/components/NodeStatusOverlay.svelte +40 -55
- package/dist/components/NodeStatusOverlay.svelte.d.ts +3 -3
- package/dist/components/NodeSwapPicker.svelte +20 -64
- package/dist/components/NodeSwapPicker.svelte.d.ts +1 -1
- package/dist/components/PipelineStatus.svelte +63 -89
- package/dist/components/PipelineStatus.svelte.d.ts +4 -4
- package/dist/components/PortCoordinateTracker.svelte +5 -7
- package/dist/components/PortCoordinateTracker.svelte.d.ts +1 -1
- package/dist/components/PortMappingRow.svelte +20 -24
- package/dist/components/PortMappingRow.svelte.d.ts +2 -2
- package/dist/components/ReadOnlyDetails.svelte +1 -1
- package/dist/components/SchemaForm.stories.svelte +53 -53
- package/dist/components/SchemaForm.stories.svelte.d.ts +1 -1
- package/dist/components/SchemaForm.svelte +24 -51
- package/dist/components/SchemaForm.svelte.d.ts +2 -2
- package/dist/components/SettingsModal.svelte +6 -9
- package/dist/components/SettingsModal.svelte.d.ts +1 -1
- package/dist/components/SettingsPanel.svelte +138 -158
- package/dist/components/SettingsPanel.svelte.d.ts +1 -1
- package/dist/components/StatusIcon.stories.svelte +16 -29
- package/dist/components/StatusIcon.stories.svelte.d.ts +1 -1
- package/dist/components/StatusIcon.svelte +19 -19
- package/dist/components/StatusIcon.svelte.d.ts +2 -2
- package/dist/components/StatusLabel.stories.svelte +8 -8
- package/dist/components/StatusLabel.stories.svelte.d.ts +1 -1
- package/dist/components/SwapMappingEditor.svelte +35 -56
- package/dist/components/SwapMappingEditor.svelte.d.ts +2 -2
- package/dist/components/ThemeToggle.stories.svelte +10 -10
- package/dist/components/ThemeToggle.stories.svelte.d.ts +1 -1
- package/dist/components/ThemeToggle.svelte +22 -33
- package/dist/components/ThemeToggle.svelte.d.ts +1 -1
- package/dist/components/UniversalNode.svelte +29 -41
- package/dist/components/UniversalNode.svelte.d.ts +3 -3
- package/dist/components/WorkflowEditor.svelte +113 -168
- package/dist/components/WorkflowEditor.svelte.d.ts +4 -4
- package/dist/components/chat/AIChatPanel.svelte +272 -133
- package/dist/components/chat/AIChatPanel.svelte.d.ts +3 -3
- package/dist/components/chat/CommandPreview.svelte +74 -24
- package/dist/components/chat/CommandPreview.svelte.d.ts +1 -1
- package/dist/components/console/CommandConsole.stories.svelte +71 -53
- package/dist/components/console/CommandConsole.stories.svelte.d.ts +1 -1
- package/dist/components/console/CommandConsole.svelte +39 -35
- package/dist/components/console/CommandConsole.svelte.d.ts +2 -2
- package/dist/components/console/ConsoleAutocomplete.svelte +6 -3
- package/dist/components/console/ConsoleInput.svelte +148 -89
- package/dist/components/console/ConsoleInput.svelte.d.ts +1 -1
- package/dist/components/console/ConsoleOutput.svelte +5 -10
- package/dist/components/console/ConsoleOutput.svelte.d.ts +1 -1
- package/dist/components/console/formatters.d.ts +1 -1
- package/dist/components/console/formatters.js +27 -29
- package/dist/components/form/FormArray.svelte +75 -132
- package/dist/components/form/FormArray.svelte.d.ts +1 -1
- package/dist/components/form/FormAutocomplete.svelte +65 -108
- package/dist/components/form/FormAutocomplete.svelte.d.ts +1 -1
- package/dist/components/form/FormCheckboxGroup.stories.svelte +13 -16
- package/dist/components/form/FormCheckboxGroup.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormCheckboxGroup.svelte +2 -2
- package/dist/components/form/FormCodeEditor.svelte +42 -56
- package/dist/components/form/FormField.svelte +79 -90
- package/dist/components/form/FormField.svelte.d.ts +2 -2
- package/dist/components/form/FormFieldLight.svelte +72 -88
- package/dist/components/form/FormFieldLight.svelte.d.ts +1 -1
- package/dist/components/form/FormFieldWrapper.stories.svelte +14 -14
- package/dist/components/form/FormFieldWrapper.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormFieldWrapper.svelte +2 -9
- package/dist/components/form/FormFieldWrapper.svelte.d.ts +1 -1
- package/dist/components/form/FormFieldset.svelte +3 -3
- package/dist/components/form/FormFieldset.svelte.d.ts +2 -2
- package/dist/components/form/FormMarkdownEditor.svelte +123 -156
- package/dist/components/form/FormNumberField.stories.svelte +18 -18
- package/dist/components/form/FormNumberField.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormNumberField.svelte +6 -6
- package/dist/components/form/FormRangeField.stories.svelte +13 -13
- package/dist/components/form/FormRangeField.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormRangeField.svelte +4 -12
- package/dist/components/form/FormSelect.stories.svelte +21 -21
- package/dist/components/form/FormSelect.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormSelect.svelte +5 -5
- package/dist/components/form/FormSelect.svelte.d.ts +1 -1
- package/dist/components/form/FormTemplateEditor.svelte +126 -175
- package/dist/components/form/FormTemplateEditor.svelte.d.ts +1 -1
- package/dist/components/form/FormTextField.stories.svelte +17 -23
- package/dist/components/form/FormTextField.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormTextField.svelte +4 -4
- package/dist/components/form/FormTextarea.stories.svelte +18 -21
- package/dist/components/form/FormTextarea.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormTextarea.svelte +4 -4
- package/dist/components/form/FormToggle.stories.svelte +13 -16
- package/dist/components/form/FormToggle.stories.svelte.d.ts +1 -1
- package/dist/components/form/FormToggle.svelte +3 -3
- package/dist/components/form/FormUISchemaRenderer.svelte +12 -19
- 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 +55 -64
- package/dist/components/form/types.d.ts +6 -6
- package/dist/components/form/types.js +4 -9
- package/dist/components/icons/AlertCircleIcon.svelte +1 -6
- package/dist/components/icons/CogIcon.svelte +1 -6
- package/dist/components/interrupt/ChoicePrompt.stories.svelte +27 -27
- package/dist/components/interrupt/ChoicePrompt.stories.svelte.d.ts +1 -1
- package/dist/components/interrupt/ChoicePrompt.svelte +17 -41
- package/dist/components/interrupt/ChoicePrompt.svelte.d.ts +1 -1
- package/dist/components/interrupt/ConfirmationPrompt.stories.svelte +17 -17
- package/dist/components/interrupt/ConfirmationPrompt.stories.svelte.d.ts +1 -1
- package/dist/components/interrupt/ConfirmationPrompt.svelte +10 -16
- package/dist/components/interrupt/ConfirmationPrompt.svelte.d.ts +1 -1
- package/dist/components/interrupt/FormPrompt.svelte +10 -15
- package/dist/components/interrupt/FormPrompt.svelte.d.ts +1 -1
- package/dist/components/interrupt/InterruptBubble.svelte +87 -121
- package/dist/components/interrupt/InterruptBubble.svelte.d.ts +2 -2
- package/dist/components/interrupt/ReviewPrompt.stories.svelte +37 -37
- package/dist/components/interrupt/ReviewPrompt.stories.svelte.d.ts +1 -1
- package/dist/components/interrupt/ReviewPrompt.svelte +55 -75
- package/dist/components/interrupt/ReviewPrompt.svelte.d.ts +1 -1
- package/dist/components/interrupt/TextInputPrompt.stories.svelte +16 -17
- package/dist/components/interrupt/TextInputPrompt.stories.svelte.d.ts +1 -1
- package/dist/components/interrupt/TextInputPrompt.svelte +13 -18
- package/dist/components/interrupt/TextInputPrompt.svelte.d.ts +1 -1
- package/dist/components/interrupt/index.d.ts +6 -6
- package/dist/components/interrupt/index.js +6 -6
- package/dist/components/layouts/MainLayout.svelte +46 -84
- package/dist/components/layouts/MainLayout.svelte.d.ts +6 -6
- package/dist/components/nodes/GatewayNode.stories.svelte +64 -65
- package/dist/components/nodes/GatewayNode.svelte +37 -70
- package/dist/components/nodes/GatewayNode.svelte.d.ts +3 -3
- package/dist/components/nodes/IdeaNode.stories.svelte +25 -26
- package/dist/components/nodes/IdeaNode.svelte +22 -36
- package/dist/components/nodes/IdeaNode.svelte.d.ts +1 -1
- package/dist/components/nodes/NotesNode.stories.svelte +37 -38
- package/dist/components/nodes/NotesNode.svelte +28 -39
- package/dist/components/nodes/NotesNode.svelte.d.ts +1 -1
- package/dist/components/nodes/SimpleNode.stories.svelte +137 -138
- package/dist/components/nodes/SimpleNode.svelte +44 -74
- package/dist/components/nodes/SimpleNode.svelte.d.ts +1 -1
- package/dist/components/nodes/SquareNode.stories.svelte +75 -75
- package/dist/components/nodes/SquareNode.svelte +42 -68
- package/dist/components/nodes/SquareNode.svelte.d.ts +1 -1
- package/dist/components/nodes/TerminalNode.stories.svelte +10 -10
- package/dist/components/nodes/TerminalNode.svelte +74 -112
- package/dist/components/nodes/TerminalNode.svelte.d.ts +1 -1
- package/dist/components/nodes/ToolNode.stories.svelte +115 -116
- package/dist/components/nodes/ToolNode.svelte +31 -64
- package/dist/components/nodes/ToolNode.svelte.d.ts +1 -1
- package/dist/components/nodes/WorkflowNode.stories.svelte +84 -89
- package/dist/components/nodes/WorkflowNode.svelte +50 -103
- package/dist/components/nodes/WorkflowNode.svelte.d.ts +3 -3
- package/dist/components/playground/ChatPanel.svelte +47 -103
- package/dist/components/playground/ExecutionLogs.svelte +45 -68
- package/dist/components/playground/InputCollector.svelte +32 -51
- package/dist/components/playground/MessageBubble.stories.svelte +25 -25
- package/dist/components/playground/MessageBubble.stories.svelte.d.ts +1 -1
- package/dist/components/playground/MessageBubble.svelte +54 -70
- package/dist/components/playground/MessageBubble.svelte.d.ts +1 -1
- package/dist/components/playground/Playground.svelte +60 -91
- package/dist/components/playground/Playground.svelte.d.ts +3 -3
- package/dist/components/playground/PlaygroundModal.svelte +8 -12
- package/dist/components/playground/PlaygroundModal.svelte.d.ts +3 -3
- package/dist/components/playground/SessionManager.svelte +34 -40
- 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.js +2 -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 +68 -68
- package/dist/config/runtimeConfig.d.ts +2 -2
- package/dist/config/runtimeConfig.js +8 -8
- package/dist/core/index.d.ts +68 -68
- package/dist/core/index.js +38 -38
- package/dist/display/index.d.ts +2 -2
- package/dist/display/index.js +2 -2
- package/dist/editor/index.d.ts +64 -64
- package/dist/editor/index.js +54 -54
- 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 +9 -11
- 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 +32 -34
- package/dist/helpers/workflowEditorHelper.d.ts +6 -6
- package/dist/helpers/workflowEditorHelper.js +64 -68
- 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 +1 -1
- package/dist/mocks/app-navigation.js +2 -2
- package/dist/mocks/app-stores.js +3 -3
- 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 +9 -11
- 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/services/agentSpecExecutionService.d.ts +3 -3
- package/dist/services/agentSpecExecutionService.js +55 -56
- package/dist/services/api.d.ts +2 -2
- package/dist/services/api.js +37 -37
- package/dist/services/apiVariableService.d.ts +1 -1
- package/dist/services/apiVariableService.js +34 -41
- 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/chatService.d.ts +1 -1
- package/dist/services/chatService.js +18 -18
- 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 +39 -41
- package/dist/services/globalSave.d.ts +2 -2
- package/dist/services/globalSave.js +38 -41
- package/dist/services/historyService.d.ts +1 -1
- package/dist/services/historyService.js +10 -10
- package/dist/services/interruptService.d.ts +1 -1
- package/dist/services/interruptService.js +29 -35
- package/dist/services/nodeExecutionService.d.ts +1 -1
- package/dist/services/nodeExecutionService.js +44 -45
- 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 +19 -25
- 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 +1 -1
- package/dist/skins/default.js +1 -1
- package/dist/skins/index.d.ts +3 -3
- package/dist/skins/index.js +7 -7
- package/dist/skins/slate.d.ts +1 -1
- package/dist/skins/slate.js +69 -69
- 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 +34 -34
- 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 +18 -21
- package/dist/stores/portCoordinateStore.svelte.d.ts +2 -2
- package/dist/stores/portCoordinateStore.svelte.js +10 -13
- package/dist/stores/settingsStore.svelte.d.ts +2 -2
- package/dist/stores/settingsStore.svelte.js +57 -62
- package/dist/stores/workflowStore.svelte.d.ts +3 -3
- package/dist/stores/workflowStore.svelte.js +46 -47
- package/dist/stories/CanvasDecorator.svelte +7 -10
- package/dist/stories/CanvasDecorator.svelte.d.ts +2 -2
- package/dist/stories/EdgeDecorator.svelte +28 -31
- package/dist/stories/EdgeDecorator.svelte.d.ts +1 -1
- package/dist/stories/NodeDecorator.svelte +14 -20
- package/dist/stories/NodeDecorator.svelte.d.ts +1 -1
- package/dist/stories/utils.d.ts +2 -2
- package/dist/stories/utils.js +89 -93
- package/dist/styles/base.css +16 -50
- package/dist/styles/tokens.css +10 -28
- package/dist/svelte-app.d.ts +10 -10
- package/dist/svelte-app.js +39 -39
- package/dist/themes/default.d.ts +1 -1
- package/dist/themes/default.js +4 -4
- package/dist/themes/index.d.ts +3 -3
- package/dist/themes/index.js +11 -11
- package/dist/themes/minimal.d.ts +1 -1
- package/dist/themes/minimal.js +5 -5
- 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/chat.d.ts +2 -2
- package/dist/types/config.d.ts +6 -6
- package/dist/types/events.d.ts +3 -3
- 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 +7 -5
- package/dist/types/settings.js +19 -24
- package/dist/types/skin.d.ts +1 -1
- package/dist/types/theme.d.ts +2 -2
- 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 +95 -97
- 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/edgeStyling.d.ts +2 -2
- package/dist/utils/edgeStyling.js +36 -39
- 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/nodeIds.d.ts +1 -1
- package/dist/utils/nodeIds.js +1 -1
- package/dist/utils/nodeStatus.d.ts +1 -1
- package/dist/utils/nodeStatus.js +48 -48
- package/dist/utils/nodeSwap.d.ts +9 -9
- package/dist/utils/nodeSwap.js +52 -58
- package/dist/utils/nodeTypes.d.ts +1 -1
- package/dist/utils/nodeTypes.js +20 -21
- package/dist/utils/nodeWrapper.d.ts +7 -7
- package/dist/utils/nodeWrapper.js +19 -21
- package/dist/utils/performanceUtils.d.ts +1 -1
- package/dist/utils/performanceUtils.js +1 -2
- package/dist/utils/portUtils.d.ts +2 -2
- package/dist/utils/portUtils.js +1 -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 +8 -8
- package/package.json +7 -11
|
@@ -110,22 +110,22 @@
|
|
|
110
110
|
* );
|
|
111
111
|
* ```
|
|
112
112
|
*/
|
|
113
|
-
export { default as Playground } from
|
|
114
|
-
export { default as PlaygroundModal } from
|
|
115
|
-
export { default as ChatPanel } from
|
|
116
|
-
export { default as SessionManager } from
|
|
117
|
-
export { default as InputCollector } from
|
|
118
|
-
export { default as ExecutionLogs } from
|
|
119
|
-
export { default as MessageBubble } from
|
|
120
|
-
export { InterruptBubble, ConfirmationPrompt, ChoicePrompt, TextInputPrompt, FormPrompt, ReviewPrompt
|
|
121
|
-
export { PlaygroundService, playgroundService
|
|
122
|
-
export { InterruptService, interruptService
|
|
123
|
-
export { getCurrentSession, getSessions, getMessages, getIsExecuting, getIsLoading, getError as getPlaygroundError, getCurrentWorkflow, getLastPollTimestamp, getSessionStatus, getMessageCount, getChatMessages, getLogMessages, getLatestMessage, getInputFields, getHasChatInput, getSessionCount, playgroundActions, createPollingCallback, subscribeToSessionStatus, getCurrentSessionId, isSessionSelected, getMessagesSnapshot, getLatestMessageTimestamp
|
|
124
|
-
export type { PlaygroundSession, PlaygroundMessage, PlaygroundInputField, PlaygroundMessageRequest, PlaygroundMessagesResult, PlaygroundConfig, PlaygroundMode, PlaygroundSessionStatus, PlaygroundMessageRole, PlaygroundMessageLevel, PlaygroundMessageMetadata, PlaygroundApiResponse, PlaygroundSessionsResponse, PlaygroundSessionResponse, PlaygroundMessageResponse, PlaygroundMessagesApiResponse
|
|
125
|
-
export { isChatInputNode, CHAT_INPUT_PATTERNS, defaultShouldStopPolling, defaultIsTerminalStatus, DEFAULT_STOP_POLLING_STATUSES, DEFAULT_TERMINAL_STATUSES
|
|
126
|
-
export type { InterruptType, InterruptStatus, Interrupt, InterruptChoice, InterruptConfig, ConfirmationConfig, ChoiceConfig, TextConfig, FormConfig, ReviewConfig, ReviewChange, ReviewFieldDecision, ReviewResolution, InterruptResolution, InterruptApiResponse, InterruptListResponse, InterruptResponse, InterruptMessageMetadata, InterruptPollingConfig
|
|
127
|
-
export { isInterruptMetadata, extractInterruptMetadata, metadataToInterrupt, defaultInterruptPollingConfig
|
|
128
|
-
export { getInterruptsMap, getPendingInterruptIds, getPendingInterrupts, getPendingInterruptCount, getResolvedInterrupts, getIsAnySubmitting, interruptActions, getInterrupt, isInterruptPending, isInterruptSubmitting, getInterruptError, getInterruptByMessageId, interruptHasError
|
|
129
|
-
export type { InterruptWithState } from
|
|
130
|
-
export { mountPlayground, unmountPlayground, type PlaygroundMountOptions, type MountedPlayground
|
|
131
|
-
export { createEndpointConfig, defaultEndpointConfig, buildEndpointUrl, type EndpointConfig
|
|
113
|
+
export { default as Playground } from '../components/playground/Playground.svelte';
|
|
114
|
+
export { default as PlaygroundModal } from '../components/playground/PlaygroundModal.svelte';
|
|
115
|
+
export { default as ChatPanel } from '../components/playground/ChatPanel.svelte';
|
|
116
|
+
export { default as SessionManager } from '../components/playground/SessionManager.svelte';
|
|
117
|
+
export { default as InputCollector } from '../components/playground/InputCollector.svelte';
|
|
118
|
+
export { default as ExecutionLogs } from '../components/playground/ExecutionLogs.svelte';
|
|
119
|
+
export { default as MessageBubble } from '../components/playground/MessageBubble.svelte';
|
|
120
|
+
export { InterruptBubble, ConfirmationPrompt, ChoicePrompt, TextInputPrompt, FormPrompt, ReviewPrompt } from '../components/interrupt/index.js';
|
|
121
|
+
export { PlaygroundService, playgroundService } from '../services/playgroundService.js';
|
|
122
|
+
export { InterruptService, interruptService } from '../services/interruptService.js';
|
|
123
|
+
export { getCurrentSession, getSessions, getMessages, getIsExecuting, getIsLoading, getError as getPlaygroundError, getCurrentWorkflow, getLastPollTimestamp, getSessionStatus, getMessageCount, getChatMessages, getLogMessages, getLatestMessage, getInputFields, getHasChatInput, getSessionCount, playgroundActions, createPollingCallback, subscribeToSessionStatus, getCurrentSessionId, isSessionSelected, getMessagesSnapshot, getLatestMessageTimestamp } from '../stores/playgroundStore.svelte.js';
|
|
124
|
+
export type { PlaygroundSession, PlaygroundMessage, PlaygroundInputField, PlaygroundMessageRequest, PlaygroundMessagesResult, PlaygroundConfig, PlaygroundMode, PlaygroundSessionStatus, PlaygroundMessageRole, PlaygroundMessageLevel, PlaygroundMessageMetadata, PlaygroundApiResponse, PlaygroundSessionsResponse, PlaygroundSessionResponse, PlaygroundMessageResponse, PlaygroundMessagesApiResponse } from '../types/playground.js';
|
|
125
|
+
export { isChatInputNode, CHAT_INPUT_PATTERNS, defaultShouldStopPolling, defaultIsTerminalStatus, DEFAULT_STOP_POLLING_STATUSES, DEFAULT_TERMINAL_STATUSES } from '../types/playground.js';
|
|
126
|
+
export type { InterruptType, InterruptStatus, Interrupt, InterruptChoice, InterruptConfig, ConfirmationConfig, ChoiceConfig, TextConfig, FormConfig, ReviewConfig, ReviewChange, ReviewFieldDecision, ReviewResolution, InterruptResolution, InterruptApiResponse, InterruptListResponse, InterruptResponse, InterruptMessageMetadata, InterruptPollingConfig } from '../types/interrupt.js';
|
|
127
|
+
export { isInterruptMetadata, extractInterruptMetadata, metadataToInterrupt, defaultInterruptPollingConfig } from '../types/interrupt.js';
|
|
128
|
+
export { getInterruptsMap, getPendingInterruptIds, getPendingInterrupts, getPendingInterruptCount, getResolvedInterrupts, getIsAnySubmitting, interruptActions, getInterrupt, isInterruptPending, isInterruptSubmitting, getInterruptError, getInterruptByMessageId, interruptHasError } from '../stores/interruptStore.svelte.js';
|
|
129
|
+
export type { InterruptWithState } from '../stores/interruptStore.svelte.js';
|
|
130
|
+
export { mountPlayground, unmountPlayground, type PlaygroundMountOptions, type MountedPlayground } from './mount.js';
|
|
131
|
+
export { createEndpointConfig, defaultEndpointConfig, buildEndpointUrl, type EndpointConfig } from '../config/endpoints.js';
|
package/dist/playground/index.js
CHANGED
|
@@ -113,25 +113,25 @@
|
|
|
113
113
|
// ============================================================================
|
|
114
114
|
// Playground Components
|
|
115
115
|
// ============================================================================
|
|
116
|
-
export { default as Playground } from
|
|
117
|
-
export { default as PlaygroundModal } from
|
|
118
|
-
export { default as ChatPanel } from
|
|
119
|
-
export { default as SessionManager } from
|
|
120
|
-
export { default as InputCollector } from
|
|
121
|
-
export { default as ExecutionLogs } from
|
|
122
|
-
export { default as MessageBubble } from
|
|
116
|
+
export { default as Playground } from '../components/playground/Playground.svelte';
|
|
117
|
+
export { default as PlaygroundModal } from '../components/playground/PlaygroundModal.svelte';
|
|
118
|
+
export { default as ChatPanel } from '../components/playground/ChatPanel.svelte';
|
|
119
|
+
export { default as SessionManager } from '../components/playground/SessionManager.svelte';
|
|
120
|
+
export { default as InputCollector } from '../components/playground/InputCollector.svelte';
|
|
121
|
+
export { default as ExecutionLogs } from '../components/playground/ExecutionLogs.svelte';
|
|
122
|
+
export { default as MessageBubble } from '../components/playground/MessageBubble.svelte';
|
|
123
123
|
// ============================================================================
|
|
124
124
|
// Interrupt Components (Human-in-the-Loop)
|
|
125
125
|
// ============================================================================
|
|
126
|
-
export { InterruptBubble, ConfirmationPrompt, ChoicePrompt, TextInputPrompt, FormPrompt, ReviewPrompt
|
|
126
|
+
export { InterruptBubble, ConfirmationPrompt, ChoicePrompt, TextInputPrompt, FormPrompt, ReviewPrompt } from '../components/interrupt/index.js';
|
|
127
127
|
// ============================================================================
|
|
128
128
|
// Playground Service
|
|
129
129
|
// ============================================================================
|
|
130
|
-
export { PlaygroundService, playgroundService
|
|
130
|
+
export { PlaygroundService, playgroundService } from '../services/playgroundService.js';
|
|
131
131
|
// ============================================================================
|
|
132
132
|
// Interrupt Service (Human-in-the-Loop)
|
|
133
133
|
// ============================================================================
|
|
134
|
-
export { InterruptService, interruptService
|
|
134
|
+
export { InterruptService, interruptService } from '../services/interruptService.js';
|
|
135
135
|
// ============================================================================
|
|
136
136
|
// Playground Store
|
|
137
137
|
// ============================================================================
|
|
@@ -147,9 +147,9 @@ createPollingCallback,
|
|
|
147
147
|
// Subscription utility
|
|
148
148
|
subscribeToSessionStatus,
|
|
149
149
|
// Utilities
|
|
150
|
-
getCurrentSessionId, isSessionSelected, getMessagesSnapshot, getLatestMessageTimestamp
|
|
151
|
-
export { isChatInputNode, CHAT_INPUT_PATTERNS, defaultShouldStopPolling, defaultIsTerminalStatus, DEFAULT_STOP_POLLING_STATUSES, DEFAULT_TERMINAL_STATUSES
|
|
152
|
-
export { isInterruptMetadata, extractInterruptMetadata, metadataToInterrupt, defaultInterruptPollingConfig
|
|
150
|
+
getCurrentSessionId, isSessionSelected, getMessagesSnapshot, getLatestMessageTimestamp } from '../stores/playgroundStore.svelte.js';
|
|
151
|
+
export { isChatInputNode, CHAT_INPUT_PATTERNS, defaultShouldStopPolling, defaultIsTerminalStatus, DEFAULT_STOP_POLLING_STATUSES, DEFAULT_TERMINAL_STATUSES } from '../types/playground.js';
|
|
152
|
+
export { isInterruptMetadata, extractInterruptMetadata, metadataToInterrupt, defaultInterruptPollingConfig } from '../types/interrupt.js';
|
|
153
153
|
// ============================================================================
|
|
154
154
|
// Interrupt Store (Human-in-the-Loop)
|
|
155
155
|
// ============================================================================
|
|
@@ -161,12 +161,12 @@ getPendingInterruptIds, getPendingInterrupts, getPendingInterruptCount, getResol
|
|
|
161
161
|
// Actions
|
|
162
162
|
interruptActions,
|
|
163
163
|
// Utilities
|
|
164
|
-
getInterrupt, isInterruptPending, isInterruptSubmitting, getInterruptError, getInterruptByMessageId, interruptHasError
|
|
164
|
+
getInterrupt, isInterruptPending, isInterruptSubmitting, getInterruptError, getInterruptByMessageId, interruptHasError } from '../stores/interruptStore.svelte.js';
|
|
165
165
|
// ============================================================================
|
|
166
166
|
// Playground Mount Functions (for vanilla JS / Drupal / IIFE integration)
|
|
167
167
|
// ============================================================================
|
|
168
|
-
export { mountPlayground, unmountPlayground
|
|
168
|
+
export { mountPlayground, unmountPlayground } from './mount.js';
|
|
169
169
|
// ============================================================================
|
|
170
170
|
// Endpoint Configuration (re-exported for convenience)
|
|
171
171
|
// ============================================================================
|
|
172
|
-
export { createEndpointConfig, defaultEndpointConfig, buildEndpointUrl
|
|
172
|
+
export { createEndpointConfig, defaultEndpointConfig, buildEndpointUrl } from '../config/endpoints.js';
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
* })(Drupal, window.FlowDrop);
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
|
-
import type { Workflow } from
|
|
47
|
-
import type { EndpointConfig } from
|
|
48
|
-
import type { PlaygroundMode, PlaygroundConfig, PlaygroundSession, PlaygroundMessagesApiResponse, PlaygroundSessionStatus } from
|
|
46
|
+
import type { Workflow } from '../types/index.js';
|
|
47
|
+
import type { EndpointConfig } from '../config/endpoints.js';
|
|
48
|
+
import type { PlaygroundMode, PlaygroundConfig, PlaygroundSession, PlaygroundMessagesApiResponse, PlaygroundSessionStatus } from '../types/playground.js';
|
|
49
49
|
/**
|
|
50
50
|
* Mount options for Playground component
|
|
51
51
|
*/
|
package/dist/playground/mount.js
CHANGED
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
* })(Drupal, window.FlowDrop);
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
|
-
import { mount, unmount } from
|
|
47
|
-
import Playground from
|
|
48
|
-
import PlaygroundModal from
|
|
49
|
-
import { setEndpointConfig } from
|
|
50
|
-
import { playgroundService } from
|
|
51
|
-
import { getCurrentSession, getSessions, getMessages, playgroundActions, createPollingCallback, subscribeToSessionStatus
|
|
46
|
+
import { mount, unmount } from 'svelte';
|
|
47
|
+
import Playground from '../components/playground/Playground.svelte';
|
|
48
|
+
import PlaygroundModal from '../components/playground/PlaygroundModal.svelte';
|
|
49
|
+
import { setEndpointConfig } from '../services/api.js';
|
|
50
|
+
import { playgroundService } from '../services/playgroundService.js';
|
|
51
|
+
import { getCurrentSession, getSessions, getMessages, playgroundActions, createPollingCallback, subscribeToSessionStatus } from '../stores/playgroundStore.svelte.js';
|
|
52
52
|
/**
|
|
53
53
|
* Mount the Playground component in a container
|
|
54
54
|
*
|
|
@@ -79,30 +79,30 @@ import { getCurrentSession, getSessions, getMessages, playgroundActions, createP
|
|
|
79
79
|
* ```
|
|
80
80
|
*/
|
|
81
81
|
export async function mountPlayground(container, options) {
|
|
82
|
-
const { workflowId, workflow, mode =
|
|
82
|
+
const { workflowId, workflow, mode = 'standalone', initialSessionId, endpointConfig, config = {}, height = '100%', width = '100%', onClose, onSessionStatusChange } = options;
|
|
83
83
|
// Validate required parameters
|
|
84
84
|
if (!workflowId) {
|
|
85
|
-
throw new Error(
|
|
85
|
+
throw new Error('workflowId is required for mountPlayground()');
|
|
86
86
|
}
|
|
87
87
|
if (!container) {
|
|
88
|
-
throw new Error(
|
|
88
|
+
throw new Error('container element is required for mountPlayground()');
|
|
89
89
|
}
|
|
90
90
|
// Validate onClose for modal mode
|
|
91
|
-
if (mode ===
|
|
92
|
-
throw new Error(
|
|
91
|
+
if (mode === 'modal' && !onClose) {
|
|
92
|
+
throw new Error('onClose callback is required for modal mode');
|
|
93
93
|
}
|
|
94
94
|
// Set endpoint configuration if provided
|
|
95
95
|
let finalEndpointConfig;
|
|
96
96
|
if (endpointConfig) {
|
|
97
97
|
// Merge with default configuration to ensure all required endpoints are present
|
|
98
|
-
const { defaultEndpointConfig } = await import(
|
|
98
|
+
const { defaultEndpointConfig } = await import('../config/endpoints.js');
|
|
99
99
|
finalEndpointConfig = {
|
|
100
100
|
...defaultEndpointConfig,
|
|
101
101
|
...endpointConfig,
|
|
102
102
|
endpoints: {
|
|
103
103
|
...defaultEndpointConfig.endpoints,
|
|
104
|
-
...endpointConfig.endpoints
|
|
105
|
-
}
|
|
104
|
+
...endpointConfig.endpoints
|
|
105
|
+
}
|
|
106
106
|
};
|
|
107
107
|
setEndpointConfig(finalEndpointConfig);
|
|
108
108
|
}
|
|
@@ -110,7 +110,7 @@ export async function mountPlayground(container, options) {
|
|
|
110
110
|
// For modal mode, PlaygroundModal creates its own backdrop, so we mount directly to body
|
|
111
111
|
// For other modes, use the provided container
|
|
112
112
|
let targetContainer = container;
|
|
113
|
-
if (mode ===
|
|
113
|
+
if (mode === 'modal') {
|
|
114
114
|
// For modal mode, create a container in the body
|
|
115
115
|
// PlaygroundModal will handle the backdrop itself
|
|
116
116
|
targetContainer = document.body;
|
|
@@ -123,7 +123,7 @@ export async function mountPlayground(container, options) {
|
|
|
123
123
|
// Mount the appropriate component
|
|
124
124
|
// Separate the mount calls to avoid TypeScript inference issues with different props types
|
|
125
125
|
let svelteApp;
|
|
126
|
-
if (mode ===
|
|
126
|
+
if (mode === 'modal') {
|
|
127
127
|
svelteApp = mount(PlaygroundModal, {
|
|
128
128
|
target: targetContainer,
|
|
129
129
|
props: {
|
|
@@ -137,8 +137,8 @@ export async function mountPlayground(container, options) {
|
|
|
137
137
|
if (onClose) {
|
|
138
138
|
onClose();
|
|
139
139
|
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
else {
|
|
@@ -151,16 +151,16 @@ export async function mountPlayground(container, options) {
|
|
|
151
151
|
initialSessionId,
|
|
152
152
|
endpointConfig: finalEndpointConfig,
|
|
153
153
|
config,
|
|
154
|
-
onClose
|
|
155
|
-
}
|
|
154
|
+
onClose
|
|
155
|
+
}
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
// Store state for cleanup
|
|
159
159
|
const state = {
|
|
160
160
|
svelteApp,
|
|
161
161
|
container: targetContainer,
|
|
162
|
-
originalContainer: mode ===
|
|
163
|
-
workflowId
|
|
162
|
+
originalContainer: mode === 'modal' ? container : undefined,
|
|
163
|
+
workflowId
|
|
164
164
|
};
|
|
165
165
|
// Create shared polling callback using lifecycle hooks from config
|
|
166
166
|
const pollingCallback = createPollingCallback(config.isTerminalStatus);
|
|
@@ -209,7 +209,7 @@ export async function mountPlayground(container, options) {
|
|
|
209
209
|
reset: () => {
|
|
210
210
|
playgroundService.stopPolling();
|
|
211
211
|
playgroundActions.reset();
|
|
212
|
-
}
|
|
212
|
+
}
|
|
213
213
|
};
|
|
214
214
|
return mountedPlayground;
|
|
215
215
|
}
|
|
@@ -229,7 +229,7 @@ export async function mountPlayground(container, options) {
|
|
|
229
229
|
* ```
|
|
230
230
|
*/
|
|
231
231
|
export function unmountPlayground(app) {
|
|
232
|
-
if (app && typeof app.destroy ===
|
|
232
|
+
if (app && typeof app.destroy === 'function') {
|
|
233
233
|
app.destroy();
|
|
234
234
|
}
|
|
235
235
|
}
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* This module is automatically loaded when imported,
|
|
8
8
|
* ensuring built-in formats are available without user action.
|
|
9
9
|
*/
|
|
10
|
-
import { workflowFormatRegistry } from
|
|
11
|
-
import { AgentSpecAdapter } from
|
|
12
|
-
import { validateForAgentSpecExport } from
|
|
10
|
+
import { workflowFormatRegistry } from './workflowFormatRegistry.js';
|
|
11
|
+
import { AgentSpecAdapter } from '../adapters/agentspec/AgentSpecAdapter.js';
|
|
12
|
+
import { validateForAgentSpecExport } from '../adapters/agentspec/validator.js';
|
|
13
13
|
/**
|
|
14
14
|
* Track whether built-in formats have been registered.
|
|
15
15
|
* Prevents duplicate registration on hot reload.
|
|
@@ -24,13 +24,13 @@ export function registerBuiltinFormats() {
|
|
|
24
24
|
return;
|
|
25
25
|
// FlowDrop native — passthrough (StandardWorkflow ↔ JSON)
|
|
26
26
|
const flowdropAdapter = {
|
|
27
|
-
id:
|
|
28
|
-
name:
|
|
29
|
-
description:
|
|
30
|
-
version:
|
|
27
|
+
id: 'flowdrop',
|
|
28
|
+
name: 'FlowDrop',
|
|
29
|
+
description: 'FlowDrop native workflow format',
|
|
30
|
+
version: '1.0.0',
|
|
31
31
|
// No nodes — FlowDrop nodes are universal (no formats restriction)
|
|
32
32
|
export: (workflow) => JSON.stringify(workflow, null, 2),
|
|
33
|
-
import: (data) => JSON.parse(data)
|
|
33
|
+
import: (data) => JSON.parse(data)
|
|
34
34
|
};
|
|
35
35
|
workflowFormatRegistry.register(flowdropAdapter);
|
|
36
36
|
// Agent Spec — wraps existing AgentSpecAdapter
|
|
@@ -38,13 +38,13 @@ export function registerBuiltinFormats() {
|
|
|
38
38
|
// getDefaultAgentSpecNodeTypes() or custom definitions passed to mountFlowDropApp()
|
|
39
39
|
const agentSpecAdapter = new AgentSpecAdapter();
|
|
40
40
|
const agentSpecFormatAdapter = {
|
|
41
|
-
id:
|
|
42
|
-
name:
|
|
43
|
-
description:
|
|
44
|
-
version:
|
|
41
|
+
id: 'agentspec',
|
|
42
|
+
name: 'Agent Spec (Oracle)',
|
|
43
|
+
description: 'Oracle Open Agent Spec format',
|
|
44
|
+
version: '1.0.0',
|
|
45
45
|
export: (workflow) => agentSpecAdapter.exportJSON(workflow),
|
|
46
46
|
import: (data) => agentSpecAdapter.importJSON(data),
|
|
47
|
-
validate: (workflow) => validateForAgentSpecExport(workflow)
|
|
47
|
+
validate: (workflow) => validateForAgentSpecExport(workflow)
|
|
48
48
|
};
|
|
49
49
|
workflowFormatRegistry.register(agentSpecFormatAdapter);
|
|
50
50
|
registered = true;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This module is automatically loaded when the library initializes,
|
|
6
6
|
* ensuring all built-in node types are available without user action.
|
|
7
7
|
*/
|
|
8
|
-
import { type NodeComponentRegistration } from
|
|
8
|
+
import { type NodeComponentRegistration } from './nodeComponentRegistry.js';
|
|
9
9
|
/**
|
|
10
10
|
* Source identifier for built-in FlowDrop components
|
|
11
11
|
*/
|
|
@@ -70,7 +70,7 @@ export declare function getBuiltinTypes(): string[];
|
|
|
70
70
|
* Type for built-in node types.
|
|
71
71
|
* Use this when you specifically need a built-in type.
|
|
72
72
|
*/
|
|
73
|
-
export type BuiltinNodeType =
|
|
73
|
+
export type BuiltinNodeType = 'workflowNode' | 'simple' | 'square' | 'tool' | 'gateway' | 'note' | 'terminal' | 'idea';
|
|
74
74
|
/**
|
|
75
75
|
* Array of built-in type strings for runtime validation.
|
|
76
76
|
*/
|
|
@@ -5,119 +5,119 @@
|
|
|
5
5
|
* This module is automatically loaded when the library initializes,
|
|
6
6
|
* ensuring all built-in node types are available without user action.
|
|
7
7
|
*/
|
|
8
|
-
import { nodeComponentRegistry
|
|
9
|
-
import WorkflowNode from
|
|
10
|
-
import SimpleNode from
|
|
11
|
-
import SquareNode from
|
|
12
|
-
import ToolNode from
|
|
13
|
-
import GatewayNode from
|
|
14
|
-
import NotesNode from
|
|
15
|
-
import TerminalNode from
|
|
16
|
-
import IdeaNode from
|
|
8
|
+
import { nodeComponentRegistry } from './nodeComponentRegistry.js';
|
|
9
|
+
import WorkflowNode from '../components/nodes/WorkflowNode.svelte';
|
|
10
|
+
import SimpleNode from '../components/nodes/SimpleNode.svelte';
|
|
11
|
+
import SquareNode from '../components/nodes/SquareNode.svelte';
|
|
12
|
+
import ToolNode from '../components/nodes/ToolNode.svelte';
|
|
13
|
+
import GatewayNode from '../components/nodes/GatewayNode.svelte';
|
|
14
|
+
import NotesNode from '../components/nodes/NotesNode.svelte';
|
|
15
|
+
import TerminalNode from '../components/nodes/TerminalNode.svelte';
|
|
16
|
+
import IdeaNode from '../components/nodes/IdeaNode.svelte';
|
|
17
17
|
/**
|
|
18
18
|
* Source identifier for built-in FlowDrop components
|
|
19
19
|
*/
|
|
20
|
-
export const FLOWDROP_SOURCE =
|
|
20
|
+
export const FLOWDROP_SOURCE = 'flowdrop';
|
|
21
21
|
/**
|
|
22
22
|
* Built-in FlowDrop node component registrations.
|
|
23
23
|
* These are the default node types that ship with FlowDrop.
|
|
24
24
|
*/
|
|
25
25
|
export const BUILTIN_NODE_COMPONENTS = [
|
|
26
26
|
{
|
|
27
|
-
type:
|
|
28
|
-
displayName:
|
|
29
|
-
description:
|
|
27
|
+
type: 'workflowNode',
|
|
28
|
+
displayName: 'Default (Standard Workflow Node)',
|
|
29
|
+
description: 'Full-featured workflow node with inputs/outputs display',
|
|
30
30
|
component: WorkflowNode,
|
|
31
|
-
icon:
|
|
32
|
-
category:
|
|
31
|
+
icon: 'mdi:vector-square',
|
|
32
|
+
category: 'visual',
|
|
33
33
|
source: FLOWDROP_SOURCE,
|
|
34
|
-
statusPosition:
|
|
35
|
-
statusSize:
|
|
34
|
+
statusPosition: 'top-right',
|
|
35
|
+
statusSize: 'md'
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
type:
|
|
39
|
-
displayName:
|
|
40
|
-
description:
|
|
38
|
+
type: 'simple',
|
|
39
|
+
displayName: 'Simple (Compact Layout)',
|
|
40
|
+
description: 'Compact node with header, icon, and description',
|
|
41
41
|
component: SimpleNode,
|
|
42
|
-
icon:
|
|
43
|
-
category:
|
|
42
|
+
icon: 'mdi:card-outline',
|
|
43
|
+
category: 'visual',
|
|
44
44
|
source: FLOWDROP_SOURCE,
|
|
45
|
-
statusPosition:
|
|
46
|
-
statusSize:
|
|
45
|
+
statusPosition: 'top-right',
|
|
46
|
+
statusSize: 'md'
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
|
-
type:
|
|
50
|
-
displayName:
|
|
51
|
-
description:
|
|
49
|
+
type: 'square',
|
|
50
|
+
displayName: 'Square (Minimal Icon)',
|
|
51
|
+
description: 'Minimal square node showing only an icon',
|
|
52
52
|
component: SquareNode,
|
|
53
|
-
icon:
|
|
54
|
-
category:
|
|
53
|
+
icon: 'mdi:square',
|
|
54
|
+
category: 'visual',
|
|
55
55
|
source: FLOWDROP_SOURCE,
|
|
56
|
-
statusPosition:
|
|
57
|
-
statusSize:
|
|
56
|
+
statusPosition: 'top-right',
|
|
57
|
+
statusSize: 'sm'
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
|
-
type:
|
|
61
|
-
displayName:
|
|
62
|
-
description:
|
|
60
|
+
type: 'tool',
|
|
61
|
+
displayName: 'Tool (Agent Tool)',
|
|
62
|
+
description: 'Specialized node for agent tools with tool metadata',
|
|
63
63
|
component: ToolNode,
|
|
64
|
-
icon:
|
|
65
|
-
category:
|
|
64
|
+
icon: 'mdi:tools',
|
|
65
|
+
category: 'functional',
|
|
66
66
|
source: FLOWDROP_SOURCE,
|
|
67
|
-
statusPosition:
|
|
68
|
-
statusSize:
|
|
67
|
+
statusPosition: 'top-left',
|
|
68
|
+
statusSize: 'sm'
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
type:
|
|
72
|
-
displayName:
|
|
73
|
-
description:
|
|
71
|
+
type: 'gateway',
|
|
72
|
+
displayName: 'Gateway (Branching)',
|
|
73
|
+
description: 'Branching control flow node with multiple output branches',
|
|
74
74
|
component: GatewayNode,
|
|
75
|
-
icon:
|
|
76
|
-
category:
|
|
75
|
+
icon: 'mdi:source-branch',
|
|
76
|
+
category: 'functional',
|
|
77
77
|
source: FLOWDROP_SOURCE,
|
|
78
|
-
statusPosition:
|
|
79
|
-
statusSize:
|
|
78
|
+
statusPosition: 'top-right',
|
|
79
|
+
statusSize: 'md'
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
|
-
type:
|
|
83
|
-
displayName:
|
|
84
|
-
description:
|
|
82
|
+
type: 'note',
|
|
83
|
+
displayName: 'Note (Sticky Note)',
|
|
84
|
+
description: 'Documentation note with markdown support',
|
|
85
85
|
component: NotesNode,
|
|
86
|
-
icon:
|
|
87
|
-
category:
|
|
86
|
+
icon: 'mdi:note-text',
|
|
87
|
+
category: 'layout',
|
|
88
88
|
source: FLOWDROP_SOURCE,
|
|
89
|
-
statusPosition:
|
|
90
|
-
statusSize:
|
|
89
|
+
statusPosition: 'bottom-right',
|
|
90
|
+
statusSize: 'sm'
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
type:
|
|
94
|
-
displayName:
|
|
95
|
-
description:
|
|
93
|
+
type: 'terminal',
|
|
94
|
+
displayName: 'Terminal (Start/End/Exit)',
|
|
95
|
+
description: 'Circular terminal node for workflow start, end, or exit points',
|
|
96
96
|
component: TerminalNode,
|
|
97
|
-
icon:
|
|
98
|
-
category:
|
|
97
|
+
icon: 'mdi:circle-double',
|
|
98
|
+
category: 'functional',
|
|
99
99
|
source: FLOWDROP_SOURCE,
|
|
100
|
-
statusPosition:
|
|
101
|
-
statusSize:
|
|
100
|
+
statusPosition: 'top-right',
|
|
101
|
+
statusSize: 'sm'
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
|
-
type:
|
|
105
|
-
displayName:
|
|
106
|
-
description:
|
|
104
|
+
type: 'idea',
|
|
105
|
+
displayName: 'Idea (Conceptual Flow)',
|
|
106
|
+
description: 'Conceptual idea node for BPMN-like flow diagrams',
|
|
107
107
|
component: IdeaNode,
|
|
108
|
-
icon:
|
|
109
|
-
category:
|
|
108
|
+
icon: 'mdi:lightbulb-outline',
|
|
109
|
+
category: 'layout',
|
|
110
110
|
source: FLOWDROP_SOURCE,
|
|
111
|
-
statusPosition:
|
|
112
|
-
statusSize:
|
|
113
|
-
}
|
|
111
|
+
statusPosition: 'top-right',
|
|
112
|
+
statusSize: 'sm'
|
|
113
|
+
}
|
|
114
114
|
];
|
|
115
115
|
/**
|
|
116
116
|
* Alias mapping for type resolution.
|
|
117
117
|
* Maps alternative type names to their canonical registration.
|
|
118
118
|
*/
|
|
119
119
|
export const BUILTIN_TYPE_ALIASES = {
|
|
120
|
-
default:
|
|
120
|
+
default: 'workflowNode'
|
|
121
121
|
};
|
|
122
122
|
/**
|
|
123
123
|
* Track whether built-in nodes have been registered.
|
|
@@ -144,7 +144,7 @@ export function registerBuiltinNodes() {
|
|
|
144
144
|
// Register all built-in components
|
|
145
145
|
nodeComponentRegistry.registerAll(BUILTIN_NODE_COMPONENTS, true);
|
|
146
146
|
// Set the default type
|
|
147
|
-
nodeComponentRegistry.setDefaultType(
|
|
147
|
+
nodeComponentRegistry.setDefaultType('workflowNode');
|
|
148
148
|
builtinsRegistered = true;
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
@@ -194,14 +194,14 @@ export function getBuiltinTypes() {
|
|
|
194
194
|
* Array of built-in type strings for runtime validation.
|
|
195
195
|
*/
|
|
196
196
|
export const BUILTIN_NODE_TYPES = [
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
197
|
+
'workflowNode',
|
|
198
|
+
'simple',
|
|
199
|
+
'square',
|
|
200
|
+
'tool',
|
|
201
|
+
'gateway',
|
|
202
|
+
'note',
|
|
203
|
+
'terminal',
|
|
204
|
+
'idea'
|
|
205
205
|
];
|
|
206
206
|
// Sync registration flag with registry.clear() for test isolation
|
|
207
207
|
nodeComponentRegistry.onClear(() => {
|
package/dist/registry/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Node Component Registry Module
|
|
3
3
|
* Exports all registry-related functionality.
|
|
4
4
|
*/
|
|
5
|
-
export { BaseRegistry } from
|
|
6
|
-
export { nodeComponentRegistry, createNamespacedType, parseNamespacedType, type NodeComponentProps, type NodeTypeInfo, type NodeComponentRegistration, type NodeComponentCategory, type StatusPosition, type StatusSize, type NodeRegistrationFilter
|
|
7
|
-
export { BUILTIN_NODE_COMPONENTS, BUILTIN_NODE_TYPES, FLOWDROP_SOURCE, registerBuiltinNodes, areBuiltinsRegistered, resetBuiltinRegistration, resolveBuiltinAlias, isBuiltinType, getBuiltinTypes, type BuiltinNodeType
|
|
8
|
-
export { registerFlowDropPlugin, unregisterFlowDropPlugin, registerCustomNode, createPlugin, isValidNamespace, getRegisteredPlugins, getPluginNodeCount, type FlowDropPluginConfig, type PluginNodeDefinition, type PluginRegistrationResult
|
|
5
|
+
export { BaseRegistry } from './BaseRegistry.js';
|
|
6
|
+
export { nodeComponentRegistry, createNamespacedType, parseNamespacedType, type NodeComponentProps, type NodeTypeInfo, type NodeComponentRegistration, type NodeComponentCategory, type StatusPosition, type StatusSize, type NodeRegistrationFilter } from './nodeComponentRegistry.js';
|
|
7
|
+
export { BUILTIN_NODE_COMPONENTS, BUILTIN_NODE_TYPES, FLOWDROP_SOURCE, registerBuiltinNodes, areBuiltinsRegistered, resetBuiltinRegistration, resolveBuiltinAlias, isBuiltinType, getBuiltinTypes, type BuiltinNodeType } from './builtinNodes.js';
|
|
8
|
+
export { registerFlowDropPlugin, unregisterFlowDropPlugin, registerCustomNode, createPlugin, isValidNamespace, getRegisteredPlugins, getPluginNodeCount, type FlowDropPluginConfig, type PluginNodeDefinition, type PluginRegistrationResult } from './plugin.js';
|
package/dist/registry/index.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Exports all registry-related functionality.
|
|
4
4
|
*/
|
|
5
5
|
// Base registry
|
|
6
|
-
export { BaseRegistry } from
|
|
6
|
+
export { BaseRegistry } from './BaseRegistry.js';
|
|
7
7
|
// Core registry
|
|
8
|
-
export { nodeComponentRegistry, createNamespacedType, parseNamespacedType
|
|
8
|
+
export { nodeComponentRegistry, createNamespacedType, parseNamespacedType } from './nodeComponentRegistry.js';
|
|
9
9
|
// Built-in nodes
|
|
10
|
-
export { BUILTIN_NODE_COMPONENTS, BUILTIN_NODE_TYPES, FLOWDROP_SOURCE, registerBuiltinNodes, areBuiltinsRegistered, resetBuiltinRegistration, resolveBuiltinAlias, isBuiltinType, getBuiltinTypes
|
|
10
|
+
export { BUILTIN_NODE_COMPONENTS, BUILTIN_NODE_TYPES, FLOWDROP_SOURCE, registerBuiltinNodes, areBuiltinsRegistered, resetBuiltinRegistration, resolveBuiltinAlias, isBuiltinType, getBuiltinTypes } from './builtinNodes.js';
|
|
11
11
|
// Plugin system
|
|
12
|
-
export { registerFlowDropPlugin, unregisterFlowDropPlugin, registerCustomNode, createPlugin, isValidNamespace, getRegisteredPlugins, getPluginNodeCount
|
|
12
|
+
export { registerFlowDropPlugin, unregisterFlowDropPlugin, registerCustomNode, createPlugin, isValidNamespace, getRegisteredPlugins, getPluginNodeCount } from './plugin.js';
|
|
@@ -8,21 +8,21 @@
|
|
|
8
8
|
* - External libraries to contribute node types via plugins
|
|
9
9
|
* - Runtime switching between different node visualizations
|
|
10
10
|
*/
|
|
11
|
-
import type { Component } from
|
|
12
|
-
import type { WorkflowNode } from
|
|
13
|
-
import { BaseRegistry } from
|
|
11
|
+
import type { Component } from 'svelte';
|
|
12
|
+
import type { WorkflowNode } from '../types/index.js';
|
|
13
|
+
import { BaseRegistry } from './BaseRegistry.js';
|
|
14
14
|
/**
|
|
15
15
|
* Props interface that all node components must accept.
|
|
16
16
|
* Any component registered in the registry must be compatible with these props.
|
|
17
17
|
*/
|
|
18
18
|
export interface NodeComponentProps {
|
|
19
19
|
/** Node data containing label, config, metadata, executionInfo */
|
|
20
|
-
data: WorkflowNode[
|
|
20
|
+
data: WorkflowNode['data'] & {
|
|
21
21
|
nodeId?: string;
|
|
22
22
|
onConfigOpen?: (node: {
|
|
23
23
|
id: string;
|
|
24
24
|
type: string;
|
|
25
|
-
data: WorkflowNode[
|
|
25
|
+
data: WorkflowNode['data'];
|
|
26
26
|
}) => void;
|
|
27
27
|
};
|
|
28
28
|
/** Whether the node is currently selected */
|
|
@@ -35,15 +35,15 @@ export interface NodeComponentProps {
|
|
|
35
35
|
/**
|
|
36
36
|
* Position options for the status overlay on nodes
|
|
37
37
|
*/
|
|
38
|
-
export type StatusPosition =
|
|
38
|
+
export type StatusPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
39
39
|
/**
|
|
40
40
|
* Size options for the status overlay on nodes
|
|
41
41
|
*/
|
|
42
|
-
export type StatusSize =
|
|
42
|
+
export type StatusSize = 'sm' | 'md' | 'lg';
|
|
43
43
|
/**
|
|
44
44
|
* Category for organizing node types in the UI
|
|
45
45
|
*/
|
|
46
|
-
export type NodeComponentCategory =
|
|
46
|
+
export type NodeComponentCategory = 'visual' | 'functional' | 'layout' | 'custom';
|
|
47
47
|
/**
|
|
48
48
|
* Framework-agnostic metadata for a node type.
|
|
49
49
|
* Contains all display/organizational information without any Svelte dependency.
|