@flowdrop/flowdrop 2.10.1 → 2.12.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/CHANGELOG.md +385 -0
- package/dist/adapters/agentspec/autoLayout.d.ts +18 -36
- package/dist/adapters/agentspec/autoLayout.js +75 -93
- package/dist/chat/activity.d.ts +49 -0
- package/dist/chat/activity.js +65 -0
- package/dist/chat/commandClassifier.js +2 -1
- package/dist/commands/executor.js +186 -27
- package/dist/commands/index.d.ts +2 -1
- package/dist/commands/index.js +2 -0
- package/dist/commands/parser.js +43 -3
- package/dist/commands/session.d.ts +60 -0
- package/dist/commands/session.js +332 -0
- package/dist/commands/storeIntegration.svelte.js +18 -1
- package/dist/commands/types.d.ts +77 -4
- package/dist/components/App.svelte +1030 -207
- package/dist/components/App.svelte.d.ts +26 -2
- package/dist/components/BindablePortListbox.svelte +68 -369
- package/dist/components/Button.svelte +17 -14
- package/dist/components/Button.svelte.d.ts +2 -2
- package/dist/components/CanvasContextMenu.svelte +31 -10
- package/dist/components/CanvasController.svelte +146 -3
- package/dist/components/CanvasController.svelte.d.ts +25 -33
- package/dist/components/CanvasIconButton.svelte +6 -6
- package/dist/components/CanvasToolbar.svelte +103 -0
- package/dist/components/CanvasToolbar.svelte.d.ts +23 -0
- package/dist/components/CanvasZoomControls.svelte +122 -0
- package/dist/components/CanvasZoomControls.svelte.d.ts +15 -0
- package/dist/components/ConfigForm.svelte +163 -125
- package/dist/components/ConfigModal.svelte +13 -56
- package/dist/components/ConfigModal.svelte.d.ts +1 -1
- package/dist/components/ConfigPanel.svelte +98 -228
- package/dist/components/ConfigPanel.svelte.d.ts +2 -2
- package/dist/components/ConnectPortPicker.svelte +153 -0
- package/dist/components/ConnectPortPicker.svelte.d.ts +22 -0
- package/dist/components/ConnectionLine.svelte +1 -1
- package/dist/components/DoctorMenu.svelte +422 -0
- package/dist/components/DoctorMenu.svelte.d.ts +7 -0
- package/dist/components/ExternalLinkRow.svelte +82 -0
- package/dist/components/ExternalLinkRow.svelte.d.ts +14 -0
- package/dist/components/FlowDropEdge.svelte +52 -2
- package/dist/components/FlowDropEdge.svelte.d.ts +5 -1
- package/dist/components/InterfaceNameInput.svelte +103 -0
- package/dist/components/InterfaceNameInput.svelte.d.ts +13 -0
- package/dist/components/InterfaceTag.svelte +215 -0
- package/dist/components/InterfaceTag.svelte.d.ts +20 -0
- package/dist/components/InterfaceTagAnchor.svelte +103 -0
- package/dist/components/InterfaceTagAnchor.svelte.d.ts +12 -0
- package/dist/components/InterfaceTagLayer.svelte +314 -0
- package/dist/components/InterfaceTagLayer.svelte.d.ts +28 -0
- package/dist/components/LogsSidebar.svelte +58 -55
- package/dist/components/LoopbackLanes.svelte +54 -0
- package/dist/components/LoopbackLanes.svelte.d.ts +8 -0
- package/dist/components/MarkdownDisplay.svelte +1 -1
- package/dist/components/Navbar.svelte +539 -169
- package/dist/components/Navbar.svelte.d.ts +20 -1
- package/dist/components/NodeInspector.svelte +153 -0
- package/dist/components/NodeInspector.svelte.d.ts +19 -0
- package/dist/components/NodeLastRun.svelte +212 -0
- package/dist/components/NodeLastRun.svelte.d.ts +13 -0
- package/dist/components/NodeSidebar.svelte +279 -23
- package/dist/components/NodeSidebar.svelte.d.ts +11 -0
- package/dist/components/NodeStatusOverlay.svelte +144 -353
- package/dist/components/NodeStatusOverlay.svelte.d.ts +4 -1
- package/dist/components/PipelineStatus.svelte +5 -18
- package/dist/components/PortMappingRow.svelte +28 -44
- package/dist/components/PortPickerListbox.svelte +475 -0
- package/dist/components/PortPickerListbox.svelte.d.ts +73 -0
- package/dist/components/ReadOnlyDetails.svelte +52 -89
- package/dist/components/RunBar.svelte +222 -0
- package/dist/components/RunBar.svelte.d.ts +20 -0
- package/dist/components/RunsMenu.svelte +649 -0
- package/dist/components/RunsMenu.svelte.d.ts +14 -0
- package/dist/components/SchemaForm.svelte +1 -1
- package/dist/components/SettingsModal.svelte +28 -60
- package/dist/components/SettingsPanel.svelte +516 -242
- package/dist/components/StraightGuides.svelte +46 -0
- package/dist/components/StraightGuides.svelte.d.ts +7 -0
- package/dist/components/ThemeToggle.svelte +14 -4
- package/dist/components/UniversalNode.svelte +152 -51
- package/dist/components/WebMCPBridgeMenu.svelte +336 -0
- package/dist/components/WebMCPBridgeMenu.svelte.d.ts +3 -0
- package/dist/components/WorkflowEditor.svelte +821 -142
- package/dist/components/WorkflowEditor.svelte.d.ts +43 -1
- package/dist/components/WorkflowInterfaceEditor.svelte +106 -100
- package/dist/components/WorkflowInterfaceEditor.svelte.d.ts +12 -1
- package/dist/components/WorkflowInterfaceEntryCard.svelte +496 -494
- package/dist/components/WorkflowInterfaceEntryCard.svelte.d.ts +14 -1
- package/dist/components/WorkflowInterfaceEntryComposer.svelte +23 -67
- package/dist/components/WorkflowPlaygroundSettings.svelte +514 -0
- package/dist/components/WorkflowPlaygroundSettings.svelte.d.ts +20 -0
- package/dist/components/WorkflowSettingsPanel.svelte +311 -0
- package/dist/components/WorkflowSettingsPanel.svelte.d.ts +20 -0
- package/dist/components/ZoomTier.svelte +56 -0
- package/dist/components/ZoomTier.svelte.d.ts +4 -0
- package/dist/components/chat/AIChatPanel.svelte +464 -313
- package/dist/components/chat/ActivityList.svelte +130 -0
- package/dist/components/chat/ActivityList.svelte.d.ts +11 -0
- package/dist/components/chat/ActivityRow.svelte +179 -0
- package/dist/components/chat/ActivityRow.svelte.d.ts +16 -0
- package/dist/components/chat/CommandPreview.svelte +42 -64
- package/dist/components/console/CommandConsole.svelte +106 -41
- package/dist/components/console/CommandConsole.svelte.d.ts +2 -0
- package/dist/components/console/ConsoleAutocomplete.svelte +14 -13
- package/dist/components/console/ConsoleInput.svelte +60 -27
- package/dist/components/console/ConsoleOutput.svelte +86 -24
- package/dist/components/console/ConsoleStrip.svelte +80 -0
- package/dist/components/console/ConsoleStrip.svelte.d.ts +13 -0
- package/dist/components/form/FieldFactory.svelte +30 -4
- package/dist/components/form/FormArray.svelte +306 -339
- package/dist/components/form/FormArray.svelte.d.ts +10 -0
- package/dist/components/form/FormArrayRows.svelte +443 -0
- package/dist/components/form/FormArrayRows.svelte.d.ts +18 -0
- package/dist/components/form/FormAutocomplete.svelte +2 -2
- package/dist/components/form/FormCheckboxGroup.svelte +10 -85
- package/dist/components/form/FormCodeEditor.svelte +3 -3
- package/dist/components/form/FormFieldWrapper.svelte +98 -18
- package/dist/components/form/FormFieldWrapper.svelte.d.ts +10 -0
- package/dist/components/form/FormFieldset.svelte +44 -28
- package/dist/components/form/FormMarkdownEditor.svelte +6 -6
- package/dist/components/form/FormPorts.svelte +437 -141
- package/dist/components/form/FormSelect.svelte +1 -1
- package/dist/components/form/FormTemplateEditor.svelte +22 -26
- package/dist/components/form/FormToggle.svelte +15 -106
- package/dist/components/form/FormToggle.svelte.d.ts +3 -2
- package/dist/components/form/FormUISchemaRenderer.svelte +38 -3
- package/dist/components/form/humanizeKey.d.ts +7 -0
- package/dist/components/form/humanizeKey.js +21 -0
- package/dist/components/form/index.d.ts +2 -2
- package/dist/components/form/index.js +2 -2
- package/dist/components/form/types.d.ts +6 -0
- package/dist/components/icons/MenuOpenIcon.svelte +8 -1
- package/dist/components/interrupt/ChoicePrompt.svelte +51 -152
- package/dist/components/interrupt/ChoicePrompt.svelte.d.ts +0 -2
- package/dist/components/interrupt/ConfirmationPrompt.svelte +18 -201
- package/dist/components/interrupt/ConfirmationPrompt.svelte.d.ts +0 -4
- package/dist/components/interrupt/FormPrompt.svelte +22 -147
- package/dist/components/interrupt/FormPrompt.svelte.d.ts +0 -4
- package/dist/components/interrupt/InterruptBubble.svelte +198 -355
- package/dist/components/interrupt/InterruptBubble.svelte.d.ts +0 -2
- package/dist/components/interrupt/ReviewPrompt.svelte +0 -10
- package/dist/components/interrupt/TextInputPrompt.svelte +23 -120
- package/dist/components/interrupt/TextInputPrompt.svelte.d.ts +0 -2
- package/dist/components/layouts/MainLayout.svelte +110 -75
- package/dist/components/layouts/MainLayout.svelte.d.ts +17 -0
- package/dist/components/nodes/CaptionNode.svelte +7 -0
- package/dist/components/nodes/GatewayNode.svelte +66 -431
- package/dist/components/nodes/IdeaNode.svelte +6 -5
- package/dist/components/nodes/NodeCard.svelte +1051 -0
- package/dist/components/nodes/NodeCard.svelte.d.ts +30 -0
- package/dist/components/nodes/NodeConfigButton.svelte +28 -9
- package/dist/components/nodes/NodeProblemMark.svelte +113 -0
- package/dist/components/nodes/NodeProblemMark.svelte.d.ts +8 -0
- package/dist/components/nodes/NodeTip.svelte +104 -0
- package/dist/components/nodes/NodeTip.svelte.d.ts +15 -0
- package/dist/components/nodes/NotesNode.svelte +183 -150
- package/dist/components/nodes/SimpleNode.svelte +176 -44
- package/dist/components/nodes/SquareNode.svelte +127 -34
- package/dist/components/nodes/TerminalNode.svelte +232 -88
- package/dist/components/nodes/ToolNode.svelte +49 -381
- package/dist/components/nodes/WorkflowNode.svelte +40 -399
- package/dist/components/playground/ChatBubble.svelte +248 -62
- package/dist/components/playground/ChatInput.svelte +134 -297
- package/dist/components/playground/ChatInput.svelte.d.ts +17 -0
- package/dist/components/playground/ControlPanel.svelte +318 -188
- package/dist/components/playground/ControlPanel.svelte.d.ts +13 -0
- package/dist/components/playground/DockedPlayground.svelte +75 -0
- package/dist/components/playground/DockedPlayground.svelte.d.ts +24 -0
- package/dist/components/playground/ExecutionConsole.svelte +54 -36
- package/dist/components/playground/ExecutionConsole.svelte.d.ts +12 -0
- package/dist/components/playground/ExecutionLogs.svelte +4 -0
- package/dist/components/playground/HeaderMenu.svelte +170 -0
- package/dist/components/playground/HeaderMenu.svelte.d.ts +22 -0
- package/dist/components/playground/InputCollector.svelte +8 -32
- package/dist/components/playground/InputFields.svelte +246 -0
- package/dist/components/playground/InputFields.svelte.d.ts +16 -0
- package/dist/components/playground/InterfaceInputForm.svelte +285 -30
- package/dist/components/playground/InterfaceInputForm.svelte.d.ts +20 -0
- package/dist/components/playground/InterfaceJsonInput.svelte +92 -0
- package/dist/components/playground/InterfaceJsonInput.svelte.d.ts +10 -0
- package/dist/components/playground/LogRow.svelte +12 -12
- package/dist/components/playground/MessageMarkdown.svelte +11 -11
- package/dist/components/playground/MessageStream.svelte +154 -182
- package/dist/components/playground/Playground.svelte +17 -1087
- package/dist/components/playground/PlaygroundApp.svelte +12 -2
- package/dist/components/playground/PlaygroundApp.svelte.d.ts +2 -1
- package/dist/components/playground/PlaygroundHeader.svelte +309 -0
- package/dist/components/playground/PlaygroundHeader.svelte.d.ts +22 -0
- package/dist/components/playground/PlaygroundModal.svelte +7 -1
- package/dist/components/playground/PlaygroundStudio.svelte +31 -33
- package/dist/components/playground/PlaygroundSurface.svelte +648 -0
- package/dist/components/playground/PlaygroundSurface.svelte.d.ts +79 -0
- package/dist/components/playground/StepsSummary.svelte +312 -0
- package/dist/components/playground/StepsSummary.svelte.d.ts +11 -0
- package/dist/components/playground/messageDisplay.d.ts +9 -0
- package/dist/components/playground/messageDisplay.js +24 -2
- package/dist/components/playground/stepSummary.d.ts +71 -0
- package/dist/components/playground/stepSummary.js +152 -0
- package/dist/components/ports/PortTypeBadge.svelte +13 -1
- package/dist/components/primitives/Button.svelte +226 -0
- package/dist/components/primitives/Button.svelte.d.ts +31 -0
- package/dist/components/primitives/Card.svelte +110 -0
- package/dist/components/primitives/Card.svelte.d.ts +20 -0
- package/dist/components/primitives/Checkbox.svelte +126 -0
- package/dist/components/primitives/Checkbox.svelte.d.ts +15 -0
- package/dist/components/primitives/Chip.svelte +143 -0
- package/dist/components/primitives/Chip.svelte.d.ts +22 -0
- package/dist/components/primitives/Combobox.svelte +444 -0
- package/dist/components/primitives/Combobox.svelte.d.ts +22 -0
- package/dist/components/primitives/Composer.svelte +293 -0
- package/dist/components/primitives/Composer.svelte.d.ts +47 -0
- package/dist/components/primitives/EmptyState.svelte +113 -0
- package/dist/components/primitives/EmptyState.svelte.d.ts +18 -0
- package/dist/components/primitives/Field.svelte +178 -0
- package/dist/components/primitives/Field.svelte.d.ts +30 -0
- package/dist/components/primitives/IconButton.svelte +156 -0
- package/dist/components/primitives/IconButton.svelte.d.ts +27 -0
- package/dist/components/primitives/Menu.svelte +435 -0
- package/dist/components/primitives/Menu.svelte.d.ts +61 -0
- package/dist/components/primitives/Notice.svelte +161 -0
- package/dist/components/primitives/Notice.svelte.d.ts +22 -0
- package/dist/components/primitives/PanelHeader.svelte +134 -0
- package/dist/components/primitives/PanelHeader.svelte.d.ts +23 -0
- package/dist/components/primitives/Segmented.svelte +198 -0
- package/dist/components/primitives/Segmented.svelte.d.ts +32 -0
- package/dist/components/primitives/Select.svelte +130 -0
- package/dist/components/primitives/Select.svelte.d.ts +26 -0
- package/dist/components/primitives/StatusPill.svelte +218 -0
- package/dist/components/primitives/StatusPill.svelte.d.ts +24 -0
- package/dist/components/primitives/Switch.svelte +113 -0
- package/dist/components/primitives/Switch.svelte.d.ts +14 -0
- package/dist/components/primitives/Tabs.svelte +209 -0
- package/dist/components/primitives/Tabs.svelte.d.ts +32 -0
- package/dist/components/primitives/Toolbar.svelte +94 -0
- package/dist/components/primitives/Toolbar.svelte.d.ts +14 -0
- package/dist/components/primitives/ToolbarSeparator.svelte +40 -0
- package/dist/components/primitives/ToolbarSeparator.svelte.d.ts +7 -0
- package/dist/components/surfaces/SurfaceOverlay.svelte +10 -40
- package/dist/components/surfaces/TabbedSurface.svelte +49 -39
- package/dist/components/surfaces/TabbedSurface.svelte.d.ts +8 -0
- package/dist/components/toast/DismissibleToast.svelte +94 -32
- package/dist/components/toast/DismissibleToast.svelte.d.ts +17 -7
- package/dist/config/endpoints.d.ts +43 -1
- package/dist/config/endpoints.js +21 -3
- package/dist/core/index.d.ts +9 -6
- package/dist/core/index.js +1 -1
- package/dist/editor/connectCandidates.d.ts +56 -0
- package/dist/editor/connectCandidates.js +131 -0
- package/dist/editor/contextMenu.d.ts +31 -2
- package/dist/editor/contextMenu.js +96 -9
- package/dist/editor/index.d.ts +3 -1
- package/dist/editor/index.js +1 -0
- package/dist/editor/interfaceMenu.d.ts +35 -0
- package/dist/editor/interfaceMenu.js +47 -0
- package/dist/editor/portMenu.d.ts +23 -0
- package/dist/editor/portMenu.js +34 -0
- package/dist/editor/tidy.d.ts +30 -0
- package/dist/editor/tidy.js +66 -0
- package/dist/helpers/workflowEditorHelper.d.ts +15 -0
- package/dist/helpers/workflowEditorHelper.js +39 -3
- package/dist/layout/fromWorkflow.d.ts +42 -0
- package/dist/layout/fromWorkflow.js +135 -0
- package/dist/layout/geometry.d.ts +102 -0
- package/dist/layout/geometry.js +317 -0
- package/dist/layout/index.d.ts +21 -0
- package/dist/layout/index.js +14 -0
- package/dist/layout/inspect.d.ts +18 -0
- package/dist/layout/inspect.js +81 -0
- package/dist/layout/lanePath.d.ts +23 -0
- package/dist/layout/lanePath.js +47 -0
- package/dist/layout/measure.d.ts +141 -0
- package/dist/layout/measure.js +477 -0
- package/dist/layout/primitives.d.ts +124 -0
- package/dist/layout/primitives.js +461 -0
- package/dist/layout/sweep.d.ts +59 -0
- package/dist/layout/sweep.js +257 -0
- package/dist/layout/toWorkflow.d.ts +43 -0
- package/dist/layout/toWorkflow.js +131 -0
- package/dist/layout/types.d.ts +93 -0
- package/dist/layout/types.js +35 -0
- package/dist/messages/defaults.d.ts +694 -26
- package/dist/messages/defaults.js +626 -27
- package/dist/messages/types.d.ts +21 -1
- package/dist/openapi/v1/openapi.yaml +222 -5
- package/dist/playground/index.d.ts +31 -2
- package/dist/playground/index.js +31 -1
- package/dist/playground/mount.d.ts +34 -12
- package/dist/playground/mount.js +80 -35
- package/dist/playground/runAction.d.ts +29 -0
- package/dist/playground/runAction.js +38 -0
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/v1/workflow.schema.json +140 -2
- package/dist/services/doctorService.d.ts +52 -0
- package/dist/services/doctorService.js +113 -0
- package/dist/services/globalSave.js +17 -24
- package/dist/services/nodeExecutionService.d.ts +12 -1
- package/dist/services/nodeExecutionService.js +58 -58
- package/dist/services/playgroundService.d.ts +23 -3
- package/dist/services/playgroundService.js +53 -5
- package/dist/services/runsService.d.ts +42 -0
- package/dist/services/runsService.js +87 -0
- package/dist/services/toastQueue.d.ts +33 -0
- package/dist/services/toastQueue.js +38 -0
- package/dist/services/toastService.d.ts +30 -9
- package/dist/services/toastService.js +81 -46
- package/dist/settings/index.d.ts +1 -0
- package/dist/skins/default.d.ts +1 -1
- package/dist/skins/drafter.d.ts +1 -1
- package/dist/skins/graphite.d.ts +26 -0
- package/dist/skins/graphite.js +473 -0
- package/dist/skins/index.d.ts +6 -5
- package/dist/skins/index.js +7 -5
- package/dist/skins/slate.d.ts +1 -1
- package/dist/skins/slate.js +4 -4
- package/dist/stores/attachedRunStore.svelte.d.ts +35 -0
- package/dist/stores/attachedRunStore.svelte.js +47 -0
- package/dist/stores/connectDragStore.svelte.d.ts +39 -0
- package/dist/stores/connectDragStore.svelte.js +42 -0
- package/dist/stores/doctorStore.svelte.d.ts +79 -0
- package/dist/stores/doctorStore.svelte.js +244 -0
- package/dist/stores/editedNodesStore.svelte.d.ts +42 -0
- package/dist/stores/editedNodesStore.svelte.js +84 -0
- package/dist/stores/editorModeStore.svelte.d.ts +34 -0
- package/dist/stores/editorModeStore.svelte.js +55 -0
- package/dist/stores/instanceContainer.svelte.d.ts +68 -0
- package/dist/stores/instanceContainer.svelte.js +49 -2
- package/dist/stores/loopbackLanesStore.svelte.d.ts +18 -0
- package/dist/stores/loopbackLanesStore.svelte.js +25 -0
- package/dist/stores/nodeHighlightStore.svelte.d.ts +34 -0
- package/dist/stores/nodeHighlightStore.svelte.js +56 -0
- package/dist/stores/playgroundStore.svelte.d.ts +74 -2
- package/dist/stores/playgroundStore.svelte.js +182 -6
- package/dist/stores/runController.svelte.d.ts +382 -0
- package/dist/stores/runController.svelte.js +1217 -0
- package/dist/stores/settingsStore.svelte.d.ts +80 -18
- package/dist/stores/settingsStore.svelte.js +180 -62
- package/dist/stores/workflowStore.svelte.d.ts +18 -1
- package/dist/stores/workflowStore.svelte.js +29 -1
- package/dist/styles/base.css +300 -28
- package/dist/styles/fonts/Inter-LICENSE.txt +93 -0
- package/dist/styles/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/dist/styles/fonts/inter.css +19 -0
- package/dist/styles/toast.css +100 -20
- package/dist/styles/tokenAliases.d.ts +13 -0
- package/dist/styles/tokenAliases.js +206 -0
- package/dist/styles/tokens.css +586 -14
- package/dist/svelte-app.d.ts +38 -5
- package/dist/svelte-app.js +14 -3
- package/dist/themes/graphite.d.ts +2 -0
- package/dist/themes/graphite.js +15 -0
- package/dist/themes/index.d.ts +2 -1
- package/dist/themes/index.js +22 -3
- package/dist/themes/minimal.js +10 -0
- package/dist/themes/scopedSkinCss.d.ts +47 -0
- package/dist/themes/scopedSkinCss.js +220 -0
- package/dist/types/chat.d.ts +6 -0
- package/dist/types/doctor.d.ts +82 -0
- package/dist/types/doctor.js +11 -0
- package/dist/types/events.d.ts +35 -0
- package/dist/types/events.js +4 -1
- package/dist/types/index.d.ts +103 -6
- package/dist/types/index.js +15 -3
- package/dist/types/navbar.d.ts +36 -0
- package/dist/types/playground.d.ts +66 -0
- package/dist/types/settings.d.ts +120 -7
- package/dist/types/settings.js +35 -3
- package/dist/types/skin.d.ts +23 -10
- package/dist/types/theme.d.ts +40 -2
- package/dist/utils/appearance.d.ts +19 -0
- package/dist/utils/appearance.js +13 -0
- package/dist/utils/canvasFit.d.ts +41 -0
- package/dist/utils/canvasFit.js +44 -0
- package/dist/utils/chipTitles.d.ts +9 -0
- package/dist/utils/chipTitles.js +19 -0
- package/dist/utils/connections.js +8 -0
- package/dist/utils/consoleHighlight.d.ts +28 -0
- package/dist/utils/consoleHighlight.js +269 -0
- package/dist/utils/deprecation.d.ts +17 -0
- package/dist/utils/deprecation.js +29 -0
- package/dist/utils/doctorOperations.d.ts +40 -0
- package/dist/utils/doctorOperations.js +237 -0
- package/dist/utils/duration.d.ts +13 -0
- package/dist/utils/duration.js +40 -0
- package/dist/utils/inspectorContext.d.ts +19 -0
- package/dist/utils/inspectorContext.js +12 -0
- package/dist/utils/inspectorSections.d.ts +20 -0
- package/dist/utils/inspectorSections.js +44 -0
- package/dist/utils/inspectorSurface.d.ts +46 -0
- package/dist/utils/inspectorSurface.js +51 -0
- package/dist/utils/interfaceTags.d.ts +102 -0
- package/dist/utils/interfaceTags.js +211 -0
- package/dist/utils/itemRef.d.ts +86 -0
- package/dist/utils/itemRef.js +106 -0
- package/dist/utils/lastRun.d.ts +35 -0
- package/dist/utils/lastRun.js +73 -0
- package/dist/utils/messageNodeLink.d.ts +17 -0
- package/dist/utils/messageNodeLink.js +16 -0
- package/dist/utils/minimapVisibility.d.ts +28 -0
- package/dist/utils/minimapVisibility.js +34 -0
- package/dist/utils/nodeAriaLabel.d.ts +12 -0
- package/dist/utils/nodeAriaLabel.js +17 -0
- package/dist/utils/nodeFingerprint.d.ts +27 -0
- package/dist/utils/nodeFingerprint.js +66 -0
- package/dist/utils/nodeFormSchema.d.ts +10 -0
- package/dist/utils/nodeFormSchema.js +2 -2
- package/dist/utils/nodeGeometry.d.ts +168 -0
- package/dist/utils/nodeGeometry.js +204 -0
- package/dist/utils/nodeProblem.d.ts +19 -0
- package/dist/utils/nodeProblem.js +9 -0
- package/dist/utils/nodeStatus.d.ts +38 -3
- package/dist/utils/nodeStatus.js +67 -39
- package/dist/utils/nodeSwap.js +9 -1
- package/dist/utils/nodeWrapper.d.ts +1 -0
- package/dist/utils/playgroundChat.d.ts +121 -0
- package/dist/utils/playgroundChat.js +275 -0
- package/dist/utils/playgroundHistory.d.ts +48 -0
- package/dist/utils/playgroundHistory.js +38 -0
- package/dist/utils/playgroundInputRuns.d.ts +26 -0
- package/dist/utils/playgroundInputRuns.js +50 -0
- package/dist/utils/portExposure.d.ts +49 -0
- package/dist/utils/portExposure.js +122 -0
- package/dist/utils/portUtils.d.ts +16 -0
- package/dist/utils/portUtils.js +37 -0
- package/dist/utils/portal.d.ts +3 -14
- package/dist/utils/portal.js +22 -0
- package/dist/utils/reservedPorts.d.ts +59 -0
- package/dist/utils/reservedPorts.js +60 -0
- package/dist/utils/runEdges.d.ts +24 -0
- package/dist/utils/runEdges.js +35 -0
- package/dist/utils/runsList.d.ts +69 -0
- package/dist/utils/runsList.js +134 -0
- package/dist/utils/selectOptions.d.ts +62 -0
- package/dist/utils/selectOptions.js +137 -0
- package/dist/utils/sessionRuns.d.ts +62 -0
- package/dist/utils/sessionRuns.js +123 -0
- package/dist/utils/sheetWidths.d.ts +29 -0
- package/dist/utils/sheetWidths.js +41 -0
- package/dist/utils/sidebarWidths.d.ts +34 -0
- package/dist/utils/sidebarWidths.js +47 -0
- package/dist/utils/straightWires.d.ts +73 -0
- package/dist/utils/straightWires.js +99 -0
- package/dist/utils/themeScope.svelte.d.ts +10 -0
- package/dist/utils/themeScope.svelte.js +80 -0
- package/dist/utils/wiredHandles.d.ts +10 -0
- package/dist/utils/wiredHandles.js +14 -0
- package/dist/utils/workflowDraft.d.ts +9 -0
- package/dist/utils/workflowDraft.js +39 -0
- package/dist/utils/workflowInterface.d.ts +128 -27
- package/dist/utils/workflowInterface.js +244 -33
- package/dist/utils/zoomTier.d.ts +43 -0
- package/dist/utils/zoomTier.js +107 -0
- package/dist/utils/zoomTierRows.d.ts +41 -0
- package/dist/utils/zoomTierRows.js +103 -0
- package/dist/webmcp/WebMCPConfirm.svelte +68 -18
- package/dist/webmcp/bridge.d.ts +5 -0
- package/dist/webmcp/bridge.js +8 -0
- package/dist/webmcp/bridgeController.svelte.d.ts +84 -0
- package/dist/webmcp/bridgeController.svelte.js +224 -0
- package/dist/webmcp/descriptors.d.ts +1 -1
- package/dist/webmcp/descriptors.js +66 -5
- package/dist/webmcp/fakeWidget.d.ts +34 -0
- package/dist/webmcp/fakeWidget.js +75 -0
- package/dist/webmcp/gate.d.ts +6 -0
- package/dist/webmcp/gate.js +8 -0
- package/dist/webmcp/index.d.ts +2 -0
- package/dist/webmcp/index.js +1 -0
- package/dist/webmcp/runtime.js +6 -2
- package/dist/webmcp/types.d.ts +2 -0
- package/dist/webmcp/validate.js +5 -1
- package/package.json +14 -7
- package/dist/components/Button.stories.svelte +0 -65
- package/dist/components/Button.stories.svelte.d.ts +0 -19
- package/dist/components/CanvasBanner.stories.svelte +0 -30
- package/dist/components/CanvasBanner.stories.svelte.d.ts +0 -27
- package/dist/components/CanvasContextMenu.stories.svelte +0 -63
- package/dist/components/CanvasContextMenu.stories.svelte.d.ts +0 -19
- package/dist/components/ConfigPanel.stories.svelte +0 -47
- package/dist/components/ConfigPanel.stories.svelte.d.ts +0 -27
- package/dist/components/EditorStatusBar.stories.svelte +0 -44
- package/dist/components/EditorStatusBar.stories.svelte.d.ts +0 -27
- package/dist/components/FlowDropEdge.stories.svelte +0 -197
- package/dist/components/FlowDropEdge.stories.svelte.d.ts +0 -26
- package/dist/components/LoadingSpinner.stories.svelte +0 -30
- package/dist/components/LoadingSpinner.stories.svelte.d.ts +0 -27
- package/dist/components/Logo.stories.svelte +0 -22
- package/dist/components/Logo.stories.svelte.d.ts +0 -27
- package/dist/components/MarkdownDisplay.stories.svelte +0 -38
- package/dist/components/MarkdownDisplay.stories.svelte.d.ts +0 -27
- package/dist/components/Navbar.stories.svelte +0 -58
- package/dist/components/Navbar.stories.svelte.d.ts +0 -27
- package/dist/components/NodeStatusOverlay.stories.svelte +0 -85
- package/dist/components/NodeStatusOverlay.stories.svelte.d.ts +0 -27
- package/dist/components/SchemaForm.stories.svelte +0 -122
- package/dist/components/SchemaForm.stories.svelte.d.ts +0 -27
- package/dist/components/Select.svelte +0 -53
- package/dist/components/Select.svelte.d.ts +0 -15
- package/dist/components/StatusIcon.stories.svelte +0 -60
- package/dist/components/StatusIcon.stories.svelte.d.ts +0 -27
- package/dist/components/StatusLabel.stories.svelte +0 -17
- package/dist/components/StatusLabel.stories.svelte.d.ts +0 -27
- package/dist/components/ThemeToggle.stories.svelte +0 -25
- package/dist/components/ThemeToggle.stories.svelte.d.ts +0 -27
- package/dist/components/console/CommandConsole.stories.svelte +0 -111
- package/dist/components/console/CommandConsole.stories.svelte.d.ts +0 -27
- package/dist/components/form/FormCheckboxGroup.stories.svelte +0 -28
- package/dist/components/form/FormCheckboxGroup.stories.svelte.d.ts +0 -27
- package/dist/components/form/FormFieldWrapper.stories.svelte +0 -53
- package/dist/components/form/FormFieldWrapper.stories.svelte.d.ts +0 -27
- package/dist/components/form/FormNumberField.stories.svelte +0 -36
- package/dist/components/form/FormNumberField.stories.svelte.d.ts +0 -27
- package/dist/components/form/FormRangeField.stories.svelte +0 -31
- package/dist/components/form/FormRangeField.stories.svelte.d.ts +0 -27
- package/dist/components/form/FormSelect.stories.svelte +0 -50
- package/dist/components/form/FormSelect.stories.svelte.d.ts +0 -27
- package/dist/components/form/FormTextField.stories.svelte +0 -30
- package/dist/components/form/FormTextField.stories.svelte.d.ts +0 -27
- package/dist/components/form/FormTextarea.stories.svelte +0 -34
- package/dist/components/form/FormTextarea.stories.svelte.d.ts +0 -27
- package/dist/components/form/FormToggle.stories.svelte +0 -30
- package/dist/components/form/FormToggle.stories.svelte.d.ts +0 -27
- package/dist/components/icons/CommandLineIcon.svelte +0 -15
- package/dist/components/icons/CommandLineIcon.svelte.d.ts +0 -26
- package/dist/components/interrupt/ChoicePrompt.stories.svelte +0 -68
- package/dist/components/interrupt/ChoicePrompt.stories.svelte.d.ts +0 -27
- package/dist/components/interrupt/ConfirmationPrompt.stories.svelte +0 -71
- package/dist/components/interrupt/ConfirmationPrompt.stories.svelte.d.ts +0 -27
- package/dist/components/interrupt/ReviewPrompt.stories.svelte +0 -77
- package/dist/components/interrupt/ReviewPrompt.stories.svelte.d.ts +0 -27
- package/dist/components/interrupt/TextInputPrompt.stories.svelte +0 -51
- package/dist/components/interrupt/TextInputPrompt.stories.svelte.d.ts +0 -27
- package/dist/components/nodes/CaptionNode.stories.svelte +0 -65
- package/dist/components/nodes/CaptionNode.stories.svelte.d.ts +0 -18
- package/dist/components/nodes/GatewayNode.stories.svelte +0 -108
- package/dist/components/nodes/GatewayNode.stories.svelte.d.ts +0 -26
- package/dist/components/nodes/IdeaNode.stories.svelte +0 -52
- package/dist/components/nodes/IdeaNode.stories.svelte.d.ts +0 -26
- package/dist/components/nodes/NotesNode.stories.svelte +0 -76
- package/dist/components/nodes/NotesNode.stories.svelte.d.ts +0 -26
- package/dist/components/nodes/SimpleNode.stories.svelte +0 -223
- package/dist/components/nodes/SimpleNode.stories.svelte.d.ts +0 -26
- package/dist/components/nodes/SquareNode.stories.svelte +0 -127
- package/dist/components/nodes/SquareNode.stories.svelte.d.ts +0 -26
- package/dist/components/nodes/TerminalNode.stories.svelte +0 -25
- package/dist/components/nodes/TerminalNode.stories.svelte.d.ts +0 -26
- package/dist/components/nodes/ToolNode.stories.svelte +0 -189
- package/dist/components/nodes/ToolNode.stories.svelte.d.ts +0 -26
- package/dist/components/nodes/WorkflowNode.stories.svelte +0 -188
- package/dist/components/nodes/WorkflowNode.stories.svelte.d.ts +0 -26
- package/dist/components/playground/MessageBubble.stories.svelte +0 -151
- package/dist/components/playground/MessageBubble.stories.svelte.d.ts +0 -27
- package/dist/components/toast/WarningIcon.svelte +0 -28
- package/dist/components/toast/WarningIcon.svelte.d.ts +0 -26
- package/dist/mocks/app-environment.d.ts +0 -8
- package/dist/mocks/app-environment.js +0 -16
- package/dist/mocks/app-forms.d.ts +0 -6
- package/dist/mocks/app-forms.js +0 -29
- package/dist/mocks/app-navigation.d.ts +0 -5
- package/dist/mocks/app-navigation.js +0 -36
- package/dist/mocks/app-stores.d.ts +0 -14
- package/dist/mocks/app-stores.js +0 -26
- package/dist/stories/CanvasDecorator.svelte +0 -49
- package/dist/stories/CanvasDecorator.svelte.d.ts +0 -8
- package/dist/stories/EdgeDecorator.svelte +0 -125
- package/dist/stories/EdgeDecorator.svelte.d.ts +0 -17
- package/dist/stories/NodeDecorator.svelte +0 -75
- package/dist/stories/NodeDecorator.svelte.d.ts +0 -8
- package/dist/stories/WebMCPFakeAgent.svelte +0 -229
- package/dist/stories/WebMCPFakeAgent.svelte.d.ts +0 -10
- package/dist/stories/utils.d.ts +0 -93
- package/dist/stories/utils.js +0 -156
- package/dist/webmcp/WebMCP.stories.svelte +0 -101
- package/dist/webmcp/WebMCP.stories.svelte.d.ts +0 -18
|
@@ -1,422 +1,213 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
Node Status Overlay Component
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
The run status of a node: a StatusPill (icon + label, plus a count when the
|
|
4
|
+
node has more than one run) centred on the node's top edge, growing upward off
|
|
5
|
+
the node. Each zoom tier draws it at a fixed size in flow px (a multiplier per
|
|
6
|
+
tier, tokens `--fd-node-zoom-status-scale-*`), never divided by the zoom. In
|
|
7
|
+
the map tier (`data-fd-zoom='map'` on the editor root) the pill gives way to a
|
|
8
|
+
status-coloured outline around the node and a count badge; both are in the DOM
|
|
9
|
+
and CSS picks one, so crossing a boundary re-renders nothing.
|
|
10
|
+
|
|
11
|
+
Hover shows the count and the last error line, nothing else; durations and
|
|
12
|
+
job history live in the inspector's Last run tab.
|
|
13
|
+
|
|
14
|
+
Execution statuses map onto the five pill statuses with `toPillStatus()`
|
|
15
|
+
(utils/nodeStatus.ts); a node whose status maps to nothing (idle, pending)
|
|
16
|
+
draws nothing.
|
|
17
|
+
|
|
5
18
|
Styled with BEM syntax
|
|
6
19
|
-->
|
|
7
20
|
|
|
8
21
|
<script lang="ts">
|
|
9
22
|
import type { NodeExecutionInfo } from '../types/index.js';
|
|
10
23
|
import Icon from '@iconify/svelte';
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
getStatusIcon,
|
|
15
|
-
getStatusLabel,
|
|
16
|
-
getStatusBackgroundColor,
|
|
17
|
-
formatExecutionDuration,
|
|
18
|
-
formatLastExecuted
|
|
19
|
-
} from '../utils/nodeStatus.js';
|
|
20
|
-
import { formatMicroseconds } from '../utils/duration.js';
|
|
24
|
+
import StatusPill from './primitives/StatusPill.svelte';
|
|
25
|
+
import { getStatusLabel, toPillStatus } from '../utils/nodeStatus.js';
|
|
26
|
+
import { getMessages } from '../messages/context.js';
|
|
21
27
|
import { m } from '../messages/index.js';
|
|
22
28
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
29
|
+
const ICONS = {
|
|
30
|
+
running: 'heroicons:arrow-path',
|
|
31
|
+
completed: 'heroicons:check-circle',
|
|
32
|
+
waiting: 'heroicons:hand-raised',
|
|
33
|
+
failed: 'heroicons:exclamation-circle',
|
|
34
|
+
skipped: 'heroicons:minus-circle'
|
|
35
|
+
} as const;
|
|
27
36
|
|
|
28
37
|
interface Props {
|
|
29
38
|
nodeId?: string;
|
|
30
39
|
executionInfo?: NodeExecutionInfo;
|
|
31
|
-
|
|
40
|
+
/** @deprecated No effect: the pill has one size per zoom tier. Removed in 3.0. */
|
|
32
41
|
size?: 'sm' | 'md' | 'lg';
|
|
42
|
+
/** @deprecated No effect: the overlay is always drawn on the node's top edge. Removed in 3.0. */
|
|
43
|
+
position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
44
|
+
/** @deprecated No effect: hover shows the count and last error only. Removed in 3.0. */
|
|
33
45
|
showDetails?: boolean;
|
|
34
46
|
}
|
|
35
47
|
|
|
48
|
+
// eslint-disable-next-line svelte/no-unused-props -- `size`, `position` and `showDetails` are deprecated no-ops kept for hosts
|
|
36
49
|
let props: Props = $props();
|
|
37
50
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
let size = $derived(props.size || 'md');
|
|
41
|
-
let showDetails = $derived(props.showDetails || false);
|
|
42
|
-
let isHovered = $state(false);
|
|
43
|
-
|
|
44
|
-
// Size configurations - optimized for larger, centered overlay
|
|
45
|
-
const sizeConfig = {
|
|
46
|
-
sm: {
|
|
47
|
-
statusSize: '18px',
|
|
48
|
-
iconSize: '10px',
|
|
49
|
-
labelSize: '0.75rem',
|
|
50
|
-
padding: '6px 12px'
|
|
51
|
-
},
|
|
52
|
-
md: {
|
|
53
|
-
statusSize: '24px',
|
|
54
|
-
iconSize: '14px',
|
|
55
|
-
labelSize: '0.875rem',
|
|
56
|
-
padding: '8px 16px'
|
|
57
|
-
},
|
|
58
|
-
lg: {
|
|
59
|
-
statusSize: '28px',
|
|
60
|
-
iconSize: '16px',
|
|
61
|
-
labelSize: '1rem',
|
|
62
|
-
padding: '10px 20px'
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
const config = $derived(sizeConfig[size]);
|
|
67
|
-
|
|
68
|
-
// Position styles - horizontal center aligned with top edge of node
|
|
69
|
-
const positionStyles = {
|
|
70
|
-
'top-left': 'top: -24px; left: 50%; transform: translateX(-50%);',
|
|
71
|
-
'top-right': 'top: -24px; left: 50%; transform: translateX(-50%);',
|
|
72
|
-
'bottom-left': 'top: -24px; left: 50%; transform: translateX(-50%);',
|
|
73
|
-
'bottom-right': 'top: -24px; left: 50%; transform: translateX(-50%);'
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
// Get execution info or default
|
|
77
|
-
let executionInfo = $derived(
|
|
78
|
-
props.executionInfo || {
|
|
79
|
-
status: 'idle' as const,
|
|
80
|
-
executionCount: 0,
|
|
81
|
-
isExecuting: false
|
|
82
|
-
}
|
|
83
|
-
);
|
|
51
|
+
const executionInfo = $derived(props.executionInfo);
|
|
52
|
+
const pillStatus = $derived(executionInfo ? toPillStatus(executionInfo.status) : null);
|
|
84
53
|
|
|
85
|
-
//
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
);
|
|
54
|
+
// Loop iterations create several jobs per node, including a never-started
|
|
55
|
+
// job swept to "skipped"; the per-job history (when known) beats the count of
|
|
56
|
+
// started runs.
|
|
57
|
+
const runCount = $derived(executionInfo?.jobs?.length ?? executionInfo?.executionCount ?? 0);
|
|
89
58
|
|
|
90
|
-
|
|
91
|
-
// multiple jobs per node — including a never-started job swept to
|
|
92
|
-
// "skipped" when the loop exits — so the per-job history (when known)
|
|
93
|
-
// beats the started-runs count: a skipped node with an earlier completed
|
|
94
|
-
// run must still flag that there is more to inspect.
|
|
95
|
-
let runCount = $derived(executionInfo.jobs?.length ?? executionInfo.executionCount);
|
|
96
|
-
|
|
97
|
-
// Hoist the overlay branch — seven reads in the template.
|
|
59
|
+
const getMsgs = getMessages();
|
|
98
60
|
const overlay = $derived(m().status.overlay);
|
|
61
|
+
|
|
62
|
+
/** Hover text: count (when above 1) and the last error's first line. */
|
|
63
|
+
const tooltip = $derived.by(() => {
|
|
64
|
+
if (!executionInfo || !pillStatus) return '';
|
|
65
|
+
const lines: string[] = [getMsgs().statusPill[pillStatus]];
|
|
66
|
+
if (runCount > 1) lines.push(overlay.runs({ count: runCount }));
|
|
67
|
+
const error = executionInfo.lastError?.trim().split('\n')[0];
|
|
68
|
+
if (error) lines.push(error);
|
|
69
|
+
return lines.join('\n');
|
|
70
|
+
});
|
|
99
71
|
</script>
|
|
100
72
|
|
|
101
|
-
{#if
|
|
73
|
+
{#if executionInfo && pillStatus}
|
|
102
74
|
<div
|
|
103
|
-
class="node-status-overlay"
|
|
75
|
+
class="node-status-overlay node-status-overlay--{pillStatus}"
|
|
104
76
|
data-node-id={props.nodeId}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
class:node-status-overlay--sm={size === 'sm'}
|
|
108
|
-
class:node-status-overlay--md={size === 'md'}
|
|
109
|
-
class:node-status-overlay--lg={size === 'lg'}
|
|
110
|
-
style="
|
|
111
|
-
{positionStyles[position]}
|
|
112
|
-
--status-size: {config.statusSize};
|
|
113
|
-
--label-size: {config.labelSize};
|
|
114
|
-
--icon-size: {config.iconSize};
|
|
115
|
-
--padding: {config.padding};
|
|
116
|
-
"
|
|
117
|
-
onmouseenter={() => (isHovered = true)}
|
|
118
|
-
onmouseleave={() => (isHovered = false)}
|
|
119
|
-
title={overlay.tooltip({
|
|
120
|
-
status: getStatusLabel(executionInfo.status),
|
|
121
|
-
count: executionInfo.executionCount
|
|
122
|
-
})}
|
|
77
|
+
data-status={pillStatus}
|
|
78
|
+
data-execution-status={executionInfo.status}
|
|
123
79
|
role="status"
|
|
124
80
|
aria-label={overlay.ariaLabel({ status: getStatusLabel(executionInfo.status) })}
|
|
125
81
|
>
|
|
126
|
-
|
|
127
|
-
<
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
label={getStatusLabel(executionInfo.status)}
|
|
139
|
-
class="node-status-overlay__label"
|
|
140
|
-
/>
|
|
141
|
-
</div>
|
|
142
|
-
|
|
143
|
-
<!-- Run Count Badge: only meaningful when the node has more than one
|
|
144
|
-
job (loop iterations) — a "1" on every executed node is noise -->
|
|
145
|
-
{#if runCount > 1}
|
|
146
|
-
<div class="node-status-overlay__count">
|
|
147
|
-
×{runCount}
|
|
148
|
-
</div>
|
|
149
|
-
{/if}
|
|
150
|
-
|
|
151
|
-
<!-- Detailed Information (shown on hover) -->
|
|
152
|
-
{#if showDetails && isHovered}
|
|
153
|
-
<div class="node-status-overlay__details">
|
|
154
|
-
<div class="node-status-overlay__detail-item">
|
|
155
|
-
<span class="node-status-overlay__detail-label">{overlay.statusLabel}</span>
|
|
156
|
-
<span class="node-status-overlay__detail-value"
|
|
157
|
-
>{getStatusLabel(executionInfo.status)}</span
|
|
158
|
-
>
|
|
159
|
-
</div>
|
|
160
|
-
<div class="node-status-overlay__detail-item">
|
|
161
|
-
<span class="node-status-overlay__detail-label">{overlay.executionsLabel}</span>
|
|
162
|
-
<span class="node-status-overlay__detail-value">{executionInfo.executionCount}</span>
|
|
163
|
-
</div>
|
|
164
|
-
{#if executionInfo.lastExecuted}
|
|
165
|
-
<div class="node-status-overlay__detail-item">
|
|
166
|
-
<span class="node-status-overlay__detail-label">{overlay.lastRunLabel}</span>
|
|
167
|
-
<span class="node-status-overlay__detail-value"
|
|
168
|
-
>{formatLastExecuted(executionInfo.lastExecuted)}</span
|
|
169
|
-
>
|
|
170
|
-
</div>
|
|
171
|
-
{/if}
|
|
172
|
-
{#if executionInfo.lastExecutionDurationUs || executionInfo.lastExecutionDuration}
|
|
173
|
-
<div class="node-status-overlay__detail-item">
|
|
174
|
-
<span class="node-status-overlay__detail-label">{overlay.durationLabel}</span>
|
|
175
|
-
<span class="node-status-overlay__detail-value"
|
|
176
|
-
>{formatDuration(
|
|
177
|
-
executionInfo.lastExecutionDurationUs,
|
|
178
|
-
executionInfo.lastExecutionDuration
|
|
179
|
-
)}</span
|
|
180
|
-
>
|
|
181
|
-
</div>
|
|
182
|
-
{/if}
|
|
183
|
-
{#if executionInfo.lastError}
|
|
184
|
-
<div class="node-status-overlay__detail-item node-status-overlay__detail-item--error">
|
|
185
|
-
<span class="node-status-overlay__detail-label">{overlay.errorLabel}</span>
|
|
186
|
-
<span class="node-status-overlay__detail-value">{executionInfo.lastError}</span>
|
|
187
|
-
</div>
|
|
188
|
-
{/if}
|
|
189
|
-
<!-- Per-job history: loop iterations create multiple jobs for the
|
|
190
|
-
same node; list them so earlier runs stay inspectable -->
|
|
191
|
-
{#if executionInfo.jobs && executionInfo.jobs.length > 1}
|
|
192
|
-
<div class="node-status-overlay__history">
|
|
193
|
-
<span class="node-status-overlay__detail-label">{overlay.historyLabel}</span>
|
|
194
|
-
{#each executionInfo.jobs as job, i (job.id ?? i)}
|
|
195
|
-
<div class="node-status-overlay__history-item">
|
|
196
|
-
<span
|
|
197
|
-
class="node-status-overlay__history-dot"
|
|
198
|
-
style="background-color: {getStatusColor(job.status)}"
|
|
199
|
-
></span>
|
|
200
|
-
<span class="node-status-overlay__history-label" title={job.label}
|
|
201
|
-
>{job.label ?? `#${i + 1}`}</span
|
|
202
|
-
>
|
|
203
|
-
<span
|
|
204
|
-
class="node-status-overlay__history-status"
|
|
205
|
-
style="color: {getStatusColor(job.status)}">{getStatusLabel(job.status)}</span
|
|
206
|
-
>
|
|
207
|
-
{#if (job.executionTimeUs != null && job.executionTimeUs > 0) || (job.executionTime != null && job.executionTime > 0)}
|
|
208
|
-
<span class="node-status-overlay__history-duration"
|
|
209
|
-
>{formatDuration(job.executionTimeUs, job.executionTime)}</span
|
|
210
|
-
>
|
|
211
|
-
{/if}
|
|
212
|
-
</div>
|
|
213
|
-
{/each}
|
|
214
|
-
</div>
|
|
215
|
-
{/if}
|
|
216
|
-
</div>
|
|
217
|
-
{/if}
|
|
82
|
+
<span class="node-status-overlay__frame" aria-hidden="true"></span>
|
|
83
|
+
<span class="node-status-overlay__outline" aria-hidden="true"></span>
|
|
84
|
+
<span class="node-status-overlay__badge" title={tooltip}>
|
|
85
|
+
{#if runCount > 1}
|
|
86
|
+
{runCount}
|
|
87
|
+
{:else}
|
|
88
|
+
<Icon icon={ICONS[pillStatus]} />
|
|
89
|
+
{/if}
|
|
90
|
+
</span>
|
|
91
|
+
<span class="node-status-overlay__pill" title={tooltip}>
|
|
92
|
+
<StatusPill status={pillStatus} count={runCount} />
|
|
93
|
+
</span>
|
|
218
94
|
</div>
|
|
219
95
|
{/if}
|
|
220
96
|
|
|
221
97
|
<style>
|
|
222
98
|
.node-status-overlay {
|
|
99
|
+
--_status: var(--fd-status-skipped);
|
|
100
|
+
--_soft: var(--fd-status-skipped-soft);
|
|
101
|
+
/* Border thickening for Test mode (applied by UniversalNode); only a node that waits gets the halo. */
|
|
102
|
+
--_frame: 0 0 0 var(--fd-node-status-edge) var(--_status);
|
|
223
103
|
position: absolute;
|
|
224
|
-
|
|
225
|
-
align-items: center;
|
|
226
|
-
gap: 0.75rem;
|
|
104
|
+
inset: 0;
|
|
227
105
|
z-index: 1000;
|
|
228
|
-
/*
|
|
229
|
-
|
|
230
|
-
pointer-events: auto;
|
|
231
|
-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
232
|
-
height: 48px;
|
|
233
|
-
width: auto;
|
|
234
|
-
min-width: 120px;
|
|
106
|
+
/* Clicks go through to the node; only the pill itself takes hover. */
|
|
107
|
+
pointer-events: none;
|
|
235
108
|
}
|
|
236
109
|
|
|
237
|
-
.node-status-overlay--
|
|
238
|
-
|
|
239
|
-
|
|
110
|
+
.node-status-overlay--running {
|
|
111
|
+
--_status: var(--fd-status-running);
|
|
112
|
+
--_soft: var(--fd-status-running-soft);
|
|
240
113
|
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
0 8px 25px -5px rgba(0, 0, 0, 0.15),
|
|
245
|
-
0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
|
246
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.2);
|
|
247
|
-
transform: scale(1.02);
|
|
114
|
+
.node-status-overlay--completed {
|
|
115
|
+
--_status: var(--fd-status-completed);
|
|
116
|
+
--_soft: var(--fd-status-completed-soft);
|
|
248
117
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
border-radius: 1rem;
|
|
256
|
-
padding: 0.5rem 1rem;
|
|
257
|
-
box-shadow:
|
|
258
|
-
0 6px 12px -2px rgba(0, 0, 0, 0.15),
|
|
259
|
-
0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
|
260
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.2);
|
|
261
|
-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
262
|
-
height: 48px;
|
|
263
|
-
backdrop-filter: blur(12px);
|
|
264
|
-
-webkit-backdrop-filter: blur(12px);
|
|
265
|
-
width: 100%;
|
|
266
|
-
justify-content: flex-start;
|
|
267
|
-
overflow: hidden;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
.node-status-overlay__status-icon {
|
|
271
|
-
width: 48px;
|
|
272
|
-
height: 48px;
|
|
273
|
-
border-radius: 0.5rem;
|
|
274
|
-
display: flex;
|
|
275
|
-
align-items: center;
|
|
276
|
-
justify-content: center;
|
|
277
|
-
box-shadow:
|
|
278
|
-
0 2px 4px rgba(0, 0, 0, 0.1),
|
|
279
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.2);
|
|
280
|
-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
281
|
-
flex-shrink: 0;
|
|
282
|
-
position: relative;
|
|
283
|
-
margin: -0.5rem 0.5rem -0.5rem -1rem;
|
|
118
|
+
.node-status-overlay--waiting {
|
|
119
|
+
--_status: var(--fd-status-waiting);
|
|
120
|
+
--_soft: var(--fd-status-waiting-soft);
|
|
121
|
+
--_frame:
|
|
122
|
+
0 0 0 var(--fd-node-status-edge) var(--_status),
|
|
123
|
+
0 0 0 calc(var(--fd-node-status-edge) + var(--fd-node-status-ring)) var(--_soft);
|
|
284
124
|
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
color: #1f2937;
|
|
289
|
-
border: 2px solid rgba(255, 255, 255, 0.4);
|
|
290
|
-
border-radius: 0.75rem;
|
|
291
|
-
padding: var(--padding);
|
|
292
|
-
font-size: var(--label-size);
|
|
293
|
-
font-weight: 700;
|
|
294
|
-
min-width: 2rem;
|
|
295
|
-
text-align: center;
|
|
296
|
-
line-height: 1;
|
|
297
|
-
box-shadow:
|
|
298
|
-
0 3px 6px rgba(0, 0, 0, 0.15),
|
|
299
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.3);
|
|
300
|
-
height: 48px;
|
|
301
|
-
display: flex;
|
|
302
|
-
align-items: center;
|
|
303
|
-
justify-content: center;
|
|
304
|
-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
305
|
-
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
125
|
+
.node-status-overlay--failed {
|
|
126
|
+
--_status: var(--fd-status-failed);
|
|
127
|
+
--_soft: var(--fd-status-failed-soft);
|
|
306
128
|
}
|
|
307
129
|
|
|
308
|
-
.
|
|
130
|
+
/* Centred on the top edge at zoom 1; the pill's own transform grows it upward. */
|
|
131
|
+
.node-status-overlay__pill {
|
|
309
132
|
position: absolute;
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
padding: 0.75rem;
|
|
316
|
-
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
317
|
-
min-width: 200px;
|
|
318
|
-
z-index: 1001;
|
|
133
|
+
left: 50%;
|
|
134
|
+
bottom: calc(100% - var(--fd-status-pill-height) / 2);
|
|
135
|
+
translate: -50% 0;
|
|
136
|
+
transform-origin: center bottom;
|
|
137
|
+
scale: var(--_pill-scale, 1);
|
|
319
138
|
pointer-events: auto;
|
|
139
|
+
display: block;
|
|
320
140
|
}
|
|
321
141
|
|
|
322
|
-
.node-status-
|
|
323
|
-
|
|
324
|
-
justify-content: space-between;
|
|
325
|
-
align-items: center;
|
|
326
|
-
margin-bottom: 0.25rem;
|
|
142
|
+
:global([data-fd-zoom='outline']) .node-status-overlay__pill {
|
|
143
|
+
--_pill-scale: var(--fd-node-zoom-status-scale-outline);
|
|
327
144
|
}
|
|
328
145
|
|
|
329
|
-
.node-status-
|
|
330
|
-
|
|
146
|
+
:global([data-fd-zoom='glyph']) .node-status-overlay__pill {
|
|
147
|
+
--_pill-scale: var(--fd-node-zoom-status-scale-glyph);
|
|
331
148
|
}
|
|
332
149
|
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
150
|
+
/* The pill sits on the node's border, so its tint needs an opaque backing
|
|
151
|
+
(the soft tokens are translucent in dark mode). */
|
|
152
|
+
.node-status-overlay__pill :global(.flowdrop-ui-status-pill) {
|
|
153
|
+
background: linear-gradient(var(--_soft), var(--_soft)), var(--fd-card);
|
|
337
154
|
}
|
|
338
155
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
text-overflow: ellipsis;
|
|
347
|
-
white-space: nowrap;
|
|
156
|
+
/* Carries the shadows that thicken the node's status-coloured border (and
|
|
157
|
+
draw the waiting halo); UniversalNode sets them, in Test mode only. */
|
|
158
|
+
.node-status-overlay__frame {
|
|
159
|
+
position: absolute;
|
|
160
|
+
inset: 0;
|
|
161
|
+
border-radius: var(--fd-node-radius, 8px);
|
|
162
|
+
pointer-events: none;
|
|
348
163
|
}
|
|
349
164
|
|
|
350
|
-
|
|
351
|
-
|
|
165
|
+
/* Map tier: the outline and count badge stand in for the pill and the frame. */
|
|
166
|
+
.node-status-overlay__outline,
|
|
167
|
+
.node-status-overlay__badge {
|
|
168
|
+
display: none;
|
|
352
169
|
}
|
|
353
170
|
|
|
354
|
-
.node-status-
|
|
355
|
-
|
|
356
|
-
padding-top: 0.5rem;
|
|
357
|
-
border-top: 1px solid #e5e7eb;
|
|
171
|
+
:global([data-fd-zoom='map']) .node-status-overlay__outline {
|
|
172
|
+
display: block;
|
|
358
173
|
}
|
|
359
174
|
|
|
360
|
-
.node-status-
|
|
361
|
-
display:
|
|
362
|
-
align-items: center;
|
|
363
|
-
gap: 0.375rem;
|
|
364
|
-
margin-top: 0.25rem;
|
|
365
|
-
font-size: 0.75rem;
|
|
175
|
+
:global([data-fd-zoom='map']) .node-status-overlay__badge {
|
|
176
|
+
display: grid;
|
|
366
177
|
}
|
|
367
178
|
|
|
368
|
-
.node-status-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
border-radius: 50%;
|
|
372
|
-
flex-shrink: 0;
|
|
179
|
+
:global([data-fd-zoom='map']) .node-status-overlay__pill,
|
|
180
|
+
:global([data-fd-zoom='map']) .node-status-overlay__frame {
|
|
181
|
+
display: none;
|
|
373
182
|
}
|
|
374
183
|
|
|
375
|
-
.node-status-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
text-overflow: ellipsis;
|
|
382
|
-
white-space: nowrap;
|
|
184
|
+
.node-status-overlay__outline {
|
|
185
|
+
position: absolute;
|
|
186
|
+
/* A fixed stroke in flow px (the map tier's token). */
|
|
187
|
+
inset: calc(var(--fd-node-zoom-status-stroke-map) * -1);
|
|
188
|
+
border: var(--fd-node-zoom-status-stroke-map) solid var(--_status);
|
|
189
|
+
border-radius: calc(var(--fd-node-radius, 8px) + var(--fd-node-zoom-status-stroke-map));
|
|
383
190
|
}
|
|
384
191
|
|
|
385
|
-
.node-status-
|
|
192
|
+
.node-status-overlay__badge {
|
|
193
|
+
position: absolute;
|
|
194
|
+
left: 50%;
|
|
195
|
+
top: 0;
|
|
196
|
+
translate: -50% -50%;
|
|
197
|
+
scale: var(--fd-node-zoom-badge-scale-map);
|
|
198
|
+
pointer-events: auto;
|
|
199
|
+
place-items: center;
|
|
200
|
+
min-width: var(--fd-control-md);
|
|
201
|
+
height: var(--fd-control-md);
|
|
202
|
+
padding-inline: var(--fd-space-xs);
|
|
203
|
+
box-sizing: border-box;
|
|
204
|
+
border-radius: var(--fd-radius-full);
|
|
205
|
+
background: var(--_status);
|
|
206
|
+
color: var(--fd-background);
|
|
207
|
+
font-family: var(--fd-font-sans);
|
|
208
|
+
font-size: var(--fd-text-xs);
|
|
386
209
|
font-weight: 600;
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
.node-status-overlay__history-duration {
|
|
391
|
-
color: #6b7280;
|
|
392
|
-
white-space: nowrap;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
/* Size variants */
|
|
396
|
-
.node-status-overlay--sm {
|
|
397
|
-
gap: 0.125rem;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
.node-status-overlay--md {
|
|
401
|
-
gap: 0.25rem;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
.node-status-overlay--lg {
|
|
405
|
-
gap: 0.375rem;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
/* Animation for running status */
|
|
409
|
-
.node-status-overlay__status-icon[style*='running'] {
|
|
410
|
-
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
@keyframes pulse {
|
|
414
|
-
0%,
|
|
415
|
-
100% {
|
|
416
|
-
opacity: 1;
|
|
417
|
-
}
|
|
418
|
-
50% {
|
|
419
|
-
opacity: 0.5;
|
|
420
|
-
}
|
|
210
|
+
font-variant-numeric: tabular-nums;
|
|
211
|
+
line-height: 1;
|
|
421
212
|
}
|
|
422
213
|
</style>
|
|
@@ -2,8 +2,11 @@ import type { NodeExecutionInfo } from '../types/index.js';
|
|
|
2
2
|
interface Props {
|
|
3
3
|
nodeId?: string;
|
|
4
4
|
executionInfo?: NodeExecutionInfo;
|
|
5
|
-
|
|
5
|
+
/** @deprecated No effect: the pill has one size per zoom tier. Removed in 3.0. */
|
|
6
6
|
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
/** @deprecated No effect: the overlay is always drawn on the node's top edge. Removed in 3.0. */
|
|
8
|
+
position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
9
|
+
/** @deprecated No effect: hover shows the count and last error only. Removed in 3.0. */
|
|
7
10
|
showDetails?: boolean;
|
|
8
11
|
}
|
|
9
12
|
declare const NodeStatusOverlay: import("svelte").Component<Props, {}, "">;
|
|
@@ -232,27 +232,14 @@
|
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
234
|
|
|
235
|
-
// Auto-refresh pipeline data every 5 seconds
|
|
236
|
-
|
|
237
|
-
|
|
235
|
+
// Auto-refresh pipeline data every 5 seconds while the pipeline is running.
|
|
236
|
+
// The teardown stops it when the status or pipeline changes, and on unmount.
|
|
238
237
|
$effect(() => {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
refreshInterval = null;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
// Only start polling if pipeline is running
|
|
246
|
-
if (pipelineStatus === 'running' && pipelineId) {
|
|
247
|
-
refreshInterval = setInterval(() => {
|
|
248
|
-
fetchPipelineData();
|
|
249
|
-
}, 5000);
|
|
250
|
-
}
|
|
238
|
+
if (pipelineStatus !== 'running' || !pipelineId) return;
|
|
239
|
+
const refreshInterval = setInterval(() => fetchPipelineData(), 5000);
|
|
240
|
+
return () => clearInterval(refreshInterval);
|
|
251
241
|
});
|
|
252
242
|
|
|
253
|
-
// Note: Interval cleanup is handled by the $effect above.
|
|
254
|
-
// In Svelte 5, $effect cleanup runs both on re-execution and component destroy.
|
|
255
|
-
|
|
256
243
|
// Refresh pipeline data whenever new messages arrive (e.g. log messages during execution).
|
|
257
244
|
// Debounced so burst arrivals collapse into one fetch.
|
|
258
245
|
$effect(() => {
|