@flowdrop/flowdrop 2.11.0 → 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 +223 -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 +966 -226
- 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 +159 -121
- package/dist/components/ConfigModal.svelte +11 -54
- 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/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 +43 -43
- package/dist/components/LoopbackLanes.svelte +54 -0
- package/dist/components/LoopbackLanes.svelte.d.ts +8 -0
- 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/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/SettingsModal.svelte +27 -59
- package/dist/components/SettingsPanel.svelte +515 -241
- 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 +789 -136
- package/dist/components/WorkflowEditor.svelte.d.ts +43 -1
- package/dist/components/WorkflowInterfaceEditor.svelte +63 -92
- package/dist/components/WorkflowInterfaceEntryCard.svelte +478 -549
- package/dist/components/WorkflowInterfaceEntryComposer.svelte +23 -67
- package/dist/components/WorkflowPlaygroundSettings.svelte +48 -85
- 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 +463 -312
- 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/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 +290 -190
- package/dist/components/playground/ControlPanel.svelte.d.ts +10 -2
- 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 -1139
- 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 +6 -0
- package/dist/components/playground/PlaygroundStudio.svelte +30 -32
- 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 +8 -5
- 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 +3 -0
- package/dist/helpers/workflowEditorHelper.js +8 -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 +641 -26
- package/dist/messages/defaults.js +578 -25
- package/dist/messages/types.d.ts +21 -1
- package/dist/openapi/v1/openapi.yaml +109 -0
- package/dist/playground/index.d.ts +28 -1
- package/dist/playground/index.js +29 -0
- package/dist/playground/mount.d.ts +28 -2
- package/dist/playground/mount.js +41 -15
- package/dist/playground/runAction.d.ts +29 -0
- package/dist/playground/runAction.js +38 -0
- package/dist/services/doctorService.d.ts +52 -0
- package/dist/services/doctorService.js +113 -0
- package/dist/services/globalSave.js +12 -29
- package/dist/services/nodeExecutionService.d.ts +12 -1
- package/dist/services/nodeExecutionService.js +58 -58
- package/dist/services/playgroundService.d.ts +17 -2
- package/dist/services/playgroundService.js +48 -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/graphite.d.ts +26 -0
- package/dist/skins/graphite.js +473 -0
- package/dist/skins/index.d.ts +2 -1
- package/dist/skins/index.js +4 -2
- 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 +53 -0
- package/dist/stores/instanceContainer.svelte.js +38 -1
- 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 +66 -2
- package/dist/stores/playgroundStore.svelte.js +164 -2
- 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 +14 -0
- package/dist/stores/workflowStore.svelte.js +22 -1
- package/dist/styles/base.css +286 -25
- 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.js +118 -1
- 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 +22 -5
- package/dist/themes/scopedSkinCss.js +136 -11
- 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 +17 -2
- 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 +21 -8
- 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/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 +0 -19
- package/dist/utils/portal.js +8 -1
- 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 +40 -7
- package/dist/utils/workflowInterface.js +66 -16
- 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 +1 -1
- 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.js +4 -0
- package/dist/webmcp/index.d.ts +2 -0
- package/dist/webmcp/index.js +1 -0
- package/dist/webmcp/runtime.js +4 -1
- package/dist/webmcp/types.d.ts +2 -0
- package/dist/webmcp/validate.js +5 -1
- package/package.json +8 -2
- package/dist/components/Select.svelte +0 -53
- package/dist/components/Select.svelte.d.ts +0 -15
- package/dist/components/icons/CommandLineIcon.svelte +0 -15
- package/dist/components/icons/CommandLineIcon.svelte.d.ts +0 -26
- package/dist/components/toast/WarningIcon.svelte +0 -28
- package/dist/components/toast/WarningIcon.svelte.d.ts +0 -26
|
@@ -7,10 +7,15 @@
|
|
|
7
7
|
When importing this component directly (rather than via mountPlaygroundApp),
|
|
8
8
|
call initializeSettings() before mount — the navbar's settings modal reads
|
|
9
9
|
from the settings store.
|
|
10
|
+
|
|
11
|
+
@deprecated The standalone Playground is deprecated in favour of the editor's
|
|
12
|
+
Test mode and removed in 3.0. It warns once per page when mounted.
|
|
10
13
|
-->
|
|
11
14
|
|
|
12
15
|
<script lang="ts">
|
|
16
|
+
import { warnStandalonePlaygroundDeprecated } from '../../utils/deprecation.js';
|
|
13
17
|
import Navbar from '../Navbar.svelte';
|
|
18
|
+
import { themeScope } from '../../utils/themeScope.svelte.js';
|
|
14
19
|
import PlaygroundStudio from './PlaygroundStudio.svelte';
|
|
15
20
|
import type { Workflow } from '../../types/index.js';
|
|
16
21
|
import type { FlowDropInstance } from '../../stores/instanceContainer.svelte.js';
|
|
@@ -18,7 +23,9 @@
|
|
|
18
23
|
import type { AuthProvider } from '../../types/auth.js';
|
|
19
24
|
import type { PlaygroundConfig } from '../../types/playground.js';
|
|
20
25
|
import type { SettingsCategory } from '../../types/settings.js';
|
|
21
|
-
import type { NavbarAction } from '../../types/navbar.js';
|
|
26
|
+
import type { NavbarAction, NavbarBranding } from '../../types/navbar.js';
|
|
27
|
+
|
|
28
|
+
warnStandalonePlaygroundDeprecated();
|
|
22
29
|
|
|
23
30
|
interface Props {
|
|
24
31
|
workflowId: string;
|
|
@@ -31,6 +38,7 @@
|
|
|
31
38
|
showNavbar?: boolean;
|
|
32
39
|
navbarTitle?: string;
|
|
33
40
|
primaryActions?: NavbarAction[];
|
|
41
|
+
branding?: NavbarBranding;
|
|
34
42
|
showSettings?: boolean;
|
|
35
43
|
settingsCategories?: SettingsCategory[];
|
|
36
44
|
showSettingsSyncButton?: boolean;
|
|
@@ -55,6 +63,7 @@
|
|
|
55
63
|
showNavbar = false,
|
|
56
64
|
navbarTitle,
|
|
57
65
|
primaryActions = [],
|
|
66
|
+
branding,
|
|
58
67
|
showSettings = true,
|
|
59
68
|
settingsCategories,
|
|
60
69
|
showSettingsSyncButton,
|
|
@@ -71,11 +80,12 @@
|
|
|
71
80
|
const displayTitle = $derived(navbarTitle ?? workflow?.name ?? 'Playground');
|
|
72
81
|
</script>
|
|
73
82
|
|
|
74
|
-
<div class="flowdrop-scope fd-playground-app">
|
|
83
|
+
<div class="flowdrop-scope fd-playground-app" use:themeScope={{ mirror: true }}>
|
|
75
84
|
{#if showNavbar}
|
|
76
85
|
<Navbar
|
|
77
86
|
title={displayTitle}
|
|
78
87
|
{primaryActions}
|
|
88
|
+
{branding}
|
|
79
89
|
showStatus={false}
|
|
80
90
|
{showSettings}
|
|
81
91
|
{settingsCategories}
|
|
@@ -4,7 +4,7 @@ import type { EndpointConfig } from '../../config/endpoints.js';
|
|
|
4
4
|
import type { AuthProvider } from '../../types/auth.js';
|
|
5
5
|
import type { PlaygroundConfig } from '../../types/playground.js';
|
|
6
6
|
import type { SettingsCategory } from '../../types/settings.js';
|
|
7
|
-
import type { NavbarAction } from '../../types/navbar.js';
|
|
7
|
+
import type { NavbarAction, NavbarBranding } from '../../types/navbar.js';
|
|
8
8
|
interface Props {
|
|
9
9
|
workflowId: string;
|
|
10
10
|
workflow?: Workflow;
|
|
@@ -16,6 +16,7 @@ interface Props {
|
|
|
16
16
|
showNavbar?: boolean;
|
|
17
17
|
navbarTitle?: string;
|
|
18
18
|
primaryActions?: NavbarAction[];
|
|
19
|
+
branding?: NavbarBranding;
|
|
19
20
|
showSettings?: boolean;
|
|
20
21
|
settingsCategories?: SettingsCategory[];
|
|
21
22
|
showSettingsSyncButton?: boolean;
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
PlaygroundHeader
|
|
3
|
+
|
|
4
|
+
The docked Playground's header (Test mode): the history chip, a + for a new
|
|
5
|
+
conversation and the ⋯ menu, and nothing else:
|
|
6
|
+
|
|
7
|
+
- the history chip: which conversation (and run) the view is on. Its menu
|
|
8
|
+
lists the Conversations (the sessions the Playground created) and the
|
|
9
|
+
Runs of the open one, newest first, older-version runs marked. Picking a
|
|
10
|
+
conversation opens it; picking a run shows that run (the canvas follows).
|
|
11
|
+
- the ⋯ menu: Expand steps by default, JSON view (a form workflow), Refresh, Reset,
|
|
12
|
+
Playground settings, and whatever a host adds through `menuItems`.
|
|
13
|
+
|
|
14
|
+
Each fact has one home: which conversation or run is shown lives in the
|
|
15
|
+
chip; the recovery actions live in the menu. No link to the standalone page.
|
|
16
|
+
-->
|
|
17
|
+
|
|
18
|
+
<script lang="ts">
|
|
19
|
+
import type { Snippet } from 'svelte';
|
|
20
|
+
import Icon from '@iconify/svelte';
|
|
21
|
+
import HeaderMenu from './HeaderMenu.svelte';
|
|
22
|
+
import PanelHeader from '../primitives/PanelHeader.svelte';
|
|
23
|
+
import IconButton from '../primitives/IconButton.svelte';
|
|
24
|
+
import { getInstance } from '../../stores/getInstance.svelte.js';
|
|
25
|
+
import { m } from '../../messages/index.js';
|
|
26
|
+
import { resolveSessionEndpoint } from '../../config/endpoints.js';
|
|
27
|
+
import { historyGroups } from '../../utils/playgroundHistory.js';
|
|
28
|
+
|
|
29
|
+
const fd = getInstance();
|
|
30
|
+
|
|
31
|
+
interface Props {
|
|
32
|
+
/** The workflow has an interface form, so the JSON view applies. */
|
|
33
|
+
hasForm?: boolean;
|
|
34
|
+
/** The form is shown as JSON. */
|
|
35
|
+
jsonView?: boolean;
|
|
36
|
+
onToggleJsonView?: () => void;
|
|
37
|
+
/** Opens the workflow's Playground settings (the editor's inspector). */
|
|
38
|
+
onOpenSettings?: () => void;
|
|
39
|
+
/**
|
|
40
|
+
* Extra entries at the end of the ⋯ menu. Render buttons with
|
|
41
|
+
* `class="header-menu__item"` and `role="menuitem"`; call `close()` after
|
|
42
|
+
* the action. Used by hosts that add an action to the Playground
|
|
43
|
+
* (the editor's "Ask the Assistant about this run", say).
|
|
44
|
+
*/
|
|
45
|
+
menuItems?: Snippet<[{ close: () => void }]>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
let {
|
|
49
|
+
hasForm = false,
|
|
50
|
+
jsonView = false,
|
|
51
|
+
onToggleJsonView,
|
|
52
|
+
onOpenSettings,
|
|
53
|
+
menuItems
|
|
54
|
+
}: Props = $props();
|
|
55
|
+
|
|
56
|
+
const t = $derived(m().playground.header);
|
|
57
|
+
|
|
58
|
+
const groups = $derived(
|
|
59
|
+
historyGroups(
|
|
60
|
+
fd.playground.sessions,
|
|
61
|
+
fd.playground.currentSession?.id,
|
|
62
|
+
fd.playground.sessionRuns,
|
|
63
|
+
fd.playground.activeExecutionId
|
|
64
|
+
)
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
/** The chip names the conversation, and the run too once one is picked. */
|
|
68
|
+
const label = $derived.by(() => {
|
|
69
|
+
const session = fd.playground.currentSession;
|
|
70
|
+
const name = session?.name ?? t.noConversation;
|
|
71
|
+
const pinned = fd.playground.pinnedExecutionId;
|
|
72
|
+
const run = pinned ? groups.runs.find((r) => r.id === pinned) : undefined;
|
|
73
|
+
return run ? `${name} · #${run.number}` : name;
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
const canReset = $derived(
|
|
77
|
+
fd.playground.currentSession != null &&
|
|
78
|
+
fd.api.config != null &&
|
|
79
|
+
resolveSessionEndpoint(fd.api.config, 'reset') != null
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
const statusIcon: Record<string, string> = {
|
|
83
|
+
completed: 'mdi:check',
|
|
84
|
+
failed: 'mdi:close',
|
|
85
|
+
cancelled: 'mdi:stop',
|
|
86
|
+
running: 'mdi:circle-medium',
|
|
87
|
+
pending: 'mdi:circle-medium',
|
|
88
|
+
paused: 'mdi:pause',
|
|
89
|
+
waiting: 'mdi:pause'
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
function runTitle(run: { number: number; message: string | null }): string {
|
|
93
|
+
const text = run.message?.trim();
|
|
94
|
+
const base = t.run({ number: run.number });
|
|
95
|
+
if (!text) return base;
|
|
96
|
+
return `${base} · ${text.length > 28 ? text.slice(0, 27) + '…' : text}`;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function runWhen(startedAt: string | null): string {
|
|
100
|
+
if (!startedAt) return '';
|
|
101
|
+
const date = new Date(startedAt);
|
|
102
|
+
return Number.isNaN(date.getTime())
|
|
103
|
+
? ''
|
|
104
|
+
: date.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function refreshHistory(): void {
|
|
108
|
+
void fd.runs.loadSessionRuns();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function pickConversation(id: string, close: () => void): void {
|
|
112
|
+
close();
|
|
113
|
+
void fd.runs.selectSession(id);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function pickRun(id: string, close: () => void): void {
|
|
117
|
+
close();
|
|
118
|
+
fd.playground.pinExecution(id);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function act(action: () => void, close: () => void): void {
|
|
122
|
+
close();
|
|
123
|
+
action();
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
async function reset(close: () => void): Promise<void> {
|
|
127
|
+
close();
|
|
128
|
+
try {
|
|
129
|
+
await fd.runs.resetSession();
|
|
130
|
+
} catch (err) {
|
|
131
|
+
fd.playground.setError(err instanceof Error ? err.message : String(err));
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
</script>
|
|
135
|
+
|
|
136
|
+
<PanelHeader data-testid="playground-header">
|
|
137
|
+
{#snippet leading()}
|
|
138
|
+
<HeaderMenu label={t.history} testId="playground-history" onOpen={refreshHistory}>
|
|
139
|
+
{#snippet trigger()}
|
|
140
|
+
<span class="playground-header__label">{label}</span>
|
|
141
|
+
<Icon icon="mdi:chevron-down" />
|
|
142
|
+
{/snippet}
|
|
143
|
+
{#snippet children({ close })}
|
|
144
|
+
<div class="header-menu__group" role="presentation">{t.conversations}</div>
|
|
145
|
+
<button
|
|
146
|
+
type="button"
|
|
147
|
+
role="menuitem"
|
|
148
|
+
class="header-menu__item"
|
|
149
|
+
disabled={fd.playground.isLoading}
|
|
150
|
+
onclick={() => act(() => void fd.runs.createSession(), close)}
|
|
151
|
+
>
|
|
152
|
+
<span class="header-menu__item-label"
|
|
153
|
+
><Icon icon="mdi:plus" /><span>{t.newConversation}</span></span
|
|
154
|
+
>
|
|
155
|
+
<span class="header-menu__item-hint">{t.newConversationHint}</span>
|
|
156
|
+
</button>
|
|
157
|
+
{#each groups.conversations as conversation (conversation.id)}
|
|
158
|
+
<button
|
|
159
|
+
type="button"
|
|
160
|
+
role="menuitemradio"
|
|
161
|
+
aria-checked={conversation.current}
|
|
162
|
+
class="header-menu__item"
|
|
163
|
+
data-testid="history-conversation"
|
|
164
|
+
onclick={() => pickConversation(conversation.id, close)}
|
|
165
|
+
>
|
|
166
|
+
<span class="header-menu__item-label">
|
|
167
|
+
<Icon icon={conversation.current ? 'mdi:check' : 'mdi:message-outline'} />
|
|
168
|
+
<span>{conversation.name}</span>
|
|
169
|
+
</span>
|
|
170
|
+
</button>
|
|
171
|
+
{/each}
|
|
172
|
+
|
|
173
|
+
<div class="header-menu__divider" role="separator"></div>
|
|
174
|
+
<div class="header-menu__group" role="presentation">{t.runs}</div>
|
|
175
|
+
{#each groups.runs as run (run.id)}
|
|
176
|
+
<button
|
|
177
|
+
type="button"
|
|
178
|
+
role="menuitemradio"
|
|
179
|
+
aria-checked={run.shown}
|
|
180
|
+
class="header-menu__item"
|
|
181
|
+
data-testid="history-run"
|
|
182
|
+
data-stale={run.stale ? 'true' : undefined}
|
|
183
|
+
onclick={() => pickRun(run.id, close)}
|
|
184
|
+
>
|
|
185
|
+
<span class="header-menu__item-label">
|
|
186
|
+
<Icon
|
|
187
|
+
icon={run.shown ? 'mdi:check' : (statusIcon[run.status] ?? 'mdi:circle-small')}
|
|
188
|
+
/>
|
|
189
|
+
<span>{runTitle(run)}</span>
|
|
190
|
+
</span>
|
|
191
|
+
<span class="header-menu__item-hint">
|
|
192
|
+
{run.status}{runWhen(run.startedAt) ? ` · ${runWhen(run.startedAt)}` : ''}{run.stale
|
|
193
|
+
? ` · ${t.staleRun}`
|
|
194
|
+
: ''}
|
|
195
|
+
</span>
|
|
196
|
+
</button>
|
|
197
|
+
{:else}
|
|
198
|
+
<div class="playground-header__empty">
|
|
199
|
+
<span>{t.noRuns}</span>
|
|
200
|
+
<span class="header-menu__item-hint">{t.noRunsHint}</span>
|
|
201
|
+
</div>
|
|
202
|
+
{/each}
|
|
203
|
+
{/snippet}
|
|
204
|
+
</HeaderMenu>
|
|
205
|
+
{/snippet}
|
|
206
|
+
{#snippet actions()}
|
|
207
|
+
<IconButton
|
|
208
|
+
variant="ghost"
|
|
209
|
+
ariaLabel={t.newConversation}
|
|
210
|
+
title={t.newConversation}
|
|
211
|
+
data-testid="playground-new-conversation"
|
|
212
|
+
disabled={fd.playground.isLoading}
|
|
213
|
+
onclick={() => void fd.runs.createSession()}
|
|
214
|
+
>
|
|
215
|
+
<Icon icon="mdi:plus" />
|
|
216
|
+
</IconButton>
|
|
217
|
+
<HeaderMenu label={t.moreActions} testId="playground-more" variant="icon" align="end">
|
|
218
|
+
{#snippet trigger()}
|
|
219
|
+
<Icon icon="mdi:dots-horizontal" />
|
|
220
|
+
{/snippet}
|
|
221
|
+
{#snippet children({ close })}
|
|
222
|
+
<button
|
|
223
|
+
type="button"
|
|
224
|
+
role="menuitemcheckbox"
|
|
225
|
+
aria-checked={fd.playground.expandSteps}
|
|
226
|
+
class="header-menu__item"
|
|
227
|
+
onclick={() => act(() => fd.playground.toggleExpandSteps(), close)}
|
|
228
|
+
>
|
|
229
|
+
<span class="header-menu__item-label">
|
|
230
|
+
{#if fd.playground.expandSteps}<Icon icon="mdi:check" />{/if}<span>{t.showSteps}</span>
|
|
231
|
+
</span>
|
|
232
|
+
<span class="header-menu__item-hint">{t.showStepsHint}</span>
|
|
233
|
+
</button>
|
|
234
|
+
{#if hasForm}
|
|
235
|
+
<button
|
|
236
|
+
type="button"
|
|
237
|
+
role="menuitemcheckbox"
|
|
238
|
+
aria-checked={jsonView}
|
|
239
|
+
class="header-menu__item"
|
|
240
|
+
onclick={() => act(() => onToggleJsonView?.(), close)}
|
|
241
|
+
>
|
|
242
|
+
<span class="header-menu__item-label">
|
|
243
|
+
{#if jsonView}<Icon icon="mdi:check" />{/if}<span>{t.jsonView}</span>
|
|
244
|
+
</span>
|
|
245
|
+
<span class="header-menu__item-hint">{t.jsonViewHint}</span>
|
|
246
|
+
</button>
|
|
247
|
+
{/if}
|
|
248
|
+
{#if onOpenSettings}
|
|
249
|
+
<button
|
|
250
|
+
type="button"
|
|
251
|
+
role="menuitem"
|
|
252
|
+
class="header-menu__item"
|
|
253
|
+
onclick={() => act(onOpenSettings, close)}
|
|
254
|
+
>
|
|
255
|
+
<span class="header-menu__item-label"><span>{t.playgroundSettings}</span></span>
|
|
256
|
+
<span class="header-menu__item-hint">{t.playgroundSettingsHint}</span>
|
|
257
|
+
</button>
|
|
258
|
+
{/if}
|
|
259
|
+
<button
|
|
260
|
+
type="button"
|
|
261
|
+
role="menuitem"
|
|
262
|
+
class="header-menu__item"
|
|
263
|
+
disabled={!fd.playground.currentSession || fd.runs.isRefreshing}
|
|
264
|
+
onclick={() => act(() => void fd.runs.refresh(), close)}
|
|
265
|
+
>
|
|
266
|
+
<span class="header-menu__item-label"><span>{t.refresh}</span></span>
|
|
267
|
+
<span class="header-menu__item-hint">{t.refreshHint}</span>
|
|
268
|
+
</button>
|
|
269
|
+
{#if canReset}
|
|
270
|
+
<button
|
|
271
|
+
type="button"
|
|
272
|
+
role="menuitem"
|
|
273
|
+
class="header-menu__item"
|
|
274
|
+
onclick={() => void reset(close)}
|
|
275
|
+
>
|
|
276
|
+
<span class="header-menu__item-label"><span>{t.reset}</span></span>
|
|
277
|
+
<span class="header-menu__item-hint">{t.resetHint}</span>
|
|
278
|
+
</button>
|
|
279
|
+
{/if}
|
|
280
|
+
{@render menuItems?.({ close })}
|
|
281
|
+
{/snippet}
|
|
282
|
+
</HeaderMenu>
|
|
283
|
+
{/snippet}
|
|
284
|
+
</PanelHeader>
|
|
285
|
+
|
|
286
|
+
<style>
|
|
287
|
+
.playground-header__label {
|
|
288
|
+
min-width: 0;
|
|
289
|
+
max-width: 230px;
|
|
290
|
+
overflow: hidden;
|
|
291
|
+
text-overflow: ellipsis;
|
|
292
|
+
white-space: nowrap;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/* The chip may shrink inside the header's lead area so a long name truncates. */
|
|
296
|
+
:global(.flowdrop-ui-panel-header__lead > .header-menu) {
|
|
297
|
+
flex: 0 1 auto;
|
|
298
|
+
min-width: 0;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.playground-header__empty {
|
|
302
|
+
display: flex;
|
|
303
|
+
flex-direction: column;
|
|
304
|
+
gap: 1px;
|
|
305
|
+
padding: var(--fd-space-sm);
|
|
306
|
+
color: var(--fd-muted-foreground);
|
|
307
|
+
font-size: var(--fd-text-sm);
|
|
308
|
+
}
|
|
309
|
+
</style>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** The workflow has an interface form, so the JSON view applies. */
|
|
4
|
+
hasForm?: boolean;
|
|
5
|
+
/** The form is shown as JSON. */
|
|
6
|
+
jsonView?: boolean;
|
|
7
|
+
onToggleJsonView?: () => void;
|
|
8
|
+
/** Opens the workflow's Playground settings (the editor's inspector). */
|
|
9
|
+
onOpenSettings?: () => void;
|
|
10
|
+
/**
|
|
11
|
+
* Extra entries at the end of the ⋯ menu. Render buttons with
|
|
12
|
+
* `class="header-menu__item"` and `role="menuitem"`; call `close()` after
|
|
13
|
+
* the action. Used by hosts that add an action to the Playground
|
|
14
|
+
* (the editor's "Ask the Assistant about this run", say).
|
|
15
|
+
*/
|
|
16
|
+
menuItems?: Snippet<[{
|
|
17
|
+
close: () => void;
|
|
18
|
+
}]>;
|
|
19
|
+
}
|
|
20
|
+
declare const PlaygroundHeader: import("svelte").Component<Props, {}, "">;
|
|
21
|
+
type PlaygroundHeader = ReturnType<typeof PlaygroundHeader>;
|
|
22
|
+
export default PlaygroundHeader;
|
|
@@ -4,9 +4,13 @@
|
|
|
4
4
|
Modal wrapper for the Playground component.
|
|
5
5
|
Provides a centered modal dialog with backdrop, similar to Langflow's implementation.
|
|
6
6
|
Supports closing via backdrop click, Escape key, or close button.
|
|
7
|
+
|
|
8
|
+
@deprecated The standalone Playground is deprecated in favour of the editor's
|
|
9
|
+
Test mode and removed in 3.0. It warns once per page when mounted.
|
|
7
10
|
-->
|
|
8
11
|
|
|
9
12
|
<script lang="ts">
|
|
13
|
+
import { warnStandalonePlaygroundDeprecated } from '../../utils/deprecation.js';
|
|
10
14
|
import Icon from '@iconify/svelte';
|
|
11
15
|
import Playground from './Playground.svelte';
|
|
12
16
|
import type { Workflow } from '../../types/index.js';
|
|
@@ -16,6 +20,8 @@
|
|
|
16
20
|
import type { PlaygroundConfig } from '../../types/playground.js';
|
|
17
21
|
import { m } from '../../messages/index.js';
|
|
18
22
|
|
|
23
|
+
warnStandalonePlaygroundDeprecated();
|
|
24
|
+
|
|
19
25
|
/**
|
|
20
26
|
* Component props
|
|
21
27
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { warnStandalonePlaygroundDeprecated } from '../../utils/deprecation.js';
|
|
2
3
|
import { onMount, untrack } from 'svelte';
|
|
3
4
|
import Icon from '@iconify/svelte';
|
|
4
5
|
import Playground from './Playground.svelte';
|
|
@@ -11,6 +12,8 @@
|
|
|
11
12
|
import type { AuthProvider } from '../../types/auth.js';
|
|
12
13
|
import type { PlaygroundConfig, PlaygroundMode } from '../../types/playground.js';
|
|
13
14
|
|
|
15
|
+
warnStandalonePlaygroundDeprecated();
|
|
16
|
+
|
|
14
17
|
interface Props {
|
|
15
18
|
/** Target workflow ID */
|
|
16
19
|
workflowId: string;
|
|
@@ -196,7 +199,10 @@
|
|
|
196
199
|
/>
|
|
197
200
|
</div>
|
|
198
201
|
|
|
199
|
-
<!-- Focusable ARIA splitter: keyboard/pointer handlers drive the resize
|
|
202
|
+
<!-- Focusable ARIA splitter: keyboard/pointer handlers drive the resize
|
|
203
|
+
@deprecated The standalone Playground is deprecated in favour of the editor's
|
|
204
|
+
Test mode and removed in 3.0. It warns once per page when mounted.
|
|
205
|
+
-->
|
|
200
206
|
<!-- svelte-ignore a11y_no_noninteractive_tabindex -->
|
|
201
207
|
<!-- svelte-ignore a11y_no_noninteractive_element_interactions -->
|
|
202
208
|
<div
|
|
@@ -214,9 +220,7 @@
|
|
|
214
220
|
onpointerup={handleResizerPointerUp}
|
|
215
221
|
onpointercancel={handleResizerPointerUp}
|
|
216
222
|
onkeydown={handleResizerKeyDown}
|
|
217
|
-
>
|
|
218
|
-
<div class="playground-studio__resizer-handle"></div>
|
|
219
|
-
</div>
|
|
223
|
+
></div>
|
|
220
224
|
{/if}
|
|
221
225
|
|
|
222
226
|
<div
|
|
@@ -294,45 +298,39 @@
|
|
|
294
298
|
display: none;
|
|
295
299
|
}
|
|
296
300
|
|
|
297
|
-
/*
|
|
301
|
+
/* Divider between the two panes: a 1px rule with an 8px invisible hit area
|
|
302
|
+
and a 2px accent line on hover, drag and keyboard focus. */
|
|
298
303
|
.playground-studio__resizer {
|
|
299
|
-
|
|
304
|
+
position: relative;
|
|
305
|
+
width: 1px;
|
|
300
306
|
flex-shrink: 0;
|
|
301
307
|
cursor: col-resize;
|
|
302
|
-
background-color: var(--fd-
|
|
303
|
-
border-right: 1px solid var(--fd-border);
|
|
304
|
-
border-left: 1px solid var(--fd-border);
|
|
305
|
-
display: flex;
|
|
306
|
-
align-items: center;
|
|
307
|
-
justify-content: center;
|
|
308
|
+
background-color: var(--fd-border);
|
|
308
309
|
touch-action: none;
|
|
309
310
|
z-index: 1;
|
|
310
|
-
|
|
311
|
+
outline: none;
|
|
311
312
|
}
|
|
312
313
|
|
|
313
|
-
.playground-studio__resizer
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
.playground-studio__resizer::before {
|
|
315
|
+
content: '';
|
|
316
|
+
position: absolute;
|
|
317
|
+
inset: 0 -4px;
|
|
316
318
|
}
|
|
317
319
|
|
|
318
|
-
.playground-studio__resizer
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
320
|
+
.playground-studio__resizer::after {
|
|
321
|
+
content: '';
|
|
322
|
+
position: absolute;
|
|
323
|
+
inset: 0 -1px;
|
|
324
|
+
background-color: var(--fd-ring);
|
|
325
|
+
opacity: 0;
|
|
326
|
+
transition: opacity var(--fd-transition-fast);
|
|
327
|
+
pointer-events: none;
|
|
326
328
|
}
|
|
327
329
|
|
|
328
|
-
.playground-studio__resizer:hover
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
.playground-studio__resizer--active .playground-studio__resizer-handle {
|
|
334
|
-
background-color: var(--fd-primary-hover);
|
|
335
|
-
transform: scaleY(1.4);
|
|
330
|
+
.playground-studio__resizer:hover::after,
|
|
331
|
+
.playground-studio__resizer:focus-visible::after,
|
|
332
|
+
.playground-studio__resizer--active::after {
|
|
333
|
+
opacity: 1;
|
|
336
334
|
}
|
|
337
335
|
|
|
338
336
|
/* Chat pane — fills remaining space */
|