n8n-editor-ui 2.3.3 → 2.4.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/data/node-popularity.json +1920 -1916
- package/dist/assets/{AddDataTableModal-BYsEOjtf.js → AddDataTableModal-BWxuL_U1.js} +18 -21
- package/dist/assets/{AgentEditorModal-CnYw6elM.css → AgentEditorModal-9v5_7c4M.css} +11 -7
- package/dist/assets/{AgentEditorModal-CdUKcN7b.js → AgentEditorModal-ClIVB6be.js} +34 -37
- package/dist/assets/{Alert-BSiQ7W4W.js → Alert-C0sX2MmC.js} +9 -9
- package/dist/assets/AnimatedSpinner-B25lpnvb.js +15 -0
- package/dist/assets/{AnnotationTagsDropdown.ee-CPHqM0oA.js → AnnotationTagsDropdown.ee-bqrzcFvD.js} +6 -6
- package/dist/assets/{MainHeader-KNrtVK1m.js → AppHeader-Bk2_Gkdr.js} +359 -528
- package/dist/assets/{MainHeader-CSaAWCWj.css → AppHeader-CiEVBSe4.css} +42 -160
- package/dist/assets/{MainSidebar-BvZcZjNQ.js → AppSidebar-DVQtWhNG.js} +107 -83
- package/dist/assets/{MainSidebar-CEsQ8o1Y.css → AppSidebar-qYnACKTG.css} +13 -4
- package/dist/assets/{AuthView-DBipI9XX.js → AuthView-B70yKQIj.js} +12 -12
- package/dist/assets/{SettingsView-6sirGv9l.css → BottomMenu-CYgiV90C.css} +57 -37
- package/dist/assets/{BottomMenu-n6wDMblT.js → BottomMenu-Zsty8SFw.js} +70 -168
- package/dist/assets/{useCanvasMapping-BLB5IFnL.js → CanvasRunWorkflowButton-D05EeNT9.js} +268 -262
- package/dist/assets/{useCanvasMapping-CyDAqgNV.css → CanvasRunWorkflowButton-D_Rqnskj.css} +203 -203
- package/dist/assets/{ChangePasswordView-N8tRCxXS.js → ChangePasswordView-B5SZMMPu.js} +14 -18
- package/dist/assets/{ChatAgentAvatar-B68ZZ295.css → ChatAgentAvatar-D94COYC_.css} +10 -13
- package/dist/assets/ChatAgentAvatar-lJduQjSM.js +67 -0
- package/dist/assets/{ChatFile-B6hcldJk.js → ChatFile-DGN9Z6P_.js} +17 -17
- package/dist/assets/{ChatLayout-ZIIWLYox.js → ChatLayout-B3HCEtmF.js} +11 -15
- package/dist/assets/{ChatLayout-CxM-3LAt.css → ChatLayout-C5Cltxb6.css} +1 -8
- package/dist/assets/{ChatPersonalAgentsView-CHjVJlH9.js → ChatPersonalAgentsView-CfuU16Wx.js} +19 -24
- package/dist/assets/{ChatSidebar-DcNxY7Pt.css → ChatSidebar-D-hWKn7w.css} +126 -0
- package/dist/assets/{ChatSidebar-D1wzPLte.js → ChatSidebar-DxXP8jvn.js} +56 -71
- package/dist/assets/{ChatView-CEdaGOiq.js → ChatView-DGO5M0-j.js} +113 -112
- package/dist/assets/{ChatView-DrZ9gYjI.css → ChatView-DjGNW1KJ.css} +58 -50
- package/dist/assets/{ChatWorkflowAgentsView-DDoSKFjL.js → ChatWorkflowAgentsView-BDUzYR0a.js} +19 -24
- package/dist/assets/CollectionParameter-CX0d0ppe.js +42 -0
- package/dist/assets/{CommunityNodeUpdateInfo-D_fpxg7T.js → CommunityNodeUpdateInfo-BzF3To7U.js} +13 -13
- package/dist/assets/{CopyInput-CkRSExvb.js → CopyInput-B3eGtGOr.js} +15 -15
- package/dist/assets/{CredentialIcon-CsmA8n5q.js → CredentialIcon-Co-DgDkv.js} +6 -6
- package/dist/assets/{CredentialPicker-Dc9_fQqB.js → CredentialPicker-xUgsLzd_.js} +8 -8
- package/dist/assets/{CredentialSelectorModal-CrHTSX3D.js → CredentialSelectorModal-te4cxLHY.js} +22 -26
- package/dist/assets/{CredentialsView-BHjKX7p7.js → CredentialsView-CSMNv5Qi.js} +46 -51
- package/dist/assets/{DataTableActions-Baa_gpFk.js → DataTableActions-BkI1G_w4.js} +6 -6
- package/dist/assets/{DataTableDetailsView-Csre5EoG.js → DataTableDetailsView-D5XYBEVr.js} +27 -30
- package/dist/assets/{DataTableView-DvZt7cVh.js → DataTableView-U-FAWXix.js} +31 -36
- package/dist/assets/DemoFooter-uIyuy9UT.js +53 -0
- package/dist/assets/{Draggable-wlu-YKYh.js → Draggable-0gyx_CsY.js} +5 -5
- package/dist/assets/{EmptySharedSectionActionBox-BoAVktyy.js → EmptySharedSectionActionBox-DtGMtVsp.js} +5 -5
- package/dist/assets/{EnterpriseEdition.ee-CvUo0Y3B.js → EnterpriseEdition.ee-UhVkBS4f.js} +2 -2
- package/dist/assets/{EntityNotFound-Dk9s3CwF.js → EntityNotFound-qBJJDr9S.js} +9 -12
- package/dist/assets/{EntityUnAuthorised-h6YriaK9.js → EntityUnAuthorised-Ci980jH0.js} +8 -11
- package/dist/assets/{ErrorView-BGXVjv22.js → ErrorView-CPQg7TDd.js} +13 -16
- package/dist/assets/{EvaluationsRootView-CEJYrCEy.js → EvaluationsRootView-CzP9JGh2.js} +34 -36
- package/dist/assets/{EvaluationsView-DmaEZ7wK.js → EvaluationsView-ikx3LyQf.js} +28 -33
- package/dist/assets/{ExecutionsTime-K-nIEY55.js → ExecutionsTime-D5RuLFMY.js} +16 -15
- package/dist/assets/{ExecutionsView-BC4uwKPS.js → ExecutionsView-cMwfmY4W.js} +62 -65
- package/dist/assets/{ExternalSecretsProviderConnectionSwitch.ee-DYabADwO.js → ExternalSecretsProviderConnectionSwitch.ee-BglbvOQG.js} +18 -17
- package/dist/assets/FixedCollectionParameter-COuGvpZ8.css +642 -0
- package/dist/assets/FixedCollectionParameter-rO9blroR.js +1571 -0
- package/dist/assets/FolderBreadcrumbs-DegmC04u.js +187 -0
- package/dist/assets/{SaveButton-Dc01Y2MA.css → FolderBreadcrumbs-eBFopiOp.css} +7 -14
- package/dist/assets/{ForgotMyPasswordView-BxFjt7yf.js → ForgotMyPasswordView-CKDZcZP9.js} +14 -18
- package/dist/assets/{InsightsChartAverageRuntime-mcy8IMaN.js → InsightsChartAverageRuntime-69U4sUmH.js} +10 -11
- package/dist/assets/{InsightsChartFailed-iXvqlU_7.js → InsightsChartFailed-Ct64T5GJ.js} +8 -9
- package/dist/assets/{InsightsChartFailureRate-DzWy07B4.js → InsightsChartFailureRate-BOdV-Q3d.js} +9 -11
- package/dist/assets/{InsightsChartTimeSaved-Db1u-o2U.js → InsightsChartTimeSaved-B83s59mL.js} +9 -11
- package/dist/assets/{InsightsChartTotal-Bge4JSj-.js → InsightsChartTotal-1A5vqW4E.js} +7 -9
- package/dist/assets/{InsightsDashboard-BgxCUZWd.js → InsightsDashboard-Dpwy8q6a.js} +37 -38
- package/dist/assets/{InsightsPaywall-DJIAsFUW.js → InsightsPaywall-iaN7Yt1s.js} +15 -18
- package/dist/assets/{InsightsSummary-uZyetR3b.js → InsightsSummary-UGkz-k9w.js} +11 -11
- package/dist/assets/{InsightsTableWorkflows-9h4pU1WK.js → InsightsTableWorkflows-AP6ddx9D.js} +22 -24
- package/dist/assets/{KeyboardShortcutTooltip-Bpb4SkjE.js → KeyboardShortcutTooltip-Dwz4Hv8g.js} +6 -6
- package/dist/assets/LogsPanel-Cz9qV0gc.js +40 -0
- package/dist/assets/{LogsPanel-BG48JZqa.js → LogsPanel-DuiKN1Na.js} +100 -100
- package/dist/assets/{MCPConnectWorkflowsModal-CWg0xros.js → MCPConnectWorkflowsModal-CrhdbX54.js} +36 -41
- package/dist/assets/{MigrationRuleDetail-Dj4iZ8em.js → MigrationRuleDetail-BXj7ghDO.js} +23 -26
- package/dist/assets/{MigrationRules-CMk4HuMV.js → MigrationRules-CWeHH-jb.js} +21 -24
- package/dist/assets/{Modal-BNJXVsfA.js → Modal-CLJXjbTN.js} +27 -26
- package/dist/assets/{ModelByIdSelectorModal-BwhmTdU4.js → ModelByIdSelectorModal-_Q2e43WD.js} +18 -22
- package/dist/assets/{NDVEmptyState-D9V46oIb.js → NDVEmptyState-CJWa4Aka.js} +15 -12
- package/dist/assets/{NodeCreation-DiAqT9SN.js → NodeCreation-BKxsZGAf.js} +30 -52
- package/dist/assets/{ItemsRenderer-DkobJF9f.css → NodeCreator-039HRrqJ.css} +1525 -6
- package/dist/assets/{NodeCreator-Bjt6BI9v.js → NodeCreator-CRhdWp9N.js} +978 -87
- package/dist/assets/{NodeDetailsView-Ct9i-rTh.js → NodeDetailsView-Cm52jG-U.js} +72 -86
- package/dist/assets/{NodeDetailsViewV2-Dh4gzwFe.js → NodeDetailsViewV2-CqGBXjHp.js} +69 -85
- package/dist/assets/{NodeIcon-t97i3ntx.js → NodeIcon-SaoWBT_U.js} +10 -10
- package/dist/assets/{NodeIcon-BDxr0f30.css → NodeIcon-zqTc5h-V.css} +1 -1
- package/dist/assets/{NodeSettings-Cz9vhjW-.js → NodeSettings-BWWEo77y.js} +73 -73
- package/dist/assets/{NodeView-AuBajxDh.css → NodeView-Xwcu11Wh.css} +11 -11
- package/dist/assets/{NodeView-3Y-9RowK.js → NodeView-xEYRJxA0.js} +171 -148
- package/dist/assets/{OAuthConsentView-Bg5-jLUL.js → OAuthConsentView-D6mfPIJI.js} +14 -17
- package/dist/assets/{ParameterInputList-C1BdtAjc.css → ParameterInputList-BUZ33Aem.css} +717 -208
- package/dist/assets/{ParameterInputList-D3pQ9DPD.js → ParameterInputList-Cb2_SQfz.js} +1864 -1039
- package/dist/assets/{ProjectBreadcrumb-CwG4u83J.js → ProjectBreadcrumb-2BEX5IDD.js} +8 -8
- package/dist/assets/{ProjectCardBadge-DEF5xaop.js → ProjectCardBadge-CTVSam44.js} +10 -10
- package/dist/assets/{ProjectHeader-Ftxgilbl.js → ProjectHeader-BagblRFt.js} +14 -14
- package/dist/assets/{ProjectIcon-CBV14vRK.js → ProjectIcon-gwTM9uPG.js} +8 -8
- package/dist/assets/{ProjectRoleView-DxR_UDnr.js → ProjectRoleView-B5mhpgJj.js} +19 -22
- package/dist/assets/{ProjectRolesView-D5UGjI0u.js → ProjectRolesView-CO-fdyVV.js} +18 -21
- package/dist/assets/{ProjectSettings-DjmRzWiu.js → ProjectSettings-CpdJ0QXS.js} +31 -33
- package/dist/assets/{ProjectSharing-CXtVcK-7.js → ProjectSharing-CgRKQQe4.js} +16 -16
- package/dist/assets/{ProjectVariables-xB0qVBxe.js → ProjectVariables-B7LU3SGS.js} +40 -45
- package/dist/assets/{ProviderSettingsModal-BqKcWfeR.js → ProviderSettingsModal-RmJC0Qwe.js} +20 -25
- package/dist/assets/{PushConnectionTracker-Cwk4a7eu.js → PushConnectionTracker-v1yU_xFk.js} +4 -4
- package/dist/assets/{ResolversView-CnNl-Auj.js → ResolversView-OeI_dYci.js} +20 -23
- package/dist/assets/{ResourceFiltersDropdown-CRkQSQvs.js → ResourceFiltersDropdown-bH--4wBS.js} +12 -12
- package/dist/assets/{ResourcesListLayout-DLAMdJD5.css → ResourcesListLayout-BhnhvHiw.css} +140 -0
- package/dist/assets/{ResourcesListLayout-CreZ1Su6.js → ResourcesListLayout-CS0nUJNt.js} +32 -23
- package/dist/assets/{RunData-Ti8dstr8.js → RunData-B_Vlvf1V.js} +20367 -28266
- package/dist/assets/{RunData-CGWkR8tE.css → RunData-xpRgLK8S.css} +2 -2
- package/dist/assets/{RunDataHtml-S_j2pLRX.js → RunDataHtml-BMxc-zRm.js} +5 -5
- package/dist/assets/RunDataHtml-wQh8fACG.js +5 -0
- package/dist/assets/{RunDataJson-C9RYDf3k.js → RunDataJson-D23jdsWY.js} +31 -31
- package/dist/assets/{RunDataJsonActions-CVkDV_4I.js → RunDataJsonActions-DFa7pezf.js} +19 -22
- package/dist/assets/{RunDataParsedAiContent-B6PgQw1V.js → RunDataParsedAiContent-BCprT0E8.js} +15 -16
- package/dist/assets/RunDataParsedAiContent-o_QkeE0L.js +15 -0
- package/dist/assets/{RunDataSearch-DHw36qjO.js → RunDataSearch-BU2qi4nP.js} +10 -13
- package/dist/assets/{RunDataTable-Co9VAMrg.js → RunDataTable-BDrFzGfU.js} +32 -35
- package/dist/assets/{SamlOnboarding-CpWUC0gl.js → SamlOnboarding-DPYTM0tb.js} +14 -18
- package/dist/assets/{SelectedItemsInfo-wq6nTjan.js → SelectedItemsInfo-CKmcAObD.js} +5 -5
- package/dist/assets/{SettingsApiView-eiQOdjgq.js → SettingsApiView-BowYRtTk.js} +24 -26
- package/dist/assets/{SettingsChatHubView-D4WEo9L3.js → SettingsChatHubView-CObWHU09.js} +18 -23
- package/dist/assets/{SettingsCommunityNodesView-C0AaNOEN.js → SettingsCommunityNodesView-wk9JxXqL.js} +38 -41
- package/dist/assets/{SettingsExternalSecrets-y47selKn.js → SettingsExternalSecrets-C41eND_Y.js} +18 -21
- package/dist/assets/{SettingsLdapView-YMVYMnzw.js → SettingsLdapView-D1L1iyvE.js} +22 -25
- package/dist/assets/{SettingsLogStreamingView-BSzLdWpE.js → SettingsLogStreamingView-BqlK3i3Z.js} +21 -23
- package/dist/assets/{SettingsMCPView-BU0f3ymz.js → SettingsMCPView-CoTmbtV_.js} +42 -45
- package/dist/assets/{SettingsPersonalView-BAfYDXor.js → SettingsPersonalView-BMGG66o5.js} +15 -18
- package/dist/assets/SettingsSidebar-RZssT7t8.js +58 -0
- package/dist/assets/{useCommandBar-eK4Fv9lH.css → SettingsSidebar-hr5ASDKX.css} +22 -24
- package/dist/assets/{SettingsSourceControl-DiTdqVc2.js → SettingsSourceControl-C_XOb728.js} +19 -22
- package/dist/assets/{SettingsSso-D9mWYb6m.js → SettingsSso-DkvVZOSA.js} +26 -28
- package/dist/assets/{SettingsUsageAndPlan-Bhhz0N_R.js → SettingsUsageAndPlan-Cnxx5J_k.js} +20 -22
- package/dist/assets/{SettingsUsersView-Cyv_ZTSa.js → SettingsUsersView-DRFHlEG_.js} +50 -27
- package/dist/assets/{SetupTemplateFormStep-B-OXuIEU.js → SetupTemplateFormStep-DTl-SQ5_.js} +15 -15
- package/dist/assets/{SetupView-BvYO_h_-.js → SetupView-BfCKw7tL.js} +14 -18
- package/dist/assets/{SetupWorkflowCredentialsButton-29sPlZ15.js → SetupWorkflowCredentialsButton-BDNBEpgH.js} +21 -19
- package/dist/assets/{SetupWorkflowFromTemplateView-wGZJlu_v.js → SetupWorkflowFromTemplateView-zNitmbxd.js} +21 -24
- package/dist/assets/{SeverityTag-DiRdnrHj.js → SeverityTag-R-mbBDWg.js} +6 -6
- package/dist/assets/{SigninView-CZmSlJU4.js → SigninView-CspSfYWl.js} +16 -19
- package/dist/assets/{SignoutView-BUsJauew.js → SignoutView-CbmvjLhS.js} +10 -10
- package/dist/assets/{SignupView-CBmZdEUa.js → SignupView-D088WMnK.js} +27 -26
- package/dist/assets/{SkeletonAgentCard-felAhV_j.js → SkeletonAgentCard-DNUy88vs.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-B3TllM9L.js → TagsDropdown-998vpfi2.js} +9 -9
- package/dist/assets/{TemplateCard-SxL2lAcu.js → TemplateCard-OCtSSObW.js} +9 -9
- package/dist/assets/{TemplateDetails-joifuvuq.js → TemplateDetails-CExTaNmN.js} +20 -20
- package/dist/assets/{TemplateList-Cr8NzldM.js → TemplateList-CYVIQLBo.js} +44 -44
- package/dist/assets/{TemplatesCollectionView-KlTGNZvL.js → TemplatesCollectionView-J4-MsKaR.js} +22 -25
- package/dist/assets/{TemplatesSearchView-R9w7J_qa.js → TemplatesSearchView-FeOl_F9u.js} +49 -52
- package/dist/assets/{TemplatesView-Cva7ybP0.js → TemplatesView-B2WxZgCT.js} +6 -6
- package/dist/assets/{TemplatesWorkflowView-cZBhTHOi.js → TemplatesWorkflowView-pgmIBnml.js} +23 -26
- package/dist/assets/{TestRunDetailView-C1Pcw196.js → TestRunDetailView-We9DOF3E.js} +20 -24
- package/dist/assets/{TextWithHighlights-CgDEugGZ.js → TextWithHighlights-CH5Zsswa.js} +2 -2
- package/dist/assets/{TimeAgo-D971QnHO.js → TimeAgo-DbbBIULe.js} +4 -4
- package/dist/assets/{ToolsSelectorModal-D4oxUUCF.js → ToolsSelectorModal-D0fzbH8I.js} +20 -23
- package/dist/assets/{TriggerPanel-BkdktrEp.js → TriggerPanel-B3wcn8yr.js} +51 -51
- package/dist/assets/VirtualSchema-C4mYgt95.js +28 -0
- package/dist/assets/{VirtualSchema-Brq3RG-a.js → VirtualSchema-DTit75Ni.js} +60 -61
- package/dist/assets/{VirtualSchema-CwutU4vj.css → VirtualSchema-pdpcVEq9.css} +1 -1
- package/dist/assets/{VueMarkdown-BlVr51fL.js → VueMarkdown-D0Ufjusy.js} +3 -3
- package/dist/assets/{WorkerView-CT6vkOh0.js → WorkerView-BaJG1lYK.js} +38 -42
- package/dist/assets/{WorkflowExecutionsInfoAccordion-DSc_InaM.js → WorkflowExecutionsInfoAccordion-BAgAw-VZ.js} +7 -7
- package/dist/assets/{WorkflowExecutionsLandingPage-CuGCweH0.js → WorkflowExecutionsLandingPage-B5M2M_XO.js} +14 -17
- package/dist/assets/{WorkflowExecutionsPreview-DWGuXXJq.js → WorkflowExecutionsPreview-CGtRdwNt.js} +44 -46
- package/dist/assets/{WorkflowExecutionsView-B4v9ie53.js → WorkflowExecutionsView-R_7zX3VU.js} +60 -61
- package/dist/assets/{WorkflowHistory-BLC1cUoO.js → WorkflowHistory-BS71EB0y.js} +198 -196
- package/dist/assets/{WorkflowHistory-BBHdNsOb.css → WorkflowHistory-dUpsKg3Z.css} +42 -75
- package/dist/assets/{WorkflowLocation-X2ZVBc96.js → WorkflowLocation-CTPWi5M9.js} +18 -18
- package/dist/assets/{WorkflowOnboardingView-CmVI0XDf.js → WorkflowOnboardingView-BroupQUz.js} +10 -10
- package/dist/assets/{WorkflowPreview-CZAcz1Na.js → WorkflowPreview-DLbWDX-7.js} +9 -9
- package/dist/assets/{WorkflowTagsDropdown-DlKqZzjZ.js → WorkflowTagsDropdown-DMBpcKR1.js} +6 -6
- package/dist/assets/{WorkflowsView-C-PD10oe.css → WorkflowsView-0_qNZeIx.css} +32 -42
- package/dist/assets/{WorkflowsView-BDhK0stx.js → WorkflowsView-Bdslfqgx.js} +128 -238
- package/dist/assets/{_MapCache-ficiegRb.js → _MapCache-DkLivSSb.js} +46 -38
- package/dist/assets/{_baseOrderBy-DwurmLcj.js → _baseOrderBy-Cy5MGJv_.js} +8 -13
- package/dist/assets/{_initCloneObject-DPuE6hiH.js → _initCloneObject-DiO9tORE.js} +2 -2
- package/dist/assets/{aiTemplatesStarterCollection.store-B-exu89T.js → aiTemplatesStarterCollection.store-C5UvSRtb.js} +6 -6
- package/dist/assets/{apiKeys.store-DW3qN7-W.js → apiKeys.store-tF_8Mh4s.js} +4 -4
- package/dist/assets/{assistant.store-BWyMPD4R.js → assistant.store-BsyT2BFh.js} +8 -8
- package/dist/assets/{auth.eventBus-BQKtqsAd.js → auth.eventBus-Ce2KL2L4.js} +1 -1
- package/dist/assets/{banners.store-NV1mJdSo.js → banners.store-De4swlHn.js} +7 -7
- package/dist/assets/{buttons.esm-Euf82NbC.js → buttons.esm-DHCtg4os.js} +0 -5
- package/dist/assets/canvas.utils-6yT3qDz5.js +138 -0
- package/dist/assets/{chart-BI8B7UPV.js → chart-BpBZvUkM.js} +0 -6
- package/dist/assets/{chartjs.utils-CZqhhNLn.js → chartjs.utils-B8F_iMP1.js} +5 -5
- package/dist/assets/{chat.store-CIFGQpTZ.js → chat.store-DIrG4eKT.js} +34 -29
- package/dist/assets/{chatPanel.store-gj4bbTwF.js → chatPanel.store-XTtvoDW8.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-DuCY-6U-.js +287 -0
- package/dist/assets/{constants-vjryKFt3.js → constants-Bgby4me8.js} +12 -3
- package/dist/assets/{constants-B5yiZflE.js → constants-CRdXn3zB.js} +290 -301
- package/dist/assets/core-CKLPLCBJ.js +4 -0
- package/dist/assets/{core-BMwklDiH.js → core-DDiavqSm.js} +1 -1
- package/dist/assets/{dataTable.store-CigyhC-U.js → dataTable.store-DepEpEQf.js} +4 -4
- package/dist/assets/{date-picker-BjmPe_fb.js → date-picker-CutzRF4i.js} +13 -4
- package/dist/assets/{dateFormatter-DjYPheeb.js → dateFormatter-BiQ9pMrA.js} +4 -4
- package/dist/assets/{dateformat-BlfbK1ki.js → dateformat-BeHi9sF4.js} +2 -1
- package/dist/assets/{dialog-CFy8vuwh.js → dialog-ZxkAulrV.js} +4 -4
- package/dist/assets/{dist-BQ7E1jLN.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-C2DNxuAa.js → es-347rbIb-.js} +2 -2
- package/dist/assets/{evaluation.constants-CaU1Jek8.js → evaluation.constants-COHKT500.js} +12 -15
- package/dist/assets/{executions.store-BjQUzT_w.js → executions.store-D1BMCixf.js} +4 -4
- package/dist/assets/{exports-C5ncBo9h.js → exports-DwuuoPh-.js} +1 -3
- package/dist/assets/{externalSecrets.ee.store-DS-4lnXS.js → externalSecrets.ee.store-CClIdWWb.js} +4 -4
- package/dist/assets/{folders.store-BqKf5TBS.js → folders.store-DHmLGEYl.js} +4 -4
- package/dist/assets/{index-U6fZiFvz.css → index-BhFfa3xu.css} +3083 -2437
- package/dist/assets/{index-BFqYZQt_.js → index-CZ0ShzXs.js} +4327 -1864
- package/dist/assets/{insights.constants-D63-x9pu.js → insights.constants-98xWnZQu.js} +3 -3
- package/dist/assets/{insights.store-BwsFg9pQ.js → insights.store-B6MSLVpS.js} +7 -7
- package/dist/assets/{insights.utils-CWK5jWpE.js → insights.utils-B0txVt0Q.js} +6 -6
- package/dist/assets/{languageModules-DDJUl1h8.js → languageModules-DyQaii5v.js} +1 -1
- package/dist/assets/{logStreaming.store-BxM1T1ZK.js → logStreaming.store-3rdm0k17.js} +3 -3
- package/dist/assets/{mcp.store-ChjN6nuV.js → mcp.store--DVpfZPc.js} +4 -4
- package/dist/assets/{merge-DjI8TA-7.js → merge-B0-p153C.js} +2 -2
- package/dist/assets/{nodeCreator.store-CXJtK_5o.js → nodeCreator.store-BL_XgPCV.js} +1932 -2216
- package/dist/assets/{nodeIcon-CIlNGIQ6.js → nodeIcon-G45tSifH.js} +3 -3
- package/dist/assets/{nodeTransforms-yL73Ok-c.js → nodeTransforms-CjgwHZte.js} +2 -2
- package/dist/assets/{orderBy-DLgDRKnZ.js → orderBy-CI4ht8Wh.js} +3 -3
- package/dist/assets/{personalizedTemplatesV3.store-Bs_2J_OQ.js → personalizedTemplatesV3.store-EQdiv-tM.js} +4 -4
- package/dist/assets/{pickBy-DYW-ATsL.js → pickBy-CS854Y6u.js} +3 -3
- package/dist/assets/pushConnection.store-Rp8-mZo7.js +496 -0
- package/dist/assets/{radio-BeejvdFG.js → radio-I_Y35sEo.js} +2 -2
- package/dist/assets/{readyToRun.store-DX00OlhN.js → readyToRun.store-i9gaUDlh.js} +17 -8
- package/dist/assets/{readyToRunWorkflows.store-CR7Yn6At.js → readyToRunWorkflows.store-gcTSDf1M.js} +6 -6
- package/dist/assets/{roles.store-DeGSYcWL.js → roles.store-ByEYbWMb.js} +4 -4
- package/dist/assets/{router-CFnjpqoZ.js → router-CmCiJkA0.js} +316 -304
- package/dist/assets/{sanitize-html-BkT1y0bJ.js → sanitize-html-DeDnsMgc.js} +17 -17
- package/dist/assets/{semver-CjLBiqOi.js → semver-DkHAUe3T.js} +6 -8
- package/dist/assets/{sourceControl.eventBus-BlFJV1yj.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-BiuB4CZc.js → src-DpZSuyLC.js} +5805 -2547
- package/dist/assets/{sso.store-CgVzmGCn.js → sso.store-B0NxuXiJ.js} +3 -3
- package/dist/assets/{table-fp187Rky.js → table-C3aerURh.js} +5 -5
- package/dist/assets/{templateActions-Dn6PNjyj.js → templateActions-BGHev3SN.js} +5 -5
- package/dist/assets/{templateTransforms-BtbIlupE.js → templateTransforms-B0n1tACx.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-DI2Rilu6.js → usage.store-3GYv6IW-.js} +3 -3
- package/dist/assets/{useActions-B3Tgqfk-.js → useActions-Buaifc4L.js} +5 -5
- package/dist/assets/useBugReporting-D6SXeO6B.js +130 -0
- package/dist/assets/useCalloutHelpers-Cwtyxtsm.js +80 -0
- package/dist/assets/{useCanvasOperations-BttAaAbZ.js → useCanvasOperations-DY9_Vcrs.js} +36 -32
- package/dist/assets/{useClipboard-CurFa2Dj.js → useClipboard-B8OKhRbY.js} +3 -3
- package/dist/assets/{useCredentialResolvers-CJPbKnJV.js → useCredentialResolvers-CCUEZ5V2.js} +5 -5
- package/dist/assets/{useCustomAgent-tUoLIUar.css → useCustomAgent-D8Sw5vcC.css} +32 -9
- package/dist/assets/useCustomAgent-h_FKujBQ.js +630 -0
- package/dist/assets/{useDebounce-BjcMkTu4.js → useDebounce-C4ttil9E.js} +12 -12
- package/dist/assets/{useExecutionData-B5c3pMYr.js → useExecutionData-CAzGOYWw.js} +2 -2
- package/dist/assets/{useExecutionDebugging-BAm9HytR.js → useExecutionDebugging-DQI5yARq.js} +7 -7
- package/dist/assets/{useExecutionHelpers-ClAdmv-B.js → useExecutionHelpers-DWZYR0dg.js} +5 -5
- package/dist/assets/useGlobalEntityCreation-BwX8UUSv.js +192 -0
- package/dist/assets/{useImportCurlCommand-L4oAG6dd.js → useImportCurlCommand-DRS2-Amm.js} +41 -36
- package/dist/assets/{useIntersectionObserver-Bb8gFEHX.js → useIntersectionObserver-CGg561I6.js} +1 -1
- package/dist/assets/{useKeybindings-30WRTvmG.js → useKeybindings-MR6cNtmK.js} +5 -5
- package/dist/assets/{useLogsTreeExpand-6_x7FouR.js → useLogsTreeExpand-CvDEwlbf.js} +41 -41
- package/dist/assets/{useMcp-T0ZvziGl.js → useMcp-BIeH6n02.js} +2 -2
- package/dist/assets/{usePageRedirectionHelper-BJH0h6XA.js → usePageRedirectionHelper-DPAtaAXY.js} +3 -3
- package/dist/assets/{usePinnedData-B88__knO.js → usePinnedData-BFTyeyJG.js} +6 -6
- package/dist/assets/{usePushConnection-O_Sg_NLA.js → usePushConnection-CcijHMYv.js} +12 -16
- package/dist/assets/{useRunWorkflow-BK9B9ALV.js → useRunWorkflow-wOjZEWNr.js} +106 -486
- package/dist/assets/{useSettingsItems-aqm5JSTf.js → useSettingsItems-CaNtH9v0.js} +5 -5
- package/dist/assets/{useTelemetryContext-DoX4HWmg.js → useTelemetryContext-CE5phjaX.js} +4 -4
- package/dist/assets/{useWorkflowsCache-CsbESieM.js → useWorkflowsCache-BBhvuqqB.js} +2 -2
- package/dist/assets/{userRoleProvisioning.store-CK7bojX8.js → userRoleProvisioning.store-COPddaUL.js} +3 -3
- package/dist/assets/{builder.store-CgMqPgnW.js → users.store-KBMG-745.js} +22801 -23949
- package/dist/assets/utils-BCX2a8sC.js +133 -0
- package/dist/assets/{versions.store-CzvzmERa.js → versions.store-BnGZ_WOG.js} +4 -4
- package/dist/assets/{vue-Dd77OcSb.js → vue-atn33zIp.js} +255 -213
- package/dist/assets/{vue-json-pretty-DF-vJpHf.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 -119
- package/package.json +1 -1
- package/tsconfig.json +1 -1
- package/dist/assets/AnimatedSpinner-DBPcagVq.js +0 -15
- package/dist/assets/BottomMenu-CRVyIu-B.css +0 -474
- package/dist/assets/ChatAgentAvatar-DoN0Vr4x.js +0 -67
- package/dist/assets/CollectionParameter-ByVUPeYR.js +0 -49
- package/dist/assets/DemoFooter-u1dOP76h.js +0 -62
- package/dist/assets/FixedCollectionParameter-CkTQ2epJ.js +0 -493
- package/dist/assets/FixedCollectionParameter-DT3ELzS9.css +0 -202
- package/dist/assets/ItemsRenderer-z7cKER1f.js +0 -922
- package/dist/assets/LogsPanel-B9QiohHK.js +0 -49
- package/dist/assets/NodeCreator-OSIpRI6S.css +0 -1649
- package/dist/assets/PageViewLayout-XiCAnPXE.js +0 -12
- package/dist/assets/PrebuiltAgentTemplatesView-B7uXEamJ.js +0 -151
- package/dist/assets/PrebuiltAgentTemplatesView-jF7HvWnL.css +0 -166
- package/dist/assets/RunDataHtml-CMYh4fix.js +0 -6
- package/dist/assets/RunDataParsedAiContent-DI_kumKV.js +0 -23
- package/dist/assets/SaveButton-DFMQz4OO.js +0 -89
- package/dist/assets/SettingsView-Ccz6LsAi.js +0 -87
- package/dist/assets/VirtualSchema-BOm-odEw.js +0 -33
- package/dist/assets/WorkflowActivationErrorMessage-CkxW6ZtU.js +0 -17
- package/dist/assets/WorkflowActivator-BGcCOUCH.css +0 -391
- package/dist/assets/WorkflowActivator-CisdBXpp.js +0 -362
- package/dist/assets/core-DeR-PV8K.js +0 -4
- package/dist/assets/empty-BUjCyq3U.js +0 -2450
- package/dist/assets/en-DyO2pPiC.js +0 -2
- package/dist/assets/schemaPreview.store-Bs_OZUsM.js +0 -113
- package/dist/assets/uniqBy-6k_SZ3dM.js +0 -10
- package/dist/assets/useBeforeUnload-dAltrwFm.js +0 -40
- package/dist/assets/useCommandBar-CXSPJjOq.js +0 -2425
- package/dist/assets/useCustomAgent-CSvOuB6K.js +0 -471
- package/dist/assets/useRecentResources-Dy5vqIyg.js +0 -118
- package/dist/assets/useWorkflowActivate-i3WAlo0M.js +0 -152
- package/dist/assets/utils-CnShVJFh.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-Bt1vr1SC.js → fileUtils-C-Bxka0b.js} +0 -0
- /package/dist/assets/{mcp.constants-1HQX33wO.js → mcp.constants-Djm5lWYR.js} +0 -0
- /package/dist/assets/{preload-helper-CR0ecmWK.js → preload-helper-D8n1yiy9.js} +0 -0
- /package/dist/assets/{retry-B-tGcWte.js → retry-BLsJRFf0.js} +0 -0
- /package/dist/assets/{smartDecimal-gA9wGEba.js → smartDecimal-D3Shg2YQ.js} +0 -0
- /package/dist/assets/{sortByProperty-C6sPingU.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-DDfXMqo8.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-BiuB4CZc.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-CgMqPgnW.js";
|
|
6
|
-
import { Ao as getResourcePermissions, Qr as chatHubLLMProviderSchema, Yr as PROVIDER_CREDENTIAL_TYPE_MAP } from "./constants-B5yiZflE.js";
|
|
7
|
-
import { t as NodeIcon_default } from "./NodeIcon-t97i3ntx.js";
|
|
8
|
-
import { t as CredentialIcon_default } from "./CredentialIcon-CsmA8n5q.js";
|
|
9
|
-
import { i as CHAT_MODEL_BY_ID_SELECTOR_MODAL_KEY, m as providerDisplayNames, r as CHAT_CREDENTIAL_SELECTOR_MODAL_KEY } from "./constants-vjryKFt3.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-CIFGQpTZ.js";
|
|
11
|
-
import { t as ChatAgentAvatar_default } from "./ChatAgentAvatar-DoN0Vr4x.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-BiuB4CZc.js";
|
|
4
|
-
import { y as useRouter } from "./truncate-B1HVeveJ.js";
|
|
5
|
-
import { N as useWorkflowsStore, Nt as useNodeTypesStore } from "./builder.store-CgMqPgnW.js";
|
|
6
|
-
import { Bo as VIEWS } from "./constants-B5yiZflE.js";
|
|
7
|
-
import { t as useCanvasOperations } from "./useCanvasOperations-BttAaAbZ.js";
|
|
8
|
-
import { t as NodeIcon_default } from "./NodeIcon-t97i3ntx.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 };
|