hermes-web-ui 0.6.40 → 0.6.41
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/dist/client/assets/js/{AppSidebar-CaSVcbCW.js → AppSidebar-CNkSiv3l.js} +1 -1
- package/dist/client/assets/js/{ChannelsView-hdAXa1hf.js → ChannelsView-6rEo6RBl.js} +1 -1
- package/dist/client/assets/js/{ChatPanel-C6sX6idm.js → ChatPanel-ANAZWluc.js} +3 -3
- package/dist/client/assets/js/{ChatView-B68k_-D9.js → ChatView-DFcPsmRF.js} +1 -1
- package/dist/client/assets/js/{CodingAgentsView-CsIjwbXR.js → CodingAgentsView-CpIY0SHT.js} +1 -1
- package/dist/client/assets/js/{DefaultCredentialPrompt-BRhb4DOa.js → DefaultCredentialPrompt-DmNeotSW.js} +1 -1
- package/dist/client/assets/js/{DesktopBrowserPanel-BlBfS64w.js → DesktopBrowserPanel-CWjTU-3y.js} +1 -1
- package/dist/client/assets/js/{DesktopBrowserView-JukL0QuS.js → DesktopBrowserView-D9Qb3fIV.js} +1 -1
- package/dist/client/assets/js/{DesktopPetView-DWq4EiRU.js → DesktopPetView-B7REtC57.js} +1 -1
- package/dist/client/assets/js/{DesktopTitleBar-DphP4oa6.js → DesktopTitleBar-Dej_16hB.js} +1 -1
- package/dist/client/assets/js/{DevicesView-BFtrfqJs.js → DevicesView--d4HCkch.js} +1 -1
- package/dist/client/assets/js/{DocxFilePreview-CmVJ9Jxx.js → DocxFilePreview-BQz6WC7r.js} +2 -2
- package/dist/client/assets/js/{FileEditor-CdkNYp7b.js → FileEditor-BBegs-5i.js} +2 -2
- package/dist/client/assets/js/{FilePreview-CJrVRPRs.js → FilePreview-B7WqYvZs.js} +2 -2
- package/dist/client/assets/js/{FileRenameModal-mghyEXU4.js → FileRenameModal-82RkAZkd.js} +1 -1
- package/dist/client/assets/js/{FilesPanel-B9cKB5lX.js → FilesPanel-BHcg6CpC.js} +2 -2
- package/dist/client/assets/js/{FilesView-iKZu70E9.js → FilesView-Dl15WTar.js} +2 -2
- package/dist/client/assets/js/{GlobalAgentView-JZsss0gx.js → GlobalAgentView-dxEX611f.js} +1 -1
- package/dist/client/assets/js/{GlobalPendingActions-BRQIt5vl.js → GlobalPendingActions-CeK96C3G.js} +1 -1
- package/dist/client/assets/js/{GroupChatLinkView-CNrV8lnT.js → GroupChatLinkView-CJhI9DVE.js} +1 -1
- package/dist/client/assets/js/{GroupChatPanel-WK4zBasl.js → GroupChatPanel-CLa3s08V.js} +3 -3
- package/dist/client/assets/js/{GroupChatView-BlMUD1MW.js → GroupChatView-CUwvu-6F.js} +1 -1
- package/dist/client/assets/js/{HistoryMessageList-D8zoQ1Zs.js → HistoryMessageList-BdD8GJYM.js} +1 -1
- package/dist/client/assets/js/{HistoryView-Bpr8N2lC.js → HistoryView-Ro92tP5R.js} +1 -1
- package/dist/client/assets/js/{HtmlFilePreview-Bj3_-hMo.js → HtmlFilePreview-xYn7YtmC.js} +1 -1
- package/dist/client/assets/js/{JobsView-CZK26gTw.js → JobsView-BaNA1Yaa.js} +2 -2
- package/dist/client/assets/js/{JourneyView-BPUsLj4o.js → JourneyView-Bw-05mCF.js} +1 -1
- package/dist/client/assets/js/{KanbanView-B7d-2_z9.js → KanbanView-BYC32l2Q.js} +1 -1
- package/dist/client/assets/js/{LoginView-BpYyv831.js → LoginView-KrpCkwOr.js} +1 -1
- package/dist/client/assets/js/{LogsView-CabFHk0v.js → LogsView-Dgm4v5sN.js} +1 -1
- package/dist/client/assets/js/{MarkdownRenderer-CVtmHZwc.js → MarkdownRenderer-BIPowjr-.js} +3 -3
- package/dist/client/assets/js/{McpManagerView-C-ou8vf3.js → McpManagerView-DTtkUIvq.js} +1 -1
- package/dist/client/assets/js/{MemoryView-QGFW4iZo.js → MemoryView-BnL7xzux.js} +2 -2
- package/dist/client/assets/js/{MessageList-DZR-TFjD.js → MessageList-5tytzhb0.js} +3 -3
- package/dist/client/assets/js/{ModelsView-DiWdSWOW.js → ModelsView-ComCz0Ce.js} +1 -1
- package/dist/client/assets/js/{OutlinePanel-Dlr5svMY.js → OutlinePanel-CF_XPCRn.js} +1 -1
- package/dist/client/assets/js/{PageSidebarFooter-Bic1fUmG.js → PageSidebarFooter-dvLzcTIm.js} +1 -1
- package/dist/client/assets/js/{PdfFilePreview-Dkpan1ay.js → PdfFilePreview-COOAoJ4V.js} +2 -2
- package/dist/client/assets/js/{PerformanceView-LrZaED_Z.js → PerformanceView-D6dKifJh.js} +1 -1
- package/dist/client/assets/js/{PetdexView-Bv8RioGL.js → PetdexView-CmvzDYwf.js} +1 -1
- package/dist/client/assets/js/{PluginsView-CbtdIGlq.js → PluginsView-zJV9FE9c.js} +1 -1
- package/dist/client/assets/js/{PptxFilePreview-5if_GbU6.js → PptxFilePreview-dC4JxV6j.js} +2 -2
- package/dist/client/assets/js/{ProfileAvatar-DI9ciJxS.js → ProfileAvatar-C8xoALCI.js} +1 -1
- package/dist/client/assets/js/{ProfilesView-C-FSiKMU.js → ProfilesView-CxVxJRN_.js} +1 -1
- package/dist/client/assets/js/{ProviderConfigurationPrompt-BUoWC41Y.js → ProviderConfigurationPrompt-zwk1UwoP.js} +1 -1
- package/dist/client/assets/js/{SessionSearchModal-CEKvSihp.js → SessionSearchModal-DhwGsV-i.js} +1 -1
- package/dist/client/assets/js/{SettingRow-CSfiJmxx.js → SettingRow-DHqhLX3M.js} +1 -1
- package/dist/client/assets/js/{SettingsCircuitBadge-DHIEFyTR.js → SettingsCircuitBadge-CnWSfQZd.js} +1 -1
- package/dist/client/assets/js/{SettingsView-DbNJroV3.js → SettingsView-Cbroga25.js} +1 -1
- package/dist/client/assets/js/{SharedGroupChatView-CTYjqWcO.js → SharedGroupChatView-DXfqtQ33.js} +1 -1
- package/dist/client/assets/js/{SkillsUsageView-BqZ3GtfT.js → SkillsUsageView-C34i3lOQ.js} +1 -1
- package/dist/client/assets/js/{SkillsView-Bhla7821.js → SkillsView-DRG_1esx.js} +2 -2
- package/dist/client/assets/js/{SpreadsheetFilePreview-CGK8HDAx.js → SpreadsheetFilePreview-DRw4kIx5.js} +1 -1
- package/dist/client/assets/js/{TerminalPanel-CtBTLOwq.js → TerminalPanel-Da1nL9P8.js} +1 -1
- package/dist/client/assets/js/{TerminalView-BID7fupB.js → TerminalView-B6z-VaGq.js} +1 -1
- package/dist/client/assets/js/{ThemeView-Cx3ucIus.js → ThemeView-CAaJ9MH-.js} +1 -1
- package/dist/client/assets/js/{UsageView-ByGCsw7o.js → UsageView-B_hLsp0k.js} +1 -1
- package/dist/client/assets/js/{VersionPreviewView-DiAK1ind.js → VersionPreviewView-DKXL6anl.js} +1 -1
- package/dist/client/assets/js/{WebPet-CdIqrnp1.js → WebPet-BUvrfjpq.js} +1 -1
- package/dist/client/assets/js/{WorkflowView-DmBOhSuq.js → WorkflowView-r46Ap9FY.js} +1 -1
- package/dist/client/assets/js/{WorkspaceDiffPreview-dHIGp-9F.js → WorkspaceDiffPreview-EwZAE18F.js} +2 -2
- package/dist/client/assets/js/{abap-Dj8IFKiF.js → abap-C7gkFu-A.js} +1 -1
- package/dist/client/assets/js/{aiden0z-pptx-renderer.es-6vi5-jAN.js → aiden0z-pptx-renderer.es-DOpVaH_k.js} +1 -1
- package/dist/client/assets/js/{apex-C3INPUEt.js → apex-DZOtRowu.js} +1 -1
- package/dist/client/assets/js/{ar-Gk9y3ZfO.js → ar-8iThLSJQ.js} +1 -1
- package/dist/client/assets/js/architecture-7EHR7CIX-BrfhYGuP.js +1 -0
- package/dist/client/assets/js/{architectureDiagram-3BPJPVTR-DLZYeivB.js → architectureDiagram-3BPJPVTR-DEsTTzKd.js} +1 -1
- package/dist/client/assets/js/{auth-D1ZFqv22.js → auth-B52zm2Ir.js} +1 -1
- package/dist/client/assets/js/{azcli-UBzLhJq5.js → azcli-KxuicZQh.js} +1 -1
- package/dist/client/assets/js/{bat-P3O4jldt.js → bat-DfFP4HF-.js} +1 -1
- package/dist/client/assets/js/{bicep-DdQR9RxE.js → bicep-Co4bntVh.js} +1 -1
- package/dist/client/assets/js/{blockDiagram-GPEHLZMM-UWFo8sm5.js → blockDiagram-GPEHLZMM-NsxYeUKd.js} +1 -1
- package/dist/client/assets/js/{c4Diagram-AAUBKEIU-jgyj0wOb.js → c4Diagram-AAUBKEIU-D68asSzm.js} +1 -1
- package/dist/client/assets/js/{cameligo-Bb4ubW_C.js → cameligo-Xi0l_9Wr.js} +1 -1
- package/dist/client/assets/js/{chat-DdHii4Qz.js → chat-fUZW3YFa.js} +1 -1
- package/dist/client/assets/js/{chat-input-height-CSPwB9it.js → chat-input-height-lvFawuv9.js} +1 -1
- package/dist/client/assets/js/{chat-timestamp-DGQ8fmtT.js → chat-timestamp-4wWFcZWv.js} +1 -1
- package/dist/client/assets/js/{chunk-2J33WTMH-Br9OWF5a.js → chunk-2J33WTMH-CEU5sLIh.js} +1 -1
- package/dist/client/assets/js/{chunk-3OPIFGDE-Cb40LuI4.js → chunk-3OPIFGDE-DEhbKkCl.js} +1 -1
- package/dist/client/assets/js/{chunk-4BX2VUAB-jYtdiafd.js → chunk-4BX2VUAB-OIZUstuy.js} +1 -1
- package/dist/client/assets/js/{chunk-55IACEB6-CBtymeHY.js → chunk-55IACEB6-DQHKZCBG.js} +1 -1
- package/dist/client/assets/js/{chunk-5ZQYHXKU-yj9xqmex.js → chunk-5ZQYHXKU-BU3pQVVl.js} +1 -1
- package/dist/client/assets/js/{chunk-727SXJPM-er_5tB5X.js → chunk-727SXJPM-jj97gdnP.js} +1 -1
- package/dist/client/assets/js/{chunk-AQP2D5EJ-C4mDD6xK.js → chunk-AQP2D5EJ-jv-oWlkb.js} +1 -1
- package/dist/client/assets/js/{chunk-BSJP7CBP-QZesZe57.js → chunk-BSJP7CBP-DkKsepNF.js} +1 -1
- package/dist/client/assets/js/{chunk-CSCIHK7Q-5LH118bT.js → chunk-CSCIHK7Q-CLgoBoCF.js} +3 -3
- package/dist/client/assets/js/{chunk-FMBD7UC4-CQho6QZ5.js → chunk-FMBD7UC4-Bx1bCKUR.js} +1 -1
- package/dist/client/assets/js/{chunk-KSCS5N6A-DONM1Omv.js → chunk-KSCS5N6A-CZHZ6pBd.js} +1 -1
- package/dist/client/assets/js/{chunk-L5ZTLDWV-FN_zFWkp.js → chunk-L5ZTLDWV-dz9D3kOb.js} +1 -1
- package/dist/client/assets/js/{chunk-LZXEDZCA-CEEUVvpS.js → chunk-LZXEDZCA-CQiSQehC.js} +2 -2
- package/dist/client/assets/js/{chunk-ND2GUHAM-DWckpxQD.js → chunk-ND2GUHAM-mWODKb8v.js} +1 -1
- package/dist/client/assets/js/{chunk-NZK2D7GU-0mKZmkuV.js → chunk-NZK2D7GU-ivCkjCOR.js} +1 -1
- package/dist/client/assets/js/{chunk-O5CBEL6O-DIDAOkT_.js → chunk-O5CBEL6O-BRUisK47.js} +1 -1
- package/dist/client/assets/js/{chunk-QZHKN3VN-D3c-TMz-.js → chunk-QZHKN3VN-BHjgTrzY.js} +1 -1
- package/dist/client/assets/js/{chunk-WU5MYG2G-BZvSpwm4.js → chunk-WU5MYG2G-CNW1rcpL.js} +1 -1
- package/dist/client/assets/js/{chunk-XPW4576I-xdyJtk-s.js → chunk-XPW4576I-DP3dJbOu.js} +1 -1
- package/dist/client/assets/js/classDiagram-4FO5ZUOK-BVBBe3DQ.js +1 -0
- package/dist/client/assets/js/classDiagram-v2-Q7XG4LA2-DJUe3i9Y.js +1 -0
- package/dist/client/assets/js/{clipboard-DQ_A8ns-.js → clipboard-DHZFaAvO.js} +1 -1
- package/dist/client/assets/js/{clipboard-files-bDrcGKPe.js → clipboard-files-CBDy-02Y.js} +1 -1
- package/dist/client/assets/js/{clojure-ku7aCU1_.js → clojure-DuyGwS8X.js} +1 -1
- package/dist/client/assets/js/{coding-agents-DfHyBvky.js → coding-agents-BNTHD6kd.js} +1 -1
- package/dist/client/assets/js/{codingAgentProviders-BM18FAW9.js → codingAgentProviders-DM_ouxbL.js} +1 -1
- package/dist/client/assets/js/{coffee-DnRIdJlY.js → coffee-C5p7vzpa.js} +1 -1
- package/dist/client/assets/js/{completion-notification-XxjbntI8.js → completion-notification-CzdnhuX3.js} +1 -1
- package/dist/client/assets/js/{cose-bilkent-S5V4N54A-w891sIF1.js → cose-bilkent-S5V4N54A-De_ZdqY0.js} +1 -1
- package/dist/client/assets/js/{cpp-CN8i6ISX.js → cpp-II5hDbTe.js} +1 -1
- package/dist/client/assets/js/{csharp-B-fxig7O.js → csharp-D0POzSpv.js} +1 -1
- package/dist/client/assets/js/{csp-Bar9LGt4.js → csp-CwtuRkR3.js} +1 -1
- package/dist/client/assets/js/{css-DFtC5xZN.js → css-Dc2fJIqQ.js} +1 -1
- package/dist/client/assets/js/{cssMode-DH5XKKL2.js → cssMode-CC6jRvHF.js} +1 -1
- package/dist/client/assets/js/{cypher-BkJexWsv.js → cypher-DBcQoWDH.js} +1 -1
- package/dist/client/assets/js/{cytoscape.esm-BDsvr8Aq.js → cytoscape.esm-C9FMRqxM.js} +1 -1
- package/dist/client/assets/js/{dagre-BM42HDAG-BuT885pa.js → dagre-BM42HDAG-CvJIC410.js} +1 -1
- package/dist/client/assets/js/{dagre-BVUDh8Sh.js → dagre-BtgEsAtK.js} +1 -1
- package/dist/client/assets/js/{dart-B7W8hAtN.js → dart-Jf_Hmp2o.js} +1 -1
- package/dist/client/assets/js/{de-LDpd8WHJ.js → de-7hLSwCEx.js} +1 -1
- package/dist/client/assets/js/{defineProperty-DdPu4ZVv.js → defineProperty-DHkErCmG.js} +1 -1
- package/dist/client/assets/js/{desktop-browser-xrRFPNUg.js → desktop-browser-C6AhY0uu.js} +1 -1
- package/dist/client/assets/js/{diagram-2AECGRRQ-B1sSf-09.js → diagram-2AECGRRQ-CvPeU5Lm.js} +1 -1
- package/dist/client/assets/js/{diagram-5GNKFQAL-BffX22pf.js → diagram-5GNKFQAL-CBniYlkH.js} +1 -1
- package/dist/client/assets/js/{diagram-KO2AKTUF-D8QvpUpn.js → diagram-KO2AKTUF-C_yFaVRj.js} +1 -1
- package/dist/client/assets/js/{diagram-LMA3HP47-DkG7p3lQ.js → diagram-LMA3HP47-BzM1IxNe.js} +1 -1
- package/dist/client/assets/js/{diagram-OG6HWLK6-RjvNNvXM.js → diagram-OG6HWLK6-yvmf_3ax.js} +1 -1
- package/dist/client/assets/js/{dist-Bk0VKtV3.js → dist-BHzBn3v7.js} +1 -1
- package/dist/client/assets/js/{dockerfile-C4m7j8sy.js → dockerfile-J3d6ZPDJ.js} +1 -1
- package/dist/client/assets/js/{docx-preview-BpTW-GN7.js → docx-preview-Rqt8wMjQ.js} +1 -1
- package/dist/client/assets/js/{download-CX8EG48r.js → download-xhRMWMda.js} +1 -1
- package/dist/client/assets/js/{ecl-EHV358Ls.js → ecl-XnlT0p97.js} +1 -1
- package/dist/client/assets/js/{editor.api2-CnHBqh_d.js → editor.api2-ChO5nUQb.js} +1 -1
- package/dist/client/assets/js/{elixir-DLfp2Dwn.js → elixir-BEJbxH-B.js} +1 -1
- package/dist/client/assets/js/{en-D6VVFwFU.js → en-D2WSXgkM.js} +1 -1
- package/dist/client/assets/js/{erDiagram-TEJ5UH35-CLlLC6xx.js → erDiagram-TEJ5UH35-DZysD9r9.js} +1 -1
- package/dist/client/assets/js/{es-BIMLuyVP.js → es-B7Mq1P0U.js} +1 -1
- package/dist/client/assets/js/{esm-C8D4M0Yn.js → esm-DnZPPtmx.js} +1 -1
- package/dist/client/assets/js/eventmodeling-FCH6USID-vlE3-g2j.js +1 -0
- package/dist/client/assets/js/{file-preview-BvgwVZXh.js → file-preview-C417aixJ.js} +1 -1
- package/dist/client/assets/js/{files-CJkCqsUx.js → files-DjI-npgn.js} +1 -1
- package/dist/client/assets/js/{flow9-CtBaUnAi.js → flow9-j5XT_8TQ.js} +1 -1
- package/dist/client/assets/js/{flowDiagram-I6XJVG4X-VTRTPnqD.js → flowDiagram-I6XJVG4X-Dt5ZtyHz.js} +1 -1
- package/dist/client/assets/js/{fr-C2lf0cY2.js → fr-DvClrDOw.js} +1 -1
- package/dist/client/assets/js/{freemarker2-XLeMvhl_.js → freemarker2-BzCf_0SN.js} +1 -1
- package/dist/client/assets/js/{fsharp-Db0uaBQv.js → fsharp-ClU_Sdjr.js} +1 -1
- package/dist/client/assets/js/{ganttDiagram-6RSMTGT7-CdKcIZ8_.js → ganttDiagram-6RSMTGT7-Bca3rPWi.js} +1 -1
- package/dist/client/assets/js/gitGraph-WXDBUCRP-Cyd4P6XH.js +1 -0
- package/dist/client/assets/js/{gitGraphDiagram-PVQCEYII-Bcuyw6fo.js → gitGraphDiagram-PVQCEYII-Co29qnTg.js} +1 -1
- package/dist/client/assets/js/{go-DwaTlB-B.js → go-D3iUyCM0.js} +1 -1
- package/dist/client/assets/js/{graphlib-vAI4Pw7R.js → graphlib-Bln6qd-Z.js} +1 -1
- package/dist/client/assets/js/{graphql-Cf2XhNJR.js → graphql-z8koqyyL.js} +1 -1
- package/dist/client/assets/js/{group-agent-avatar-CPehpiK0.js → group-agent-avatar-CwqtaKGw.js} +1 -1
- package/dist/client/assets/js/{group-chat-CY62vc77.js → group-chat-Buz8HP-N.js} +1 -1
- package/dist/client/assets/js/{group-chat-xkdjC2Jt.js → group-chat-CgFAwCtr.js} +1 -1
- package/dist/client/assets/js/{group-chat-agent-link-DdSNKasF.js → group-chat-agent-link-N5IFeN_j.js} +1 -1
- package/dist/client/assets/js/{handlebars-CNEKu_p8.js → handlebars-C_JvhUYs.js} +1 -1
- package/dist/client/assets/js/{hcl-6UZbq6h2.js → hcl-X7TzviIX.js} +1 -1
- package/dist/client/assets/js/{highlight-DwtBT6t1.js → highlight-C4yUBxwQ.js} +1 -1
- package/dist/client/assets/js/{html-DfSIHhKA.js → html-B-rCQB0N.js} +1 -1
- package/dist/client/assets/js/{htmlMode-iGw9-O-W.js → htmlMode-CAeEf_yf.js} +1 -1
- package/dist/client/assets/js/{index-DnjQJzX4.js → index-DN4SafrP.js} +5 -5
- package/dist/client/assets/js/info-J43DQDTF-B9tkQ2Sb.js +1 -0
- package/dist/client/assets/js/{infoDiagram-5YYISTIA-85450Zam.js → infoDiagram-5YYISTIA-BWQGayms.js} +1 -1
- package/dist/client/assets/js/{ini-8em8V_Af.js → ini-LTHHN4J-.js} +1 -1
- package/dist/client/assets/js/{ishikawaDiagram-YF4QCWOH-BZ4az7UA.js → ishikawaDiagram-YF4QCWOH-Dhuplz_z.js} +1 -1
- package/dist/client/assets/js/{ja-C1bBXgr_.js → ja-D7BeX2_D.js} +1 -1
- package/dist/client/assets/js/{java-CP1MdIkO.js → java-BRFX-ya0.js} +1 -1
- package/dist/client/assets/js/{javascript-Cr8_LHYa.js → javascript-ZXiVmjXn.js} +1 -1
- package/dist/client/assets/js/{journeyDiagram-JHISSGLW-DGMB8Tgc.js → journeyDiagram-JHISSGLW-CJeatAU9.js} +1 -1
- package/dist/client/assets/js/{jsonMode-HCZ-1lFH.js → jsonMode-C6FcMe0o.js} +1 -1
- package/dist/client/assets/js/{jszip.min-BkR6b8DY.js → jszip.min-skZCUzWf.js} +1 -1
- package/dist/client/assets/js/{julia-DMTMxa5q.js → julia-Bph8N3CL.js} +1 -1
- package/dist/client/assets/js/{kanban-definition-UN3LZRKU-F5cH_RpB.js → kanban-definition-UN3LZRKU-tvWuOdSr.js} +1 -1
- package/dist/client/assets/js/{katex-CYbEJAbZ.js → katex-hSGJNERm.js} +1 -1
- package/dist/client/assets/js/{ko-qgOeHd8L.js → ko-BsVa-If_.js} +1 -1
- package/dist/client/assets/js/{kotlin-Blzus47W.js → kotlin-_c4-tPQp.js} +1 -1
- package/dist/client/assets/js/{less-DWCHpDyf.js → less-5oVo4jfQ.js} +1 -1
- package/dist/client/assets/js/{lexon-YXdlYGbJ.js → lexon-DE4YtGwF.js} +1 -1
- package/dist/client/assets/js/{liquid-DSQgvRwe.js → liquid-BGfieGMG.js} +1 -1
- package/dist/client/assets/js/{lspLanguageFeatures-0Hx2Vnc-.js → lspLanguageFeatures-DU_1H2uW.js} +1 -1
- package/dist/client/assets/js/{lua-Cyv3mTkg.js → lua-7WJSZJqD.js} +1 -1
- package/dist/client/assets/js/{m3-CPY3Ym7_.js → m3-gZlfoR19.js} +1 -1
- package/dist/client/assets/js/{markdown-DaPQ1nuG.js → markdown-BYF71orA.js} +1 -1
- package/dist/client/assets/js/{mdx-BqA6Xr9V.js → mdx-CunEIV3g.js} +1 -1
- package/dist/client/assets/js/{mermaid-parser.core-D4HRUOce.js → mermaid-parser.core-DU_SX15F.js} +3 -3
- package/dist/client/assets/js/{mermaid.core-w6kHmgOG.js → mermaid.core-8vsbhG5J.js} +3 -3
- package/dist/client/assets/js/{message-scroll-position-C5yRCyBU.js → message-scroll-position-C9_YO3pX.js} +2 -2
- package/dist/client/assets/js/{mindmap-definition-RKZ34NQL-CnzhnJ7Z.js → mindmap-definition-RKZ34NQL-HPtlKqL1.js} +1 -1
- package/dist/client/assets/js/{mips-BfqBfLvN.js → mips-DXkvw9aZ.js} +1 -1
- package/dist/client/assets/js/{models-wrytxWnf.js → models-BILDy2sV.js} +1 -1
- package/dist/client/assets/js/{monaco.contribution-Bc-DesyO.js → monaco.contribution-DDqeHGl3.js} +2 -2
- package/dist/client/assets/js/{msdax-DgMip49g.js → msdax-BbHEBDvP.js} +1 -1
- package/dist/client/assets/js/{mysql-DPUvF1g2.js → mysql-7I1rlwh7.js} +1 -1
- package/dist/client/assets/js/{objective-c-BQ3llrPW.js → objective-c-Dk03REAv.js} +1 -1
- package/dist/client/assets/js/packet-YPE3B663-DlTFK3Wo.js +1 -0
- package/dist/client/assets/js/{pascal-bFWHV7MZ.js → pascal-BCfNkzYY.js} +1 -1
- package/dist/client/assets/js/{pascaligo-C8Qza2pK.js → pascaligo-D-DslS98.js} +1 -1
- package/dist/client/assets/js/{pdf-Cb7x495t.js → pdf-B_OYWxSy.js} +1 -1
- package/dist/client/assets/js/{pdf.worker.min-DDUKJ6cJ.js → pdf.worker.min--q2RLEHa.js} +1 -1
- package/dist/client/assets/js/{perl-x25gw0_p.js → perl-MUnuTclx.js} +1 -1
- package/dist/client/assets/js/{pets-BfRsvl7D.js → pets-D74G2jqA.js} +1 -1
- package/dist/client/assets/js/{pgsql-DAUcGeRq.js → pgsql-BxCBktNe.js} +1 -1
- package/dist/client/assets/js/{php-nri1eqb2.js → php-zp9UgH03.js} +1 -1
- package/dist/client/assets/js/pie-LRSECV5Y-BtnBGhFZ.js +1 -0
- package/dist/client/assets/js/{pieDiagram-4H26LBE5-4LODdtT_.js → pieDiagram-4H26LBE5-CG8_pcHr.js} +1 -1
- package/dist/client/assets/js/{pla-CHi5LWNL.js → pla-DGCtmYZC.js} +1 -1
- package/dist/client/assets/js/{postiats-Bk7jD0AA.js → postiats-DHSW8gnY.js} +1 -1
- package/dist/client/assets/js/{powerquery-UTqJ0Vs7.js → powerquery-BGsPEmJe.js} +1 -1
- package/dist/client/assets/js/{powershell-CuPY3Rqk.js → powershell-BItlb0hE.js} +1 -1
- package/dist/client/assets/js/{profiles-D-vlI-Ec.js → profiles-BK5JKD7h.js} +1 -1
- package/dist/client/assets/js/{protobuf-Be4AIz9j.js → protobuf-BIhm6JYx.js} +1 -1
- package/dist/client/assets/js/{pt-D7_udWb3.js → pt-BSORCDMm.js} +1 -1
- package/dist/client/assets/js/{pug-CZFx15Ey.js → pug-BtnM7KZj.js} +1 -1
- package/dist/client/assets/js/{python-BgRg6Ez6.js → python-DxzTx1Q_.js} +1 -1
- package/dist/client/assets/js/{qsharp-BiBiLhRS.js → qsharp-B_8MSfaB.js} +1 -1
- package/dist/client/assets/js/{quadrantDiagram-W4KKPZXB-g_q9-dXx.js → quadrantDiagram-W4KKPZXB-CsbkMYuV.js} +1 -1
- package/dist/client/assets/js/{r-DM7NVSbZ.js → r-kvKC59jk.js} +1 -1
- package/dist/client/assets/js/radar-GUYGQ44K-BTKMKX4G.js +1 -0
- package/dist/client/assets/js/{razor-CiWy0jCW.js → razor-BwZ0MkaL.js} +1 -1
- package/dist/client/assets/js/{redis-BR2LPmFL.js → redis-5j1U_i85.js} +1 -1
- package/dist/client/assets/js/{redshift-B0sdAV16.js → redshift-CX1dFLA1.js} +1 -1
- package/dist/client/assets/js/{requirementDiagram-4Y6WPE33-EedCclad.js → requirementDiagram-4Y6WPE33-CKC7CQCX.js} +1 -1
- package/dist/client/assets/js/{restructuredtext-kQOBLN1M.js → restructuredtext-MV0-Naya.js} +1 -1
- package/dist/client/assets/js/{rough.esm-Dyx_2DON.js → rough.esm-CV1rL6PC.js} +1 -1
- package/dist/client/assets/js/{ru-CVQQmreT.js → ru-JsH6TKyg.js} +1 -1
- package/dist/client/assets/js/{ruby-CbdJXy6J.js → ruby-Bhyejf9X.js} +1 -1
- package/dist/client/assets/js/{rust-DZanYksk.js → rust-CR8d_FC1.js} +1 -1
- package/dist/client/assets/js/{sankeyDiagram-5OEKKPKP-DFC0nzsd.js → sankeyDiagram-5OEKKPKP-CKlqlvAe.js} +1 -1
- package/dist/client/assets/js/{sb-C5-WiqDZ.js → sb-hLW2EM2L.js} +1 -1
- package/dist/client/assets/js/{scala-Bk7i9nV-.js → scala-DVUhALEZ.js} +1 -1
- package/dist/client/assets/js/{scheme-CaZSWmJ2.js → scheme-BS6yNanr.js} +1 -1
- package/dist/client/assets/js/{scss-ByOYuc7K.js → scss-BfoRsElt.js} +1 -1
- package/dist/client/assets/js/{sequenceDiagram-3UESZ5HK-hWjPfqXt.js → sequenceDiagram-3UESZ5HK-CTimhD6H.js} +1 -1
- package/dist/client/assets/js/{session-browser-prefs-Br8OYA4_.js → session-browser-prefs-BT1woDux.js} +1 -1
- package/dist/client/assets/js/{sessions-iGK9S6zk.js → sessions-IkLKgnN6.js} +1 -1
- package/dist/client/assets/js/{settings-pbanANH0.js → settings-roYY6G3W.js} +1 -1
- package/dist/client/assets/js/{shell-Di0TEySc.js → shell-BO_Lyczz.js} +1 -1
- package/dist/client/assets/js/{skills-DC-UPcXj.js → skills-a5LPwmiT.js} +1 -1
- package/dist/client/assets/js/{solidity-BNTjAuuA.js → solidity-D3T2Ki4l.js} +1 -1
- package/dist/client/assets/js/{sophia-LY__8Yob.js → sophia-iJmIEvi8.js} +1 -1
- package/dist/client/assets/js/{sparql-CWnLfgGS.js → sparql-C2HCEExr.js} +1 -1
- package/dist/client/assets/js/{sql-B0ypQ9lR.js → sql-DM6_3GBc.js} +1 -1
- package/dist/client/assets/js/{src-BihFroE7.js → src-DD_TpJde.js} +1 -1
- package/dist/client/assets/js/{st-CqVFKTbZ.js → st-DSb39Fm5.js} +1 -1
- package/dist/client/assets/js/{stateDiagram-AJRCARHV-B7wEnYVe.js → stateDiagram-AJRCARHV-DwBGmBj6.js} +1 -1
- package/dist/client/assets/js/stateDiagram-v2-BHNVJYJU-5bNcwBne.js +1 -0
- package/dist/client/assets/js/{style-DDAg_jVj.js → style-B5xXhBlp.js} +1 -1
- package/dist/client/assets/js/{swift-B4ZZmDxc.js → swift-DrZYSZK3.js} +1 -1
- package/dist/client/assets/js/{systemverilog-zLt-O1mT.js → systemverilog-BAWNCaf6.js} +1 -1
- package/dist/client/assets/js/{tcl-DCSZmA-l.js → tcl-DY15ex6v.js} +1 -1
- package/dist/client/assets/js/{timeline-definition-PNZ67QCA-BN_LfleE.js → timeline-definition-PNZ67QCA-B8xuIu6g.js} +1 -1
- package/dist/client/assets/js/treeView-BLDUP644-DvZPUnGM.js +1 -0
- package/dist/client/assets/js/treemap-LRROVOQU-Bis1djYh.js +1 -0
- package/dist/client/assets/js/{tsMode-BjUcuHrq.js → tsMode-BE8JCSCE.js} +1 -1
- package/dist/client/assets/js/{ttsHelpers-BLunFYsq.js → ttsHelpers-BLNiQExI.js} +1 -1
- package/dist/client/assets/js/{twig-CuJlVpUG.js → twig-BpHF_18K.js} +1 -1
- package/dist/client/assets/js/{typescript-De40YVFt.js → typescript-FQ3z9hVG.js} +1 -1
- package/dist/client/assets/js/{typespec-8QcsIc3c.js → typespec-BKvcn6aE.js} +1 -1
- package/dist/client/assets/js/{useSttSettings-B1-KXN44.js → useSttSettings-DHX06G8A.js} +1 -1
- package/dist/client/assets/js/{vb-DEGTdhxf.js → vb-B74ucE43.js} +1 -1
- package/dist/client/assets/js/{vennDiagram-CIIHVFJN-hL8ax7wF.js → vennDiagram-CIIHVFJN-DtEu04QR.js} +1 -1
- package/dist/client/assets/js/wardley-L42UT6IY-CD4dIN63.js +1 -0
- package/dist/client/assets/js/{wardleyDiagram-YWT4CUSO-BIR-RA6Y.js → wardleyDiagram-YWT4CUSO-DdNKCPsp.js} +1 -1
- package/dist/client/assets/js/{wgsl-CmbiucmY.js → wgsl-DEf5Vdqv.js} +1 -1
- package/dist/client/assets/js/{workers-BgWBq4qY.js → workers-BbaiLVxx.js} +1 -1
- package/dist/client/assets/js/{workflow-socket-DZ9Ceffc.js → workflow-socket-DH402vxO.js} +1 -1
- package/dist/client/assets/js/{xml-SZLdwDmk.js → xml-zjE51I7v.js} +1 -1
- package/dist/client/assets/js/{xterm-D6CotCNH.js → xterm-Djy4rCx0.js} +1 -1
- package/dist/client/assets/js/{xychartDiagram-2RQKCTM6-DHa486uP.js → xychartDiagram-2RQKCTM6-CKqN7g7r.js} +1 -1
- package/dist/client/assets/js/{yaml-CgQpCgM5.js → yaml-DabeGoTc.js} +1 -1
- package/dist/client/assets/js/{zh-BDlMioZr.js → zh-CI4-L3JY.js} +1 -1
- package/dist/client/assets/js/{zh-TW-DTbLWR1A.js → zh-TW-wYlj-uOZ.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/openapi.json +1 -1
- package/package.json +9 -1
- package/dist/client/assets/js/architecture-7EHR7CIX-Cl4Qi40R.js +0 -1
- package/dist/client/assets/js/classDiagram-4FO5ZUOK-DC0BcY8x.js +0 -1
- package/dist/client/assets/js/classDiagram-v2-Q7XG4LA2-BfDDH_fm.js +0 -1
- package/dist/client/assets/js/eventmodeling-FCH6USID-Bgzwnvkn.js +0 -1
- package/dist/client/assets/js/gitGraph-WXDBUCRP-CwFrpI3e.js +0 -1
- package/dist/client/assets/js/info-J43DQDTF-wMwkmIWM.js +0 -1
- package/dist/client/assets/js/packet-YPE3B663-DYmKXJOE.js +0 -1
- package/dist/client/assets/js/pie-LRSECV5Y-Dx0hbcjV.js +0 -1
- package/dist/client/assets/js/radar-GUYGQ44K-D-t-QJhi.js +0 -1
- package/dist/client/assets/js/stateDiagram-v2-BHNVJYJU-CoMhBVvo.js +0 -1
- package/dist/client/assets/js/treeView-BLDUP644-CMJGhbWk.js +0 -1
- package/dist/client/assets/js/treemap-LRROVOQU-_j4KoVDh.js +0 -1
- package/dist/client/assets/js/wardley-L42UT6IY-BeOvmJoM.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$i as n,$t as z,Bi as He,Di as xe,Dt as pn,Fi as Lt,Ft as at,G as Re,Gt as fr,Hi as r,Ki as mn,M as Ae,Nr as Se,Nt as _r,Pr as Me,Qr as Ve,Ri as ht,S as fn,Sa as i,Ti as s,U as _n,V as Qe,Vi as tt,Wi as Ne,Yr as gn,Z as yn,Zi as Oe,_a as e,_i as l,_t as De,at as kt,bi as w,bt as wt,d as gr,di as bn,dn as We,dt as hn,ea as kn,ei as ke,fi as yr,gi as P,gt as Le,i as br,ii as wn,lt as Cn,mi as Ce,n as Pe,ni as xn,pi as Sn,q as Et,qt as Mn,r as hr,ri as $n,rt as ce,si as we,sn as fe,st as et,t as Te,tt as ze,u as Pn,ua as p,vi as K,wa as j,wi as E,ya as Be,yi as U,z as Tn,zt as _e}from"./index-DnjQJzX4.js";import{n as Xe,t as Ye}from"./clipboard-DQ_A8ns-.js";import{r as Ct,t as xt}from"./profiles-D-vlI-Ec.js";import{i as Un,o as An}from"./chat-DdHii4Qz.js";import{a as Ln,c as St,f as En,i as On,m as Dn,o as Nn,u as Ot}from"./settings-pbanANH0.js";import{n as je,t as Ge}from"./models-wrytxWnf.js";import{a as Fn,h as In,i as zn,m as Rn,n as Vn,o as Dt,p as Bn,r as Kn,s as qn,t as Hn,u as jn}from"./useSttSettings-B1-KXN44.js";import{a as Mt,c as it,d as Gn,h as Nt,i as $t,l as kr,m as Jn,n as wr,o as Pt,p as Wn,r as Cr,s as Xn,t as xr,u as Tt}from"./ttsHelpers-BLunFYsq.js";var Ft,It,zt,Rt,Vt,Bt,Kt,qt,Ht,jt,Gt,Jt,Sr,Wt=j((()=>{we(),Ae(),Se(),St(),Ge(),xt(),Ft={class:"auxiliary-panel"},It={class:"auxiliary-header"},zt={class:"auxiliary-table"},Rt={class:"auxiliary-row auxiliary-row-head"},Vt={class:"task-name"},Bt={class:"task-config"},Kt={class:"task-timeout"},qt={class:"task-actions"},Ht={class:"auxiliary-form"},jt={key:0},Gt={class:"extra-body-field"},Jt={class:"auxiliary-modal-actions"},Sr=xe({__name:"AuxiliaryModelsPanel",setup(u){const{t:o}=Me(),t=Le(),f=je(),a=Ct(),k=p(!1),v=p(!1),D=p([]),y=p({}),m=p(!1),_=p(null),A=p(!1),b=p({provider:"",model:"",timeout:null,download_timeout:null,extra_body:""}),G=P(()=>{const d=new Set,x=[{label:o("models.auxiliaryProviderAuto"),value:"auto"},{label:o("models.auxiliaryProviderMain"),value:"main"}];for(const S of f.providers)!S.provider||d.has(S.provider)||(d.add(S.provider),x.push({label:S.label||S.provider,value:S.provider}));return x}),R=P(()=>{const d=b.value.provider.trim();return!d||d==="auto"||d==="main"?[]:I(d).map(x=>({label:x,value:x}))}),B=P(()=>_.value?.key==="vision");function I(d){return f.providers.find(x=>x.provider===d)?.models||[]}function h(d){return!d||d==="auto"||d==="main"?!0:f.providers.some(x=>x.provider===d)}function C(d){switch(d.key){case"compression":return o("models.auxiliaryTaskCompression");case"vision":return o("models.auxiliaryTaskVision");case"web_extract":return o("models.auxiliaryTaskWebExtract");case"skills_hub":return o("models.auxiliaryTaskSkillsHub");case"approval":return o("models.auxiliaryTaskApproval");case"mcp":return o("models.auxiliaryTaskMcp");case"title_generation":return o("models.auxiliaryTaskTitleGeneration");case"triage_specifier":return o("models.auxiliaryTaskTriageSpecifier");case"kanban_decomposer":return o("models.auxiliaryTaskKanbanDecomposer");case"profile_describer":return o("models.auxiliaryTaskProfileDescriber");case"curator":return o("models.auxiliaryTaskCurator");case"session_search":return o("models.auxiliaryTaskSessionSearch");case"flush_memories":return o("models.auxiliaryTaskFlushMemories");default:return d.label||d.key}}function c(d){if(!d||Object.keys(d).length===0)return o("models.auxiliaryProviderAuto");const x=d.provider||(d.base_url?o("models.auxiliaryCustomEndpoint"):o("models.auxiliaryDefault"));return d.model?`${x} / ${d.model}`:x}function T(d,x){const S=x?.timeout??d.default_timeout,V=d.key==="vision"?x?.download_timeout??d.default_download_timeout:void 0;if(!S&&!V)return o("models.auxiliaryDefault");const ue=[];return S&&ue.push(`${S}s`),V&&ue.push(`${o("models.auxiliaryDownloadShort")} ${V}s`),ue.join(" / ")}async function Y(){k.value=!0;try{const d=await On();D.value=d.tasks,y.value=d.auxiliary}catch(d){t.error(d.message||o("models.auxiliaryLoadFailed"))}finally{k.value=!1}}function X(d){const x=y.value[d.key]||{},S=h(x.provider||"")&&x.provider||"auto",V=(S==="auto"||S==="main"||I(S).includes(x.model||""))&&x.model||"";_.value=d,A.value=!0,b.value={provider:S,model:V,timeout:x.timeout??d.default_timeout??null,download_timeout:d.key==="vision"?x.download_timeout??d.default_download_timeout??null:null,extra_body:x.extra_body?JSON.stringify(x.extra_body,null,2):""},A.value=!1,m.value=!0}function ie(){const d=b.value.extra_body.trim();if(!d)return;let x;try{x=JSON.parse(d)}catch{throw new Error(o("models.auxiliaryInvalidExtraBody"))}if(!x||typeof x!="object"||Array.isArray(x))throw new Error(o("models.auxiliaryInvalidExtraBody"));return x}function ne(){const d={},x=b.value.provider.trim();if(x==="auto")return d.provider="auto",b.value.timeout&&(d.timeout=b.value.timeout),B.value&&b.value.download_timeout&&(d.download_timeout=b.value.download_timeout),d;const S=ie(),V=b.value.model.trim();if(x&&(d.provider=x),x&&x!=="auto"&&x!=="main"&&!V)throw new Error(o("models.modelRequired"));return V&&(d.model=V),b.value.timeout&&(d.timeout=b.value.timeout),B.value&&b.value.download_timeout&&(d.download_timeout=b.value.download_timeout),S&&Object.keys(S).length>0&&(d.extra_body=S),Object.keys(d).length===0&&(d.provider="auto"),d}async function ee(){if(!_.value)return;let d;try{d=ne()}catch(x){t.error(x.message);return}v.value=!0;try{const x={...y.value};Object.keys(d).length>0?x[_.value.key]=d:delete x[_.value.key],y.value=(await Ot(x)).auxiliary,m.value=!1,t.success(o("models.auxiliarySaved"))}catch(x){t.error(x.message||o("models.auxiliarySaveFailed"))}finally{v.value=!1}}async function L(d){v.value=!0;try{const x={...y.value};x[d.key]={provider:"auto",...d.default_timeout?{timeout:d.default_timeout}:{},...d.key==="vision"&&d.default_download_timeout?{download_timeout:d.default_download_timeout}:{}},y.value=(await Ot(x)).auxiliary,t.success(o("models.auxiliarySaved"))}catch(x){t.error(x.message||o("models.auxiliarySaveFailed"))}finally{v.value=!1}}return He(()=>{Y()}),Oe(()=>a.activeProfileName,()=>{Y()}),Oe(()=>b.value.provider,d=>{if(!A.value){if(!d||d==="auto"||d==="main"){b.value.model="",d==="auto"&&(b.value.extra_body="");return}I(d).includes(b.value.model)||(b.value.model="")}},{flush:"sync"}),(d,x)=>(r(),w("section",Ft,[l("div",It,[l("div",null,[l("h3",null,i(e(o)("models.auxiliaryTitle")),1),l("p",null,i(e(o)("models.auxiliarySubtitle")),1)]),s(e(z),{size:"small",quaternary:"",loading:k.value,onClick:Y},{default:n(()=>[E(i(e(o)("models.auxiliaryRefresh")),1)]),_:1},8,["loading"])]),s(e(Re),{show:k.value},{default:n(()=>[l("div",zt,[l("div",Rt,[l("span",null,i(e(o)("models.auxiliaryTask")),1),l("span",null,i(e(o)("models.provider"))+" / "+i(e(o)("models.defaultModel")),1),l("span",null,i(e(o)("models.auxiliaryTimeout")),1),l("span",null,i(e(o)("models.auxiliaryActions")),1)]),(r(!0),w(Ce,null,Ne(D.value,S=>(r(),w("div",{key:S.key,class:"auxiliary-row"},[l("span",Vt,i(C(S)),1),l("span",Bt,i(c(y.value[S.key])),1),l("span",Kt,i(T(S,y.value[S.key])),1),l("span",qt,[s(e(z),{size:"tiny",quaternary:"",onClick:V=>X(S)},{default:n(()=>[E(i(e(o)("common.edit")),1)]),_:1},8,["onClick"]),s(e(z),{size:"tiny",quaternary:"",disabled:v.value,onClick:V=>L(S)},{default:n(()=>[E(i(e(o)("models.auxiliaryClear")),1)]),_:1},8,["disabled","onClick"])])]))),128))])]),_:1},8,["show"]),s(e(De),{show:m.value,"onUpdate:show":x[6]||(x[6]=S=>m.value=S),preset:"card",title:_.value?C(_.value):e(o)("models.auxiliaryTitle"),style:{width:"min(620px, calc(100vw - 32px))"},"mask-closable":!v.value},{footer:n(()=>[l("div",Jt,[s(e(z),{disabled:v.value,onClick:x[5]||(x[5]=S=>m.value=!1)},{default:n(()=>[E(i(e(o)("common.cancel")),1)]),_:1},8,["disabled"]),s(e(z),{type:"primary",loading:v.value,onClick:ee},{default:n(()=>[E(i(e(o)("common.save")),1)]),_:1},8,["loading"])])]),default:n(()=>[l("div",Ht,[l("label",null,[l("span",null,i(e(o)("models.provider")),1),s(e(_e),{value:b.value.provider,"onUpdate:value":x[0]||(x[0]=S=>b.value.provider=S),options:G.value,placeholder:e(o)("models.chooseProvider"),filterable:""},null,8,["value","options","placeholder"])]),l("label",null,[l("span",null,i(e(o)("models.defaultModel")),1),s(e(_e),{value:b.value.model,"onUpdate:value":x[1]||(x[1]=S=>b.value.model=S),options:R.value,placeholder:e(o)("models.selectModel"),disabled:!b.value.provider||b.value.provider==="auto"||b.value.provider==="main",filterable:""},null,8,["value","options","placeholder","disabled"])]),l("label",null,[l("span",null,i(e(o)("models.auxiliaryTimeout")),1),s(e(ze),{value:b.value.timeout,"onUpdate:value":x[2]||(x[2]=S=>b.value.timeout=S),min:1,precision:0},null,8,["value"])]),B.value?(r(),w("label",jt,[l("span",null,i(e(o)("models.auxiliaryDownloadTimeout")),1),s(e(ze),{value:b.value.download_timeout,"onUpdate:value":x[3]||(x[3]=S=>b.value.download_timeout=S),min:1,precision:0},null,8,["value"])])):U("",!0),l("label",Gt,[l("span",null,i(e(o)("models.auxiliaryExtraBody")),1),s(e(fe),{value:b.value.extra_body,"onUpdate:value":x[4]||(x[4]=S=>b.value.extra_body=S),type:"textarea",autosize:{minRows:4,maxRows:8}},null,8,["value"])])])]),_:1},8,["show","title","mask-closable"])]))}})})),Yn=j((()=>{})),Mr,Zn=j((()=>{Wt(),Wt(),Yn(),Pe(),Mr=Te(Sr,[["__scopeId","data-v-d0d5a801"]])})),Xt,Yt,Zt,Qt,el,tl,ll,al,il,ol,sl,rl,nl,ul,dl,vl,cl,pl,ml,fl,_l,gl,yl,bl,hl,kl,wl,Cl,xl,Sl,Ml,$l,Pl,Tl,Ul,Al,Ll,El,Ol,Dl,$r,Nl=j((()=>{we(),Ae(),Se(),St(),hr(),Ge(),xt(),Xt={class:"combination-models-panel"},Yt={class:"combination-header"},Zt={class:"combination-header-actions"},Qt={class:"combination-table"},el={class:"combination-row combination-row-head"},tl={class:"preset-name"},ll={key:0,class:"default-badge"},al={class:"slot-summary"},il={class:"slot-summary"},ol={class:"row-actions"},sl={class:"combination-form"},rl={class:"switch-row"},nl={class:"slot-section"},ul={class:"slot-section-header"},dl={class:"slot-editor-list"},vl={class:"slot-pair"},cl={class:"slot-row-actions"},pl={class:"slot-section"},ml={class:"slot-section-header"},fl={class:"slot-editor-row aggregator-row"},_l={class:"slot-pair"},gl={class:"slot-row-actions"},yl={class:"modal-actions"},bl={class:"model-list"},hl=["onClick"],kl={class:"model-group-label"},wl={class:"model-group-count"},Cl={class:"model-group-items"},xl=["title","onClick"],Sl={class:"model-item-label"},Ml={class:"model-item-name"},$l={key:0,class:"model-item-id"},Pl={key:0,class:"model-badge-preview"},Tl={key:1,class:"model-badge-disabled"},Ul={key:2,class:"model-badge-custom"},Al=["title","onClick"],Ll={key:0,class:"model-empty"},El={class:"model-custom"},Ol={class:"model-custom-row"},Dl={class:"model-custom-hint"},$r=xe({__name:"CombinationModelsPanel",setup(u){const{t:o}=Me(),t=Le(),f=br(),a=je(),k=Ct(),v=p(!1),D=p(!1),y=p(null),m=p(!1),_=p(""),A=p(""),b=p(ie()),G=p(!1),R=p(null),B=p(""),I=p({}),h=p(""),C=p(""),c=P(()=>a.providers.filter(N=>N.provider&&N.provider.toLowerCase()!=="moa").map(N=>({label:N.label||N.provider,value:N.provider}))),T=P(()=>a.providers.filter(N=>N.provider&&N.provider.toLowerCase()!=="moa").map(N=>({...N,models:[...N.models,...(f.customModels[N.provider]||[]).filter(F=>!N.models.includes(F))]}))),Y=P(()=>{const N=B.value.trim().toLowerCase();return N?T.value.map(F=>({...F,models:F.models.filter(W=>{const pe=f.displayModelName(W,F.provider);return W.toLowerCase().includes(N)||pe.toLowerCase().includes(N)})})).filter(F=>F.models.length>0||String(F.label||F.provider).toLowerCase().includes(N)):T.value}),X=P(()=>y.value?Object.entries(y.value.presets).map(([N,F])=>({name:N,preset:F})):[]);function ie(){return{enabled:!0,reference_models:[],aggregator:{provider:"",model:"",reasoning_effort:void 0},reference_temperature:.6,aggregator_temperature:.4,max_tokens:4096}}function ne(N){return JSON.parse(JSON.stringify(N))}function ee(N){return JSON.parse(JSON.stringify(N))}const L=P(()=>[{label:o("chat.reasoningEffort.options.none"),value:"none"},{label:o("chat.reasoningEffort.options.minimal"),value:"minimal"},{label:o("chat.reasoningEffort.options.low"),value:"low"},{label:o("chat.reasoningEffort.options.medium"),value:"medium"},{label:o("chat.reasoningEffort.options.high"),value:"high"},{label:o("chat.reasoningEffort.options.xhigh"),value:"xhigh"},{label:o("chat.reasoningEffort.options.max"),value:"max"},{label:o("chat.reasoningEffort.options.ultra"),value:"ultra"}]);function d(N){return!N?.provider||!N?.model?o("models.combinationNotSet"):`${N.provider} / ${N.model}`}function x(N,F){return f.displayModelName(N,F)}function S(N,F){return f.getModelAlias(N,F)}function V(N,F){return(f.customModels[F]||[]).includes(N)}function ue(N){return!!I.value[N]}function q(N){I.value[N]=!I.value[N]}async function g(){v.value=!0;try{y.value=ne(await Nn())}catch(N){t.error(N.message||o("models.combinationLoadFailed"))}finally{v.value=!1}}function M(){_.value="",A.value="",b.value=ie(),m.value=!0}function ge(N){y.value?.presets[N]&&(_.value=N,A.value=N,b.value=ee(y.value.presets[N]),m.value=!0)}function be(){oe("reference")}function Ee(N){b.value.reference_models.splice(N,1)}function ye(){const N=A.value.trim();return N?/^[A-Za-z0-9_.-]{1,80}$/.test(N)?!_.value&&y.value?.presets[N]||_.value&&N!==_.value&&y.value?.presets[N]?(t.error(o("models.combinationPresetExists")),!1):b.value.reference_models.filter(F=>F.provider.trim()&&F.model.trim()).length===0?(t.error(o("models.combinationReferenceRequired")),!1):!b.value.aggregator.provider.trim()||!b.value.aggregator.model.trim()?(t.error(o("models.combinationAggregatorRequired")),!1):!0:(t.error(o("models.combinationNameInvalid")),!1):(t.error(o("models.combinationNameRequired")),!1)}async function Fe(){if(!y.value||!ye())return;const N=A.value.trim(),F=ne(y.value),W={...ee(b.value),reference_models:b.value.reference_models.filter(pe=>pe.provider.trim()&&pe.model.trim()).map(pe=>({provider:pe.provider.trim(),model:pe.model.trim(),reasoning_effort:pe.reasoning_effort||void 0})),aggregator:{provider:b.value.aggregator.provider.trim(),model:b.value.aggregator.model.trim(),reasoning_effort:b.value.aggregator.reasoning_effort||void 0},max_tokens:Math.max(1,Math.floor(Number(b.value.max_tokens)||4096))};_.value&&_.value!==N&&(delete F.presets[_.value],F.default_preset===_.value&&(F.default_preset=N),F.active_preset===_.value&&(F.active_preset=N)),F.presets[N]=W,(!F.default_preset||!F.presets[F.default_preset])&&(F.default_preset=N),await Ie(F),m.value=!1}async function $(N){if(!y.value||y.value.default_preset===N)return;const F=ne(y.value);F.default_preset=N,await Ie(F)}async function O(N){if(!y.value||Object.keys(y.value.presets).length<=1)return;const F=ne(y.value);delete F.presets[N];const W=Object.keys(F.presets)[0];F.default_preset===N&&(F.default_preset=W),F.active_preset===N&&(F.active_preset=""),await Ie(F)}function oe(N,F){R.value={kind:N,index:F},B.value="",I.value={},h.value=T.value[0]?.provider||"",C.value="",G.value=!0}function Ue(N){R.value&&(R.value.kind==="aggregator"?b.value.aggregator=N:typeof R.value.index=="number"?b.value.reference_models[R.value.index]=N:b.value.reference_models.push(N),G.value=!1)}function H(N,F){T.value.find(W=>W.provider===F)?.model_meta?.[N]?.disabled||Ue({provider:F,model:N})}function J(){const N=C.value.trim();!h.value||!N||T.value.find(F=>F.provider===h.value)?.model_meta?.[N]?.disabled||Ue({provider:h.value,model:N})}async function se(N,F){await f.removeCustomModel(N,F)}async function Ie(N){D.value=!0;try{y.value=ne((await En(N)).moa),await Promise.all([a.fetchProviders(),f.reloadModels({preserveSelection:!0})]),t.success(o("models.combinationSaved"))}catch(F){throw t.error(F.message||o("models.combinationSaveFailed")),F}finally{D.value=!1}}return He(()=>{g()}),Oe(()=>k.activeProfileName,()=>{g()}),(N,F)=>(r(),w("section",Xt,[l("div",Yt,[l("div",null,[l("h3",null,i(e(o)("models.combinationTitle")),1),l("p",null,i(e(o)("models.combinationSubtitle")),1)]),l("div",Zt,[s(e(z),{size:"small",quaternary:"",loading:v.value,onClick:g},{default:n(()=>[E(i(e(o)("models.auxiliaryRefresh")),1)]),_:1},8,["loading"]),s(e(z),{size:"small",type:"primary",disabled:!y.value,onClick:M},{default:n(()=>[E(i(e(o)("models.combinationAddModel")),1)]),_:1},8,["disabled"])])]),s(e(Re),{show:v.value},{default:n(()=>[l("div",Qt,[l("div",el,[l("span",null,i(e(o)("models.combinationName")),1),l("span",null,i(e(o)("models.combinationReferenceModels")),1),l("span",null,i(e(o)("models.combinationAggregator")),1),l("span",null,i(e(o)("models.auxiliaryActions")),1)]),(r(!0),w(Ce,null,Ne(X.value,({name:W,preset:pe})=>(r(),w("div",{key:W,class:"combination-row"},[l("span",tl,[E(i(W)+" ",1),y.value?.default_preset===W?(r(),w("span",ll,i(e(o)("models.defaultShort")),1)):U("",!0)]),l("span",al,i(pe.reference_models.map(d).join(", ")),1),l("span",il,i(d(pe.aggregator)),1),l("span",ol,[s(e(z),{size:"tiny",quaternary:"",onClick:te=>ge(W)},{default:n(()=>[E(i(e(o)("common.edit")),1)]),_:1},8,["onClick"]),s(e(z),{size:"tiny",quaternary:"",disabled:y.value?.default_preset===W,onClick:te=>$(W)},{default:n(()=>[E(i(e(o)("models.combinationSetDefault")),1)]),_:1},8,["disabled","onClick"]),s(e(z),{size:"tiny",quaternary:"",disabled:X.value.length<=1,onClick:te=>O(W)},{default:n(()=>[E(i(e(o)("common.delete")),1)]),_:1},8,["disabled","onClick"])])]))),128))])]),_:1},8,["show"]),s(e(De),{show:m.value,"onUpdate:show":F[8]||(F[8]=W=>m.value=W),preset:"card",title:_.value?e(o)("models.combinationEditModel"):e(o)("models.combinationAddModel"),style:{width:"min(760px, calc(100vw - 32px))"},"mask-closable":!D.value},{footer:n(()=>[l("div",yl,[s(e(z),{disabled:D.value,onClick:F[7]||(F[7]=W=>m.value=!1)},{default:n(()=>[E(i(e(o)("common.cancel")),1)]),_:1},8,["disabled"]),s(e(z),{type:"primary",loading:D.value,onClick:Fe},{default:n(()=>[E(i(e(o)("common.save")),1)]),_:1},8,["loading"])])]),default:n(()=>[l("div",sl,[l("label",null,[l("span",null,i(e(o)("models.combinationName")),1),s(e(fe),{value:A.value,"onUpdate:value":F[0]||(F[0]=W=>A.value=W),placeholder:e(o)("models.combinationPresetPlaceholder")},null,8,["value","placeholder"])]),l("label",rl,[l("span",null,i(e(o)("models.combinationEnabled")),1),s(e(_n),{value:b.value.enabled,"onUpdate:value":F[1]||(F[1]=W=>b.value.enabled=W)},null,8,["value"])]),l("label",null,[l("span",null,i(e(o)("models.combinationReferenceTemperature")),1),s(e(ze),{value:b.value.reference_temperature,"onUpdate:value":F[2]||(F[2]=W=>b.value.reference_temperature=W),min:0,max:2,step:.1},null,8,["value"])]),l("label",null,[l("span",null,i(e(o)("models.combinationAggregatorTemperature")),1),s(e(ze),{value:b.value.aggregator_temperature,"onUpdate:value":F[3]||(F[3]=W=>b.value.aggregator_temperature=W),min:0,max:2,step:.1},null,8,["value"])]),l("label",null,[l("span",null,i(e(o)("models.combinationMaxTokens")),1),s(e(ze),{value:b.value.max_tokens,"onUpdate:value":F[4]||(F[4]=W=>b.value.max_tokens=W),min:1,precision:0},null,8,["value"])]),l("div",nl,[l("div",ul,[l("h4",null,i(e(o)("models.combinationReferenceModels")),1),s(e(z),{size:"tiny",type:"primary",secondary:"",onClick:be},{default:n(()=>[E(i(e(o)("models.combinationAddReference")),1)]),_:1})]),l("div",dl,[(r(!0),w(Ce,null,Ne(b.value.reference_models,(W,pe)=>(r(),w("div",{key:pe,class:"slot-editor-row"},[l("span",vl,i(d(W)),1),s(e(_e),{value:W.reasoning_effort,"onUpdate:value":te=>W.reasoning_effort=te,options:L.value,size:"small",clearable:"",placeholder:e(o)("chat.reasoningEffort.tooltip"),style:{width:"130px"}},null,8,["value","onUpdate:value","options","placeholder"]),l("span",cl,[s(e(z),{size:"small",quaternary:"",onClick:te=>oe("reference",pe)},{default:n(()=>[E(i(e(o)("common.edit")),1)]),_:1},8,["onClick"]),s(e(z),{size:"small",quaternary:"",onClick:te=>Ee(pe)},{default:n(()=>[E(i(e(o)("common.delete")),1)]),_:1},8,["onClick"])])]))),128))])]),l("div",pl,[l("div",ml,[l("h4",null,i(e(o)("models.combinationAggregator")),1)]),l("div",fl,[l("span",_l,i(d(b.value.aggregator)),1),s(e(_e),{value:b.value.aggregator.reasoning_effort,"onUpdate:value":F[5]||(F[5]=W=>b.value.aggregator.reasoning_effort=W),options:L.value,size:"small",clearable:"",placeholder:e(o)("chat.reasoningEffort.tooltip"),style:{width:"130px"}},null,8,["value","options","placeholder"]),l("span",gl,[s(e(z),{size:"small",quaternary:"",onClick:F[6]||(F[6]=W=>oe("aggregator"))},{default:n(()=>[E(i(e(o)("common.edit")),1)]),_:1})])])])])]),_:1},8,["show","title","mask-closable"]),s(e(De),{show:G.value,"onUpdate:show":F[12]||(F[12]=W=>G.value=W),preset:"card",title:e(o)("models.selectModel"),style:{width:"min(480px, calc(100vw - 32px))"},"mask-closable":!0},{default:n(()=>[s(e(fe),{value:B.value,"onUpdate:value":F[9]||(F[9]=W=>B.value=W),placeholder:e(o)("models.searchPlaceholder"),clearable:"",size:"small",class:"model-search"},null,8,["value","placeholder"]),l("div",bl,[(r(!0),w(Ce,null,Ne(Y.value,W=>(r(),w("div",{key:W.provider,class:"model-group"},[l("div",{class:"model-group-header",onClick:pe=>q(W.provider)},[(r(),w("svg",{class:Be(["model-group-arrow",{collapsed:ue(W.provider)}]),width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...F[13]||(F[13]=[l("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2)),l("span",kl,i(W.label||W.provider),1),l("span",wl,i(W.models.length),1)],8,hl),kn(l("div",Cl,[(r(!0),w(Ce,null,Ne(W.models,pe=>(r(),w("div",{key:pe,class:Be(["model-item",{disabled:!!W.model_meta?.[pe]?.disabled}]),title:W.model_meta?.[pe]?.disabled?e(o)("models.disabledTooltip"):"",onClick:te=>H(pe,W.provider)},[l("span",Sl,[l("span",Ml,i(x(pe,W.provider)),1),S(pe,W.provider)?(r(),w("span",$l,i(e(o)("models.aliasCanonical",{model:pe})),1)):U("",!0)]),W.model_meta?.[pe]?.preview?(r(),w("span",Pl,i(e(o)("models.previewBadge")),1)):U("",!0),W.model_meta?.[pe]?.disabled?(r(),w("span",Tl,i(e(o)("models.disabledBadge")),1)):U("",!0),V(pe,W.provider)?(r(),w("span",Ul,i(e(o)("models.customBadge")),1)):U("",!0),V(pe,W.provider)?(r(),w("button",{key:3,class:"model-custom-remove",type:"button",title:e(o)("models.removeCustomModel"),onClick:Sn(te=>se(pe,W.provider),["stop"])}," × ",8,Al)):U("",!0)],10,xl))),128))],512),[[bn,!ue(W.provider)]])]))),128)),Y.value.length===0?(r(),w("div",Ll,i(B.value?e(o)("models.noResults"):e(o)("models.noModels")),1)):U("",!0),l("div",El,[l("div",Ol,[s(e(_e),{value:h.value,"onUpdate:value":F[10]||(F[10]=W=>h.value=W),options:c.value,size:"small",class:"model-custom-provider"},null,8,["value","options"]),s(e(fe),{value:C.value,"onUpdate:value":F[11]||(F[11]=W=>C.value=W),placeholder:e(o)("models.customModelPlaceholder"),size:"small",class:"model-custom-input",onKeydown:yr(J,["enter"])},null,8,["value","placeholder"])]),l("div",Dl,i(e(o)("models.customModelHint")),1)])])]),_:1},8,["show","title"])]))}})})),Qn=j((()=>{})),Pr,eu=j((()=>{Nl(),Nl(),Qn(),Pe(),Pr=Te($r,[["__scopeId","data-v-7afac4ca"]])}));async function tu(){return ke("/api/hermes/auth/copilot/start",{method:"POST"})}async function lu(u){return ke(`/api/hermes/auth/copilot/poll/${u}`)}async function Ut(){return ke("/api/hermes/auth/copilot/check-token")}async function au(){return ke("/api/hermes/auth/copilot/enable",{method:"POST"})}async function iu(){return ke("/api/hermes/auth/copilot/disable",{method:"POST"})}var ot=j((()=>{Ve()})),Fl,Il,zl,Rl,Vl,Bl,Kl,ql,Hl,jl,Gl,Jl,Wl,Xl,Yl,Zl,Ql,ea,ta,la,aa,ia,Tr,oa=j((()=>{we(),Ae(),Se(),gr(),Ge(),Fl={key:0,class:"editor-body"},Il={class:"identity-note"},zl={key:0,class:"field"},Rl={class:"field"},Vl={key:1,class:"field"},Bl={key:2,class:"field"},Kl={key:0,class:"warning-text"},ql={key:1},Hl={key:3,class:"credential-section"},jl={class:"section-heading"},Gl={class:"credential-actions"},Jl={key:4,class:"context-section"},Wl={class:"advanced-settings"},Xl={key:1,class:"field"},Yl={key:2,class:"field"},Zl={key:3,class:"field"},Ql={key:4,class:"field"},ea={key:5,class:"context-section"},ta={class:"context-list"},la=["title"],aa={class:"runtime-note"},ia={class:"modal-actions"},Tr=xe({__name:"ProviderEditorModal",props:{show:{type:Boolean},provider:{}},emits:["update:show","saved"],setup(u,{emit:o}){const t=u,f=o,{t:a}=Me(),k=Le(),v=wt(),D=je(),y=p(null),m=p(!1),_=p(!1),A=p(!1),b=p(!1),G=p(""),R=p(""),B=p("chat_completions"),I=p(""),h=p(""),C=p({}),c=p(!1),T=p(null),Y=p(null),X=p(null),ie=p(""),ne={name:"provider-display-name",autocomplete:"off",spellcheck:!1,"data-form-type":"other"},ee={name:"provider-base-url",autocomplete:"off",spellcheck:!1,"data-form-type":"other"},L={name:"provider-preferred-model",autocomplete:"off",spellcheck:!1,"data-form-type":"other"},d={name:"provider-api-key-replacement",autocomplete:"new-password",autocapitalize:"none",spellcheck:!1,"data-form-type":"other","data-1p-ignore":"true","data-lpignore":"true"},x=[{label:"Chat Completions",value:"chat_completions"},{label:"Codex Responses",value:"codex_responses"},{label:"Anthropic Messages",value:"anthropic_messages"},{label:"Bedrock Converse",value:"bedrock_converse"},{label:"Codex App Server",value:"codex_app_server"}],S=P(()=>new Set(t.provider.available_models?.length?t.provider.available_models:t.provider.models)),V=P(()=>{const H=new Set(S.value);return I.value&&H.add(I.value),[...H]}),ue=P(()=>V.value.map(H=>({label:H,value:H}))),q=P(()=>!!I.value&&!S.value.has(I.value));function g(H){return!!y.value?.editable_fields.includes(H)}function M(H){y.value=H,G.value=H.label,R.value=H.base_url,B.value=H.api_mode||"chat_completions",I.value=H.preferred_model||t.provider.models[0]||"",h.value="",c.value=H.discover_models??!1,T.value=H.rate_limit_delay??null,Y.value=H.request_timeout_seconds??null,X.value=H.stale_timeout_seconds??null,ie.value=H.extra_body?JSON.stringify(H.extra_body,null,2):"";const J={};for(const se of new Set([...V.value,...Object.keys(H.context_lengths)]))J[se]=H.context_lengths[se]??null;C.value=J}async function ge(){m.value=!0;try{M(await D.fetchProviderEditor(t.provider.provider))}catch(H){k.error(H?.message||a("models.providerEditorLoadFailed")),be()}finally{m.value=!1}}Oe(()=>t.show,H=>{H&&ge()},{immediate:!0});function be(){f("update:show",!1)}function Ee(){const H=ie.value.trim();if(!H)return null;let J;try{J=JSON.parse(H)}catch{throw new Error(a("models.extraBodyInvalid"))}if(!J||typeof J!="object"||Array.isArray(J))throw new Error(a("models.extraBodyInvalid"));return J}function ye(){const H={};if(g("label")&&(H.label=G.value.trim()),g("base_url")&&(H.base_url=R.value.trim()),g("api_mode")&&(H.api_mode=B.value),g("preferred_model")&&(H.preferred_model=I.value.trim()),g("api_key")&&(H.credential_action=h.value.trim()?"replace":"keep",h.value.trim()&&(H.api_key=h.value.trim())),y.value&&(g("discover_models")&&c.value!==(y.value.discover_models??!1)&&(H.discover_models=c.value),g("rate_limit_delay")&&T.value!==(y.value.rate_limit_delay??null)&&(H.rate_limit_delay=T.value),g("request_timeout_seconds")&&Y.value!==(y.value.request_timeout_seconds??null)&&(H.request_timeout_seconds=Y.value),g("stale_timeout_seconds")&&X.value!==(y.value.stale_timeout_seconds??null)&&(H.stale_timeout_seconds=X.value),g("extra_body"))){const J=Ee();JSON.stringify(J)!==JSON.stringify(y.value.extra_body??null)&&(H.extra_body=J)}return H}function Fe(){const H={};if(!y.value||!g("context_lengths"))return H;for(const[J,se]of Object.entries(C.value))se!==(y.value.context_lengths[J]??null)&&(H[J]=se);return H}async function $(H=!0){if(!y.value?.connection_test_supported)return{success:!1,error:y.value?.connection_test_reason||a("models.providerTestUnsupported")};A.value=!0;try{const J=await fn(t.provider.provider,ye());return J.success?H&&k.success(a("models.providerTestSuccess",{count:J.model_count||0})):H&&k.error(J.error||a("models.providerTestFailed")),{success:J.success,error:J.error}}catch(J){const se=J?.message||a("models.providerTestFailed");return H&&k.error(se),{success:!1,error:se}}finally{A.value=!1}}function O(H){return new Promise(J=>{v.warning({title:a("models.providerTestFailedTitle"),content:`${H}
|
|
1
|
+
import{$i as n,$t as z,Bi as He,Di as xe,Dt as pn,Fi as Lt,Ft as at,G as Re,Gt as fr,Hi as r,Ki as mn,M as Ae,Nr as Se,Nt as _r,Pr as Me,Qr as Ve,Ri as ht,S as fn,Sa as i,Ti as s,U as _n,V as Qe,Vi as tt,Wi as Ne,Yr as gn,Z as yn,Zi as Oe,_a as e,_i as l,_t as De,at as kt,bi as w,bt as wt,d as gr,di as bn,dn as We,dt as hn,ea as kn,ei as ke,fi as yr,gi as P,gt as Le,i as br,ii as wn,lt as Cn,mi as Ce,n as Pe,ni as xn,pi as Sn,q as Et,qt as Mn,r as hr,ri as $n,rt as ce,si as we,sn as fe,st as et,t as Te,tt as ze,u as Pn,ua as p,vi as K,wa as j,wi as E,ya as Be,yi as U,z as Tn,zt as _e}from"./index-DN4SafrP.js";import{n as Xe,t as Ye}from"./clipboard-DHZFaAvO.js";import{r as Ct,t as xt}from"./profiles-BK5JKD7h.js";import{i as Un,o as An}from"./chat-fUZW3YFa.js";import{a as Ln,c as St,f as En,i as On,m as Dn,o as Nn,u as Ot}from"./settings-roYY6G3W.js";import{n as je,t as Ge}from"./models-BILDy2sV.js";import{a as Fn,h as In,i as zn,m as Rn,n as Vn,o as Dt,p as Bn,r as Kn,s as qn,t as Hn,u as jn}from"./useSttSettings-DHX06G8A.js";import{a as Mt,c as it,d as Gn,h as Nt,i as $t,l as kr,m as Jn,n as wr,o as Pt,p as Wn,r as Cr,s as Xn,t as xr,u as Tt}from"./ttsHelpers-BLNiQExI.js";var Ft,It,zt,Rt,Vt,Bt,Kt,qt,Ht,jt,Gt,Jt,Sr,Wt=j((()=>{we(),Ae(),Se(),St(),Ge(),xt(),Ft={class:"auxiliary-panel"},It={class:"auxiliary-header"},zt={class:"auxiliary-table"},Rt={class:"auxiliary-row auxiliary-row-head"},Vt={class:"task-name"},Bt={class:"task-config"},Kt={class:"task-timeout"},qt={class:"task-actions"},Ht={class:"auxiliary-form"},jt={key:0},Gt={class:"extra-body-field"},Jt={class:"auxiliary-modal-actions"},Sr=xe({__name:"AuxiliaryModelsPanel",setup(u){const{t:o}=Me(),t=Le(),f=je(),a=Ct(),k=p(!1),v=p(!1),D=p([]),y=p({}),m=p(!1),_=p(null),A=p(!1),b=p({provider:"",model:"",timeout:null,download_timeout:null,extra_body:""}),G=P(()=>{const d=new Set,x=[{label:o("models.auxiliaryProviderAuto"),value:"auto"},{label:o("models.auxiliaryProviderMain"),value:"main"}];for(const S of f.providers)!S.provider||d.has(S.provider)||(d.add(S.provider),x.push({label:S.label||S.provider,value:S.provider}));return x}),R=P(()=>{const d=b.value.provider.trim();return!d||d==="auto"||d==="main"?[]:I(d).map(x=>({label:x,value:x}))}),B=P(()=>_.value?.key==="vision");function I(d){return f.providers.find(x=>x.provider===d)?.models||[]}function h(d){return!d||d==="auto"||d==="main"?!0:f.providers.some(x=>x.provider===d)}function C(d){switch(d.key){case"compression":return o("models.auxiliaryTaskCompression");case"vision":return o("models.auxiliaryTaskVision");case"web_extract":return o("models.auxiliaryTaskWebExtract");case"skills_hub":return o("models.auxiliaryTaskSkillsHub");case"approval":return o("models.auxiliaryTaskApproval");case"mcp":return o("models.auxiliaryTaskMcp");case"title_generation":return o("models.auxiliaryTaskTitleGeneration");case"triage_specifier":return o("models.auxiliaryTaskTriageSpecifier");case"kanban_decomposer":return o("models.auxiliaryTaskKanbanDecomposer");case"profile_describer":return o("models.auxiliaryTaskProfileDescriber");case"curator":return o("models.auxiliaryTaskCurator");case"session_search":return o("models.auxiliaryTaskSessionSearch");case"flush_memories":return o("models.auxiliaryTaskFlushMemories");default:return d.label||d.key}}function c(d){if(!d||Object.keys(d).length===0)return o("models.auxiliaryProviderAuto");const x=d.provider||(d.base_url?o("models.auxiliaryCustomEndpoint"):o("models.auxiliaryDefault"));return d.model?`${x} / ${d.model}`:x}function T(d,x){const S=x?.timeout??d.default_timeout,V=d.key==="vision"?x?.download_timeout??d.default_download_timeout:void 0;if(!S&&!V)return o("models.auxiliaryDefault");const ue=[];return S&&ue.push(`${S}s`),V&&ue.push(`${o("models.auxiliaryDownloadShort")} ${V}s`),ue.join(" / ")}async function Y(){k.value=!0;try{const d=await On();D.value=d.tasks,y.value=d.auxiliary}catch(d){t.error(d.message||o("models.auxiliaryLoadFailed"))}finally{k.value=!1}}function X(d){const x=y.value[d.key]||{},S=h(x.provider||"")&&x.provider||"auto",V=(S==="auto"||S==="main"||I(S).includes(x.model||""))&&x.model||"";_.value=d,A.value=!0,b.value={provider:S,model:V,timeout:x.timeout??d.default_timeout??null,download_timeout:d.key==="vision"?x.download_timeout??d.default_download_timeout??null:null,extra_body:x.extra_body?JSON.stringify(x.extra_body,null,2):""},A.value=!1,m.value=!0}function ie(){const d=b.value.extra_body.trim();if(!d)return;let x;try{x=JSON.parse(d)}catch{throw new Error(o("models.auxiliaryInvalidExtraBody"))}if(!x||typeof x!="object"||Array.isArray(x))throw new Error(o("models.auxiliaryInvalidExtraBody"));return x}function ne(){const d={},x=b.value.provider.trim();if(x==="auto")return d.provider="auto",b.value.timeout&&(d.timeout=b.value.timeout),B.value&&b.value.download_timeout&&(d.download_timeout=b.value.download_timeout),d;const S=ie(),V=b.value.model.trim();if(x&&(d.provider=x),x&&x!=="auto"&&x!=="main"&&!V)throw new Error(o("models.modelRequired"));return V&&(d.model=V),b.value.timeout&&(d.timeout=b.value.timeout),B.value&&b.value.download_timeout&&(d.download_timeout=b.value.download_timeout),S&&Object.keys(S).length>0&&(d.extra_body=S),Object.keys(d).length===0&&(d.provider="auto"),d}async function ee(){if(!_.value)return;let d;try{d=ne()}catch(x){t.error(x.message);return}v.value=!0;try{const x={...y.value};Object.keys(d).length>0?x[_.value.key]=d:delete x[_.value.key],y.value=(await Ot(x)).auxiliary,m.value=!1,t.success(o("models.auxiliarySaved"))}catch(x){t.error(x.message||o("models.auxiliarySaveFailed"))}finally{v.value=!1}}async function L(d){v.value=!0;try{const x={...y.value};x[d.key]={provider:"auto",...d.default_timeout?{timeout:d.default_timeout}:{},...d.key==="vision"&&d.default_download_timeout?{download_timeout:d.default_download_timeout}:{}},y.value=(await Ot(x)).auxiliary,t.success(o("models.auxiliarySaved"))}catch(x){t.error(x.message||o("models.auxiliarySaveFailed"))}finally{v.value=!1}}return He(()=>{Y()}),Oe(()=>a.activeProfileName,()=>{Y()}),Oe(()=>b.value.provider,d=>{if(!A.value){if(!d||d==="auto"||d==="main"){b.value.model="",d==="auto"&&(b.value.extra_body="");return}I(d).includes(b.value.model)||(b.value.model="")}},{flush:"sync"}),(d,x)=>(r(),w("section",Ft,[l("div",It,[l("div",null,[l("h3",null,i(e(o)("models.auxiliaryTitle")),1),l("p",null,i(e(o)("models.auxiliarySubtitle")),1)]),s(e(z),{size:"small",quaternary:"",loading:k.value,onClick:Y},{default:n(()=>[E(i(e(o)("models.auxiliaryRefresh")),1)]),_:1},8,["loading"])]),s(e(Re),{show:k.value},{default:n(()=>[l("div",zt,[l("div",Rt,[l("span",null,i(e(o)("models.auxiliaryTask")),1),l("span",null,i(e(o)("models.provider"))+" / "+i(e(o)("models.defaultModel")),1),l("span",null,i(e(o)("models.auxiliaryTimeout")),1),l("span",null,i(e(o)("models.auxiliaryActions")),1)]),(r(!0),w(Ce,null,Ne(D.value,S=>(r(),w("div",{key:S.key,class:"auxiliary-row"},[l("span",Vt,i(C(S)),1),l("span",Bt,i(c(y.value[S.key])),1),l("span",Kt,i(T(S,y.value[S.key])),1),l("span",qt,[s(e(z),{size:"tiny",quaternary:"",onClick:V=>X(S)},{default:n(()=>[E(i(e(o)("common.edit")),1)]),_:1},8,["onClick"]),s(e(z),{size:"tiny",quaternary:"",disabled:v.value,onClick:V=>L(S)},{default:n(()=>[E(i(e(o)("models.auxiliaryClear")),1)]),_:1},8,["disabled","onClick"])])]))),128))])]),_:1},8,["show"]),s(e(De),{show:m.value,"onUpdate:show":x[6]||(x[6]=S=>m.value=S),preset:"card",title:_.value?C(_.value):e(o)("models.auxiliaryTitle"),style:{width:"min(620px, calc(100vw - 32px))"},"mask-closable":!v.value},{footer:n(()=>[l("div",Jt,[s(e(z),{disabled:v.value,onClick:x[5]||(x[5]=S=>m.value=!1)},{default:n(()=>[E(i(e(o)("common.cancel")),1)]),_:1},8,["disabled"]),s(e(z),{type:"primary",loading:v.value,onClick:ee},{default:n(()=>[E(i(e(o)("common.save")),1)]),_:1},8,["loading"])])]),default:n(()=>[l("div",Ht,[l("label",null,[l("span",null,i(e(o)("models.provider")),1),s(e(_e),{value:b.value.provider,"onUpdate:value":x[0]||(x[0]=S=>b.value.provider=S),options:G.value,placeholder:e(o)("models.chooseProvider"),filterable:""},null,8,["value","options","placeholder"])]),l("label",null,[l("span",null,i(e(o)("models.defaultModel")),1),s(e(_e),{value:b.value.model,"onUpdate:value":x[1]||(x[1]=S=>b.value.model=S),options:R.value,placeholder:e(o)("models.selectModel"),disabled:!b.value.provider||b.value.provider==="auto"||b.value.provider==="main",filterable:""},null,8,["value","options","placeholder","disabled"])]),l("label",null,[l("span",null,i(e(o)("models.auxiliaryTimeout")),1),s(e(ze),{value:b.value.timeout,"onUpdate:value":x[2]||(x[2]=S=>b.value.timeout=S),min:1,precision:0},null,8,["value"])]),B.value?(r(),w("label",jt,[l("span",null,i(e(o)("models.auxiliaryDownloadTimeout")),1),s(e(ze),{value:b.value.download_timeout,"onUpdate:value":x[3]||(x[3]=S=>b.value.download_timeout=S),min:1,precision:0},null,8,["value"])])):U("",!0),l("label",Gt,[l("span",null,i(e(o)("models.auxiliaryExtraBody")),1),s(e(fe),{value:b.value.extra_body,"onUpdate:value":x[4]||(x[4]=S=>b.value.extra_body=S),type:"textarea",autosize:{minRows:4,maxRows:8}},null,8,["value"])])])]),_:1},8,["show","title","mask-closable"])]))}})})),Yn=j((()=>{})),Mr,Zn=j((()=>{Wt(),Wt(),Yn(),Pe(),Mr=Te(Sr,[["__scopeId","data-v-d0d5a801"]])})),Xt,Yt,Zt,Qt,el,tl,ll,al,il,ol,sl,rl,nl,ul,dl,vl,cl,pl,ml,fl,_l,gl,yl,bl,hl,kl,wl,Cl,xl,Sl,Ml,$l,Pl,Tl,Ul,Al,Ll,El,Ol,Dl,$r,Nl=j((()=>{we(),Ae(),Se(),St(),hr(),Ge(),xt(),Xt={class:"combination-models-panel"},Yt={class:"combination-header"},Zt={class:"combination-header-actions"},Qt={class:"combination-table"},el={class:"combination-row combination-row-head"},tl={class:"preset-name"},ll={key:0,class:"default-badge"},al={class:"slot-summary"},il={class:"slot-summary"},ol={class:"row-actions"},sl={class:"combination-form"},rl={class:"switch-row"},nl={class:"slot-section"},ul={class:"slot-section-header"},dl={class:"slot-editor-list"},vl={class:"slot-pair"},cl={class:"slot-row-actions"},pl={class:"slot-section"},ml={class:"slot-section-header"},fl={class:"slot-editor-row aggregator-row"},_l={class:"slot-pair"},gl={class:"slot-row-actions"},yl={class:"modal-actions"},bl={class:"model-list"},hl=["onClick"],kl={class:"model-group-label"},wl={class:"model-group-count"},Cl={class:"model-group-items"},xl=["title","onClick"],Sl={class:"model-item-label"},Ml={class:"model-item-name"},$l={key:0,class:"model-item-id"},Pl={key:0,class:"model-badge-preview"},Tl={key:1,class:"model-badge-disabled"},Ul={key:2,class:"model-badge-custom"},Al=["title","onClick"],Ll={key:0,class:"model-empty"},El={class:"model-custom"},Ol={class:"model-custom-row"},Dl={class:"model-custom-hint"},$r=xe({__name:"CombinationModelsPanel",setup(u){const{t:o}=Me(),t=Le(),f=br(),a=je(),k=Ct(),v=p(!1),D=p(!1),y=p(null),m=p(!1),_=p(""),A=p(""),b=p(ie()),G=p(!1),R=p(null),B=p(""),I=p({}),h=p(""),C=p(""),c=P(()=>a.providers.filter(N=>N.provider&&N.provider.toLowerCase()!=="moa").map(N=>({label:N.label||N.provider,value:N.provider}))),T=P(()=>a.providers.filter(N=>N.provider&&N.provider.toLowerCase()!=="moa").map(N=>({...N,models:[...N.models,...(f.customModels[N.provider]||[]).filter(F=>!N.models.includes(F))]}))),Y=P(()=>{const N=B.value.trim().toLowerCase();return N?T.value.map(F=>({...F,models:F.models.filter(W=>{const pe=f.displayModelName(W,F.provider);return W.toLowerCase().includes(N)||pe.toLowerCase().includes(N)})})).filter(F=>F.models.length>0||String(F.label||F.provider).toLowerCase().includes(N)):T.value}),X=P(()=>y.value?Object.entries(y.value.presets).map(([N,F])=>({name:N,preset:F})):[]);function ie(){return{enabled:!0,reference_models:[],aggregator:{provider:"",model:"",reasoning_effort:void 0},reference_temperature:.6,aggregator_temperature:.4,max_tokens:4096}}function ne(N){return JSON.parse(JSON.stringify(N))}function ee(N){return JSON.parse(JSON.stringify(N))}const L=P(()=>[{label:o("chat.reasoningEffort.options.none"),value:"none"},{label:o("chat.reasoningEffort.options.minimal"),value:"minimal"},{label:o("chat.reasoningEffort.options.low"),value:"low"},{label:o("chat.reasoningEffort.options.medium"),value:"medium"},{label:o("chat.reasoningEffort.options.high"),value:"high"},{label:o("chat.reasoningEffort.options.xhigh"),value:"xhigh"},{label:o("chat.reasoningEffort.options.max"),value:"max"},{label:o("chat.reasoningEffort.options.ultra"),value:"ultra"}]);function d(N){return!N?.provider||!N?.model?o("models.combinationNotSet"):`${N.provider} / ${N.model}`}function x(N,F){return f.displayModelName(N,F)}function S(N,F){return f.getModelAlias(N,F)}function V(N,F){return(f.customModels[F]||[]).includes(N)}function ue(N){return!!I.value[N]}function q(N){I.value[N]=!I.value[N]}async function g(){v.value=!0;try{y.value=ne(await Nn())}catch(N){t.error(N.message||o("models.combinationLoadFailed"))}finally{v.value=!1}}function M(){_.value="",A.value="",b.value=ie(),m.value=!0}function ge(N){y.value?.presets[N]&&(_.value=N,A.value=N,b.value=ee(y.value.presets[N]),m.value=!0)}function be(){oe("reference")}function Ee(N){b.value.reference_models.splice(N,1)}function ye(){const N=A.value.trim();return N?/^[A-Za-z0-9_.-]{1,80}$/.test(N)?!_.value&&y.value?.presets[N]||_.value&&N!==_.value&&y.value?.presets[N]?(t.error(o("models.combinationPresetExists")),!1):b.value.reference_models.filter(F=>F.provider.trim()&&F.model.trim()).length===0?(t.error(o("models.combinationReferenceRequired")),!1):!b.value.aggregator.provider.trim()||!b.value.aggregator.model.trim()?(t.error(o("models.combinationAggregatorRequired")),!1):!0:(t.error(o("models.combinationNameInvalid")),!1):(t.error(o("models.combinationNameRequired")),!1)}async function Fe(){if(!y.value||!ye())return;const N=A.value.trim(),F=ne(y.value),W={...ee(b.value),reference_models:b.value.reference_models.filter(pe=>pe.provider.trim()&&pe.model.trim()).map(pe=>({provider:pe.provider.trim(),model:pe.model.trim(),reasoning_effort:pe.reasoning_effort||void 0})),aggregator:{provider:b.value.aggregator.provider.trim(),model:b.value.aggregator.model.trim(),reasoning_effort:b.value.aggregator.reasoning_effort||void 0},max_tokens:Math.max(1,Math.floor(Number(b.value.max_tokens)||4096))};_.value&&_.value!==N&&(delete F.presets[_.value],F.default_preset===_.value&&(F.default_preset=N),F.active_preset===_.value&&(F.active_preset=N)),F.presets[N]=W,(!F.default_preset||!F.presets[F.default_preset])&&(F.default_preset=N),await Ie(F),m.value=!1}async function $(N){if(!y.value||y.value.default_preset===N)return;const F=ne(y.value);F.default_preset=N,await Ie(F)}async function O(N){if(!y.value||Object.keys(y.value.presets).length<=1)return;const F=ne(y.value);delete F.presets[N];const W=Object.keys(F.presets)[0];F.default_preset===N&&(F.default_preset=W),F.active_preset===N&&(F.active_preset=""),await Ie(F)}function oe(N,F){R.value={kind:N,index:F},B.value="",I.value={},h.value=T.value[0]?.provider||"",C.value="",G.value=!0}function Ue(N){R.value&&(R.value.kind==="aggregator"?b.value.aggregator=N:typeof R.value.index=="number"?b.value.reference_models[R.value.index]=N:b.value.reference_models.push(N),G.value=!1)}function H(N,F){T.value.find(W=>W.provider===F)?.model_meta?.[N]?.disabled||Ue({provider:F,model:N})}function J(){const N=C.value.trim();!h.value||!N||T.value.find(F=>F.provider===h.value)?.model_meta?.[N]?.disabled||Ue({provider:h.value,model:N})}async function se(N,F){await f.removeCustomModel(N,F)}async function Ie(N){D.value=!0;try{y.value=ne((await En(N)).moa),await Promise.all([a.fetchProviders(),f.reloadModels({preserveSelection:!0})]),t.success(o("models.combinationSaved"))}catch(F){throw t.error(F.message||o("models.combinationSaveFailed")),F}finally{D.value=!1}}return He(()=>{g()}),Oe(()=>k.activeProfileName,()=>{g()}),(N,F)=>(r(),w("section",Xt,[l("div",Yt,[l("div",null,[l("h3",null,i(e(o)("models.combinationTitle")),1),l("p",null,i(e(o)("models.combinationSubtitle")),1)]),l("div",Zt,[s(e(z),{size:"small",quaternary:"",loading:v.value,onClick:g},{default:n(()=>[E(i(e(o)("models.auxiliaryRefresh")),1)]),_:1},8,["loading"]),s(e(z),{size:"small",type:"primary",disabled:!y.value,onClick:M},{default:n(()=>[E(i(e(o)("models.combinationAddModel")),1)]),_:1},8,["disabled"])])]),s(e(Re),{show:v.value},{default:n(()=>[l("div",Qt,[l("div",el,[l("span",null,i(e(o)("models.combinationName")),1),l("span",null,i(e(o)("models.combinationReferenceModels")),1),l("span",null,i(e(o)("models.combinationAggregator")),1),l("span",null,i(e(o)("models.auxiliaryActions")),1)]),(r(!0),w(Ce,null,Ne(X.value,({name:W,preset:pe})=>(r(),w("div",{key:W,class:"combination-row"},[l("span",tl,[E(i(W)+" ",1),y.value?.default_preset===W?(r(),w("span",ll,i(e(o)("models.defaultShort")),1)):U("",!0)]),l("span",al,i(pe.reference_models.map(d).join(", ")),1),l("span",il,i(d(pe.aggregator)),1),l("span",ol,[s(e(z),{size:"tiny",quaternary:"",onClick:te=>ge(W)},{default:n(()=>[E(i(e(o)("common.edit")),1)]),_:1},8,["onClick"]),s(e(z),{size:"tiny",quaternary:"",disabled:y.value?.default_preset===W,onClick:te=>$(W)},{default:n(()=>[E(i(e(o)("models.combinationSetDefault")),1)]),_:1},8,["disabled","onClick"]),s(e(z),{size:"tiny",quaternary:"",disabled:X.value.length<=1,onClick:te=>O(W)},{default:n(()=>[E(i(e(o)("common.delete")),1)]),_:1},8,["disabled","onClick"])])]))),128))])]),_:1},8,["show"]),s(e(De),{show:m.value,"onUpdate:show":F[8]||(F[8]=W=>m.value=W),preset:"card",title:_.value?e(o)("models.combinationEditModel"):e(o)("models.combinationAddModel"),style:{width:"min(760px, calc(100vw - 32px))"},"mask-closable":!D.value},{footer:n(()=>[l("div",yl,[s(e(z),{disabled:D.value,onClick:F[7]||(F[7]=W=>m.value=!1)},{default:n(()=>[E(i(e(o)("common.cancel")),1)]),_:1},8,["disabled"]),s(e(z),{type:"primary",loading:D.value,onClick:Fe},{default:n(()=>[E(i(e(o)("common.save")),1)]),_:1},8,["loading"])])]),default:n(()=>[l("div",sl,[l("label",null,[l("span",null,i(e(o)("models.combinationName")),1),s(e(fe),{value:A.value,"onUpdate:value":F[0]||(F[0]=W=>A.value=W),placeholder:e(o)("models.combinationPresetPlaceholder")},null,8,["value","placeholder"])]),l("label",rl,[l("span",null,i(e(o)("models.combinationEnabled")),1),s(e(_n),{value:b.value.enabled,"onUpdate:value":F[1]||(F[1]=W=>b.value.enabled=W)},null,8,["value"])]),l("label",null,[l("span",null,i(e(o)("models.combinationReferenceTemperature")),1),s(e(ze),{value:b.value.reference_temperature,"onUpdate:value":F[2]||(F[2]=W=>b.value.reference_temperature=W),min:0,max:2,step:.1},null,8,["value"])]),l("label",null,[l("span",null,i(e(o)("models.combinationAggregatorTemperature")),1),s(e(ze),{value:b.value.aggregator_temperature,"onUpdate:value":F[3]||(F[3]=W=>b.value.aggregator_temperature=W),min:0,max:2,step:.1},null,8,["value"])]),l("label",null,[l("span",null,i(e(o)("models.combinationMaxTokens")),1),s(e(ze),{value:b.value.max_tokens,"onUpdate:value":F[4]||(F[4]=W=>b.value.max_tokens=W),min:1,precision:0},null,8,["value"])]),l("div",nl,[l("div",ul,[l("h4",null,i(e(o)("models.combinationReferenceModels")),1),s(e(z),{size:"tiny",type:"primary",secondary:"",onClick:be},{default:n(()=>[E(i(e(o)("models.combinationAddReference")),1)]),_:1})]),l("div",dl,[(r(!0),w(Ce,null,Ne(b.value.reference_models,(W,pe)=>(r(),w("div",{key:pe,class:"slot-editor-row"},[l("span",vl,i(d(W)),1),s(e(_e),{value:W.reasoning_effort,"onUpdate:value":te=>W.reasoning_effort=te,options:L.value,size:"small",clearable:"",placeholder:e(o)("chat.reasoningEffort.tooltip"),style:{width:"130px"}},null,8,["value","onUpdate:value","options","placeholder"]),l("span",cl,[s(e(z),{size:"small",quaternary:"",onClick:te=>oe("reference",pe)},{default:n(()=>[E(i(e(o)("common.edit")),1)]),_:1},8,["onClick"]),s(e(z),{size:"small",quaternary:"",onClick:te=>Ee(pe)},{default:n(()=>[E(i(e(o)("common.delete")),1)]),_:1},8,["onClick"])])]))),128))])]),l("div",pl,[l("div",ml,[l("h4",null,i(e(o)("models.combinationAggregator")),1)]),l("div",fl,[l("span",_l,i(d(b.value.aggregator)),1),s(e(_e),{value:b.value.aggregator.reasoning_effort,"onUpdate:value":F[5]||(F[5]=W=>b.value.aggregator.reasoning_effort=W),options:L.value,size:"small",clearable:"",placeholder:e(o)("chat.reasoningEffort.tooltip"),style:{width:"130px"}},null,8,["value","options","placeholder"]),l("span",gl,[s(e(z),{size:"small",quaternary:"",onClick:F[6]||(F[6]=W=>oe("aggregator"))},{default:n(()=>[E(i(e(o)("common.edit")),1)]),_:1})])])])])]),_:1},8,["show","title","mask-closable"]),s(e(De),{show:G.value,"onUpdate:show":F[12]||(F[12]=W=>G.value=W),preset:"card",title:e(o)("models.selectModel"),style:{width:"min(480px, calc(100vw - 32px))"},"mask-closable":!0},{default:n(()=>[s(e(fe),{value:B.value,"onUpdate:value":F[9]||(F[9]=W=>B.value=W),placeholder:e(o)("models.searchPlaceholder"),clearable:"",size:"small",class:"model-search"},null,8,["value","placeholder"]),l("div",bl,[(r(!0),w(Ce,null,Ne(Y.value,W=>(r(),w("div",{key:W.provider,class:"model-group"},[l("div",{class:"model-group-header",onClick:pe=>q(W.provider)},[(r(),w("svg",{class:Be(["model-group-arrow",{collapsed:ue(W.provider)}]),width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...F[13]||(F[13]=[l("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2)),l("span",kl,i(W.label||W.provider),1),l("span",wl,i(W.models.length),1)],8,hl),kn(l("div",Cl,[(r(!0),w(Ce,null,Ne(W.models,pe=>(r(),w("div",{key:pe,class:Be(["model-item",{disabled:!!W.model_meta?.[pe]?.disabled}]),title:W.model_meta?.[pe]?.disabled?e(o)("models.disabledTooltip"):"",onClick:te=>H(pe,W.provider)},[l("span",Sl,[l("span",Ml,i(x(pe,W.provider)),1),S(pe,W.provider)?(r(),w("span",$l,i(e(o)("models.aliasCanonical",{model:pe})),1)):U("",!0)]),W.model_meta?.[pe]?.preview?(r(),w("span",Pl,i(e(o)("models.previewBadge")),1)):U("",!0),W.model_meta?.[pe]?.disabled?(r(),w("span",Tl,i(e(o)("models.disabledBadge")),1)):U("",!0),V(pe,W.provider)?(r(),w("span",Ul,i(e(o)("models.customBadge")),1)):U("",!0),V(pe,W.provider)?(r(),w("button",{key:3,class:"model-custom-remove",type:"button",title:e(o)("models.removeCustomModel"),onClick:Sn(te=>se(pe,W.provider),["stop"])}," × ",8,Al)):U("",!0)],10,xl))),128))],512),[[bn,!ue(W.provider)]])]))),128)),Y.value.length===0?(r(),w("div",Ll,i(B.value?e(o)("models.noResults"):e(o)("models.noModels")),1)):U("",!0),l("div",El,[l("div",Ol,[s(e(_e),{value:h.value,"onUpdate:value":F[10]||(F[10]=W=>h.value=W),options:c.value,size:"small",class:"model-custom-provider"},null,8,["value","options"]),s(e(fe),{value:C.value,"onUpdate:value":F[11]||(F[11]=W=>C.value=W),placeholder:e(o)("models.customModelPlaceholder"),size:"small",class:"model-custom-input",onKeydown:yr(J,["enter"])},null,8,["value","placeholder"])]),l("div",Dl,i(e(o)("models.customModelHint")),1)])])]),_:1},8,["show","title"])]))}})})),Qn=j((()=>{})),Pr,eu=j((()=>{Nl(),Nl(),Qn(),Pe(),Pr=Te($r,[["__scopeId","data-v-7afac4ca"]])}));async function tu(){return ke("/api/hermes/auth/copilot/start",{method:"POST"})}async function lu(u){return ke(`/api/hermes/auth/copilot/poll/${u}`)}async function Ut(){return ke("/api/hermes/auth/copilot/check-token")}async function au(){return ke("/api/hermes/auth/copilot/enable",{method:"POST"})}async function iu(){return ke("/api/hermes/auth/copilot/disable",{method:"POST"})}var ot=j((()=>{Ve()})),Fl,Il,zl,Rl,Vl,Bl,Kl,ql,Hl,jl,Gl,Jl,Wl,Xl,Yl,Zl,Ql,ea,ta,la,aa,ia,Tr,oa=j((()=>{we(),Ae(),Se(),gr(),Ge(),Fl={key:0,class:"editor-body"},Il={class:"identity-note"},zl={key:0,class:"field"},Rl={class:"field"},Vl={key:1,class:"field"},Bl={key:2,class:"field"},Kl={key:0,class:"warning-text"},ql={key:1},Hl={key:3,class:"credential-section"},jl={class:"section-heading"},Gl={class:"credential-actions"},Jl={key:4,class:"context-section"},Wl={class:"advanced-settings"},Xl={key:1,class:"field"},Yl={key:2,class:"field"},Zl={key:3,class:"field"},Ql={key:4,class:"field"},ea={key:5,class:"context-section"},ta={class:"context-list"},la=["title"],aa={class:"runtime-note"},ia={class:"modal-actions"},Tr=xe({__name:"ProviderEditorModal",props:{show:{type:Boolean},provider:{}},emits:["update:show","saved"],setup(u,{emit:o}){const t=u,f=o,{t:a}=Me(),k=Le(),v=wt(),D=je(),y=p(null),m=p(!1),_=p(!1),A=p(!1),b=p(!1),G=p(""),R=p(""),B=p("chat_completions"),I=p(""),h=p(""),C=p({}),c=p(!1),T=p(null),Y=p(null),X=p(null),ie=p(""),ne={name:"provider-display-name",autocomplete:"off",spellcheck:!1,"data-form-type":"other"},ee={name:"provider-base-url",autocomplete:"off",spellcheck:!1,"data-form-type":"other"},L={name:"provider-preferred-model",autocomplete:"off",spellcheck:!1,"data-form-type":"other"},d={name:"provider-api-key-replacement",autocomplete:"new-password",autocapitalize:"none",spellcheck:!1,"data-form-type":"other","data-1p-ignore":"true","data-lpignore":"true"},x=[{label:"Chat Completions",value:"chat_completions"},{label:"Codex Responses",value:"codex_responses"},{label:"Anthropic Messages",value:"anthropic_messages"},{label:"Bedrock Converse",value:"bedrock_converse"},{label:"Codex App Server",value:"codex_app_server"}],S=P(()=>new Set(t.provider.available_models?.length?t.provider.available_models:t.provider.models)),V=P(()=>{const H=new Set(S.value);return I.value&&H.add(I.value),[...H]}),ue=P(()=>V.value.map(H=>({label:H,value:H}))),q=P(()=>!!I.value&&!S.value.has(I.value));function g(H){return!!y.value?.editable_fields.includes(H)}function M(H){y.value=H,G.value=H.label,R.value=H.base_url,B.value=H.api_mode||"chat_completions",I.value=H.preferred_model||t.provider.models[0]||"",h.value="",c.value=H.discover_models??!1,T.value=H.rate_limit_delay??null,Y.value=H.request_timeout_seconds??null,X.value=H.stale_timeout_seconds??null,ie.value=H.extra_body?JSON.stringify(H.extra_body,null,2):"";const J={};for(const se of new Set([...V.value,...Object.keys(H.context_lengths)]))J[se]=H.context_lengths[se]??null;C.value=J}async function ge(){m.value=!0;try{M(await D.fetchProviderEditor(t.provider.provider))}catch(H){k.error(H?.message||a("models.providerEditorLoadFailed")),be()}finally{m.value=!1}}Oe(()=>t.show,H=>{H&&ge()},{immediate:!0});function be(){f("update:show",!1)}function Ee(){const H=ie.value.trim();if(!H)return null;let J;try{J=JSON.parse(H)}catch{throw new Error(a("models.extraBodyInvalid"))}if(!J||typeof J!="object"||Array.isArray(J))throw new Error(a("models.extraBodyInvalid"));return J}function ye(){const H={};if(g("label")&&(H.label=G.value.trim()),g("base_url")&&(H.base_url=R.value.trim()),g("api_mode")&&(H.api_mode=B.value),g("preferred_model")&&(H.preferred_model=I.value.trim()),g("api_key")&&(H.credential_action=h.value.trim()?"replace":"keep",h.value.trim()&&(H.api_key=h.value.trim())),y.value&&(g("discover_models")&&c.value!==(y.value.discover_models??!1)&&(H.discover_models=c.value),g("rate_limit_delay")&&T.value!==(y.value.rate_limit_delay??null)&&(H.rate_limit_delay=T.value),g("request_timeout_seconds")&&Y.value!==(y.value.request_timeout_seconds??null)&&(H.request_timeout_seconds=Y.value),g("stale_timeout_seconds")&&X.value!==(y.value.stale_timeout_seconds??null)&&(H.stale_timeout_seconds=X.value),g("extra_body"))){const J=Ee();JSON.stringify(J)!==JSON.stringify(y.value.extra_body??null)&&(H.extra_body=J)}return H}function Fe(){const H={};if(!y.value||!g("context_lengths"))return H;for(const[J,se]of Object.entries(C.value))se!==(y.value.context_lengths[J]??null)&&(H[J]=se);return H}async function $(H=!0){if(!y.value?.connection_test_supported)return{success:!1,error:y.value?.connection_test_reason||a("models.providerTestUnsupported")};A.value=!0;try{const J=await fn(t.provider.provider,ye());return J.success?H&&k.success(a("models.providerTestSuccess",{count:J.model_count||0})):H&&k.error(J.error||a("models.providerTestFailed")),{success:J.success,error:J.error}}catch(J){const se=J?.message||a("models.providerTestFailed");return H&&k.error(se),{success:!1,error:se}}finally{A.value=!1}}function O(H){return new Promise(J=>{v.warning({title:a("models.providerTestFailedTitle"),content:`${H}
|
|
2
2
|
|
|
3
3
|
${a("models.providerSaveAnywayHint")}`,positiveText:a("models.saveAnyway"),negativeText:a("common.cancel"),onPositiveClick:()=>J(!0),onNegativeClick:()=>J(!1),onClose:()=>J(!1)})})}async function oe(){if(!(!y.value||_.value)){if(!G.value.trim()||!R.value.trim()||!I.value.trim()){k.error(a("models.providerEditorRequired"));return}try{ye()}catch(H){k.error(H?.message||a("models.providerEditorSaveFailed"));return}if(y.value.connection_test_supported){const H=await $(!1);if(!H.success&&!await O(H.error||a("models.providerTestFailed")))return}_.value=!0;try{M(await D.saveProviderEditor(t.provider.provider,y.value.revision,ye(),Fe())),k.success(a("models.providerEditorSaved")),k.info(a("models.providerReconnectHint")),f("saved"),be()}catch(H){const J=String(H?.message||"");J.includes("412")||J.includes("REVISION_CONFLICT")?(k.warning(a("models.providerEditorConflict")),await ge()):k.error(J||a("models.providerEditorSaveFailed"))}finally{_.value=!1}}}async function Ue(){!y.value||b.value||v.warning({title:a("models.clearProviderCredentials"),content:a("models.clearCredentialsConfirm",{name:y.value.label}),positiveText:a("models.clearProviderCredentials"),negativeText:a("common.cancel"),onPositiveClick:async()=>{b.value=!0;try{M(await D.saveProviderEditor(t.provider.provider,y.value.revision,{credential_action:"clear"})),k.success(a("models.providerCredentialsCleared")),k.warning(a("models.providerCredentialMissingHint")),f("saved")}catch(H){k.error(H?.message||a("models.providerEditorSaveFailed"))}finally{b.value=!1}}})}return(H,J)=>(r(),K(e(De),{show:u.show,preset:"card",class:"provider-editor-modal",title:e(a)("models.editProviderTitle",{name:u.provider.label}),"mask-closable":!_.value,"onUpdate:show":J[11]||(J[11]=se=>!se&&be())},{footer:n(()=>[l("div",ia,[s(e(z),{disabled:_.value,onClick:be},{default:n(()=>[E(i(e(a)("common.cancel")),1)]),_:1},8,["disabled"]),s(e(z),{loading:A.value,disabled:m.value||_.value||!y.value?.connection_test_supported,title:y.value?.connection_test_reason||e(a)("models.testConnection"),onClick:J[10]||(J[10]=se=>$())},{default:n(()=>[E(i(e(a)("models.testConnection")),1)]),_:1},8,["loading","disabled","title"]),s(e(z),{type:"primary",loading:_.value,disabled:m.value||!y.value,onClick:oe},{default:n(()=>[E(i(e(a)("common.save")),1)]),_:1},8,["loading","disabled"])])]),default:n(()=>[s(e(Re),{show:m.value},{default:n(()=>[y.value?(r(),w("div",Fl,[l("div",Il,[l("span",null,i(e(a)("models.providerInternalId")),1),l("code",null,i(y.value.id),1),s(e(We),{size:"small",type:y.value.builtin?"info":"success"},{default:n(()=>[E(i(y.value.builtin?e(a)("models.builtIn"):e(a)("models.customType")),1)]),_:1},8,["type"])]),g("label")?(r(),w("label",zl,[l("span",null,i(e(a)("models.providerDisplayName")),1),s(e(fe),{value:G.value,"onUpdate:value":J[0]||(J[0]=se=>G.value=se),"input-props":ne,maxlength:"100","show-count":""},null,8,["value"]),l("small",null,i(e(a)("models.providerIdStableHint")),1)])):U("",!0),l("label",Rl,[l("span",null,i(e(a)("models.baseUrl")),1),s(e(fe),{value:R.value,"onUpdate:value":J[1]||(J[1]=se=>R.value=se),disabled:!g("base_url"),"input-props":ee,placeholder:"https://api.example.com/v1"},null,8,["value","disabled"])]),g("api_mode")?(r(),w("label",Vl,[J[12]||(J[12]=l("span",null,"API Mode",-1)),s(e(_e),{value:B.value,"onUpdate:value":J[2]||(J[2]=se=>B.value=se),options:x},null,8,["value"])])):U("",!0),g("preferred_model")?(r(),w("label",Bl,[l("span",null,i(e(a)("models.providerPreferredModel")),1),s(e(_e),{value:I.value,"onUpdate:value":J[3]||(J[3]=se=>I.value=se),options:ue.value,"input-props":L,filterable:"",tag:"",placeholder:e(a)("models.selectOrEnterModel")},null,8,["value","options","placeholder"]),q.value?(r(),w("small",Kl,i(e(a)("models.unverifiedModelWarning")),1)):(r(),w("small",ql,i(e(a)("models.providerPreferredModelHint")),1))])):U("",!0),g("api_key")?(r(),w("section",Hl,[l("div",jl,[J[13]||(J[13]=l("span",null,"API Key",-1)),s(e(We),{size:"small",type:y.value.credential_configured?"success":"warning"},{default:n(()=>[E(i(y.value.credential_configured?e(a)("models.credentialConfigured"):e(a)("models.credentialNotConfigured")),1)]),_:1},8,["type"])]),s(e(fe),{value:h.value,"onUpdate:value":J[4]||(J[4]=se=>h.value=se),type:"password","show-password-on":"click","input-props":d,placeholder:y.value.credential_configured?e(a)("models.leaveBlankKeepCredential"):e(a)("models.enterCredential")},null,8,["value","placeholder"]),l("div",Gl,[l("small",null,i(e(a)("models.credentialNeverDisplayedHint")),1),y.value.credential_configured?(r(),K(e(z),{key:0,size:"small",type:"error",secondary:"",loading:b.value,onClick:Ue},{default:n(()=>[E(i(e(a)("models.clearProviderCredentials")),1)]),_:1},8,["loading"])):U("",!0)])])):U("",!0),g("discover_models")||g("rate_limit_delay")||g("request_timeout_seconds")||g("stale_timeout_seconds")||g("extra_body")?(r(),w("details",Jl,[l("summary",null,i(e(a)("models.providerAdvancedSettings")),1),l("div",Wl,[g("discover_models")?(r(),K(e(fr),{key:0,checked:c.value,"onUpdate:checked":J[5]||(J[5]=se=>c.value=se)},{default:n(()=>[E(i(e(a)("models.discoverModels")),1)]),_:1},8,["checked"])):U("",!0),g("rate_limit_delay")?(r(),w("label",Xl,[l("span",null,i(e(a)("models.rateLimitDelay")),1),s(e(ze),{value:T.value,"onUpdate:value":J[6]||(J[6]=se=>T.value=se),min:.001,max:86400,clearable:""},null,8,["value"])])):U("",!0),g("request_timeout_seconds")?(r(),w("label",Yl,[l("span",null,i(e(a)("models.requestTimeoutSeconds")),1),s(e(ze),{value:Y.value,"onUpdate:value":J[7]||(J[7]=se=>Y.value=se),min:.001,max:86400,clearable:""},null,8,["value"])])):U("",!0),g("stale_timeout_seconds")?(r(),w("label",Zl,[l("span",null,i(e(a)("models.staleTimeoutSeconds")),1),s(e(ze),{value:X.value,"onUpdate:value":J[8]||(J[8]=se=>X.value=se),min:.001,max:86400,clearable:""},null,8,["value"])])):U("",!0),g("extra_body")?(r(),w("label",Ql,[J[14]||(J[14]=l("span",null,"extra_body (JSON)",-1)),s(e(fe),{value:ie.value,"onUpdate:value":J[9]||(J[9]=se=>ie.value=se),type:"textarea",autosize:{minRows:3,maxRows:10},placeholder:"{}"},null,8,["value"]),l("small",null,i(e(a)("models.extraBodyHint")),1)])):U("",!0)])])):U("",!0),g("context_lengths")?(r(),w("details",ea,[l("summary",null,i(e(a)("models.perModelContextLengths")),1),l("p",null,i(e(a)("models.contextLengthInheritHint")),1),l("div",ta,[(r(!0),w(Ce,null,Ne(V.value,se=>(r(),w("label",{key:se,class:"context-row"},[l("code",{title:se},i(se),9,la),s(e(ze),{value:C.value[se],"onUpdate:value":Ie=>C.value[se]=Ie,min:1,max:1e8,clearable:"",placeholder:e(a)("models.inheritDefault")},null,8,["value","onUpdate:value","placeholder"])]))),128))])])):U("",!0),l("div",aa,i(e(a)("models.providerReconnectHint")),1)])):U("",!0)]),_:1},8,["show"])]),_:1},8,["show","title","mask-closable"]))}})})),ou=j((()=>{})),Ur,su=j((()=>{oa(),oa(),ou(),Pe(),Ur=Te(Tr,[["__scopeId","data-v-346f30eb"]])})),sa,ra,na,ua,da,va,ca,pa,ma,fa,_a,ga,ya,ba,ha,ka,wa,Ca,xa,Sa,Ma,$a,Pa,Ta,Ua,Aa,La,Ea,Oa,Da,Na,Fa,Ia,za,Ra,Va,Ba,Ka,Ar,qa=j((()=>{we(),Ae(),Ge(),hr(),Un(),ot(),Ve(),su(),Se(),sa={class:"provider-card"},ra={class:"card-header"},na={class:"provider-name"},ua={class:"provider-badges"},da={key:0,class:"type-badge default"},va={class:"card-body"},ca={class:"info-row"},pa={class:"info-label"},ma={class:"info-value mono"},fa={class:"info-row"},_a={class:"info-label"},ga={class:"info-value mono"},ya={class:"info-row models-row"},ba={class:"info-label"},ha={class:"info-value models-count"},ka={class:"default-model-row"},wa={class:"info-label"},Ca={class:"models-list"},xa=["title","onClick"],Sa={class:"model-tag-name"},Ma={key:0,class:"model-tag-default"},$a={key:1,class:"model-tag-id"},Pa={key:0,class:"model-tag model-tag-more"},Ta={class:"card-actions"},Ua={class:"alias-list-hint"},Aa={class:"alias-list"},La={class:"alias-row-text"},Ea={class:"alias-row-name"},Oa={key:0,class:"alias-row-default"},Da={class:"alias-row-id"},Na={key:0,class:"model-alias-canonical"},Fa={class:"model-alias-hint"},Ia={class:"model-alias-actions"},za={class:"visibility-hint"},Ra={class:"visibility-count"},Va={class:"visibility-list"},Ba={key:0,class:"visibility-model-id"},Ka={class:"visibility-actions"},Ar=xe({__name:"ProviderCard",props:{provider:{}},setup(u){const o=u,{t}=Me(),f=je(),a=br(),k=An(),v=Le(),D=wt(),y=P(()=>o.provider.provider.startsWith("custom:")),m=P(()=>!o.provider.builtin&&y.value),_=P(()=>y.value||!o.provider.builtin&&!!o.provider.provider_source),A=P(()=>o.provider.provider==="copilot"),b=P(()=>o.provider.label),G=gn(),R=P(()=>o.provider.provider_editable===!0&&(G==="super_admin"||G==="admin")),B=P(()=>o.provider.model_refreshable===!0&&(G==="super_admin"||G==="admin")),I=p(!1),h=p(!1),C=p(!1),c=p(!1),T=P(()=>_.value?t("common.delete"):A.value?t("models.disableProvider"):t("models.clearProviderCredentials")),Y=P(()=>_.value?t("models.deleteProvider"):A.value?t("models.disableProvider"):t("models.clearProviderCredentials"));function X(le){if(_.value)return t("models.deleteConfirm",{name:b.value});if(A.value){const Q=t("models.disableProviderConfirm",{name:b.value});return le?`${Q}
|
|
4
4
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{$ as ye,$i as M,Di as ue,Gt as be,Hi as u,M as xe,Nr as ce,Pr as de,Sa as m,Ti as L,Vi as Me,Wi as $e,_a as g,_i as s,bi as d,gi as y,i as we,jt as Se,mi as E,n as ge,pi as B,qi as Ce,r as Te,si as me,t as pe,ua as Ae,vi as I,wa as b,wi as N,ya as D,yi as k}from"./index-
|
|
1
|
+
import{$ as ye,$i as M,Di as ue,Gt as be,Hi as u,M as xe,Nr as ce,Pr as de,Sa as m,Ti as L,Vi as Me,Wi as $e,_a as g,_i as s,bi as d,gi as y,i as we,jt as Se,mi as E,n as ge,pi as B,qi as Ce,r as Te,si as me,t as pe,ua as Ae,vi as I,wa as b,wi as N,ya as D,yi as k}from"./index-DN4SafrP.js";import{r as Pe,t as Be}from"./profiles-BK5JKD7h.js";import{n as Ie,t as De}from"./ProfileAvatar-C8xoALCI.js";function Xe(e){return e?_e[e]||e:""}function he(e){if(!e)return"";const f=new Date(e),l=new Date;return f.toDateString()===l.toDateString()?f.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):f.toLocaleDateString([],{month:"short",day:"numeric"})}function Ye(e){return he(e*1e3)}var _e,Le=b((()=>{_e={telegram:"Telegram",api_server:"API Server",cli:"CLI",coding_agent:"Coding Agent",global_agent:"Global Agent",discord:"Discord",slack:"Slack",matrix:"Matrix",whatsapp:"WhatsApp",signal:"Signal",email:"Email",sms:"SMS",dingtalk:"DingTalk",feishu:"Feishu",wecom:"WeCom",weixin:"WeChat",bluebubbles:"iMessage",mattermost:"Mattermost",cron:"Cron"}})),O,U,G,H,K,V,j,q,z,W,Q,F,X,ve,Y=b((()=>{me(),xe(),ce(),Te(),Be(),Ie(),Le(),O={key:0,class:"session-item-checkbox"},U={class:"session-item-content"},G={class:"session-item-title-row"},H={class:"session-item-title-main"},K={key:0,class:"session-item-pin","aria-hidden":"true"},V={key:1,class:"session-item-unread-dot","aria-hidden":"true"},j={class:"session-item-title",dir:"auto"},q={class:"session-item-time"},z={class:"session-item-agent-row"},W=["src","alt"],Q={key:0,class:"session-item-profile"},F={class:"session-item-profile-name"},X=["aria-label","title"],ve=ue({__name:"SessionListItem",props:{session:{},active:{type:Boolean},pinned:{type:Boolean},canDelete:{type:Boolean},streaming:{type:Boolean},completedUnread:{type:Boolean},selectable:{type:Boolean},selected:{type:Boolean},showProfile:{type:Boolean,default:!0},to:{},interceptModifiedNavigation:{type:Boolean}},emits:["select","contextmenu","delete","toggle-select","open-new"],setup(e,{emit:f}){const l=e,p=f,{t:h}=de(),$=we(),A=Pe(),_=y(()=>l.session.profile||"default"),w=y(()=>A.profiles.find(o=>o.name===_.value)?.avatar),c=y(()=>!!$.profileModelGroups.find(o=>o.profile===_.value)?.groups?.some(o=>o.models.length>0)),t=y(()=>$.profileModelGroups.length>0&&!c.value),n=y(()=>l.session.source==="global_agent"),r=y(()=>n.value?l.session.codingAgentId==="ekko-agent"||l.session.agent==="ekko-agent"?{label:"Ekko Agent",src:"/coding-agents/ekko-agent.png"}:{label:"Hermes",src:"/coding-agents/hermes.png"}:l.session.source==="coding_agent"?l.session.codingAgentId==="codex"||l.session.agent==="codex"?{label:"Codex",src:"/coding-agents/codex-openai.png"}:l.session.codingAgentId==="ekko-agent"||l.session.agent==="ekko-agent"?{label:"Ekko Agent",src:"/coding-agents/ekko-agent.png"}:{label:"Claude Code",src:"/coding-agents/claude-code.svg"}:{label:"Hermes",src:"/coding-agents/hermes.png"});let i=null;const v=Ae(!1);function x(o){v.value=!1,i=setTimeout(()=>{v.value=!0;const a=o.touches[0];p("contextmenu",new MouseEvent("contextmenu",{clientX:a.clientX,clientY:a.clientY,bubbles:!0}))},500)}function S(){i&&(clearTimeout(i),i=null)}function C(){i&&(clearTimeout(i),i=null)}function T(o){return!!o&&(o.metaKey||o.ctrlKey||o.shiftKey||o.altKey||o.button!==0)}function ke(o){if(v.value){v.value=!1,o?.preventDefault();return}if(T(o)){l.interceptModifiedNavigation&&(o?.preventDefault(),p("open-new"));return}l.to&&!l.selectable&&o?.preventDefault(),p("select")}return Me(()=>{i&&clearTimeout(i)}),(o,a)=>(u(),I(Ce(e.selectable||!e.to?"button":"a"),{class:D(["session-item",{active:e.active,"batch-mode":e.selectable,"missing-models":t.value}]),"aria-current":e.active?"page":void 0,href:e.selectable?void 0:e.to,type:e.selectable||!e.to?"button":void 0,onClick:ke,onContextmenu:a[4]||(a[4]=P=>p("contextmenu",P)),onTouchstart:x,onTouchend:S,onTouchmove:C},{default:M(()=>[e.selectable?(u(),d("div",O,[L(g(be),{checked:e.selected,onClick:a[0]||(a[0]=B(P=>p("toggle-select"),["stop"]))},null,8,["checked"])])):k("",!0),s("div",U,[s("span",G,[s("span",H,[e.pinned?(u(),d("span",K,[...a[5]||(a[5]=[s("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[s("path",{d:"M12 17v5"}),s("path",{d:"M5 8l14 0"}),s("path",{d:"M8 3l8 0 0 5 3 5-14 0 3-5z"})],-1)])])):k("",!0),e.completedUnread?(u(),d("span",V)):k("",!0),s("span",j,m(e.session.title),1),t.value?(u(),I(g(Se),{key:2,trigger:"click",placement:"top"},{trigger:M(()=>[s("button",{class:"session-item-warning",type:"button",onClick:a[1]||(a[1]=B(()=>{},["stop","prevent"]))}," ! ")]),default:M(()=>[N(" "+m(g(h)("chat.profileMissingModelsTip",{profile:_.value})),1)]),_:1})):k("",!0)]),s("span",q,m(g(he)(e.session.createdAt)),1)]),s("span",z,[s("span",{class:D(["session-item-agent-logo-wrap",{streaming:e.streaming}])},[s("img",{class:"session-item-agent-logo",src:r.value.src,alt:r.value.label},null,8,W)],2),l.showProfile?(u(),d("span",Q,[L(De,{class:"session-item-profile-avatar",name:_.value,avatar:w.value,size:16},null,8,["name","avatar"]),s("span",F,m(_.value),1)])):k("",!0)])]),n.value?(u(),d("svg",{key:1,class:"session-item-global-icon","aria-label":g(h)("sidebar.globalAgent"),title:g(h)("sidebar.globalAgent"),width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},[...a[6]||(a[6]=[s("rect",{x:"7",y:"7",width:"10",height:"10",rx:"2"},null,-1),s("path",{d:"M9 1v4M15 1v4M9 19v4M15 19v4M1 9h4M1 15h4M19 9h4M19 15h4"},null,-1),s("path",{d:"M10 10h4v4h-4z"},null,-1)])],8,X)):k("",!0),e.canDelete&&!e.selectable?(u(),I(g(ye),{key:2,onPositiveClick:a[3]||(a[3]=P=>p("delete"))},{trigger:M(()=>[s("button",{class:"session-item-delete",onClick:a[2]||(a[2]=B(()=>{},["stop","prevent"]))},[...a[7]||(a[7]=[s("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[s("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])]),default:M(()=>[N(" "+m(g(h)("chat.deleteSession")),1)]),_:1})):k("",!0)]),_:1},40,["class","aria-current","href","type"]))}})})),Ee=b((()=>{})),Ne,Re=b((()=>{Y(),Y(),Ee(),ge(),Ne=pe(ve,[["__scopeId","data-v-98623787"]])})),R,J,Z,ee,te,se,ne,ie,oe,ae,le,fe,re=b((()=>{me(),ce(),R={class:"outline-panel"},J={class:"outline-header"},Z={class:"outline-title"},ee={class:"outline-content"},te=["onClick"],se={class:"user-question"},ne={class:"q-text"},ie=["onClick"],oe={class:"heading-item"},ae={class:"heading-text"},le={key:1,class:"outline-empty"},fe=ue({__name:"OutlinePanel",props:{messages:{}},emits:["navigate"],setup(e,{emit:f}){const l=e,p=f,{t:h}=de();function $(c,t){const n=[],r=c.replace(/<think>[\s\S]*?<\/think>/g,"").split(`
|
|
2
2
|
`);let i=0;for(const v of r){const x=v.trim(),S=x.match(/^#\s+(.+)/),C=x.match(/^##\s+(.+)/),T=x.match(/^###\s+(.+)/);S?(i++,n.push({id:`outline-${t}-h${i}`,type:"outline",content:S[1].trim(),messageId:t,level:1,anchorId:`msg-${t}-heading-${i}`})):C?(i++,n.push({id:`outline-${t}-h${i}`,type:"outline",content:C[1].trim(),messageId:t,level:2,anchorId:`msg-${t}-heading-${i}`})):T&&(i++,n.push({id:`outline-${t}-h${i}`,type:"outline",content:T[1].trim(),messageId:t,level:3,anchorId:`msg-${t}-heading-${i}`}))}return n}function A(c){const t=c.replace(/<think>[\s\S]*?<\/think>/g,"").split(`
|
|
3
3
|
`)[0]||"";return t.length>50?t.slice(0,50)+"...":t||h("chat.outlineUserQuestion")}const _=y(()=>{const c=[];let t=0;const n=l.messages.filter(r=>r.role==="user"||r.role==="assistant");for(;t<n.length;){const r=n[t];if(r.role==="user"){for(c.push({id:`user-${r.id}`,type:"user",content:A(r.content||""),messageId:r.id,level:0,anchorId:`message-${r.id}`}),t++;t<n.length&&n[t].role!=="assistant";)t++;if(t<n.length){const i=n[t],v=$(i.content||"",i.id);c.push(...v)}}t++}return c});function w(c){p("navigate",{messageId:c.messageId,anchorId:c.anchorId})}return(c,t)=>(u(),d("div",R,[s("div",J,[s("span",Z,m(g(h)("chat.outlineTitle")),1)]),s("div",ee,[_.value.length>0?(u(!0),d(E,{key:0},$e(_.value,n=>(u(),d(E,{key:n.id},[n.type==="user"?(u(),d("div",{key:0,class:"outline-item user-item",onClick:r=>w(n)},[s("div",se,[t[0]||(t[0]=s("span",{class:"q-label"},"Q:",-1)),s("span",ne,m(n.content),1)])],8,te)):(u(),d("div",{key:1,class:D(["outline-item outline-heading-item",`level-${n.level}`]),onClick:r=>w(n)},[s("div",oe,[s("span",ae,m(n.content),1)])],10,ie))],64))),128)):(u(),d("div",le,m(g(h)("chat.outlineEmpty")),1))])]))}})})),Oe=b((()=>{})),Ue,Je=b((()=>{re(),re(),Oe(),ge(),Ue=pe(fe,[["__scopeId","data-v-8f362c26"]])}));export{Ye as a,Re as i,Je as n,Xe as o,Ne as r,Le as s,Ue as t};
|
package/dist/client/assets/js/{PageSidebarFooter-Bic1fUmG.js → PageSidebarFooter-dvLzcTIm.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as u,Hi as l,Nr as d,Pr as p,Sa as c,Ti as g,_a as v,_i as e,bi as b,ii as m,n as h,ni as S,si as f,t as y,wa as a}from"./index-
|
|
1
|
+
import{Di as u,Hi as l,Nr as d,Pr as p,Sa as c,Ti as g,_a as v,_i as e,bi as b,ii as m,n as h,ni as S,si as f,t as y,wa as a}from"./index-DN4SafrP.js";import{n as P,t as k}from"./SettingsCircuitBadge-CnWSfQZd.js";var i,_,r=a((()=>{f(),d(),S(),P(),i={class:"page-sidebar-bottom"},_=u({__name:"PageSidebarFooter",setup(F){const s=m(),{t:n}=p();function o(){s.push({name:"hermes.settings"})}return(A,t)=>(l(),b("div",i,[e("button",{class:"page-sidebar-menu-btn",type:"button",onClick:o},[t[0]||(t[0]=e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},[e("circle",{cx:"12",cy:"12",r:"3"}),e("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})],-1)),e("span",null,c(v(n)("sidebar.settings")),1)]),g(k)]))}})})),x=a((()=>{})),B,j=a((()=>{r(),r(),x(),h(),B=y(_,[["__scopeId","data-v-79aa9763"]])}));export{j as n,B as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/pdf-
|
|
2
|
-
import{$i as P,$t as B,Bi as K,Di as Q,Fi as W,Fr as S,G as X,Hi as R,Ir as q,M as J,Nr as Y,Pr as ee,Ri as te,Sa as m,Ti as h,Zi as T,Zt as ae,_a as n,_i as y,bi as D,n as ie,si as ne,t as re,tt as le,ua as f,wa as k,wi as G,yi as se}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/pdf-B_OYWxSy.js","assets/js/defineProperty-DHkErCmG.js","assets/js/index-DN4SafrP.js","assets/css/index-IP31leuw.css","assets/js/pdf.worker.min--q2RLEHa.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$i as P,$t as B,Bi as K,Di as Q,Fi as W,Fr as S,G as X,Hi as R,Ir as q,M as J,Nr as Y,Pr as ee,Ri as te,Sa as m,Ti as h,Zi as T,Zt as ae,_a as n,_i as y,bi as D,n as ie,si as ne,t as re,tt as le,ua as f,wa as k,wi as G,yi as se}from"./index-DN4SafrP.js";var I,N,V,A,L,z=k((()=>{ne(),J(),Y(),q(),I={class:"pdf-preview"},N={class:"pdf-toolbar"},V={key:0,class:"preview-limit"},A=500,L=Q({__name:"PdfFilePreview",props:{data:{}},emits:["error"],setup($,{emit:O}){const M=$,U=O,{t:p}=ee(),x=f(null),w=f(!0),t=f(1),b=f(0),_=f(0),g=f(1);let d=null,c=null,v=null,a=0;function j(e){return e?.name==="RenderingCancelledException"}function C(e){j(e)||U("error",e instanceof Error?e:new Error(String(e)))}async function E(){if(!d||!x.value)return;const e=a;c?.cancel?.();let i;try{i=await d.getPage(t.value)}catch(o){if(e===a)throw o;return}if(e!==a)return;const r=i.getViewport({scale:g.value}),l=Math.min(window.devicePixelRatio||1,2),s=x.value;if(s.width=Math.floor(r.width*l),s.height=Math.floor(r.height*l),s.style.width=`${Math.floor(r.width)}px`,s.style.height=`${Math.floor(r.height)}px`,!s.getContext("2d"))throw new Error("Canvas is unavailable");const u=i.render({canvas:s,viewport:r,transform:l===1?void 0:[l,0,0,l,0,0]});c=u;try{await u.promise}catch(o){if(e===a)throw o}finally{c===u&&(c=null)}}async function F(){const e=++a;w.value=!0;try{c?.cancel?.();const i=v;v=null;try{await i?.destroy?.()}catch{}const r=d;d=null;try{await r?.destroy?.()}catch{}const[l,s]=await Promise.all([S(()=>import("./pdf-B_OYWxSy.js"),__vite__mapDeps([0,1,2,3])),S(()=>import("./pdf.worker.min--q2RLEHa.js"),__vite__mapDeps([4,2,3]))]);if(e!==a)return;l.GlobalWorkerOptions.workerSrc=s.default;const u=l.getDocument({data:new Uint8Array(M.data.slice(0)),disableAutoFetch:!0,disableStream:!1});v=u;const o=await u.promise;if(v===u&&(v=null),e!==a){await o.destroy();return}d=o,b.value=o.numPages,_.value=Math.min(o.numPages,A),t.value=Math.min(t.value,_.value)||1,await W(),await E()}catch(i){e===a&&C(i)}finally{e===a&&(w.value=!1)}}function Z(){t.value=Math.max(1,t.value-1)}function H(){t.value=Math.min(_.value,t.value+1)}return T(()=>M.data,F),T([t,g],()=>{w.value||E().catch(C)}),K(F),te(()=>{a+=1,c?.cancel?.(),v?.destroy?.(),d?.destroy?.()}),(e,i)=>(R(),D("div",I,[y("div",N,[h(n(ae),{size:"small"},{default:P(()=>[h(n(B),{disabled:t.value<=1,onClick:Z},{default:P(()=>[G(m(n(p)("files.previousPage")),1)]),_:1},8,["disabled"]),h(n(B),{disabled:t.value>=_.value,onClick:H},{default:P(()=>[G(m(n(p)("files.nextPage")),1)]),_:1},8,["disabled"])]),_:1}),y("span",null,m(n(p)("files.pageStatus",{page:t.value,total:b.value})),1),h(n(le),{value:g.value,"onUpdate:value":i[0]||(i[0]=r=>g.value=r),size:"small",min:.5,max:2,step:.1,style:{width:"110px"}},null,8,["value"]),y("span",null,m(n(p)("files.zoom")),1)]),b.value>_.value?(R(),D("div",V,m(n(p)("files.pdfPageLimit",{count:_.value})),1)):se("",!0),h(n(X),{show:w.value,class:"pdf-stage"},{default:P(()=>[y("canvas",{ref_key:"canvas",ref:x},null,512)]),_:1},8,["show"])]))}})})),oe=k((()=>{})),ue,_e=k((()=>{z(),z(),oe(),ie(),ue=re(L,[["__scopeId","data-v-3b83eac1"]])}));_e();export{ue as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$i as w,$t as M,Bi as ge,Di as be,G as we,Hi as u,M as Pe,Nr as Be,Pr as ke,Qr as Me,Ri as Ce,Sa as s,Ti as P,Wi as C,_a as a,_i as e,bi as m,ei as $e,gi as h,gt as Se,mi as $,n as xe,si as Re,t as Ve,ua as B,wa as g,wi as S,xa as x,ya as R,yi as y}from"./index-
|
|
1
|
+
import{$i as w,$t as M,Bi as ge,Di as be,G as we,Hi as u,M as Pe,Nr as Be,Pr as ke,Qr as Me,Ri as Ce,Sa as s,Ti as P,Wi as C,_a as a,_i as e,bi as m,ei as $e,gi as h,gt as Se,mi as $,n as xe,si as Re,t as Ve,ua as B,wa as g,wi as S,xa as x,ya as R,yi as y}from"./index-DN4SafrP.js";async function Ie(){return $e("/api/hermes/performance/runtime")}var Ne=g((()=>{Me()})),V,I,N,D,F,U,T,W,z,A,L,O,j,G,K,q,E,H,Q,J,X,Y,Z,ee,se,te,ne,re,ae,le,ie,oe,ue,ce,me=g((()=>{Re(),Pe(),Be(),Ne(),V={class:"performance-view"},I={class:"page-header"},N={class:"header-title"},D={class:"header-actions"},F={key:0,class:"performance-content"},U={class:"summary-grid"},T={class:"summary-item"},W={class:"summary-label"},z={class:"meter"},A={class:"summary-item"},L={class:"summary-label"},O={class:"meter"},j={class:"summary-item"},G={class:"summary-label"},K={class:"summary-item"},q={class:"summary-label"},E={class:"runtime-section"},H={class:"section-header"},Q={class:"process-grid"},J={class:"process-row"},X={class:"status running"},Y={class:"process-row"},Z={key:0,class:"runtime-error"},ee={class:"runtime-section"},se={class:"section-header"},te={class:"worker-table-wrap"},ne={class:"worker-table"},re={key:0},ae={colspan:"7",class:"empty-cell"},le={class:"runtime-section"},ie={class:"section-header"},oe={class:"session-list"},ue={key:0,class:"session-empty"},ce=be({__name:"PerformanceView",setup(Te){const{t:r}=ke(),de=Se(),t=B(null),p=B(!1),f=B(!0);let c;const _e=h(()=>t.value?.bridge.broker.process?.memoryRssBytes??null),pe=h(()=>t.value?.web.memory.rss??null),fe=h(()=>t.value?.bridge.workers.length??0),ve=h(()=>t.value?.bridge.workers.filter(n=>n.running).length??0);function d(n){if(n==null||!Number.isFinite(n))return"-";const i=["B","KB","MB","GB","TB"];let l=n,o=0;for(;l>=1024&&o<i.length-1;)l/=1024,o+=1;return`${l.toFixed(o===0?0:1)} ${i[o]}`}function _(n){return n==null||!Number.isFinite(n)?"-":`${n.toFixed(1)}%`}function he(n){if(n==null||!Number.isFinite(n))return"-";const i=Math.floor(n/86400),l=Math.floor(n%86400/3600),o=Math.floor(n%3600/60);return i>0?`${i}d ${l}h`:l>0?`${l}h ${o}m`:`${o}m`}function ye(n){return n?new Date(n*1e3).toLocaleString():"-"}function v(n){return r(n?"performance.running":"performance.stopped")}async function b(n=!0){p.value=!0;try{t.value=await Ie()}catch(i){n&&de.error(i?.message||r("performance.loadFailed"))}finally{p.value=!1}}function k(n){f.value=n,c&&(clearInterval(c),c=void 0),n&&(c=setInterval(()=>b(!1),5e3))}return ge(()=>{b(),k(!0)}),Ce(()=>{c&&clearInterval(c)}),(n,i)=>(u(),m("div",V,[e("header",I,[e("h2",N,s(a(r)("performance.title")),1),e("div",D,[P(a(M),{size:"small",type:f.value?"primary":"default",secondary:"",onClick:i[0]||(i[0]=l=>k(!f.value))},{default:w(()=>[S(s(f.value?a(r)("performance.autoRefreshOn"):a(r)("performance.autoRefreshOff")),1)]),_:1},8,["type"]),P(a(M),{size:"small",loading:p.value,onClick:i[1]||(i[1]=l=>b())},{default:w(()=>[S(s(a(r)("performance.refresh")),1)]),_:1},8,["loading"])])]),P(a(we),{show:p.value&&!t.value,class:"performance-spin"},{default:w(()=>[t.value?(u(),m("main",F,[e("section",U,[e("div",T,[e("span",W,s(a(r)("performance.systemCpu")),1),e("strong",null,s(_(t.value.system.cpuPercent)),1),e("div",z,[e("span",{style:x({width:`${t.value.system.cpuPercent||0}%`})},null,4)])]),e("div",A,[e("span",L,s(a(r)("performance.systemMemory")),1),e("strong",null,s(_(t.value.system.memoryPercent)),1),e("small",null,s(d(t.value.system.usedMemoryBytes))+" / "+s(d(t.value.system.totalMemoryBytes)),1),e("div",O,[e("span",{style:x({width:`${t.value.system.memoryPercent||0}%`})},null,4)])]),e("div",j,[e("span",G,s(a(r)("performance.activeSessions")),1),e("strong",null,s(t.value.sessions.active),1),e("small",null,s(a(r)("performance.runningSessions",{count:t.value.sessions.running})),1)]),e("div",K,[e("span",q,s(a(r)("performance.workers")),1),e("strong",null,s(ve.value)+" / "+s(fe.value),1),e("small",null,s(a(r)("performance.totalWorkerMemory"))+" "+s(d(t.value.bridge.totalWorkerMemoryRssBytes)),1)])]),e("section",E,[e("div",H,[e("h3",null,s(a(r)("performance.processes")),1),e("span",null,s(t.value.system.platform)+" "+s(t.value.system.arch)+" · "+s(t.value.system.cpuCount)+" CPU · "+s(a(r)("performance.uptime"))+" "+s(he(t.value.system.uptimeSeconds)),1)]),e("div",Q,[e("div",J,[e("div",null,[i[2]||(i[2]=e("strong",null,"Web UI",-1)),e("span",null,"PID "+s(t.value.web.pid),1)]),e("span",null,s(_(t.value.web.cpuPercent)),1),e("span",null,s(d(pe.value)),1),e("span",X,s(v(!0)),1)]),e("div",Y,[e("div",null,[i[3]||(i[3]=e("strong",null,"Bridge Broker",-1)),e("span",null,s(t.value.bridge.endpoint),1)]),e("span",null,s(_(t.value.bridge.broker.process?.cpuPercent)),1),e("span",null,s(d(_e.value)),1),e("span",{class:R(["status",{running:t.value.bridge.reachable&&t.value.bridge.broker.running}])},s(t.value.bridge.reachable&&t.value.bridge.broker.running?v(!0):v(!1)),3)])]),t.value.bridge.error?(u(),m("div",Z,s(t.value.bridge.error),1)):y("",!0)]),e("section",ee,[e("div",se,[e("h3",null,s(a(r)("performance.workerMemory")),1),e("span",null,s(a(r)("performance.lastUpdated"))+" "+s(new Date(t.value.timestamp).toLocaleTimeString()),1)]),e("div",te,[e("table",ne,[e("thead",null,[e("tr",null,[e("th",null,s(a(r)("performance.profile")),1),i[4]||(i[4]=e("th",null,"PID",-1)),i[5]||(i[5]=e("th",null,"CPU",-1)),e("th",null,s(a(r)("performance.memory")),1),e("th",null,s(a(r)("performance.runningActiveSessions")),1),e("th",null,s(a(r)("performance.lastUsed")),1),e("th",null,s(a(r)("performance.status")),1)])]),e("tbody",null,[t.value.bridge.workers.length===0?(u(),m("tr",re,[e("td",ae,s(a(r)("performance.noWorkers")),1)])):y("",!0),(u(!0),m($,null,C(t.value.bridge.workers,l=>(u(),m("tr",{key:l.profile||l.pid},[e("td",null,s(l.profile||"-"),1),e("td",null,s(l.pid||"-"),1),e("td",null,s(_(l.cpuPercent)),1),e("td",null,s(d(l.memoryRssBytes)),1),e("td",null,s(l.runningSessionCount)+" / "+s(l.sessionCount),1),e("td",null,s(ye(l.lastUsedAt)),1),e("td",null,[e("span",{class:R(["status",{running:l.running}])},s(v(l.running)),3)])]))),128))])])])]),e("section",le,[e("div",ie,[e("h3",null,s(a(r)("performance.sessionsByProfile")),1)]),e("div",oe,[Object.keys(t.value.sessions.byProfile).length===0?(u(),m("div",ue,s(a(r)("performance.noActiveSessions")),1)):y("",!0),(u(!0),m($,null,C(t.value.sessions.byProfile,(l,o)=>(u(),m("div",{key:o,class:"session-row"},[e("span",null,s(o),1),e("strong",null,s(l),1)]))),128))])])])):y("",!0)]),_:1},8,["show"])]))}})})),De=g((()=>{})),Fe,Ue=g((()=>{me(),me(),De(),xe(),Fe=Ve(ce,[["__scopeId","data-v-9f25c726"]])}));Ue();export{Fe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$i as m,$t as C,Bi as oe,Di as _e,G as ce,Hi as r,M as ve,Nr as pe,Pr as me,Qr as ge,Sa as i,Ti as o,Vr as fe,Wi as $,_a as a,_i as s,bi as u,dn as he,ei as ye,gi as v,gt as xe,hn as be,ln as ke,mi as V,n as we,si as Pe,sn as Se,t as Be,ua as _,vi as L,wa as P,wi as g,xa as Ce,ya as Ve,yi as w,zr as Me,zt as Ne}from"./index-
|
|
1
|
+
import{$i as m,$t as C,Bi as oe,Di as _e,G as ce,Hi as r,M as ve,Nr as pe,Pr as me,Qr as ge,Sa as i,Ti as o,Vr as fe,Wi as $,_a as a,_i as s,bi as u,dn as he,ei as ye,gi as v,gt as xe,hn as be,ln as ke,mi as V,n as we,si as Pe,sn as Se,t as Be,ua as _,vi as L,wa as P,wi as g,xa as Ce,ya as Ve,yi as w,zr as Me,zt as Ne}from"./index-DN4SafrP.js";import{n as ze,t as Ae}from"./pets-D74G2jqA.js";function Ue(M=!1){return ye(`/api/hermes/petdex/manifest${M?"?force=1":""}`)}var $e=P((()=>{ge()})),T,D,E,F,I,q,O,j,J,K,Q,W,G,H,R,X,Y,Z,ee,te,ae,le,se=P((()=>{Pe(),ve(),pe(),$e(),Ae(),fe(),T={class:"petdex-view"},D={class:"page-header"},E={class:"header-title"},F={key:0,class:"loading-state"},I={key:1,class:"summary-grid"},q={class:"summary-card"},O={class:"summary-card"},j={class:"summary-card"},J={class:"summary-card wide"},K={class:"filter-row"},Q={key:2,class:"pet-grid"},W={class:"pet-preview"},G={class:"pet-body"},H={class:"pet-title-row"},R={class:"pet-slug"},X={key:0,class:"pet-meta"},Y={class:"pet-links"},Z=["href"],ee={class:"pet-actions"},te={key:4,class:"load-more"},ae=.58,le=_e({__name:"PetdexView",setup(M){const{t:n}=me(),N=xe(),p=ze(),d=_(null),c=_(!1),f=_(""),h=_(""),S=_(""),y=_(null),B=_(96),z=v(()=>d.value?.pets??[]),ie=v(()=>{const l=d.value?.generatedAt;if(!l)return"";const e=new Date(l);return Number.isNaN(e.getTime())?l:e.toLocaleString()}),A=v(()=>{const l=new Map;for(const e of z.value)l.set(e.kind,(l.get(e.kind)??0)+1);return Array.from(l.entries()).sort((e,t)=>t[1]-e[1]||e[0].localeCompare(t[0])).map(([e,t])=>({label:`${e} (${t})`,value:e}))}),x=v(()=>{const l=S.value.trim().toLowerCase();return z.value.filter(e=>y.value&&e.kind!==y.value?!1:l?[e.slug,e.displayName,e.kind,e.submittedBy].some(t=>String(t||"").toLowerCase().includes(l)):!0)}),b=v(()=>x.value.slice(0,B.value)),ne=v(()=>b.value.length<x.value.length);async function U(l=!1){c.value=!0,h.value="";try{d.value=await Ue(l),B.value=96}catch(e){h.value=e?.message||n("petdex.loadFailed")}finally{c.value=!1}}function re(){B.value+=96}function ue(l){return[{label:n("petdex.spritesheet"),href:l.spritesheetUrl},...l.petJsonUrl?[{label:"pet.json",href:l.petJsonUrl}]:[],...l.zipUrl?[{label:"zip",href:l.zipUrl}]:[]]}async function de(l){f.value=l.slug;try{await p.adopt(l.slug);const e=Me();e?.isDesktop&&(await p.savePreferences({scale:ae}),await e.setPetWindowVisible?.(!0).catch(()=>{})),N.success(n("petdex.adopted",{name:l.displayName}))}catch(e){N.error(e?.message||n("petdex.adoptFailed"))}finally{f.value=""}}return oe(()=>{U(),p.loadActivePet()}),(l,e)=>(r(),u("div",T,[s("header",D,[s("h2",E,i(a(n)("petdex.title")),1),o(a(C),{size:"small",quaternary:"",loading:c.value,onClick:e[0]||(e[0]=t=>U(!0))},{default:m(()=>[g(i(a(n)("petdex.refresh")),1)]),_:1},8,["loading"])]),s("div",{class:Ve(["petdex-content",{"is-loading":c.value&&!d.value}])},[c.value&&!d.value?(r(),u("div",F,[o(a(ce))])):(r(),u(V,{key:1},[h.value?(r(),L(a(ke),{key:0,type:"error",class:"notice"},{default:m(()=>[g(i(h.value),1)]),_:1})):w("",!0),d.value?(r(),u("div",I,[s("div",q,[s("span",null,i(a(n)("petdex.summary.total")),1),s("strong",null,i(d.value.total),1)]),s("div",O,[s("span",null,i(a(n)("petdex.summary.visible")),1),s("strong",null,i(x.value.length),1)]),s("div",j,[s("span",null,i(a(n)("petdex.summary.kinds")),1),s("strong",null,i(A.value.length),1)]),s("div",J,[s("span",null,i(a(n)("petdex.summary.generatedAt")),1),s("strong",null,i(ie.value||"-"),1)])])):w("",!0),s("div",K,[o(a(Se),{value:S.value,"onUpdate:value":e[1]||(e[1]=t=>S.value=t),placeholder:a(n)("petdex.searchPlaceholder"),clearable:""},null,8,["value","placeholder"]),o(a(Ne),{value:y.value,"onUpdate:value":e[2]||(e[2]=t=>y.value=t),options:A.value,placeholder:a(n)("petdex.kindFilter"),clearable:""},null,8,["value","options","placeholder"])]),b.value.length?(r(),u("div",Q,[(r(!0),u(V,null,$(b.value,t=>(r(),u("article",{key:t.slug,class:"pet-card"},[s("div",W,[s("div",{class:"pet-frame",style:Ce({backgroundImage:`url(${t.previewUrl||t.spritesheetUrl})`})},null,4)]),s("div",G,[s("div",H,[s("h3",null,i(t.displayName),1),o(a(he),{size:"small",round:""},{default:m(()=>[g(i(t.kind),1)]),_:2},1024)]),s("div",R,i(t.slug),1),t.submittedBy?(r(),u("div",X,i(a(n)("petdex.submittedBy",{name:t.submittedBy})),1)):w("",!0),s("div",Y,[(r(!0),u(V,null,$(ue(t),k=>(r(),u("a",{key:k.href,href:k.href,target:"_blank",rel:"noopener noreferrer"},i(k.label),9,Z))),128))]),s("div",ee,[o(a(C),{size:"small",type:"primary",block:"",secondary:a(p).activePet?.slug===t.slug,loading:f.value===t.slug,disabled:!!f.value,onClick:k=>de(t)},{default:m(()=>[g(i(a(p).activePet?.slug===t.slug?a(n)("petdex.active"):a(n)("petdex.adopt")),1)]),_:2},1032,["secondary","loading","disabled","onClick"])])])]))),128))])):(r(),L(a(be),{key:3,description:a(n)("petdex.empty")},null,8,["description"])),ne.value?(r(),u("div",te,[o(a(C),{disabled:c.value,onClick:re},{default:m(()=>[g(i(a(n)("petdex.showMore",{count:Math.min(96,x.value.length-b.value.length)})),1)]),_:1},8,["disabled"])])):w("",!0)],64))],2)]))}})})),Le=P((()=>{})),Te,De=P((()=>{se(),se(),Le(),we(),Te=Be(le,[["__scopeId","data-v-e67bc397"]])}));De();export{Te as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$i as _,$t as U,Di as Te,G as Be,Hi as u,M as Me,Nr as $e,Pr as ze,Qr as Le,Sa as l,Ti as c,Wi as q,Zi as Ne,_a as t,_i as e,bi as r,dn as M,ei as he,gi as y,gt as Fe,hn as Ie,ln as $,mi as z,n as Ae,si as Oe,sn as Ue,t as qe,ua as v,vi as C,wa as V,wi as d,ya as je,yi as m,zt as L}from"./index-
|
|
1
|
+
import{$i as _,$t as U,Di as Te,G as Be,Hi as u,M as Me,Nr as $e,Pr as ze,Qr as Le,Sa as l,Ti as c,Wi as q,Zi as Ne,_a as t,_i as e,bi as r,dn as M,ei as he,gi as y,gt as Fe,hn as Ie,ln as $,mi as z,n as Ae,si as Oe,sn as Ue,t as qe,ua as v,vi as C,wa as V,wi as d,ya as je,yi as m,zt as L}from"./index-DN4SafrP.js";import{r as Re,t as De}from"./profiles-BK5JKD7h.js";async function He(){return he("/api/hermes/plugins")}async function Qe(N,n){return he(`/api/hermes/plugins/${encodeURIComponent(N)}/${n?"enable":"disable"}`,{method:"POST"})}var Ge=V((()=>{Le()})),j,R,D,H,Q,G,K,W,Z,J,X,Y,ee,ae,te,se,le,ne,ie,ue,re,oe,de,ce,ve,_e,pe,me,fe,ye,ge=V((()=>{Oe(),Me(),$e(),Ge(),De(),j={class:"plugins-view"},R={class:"page-header"},D={class:"header-title"},H={key:0,class:"plugins-loading-state"},Q={class:"summary-grid"},G={class:"summary-card"},K={class:"summary-label"},W={class:"summary-card success"},Z={class:"summary-label"},J={class:"summary-card warning"},X={class:"summary-label"},Y={class:"summary-card error"},ee={class:"summary-label"},ae={class:"summary-card info"},te={class:"summary-label"},se={class:"filter-row"},le={key:1,class:"plugins-table-wrap"},ne={class:"plugins-table"},ie={class:"plugin-name"},ue={key:0},re={key:0,class:"description"},oe={key:1,class:"meta-line"},de={key:0},ce={key:1},ve={class:"config-status"},_e={class:"capability-list"},pe={class:"path-cell"},me={key:1,class:"muted"},fe={key:3,class:"metadata-panel"},ye=Te({__name:"PluginsView",setup(N){const{t:n,te:F}=ze(),I=Fe(),b=Re(),o=v([]),x=v([]),p=v(null),f=v(!1),k=v(""),g=v({}),E=v(""),w=v(null),S=v(null),P=v(null),be=["enabled","auto-active","inactive","disabled","provider-managed"],ke=y(()=>be.map(s=>({label:n(`plugins.status.${s}`),value:s}))),we=y(()=>O(o.value.map(s=>s.source))),Se=y(()=>O(o.value.map(s=>s.kind))),h=y(()=>({total:o.value.length,active:o.value.filter(s=>s.effectiveStatus==="enabled"||s.effectiveStatus==="auto-active").length,inactive:o.value.filter(s=>s.effectiveStatus==="inactive").length,disabled:o.value.filter(s=>s.effectiveStatus==="disabled").length,providerManaged:o.value.filter(s=>s.effectiveStatus==="provider-managed").length})),A=y(()=>{const s=E.value.trim().toLowerCase();return o.value.filter(i=>w.value&&i.source!==w.value||S.value&&i.kind!==S.value||P.value&&i.effectiveStatus!==P.value?!1:s?[i.key,i.name,i.description,i.path,i.source,i.kind].some(a=>String(a||"").toLowerCase().includes(s)):!0)});function O(s){return Array.from(new Set(s.filter(Boolean))).sort((i,a)=>i.localeCompare(a)).map(i=>({label:i,value:i}))}async function T(){f.value=!0,k.value="";try{(!b.activeProfileName||b.profiles.length===0)&&await b.fetchProfiles();const s=await He();o.value=s.plugins??[],x.value=s.warnings??[],p.value=s.metadata??null}catch(s){k.value=s?.message||n("plugins.loadFailed")}finally{f.value=!1}}function Pe(s){const i=`plugins.statusLabel.${s.effectiveStatus}`;return F(i)?n(i):s.effectiveStatus}function Ce(s){const i=`plugins.configStatuses.${s.configStatus}`;return F(i)?n(i):s.configStatus}function Ve(s){switch(s.effectiveStatus){case"enabled":case"auto-active":return"success";case"disabled":return"error";case"provider-managed":return"info";default:return"warning"}}function xe(s){return s.kind==="standalone"&&s.source!=="bundled"}function B(s){return s.effectiveStatus==="enabled"}async function Ee(s,i){g.value={...g.value,[s.key]:!0};try{await Qe(s.key,i),I.success(n(i?"plugins.enableSuccess":"plugins.disableSuccess",{name:s.key})),await T()}catch(a){I.error(a?.message||n("plugins.updateFailed"))}finally{const a={...g.value};delete a[s.key],g.value=a}}return Ne(()=>b.activeProfileName||"default",()=>{o.value=[],x.value=[],p.value=null,T()},{immediate:!0}),(s,i)=>(u(),r("div",j,[e("header",R,[e("h2",D,l(t(n)("plugins.title")),1),c(t(U),{size:"small",quaternary:"",loading:f.value,onClick:T},{default:_(()=>[d(l(t(n)("plugins.refresh")),1)]),_:1},8,["loading"])]),e("div",{class:je(["plugins-content",{"is-loading":f.value&&o.value.length===0}])},[f.value&&o.value.length===0?(u(),r("div",H,[c(t(Be))])):(u(),r(z,{key:1},[c(t($),{type:"info",bordered:!1,class:"plugins-notice"},{default:_(()=>[d(l(t(n)("plugins.notice")),1)]),_:1}),k.value?(u(),C(t($),{key:0,type:"error",class:"plugins-notice"},{default:_(()=>[d(l(k.value),1)]),_:1})):m("",!0),(u(!0),r(z,null,q(x.value,a=>(u(),C(t($),{key:a,type:"warning",class:"plugins-notice"},{default:_(()=>[d(l(a),1)]),_:2},1024))),128)),e("div",Q,[e("div",G,[e("span",K,l(t(n)("plugins.summary.total")),1),e("strong",null,l(h.value.total),1)]),e("div",W,[e("span",Z,l(t(n)("plugins.summary.active")),1),e("strong",null,l(h.value.active),1)]),e("div",J,[e("span",X,l(t(n)("plugins.summary.inactive")),1),e("strong",null,l(h.value.inactive),1)]),e("div",Y,[e("span",ee,l(t(n)("plugins.summary.disabled")),1),e("strong",null,l(h.value.disabled),1)]),e("div",ae,[e("span",te,l(t(n)("plugins.summary.providerManaged")),1),e("strong",null,l(h.value.providerManaged),1)])]),e("div",se,[c(t(Ue),{value:E.value,"onUpdate:value":i[0]||(i[0]=a=>E.value=a),placeholder:t(n)("plugins.searchPlaceholder"),clearable:""},null,8,["value","placeholder"]),c(t(L),{value:w.value,"onUpdate:value":i[1]||(i[1]=a=>w.value=a),options:we.value,placeholder:t(n)("plugins.source"),clearable:""},null,8,["value","options","placeholder"]),c(t(L),{value:S.value,"onUpdate:value":i[2]||(i[2]=a=>S.value=a),options:Se.value,placeholder:t(n)("plugins.kind"),clearable:""},null,8,["value","options","placeholder"]),c(t(L),{value:P.value,"onUpdate:value":i[3]||(i[3]=a=>P.value=a),options:ke.value,placeholder:t(n)("plugins.statusTitle"),clearable:""},null,8,["value","options","placeholder"])]),A.value.length?(u(),r("div",le,[e("table",ne,[e("thead",null,[e("tr",null,[e("th",null,l(t(n)("plugins.table.plugin")),1),e("th",null,l(t(n)("plugins.table.status")),1),e("th",null,l(t(n)("plugins.table.source")),1),e("th",null,l(t(n)("plugins.table.kind")),1),e("th",null,l(t(n)("plugins.table.capabilities")),1),e("th",null,l(t(n)("plugins.table.path")),1),e("th",null,l(t(n)("plugins.table.manage")),1)])]),e("tbody",null,[(u(!0),r(z,null,q(A.value,a=>(u(),r("tr",{key:a.key},[e("td",null,[e("div",ie,[e("strong",null,l(a.key),1),a.name!==a.key?(u(),r("span",ue,l(a.name),1)):m("",!0)]),a.description?(u(),r("div",re,l(a.description),1)):m("",!0),a.version||a.author?(u(),r("div",oe,[a.version?(u(),r("span",de,"v"+l(a.version),1)):m("",!0),a.author?(u(),r("span",ce,l(a.author),1)):m("",!0)])):m("",!0)]),e("td",null,[c(t(M),{size:"small",type:Ve(a)},{default:_(()=>[d(l(Pe(a)),1)]),_:2},1032,["type"]),e("div",ve,l(t(n)("plugins.configStatus",{status:Ce(a)})),1)]),e("td",null,[c(t(M),{size:"small",round:""},{default:_(()=>[d(l(a.source),1)]),_:2},1024)]),e("td",null,[c(t(M),{size:"small",round:""},{default:_(()=>[d(l(a.kind),1)]),_:2},1024)]),e("td",null,[e("div",_e,[e("span",null,l(t(n)("plugins.capabilities.tools",{count:a.providesTools.length})),1),e("span",null,l(t(n)("plugins.capabilities.hooks",{count:a.providesHooks.length})),1),e("span",null,l(t(n)("plugins.capabilities.env",{count:a.requiresEnv.length})),1)])]),e("td",null,[e("code",pe,l(a.path||t(n)("plugins.notAvailable")),1)]),e("td",null,[xe(a)?(u(),C(t(U),{key:0,size:"tiny",secondary:"",type:B(a)?"warning":"primary",loading:!!g.value[a.key],onClick:Je=>Ee(a,!B(a))},{default:_(()=>[d(l(B(a)?t(n)("common.disable"):t(n)("common.enable")),1)]),_:2},1032,["type","loading","onClick"])):(u(),r("span",me,l(t(n)("plugins.managedElsewhere")),1))])]))),128))])])])):(u(),C(t(Ie),{key:2,description:t(n)("plugins.noMatch")},null,8,["description"])),p.value?(u(),r("div",fe,[e("span",null,[d(l(t(n)("plugins.metadata.agentRoot"))+": ",1),e("code",null,l(p.value.hermesAgentRoot),1)]),e("span",null,[d(l(t(n)("plugins.metadata.python"))+": ",1),e("code",null,l(p.value.pythonExecutable),1)]),e("span",null,[d(l(t(n)("plugins.metadata.scanCwd"))+": ",1),e("code",null,l(p.value.cwd),1)]),e("span",null,[d(l(t(n)("plugins.metadata.projectPlugins"))+": ",1),e("code",null,l(p.value.projectPluginsEnabled?t(n)("plugins.enabled"):t(n)("plugins.disabled")),1)])])):m("",!0)],64))],2)]))}})})),Ke=V((()=>{})),We,Ze=V((()=>{ge(),ge(),Ke(),Ae(),We=qe(ye,[["__scopeId","data-v-7812a3cc"]])}));Ze();export{We as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/aiden0z-pptx-renderer.es-
|
|
2
|
-
import{$i as x,$t as A,Bi as L,Di as R,Fi as Z,Fr as G,G as $,Hi as j,Ir as q,M as O,Nr as H,Pr as U,Ri as K,Sa as y,Ti as v,Zi as V,Zt as Q,_a as n,_i as h,bi as W,n as J,si as X,t as Y,tt as ee,ua as f,wa as E,wi as k}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/aiden0z-pptx-renderer.es-DOpVaH_k.js","assets/js/index-DN4SafrP.js","assets/css/index-IP31leuw.css","assets/js/jszip.min-skZCUzWf.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$i as x,$t as A,Bi as L,Di as R,Fi as Z,Fr as G,G as $,Hi as j,Ir as q,M as O,Nr as H,Pr as U,Ri as K,Sa as y,Ti as v,Zi as V,Zt as Q,_a as n,_i as h,bi as W,n as J,si as X,t as Y,tt as ee,ua as f,wa as E,wi as k}from"./index-DN4SafrP.js";var z,B,N,F=E((()=>{X(),O(),H(),q(),z={class:"pptx-preview"},B={class:"pptx-toolbar"},N=R({__name:"PptxFilePreview",props:{data:{}},emits:["error"],setup(T,{emit:D}){const S=T,m=D,{t:_}=U(),s=f(null),u=f(!0),l=f(1),d=f(0),b=f(1);let r=null,g=null,o=0;function w(t){return t instanceof Error?t:new Error(String(t))}function P(t){t.querySelectorAll("iframe, frame, object, embed, applet, form, audio, video, source").forEach(e=>e.remove()),t.querySelectorAll("style").forEach(e=>{e.textContent=(e.textContent||"").replace(/@import[\s\S]*?;/gi,"").replace(/url\(\s*(['"]?)(?!data:|blob:)[^)]+\)/gi,"none")}),t.querySelectorAll("*").forEach(e=>{for(const a of[...e.attributes]){const i=a.name.toLowerCase();i.startsWith("on")&&e.removeAttribute(a.name),["href","xlink:href","action","formaction","srcset"].includes(i)&&e.removeAttribute(a.name),i==="src"&&!/^(?:data:|blob:)/i.test(a.value.trim())&&e.removeAttribute(a.name),i==="style"&&e.setAttribute("style",a.value.replace(/url\(\s*(['"]?)(?!data:|blob:)[^)]+\)/gi,"none"))}e instanceof HTMLElement&&/url\(\s*['"]?(?:https?:)?\/\//i.test(e.style.backgroundImage)&&(e.style.backgroundImage="none")})}function C(){g?.abort(),g=null;try{r?.destroy()}catch{}r=null,s.value?.replaceChildren()}async function I(){const t=++o;if(C(),u.value=!0,l.value=1,d.value=0,await Z(),!(!s.value||t!==o)){g=new AbortController;try{const{PptxViewer:e,RECOMMENDED_ZIP_LIMITS:a}=await G(async()=>{const{PptxViewer:c,RECOMMENDED_ZIP_LIMITS:p}=await import("./aiden0z-pptx-renderer.es-DOpVaH_k.js");return{PptxViewer:c,RECOMMENDED_ZIP_LIMITS:p}},__vite__mapDeps([0,1,2,3]));if(!s.value||t!==o)return;const i=await e.open(S.data.slice(0),s.value,{renderMode:"slide",fitMode:"contain",zoomPercent:b.value*100,zipLimits:a,lazySlides:!0,lazyMedia:!0,pdfjs:!1,signal:g.signal,onSlideChange:c=>{t===o&&(l.value=c+1)},onSlideRendered:(c,p)=>{P(p)},onSlideError:(c,p)=>{t===o&&m("error",w(p))}});if(t!==o){i.destroy();return}r=i,d.value=i.slideCount,l.value=i.currentSlideIndex+1,P(s.value)}catch(e){e?.name!=="AbortError"&&t===o&&m("error",w(e))}finally{t===o&&(u.value=!1)}}}async function M(t){if(!r||u.value)return;const e=r,a=Math.min(Math.max(t,1),d.value);try{if(await e.goToSlide(a-1),r!==e)return;l.value=a,s.value&&P(s.value)}catch(i){r===e&&m("error",w(i))}}return V(()=>S.data,()=>{I()}),V(b,t=>{if(!r||!Number.isFinite(t))return;const e=r;e.setZoom(t*100).catch(a=>{r===e&&m("error",w(a))})}),L(()=>{I()}),K(()=>{o+=1,C()}),(t,e)=>(j(),W("div",z,[h("div",B,[v(n(Q),{size:"small"},{default:x(()=>[v(n(A),{disabled:l.value<=1||u.value,onClick:e[0]||(e[0]=a=>M(l.value-1))},{default:x(()=>[k(y(n(_)("files.previousPage")),1)]),_:1},8,["disabled"]),v(n(A),{disabled:l.value>=d.value||u.value,onClick:e[1]||(e[1]=a=>M(l.value+1))},{default:x(()=>[k(y(n(_)("files.nextPage")),1)]),_:1},8,["disabled"])]),_:1}),h("span",null,y(n(_)("files.pageStatus",{page:l.value,total:d.value})),1),v(n(ee),{value:b.value,"onUpdate:value":e[2]||(e[2]=a=>b.value=a),size:"small",min:.5,max:2,step:.1,style:{width:"110px"}},null,8,["value"]),h("span",null,y(n(_)("files.zoom")),1)]),v(n($),{show:u.value,description:n(_)("files.previewLoading"),class:"pptx-stage"},{default:x(()=>[h("div",{ref_key:"host",ref:s,class:"pptx-renderer-host"},null,512)]),_:1},8,["show","description"])]))}})})),te=E((()=>{})),ae,ie=E((()=>{F(),F(),te(),J(),ae=Y(N,[["__scopeId","data-v-4d4c6394"]])}));ie();export{ae as default};
|