n8n-editor-ui 2.3.1 → 2.4.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/data/node-popularity.json +1920 -1916
- package/dist/assets/{AddDataTableModal-DnW0v2OC.js → AddDataTableModal-Y13E7Akf.js} +18 -22
- package/dist/assets/{AgentEditorModal-CnYw6elM.css → AgentEditorModal-9v5_7c4M.css} +11 -7
- package/dist/assets/{AgentEditorModal-Djnq_0FY.js → AgentEditorModal-BrMkCIu5.js} +34 -38
- package/dist/assets/{Alert-KBN7v2aB.js → Alert-C0sX2MmC.js} +9 -9
- package/dist/assets/AnimatedSpinner-B25lpnvb.js +15 -0
- package/dist/assets/{AnnotationTagsDropdown.ee-QStDN6Th.js → AnnotationTagsDropdown.ee-D52VzZRF.js} +6 -6
- package/dist/assets/{MainHeader-D7esq2FA.js → AppHeader-BMRzlZ88.js} +359 -529
- package/dist/assets/{MainHeader-CSaAWCWj.css → AppHeader-CiEVBSe4.css} +42 -160
- package/dist/assets/{MainSidebar-BehIhk7J.js → AppSidebar-B88OkpG6.js} +107 -84
- package/dist/assets/{MainSidebar-CEsQ8o1Y.css → AppSidebar-qYnACKTG.css} +13 -4
- package/dist/assets/{AuthView-8nC1kvaA.js → AuthView-B28bjxIF.js} +12 -12
- package/dist/assets/{SettingsView-6sirGv9l.css → BottomMenu-CYgiV90C.css} +57 -37
- package/dist/assets/{BottomMenu-B-HQRX4l.js → BottomMenu-CfzAqh6J.js} +70 -168
- package/dist/assets/{useCanvasMapping-Cl6iFzZx.js → CanvasRunWorkflowButton-CLV9eJ9R.js} +268 -262
- package/dist/assets/{useCanvasMapping-CyDAqgNV.css → CanvasRunWorkflowButton-D_Rqnskj.css} +203 -203
- package/dist/assets/{ChangePasswordView-B4U_r0Av.js → ChangePasswordView-CXDHJS_U.js} +14 -19
- package/dist/assets/ChatAgentAvatar-BqR7_kd_.js +67 -0
- package/dist/assets/{ChatAgentAvatar-B68ZZ295.css → ChatAgentAvatar-D94COYC_.css} +10 -13
- package/dist/assets/{ChatFile-Dtf_b24Y.js → ChatFile-DGN9Z6P_.js} +17 -17
- package/dist/assets/{ChatLayout-CxM-3LAt.css → ChatLayout-C5Cltxb6.css} +1 -8
- package/dist/assets/{ChatLayout-BfWVFhWE.js → ChatLayout-IMyTW2P2.js} +11 -15
- package/dist/assets/{ChatPersonalAgentsView-DTF6JtUh.js → ChatPersonalAgentsView-PT_0eEaD.js} +19 -25
- package/dist/assets/{ChatSidebar-DU5x3UPL.js → ChatSidebar-CG-7B_hY.js} +56 -72
- package/dist/assets/{ChatSidebar-DcNxY7Pt.css → ChatSidebar-D-hWKn7w.css} +126 -0
- package/dist/assets/{ChatView-D8ScSRRr.js → ChatView-DaUB9Ecc.js} +113 -113
- package/dist/assets/{ChatView-DrZ9gYjI.css → ChatView-DjGNW1KJ.css} +58 -50
- package/dist/assets/{ChatWorkflowAgentsView-Kiqxl5Dz.js → ChatWorkflowAgentsView-Dv-lY297.js} +19 -25
- package/dist/assets/CollectionParameter-CEz9OjV2.js +42 -0
- package/dist/assets/{CommunityNodeUpdateInfo-DsR3DdTu.js → CommunityNodeUpdateInfo-CauvhKGq.js} +13 -13
- package/dist/assets/{CopyInput-DJ2yTciL.js → CopyInput-B4eaHdxj.js} +15 -15
- package/dist/assets/{CredentialIcon-DJybkA4h.js → CredentialIcon-BtjftPax.js} +6 -6
- package/dist/assets/{CredentialPicker-Bao3p-41.js → CredentialPicker-BFTsdquZ.js} +8 -8
- package/dist/assets/{CredentialSelectorModal-DaRU1zXR.js → CredentialSelectorModal-y04x0moO.js} +22 -27
- package/dist/assets/{CredentialsView-wSH7BheV.js → CredentialsView-CbhjEdy6.js} +46 -52
- package/dist/assets/{DataTableActions-BMf3BHPM.js → DataTableActions-V_mGpWNk.js} +6 -6
- package/dist/assets/{DataTableDetailsView-CSIqpXLA.js → DataTableDetailsView-BaCljaXy.js} +27 -31
- package/dist/assets/{DataTableView-Blgv7Ln8.js → DataTableView-DtSSvuD-.js} +31 -37
- package/dist/assets/DemoFooter-2XBpYf-9.js +53 -0
- package/dist/assets/{Draggable-DQjeTEFr.js → Draggable-uo-iesAL.js} +5 -5
- package/dist/assets/{EmptySharedSectionActionBox-CogY0uW5.js → EmptySharedSectionActionBox-BoSKCX6d.js} +5 -5
- package/dist/assets/{EnterpriseEdition.ee-CFcDsU4a.js → EnterpriseEdition.ee-CyI_U9yB.js} +2 -2
- package/dist/assets/{EntityNotFound-DmFtFwaH.js → EntityNotFound-qBJJDr9S.js} +9 -13
- package/dist/assets/{EntityUnAuthorised-CoFxjgq9.js → EntityUnAuthorised-Ci980jH0.js} +8 -12
- package/dist/assets/{ErrorView-fGVmNs6l.js → ErrorView-D33JJAX4.js} +13 -17
- package/dist/assets/{EvaluationsRootView-CnsgFQrF.js → EvaluationsRootView-B2SD_0sA.js} +34 -37
- package/dist/assets/{EvaluationsView-V0hiFoAc.js → EvaluationsView-D9anu-so.js} +28 -34
- package/dist/assets/{ExecutionsTime-SXIffRZe.js → ExecutionsTime-Co23FVKL.js} +16 -15
- package/dist/assets/{ExecutionsView-1YV6qmab.js → ExecutionsView-BYR0BCB9.js} +62 -66
- package/dist/assets/{ExternalSecretsProviderConnectionSwitch.ee-CwhFUTJx.js → ExternalSecretsProviderConnectionSwitch.ee-DaF1WXYB.js} +18 -17
- package/dist/assets/FixedCollectionParameter-COuGvpZ8.css +642 -0
- package/dist/assets/FixedCollectionParameter-DDwNWqZ8.js +1571 -0
- package/dist/assets/FolderBreadcrumbs-CqjobwTB.js +187 -0
- package/dist/assets/{SaveButton-Dc01Y2MA.css → FolderBreadcrumbs-eBFopiOp.css} +7 -14
- package/dist/assets/{ForgotMyPasswordView-Bgtqx-Pb.js → ForgotMyPasswordView-CcxGYqHh.js} +14 -19
- package/dist/assets/{InsightsChartAverageRuntime-gpxjFP2f.js → InsightsChartAverageRuntime-69U4sUmH.js} +10 -11
- package/dist/assets/{InsightsChartFailed-DBcygly6.js → InsightsChartFailed-Ct64T5GJ.js} +8 -9
- package/dist/assets/{InsightsChartFailureRate-CY3HP65L.js → InsightsChartFailureRate-BOdV-Q3d.js} +9 -11
- package/dist/assets/{InsightsChartTimeSaved-DAfnPiRJ.js → InsightsChartTimeSaved-B83s59mL.js} +9 -11
- package/dist/assets/{InsightsChartTotal-CLtcCYXo.js → InsightsChartTotal-1A5vqW4E.js} +7 -9
- package/dist/assets/{InsightsDashboard-D3vC4R1n.js → InsightsDashboard-BgxhoT5G.js} +37 -39
- package/dist/assets/{InsightsPaywall-0gL3KDRU.js → InsightsPaywall-DlLnPCl2.js} +15 -19
- package/dist/assets/{InsightsSummary-CnIu-BEq.js → InsightsSummary-BB8IwI5i.js} +11 -11
- package/dist/assets/{InsightsTableWorkflows-BIKybxql.js → InsightsTableWorkflows-Dnldlw-H.js} +22 -25
- package/dist/assets/{KeyboardShortcutTooltip-Bg_9TS__.js → KeyboardShortcutTooltip-Dwz4Hv8g.js} +6 -6
- package/dist/assets/LogsPanel-C9bshHRi.js +40 -0
- package/dist/assets/{LogsPanel-CeaPnpLp.js → LogsPanel-CfaRZWyh.js} +100 -100
- package/dist/assets/{MCPConnectWorkflowsModal-Td3mGUN9.js → MCPConnectWorkflowsModal-DgeHxB8D.js} +36 -42
- package/dist/assets/{MigrationRuleDetail-ChDD18D8.js → MigrationRuleDetail-CtWwVzUC.js} +23 -27
- package/dist/assets/{MigrationRules-Bx-faTM3.js → MigrationRules-Om8sz8NC.js} +21 -25
- package/dist/assets/{Modal-DbNRq20p.js → Modal-DDyUIg-j.js} +27 -26
- package/dist/assets/{ModelByIdSelectorModal-Zys7oCrF.js → ModelByIdSelectorModal-DOo5k-Da.js} +18 -23
- package/dist/assets/{NDVEmptyState-DLSJV_-K.js → NDVEmptyState-CJWa4Aka.js} +15 -12
- package/dist/assets/{NodeCreation-D-51ue5r.js → NodeCreation-ClTqHJhs.js} +30 -53
- package/dist/assets/{ItemsRenderer-DkobJF9f.css → NodeCreator-039HRrqJ.css} +1525 -6
- package/dist/assets/{NodeCreator-DNZlk7YI.js → NodeCreator-BHs8o7J3.js} +978 -88
- package/dist/assets/{NodeDetailsView-Bx2kED62.js → NodeDetailsView-Cr9dlkiW.js} +72 -87
- package/dist/assets/{NodeDetailsViewV2-Cs-DNkN8.js → NodeDetailsViewV2-D_UwwehT.js} +69 -86
- package/dist/assets/{NodeIcon-BbsF7HzQ.js → NodeIcon-CXamMxe5.js} +10 -10
- package/dist/assets/{NodeIcon-BDxr0f30.css → NodeIcon-zqTc5h-V.css} +1 -1
- package/dist/assets/{NodeSettings-CihRSGnT.js → NodeSettings-DiMGfIPh.js} +73 -73
- package/dist/assets/{NodeView-C6e9qYIb.js → NodeView-CqK4OOpZ.js} +171 -149
- package/dist/assets/{NodeView-AuBajxDh.css → NodeView-Xwcu11Wh.css} +11 -11
- package/dist/assets/{OAuthConsentView-DgEpMzqe.js → OAuthConsentView-D4rD7kPg.js} +14 -18
- package/dist/assets/{ParameterInputList-C1BdtAjc.css → ParameterInputList-BUZ33Aem.css} +717 -208
- package/dist/assets/{ParameterInputList-BdolYdHT.js → ParameterInputList-DlsnXTOE.js} +1864 -1039
- package/dist/assets/{ProjectBreadcrumb-C78U49qA.js → ProjectBreadcrumb-D9hS-MYJ.js} +8 -8
- package/dist/assets/{ProjectCardBadge-BJrdwkUy.js → ProjectCardBadge-BE0KUpWh.js} +10 -10
- package/dist/assets/{ProjectHeader-BWd_Jpki.js → ProjectHeader-C_C9sbjt.js} +14 -14
- package/dist/assets/{ProjectIcon-CNEqHlzp.js → ProjectIcon-gwTM9uPG.js} +8 -8
- package/dist/assets/{ProjectRoleView-DgDH-CAz.js → ProjectRoleView-Bf4zP3qm.js} +19 -23
- package/dist/assets/{ProjectRolesView-lS6Xs6d0.js → ProjectRolesView-DhAgSeyy.js} +18 -22
- package/dist/assets/{ProjectSettings-BBjtsGXK.js → ProjectSettings-C687D50w.js} +31 -34
- package/dist/assets/{ProjectSharing-BEcymROT.js → ProjectSharing-C8e9oK7q.js} +16 -16
- package/dist/assets/{ProjectVariables-BYbTctFU.js → ProjectVariables-Bjvk3j7l.js} +40 -46
- package/dist/assets/{ProviderSettingsModal-COAKwlLh.js → ProviderSettingsModal-D7PL4Ovf.js} +20 -26
- package/dist/assets/{PushConnectionTracker-CY-LPI6v.js → PushConnectionTracker-BLfijnvC.js} +4 -4
- package/dist/assets/{ResolversView-CxbdIBE2.js → ResolversView-wd5fu-tV.js} +20 -24
- package/dist/assets/{ResourceFiltersDropdown-BlSZzGLj.js → ResourceFiltersDropdown-B9N5y-vt.js} +12 -12
- package/dist/assets/{ResourcesListLayout-DLAMdJD5.css → ResourcesListLayout-BhnhvHiw.css} +140 -0
- package/dist/assets/{ResourcesListLayout-Ej5Hcdb7.js → ResourcesListLayout-O9_3CxcA.js} +32 -23
- package/dist/assets/{RunData-CSkVEMJc.js → RunData-BhqFCEeO.js} +20367 -28266
- package/dist/assets/{RunData-CGWkR8tE.css → RunData-xpRgLK8S.css} +2 -2
- package/dist/assets/{RunDataHtml-CS6G8R8Z.js → RunDataHtml-BMxc-zRm.js} +5 -5
- package/dist/assets/RunDataHtml-wQh8fACG.js +5 -0
- package/dist/assets/{RunDataJson-BoMj9Y4H.js → RunDataJson-DXh-JzHh.js} +31 -31
- package/dist/assets/{RunDataJsonActions-BYw5OJyd.js → RunDataJsonActions-jMhBcnZ4.js} +19 -23
- package/dist/assets/{RunDataParsedAiContent-Cci_idnL.js → RunDataParsedAiContent-BbTgNtPy.js} +15 -16
- package/dist/assets/RunDataParsedAiContent-CcCTmhG0.js +15 -0
- package/dist/assets/{RunDataSearch-Cl17NZ8f.js → RunDataSearch-BVW7uE4N.js} +10 -14
- package/dist/assets/{RunDataTable-ldjWmEyj.js → RunDataTable-DUJIxl0f.js} +32 -36
- package/dist/assets/{SamlOnboarding-B4udEOGL.js → SamlOnboarding-CxYoa2cp.js} +14 -19
- package/dist/assets/{SelectedItemsInfo-0qmaX5TI.js → SelectedItemsInfo-CKmcAObD.js} +5 -5
- package/dist/assets/{SettingsApiView-DWWkTI8H.js → SettingsApiView-D3gPC7wS.js} +24 -27
- package/dist/assets/{SettingsChatHubView-DdY-v1Oz.js → SettingsChatHubView-Dyl6agLq.js} +18 -24
- package/dist/assets/{SettingsCommunityNodesView-Bh_N6Npj.js → SettingsCommunityNodesView-esGDUBkV.js} +38 -42
- package/dist/assets/{SettingsExternalSecrets-D1ahXEoY.js → SettingsExternalSecrets-BRP-TFnF.js} +18 -22
- package/dist/assets/{SettingsLdapView-BDKazZKJ.js → SettingsLdapView-BiLAMZMp.js} +22 -26
- package/dist/assets/{SettingsLogStreamingView-Rq7vLTVL.js → SettingsLogStreamingView-ByUHLila.js} +21 -24
- package/dist/assets/{SettingsMCPView-DKx7RcRB.js → SettingsMCPView-ByBI3gAH.js} +42 -46
- package/dist/assets/{SettingsPersonalView-5d6_p-hw.js → SettingsPersonalView-PuPbUFF4.js} +15 -19
- package/dist/assets/SettingsSidebar-DWKnhzbu.js +58 -0
- package/dist/assets/{useCommandBar-eK4Fv9lH.css → SettingsSidebar-hr5ASDKX.css} +22 -24
- package/dist/assets/{SettingsSourceControl-CTzXIqE3.js → SettingsSourceControl-e3k-B-T-.js} +19 -23
- package/dist/assets/{SettingsSso-CUrz-7l8.js → SettingsSso-ELd6d7Cd.js} +26 -29
- package/dist/assets/{SettingsUsageAndPlan-R9q7LfRv.js → SettingsUsageAndPlan-DTbcjDth.js} +20 -23
- package/dist/assets/{SettingsUsersView-DcmC9oO-.js → SettingsUsersView-CLdVPGwv.js} +50 -28
- package/dist/assets/{SetupTemplateFormStep-C0bRvmcc.js → SetupTemplateFormStep-CRd1UZx9.js} +15 -15
- package/dist/assets/{SetupView-Bpj6SVkS.js → SetupView-BWvvVJ_i.js} +14 -19
- package/dist/assets/{SetupWorkflowCredentialsButton-CZpFSpx5.js → SetupWorkflowCredentialsButton-Dh4fkO6K.js} +21 -20
- package/dist/assets/{SetupWorkflowFromTemplateView-DhK63ZNL.js → SetupWorkflowFromTemplateView-C5i9N-Xc.js} +21 -25
- package/dist/assets/{SeverityTag-4JkejesH.js → SeverityTag-CO2h99Dy.js} +6 -6
- package/dist/assets/{SigninView-D3PBF8fA.js → SigninView-BU__AvOm.js} +16 -20
- package/dist/assets/{SignoutView-DZcfsILm.js → SignoutView-BOMbF2VO.js} +10 -10
- package/dist/assets/{SignupView-D2QARHWC.js → SignupView-Cqs9OeBV.js} +27 -27
- package/dist/assets/{SkeletonAgentCard-BhJ27v2W.js → SkeletonAgentCard-BKWUxHb9.js} +12 -12
- package/dist/assets/{PageViewLayout-Cn6FD0Wt.css → SlideTransition-Bv5Vx35L.css} +6 -17
- package/dist/assets/SlideTransition-CWSKQ4XI.js +11 -0
- package/dist/assets/{TagsDropdown-8x1FnXzA.js → TagsDropdown-DGbottaK.js} +9 -9
- package/dist/assets/{TemplateCard-DxKAmiWm.js → TemplateCard-XTHKCDKs.js} +9 -9
- package/dist/assets/{TemplateDetails-bBAnDzfL.js → TemplateDetails-DSp01RKG.js} +20 -20
- package/dist/assets/{TemplateList-DxQ3fBxn.js → TemplateList-rOlAyX39.js} +44 -44
- package/dist/assets/{TemplatesCollectionView-DCJk2jwq.js → TemplatesCollectionView-BVfAAgHo.js} +22 -26
- package/dist/assets/{TemplatesSearchView-Bh8wuhTx.js → TemplatesSearchView-BRZPm62G.js} +49 -53
- package/dist/assets/{TemplatesView-w-y6NvIc.js → TemplatesView-B2WxZgCT.js} +6 -6
- package/dist/assets/{TemplatesWorkflowView-eo3ddDao.js → TemplatesWorkflowView-HRwmMyaL.js} +23 -27
- package/dist/assets/{TestRunDetailView-DGEhYj5_.js → TestRunDetailView-D5RXX1zN.js} +20 -25
- package/dist/assets/{TextWithHighlights-DjzuDrgO.js → TextWithHighlights-CH5Zsswa.js} +2 -2
- package/dist/assets/{TimeAgo-0Rdm0Kiq.js → TimeAgo-i_jQQBzo.js} +4 -4
- package/dist/assets/{ToolsSelectorModal-SnNw9Jip.js → ToolsSelectorModal-Cr50cu-v.js} +20 -24
- package/dist/assets/{TriggerPanel-ChJuzrpN.js → TriggerPanel-DsPiGMWb.js} +51 -51
- package/dist/assets/{VirtualSchema-wgdUJECR.js → VirtualSchema-DUQ68BrH.js} +60 -61
- package/dist/assets/{VirtualSchema-CwutU4vj.css → VirtualSchema-pdpcVEq9.css} +1 -1
- package/dist/assets/VirtualSchema-vD1WN6xC.js +28 -0
- package/dist/assets/{VueMarkdown-BRiaIhX9.js → VueMarkdown-D0Ufjusy.js} +3 -3
- package/dist/assets/{WorkerView-DPgZMV-u.js → WorkerView-tKUhJ5Dl.js} +38 -43
- package/dist/assets/{WorkflowExecutionsInfoAccordion-tLNnztlE.js → WorkflowExecutionsInfoAccordion-hO-vNiAf.js} +7 -7
- package/dist/assets/{WorkflowExecutionsLandingPage-DzSdsRSM.js → WorkflowExecutionsLandingPage-DzrSOo1F.js} +14 -18
- package/dist/assets/{WorkflowExecutionsPreview-DcRbTjpx.js → WorkflowExecutionsPreview-CizWQG9x.js} +44 -47
- package/dist/assets/{WorkflowExecutionsView-BvQhNwyi.js → WorkflowExecutionsView-DJ27bPYq.js} +60 -62
- package/dist/assets/{WorkflowHistory-C7k0u5n4.js → WorkflowHistory-CD8N5qTi.js} +198 -197
- package/dist/assets/{WorkflowHistory-BBHdNsOb.css → WorkflowHistory-dUpsKg3Z.css} +42 -75
- package/dist/assets/{WorkflowLocation-DU_oqOxw.js → WorkflowLocation-ChaEWxVS.js} +18 -18
- package/dist/assets/{WorkflowOnboardingView-DsT28Lna.js → WorkflowOnboardingView-COBDyXiZ.js} +10 -10
- package/dist/assets/{WorkflowPreview-Cv_yCx4J.js → WorkflowPreview-pbJ_UfWP.js} +9 -9
- package/dist/assets/{WorkflowTagsDropdown-BHpackqb.js → WorkflowTagsDropdown-C0g5t367.js} +6 -6
- package/dist/assets/{WorkflowsView-C-PD10oe.css → WorkflowsView-0_qNZeIx.css} +32 -42
- package/dist/assets/{WorkflowsView-CA_-v3jL.js → WorkflowsView-mroD5hze.js} +128 -239
- package/dist/assets/{_MapCache-ficiegRb.js → _MapCache-DkLivSSb.js} +46 -38
- package/dist/assets/{_baseOrderBy-UJkFlXQy.js → _baseOrderBy-DvuuRU7J.js} +8 -13
- package/dist/assets/{_initCloneObject-C3audwCb.js → _initCloneObject-DiO9tORE.js} +2 -2
- package/dist/assets/{aiTemplatesStarterCollection.store-BuNUUCwa.js → aiTemplatesStarterCollection.store-DUkMK-jk.js} +6 -6
- package/dist/assets/{apiKeys.store-DpzwcWGM.js → apiKeys.store-C0NHEBJ6.js} +4 -4
- package/dist/assets/{assistant.store-CiyiixCh.js → assistant.store-2i2uoZtV.js} +8 -8
- package/dist/assets/{auth.eventBus-B77G38R7.js → auth.eventBus-Ce2KL2L4.js} +1 -1
- package/dist/assets/{banners.store-D47aZI1r.js → banners.store-CxccIpTM.js} +7 -7
- package/dist/assets/{buttons.esm-CT4flsfB.js → buttons.esm-DHCtg4os.js} +0 -5
- package/dist/assets/canvas.utils-Dv0fD5Il.js +138 -0
- package/dist/assets/{chart-CE3HWIkr.js → chart-BpBZvUkM.js} +0 -6
- package/dist/assets/{chartjs.utils-CeXvwL6J.js → chartjs.utils-B8F_iMP1.js} +5 -5
- package/dist/assets/{chat.store-D1BqW7ao.js → chat.store-Crdaw-Cp.js} +34 -29
- package/dist/assets/{chatPanel.store-ChAzL_xE.js → chatPanel.store-oWfjNSnl.js} +6 -6
- package/dist/assets/{chunk-6z4oVpB-.js → chunk-r2Y0G7H8.js} +3 -2
- package/dist/assets/{col-Cd5kWzv_.js → col-gWKpvp-j.js} +2 -2
- package/dist/assets/collaboration.store-BbSwTk_d.js +287 -0
- package/dist/assets/{constants-DLTaaipl.js → constants-Bgby4me8.js} +12 -3
- package/dist/assets/{constants-DRIItkNt.js → constants-D48cSFnx.js} +921 -931
- package/dist/assets/core-CKLPLCBJ.js +4 -0
- package/dist/assets/{core-6W4wWNc1.js → core-DDiavqSm.js} +1 -1
- package/dist/assets/{dataTable.store-CkhtfeY0.js → dataTable.store-_wAVMcbO.js} +4 -4
- package/dist/assets/{date-picker-DsgFTiIp.js → date-picker-CutzRF4i.js} +13 -4
- package/dist/assets/{dateFormatter-DDfPHI9I.js → dateFormatter-BiQ9pMrA.js} +4 -4
- package/dist/assets/{dateformat-CM9k0--B.js → dateformat-BeHi9sF4.js} +2 -1
- package/dist/assets/{dialog-O4ZP7Mjj.js → dialog-D6bnhGrj.js} +4 -4
- package/dist/assets/{dist-DP_8je0B.js → dist-C4hPgTYg.js} +3 -3
- package/dist/assets/empty-nq5-pHAR.js +895 -0
- package/dist/assets/en-C4tPMX0d.js +2 -0
- package/dist/assets/{en-CF30SCh2.js → en-PrU4QUr7.js} +10 -2
- package/dist/assets/{es-DlTgUi2w.js → es-347rbIb-.js} +2 -2
- package/dist/assets/{evaluation.constants-DbxnAcTc.js → evaluation.constants-CSD02Lo1.js} +12 -15
- package/dist/assets/{executions.store-a5l7sYPn.js → executions.store-SHgwsnWe.js} +4 -4
- package/dist/assets/{exports-hpMZaOPT.js → exports-DwuuoPh-.js} +1 -3
- package/dist/assets/{externalSecrets.ee.store-HP2ldANj.js → externalSecrets.ee.store-Zyuqq2w2.js} +4 -4
- package/dist/assets/{folders.store-j6Xz9xvI.js → folders.store-D8rP_Hdz.js} +4 -4
- package/dist/assets/{index-B2rFJ2JV.js → index-BYX1_H81.js} +4327 -1865
- package/dist/assets/{index-U6fZiFvz.css → index-BhFfa3xu.css} +3083 -2437
- package/dist/assets/{insights.constants-C8GITe6H.js → insights.constants-98xWnZQu.js} +3 -3
- package/dist/assets/{insights.store-EBGeDNzp.js → insights.store-BtoZsG-U.js} +7 -7
- package/dist/assets/{insights.utils-B7OXsqrQ.js → insights.utils-B0txVt0Q.js} +6 -6
- package/dist/assets/{languageModules-D_uyjb6R.js → languageModules-DyQaii5v.js} +1 -1
- package/dist/assets/{logStreaming.store-C8IxWNZB.js → logStreaming.store-7BkB5s2r.js} +3 -3
- package/dist/assets/{mcp.store-BLq1CDNz.js → mcp.store-G7xff9jI.js} +4 -4
- package/dist/assets/{merge-k8vSyyXH.js → merge-B0-p153C.js} +2 -2
- package/dist/assets/{nodeCreator.store-DTc1zzIQ.js → nodeCreator.store-Dl91ajnd.js} +1932 -2216
- package/dist/assets/{nodeIcon-BWuZ9Qxh.js → nodeIcon-CUi9_d-e.js} +3 -3
- package/dist/assets/{nodeTransforms-A9ckRbW1.js → nodeTransforms-D71MPFbn.js} +2 -2
- package/dist/assets/{orderBy-BCjtsqzS.js → orderBy-zIIUzfE0.js} +3 -3
- package/dist/assets/{personalizedTemplatesV3.store-DBi4yorm.js → personalizedTemplatesV3.store-CwD8voN0.js} +4 -4
- package/dist/assets/{pickBy-1X5wiyPT.js → pickBy-BpQ_nS0j.js} +3 -3
- package/dist/assets/pushConnection.store-DEMBEciq.js +496 -0
- package/dist/assets/{radio-BeejvdFG.js → radio-I_Y35sEo.js} +2 -2
- package/dist/assets/{readyToRun.store-DfU30_Nq.js → readyToRun.store-D7MVH-Yc.js} +17 -8
- package/dist/assets/{readyToRunWorkflows.store-DgUOIs41.js → readyToRunWorkflows.store-CTCJvvBk.js} +6 -6
- package/dist/assets/{roles.store-W8yXuo53.js → roles.store-eBIJuaNR.js} +4 -4
- package/dist/assets/{router-RpMr830s.js → router-zEaOc-tq.js} +316 -304
- package/dist/assets/{sanitize-html-fRP2gWb9.js → sanitize-html-DeDnsMgc.js} +17 -18
- package/dist/assets/{semver-mGRAx708.js → semver-Bz8_abNa.js} +6 -8
- package/dist/assets/{sourceControl.eventBus-Bry8gLG7.js → sourceControl.eventBus-l-XuMGfW.js} +1 -1
- package/dist/assets/{sqlite3-worker1-bundler-friendly-BOYmhhGN.js → sqlite3-worker1-bundler-friendly-BvaOkVlV.js} +9 -2
- package/dist/assets/{src-CMoPZtHv.css → src-CUiJtOrW.css} +5070 -4059
- package/dist/assets/{src-XLGanEOK.js → src-DpZSuyLC.js} +5805 -2547
- package/dist/assets/{sso.store-B7JPsojt.js → sso.store-9EWHvrSy.js} +3 -3
- package/dist/assets/{table-Dl2CV3mu.js → table-C3aerURh.js} +5 -5
- package/dist/assets/{templateActions-CjSRb54_.js → templateActions-qowBM3Zz.js} +5 -5
- package/dist/assets/{templateTransforms-Cr1Vxjyo.js → templateTransforms-CU4zdmOp.js} +1 -1
- package/dist/assets/{truncate-B1HVeveJ.js → truncate-BrM_9cme.js} +5 -5
- package/dist/assets/{typescript.worker-CYqLvLHh.js → typescript.worker-DZR6qltN.js} +224 -176
- package/dist/assets/{usage.store-7DVTEzLA.js → usage.store-BDZxETBd.js} +3 -3
- package/dist/assets/{useActions-BVMLDnB7.js → useActions-BItklJWS.js} +5 -5
- package/dist/assets/useBugReporting-Bi1700UJ.js +130 -0
- package/dist/assets/useCalloutHelpers-DSFmB8y4.js +80 -0
- package/dist/assets/{useCanvasOperations-DmDkQZsZ.js → useCanvasOperations-DVIzBTSq.js} +36 -32
- package/dist/assets/{useClipboard-DAKz3pSk.js → useClipboard-CTTDlv6b.js} +3 -3
- package/dist/assets/{useCredentialResolvers-Bib-mabw.js → useCredentialResolvers-0jZuH4WO.js} +5 -5
- package/dist/assets/useCustomAgent-CjjqdMoN.js +630 -0
- package/dist/assets/{useCustomAgent-tUoLIUar.css → useCustomAgent-D8Sw5vcC.css} +32 -9
- package/dist/assets/{useDebounce-Bnb8W2LR.js → useDebounce-C4ttil9E.js} +12 -12
- package/dist/assets/{useExecutionData-DWNDlbxK.js → useExecutionData-BLsmVbDx.js} +2 -2
- package/dist/assets/{useExecutionDebugging-C3LhPoKB.js → useExecutionDebugging-unzyZJSo.js} +7 -7
- package/dist/assets/{useExecutionHelpers-ZH8Lpu7H.js → useExecutionHelpers-VADBx6Yx.js} +5 -5
- package/dist/assets/useGlobalEntityCreation-5MrJOTFc.js +192 -0
- package/dist/assets/{useImportCurlCommand-UjbNISl9.js → useImportCurlCommand-I3o_giV2.js} +41 -37
- package/dist/assets/{useIntersectionObserver-DXKoRNFj.js → useIntersectionObserver-CGg561I6.js} +1 -1
- package/dist/assets/{useKeybindings-DDEBPDlo.js → useKeybindings-CKjI_jnI.js} +5 -5
- package/dist/assets/{useLogsTreeExpand-DBG-3__y.js → useLogsTreeExpand-BfExNgUz.js} +41 -41
- package/dist/assets/{useMcp-zjwReQ-Q.js → useMcp-BL9EJIG9.js} +2 -2
- package/dist/assets/{usePageRedirectionHelper-w7WYnki8.js → usePageRedirectionHelper--cm71zDE.js} +3 -3
- package/dist/assets/{usePinnedData-FgnIiWSJ.js → usePinnedData-D1DKG6vB.js} +6 -6
- package/dist/assets/{usePushConnection-DL83_AN-.js → usePushConnection-DbVAGHmZ.js} +12 -16
- package/dist/assets/{useRunWorkflow-DfbxLgl-.js → useRunWorkflow-CBEpMo-i.js} +106 -486
- package/dist/assets/{useSettingsItems-CNv2tIdk.js → useSettingsItems-DDLH7vvJ.js} +5 -5
- package/dist/assets/{useTelemetryContext-B3sCbxNK.js → useTelemetryContext-s869bjx6.js} +4 -4
- package/dist/assets/{useWorkflowsCache-BG2C8qik.js → useWorkflowsCache-Cwc7AaSS.js} +2 -2
- package/dist/assets/{userRoleProvisioning.store-6aoaalkv.js → userRoleProvisioning.store-r3gAhXvj.js} +3 -3
- package/dist/assets/{builder.store-D6GyopzN.js → users.store-Dh2O3NbU.js} +22801 -23949
- package/dist/assets/utils-5SA0VwN3.js +133 -0
- package/dist/assets/{versions.store-a3DCEQMP.js → versions.store-BIW6cbdc.js} +4 -4
- package/dist/assets/{vue-Dg_43WEg.js → vue-atn33zIp.js} +255 -213
- package/dist/assets/{vue-json-pretty-DGKuDe33.js → vue-json-pretty-CTqCbq0T.js} +1 -1
- package/dist/assets/{vue.runtime.esm-bundler-tP5dCd7J.js → vue.runtime.esm-bundler-XtMkEjzB.js} +703 -538
- package/dist/assets/{worker-CIvWfg3a.js → worker-BnP12nj7.js} +10 -3
- package/dist/index.html +116 -120
- package/package.json +1 -1
- package/tsconfig.json +1 -1
- package/dist/assets/AnimatedSpinner-wiGFgffA.js +0 -15
- package/dist/assets/BottomMenu-CRVyIu-B.css +0 -474
- package/dist/assets/ChatAgentAvatar-DAg-f4vg.js +0 -67
- package/dist/assets/CollectionParameter-Y2KojQS6.js +0 -50
- package/dist/assets/DemoFooter-CySiu1O2.js +0 -63
- package/dist/assets/FixedCollectionParameter-B__avC2s.js +0 -494
- package/dist/assets/FixedCollectionParameter-DT3ELzS9.css +0 -202
- package/dist/assets/ItemsRenderer-B8E9eO9o.js +0 -922
- package/dist/assets/LogsPanel-Cei4fiyW.js +0 -50
- package/dist/assets/NodeCreator-OSIpRI6S.css +0 -1649
- package/dist/assets/PageViewLayout-BHSzOio1.js +0 -12
- package/dist/assets/PrebuiltAgentTemplatesView-C274fvLb.js +0 -152
- package/dist/assets/PrebuiltAgentTemplatesView-jF7HvWnL.css +0 -166
- package/dist/assets/RunDataHtml-CX8Hqg6s.js +0 -7
- package/dist/assets/RunDataParsedAiContent-C3de0i2J.js +0 -24
- package/dist/assets/SaveButton-DGuEjyOq.js +0 -89
- package/dist/assets/SettingsView-Clf40hKH.js +0 -88
- package/dist/assets/VirtualSchema-zUWStOer.js +0 -34
- package/dist/assets/WorkflowActivationErrorMessage-v37Lr_Ej.js +0 -17
- package/dist/assets/WorkflowActivator-BGcCOUCH.css +0 -391
- package/dist/assets/WorkflowActivator-DW5QJWKR.js +0 -362
- package/dist/assets/core-BbiIkN91.js +0 -4
- package/dist/assets/empty-DUjwPfU3.js +0 -2125
- package/dist/assets/en-DyO2pPiC.js +0 -2
- package/dist/assets/path-browserify-CJwRhuT8.js +0 -328
- package/dist/assets/schemaPreview.store-ngPsbwff.js +0 -113
- package/dist/assets/uniqBy-BInks7VO.js +0 -10
- package/dist/assets/useBeforeUnload-BNDKBmDK.js +0 -40
- package/dist/assets/useCommandBar-Ddao4vJv.js +0 -2425
- package/dist/assets/useCustomAgent-DA57piBT.js +0 -471
- package/dist/assets/useRecentResources-D-zHnbqB.js +0 -118
- package/dist/assets/useWorkflowActivate-Ct_BovMQ.js +0 -152
- package/dist/assets/utils-C2GPI2gK.js +0 -54
- /package/dist/assets/{CalendarDate-zWqgZMlk.js → CalendarDate-CogIFc4_.js} +0 -0
- /package/dist/assets/{_plugin-vue_export-helper-BwBpWJRZ.js → _plugin-vue_export-helper-fRq25RGE.js} +0 -0
- /package/dist/assets/{fileUtils-D_SiS8no.js → fileUtils-C-Bxka0b.js} +0 -0
- /package/dist/assets/{mcp.constants-DQPD3Ntp.js → mcp.constants-Djm5lWYR.js} +0 -0
- /package/dist/assets/{preload-helper-CR0ecmWK.js → preload-helper-D8n1yiy9.js} +0 -0
- /package/dist/assets/{retry-dP46utx2.js → retry-BLsJRFf0.js} +0 -0
- /package/dist/assets/{smartDecimal-DK6-_VSq.js → smartDecimal-D3Shg2YQ.js} +0 -0
- /package/dist/assets/{sortByProperty-CV1aCzkS.js → sortByProperty-Dip6DXbv.js} +0 -0
- /package/dist/assets/{sqlite3-opfs-async-proxy-vVtmDGHX.js → sqlite3-opfs-async-proxy-BrtqH9Si.js} +0 -0
- /package/dist/assets/{xml-B6veOr9z.js → xml-Cf0o4TxQ.js} +0 -0
|
@@ -1,471 +0,0 @@
|
|
|
1
|
-
import { C as computed, Cn as toDisplayString, D as createElementBlock, E as createCommentVNode, Gt as unref, It as ref, M as createVNode, P as defineComponent, T as createBlock, Ut as toValue, Z as onMounted, _ as Fragment, _t as watch, bn as normalizeStyle, bt as withCtx, c as useCssModule, et as openBlock, it as renderList, j as createTextVNode, mt as useTemplateRef, vn as normalizeClass, w as createBaseVNode } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
-
import { _t as useI18n, g as onClickOutside } from "./_MapCache-ficiegRb.js";
|
|
3
|
-
import { M as N8nNavigationDropdown_default, Sn as N8nButton_default, ht as N8nTooltip_default, wn as N8nIcon_default, xn as N8nText_default } from "./src-XLGanEOK.js";
|
|
4
|
-
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
|
|
5
|
-
import { Nt as useNodeTypesStore, O as useTelemetry, Xn as useProjectsStore, gn as useCredentialsStore, gs as useSettingsStore, oa as useUIStore } from "./builder.store-D6GyopzN.js";
|
|
6
|
-
import { Ao as getResourcePermissions, Qr as chatHubLLMProviderSchema, Yr as PROVIDER_CREDENTIAL_TYPE_MAP } from "./constants-DRIItkNt.js";
|
|
7
|
-
import { t as NodeIcon_default } from "./NodeIcon-BbsF7HzQ.js";
|
|
8
|
-
import { t as CredentialIcon_default } from "./CredentialIcon-DJybkA4h.js";
|
|
9
|
-
import { i as CHAT_MODEL_BY_ID_SELECTOR_MODAL_KEY, m as providerDisplayNames, r as CHAT_CREDENTIAL_SELECTOR_MODAL_KEY } from "./constants-DLTaaipl.js";
|
|
10
|
-
import { a as flattenModel, d as personalAgentDefaultIcon, f as stringifyModel, m as workflowAgentDefaultIcon, o as fromStringToModel, t as useChatStore, u as isLlmProviderModel } from "./chat.store-D1BqW7ao.js";
|
|
11
|
-
import { t as ChatAgentAvatar_default } from "./ChatAgentAvatar-DAg-f4vg.js";
|
|
12
|
-
function truncateBeforeLast(text, maxLength, lastCharsLength = 5) {
|
|
13
|
-
const chars = [];
|
|
14
|
-
const segmenter = new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
15
|
-
for (const { segment } of segmenter.segment(text)) chars.push(segment);
|
|
16
|
-
if (chars.length <= maxLength) return text;
|
|
17
|
-
const lastWordIndex = chars.findLastIndex((ch) => ch.match(/^\s+$/)) + 1;
|
|
18
|
-
const lastWord = chars.slice(lastWordIndex);
|
|
19
|
-
const ellipsis = "…";
|
|
20
|
-
const ellipsisLength = 1;
|
|
21
|
-
if (lastWord.length < 15) {
|
|
22
|
-
const charsToRemove = chars.length - maxLength + ellipsisLength;
|
|
23
|
-
const indexBeforeLastWord = lastWordIndex;
|
|
24
|
-
const keepLength = indexBeforeLastWord - charsToRemove;
|
|
25
|
-
if (keepLength > 0) return chars.slice(0, keepLength).join("") + ellipsis + chars.slice(indexBeforeLastWord).join("");
|
|
26
|
-
}
|
|
27
|
-
if (lastCharsLength < 1) return chars.slice(0, maxLength).join("") + ellipsis;
|
|
28
|
-
return chars.slice(0, maxLength - lastCharsLength - ellipsisLength).join("") + ellipsis + chars.slice(-lastCharsLength).join("");
|
|
29
|
-
}
|
|
30
|
-
var NEW_AGENT_MENU_ID = "agent::new";
|
|
31
|
-
var MAX_AGENT_NAME_CHARS = 30;
|
|
32
|
-
var MAX_AGENT_NAME_CHARS_MENU = 45;
|
|
33
|
-
var ModelSelector_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
34
|
-
__name: "ModelSelector",
|
|
35
|
-
props: {
|
|
36
|
-
selectedAgent: {},
|
|
37
|
-
includeCustomAgents: {
|
|
38
|
-
type: Boolean,
|
|
39
|
-
default: true
|
|
40
|
-
},
|
|
41
|
-
credentials: {},
|
|
42
|
-
text: { type: Boolean },
|
|
43
|
-
warnMissingCredentials: {
|
|
44
|
-
type: Boolean,
|
|
45
|
-
default: false
|
|
46
|
-
},
|
|
47
|
-
agents: {},
|
|
48
|
-
isLoading: { type: Boolean }
|
|
49
|
-
},
|
|
50
|
-
emits: [
|
|
51
|
-
"change",
|
|
52
|
-
"createCustomAgent",
|
|
53
|
-
"selectCredential"
|
|
54
|
-
],
|
|
55
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
56
|
-
const emit = __emit;
|
|
57
|
-
function handleSelectCredentials(provider, id) {
|
|
58
|
-
emit("selectCredential", provider, id);
|
|
59
|
-
}
|
|
60
|
-
function handleSelectModelById(provider, modelId) {
|
|
61
|
-
emit("change", {
|
|
62
|
-
provider,
|
|
63
|
-
model: modelId
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
const i18n = useI18n();
|
|
67
|
-
const dropdownRef = useTemplateRef("dropdownRef");
|
|
68
|
-
const uiStore = useUIStore();
|
|
69
|
-
const settingStore = useSettingsStore();
|
|
70
|
-
const credentialsStore = useCredentialsStore();
|
|
71
|
-
const projectStore = useProjectsStore();
|
|
72
|
-
const telemetry = useTelemetry();
|
|
73
|
-
const styles = useCssModule();
|
|
74
|
-
const credentialsName = computed(() => __props.selectedAgent ? credentialsStore.getCredentialById(__props.credentials?.[__props.selectedAgent.model.provider] ?? "")?.name : void 0);
|
|
75
|
-
const isCredentialsRequired = computed(() => isLlmProviderModel(__props.selectedAgent?.model));
|
|
76
|
-
const isCredentialsMissing = computed(() => __props.warnMissingCredentials && isCredentialsRequired.value && __props.selectedAgent?.model.provider && !__props.credentials?.[__props.selectedAgent?.model.provider]);
|
|
77
|
-
const menu = computed(() => {
|
|
78
|
-
const menuItems = [];
|
|
79
|
-
const fullNamesMap = {};
|
|
80
|
-
if (__props.includeCustomAgents) {
|
|
81
|
-
const n8nAgentsSubmenu = [];
|
|
82
|
-
if (__props.isLoading) n8nAgentsSubmenu.push({
|
|
83
|
-
id: "loading",
|
|
84
|
-
title: i18n.baseText("generic.loadingEllipsis"),
|
|
85
|
-
disabled: true
|
|
86
|
-
});
|
|
87
|
-
else if (__props.agents.n8n.models.length === 0) n8nAgentsSubmenu.push({
|
|
88
|
-
id: "no-agents",
|
|
89
|
-
title: i18n.baseText("chatHub.workflowAgents.empty.noAgents"),
|
|
90
|
-
disabled: true
|
|
91
|
-
});
|
|
92
|
-
else n8nAgentsSubmenu.push(...__props.agents.n8n.models.map((agent) => {
|
|
93
|
-
const id = stringifyModel(agent.model);
|
|
94
|
-
fullNamesMap[id] = agent.name;
|
|
95
|
-
return {
|
|
96
|
-
id,
|
|
97
|
-
icon: agent.icon ?? workflowAgentDefaultIcon,
|
|
98
|
-
iconSize: "large",
|
|
99
|
-
title: truncateBeforeLast(agent.name, MAX_AGENT_NAME_CHARS_MENU),
|
|
100
|
-
disabled: false,
|
|
101
|
-
description: agent.description ? truncateBeforeLast(agent.description, 200, 0) : void 0
|
|
102
|
-
};
|
|
103
|
-
}));
|
|
104
|
-
const customAgents = __props.isLoading ? [] : __props.agents["custom-agent"].models.map((agent) => {
|
|
105
|
-
const id = stringifyModel(agent.model);
|
|
106
|
-
fullNamesMap[id] = agent.name;
|
|
107
|
-
return {
|
|
108
|
-
id,
|
|
109
|
-
icon: agent.icon ?? personalAgentDefaultIcon,
|
|
110
|
-
iconSize: "large",
|
|
111
|
-
title: truncateBeforeLast(agent.name, MAX_AGENT_NAME_CHARS_MENU),
|
|
112
|
-
disabled: false,
|
|
113
|
-
description: agent.description ? truncateBeforeLast(agent.description, 200, 0) : void 0
|
|
114
|
-
};
|
|
115
|
-
});
|
|
116
|
-
menuItems.push({
|
|
117
|
-
id: "custom-agents",
|
|
118
|
-
title: i18n.baseText("chatHub.agent.personalAgents"),
|
|
119
|
-
icon: "message-square",
|
|
120
|
-
iconSize: "large",
|
|
121
|
-
iconMargin: false,
|
|
122
|
-
submenu: [...__props.isLoading ? [{
|
|
123
|
-
id: "loading",
|
|
124
|
-
title: i18n.baseText("generic.loadingEllipsis"),
|
|
125
|
-
disabled: true
|
|
126
|
-
}, {
|
|
127
|
-
isDivider: true,
|
|
128
|
-
id: "divider"
|
|
129
|
-
}] : customAgents.length > 0 ? [...customAgents, {
|
|
130
|
-
isDivider: true,
|
|
131
|
-
id: "divider"
|
|
132
|
-
}] : [], {
|
|
133
|
-
id: NEW_AGENT_MENU_ID,
|
|
134
|
-
icon: "plus",
|
|
135
|
-
iconSize: "large",
|
|
136
|
-
title: i18n.baseText("chatHub.agent.newAgent"),
|
|
137
|
-
disabled: false
|
|
138
|
-
}]
|
|
139
|
-
});
|
|
140
|
-
menuItems.push({
|
|
141
|
-
id: "n8n-agents",
|
|
142
|
-
title: i18n.baseText("chatHub.agent.workflowAgents"),
|
|
143
|
-
icon: "robot",
|
|
144
|
-
iconSize: "large",
|
|
145
|
-
iconMargin: false,
|
|
146
|
-
submenu: n8nAgentsSubmenu
|
|
147
|
-
});
|
|
148
|
-
menuItems.push({
|
|
149
|
-
isDivider: true,
|
|
150
|
-
id: "agents-divider"
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
for (const provider of chatHubLLMProviderSchema.options) {
|
|
154
|
-
const settings = settingStore.moduleSettings?.["chat-hub"]?.providers[provider];
|
|
155
|
-
if (settings && !settings.enabled) continue;
|
|
156
|
-
const configureMenu = {
|
|
157
|
-
id: `${provider}::configure`,
|
|
158
|
-
icon: "settings",
|
|
159
|
-
iconSize: "large",
|
|
160
|
-
title: i18n.baseText("chatHub.agent.configureCredentials"),
|
|
161
|
-
disabled: false
|
|
162
|
-
};
|
|
163
|
-
if (__props.isLoading) {
|
|
164
|
-
menuItems.push({
|
|
165
|
-
id: provider,
|
|
166
|
-
title: providerDisplayNames[provider],
|
|
167
|
-
submenu: [
|
|
168
|
-
configureMenu,
|
|
169
|
-
{
|
|
170
|
-
isDivider: true,
|
|
171
|
-
id: "divider"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
id: `${provider}::loading`,
|
|
175
|
-
title: i18n.baseText("generic.loadingEllipsis"),
|
|
176
|
-
disabled: true
|
|
177
|
-
}
|
|
178
|
-
]
|
|
179
|
-
});
|
|
180
|
-
continue;
|
|
181
|
-
}
|
|
182
|
-
const theAgents = [...__props.agents[provider].models];
|
|
183
|
-
for (const model of settings?.allowedModels ?? []) if (model.isManual) theAgents.push({
|
|
184
|
-
name: model.displayName,
|
|
185
|
-
description: "",
|
|
186
|
-
icon: null,
|
|
187
|
-
model: {
|
|
188
|
-
provider,
|
|
189
|
-
model: model.model
|
|
190
|
-
},
|
|
191
|
-
createdAt: "",
|
|
192
|
-
updatedAt: null,
|
|
193
|
-
metadata: {
|
|
194
|
-
inputModalities: [
|
|
195
|
-
"text",
|
|
196
|
-
"image",
|
|
197
|
-
"audio",
|
|
198
|
-
"video",
|
|
199
|
-
"file"
|
|
200
|
-
],
|
|
201
|
-
capabilities: { functionCalling: true },
|
|
202
|
-
available: true
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
const error = __props.agents[provider].error;
|
|
206
|
-
const agentOptions = theAgents.length > 0 ? theAgents.filter((agent) => agent.model.provider === "n8n" || !settings || settings.allowedModels.length === 0 || settings.allowedModels.some((m) => "model" in agent.model && m.model === agent.model.model)).map((agent) => {
|
|
207
|
-
const id = stringifyModel(agent.model);
|
|
208
|
-
fullNamesMap[id] = agent.name;
|
|
209
|
-
return {
|
|
210
|
-
id,
|
|
211
|
-
title: truncateBeforeLast(agent.name, MAX_AGENT_NAME_CHARS_MENU),
|
|
212
|
-
disabled: false
|
|
213
|
-
};
|
|
214
|
-
}).filter((item, index, self) => self.findIndex((i) => i.id === item.id) === index) : error ? [{
|
|
215
|
-
id: `${provider}::error`,
|
|
216
|
-
value: null,
|
|
217
|
-
disabled: true,
|
|
218
|
-
title: error
|
|
219
|
-
}] : [];
|
|
220
|
-
const submenu = agentOptions.concat([...agentOptions.length > 0 ? [{
|
|
221
|
-
isDivider: true,
|
|
222
|
-
id: "divider"
|
|
223
|
-
}] : [], ...settings?.allowedModels.length === 0 ? [{
|
|
224
|
-
id: `${provider}::add-model`,
|
|
225
|
-
icon: "plus",
|
|
226
|
-
iconSize: "large",
|
|
227
|
-
title: i18n.baseText("chatHub.agent.addModel"),
|
|
228
|
-
disabled: false
|
|
229
|
-
}] : []]);
|
|
230
|
-
submenu.unshift(configureMenu, ...submenu.length > 1 ? [{
|
|
231
|
-
isDivider: true,
|
|
232
|
-
id: "divider"
|
|
233
|
-
}] : []);
|
|
234
|
-
menuItems.push({
|
|
235
|
-
id: provider,
|
|
236
|
-
title: providerDisplayNames[provider],
|
|
237
|
-
submenu
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
return {
|
|
241
|
-
items: menuItems,
|
|
242
|
-
fullNames: fullNamesMap
|
|
243
|
-
};
|
|
244
|
-
});
|
|
245
|
-
const selectedLabel = computed(() => __props.selectedAgent?.name ?? i18n.baseText("chatHub.models.selector.defaultLabel"));
|
|
246
|
-
const canCreateCredentials = computed(() => {
|
|
247
|
-
return getResourcePermissions(projectStore.personalProject?.scopes).credential.create;
|
|
248
|
-
});
|
|
249
|
-
function openCredentialsSelectorOrCreate(provider) {
|
|
250
|
-
const credentialType = PROVIDER_CREDENTIAL_TYPE_MAP[provider];
|
|
251
|
-
if (credentialsStore.getCredentialsByType(credentialType).length === 0 && canCreateCredentials.value) {
|
|
252
|
-
uiStore.openNewCredential(credentialType);
|
|
253
|
-
return;
|
|
254
|
-
}
|
|
255
|
-
uiStore.openModalWithData({
|
|
256
|
-
name: CHAT_CREDENTIAL_SELECTOR_MODAL_KEY,
|
|
257
|
-
data: {
|
|
258
|
-
provider,
|
|
259
|
-
initialValue: __props.credentials?.[provider] ?? null,
|
|
260
|
-
onSelect: handleSelectCredentials
|
|
261
|
-
}
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
function openModelByIdSelector(provider) {
|
|
265
|
-
uiStore.openModalWithData({
|
|
266
|
-
name: CHAT_MODEL_BY_ID_SELECTOR_MODAL_KEY,
|
|
267
|
-
data: {
|
|
268
|
-
provider,
|
|
269
|
-
initialValue: null,
|
|
270
|
-
onSelect: handleSelectModelById
|
|
271
|
-
}
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
function onSelect(id) {
|
|
275
|
-
if (id === NEW_AGENT_MENU_ID) {
|
|
276
|
-
emit("createCustomAgent");
|
|
277
|
-
return;
|
|
278
|
-
}
|
|
279
|
-
const [, identifier] = id.split("::");
|
|
280
|
-
const parsedModel = fromStringToModel(id);
|
|
281
|
-
if (!parsedModel) return;
|
|
282
|
-
if (identifier === "configure" && isLlmProviderModel(parsedModel)) {
|
|
283
|
-
openCredentialsSelectorOrCreate(parsedModel.provider);
|
|
284
|
-
return;
|
|
285
|
-
}
|
|
286
|
-
if (identifier === "add-model" && isLlmProviderModel(parsedModel)) {
|
|
287
|
-
openModelByIdSelector(parsedModel.provider);
|
|
288
|
-
return;
|
|
289
|
-
}
|
|
290
|
-
telemetry.track("User selected model or agent", {
|
|
291
|
-
...flattenModel(parsedModel),
|
|
292
|
-
is_custom: parsedModel.provider === "custom-agent"
|
|
293
|
-
});
|
|
294
|
-
emit("change", parsedModel);
|
|
295
|
-
}
|
|
296
|
-
onClickOutside(computed(() => dropdownRef.value?.$el), () => dropdownRef.value?.close(), { ignore: [`.${styles.component} [role=menuitem]`] });
|
|
297
|
-
__expose({
|
|
298
|
-
open: () => dropdownRef.value?.open(),
|
|
299
|
-
openCredentialSelector: (provider) => openCredentialsSelectorOrCreate(provider)
|
|
300
|
-
});
|
|
301
|
-
return (_ctx, _cache) => {
|
|
302
|
-
return openBlock(), createBlock(unref(N8nNavigationDropdown_default), {
|
|
303
|
-
ref_key: "dropdownRef",
|
|
304
|
-
ref: dropdownRef,
|
|
305
|
-
"submenu-class": _ctx.$style.component,
|
|
306
|
-
menu: menu.value.items,
|
|
307
|
-
teleport: "",
|
|
308
|
-
onSelect
|
|
309
|
-
}, {
|
|
310
|
-
"item-icon": withCtx(({ item }) => [item.id in unref(PROVIDER_CREDENTIAL_TYPE_MAP) ? (openBlock(), createBlock(CredentialIcon_default, {
|
|
311
|
-
key: 0,
|
|
312
|
-
"credential-type-name": unref(PROVIDER_CREDENTIAL_TYPE_MAP)[item.id],
|
|
313
|
-
size: 16,
|
|
314
|
-
class: normalizeClass(_ctx.$style.menuIcon)
|
|
315
|
-
}, null, 8, ["credential-type-name", "class"])) : createCommentVNode("", true)]),
|
|
316
|
-
default: withCtx(() => [createVNode(unref(N8nButton_default), {
|
|
317
|
-
class: normalizeClass(_ctx.$style.dropdownButton),
|
|
318
|
-
type: "secondary",
|
|
319
|
-
text: _ctx.text,
|
|
320
|
-
"data-test-id": "chat-model-selector"
|
|
321
|
-
}, {
|
|
322
|
-
default: withCtx(() => [
|
|
323
|
-
createVNode(ChatAgentAvatar_default, {
|
|
324
|
-
agent: _ctx.selectedAgent,
|
|
325
|
-
size: credentialsName.value || !isCredentialsRequired.value ? "md" : "sm",
|
|
326
|
-
class: normalizeClass(_ctx.$style.icon)
|
|
327
|
-
}, null, 8, [
|
|
328
|
-
"agent",
|
|
329
|
-
"size",
|
|
330
|
-
"class"
|
|
331
|
-
]),
|
|
332
|
-
createBaseVNode("div", { class: normalizeClass(_ctx.$style.selected) }, [createBaseVNode("div", null, toDisplayString(unref(truncateBeforeLast)(selectedLabel.value, MAX_AGENT_NAME_CHARS)), 1), credentialsName.value ? (openBlock(), createBlock(unref(N8nText_default), {
|
|
333
|
-
key: 0,
|
|
334
|
-
size: "xsmall",
|
|
335
|
-
color: "text-light"
|
|
336
|
-
}, {
|
|
337
|
-
default: withCtx(() => [createTextVNode(toDisplayString(unref(truncateBeforeLast)(credentialsName.value, MAX_AGENT_NAME_CHARS)), 1)]),
|
|
338
|
-
_: 1
|
|
339
|
-
})) : isCredentialsMissing.value ? (openBlock(), createBlock(unref(N8nText_default), {
|
|
340
|
-
key: 1,
|
|
341
|
-
size: "xsmall",
|
|
342
|
-
color: "danger"
|
|
343
|
-
}, {
|
|
344
|
-
default: withCtx(() => [createVNode(unref(N8nIcon_default), {
|
|
345
|
-
icon: "node-validation-error",
|
|
346
|
-
size: "xsmall",
|
|
347
|
-
class: normalizeClass(_ctx.$style.credentialsMissingIcon)
|
|
348
|
-
}, null, 8, ["class"]), createTextVNode(" " + toDisplayString(unref(i18n).baseText("chatHub.agent.credentialsMissing")), 1)]),
|
|
349
|
-
_: 1
|
|
350
|
-
})) : createCommentVNode("", true)], 2),
|
|
351
|
-
createVNode(unref(N8nIcon_default), {
|
|
352
|
-
icon: "chevron-down",
|
|
353
|
-
size: "medium"
|
|
354
|
-
})
|
|
355
|
-
]),
|
|
356
|
-
_: 1
|
|
357
|
-
}, 8, ["class", "text"])]),
|
|
358
|
-
_: 1
|
|
359
|
-
}, 8, ["submenu-class", "menu"]);
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
});
|
|
363
|
-
var ModelSelector_vue_vue_type_style_index_0_lang_module_default = {
|
|
364
|
-
component: "_component_1rkhd_123",
|
|
365
|
-
dropdownButton: "_dropdownButton_1rkhd_128",
|
|
366
|
-
credentialsMissingIcon: "_credentialsMissingIcon_1rkhd_136",
|
|
367
|
-
selected: "_selected_1rkhd_141",
|
|
368
|
-
icon: "_icon_1rkhd_148",
|
|
369
|
-
menuIcon: "_menuIcon_1rkhd_153",
|
|
370
|
-
avatarIcon: "_avatarIcon_1rkhd_157"
|
|
371
|
-
};
|
|
372
|
-
var ModelSelector_default = /* @__PURE__ */ __plugin_vue_export_helper_default(ModelSelector_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": ModelSelector_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
373
|
-
var ToolsSelector_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
374
|
-
__name: "ToolsSelector",
|
|
375
|
-
props: {
|
|
376
|
-
disabled: { type: Boolean },
|
|
377
|
-
selected: {},
|
|
378
|
-
transparentBg: {
|
|
379
|
-
type: Boolean,
|
|
380
|
-
default: false
|
|
381
|
-
},
|
|
382
|
-
disabledTooltip: {}
|
|
383
|
-
},
|
|
384
|
-
emits: ["click"],
|
|
385
|
-
setup(__props, { emit: __emit }) {
|
|
386
|
-
const emit = __emit;
|
|
387
|
-
const nodeTypesStore = useNodeTypesStore();
|
|
388
|
-
const i18n = useI18n();
|
|
389
|
-
const toolCount = computed(() => __props.selected.length ?? 0);
|
|
390
|
-
const displayToolNodeTypes = computed(() => {
|
|
391
|
-
return __props.selected.slice(0, 3).map((t) => nodeTypesStore.getNodeType(t.type)).filter(Boolean);
|
|
392
|
-
});
|
|
393
|
-
const toolsLabel = computed(() => {
|
|
394
|
-
if (toolCount.value > 0) return i18n.baseText("chatHub.tools.selector.label.count", { adjustToNumber: toolCount.value });
|
|
395
|
-
return i18n.baseText("chatHub.tools.selector.label.default");
|
|
396
|
-
});
|
|
397
|
-
onMounted(async () => {
|
|
398
|
-
await nodeTypesStore.loadNodeTypesIfNotLoaded();
|
|
399
|
-
});
|
|
400
|
-
return (_ctx, _cache) => {
|
|
401
|
-
return openBlock(), createBlock(unref(N8nTooltip_default), {
|
|
402
|
-
content: _ctx.disabledTooltip,
|
|
403
|
-
disabled: !_ctx.disabledTooltip,
|
|
404
|
-
placement: "top"
|
|
405
|
-
}, {
|
|
406
|
-
default: withCtx(() => [createVNode(unref(N8nButton_default), {
|
|
407
|
-
type: "secondary",
|
|
408
|
-
"native-type": "button",
|
|
409
|
-
class: normalizeClass([_ctx.$style.toolsButton, { [_ctx.$style.transparentBg]: _ctx.transparentBg }]),
|
|
410
|
-
disabled: _ctx.disabled,
|
|
411
|
-
icon: toolCount.value > 0 ? void 0 : "plus",
|
|
412
|
-
onClick: _cache[0] || (_cache[0] = ($event) => emit("click", $event))
|
|
413
|
-
}, {
|
|
414
|
-
default: withCtx(() => [toolCount.value ? (openBlock(), createElementBlock("span", {
|
|
415
|
-
key: 0,
|
|
416
|
-
class: normalizeClass(_ctx.$style.iconStack)
|
|
417
|
-
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(displayToolNodeTypes.value, (nodeType, i) => {
|
|
418
|
-
return openBlock(), createBlock(NodeIcon_default, {
|
|
419
|
-
key: `${nodeType?.name}-${i}`,
|
|
420
|
-
style: normalizeStyle({ zIndex: displayToolNodeTypes.value.length - i }),
|
|
421
|
-
"node-type": nodeType,
|
|
422
|
-
class: normalizeClass([_ctx.$style.icon, { [_ctx.$style.iconOverlap]: i !== 0 }]),
|
|
423
|
-
circle: true,
|
|
424
|
-
size: 12
|
|
425
|
-
}, null, 8, [
|
|
426
|
-
"style",
|
|
427
|
-
"node-type",
|
|
428
|
-
"class"
|
|
429
|
-
]);
|
|
430
|
-
}), 128))], 2)) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(toolsLabel.value), 1)]),
|
|
431
|
-
_: 1
|
|
432
|
-
}, 8, [
|
|
433
|
-
"class",
|
|
434
|
-
"disabled",
|
|
435
|
-
"icon"
|
|
436
|
-
])]),
|
|
437
|
-
_: 1
|
|
438
|
-
}, 8, ["content", "disabled"]);
|
|
439
|
-
};
|
|
440
|
-
}
|
|
441
|
-
});
|
|
442
|
-
var ToolsSelector_vue_vue_type_style_index_0_lang_module_default = {
|
|
443
|
-
toolsButton: "_toolsButton_1u99p_123",
|
|
444
|
-
transparentBg: "_transparentBg_1u99p_128",
|
|
445
|
-
iconStack: "_iconStack_1u99p_132",
|
|
446
|
-
icon: "_icon_1u99p_132",
|
|
447
|
-
iconOverlap: "_iconOverlap_1u99p_145"
|
|
448
|
-
};
|
|
449
|
-
var ToolsSelector_default = /* @__PURE__ */ __plugin_vue_export_helper_default(ToolsSelector_vue_vue_type_script_setup_true_lang_default, [["__cssModules", { "$style": ToolsSelector_vue_vue_type_style_index_0_lang_module_default }]]);
|
|
450
|
-
function useCustomAgent(agentId) {
|
|
451
|
-
const store = useChatStore();
|
|
452
|
-
const isLoading = ref(false);
|
|
453
|
-
const id = computed(() => toValue(agentId));
|
|
454
|
-
const customAgent = computed(() => {
|
|
455
|
-
if (!id.value) return;
|
|
456
|
-
return store.customAgents[id.value];
|
|
457
|
-
});
|
|
458
|
-
watch(id, async (theId) => {
|
|
459
|
-
if (theId) try {
|
|
460
|
-
isLoading.value = true;
|
|
461
|
-
await store.fetchCustomAgent(theId);
|
|
462
|
-
} finally {
|
|
463
|
-
isLoading.value = false;
|
|
464
|
-
}
|
|
465
|
-
}, { immediate: true });
|
|
466
|
-
return {
|
|
467
|
-
isLoading,
|
|
468
|
-
customAgent
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
export { ToolsSelector_default as n, ModelSelector_default as r, useCustomAgent as t };
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { C as computed } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
|
|
2
|
-
import { M as useLocalStorage, _t as useI18n } from "./_MapCache-ficiegRb.js";
|
|
3
|
-
import { wn as N8nIcon_default } from "./src-XLGanEOK.js";
|
|
4
|
-
import { y as useRouter } from "./truncate-B1HVeveJ.js";
|
|
5
|
-
import { N as useWorkflowsStore, Nt as useNodeTypesStore } from "./builder.store-D6GyopzN.js";
|
|
6
|
-
import { Bo as VIEWS } from "./constants-DRIItkNt.js";
|
|
7
|
-
import { t as useCanvasOperations } from "./useCanvasOperations-DmDkQZsZ.js";
|
|
8
|
-
import { t as NodeIcon_default } from "./NodeIcon-BbsF7HzQ.js";
|
|
9
|
-
var MAX_RECENT_ITEMS = 5;
|
|
10
|
-
var MAX_RECENT_WORKFLOWS_TO_DISPLAY = 3;
|
|
11
|
-
var RECENT_WORKFLOWS_STORAGE_KEY = "n8n-recent-workflows";
|
|
12
|
-
var RECENT_NODES_STORAGE_KEY = "n8n-recent-nodes";
|
|
13
|
-
function useRecentResources() {
|
|
14
|
-
const i18n = useI18n();
|
|
15
|
-
const router = useRouter();
|
|
16
|
-
const workflowsStore = useWorkflowsStore();
|
|
17
|
-
const nodeTypesStore = useNodeTypesStore();
|
|
18
|
-
const { setNodeActive } = useCanvasOperations();
|
|
19
|
-
const recentWorkflows = useLocalStorage(RECENT_WORKFLOWS_STORAGE_KEY, []);
|
|
20
|
-
const recentNodes = useLocalStorage(RECENT_NODES_STORAGE_KEY, {});
|
|
21
|
-
function trackResourceOpened(to) {
|
|
22
|
-
if (to.name === VIEWS.WORKFLOW && typeof to.params.name === "string") {
|
|
23
|
-
const workflowId = to.params.name;
|
|
24
|
-
const isNewWorkflow = to.query.new === "true";
|
|
25
|
-
if (workflowId && !isNewWorkflow) {
|
|
26
|
-
registerWorkflowOpen(workflowId);
|
|
27
|
-
if (typeof to.params.nodeId === "string" && to.params.nodeId) registerNodeOpen(workflowId, to.params.nodeId);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function registerWorkflowOpen(workflowId) {
|
|
32
|
-
const filtered = recentWorkflows.value.filter((w) => w.id !== workflowId);
|
|
33
|
-
recentWorkflows.value = [{
|
|
34
|
-
id: workflowId,
|
|
35
|
-
openedAt: Date.now()
|
|
36
|
-
}, ...filtered].slice(0, MAX_RECENT_ITEMS);
|
|
37
|
-
}
|
|
38
|
-
function registerNodeOpen(workflowId, nodeId) {
|
|
39
|
-
const filtered = (recentNodes.value[workflowId] ?? []).filter((n) => n.nodeId !== nodeId);
|
|
40
|
-
const updatedNodes = [{
|
|
41
|
-
nodeId,
|
|
42
|
-
openedAt: Date.now()
|
|
43
|
-
}, ...filtered].slice(0, MAX_RECENT_ITEMS);
|
|
44
|
-
recentNodes.value = {
|
|
45
|
-
...recentNodes.value,
|
|
46
|
-
[workflowId]: updatedNodes
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
const recentResourceCommands = computed(() => {
|
|
50
|
-
const items = [];
|
|
51
|
-
const currentRoute = router.currentRoute.value;
|
|
52
|
-
const currentWorkflowId = currentRoute.name === VIEWS.WORKFLOW && typeof currentRoute.params.name === "string" ? currentRoute.params.name : null;
|
|
53
|
-
if (currentWorkflowId && recentNodes.value[currentWorkflowId]) {
|
|
54
|
-
const nodesForWorkflow = recentNodes.value[currentWorkflowId];
|
|
55
|
-
for (const recentNode of nodesForWorkflow) {
|
|
56
|
-
const node = workflowsStore.findNodeByPartialId(recentNode.nodeId);
|
|
57
|
-
if (!node) continue;
|
|
58
|
-
const nodeType = nodeTypesStore.getNodeType(node.type, node.typeVersion);
|
|
59
|
-
items.push({
|
|
60
|
-
id: `recent-node-${currentWorkflowId}-${recentNode.nodeId}`,
|
|
61
|
-
title: i18n.baseText("generic.openResource", { interpolate: { resource: node.name } }),
|
|
62
|
-
section: i18n.baseText("commandBar.sections.recent"),
|
|
63
|
-
icon: {
|
|
64
|
-
component: NodeIcon_default,
|
|
65
|
-
props: {
|
|
66
|
-
nodeType,
|
|
67
|
-
size: 16
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
handler: () => {
|
|
71
|
-
const node$1 = workflowsStore.findNodeByPartialId(recentNode.nodeId);
|
|
72
|
-
if (node$1) setNodeActive(node$1.id, "command_bar");
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
if (recentWorkflows.value.length > 0) {
|
|
78
|
-
let workflowsAdded = 0;
|
|
79
|
-
for (const recentWorkflow of recentWorkflows.value) {
|
|
80
|
-
if (workflowsAdded >= MAX_RECENT_WORKFLOWS_TO_DISPLAY) break;
|
|
81
|
-
const workflow = workflowsStore.getWorkflowById(recentWorkflow.id);
|
|
82
|
-
if (!workflow) continue;
|
|
83
|
-
items.push({
|
|
84
|
-
id: `recent-workflow-${recentWorkflow.id}`,
|
|
85
|
-
title: i18n.baseText("generic.openResource", { interpolate: { resource: workflow.name || i18n.baseText("commandBar.workflows.unnamed") } }),
|
|
86
|
-
section: i18n.baseText("commandBar.sections.recent"),
|
|
87
|
-
icon: {
|
|
88
|
-
component: N8nIcon_default,
|
|
89
|
-
props: { icon: "arrow-right" }
|
|
90
|
-
},
|
|
91
|
-
handler: () => {
|
|
92
|
-
const targetRoute = router.resolve({
|
|
93
|
-
name: VIEWS.WORKFLOW,
|
|
94
|
-
params: { name: recentWorkflow.id }
|
|
95
|
-
});
|
|
96
|
-
window.location.href = targetRoute.fullPath;
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
workflowsAdded++;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
return items;
|
|
103
|
-
});
|
|
104
|
-
async function initialize() {
|
|
105
|
-
const workflowsToFetch = recentWorkflows.value.slice(0, MAX_RECENT_WORKFLOWS_TO_DISPLAY);
|
|
106
|
-
await Promise.all(workflowsToFetch.map(async (recentWorkflow) => {
|
|
107
|
-
try {
|
|
108
|
-
if (!workflowsStore.getWorkflowById(recentWorkflow.id)) await workflowsStore.fetchWorkflow(recentWorkflow.id);
|
|
109
|
-
} catch {}
|
|
110
|
-
}));
|
|
111
|
-
}
|
|
112
|
-
return {
|
|
113
|
-
commands: recentResourceCommands,
|
|
114
|
-
trackResourceOpened,
|
|
115
|
-
initialize
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
export { useRecentResources as t };
|