@myagentroam/server 0.14.11 → 0.14.13
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/node_modules/@myagentroam/protocol/package.json +1 -1
- package/node_modules/@myagentroam/server-core/package.json +2 -2
- package/node_modules/@myagentroam-enterprise/server-implementation/package.json +3 -3
- package/package.json +5 -5
- package/web/THIRD_PARTY_NOTICES.txt +0 -202
- package/web/assets/AuditManagementPage-BGwiwkWO.js +1 -0
- package/web/assets/AuditManagementPage-DsqAkiGi.css +1 -0
- package/web/assets/AuthEntryPanel-CFtw_f_Y.js +45 -0
- package/web/assets/AuthEntryPanel-d8KztXAR.css +1 -0
- package/web/assets/{BusyIndicator-D3z5mSYz.js → BusyIndicator-BJHbXq72.js} +1 -1
- package/web/assets/{CodeFileEditor-C1nsen9d.css → CodeFileEditor-DOTdiDdP.css} +1 -1
- package/web/assets/{CodeFileEditor-DrfKtRGJ.js → CodeFileEditor-DuD7Q4mq.js} +3 -3
- package/web/assets/ConversationTemplateManagementPage-CfZ2Ul2v.js +1 -0
- package/web/assets/ConversationTemplateManagementPage-DYpRP2CZ.css +1 -0
- package/web/assets/ConversationTemplateManagementPage-UWiSWTX8.js +1 -0
- package/web/assets/ConversationTemplateManagementPage-zmRrOr4L.css +1 -0
- package/web/assets/EnterpriseUserManagementPage-AR_Tfq3R.css +1 -0
- package/web/assets/EnterpriseUserManagementPage-DsO542HL.js +1 -0
- package/web/assets/EnvironmentSecretManager-C-5fdfXQ.css +1 -0
- package/web/assets/EnvironmentSecretManager-rbFx9YED.js +1 -0
- package/web/assets/FilePreviewLoading-B58or4ra.css +1 -0
- package/web/assets/FilePreviewLoading-D6s3o2bu.js +23 -0
- package/web/assets/HtmlPreviewFrame-DgODUBJD.css +1 -0
- package/web/assets/HtmlPreviewFrame-fKFJ8kxw.js +6 -0
- package/web/assets/LicenseManagementPage-BtQdmqgE.js +1 -0
- package/web/assets/LicenseManagementPage-DXwm-duU.css +1 -0
- package/web/assets/ManagementPagination-B6Pmmb2K.js +1 -0
- package/web/assets/ManagementPagination-I-9QufQH.css +1 -0
- package/web/assets/MarAgentModelManagementPage-BFVlk-4R.css +1 -0
- package/web/assets/MarAgentModelManagementPage-CLHwnOlN.css +1 -0
- package/web/assets/MarAgentModelManagementPage-DgIYAL72.js +1 -0
- package/web/assets/MarAgentModelManagementPage-jLtdmQI8.js +1 -0
- package/web/assets/MarAlert-Dsrb10N-.js +1 -0
- package/web/assets/MarAlert-Rzb0-bOv.css +1 -0
- package/web/assets/MarCascader-BKG_pCU9.js +1 -0
- package/web/assets/MarCascader-Cc9hefbo.css +1 -0
- package/web/assets/MarCheckboxGroup-CeaJ5pd8.js +1 -0
- package/web/assets/MarCheckboxGroup-DkmFKLjl.css +1 -0
- package/web/assets/MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-oSUSoUdm.js +1 -0
- package/web/assets/MarDatePicker-Bv6kzLiu.js +1 -0
- package/web/assets/MarDatePicker-T5E6eRQy.css +1 -0
- package/web/assets/MarDescriptionsItem-D06qWo6K.css +1 -0
- package/web/assets/MarDescriptionsItem-Ddl4rEoo.js +1 -0
- package/web/assets/MarFormItem-E1c9DvaF.css +1 -0
- package/web/assets/MarFormItem.vue_vue_type_script_setup_true_lang-DNgXEgAb.js +12 -0
- package/web/assets/MarInputNumber-C3s8idO0.css +1 -0
- package/web/assets/MarInputNumber-CcpviHTx.js +1 -0
- package/web/assets/MarOptionGroup-BVR0qlAA.css +1 -0
- package/web/assets/MarOptionGroup.vue_vue_type_style_index_0_scoped_cacd24eb_lang-BQD1pghB.js +1 -0
- package/web/assets/MarSwitch-DSMHC1ur.css +1 -0
- package/web/assets/MarSwitch-Nht5u3dc.js +1 -0
- package/web/assets/MarTableColumn-DtHETYNc.css +1 -0
- package/web/assets/MarTableColumn.vue_vue_type_script_setup_true_lang-9WwypTkY.js +1 -0
- package/web/assets/MarTabs-D28b5Cm_.js +1 -0
- package/web/assets/MarTabs-hvIwX-j4.css +1 -0
- package/web/assets/MarTag-Bqa2l4XX.css +1 -0
- package/web/assets/MarTag-CU69nmi0.js +1 -0
- package/web/assets/MarkdownFilePreview-eHfaSvqk.js +2 -0
- package/web/assets/McpDetailsDialog-CeN-XR0C.js +1 -0
- package/web/assets/McpDetailsDialog-DDeblEzR.css +1 -0
- package/web/assets/McpSourceManagementPage-C2XYcsBZ.css +1 -0
- package/web/assets/McpSourceManagementPage-CQ02Cxhp.js +1 -0
- package/web/assets/McpSourceManagementPage-D7TISzgb.js +1 -0
- package/web/assets/NodeDetailsDialogs-CunI5Y3P.js +1 -0
- package/web/assets/NodeDetailsDialogs-DGvkZsiw.css +1 -0
- package/web/assets/NodeManagementPage-5A5wEaf7.js +1 -0
- package/web/assets/NodeManagementPage-D8xNnpz-.js +1 -0
- package/web/assets/OAuthManagementPage-DiVu7-4g.js +2 -0
- package/web/assets/OAuthManagementPage-PZThmGZo.css +1 -0
- package/web/assets/OrganizationManagementPage-CKRrtBnJ.css +1 -0
- package/web/assets/OrganizationManagementPage-KYRf5SG3.js +1 -0
- package/web/assets/RemoteDesktopPage-CXb_A40m.js +5 -0
- package/web/assets/RemoteDesktopPage-DRio-7WI.css +1 -0
- package/web/assets/ResourceManagementPanel-C8sK8pZt.js +2 -0
- package/web/assets/ResourceManagementPanel-DxgpQohB.css +1 -0
- package/web/assets/ResourceManagementPanel-S4DxgU7P.css +1 -0
- package/web/assets/ResourceManagementPanel.vue_vue_type_script_setup_true_lang-B0BiJsYP.js +1 -0
- package/web/assets/SecretManagementPage-BQLBf9JN.js +1 -0
- package/web/assets/SecretManagementPage-CdG81hZg.js +1 -0
- package/web/assets/{SecretManagementPage.vue_vue_type_script_setup_true_lang-D9D12HWp.js → SecretManagementPage.vue_vue_type_script_setup_true_lang-Cj-i8iWa.js} +1 -1
- package/web/assets/SessionSharePage-3pOC7zRL.js +2 -0
- package/web/assets/SessionSharePage-DGGHczdP.css +1 -0
- package/web/assets/SettingsContent-BGPfO8se.css +1 -0
- package/web/assets/SettingsContent-DNa5A1_N.js +1 -0
- package/web/assets/SettingsContent-DnSL8cs4.css +1 -0
- package/web/assets/SettingsContent-_7yaCY3w.js +1 -0
- package/web/assets/SkillCenterPage--fuP-slY.css +1 -0
- package/web/assets/SkillCenterPage-C-RhgoXR.js +1 -0
- package/web/assets/SkillCenterPage-H2QFeB7_.js +1 -0
- package/web/assets/SkillDetailsDialog-CLwwbvCq.css +1 -0
- package/web/assets/SkillDetailsDialog-DtVFRPBy.js +1 -0
- package/web/assets/SkillSourceManagementPage-ChDzfGdm.js +1 -0
- package/web/assets/SkillSourceManagementPage-D4z1Gg5N.js +1 -0
- package/web/assets/SkillSourceManagementPage-hmRcmngS.css +1 -0
- package/web/assets/{StandaloneFilePreviewPage-C0MQvJCM.css → StandaloneFilePreviewPage-ByAe63vc.css} +1 -1
- package/web/assets/StandaloneFilePreviewPage-MXCtMW26.js +1 -0
- package/web/assets/SystemConfigurationPage-ChSNj8MT.js +1 -0
- package/web/assets/SystemConfigurationPage-CmVdXe_T.css +1 -0
- package/web/assets/SystemConfigurationPage-DB37Nbbr.js +1 -0
- package/web/assets/SystemInformationPage-2Q4V-iJ4.js +1 -0
- package/web/assets/SystemInformationPage-BbiC_REW.css +1 -0
- package/web/assets/{TerminalTabView-CNTFZaQR.css → TerminalTabView-CEYeT8xN.css} +1 -1
- package/web/assets/{TerminalTabView-DZaEqCsA.js → TerminalTabView-De_0nedS.js} +13 -13
- package/web/assets/WorkbenchPage-Dlmd8LuY.js +22 -0
- package/web/assets/WorkbenchPage-DlnYvv_a.css +1 -0
- package/web/assets/WorkspaceManagementPage-B90eAGf0.js +1 -0
- package/web/assets/WorkspaceManagementPage-Dt54G8Zh.js +1 -0
- package/web/assets/abnfDiagram-VCTEODGH-DBu0yas5.js +1 -0
- package/web/assets/{arc-BZJz7fgx.js → arc-C8OREc8-.js} +1 -1
- package/web/assets/architectureDiagram-5GKGNRK7-DW-uxKX_.js +36 -0
- package/web/assets/{blockDiagram-OSKFZWR5-ChXGVAW4.js → blockDiagram-OSKFZWR5-BdpowaJF.js} +2 -2
- package/web/assets/{c4Diagram-7LVT6UL2-BydPkqtS.js → c4Diagram-7LVT6UL2-CIj5XN7-.js} +2 -2
- package/web/assets/{catalog-ownership-service-CcpPtWVP.js → catalog-ownership-service-Om-CO2AO.js} +1 -1
- package/web/assets/{catalog-page-service-bZJ62ES7.js → catalog-page-service-C7a95mKM.js} +1 -1
- package/web/assets/channel-h8T8Sf1f.js +1 -0
- package/web/assets/{chunk-2Q5K7J3B-mMXlOAcn.js → chunk-2Q5K7J3B-qTv1HCpA.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-BxJVt54W.js → chunk-5VM5RSS4-Z_81Yg9R.js} +1 -1
- package/web/assets/{chunk-F27PBJKO-BaApcs8Z.js → chunk-F27PBJKO-ByXYNCQX.js} +1 -1
- package/web/assets/{chunk-HLEWEB6X-Ccdh85hH.js → chunk-HLEWEB6X-Db0t6b8M.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-D3RBRFlO.js → chunk-JWPE2WC7-mtd3itJH.js} +1 -1
- package/web/assets/{chunk-POPQ4Y6H-D_kXllbI.js → chunk-POPQ4Y6H-DjNpwfJ_.js} +1 -1
- package/web/assets/{chunk-SVP7TREG-Dea2xbeN.js → chunk-SVP7TREG-BJDr9WEi.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-RniBwNi8.js → chunk-XXDRQBXY-B6pSX6oT.js} +1 -1
- package/web/assets/{chunk-ZLD2IHE6-DVgAuMNk.js → chunk-ZLD2IHE6-QUzKTKo1.js} +1 -1
- package/web/assets/classDiagram-CYGNFDIV-DmCMc5em.js +1 -0
- package/web/assets/classDiagram-v2-TLXNO2FR-DmCMc5em.js +1 -0
- package/web/assets/{conversation-history-K5KJjagU.js → conversation-history-CWG_l_s7.js} +3 -3
- package/web/assets/cose-bilkent-JH36ORCC-DsiB67gb.js +1 -0
- package/web/assets/{cynefin-OW5HDTMX-OjLqg3vs.js → cynefin-OW5HDTMX-ByAQTEbY.js} +1 -1
- package/web/assets/cynefinDiagram-5FMLGOSQ-CLvR8C8K.js +62 -0
- package/web/assets/{dagre-OS7QT2EB-MEtxYfcw.js → dagre-OS7QT2EB-BZY4XKaO.js} +2 -2
- package/web/assets/{diagram-S7CK7UJ4-5kVInc1x.js → diagram-S7CK7UJ4-DZhsMLHj.js} +6 -6
- package/web/assets/diagram-UQ7AKVKN-gKeE9VCW.js +41 -0
- package/web/assets/{diagram-VSXAHHWV-BW17pKv6.js → diagram-VSXAHHWV-DGcOJLzF.js} +2 -2
- package/web/assets/diagram-VX7I27RA-YNftovCx.js +24 -0
- package/web/assets/diagram-Z3DM3KII-CYs_A5LR.js +24 -0
- package/web/assets/ebnfDiagram-PWID7BFC-CfAgj9SA.js +1 -0
- package/web/assets/{enterprise-management-service-CG71nGIU.js → enterprise-management-service-DoxF9G8J.js} +1 -1
- package/web/assets/{erDiagram-2YWLMYGG-BQsrfpxt.js → erDiagram-2YWLMYGG-D68c5ay0.js} +2 -2
- package/web/assets/{error-presentation-0VNQQ2nr.js → error-presentation-UGQTkLY-.js} +1 -1
- package/web/assets/{flowDiagram-T62WH6J4-NCalayl1.js → flowDiagram-T62WH6J4-SueK2EIr.js} +5 -5
- package/web/assets/ganttDiagram-EL5Y4UJY-DqUpBKVe.js +292 -0
- package/web/assets/gitGraphDiagram-WWUBYQGX-25lcZzew.js +106 -0
- package/web/assets/{hosted-conversation-template-client-DQPHLrAO.js → hosted-conversation-template-client-j8BSmb6C.js} +1 -1
- package/web/assets/{index-BdFIQX-N.js → index-1GTIQQ8z.js} +1 -1
- package/web/assets/{index-DLDwJApb.js → index-3hGH8X4w.js} +1 -1
- package/web/assets/{index--ITWaRgn.js → index-5c57yBxX.js} +1 -1
- package/web/assets/{index-sjH_QD-g.js → index-6kwQzDJ5.js} +1 -1
- package/web/assets/{index-C2e-_NrV.js → index-B1tseZ0y.js} +1 -1
- package/web/assets/{index-dTpxe_Gs.js → index-BCIlc_yx.js} +1 -1
- package/web/assets/index-BFbW15q7.js +24 -0
- package/web/assets/{index-FArB2ej3.js → index-Be5d1p6m.js} +1 -1
- package/web/assets/{index-CIXi4jod.js → index-BeFqmV-S.js} +1 -1
- package/web/assets/{index-5lmCpsNB.js → index-C3LQg-du.js} +5 -5
- package/web/assets/{index-gShXSPW-.js → index-C5fDP7hM.js} +1 -1
- package/web/assets/{index-C_X8ddLl.js → index-C64qxIt_.js} +1 -1
- package/web/assets/index-CGbMb0Lv.css +1 -0
- package/web/assets/{index-DBza2J2e.js → index-Cq0gQdNu.js} +1 -1
- package/web/assets/{index-Bu40Nnn5.js → index-D0BAg9Vm.js} +1 -1
- package/web/assets/{index-COVqVXiR.js → index-D0W2JUwi.js} +1 -1
- package/web/assets/{index-XtXXdicn.js → index-D6z2G5Kn.js} +1 -1
- package/web/assets/{index-pX4rMOtd.js → index-DKQH5cxU.js} +1 -1
- package/web/assets/{index-BWRbd9G2.js → index-DRH1HX2S.js} +1 -1
- package/web/assets/{index-CmH0QB5k.js → index-DXjLMl3l.js} +1 -1
- package/web/assets/{index-BGXV3IRD.js → index-DZiLssjQ.js} +1 -1
- package/web/assets/{index-CyjqGYRL.js → index-DnnQL2J0.js} +1 -1
- package/web/assets/{index-12Q1ABnb.js → index-DwErmPk6.js} +1 -1
- package/web/assets/{index-BzcFHBL_.js → index-L8P4MfkD.js} +1 -1
- package/web/assets/{index-4wFnzUIX.js → index-WlaKUfsp.js} +1 -1
- package/web/assets/{index-Bi-mbkoY.js → index-ZU_3sogz.js} +1 -1
- package/web/assets/{index-BeMUZ-FA.js → index-cXt12mWt.js} +1 -1
- package/web/assets/{index-DIub0j2n.js → index-ntE_ZhRt.js} +1 -1
- package/web/assets/infoDiagram-FKFFQAWI-BBwjh-6f.js +2 -0
- package/web/assets/{ishikawaDiagram-5VMMS53U-BfOtObMu.js → ishikawaDiagram-5VMMS53U-CQS9pAgH.js} +6 -6
- package/web/assets/{journeyDiagram-EYS64GPL-BWYgykkp.js → journeyDiagram-EYS64GPL-Wf3zND8h.js} +4 -4
- package/web/assets/{kanban-definition-UXKFOSKX-CJCPnFQL.js → kanban-definition-UXKFOSKX-B0s2KfqD.js} +2 -2
- package/web/assets/layout-C8Uv0gkT.js +1 -0
- package/web/assets/{linear-Z2llEn8N.js → linear-cvnW3wz3.js} +1 -1
- package/web/assets/management-url-service-DZ88REB_.js +1 -0
- package/web/assets/mcp-center-service-BxLSeP6x.js +1 -0
- package/web/assets/mcp-center-service-DaswFG-J.css +1 -0
- package/web/assets/mermaid.core-tIk1Nhel.js +308 -0
- package/web/assets/{mindmap-definition-THT77NOG-Dzh4GNkB.js → mindmap-definition-THT77NOG-umweN-cI.js} +2 -2
- package/web/assets/mobile-dialog-return-service-C1n1IVHV.js +1 -0
- package/web/assets/{oauth-callback-BVVtUcaY.js → oauth-callback-BcjCk3xN.js} +1 -1
- package/web/assets/pegDiagram-XKGWAZYB-DKJc7Ez9.js +1 -0
- package/web/assets/{pieDiagram-E7YTZNPT-DqdcXBbF.js → pieDiagram-E7YTZNPT-BsxpOU9E.js} +2 -2
- package/web/assets/{quadrantDiagram-AXDQQJYC-BdCAFeZM.js → quadrantDiagram-AXDQQJYC-Dy0JSXEc.js} +2 -2
- package/web/assets/railroadDiagram-O6MQD6OU-DuWjaEVr.js +1 -0
- package/web/assets/{requirementDiagram-IS5BZ75X-BtOH1ryf.js → requirementDiagram-IS5BZ75X-CcDa2f9z.js} +9 -9
- package/web/assets/{runner-presentation-hpB_DTwD.js → runner-presentation-hTBi5beq.js} +1 -1
- package/web/assets/sankeyDiagram-P5KCCOFB-zXSrhCHx.js +40 -0
- package/web/assets/{sequenceDiagram-WJ2MYXX4-BgvxFvgM.js → sequenceDiagram-WJ2MYXX4-D_zXYQwI.js} +2 -2
- package/web/assets/{session-share-client-service-BHy9Xnov.js → session-share-client-service-iqg5n2jT.js} +1 -1
- package/web/assets/sizeCapture-INFHLROL-DQHaspbL.js +1 -0
- package/web/assets/stateDiagram-XQSTLZYL-CZuAC9yx.js +1 -0
- package/web/assets/stateDiagram-v2-IH3M54BS-BVCGzcEg.js +1 -0
- package/web/assets/swimlanes-V6O3JKXN-DPLARPKF.js +1 -0
- package/web/assets/swimlanesDiagram-JKAHXJPX-0AG7MKMH.js +8 -0
- package/web/assets/{time-presentation-unYkc6Yq.js → time-presentation-D0SLW-7Y.js} +1 -1
- package/web/assets/{timeline-definition-24CTP7MA-BYMNcXwH.js → timeline-definition-24CTP7MA-DOCrHy_B.js} +2 -2
- package/web/assets/{vennDiagram-4TSXK5OY-Do00UHWr.js → vennDiagram-4TSXK5OY-bxqgw5V-.js} +2 -2
- package/web/assets/{wardleyDiagram-VM6X3IG4-BXyiK-dt.js → wardleyDiagram-VM6X3IG4-DnYBE0Fi.js} +3 -3
- package/web/assets/{workbench-live-service-DwzHqrE7.js → workbench-live-service-CQiYAsuU.js} +1 -1
- package/web/assets/workbench-presentation-Bon-njr-.css +1 -0
- package/web/assets/workbench-presentation-DRF1_KCI.js +1 -0
- package/web/assets/{xychartDiagram-S5SC5T6Z-CvVvnTgf.js → xychartDiagram-S5SC5T6Z-dEwC3KCd.js} +2 -2
- package/web/docs/404.html +2 -2
- package/web/docs/administration/account.html +3 -3
- package/web/docs/administration/audit.html +3 -3
- package/web/docs/administration/conversation-templates.html +3 -3
- package/web/docs/administration/email-notifications.html +3 -3
- package/web/docs/administration/license.html +3 -3
- package/web/docs/administration/nodes-workspaces.html +3 -3
- package/web/docs/administration/oauth.html +3 -3
- package/web/docs/administration/secrets.html +3 -3
- package/web/docs/administration/template-workspace-maintenance.html +3 -3
- package/web/docs/administration/users-organizations.html +3 -3
- package/web/docs/assets/{app.CSsyPSgB.js → app.DtD1evI0.js} +1 -1
- package/web/docs/assets/chunks/@localSearchIndexen-US.DHrLf7lS.js +1 -0
- package/web/docs/assets/chunks/@localSearchIndexroot.C6ZO4-Cz.js +1 -0
- package/web/docs/assets/chunks/{VPLocalSearchBox.w7zJkm8w.js → VPLocalSearchBox.BfQVfx68.js} +1 -1
- package/web/docs/assets/chunks/{theme.BfxRX_Vl.js → theme.JpsRm0j7.js} +2 -2
- package/web/docs/assets/{en-US_getting-started_overview.md.CB-43rGR.js → en-US_getting-started_overview.md.BB0mpD5A.js} +1 -1
- package/web/docs/assets/{en-US_getting-started_overview.md.CB-43rGR.lean.js → en-US_getting-started_overview.md.BB0mpD5A.lean.js} +1 -1
- package/web/docs/assets/en-US_runners_runner-troubleshooting.md.BVp1H8Ez.js +1 -0
- package/web/docs/assets/{en-US_runners_runner-troubleshooting.md.BvJ6yGrw.lean.js → en-US_runners_runner-troubleshooting.md.BVp1H8Ez.lean.js} +1 -1
- package/web/docs/assets/{en-US_workbench_navigation.md.CQIawd-E.js → en-US_workbench_navigation.md.bwp_93yS.js} +1 -1
- package/web/docs/assets/{en-US_workbench_navigation.md.CQIawd-E.lean.js → en-US_workbench_navigation.md.bwp_93yS.lean.js} +1 -1
- package/web/docs/assets/{getting-started_overview.md.Cv-HSfAh.js → getting-started_overview.md.Crab_e9M.js} +1 -1
- package/web/docs/assets/{getting-started_overview.md.Cv-HSfAh.lean.js → getting-started_overview.md.Crab_e9M.lean.js} +1 -1
- package/web/docs/assets/runners_runner-troubleshooting.md.x-gG5ZND.js +1 -0
- package/web/docs/assets/{runners_runner-troubleshooting.md.CIWCfGkf.lean.js → runners_runner-troubleshooting.md.x-gG5ZND.lean.js} +1 -1
- package/web/docs/assets/{workbench_navigation.md.vS-uMPsO.js → workbench_navigation.md.CXd25kxS.js} +1 -1
- package/web/docs/assets/{workbench_navigation.md.vS-uMPsO.lean.js → workbench_navigation.md.CXd25kxS.lean.js} +1 -1
- package/web/docs/concepts/architecture.html +3 -3
- package/web/docs/concepts/data-and-security.html +3 -3
- package/web/docs/concepts/files-git-terminal.html +3 -3
- package/web/docs/concepts/node-and-workspace.html +3 -3
- package/web/docs/concepts/permissions-and-sharing.html +3 -3
- package/web/docs/concepts/runner-control.html +3 -3
- package/web/docs/concepts/secrets.html +3 -3
- package/web/docs/concepts/session-run-turn.html +3 -3
- package/web/docs/deployment/backup-restore.html +3 -3
- package/web/docs/deployment/network.html +3 -3
- package/web/docs/deployment/node-installation.html +3 -3
- package/web/docs/deployment/node-linux.html +3 -3
- package/web/docs/deployment/node-macos.html +3 -3
- package/web/docs/deployment/node-windows.html +3 -3
- package/web/docs/deployment/production.html +3 -3
- package/web/docs/deployment/security-checklist.html +3 -3
- package/web/docs/deployment/upgrade.html +3 -3
- package/web/docs/en-US/administration/account.html +3 -3
- package/web/docs/en-US/administration/audit.html +3 -3
- package/web/docs/en-US/administration/conversation-templates.html +3 -3
- package/web/docs/en-US/administration/email-notifications.html +3 -3
- package/web/docs/en-US/administration/license.html +3 -3
- package/web/docs/en-US/administration/nodes-workspaces.html +3 -3
- package/web/docs/en-US/administration/oauth.html +3 -3
- package/web/docs/en-US/administration/secrets.html +3 -3
- package/web/docs/en-US/administration/template-workspace-maintenance.html +3 -3
- package/web/docs/en-US/administration/users-organizations.html +3 -3
- package/web/docs/en-US/concepts/architecture.html +3 -3
- package/web/docs/en-US/concepts/data-and-security.html +3 -3
- package/web/docs/en-US/concepts/files-git-terminal.html +3 -3
- package/web/docs/en-US/concepts/node-and-workspace.html +3 -3
- package/web/docs/en-US/concepts/permissions-and-sharing.html +3 -3
- package/web/docs/en-US/concepts/runner-control.html +3 -3
- package/web/docs/en-US/concepts/secrets.html +3 -3
- package/web/docs/en-US/concepts/session-run-turn.html +3 -3
- package/web/docs/en-US/deployment/backup-restore.html +3 -3
- package/web/docs/en-US/deployment/network.html +3 -3
- package/web/docs/en-US/deployment/node-installation.html +3 -3
- package/web/docs/en-US/deployment/node-linux.html +3 -3
- package/web/docs/en-US/deployment/node-macos.html +3 -3
- package/web/docs/en-US/deployment/node-windows.html +3 -3
- package/web/docs/en-US/deployment/production.html +3 -3
- package/web/docs/en-US/deployment/security-checklist.html +3 -3
- package/web/docs/en-US/deployment/upgrade.html +3 -3
- package/web/docs/en-US/getting-started/connect-node.html +3 -3
- package/web/docs/en-US/getting-started/first-agent-session.html +3 -3
- package/web/docs/en-US/getting-started/first-login.html +3 -3
- package/web/docs/en-US/getting-started/next-steps.html +3 -3
- package/web/docs/en-US/getting-started/npm-quick-start.html +3 -3
- package/web/docs/en-US/getting-started/overview.html +5 -5
- package/web/docs/en-US/getting-started/prerequisites.html +3 -3
- package/web/docs/en-US/getting-started/register-workspace.html +3 -3
- package/web/docs/en-US/getting-started/server-installation.html +3 -3
- package/web/docs/en-US/operations/marctl.html +3 -3
- package/web/docs/en-US/reference/configuration.html +3 -3
- package/web/docs/en-US/reference/keyboard-shortcuts.html +3 -3
- package/web/docs/en-US/reference/limits.html +3 -3
- package/web/docs/en-US/reference/ports-paths-data.html +3 -3
- package/web/docs/en-US/reference/status-and-errors.html +3 -3
- package/web/docs/en-US/runners/claude-code.html +3 -3
- package/web/docs/en-US/runners/codex.html +3 -3
- package/web/docs/en-US/runners/mar-agent.html +3 -3
- package/web/docs/en-US/runners/opencode.html +3 -3
- package/web/docs/en-US/runners/overview.html +3 -3
- package/web/docs/en-US/runners/runner-troubleshooting.html +5 -5
- package/web/docs/en-US/troubleshooting/node-offline.html +3 -3
- package/web/docs/en-US/troubleshooting/quick-diagnosis.html +3 -3
- package/web/docs/en-US/troubleshooting/session-run.html +3 -3
- package/web/docs/en-US/troubleshooting/terminal.html +3 -3
- package/web/docs/en-US/troubleshooting/workspace-files.html +3 -3
- package/web/docs/en-US/workbench/composer.html +3 -3
- package/web/docs/en-US/workbench/context-and-plan.html +3 -3
- package/web/docs/en-US/workbench/conversation.html +3 -3
- package/web/docs/en-US/workbench/file-reference-and-attachment.html +3 -3
- package/web/docs/en-US/workbench/files.html +3 -3
- package/web/docs/en-US/workbench/git-changes.html +3 -3
- package/web/docs/en-US/workbench/git-history.html +3 -3
- package/web/docs/en-US/workbench/hosted-conversations.html +3 -3
- package/web/docs/en-US/workbench/mobile.html +3 -3
- package/web/docs/en-US/workbench/navigation.html +5 -5
- package/web/docs/en-US/workbench/remote-desktop.html +3 -3
- package/web/docs/en-US/workbench/sessions.html +3 -3
- package/web/docs/en-US/workbench/skills.html +3 -3
- package/web/docs/en-US/workbench/terminal.html +3 -3
- package/web/docs/getting-started/connect-node.html +3 -3
- package/web/docs/getting-started/first-agent-session.html +3 -3
- package/web/docs/getting-started/first-login.html +3 -3
- package/web/docs/getting-started/next-steps.html +3 -3
- package/web/docs/getting-started/npm-quick-start.html +3 -3
- package/web/docs/getting-started/overview.html +5 -5
- package/web/docs/getting-started/prerequisites.html +3 -3
- package/web/docs/getting-started/register-workspace.html +3 -3
- package/web/docs/getting-started/server-installation.html +3 -3
- package/web/docs/hashmap.json +1 -1
- package/web/docs/operations/marctl.html +3 -3
- package/web/docs/reference/configuration.html +3 -3
- package/web/docs/reference/keyboard-shortcuts.html +3 -3
- package/web/docs/reference/limits.html +3 -3
- package/web/docs/reference/ports-paths-data.html +3 -3
- package/web/docs/reference/status-and-errors.html +3 -3
- package/web/docs/runners/claude-code.html +3 -3
- package/web/docs/runners/codex.html +3 -3
- package/web/docs/runners/mar-agent.html +3 -3
- package/web/docs/runners/opencode.html +3 -3
- package/web/docs/runners/overview.html +3 -3
- package/web/docs/runners/runner-troubleshooting.html +5 -5
- package/web/docs/troubleshooting/node-offline.html +3 -3
- package/web/docs/troubleshooting/quick-diagnosis.html +3 -3
- package/web/docs/troubleshooting/session-run.html +3 -3
- package/web/docs/troubleshooting/terminal.html +3 -3
- package/web/docs/troubleshooting/workspace-files.html +3 -3
- package/web/docs/workbench/composer.html +3 -3
- package/web/docs/workbench/context-and-plan.html +3 -3
- package/web/docs/workbench/conversation.html +3 -3
- package/web/docs/workbench/file-reference-and-attachment.html +3 -3
- package/web/docs/workbench/files.html +3 -3
- package/web/docs/workbench/git-changes.html +3 -3
- package/web/docs/workbench/git-history.html +3 -3
- package/web/docs/workbench/hosted-conversations.html +3 -3
- package/web/docs/workbench/mobile.html +3 -3
- package/web/docs/workbench/navigation.html +5 -5
- package/web/docs/workbench/remote-desktop.html +3 -3
- package/web/docs/workbench/sessions.html +3 -3
- package/web/docs/workbench/skills.html +3 -3
- package/web/docs/workbench/terminal.html +3 -3
- package/web/index.html +3 -3
- package/web/service-worker.js +1 -1
- package/web/web-version.json +1 -1
- package/web/assets/AuditManagementPage-CCT1TwDi.css +0 -1
- package/web/assets/AuditManagementPage-CS2otqIm.js +0 -1
- package/web/assets/AuthEntryPanel-L6a1edei.js +0 -45
- package/web/assets/AuthEntryPanel-tmwbR_cP.css +0 -1
- package/web/assets/ConversationTemplateManagementPage-BNFnQcXK.css +0 -1
- package/web/assets/ConversationTemplateManagementPage-CRZLk9fm.js +0 -1
- package/web/assets/ConversationTemplateManagementPage-D9ensD8p.css +0 -1
- package/web/assets/ConversationTemplateManagementPage-jh1pR7UJ.js +0 -1
- package/web/assets/EnterpriseUserManagementPage-BQGB9p1y.js +0 -1
- package/web/assets/EnterpriseUserManagementPage-DPqV5zOg.css +0 -1
- package/web/assets/EnvironmentSecretManager-Dw4d5loZ.css +0 -1
- package/web/assets/EnvironmentSecretManager-tHrtBCMq.js +0 -1
- package/web/assets/FilePreviewLoading-CCHsarTJ.js +0 -23
- package/web/assets/FilePreviewLoading-Cxn0bDjD.css +0 -1
- package/web/assets/HtmlPreviewFrame-3T3NlO-b.js +0 -6
- package/web/assets/HtmlPreviewFrame-BpZTgaYt.css +0 -1
- package/web/assets/LicenseManagementPage-BJe05unY.js +0 -1
- package/web/assets/LicenseManagementPage-BRQZUU16.css +0 -1
- package/web/assets/ManagementPagination-CSNsQQGq.js +0 -1
- package/web/assets/ManagementPagination-DazknMFC.css +0 -1
- package/web/assets/MarAgentModelManagementPage-C4uaAH84.js +0 -1
- package/web/assets/MarAgentModelManagementPage-CmOYRQDb.js +0 -1
- package/web/assets/MarAgentModelManagementPage-DuXtnpsD.css +0 -1
- package/web/assets/MarAgentModelManagementPage-O5io0Qw1.css +0 -1
- package/web/assets/MarIcon-Co9d87Zk.js +0 -1
- package/web/assets/MarIcon-aPIFZI-D.css +0 -1
- package/web/assets/MarkdownFilePreview-QY1W9Sht.js +0 -2
- package/web/assets/McpDetailsDialog-BIXNILiX.js +0 -1
- package/web/assets/McpDetailsDialog-BQywxEJx.css +0 -1
- package/web/assets/McpSourceManagementPage-B0dXY3Jr.js +0 -1
- package/web/assets/McpSourceManagementPage-BH743WCr.css +0 -1
- package/web/assets/McpSourceManagementPage-V2LnmWhN.js +0 -1
- package/web/assets/NodeDetailsDialogs-BlNTYQYy.js +0 -6
- package/web/assets/NodeDetailsDialogs-DN4NQ6QY.css +0 -1
- package/web/assets/NodeManagementPage-CTwvmQO2.js +0 -1
- package/web/assets/NodeManagementPage-_6BEH6ad.js +0 -1
- package/web/assets/OAuthManagementPage-DTAHiT-o.js +0 -2
- package/web/assets/OAuthManagementPage-Dp2FX_G6.css +0 -1
- package/web/assets/OrganizationManagementPage-BYl2Zu-Z.css +0 -1
- package/web/assets/OrganizationManagementPage-Bycbm1Ck.js +0 -1
- package/web/assets/RemoteDesktopPage-BtylaQwZ.js +0 -5
- package/web/assets/RemoteDesktopPage-CBJ5tTYz.css +0 -1
- package/web/assets/ResourceManagementPanel-CjGfQ5Jl.css +0 -1
- package/web/assets/ResourceManagementPanel-DW78XY-C.js +0 -2
- package/web/assets/ResourceManagementPanel-Dk-l51CQ.css +0 -1
- package/web/assets/ResourceManagementPanel.vue_vue_type_script_setup_true_lang-DH-cxwTV.js +0 -1
- package/web/assets/SecretManagementPage-BX9Se1LC.js +0 -1
- package/web/assets/SecretManagementPage-Xw89IDvN.js +0 -1
- package/web/assets/SessionSharePage-C6bBkWn3.js +0 -2
- package/web/assets/SessionSharePage-TAsoyhjA.css +0 -1
- package/web/assets/SettingsContent-B98WZKeX.css +0 -1
- package/web/assets/SettingsContent-BV9zT9nN.css +0 -1
- package/web/assets/SettingsContent-Djq-KXqQ.js +0 -1
- package/web/assets/SettingsContent-DtzeYEEH.js +0 -1
- package/web/assets/SkillCenterPage-B6woSHOS.css +0 -1
- package/web/assets/SkillCenterPage-Bys_Quoc.js +0 -1
- package/web/assets/SkillCenterPage-rZX4ZlMr.js +0 -1
- package/web/assets/SkillDetailsDialog-BqdDZiga.js +0 -1
- package/web/assets/SkillDetailsDialog-CWt4SchU.css +0 -1
- package/web/assets/SkillSourceManagementPage-BRfmUgj1.css +0 -1
- package/web/assets/SkillSourceManagementPage-C85ouqr8.js +0 -1
- package/web/assets/SkillSourceManagementPage-CBxAUgfv.js +0 -1
- package/web/assets/StandaloneFilePreviewPage-BYDL16E9.js +0 -1
- package/web/assets/SystemConfigurationPage-BcX24TM6.js +0 -1
- package/web/assets/SystemConfigurationPage-HVB1OG86.css +0 -1
- package/web/assets/SystemConfigurationPage-Z5Am851M.js +0 -1
- package/web/assets/SystemInformationPage-C9qhYKmf.css +0 -1
- package/web/assets/SystemInformationPage-CfhLyEHd.js +0 -1
- package/web/assets/WorkbenchPage-Do7CXbzf.js +0 -22
- package/web/assets/WorkbenchPage-la7gadME.css +0 -1
- package/web/assets/WorkspaceManagementPage-DbGc88Td.js +0 -1
- package/web/assets/WorkspaceManagementPage-DzCDMPL7.js +0 -1
- package/web/assets/_baseFindIndex-D7XfJLKM.js +0 -1
- package/web/assets/_baseIteratee-CpPVpKOG.js +0 -1
- package/web/assets/abnfDiagram-VCTEODGH-Co8FN1zm.js +0 -1
- package/web/assets/advancedFormat-COanKdEE.js +0 -1
- package/web/assets/architectureDiagram-5GKGNRK7-BcyAgFdD.js +0 -36
- package/web/assets/channel-7JutKhz2.js +0 -1
- package/web/assets/classDiagram-CYGNFDIV-mqoo2fwb.js +0 -1
- package/web/assets/classDiagram-v2-TLXNO2FR-mqoo2fwb.js +0 -1
- package/web/assets/cose-bilkent-JH36ORCC-BfcYhq-S.js +0 -1
- package/web/assets/cynefinDiagram-5FMLGOSQ-BEnz4b4w.js +0 -62
- package/web/assets/diagram-UQ7AKVKN-COeeJ4gg.js +0 -41
- package/web/assets/diagram-VX7I27RA-D6eKygok.js +0 -24
- package/web/assets/diagram-Z3DM3KII-qeIDpBOf.js +0 -24
- package/web/assets/ebnfDiagram-PWID7BFC-8uDxgpST.js +0 -1
- package/web/assets/el-alert-B6UgayC7.css +0 -1
- package/web/assets/el-alert-DmVsBvUv.js +0 -1
- package/web/assets/el-cascader-BOobdI59.js +0 -12
- package/web/assets/el-cascader-Y4U47xEI.css +0 -1
- package/web/assets/el-checkbox-CGRzOjDl.js +0 -1
- package/web/assets/el-checkbox-CzNtyWdF.css +0 -1
- package/web/assets/el-checkbox-group-D_6SYB2i.css +0 -1
- package/web/assets/el-date-picker-BsrAVvYx.css +0 -1
- package/web/assets/el-date-picker-CRwKPW7Q.js +0 -1
- package/web/assets/el-descriptions-BFAMFbyx.js +0 -1
- package/web/assets/el-descriptions-BpDzfuC8.css +0 -1
- package/web/assets/el-form-item-CoJM2Hlw.js +0 -12
- package/web/assets/el-form-item-D_relxjU.css +0 -1
- package/web/assets/el-input-8ehKRrZb.css +0 -1
- package/web/assets/el-input-B2Nof_cr.js +0 -3
- package/web/assets/el-input-number-C7R4Dpyt.js +0 -1
- package/web/assets/el-input-number-DExoAqKP.css +0 -1
- package/web/assets/el-radio-B4O75OaI.css +0 -1
- package/web/assets/el-radio-npWoUqDX.js +0 -1
- package/web/assets/el-scrollbar-GF-yQkxY.css +0 -1
- package/web/assets/el-scrollbar-K7eVpxQ7.js +0 -1
- package/web/assets/el-select-D5zQ8kOe.css +0 -1
- package/web/assets/el-select-DBNt1msu.js +0 -1
- package/web/assets/el-switch-DpR9-s4E.css +0 -1
- package/web/assets/el-switch-yJdlzAOS.js +0 -1
- package/web/assets/el-tab-pane-D0rG2y_2.js +0 -1
- package/web/assets/el-tab-pane-LzsQQ_QK.css +0 -1
- package/web/assets/el-table-column-B_iZELUe.js +0 -1
- package/web/assets/el-table-column-Dp73S2HR.css +0 -1
- package/web/assets/el-tag-1VV9QMa7.css +0 -1
- package/web/assets/ganttDiagram-EL5Y4UJY-CycZuNi5.js +0 -292
- package/web/assets/gitGraphDiagram-WWUBYQGX-D5DwspHx.js +0 -106
- package/web/assets/index-1wDLFmml.js +0 -1
- package/web/assets/index-BEELfYGZ.js +0 -29
- package/web/assets/index-Cb_FF3Fn.css +0 -1
- package/web/assets/index-DOLrLWUV.js +0 -1
- package/web/assets/infoDiagram-FKFFQAWI-BBKjh0vF.js +0 -2
- package/web/assets/isArrayLikeObject-DdIC_9HC.js +0 -1
- package/web/assets/last-DXTTfs9a.js +0 -1
- package/web/assets/layout-BBJqL-32.js +0 -1
- package/web/assets/management-url-service-CWmMGb2s.js +0 -1
- package/web/assets/mcp-center-service-DiM2Ti2y.js +0 -1
- package/web/assets/merge-CFyFeS5y.js +0 -1
- package/web/assets/mermaid.core-NgKGXesa.js +0 -308
- package/web/assets/message-box-service-Bt8ZxdJl.js +0 -1
- package/web/assets/message-box-service-amIz9eLF.css +0 -1
- package/web/assets/mobile-dialog-return-service-TSZfE1b8.css +0 -1
- package/web/assets/mobile-dialog-return-service-lRpqLQ4m.js +0 -1
- package/web/assets/pegDiagram-XKGWAZYB-B8oSPYxB.js +0 -1
- package/web/assets/railroadDiagram-O6MQD6OU-CEpcMFjP.js +0 -1
- package/web/assets/sankeyDiagram-P5KCCOFB-CLa4XJUV.js +0 -40
- package/web/assets/sizeCapture-INFHLROL-BivNFLeY.js +0 -1
- package/web/assets/stateDiagram-XQSTLZYL-r56uSJd2.js +0 -1
- package/web/assets/stateDiagram-v2-IH3M54BS-B-acW4aI.js +0 -1
- package/web/assets/swimlanes-V6O3JKXN-CK9wbK2C.js +0 -1
- package/web/assets/swimlanesDiagram-JKAHXJPX-D313EwlH.js +0 -8
- package/web/assets/union-s1ErPvjZ.js +0 -1
- package/web/assets/use-form-common-props-mcyC3w-u.js +0 -1
- package/web/assets/use-wheel-BmcW1XgC.js +0 -1
- package/web/assets/vnode-CG_nLPou.js +0 -1
- package/web/assets/workbench-presentation-CPQZ-olG.css +0 -1
- package/web/assets/workbench-presentation-DyHrQcrJ.js +0 -1
- package/web/docs/assets/chunks/@localSearchIndexen-US.B7_wteDx.js +0 -1
- package/web/docs/assets/chunks/@localSearchIndexroot.BIoX7nDM.js +0 -1
- package/web/docs/assets/en-US_runners_runner-troubleshooting.md.BvJ6yGrw.js +0 -1
- package/web/docs/assets/runners_runner-troubleshooting.md.CIWCfGkf.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as Ie,a as Ue}from"./el-form-item-CoJM2Hlw.js";import{C as ut,a as $e,E as Me}from"./el-input-B2Nof_cr.js";import{E as Qe,a as je}from"./el-select-DBNt1msu.js";import{E as Ge,u as Ee,m as Ve}from"./mobile-dialog-return-service-lRpqLQ4m.js";import{E as wt}from"./workbench-presentation-DyHrQcrJ.js";import{ax as Xe,am as St,m as fe,ap as Tt,o as i,n as h,p as Ke,a6 as ke,k as z,au as Ct,dM as Ae,L as e,as as Fe,dN as $t,X as t,Y as o,dO as xt,Z as m,_ as ye,a1 as De,H as W,V as pe,q as l,M as f,J as N,K as r,a3 as le,N as B,f as I,dP as Pt,a0 as K,dQ as dt,l as Je,dR as Et,Q as Vt,dS as It,T as Ne,ac as ze,$ as Pe,dT as Be,ab as Ut,ae as Ye,t as a,W as Nt,bs as pt,dg as qt,U as mt,dU as We,dV as Rt,dW as et,dX as tt,dY as Mt,w as Re,d6 as Gt,a8 as At,dZ as Ot,aP as Bt,d_ as Ft,af as Dt,cr as Lt,d$ as ot,e0 as Ht,e1 as Wt}from"./index-BEELfYGZ.js";import"./el-scrollbar-K7eVpxQ7.js";/* empty css */import{E as Ce}from"./message-box-service-Bt8ZxdJl.js";import{E as Kt,e as Qt,g as jt,h as q,j as Jt,w as de,k as he,l as at,m as zt,n as st,o as Yt,q as nt}from"./FilePreviewLoading-CCHsarTJ.js";import{O as Zt,P as Xt,Q as eo}from"./AuthEntryPanel-L6a1edei.js";import{p as to}from"./HtmlPreviewFrame-3T3NlO-b.js";import{E as oo}from"./el-alert-DmVsBvUv.js";import{E as Le}from"./index-DOLrLWUV.js";import{M as _e}from"./MarIcon-Co9d87Zk.js";import{e as we}from"./error-presentation-0VNQQ2nr.js";import{c as ao,a as so,o as no,p as lo,M as io}from"./WorkbenchPage-Do7CXbzf.js";import"./conversation-history-K5KJjagU.js";import{E as ro}from"./el-checkbox-CGRzOjDl.js";import{E as co,a as uo}from"./el-descriptions-BFAMFbyx.js";import{a as vt,E as ht}from"./el-table-column-B_iZELUe.js";import{P as po}from"./NodeDetailsDialogs-BlNTYQYy.js";import{a as mo,b as vo}from"./el-radio-npWoUqDX.js";import{E as ho}from"./el-date-picker-CRwKPW7Q.js";import{c as go,w as fo,M as bo}from"./ManagementPagination-CSNsQQGq.js";import{f as yo}from"./time-presentation-unYkc6Yq.js";import"./use-form-common-props-mcyC3w-u.js";import"./vnode-CG_nLPou.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-CpPVpKOG.js";import"./BusyIndicator-D3z5mSYz.js";import"./uuid-BmNSYLtZ.js";/* empty css *//* empty css */import"./runner-presentation-hpB_DTwD.js";import"./el-switch-yJdlzAOS.js";import"./file-presentation-Cm7tx53N.js";import"./workbench-live-service-DwzHqrE7.js";import"./workspace-direct-transfer-service-H0f55kLn.js";import"./hosted-conversation-template-client-DQPHLrAO.js";import"./oauth-callback-BVVtUcaY.js";import"./code-navigation-target-BlnRe0-a.js";import"./mcp-center-service-DiM2Ti2y.js";import"./catalog-page-service-bZJ62ES7.js";import"./union-s1ErPvjZ.js";import"./isArrayLikeObject-DdIC_9HC.js";import"./advancedFormat-COanKdEE.js";import"./el-input-number-C7R4Dpyt.js";import"./index-1wDLFmml.js";import"./el-cascader-BOobdI59.js";import"./use-wheel-BmcW1XgC.js";import"./enterprise-management-service-CG71nGIU.js";import"./last-DXTTfs9a.js";import"./merge-CFyFeS5y.js";import"./EnvironmentSecretManager-tHrtBCMq.js";import"./management-url-service-CWmMGb2s.js";const ko=St({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),_o={"update:checked":u=>Xe(u),[ut]:u=>Xe(u)};var wo=fe({name:"ElCheckTag",__name:"check-tag",props:ko,emits:_o,setup(u,{emit:s}){const n=u,k=s,_=Tt("check-tag"),C=z(()=>[_.b(),_.is("checked",n.checked),_.is("disabled",n.disabled),_.m(n.type||"primary")]),d=()=>{if(n.disabled)return;const x=!n.checked;k(ut,x),k("update:checked",x)};return(x,w)=>(i(),h("span",{class:ke(C.value),onClick:d},[Ke(x.$slots,"default")],2))}}),So=wo;const To=Ct(So),Co=["data-theme","aria-label"],$o={class:"preview-toolbar"},xo={class:"preview-workbench"},Po={class:"preview-sidebar"},Eo={class:"caption"},Vo={type:"button",class:"file selected","aria-current":"true"},Io={type:"button",class:"file"},Uo={type:"button",class:"file"},No={class:"preview-content"},qo={class:"preview-tabs"},Ro={class:"tab active"},Mo={class:"tab"},Go={class:"conversation"},Ao={class:"user-message"},Oo={class:"assistant-message"},Bo={class:"process"},Fo={class:"preview-controls"},Do={class:"statuses"},Lo={class:"status success"},Ho={class:"status warning"},Wo={class:"status danger"},Ko={class:"status accent"},Qo={class:"preview-label"},jo=["placeholder","aria-label"],Jo={class:"control-actions"},zo={type:"button",class:"preview-button primary"},Yo={type:"button",class:"preview-button secondary"},Zo={type:"button",class:"preview-button",disabled:""},Xo={class:"caption"},ea=fe({__name:"ThemePreview",props:{name:{},colors:{},expanded:{type:Boolean}},setup(u){const{t:s}=Ae();return(n,k)=>(i(),h("div",{class:ke(["mar-theme-preview",{expanded:u.expanded}]),"data-theme":e($t)(u.colors),style:Fe(u.colors),role:"group","aria-label":e(s)("customThemes.preview")},[t("div",$o,[k[0]||(k[0]=t("span",{class:"status-dot"},null,-1)),t("strong",null,o(u.name),1)]),t("div",xo,[t("div",Po,[t("span",Eo,o(e(s)("customThemes.previewFiles")),1),t("button",Vo,o(e(s)("customThemes.previewItemOne")),1),t("button",Io,o(e(s)("customThemes.previewItemTwo")),1),t("button",Uo,o(e(s)("customThemes.previewItemThree")),1)]),t("div",No,[t("div",qo,[t("span",Ro,o(e(s)("customThemes.previewChat")),1),t("span",Mo,o(e(s)("customThemes.previewChanges")),1)]),t("div",Go,[t("div",Ao,o(e(s)("customThemes.previewRequest")),1),t("div",Oo,[t("strong",null,o(e(s)("customThemes.previewHeading")),1),t("p",null,o(e(s)("customThemes.previewText")),1),k[1]||(k[1]=xt('<pre class="code" data-v-12c3d59e><span class="syntax-keyword" data-v-12c3d59e>const</span> value = <span class="syntax-value" data-v-12c3d59e>42</span>;</pre><div class="diff" data-v-12c3d59e><code class="diff-remove" data-v-12c3d59e>- value: 1;</code><code class="diff-add" data-v-12c3d59e>+ value: 2;</code></div>',2))]),t("div",Bo,[k[2]||(k[2]=t("span",{class:"status-dot"},null,-1)),m(o(e(s)("customThemes.previewProcess")),1)])])])]),t("div",Fo,[t("div",Do,[t("span",Lo,o(e(s)("customThemes.previewSuccess")),1),t("span",Ho,o(e(s)("customThemes.previewWarning")),1),t("span",Wo,o(e(s)("customThemes.previewError")),1),t("span",Ko,o(e(s)("customThemes.previewInfo")),1)]),t("label",Qo,[m(o(e(s)("customThemes.previewInput"))+" ",1),t("input",{type:"text",placeholder:e(s)("customThemes.previewPlaceholder"),"aria-label":e(s)("customThemes.previewInput")},null,8,jo)]),t("div",Jo,[t("button",zo,o(e(s)("customThemes.previewAction")),1),t("button",Yo,o(e(s)("customThemes.previewSecondary")),1),t("button",Zo,o(e(s)("customThemes.previewDisabled")),1)]),t("p",Xo,o(e(s)("customThemes.previewStateHint")),1)])],14,Co))}}),lt=ye(ea,[["__scopeId","data-v-12c3d59e"]]),ta=["surfaces","borders","text","conversation","interaction","controls","status","overlays"],it={"--mar-table-header-bg":{group:"surfaces",description:"table-header-bg"},"--mar-table-row-hover-bg":{group:"surfaces",description:"table-row-hover-bg"},"--mar-color-brand-disabled":{group:"interaction",description:"color-brand-disabled"},"--mar-control-link-text":{group:"controls",description:"control-link-text"},"--mar-control-link-hover":{group:"controls",description:"control-link-hover"},"--mar-bg-page":{group:"surfaces",description:"bg-page"},"--mar-bg-panel":{group:"surfaces",description:"bg-panel"},"--mar-bg-chrome":{group:"surfaces",description:"bg-chrome"},"--mar-bg-subtle":{group:"surfaces",description:"bg-subtle"},"--mar-bg-tab-inactive":{group:"surfaces",description:"bg-tab-inactive"},"--mar-fill-subtle":{group:"surfaces",description:"fill-subtle"},"--mar-fill-muted":{group:"surfaces",description:"fill-muted"},"--mar-fill-row-hover":{group:"surfaces",description:"fill-row-hover"},"--mar-fill-selection":{group:"surfaces",description:"fill-selection"},"--mar-fill-soft":{group:"surfaces",description:"fill-soft"},"--mar-fill-hover":{group:"surfaces",description:"fill-hover"},"--mar-border-default":{group:"borders",description:"border-default"},"--mar-border-subtle":{group:"borders",description:"border-subtle"},"--mar-border-medium":{group:"borders",description:"border-medium"},"--mar-border-strong":{group:"borders",description:"border-strong"},"--mar-text-primary":{group:"text",description:"text-primary"},"--mar-text-secondary":{group:"text",description:"text-secondary"},"--mar-text-disabled":{group:"text",description:"text-disabled"},"--mar-conversation-canvas":{group:"conversation",description:"conversation-canvas"},"--mar-conversation-surface":{group:"conversation",description:"conversation-surface"},"--mar-conversation-process":{group:"conversation",description:"conversation-process"},"--mar-conversation-border":{group:"conversation",description:"conversation-border"},"--mar-conversation-process-border":{group:"conversation",description:"conversation-process-border"},"--mar-conversation-code":{group:"conversation",description:"conversation-code"},"--mar-scrollbar-thumb":{group:"borders",description:"scrollbar-thumb"},"--mar-scrollbar-thumb-hover":{group:"borders",description:"scrollbar-thumb-hover"},"--mar-color-brand":{group:"interaction",description:"color-brand"},"--mar-control-color-primary-light-3":{group:"controls",description:"control-color-primary-light-3"},"--mar-control-color-primary-light-5":{group:"controls",description:"control-color-primary-light-5"},"--mar-control-color-primary-light-7":{group:"controls",description:"control-color-primary-light-7"},"--mar-control-color-primary-light-8":{group:"controls",description:"control-color-primary-light-8"},"--mar-control-color-primary-light-9":{group:"controls",description:"control-color-primary-light-9"},"--mar-control-color-primary-dark-2":{group:"controls",description:"control-color-primary-dark-2"},"--mar-control-color-success":{group:"controls",description:"control-color-success"},"--mar-control-color-warning":{group:"controls",description:"control-color-warning"},"--mar-control-color-danger":{group:"controls",description:"control-color-danger"},"--mar-control-bg-color-overlay":{group:"controls",description:"control-bg-color-overlay"},"--mar-control-fill-color":{group:"controls",description:"control-fill-color"},"--mar-control-fill-color-light":{group:"controls",description:"control-fill-color-light"},"--mar-control-fill-color-lighter":{group:"controls",description:"control-fill-color-lighter"},"--mar-control-fill-color-extra-light":{group:"controls",description:"control-fill-color-extra-light"},"--mar-control-border-color-lighter":{group:"controls",description:"control-border-color-lighter"},"--mar-control-border-color-extra-light":{group:"controls",description:"control-border-color-extra-light"},"--mar-control-border-color-dark":{group:"controls",description:"control-border-color-dark"},"--mar-control-border-color-darker":{group:"controls",description:"control-border-color-darker"},"--mar-color-brand-text":{group:"interaction",description:"color-brand-text"},"--mar-color-on-accent":{group:"interaction",description:"color-on-accent"},"--mar-color-brand-hover":{group:"interaction",description:"color-brand-hover"},"--mar-color-brand-subtle":{group:"interaction",description:"color-brand-subtle"},"--mar-color-brand-selected":{group:"interaction",description:"color-brand-selected"},"--mar-color-brand-border":{group:"interaction",description:"color-brand-border"},"--mar-color-success-text":{group:"status",description:"color-success-text"},"--mar-color-success-bg":{group:"status",description:"color-success-bg"},"--mar-color-warning-text":{group:"status",description:"color-warning-text"},"--mar-color-warning-accent":{group:"status",description:"color-warning-accent"},"--mar-color-warning-bg":{group:"status",description:"color-warning-bg"},"--mar-color-danger-text":{group:"status",description:"color-danger-text"},"--mar-color-danger-bg":{group:"status",description:"color-danger-bg"},"--mar-color-accent":{group:"interaction",description:"color-accent"},"--mar-color-accent-bg":{group:"interaction",description:"color-accent-bg"},"--mar-color-diff-add-text":{group:"status",description:"color-diff-add-text"},"--mar-color-diff-del-text":{group:"status",description:"color-diff-del-text"},"--mar-shadow-soft":{group:"overlays",description:"shadow-soft"},"--mar-shadow-medium":{group:"overlays",description:"shadow-medium"},"--mar-overlay-scrim":{group:"overlays",description:"overlay-scrim"},"--mar-overlay-border":{group:"overlays",description:"overlay-border"}},oa={class:"hint"},aa={class:"reference-body"},sa={key:0,class:"hint"},na=fe({__name:"ThemeTokenHelp",props:{colors:{}},setup(u){const{t:s}=Ae(),n=I(!1),k=I(""),_=z(()=>{const x=k.value.trim().toLocaleLowerCase();return ta.map(w=>({key:w,label:s("customThemes.tokenGroups."+w),tokens:Pt.filter(V=>it[V].group===w).map(V=>({token:V,description:s("customThemes.tokenDescriptions."+it[V].description)})).filter(V=>(V.token+" "+V.description).toLocaleLowerCase().includes(x))})).filter(w=>w.tokens.length)});function C(){k.value="",n.value=!0}async function d(x){try{await navigator.clipboard.writeText(x),K(s("customThemes.tokenCopied"),"info")}catch{K(s("customThemes.tokenCopyFailed"),"error")}}return(x,w)=>{const V=$e,Y=Me,y=Ge,se=De("tooltip");return i(),h(W,null,[pe(l(V,{class:"mar-icon-action",text:"",icon:e(f)("help"),"aria-label":e(s)("customThemes.tokenHelp"),onClick:C},null,8,["icon","aria-label"]),[[se,e(s)("customThemes.tokenHelp")]]),n.value?(i(),N(y,{key:0,onVnodeMounted:e(Ve),onVnodeBeforeUnmount:e(Ee),modelValue:n.value,"onUpdate:modelValue":w[1]||(w[1]=Q=>n.value=Q),title:e(s)("customThemes.tokenHelp"),width:"min(720px, calc(100vw - 32px))","append-to-body":"",class:"theme-token-help","close-icon":e(f)("close")},{default:r(()=>[t("p",oa,o(e(s)("customThemes.tokenHint")),1),l(Y,{modelValue:k.value,"onUpdate:modelValue":w[0]||(w[0]=Q=>k.value=Q),"prefix-icon":e(f)("search"),placeholder:e(s)("customThemes.tokenSearch"),"aria-label":e(s)("customThemes.tokenSearch"),clearable:"","clear-icon":e(f)("clear-input")},null,8,["modelValue","prefix-icon","placeholder","aria-label","clear-icon"]),t("div",aa,[(i(!0),h(W,null,le(_.value,Q=>(i(),h("section",{key:Q.key},[t("h3",null,o(Q.label),1),t("dl",null,[(i(!0),h(W,null,le(Q.tokens,v=>(i(),h("div",{key:v.token,class:"token-row"},[t("dt",null,[t("span",{class:"swatch",style:Fe({backgroundColor:u.colors[v.token]}),"aria-hidden":"true"},null,4),t("code",null,o(v.token),1),pe(l(V,{class:"mar-icon-action",text:"",icon:e(f)("copy"),"aria-label":e(s)("customThemes.tokenCopy",{token:v.token}),onClick:ae=>d(v.token)},null,8,["icon","aria-label","onClick"]),[[se,e(s)("customThemes.tokenCopy",{token:v.token})]])]),t("dd",null,o(v.description),1)]))),128))])]))),128)),_.value.length?B("",!0):(i(),h("p",sa,o(e(s)("customThemes.tokenEmpty")),1))])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-icon"])):B("",!0)],64)}}}),la=ye(na,[["__scopeId","data-v-a4fc0f5f"]]),ia={class:"theme-settings"},ra={class:"summary"},ca={class:"actions"},ua=["aria-label"],da=["aria-label"],pa=["aria-label","aria-pressed","onClick"],ma={class:"theme-swatches","aria-hidden":"true"},va={class:"theme-name"},ha={key:0,class:"theme-meta"},ga={class:"theme-controls"},fa={class:"editor-heading"},ba={class:"editor-layout"},ya={class:"actions"},ka={class:"editor-label"},_a=["aria-label"],wa={class:"validation","aria-live":"polite"},Sa={key:3,class:"warnings"},Ta={class:"preview-heading"},Ca={class:"summary"},$a=fe({__name:"ThemeSettings",setup(u){const{t:s}=Ae(),n=dt(),k=z(()=>[{id:"vscode-dark-2026",name:s("settings.dark"),builtin:!0},{id:"daylight",name:s("settings.light"),builtin:!0},...n.customThemes.value.map(T=>({...T,name:Be(T.source).name??s("customThemes.untitled"),builtin:!1}))]),_=I(),C=I(),d=I(),x=I("vscode-dark-2026"),w=z(()=>x.value!==void 0),V=I(!1),Y=I(!1),y=Je({source:Et(s("settings.dark"))}),se=I(y.source),Q=z(()=>!w.value&&y.source!==se.value),v=z(()=>!w.value&&(!d.value||Q.value)),ae=Vt(It,void 0),A=z(()=>Be(y.source)),Z=z(()=>V.value?n.resolveColors(y.source):A.value.colors),J=["--mar-bg-page","--mar-bg-panel","--mar-text-primary","--mar-color-brand","--mar-color-accent"],M=z(()=>k.value.map(T=>({...T,colors:V.value?n.resolveColors(L(T)):{}}))),G=z(()=>({source:[{validator:(T,D,R)=>R(Be(D).validJson?void 0:new Error(s("customThemes.invalidJson"))),trigger:["blur","change"]}]}));async function j(){if(!v.value)return!0;try{return await Ce.confirm(s("customThemes.discard"),s("customThemes.title"),{closeIcon:f("close"),icon:f("warning"),type:"warning",confirmButtonText:s("customThemes.discardAction"),cancelButtonText:s("customThemes.cancel")}),!0}catch{return!1}}async function F(T,D,R){await j()&&(d.value=D,x.value=R,y.source=T,se.value=T,_.value?.clearValidate())}function L(T){return T.source??n.builtinSource(T.id,T.name)}async function H(T){try{await F(L(T),T.builtin?void 0:T.id,T.builtin?T.id:void 0)}catch{K(s("customThemes.paletteFailed"),"error")}}async function ve(){if(Q.value){try{await Ce.confirm(s("customThemes.resetConfirm"),s("customThemes.title"),{closeIcon:f("close"),icon:f("warning"),type:"warning",confirmButtonText:s("customThemes.reset"),cancelButtonText:s("customThemes.cancel")})}catch{return}y.source=se.value,_.value?.clearValidate()}}function ie(T){try{n.setTheme(T.id)}catch{K(s("customThemes.storageFailed"),"error")}}function oe(T,D){D==="duplicate"?P(T):D==="remove"&&!T.builtin&&ce({id:T.id})}async function me(){if(!w.value&&await _.value?.validate().catch(()=>!1))try{const T=n.saveCustomTheme(y.source,d.value);d.value=T.id,se.value=y.source,K(s("customThemes.saved"),"success")}catch{K(s("customThemes.storageFailed"),"error")}}async function ce(T){try{await Ce.confirm(s("customThemes.deleteConfirm"),s("customThemes.title"),{closeIcon:f("close"),icon:f("warning"),type:"warning",confirmButtonText:s("customThemes.remove"),cancelButtonText:s("customThemes.cancel")})}catch{return}try{n.deleteCustomTheme(T.id),d.value===T.id&&(d.value=void 0,se.value=y.source),K(s("customThemes.deleted"),"success")}catch{K(s("customThemes.storageFailed"),"error")}}function P(T){try{F(n.duplicateSource(L(T),s("customThemes.copyName",{name:T.name})))}catch{K(s("customThemes.paletteFailed"),"error")}}async function E(T){const D=T.target,R=D.files?.[0];if(D.value="",!!R)try{await F(await R.text())}catch{K(s("customThemes.importFailed"),"error")}}async function S(){try{await navigator.clipboard.writeText(y.source),K(s("customThemes.copied"),"info")}catch{K(s("customThemes.copyFailed"),"error")}}async function p(){if(!await _.value?.validate().catch(()=>!1))return;const T=URL.createObjectURL(new Blob([y.source],{type:"application/json"})),D=document.createElement("a");D.href=T,D.download=`${(A.value.name??"theme").replace(/[^\p{L}\p{N}_.-]/gu,"_").slice(0,80)}.json`,D.click(),setTimeout(()=>URL.revokeObjectURL(T),1e3)}function X(){w.value||(A.value.validJson?y.source=JSON.stringify(JSON.parse(y.source),null,2):_.value?.validate().catch(()=>!1))}function ee(T){ae?.isReloadingForUpdate()||v.value&&(T.preventDefault(),T.returnValue="")}return Ne(()=>{V.value=!0,H(k.value[0]),window.addEventListener("beforeunload",ee)}),ze(()=>window.removeEventListener("beforeunload",ee)),(T,D)=>{const R=$e,ne=Qt,re=Kt,be=jt,Se=Le,g=Me,Te=Ie,He=Ue,$=oo,b=Ge,te=De("tooltip");return i(),h("section",ia,[t("h2",null,o(e(s)("customThemes.title")),1),t("p",ra,o(e(s)("customThemes.summary")),1),t("div",ca,[l(R,{icon:e(f)("upload"),onClick:D[0]||(D[0]=O=>C.value?.click())},{default:r(()=>[m(o(e(s)("customThemes.import")),1)]),_:1},8,["icon"]),t("input",{ref_key:"fileInput",ref:C,class:"file-input",type:"file",accept:".json,application/json","aria-label":e(s)("customThemes.import"),onChange:E},null,40,ua)]),t("ul",{class:"theme-options","aria-label":e(s)("customThemes.title")},[(i(!0),h(W,null,le(M.value,O=>(i(),h("li",{key:O.id,class:ke(["theme-option",{selected:O.id===(x.value??d.value),active:O.id===e(n).theme.value}])},[t("button",{type:"button",class:"theme-choice","aria-label":e(s)("customThemes.inspect",{name:O.name}),"aria-pressed":O.id===(x.value??d.value),onClick:ue=>H(O)},[t("span",ma,[(i(),h(W,null,le(J,ue=>t("span",{key:ue,style:Fe({backgroundColor:O.colors[ue]})},null,4)),64))]),t("span",va,o(O.name),1),O.builtin?(i(),h("span",ha,o(e(s)("customThemes.builtin")),1)):B("",!0)],8,pa),t("div",ga,[l(R,{link:"",icon:e(f)("check"),disabled:e(n).theme.value===O.id,onClick:ue=>ie(O)},{default:r(()=>[m(o(e(s)(e(n).theme.value===O.id?"customThemes.active":"customThemes.apply")),1)]),_:2},1032,["icon","disabled","onClick"]),l(be,{trigger:"click",onCommand:ue=>oe(O,ue)},{dropdown:r(()=>[l(re,null,{default:r(()=>[l(ne,{command:"duplicate",icon:e(f)("copy")},{default:r(()=>[m(o(e(s)("customThemes.duplicate")),1)]),_:1},8,["icon"]),O.builtin?B("",!0):(i(),N(ne,{key:0,command:"remove",icon:e(f)("delete"),divided:""},{default:r(()=>[m(o(e(s)("customThemes.remove")),1)]),_:1},8,["icon"]))]),_:2},1024)]),default:r(()=>[pe((i(),N(R,{class:"mar-icon-action",text:"","aria-label":e(s)("customThemes.moreActions",{name:O.name})},{default:r(()=>[l(_e,{name:"more"})]),_:1},8,["aria-label"])),[[te,e(s)("customThemes.moreActions",{name:O.name})]])]),_:2},1032,["onCommand"])])],2))),128))],8,da),t("div",fa,[t("h3",null,o(w.value?e(s)("customThemes.view"):d.value?e(s)("customThemes.edit"):e(s)("customThemes.newTheme")),1),v.value?(i(),N(Se,{key:0,type:"warning"},{default:r(()=>[m(o(e(s)("customThemes.unsaved")),1)]),_:1})):B("",!0)]),t("div",ba,[l(He,{ref_key:"form",ref:_,model:y,rules:G.value,"label-position":"top",onSubmit:Pe(me,["prevent"])},{default:r(()=>[t("div",ya,[w.value?B("",!0):(i(),N(R,{key:0,icon:e(f)("check"),type:"primary","native-type":"submit"},{default:r(()=>[m(o(e(s)("customThemes.save")),1)]),_:1},8,["icon"])),w.value?B("",!0):(i(),N(R,{key:1,icon:e(f)("administration"),onClick:X},{default:r(()=>[m(o(e(s)("customThemes.format")),1)]),_:1},8,["icon"])),w.value?B("",!0):(i(),N(R,{key:2,icon:e(f)("undo"),disabled:!Q.value,onClick:ve},{default:r(()=>[m(o(e(s)("customThemes.reset")),1)]),_:1},8,["icon","disabled"])),l(R,{icon:e(f)("copy"),onClick:S},{default:r(()=>[m(o(e(s)("customThemes.copyJson")),1)]),_:1},8,["icon"]),l(R,{icon:e(f)("download"),onClick:p},{default:r(()=>[m(o(e(s)("customThemes.export")),1)]),_:1},8,["icon"])]),l(Te,{label:e(s)("customThemes.json"),prop:"source"},{label:r(()=>[t("span",ka,[m(o(e(s)("customThemes.json")),1),l(la,{colors:Z.value},null,8,["colors"])])]),default:r(()=>[l(g,{modelValue:y.source,"onUpdate:modelValue":D[1]||(D[1]=O=>y.source=O),type:"textarea",rows:20,readonly:w.value,spellcheck:"false","aria-label":e(s)("customThemes.json"),class:"json-editor"},null,8,["modelValue","readonly","aria-label"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),t("aside",{"aria-label":e(s)("customThemes.inspector")},[t("div",wa,[A.value.validJson?A.value.warnings.length?(i(),N($,{key:1,type:"warning",closable:!1,"show-icon":"",title:e(s)("customThemes.warningSummary",{count:A.value.warnings.length})},{icon:r(()=>[l(_e,{name:"warning"})]),_:1},8,["title"])):(i(),N($,{key:2,type:"success",closable:!1,"show-icon":"",title:e(s)("customThemes.valid")},{icon:r(()=>[l(_e,{name:"success"})]),_:1},8,["title"])):(i(),N($,{key:0,type:"error",closable:!1,"show-icon":"",title:e(s)("customThemes.invalidJson")},{icon:r(()=>[l(_e,{name:"error"})]),_:1},8,["title"])),A.value.warnings.length?(i(),h("ul",Sa,[(i(!0),h(W,null,le(A.value.warnings,(O,ue)=>(i(),h("li",{key:ue},o(e(s)(`customThemes.warnings.${O.code}`,{field:O.field})),1))),128))])):B("",!0)]),t("div",Ta,[t("h3",null,o(e(s)("customThemes.preview")),1),l(R,{icon:e(f)("zoom-in"),onClick:D[2]||(D[2]=O=>Y.value=!0)},{default:r(()=>[m(o(e(s)("customThemes.expandPreview")),1)]),_:1},8,["icon"])]),t("p",Ca,o(e(s)("customThemes.previewHint")),1),l(lt,{name:A.value.name??e(s)("customThemes.untitled"),colors:Z.value},null,8,["name","colors"])],8,_a)]),Y.value?(i(),N(b,{key:0,onVnodeMounted:e(Ve),onVnodeBeforeUnmount:e(Ee),modelValue:Y.value,"onUpdate:modelValue":D[3]||(D[3]=O=>Y.value=O),title:e(s)("customThemes.preview"),width:"min(54rem, calc(100vw - 32px))","append-to-body":"","close-icon":e(f)("close")},{default:r(()=>[l(lt,{name:A.value.name??e(s)("customThemes.untitled"),colors:Z.value,expanded:""},null,8,["name","colors"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-icon"])):B("",!0)])}}}),xa=ye($a,[["__scopeId","data-v-efb6e378"]]),Pa={class:"quick-prompts-content"},Ea={class:"prompt-list-toolbar"},Va={key:0,class:"prompt-state"},Ia={key:1,class:"prompt-empty"},Ua={key:2,class:"prompt-list"},Na={class:"prompt-heading"},qa={class:"prompt-actions"},Ra=fe({__name:"QuickPromptSettings",props:{prompts:{},loading:{type:Boolean},failed:{type:Boolean},request:{type:Function},refresh:{type:Function}},setup(u){const s=u,n=I(),k=I(),_=I(!1),C=I(0),d=I(!1),x=I(!1),w=I({phrase:"",prompt:""}),V=z(()=>k.value===void 0),Y={phrase:[{required:!0,message:()=>a("quickPrompts.phraseRequired"),trigger:"blur"},{validator:(Z,J,M)=>typeof J=="string"&&J.trim().length<=80&&!/[\s#]/u.test(J)?M():M(new Error(a("quickPrompts.phraseInvalid"))),trigger:"blur"}],prompt:[{required:!0,message:()=>a("quickPrompts.promptRequired"),trigger:"blur"}]};Ne(()=>{y()}),ze(v);async function y(){await s.refresh(),await Ut(),s.failed||(x.value=!0)}function se(){C.value+=1,d.value=!1,k.value=void 0,w.value={phrase:"",prompt:""},_.value=!0}function Q(Z){C.value+=1,d.value=!1,k.value=Z,w.value={phrase:Z.phrase,prompt:Z.prompt},_.value=!0}function v(){C.value+=1,d.value=!1,_.value=!1,k.value=void 0}async function ae(){if(!_.value||d.value)return;const Z=C.value;if(!(!await n.value?.validate().catch(()=>!1)||Z!==C.value||d.value)){d.value=!0;try{const M=JSON.stringify(w.value);if(k.value===void 0?await s.request("/api/quick-prompts",{method:"POST",body:M}):await s.request(`/api/quick-prompts/${encodeURIComponent(k.value.id)}`,{method:"PATCH",body:M}),Z!==C.value||(await s.refresh(),Z!==C.value))return;K(a("quickPrompts.saved"),"success"),v()}catch(M){Z===C.value&&K(a("quickPrompts.saveFailed",{value0:we(M)}),"error",M)}finally{Z===C.value&&(d.value=!1)}}}async function A(Z){try{await Ce.confirm(a("quickPrompts.removeConfirmation",{value0:`#${Z.phrase}`}),a("quickPrompts.remove"),{closeIcon:f("close"),icon:f("warning"),type:"warning"}),await s.request(`/api/quick-prompts/${encodeURIComponent(Z.id)}`,{method:"DELETE"}),await s.refresh(),K(a("quickPrompts.removed"),"success")}catch(J){J!=="cancel"&&K(a("quickPrompts.removeFailed",{value0:we(J)}),"error",J)}}return(Z,J)=>{const M=$e,G=Me,j=Ie,F=Ue,L=Ge;return i(),N(Ye,{loading:u.loading&&!x.value,variant:"page",class:"quick-prompts settings-panel"},{default:r(()=>[t("div",Pa,[t("header",null,[t("div",null,[t("h2",null,o(e(a)("quickPrompts.title")),1),t("p",null,o(e(a)("quickPrompts.summary")),1)])]),t("div",Ea,[l(M,{icon:e(f)("plus"),type:"primary",disabled:u.loading,onClick:se},{default:r(()=>[m(o(e(a)("quickPrompts.add")),1)]),_:1},8,["icon","disabled"])]),!u.loading&&u.failed?(i(),h("p",Va,o(e(a)("quickPrompts.loadFailed")),1)):!u.loading&&u.prompts.length===0?(i(),h("div",Ia,[t("p",null,o(e(a)("quickPrompts.empty")),1)])):u.prompts.length>0?(i(),h("div",Ua,[(i(!0),h(W,null,le(u.prompts,H=>(i(),h("article",{key:H.id,class:"prompt-item"},[t("div",Na,[t("code",null,"#"+o(H.phrase),1)]),t("p",null,o(H.prompt),1),t("div",qa,[l(M,{icon:e(f)("edit"),link:"",disabled:u.loading,onClick:ve=>Q(H)},{default:r(()=>[m(o(e(a)("quickPrompts.edit")),1)]),_:1},8,["icon","disabled","onClick"]),l(M,{icon:e(f)("delete"),link:"",type:"danger",disabled:u.loading,onClick:ve=>A(H)},{default:r(()=>[m(o(e(a)("quickPrompts.remove")),1)]),_:1},8,["icon","disabled","onClick"])])]))),128))])):B("",!0)]),_.value?(i(),N(L,{onVnodeMounted:e(Ve),onVnodeBeforeUnmount:e(Ee),key:C.value,"model-value":_.value,title:e(a)(V.value?"quickPrompts.add":"quickPrompts.edit"),width:"min(560px, calc(100vw - 32px))","append-to-body":"","before-close":v,"close-icon":e(f)("close")},{footer:r(()=>[l(M,{onClick:v},{default:r(()=>[m(o(e(a)("common.cancel")),1)]),_:1}),l(M,{type:"primary",loading:d.value,onClick:ae,"loading-icon":e(f)("loading-action")},{default:r(()=>[m(o(e(a)("common.save")),1)]),_:1},8,["loading","loading-icon"])]),default:r(()=>[l(F,{ref_key:"form",ref:n,model:w.value,rules:Y,"label-position":"top",onSubmit:Pe(ae,["prevent"])},{default:r(()=>[l(j,{label:e(a)("quickPrompts.phrase"),prop:"phrase"},{default:r(()=>[l(G,{modelValue:w.value.phrase,"onUpdate:modelValue":J[0]||(J[0]=H=>w.value.phrase=H),maxlength:"80",placeholder:e(a)("quickPrompts.phraseHint")},{prepend:r(()=>[...J[2]||(J[2]=[m("#",-1)])]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),l(j,{label:e(a)("quickPrompts.prompt"),prop:"prompt"},{default:r(()=>[l(G,{modelValue:w.value.prompt,"onUpdate:modelValue":J[1]||(J[1]=H=>w.value.prompt=H),maxlength:"10000",rows:7,resize:"vertical",type:"textarea"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","model-value","title","close-icon"])):B("",!0)]),_:1},8,["loading"])}}}),Ma=ye(Ra,[["__scopeId","data-v-0c960e89"]]),Ga=["aria-busy"],Aa=["aria-label"],Oa=["src","data-runner"],Ba=["aria-labelledby"],Fa=["aria-label","disabled","placeholder"],Da={class:"instruction-actions"},La=fe({__name:"PersonalInstructionsSettings",props:{request:{type:Function}},setup(u){const s=u,n=I(),k=I("COMMON"),_=I(!0),C=I(!1),d=I(!1),x=I({common:"",codex:"",claudeCode:"",openCode:"",marAgent:""}),w=I({content:""}),V=[{id:"COMMON",label:"personalInstructions.common",property:"common"},{id:"MAR_AGENT",label:"personalInstructions.marAgent",property:"marAgent",logo:pt},{id:"CODEX",label:"personalInstructions.codex",property:"codex",logo:ao},{id:"CLAUDE_CODE",label:"personalInstructions.claudeCode",property:"claudeCode",logo:so},{id:"OPENCODE",label:"personalInstructions.openCode",property:"openCode",logo:no}],Y=z(()=>V.find(G=>G.id===k.value)),y={content:[{required:!0,message:()=>a("personalInstructions.promptRequired"),trigger:"blur"},{validator:(G,j,F)=>typeof j=="string"&&j.trim().length>0&&j.trim().length<=2e4?F():F(new Error(a("personalInstructions.promptInvalid"))),trigger:"blur"}]};Ne(()=>{A()});function se(){x.value[Y.value.property]=w.value.content}function Q(G){k.value!==G&&(se(),k.value=G,w.value.content=x.value[Y.value.property],n.value?.clearValidate())}function v(G,j){let F=j;switch(G.key){case"ArrowRight":F=(j+1)%V.length;break;case"ArrowLeft":F=(j+V.length-1)%V.length;break;case"Home":F=0;break;case"End":F=V.length-1;break;case"Enter":case" ":break;default:return}G.preventDefault(),Q(V[F].id),G.currentTarget.parentElement?.querySelectorAll('[role="tab"]')[F]?.focus()}function ae(){n.value?.validateField("content").catch(()=>{})}async function A(){_.value=!0,d.value=!1;try{x.value=(await s.request("/api/personal-instructions")).instructions,w.value.content=x.value[Y.value.property]}catch(G){d.value=!0,K(a("personalInstructions.loadFailed"),"error",G)}finally{_.value=!1}}async function Z(){if(C.value)return;const G=k.value,j=Y.value.property,F=w.value.content;C.value=!0;try{if(!await n.value?.validate().catch(()=>!1))return;const H=await s.request(`/api/personal-instructions/${G}`,{method:"PUT",body:JSON.stringify({content:F})});J(j,F,H.instructions),K(a("personalInstructions.saved"),"success")}catch(L){K(a("personalInstructions.saveFailed",{value0:we(L)}),"error",L)}finally{C.value=!1}}function J(G,j,F){const L=Y.value.property===G;(L?w.value.content:x.value[G])===j&&(x.value[G]=F[G],L&&(w.value.content=F[G]))}async function M(){if(C.value)return;const G=k.value,j=Y.value.property,F=w.value.content;C.value=!0;try{await Ce.confirm(a("personalInstructions.clearConfirmation"),a("personalInstructions.clear"),{closeIcon:f("close"),icon:f("warning"),type:"warning"});const L=await s.request(`/api/personal-instructions/${G}`,{method:"DELETE"});J(j,F,L.instructions),k.value===G&&n.value?.clearValidate(),K(a("personalInstructions.cleared"),"success")}catch(L){L!=="cancel"&&K(a("personalInstructions.clearFailed",{value0:we(L)}),"error",L)}finally{C.value=!1}}return(G,j)=>{const F=To,L=Ie,H=$e,ve=Ue,ie=Nt;return pe((i(),h("section",{"element-loading-custom-class":"mar-page-loading",class:"personal-instructions settings-panel","aria-busy":_.value},[t("header",null,[t("h2",null,o(e(a)("personalInstructions.title")),1),t("p",null,o(e(a)("personalInstructions.scopeHelp")),1)]),t("div",{class:"instruction-scopes",role:"tablist","aria-label":e(a)("personalInstructions.title")},[(i(),h(W,null,le(V,(oe,me)=>l(F,{key:oe.id,id:`instruction-scope-${oe.id}`,checked:k.value===oe.id,"aria-selected":k.value===oe.id,tabindex:k.value===oe.id?0:-1,"aria-controls":"personal-instructions-panel",role:"tab",onChange:ce=>Q(oe.id),onKeydown:ce=>v(ce,me)},{default:r(()=>[oe.logo===void 0?(i(),N(_e,{key:0,name:"document"})):(i(),h("img",{key:1,src:oe.logo,"data-runner":oe.id==="CODEX"?"codex":void 0,class:"mar-runner-brand-icon","aria-hidden":"true"},null,8,Oa)),t("span",null,o(e(a)(oe.label)),1)]),_:2},1032,["id","checked","aria-selected","tabindex","onChange","onKeydown"])),64))],8,Aa),!_.value&&d.value?(i(),h("p",{key:0,id:"personal-instructions-panel",role:"tabpanel","aria-labelledby":`instruction-scope-${k.value}`,class:"instruction-state"},o(e(a)("personalInstructions.loadFailed")),9,Ba)):(i(),N(ve,{key:1,id:"personal-instructions-panel",role:"tabpanel","aria-labelledby":`instruction-scope-${k.value}`,ref_key:"form",ref:n,model:w.value,rules:y,disabled:_.value,"label-position":"top"},{default:r(()=>[l(L,{label:e(a)("personalInstructions.prompt"),prop:"content"},{default:r(()=>[pe(t("textarea",{"onUpdate:modelValue":j[0]||(j[0]=oe=>w.value.content=oe),"aria-label":e(a)("personalInstructions.prompt"),disabled:_.value,maxlength:2e4,placeholder:e(a)("personalInstructions.placeholder"),onBlur:ae},null,40,Fa),[[qt,w.value.content]])]),_:1},8,["label"]),t("div",Da,[l(H,{icon:e(f)("delete"),loading:C.value,onClick:M,"loading-icon":e(f)("loading-action")},{default:r(()=>[m(o(e(a)("personalInstructions.clear")),1)]),_:1},8,["icon","loading","loading-icon"]),l(H,{icon:e(f)("check"),type:"primary",loading:C.value,onClick:Z,"loading-icon":e(f)("loading-action")},{default:r(()=>[m(o(e(a)("common.save")),1)]),_:1},8,["icon","loading","loading-icon"])])]),_:1},8,["aria-labelledby","model","disabled"]))],8,Ga)),[[ie,_.value]])}}}),Ha=ye(La,[["__scopeId","data-v-dc31f1c2"]]),Wa={class:"theme-row completion-preferences"},Ka={for:"appearance-prompt-completion",class:"theme-label"},Qa=fe({__name:"PromptCompletionPreferences",setup(u){const s=lo();function n(k){try{s.setEnabled(k)}catch(_){K(we(_),"error",_)}}return(k,_)=>{const C=je,d=Qe;return i(),h("div",Wa,[t("label",Ka,o(e(a)("promptCompletion.work")),1),l(d,{id:"appearance-prompt-completion","model-value":e(s).enabled.value,class:"theme-select","aria-label":e(a)("promptCompletion.work"),"onUpdate:modelValue":n,"clear-icon":e(f)("clear-input"),"suffix-icon":e(f)("chevron-down")},{default:r(()=>[l(C,{label:e(a)("promptCompletion.off"),value:!1},null,8,["label"]),l(C,{label:e(a)("promptCompletion.on"),value:!0},null,8,["label"])]),_:1},8,["model-value","aria-label","clear-icon","suffix-icon"])])}}}),ja=ye(Qa,[["__scopeId","data-v-decc562a"]]),Ja={class:"mar-management-page"},za={class:"git-page-hint"},Ya={class:"mar-table-actions"},Za={class:"git-scope"},Xa={key:1},es={class:"mar-row-actions"},ts={class:"git-scope"},os={key:1},as={class:"detail-close"},ss={class:"git-identity-fields"},ns={class:"git-form-group-title"},ls={class:"git-hint"},is={class:"git-field-pair"},rs={class:"git-hint"},cs={class:"git-hint"},us=fe({__name:"PersonalGitSettings",props:{request:{type:Function}},setup(u){const s=u,n=new po(s.request),k=I({credentials:[]}),_=I(!0),C=I(!1),d=I(!1),x=I(!1),w=I(!1),V=I(),Y=I(!1),y=I(),se=I(),Q=()=>({name:"",remoteUrl:"",protocol:"HTTPS",username:"",commitName:"",commitEmail:"",secret:"",passphrase:"",clearPassphrase:!1}),v=I(Q());let ae=!0;const A=z(()=>H()?.protocol??v.value.protocol),Z=z(()=>Object.fromEntries(["name","remoteUrl","username","commitName","commitEmail","secret","passphrase"].map(P=>[P,[{validator:(E,S,p)=>p(oe(P))}]])));Ne(()=>{M()}),mt(()=>{ae=!1,v.value=Q()});function J(P){ae&&(k.value=P,C.value=!0)}async function M(){_.value=!0,d.value=!1;try{J(await n.read())}catch(P){ae&&(d.value=!0,K(we(P),"error",P))}finally{ae&&(_.value=!1)}}function G(P){L(),v.value=P===void 0?Q():{...Q(),...P,remoteUrl:We(P),secret:"",passphrase:""},V.value=P,w.value=!0}function j(){w.value=!1,v.value=Q(),V.value=void 0}function F(P){x.value||(y.value=P,Y.value=!0)}function L(){Y.value=!1,y.value=void 0}function H(){try{return Rt(v.value.remoteUrl)}catch{return}}function ve(){const P=H();P===void 0||P.protocol===v.value.protocol||V.value!==void 0||(v.value.protocol=P.protocol,v.value.secret="",v.value.passphrase="",v.value.clearPassphrase=!1)}function ie(){const P=v.value,E=H();return{name:P.name,protocol:E?.protocol??P.protocol,host:E?.host??"",port:E?.port??(P.protocol==="SSH"?22:443),pathPrefix:E?.pathPrefix??"",username:E?.protocol==="SSH"?E.username??"":P.username,commitName:P.commitName,commitEmail:P.commitEmail,...V.value===void 0||P.secret.length>0?{secret:P.secret}:{},...(E?.protocol??P.protocol)!=="SSH"?{}:P.clearPassphrase?{passphrase:null}:P.passphrase.length>0?{passphrase:P.passphrase}:{}}}function oe(P){const E=H();if(P==="remoteUrl"&&(E===void 0||V.value!==void 0&&E.protocol!==V.value.protocol))return new Error(a("personalGit.remoteInvalid"));const S=(V.value===void 0?et:tt).safeParse(ie());if(S.success||!S.error.issues.some(ee=>{const T=String(ee.path[0]);return P==="remoteUrl"?["protocol","host","port","pathPrefix"].includes(T):T===P}))return;const X={name:"nameInvalid",remoteUrl:"remoteInvalid",username:"usernameInvalid",commitName:"identityInvalid",commitEmail:"identityInvalid",secret:"secretInvalid",passphrase:"passphraseInvalid"}[P];return X===void 0?void 0:new Error(a(`personalGit.${X}`))}async function me(){if(!await se.value?.validate().catch(()=>!1))return;const P=(V.value===void 0?et:tt).safeParse(ie());if(P.success){x.value=!0;try{const E=V.value===void 0?await n.createCredential(P.data):await n.updateCredential(V.value.id,P.data);if(!ae)return;J(E),j(),K(a("personalGit.saved"),"success")}catch(E){ae&&K(we(E),"error",E)}finally{ae&&(x.value=!1)}}}async function ce(P){try{await Ce.confirm(a("personalGit.removeConfirm",{name:P.name}),a("personalGit.remove"),{closeIcon:f("close"),icon:f("warning"),type:"warning"})}catch{return}x.value=!0;try{J(await n.removeCredential(P.id)),y.value?.id===P.id&&L()}catch(E){ae&&K(we(E),"error",E)}finally{ae&&(x.value=!1)}}return(P,E)=>{const S=$e,p=ht,X=vt,ee=uo,T=Le,D=co,R=Ge,ne=Me,re=Ie,be=ro,Se=Ue;return i(),N(Ye,{class:"personal-git-settings",loading:_.value&&!C.value,variant:"page"},{default:r(()=>[t("div",Ja,[t("header",null,[t("div",null,[t("h2",null,o(e(a)("personalGit.title")),1)])]),d.value?(i(),N(S,{key:0,onClick:M},{default:r(()=>[m(o(e(a)("personalGit.reload")),1)]),_:1})):(i(),h(W,{key:1},[t("p",za,o(e(a)("personalGit.summary")),1),t("div",Ya,[l(S,{type:"primary",icon:e(f)("plus"),disabled:_.value||x.value,onClick:E[0]||(E[0]=g=>G()),"loading-icon":e(f)("loading-action")},{default:r(()=>[m(o(e(a)("personalGit.add")),1)]),_:1},8,["icon","disabled","loading-icon"])]),l(X,{class:"clickable-rows",data:k.value.credentials,"empty-text":e(a)("personalGit.empty"),"table-layout":"auto",onRowClick:F},{default:r(()=>[l(p,{prop:"name",label:e(a)("personalGit.name"),"min-width":"140"},null,8,["label"]),l(p,{label:e(a)("personalGit.remote"),"min-width":"260"},{default:r(({row:g})=>[t("code",Za,o(e(We)(g)),1)]),_:1},8,["label"]),l(p,{prop:"username",label:e(a)("personalGit.username"),"min-width":"140"},null,8,["label"]),l(p,{label:e(a)("personalGit.identity"),"min-width":"220"},{default:r(({row:g})=>[g.commitName?(i(),h(W,{key:0},[m(o(g.commitName)+" <"+o(g.commitEmail)+">",1)],64)):(i(),h("span",Xa,o(e(a)("personalGit.identityEmpty")),1))]),_:1},8,["label"]),l(p,{label:e(a)("personalGit.actions"),width:"180"},{default:r(({row:g})=>[t("div",es,[l(S,{link:"",icon:e(f)("edit"),disabled:x.value,onClick:Pe(Te=>G(g),["stop"])},{default:r(()=>[m(o(e(a)("personalGit.edit")),1)]),_:1},8,["icon","disabled","onClick"]),l(S,{link:"",type:"danger",icon:e(f)("delete"),disabled:x.value,onClick:Pe(Te=>ce(g),["stop"])},{default:r(()=>[m(o(e(a)("personalGit.remove")),1)]),_:1},8,["icon","disabled","onClick"])])]),_:1},8,["label"])]),_:1},8,["data","empty-text"])],64))]),Y.value&&y.value?(i(),N(R,{key:0,onVnodeMounted:e(Ve),onVnodeBeforeUnmount:e(Ee),modelValue:Y.value,"onUpdate:modelValue":E[1]||(E[1]=g=>Y.value=g),title:e(a)("personalGit.detail"),width:"min(720px, calc(100vw - 32px))","append-to-body":"",onClosed:L,"close-icon":e(f)("close")},{footer:r(()=>[t("div",as,[l(S,{disabled:x.value,onClick:L},{default:r(()=>[m(o(e(a)("personalGit.close")),1)]),_:1},8,["disabled"])])]),default:r(()=>[l(D,{column:1,border:""},{default:r(()=>[l(ee,{label:e(a)("personalGit.credentialId")},{default:r(()=>[m(o(y.value.id),1)]),_:1},8,["label"]),l(ee,{label:e(a)("personalGit.name")},{default:r(()=>[m(o(y.value.name),1)]),_:1},8,["label"]),l(ee,{label:e(a)("personalGit.remote")},{default:r(()=>[t("code",ts,o(e(We)(y.value)),1)]),_:1},8,["label"]),y.value.protocol==="HTTPS"?(i(),N(ee,{key:0,label:e(a)("personalGit.username")},{default:r(()=>[m(o(y.value.username),1)]),_:1},8,["label"])):B("",!0),l(ee,{label:e(a)("personalGit.identity")},{default:r(()=>[y.value.commitName?(i(),h(W,{key:0},[m(o(y.value.commitName)+" <"+o(y.value.commitEmail)+">",1)],64)):(i(),h("span",os,o(e(a)("personalGit.identityEmpty")),1))]),_:1},8,["label"]),l(ee,{label:e(a)("personalGit.secretStatus")},{default:r(()=>[l(T,{type:y.value.hasSecret?"success":"info"},{default:r(()=>[m(o(e(a)(y.value.hasSecret?"personalGit.configured":"personalGit.notConfigured")),1)]),_:1},8,["type"])]),_:1},8,["label"]),y.value.protocol==="SSH"?(i(),N(ee,{key:1,label:e(a)("personalGit.passphraseStatus")},{default:r(()=>[l(T,{type:y.value.hasPassphrase?"success":"info"},{default:r(()=>[m(o(e(a)(y.value.hasPassphrase?"personalGit.configured":"personalGit.notConfigured")),1)]),_:1},8,["type"])]),_:1},8,["label"])):B("",!0)]),_:1})]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-icon"])):B("",!0),w.value?(i(),N(R,{key:1,onVnodeMounted:e(Ve),onVnodeBeforeUnmount:e(Ee),modelValue:w.value,"onUpdate:modelValue":E[10]||(E[10]=g=>w.value=g),title:e(a)(V.value?"personalGit.editCredential":"personalGit.add"),width:"min(620px, calc(100vw - 32px))","append-to-body":"","close-on-click-modal":!x.value,"close-on-press-escape":!x.value,"show-close":!x.value,onClosed:j,"close-icon":e(f)("close")},{footer:r(()=>[l(S,{disabled:x.value,onClick:j},{default:r(()=>[m(o(e(a)("personalGit.cancel")),1)]),_:1},8,["disabled"]),l(S,{type:"primary",loading:x.value,onClick:me,"loading-icon":e(f)("loading-action")},{default:r(()=>[m(o(e(a)("personalGit.save")),1)]),_:1},8,["loading","loading-icon"])]),default:r(()=>[l(Se,{ref_key:"credentialForm",ref:se,model:v.value,rules:Z.value,"label-position":"top",disabled:x.value,onSubmit:Pe(me,["prevent"])},{default:r(()=>[l(re,{prop:"name",label:e(a)("personalGit.name")},{default:r(()=>[l(ne,{modelValue:v.value.name,"onUpdate:modelValue":E[2]||(E[2]=g=>v.value.name=g),placeholder:e(a)("personalGit.nameHint"),maxlength:320},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l(re,{prop:"remoteUrl",label:e(a)("personalGit.remote")},{default:r(()=>[l(ne,{modelValue:v.value.remoteUrl,"onUpdate:modelValue":E[3]||(E[3]=g=>v.value.remoteUrl=g),placeholder:e(a)("personalGit.remoteHint"),maxlength:2048,onChange:ve},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),A.value==="HTTPS"?(i(),N(re,{key:0,prop:"username",label:e(a)("personalGit.username")},{default:r(()=>[l(ne,{modelValue:v.value.username,"onUpdate:modelValue":E[4]||(E[4]=g=>v.value.username=g),placeholder:e(a)("personalGit.usernameHint"),maxlength:320,autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):B("",!0),t("section",ss,[t("p",ns,o(e(a)("personalGit.identity")),1),t("p",ls,o(e(a)("personalGit.identityHint")),1),t("div",is,[l(re,{prop:"commitName",label:e(a)("personalGit.commitName")},{default:r(()=>[l(ne,{modelValue:v.value.commitName,"onUpdate:modelValue":E[5]||(E[5]=g=>v.value.commitName=g),placeholder:e(a)("personalGit.namePlaceholder"),maxlength:320},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l(re,{prop:"commitEmail",label:e(a)("personalGit.email")},{default:r(()=>[l(ne,{modelValue:v.value.commitEmail,"onUpdate:modelValue":E[6]||(E[6]=g=>v.value.commitEmail=g),placeholder:e(a)("personalGit.emailPlaceholder"),maxlength:320},null,8,["modelValue","placeholder"])]),_:1},8,["label"])])]),l(re,{prop:"secret",label:e(a)(A.value==="SSH"?"personalGit.privateKey":"personalGit.password")},{default:r(()=>[l(ne,{modelValue:v.value.secret,"onUpdate:modelValue":E[7]||(E[7]=g=>v.value.secret=g),type:A.value==="SSH"?"textarea":"password",rows:5,placeholder:e(a)(V.value?"personalGit.keepSecret":A.value==="SSH"?"personalGit.keyHint":"personalGit.secretHint"),autocomplete:"new-password",maxlength:32768},null,8,["modelValue","type","placeholder"])]),_:1},8,["label"]),A.value==="SSH"?(i(),h(W,{key:1},[l(re,{prop:"passphrase",label:e(a)("personalGit.passphrase")},{default:r(()=>[l(ne,{modelValue:v.value.passphrase,"onUpdate:modelValue":E[8]||(E[8]=g=>v.value.passphrase=g),type:"password",disabled:v.value.clearPassphrase,placeholder:e(a)(V.value?.hasPassphrase?"personalGit.keepPassphrase":"personalGit.passphraseHint"),autocomplete:"new-password",maxlength:4096},null,8,["modelValue","disabled","placeholder"])]),_:1},8,["label"]),V.value?.hasPassphrase?(i(),N(be,{key:0,modelValue:v.value.clearPassphrase,"onUpdate:modelValue":E[9]||(E[9]=g=>v.value.clearPassphrase=g)},{default:r(()=>[m(o(e(a)("personalGit.clearPassphrase")),1)]),_:1},8,["modelValue"])):B("",!0),t("p",rs,o(e(a)("personalGit.sshNotice")),1)],64)):B("",!0),t("p",cs,o(e(a)("personalGit.secretNotice")),1)]),_:1},8,["model","rules","disabled"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-on-click-modal","close-on-press-escape","show-close","close-icon"])):B("",!0)]),_:1},8,["loading"])}}}),ds=ye(us,[["__scopeId","data-v-bbf243b8"]]),rt=6e4;class ps{constructor(s,n){this.request=s,this.reportError=n}request;reportError;pagination=go({context:()=>JSON.stringify(this.recordsQuery??null),key:ms,reloadOnViewportChange:!1,read:async s=>{if(!this.recordsQuery)throw new Error("USAGE_QUERY_INVALID");this.begin();const n=await this.request(this.path("records",this.recordsQuery,s),{signal:this.abort.signal,cache:"no-store"});return ct(n,s)}});state=Je({loading:!1,loadingPage:z(()=>this.pagination.loading.value),refreshing:!1,failed:!1,refreshFailed:!1,recordsStale:!1,page:z(()=>this.pagination.page.value),total:z(()=>String(this.pagination.total.value)),overview:void 0,records:z(()=>this.pagination.items.value),availableModels:[]});generation=0;abort;query;recordsQuery;rollingWindow;interacting=!1;timer;visibility;nextRefreshAt=0;failures=0;async load(s,n={}){this.pagination.invalidate(n.reset!==!1);const k=this.begin();return this.query={...s},this.rollingWindow=n.rolling?s.to-s.from:void 0,this.state.loading=!0,this.state.failed=!1,n.reset!==!1&&(this.interacting=!1,this.state.overview=void 0,this.state.recordsStale=!1,this.recordsQuery=void 0),await this.readOverview(s,k,!1)}startAutoRefresh(s){this.visibility?.removeEventListener("visibilitychange",this.onVisibilityChange),this.visibility=s,s.addEventListener("visibilitychange",this.onVisibilityChange),this.nextRefreshAt||(this.nextRefreshAt=Date.now()+rt),this.schedule()}setRecordsInteracting(s){this.interacting=s}get preserveRecords(){return this.state.page>1||this.interacting||this.state.recordsStale||this.pagination.failure.value!==void 0}async readOverview(s,n,k){const _=k&&this.preserveRecords;try{const C={signal:this.abort.signal,cache:"no-store"},[d,x]=await Promise.all([this.request(this.path("overview",s),C),_?Promise.resolve(void 0):this.request(this.path("records",s),C)]);if(n!==this.generation)return!1;const w=x&&(!k||!this.preserveRecords)?ct(x,1):void 0;return this.state.overview=d,w?(this.recordsQuery={...s},this.pagination.replace(w),this.state.recordsStale=!1):this.state.recordsStale=!0,(this.state.availableModels.length===0||this.isUnfiltered(s))&&(this.state.availableModels=d.models),this.state.failed=!1,this.state.refreshFailed=!1,this.failures=0,!0}catch(C){return n!==this.generation||(this.abort?.abort(),this.state.failed=!0,this.state.refreshFailed=k,this.failures++,k||this.reportError(C)),!1}finally{n===this.generation&&(this.state.loading=!1,this.state.refreshing=!1,this.nextRefreshAt=Date.now()+Math.min(3e5,rt*2**Math.min(this.failures,3)),this.schedule())}}async goToPage(s){!this.recordsQuery||this.state.loading||this.state.loadingPage||s<1||s>Math.ceil(Number(this.state.total)/20)||(await this.pagination.setPage(s),this.schedule())}async loadMore(s=!1){!this.recordsQuery||this.state.loading||(await this.pagination.loadMore(s),this.schedule())}async retryPage(){await this.pagination.retry(),this.schedule()}begin(){return this.clearTimer(),this.abort?.abort(),this.abort=new AbortController,this.state.loading=!1,this.state.refreshing=!1,++this.generation}onVisibilityChange=()=>{this.clearTimer(),this.visibility?.visibilityState!=="visible"&&this.state.refreshing&&(this.generation++,this.abort?.abort(),this.state.refreshing=!1),this.schedule()};clearTimer(){this.timer!==void 0&&clearTimeout(this.timer),this.timer=void 0}schedule(){this.clearTimer(),!(this.visibility?.visibilityState!=="visible"||!this.query||this.state.loading||this.state.loadingPage||this.state.refreshing)&&(this.timer=setTimeout(()=>{const s={...this.query};this.rollingWindow!==void 0&&(s.to=Date.now(),s.from=s.to-this.rollingWindow);const n=this.begin();this.state.refreshing=!0,this.readOverview(s,n,!0)},Math.max(0,this.nextRefreshAt-Date.now())))}dispose(){this.clearTimer(),this.visibility?.removeEventListener("visibilitychange",this.onVisibilityChange),this.visibility=void 0,this.generation++,this.abort?.abort(),this.query=void 0,this.recordsQuery=void 0,this.pagination.dispose(),this.state.loading=!1,this.state.refreshing=!1,this.state.overview=void 0,this.state.availableModels=[]}path(s,n,k=1){const _=new URLSearchParams;for(const[C,d]of Object.entries(n))d!==void 0&&_.set(C,String(d));return s==="records"&&_.set("page",String(k)),`/api/me/usage/${s}?${_}`}isUnfiltered(s){return s.runner===void 0&&s.model===void 0&&s.mode===void 0}}function ct(u,s){if(!/^(0|[1-9]\d*)$/u.test(u.total))throw new Error("USAGE_PAGE_RESPONSE_INVALID");const n=Number(u.total),k=u.page??s;if(!Number.isSafeInteger(n)||!Number.isSafeInteger(k)||k<1)throw new Error("USAGE_PAGE_RESPONSE_INVALID");return{items:u.records,page:k,pageSize:20,total:n,hasMore:BigInt(k)*20n<BigInt(u.total)}}function ms(u){return u.ledgerId??u.recordId}const vs={class:"usage-content"},hs={class:"usage-summary"},gs={class:"refresh-actions"},fs={class:"metadata",role:"status"},bs={key:1,class:"usage-purpose-scroll"},ys={key:2,class:"metadata"},ks={key:3,class:"overview"},_s={class:"usage-count",tabindex:"0"},ws=["tabindex"],Ss={class:"usage-count",tabindex:"0"},Ts={class:"usage-count",tabindex:"0"},Cs={class:"metadata"},$s={class:"section-heading"},xs=["id"],Ps={class:"metadata"},Es={key:0,class:"mar-empty"},Vs={key:1,class:"trend"},Is={class:"legend"},Us=["tabindex"],Ns=["aria-label","aria-describedby"],qs=["aria-label","transform","onMouseenter"],Rs=["y","width","height"],Ms=["y","width","height"],Gs=["y","width","height"],As=["width"],Os=["id"],Bs={class:"section-heading"},Fs={class:"distributions"},Ds={key:0,class:"mar-empty"},Ls={key:1},Hs={class:"distribution-cache metadata"},Ws=["tabindex"],Ks={class:"usage-count",tabindex:"0"},Qs={class:"bar-track","aria-hidden":"true"},js={class:"section-heading"},Js={key:2,class:"records-update"},zs={class:"metadata"},Ys={class:"record-detail"},Zs=["tabindex"],Xs=["tabindex"],en={key:5},tn=fe({__name:"UsageStatisticsSettings",props:{request:{type:Function}},setup(u){const s=u,{t:n,locale:k}=Ae(),_=Mt(),C=new ps(s.request,$=>K(we($),"error",$)),d=C.state,x=z(()=>d.loading&&!d.overview),w=C.pagination;fo(w),Re(w.mobileViewport,()=>{ie(!0)});const V=I(),Y=["conversation","compact","prompt_completion","title","other"],y=Je({period:"24h",range:null,runner:"",model:"",mode:"",purpose:"conversation"}),se=Intl.DateTimeFormat().resolvedOptions().timeZone,Q=["mar-agent","codex","claude-code","opencode"],v=I(y.purpose),ae=z(()=>Y.map($=>({value:$,label:n(`usageStatistics.purposes.${$}`)}))),A=I("totalTokens"),Z=["inputTokens","cacheReadTokens","outputTokens","totalTokens"],J={running:"primary",succeeded:"info",failed:"danger",cancelled:"info",interrupted:"warning"},M=I(),G=Dt(),j=z(()=>{const $=G.value;return $?{contextElement:$,getBoundingClientRect:()=>$.getBoundingClientRect()}:void 0});function F($,b){G.value=b.currentTarget,M.value=$}const L=z(()=>d.availableModels.length>0?d.availableModels:d.overview?.models??[]),H=()=>{const $=Date.now();return Ft.parse({from:y.period==="custom"?y.range?.[0]?.getTime():$-(y.period==="24h"?864e5:7*864e5),to:y.period==="custom"?y.range?.[1]?.getTime():$,timeZone:se,...y.runner?{runner:y.runner}:{},...y.model?{model:y.model}:{},...y.mode?{mode:y.mode}:{},...y.purpose?{purpose:y.purpose}:{}})},ve=z(()=>({range:[{validator:($,b,te)=>{try{H(),te()}catch{te(new Error(n("usageStatistics.invalidRange")))}}}]}));async function ie($=!1,b){const te=await V.value?.validate().catch(()=>!1);if(b!==void 0&&b!==v.value)return;if(!te){b!==void 0&&(v.value=y.purpose);return}b!==void 0&&(y.purpose=b),$&&(me=!1),await C.load(H(),{reset:$,rolling:y.period!=="custom"})&&(ce.value=[],C.setRecordsInteracting(me))}function oe(){V.value?.clearValidate("range"),(y.period!=="custom"||y.range)&&ie(!0)}let me=!1;const ce=I([]);function P({order:$}){me=$!==null,C.setRecordsInteracting(me||ce.value.length>0)}function E($,b){ce.value=b.map(Te),C.setRecordsInteracting(me||ce.value.length>0)}Re(()=>d.overview,()=>M.value=void 0),Re(()=>d.records,$=>{const b=new Set($.map(Te));ce.value=ce.value.filter(te=>b.has(te)),C.setRecordsInteracting(me||ce.value.length>0)});function S($,b=!1){return new Intl.NumberFormat(k.value,{notation:b?"compact":"standard",maximumFractionDigits:1}).format(BigInt($??"0"))}function p($){return $==null?n("usageStatistics.unknown"):yo($)}function X($){const b=S($,!0),te=S($);return b===te?te:`${b} (${te})`}function ee($,b){return BigInt(b)===0n?0:Number(BigInt($)*10000n/BigInt(b))/1e4}function T($,b=!1){return n("usageStatistics.cacheWithRate",{tokens:S($.cacheReadTokens,b),rate:Zt($.cacheReadTokens,$.inputTokens,k.value)})}function D($){return`${n("usageStatistics.cacheReadTokens")}: ${T($)} · ${n("usageStatistics.cacheWriteTokens")}: ${S($.cacheWriteTokens)}`}function R($){return $.cacheReadTokens!=null||$.cacheWriteTokens!=null}const ne=z(()=>(d.overview?.buckets??[]).reduce(($,b)=>BigInt(b.totalTokens)>BigInt($)?b.totalTokens:$,"0")),re=$=>[...$].sort((b,te)=>BigInt(b[A.value])===BigInt(te[A.value])?b.key.localeCompare(te.key):BigInt(b[A.value])>BigInt(te[A.value])?-1:1),be=z(()=>[{kind:"runners",groups:re(d.overview?.runners??[])},{kind:"models",groups:re(d.overview?.models??[])}]),Se=z(()=>d.overview?[{label:"last24Hours",value:d.overview.last24Hours},{label:"last7Days",value:d.overview.last7Days}]:[]),g=$=>n(`usageStatistics.runnerNames.${$}`),Te=$=>$.ledgerId??$.recordId;function He($,b,te){if($[te]==null)return b[te]==null?0:-1;if(b[te]==null)return 1;const O=BigInt(String($[te])),ue=BigInt(String(b[te]));return O===ue?0:O>ue?1:-1}return Ne(()=>{w.start(),ie(),C.startAutoRefresh(document)}),mt(()=>{C.dispose()}),($,b)=>{const te=$e,O=Qe,ue=je,qe=Ie,gt=ho,ft=Ue,bt=Gt,Ze=vo,yt=mo,xe=ht,kt=Le,_t=vt,ge=De("tooltip");return i(),N(Ye,{loading:x.value,variant:"page",class:"usage settings-panel","data-testid":"usage-statistics"},{default:r(()=>[t("div",vs,[t("header",null,[t("div",null,[t("h2",null,o(e(n)("usageStatistics.title")),1),t("p",hs,o(e(n)("usageStatistics.accountScope")),1)]),t("div",gs,[t("span",fs,o(e(d).refreshFailed?e(n)("usageStatistics.refreshDelayed"):""),1),pe(l(te,{class:"mar-icon-action",text:"",circle:"",size:"small",icon:e(f)("refresh"),loading:e(d).loading&&!x.value,disabled:x.value,"loading-icon":e(f)("loading-action"),"aria-label":e(n)("usageStatistics.refresh"),onClick:b[0]||(b[0]=c=>ie())},null,8,["icon","loading","disabled","loading-icon","aria-label"]),[[ge,e(n)("usageStatistics.refresh")]])])]),e(w).mobileViewport.value?(i(),N(O,{key:0,modelValue:v.value,"onUpdate:modelValue":b[1]||(b[1]=c=>v.value=c),class:"usage-purpose-select",options:ae.value,"aria-label":e(n)("usageStatistics.purpose"),"suffix-icon":e(f)("chevron-down"),onChange:b[2]||(b[2]=c=>ie(!0,v.value))},null,8,["modelValue","options","aria-label","suffix-icon"])):(i(),h("div",bs,[l(io,{modelValue:v.value,"onUpdate:modelValue":b[3]||(b[3]=c=>v.value=c),options:ae.value,label:e(n)("usageStatistics.purpose"),onChange:b[4]||(b[4]=c=>ie(!0,c))},null,8,["modelValue","options","label"])])),e(d).overview?(i(),h("p",ys,o(e(n)("usageStatistics.overviewScope")),1)):B("",!0),e(d).overview?(i(),h("div",ks,[(i(!0),h(W,null,le(Se.value,c=>(i(),h("section",{key:c.label,class:"overview-cell"},[t("h3",null,o(e(n)(`usageStatistics.${c.label}`)),1),t("p",null,[m(o(e(n)("usageStatistics.input"))+" ",1),pe((i(),h("span",_s,[m(o(S(c.value.inputTokens,!0)),1)])),[[ge,{content:S(c.value.inputTokens),touch:!0}]]),m(" · "+o(e(n)("usageStatistics.cache"))+" ",1),pe((i(),h("span",{class:ke({"usage-count":R(c.value)}),tabindex:R(c.value)?0:void 0},[m(o(T(c.value,!0)),1)],10,ws)),[[ge,{touch:!0,content:D(c.value),disabled:!R(c.value)}]]),m(" · "+o(e(n)("usageStatistics.output"))+" ",1),pe((i(),h("span",Ss,[m(o(S(c.value.outputTokens,!0)),1)])),[[ge,{content:S(c.value.outputTokens),touch:!0}]])]),pe((i(),h("strong",Ts,[m(o(S(c.value.totalTokens,!0)),1)])),[[ge,{content:S(c.value.totalTokens),touch:!0}]]),t("span",null,o(e(n)("usageStatistics.totalTokens")),1),t("span",Cs," · "+o(e(n)("usageStatistics.requests"))+" "+o(S(c.value.requests)),1)]))),128))])):B("",!0),l(ft,{ref_key:"form",ref:V,model:y,rules:ve.value,class:"filters","label-position":"top",onSubmit:b[11]||(b[11]=Pe(c=>ie(),["prevent"]))},{default:r(()=>[l(qe,{label:e(n)("usageStatistics.range")},{default:r(()=>[l(O,{modelValue:y.period,"onUpdate:modelValue":b[5]||(b[5]=c=>y.period=c),"aria-label":e(n)("usageStatistics.range"),onChange:oe,"clear-icon":e(f)("clear-input"),"suffix-icon":e(f)("chevron-down")},{default:r(()=>[l(ue,{label:e(n)("usageStatistics.last24Hours"),value:"24h"},null,8,["label"]),l(ue,{label:e(n)("usageStatistics.last7Days"),value:"7d"},null,8,["label"]),l(ue,{label:e(n)("usageStatistics.custom"),value:"custom"},null,8,["label"])]),_:1},8,["modelValue","aria-label","clear-icon","suffix-icon"])]),_:1},8,["label"]),l(qe,{label:e(n)("usageStatistics.runner")},{default:r(()=>[l(O,{modelValue:y.runner,"onUpdate:modelValue":b[6]||(b[6]=c=>y.runner=c),clearable:"",placeholder:e(n)("usageStatistics.all"),"aria-label":e(n)("usageStatistics.runner"),onChange:b[7]||(b[7]=c=>{y.model="",oe()}),"clear-icon":e(f)("clear-input"),"suffix-icon":e(f)("chevron-down")},{default:r(()=>[(i(),h(W,null,le(Q,c=>l(ue,{key:c,label:g(c),value:c},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder","aria-label","clear-icon","suffix-icon"])]),_:1},8,["label"]),l(qe,{label:e(n)("usageStatistics.model")},{default:r(()=>[l(O,{modelValue:y.model,"onUpdate:modelValue":b[8]||(b[8]=c=>y.model=c),clearable:"",placeholder:e(n)("usageStatistics.all"),"aria-label":e(n)("usageStatistics.model"),onChange:oe,"clear-icon":e(f)("clear-input"),"suffix-icon":e(f)("chevron-down")},{default:r(()=>[(i(!0),h(W,null,le(L.value,c=>(i(),N(ue,{key:c.key,label:c.label||e(n)("usageStatistics.unknown"),value:c.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","aria-label","clear-icon","suffix-icon"])]),_:1},8,["label"]),l(qe,{label:e(n)("usageStatistics.mode")},{default:r(()=>[l(O,{modelValue:y.mode,"onUpdate:modelValue":b[9]||(b[9]=c=>y.mode=c),clearable:"",placeholder:e(n)("usageStatistics.all"),"aria-label":e(n)("usageStatistics.mode"),onChange:oe,"clear-icon":e(f)("clear-input"),"suffix-icon":e(f)("chevron-down")},{default:r(()=>[(i(),h(W,null,le(["work","conversation"],c=>l(ue,{key:c,label:e(n)(`usageStatistics.modes.${c}`),value:c},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder","aria-label","clear-icon","suffix-icon"])]),_:1},8,["label"]),y.period==="custom"?(i(),N(qe,{key:0,prop:"range",label:e(n)("usageStatistics.custom"),class:"custom-range"},{default:r(()=>[l(gt,{modelValue:y.range,"onUpdate:modelValue":b[10]||(b[10]=c=>y.range=c),type:"datetimerange","single-panel":"","validate-event":!1,"start-placeholder":e(n)("usageStatistics.from"),"end-placeholder":e(n)("usageStatistics.to"),onChange:oe,"prefix-icon":e(f)("calendar"),"clear-icon":e(f)("clear-input")},{"prev-month":r(()=>[l(_e,{name:"chevron-left"})]),"next-month":r(()=>[l(_e,{name:"chevron-right"})]),"prev-year":r(()=>[l(_e,{name:"chevrons-left"})]),"next-year":r(()=>[l(_e,{name:"chevrons-right"})]),_:1},8,["modelValue","start-placeholder","end-placeholder","prefix-icon","clear-icon"])]),_:1},8,["label"])):B("",!0)]),_:1},8,["model","rules"]),e(d).overview?(i(),h(W,{key:4},[t("div",$s,[t("h3",null,o(e(n)("usageStatistics.trend")),1),pe((i(),h("span",{id:`${e(_)}-summary`,class:"usage-count",tabindex:"0"},[m(o(e(n)("usageStatistics.selected",{tokens:S(e(d).overview.selected.totalTokens,!0),input:S(e(d).overview.selected.inputTokens,!0),cache:T(e(d).overview.selected,!0),output:S(e(d).overview.selected.outputTokens,!0),requests:S(e(d).overview.selected.requests)})),1)],8,xs)),[[ge,{content:e(n)("usageStatistics.selected",{tokens:S(e(d).overview.selected.totalTokens),input:S(e(d).overview.selected.inputTokens),cache:T(e(d).overview.selected),output:S(e(d).overview.selected.outputTokens),requests:S(e(d).overview.selected.requests)}),touch:!0}]])]),t("p",Ps,o(e(n)("usageStatistics.timeZone",{zone:e(se)})),1),e(d).overview.selected.requests==="0"?(i(),h("p",Es,o(e(n)("usageStatistics.empty")),1)):(i(),h("div",Vs,[t("div",Is,[b[18]||(b[18]=t("span",{class:"input-key"},null,-1)),m(o(e(n)("usageStatistics.input"))+" ",1),b[19]||(b[19]=t("span",{class:"cache-key"},null,-1)),pe((i(),h("span",{class:ke({"usage-count":R(e(d).overview.selected)}),tabindex:R(e(d).overview.selected)?0:void 0},[m(o(e(n)("usageStatistics.cache")),1)],10,Us)),[[ge,{touch:!0,content:D(e(d).overview.selected),disabled:!R(e(d).overview.selected)}]]),b[20]||(b[20]=t("span",{class:"output-key"},null,-1)),m(o(e(n)("usageStatistics.output")),1)]),(i(),h("svg",{class:"usage-trend-chart",viewBox:"0 0 800 170",role:"img","aria-label":e(n)("usageStatistics.trend"),"aria-describedby":`${e(_)}-range ${e(_)}-summary`,preserveAspectRatio:"none"},[b[21]||(b[21]=t("line",{x1:"0",y1:"155",x2:"800",y2:"155",class:"axis"},null,-1)),(i(!0),h(W,null,le(e(d).overview.buckets,(c,U)=>(i(),h("g",{key:c.from,class:"trend-bucket","aria-label":`${p(c.from)} – ${p(c.to)} · ${e(n)("usageStatistics.inputTokens")}: ${X(c.inputTokens)} · ${e(n)("usageStatistics.cache")}: ${T(c,!0)} · ${e(n)("usageStatistics.outputTokens")}: ${X(c.outputTokens)} · ${e(n)("usageStatistics.totalTokens")}: ${X(c.totalTokens)}`,transform:`translate(${U*800/e(d).overview.buckets.length},0)`,onMouseenter:Oe=>F(c,Oe),onMouseleave:b[12]||(b[12]=Oe=>M.value=void 0)},[t("rect",{class:"input-bar",x:2,y:155-ee(c.inputTokens,ne.value)*140,width:Math.max(1,800/e(d).overview.buckets.length-4),height:ee(c.inputTokens,ne.value)*140},null,8,Rs),t("rect",{class:"cache-bar",x:2,y:155-ee(c.inputTokens,ne.value)*140,width:Math.max(1,800/e(d).overview.buckets.length-4),height:Math.min(ee(c.cacheReadTokens??"0",ne.value),ee(c.inputTokens,ne.value))*140},null,8,Ms),t("rect",{class:"output-bar",x:2,y:155-ee(c.totalTokens,ne.value)*140,width:Math.max(1,800/e(d).overview.buckets.length-4),height:ee(c.outputTokens,ne.value)*140},null,8,Gs),t("rect",{class:"bucket-hit-area",width:800/e(d).overview.buckets.length,y:"15",height:"140"},null,8,As)],40,qs))),128))],8,Ns)),l(bt,At(e(Ot),{"virtual-triggering":"","virtual-ref":j.value,visible:!!M.value,enterable:!1}),Bt({_:2},[M.value?{name:"content",fn:r(()=>[t("div",null,o(p(M.value.from))+" – "+o(p(M.value.to)),1),t("div",null,o(e(n)("usageStatistics.inputTokens"))+": "+o(X(M.value.inputTokens)),1),t("div",null,o(e(n)("usageStatistics.cache"))+": "+o(T(M.value,!0)),1),t("div",null,o(D(M.value)),1),t("div",null,o(e(n)("usageStatistics.outputTokens"))+": "+o(X(M.value.outputTokens)),1),t("div",null,o(e(n)("usageStatistics.totalTokens"))+": "+o(X(M.value.totalTokens)),1)]),key:"0"}:void 0]),1040,["virtual-ref","visible"]),t("div",{id:`${e(_)}-range`,class:"axis-labels"},[t("span",null,o(p(e(d).overview.buckets[0]?.from)),1),t("span",null,o(p(e(d).overview.buckets.at(-1)?.to)),1)],8,Os)])),t("div",Bs,[t("h3",null,o(e(n)("usageStatistics.distribution")),1),l(yt,{modelValue:A.value,"onUpdate:modelValue":b[13]||(b[13]=c=>A.value=c),"aria-label":e(n)("usageStatistics.metric")},{default:r(()=>[l(Ze,{value:"totalTokens"},{default:r(()=>[m(o(e(n)("usageStatistics.tokens")),1)]),_:1}),l(Ze,{value:"requests"},{default:r(()=>[m(o(e(n)("usageStatistics.requests")),1)]),_:1})]),_:1},8,["modelValue","aria-label"])]),t("div",Fs,[(i(!0),h(W,null,le(be.value,c=>(i(),h("section",{key:c.kind},[t("h4",null,o(e(n)(`usageStatistics.${c.kind}`)),1),c.groups.length?(i(),h("ol",Ls,[(i(!0),h(W,null,le(c.groups,U=>(i(),h("li",{key:U.key},[t("div",null,[t("span",null,o(c.kind==="runners"?g(U.key):U.label||e(n)("usageStatistics.unknown")),1)]),t("div",Hs,[m(o(e(n)("usageStatistics.cache"))+" ",1),pe((i(),h("span",{class:ke({"usage-count":R(U)}),tabindex:R(U)?0:void 0},[m(o(T(U,!0)),1)],10,Ws)),[[ge,{touch:!0,content:D(U),disabled:!R(U)}]]),m(" · "+o(e(n)(A.value==="totalTokens"?"usageStatistics.totalTokens":"usageStatistics.requests"))+" ",1),pe((i(),h("strong",Ks,[m(o(S(U[A.value],!0)),1)])),[[ge,{content:S(U[A.value]),touch:!0}]])]),t("div",Qs,[t("span",{style:Fe({width:`${ee(U[A.value],c.groups[0][A.value])*100}%`})},null,4)])]))),128))])):(i(),h("p",Ds,o(e(n)("usageStatistics.empty")),1))]))),128))]),t("div",js,[t("h3",null,o(e(n)("usageStatistics.records")),1),t("span",null,o(e(n)("usageStatistics.recordsHint")),1)]),e(d).recordsStale?(i(),h("div",Js,[t("span",zs,o(e(n)("usageStatistics.recordsSnapshot")),1),l(te,{link:"",disabled:e(d).loading,onClick:b[14]||(b[14]=c=>ie())},{default:r(()=>[m(o(e(n)("usageStatistics.updateRecords")),1)]),_:1},8,["disabled"])])):B("",!0),l(_t,{data:e(d).records,"row-key":Te,"expand-row-keys":ce.value,"empty-text":e(n)("usageStatistics.empty"),class:"records","aria-busy":e(d).loadingPage,onSortChange:P,onExpandChange:E},{default:r(()=>[l(xe,{type:"expand"},{default:r(({row:c})=>[t("dl",Ys,[(i(),h(W,null,le(["requestedModel","actualModel","sessionId","runId","requestId","responseId","cacheReadTokens","cacheWriteTokens","reasoningTokens"],U=>(i(),h(W,{key:U},[t("dt",null,o(e(n)(`usageStatistics.${U}`)),1),t("dd",null,[U.endsWith("Tokens")?pe((i(),h("span",{key:0,class:ke({"usage-count":U==="cacheReadTokens"?R(c):c[U]!=null}),tabindex:(U==="cacheReadTokens"?R(c):c[U]!=null)?0:void 0},[m(o(U==="cacheReadTokens"?T(c,!0):S(c[U],!0)),1)],10,Zs)),[[ge,{touch:!0,content:U==="cacheReadTokens"?D(c):S(c[U]),disabled:U==="cacheReadTokens"?!R(c):c[U]==null}]]):(i(),h(W,{key:1},[m(o(c[U]??e(n)("usageStatistics.unknown")),1)],64))])],64))),64)),t("dt",null,o(e(n)("usageStatistics.coverageLabel")),1),t("dd",null,o(e(n)(`usageStatistics.coverages.${c.coverage}`))+" · "+o(e(n)(`usageStatistics.roles.${c.agentRole}`)),1)])]),_:1}),l(xe,{prop:"endedAt",label:e(n)("usageStatistics.time"),sortable:"","min-width":"180"},{default:r(({row:c})=>[m(o(p(c.endedAt)),1)]),_:1},8,["label"]),l(xe,{prop:"runner",label:e(n)("usageStatistics.runner"),sortable:"","min-width":"110"},{default:r(({row:c})=>[m(o(g(c.runner)),1)]),_:1},8,["label"]),l(xe,{label:e(n)("usageStatistics.model"),"min-width":"160"},{default:r(({row:c})=>[m(o(c.actualModel??c.requestedModel??e(n)("usageStatistics.unknown")),1)]),_:1},8,["label"]),l(xe,{label:e(n)("usageStatistics.purpose"),"min-width":"100"},{default:r(({row:c})=>[m(o(e(n)(`usageStatistics.purposes.${c.purpose}`)),1)]),_:1},8,["label"]),(i(),h(W,null,le(Z,c=>l(xe,{key:c,prop:c,label:c==="cacheReadTokens"?e(n)("usageStatistics.cache"):e(n)(`usageStatistics.${c}`),sortable:"","sort-method":(U,Oe)=>He(U,Oe,c),"min-width":c==="cacheReadTokens"?170:110},{default:r(({row:U})=>[pe((i(),h("span",{class:ke({"usage-count":c==="cacheReadTokens"?R(U):U[c]!=null}),tabindex:(c==="cacheReadTokens"?R(U):U[c]!=null)?0:void 0},[m(o(c==="cacheReadTokens"?T(U,!0):S(U[c],!0)),1)],10,Xs)),[[ge,{touch:!0,content:c==="cacheReadTokens"?D(U):S(U[c]),disabled:c==="cacheReadTokens"?!R(U):U[c]==null}]])]),_:2},1032,["prop","label","sort-method","min-width"])),64)),l(xe,{label:e(n)("usageStatistics.state"),"min-width":"105"},{default:r(({row:c})=>[l(kt,{type:J[c.state],effect:"plain",role:"status","aria-label":e(n)(`usageStatistics.states.${c.state}`)},{default:r(()=>[m(o(e(n)(`usageStatistics.states.${c.state}`)),1)]),_:2},1032,["type","aria-label"])]),_:1},8,["label"])]),_:1},8,["data","expand-row-keys","empty-text","aria-busy"]),l(bo,{page:e(d).page,"page-size":20,total:Number(e(d).total),mobile:e(w).mobileViewport.value,"mobile-visible-count":e(d).records.length,"has-more":e(w).hasMore.value,loading:e(d).loading||e(d).loadingPage,"loading-more":e(w).loadingMore.value,failed:e(w).failure.value!==void 0,"incremental-failed":e(w).failure.value?.incremental===!0,error:e(w).failure.value?.error,"context-key":e(w).contextKey.value,"aria-label":e(n)("usageStatistics.pagination"),onPage:b[15]||(b[15]=c=>e(C).goToPage(c)),onLoadMore:b[16]||(b[16]=c=>e(C).loadMore(c)),onRetry:b[17]||(b[17]=c=>e(C).retryPage())},null,8,["page","total","mobile","mobile-visible-count","has-more","loading","loading-more","failed","incremental-failed","error","context-key","aria-label"])],64)):e(d).failed?(i(),h("p",en,o(e(n)("usageStatistics.retry")),1)):B("",!0)])]),_:1},8,["loading"])}}}),on=ye(tn,[["__scopeId","data-v-17baff5f"]]),an={class:"system-notification-control"},sn={class:"notification-channel"},nn={class:"notification-channel-info"},ln={role:"status"},rn={key:0,role:"status"},cn={class:"notification-channel-actions"},un=fe({__name:"SystemNotificationControl",props:{service:{}},setup(u){const s=u,n=z(()=>!s.service.enabled.value&&(["unsupported","denied"].includes(s.service.status.value)||s.service.mode==="mobile-push"&&!s.service.pushReady()&&s.service.pushStatus.value!=="unavailable"));return(k,_)=>{const C=Le,d=$e;return i(),h("div",an,[t("div",sn,[t("div",nn,[t("h3",null,o(e(a)(u.service.mode==="mobile-push"?"workbenchNotificationCenter.webPush.title":"workbenchNotificationCenter.systemNotifications.onlineTitle")),1),t("p",ln,[u.service.status.value==="enabled"||u.service.status.value==="disabled"?(i(),N(C,{key:0,type:u.service.status.value==="enabled"?"success":"info",effect:"plain"},{default:r(()=>[m(o(e(a)(`workbenchNotificationCenter.systemNotifications.${u.service.status.value}`)),1)]),_:1},8,["type"])):(i(),h(W,{key:1},[m(o(e(a)(`workbenchNotificationCenter.systemNotifications.${u.service.status.value}`)),1)],64))]),u.service.mode==="mobile-push"?(i(),h("p",rn,o(e(a)(`workbenchNotificationCenter.webPush.${u.service.pushStatus.value}`)),1)):B("",!0)]),t("div",cn,[l(d,{class:"mar-text-action",link:"",icon:u.service.enabled.value?e(f)("power"):e(f)("notification"),loading:u.service.requesting.value,disabled:n.value,onClick:_[0]||(_[0]=x=>u.service.setEnabled(!u.service.enabled.value)),"loading-icon":e(f)("loading-action")},{default:r(()=>[m(o(e(a)(u.service.mode==="mobile-push"?u.service.enabled.value?"workbenchNotificationCenter.webPush.disable":"workbenchNotificationCenter.webPush.enable":u.service.enabled.value?"workbenchNotificationCenter.systemNotifications.disable":"workbenchNotificationCenter.systemNotifications.enable")),1)]),_:1},8,["icon","loading","disabled","loading-icon"]),u.service.mode==="mobile-push"&&u.service.enabled.value&&["actionRequired","unavailable"].includes(u.service.pushStatus.value)?(i(),N(d,{key:0,class:"mar-text-action",link:"",icon:e(f)("notification"),onClick:_[1]||(_[1]=x=>u.service.enablePush())},{default:r(()=>[m(o(e(a)("workbenchNotificationCenter.webPush.enable")),1)]),_:1},8,["icon"])):B("",!0)])])])}}}),dn=ye(un,[["__scopeId","data-v-cbbab8ad"]]),pn={key:2,class:"full settings-panel"},mn={class:"account-summary"},vn=["aria-label"],hn={class:"admin-sessions-heading"},gn={key:0},fn={key:1},bn={class:"account-actions"},yn={key:0,class:"password-form-error",role:"alert"},kn={key:3,class:"full settings-panel"},_n={class:"registration-summary"},wn={key:0,class:"registration-guide"},Sn={class:"registration-action"},Tn={key:1,class:"token registration-token"},Cn={key:5,class:"full settings-panel"},$n={class:"account-summary"},xn={class:"appearance-options"},Pn={class:"theme-row"},En={class:"theme-label",for:"appearance-theme"},Vn={class:"theme-row"},In={class:"theme-label",for:"appearance-file-editor"},Un={class:"theme-row"},Nn={class:"theme-label",for:"appearance-icon-theme"},qn={class:"theme-row"},Rn={class:"theme-label",for:"appearance-language"},Mn={key:6,class:"full settings-panel"},Gn={class:"account-summary"},An={key:9,class:"full settings-panel"},On={class:"account-summary"},Bn={class:"account-summary"},Fn={class:"shortcut-group","aria-labelledby":"shortcut-workspace"},Dn={id:"shortcut-workspace"},Ln={class:"shortcut-list"},Hn={class:"shortcut-group","aria-labelledby":"shortcut-files"},Wn={id:"shortcut-files"},Kn={class:"shortcut-list"},Qn={class:"shortcut-group","aria-labelledby":"shortcut-editing"},jn={id:"shortcut-editing"},Jn={class:"shortcut-list"},zn={class:"shortcut-group","aria-labelledby":"shortcut-composer"},Yn={id:"shortcut-composer"},Zn={class:"shortcut-list"},Xn={key:10,class:"about-settings full settings-panel"},el=["aria-label"],tl=["src"],ol={class:"about-details"},al={key:0},sl={class:"pwa-actions"},nl={key:1},ll={class:"third-party-scope"},il={class:"third-party-groups"},rl={class:"third-party-scope"},cl=fe({__name:"SettingsContent",props:{section:{},webVersion:{},pwaState:{},checkingForUpdates:{type:Boolean},sessions:{},sessionsRefreshing:{type:Boolean},newPassword:{},passwordValidationError:{},registrationToken:{},registrationLoading:{type:Boolean},loading:{type:Boolean},changePassword:{type:Function},formatSessionTime:{type:Function},request:{type:Function},quickPrompts:{},quickPromptsLoading:{type:Boolean},quickPromptsFailed:{type:Boolean},refreshQuickPrompts:{type:Function},systemNotifications:{}},emits:["clearPasswordError","refreshSessions","logoutSession","logout","createRegistrationToken","checkForUpdates","applyWebUpdate"],setup(u,{emit:s}){const n=Lt(),k=u,_=s,C=I(!1),d=dt(),x=d.theme,w=Xt(),V=w.theme,Y=to(),y=Y.mode,se=Wt(),Q=se.locale,{t:v}=Ae(),ae=I(!1);let A;Ne(()=>{if(typeof window>"u")return;const S=window.matchMedia("(display-mode: standalone)"),p=()=>{ae.value=S.matches||navigator.standalone===!0};p(),S.addEventListener("change",p),A=()=>S.removeEventListener("change",p)}),ze(()=>A?.());const Z=z(()=>d.customThemes.value.map(S=>({id:S.id,name:Be(S.source).name??v("customThemes.untitled")})));function J(S){try{d.setTheme(S)}catch{K(v("customThemes.storageFailed"),"error")}}function M(S){try{w.setTheme(S)}catch{K(v("customThemes.storageFailed"),"error")}}const G=k.webVersion,j=["web","server","execution","tools","icons","computerUse"],F=I(""),L=I(""),H=I(""),ve=I(!1);let ie=0;Re(C,()=>{ie+=1,F.value="",L.value="",H.value="",ve.value=!1,_("clearPasswordError")},{flush:"sync"}),Re(()=>k.section,S=>{S!=="account"&&ce()});async function oe(S){const p=Q.value;se.setLocale(S);try{await k.request("/api/auth/preferences/locale",{method:"PUT",body:JSON.stringify({locale:S})})}catch(X){se.setLocale(p),K(a("common.localeUpdateFailed"),"error",X)}}async function me(){if(k.loading||ve.value)return;const S=ie;ve.value=!0;try{await k.changePassword({currentPassword:F.value,password:L.value,confirmation:H.value})&&S===ie&&ce()}finally{S===ie&&(ve.value=!1)}}function ce(){C.value=!1}async function P(S){try{await Ce.confirm(a("generated.settingsContent.confirmSignOutSession"),a("generated.settingsContent.signOut"),{closeIcon:f("close"),icon:f("warning"),type:"warning"})}catch{return}_("logoutSession",S)}async function E(){try{await Ce.confirm(a("generated.settingsContent.confirmSignOut"),a("generated.settingsContent.signOut2"),{closeIcon:f("close"),icon:f("warning"),type:"warning"})}catch{return}_("logout")}return(S,p)=>{const X=$e,ee=Me,T=Ie,D=Ue,R=Ge,ne=wt,re=je,be=Qe,Se=De("tooltip");return i(),h("section",{class:ke(["settings-content",{"personal-instructions-content":u.section==="personal-instructions","page-settings-content":u.section==="usage"||u.section==="git"||u.section==="quick-prompts"}])},[u.section==="usage"?(i(),N(on,{key:0,request:u.request},null,8,["request"])):u.section==="git"?(i(),N(ds,{key:1,request:u.request},null,8,["request"])):B("",!0),u.section==="account"?(i(),h("section",pn,[t("h2",null,o(e(a)("generated.settingsContent.accountSecurity")),1),t("p",mn,o(e(a)("generated.settingsContent.currentAccountAdminUpTo5Devices")),1),t("section",{class:"admin-sessions","aria-label":e(a)("generated.settingsContent.signInSessions")},[t("div",hn,[t("h3",null,o(e(a)("generated.settingsContent.signInSessions5",{value0:u.sessions.length})),1),pe(l(X,{class:"mar-icon-action",icon:e(f)("refresh"),loading:u.sessionsRefreshing,"loading-icon":e(f)("loading-action"),"aria-busy":u.sessionsRefreshing||void 0,"aria-label":e(a)("generated.settingsContent.refreshSignInSessions"),text:"",onClick:p[0]||(p[0]=g=>_("refreshSessions"))},null,8,["icon","loading","loading-icon","aria-busy","aria-label"]),[[Se,e(a)("generated.settingsContent.refreshSignInSessions")]])]),u.sessions.length===0?(i(),h("p",gn,o(e(a)("generated.settingsContent.noActiveSignInSessions")),1)):(i(),h("ul",fn,[(i(!0),h(W,null,le(u.sessions,g=>(i(),h("li",{key:g.id},[t("strong",null,o(g.current?e(a)("generated.settingsContent.currentDevice"):e(a)("generated.settingsContent.signedInDevice")),1),pe((i(),h("span",null,[m(o(g.userAgent),1)])),[[Se,g.userAgent]]),t("small",null,o(g.ipAddress)+" · "+o(e(a)("generated.settingsContent.signedIn"))+" "+o(u.formatSessionTime(g.createdAt))+" · "+o(e(a)("generated.settingsContent.expires"))+" "+o(u.formatSessionTime(g.expiresAt)),1),l(X,{link:"",type:"danger",icon:e(f)("delete"),onClick:Te=>P(g)},{default:r(()=>[m(o(e(a)("generated.settingsContent.signOut")),1)]),_:1},8,["icon","onClick"])]))),128))]))],8,vn),Ke(S.$slots,"account-identity",{},void 0,!0),t("div",bn,[l(X,{type:"primary",icon:e(f)("key"),onClick:p[1]||(p[1]=g=>C.value=!0)},{default:r(()=>[m(o(e(a)("generated.settingsContent.changePassword")),1)]),_:1},8,["icon"]),l(X,{loading:u.loading,plain:"",icon:e(f)("power"),onClick:E,"loading-icon":e(f)("loading-action")},{default:r(()=>[m(o(e(a)("generated.settingsContent.signOut2")),1)]),_:1},8,["loading","icon","loading-icon"])]),C.value?(i(),N(R,{key:0,onVnodeMounted:e(Ve),onVnodeBeforeUnmount:e(Ee),modelValue:C.value,"onUpdate:modelValue":p[8]||(p[8]=g=>C.value=g),title:e(a)("generated.settingsContent.changePassword2"),width:"min(420px, calc(100vw - 32px))","close-icon":e(f)("close")},{footer:r(()=>[l(X,{onClick:ce},{default:r(()=>[m(o(e(a)("generated.settingsContent.cancel")),1)]),_:1}),l(X,{loading:u.loading||ve.value,type:"primary",onClick:me,"loading-icon":e(f)("loading-action")},{default:r(()=>[m(o(e(a)("generated.settingsContent.confirmChange")),1)]),_:1},8,["loading","loading-icon"])]),default:r(()=>[l(D,{"label-position":"top",onSubmit:Pe(me,["prevent"])},{default:r(()=>[l(T,{label:e(a)("generated.settingsContent.currentPassword"),required:""},{default:r(()=>[l(ee,{modelValue:F.value,"onUpdate:modelValue":p[2]||(p[2]=g=>F.value=g),placeholder:e(a)("generated.settingsContent.enterCurrentPassword"),"aria-label":e(a)("generated.settingsContent.currentPassword2"),type:"password",autocomplete:"current-password",onInput:p[3]||(p[3]=g=>_("clearPasswordError"))},null,8,["modelValue","placeholder","aria-label"])]),_:1},8,["label"]),l(T,{label:e(a)("generated.settingsContent.newPassword"),required:""},{default:r(()=>[l(ee,{modelValue:L.value,"onUpdate:modelValue":p[4]||(p[4]=g=>L.value=g),placeholder:e(a)("generated.settingsContent.enterNewPassword"),"aria-label":e(a)("generated.settingsContent.newPassword2"),type:"password",autocomplete:"new-password",onInput:p[5]||(p[5]=g=>_("clearPasswordError"))},null,8,["modelValue","placeholder","aria-label"])]),_:1},8,["label"]),l(T,{label:e(a)("generated.settingsContent.confirmNewPassword"),required:""},{default:r(()=>[l(ee,{modelValue:H.value,"onUpdate:modelValue":p[6]||(p[6]=g=>H.value=g),placeholder:e(a)("generated.settingsContent.enterTheNewPasswordAgain"),"aria-label":e(a)("generated.settingsContent.confirmNewPassword2"),type:"password",autocomplete:"new-password",onInput:p[7]||(p[7]=g=>_("clearPasswordError"))},null,8,["modelValue","placeholder","aria-label"])]),_:1},8,["label"]),u.passwordValidationError?(i(),h("p",yn,o(u.passwordValidationError),1)):B("",!0)]),_:1})]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title","close-icon"])):B("",!0)])):u.section==="registration"?(i(),h("section",kn,[t("h2",null,o(e(a)("generated.settingsContent.nodeRegistration")),1),t("p",_n,o(e(a)("generated.settingsContent.createAOneTimeTokenThenComplete")),1),e(n)?(i(),h("p",wn,[l(ne,{type:"primary",icon:e(f)("link"),underline:!1,href:e(ot)(e(Q),"deployment/node-installation"),target:"_blank",rel:"noopener noreferrer"},{default:r(()=>[m(o(e(a)("generated.settingsContent.viewNodeDeploymentAndAutoStartGuide")),1)]),_:1},8,["icon","href"])])):B("",!0),t("div",Sn,[Ke(S.$slots,"registration-owner",{},void 0,!0),l(X,{loading:u.registrationLoading,type:"primary",onClick:p[9]||(p[9]=g=>_("createRegistrationToken")),"loading-icon":e(f)("loading-action")},{default:r(()=>[m(o(e(a)("generated.settingsContent.createOneTimeNodeRegistrationToken")),1)]),_:1},8,["loading","loading-icon"])]),u.registrationToken?(i(),h("p",Tn,[t("code",null,o(u.registrationToken),1)])):B("",!0)])):u.section==="custom-themes"?(i(),N(xa,{key:4,class:"full"})):u.section==="appearance"?(i(),h("section",Cn,[t("h2",null,o(e(v)("settings.appearance")),1),t("p",$n,o(e(v)("settings.appearanceSummary")),1),t("div",xn,[t("div",Pn,[t("label",En,o(e(v)("settings.theme")),1),l(be,{id:"appearance-theme","model-value":e(x),class:"theme-select","aria-label":e(v)("settings.theme"),"onUpdate:modelValue":p[10]||(p[10]=g=>J(g)),"clear-icon":e(f)("clear-input"),"suffix-icon":e(f)("chevron-down")},{default:r(()=>[l(re,{label:e(v)("settings.light"),value:"daylight"},null,8,["label"]),l(re,{label:e(v)("settings.dark"),value:"vscode-dark-2026"},null,8,["label"]),(i(!0),h(W,null,le(Z.value,g=>(i(),N(re,{key:g.id,label:g.name,value:g.id},null,8,["label","value"]))),128))]),_:1},8,["model-value","aria-label","clear-icon","suffix-icon"])]),t("div",Vn,[t("label",In,o(e(v)("settings.defaultFileMode")),1),l(be,{id:"appearance-file-editor","model-value":e(y),class:"theme-select","aria-label":e(v)("settings.defaultFileMode"),"onUpdate:modelValue":p[11]||(p[11]=g=>e(Y).setMode(g)),"clear-icon":e(f)("clear-input"),"suffix-icon":e(f)("chevron-down")},{default:r(()=>[l(re,{label:e(v)("settings.fileModeEdit"),value:"edit"},null,8,["label"]),l(re,{label:e(v)("settings.fileModeReadOnly"),value:"read-only"},null,8,["label"])]),_:1},8,["model-value","aria-label","clear-icon","suffix-icon"])]),t("div",Un,[t("label",Nn,o(e(v)("settings.iconTheme")),1),l(be,{id:"appearance-icon-theme","model-value":e(V),class:"theme-select","aria-label":e(v)("settings.iconTheme"),"onUpdate:modelValue":p[12]||(p[12]=g=>M(g)),"clear-icon":e(f)("clear-input"),"suffix-icon":e(f)("chevron-down")},{default:r(()=>[(i(!0),h(W,null,le(e(eo),g=>(i(),N(re,{key:g.id,label:e(v)(g.labelKey),value:g.id},null,8,["label","value"]))),128))]),_:1},8,["model-value","aria-label","clear-icon","suffix-icon"])]),t("div",qn,[t("label",Rn,o(e(v)("common.language")),1),l(be,{id:"appearance-language","model-value":e(Q),class:"theme-select","aria-label":e(v)("common.language"),"onUpdate:modelValue":p[13]||(p[13]=g=>oe(g)),"clear-icon":e(f)("clear-input"),"suffix-icon":e(f)("chevron-down")},{default:r(()=>[(i(!0),h(W,null,le(e(Ht),g=>(i(),N(re,{key:g.value,label:g.nativeLabel,value:g.value},null,8,["label","value"]))),128))]),_:1},8,["model-value","aria-label","clear-icon","suffix-icon"])]),l(ja)])])):u.section==="notifications"&&u.systemNotifications?(i(),h("section",Mn,[t("h2",null,o(e(v)("workbenchNotificationCenter.systemNotifications.title")),1),t("p",Gn,o(e(v)(u.systemNotifications.mode==="mobile-push"?"workbenchNotificationCenter.webPush.summary":"workbenchNotificationCenter.systemNotifications.summary")),1),l(dn,{service:u.systemNotifications},null,8,["service"])])):u.section==="quick-prompts"?(i(),N(Ma,{key:7,class:"full",prompts:u.quickPrompts,loading:u.quickPromptsLoading,failed:u.quickPromptsFailed,request:u.request,refresh:u.refreshQuickPrompts},null,8,["prompts","loading","failed","request","refresh"])):u.section==="personal-instructions"?(i(),N(Ha,{key:8,class:"full",request:u.request},null,8,["request"])):u.section==="shortcuts"?(i(),h("section",An,[t("h2",null,o(e(a)("generated.settingsContent.keyboardShortcuts")),1),t("p",On,o(e(a)("generated.settingsContent.theFollowingShortcutsAreAvailableInThe")),1),t("p",Bn,o(e(a)("keyboardShortcuts.platformHint")),1),t("section",Fn,[t("h3",Dn,o(e(a)("shortcutGroups.workspace")),1),t("dl",Ln,[t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(Jt)[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.openRecentSessions")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(de).cycle[0])),1),p[17]||(p[17]=m(" / ",-1)),t("kbd",null,o(e(q)(e(de).cycle[1])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.cycleWorkspaceTabs")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(de).cycle[2])),1),p[18]||(p[18]=m(" / ",-1)),t("kbd",null,o(e(q)(e(de).cycle[3])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.cycleWorkspaceTabsWithCtrlTab")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(de).numbered[1]))+"…"+o(e(de).numbered[9].key)+"/"+o(e(de).numbered[0].key),1)]),t("dd",null,o(e(a)("keyboardShortcuts.selectWorkspaceTab")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(de).newSession[0])),1),p[19]||(p[19]=m(" / ",-1)),t("kbd",null,o(e(q)(e(de).newSession[1])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.openNewSession")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(de).close[0])),1),p[20]||(p[20]=m(" / ",-1)),t("kbd",null,o(e(q)(e(de).close[1])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.closeWorkspaceTab")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(de).close[2])),1),p[21]||(p[21]=m(" / ",-1)),t("kbd",null,o(e(q)(e(de).close[3])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.closeAllWorkspaceTabs")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(de).changes[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.openGitChanges")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(de).terminal[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.focusWorkspaceTerminal")),1)])])]),t("section",Hn,[t("h3",Wn,o(e(a)("shortcutGroups.files")),1),t("dl",Kn,[t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(de).quickOpen[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.quickOpenWorkspaceFile")),1)]),t("div",null,[t("dt",null,[p[22]||(p[22]=t("kbd",null,"↑",-1)),p[23]||(p[23]=m("/",-1)),p[24]||(p[24]=t("kbd",null,"↓",-1)),p[25]||(p[25]=m(", ",-1)),t("kbd",null,o(e(q)(e(he).choose[0])),1),p[26]||(p[26]=m("/",-1)),t("kbd",null,o(e(q)(e(he).dismiss[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.quickOpenNavigation")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(he).choose[1])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.quickOpenSeparatePreview")),1)]),t("div",null,[p[27]||(p[27]=t("dt",null,[t("kbd",null,"Ctrl"),t("span",null,"+"),t("kbd",null,"Click")],-1)),t("dd",null,o(e(a)("keyboardShortcuts.openCompanionPreview")),1)]),t("div",null,[p[28]||(p[28]=t("dt",null,[t("kbd",null,"←"),m("/"),t("kbd",null,"→"),m(", "),t("kbd",null,"Home"),m("/"),t("kbd",null,"End")],-1)),t("dd",null,o(e(a)("keyboardShortcuts.fileTabNavigation")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(he).dismiss[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.closeFileTab")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(he).back[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.previousPreviewLocation")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(he).forward[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.nextPreviewLocation")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(de).preview[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.openMarkdownPreview")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(he).dismiss[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.closeStandalonePreview")),1)])])]),t("section",Qn,[t("h3",jn,o(e(a)("shortcutGroups.editing")),1),t("dl",Jn,[t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(de).search[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.searchWorkspaceContent")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(he).find[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.findInPreview")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(at)[0])),1),p[29]||(p[29]=m("/",-1)),t("kbd",null,o(e(q)(e(at)[1])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.findMatchNavigation")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(he).dismiss[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.closeEmbeddedFind")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(he).symbols[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.openEditorSymbols")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(he).toggleEdit[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.toggleFileEditing")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(he).selectAll[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.selectEditorContent")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(he).replace[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.replaceInEditor")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(he).save[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.saveEditor")),1)])])]),t("section",zn,[t("h3",Yn,o(e(a)("shortcutGroups.composer")),1),t("dl",Zn,[t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(zt)[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.openComposerModelMenu")),1)]),t("div",null,[p[30]||(p[30]=t("dt",null,[t("kbd",null,"Tab"),m("/"),t("kbd",null,"Shift"),t("span",null,"+"),t("kbd",null,"Tab")],-1)),t("dd",null,o(e(a)("keyboardShortcuts.modelMenuGroup")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(st)[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.sendMessage")),1)]),t("div",null,[p[31]||(p[31]=t("dt",null,[t("kbd",null,"Shift"),m("/"),t("kbd",null,"Alt"),t("span",null,"+"),t("kbd",null,"Enter")],-1)),t("dd",null,o(e(a)("keyboardShortcuts.composerNewline")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(st)[1])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.replaceRunningMessage")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(Yt)[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.stopRun")),1)]),t("div",null,[p[32]||(p[32]=t("dt",null,[t("kbd",null,"@")],-1)),t("dd",null,o(e(a)("keyboardShortcuts.openFileReferences")),1)]),t("div",null,[p[33]||(p[33]=t("dt",null,[t("kbd",null,"/")],-1)),t("dd",null,o(e(a)("keyboardShortcuts.openAgentCommands")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(nt).save[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.saveQueuedMessage")),1)]),t("div",null,[t("dt",null,[t("kbd",null,o(e(q)(e(nt).execute[0])),1)]),t("dd",null,o(e(a)("keyboardShortcuts.runQueuedMessage")),1)])])])])):u.section==="about"?(i(),h("section",Xn,[t("div",{class:"system-brand","aria-label":e(v)("settings.about")},[t("img",{src:e(pt),alt:""},null,8,tl),t("div",null,[t("strong",null,o(e(a)("common.productName")),1),t("code",null,"v"+o(e(G)),1)])],8,el),t("dl",ol,[t("div",null,[t("dt",null,o(e(v)("webUpdate.displayModeLabel")),1),t("dd",null,o(e(v)(`webUpdate.displayMode.${ae.value?"standalone":"browser"}`)),1)]),u.pwaState?(i(),h("div",al,[t("dt",null,o(e(v)("webUpdate.offlineLabel")),1),t("dd",null,[t("span",null,o(e(v)(`webUpdate.offline.${u.pwaState.offline}`)),1),t("div",sl,[l(X,{loading:u.checkingForUpdates,onClick:p[14]||(p[14]=g=>_("checkForUpdates"))},{default:r(()=>[m(o(e(v)("webUpdate.check")),1)]),_:1},8,["loading"]),u.pwaState.update?(i(),N(X,{key:0,type:"primary",onClick:p[15]||(p[15]=g=>_("applyWebUpdate"))},{default:r(()=>[m(o(e(v)("webUpdate.apply")),1)]),_:1})):u.pwaState.reload?(i(),N(X,{key:1,onClick:p[16]||(p[16]=g=>_("applyWebUpdate"))},{default:r(()=>[m(o(e(v)(u.pwaState.reload.action==="activate"?"webUpdate.usePrepared":"webUpdate.reloadPrepared")),1)]),_:1})):B("",!0)])])])):B("",!0),e(n)?(i(),h("div",nl,[t("dt",null,o(e(v)("settings.documentation")),1),t("dd",null,[l(ne,{href:e(ot)(e(Q),"getting-started/overview"),target:"_blank",underline:!1},{default:r(()=>[m(o(e(v)("settings.openDocumentation")),1)]),_:1},8,["href"])])])):B("",!0),t("div",null,[t("dt",null,o(e(v)("settings.thirdPartyOpenSourceSoftware")),1),t("dd",null,[t("p",ll,o(e(v)("settings.thirdPartySummary")),1),t("dl",il,[(i(),h(W,null,le(j,g=>t("div",{key:g},[t("dt",null,o(e(v)("settings.thirdPartyGroups."+g+".title")),1),t("dd",null,o(e(v)("settings.thirdPartyGroups."+g+".components")),1)])),64))]),l(ne,{class:"third-party-notices-link",href:"/THIRD_PARTY_NOTICES.txt",target:"_blank",rel:"noopener noreferrer",underline:!1},{default:r(()=>[m(o(e(v)("settings.viewThirdPartyNotices")),1)]),_:1}),t("p",rl,o(e(v)("settings.thirdPartyDistributionNotices")),1)])])])])):B("",!0)],2)}}}),pi=ye(cl,[["__scopeId","data-v-c029bdfd"]]);export{pi as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Q}from"./el-input-B2Nof_cr.js";import{E as Z}from"./index-DOLrLWUV.js";import{E as G,a as H}from"./el-select-DBNt1msu.js";import{a as J,E as X}from"./el-table-column-B_iZELUe.js";import{m as Y,w as q,a0 as y,t as n,a1 as j,o as d,J as p,K as r,n as C,X as _,Y as g,L as t,q as m,M as c,H as ee,a3 as te,N as A,V as O,Z as P,W as ne,a8 as oe,k as ie,f,_ as ae}from"./index-BEELfYGZ.js";import"./el-scrollbar-K7eVpxQ7.js";/* empty css */import"./el-checkbox-CGRzOjDl.js";import{E as re}from"./message-box-service-Bt8ZxdJl.js";import{a as se}from"./enterprise-management-service-CG71nGIU.js";import{o as T}from"./oauth-callback-BVVtUcaY.js";import le from"./SettingsContent-Djq-KXqQ.js";import"./use-form-common-props-mcyC3w-u.js";import"./vnode-CG_nLPou.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-CpPVpKOG.js";import"./merge-CFyFeS5y.js";import"./isArrayLikeObject-DdIC_9HC.js";import"./mobile-dialog-return-service-lRpqLQ4m.js";import"./last-DXTTfs9a.js";import"./el-form-item-CoJM2Hlw.js";import"./workbench-presentation-DyHrQcrJ.js";import"./time-presentation-unYkc6Yq.js";import"./conversation-history-K5KJjagU.js";import"./FilePreviewLoading-CCHsarTJ.js";import"./BusyIndicator-D3z5mSYz.js";import"./AuthEntryPanel-L6a1edei.js";import"./uuid-BmNSYLtZ.js";import"./error-presentation-0VNQQ2nr.js";import"./MarIcon-Co9d87Zk.js";import"./el-radio-npWoUqDX.js";/* empty css *//* empty css */import"./runner-presentation-hpB_DTwD.js";import"./HtmlPreviewFrame-3T3NlO-b.js";import"./el-switch-yJdlzAOS.js";import"./file-presentation-Cm7tx53N.js";import"./el-alert-DmVsBvUv.js";import"./WorkbenchPage-Do7CXbzf.js";import"./workbench-live-service-DwzHqrE7.js";import"./workspace-direct-transfer-service-H0f55kLn.js";import"./hosted-conversation-template-client-DQPHLrAO.js";import"./code-navigation-target-BlnRe0-a.js";import"./mcp-center-service-DiM2Ti2y.js";import"./catalog-page-service-bZJ62ES7.js";import"./ManagementPagination-CSNsQQGq.js";import"./el-date-picker-CRwKPW7Q.js";import"./index-1wDLFmml.js";import"./advancedFormat-COanKdEE.js";import"./union-s1ErPvjZ.js";import"./el-input-number-C7R4Dpyt.js";import"./el-cascader-BOobdI59.js";import"./use-wheel-BmcW1XgC.js";import"./NodeDetailsDialogs-BlNTYQYy.js";import"./el-descriptions-BFAMFbyx.js";import"./EnvironmentSecretManager-tHrtBCMq.js";import"./management-url-service-CWmMGb2s.js";const de=["aria-label"],ce={class:"admin-sessions-heading"},ue={key:0,class:"registration-owner"},me=Y({inheritAttrs:!1,__name:"SettingsContent",props:{section:{},sessions:{},newPassword:{},passwordValidationError:{},registrationToken:{},registrationLoading:{type:Boolean},loading:{type:Boolean},changePassword:{type:Function},formatSessionTime:{type:Function},request:{type:Function},edition:{},role:{},managementWritable:{type:Boolean},quickPrompts:{},quickPromptsLoading:{type:Boolean},quickPromptsFailed:{type:Boolean},refreshQuickPrompts:{type:Function}},emits:["createRegistrationToken"],setup(u,{emit:S}){const e=u,L=S,N="0.14.11",I=ie(()=>({section:e.section,sessions:e.sessions,newPassword:e.newPassword,passwordValidationError:e.passwordValidationError,registrationToken:e.registrationToken,registrationLoading:e.registrationLoading,loading:e.loading,changePassword:e.changePassword,formatSessionTime:e.formatSessionTime,request:e.request,quickPrompts:e.quickPrompts,quickPromptsLoading:e.quickPromptsLoading,quickPromptsFailed:e.quickPromptsFailed,refreshQuickPrompts:e.refreshQuickPrompts})),h=f([]),b=f("PERSONAL"),B=f([]),s=f(!1),v=f(!1);let w=0;q(()=>[e.section,e.edition],async([i,o])=>{if(!(i!=="registration"||o!=="ENTERPRISE"||e.role==="MEMBER"))try{h.value=(await e.request("/api/organizations")).organizations}catch{h.value=[]}},{immediate:!0}),q(()=>[e.section,e.edition],async([i,o])=>{i!=="account"||o!=="ENTERPRISE"||await k()},{immediate:!0});async function k(i=!1){const o=++w;s.value=!0,v.value=i;try{const l=(await e.request("/api/oauth-bindings")).bindings;o===w&&(B.value=l)}catch(l){o===w&&y(T(l,n("generated.settingsContent.unableToLoadOAuthBindings")),"error",l)}finally{o===w&&(s.value=!1,v.value=!1)}}async function V(){s.value||await k(!0)}async function F(i){try{const o=await e.request(`/api/oauth-bindings/${encodeURIComponent(i.providerKey)}/begin`,{method:"POST"});window.location.assign(o.authorizationUrl)}catch(o){y(T(o,n("generated.settingsContent.unableToStartOAuthBinding")),"error",o)}}async function x(i){try{await re.confirm(n("generated.settingsContent.unbindFromTheCurrentAccount",{value0:i.name}),n("generated.settingsContent.unbindOAuth"),{closeIcon:c("close"),icon:c("warning"),type:"warning"}),await e.request(`/api/oauth-bindings/${encodeURIComponent(i.providerKey)}`,{method:"DELETE"}),await k(),y(n("generated.settingsContent.oAuthBindingRemoved"),"success")}catch(o){o!=="cancel"&&y(T(o,n("generated.settingsContent.unableToRemoveOAuthBinding")),"error",o)}}function M(){L("createRegistrationToken",typeof b.value=="number"?{ownerType:"ORGANIZATION",ownerOrganizationId:b.value}:void 0)}return(i,o)=>{const l=Q,E=X,W=Z,$=J,R=H,z=G,D=j("tooltip"),K=ne;return d(),p(le,oe({...I.value,...i.$attrs},{"web-version":t(N),onCreateRegistrationToken:M}),{"account-identity":r(()=>[u.edition==="ENTERPRISE"?(d(),C("section",{key:0,class:"oauth-bindings","aria-label":t(n)("generated.settingsContent.oAuthAccountBindings")},[_("div",ce,[_("h3",null,g(t(n)("generated.settingsContent.oAuthAccountBindings2")),1),O(m(l,{class:"mar-icon-action",icon:t(c)("refresh"),loading:v.value,"loading-icon":t(c)("loading-action"),disabled:s.value,"aria-label":t(n)("generated.settingsContent.refresh"),text:"",onClick:V},null,8,["icon","loading","loading-icon","disabled","aria-label"]),[[D,t(n)("generated.settingsContent.refresh")]])]),O((d(),p($,{"aria-busy":s.value,data:B.value,"row-key":"providerKey"},{default:r(()=>[m(E,{prop:"name",label:t(n)("generated.settingsContent.identityProvider")},null,8,["label"]),m(E,{label:t(n)("generated.settingsContent.status"),width:"110"},{default:r(({row:a})=>[m(W,{type:a.bound?"success":"info",effect:"light"},{default:r(()=>[P(g(a.bound?t(n)("generated.settingsContent.bound"):t(n)("generated.settingsContent.notBound")),1)]),_:2},1032,["type"])]),_:1},8,["label"]),m(E,{label:t(n)("generated.settingsContent.actions"),width:"120"},{default:r(({row:a})=>[a.bound?(d(),p(l,{key:1,link:"",type:"danger",icon:t(c)("unlock"),disabled:u.managementWritable!==!0||s.value,onClick:U=>x(a)},{default:r(()=>[P(g(t(n)("generated.settingsContent.unbind")),1)]),_:1},8,["icon","disabled","onClick"])):(d(),p(l,{key:0,link:"",icon:t(c)("link"),disabled:u.managementWritable!==!0||s.value,onClick:U=>F(a)},{default:r(()=>[P(g(t(n)("generated.settingsContent.bind")),1)]),_:1},8,["icon","disabled","onClick"]))]),_:1},8,["label"])]),_:1},8,["aria-busy","data"])),[[K,s.value&&!v.value]])],8,de)):A("",!0)]),"registration-owner":r(()=>[u.edition==="ENTERPRISE"?(d(),C("label",ue,[_("span",null,g(t(n)("generated.settingsContent.nodeOwnership")),1),m(z,{modelValue:b.value,"onUpdate:modelValue":o[0]||(o[0]=a=>b.value=a),placeholder:t(n)("generated.settingsContent.selectOwnership"),"clear-icon":t(c)("clear-input"),"suffix-icon":t(c)("chevron-down")},{default:r(()=>[m(R,{label:t(n)("generated.settingsContent.personal"),value:"PERSONAL"},null,8,["label"]),(d(!0),C(ee,null,te(h.value,a=>(d(),p(R,{key:a.id,label:t(se)(h.value,a.id),value:a.id,disabled:u.role==="MEMBER"||u.managementWritable!==!0},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue","placeholder","clear-icon","suffix-icon"])])):A("",!0)]),_:1},16,["web-version"])}}}),ht=ae(me,[["__scopeId","data-v-0a6e4e37"]]);export{ht as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.el-empty{--el-empty-padding:40px 0;--el-empty-image-width:160px;--el-empty-description-margin-top:20px;--el-empty-bottom-margin-top:20px;--el-empty-fill-color-0:var(--el-color-white);--el-empty-fill-color-1:#fcfcfd;--el-empty-fill-color-2:#f8f9fb;--el-empty-fill-color-3:#f7f8fc;--el-empty-fill-color-4:#eeeff3;--el-empty-fill-color-5:#edeef2;--el-empty-fill-color-6:#e9ebef;--el-empty-fill-color-7:#e5e7e9;--el-empty-fill-color-8:#e0e3e9;--el-empty-fill-color-9:#d5d7de;text-align:center;box-sizing:border-box;padding:var(--el-empty-padding);flex-direction:column;justify-content:center;align-items:center;display:flex}.el-empty__image{width:var(--el-empty-image-width)}.el-empty__image img{-webkit-user-select:none;user-select:none;vertical-align:top;object-fit:contain;width:100%;height:100%}.el-empty__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;vertical-align:top;width:100%;height:100%}.el-empty__description{margin-top:var(--el-empty-description-margin-top)}.el-empty__description p{font-size:var(--el-font-size-base);color:var(--el-text-color-secondary);margin:0}.el-empty__bottom{margin-top:var(--el-empty-bottom-margin-top)}.el-segmented--vertical{flex-direction:column}.el-segmented--vertical .el-segmented__item{padding:11px}.el-segmented{--el-segmented-color:var(--el-text-color-regular);--el-segmented-bg-color:var(--el-fill-color-light);--el-segmented-padding:2px;--el-segmented-item-selected-color:var(--el-color-white);--el-segmented-item-selected-bg-color:var(--el-color-primary);--el-segmented-item-selected-disabled-bg-color:var(--el-color-primary-light-5);--el-segmented-item-hover-color:var(--el-text-color-primary);--el-segmented-item-hover-bg-color:var(--el-fill-color-dark);--el-segmented-item-active-bg-color:var(--el-fill-color-darker);--el-segmented-item-disabled-color:var(--el-text-color-placeholder);background:var(--el-segmented-bg-color);min-height:32px;padding:var(--el-segmented-padding);border-radius:var(--el-border-radius-base);color:var(--el-segmented-color);box-sizing:border-box;align-items:stretch;font-size:14px;display:inline-flex}.el-segmented__group{align-items:stretch;width:100%;display:flex;position:relative}.el-segmented__item-selected{background:var(--el-segmented-item-selected-bg-color);border-radius:calc(var(--el-border-radius-base) - 2px);pointer-events:none;width:10px;height:100%;transition:all .3s;position:absolute;top:0;left:0}.el-segmented__item-selected.is-disabled{background:var(--el-segmented-item-selected-disabled-bg-color)}.el-segmented__item-selected.is-focus-visible:before{content:"";border-radius:inherit;outline:2px solid var(--el-segmented-item-selected-bg-color);outline-offset:1px;position:absolute;inset:0}.el-segmented__item{cursor:pointer;border-radius:calc(var(--el-border-radius-base) - 2px);flex:1;align-items:center;padding:0 11px;display:flex}.el-segmented__item:not(.is-disabled):not(.is-selected):hover{color:var(--el-segmented-item-hover-color);background:var(--el-segmented-item-hover-bg-color)}.el-segmented__item:not(.is-disabled):not(.is-selected):active{background:var(--el-segmented-item-active-bg-color)}.el-segmented__item.is-selected,.el-segmented__item.is-selected.is-disabled{color:var(--el-segmented-item-selected-color)}.el-segmented__item.is-disabled{cursor:not-allowed;color:var(--el-segmented-item-disabled-color)}.el-segmented__item-input{opacity:0;pointer-events:none;width:0;height:0;margin:0;position:absolute}.el-segmented__item-label{text-align:center;text-overflow:ellipsis;white-space:nowrap;z-index:1;flex:1;line-height:normal;transition:color .3s;overflow:hidden}.el-segmented.is-block{display:flex}.el-segmented.is-block .el-segmented__item{min-width:0}.el-segmented--large{border-radius:var(--el-border-radius-base);min-height:40px;font-size:16px}.el-segmented--large .el-segmented__item-selected{border-radius:calc(var(--el-border-radius-base) - 2px)}.el-segmented--large .el-segmented--vertical .el-segmented__item{padding:11px}.el-segmented--large .el-segmented__item{border-radius:calc(var(--el-border-radius-base) - 2px);padding:0 11px}.el-segmented--small{border-radius:calc(var(--el-border-radius-base) - 1px);min-height:24px;font-size:14px}.el-segmented--small .el-segmented__item-selected{border-radius:calc(calc(var(--el-border-radius-base) - 1px) - 2px)}.el-segmented--small .el-segmented--vertical .el-segmented__item{padding:7px}.el-segmented--small .el-segmented__item{border-radius:calc(calc(var(--el-border-radius-base) - 1px) - 2px);padding:0 7px}.mcp-panel[data-v-44cde898]{display:flex;min-width:0;min-height:0;flex:1;flex-direction:column;gap:12px;overflow:auto;padding-right:4px}.mcp-filter-bar[data-v-44cde898]{display:grid;gap:10px}.mcp-filter-bar[data-v-44cde898]>.el-input{width:min(620px,100%)}.mcp-category-strip[data-v-44cde898]{display:flex;overflow-x:auto;gap:6px;padding:1px 0 3px;scrollbar-width:thin}.mcp-category-strip button[data-v-44cde898]{flex:none;border:1px solid var(--mar-border-medium);border-radius:999px;background:var(--mar-bg-panel);color:var(--mar-text-secondary);padding:5px 12px;font:inherit;font-size:var(--mar-font-size-body);cursor:pointer}.mcp-category-strip button[data-v-44cde898]:hover{border-color:var(--mar-border-strong);background:var(--mar-fill-row-hover);color:var(--mar-text-primary)}.mcp-category-strip button.selected[data-v-44cde898]{border-color:var(--mar-border-medium);background:var(--mar-fill-selection);color:var(--mar-text-primary);font-weight:400}.mcp-category-strip button[data-v-44cde898]:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:1px}.mcp-config-tabs[data-v-44cde898]{min-height:40px}.mcp-target-panel[data-v-44cde898]{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border-bottom:1px solid var(--mar-fill-hover);padding-bottom:12px}.mcp-target-panel>div[data-v-44cde898]:first-child{display:flex;flex:1 1 220px;flex-direction:column;gap:2px}.mcp-target-panel strong[data-v-44cde898]{color:var(--mar-text-primary);font-size:var(--mar-font-size-body)}.mcp-target-panel span[data-v-44cde898]{color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.mcp-target-panel .el-select[data-v-44cde898]{width:min(240px,100%)}.target-option-state[data-v-44cde898]{float:right;margin-left:16px;color:var(--el-text-color-secondary);font-size:var(--mar-font-size-meta)}.mcp-tags[data-v-44cde898]{display:flex;flex-wrap:wrap;gap:6px}.mcp-table-section[data-v-44cde898]{min-width:0;min-height:180px}.clickable-rows[data-v-44cde898] .el-table__row{cursor:pointer}.row-actions[data-v-44cde898]{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}.mcp-install-progress[data-v-44cde898]{display:grid;gap:6px;color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.mcp-install-progress__indicator[data-v-44cde898]{position:relative;overflow:hidden;block-size:4px;border-radius:2px;background:var(--el-fill-color-light)}.mcp-install-progress__indicator[data-v-44cde898]:after{position:absolute;inset:0 auto 0 0;width:40%;background:var(--el-color-primary);content:"";animation:mcp-install-progress-44cde898 1.4s ease-in-out infinite}@keyframes mcp-install-progress-44cde898{0%{transform:translate(-100%)}to{transform:translate(250%)}}@media(prefers-reduced-motion:reduce){.mcp-install-progress__indicator[data-v-44cde898]:after{width:100%;opacity:.6;animation:none;transform:none}}@media(max-width:720px){.mcp-target-panel .el-select[data-v-44cde898]{width:100%}.mcp-target-panel[data-v-44cde898] .el-button{min-height:36px}}.skill-page[data-v-5ac5b0f6]{display:flex;min-width:0;min-height:0;flex:1;flex-direction:column;gap:12px;overflow:hidden;background:var(--mar-bg-panel);padding:14px 16px}.skill-page-header[data-v-5ac5b0f6]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.skill-page-header p[data-v-5ac5b0f6]{margin:2px 0 0;color:var(--mar-text-secondary);font-size:var(--mar-font-size-body)}.skill-content[data-v-5ac5b0f6]{display:flex;min-height:0;min-width:0;flex:1;flex-direction:column;gap:12px;overflow:auto;padding-right:4px}.skill-config-tabs[data-v-5ac5b0f6]{min-height:260px}.skill-config-tabs[data-v-5ac5b0f6] .el-tab-pane{display:grid;gap:14px}.skill-filter-bar[data-v-5ac5b0f6]{display:grid;gap:10px}.skill-filter-bar[data-v-5ac5b0f6]>.el-input{width:min(620px,100%)}.skill-category-strip[data-v-5ac5b0f6]{display:flex;overflow-x:auto;gap:6px;padding:1px 0 3px;scrollbar-width:thin}.skill-category-strip button[data-v-5ac5b0f6]{flex:none;border:1px solid var(--mar-border-medium);border-radius:999px;background:var(--mar-bg-panel);color:var(--mar-text-secondary);padding:5px 12px;font:inherit;font-size:var(--mar-font-size-body);cursor:pointer}.skill-category-strip button[data-v-5ac5b0f6]:hover{border-color:var(--mar-border-strong);background:var(--mar-fill-row-hover);color:var(--mar-text-primary)}.skill-category-strip button.selected[data-v-5ac5b0f6]{border-color:var(--mar-border-medium);background:var(--mar-fill-selection);color:var(--mar-text-primary);font-weight:400}.skill-category-strip button[data-v-5ac5b0f6]:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:1px}.skill-tags[data-v-5ac5b0f6]{display:flex;flex-wrap:wrap;gap:6px}.skill-install-progress[data-v-5ac5b0f6]{display:grid;gap:5px;min-width:180px;color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.skill-install-progress__indicator[data-v-5ac5b0f6]{position:relative;overflow:hidden;block-size:4px;border-radius:2px;background:var(--el-fill-color-light)}.skill-install-progress__indicator[data-v-5ac5b0f6]:after{position:absolute;inset:0 auto 0 0;width:40%;background:var(--el-color-primary);content:"";animation:skill-install-progress-5ac5b0f6 1.4s ease-in-out infinite}@keyframes skill-install-progress-5ac5b0f6{0%{transform:translate(-100%)}to{transform:translate(250%)}}@media(prefers-reduced-motion:reduce){.skill-install-progress__indicator[data-v-5ac5b0f6]:after{width:100%;opacity:.6;animation:none;transform:none}}.skill-table-section[data-v-5ac5b0f6]{min-height:180px}.clickable-rows[data-v-5ac5b0f6] .el-table__row{cursor:pointer}.available-skill-table[data-v-5ac5b0f6] .skill-scope-column .cell{white-space:nowrap}.row-actions[data-v-5ac5b0f6]{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}.skill-empty[data-v-5ac5b0f6]{border:1px dashed var(--mar-border-medium);border-radius:8px;background:var(--mar-bg-subtle);padding:20px;color:var(--mar-text-secondary);font-size:var(--mar-font-size-body);text-align:center}.target-panel[data-v-5ac5b0f6]{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border-bottom:1px solid var(--mar-fill-hover);padding-bottom:12px}.target-panel>div[data-v-5ac5b0f6]:first-child{display:flex;flex:1 1 220px;flex-direction:column;gap:2px}.target-panel strong[data-v-5ac5b0f6]{color:var(--mar-text-primary);font-size:var(--mar-font-size-body)}.target-panel div span[data-v-5ac5b0f6],.target-name[data-v-5ac5b0f6]{color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.target-select[data-v-5ac5b0f6]{width:min(240px,100%)}.target-option-state[data-v-5ac5b0f6]{float:right;margin-left:16px;color:var(--el-text-color-secondary);font-size:var(--mar-font-size-meta)}.installed-heading[data-v-5ac5b0f6]{margin:4px 0 0;color:var(--mar-text-primary);font-size:var(--mar-font-size-body);font-weight:600}@media(max-width:700px){.skill-page[data-v-5ac5b0f6]{overflow-x:hidden;overflow-y:auto;padding:12px}.skill-content[data-v-5ac5b0f6],.skill-page[data-v-5ac5b0f6]>.mcp-panel{flex:none;overflow:visible;padding-right:0}.skill-filter-bar[data-v-5ac5b0f6]{grid-template-columns:1fr}.target-panel[data-v-5ac5b0f6] .el-button{min-height:36px}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as Ke}from"./el-alert-DmVsBvUv.js";import{C as ze,U as Ge,u as Ca,b as ka,E as qe,a as Ye}from"./el-input-B2Nof_cr.js";import{E as He}from"./index-DOLrLWUV.js";import{a as Xe,E as Je}from"./el-select-DBNt1msu.js";import{am as je,m as Ne,ap as xe,b9 as Qe,o,n as f,X as d,L as e,ao as ba,p as we,q as p,as as Ze,a6 as R,Y as m,N as V,k as I,aF as _a,au as ea,ay as Fe,az as Ue,ax as We,aJ as Pa,aB as ha,aC as Me,ce as ya,w as Y,aD as Na,H as Q,a3 as re,Z as T,f as E,cK as Sa,bf as Oe,l as wa,T as aa,U as la,a0 as q,e as ta,t as a,V as Te,W as na,K as g,J as N,M as k,a5 as ia,$ as Le,_ as ra}from"./index-BEELfYGZ.js";import{a as sa,E as oa}from"./el-table-column-B_iZELUe.js";import{E as da,a as ca}from"./el-tab-pane-D0rG2y_2.js";import{u as Ta,a as Ia}from"./use-form-common-props-mcyC3w-u.js";import"./el-scrollbar-K7eVpxQ7.js";import"./el-checkbox-CGRzOjDl.js";/* empty css */import{w as ua,M as ga}from"./ManagementPagination-CSNsQQGq.js";import{f as Ea}from"./time-presentation-unYkc6Yq.js";import{E as ve}from"./message-box-service-Bt8ZxdJl.js";import{c as Aa,s as ge,S as Va}from"./SkillDetailsDialog-BqdDZiga.js";import{c as Da}from"./mcp-center-service-DiM2Ti2y.js";import{M as $a}from"./McpDetailsDialog-BIXNILiX.js";import"./conversation-history-K5KJjagU.js";import{e as Ma}from"./error-presentation-0VNQQ2nr.js";import"./vnode-CG_nLPou.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-CpPVpKOG.js";import"./merge-CFyFeS5y.js";import"./isArrayLikeObject-DdIC_9HC.js";import"./mobile-dialog-return-service-lRpqLQ4m.js";import"./use-wheel-BmcW1XgC.js";import"./last-DXTTfs9a.js";import"./BusyIndicator-D3z5mSYz.js";import"./catalog-page-service-bZJ62ES7.js";import"./el-descriptions-BFAMFbyx.js";const Oa=je({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),La={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},xa=["id"],Ra=["stop-color"],Ba=["stop-color"],Fa=["id"],Ua=["stop-color"],Wa=["stop-color"],Ka=["id"],za={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Ga={transform:"translate(-1268.000000, -535.000000)"},qa={transform:"translate(1268.000000, 535.000000)"},Ya=["fill"],Ha=["fill"],Xa={transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},Ja=["fill"],ja=["fill"],Qa=["fill"],Za=["fill"],el=["fill"],al={transform:"translate(53.000000, 45.000000)"},ll=["fill","xlink:href"],tl=["fill","mask"],nl=["fill"];var il=Ne({name:"ImgEmpty",__name:"img-empty",setup(w){const h=xe("empty"),t=Qe();return(_,c)=>(o(),f("svg",La,[d("defs",null,[d("linearGradient",{id:`linearGradient-1-${e(t)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[d("stop",{"stop-color":`var(${e(h).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Ra),d("stop",{"stop-color":`var(${e(h).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,Ba)],8,xa),d("linearGradient",{id:`linearGradient-2-${e(t)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[d("stop",{"stop-color":`var(${e(h).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Ua),d("stop",{"stop-color":`var(${e(h).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,Wa)],8,Fa),d("rect",{id:`path-3-${e(t)}`,x:"0",y:"0",width:"17",height:"36"},null,8,Ka)]),d("g",za,[d("g",Ga,[d("g",qa,[d("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${e(h).cssVarBlockName("fill-color-3")})`},null,8,Ya),d("polygon",{fill:`var(${e(h).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,Ha),d("g",Xa,[d("polygon",{fill:`var(${e(h).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,Ja),d("polygon",{fill:`var(${e(h).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,ja),d("rect",{fill:`url(#linearGradient-1-${e(t)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,Qa),d("polygon",{fill:`var(${e(h).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,Za)]),d("rect",{fill:`url(#linearGradient-2-${e(t)})`,x:"13",y:"45",width:"40",height:"36"},null,8,el),d("g",al,[d("use",{fill:`var(${e(h).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${e(t)}`},null,8,ll),d("polygon",{fill:`var(${e(h).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${e(t)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,tl)]),d("polygon",{fill:`var(${e(h).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,nl)])])])]))}}),rl=il;const sl=["src"],ol={key:1};var dl=Ne({name:"ElEmpty",__name:"empty",props:Oa,setup(w){const h=w,{t}=ba(),_=xe("empty"),c=I(()=>h.description||t("el.table.emptyText")),A=I(()=>({width:_a(h.imageSize)}));return(S,H)=>(o(),f("div",{class:R(e(_).b())},[d("div",{class:R(e(_).e("image")),style:Ze(A.value)},[w.image?(o(),f("img",{key:0,src:w.image,ondragstart:"return false"},null,8,sl)):we(S.$slots,"image",{key:1},()=>[p(rl)])],6),d("div",{class:R(e(_).e("description"))},[S.$slots.description?we(S.$slots,"description",{key:0}):(o(),f("p",ol,m(c.value),1))],2),S.$slots.default?(o(),f("div",{key:0,class:R(e(_).e("bottom"))},[we(S.$slots,"default")],2)):V("v-if",!0)],2))}}),cl=dl;const pa=ea(cl),ma={label:"label",value:"value",disabled:"disabled"},ul=je({direction:{type:Me(String),default:"horizontal"},options:{type:Me(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:Me(Object),default:()=>ma},block:Boolean,size:Pa,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...ha(["ariaLabel"])}),gl={[Ge]:w=>Fe(w)||Ue(w)||We(w),[ze]:w=>Fe(w)||Ue(w)||We(w)},pl=["id","aria-label","aria-labelledby"],ml=["name","disabled","checked","onChange"];var vl=Ne({name:"ElSegmented",__name:"segmented",props:ul,emits:gl,setup(w,{emit:h}){const t=w,_=h,c=xe("segmented"),A=Qe(),S=Ta(),H=Ia(),{formItem:B}=Ca(),{inputId:Z,isLabeledByFormItem:$}=ka(t,{formItemContext:B}),b=E(null),P=Sa(),y=wa({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),ee=(C,G)=>{const x=X(G);_(Ge,x),_(ze,x),C.target.checked=x===t.modelValue},ae=I(()=>({...ma,...t.props})),X=C=>Oe(C)?C[ae.value.value]:C,J=C=>Oe(C)?C[ae.value.label]:C,F=C=>!!(H.value||Oe(C)&&C[ae.value.disabled]),K=C=>t.modelValue===X(C),fe=C=>t.options.find(G=>X(G)===C),U=C=>[c.e("item"),c.is("selected",K(C)),c.is("disabled",F(C))],L=()=>{if(!b.value)return;const C=b.value.querySelector(".is-selected"),G=b.value.querySelector(".is-selected input");if(!C||!G){y.width=0,y.height=0,y.translateX=0,y.translateY=0,y.focusVisible=!1;return}y.isInit=!0,t.direction==="vertical"?(y.height=C.offsetHeight,y.translateY=C.offsetTop):(y.width=C.offsetWidth,y.translateX=C.offsetLeft);try{y.focusVisible=G.matches(":focus-visible")}catch{}},ue=I(()=>[c.b(),c.m(S.value),c.is("block",t.block)]),D=I(()=>({width:t.direction==="vertical"?"100%":`${y.width}px`,height:t.direction==="vertical"?`${y.height}px`:"100%",transform:t.direction==="vertical"?`translateY(${y.translateY}px)`:`translateX(${y.translateX}px)`,display:y.isInit?"block":"none"})),z=I(()=>[c.e("item-selected"),c.is("disabled",F(fe(t.modelValue))),c.is("focus-visible",y.focusVisible)]),pe=I(()=>t.name||A.value);return ya(b,L),Y(P,L),Y(()=>t.options,L,{deep:!0,flush:"post"}),Y(()=>t.modelValue,()=>{L(),t.validateEvent&&B?.validate?.("change").catch(Na)},{flush:"post"}),(C,G)=>w.options.length?(o(),f("div",{key:0,id:e(Z),ref_key:"segmentedRef",ref:b,class:R(ue.value),role:"radiogroup","aria-label":e($)?void 0:w.ariaLabel||"segmented","aria-labelledby":e($)?e(B).labelId:void 0},[d("div",{class:R([e(c).e("group"),e(c).m(w.direction)])},[d("div",{style:Ze(D.value),class:R(z.value)},null,6),(o(!0),f(Q,null,re(w.options,(x,se)=>(o(),f("label",{key:se,class:R(U(x))},[d("input",{class:R(e(c).e("item-input")),type:"radio",name:pe.value,disabled:F(x),checked:K(x),onChange:Ce=>ee(Ce,x)},null,42,ml),d("div",{class:R(e(c).e("item-label"))},[we(C.$slots,"default",{item:x},()=>[T(m(J(x)),1)])],2)],2))),128))],2)],10,pl)):V("v-if",!0)}}),fl=vl;const va=ea(fl),Cl={"element-loading-custom-class":"mar-page-loading",class:"mcp-panel"},kl=["aria-label"],bl={class:"target-option-state"},_l={class:"mcp-filter-bar"},Pl=["aria-label"],hl=["onClick"],yl={class:"mcp-table-section"},Nl={key:1},Sl={key:0,class:"mcp-tags"},wl={key:2,class:"mcp-install-progress"},Tl=["aria-label"],Il=Ne({__name:"McpCenterPanel",props:{scopeLabel:{type:Function},request:{type:Function},nodes:{}},setup(w){const h=w,t=Da(h.request),_=E("NODE"),c=E(""),A=E(""),S=E(!1),H=I(()=>t.loading.value&&!S.value),B=t.catalogPage.keyword,Z=t.catalogPage.category,$=E("available"),b=t.catalogPage;ua(b);const P=E(""),y=E(!1),ee=E(!1),ae=E(),X=E({nodes:[],workspaces:[]}),J=I(()=>h.nodes.filter(i=>X.value.nodes.some(u=>u.id===i.id))),F=I(()=>X.value.workspaces.filter(i=>i.nodeId===c.value)),K=I(()=>J.value.find(i=>i.id===c.value)),fe=t.catalogPage.tags,U=I(()=>J.value.length===0?a("generated.mcpCenterPanel.thisAccountHasNoManageableNodes"):c.value===""?a("generated.mcpCenterPanel.selectANode"):K.value===void 0?a("generated.mcpCenterPanel.theSelectedNodeIsUnavailableSelectAnother"):K.value.disabled?a("generated.mcpCenterPanel.theSelectedNodeIsDisabledAndCannot"):K.value.connected?_.value==="WORKSPACE"&&F.value.length===0?a("generated.mcpCenterPanel.theSelectedNodeHasNoManageableWorkspaces"):_.value==="WORKSPACE"&&A.value===""?a("generated.mcpCenterPanel.selectAWorkspace"):"":a("generated.mcpCenterPanel.theSelectedNodeIsOfflineMCPCan")),L=I(()=>U.value===""),ue=I(()=>new Set(t.inspection.value?.installations.map(i=>i.serverName)??[])),D=I(()=>new Map(t.inspection.value?.installations.map(i=>[i.serverName,i])??[])),pe=I(()=>{const i=($.value==="installed"?t.installedCatalog.value:t.catalog.value).map(M=>({...M,catalogAvailable:!0})),u=new Set(i.map(M=>M.serverName)),O=(t.inspection.value?.installations??[]).filter(M=>!u.has(M.serverName)).map(M=>({id:M.catalogEntryId,sourceId:"",scope:"PERSONAL",serverName:M.serverName,displayName:M.displayName,description:a("generated.mcpCenterPanel.thisMCPServerWasRemovedFromThe"),version:M.version,featured:!1,tags:[],runtime:{transport:"STDIO"},catalogAvailable:!1}));return $.value==="installed"?[...i,...O].filter(M=>ue.value.has(M.serverName)):i}),C=pe;function G(i){return h.scopeLabel?.(i)??a("generated.mcpCenterPanel.personal")}function x(i){if(i==="CURRENT")return a("generated.mcpCenterPanel.upToDate");if(i==="UPDATE_AVAILABLE")return a("generated.mcpCenterPanel.updateAvailable");if(i==="INVALID")return a("generated.mcpCenterPanel.invalidConfiguration");if(i==="UNAVAILABLE")return a("generated.mcpCenterPanel.catalogEntryUnavailable")}function se(i){const u=D.value.get(i.serverName);return u!==void 0&&u.version!==i.version}function Ce(i){const u=D.value.get(i.serverName),O=se(i)?a("generated.mcpCenterPanel.updateAvailable2"):x(u?.status);ae.value={name:i.displayName,serverName:i.serverName,description:i.description,scope:G(i.scope),version:u?.version??i.version,transport:i.runtime.transport,...O?{status:O}:{},featured:i.featured,tags:i.tags},ee.value=!0}aa(()=>{b.start(),ke()}),la(()=>b.dispose()),Y([_,c,A],()=>{S.value=!1,Ie()}),Y(t.inspection,i=>{i!==void 0&&(S.value=!0)}),Y(J,i=>{i.some(u=>u.id===c.value)||(c.value=i[0]?.id??"")}),Y(F,i=>{i.some(u=>u.workspaceId===A.value)||(A.value=i[0]?.workspaceId??"")}),Y($,i=>{i==="available"&&le(t.loadCatalog)});async function ke(){await le(async()=>{await t.loadCatalog(),X.value=await h.request("/api/resources"),c.value=J.value.find(i=>i.connected&&!i.disabled)?.id??J.value[0]?.id??""})}async function Ie(){if(!L.value){t.clearTarget();return}await le(()=>t.inspect(_.value,c.value,A.value))}async function be(i,u=!0){P.value=i,y.value=!1;const O=setTimeout(()=>{P.value===i&&(y.value=!0)},800);try{await le(()=>t.install(_.value,c.value,A.value,i,u),u?a("generated.mcpCenterPanel.mCPInstallationWasValidatedOnTheNode"):a("generated.mcpCenterPanel.mCPServerDisabled"))}finally{clearTimeout(O),P.value="",y.value=!1}}async function Ee(i){try{await ve.confirm(a("generated.mcpCenterPanel.removeFromTheCurrentTarget",{value0:i}),a("generated.mcpCenterPanel.removeMCPServer"),{closeIcon:k("close"),icon:k("warning"),type:"warning",confirmButtonText:a("generated.mcpCenterPanel.remove"),cancelButtonText:a("generated.mcpCenterPanel.cancel")})}catch{return}await le(()=>t.remove(_.value,c.value,A.value,i),a("generated.mcpCenterPanel.mCPServerRemoved"))}async function le(i,u){try{await t.run(i),u&&q(u,"success")}catch(O){O!==t.catalogPage.error.value&&q(Ae(O),"error",O)}}function Ae(i){const u=ta(i);return u==="NODE_OFFLINE"?a("generated.mcpCenterPanel.theNodeIsOfflineTryAgainAfter"):u==="CAPABILITY_VERSION_UNSUPPORTED"?a("generated.mcpCenterPanel.thisNodeVersionDoesNotSupportMCP"):u==="CAPABILITY_UNAVAILABLE"?a("generated.mcpCenterPanel.mCPManagementIsNotEnabledOnThis"):u==="WORKSPACE_NOT_FOUND"?a("generated.mcpCenterPanel.theWorkspaceNoLongerExistsSelectAnother"):u==="MCP_INSTALL_TIMEOUT"?a("generated.mcpCenterPanel.mCPInstallationValidationTimedOutCheckNode"):u==="MCP_SECRET_MISSING"?a("generated.mcpCenterPanel.aSecretReferencedByMCPIsMissing"):u==="MCP_AUTH_FAILED"?a("generated.mcpCenterPanel.mCPAuthenticationFailedCheckTheReferencedSecrets"):u==="MCP_COMMAND_UNAVAILABLE"?a("generated.mcpCenterPanel.theNodeCouldNotStartTheMCP"):u==="MCP_CONNECTION_FAILED"?a("generated.mcpCenterPanel.theNodeCouldNotConnectToThe"):u==="MCP_PROTOCOL_VALIDATION_FAILED"?a("generated.mcpCenterPanel.mCPProtocolValidationFailedAfterStartupCheck"):u==="MCP_TOOLS_UNAVAILABLE"?a("generated.mcpCenterPanel.mCPConnectedButExposedNoToolsCheck"):u==="NODE_ACCESS_DENIED"||u==="WORKSPACE_FORBIDDEN"?a("generated.mcpCenterPanel.youDoNotHavePermissionToManage"):Ma(i)}return(i,u)=>{const O=va,M=Xe,_e=Je,oe=Ke,Pe=da,Ve=ca,De=qe,j=oa,ne=He,de=Ye,l=sa,s=pa,v=na;return Te((o(),f("section",Cl,[d("section",{class:"mcp-target-panel","aria-label":e(a)("generated.mcpCenterPanel.mCPConfigurationTarget")},[d("div",null,[d("strong",null,m(e(a)("generated.mcpCenterPanel.configurationTarget")),1),d("span",null,m(e(a)("generated.mcpCenterPanel.selectWhereTheMCPServerWillBe")),1)]),p(O,{modelValue:_.value,"onUpdate:modelValue":u[0]||(u[0]=n=>_.value=n),options:[{label:e(a)("generated.mcpCenterPanel.node"),value:"NODE"},{label:e(a)("generated.mcpCenterPanel.workspace"),value:"WORKSPACE"}]},null,8,["modelValue","options"]),p(_e,{modelValue:c.value,"onUpdate:modelValue":u[1]||(u[1]=n=>c.value=n),placeholder:e(a)("generated.mcpCenterPanel.selectANode2"),"clear-icon":e(k)("clear-input"),"suffix-icon":e(k)("chevron-down")},{default:g(()=>[(o(!0),f(Q,null,re(J.value,n=>(o(),N(M,{key:n.id,label:n.displayName||n.registeredAddress,value:n.id,disabled:n.disabled||!n.connected},{default:g(()=>[d("span",null,m(n.displayName||n.registeredAddress),1),d("span",bl,m(n.disabled?e(a)("generated.mcpCenterPanel.disabled"):n.connected?e(a)("generated.mcpCenterPanel.online"):e(a)("generated.mcpCenterPanel.offline")),1)]),_:2},1032,["label","value","disabled"]))),128))]),_:1},8,["modelValue","placeholder","clear-icon","suffix-icon"]),_.value==="WORKSPACE"?(o(),N(_e,{key:0,modelValue:A.value,"onUpdate:modelValue":u[2]||(u[2]=n=>A.value=n),placeholder:e(a)("generated.mcpCenterPanel.selectAWorkspace2"),"clear-icon":e(k)("clear-input"),"suffix-icon":e(k)("chevron-down")},{default:g(()=>[(o(!0),f(Q,null,re(F.value,n=>(o(),N(M,{key:n.workspaceId,label:n.displayName,value:n.workspaceId},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","clear-icon","suffix-icon"])):V("",!0)],8,kl),U.value?(o(),N(oe,{key:0,title:U.value,type:"info",closable:!1},null,8,["title"])):V("",!0),p(Ve,{modelValue:$.value,"onUpdate:modelValue":u[3]||(u[3]=n=>$.value=n),class:"mcp-config-tabs"},{default:g(()=>[p(Pe,{label:e(a)("generated.mcpCenterPanel.availableMCPServers"),name:"available"},null,8,["label"]),p(Pe,{label:e(a)("generated.mcpCenterPanel.installedMCPServers"),name:"installed"},null,8,["label"])]),_:1},8,["modelValue"]),d("div",_l,[p(De,{modelValue:e(B),"onUpdate:modelValue":u[4]||(u[4]=n=>ia(B)?B.value=n:null),clearable:"",placeholder:e(a)("generated.mcpCenterPanel.searchMCPServers"),"clear-icon":e(k)("clear-input")},null,8,["modelValue","placeholder","clear-icon"]),d("div",{class:"mcp-category-strip","aria-label":e(a)("generated.mcpCenterPanel.mCPCategories")},[d("button",{class:R({selected:e(Z)===""}),onClick:u[5]||(u[5]=n=>Z.value="")},m(e(a)("generated.mcpCenterPanel.all")),3),(o(!0),f(Q,null,re(e(fe),n=>(o(),f("button",{key:n,class:R({selected:e(Z)===n}),onClick:W=>Z.value=n},m(n),11,hl))),128))],8,Pl)]),Te((o(),f("div",yl,[e(pe).length>0?(o(),N(l,{key:0,class:"clickable-rows mcp-config-table",data:e(C),"row-key":"id",onRowClick:Ce,onSortChange:e(b).sort},{default:g(()=>[p(j,{prop:"displayName",label:e(a)("generated.mcpSourceManagementPage.name"),"min-width":"180",sortable:$.value==="available"?"custom":!0},null,8,["label","sortable"]),p(j,{prop:"serverName",label:e(a)("generated.mcpDetailsDialog.serverName"),"min-width":"180","show-overflow-tooltip":""},null,8,["label"]),p(j,{label:e(a)("generated.mcpSourceManagementPage.scope"),width:"100"},{default:g(({row:n})=>[T(m(G(n.scope)),1)]),_:1},8,["label"]),p(j,{prop:"description",label:e(a)("conversationTemplates.description"),"min-width":"260","show-overflow-tooltip":""},{default:g(({row:n})=>[T(m(n.description||e(a)("generated.mcpCenterPanel.noDescriptionIsAvailableForThisMCP")),1)]),_:1},8,["label"]),p(j,{label:e(a)("generated.mcpDetailsDialog.version"),width:"120"},{default:g(({row:n})=>[T(m(D.value.get(n.serverName)?.version??n.version),1)]),_:1},8,["label"]),$.value==="installed"?(o(),N(j,{key:0,label:e(a)("generated.mcpDetailsDialog.status"),"min-width":"150"},{default:g(({row:n})=>[D.value.get(n.serverName)?.origin==="NODE"&&_.value==="WORKSPACE"?(o(),N(ne,{key:0,type:"info",effect:"plain"},{default:g(()=>[T(m(e(a)("generated.mcpCenterPanel.inheritedFromNode")),1)]),_:1})):(o(),f("span",Nl,m(se(n)?e(a)("generated.mcpCenterPanel.updateAvailable3"):x(D.value.get(n.serverName)?.status)),1))]),_:1},8,["label"])):V("",!0),p(j,{label:e(a)("generated.mcpDetailsDialog.tags"),"min-width":"150"},{default:g(({row:n})=>[n.featured||n.tags.length>0?(o(),f("div",Sl,[n.featured?(o(),N(ne,{key:0,type:"warning",effect:"plain"},{default:g(()=>[T("★ "+m(e(a)("generated.mcpCenterPanel.featured")),1)]),_:1})):V("",!0),(o(!0),f(Q,null,re(n.tags,W=>(o(),N(ne,{key:W,type:"info",effect:"plain"},{default:g(()=>[T(m(W),1)]),_:2},1024))),128))])):V("",!0)]),_:1},8,["label"]),p(j,{label:e(a)("generated.mcpSourceManagementPage.actions"),"min-width":"300"},{default:g(({row:n})=>[d("div",{class:"row-actions",onClick:u[6]||(u[6]=Le(()=>{},["stop"]))},[$.value==="installed"?(o(),f(Q,{key:0},[p(de,{link:"",icon:e(k)("power"),disabled:!L.value||!n.catalogAvailable,onClick:W=>be(n.id,!D.value.get(n.serverName)?.enabled)},{default:g(()=>[T(m(D.value.get(n.serverName)?.enabled?e(a)("generated.mcpCenterPanel.disable"):e(a)("generated.mcpCenterPanel.enable")),1)]),_:2},1032,["icon","disabled","onClick"]),n.catalogAvailable?(o(),N(de,{key:0,link:"",icon:e(k)("retry"),disabled:!L.value,onClick:W=>be(n.id)},{default:g(()=>[T(m(se(n)?e(a)("generated.mcpCenterPanel.update"):e(a)("generated.mcpCenterPanel.reinstall")),1)]),_:2},1032,["icon","disabled","onClick"])):V("",!0),D.value.get(n.serverName)?.origin===_.value?(o(),N(de,{key:1,link:"",type:"danger",icon:e(k)("delete"),disabled:!L.value,onClick:W=>Ee(n.serverName)},{default:g(()=>[T(m(e(a)("generated.mcpCenterPanel.delete")),1)]),_:1},8,["icon","disabled","onClick"])):V("",!0)],64)):(o(),N(de,{key:1,link:"",icon:e(k)("download"),disabled:!L.value,onClick:W=>be(n.id)},{default:g(()=>[T(m(ue.value.has(n.serverName)?se(n)?e(a)("generated.mcpCenterPanel.update2"):e(a)("generated.mcpCenterPanel.reinstall2"):e(a)("generated.mcpCenterPanel.install")),1)]),_:2},1032,["icon","disabled","onClick"])),P.value===n.id&&y.value?(o(),f("div",wl,[d("span",null,m(e(a)("generated.mcpCenterPanel.downloadingAndValidatingMCPOnTheNode")),1),d("div",{class:"mcp-install-progress__indicator",role:"progressbar","aria-label":e(a)("generated.mcpCenterPanel.downloadingAndValidatingMCPOnTheNode")},null,8,Tl)])):V("",!0)])]),_:1},8,["label"])]),_:1},8,["data","onSortChange"])):(o(),N(s,{key:1,description:$.value==="installed"?e(a)("generated.mcpCenterPanel.thisTargetHasNoInstalledMCPServers"):e(a)("generated.mcpCenterPanel.noMCPServersAreAvailableAddOne")},null,8,["description"])),$.value==="available"?(o(),N(ga,{key:2,total:e(b).total.value,"has-more":e(b).hasMore.value,page:e(b).page.value,mobile:e(b).mobileViewport.value,"mobile-visible-count":e(b).mobileVisibleCount.value,loading:e(b).loading.value,"loading-more":e(b).loadingMore.value,onPage:e(b).setPage,failed:e(b).failure.value!==void 0,"incremental-failed":e(b).failure.value?.incremental===!0,error:e(b).failure.value?.error,"context-key":e(b).contextKey.value,onRetry:e(b).retry,onLoadMore:e(b).loadMore},null,8,["total","has-more","page","mobile","mobile-visible-count","loading","loading-more","onPage","failed","incremental-failed","error","context-key","onRetry","onLoadMore"])):V("",!0)])),[[v,e(b).loading.value&&!e(b).loadingMore.value&&(S.value||!L.value)]]),p($a,{modelValue:ee.value,"onUpdate:modelValue":u[7]||(u[7]=n=>ee.value=n),details:ae.value},null,8,["modelValue","details"])])),[[v,H.value]])}}}),El=ra(Il,[["__scopeId","data-v-44cde898"]]),Al=["aria-label"],Vl={class:"skill-page-header"},Dl={key:1,class:"skill-content"},$l=["aria-label"],Ml={class:"target-option-state"},Ol={class:"skill-filter-bar"},Ll=["aria-label"],xl=["onClick"],Rl=["element-loading-custom-class"],Bl={key:0,class:"skill-tags"},Fl={key:0,class:"skill-install-progress"},Ul=["aria-label"],Wl={key:1,class:"skill-empty"},Kl={class:"skill-table-section"},zl={key:1,class:"skill-install-progress"},Gl=["aria-label"],ql=Ne({__name:"SkillCenterPage",props:{scopeLabel:{type:Function},request:{type:Function},nodes:{}},setup(w){const h=w,t=Aa(h.request),_=E("NODE"),c=E(""),A=E(""),S=E(!1),H=E(),B=E(!1),Z=t.catalogPage.keyword,$=t.catalogPage.category,b=E("available"),P=t.catalogPage;ua(P);const y=E(!1),ee=E(!1),ae=E(),X=E("skill");let J=!1,F,K;const fe=I(()=>new Set(t.managedTargets.value.nodes.map(l=>l.id))),U=I(()=>h.nodes.filter(l=>fe.value.has(l.id))),L=I(()=>U.value.find(l=>l.id===c.value)),ue=I(()=>t.managedTargets.value.workspaces.filter(l=>l.nodeId===c.value)),D=I(()=>_.value==="WORKSPACE"&&A.value!==""?A.value:void 0),z=I(()=>L.value!==void 0&&L.value.connected&&!L.value.disabled&&(_.value==="NODE"||D.value!==void 0)),pe=t.catalogPage.tags,C=t.favorites,G=I(()=>t.target.value?.skills??[]),x=C,se=G;aa(()=>{P.start(),ke(t.loadCatalog)}),la(()=>{P.dispose()}),Y(P.result,l=>{l!==void 0&&(y.value=!0)}),Y([c,A,_],()=>{ke(async()=>{await Ce(),await le()})},{immediate:!0}),Y(U,l=>{if(l.some(v=>v.id===c.value))return;const s=l.find(v=>v.connected&&!v.disabled);c.value=s?.id??l[0]?.id??"",i()}),Y(b,l=>{l==="available"&&ke(t.loadCatalog)});async function Ce(){if(!J){if(F!==void 0)return F;F=(async()=>{if(await t.loadManagedTargets(),J=!0,!U.value.some(l=>l.id===c.value)){const l=U.value.find(s=>s.connected&&!s.disabled);c.value=l?.id??U.value[0]?.id??"",i()}})();try{await F}finally{F=void 0}}}async function ke(l,s){try{await l()}catch(v){if(v===t.catalogPage.error.value)return;q(ge(v,a("generated.skillCenterPage.theSkillOperationDidNotCompleteTry")),"error",v)}}function Ie(l){ae.value={name:l.normalizedName,description:l.description,source:l.repositoryIdentity,scope:de(l.scope),path:l.skillPath,version:l.commitSha.slice(0,8),updatedAt:Ee(l.updatedAt),featured:l.featured,tags:l.tags},ee.value=!0}function be(l){const s=oe(l);ae.value={name:l.name,description:l.description,status:Pe(l),...l.install===void 0?{}:{version:l.install.commitSha.slice(0,8)},...s===void 0?{}:{source:s.repositoryIdentity,path:s.skillPath,featured:s.featured,tags:s.tags}},ee.value=!0}function Ee(l){return Ea(l)}async function le(){if(!z.value||c.value===""){t.clearTarget();return}const l=c.value,s=D.value,v=`${l}:${s??""}`;if(K?.key===v)return K.operation;const n=t.inspectTarget(l,s);K={key:v,operation:n};try{await n}finally{K?.operation===n&&(K=void 0)}}async function Ae(){if(!(!z.value||c.value===""))try{await le();const l=t.target.value;if(l===void 0)return;const s=l.skills.filter(n=>n.localStatus!=="VALID").length,v=l.compatibilityMode==="SYMLINK"?a("generated.skillCenterPage.compatibleLink"):l.compatibilityMode==="JUNCTION"?a("generated.skillCenterPage.directoryJunction"):l.compatibilityMode==="MANAGED_COPY"?a("generated.skillCenterPage.managedCopy"):a("generated.skillCenterPage.unavailable");await ve.alert(a("generated.skillCenterPage.environmentModeSkillsFoundRequireAttention",{value0:v,value1:l.skills.length,value2:s}),s>0?a("generated.skillCenterPage.environmentCheckFoundIssues"):a("generated.skillCenterPage.environmentCheckPassed"),{closeIcon:k("close"),confirmButtonText:a("generated.skillCenterPage.oK"),icon:k(s>0?"warning":"success"),type:s>0?"warning":"success"})}catch(l){ne(l)||q(ge(l,a("generated.skillCenterPage.theEnvironmentCheckDidNotCompleteTry")),"error",l)}}function i(){const l=ue.value[0];A.value=l?.workspaceId??""}function u(){_.value==="WORKSPACE"&&A.value===""&&i()}function O(l,s){return t.target.value?.skills.find(v=>v.install?.favoriteId===l||v.name===s)}function M(l){if(S.value&&H.value===l.id)return a("generated.skillCenterPage.installing");const s=O(l.id,l.normalizedName);return s===void 0?a("generated.skillCenterPage.install"):s.install?.versionId===l.currentVersionId?a("generated.skillCenterPage.reinstall"):a("generated.skillCenterPage.update")}async function _e(l){if(!z.value||c.value===""||S.value)return;const s=c.value,v=D.value,n=`${s}:${v??""}`,W=O(l.id,l.normalizedName)!==void 0,Se=O(l.id,l.normalizedName);let he=!1,ie;try{W&&Se?.localStatus!=="INVALID_LINK"&&await ve.confirm(a("generated.skillCenterPage.reinstallingWillOverwriteExistingFilesForManual",{value0:l.normalizedName}),a("generated.skillCenterPage.overwriteSkill"),{closeIcon:k("close"),icon:k("warning"),type:"warning",confirmButtonText:a("generated.skillCenterPage.continue"),cancelButtonText:a("generated.skillCenterPage.cancel")}),S.value=!0,H.value=l.id,B.value=!1,ie=window.setTimeout(()=>{H.value===l.id&&(B.value=!0)},800),he=!0,await t.install(l.id,s,v,W),q(W?a("generated.skillCenterPage.skillUpdated"):a("generated.skillCenterPage.skillInstalled"),"success")}catch(ce){if(ne(ce))return;if(v!==void 0&&ta(ce)==="WORKSPACE_SKILL_TRACKED_CONFIRM_REQUIRED"){try{await ve.confirm(a("generated.skillCenterPage.theTargetContainsGitTrackedFilesOverwritten"),a("generated.skillCenterPage.overwriteTrackedFiles"),{closeIcon:k("close"),icon:k("warning"),type:"warning",confirmButtonText:a("generated.skillCenterPage.overwriteFiles"),cancelButtonText:a("generated.skillCenterPage.cancel2")}),await t.install(l.id,s,v,!0),q(a("generated.skillCenterPage.skillInstalled2"),"success",ce)}catch(ye){ne(ye)||q(ge(ye,a("generated.skillCenterPage.skillInstallationDidNotCompleteTryAgain")),"error",ye)}return}q(ge(ce,a("generated.skillCenterPage.skillInstallationDidNotCompleteTryAgain2")),"error",ce)}finally{ie!==void 0&&window.clearTimeout(ie),S.value=!1,H.value=void 0,B.value=!1,he&&`${c.value}:${D.value??""}`===n&&await le()}}function oe(l){return t.installedFavorites.value.find(v=>v.id===l.install?.favoriteId)??t.installedFavorites.value.find(v=>v.normalizedName===l.name)}function Pe(l){if(l.localStatus!=="VALID")return l.localStatus==="UNKNOWN_VERSION"?a("generated.skillCenterPage.unknownVersion"):l.localStatus==="PARTIAL"?a("generated.skillCenterPage.incompleteInstallation"):l.localStatus==="GIT_EXCLUDE_BROKEN"?a("generated.skillCenterPage.gitRulesNeedRepair"):a("generated.skillCenterPage.directoryError");const s=oe(l);return s===void 0||l.install===void 0?a("generated.skillCenterPage.unknownVersion2"):s.commitSha===l.install.commitSha?a("generated.skillCenterPage.upToDate"):a("generated.skillCenterPage.updateAvailable")}async function Ve(l){if(!(c.value===""||S.value)){try{await ve.confirm(a("generated.skillCenterPage.deleteFromTheCurrentTargetTheSystem",{value0:l}),a("generated.skillCenterPage.deleteSkill"),{closeIcon:k("close"),icon:k("warning"),type:"warning",confirmButtonText:a("generated.skillCenterPage.deleteDirectory"),cancelButtonText:a("generated.skillCenterPage.cancel3")})}catch(s){if(ne(s))return;q(ge(s,a("generated.skillCenterPage.unableToConfirmDeletionTryAgainLater")),"error",s);return}await j(()=>t.removeInstalled(l,c.value,D.value),a("generated.skillCenterPage.skillDeleted"))}}async function De(){if(!(c.value===""||D.value===void 0||S.value)){try{await ve.confirm(a("generated.skillCenterPage.repairingTheEnvironmentUpdatesTheWorkspaceS"),a("generated.skillCenterPage.repairSkillEnvironment"),{closeIcon:k("close"),icon:k("warning"),type:"warning",confirmButtonText:a("generated.skillCenterPage.repair"),cancelButtonText:a("generated.skillCenterPage.cancel4")})}catch(l){if(ne(l))return;q(ge(l,a("generated.skillCenterPage.unableToConfirmRepairTryAgainLater")),"error",l);return}await j(()=>t.repairGitExclude(c.value,D.value),a("generated.skillCenterPage.localGitExcludeRulesRepaired"))}}async function j(l,s){const v=`${c.value}:${D.value??""}`;S.value=!0;try{await l(),q(s,"success")}catch(n){q(ge(n,a("generated.skillCenterPage.theSkillOperationDidNotCompleteTry2")),"error",n)}finally{S.value=!1,`${c.value}:${D.value??""}`===v&&await le()}}function ne(l){return l==="cancel"||l==="close"}function de(l){return h.scopeLabel?.(l)??a("generated.skillCenterPage.personal")}return(l,s)=>{const v=da,n=ca,W=va,Se=Xe,he=Je,ie=Ye,ce=Ke,ye=qe,te=oa,$e=He,Re=sa,fa=pa,Be=na;return o(),f("section",{class:"skill-page","aria-label":e(a)("generated.skillCenterPage.skillConfiguration")},[d("header",Vl,[d("div",null,[d("p",null,m(e(a)("generated.skillCenterPage.installAndMaintainSkillsForNodesOr")),1)])]),p(n,{modelValue:X.value,"onUpdate:modelValue":s[0]||(s[0]=r=>X.value=r),class:"capability-tabs"},{default:g(()=>[p(v,{label:e(a)("common.skill"),name:"skill"},null,8,["label"]),p(v,{label:e(a)("common.mcp"),name:"mcp"},null,8,["label"])]),_:1},8,["modelValue"]),X.value==="mcp"?(o(),N(El,{key:0,"scope-label":de,request:w.request,nodes:w.nodes},null,8,["request","nodes"])):(o(),f("section",Dl,[d("section",{class:"target-panel","aria-label":e(a)("generated.skillCenterPage.skillConfigurationTarget")},[d("div",null,[d("strong",null,m(e(a)("generated.skillCenterPage.configurationTarget")),1),d("span",null,m(e(a)("generated.skillCenterPage.selectWhereTheSkillWillBeUsed")),1)]),p(W,{modelValue:_.value,"onUpdate:modelValue":s[1]||(s[1]=r=>_.value=r),options:[{label:e(a)("generated.skillCenterPage.node"),value:"NODE"},{label:e(a)("generated.skillCenterPage.workspace"),value:"WORKSPACE"}],onChange:u},null,8,["modelValue","options"]),p(he,{modelValue:c.value,"onUpdate:modelValue":s[2]||(s[2]=r=>c.value=r),class:"target-select",placeholder:e(a)("generated.skillCenterPage.selectANode"),"aria-label":e(a)("generated.skillCenterPage.skillNode"),onChange:i,"clear-icon":e(k)("clear-input"),"suffix-icon":e(k)("chevron-down")},{default:g(()=>[(o(!0),f(Q,null,re(U.value,r=>(o(),N(Se,{key:r.id,value:r.id,label:r.displayName||r.registeredAddress||r.id,disabled:!r.connected||r.disabled},{default:g(()=>[d("span",null,m(r.displayName||r.registeredAddress||r.id),1),d("span",Ml,m(r.disabled?e(a)("generated.skillCenterPage.disabled"):r.connected?e(a)("generated.skillCenterPage.online"):e(a)("generated.skillCenterPage.offline")),1)]),_:2},1032,["value","label","disabled"]))),128))]),_:1},8,["modelValue","placeholder","aria-label","clear-icon","suffix-icon"]),_.value==="WORKSPACE"?(o(),N(he,{key:0,modelValue:A.value,"onUpdate:modelValue":s[3]||(s[3]=r=>A.value=r),class:"target-select",placeholder:e(a)("generated.skillCenterPage.selectAWorkspace"),"aria-label":e(a)("generated.skillCenterPage.skillWorkspace"),"clear-icon":e(k)("clear-input"),"suffix-icon":e(k)("chevron-down")},{default:g(()=>[(o(!0),f(Q,null,re(ue.value,r=>(o(),N(Se,{key:r.workspaceId,value:r.workspaceId,label:r.displayName},null,8,["value","label"]))),128))]),_:1},8,["modelValue","placeholder","aria-label","clear-icon","suffix-icon"])):V("",!0),p(ie,{icon:e(k)("refresh"),disabled:!z.value||e(t).targetLoading.value,loading:e(t).targetLoading.value&&b.value!=="installed",onClick:Ae,"loading-icon":e(k)("loading-action")},{default:g(()=>[T(m(e(a)("generated.skillCenterPage.checkEnvironment")),1)]),_:1},8,["icon","disabled","loading","loading-icon"]),_.value==="WORKSPACE"?(o(),N(ie,{key:1,icon:e(k)("tool"),disabled:!z.value||S.value,onClick:De},{default:g(()=>[T(m(e(a)("generated.skillCenterPage.repairEnvironment")),1)]),_:1},8,["icon","disabled"])):V("",!0)],8,$l),U.value.length===0?(o(),N(ce,{key:0,type:"warning",closable:!1,title:e(a)("generated.skillCenterPage.noManageableNodesAreAvailableForSkill")},null,8,["title"])):c.value&&!z.value?(o(),N(ce,{key:1,type:"warning",closable:!1,title:e(a)("generated.skillCenterPage.theCurrentNodeDoesNotSupportThis")},null,8,["title"])):V("",!0),p(n,{modelValue:b.value,"onUpdate:modelValue":s[8]||(s[8]=r=>b.value=r),class:"skill-config-tabs"},{default:g(()=>[p(v,{label:e(a)("generated.skillCenterPage.availableSkills"),name:"available"},{default:g(()=>[d("div",Ol,[p(ye,{modelValue:e(Z),"onUpdate:modelValue":s[4]||(s[4]=r=>ia(Z)?Z.value=r:null),clearable:"",placeholder:e(a)("generated.skillCenterPage.searchSkillNamesOrDescriptions2"),"clear-icon":e(k)("clear-input")},null,8,["modelValue","placeholder","clear-icon"]),d("div",{class:"skill-category-strip","aria-label":e(a)("generated.skillCenterPage.skillCategories2")},[d("button",{class:R({selected:e($)===""}),onClick:s[5]||(s[5]=r=>$.value="")},m(e(a)("generated.skillCenterPage.all2")),3),(o(!0),f(Q,null,re(e(pe),r=>(o(),f("button",{key:r,class:R({selected:e($)===r}),onClick:me=>$.value=r},m(r),11,xl))),128))],8,Ll)]),Te((o(),f("div",{"element-loading-custom-class":y.value?void 0:"mar-page-loading",class:"skill-table-section"},[e(C).length>0?(o(),f(Q,{key:0},[p(Re,{class:"clickable-rows available-skill-table",data:e(x),"row-key":"id",onRowClick:Ie,onSortChange:e(P).sort},{default:g(()=>[p(te,{prop:"normalizedName",label:e(a)("generated.skillSourceManagementPage.name"),sortable:"custom","min-width":"180"},null,8,["label"]),p(te,{label:e(a)("generated.skillDetailsDialog.availability"),width:"140","class-name":"skill-scope-column"},{default:g(({row:r})=>[T(m(de(r.scope)),1)]),_:1},8,["label"]),p(te,{prop:"description",label:e(a)("conversationTemplates.description"),"min-width":"280","show-overflow-tooltip":""},{default:g(({row:r})=>[T(m(r.description||e(a)("generated.skillCenterPage.noDescriptionIsAvailableForThisSkill2")),1)]),_:1},8,["label"]),p(te,{label:e(a)("generated.skillDetailsDialog.tags"),"min-width":"150"},{default:g(({row:r})=>[r.featured||r.tags.length>0?(o(),f("div",Bl,[r.featured?(o(),N($e,{key:0,type:"warning",effect:"plain"},{default:g(()=>[T("★ "+m(e(a)("generated.skillCenterPage.featured2")),1)]),_:1})):V("",!0),(o(!0),f(Q,null,re(r.tags,me=>(o(),N($e,{key:me,type:"info",effect:"plain"},{default:g(()=>[T(m(me),1)]),_:2},1024))),128))])):V("",!0)]),_:1},8,["label"]),p(te,{label:e(a)("generated.skillSourceManagementPage.actions"),"min-width":"220"},{default:g(({row:r})=>[d("div",{class:"row-actions",onClick:s[6]||(s[6]=Le(()=>{},["stop"]))},[p(ie,{link:"",icon:e(k)("download"),disabled:!z.value||S.value,onClick:me=>_e(r)},{default:g(()=>[T(m(M(r)),1)]),_:2},1032,["icon","disabled","onClick"]),H.value===r.id&&B.value?(o(),f("div",Fl,[d("span",null,m(e(a)("generated.skillCenterPage.installingAndValidatingTheSkillOnThe")),1),d("div",{class:"skill-install-progress__indicator",role:"progressbar","aria-label":e(a)("generated.skillCenterPage.installingAndValidatingTheSkillOnThe")},null,8,Ul)])):V("",!0)])]),_:1},8,["label"])]),_:1},8,["data","onSortChange"]),p(ga,{total:e(P).total.value,"has-more":e(P).hasMore.value,page:e(P).page.value,mobile:e(P).mobileViewport.value,"mobile-visible-count":e(P).mobileVisibleCount.value,loading:e(P).loading.value,"loading-more":e(P).loadingMore.value,onPage:e(P).setPage,failed:e(P).failure.value!==void 0,"incremental-failed":e(P).failure.value?.incremental===!0,error:e(P).failure.value?.error,"context-key":e(P).contextKey.value,onRetry:e(P).retry,onLoadMore:e(P).loadMore},null,8,["total","has-more","page","mobile","mobile-visible-count","loading","loading-more","onPage","failed","incremental-failed","error","context-key","onRetry","onLoadMore"])],64)):e(t).loading.value?V("",!0):(o(),f("div",Wl,m(e(t).favorites.value.length===0?e(a)("generated.skillCenterPage.noSkillsAreAvailableAddSkillsFrom2"):e(a)("generated.skillCenterPage.noMatchingSkills2")),1))],8,Rl)),[[Be,y.value?e(P).loading.value&&!e(P).loadingMore.value:e(t).loading.value]])]),_:1},8,["label"]),p(v,{label:e(a)("generated.skillCenterPage.installedSkills"),name:"installed"},{default:g(()=>[Te((o(),f("div",Kl,[(e(t).target.value?.skills.length??0)>0?(o(),N(Re,{key:0,class:"clickable-rows installed-skill-table",data:e(se),"row-key":"name",onRowClick:be},{default:g(()=>[p(te,{prop:"name",label:e(a)("generated.skillSourceManagementPage.name"),sortable:"","min-width":"180"},null,8,["label"]),p(te,{label:e(a)("generated.skillDetailsDialog.status"),"min-width":"160"},{default:g(({row:r})=>[p($e,{type:r.localStatus==="VALID"?"success":"warning",effect:"plain"},{default:g(()=>[T(m(Pe(r)),1)]),_:2},1032,["type"])]),_:1},8,["label"]),p(te,{prop:"description",label:e(a)("conversationTemplates.description"),"min-width":"280","show-overflow-tooltip":""},{default:g(({row:r})=>[T(m(r.description||e(a)("generated.skillCenterPage.noValidSkillDescriptionWasFound")),1)]),_:1},8,["label"]),p(te,{label:e(a)("generated.skillDetailsDialog.version"),width:"120"},{default:g(({row:r})=>[T(m(r.install?.commitSha.slice(0,8)??"—"),1)]),_:1},8,["label"]),p(te,{label:e(a)("generated.skillSourceManagementPage.actions"),"min-width":"300"},{default:g(({row:r})=>[d("div",{class:"row-actions",onClick:s[7]||(s[7]=Le(()=>{},["stop"]))},[oe(r)?(o(),N(ie,{key:0,link:"",icon:e(k)("retry"),disabled:!z.value||S.value,onClick:me=>_e(oe(r))},{default:g(()=>[T(m(oe(r)?.commitSha!==r.install?.commitSha?e(a)("generated.skillCenterPage.update2"):e(a)("generated.skillCenterPage.reinstall2")),1)]),_:2},1032,["icon","disabled","onClick"])):V("",!0),p(ie,{link:"",type:"danger",icon:e(k)("delete"),disabled:!z.value||S.value,onClick:me=>Ve(r.name)},{default:g(()=>[T(m(e(a)("generated.skillCenterPage.delete")),1)]),_:1},8,["icon","disabled","onClick"]),oe(r)?.id===H.value&&B.value?(o(),f("div",zl,[d("span",null,m(e(a)("generated.skillCenterPage.installingAndValidatingTheSkillOnThe2")),1),d("div",{class:"skill-install-progress__indicator",role:"progressbar","aria-label":e(a)("generated.skillCenterPage.installingAndValidatingTheSkillOnThe2")},null,8,Gl)])):V("",!0)])]),_:1},8,["label"])]),_:1},8,["data"])):e(t).target.value?(o(),N(fa,{key:1,description:e(a)("generated.skillCenterPage.thisTargetHasNoInstalledSkills")},null,8,["description"])):V("",!0)])),[[Be,e(t).targetLoading.value]])]),_:1},8,["label"])]),_:1},8,["modelValue"])])),p(Va,{modelValue:ee.value,"onUpdate:modelValue":s[9]||(s[9]=r=>ee.value=r),details:ae.value},null,8,["modelValue","details"])],8,Al)}}}),yt=ra(ql,[["__scopeId","data-v-5ac5b0f6"]]);export{yt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import i from"./SkillCenterPage-Bys_Quoc.js";import{m as p,o as m,J as n,t as e}from"./index-BEELfYGZ.js";import"./el-alert-DmVsBvUv.js";import"./vnode-CG_nLPou.js";import"./el-input-B2Nof_cr.js";import"./use-form-common-props-mcyC3w-u.js";import"./index-DOLrLWUV.js";import"./el-select-DBNt1msu.js";import"./el-scrollbar-K7eVpxQ7.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-CpPVpKOG.js";import"./el-table-column-B_iZELUe.js";import"./merge-CFyFeS5y.js";import"./isArrayLikeObject-DdIC_9HC.js";import"./mobile-dialog-return-service-lRpqLQ4m.js";import"./el-checkbox-CGRzOjDl.js";import"./last-DXTTfs9a.js";import"./el-tab-pane-D0rG2y_2.js";import"./use-wheel-BmcW1XgC.js";/* empty css */import"./ManagementPagination-CSNsQQGq.js";import"./error-presentation-0VNQQ2nr.js";import"./BusyIndicator-D3z5mSYz.js";import"./time-presentation-unYkc6Yq.js";import"./message-box-service-Bt8ZxdJl.js";import"./SkillDetailsDialog-BqdDZiga.js";import"./catalog-page-service-bZJ62ES7.js";import"./el-descriptions-BFAMFbyx.js";import"./mcp-center-service-DiM2Ti2y.js";import"./McpDetailsDialog-BIXNILiX.js";import"./conversation-history-K5KJjagU.js";const j=p({__name:"SkillCenterPage",props:{request:{type:Function},nodes:{}},setup(r){function o(t){return t==="ENTERPRISE"?e("generated.skillCenterPage.enterprise"):t==="ORGANIZATION"?e("generated.skillCenterPage.organization"):e("generated.skillCenterPage.personal")}return(t,a)=>(m(),n(i,{request:r.request,nodes:r.nodes,"scope-label":o},null,8,["request","nodes"]))}});export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as ue,r as P}from"./catalog-page-service-bZJ62ES7.js";import{k as B,f as L,e as fe,t as u,m as me,o as r,J as m,K as d,n as J,X as $,Y as f,L as n,q as x,Z as E,N as S,aw as Se,H as Ie,a3 as Le,M as Ee,_ as ve}from"./index-BEELfYGZ.js";import{a as ge}from"./el-input-B2Nof_cr.js";import{E as ke}from"./index-DOLrLWUV.js";import{E as De,a as pe}from"./el-descriptions-BFAMFbyx.js";import{u as _e,m as ye,E as Re}from"./mobile-dialog-return-service-lRpqLQ4m.js";/* empty css */function Me(e,o={}){const s=L([]),D=L([]),v=ue(e,"/api/skill-favorites","favorites"),I=v.items,_=L([]),C=L([]),c=L(""),T=L(""),g=L(!1);let O=0;const N=L(!1),b=L(),V=L({nodes:[],workspaces:[]});let h=0,y=0;const H=B(()=>new Set(C.value.map(a=>`${a.sourceId}:${a.normalizedName}`)));function A(){O+=1,g.value=!0}function K(){O=Math.max(0,O-1),g.value=O>0}async function p(a){A();try{return await a()}finally{K()}}async function Y(){await Promise.all([w(),R()])}async function R(){await p(async()=>{await v.refresh(),D.value.length&&(C.value=await P(e,"/api/skill-favorites","favorites",[],D.value.map(a=>a.name)))})}async function w(){A();const a=c.value;try{s.value=(await e("/api/skill-sources")).sources,s.value.some(t=>t.id===c.value&&t.enabled)||(c.value=we(s.value)),c.value!==a&&(D.value=[])}finally{K()}}async function X(){V.value=await e("/api/resources")}async function F(a){if(c.value==="")return;const t=++h,l=c.value;A();try{const i=`/api/skill-sources/${encodeURIComponent(l)}/skills`,U=a===void 0?"":`?${new URLSearchParams({query:a,limit:"40"})}`,k=await e(`${i}${U}`);if(t!==h||l!==c.value)return;const de=await P(e,"/api/skill-favorites","favorites",[],k.skills.map(re=>re.name));t===h&&l===c.value&&(D.value=k.skills,C.value=de)}catch(i){if(t!==h||l!==c.value)return;throw i}finally{K()}}async function G(){if(M()?.kind==="SKILLS_SH"){D.value=[];return}await F()}async function Q(){const a=T.value.trim();if(M()?.kind==="SKILLS_SH"&&a===""){D.value=[];return}await F(a)}function M(){return s.value.find(a=>a.id===c.value)}async function j(a,t={featured:!1,tags:[]},l){await p(async()=>{const i={sourceId:c.value,candidateId:a.id,...a.skillPath===null?{}:{skillPath:a.skillPath},featured:t.featured,tags:t.tags};o.submitFavorite!==void 0?await o.submitFavorite(i,l):await e("/api/skill-favorites",{method:"POST",body:JSON.stringify({...i,scope:"PERSONAL"})}),await Promise.all([R(),w()])})}async function W(a){await p(async()=>{await e(`/api/skill-favorites/${encodeURIComponent(a)}/upgrade`,{method:"POST"}),await R()})}async function z(a){return e(`/api/skill-favorites/${encodeURIComponent(a)}/check-update`,{method:"POST"})}async function Z(a,t){await p(async()=>{await e(`/api/skill-favorites/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify(t)}),await R()})}async function q(a){await p(async()=>{await e(`/api/skill-favorites/${encodeURIComponent(a)}`,{method:"DELETE"}),await R()})}async function ee(a,t){await p(async()=>{o.submitSource!==void 0?await o.submitSource(a,t):await e("/api/skill-sources",{method:"POST",body:JSON.stringify({kind:"REPOSITORY",enabled:!0,...a,scope:"PERSONAL"})}),await w()})}async function ae(a,t){await p(async()=>{await e(`/api/skill-sources/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify({enabled:t})}),await w()})}async function te(a){await p(async()=>{await e(`/api/skill-sources/${encodeURIComponent(a)}`,{method:"DELETE"}),await w()})}async function le(a,t){const l=++y;N.value=!0;try{const i=await e(t===void 0?`/api/nodes/${encodeURIComponent(a)}/skills`:`/api/workspaces/${encodeURIComponent(t)}/skills?nodeId=${encodeURIComponent(a)}`);if(l!==y)return;b.value=i,_.value=[];const U=await P(e,"/api/skill-favorites","favorites",i.skills.flatMap(k=>k.install?[k.install.favoriteId]:[]),i.skills.map(k=>k.name));l===y&&(b.value=i,_.value=U)}catch(i){if(l!==y)return;throw i}finally{l===y&&(N.value=!1)}}function ie(){y+=1,b.value=void 0,_.value=[],N.value=!1}async function ne(a,t,l,i=!1){const U=l===void 0?`/api/nodes/${encodeURIComponent(t)}/skills`:`/api/workspaces/${encodeURIComponent(l)}/skills?nodeId=${encodeURIComponent(t)}`,k=await e(U,{method:"POST",body:JSON.stringify({favoriteId:a,...l===void 0?{}:{confirmTracked:i}})});await oe(k.installJobId)}async function oe(a){for(let t=0;t<180;t+=1){const l=await e(`/api/skill-install-jobs/${encodeURIComponent(a)}`);if(l.status==="SUCCEEDED")return;if(l.status==="FAILED")throw new Error(l.errorCode??"SKILL_INSTALL_FAILED");await new Promise(i=>setTimeout(i,500))}throw new Error("SKILL_INSTALL_STATUS_TIMEOUT")}async function se(a,t,l){const i=l===void 0?`/api/nodes/${encodeURIComponent(t)}/skills/${encodeURIComponent(a)}`:`/api/workspaces/${encodeURIComponent(l)}/skills/${encodeURIComponent(a)}?nodeId=${encodeURIComponent(t)}`;await e(i,{method:"DELETE"})}async function ce(a,t){await e(`/api/workspaces/${encodeURIComponent(t)}/skills/git-exclude-repair?nodeId=${encodeURIComponent(a)}`,{method:"POST"})}return{sources:s,candidates:D,favorites:I,installedFavorites:_,catalogPage:v,selectedSourceId:c,query:T,loading:B(()=>g.value||v.loading.value),targetLoading:N,target:b,managedTargets:V,favoriteIds:H,load:Y,loadCatalog:R,loadSources:w,loadManagedTargets:X,loadCandidates:G,search:Q,favorite:j,upgrade:W,checkUpdate:z,updatePresentation:Z,remove:q,addSource:ee,setSourceEnabled:ae,removeSource:te,inspectTarget:le,clearTarget:ie,install:ne,removeInstalled:se,repairGitExclude:ce}}function we(e){return(e.find(o=>o.enabled&&o.kind==="SKILLS_SH")??e.find(o=>o.enabled))?.id??""}const Ce=new Set(["SKILL_SOURCE_IN_USE","SKILL_SOURCE_LIMIT_EXCEEDED","SKILL_SOURCE_QUERY_INVALID","SKILL_SOURCE_PROVIDER_UNSUPPORTED","SKILL_SOURCE_UNAVAILABLE","SKILL_SOURCE_ADDRESS_FORBIDDEN","SKILL_SOURCE_RATE_LIMITED","SKILL_SOURCE_RESPONSE_INVALID","SKILL_SOURCE_DISABLED","SKILL_SOURCE_NOT_FOUND","SKILL_SOURCE_FORBIDDEN","SKILL_FAVORITE_NOT_FOUND","SKILL_FAVORITE_FORBIDDEN","SKILL_INSTALL_FAILED","SKILL_INSTALL_STATUS_TIMEOUT","SKILL_CONTENT_INVALID","SKILL_INSTALL_INVALID_LINK","SKILL_INSTALL_RECOVERY_REQUIRED","SKILL_NAME_CONFLICT","SKILL_TARGET_LIMIT_EXCEEDED","WORKSPACE_BUSY","WORKSPACE_SKILL_GIT_EXCLUDE_FAILED","NODE_REQUEST_TIMEOUT","NODE_OFFLINE"]);function Be(e,o){if(!(e instanceof Error))return o;const s=fe(e);return s!==void 0&&Ce.has(s)?u(`generated.skillErrors.${s}`):s!==void 0&&e.message===s?o:e.message}const Ue={key:0,class:"skill-details"},Te={class:"skill-name"},Oe={class:"skill-description"},Ne={class:"skill-tags"},be=me({__name:"SkillDetailsDialog",props:{modelValue:{type:Boolean},details:{}},emits:["update:modelValue"],setup(e,{emit:o}){const s=o;return(D,v)=>{const I=pe,_=ke,C=De,c=ge,T=Re;return e.modelValue?(r(),m(T,{key:0,onVnodeMounted:n(ye),onVnodeBeforeUnmount:n(_e),"model-value":e.modelValue,title:n(u)("generated.skillDetailsDialog.skillDetails"),width:"min(720px, calc(100vw - 32px))","destroy-on-close":"","onUpdate:modelValue":v[1]||(v[1]=g=>s("update:modelValue",g)),"close-icon":n(Ee)("close")},{footer:d(()=>[x(c,{onClick:v[0]||(v[0]=g=>s("update:modelValue",!1))},{default:d(()=>[E(f(n(u)("generated.skillDetailsDialog.close")),1)]),_:1})]),default:d(()=>[e.details?(r(),J("div",Ue,[$("strong",Te,f(e.details.name),1),$("p",Oe,f(e.details.description||n(u)("generated.skillDetailsDialog.noDescriptionIsAvailableForThisSkill")),1),x(C,{class:"mar-detail-descriptions",column:1,border:""},{default:d(()=>[e.details.source?(r(),m(I,{key:0,label:n(u)("generated.skillDetailsDialog.source")},{default:d(()=>[E(f(e.details.source),1)]),_:1},8,["label"])):S("",!0),e.details.scope?(r(),m(I,{key:1,label:n(u)("generated.skillDetailsDialog.availability")},{default:d(()=>[E(f(e.details.scope),1)]),_:1},8,["label"])):S("",!0),e.details.path?(r(),m(I,{key:2,label:n(u)("generated.skillDetailsDialog.skillPath")},{default:d(()=>[E(f(e.details.path),1)]),_:1},8,["label"])):S("",!0),e.details.version?(r(),m(I,{key:3,label:n(u)("generated.skillDetailsDialog.version")},{default:d(()=>[E(f(e.details.version),1)]),_:1},8,["label"])):S("",!0),e.details.updatedAt?(r(),m(I,{key:4,label:n(u)("generated.skillDetailsDialog.updated")},{default:d(()=>[E(f(e.details.updatedAt),1)]),_:1},8,["label"])):S("",!0),e.details.status?(r(),m(I,{key:5,label:n(u)("generated.skillDetailsDialog.status")},{default:d(()=>[E(f(e.details.status),1)]),_:1},8,["label"])):S("",!0),e.details.installs!==void 0?(r(),m(I,{key:6,label:n(u)("generated.skillDetailsDialog.installs")},{default:d(()=>[E(f(e.details.installs.toLocaleString(n(Se)())),1)]),_:1},8,["label"])):S("",!0),e.details.featured||(e.details.tags?.length??0)>0?(r(),m(I,{key:7,label:n(u)("generated.skillDetailsDialog.tags")},{default:d(()=>[$("div",Ne,[e.details.featured?(r(),m(_,{key:0,type:"warning",effect:"plain"},{default:d(()=>[E("★ "+f(n(u)("generated.skillDetailsDialog.featured")),1)]),_:1})):S("",!0),(r(!0),J(Ie,null,Le(e.details.tags??[],g=>(r(),m(_,{key:g,type:"info",effect:"plain"},{default:d(()=>[E(f(g),1)]),_:2},1024))),128))])]),_:1},8,["label"])):S("",!0)]),_:1})])):S("",!0)]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","model-value","title","close-icon"])):S("",!0)}}}),Je=ve(be,[["__scopeId","data-v-41cfbe9e"]]);export{Je as S,Me as c,Be as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.skill-details[data-v-41cfbe9e]{display:grid;gap:16px}.skill-name[data-v-41cfbe9e]{overflow-wrap:anywhere}.skill-description[data-v-41cfbe9e]{margin:0;color:var(--mar-text-secondary);font-size:var(--mar-font-size-body);line-height:1.7;white-space:pre-wrap}.skill-tags[data-v-41cfbe9e]{display:flex;flex-wrap:wrap;gap:6px}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.mar-management-page[data-v-710fe59c]>*{flex-shrink:0;min-width:0}.skill-management-tabs[data-v-710fe59c]{min-height:260px;min-width:0}.skill-management-tabs[data-v-710fe59c] .el-tabs__content{min-width:0}.skill-management-tabs[data-v-710fe59c] .el-tab-pane{display:grid;gap:14px;min-width:0}.section-heading h3[data-v-710fe59c]{margin:0;color:var(--mar-text-primary);font-size:var(--mar-font-size-body)}.section-heading[data-v-710fe59c]{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--mar-fill-hover);padding-top:14px}.section-heading p[data-v-710fe59c]{margin:2px 0 0;color:var(--el-text-color-secondary);font-size:var(--mar-font-size-meta)}.source-search-bar[data-v-710fe59c]{display:flex;align-items:center;gap:12px;min-width:0}.source-search-bar[data-v-710fe59c] .el-select{width:min(320px,100%);min-width:200px}.toolbar[data-v-710fe59c]{flex:1 1 420px;min-width:0;max-width:620px}.catalog-filter-bar[data-v-710fe59c]{display:grid;gap:10px}.catalog-filter-bar[data-v-710fe59c] .el-input{width:min(620px,100%)}.skill-category-strip[data-v-710fe59c]{display:flex;overflow-x:auto;gap:6px;padding:1px 0 3px;scrollbar-width:thin}.skill-category-strip button[data-v-710fe59c]{flex:none;border:1px solid var(--mar-border-medium);border-radius:999px;background:var(--mar-bg-panel);color:var(--mar-text-secondary);padding:5px 12px;font:inherit;font-size:var(--mar-font-size-body);cursor:pointer}.skill-category-strip button[data-v-710fe59c]:hover{border-color:var(--mar-border-strong);background:var(--mar-fill-row-hover);color:var(--mar-text-primary)}.skill-category-strip button.selected[data-v-710fe59c]{border-color:var(--mar-border-medium);background:var(--mar-fill-selection);color:var(--mar-text-primary);font-weight:400}.skill-category-strip button[data-v-710fe59c]:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:1px}.form-hint[data-v-710fe59c]{margin:-8px 0 14px;color:var(--el-text-color-secondary);font-size:var(--mar-font-size-meta);line-height:1.5}.skill-tags[data-v-710fe59c]{display:flex;flex-wrap:wrap;gap:6px}.skill-table-section[data-v-710fe59c]{min-height:180px;min-width:0}.skill-empty[data-v-710fe59c]{border:1px dashed var(--mar-border-medium);border-radius:8px;background:var(--mar-bg-subtle);padding:20px;color:var(--mar-text-secondary);font-size:var(--mar-font-size-body);text-align:center}.clickable-rows[data-v-710fe59c] .el-table__row{cursor:pointer}.mar-row-actions[data-v-710fe59c]{display:flex;flex-wrap:wrap;gap:4px 8px}.table-meta[data-v-710fe59c]{display:block;margin-top:2px;color:var(--el-text-color-secondary);font-size:var(--mar-font-size-meta)}@media(max-width:700px){.source-search-bar[data-v-710fe59c]{align-items:stretch;flex-direction:column}.source-search-bar[data-v-710fe59c] .el-select{width:100%}.toolbar[data-v-710fe59c] .el-button,.section-heading[data-v-710fe59c] .el-button{min-height:36px}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as v}from"./el-form-item-CoJM2Hlw.js";import{E as w,a as y}from"./el-select-DBNt1msu.js";import{E}from"./el-cascader-BOobdI59.js";import{m as R,o as g,J as d,K as n,q as r,L as e,t as a,M as m,N as f,k as V}from"./index-BEELfYGZ.js";import"./el-input-B2Nof_cr.js";/* empty css */import"./el-checkbox-CGRzOjDl.js";import"./el-radio-npWoUqDX.js";import"./el-scrollbar-K7eVpxQ7.js";import _ from"./SkillSourceManagementPage-CBxAUgfv.js";import{c as x}from"./catalog-ownership-service-CcpPtWVP.js";import"./use-form-common-props-mcyC3w-u.js";import"./mobile-dialog-return-service-lRpqLQ4m.js";import"./vnode-CG_nLPou.js";import"./index-DOLrLWUV.js";import"./_baseFindIndex-D7XfJLKM.js";import"./_baseIteratee-CpPVpKOG.js";import"./use-wheel-BmcW1XgC.js";import"./last-DXTTfs9a.js";import"./el-switch-yJdlzAOS.js";import"./message-box-service-Bt8ZxdJl.js";import"./el-table-column-B_iZELUe.js";import"./merge-CFyFeS5y.js";import"./isArrayLikeObject-DdIC_9HC.js";import"./el-tab-pane-D0rG2y_2.js";import"./ManagementPagination-CSNsQQGq.js";import"./error-presentation-0VNQQ2nr.js";import"./BusyIndicator-D3z5mSYz.js";import"./time-presentation-unYkc6Yq.js";import"./SkillDetailsDialog-BqdDZiga.js";import"./catalog-page-service-bZJ62ES7.js";import"./el-descriptions-BFAMFbyx.js";import"./enterprise-management-service-CG71nGIU.js";function T(c){return{submitFavorite:(l,o)=>c("/api/skill-favorites",{method:"POST",body:JSON.stringify({...l,scope:o?.scope??"PERSONAL",...o?.scope==="ORGANIZATION"&&o.organizationId!==void 0?{organizationId:o.organizationId}:{}})}),submitSource:(l,o)=>c("/api/skill-sources",{method:"POST",body:JSON.stringify({kind:"REPOSITORY",enabled:!0,...l,scope:o?.scope??"PERSONAL",...o?.organizationId===void 0?{}:{organizationId:o.organizationId}})})}}const be=R({__name:"SkillSourceManagementPage",props:{request:{type:Function},edition:{},role:{},writable:{type:Boolean}},setup(c){const l=c,o=x(l.request,()=>l),{sourceDraft:p,catalogDraft:u,organizationOptions:O,canUseOrganizationScope:I}=o,N=V(()=>({organizationId:[{required:!0,message:a("generated.skillSourceManagementPage.selectAnOrganization"),trigger:"change"}]}));function A(i){return i==="ENTERPRISE"?a("generated.skillSourceManagementPage.enterprise"):i==="ORGANIZATION"?a("generated.skillSourceManagementPage.organization"):a("generated.skillSourceManagementPage.personal")}const k=T(l.request),M=i=>k.submitSource(i,o.sourceTarget()),h=i=>k.submitFavorite(i,o.catalogTarget());return(i,t)=>{const b=y,P=w,S=v,z=E;return g(),d(_,{request:c.request,writable:c.writable,"scope-label":A,"load-extension":e(o).load,"source-context":e(p),"catalog-context":e(u),"ownership-rules":N.value,"submit-source":M,"submit-favorite":h,onOpenSource:e(o).resetSource,onOpenCatalog:e(o).resetCatalog},{"source-ownership":n(()=>[r(S,{label:e(a)("generated.skillSourceManagementPage.scope2"),prop:"scope"},{default:n(()=>[r(P,{modelValue:e(p).scope,"onUpdate:modelValue":t[0]||(t[0]=s=>e(p).scope=s),"clear-icon":e(m)("clear-input"),"suffix-icon":e(m)("chevron-down")},{default:n(()=>[r(b,{label:e(a)("generated.skillSourceManagementPage.personal2"),value:"PERSONAL"},null,8,["label"]),e(I)?(g(),d(b,{key:0,label:e(a)("generated.skillSourceManagementPage.organization2"),value:"ORGANIZATION"},null,8,["label"])):f("",!0)]),_:1},8,["modelValue","clear-icon","suffix-icon"])]),_:1},8,["label"]),e(p).scope==="ORGANIZATION"?(g(),d(S,{key:0,label:e(a)("generated.skillSourceManagementPage.organization3"),prop:"organizationId"},{default:n(()=>[r(z,{modelValue:e(p).organizationId,"onUpdate:modelValue":t[1]||(t[1]=s=>e(p).organizationId=s),style:{width:"100%"},filterable:"",placeholder:e(a)("generated.skillSourceManagementPage.selectAManageableOrganization"),options:e(O),props:{checkStrictly:!0,emitPath:!1},"clear-icon":e(m)("clear-input")},null,8,["modelValue","placeholder","options","clear-icon"])]),_:1},8,["label"])):f("",!0)]),"catalog-ownership":n(()=>[r(S,{label:e(a)("generated.skillSourceManagementPage.availability"),prop:"scope"},{default:n(()=>[r(P,{modelValue:e(u).scope,"onUpdate:modelValue":t[2]||(t[2]=s=>e(u).scope=s),"clear-icon":e(m)("clear-input"),"suffix-icon":e(m)("chevron-down")},{default:n(()=>[r(b,{label:e(a)("generated.skillSourceManagementPage.personal3"),value:"PERSONAL"},null,8,["label"]),e(I)?(g(),d(b,{key:0,label:e(a)("generated.skillSourceManagementPage.organizationMembers"),value:"ORGANIZATION"},null,8,["label"])):f("",!0)]),_:1},8,["modelValue","clear-icon","suffix-icon"])]),_:1},8,["label"]),e(u).scope==="ORGANIZATION"?(g(),d(S,{key:0,label:e(a)("generated.skillSourceManagementPage.organization4"),prop:"organizationId"},{default:n(()=>[r(z,{modelValue:e(u).organizationId,"onUpdate:modelValue":t[3]||(t[3]=s=>e(u).organizationId=s),style:{width:"100%"},filterable:"",placeholder:e(a)("generated.skillSourceManagementPage.selectAManageableOrganization2"),options:e(O),props:{checkStrictly:!0,emitPath:!1},"clear-icon":e(m)("clear-input")},null,8,["modelValue","placeholder","options","clear-icon"])]),_:1},8,["label"])):f("",!0)]),_:1},8,["request","writable","load-extension","source-context","catalog-context","ownership-rules","onOpenSource","onOpenCatalog"])}}});export{be as default};
|