@invect/ui 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +77 -0
- package/dist/Invect-CWpIwZ5F.js +92738 -0
- package/dist/Invect.d.ts +25 -0
- package/dist/InvectShell.d.ts +14 -0
- package/dist/api/agent-tools.api.d.ts +1 -0
- package/dist/api/client.d.ts +207 -0
- package/dist/api/credentials.api.d.ts +47 -0
- package/dist/api/executions.api.d.ts +43 -0
- package/dist/api/flows.api.d.ts +100 -0
- package/dist/api/index.d.ts +9 -0
- package/dist/api/node-data.api.d.ts +66 -0
- package/dist/api/query-keys.d.ts +22 -0
- package/dist/api/triggers.api.d.ts +44 -0
- package/dist/api/types.d.ts +147 -0
- package/dist/api/use-flow-run-stream.d.ts +12 -0
- package/dist/assets/invect-branding.d.ts +4 -0
- package/dist/assets/provider-icons/index.d.ts +8 -0
- package/dist/babel-C9OtljFZ.js +9721 -0
- package/dist/components/PageLayout.d.ts +17 -0
- package/dist/components/chat/ChatInput.d.ts +17 -0
- package/dist/components/chat/ChatMessageList.d.ts +14 -0
- package/dist/components/chat/ChatModelSelector.d.ts +11 -0
- package/dist/components/chat/ChatPanel.d.ts +19 -0
- package/dist/components/chat/ChatPromptOverlay.d.ts +13 -0
- package/dist/components/chat/ChatProviderSelector.d.ts +9 -0
- package/dist/components/chat/ChatSettingsPanel.d.ts +11 -0
- package/dist/components/chat/InlineCredentialSetup.d.ts +9 -0
- package/dist/components/chat/MarkdownRenderer.d.ts +7 -0
- package/dist/components/chat/chat-memory.d.ts +21 -0
- package/dist/components/chat/chat.store.d.ts +416 -0
- package/dist/components/chat/index.d.ts +5 -0
- package/dist/components/chat/use-chat.d.ts +28 -0
- package/dist/components/credentials/CreateCredentialModal.d.ts +13 -0
- package/dist/components/credentials/CredentialDetailDialog.d.ts +17 -0
- package/dist/components/credentials/EditCredentialModal.d.ts +11 -0
- package/dist/components/credentials/OAuth2ConnectButton.d.ts +38 -0
- package/dist/components/credentials/OAuth2ProviderSelector.d.ts +15 -0
- package/dist/components/credentials/credential-utils.d.ts +12 -0
- package/dist/components/credentials/index.d.ts +9 -0
- package/dist/components/dashboard/FailedRunsAlert.d.ts +3 -0
- package/dist/components/dashboard/FlowCard.d.ts +7 -0
- package/dist/components/dashboard/RecentActivityTable.d.ts +9 -0
- package/dist/components/dashboard/StatCard.d.ts +10 -0
- package/dist/components/dashboard/index.d.ts +5 -0
- package/dist/components/dashboard/status-helpers.d.ts +5 -0
- package/dist/components/flow-editor/ActionsSidebar.d.ts +2 -0
- package/dist/components/flow-editor/FlowEditor.d.ts +21 -0
- package/dist/components/flow-editor/FlowHeader.d.ts +9 -0
- package/dist/components/flow-editor/FlowLayout.d.ts +24 -0
- package/dist/components/flow-editor/ModeSwitcher.d.ts +7 -0
- package/dist/components/flow-editor/NodeSidebar.d.ts +24 -0
- package/dist/components/flow-editor/RunControls.d.ts +12 -0
- package/dist/components/flow-editor/ToolConfigPanel.d.ts +16 -0
- package/dist/components/flow-editor/ValidationPanel.d.ts +5 -0
- package/dist/components/flow-editor/flow-editor.store.d.ts +1 -0
- package/dist/components/flow-editor/index.d.ts +6 -0
- package/dist/components/flow-editor/inline-edit.d.ts +10 -0
- package/dist/components/flow-editor/node-config-panel/ConfigFieldWithTemplate.d.ts +26 -0
- package/dist/components/flow-editor/node-config-panel/CredentialCombobox.d.ts +21 -0
- package/dist/components/flow-editor/node-config-panel/CredentialsSection.d.ts +19 -0
- package/dist/components/flow-editor/node-config-panel/DroppableInput.d.ts +20 -0
- package/dist/components/flow-editor/node-config-panel/DynamicSelectField.d.ts +22 -0
- package/dist/components/flow-editor/node-config-panel/JsonPreviewPanel.d.ts +25 -0
- package/dist/components/flow-editor/node-config-panel/NodeConfigPanel.d.ts +14 -0
- package/dist/components/flow-editor/node-config-panel/NodeConfigPanelHeader.d.ts +15 -0
- package/dist/components/flow-editor/node-config-panel/ParametersSection.d.ts +16 -0
- package/dist/components/flow-editor/node-config-panel/SearchableSelectField.d.ts +17 -0
- package/dist/components/flow-editor/node-config-panel/SwitchCasesField.d.ts +18 -0
- package/dist/components/flow-editor/node-config-panel/hooks/index.d.ts +2 -0
- package/dist/components/flow-editor/node-config-panel/hooks/use-node-config-panel-state.d.ts +24 -0
- package/dist/components/flow-editor/node-config-panel/hooks/use-node-execution.d.ts +46 -0
- package/dist/components/flow-editor/node-config-panel/hooks/use-upstream-slots.d.ts +16 -0
- package/dist/components/flow-editor/node-config-panel/panels/AgentToolsPanel.d.ts +18 -0
- package/dist/components/flow-editor/node-config-panel/panels/ConfigurationPanel.d.ts +49 -0
- package/dist/components/flow-editor/node-config-panel/panels/DataMapperPane.d.ts +40 -0
- package/dist/components/flow-editor/node-config-panel/panels/InputPanel.d.ts +49 -0
- package/dist/components/flow-editor/node-config-panel/panels/OutputPanel.d.ts +7 -0
- package/dist/components/flow-editor/node-config-panel/panels/index.d.ts +4 -0
- package/dist/components/flow-editor/node-config-panel/types.d.ts +19 -0
- package/dist/components/flow-editor/node-config-panel/use-node-config-panel-store.d.ts +49 -0
- package/dist/components/flow-editor/node-config-panel/use-node-config-state.d.ts +26 -0
- package/dist/components/flow-editor/node-config-panel/use-run-node.d.ts +16 -0
- package/dist/components/flow-editor/node-config-panel/utils.d.ts +9 -0
- package/dist/components/flow-editor/serialize-to-sdk.d.ts +20 -0
- package/dist/components/flow-editor/toolbar-context.d.ts +2 -0
- package/dist/components/flow-editor/use-copy-paste.d.ts +7 -0
- package/dist/components/flow-editor/use-copy-paste.types.d.ts +38 -0
- package/dist/components/flow-editor/use-flow-editor.d.ts +44 -0
- package/dist/components/flow-runs-table/FlowRunsTable.d.ts +6 -0
- package/dist/components/flow-runs-table/index.d.ts +1 -0
- package/dist/components/flow-viewer/FlowRunsView.d.ts +7 -0
- package/dist/components/flow-viewer/FlowStatusView.d.ts +21 -0
- package/dist/components/flow-viewer/RunSelector.d.ts +13 -0
- package/dist/components/flow-viewer/RunsSidebar.d.ts +14 -0
- package/dist/components/flow-viewer/agent-tool-executions-list.d.ts +7 -0
- package/dist/components/flow-viewer/index.d.ts +1 -0
- package/dist/components/flow-viewer/logs-panel.d.ts +18 -0
- package/dist/components/flow-viewer/use-execution-log-data.d.ts +113 -0
- package/dist/components/graph/BatchFlowEdge.d.ts +33 -0
- package/dist/components/graph/LayoutSelector.d.ts +9 -0
- package/dist/components/graph/index.d.ts +47 -0
- package/dist/components/graph/styleUtils.d.ts +124 -0
- package/dist/components/nodes/AgentConfigPanel.d.ts +24 -0
- package/dist/components/nodes/AgentNode.d.ts +8 -0
- package/dist/components/nodes/AgentToolsBox.d.ts +41 -0
- package/dist/components/nodes/NodeAppendix.d.ts +19 -0
- package/dist/components/nodes/NodeStatusIndicator.d.ts +30 -0
- package/dist/components/nodes/NodeViewContext.d.ts +18 -0
- package/dist/components/nodes/ToolParamField.d.ts +28 -0
- package/dist/components/nodes/ToolSelectorModal.d.ts +80 -0
- package/dist/components/nodes/ToolSelectorParts.d.ts +30 -0
- package/dist/components/nodes/UniversalNode.d.ts +2 -0
- package/dist/components/nodes/createContextAwareNodes.d.ts +6 -0
- package/dist/components/nodes/index.d.ts +22 -0
- package/dist/components/nodes/nodeRegistry.d.ts +13 -0
- package/dist/components/nodes/withNodeContext.d.ts +7 -0
- package/dist/components/shared/InvectLoader.d.ts +8 -0
- package/dist/components/shared/InvectLogo.d.ts +9 -0
- package/dist/components/shared/ProviderIcon.d.ts +23 -0
- package/dist/components/side-menu/side-menu.d.ts +4 -0
- package/dist/components/sidebar/BaseSidebar.d.ts +17 -0
- package/dist/components/sidebar/index.d.ts +1 -0
- package/dist/components/triggers/CronPreview.d.ts +12 -0
- package/dist/components/triggers/index.d.ts +1 -0
- package/dist/components/ui/alert-dialog.d.ts +18 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/button.d.ts +13 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/codemirror-js-editor.d.ts +25 -0
- package/dist/components/ui/codemirror-json-editor.d.ts +18 -0
- package/dist/components/ui/codemirror-nunjucks-editor.d.ts +13 -0
- package/dist/components/ui/codemirror-vscode-theme.d.ts +24 -0
- package/dist/components/ui/collapsible.d.ts +6 -0
- package/dist/components/ui/command.d.ts +18 -0
- package/dist/components/ui/dialog.d.ts +18 -0
- package/dist/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/components/ui/empty-state.d.ts +21 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/popover.d.ts +10 -0
- package/dist/components/ui/resizable.d.ts +8 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/select.d.ts +18 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/switch.d.ts +3 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/components/ui/tree-view.d.ts +107 -0
- package/dist/contexts/AgentToolCallbacksContext.d.ts +23 -0
- package/dist/contexts/ApiContext.d.ts +11 -0
- package/dist/contexts/FlowDataContext.d.ts +9 -0
- package/dist/contexts/NodeRegistryContext.d.ts +14 -0
- package/dist/contexts/PluginRegistryContext.d.ts +39 -0
- package/dist/contexts/ThemeProvider.d.ts +18 -0
- package/dist/contexts/ValidationContext.d.ts +22 -0
- package/dist/demo/DemoInvect.d.ts +11 -0
- package/dist/demo/FlowViewer.d.ts +31 -0
- package/dist/demo/demo-api-client.d.ts +33 -0
- package/dist/demo/index.d.ts +6 -0
- package/dist/demo/sample-data.d.ts +1538 -0
- package/dist/demo.d.ts +2 -0
- package/dist/demo.js +2774 -0
- package/dist/estree-ClbRfS-1.js +7076 -0
- package/dist/fonts/geist-cyrillic-wght-normal.woff2 +0 -0
- package/dist/fonts/geist-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/geist-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/iosevka-latin-400-normal.woff2 +0 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-document-title.d.ts +1 -0
- package/dist/hooks/use-flow-data.d.ts +22 -0
- package/dist/hooks/use-invect-portal-class.d.ts +21 -0
- package/dist/hooks/useFlowEditorStore.d.ts +1 -0
- package/dist/index.css +3 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +717 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/prettier.d.ts +13 -0
- package/dist/routes/all-flow-runs.d.ts +5 -0
- package/dist/routes/credentials.d.ts +5 -0
- package/dist/routes/flow-route-layout.d.ts +19 -0
- package/dist/routes/flow-runs.d.ts +5 -0
- package/dist/routes/flow.d.ts +5 -0
- package/dist/routes/home.d.ts +5 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/standalone-C3Df7W52.js +3463 -0
- package/dist/stores/executionViewStore.d.ts +64 -0
- package/dist/stores/flow-editor.store.d.ts +137 -0
- package/dist/stores/flowEditorStore.d.ts +1 -0
- package/dist/stores/index.d.ts +2 -0
- package/dist/stores/uiStore.d.ts +45 -0
- package/dist/types/agent-tools.types.d.ts +53 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/node-definition.types.d.ts +85 -0
- package/dist/types/plugin.types.d.ts +100 -0
- package/dist/utils/credentialBranding.d.ts +8 -0
- package/dist/utils/credentialFiltering.d.ts +20 -0
- package/dist/utils/flowTransformations.d.ts +16 -0
- package/dist/utils/layoutUtils.d.ts +23 -0
- package/dist/utils/nodeReferenceUtils.d.ts +37 -0
- package/dist/vendor.d.ts +5 -0
- package/package.json +130 -0
- package/src/.DS_Store +0 -0
- package/src/Invect.tsx +229 -0
- package/src/InvectShell.tsx +55 -0
- package/src/api/agent-tools.api.ts +23 -0
- package/src/api/client.ts +899 -0
- package/src/api/credentials.api.ts +197 -0
- package/src/api/executions.api.ts +228 -0
- package/src/api/flows.api.ts +195 -0
- package/src/api/index.ts +17 -0
- package/src/api/node-data.api.ts +167 -0
- package/src/api/query-keys.ts +44 -0
- package/src/api/triggers.api.ts +120 -0
- package/src/api/types.ts +212 -0
- package/src/api/use-flow-run-stream.ts +206 -0
- package/src/app.css +560 -0
- package/src/assets/.DS_Store +0 -0
- package/src/assets/favicon.ico +0 -0
- package/src/assets/fonts/geist-cyrillic-wght-normal.woff2 +0 -0
- package/src/assets/fonts/geist-latin-ext-wght-normal.woff2 +0 -0
- package/src/assets/fonts/geist-latin-wght-normal.woff2 +0 -0
- package/src/assets/fonts/iosevka-latin-400-normal.woff2 +0 -0
- package/src/assets/invect-branding.ts +51 -0
- package/src/assets/provider-icons/anthropic.svg +1 -0
- package/src/assets/provider-icons/anthropic_light.svg +1 -0
- package/src/assets/provider-icons/github.svg +1 -0
- package/src/assets/provider-icons/github_light.svg +1 -0
- package/src/assets/provider-icons/gmail.svg +1 -0
- package/src/assets/provider-icons/google_calendar.svg +1 -0
- package/src/assets/provider-icons/google_docs.svg +1 -0
- package/src/assets/provider-icons/google_drive.svg +1 -0
- package/src/assets/provider-icons/google_sheets.svg +1 -0
- package/src/assets/provider-icons/index.ts +55 -0
- package/src/assets/provider-icons/linear.svg +1 -0
- package/src/assets/provider-icons/openai.svg +1 -0
- package/src/assets/provider-icons/postgres.svg +1 -0
- package/src/assets/provider-icons/slack.svg +1 -0
- package/src/assets/small-loader-dark.svg +22 -0
- package/src/assets/small-loader-light.svg +22 -0
- package/src/assets/small.svg +7 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/PageLayout.tsx +55 -0
- package/src/components/chat/ChatInput.tsx +115 -0
- package/src/components/chat/ChatMessageList.tsx +788 -0
- package/src/components/chat/ChatModelSelector.tsx +208 -0
- package/src/components/chat/ChatPanel.tsx +243 -0
- package/src/components/chat/ChatPromptOverlay.tsx +150 -0
- package/src/components/chat/ChatProviderSelector.tsx +135 -0
- package/src/components/chat/ChatSettingsPanel.tsx +277 -0
- package/src/components/chat/InlineCredentialSetup.tsx +343 -0
- package/src/components/chat/MarkdownRenderer.tsx +140 -0
- package/src/components/chat/chat-memory.ts +88 -0
- package/src/components/chat/chat.store.ts +479 -0
- package/src/components/chat/index.ts +5 -0
- package/src/components/chat/use-chat.ts +473 -0
- package/src/components/credentials/CreateCredentialModal.tsx +609 -0
- package/src/components/credentials/CredentialDetailDialog.tsx +882 -0
- package/src/components/credentials/EditCredentialModal.tsx +399 -0
- package/src/components/credentials/OAuth2ConnectButton.tsx +288 -0
- package/src/components/credentials/OAuth2ProviderSelector.tsx +360 -0
- package/src/components/credentials/credential-utils.ts +99 -0
- package/src/components/credentials/index.ts +10 -0
- package/src/components/dashboard/FailedRunsAlert.tsx +67 -0
- package/src/components/dashboard/FlowCard.tsx +64 -0
- package/src/components/dashboard/RecentActivityTable.tsx +92 -0
- package/src/components/dashboard/StatCard.tsx +32 -0
- package/src/components/dashboard/index.ts +5 -0
- package/src/components/dashboard/status-helpers.tsx +102 -0
- package/src/components/flow-editor/ActionsSidebar.tsx +503 -0
- package/src/components/flow-editor/FlowEditor.tsx +1002 -0
- package/src/components/flow-editor/FlowHeader.tsx +87 -0
- package/src/components/flow-editor/FlowLayout.tsx +117 -0
- package/src/components/flow-editor/ModeSwitcher.tsx +49 -0
- package/src/components/flow-editor/NodeSidebar.tsx +343 -0
- package/src/components/flow-editor/RunControls.tsx +109 -0
- package/src/components/flow-editor/ToolConfigPanel.tsx +434 -0
- package/src/components/flow-editor/ValidationPanel.tsx +167 -0
- package/src/components/flow-editor/flow-editor.store.ts +2 -0
- package/src/components/flow-editor/index.ts +6 -0
- package/src/components/flow-editor/inline-edit.tsx +111 -0
- package/src/components/flow-editor/node-config-panel/ConfigFieldWithTemplate.tsx +334 -0
- package/src/components/flow-editor/node-config-panel/CredentialCombobox.tsx +217 -0
- package/src/components/flow-editor/node-config-panel/CredentialsSection.tsx +154 -0
- package/src/components/flow-editor/node-config-panel/DroppableInput.tsx +45 -0
- package/src/components/flow-editor/node-config-panel/DynamicSelectField.tsx +223 -0
- package/src/components/flow-editor/node-config-panel/JsonPreviewPanel.tsx +134 -0
- package/src/components/flow-editor/node-config-panel/NodeConfigPanel.tsx +650 -0
- package/src/components/flow-editor/node-config-panel/NodeConfigPanelHeader.tsx +91 -0
- package/src/components/flow-editor/node-config-panel/ParametersSection.tsx +144 -0
- package/src/components/flow-editor/node-config-panel/SearchableSelectField.tsx +126 -0
- package/src/components/flow-editor/node-config-panel/SwitchCasesField.tsx +212 -0
- package/src/components/flow-editor/node-config-panel/hooks/index.ts +2 -0
- package/src/components/flow-editor/node-config-panel/hooks/use-node-config-panel-state.ts +284 -0
- package/src/components/flow-editor/node-config-panel/hooks/use-node-execution.ts +287 -0
- package/src/components/flow-editor/node-config-panel/hooks/use-upstream-slots.ts +310 -0
- package/src/components/flow-editor/node-config-panel/panels/AgentToolsPanel.tsx +837 -0
- package/src/components/flow-editor/node-config-panel/panels/ConfigurationPanel.tsx +383 -0
- package/src/components/flow-editor/node-config-panel/panels/DataMapperPane.tsx +456 -0
- package/src/components/flow-editor/node-config-panel/panels/InputPanel.tsx +338 -0
- package/src/components/flow-editor/node-config-panel/panels/OutputPanel.tsx +109 -0
- package/src/components/flow-editor/node-config-panel/panels/index.ts +4 -0
- package/src/components/flow-editor/node-config-panel/types.ts +20 -0
- package/src/components/flow-editor/node-config-panel/use-node-config-panel-store.ts +283 -0
- package/src/components/flow-editor/node-config-panel/use-node-config-state.ts +172 -0
- package/src/components/flow-editor/node-config-panel/use-run-node.ts +147 -0
- package/src/components/flow-editor/node-config-panel/utils.ts +73 -0
- package/src/components/flow-editor/serialize-to-sdk.ts +204 -0
- package/src/components/flow-editor/toolbar-context.ts +9 -0
- package/src/components/flow-editor/use-copy-paste.ts +575 -0
- package/src/components/flow-editor/use-copy-paste.types.ts +35 -0
- package/src/components/flow-editor/use-flow-editor.ts +241 -0
- package/src/components/flow-runs-table/FlowRunsTable.tsx +631 -0
- package/src/components/flow-runs-table/index.ts +1 -0
- package/src/components/flow-viewer/FlowRunsView.tsx +268 -0
- package/src/components/flow-viewer/FlowStatusView.tsx +351 -0
- package/src/components/flow-viewer/RunSelector.tsx +422 -0
- package/src/components/flow-viewer/RunsSidebar.tsx +125 -0
- package/src/components/flow-viewer/agent-tool-executions-list.tsx +298 -0
- package/src/components/flow-viewer/index.ts +1 -0
- package/src/components/flow-viewer/logs-panel.tsx +567 -0
- package/src/components/flow-viewer/use-execution-log-data.ts +374 -0
- package/src/components/graph/BatchFlowEdge.tsx +229 -0
- package/src/components/graph/LayoutSelector.tsx +42 -0
- package/src/components/graph/index.ts +61 -0
- package/src/components/graph/styleUtils.ts +375 -0
- package/src/components/nodes/.DS_Store +0 -0
- package/src/components/nodes/AgentConfigPanel.tsx +1033 -0
- package/src/components/nodes/AgentNode.tsx +298 -0
- package/src/components/nodes/AgentToolsBox.tsx +193 -0
- package/src/components/nodes/NodeAppendix.tsx +98 -0
- package/src/components/nodes/NodeStatusIndicator.tsx +74 -0
- package/src/components/nodes/NodeViewContext.tsx +45 -0
- package/src/components/nodes/ToolParamField.tsx +282 -0
- package/src/components/nodes/ToolSelectorModal.tsx +648 -0
- package/src/components/nodes/ToolSelectorParts.tsx +505 -0
- package/src/components/nodes/UniversalNode.tsx +356 -0
- package/src/components/nodes/createContextAwareNodes.ts +19 -0
- package/src/components/nodes/index.ts +45 -0
- package/src/components/nodes/nodeRegistry.ts +50 -0
- package/src/components/nodes/withNodeContext.tsx +55 -0
- package/src/components/shared/InvectLoader.tsx +59 -0
- package/src/components/shared/InvectLogo.tsx +59 -0
- package/src/components/shared/ProviderIcon.tsx +115 -0
- package/src/components/side-menu/side-menu.tsx +267 -0
- package/src/components/sidebar/BaseSidebar.tsx +148 -0
- package/src/components/sidebar/index.ts +1 -0
- package/src/components/triggers/CronPreview.tsx +243 -0
- package/src/components/triggers/index.ts +1 -0
- package/src/components/ui/alert-dialog.tsx +152 -0
- package/src/components/ui/badge.tsx +39 -0
- package/src/components/ui/button.tsx +58 -0
- package/src/components/ui/card.tsx +75 -0
- package/src/components/ui/codemirror-js-editor.tsx +432 -0
- package/src/components/ui/codemirror-json-editor.tsx +816 -0
- package/src/components/ui/codemirror-nunjucks-editor.tsx +451 -0
- package/src/components/ui/codemirror-vscode-theme.ts +243 -0
- package/src/components/ui/collapsible.tsx +12 -0
- package/src/components/ui/command.tsx +162 -0
- package/src/components/ui/dialog.tsx +140 -0
- package/src/components/ui/dropdown-menu.tsx +232 -0
- package/src/components/ui/empty-state.tsx +93 -0
- package/src/components/ui/input.tsx +26 -0
- package/src/components/ui/label.tsx +19 -0
- package/src/components/ui/popover.tsx +53 -0
- package/src/components/ui/resizable.tsx +61 -0
- package/src/components/ui/scroll-area.tsx +56 -0
- package/src/components/ui/select.tsx +179 -0
- package/src/components/ui/separator.tsx +26 -0
- package/src/components/ui/slider.tsx +58 -0
- package/src/components/ui/switch.tsx +22 -0
- package/src/components/ui/table.tsx +90 -0
- package/src/components/ui/textarea.tsx +23 -0
- package/src/components/ui/tooltip.tsx +54 -0
- package/src/components/ui/tree-view.tsx +574 -0
- package/src/contexts/AgentToolCallbacksContext.tsx +31 -0
- package/src/contexts/ApiContext.tsx +51 -0
- package/src/contexts/FlowDataContext.tsx +21 -0
- package/src/contexts/NodeRegistryContext.tsx +54 -0
- package/src/contexts/PluginRegistryContext.tsx +182 -0
- package/src/contexts/ThemeProvider.tsx +106 -0
- package/src/contexts/ValidationContext.tsx +122 -0
- package/src/demo/DemoInvect.tsx +42 -0
- package/src/demo/FlowViewer.tsx +294 -0
- package/src/demo/demo-api-client.ts +246 -0
- package/src/demo/index.ts +28 -0
- package/src/demo/sample-data.ts +1980 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-document-title.ts +8 -0
- package/src/hooks/use-flow-data.ts +144 -0
- package/src/hooks/use-invect-portal-class.ts +27 -0
- package/src/hooks/useFlowEditorStore.ts +2 -0
- package/src/index.ts +70 -0
- package/src/lib/utils.ts +6 -0
- package/src/prettier.d.ts +13 -0
- package/src/routes/all-flow-runs.tsx +27 -0
- package/src/routes/credentials.tsx +362 -0
- package/src/routes/flow-route-layout.tsx +113 -0
- package/src/routes/flow-runs.tsx +22 -0
- package/src/routes/flow.tsx +22 -0
- package/src/routes/home.tsx +282 -0
- package/src/services/index.ts +6 -0
- package/src/stores/executionViewStore.ts +211 -0
- package/src/stores/flow-editor.store.ts +738 -0
- package/src/stores/flowEditorStore.ts +2 -0
- package/src/stores/index.ts +10 -0
- package/src/stores/uiStore.ts +189 -0
- package/src/types/agent-tools.types.ts +64 -0
- package/src/types/index.ts +5 -0
- package/src/types/node-definition.types.ts +104 -0
- package/src/types/plugin.types.ts +123 -0
- package/src/utils/credentialBranding.ts +116 -0
- package/src/utils/credentialFiltering.ts +68 -0
- package/src/utils/flowTransformations.ts +137 -0
- package/src/utils/layoutUtils.ts +127 -0
- package/src/utils/nodeReferenceUtils.ts +135 -0
- package/src/vendor.d.ts +7 -0
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
import { useMemo, useState, useCallback } from 'react';
|
|
2
|
+
import { GraphNodeType } from '@invect/core/types';
|
|
3
|
+
import { ResizablePanel } from '../../../ui/resizable';
|
|
4
|
+
import { ScrollArea } from '../../../ui/scroll-area';
|
|
5
|
+
import { CredentialsSection } from '../CredentialsSection';
|
|
6
|
+
import { ParametersSection } from '../ParametersSection';
|
|
7
|
+
import { InlineEdit } from '../../inline-edit';
|
|
8
|
+
import { Button } from '../../../ui/button';
|
|
9
|
+
import { Badge } from '../../../ui/badge';
|
|
10
|
+
import {
|
|
11
|
+
Settings,
|
|
12
|
+
Key,
|
|
13
|
+
AlertTriangle,
|
|
14
|
+
AlertCircle,
|
|
15
|
+
Loader2,
|
|
16
|
+
Play,
|
|
17
|
+
Wrench,
|
|
18
|
+
Copy,
|
|
19
|
+
Check,
|
|
20
|
+
} from 'lucide-react';
|
|
21
|
+
import { cn } from '../../../../lib/utils';
|
|
22
|
+
import { AgentToolsPanel } from './AgentToolsPanel';
|
|
23
|
+
import type { AgentToolsPanelProps } from './AgentToolsPanel';
|
|
24
|
+
import type { Credential } from '../../../../api/types';
|
|
25
|
+
import type { NodeParamField } from '../../../../types/node-definition.types';
|
|
26
|
+
|
|
27
|
+
interface NodeDefinition {
|
|
28
|
+
paramFields?: NodeParamField[];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Compact error display for node execution errors in the config panel.
|
|
33
|
+
* Shows a short summary — the full error is displayed in the Output panel.
|
|
34
|
+
*/
|
|
35
|
+
function ExecutionErrorDisplay({ error }: { error: string }) {
|
|
36
|
+
const [copied, setCopied] = useState(false);
|
|
37
|
+
|
|
38
|
+
const handleCopy = useCallback(
|
|
39
|
+
(e: React.MouseEvent) => {
|
|
40
|
+
e.stopPropagation();
|
|
41
|
+
navigator.clipboard.writeText(error).then(() => {
|
|
42
|
+
setCopied(true);
|
|
43
|
+
setTimeout(() => setCopied(false), 2000);
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
[error],
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
// Extract a short summary: first line, truncated
|
|
50
|
+
const isLong = error.length > 150 || error.includes('\n');
|
|
51
|
+
const summary = isLong ? error.split('\n')[0].slice(0, 140) + '…' : error;
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<div className="flex items-start gap-2 p-2.5 rounded-md bg-destructive/5 border border-destructive/20">
|
|
55
|
+
<AlertCircle className="w-3.5 h-3.5 text-destructive mt-0.5 shrink-0" />
|
|
56
|
+
<div className="flex-1 min-w-0 text-xs text-destructive">
|
|
57
|
+
<strong>Execution Error:</strong> {summary}
|
|
58
|
+
{isLong && (
|
|
59
|
+
<span className="text-destructive/60 ml-1">See full error in Output panel ↓</span>
|
|
60
|
+
)}
|
|
61
|
+
</div>
|
|
62
|
+
<button
|
|
63
|
+
type="button"
|
|
64
|
+
onClick={handleCopy}
|
|
65
|
+
className="shrink-0 p-0.5 rounded hover:bg-destructive/10 text-destructive/60 hover:text-destructive transition-colors"
|
|
66
|
+
title="Copy error"
|
|
67
|
+
>
|
|
68
|
+
{copied ? <Check className="w-3 h-3" /> : <Copy className="w-3 h-3" />}
|
|
69
|
+
</button>
|
|
70
|
+
</div>
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
interface ConfigurationPanelProps {
|
|
75
|
+
definition: NodeDefinition | undefined;
|
|
76
|
+
formValues: Record<string, unknown>;
|
|
77
|
+
onFieldChange: (fieldName: string, value: unknown) => void;
|
|
78
|
+
credentials: Credential[];
|
|
79
|
+
credentialsLoading: boolean;
|
|
80
|
+
credentialsError: boolean;
|
|
81
|
+
onRefreshCredentials: () => void;
|
|
82
|
+
onAddNewCredential: (fieldName: string) => void;
|
|
83
|
+
onEditCredential?: (credential: Credential) => void;
|
|
84
|
+
onRefreshOAuthCredential?: (credential: Credential) => void;
|
|
85
|
+
refreshingCredentialId?: string | null;
|
|
86
|
+
configWarnings: string[];
|
|
87
|
+
configErrors: string[];
|
|
88
|
+
runError: string | null;
|
|
89
|
+
/** Per-field validation errors keyed by field name (from execution errors). */
|
|
90
|
+
fieldErrors?: Record<string, string>;
|
|
91
|
+
nodeType: string;
|
|
92
|
+
modelStatusMessage: string;
|
|
93
|
+
portalContainer?: HTMLElement | null;
|
|
94
|
+
/**
|
|
95
|
+
* Available upstream node reference IDs for loop variable suggestions
|
|
96
|
+
*/
|
|
97
|
+
upstreamVariables?: string[];
|
|
98
|
+
/** Input data from upstream nodes — for autocomplete in code fields. */
|
|
99
|
+
inputData?: Record<string, unknown>;
|
|
100
|
+
/** Node header props — rendered as the panel header */
|
|
101
|
+
headerLabel?: string;
|
|
102
|
+
onHeaderLabelChange?: (value: string) => void;
|
|
103
|
+
headerNodeTypeLabel?: string;
|
|
104
|
+
HeaderIcon?: React.ComponentType<{ className?: string }>;
|
|
105
|
+
headerCategoryColor?: string;
|
|
106
|
+
onRunNode?: () => void;
|
|
107
|
+
runButtonLabel?: string;
|
|
108
|
+
runDisabled?: boolean;
|
|
109
|
+
isRunning?: boolean;
|
|
110
|
+
/** Agent tools props — only provided when nodeType is AGENT */
|
|
111
|
+
agentTools?: Omit<AgentToolsPanelProps, 'portalContainer'>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function ConfigurationPanel({
|
|
115
|
+
definition,
|
|
116
|
+
formValues,
|
|
117
|
+
onFieldChange,
|
|
118
|
+
credentials,
|
|
119
|
+
credentialsLoading,
|
|
120
|
+
credentialsError,
|
|
121
|
+
onRefreshCredentials,
|
|
122
|
+
onAddNewCredential,
|
|
123
|
+
onEditCredential,
|
|
124
|
+
onRefreshOAuthCredential,
|
|
125
|
+
refreshingCredentialId,
|
|
126
|
+
configWarnings,
|
|
127
|
+
configErrors,
|
|
128
|
+
runError,
|
|
129
|
+
fieldErrors,
|
|
130
|
+
nodeType,
|
|
131
|
+
modelStatusMessage,
|
|
132
|
+
portalContainer,
|
|
133
|
+
upstreamVariables: _upstreamVariables = [],
|
|
134
|
+
inputData,
|
|
135
|
+
headerLabel,
|
|
136
|
+
onHeaderLabelChange,
|
|
137
|
+
headerNodeTypeLabel,
|
|
138
|
+
HeaderIcon,
|
|
139
|
+
headerCategoryColor,
|
|
140
|
+
onRunNode,
|
|
141
|
+
runButtonLabel = 'Run Node',
|
|
142
|
+
runDisabled = false,
|
|
143
|
+
isRunning = false,
|
|
144
|
+
agentTools,
|
|
145
|
+
}: ConfigurationPanelProps) {
|
|
146
|
+
const isAgent = nodeType === GraphNodeType.AGENT && !!agentTools;
|
|
147
|
+
const [activeTab, setActiveTab] = useState<'settings' | 'tools'>('settings');
|
|
148
|
+
|
|
149
|
+
const visibleFields = useMemo(
|
|
150
|
+
() => (definition?.paramFields || []).filter((field) => !field.hidden),
|
|
151
|
+
[definition?.paramFields],
|
|
152
|
+
);
|
|
153
|
+
|
|
154
|
+
const credentialFields = useMemo(
|
|
155
|
+
() => visibleFields.filter((field) => field.type === 'credential'),
|
|
156
|
+
[visibleFields],
|
|
157
|
+
);
|
|
158
|
+
|
|
159
|
+
const otherFields = useMemo(
|
|
160
|
+
() => visibleFields.filter((field) => field.type !== 'credential'),
|
|
161
|
+
[visibleFields],
|
|
162
|
+
);
|
|
163
|
+
const hasExpandableParameterFields = useMemo(
|
|
164
|
+
() => otherFields.some((field) => ['textarea', 'json', 'code'].includes(field.type)),
|
|
165
|
+
[otherFields],
|
|
166
|
+
);
|
|
167
|
+
|
|
168
|
+
const requiresCredential = credentialFields.length > 0;
|
|
169
|
+
|
|
170
|
+
const parametersEmptyMessage = definition
|
|
171
|
+
? 'This node does not expose any editable parameters.'
|
|
172
|
+
: 'No configuration available for this node.';
|
|
173
|
+
|
|
174
|
+
return (
|
|
175
|
+
<ResizablePanel defaultSize={30} minSize={20} className="h-full">
|
|
176
|
+
<div className="flex flex-col h-full overflow-hidden imp-node-config-root bg-background">
|
|
177
|
+
{/* Node identity header */}
|
|
178
|
+
{headerLabel !== undefined && (
|
|
179
|
+
<div className="flex items-center gap-2 px-3 py-2 border-b border-border shrink-0">
|
|
180
|
+
{HeaderIcon && (
|
|
181
|
+
<div
|
|
182
|
+
className={cn(
|
|
183
|
+
'flex h-6 w-6 shrink-0 items-center justify-center rounded-md',
|
|
184
|
+
headerCategoryColor,
|
|
185
|
+
)}
|
|
186
|
+
>
|
|
187
|
+
<HeaderIcon className="w-3.5 h-3.5" />
|
|
188
|
+
</div>
|
|
189
|
+
)}
|
|
190
|
+
<InlineEdit
|
|
191
|
+
value={headerLabel}
|
|
192
|
+
onChange={
|
|
193
|
+
onHeaderLabelChange ??
|
|
194
|
+
(() => {
|
|
195
|
+
// noop
|
|
196
|
+
})
|
|
197
|
+
}
|
|
198
|
+
placeholder="Untitled Node"
|
|
199
|
+
displayClassName="text-sm font-semibold truncate"
|
|
200
|
+
inputClassName="text-sm font-semibold h-auto py-0.5 px-1"
|
|
201
|
+
/>
|
|
202
|
+
{headerNodeTypeLabel && !isAgent && (
|
|
203
|
+
<span className="text-[10px] text-muted-foreground capitalize shrink-0">
|
|
204
|
+
{headerNodeTypeLabel}
|
|
205
|
+
</span>
|
|
206
|
+
)}
|
|
207
|
+
<div className="flex-1" />
|
|
208
|
+
|
|
209
|
+
{/* Agent tab bar — centered, matches ModeSwitcher (edit/runs) style */}
|
|
210
|
+
{isAgent && (
|
|
211
|
+
<div className="inline-flex items-center rounded-md border border-border bg-muted/40 p-0.5 shrink-0">
|
|
212
|
+
<Button
|
|
213
|
+
variant="ghost"
|
|
214
|
+
size="sm"
|
|
215
|
+
onClick={() => setActiveTab('settings')}
|
|
216
|
+
className={cn(
|
|
217
|
+
'h-7 gap-1.5 rounded-sm px-2.5 text-xs font-medium',
|
|
218
|
+
activeTab === 'settings'
|
|
219
|
+
? 'bg-card text-foreground shadow-sm hover:bg-card border border-border/60'
|
|
220
|
+
: 'text-muted-foreground/60 hover:text-foreground border border-transparent',
|
|
221
|
+
)}
|
|
222
|
+
>
|
|
223
|
+
<Settings className="h-3.5 w-3.5" />
|
|
224
|
+
Settings
|
|
225
|
+
</Button>
|
|
226
|
+
<Button
|
|
227
|
+
variant="ghost"
|
|
228
|
+
size="sm"
|
|
229
|
+
onClick={() => setActiveTab('tools')}
|
|
230
|
+
className={cn(
|
|
231
|
+
'h-7 gap-1.5 rounded-sm px-2.5 text-xs font-medium',
|
|
232
|
+
activeTab === 'tools'
|
|
233
|
+
? 'bg-card text-foreground shadow-sm hover:bg-card border border-border/60'
|
|
234
|
+
: 'text-muted-foreground/60 hover:text-foreground border border-transparent',
|
|
235
|
+
)}
|
|
236
|
+
>
|
|
237
|
+
<Wrench className="h-3.5 w-3.5" />
|
|
238
|
+
Tools
|
|
239
|
+
{agentTools && agentTools.addedTools.length > 0 && (
|
|
240
|
+
<Badge variant="secondary" className="h-4 px-1 text-[10px] tabular-nums">
|
|
241
|
+
{agentTools.addedTools.length}
|
|
242
|
+
</Badge>
|
|
243
|
+
)}
|
|
244
|
+
</Button>
|
|
245
|
+
</div>
|
|
246
|
+
)}
|
|
247
|
+
|
|
248
|
+
<div className="flex-1" />
|
|
249
|
+
|
|
250
|
+
<Button
|
|
251
|
+
variant="default"
|
|
252
|
+
size="sm"
|
|
253
|
+
className="h-8 px-3 gap-1.5 shrink-0 text-xs font-semibold"
|
|
254
|
+
onClick={() => {
|
|
255
|
+
if (!runDisabled && !isRunning && onRunNode) {
|
|
256
|
+
onRunNode();
|
|
257
|
+
}
|
|
258
|
+
}}
|
|
259
|
+
disabled={runDisabled || isRunning}
|
|
260
|
+
>
|
|
261
|
+
{isRunning ? (
|
|
262
|
+
<Loader2 className="w-3 h-3 animate-spin" />
|
|
263
|
+
) : (
|
|
264
|
+
<Play className="w-3 h-3" />
|
|
265
|
+
)}
|
|
266
|
+
{isRunning ? 'Running…' : runButtonLabel}
|
|
267
|
+
</Button>
|
|
268
|
+
</div>
|
|
269
|
+
)}
|
|
270
|
+
|
|
271
|
+
{/* ── Tab Content ─────────────────────────────────────── */}
|
|
272
|
+
{isAgent && activeTab === 'tools' ? (
|
|
273
|
+
<AgentToolsPanel {...agentTools} portalContainer={portalContainer} />
|
|
274
|
+
) : (
|
|
275
|
+
/* Settings content (default, or always for non-agent nodes) */
|
|
276
|
+
<ScrollArea className="flex-1 min-h-0">
|
|
277
|
+
<div
|
|
278
|
+
className={cn(
|
|
279
|
+
'imp-node-config-form min-h-full p-3 text-xs flex flex-col gap-4',
|
|
280
|
+
hasExpandableParameterFields && 'h-full',
|
|
281
|
+
)}
|
|
282
|
+
>
|
|
283
|
+
{/* Credentials section */}
|
|
284
|
+
{requiresCredential && (
|
|
285
|
+
<div className="space-y-2.5">
|
|
286
|
+
<div className="flex items-center gap-1.5">
|
|
287
|
+
<Key className="w-3 h-3 text-muted-foreground" />
|
|
288
|
+
<h4 className="text-[10px] font-semibold tracking-wider uppercase text-muted-foreground">
|
|
289
|
+
Credentials
|
|
290
|
+
</h4>
|
|
291
|
+
</div>
|
|
292
|
+
<CredentialsSection
|
|
293
|
+
fields={credentialFields}
|
|
294
|
+
formValues={formValues}
|
|
295
|
+
onFieldChange={onFieldChange}
|
|
296
|
+
credentials={credentials}
|
|
297
|
+
isLoading={credentialsLoading}
|
|
298
|
+
isError={credentialsError}
|
|
299
|
+
onRefresh={onRefreshCredentials}
|
|
300
|
+
onAddNewCredential={onAddNewCredential}
|
|
301
|
+
onEditCredential={onEditCredential}
|
|
302
|
+
onRefreshOAuthCredential={onRefreshOAuthCredential}
|
|
303
|
+
refreshingCredentialId={refreshingCredentialId}
|
|
304
|
+
portalContainer={portalContainer}
|
|
305
|
+
disablePortal
|
|
306
|
+
/>
|
|
307
|
+
</div>
|
|
308
|
+
)}
|
|
309
|
+
|
|
310
|
+
{/* Parameters section */}
|
|
311
|
+
<div
|
|
312
|
+
className={cn(
|
|
313
|
+
'flex flex-col gap-2.5',
|
|
314
|
+
hasExpandableParameterFields && 'flex-1 min-h-0',
|
|
315
|
+
)}
|
|
316
|
+
>
|
|
317
|
+
<div className="flex items-center gap-1.5">
|
|
318
|
+
<Settings className="w-3 h-3 text-muted-foreground" />
|
|
319
|
+
<h4 className="text-[10px] font-semibold tracking-wider uppercase text-muted-foreground">
|
|
320
|
+
Parameters
|
|
321
|
+
</h4>
|
|
322
|
+
</div>
|
|
323
|
+
<ParametersSection
|
|
324
|
+
fields={definition ? otherFields : []}
|
|
325
|
+
formValues={formValues}
|
|
326
|
+
onFieldChange={onFieldChange}
|
|
327
|
+
emptyMessage={parametersEmptyMessage}
|
|
328
|
+
portalContainer={portalContainer}
|
|
329
|
+
nodeType={nodeType}
|
|
330
|
+
inputData={inputData}
|
|
331
|
+
fieldErrors={fieldErrors}
|
|
332
|
+
/>
|
|
333
|
+
</div>
|
|
334
|
+
|
|
335
|
+
{/* Warnings */}
|
|
336
|
+
{configWarnings.length > 0 && (
|
|
337
|
+
<div className="flex items-start gap-2 p-2.5 rounded-md bg-accent/30 border border-border">
|
|
338
|
+
<AlertTriangle className="w-3.5 h-3.5 text-accent-foreground mt-0.5 shrink-0" />
|
|
339
|
+
<div className="space-y-1 text-xs text-accent-foreground">
|
|
340
|
+
{configWarnings.map((warning, index) => (
|
|
341
|
+
<div key={`node-config-warning-${index}`}>{warning}</div>
|
|
342
|
+
))}
|
|
343
|
+
</div>
|
|
344
|
+
</div>
|
|
345
|
+
)}
|
|
346
|
+
|
|
347
|
+
{/* Errors */}
|
|
348
|
+
{configErrors.length > 0 && (
|
|
349
|
+
<div className="flex items-start gap-2 p-2.5 rounded-md bg-destructive/5 border border-destructive/20">
|
|
350
|
+
<AlertCircle className="w-3.5 h-3.5 text-destructive mt-0.5 shrink-0" />
|
|
351
|
+
<div className="space-y-1 text-xs text-destructive">
|
|
352
|
+
{configErrors.map((error, index) => (
|
|
353
|
+
<div key={`node-config-error-${index}`}>{error}</div>
|
|
354
|
+
))}
|
|
355
|
+
</div>
|
|
356
|
+
</div>
|
|
357
|
+
)}
|
|
358
|
+
|
|
359
|
+
{/* Run error */}
|
|
360
|
+
{runError && fieldErrors && Object.keys(fieldErrors).length > 0 ? (
|
|
361
|
+
<div className="flex items-start gap-2 p-2.5 rounded-md bg-destructive/5 border border-destructive/20">
|
|
362
|
+
<AlertCircle className="w-3.5 h-3.5 text-destructive mt-0.5 shrink-0" />
|
|
363
|
+
<div className="text-xs text-destructive">
|
|
364
|
+
<strong>Validation failed:</strong> {Object.keys(fieldErrors).length} field
|
|
365
|
+
{Object.keys(fieldErrors).length > 1 ? 's have' : ' has'} errors — see
|
|
366
|
+
highlighted fields above
|
|
367
|
+
</div>
|
|
368
|
+
</div>
|
|
369
|
+
) : runError ? (
|
|
370
|
+
<ExecutionErrorDisplay error={runError} />
|
|
371
|
+
) : null}
|
|
372
|
+
|
|
373
|
+
{/* Model status message */}
|
|
374
|
+
{nodeType === GraphNodeType.MODEL && modelStatusMessage && (
|
|
375
|
+
<div className="px-1 text-xs text-muted-foreground">{modelStatusMessage}</div>
|
|
376
|
+
)}
|
|
377
|
+
</div>
|
|
378
|
+
</ScrollArea>
|
|
379
|
+
)}
|
|
380
|
+
</div>
|
|
381
|
+
</ResizablePanel>
|
|
382
|
+
);
|
|
383
|
+
}
|