@myagentroam/server 0.14.13 → 0.14.14

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.
Files changed (355) hide show
  1. package/node_modules/@myagentroam/protocol/package.json +1 -1
  2. package/node_modules/@myagentroam/server-core/package.json +2 -2
  3. package/node_modules/@myagentroam-enterprise/server-implementation/package.json +3 -3
  4. package/package.json +5 -5
  5. package/web/assets/AuditManagementPage-DdSFvSrU.css +1 -0
  6. package/web/assets/AuditManagementPage-xkz11y0T.js +1 -0
  7. package/web/assets/AuthEntryPanel-2RmEvgPK.js +45 -0
  8. package/web/assets/AuthEntryPanel-DRCYZXlp.css +1 -0
  9. package/web/assets/{BusyIndicator-BJHbXq72.js → BusyIndicator-ioUVqyOU.js} +1 -1
  10. package/web/assets/{CodeFileEditor-DuD7Q4mq.js → CodeFileEditor-CfOJ0R9I.js} +3 -3
  11. package/web/assets/{ConversationTemplateManagementPage-UWiSWTX8.js → ConversationTemplateManagementPage-D7KwZltL.js} +1 -1
  12. package/web/assets/{ConversationTemplateManagementPage-CfZ2Ul2v.js → ConversationTemplateManagementPage-DzPF9J7i.js} +1 -1
  13. package/web/assets/{EnterpriseUserManagementPage-DsO542HL.js → EnterpriseUserManagementPage-CEH37Fgt.js} +1 -1
  14. package/web/assets/EnvironmentSecretManager-BR4WUysp.css +1 -0
  15. package/web/assets/EnvironmentSecretManager-TN7goLG1.js +1 -0
  16. package/web/assets/FilePreviewLoading-DBHsOXhV.css +1 -0
  17. package/web/assets/{FilePreviewLoading-D6s3o2bu.js → FilePreviewLoading-es8YT3AE.js} +1 -1
  18. package/web/assets/{HtmlPreviewFrame-fKFJ8kxw.js → HtmlPreviewFrame-C-UQP5Kx.js} +3 -3
  19. package/web/assets/{LicenseManagementPage-BtQdmqgE.js → LicenseManagementPage-BI4IslV7.js} +1 -1
  20. package/web/assets/{ManagementPagination-B6Pmmb2K.js → ManagementPagination-BYt4qkTV.js} +1 -1
  21. package/web/assets/{MarAgentModelManagementPage-DgIYAL72.js → MarAgentModelManagementPage-C5KQRwZF.js} +1 -1
  22. package/web/assets/{MarAgentModelManagementPage-jLtdmQI8.js → MarAgentModelManagementPage-COeAewpl.js} +1 -1
  23. package/web/assets/{MarAlert-Dsrb10N-.js → MarAlert-Cd9UQ3Nb.js} +1 -1
  24. package/web/assets/MarCascader-BtOyCcnf.css +1 -0
  25. package/web/assets/{MarCascader-BKG_pCU9.js → MarCascader-CkPUKKSU.js} +1 -1
  26. package/web/assets/{MarCheckboxGroup-CeaJ5pd8.js → MarCheckboxGroup-BeoAUtAX.js} +1 -1
  27. package/web/assets/{MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-oSUSoUdm.js → MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-DkLInv-o.js} +1 -1
  28. package/web/assets/MarDatePicker-C4dn1W94.js +1 -0
  29. package/web/assets/MarDatePicker-CPheHWyo.css +1 -0
  30. package/web/assets/MarDescriptionsItem-DZlA06Bs.js +1 -0
  31. package/web/assets/MarDescriptionsItem-Dv4h1Q7h.css +1 -0
  32. package/web/assets/{MarFormItem.vue_vue_type_script_setup_true_lang-DNgXEgAb.js → MarFormItem.vue_vue_type_script_setup_true_lang-DR9vLmUF.js} +1 -1
  33. package/web/assets/{MarInputNumber-CcpviHTx.js → MarInputNumber-Cj9eIAOI.js} +1 -1
  34. package/web/assets/MarOptionGroup-kPGjsCsv.css +1 -0
  35. package/web/assets/MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-toYIflmN.js +1 -0
  36. package/web/assets/{MarSwitch-Nht5u3dc.js → MarSwitch-CnzyH7nM.js} +1 -1
  37. package/web/assets/MarSwitch-D1d-qHkV.css +1 -0
  38. package/web/assets/MarTableColumn-9hG09SCW.css +1 -0
  39. package/web/assets/MarTableColumn.vue_vue_type_script_setup_true_lang-R6PlEya3.js +1 -0
  40. package/web/assets/MarTabs-C9xSpZpp.js +1 -0
  41. package/web/assets/MarTabs-DAlqb7in.css +1 -0
  42. package/web/assets/{MarTag-CU69nmi0.js → MarTag-DJs119DS.js} +1 -1
  43. package/web/assets/{MarkdownFilePreview-eHfaSvqk.js → MarkdownFilePreview-DbAE_2gM.js} +2 -2
  44. package/web/assets/{McpDetailsDialog-CeN-XR0C.js → McpDetailsDialog-DulmlCuF.js} +1 -1
  45. package/web/assets/{McpSourceManagementPage-CQ02Cxhp.js → McpSourceManagementPage-2-l-gwmY.js} +1 -1
  46. package/web/assets/{McpSourceManagementPage-D7TISzgb.js → McpSourceManagementPage-BoE5DUTk.js} +1 -1
  47. package/web/assets/McpSourceManagementPage-DtlKXyoi.css +1 -0
  48. package/web/assets/{NodeDetailsDialogs-CunI5Y3P.js → NodeDetailsDialogs-D18Hc9Si.js} +1 -1
  49. package/web/assets/NodeManagementPage-DXpkxBRT.js +1 -0
  50. package/web/assets/NodeManagementPage-ygBG-C-u.js +1 -0
  51. package/web/assets/{OAuthManagementPage-DiVu7-4g.js → OAuthManagementPage-BX1BaUso.js} +1 -1
  52. package/web/assets/{OrganizationManagementPage-KYRf5SG3.js → OrganizationManagementPage-BdKOJAyQ.js} +1 -1
  53. package/web/assets/{RemoteDesktopPage-CXb_A40m.js → RemoteDesktopPage-mtDu_xfs.js} +1 -1
  54. package/web/assets/{ResourceManagementPanel-C8sK8pZt.js → ResourceManagementPanel-cSwgfMaN.js} +1 -1
  55. package/web/assets/{ResourceManagementPanel.vue_vue_type_script_setup_true_lang-B0BiJsYP.js → ResourceManagementPanel.vue_vue_type_script_setup_true_lang-OE3mC4EM.js} +1 -1
  56. package/web/assets/SecretManagementPage-BUNy_q8f.js +1 -0
  57. package/web/assets/SecretManagementPage-CWM35C17.js +1 -0
  58. package/web/assets/{SecretManagementPage.vue_vue_type_script_setup_true_lang-Cj-i8iWa.js → SecretManagementPage.vue_vue_type_script_setup_true_lang-wdkxGSpN.js} +1 -1
  59. package/web/assets/{SessionSharePage-3pOC7zRL.js → SessionSharePage-C-jdxuqs.js} +2 -2
  60. package/web/assets/{SessionSharePage-DGGHczdP.css → SessionSharePage-D_egrbL-.css} +1 -1
  61. package/web/assets/{SettingsContent-_7yaCY3w.js → SettingsContent-1cXlLDfp.js} +1 -1
  62. package/web/assets/{SettingsContent-DNa5A1_N.js → SettingsContent-BtSX-IJ7.js} +1 -1
  63. package/web/assets/SkillCenterPage-BWZ1Kuwk.js +1 -0
  64. package/web/assets/{SkillCenterPage-C-RhgoXR.js → SkillCenterPage-CCisqDWN.js} +1 -1
  65. package/web/assets/SkillCenterPage-CyQmlEB4.css +1 -0
  66. package/web/assets/{SkillDetailsDialog-DtVFRPBy.js → SkillDetailsDialog-C0_4_KU4.js} +1 -1
  67. package/web/assets/{SkillSourceManagementPage-D4z1Gg5N.js → SkillSourceManagementPage-ToB4Wi7G.js} +1 -1
  68. package/web/assets/{SkillSourceManagementPage-ChDzfGdm.js → SkillSourceManagementPage-pUo-KVhP.js} +1 -1
  69. package/web/assets/{StandaloneFilePreviewPage-MXCtMW26.js → StandaloneFilePreviewPage-DES3Vief.js} +1 -1
  70. package/web/assets/{SystemConfigurationPage-ChSNj8MT.js → SystemConfigurationPage-BVl0Q1mw.js} +1 -1
  71. package/web/assets/{SystemConfigurationPage-DB37Nbbr.js → SystemConfigurationPage-CQ6u7UgX.js} +1 -1
  72. package/web/assets/{SystemInformationPage-2Q4V-iJ4.js → SystemInformationPage-DdPjIXMo.js} +1 -1
  73. package/web/assets/{TerminalTabView-De_0nedS.js → TerminalTabView-CnuEt3ND.js} +1 -1
  74. package/web/assets/{WorkbenchPage-DlnYvv_a.css → WorkbenchPage-CorQjhSF.css} +1 -1
  75. package/web/assets/WorkbenchPage-CyEI3Yln.js +22 -0
  76. package/web/assets/WorkspaceManagementPage-Cdk7zUmV.js +1 -0
  77. package/web/assets/WorkspaceManagementPage-CgLA0Tb-.js +1 -0
  78. package/web/assets/{abnfDiagram-VCTEODGH-DBu0yas5.js → abnfDiagram-VCTEODGH-DktdKdMP.js} +1 -1
  79. package/web/assets/{arc-C8OREc8-.js → arc-DYfzA9yu.js} +1 -1
  80. package/web/assets/{architectureDiagram-5GKGNRK7-DW-uxKX_.js → architectureDiagram-5GKGNRK7-CskxB0k3.js} +1 -1
  81. package/web/assets/{blockDiagram-OSKFZWR5-BdpowaJF.js → blockDiagram-OSKFZWR5-Xpyuk_R_.js} +1 -1
  82. package/web/assets/{c4Diagram-7LVT6UL2-CIj5XN7-.js → c4Diagram-7LVT6UL2-BdBrdIh7.js} +1 -1
  83. package/web/assets/{catalog-ownership-service-Om-CO2AO.js → catalog-ownership-service-DQLCHjkb.js} +1 -1
  84. package/web/assets/{catalog-page-service-C7a95mKM.js → catalog-page-service-DfBXj8UO.js} +1 -1
  85. package/web/assets/channel-SICih3KJ.js +1 -0
  86. package/web/assets/{chunk-2Q5K7J3B-qTv1HCpA.js → chunk-2Q5K7J3B-DMWOmjwT.js} +1 -1
  87. package/web/assets/{chunk-5VM5RSS4-Z_81Yg9R.js → chunk-5VM5RSS4-RNe_7tdZ.js} +1 -1
  88. package/web/assets/{chunk-F27PBJKO-ByXYNCQX.js → chunk-F27PBJKO-DBTemRQp.js} +1 -1
  89. package/web/assets/{chunk-HLEWEB6X-Db0t6b8M.js → chunk-HLEWEB6X-Bvz-ooi6.js} +1 -1
  90. package/web/assets/{chunk-JWPE2WC7-mtd3itJH.js → chunk-JWPE2WC7-BLZTbN2h.js} +1 -1
  91. package/web/assets/{chunk-POPQ4Y6H-DjNpwfJ_.js → chunk-POPQ4Y6H-BX4VA4e8.js} +1 -1
  92. package/web/assets/{chunk-SVP7TREG-BJDr9WEi.js → chunk-SVP7TREG-xT5KSFIv.js} +1 -1
  93. package/web/assets/{chunk-XXDRQBXY-B6pSX6oT.js → chunk-XXDRQBXY-d6EOJo4n.js} +1 -1
  94. package/web/assets/{chunk-ZLD2IHE6-QUzKTKo1.js → chunk-ZLD2IHE6-NM2ziQWG.js} +1 -1
  95. package/web/assets/classDiagram-CYGNFDIV-BJhEPuc7.js +1 -0
  96. package/web/assets/classDiagram-v2-TLXNO2FR-BJhEPuc7.js +1 -0
  97. package/web/assets/{conversation-history-CWG_l_s7.js → conversation-history-Cfjf31Eh.js} +1 -1
  98. package/web/assets/{cose-bilkent-JH36ORCC-DsiB67gb.js → cose-bilkent-JH36ORCC-D7vpaSiq.js} +1 -1
  99. package/web/assets/{cynefin-OW5HDTMX-ByAQTEbY.js → cynefin-OW5HDTMX-CRlsUX-V.js} +1 -1
  100. package/web/assets/{cynefinDiagram-5FMLGOSQ-CLvR8C8K.js → cynefinDiagram-5FMLGOSQ-C0zvJdmJ.js} +1 -1
  101. package/web/assets/{dagre-OS7QT2EB-BZY4XKaO.js → dagre-OS7QT2EB-llnyjObi.js} +1 -1
  102. package/web/assets/{diagram-S7CK7UJ4-DZhsMLHj.js → diagram-S7CK7UJ4-2JgAYCu_.js} +1 -1
  103. package/web/assets/{diagram-UQ7AKVKN-gKeE9VCW.js → diagram-UQ7AKVKN-Cecsm_uW.js} +1 -1
  104. package/web/assets/{diagram-VSXAHHWV-DGcOJLzF.js → diagram-VSXAHHWV-C3VSImZi.js} +1 -1
  105. package/web/assets/{diagram-VX7I27RA-YNftovCx.js → diagram-VX7I27RA-B_-1XPN_.js} +1 -1
  106. package/web/assets/{diagram-Z3DM3KII-CYs_A5LR.js → diagram-Z3DM3KII-Dad6nlKG.js} +1 -1
  107. package/web/assets/{ebnfDiagram-PWID7BFC-CfAgj9SA.js → ebnfDiagram-PWID7BFC-C7uocL5X.js} +1 -1
  108. package/web/assets/{enterprise-management-service-DoxF9G8J.js → enterprise-management-service-D6TGnQqg.js} +1 -1
  109. package/web/assets/{erDiagram-2YWLMYGG-D68c5ay0.js → erDiagram-2YWLMYGG-sYj25Lh-.js} +1 -1
  110. package/web/assets/{error-presentation-UGQTkLY-.js → error-presentation-zku4f4Na.js} +1 -1
  111. package/web/assets/{flowDiagram-T62WH6J4-SueK2EIr.js → flowDiagram-T62WH6J4-BYrJI8qA.js} +1 -1
  112. package/web/assets/{ganttDiagram-EL5Y4UJY-DqUpBKVe.js → ganttDiagram-EL5Y4UJY-CbbM1HWv.js} +1 -1
  113. package/web/assets/{gitGraphDiagram-WWUBYQGX-25lcZzew.js → gitGraphDiagram-WWUBYQGX-CmMsWWvP.js} +1 -1
  114. package/web/assets/{hosted-conversation-template-client-j8BSmb6C.js → hosted-conversation-template-client-JIui_x4a.js} +1 -1
  115. package/web/assets/{index-ntE_ZhRt.js → index-9AFvDAsj.js} +1 -1
  116. package/web/assets/{index-1GTIQQ8z.js → index-9xW5hIzI.js} +1 -1
  117. package/web/assets/{index-DwErmPk6.js → index-BAp4jQ2P.js} +1 -1
  118. package/web/assets/{index-C64qxIt_.js → index-BAy8GZSy.js} +1 -1
  119. package/web/assets/{index-D6z2G5Kn.js → index-BQBtWzmd.js} +1 -1
  120. package/web/assets/{index-B1tseZ0y.js → index-B_C8LZPz.js} +1 -1
  121. package/web/assets/{index-Cq0gQdNu.js → index-BcTFR7dB.js} +1 -1
  122. package/web/assets/{index-DRH1HX2S.js → index-BsynB1QZ.js} +1 -1
  123. package/web/assets/{index-WlaKUfsp.js → index-C2gk6wUR.js} +1 -1
  124. package/web/assets/{index-BCIlc_yx.js → index-C34cxK_p.js} +1 -1
  125. package/web/assets/{index-6kwQzDJ5.js → index-CC2XNQF9.js} +1 -1
  126. package/web/assets/index-COk3Og3A.css +1 -0
  127. package/web/assets/{index-L8P4MfkD.js → index-CW9KiHI3.js} +1 -1
  128. package/web/assets/{index-BFbW15q7.js → index-CXYo0aZg.js} +15 -15
  129. package/web/assets/{index-Be5d1p6m.js → index-CY5_MaD9.js} +1 -1
  130. package/web/assets/{index-ZU_3sogz.js → index-CbndX7Cm.js} +1 -1
  131. package/web/assets/{index-DKQH5cxU.js → index-Cqwwldhn.js} +1 -1
  132. package/web/assets/{index-BeFqmV-S.js → index-CxINOeGi.js} +1 -1
  133. package/web/assets/{index-cXt12mWt.js → index-D2CBJtpC.js} +1 -1
  134. package/web/assets/{index-DZiLssjQ.js → index-DCjNcqOd.js} +1 -1
  135. package/web/assets/{index-5c57yBxX.js → index-DH2DgA88.js} +1 -1
  136. package/web/assets/{index-DnnQL2J0.js → index-DO-vPiJ-.js} +1 -1
  137. package/web/assets/{index-C5fDP7hM.js → index-DOdM1hrk.js} +1 -1
  138. package/web/assets/{index-3hGH8X4w.js → index-DOwk78qo.js} +1 -1
  139. package/web/assets/{index-D0BAg9Vm.js → index-EfVODvAX.js} +1 -1
  140. package/web/assets/{index-C3LQg-du.js → index-WVUYMZGr.js} +1 -1
  141. package/web/assets/{index-DXjLMl3l.js → index-rmLuGZaC.js} +1 -1
  142. package/web/assets/{index-D0W2JUwi.js → index-ycWuqeba.js} +1 -1
  143. package/web/assets/{infoDiagram-FKFFQAWI-BBwjh-6f.js → infoDiagram-FKFFQAWI-CMUxwVCy.js} +1 -1
  144. package/web/assets/{ishikawaDiagram-5VMMS53U-CQS9pAgH.js → ishikawaDiagram-5VMMS53U-CgePNWLO.js} +1 -1
  145. package/web/assets/{journeyDiagram-EYS64GPL-Wf3zND8h.js → journeyDiagram-EYS64GPL-cgUNryqu.js} +1 -1
  146. package/web/assets/{kanban-definition-UXKFOSKX-B0s2KfqD.js → kanban-definition-UXKFOSKX-D4aobA2-.js} +1 -1
  147. package/web/assets/{layout-C8Uv0gkT.js → layout-BjqRkOqP.js} +1 -1
  148. package/web/assets/{linear-cvnW3wz3.js → linear-BB8qFJdD.js} +1 -1
  149. package/web/assets/{management-url-service-DZ88REB_.js → management-url-service-BgjJY2L9.js} +1 -1
  150. package/web/assets/{mcp-center-service-BxLSeP6x.js → mcp-center-service-CzwAD1yH.js} +1 -1
  151. package/web/assets/{mermaid.core-tIk1Nhel.js → mermaid.core-CQKmvtuY.js} +5 -5
  152. package/web/assets/{mindmap-definition-THT77NOG-umweN-cI.js → mindmap-definition-THT77NOG-0gbaRj3X.js} +1 -1
  153. package/web/assets/{mobile-dialog-return-service-C1n1IVHV.js → mobile-dialog-return-service-B9Umx6Ja.js} +1 -1
  154. package/web/assets/{oauth-callback-BcjCk3xN.js → oauth-callback-0bvLvnZ5.js} +1 -1
  155. package/web/assets/{pegDiagram-XKGWAZYB-DKJc7Ez9.js → pegDiagram-XKGWAZYB-6IaijsHn.js} +1 -1
  156. package/web/assets/{pieDiagram-E7YTZNPT-BsxpOU9E.js → pieDiagram-E7YTZNPT-BDwpnpAN.js} +1 -1
  157. package/web/assets/{quadrantDiagram-AXDQQJYC-Dy0JSXEc.js → quadrantDiagram-AXDQQJYC-DTHbaV_E.js} +1 -1
  158. package/web/assets/{railroadDiagram-O6MQD6OU-DuWjaEVr.js → railroadDiagram-O6MQD6OU-Bu9b0Olt.js} +1 -1
  159. package/web/assets/{requirementDiagram-IS5BZ75X-CcDa2f9z.js → requirementDiagram-IS5BZ75X-DAklrryn.js} +1 -1
  160. package/web/assets/{runner-presentation-hTBi5beq.js → runner-presentation-C-cTPbeM.js} +1 -1
  161. package/web/assets/{sankeyDiagram-P5KCCOFB-zXSrhCHx.js → sankeyDiagram-P5KCCOFB-DgNah1hF.js} +1 -1
  162. package/web/assets/{sequenceDiagram-WJ2MYXX4-D_zXYQwI.js → sequenceDiagram-WJ2MYXX4-DDsyMCfI.js} +1 -1
  163. package/web/assets/{session-share-client-service-iqg5n2jT.js → session-share-client-service-bdoizmjD.js} +1 -1
  164. package/web/assets/{sizeCapture-INFHLROL-DQHaspbL.js → sizeCapture-INFHLROL-B1euY0bk.js} +1 -1
  165. package/web/assets/{stateDiagram-XQSTLZYL-CZuAC9yx.js → stateDiagram-XQSTLZYL-CwjTbB_i.js} +1 -1
  166. package/web/assets/stateDiagram-v2-IH3M54BS-CAAuya7O.js +1 -0
  167. package/web/assets/{swimlanes-V6O3JKXN-DPLARPKF.js → swimlanes-V6O3JKXN-VuD7hpBC.js} +1 -1
  168. package/web/assets/swimlanesDiagram-JKAHXJPX-CNf6ouPi.js +8 -0
  169. package/web/assets/{time-presentation-D0SLW-7Y.js → time-presentation-BZYgfA5o.js} +1 -1
  170. package/web/assets/{timeline-definition-24CTP7MA-DOCrHy_B.js → timeline-definition-24CTP7MA-D_V_tYRM.js} +1 -1
  171. package/web/assets/{vennDiagram-4TSXK5OY-bxqgw5V-.js → vennDiagram-4TSXK5OY-jshUno_M.js} +1 -1
  172. package/web/assets/{wardleyDiagram-VM6X3IG4-DnYBE0Fi.js → wardleyDiagram-VM6X3IG4-DZHVP425.js} +1 -1
  173. package/web/assets/{workbench-live-service-CQiYAsuU.js → workbench-live-service-O2xlmfOF.js} +1 -1
  174. package/web/assets/{workbench-presentation-DRF1_KCI.js → workbench-presentation-CV7WEE4p.js} +1 -1
  175. package/web/assets/{xychartDiagram-S5SC5T6Z-dEwC3KCd.js → xychartDiagram-S5SC5T6Z-C7Rgv3Ly.js} +1 -1
  176. package/web/docs/404.html +1 -1
  177. package/web/docs/administration/account.html +2 -2
  178. package/web/docs/administration/audit.html +2 -2
  179. package/web/docs/administration/conversation-templates.html +2 -2
  180. package/web/docs/administration/email-notifications.html +2 -2
  181. package/web/docs/administration/license.html +2 -2
  182. package/web/docs/administration/nodes-workspaces.html +2 -2
  183. package/web/docs/administration/oauth.html +2 -2
  184. package/web/docs/administration/secrets.html +2 -2
  185. package/web/docs/administration/template-workspace-maintenance.html +2 -2
  186. package/web/docs/administration/users-organizations.html +2 -2
  187. package/web/docs/assets/{app.DtD1evI0.js → app.D6T8f4Xi.js} +1 -1
  188. package/web/docs/assets/chunks/@localSearchIndexen-US.C3JXCVRL.js +1 -0
  189. package/web/docs/assets/chunks/@localSearchIndexroot.B5rZAuDE.js +1 -0
  190. package/web/docs/assets/chunks/{VPLocalSearchBox.BfQVfx68.js → VPLocalSearchBox.BY8dAd2K.js} +1 -1
  191. package/web/docs/assets/chunks/{theme.JpsRm0j7.js → theme.CwBg9EXL.js} +2 -2
  192. package/web/docs/concepts/architecture.html +2 -2
  193. package/web/docs/concepts/data-and-security.html +2 -2
  194. package/web/docs/concepts/files-git-terminal.html +2 -2
  195. package/web/docs/concepts/node-and-workspace.html +2 -2
  196. package/web/docs/concepts/permissions-and-sharing.html +2 -2
  197. package/web/docs/concepts/runner-control.html +2 -2
  198. package/web/docs/concepts/secrets.html +2 -2
  199. package/web/docs/concepts/session-run-turn.html +2 -2
  200. package/web/docs/deployment/backup-restore.html +2 -2
  201. package/web/docs/deployment/network.html +2 -2
  202. package/web/docs/deployment/node-installation.html +2 -2
  203. package/web/docs/deployment/node-linux.html +2 -2
  204. package/web/docs/deployment/node-macos.html +2 -2
  205. package/web/docs/deployment/node-windows.html +2 -2
  206. package/web/docs/deployment/production.html +2 -2
  207. package/web/docs/deployment/security-checklist.html +2 -2
  208. package/web/docs/deployment/upgrade.html +2 -2
  209. package/web/docs/en-US/administration/account.html +2 -2
  210. package/web/docs/en-US/administration/audit.html +2 -2
  211. package/web/docs/en-US/administration/conversation-templates.html +2 -2
  212. package/web/docs/en-US/administration/email-notifications.html +2 -2
  213. package/web/docs/en-US/administration/license.html +2 -2
  214. package/web/docs/en-US/administration/nodes-workspaces.html +2 -2
  215. package/web/docs/en-US/administration/oauth.html +2 -2
  216. package/web/docs/en-US/administration/secrets.html +2 -2
  217. package/web/docs/en-US/administration/template-workspace-maintenance.html +2 -2
  218. package/web/docs/en-US/administration/users-organizations.html +2 -2
  219. package/web/docs/en-US/concepts/architecture.html +2 -2
  220. package/web/docs/en-US/concepts/data-and-security.html +2 -2
  221. package/web/docs/en-US/concepts/files-git-terminal.html +2 -2
  222. package/web/docs/en-US/concepts/node-and-workspace.html +2 -2
  223. package/web/docs/en-US/concepts/permissions-and-sharing.html +2 -2
  224. package/web/docs/en-US/concepts/runner-control.html +2 -2
  225. package/web/docs/en-US/concepts/secrets.html +2 -2
  226. package/web/docs/en-US/concepts/session-run-turn.html +2 -2
  227. package/web/docs/en-US/deployment/backup-restore.html +2 -2
  228. package/web/docs/en-US/deployment/network.html +2 -2
  229. package/web/docs/en-US/deployment/node-installation.html +2 -2
  230. package/web/docs/en-US/deployment/node-linux.html +2 -2
  231. package/web/docs/en-US/deployment/node-macos.html +2 -2
  232. package/web/docs/en-US/deployment/node-windows.html +2 -2
  233. package/web/docs/en-US/deployment/production.html +2 -2
  234. package/web/docs/en-US/deployment/security-checklist.html +2 -2
  235. package/web/docs/en-US/deployment/upgrade.html +2 -2
  236. package/web/docs/en-US/getting-started/connect-node.html +2 -2
  237. package/web/docs/en-US/getting-started/first-agent-session.html +2 -2
  238. package/web/docs/en-US/getting-started/first-login.html +2 -2
  239. package/web/docs/en-US/getting-started/next-steps.html +2 -2
  240. package/web/docs/en-US/getting-started/npm-quick-start.html +2 -2
  241. package/web/docs/en-US/getting-started/overview.html +2 -2
  242. package/web/docs/en-US/getting-started/prerequisites.html +2 -2
  243. package/web/docs/en-US/getting-started/register-workspace.html +2 -2
  244. package/web/docs/en-US/getting-started/server-installation.html +2 -2
  245. package/web/docs/en-US/operations/marctl.html +2 -2
  246. package/web/docs/en-US/reference/configuration.html +2 -2
  247. package/web/docs/en-US/reference/keyboard-shortcuts.html +2 -2
  248. package/web/docs/en-US/reference/limits.html +2 -2
  249. package/web/docs/en-US/reference/ports-paths-data.html +2 -2
  250. package/web/docs/en-US/reference/status-and-errors.html +2 -2
  251. package/web/docs/en-US/runners/claude-code.html +2 -2
  252. package/web/docs/en-US/runners/codex.html +2 -2
  253. package/web/docs/en-US/runners/mar-agent.html +2 -2
  254. package/web/docs/en-US/runners/opencode.html +2 -2
  255. package/web/docs/en-US/runners/overview.html +2 -2
  256. package/web/docs/en-US/runners/runner-troubleshooting.html +2 -2
  257. package/web/docs/en-US/troubleshooting/node-offline.html +2 -2
  258. package/web/docs/en-US/troubleshooting/quick-diagnosis.html +2 -2
  259. package/web/docs/en-US/troubleshooting/session-run.html +2 -2
  260. package/web/docs/en-US/troubleshooting/terminal.html +2 -2
  261. package/web/docs/en-US/troubleshooting/workspace-files.html +2 -2
  262. package/web/docs/en-US/workbench/composer.html +2 -2
  263. package/web/docs/en-US/workbench/context-and-plan.html +2 -2
  264. package/web/docs/en-US/workbench/conversation.html +2 -2
  265. package/web/docs/en-US/workbench/file-reference-and-attachment.html +2 -2
  266. package/web/docs/en-US/workbench/files.html +2 -2
  267. package/web/docs/en-US/workbench/git-changes.html +2 -2
  268. package/web/docs/en-US/workbench/git-history.html +2 -2
  269. package/web/docs/en-US/workbench/hosted-conversations.html +2 -2
  270. package/web/docs/en-US/workbench/mobile.html +2 -2
  271. package/web/docs/en-US/workbench/navigation.html +2 -2
  272. package/web/docs/en-US/workbench/remote-desktop.html +2 -2
  273. package/web/docs/en-US/workbench/sessions.html +2 -2
  274. package/web/docs/en-US/workbench/skills.html +2 -2
  275. package/web/docs/en-US/workbench/terminal.html +2 -2
  276. package/web/docs/getting-started/connect-node.html +2 -2
  277. package/web/docs/getting-started/first-agent-session.html +2 -2
  278. package/web/docs/getting-started/first-login.html +2 -2
  279. package/web/docs/getting-started/next-steps.html +2 -2
  280. package/web/docs/getting-started/npm-quick-start.html +2 -2
  281. package/web/docs/getting-started/overview.html +2 -2
  282. package/web/docs/getting-started/prerequisites.html +2 -2
  283. package/web/docs/getting-started/register-workspace.html +2 -2
  284. package/web/docs/getting-started/server-installation.html +2 -2
  285. package/web/docs/operations/marctl.html +2 -2
  286. package/web/docs/reference/configuration.html +2 -2
  287. package/web/docs/reference/keyboard-shortcuts.html +2 -2
  288. package/web/docs/reference/limits.html +2 -2
  289. package/web/docs/reference/ports-paths-data.html +2 -2
  290. package/web/docs/reference/status-and-errors.html +2 -2
  291. package/web/docs/runners/claude-code.html +2 -2
  292. package/web/docs/runners/codex.html +2 -2
  293. package/web/docs/runners/mar-agent.html +2 -2
  294. package/web/docs/runners/opencode.html +2 -2
  295. package/web/docs/runners/overview.html +2 -2
  296. package/web/docs/runners/runner-troubleshooting.html +2 -2
  297. package/web/docs/troubleshooting/node-offline.html +2 -2
  298. package/web/docs/troubleshooting/quick-diagnosis.html +2 -2
  299. package/web/docs/troubleshooting/session-run.html +2 -2
  300. package/web/docs/troubleshooting/terminal.html +2 -2
  301. package/web/docs/troubleshooting/workspace-files.html +2 -2
  302. package/web/docs/workbench/composer.html +2 -2
  303. package/web/docs/workbench/context-and-plan.html +2 -2
  304. package/web/docs/workbench/conversation.html +2 -2
  305. package/web/docs/workbench/file-reference-and-attachment.html +2 -2
  306. package/web/docs/workbench/files.html +2 -2
  307. package/web/docs/workbench/git-changes.html +2 -2
  308. package/web/docs/workbench/git-history.html +2 -2
  309. package/web/docs/workbench/hosted-conversations.html +2 -2
  310. package/web/docs/workbench/mobile.html +2 -2
  311. package/web/docs/workbench/navigation.html +2 -2
  312. package/web/docs/workbench/remote-desktop.html +2 -2
  313. package/web/docs/workbench/sessions.html +2 -2
  314. package/web/docs/workbench/skills.html +2 -2
  315. package/web/docs/workbench/terminal.html +2 -2
  316. package/web/index.html +3 -3
  317. package/web/service-worker.js +1 -1
  318. package/web/web-version.json +1 -1
  319. package/web/assets/AuditManagementPage-BGwiwkWO.js +0 -1
  320. package/web/assets/AuditManagementPage-DsqAkiGi.css +0 -1
  321. package/web/assets/AuthEntryPanel-CFtw_f_Y.js +0 -45
  322. package/web/assets/AuthEntryPanel-d8KztXAR.css +0 -1
  323. package/web/assets/EnvironmentSecretManager-C-5fdfXQ.css +0 -1
  324. package/web/assets/EnvironmentSecretManager-rbFx9YED.js +0 -1
  325. package/web/assets/FilePreviewLoading-B58or4ra.css +0 -1
  326. package/web/assets/MarCascader-Cc9hefbo.css +0 -1
  327. package/web/assets/MarDatePicker-Bv6kzLiu.js +0 -1
  328. package/web/assets/MarDatePicker-T5E6eRQy.css +0 -1
  329. package/web/assets/MarDescriptionsItem-D06qWo6K.css +0 -1
  330. package/web/assets/MarDescriptionsItem-Ddl4rEoo.js +0 -1
  331. package/web/assets/MarOptionGroup-BVR0qlAA.css +0 -1
  332. package/web/assets/MarOptionGroup.vue_vue_type_style_index_0_scoped_cacd24eb_lang-BQD1pghB.js +0 -1
  333. package/web/assets/MarSwitch-DSMHC1ur.css +0 -1
  334. package/web/assets/MarTableColumn-DtHETYNc.css +0 -1
  335. package/web/assets/MarTableColumn.vue_vue_type_script_setup_true_lang-9WwypTkY.js +0 -1
  336. package/web/assets/MarTabs-D28b5Cm_.js +0 -1
  337. package/web/assets/MarTabs-hvIwX-j4.css +0 -1
  338. package/web/assets/McpSourceManagementPage-C2XYcsBZ.css +0 -1
  339. package/web/assets/NodeManagementPage-5A5wEaf7.js +0 -1
  340. package/web/assets/NodeManagementPage-D8xNnpz-.js +0 -1
  341. package/web/assets/SecretManagementPage-BQLBf9JN.js +0 -1
  342. package/web/assets/SecretManagementPage-CdG81hZg.js +0 -1
  343. package/web/assets/SkillCenterPage--fuP-slY.css +0 -1
  344. package/web/assets/SkillCenterPage-H2QFeB7_.js +0 -1
  345. package/web/assets/WorkbenchPage-Dlmd8LuY.js +0 -22
  346. package/web/assets/WorkspaceManagementPage-B90eAGf0.js +0 -1
  347. package/web/assets/WorkspaceManagementPage-Dt54G8Zh.js +0 -1
  348. package/web/assets/channel-h8T8Sf1f.js +0 -1
  349. package/web/assets/classDiagram-CYGNFDIV-DmCMc5em.js +0 -1
  350. package/web/assets/classDiagram-v2-TLXNO2FR-DmCMc5em.js +0 -1
  351. package/web/assets/index-CGbMb0Lv.css +0 -1
  352. package/web/assets/stateDiagram-v2-IH3M54BS-BVCGzcEg.js +0 -1
  353. package/web/assets/swimlanesDiagram-JKAHXJPX-0AG7MKMH.js +0 -8
  354. package/web/docs/assets/chunks/@localSearchIndexen-US.DHrLf7lS.js +0 -1
  355. package/web/docs/assets/chunks/@localSearchIndexroot.C6ZO4-Cz.js +0 -1
@@ -1 +1 @@
1
- import{m as W,w as A,W as y,t as n,Y as z,o as l,C as m,D as r,n as C,P,Q as p,E as e,q as u,F as g,a6 as Q,a7 as U,G as O,N as S,T as E,S as T,O as K,a3 as G,k as X,f,X as Y,_ as Z}from"./index-BFbW15q7.js";import{M as j}from"./MarTag-CU69nmi0.js";import{M as H,_ as B}from"./MarTableColumn.vue_vue_type_script_setup_true_lang-9WwypTkY.js";import{M as J,a as M}from"./MarOptionGroup.vue_vue_type_style_index_0_scoped_cacd24eb_lang-BQD1pghB.js";import{a as ee}from"./enterprise-management-service-DoxF9G8J.js";import{o as R}from"./oauth-callback-BcjCk3xN.js";import te from"./SettingsContent-_7yaCY3w.js";import"./workbench-presentation-DRF1_KCI.js";import"./time-presentation-D0SLW-7Y.js";import"./conversation-history-CWG_l_s7.js";import"./MarFormItem.vue_vue_type_script_setup_true_lang-DNgXEgAb.js";import"./mobile-dialog-return-service-C1n1IVHV.js";import"./FilePreviewLoading-D6s3o2bu.js";import"./BusyIndicator-BJHbXq72.js";import"./AuthEntryPanel-CFtw_f_Y.js";import"./uuid-BmNSYLtZ.js";import"./error-presentation-UGQTkLY-.js";import"./MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-oSUSoUdm.js";import"./MarCheckboxGroup-CeaJ5pd8.js";/* empty css */import"./runner-presentation-hTBi5beq.js";import"./HtmlPreviewFrame-fKFJ8kxw.js";import"./MarSwitch-Nht5u3dc.js";import"./file-presentation-Cm7tx53N.js";import"./MarAlert-Dsrb10N-.js";import"./WorkbenchPage-Dlmd8LuY.js";import"./workbench-live-service-CQiYAsuU.js";import"./workspace-direct-transfer-service-H0f55kLn.js";import"./hosted-conversation-template-client-j8BSmb6C.js";import"./code-navigation-target-BlnRe0-a.js";import"./mcp-center-service-BxLSeP6x.js";import"./catalog-page-service-C7a95mKM.js";import"./ManagementPagination-B6Pmmb2K.js";import"./MarDatePicker-Bv6kzLiu.js";import"./MarInputNumber-CcpviHTx.js";import"./MarCascader-BKG_pCU9.js";import"./NodeDetailsDialogs-CunI5Y3P.js";import"./MarDescriptionsItem-Ddl4rEoo.js";import"./EnvironmentSecretManager-rbFx9YED.js";import"./management-url-service-DZ88REB_.js";const ne=["aria-label"],ae={class:"admin-sessions-heading"},ie={key:0,class:"registration-owner"},oe=W({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(d,{emit:_}){const t=d,L=_,N="0.14.13",I=X(()=>({section:t.section,sessions:t.sessions,newPassword:t.newPassword,passwordValidationError:t.passwordValidationError,registrationToken:t.registrationToken,registrationLoading:t.registrationLoading,loading:t.loading,changePassword:t.changePassword,formatSessionTime:t.formatSessionTime,request:t.request,quickPrompts:t.quickPrompts,quickPromptsLoading:t.quickPromptsLoading,quickPromptsFailed:t.quickPromptsFailed,refreshQuickPrompts:t.refreshQuickPrompts})),h=f([]),b=f("PERSONAL"),q=f([]),s=f(!1),v=f(!1);let w=0;A(()=>[t.section,t.edition],async([i,a])=>{if(!(i!=="registration"||a!=="ENTERPRISE"||t.role==="MEMBER"))try{h.value=(await t.request("/api/organizations")).organizations}catch{h.value=[]}},{immediate:!0}),A(()=>[t.section,t.edition],async([i,a])=>{i!=="account"||a!=="ENTERPRISE"||await k()},{immediate:!0});async function k(i=!1){const a=++w;s.value=!0,v.value=i;try{const c=(await t.request("/api/oauth-bindings")).bindings;a===w&&(q.value=c)}catch(c){a===w&&y(R(c,n("generated.settingsContent.unableToLoadOAuthBindings")),"error",c)}finally{a===w&&(s.value=!1,v.value=!1)}}async function V(){s.value||await k(!0)}async function F(i){try{const a=await t.request(`/api/oauth-bindings/${encodeURIComponent(i.providerKey)}/begin`,{method:"POST"});window.location.assign(a.authorizationUrl)}catch(a){y(R(a,n("generated.settingsContent.unableToStartOAuthBinding")),"error",a)}}async function x(i){try{await Y.confirm(n("generated.settingsContent.unbindFromTheCurrentAccount",{value0:i.name}),n("generated.settingsContent.unbindOAuth"),{icon:g("warning"),type:"warning"}),await t.request(`/api/oauth-bindings/${encodeURIComponent(i.providerKey)}`,{method:"DELETE"}),await k(),y(n("generated.settingsContent.oAuthBindingRemoved"),"success")}catch(a){a!=="cancel"&&y(R(a,n("generated.settingsContent.unableToRemoveOAuthBinding")),"error",a)}}function $(){L("createRegistrationToken",typeof b.value=="number"?{ownerType:"ORGANIZATION",ownerOrganizationId:b.value}:void 0)}return(i,a)=>{const c=z("tooltip");return l(),m(te,G({...I.value,...i.$attrs},{"web-version":e(N),onCreateRegistrationToken:$}),{"account-identity":r(()=>[d.edition==="ENTERPRISE"?(l(),C("section",{key:0,class:"oauth-bindings","aria-label":e(n)("generated.settingsContent.oAuthAccountBindings")},[P("div",ae,[P("h3",null,p(e(n)("generated.settingsContent.oAuthAccountBindings2")),1),S(u(e(E),{class:"mar-icon-action",icon:e(g)("refresh"),loading:v.value,disabled:s.value,"aria-label":e(n)("generated.settingsContent.refresh"),text:"",onClick:V},null,8,["icon","loading","disabled","aria-label"]),[[c,e(n)("generated.settingsContent.refresh")]])]),S((l(),m(e(H),{"aria-busy":s.value,data:q.value,"row-key":"providerKey"},{default:r(()=>[u(e(B),{prop:"name",label:e(n)("generated.settingsContent.identityProvider")},null,8,["label"]),u(e(B),{label:e(n)("generated.settingsContent.status"),width:"110"},{default:r(({row:o})=>[u(e(j),{type:o.bound?"success":"info",effect:"light"},{default:r(()=>[T(p(o.bound?e(n)("generated.settingsContent.bound"):e(n)("generated.settingsContent.notBound")),1)]),_:2},1032,["type"])]),_:1},8,["label"]),u(e(B),{label:e(n)("generated.settingsContent.actions"),width:"120"},{default:r(({row:o})=>[o.bound?(l(),m(e(E),{key:1,link:"",type:"danger",icon:e(g)("unlock"),disabled:d.managementWritable!==!0||s.value,onClick:D=>x(o)},{default:r(()=>[T(p(e(n)("generated.settingsContent.unbind")),1)]),_:1},8,["icon","disabled","onClick"])):(l(),m(e(E),{key:0,link:"",icon:e(g)("link"),disabled:d.managementWritable!==!0||s.value,onClick:D=>F(o)},{default:r(()=>[T(p(e(n)("generated.settingsContent.bind")),1)]),_:1},8,["icon","disabled","onClick"]))]),_:1},8,["label"])]),_:1},8,["aria-busy","data"])),[[e(K),s.value&&!v.value,"region"]])],8,ne)):O("",!0)]),"registration-owner":r(()=>[d.edition==="ENTERPRISE"?(l(),C("label",ie,[P("span",null,p(e(n)("generated.settingsContent.nodeOwnership")),1),u(e(J),{modelValue:b.value,"onUpdate:modelValue":a[0]||(a[0]=o=>b.value=o),placeholder:e(n)("generated.settingsContent.selectOwnership"),"clear-icon":e(g)("clear-input"),"suffix-icon":e(g)("chevron-down")},{default:r(()=>[u(e(M),{label:e(n)("generated.settingsContent.personal"),value:"PERSONAL"},null,8,["label"]),(l(!0),C(Q,null,U(h.value,o=>(l(),m(e(M),{key:o.id,label:e(ee)(h.value,o.id),value:o.id,disabled:d.role==="MEMBER"||d.managementWritable!==!0},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue","placeholder","clear-icon","suffix-icon"])])):O("",!0)]),_:1},16,["web-version"])}}}),Ke=Z(oe,[["__scopeId","data-v-18d572b8"]]);export{Ke as default};
1
+ import{m as W,w as A,W as y,t as n,Y as z,o as l,C as m,D as r,n as C,P,Q as p,E as e,q as u,F as g,a6 as Q,a7 as U,G as O,N as S,T as E,S as T,O as K,a3 as G,k as X,f,X as Y,_ as Z}from"./index-CXYo0aZg.js";import{M as j}from"./MarTag-DJs119DS.js";import{M as H,_ as B}from"./MarTableColumn.vue_vue_type_script_setup_true_lang-R6PlEya3.js";import{M as J,a as M}from"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-toYIflmN.js";import{a as ee}from"./enterprise-management-service-D6TGnQqg.js";import{o as R}from"./oauth-callback-0bvLvnZ5.js";import te from"./SettingsContent-1cXlLDfp.js";import"./workbench-presentation-CV7WEE4p.js";import"./time-presentation-BZYgfA5o.js";import"./conversation-history-Cfjf31Eh.js";import"./MarFormItem.vue_vue_type_script_setup_true_lang-DR9vLmUF.js";import"./mobile-dialog-return-service-B9Umx6Ja.js";import"./FilePreviewLoading-es8YT3AE.js";import"./BusyIndicator-ioUVqyOU.js";import"./AuthEntryPanel-2RmEvgPK.js";import"./uuid-BmNSYLtZ.js";import"./error-presentation-zku4f4Na.js";import"./MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-DkLInv-o.js";import"./MarCheckboxGroup-BeoAUtAX.js";/* empty css */import"./runner-presentation-C-cTPbeM.js";import"./HtmlPreviewFrame-C-UQP5Kx.js";import"./MarSwitch-CnzyH7nM.js";import"./file-presentation-Cm7tx53N.js";import"./MarAlert-Cd9UQ3Nb.js";import"./WorkbenchPage-CyEI3Yln.js";import"./workbench-live-service-O2xlmfOF.js";import"./workspace-direct-transfer-service-H0f55kLn.js";import"./hosted-conversation-template-client-JIui_x4a.js";import"./code-navigation-target-BlnRe0-a.js";import"./mcp-center-service-CzwAD1yH.js";import"./catalog-page-service-DfBXj8UO.js";import"./ManagementPagination-BYt4qkTV.js";import"./MarDatePicker-C4dn1W94.js";import"./MarInputNumber-Cj9eIAOI.js";import"./MarCascader-CkPUKKSU.js";import"./NodeDetailsDialogs-D18Hc9Si.js";import"./MarDescriptionsItem-DZlA06Bs.js";import"./EnvironmentSecretManager-TN7goLG1.js";import"./management-url-service-BgjJY2L9.js";const ne=["aria-label"],ae={class:"admin-sessions-heading"},ie={key:0,class:"registration-owner"},oe=W({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(d,{emit:_}){const t=d,L=_,N="0.14.14",I=X(()=>({section:t.section,sessions:t.sessions,newPassword:t.newPassword,passwordValidationError:t.passwordValidationError,registrationToken:t.registrationToken,registrationLoading:t.registrationLoading,loading:t.loading,changePassword:t.changePassword,formatSessionTime:t.formatSessionTime,request:t.request,quickPrompts:t.quickPrompts,quickPromptsLoading:t.quickPromptsLoading,quickPromptsFailed:t.quickPromptsFailed,refreshQuickPrompts:t.refreshQuickPrompts})),h=f([]),b=f("PERSONAL"),q=f([]),s=f(!1),v=f(!1);let w=0;A(()=>[t.section,t.edition],async([i,a])=>{if(!(i!=="registration"||a!=="ENTERPRISE"||t.role==="MEMBER"))try{h.value=(await t.request("/api/organizations")).organizations}catch{h.value=[]}},{immediate:!0}),A(()=>[t.section,t.edition],async([i,a])=>{i!=="account"||a!=="ENTERPRISE"||await k()},{immediate:!0});async function k(i=!1){const a=++w;s.value=!0,v.value=i;try{const c=(await t.request("/api/oauth-bindings")).bindings;a===w&&(q.value=c)}catch(c){a===w&&y(R(c,n("generated.settingsContent.unableToLoadOAuthBindings")),"error",c)}finally{a===w&&(s.value=!1,v.value=!1)}}async function V(){s.value||await k(!0)}async function F(i){try{const a=await t.request(`/api/oauth-bindings/${encodeURIComponent(i.providerKey)}/begin`,{method:"POST"});window.location.assign(a.authorizationUrl)}catch(a){y(R(a,n("generated.settingsContent.unableToStartOAuthBinding")),"error",a)}}async function x(i){try{await Y.confirm(n("generated.settingsContent.unbindFromTheCurrentAccount",{value0:i.name}),n("generated.settingsContent.unbindOAuth"),{icon:g("warning"),type:"warning"}),await t.request(`/api/oauth-bindings/${encodeURIComponent(i.providerKey)}`,{method:"DELETE"}),await k(),y(n("generated.settingsContent.oAuthBindingRemoved"),"success")}catch(a){a!=="cancel"&&y(R(a,n("generated.settingsContent.unableToRemoveOAuthBinding")),"error",a)}}function $(){L("createRegistrationToken",typeof b.value=="number"?{ownerType:"ORGANIZATION",ownerOrganizationId:b.value}:void 0)}return(i,a)=>{const c=z("tooltip");return l(),m(te,G({...I.value,...i.$attrs},{"web-version":e(N),onCreateRegistrationToken:$}),{"account-identity":r(()=>[d.edition==="ENTERPRISE"?(l(),C("section",{key:0,class:"oauth-bindings","aria-label":e(n)("generated.settingsContent.oAuthAccountBindings")},[P("div",ae,[P("h3",null,p(e(n)("generated.settingsContent.oAuthAccountBindings2")),1),S(u(e(E),{class:"mar-icon-action",icon:e(g)("refresh"),loading:v.value,disabled:s.value,"aria-label":e(n)("generated.settingsContent.refresh"),text:"",onClick:V},null,8,["icon","loading","disabled","aria-label"]),[[c,e(n)("generated.settingsContent.refresh")]])]),S((l(),m(e(H),{"aria-busy":s.value,data:q.value,"row-key":"providerKey"},{default:r(()=>[u(e(B),{prop:"name",label:e(n)("generated.settingsContent.identityProvider")},null,8,["label"]),u(e(B),{label:e(n)("generated.settingsContent.status"),width:"110"},{default:r(({row:o})=>[u(e(j),{type:o.bound?"success":"info",effect:"light"},{default:r(()=>[T(p(o.bound?e(n)("generated.settingsContent.bound"):e(n)("generated.settingsContent.notBound")),1)]),_:2},1032,["type"])]),_:1},8,["label"]),u(e(B),{label:e(n)("generated.settingsContent.actions"),width:"120"},{default:r(({row:o})=>[o.bound?(l(),m(e(E),{key:1,link:"",type:"danger",icon:e(g)("unlock"),disabled:d.managementWritable!==!0||s.value,onClick:D=>x(o)},{default:r(()=>[T(p(e(n)("generated.settingsContent.unbind")),1)]),_:1},8,["icon","disabled","onClick"])):(l(),m(e(E),{key:0,link:"",icon:e(g)("link"),disabled:d.managementWritable!==!0||s.value,onClick:D=>F(o)},{default:r(()=>[T(p(e(n)("generated.settingsContent.bind")),1)]),_:1},8,["icon","disabled","onClick"]))]),_:1},8,["label"])]),_:1},8,["aria-busy","data"])),[[e(K),s.value&&!v.value,"region"]])],8,ne)):O("",!0)]),"registration-owner":r(()=>[d.edition==="ENTERPRISE"?(l(),C("label",ie,[P("span",null,p(e(n)("generated.settingsContent.nodeOwnership")),1),u(e(J),{modelValue:b.value,"onUpdate:modelValue":a[0]||(a[0]=o=>b.value=o),placeholder:e(n)("generated.settingsContent.selectOwnership"),"clear-icon":e(g)("clear-input"),"suffix-icon":e(g)("chevron-down")},{default:r(()=>[u(e(M),{label:e(n)("generated.settingsContent.personal"),value:"PERSONAL"},null,8,["label"]),(l(!0),C(Q,null,U(h.value,o=>(l(),m(e(M),{key:o.id,label:e(ee)(h.value,o.id),value:o.id,disabled:d.role==="MEMBER"||d.managementWritable!==!0},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue","placeholder","clear-icon","suffix-icon"])])):O("",!0)]),_:1},16,["web-version"])}}}),Ke=Z(oe,[["__scopeId","data-v-18d572b8"]]);export{Ke as default};
@@ -0,0 +1 @@
1
+ import n from"./SkillCenterPage-CCisqDWN.js";import{m as i,o as p,C as a,t}from"./index-CXYo0aZg.js";import"./MarAlert-Cd9UQ3Nb.js";import"./mcp-center-service-CzwAD1yH.js";import"./catalog-page-service-DfBXj8UO.js";import"./ManagementPagination-BYt4qkTV.js";import"./error-presentation-zku4f4Na.js";import"./BusyIndicator-ioUVqyOU.js";import"./MarTabs-C9xSpZpp.js";import"./MarTag-DJs119DS.js";import"./MarTableColumn.vue_vue_type_script_setup_true_lang-R6PlEya3.js";import"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-toYIflmN.js";import"./time-presentation-BZYgfA5o.js";import"./SkillDetailsDialog-C0_4_KU4.js";import"./MarDescriptionsItem-DZlA06Bs.js";import"./mobile-dialog-return-service-B9Umx6Ja.js";import"./McpDetailsDialog-DulmlCuF.js";import"./conversation-history-Cfjf31Eh.js";const A=i({__name:"SkillCenterPage",props:{request:{type:Function},nodes:{}},setup(r){function o(e){return e==="ENTERPRISE"?t("generated.skillCenterPage.enterprise"):e==="ORGANIZATION"?t("generated.skillCenterPage.organization"):t("generated.skillCenterPage.personal")}return(e,m)=>(p(),a(n,{request:r.request,nodes:r.nodes,"scope-label":o},null,8,["request","nodes"]))}});export{A as default};
@@ -1 +1 @@
1
- import{m as Ee,Z as Xe,o,n as C,q as c,E as e,a5 as Ze,P as p,Q as g,_ as Ve,K as Ue,L as $e,w as x,W as V,e as We,t as a,N as me,O as Ce,D as u,a6 as U,a7 as G,C as f,G as N,F as w,ac as xe,R as Be,a2 as fe,S as b,U as we,T as B,f as h,k as M,X as ne}from"./index-BFbW15q7.js";import{M as Me}from"./MarAlert-Dsrb10N-.js";import{c as je,M as Ke}from"./mcp-center-service-BxLSeP6x.js";import{_ as re,M as Ie}from"./MarTabs-D28b5Cm_.js";import{M as ie}from"./MarTag-CU69nmi0.js";import{M as De,_}from"./MarTableColumn.vue_vue_type_script_setup_true_lang-9WwypTkY.js";import{a as ke,M as Pe}from"./MarOptionGroup.vue_vue_type_style_index_0_scoped_cacd24eb_lang-BQD1pghB.js";import{w as qe,M as ze}from"./ManagementPagination-B6Pmmb2K.js";import{f as ea}from"./time-presentation-D0SLW-7Y.js";import{c as aa,s as Z,S as la}from"./SkillDetailsDialog-DtVFRPBy.js";import{M as ta}from"./McpDetailsDialog-CeN-XR0C.js";import"./conversation-history-CWG_l_s7.js";import{e as na}from"./error-presentation-UGQTkLY-.js";import"./catalog-page-service-C7a95mKM.js";import"./BusyIndicator-BJHbXq72.js";import"./MarDescriptionsItem-Ddl4rEoo.js";import"./mobile-dialog-return-service-C1n1IVHV.js";const ra={class:"mar-ui-empty"},ia=Ee({__name:"MarEmpty",props:{description:{}},setup(H){const L=Xe();return(d,y)=>(o(),C("div",ra,[c(e(Ze),{name:"folder-open",size:"32"}),p("p",null,g(H.description??e(L).noData),1)]))}}),Ge=Ve(ia,[["__scopeId","data-v-cc9970f9"]]),sa={class:"mcp-panel"},oa=["aria-label"],da={class:"target-option-state"},ua={class:"mcp-filter-bar"},ca=["aria-label"],ga=["onClick"],va={class:"mcp-table-section"},pa={key:1},ma={key:0,class:"mcp-tags"},Ca={key:2,class:"mcp-install-progress"},fa=["aria-label"],ka=Ee({__name:"McpCenterPanel",props:{scopeLabel:{type:Function},request:{type:Function},nodes:{}},setup(H){const L=H,d=je(L.request),y=h("NODE"),v=h(""),T=h(""),S=h(!1),K=M(()=>d.loading.value&&!S.value),$=d.catalogPage.keyword,q=d.catalogPage.category,I=h("available"),k=d.catalogPage;qe(k);const m=h(""),z=h(!1),se=h(!1),Y=h(),Q=h({nodes:[],workspaces:[]}),R=M(()=>L.nodes.filter(r=>Q.value.nodes.some(s=>s.id===r.id))),j=M(()=>Q.value.workspaces.filter(r=>r.nodeId===v.value)),W=M(()=>R.value.find(r=>r.id===v.value)),J=d.catalogPage.tags,oe=M(()=>R.value.length===0?a("generated.mcpCenterPanel.thisAccountHasNoManageableNodes"):v.value===""?a("generated.mcpCenterPanel.selectANode"):W.value===void 0?a("generated.mcpCenterPanel.theSelectedNodeIsUnavailableSelectAnother"):W.value.disabled?a("generated.mcpCenterPanel.theSelectedNodeIsDisabledAndCannot"):W.value.connected?y.value==="WORKSPACE"&&j.value.length===0?a("generated.mcpCenterPanel.theSelectedNodeHasNoManageableWorkspaces"):y.value==="WORKSPACE"&&T.value===""?a("generated.mcpCenterPanel.selectAWorkspace"):"":a("generated.mcpCenterPanel.theSelectedNodeIsOfflineMCPCan")),D=M(()=>oe.value===""),ee=M(()=>new Set(d.inspection.value?.installations.map(r=>r.serverName)??[])),O=M(()=>new Map(d.inspection.value?.installations.map(r=>[r.serverName,r])??[])),E=M(()=>{const r=(I.value==="installed"?d.installedCatalog.value:d.catalog.value).map(P=>({...P,catalogAvailable:!0})),s=new Set(r.map(P=>P.serverName)),n=(d.inspection.value?.installations??[]).filter(P=>!s.has(P.serverName)).map(P=>({id:P.catalogEntryId,sourceId:"",scope:"PERSONAL",serverName:P.serverName,displayName:P.displayName,description:a("generated.mcpCenterPanel.thisMCPServerWasRemovedFromThe"),version:P.version,featured:!1,tags:[],runtime:{transport:"STDIO"},catalogAvailable:!1}));return I.value==="installed"?[...r,...n].filter(P=>ee.value.has(P.serverName)):r}),be=E;function de(r){return L.scopeLabel?.(r)??a("generated.mcpCenterPanel.personal")}function pe(r){if(r==="CURRENT")return a("generated.mcpCenterPanel.upToDate");if(r==="UPDATE_AVAILABLE")return a("generated.mcpCenterPanel.updateAvailable");if(r==="INVALID")return a("generated.mcpCenterPanel.invalidConfiguration");if(r==="UNAVAILABLE")return a("generated.mcpCenterPanel.catalogEntryUnavailable")}function ae(r){const s=O.value.get(r.serverName);return s!==void 0&&s.version!==r.version}function ye(r){const s=O.value.get(r.serverName),n=ae(r)?a("generated.mcpCenterPanel.updateAvailable2"):pe(s?.status);Y.value={name:r.displayName,serverName:r.serverName,description:r.description,scope:de(r.scope),version:s?.version??r.version,transport:r.runtime.transport,...n?{status:n}:{},featured:r.featured,tags:r.tags},se.value=!0}Ue(()=>{k.start(),he()}),$e(()=>k.dispose()),x([y,v,T],()=>{S.value=!1,ue()}),x(d.inspection,r=>{r!==void 0&&(S.value=!0)}),x(R,r=>{r.some(s=>s.id===v.value)||(v.value=r[0]?.id??"")}),x(j,r=>{r.some(s=>s.workspaceId===T.value)||(T.value=r[0]?.workspaceId??"")}),x(I,r=>{r==="available"&&X(d.loadCatalog)});async function he(){await X(async()=>{await d.loadCatalog(),Q.value=await L.request("/api/resources"),v.value=R.value.find(r=>r.connected&&!r.disabled)?.id??R.value[0]?.id??""})}async function ue(){if(!D.value){d.clearTarget();return}await X(()=>d.inspect(y.value,v.value,T.value))}async function ce(r,s=!0){m.value=r,z.value=!1;const n=setTimeout(()=>{m.value===r&&(z.value=!0)},800);try{await X(()=>d.install(y.value,v.value,T.value,r,s),s?a("generated.mcpCenterPanel.mCPInstallationWasValidatedOnTheNode"):a("generated.mcpCenterPanel.mCPServerDisabled"))}finally{clearTimeout(n),m.value="",z.value=!1}}async function Ne(r){try{await ne.confirm(a("generated.mcpCenterPanel.removeFromTheCurrentTarget",{value0:r}),a("generated.mcpCenterPanel.removeMCPServer"),{icon:w("warning"),type:"warning",confirmButtonText:a("generated.mcpCenterPanel.remove"),cancelButtonText:a("generated.mcpCenterPanel.cancel")})}catch{return}await X(()=>d.remove(y.value,v.value,T.value,r),a("generated.mcpCenterPanel.mCPServerRemoved"))}async function X(r,s){try{await d.run(r),s&&V(s,"success")}catch(n){n!==d.catalogPage.error.value&&V(le(n),"error",n)}}function le(r){const s=We(r);return s==="NODE_OFFLINE"?a("generated.mcpCenterPanel.theNodeIsOfflineTryAgainAfter"):s==="CAPABILITY_VERSION_UNSUPPORTED"?a("generated.mcpCenterPanel.thisNodeVersionDoesNotSupportMCP"):s==="CAPABILITY_UNAVAILABLE"?a("generated.mcpCenterPanel.mCPManagementIsNotEnabledOnThis"):s==="WORKSPACE_NOT_FOUND"?a("generated.mcpCenterPanel.theWorkspaceNoLongerExistsSelectAnother"):s==="MCP_INSTALL_TIMEOUT"?a("generated.mcpCenterPanel.mCPInstallationValidationTimedOutCheckNode"):s==="MCP_SECRET_MISSING"?a("generated.mcpCenterPanel.aSecretReferencedByMCPIsMissing"):s==="MCP_AUTH_FAILED"?a("generated.mcpCenterPanel.mCPAuthenticationFailedCheckTheReferencedSecrets"):s==="MCP_COMMAND_UNAVAILABLE"?a("generated.mcpCenterPanel.theNodeCouldNotStartTheMCP"):s==="MCP_CONNECTION_FAILED"?a("generated.mcpCenterPanel.theNodeCouldNotConnectToThe"):s==="MCP_PROTOCOL_VALIDATION_FAILED"?a("generated.mcpCenterPanel.mCPProtocolValidationFailedAfterStartupCheck"):s==="MCP_TOOLS_UNAVAILABLE"?a("generated.mcpCenterPanel.mCPConnectedButExposedNoToolsCheck"):s==="NODE_ACCESS_DENIED"||s==="WORKSPACE_FORBIDDEN"?a("generated.mcpCenterPanel.youDoNotHavePermissionToManage"):na(r)}return(r,s)=>me((o(),C("section",sa,[p("section",{class:"mcp-target-panel","aria-label":e(a)("generated.mcpCenterPanel.mCPConfigurationTarget")},[p("div",null,[p("strong",null,g(e(a)("generated.mcpCenterPanel.configurationTarget")),1),p("span",null,g(e(a)("generated.mcpCenterPanel.selectWhereTheMCPServerWillBe")),1)]),c(e(Ke),{modelValue:y.value,"onUpdate:modelValue":s[0]||(s[0]=n=>y.value=n),options:[{label:e(a)("generated.mcpCenterPanel.node"),value:"NODE"},{label:e(a)("generated.mcpCenterPanel.workspace"),value:"WORKSPACE"}]},null,8,["modelValue","options"]),c(e(Pe),{modelValue:v.value,"onUpdate:modelValue":s[1]||(s[1]=n=>v.value=n),"aria-label":e(a)("generated.mcpCenterPanel.node"),placeholder:e(a)("generated.mcpCenterPanel.selectANode2")},{default:u(()=>[(o(!0),C(U,null,G(R.value,n=>(o(),f(e(ke),{key:n.id,label:n.displayName||n.registeredAddress,value:n.id,disabled:n.disabled||!n.connected},{default:u(()=>[p("span",null,g(n.displayName||n.registeredAddress),1),p("span",da,g(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","aria-label","placeholder"]),y.value==="WORKSPACE"?(o(),f(e(Pe),{key:0,modelValue:T.value,"onUpdate:modelValue":s[2]||(s[2]=n=>T.value=n),"aria-label":e(a)("generated.mcpCenterPanel.workspace"),placeholder:e(a)("generated.mcpCenterPanel.selectAWorkspace2")},{default:u(()=>[(o(!0),C(U,null,G(j.value,n=>(o(),f(e(ke),{key:n.workspaceId,label:n.displayName,value:n.workspaceId},null,8,["label","value"]))),128))]),_:1},8,["modelValue","aria-label","placeholder"])):N("",!0)],8,oa),oe.value?(o(),f(e(Me),{key:0,title:oe.value,type:"info",closable:!1},null,8,["title"])):N("",!0),c(e(Ie),{modelValue:I.value,"onUpdate:modelValue":s[3]||(s[3]=n=>I.value=n),class:"mcp-config-tabs"},{default:u(()=>[c(e(re),{label:e(a)("generated.mcpCenterPanel.availableMCPServers"),name:"available"},null,8,["label"]),c(e(re),{label:e(a)("generated.mcpCenterPanel.installedMCPServers"),name:"installed"},null,8,["label"])]),_:1},8,["modelValue"]),p("div",ua,[c(e(Be),{modelValue:e($),"onUpdate:modelValue":s[4]||(s[4]=n=>xe($)?$.value=n:null),clearable:"",placeholder:e(a)("generated.mcpCenterPanel.searchMCPServers"),"clear-icon":e(w)("clear-input")},null,8,["modelValue","placeholder","clear-icon"]),p("div",{class:"mcp-category-strip","aria-label":e(a)("generated.mcpCenterPanel.mCPCategories")},[p("button",{class:fe({selected:e(q)===""}),onClick:s[5]||(s[5]=n=>q.value="")},g(e(a)("generated.mcpCenterPanel.all")),3),(o(!0),C(U,null,G(e(J),n=>(o(),C("button",{key:n,class:fe({selected:e(q)===n}),onClick:P=>q.value=n},g(n),11,ga))),128))],8,ca)]),me((o(),C("div",va,[e(E).length>0?(o(),f(e(De),{key:0,class:"clickable-rows mcp-config-table",data:e(be),"row-key":"id",onRowClick:ye,onSortChange:e(k).sort},{default:u(()=>[c(e(_),{prop:"displayName",label:e(a)("generated.mcpSourceManagementPage.name"),"min-width":"180",sortable:I.value==="available"?"custom":!0},null,8,["label","sortable"]),c(e(_),{prop:"serverName",label:e(a)("generated.mcpDetailsDialog.serverName"),"min-width":"180","show-overflow-tooltip":""},null,8,["label"]),c(e(_),{label:e(a)("generated.mcpSourceManagementPage.scope"),width:"100"},{default:u(({row:n})=>[b(g(de(n.scope)),1)]),_:1},8,["label"]),c(e(_),{prop:"description",label:e(a)("conversationTemplates.description"),"min-width":"260","show-overflow-tooltip":""},{default:u(({row:n})=>[b(g(n.description||e(a)("generated.mcpCenterPanel.noDescriptionIsAvailableForThisMCP")),1)]),_:1},8,["label"]),c(e(_),{label:e(a)("generated.mcpDetailsDialog.version"),width:"120"},{default:u(({row:n})=>[b(g(O.value.get(n.serverName)?.version??n.version),1)]),_:1},8,["label"]),I.value==="installed"?(o(),f(e(_),{key:0,label:e(a)("generated.mcpDetailsDialog.status"),"min-width":"150"},{default:u(({row:n})=>[O.value.get(n.serverName)?.origin==="NODE"&&y.value==="WORKSPACE"?(o(),f(e(ie),{key:0,type:"info",effect:"plain"},{default:u(()=>[b(g(e(a)("generated.mcpCenterPanel.inheritedFromNode")),1)]),_:1})):(o(),C("span",pa,g(ae(n)?e(a)("generated.mcpCenterPanel.updateAvailable3"):pe(O.value.get(n.serverName)?.status)),1))]),_:1},8,["label"])):N("",!0),c(e(_),{label:e(a)("generated.mcpDetailsDialog.tags"),"min-width":"150"},{default:u(({row:n})=>[n.featured||n.tags.length>0?(o(),C("div",ma,[n.featured?(o(),f(e(ie),{key:0,type:"warning",effect:"plain"},{default:u(()=>[b("★ "+g(e(a)("generated.mcpCenterPanel.featured")),1)]),_:1})):N("",!0),(o(!0),C(U,null,G(n.tags,P=>(o(),f(e(ie),{key:P,type:"info",effect:"plain"},{default:u(()=>[b(g(P),1)]),_:2},1024))),128))])):N("",!0)]),_:1},8,["label"]),c(e(_),{label:e(a)("generated.mcpSourceManagementPage.actions"),"min-width":"300"},{default:u(({row:n})=>[p("div",{class:"row-actions",onClick:s[6]||(s[6]=we(()=>{},["stop"]))},[I.value==="installed"?(o(),C(U,{key:0},[c(e(B),{link:"",icon:e(w)("power"),disabled:!D.value||!n.catalogAvailable,onClick:P=>ce(n.id,!O.value.get(n.serverName)?.enabled)},{default:u(()=>[b(g(O.value.get(n.serverName)?.enabled?e(a)("generated.mcpCenterPanel.disable"):e(a)("generated.mcpCenterPanel.enable")),1)]),_:2},1032,["icon","disabled","onClick"]),n.catalogAvailable?(o(),f(e(B),{key:0,link:"",icon:e(w)("retry"),disabled:!D.value,onClick:P=>ce(n.id)},{default:u(()=>[b(g(ae(n)?e(a)("generated.mcpCenterPanel.update"):e(a)("generated.mcpCenterPanel.reinstall")),1)]),_:2},1032,["icon","disabled","onClick"])):N("",!0),O.value.get(n.serverName)?.origin===y.value?(o(),f(e(B),{key:1,link:"",type:"danger",icon:e(w)("delete"),disabled:!D.value,onClick:P=>Ne(n.serverName)},{default:u(()=>[b(g(e(a)("generated.mcpCenterPanel.delete")),1)]),_:1},8,["icon","disabled","onClick"])):N("",!0)],64)):(o(),f(e(B),{key:1,link:"",icon:e(w)("download"),disabled:!D.value,onClick:P=>ce(n.id)},{default:u(()=>[b(g(ee.value.has(n.serverName)?ae(n)?e(a)("generated.mcpCenterPanel.update2"):e(a)("generated.mcpCenterPanel.reinstall2"):e(a)("generated.mcpCenterPanel.install")),1)]),_:2},1032,["icon","disabled","onClick"])),m.value===n.id&&z.value?(o(),C("div",Ca,[p("span",null,g(e(a)("generated.mcpCenterPanel.downloadingAndValidatingMCPOnTheNode")),1),p("div",{class:"mcp-install-progress__indicator",role:"progressbar","aria-label":e(a)("generated.mcpCenterPanel.downloadingAndValidatingMCPOnTheNode")},null,8,fa)])):N("",!0)])]),_:1},8,["label"])]),_:1},8,["data","onSortChange"])):(o(),f(e(Ge),{key:1,description:I.value==="installed"?e(a)("generated.mcpCenterPanel.thisTargetHasNoInstalledMCPServers"):e(a)("generated.mcpCenterPanel.noMCPServersAreAvailableAddOne")},null,8,["description"])),I.value==="available"?(o(),f(ze,{key:2,total:e(k).total.value,"has-more":e(k).hasMore.value,page:e(k).page.value,mobile:e(k).mobileViewport.value,"mobile-visible-count":e(k).mobileVisibleCount.value,loading:e(k).loading.value,"loading-more":e(k).loadingMore.value,onPage:e(k).setPage,failed:e(k).failure.value!==void 0,"incremental-failed":e(k).failure.value?.incremental===!0,error:e(k).failure.value?.error,"context-key":e(k).contextKey.value,onRetry:e(k).retry,onLoadMore:e(k).loadMore},null,8,["total","has-more","page","mobile","mobile-visible-count","loading","loading-more","onPage","failed","incremental-failed","error","context-key","onRetry","onLoadMore"])):N("",!0)])),[[e(Ce),e(k).loading.value&&!e(k).loadingMore.value&&(S.value||!D.value),"region"]]),c(ta,{modelValue:se.value,"onUpdate:modelValue":s[7]||(s[7]=n=>se.value=n),details:Y.value},null,8,["modelValue","details"])])),[[e(Ce),K.value,"page"]])}}),Pa=Ve(ka,[["__scopeId","data-v-d771590e"]]),ba=["aria-label"],ya={class:"skill-page-header"},ha={key:1,class:"skill-content"},Na=["aria-label"],_a={class:"target-option-state"},Ta={class:"skill-filter-bar"},Sa=["aria-label"],Aa=["onClick"],wa={class:"skill-table-section"},Ma={key:0,class:"skill-tags"},Ia={key:0,class:"skill-install-progress"},Da=["aria-label"],Ea={key:1,class:"skill-empty"},Va={class:"skill-table-section"},Oa={key:1,class:"skill-install-progress"},La=["aria-label"],Ra=Ee({__name:"SkillCenterPage",props:{scopeLabel:{type:Function},request:{type:Function},nodes:{}},setup(H){const L=H,d=aa(L.request),y=h("NODE"),v=h(""),T=h(""),S=h(!1),K=h(),$=h(!1),q=d.catalogPage.keyword,I=d.catalogPage.category,k=h("available"),m=d.catalogPage;qe(m);const z=h(!1),se=M(()=>z.value?"region":"page"),Y=h(!1),Q=h(),R=h("skill");let j=!1,W,J;const oe=M(()=>new Set(d.managedTargets.value.nodes.map(l=>l.id))),D=M(()=>L.nodes.filter(l=>oe.value.has(l.id))),ee=M(()=>D.value.find(l=>l.id===v.value)),O=M(()=>d.managedTargets.value.workspaces.filter(l=>l.nodeId===v.value)),F=M(()=>y.value==="WORKSPACE"&&T.value!==""?T.value:void 0),E=M(()=>ee.value!==void 0&&ee.value.connected&&!ee.value.disabled&&(y.value==="NODE"||F.value!==void 0)),be=d.catalogPage.tags,de=d.favorites,pe=M(()=>d.target.value?.skills??[]),ae=de,ye=pe;Ue(()=>{m.start(),ue(d.loadCatalog)}),$e(()=>{m.dispose()}),x(m.result,l=>{l!==void 0&&(z.value=!0)}),x([v,T,y],()=>{ue(async()=>{await he(),await le()})},{immediate:!0}),x(D,l=>{if(l.some(t=>t.id===v.value))return;const i=l.find(t=>t.connected&&!t.disabled);v.value=i?.id??l[0]?.id??"",s()}),x(k,l=>{l==="available"&&ue(d.loadCatalog)});async function he(){if(!j){if(W!==void 0)return W;W=(async()=>{if(await d.loadManagedTargets(),j=!0,!D.value.some(l=>l.id===v.value)){const l=D.value.find(i=>i.connected&&!i.disabled);v.value=l?.id??D.value[0]?.id??"",s()}})();try{await W}finally{W=void 0}}}async function ue(l,i){try{await l()}catch(t){if(t===d.catalogPage.error.value)return;V(Z(t,a("generated.skillCenterPage.theSkillOperationDidNotCompleteTry")),"error",t)}}function ce(l){Q.value={name:l.normalizedName,description:l.description,source:l.repositoryIdentity,scope:_e(l.scope),path:l.skillPath,version:l.commitSha.slice(0,8),updatedAt:X(l.updatedAt),featured:l.featured,tags:l.tags},Y.value=!0}function Ne(l){const i=te(l);Q.value={name:l.name,description:l.description,status:Le(l),...l.install===void 0?{}:{version:l.install.commitSha.slice(0,8)},...i===void 0?{}:{source:i.repositoryIdentity,path:i.skillPath,featured:i.featured,tags:i.tags}},Y.value=!0}function X(l){return ea(l)}async function le(){if(!E.value||v.value===""){d.clearTarget();return}const l=v.value,i=F.value,t=`${l}:${i??""}`;if(J?.key===t)return J.operation;const A=d.inspectTarget(l,i);J={key:t,operation:A};try{await A}finally{J?.operation===A&&(J=void 0)}}async function r(){if(!(!E.value||v.value===""))try{await le();const l=d.target.value;if(l===void 0)return;const i=l.skills.filter(A=>A.localStatus!=="VALID").length,t=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 ne.alert(a("generated.skillCenterPage.environmentModeSkillsFoundRequireAttention",{value0:t,value1:l.skills.length,value2:i}),i>0?a("generated.skillCenterPage.environmentCheckFoundIssues"):a("generated.skillCenterPage.environmentCheckPassed"),{confirmButtonText:a("generated.skillCenterPage.oK"),icon:w(i>0?"warning":"success"),type:i>0?"warning":"success"})}catch(l){ge(l)||V(Z(l,a("generated.skillCenterPage.theEnvironmentCheckDidNotCompleteTry")),"error",l)}}function s(){const l=O.value[0];T.value=l?.workspaceId??""}function n(){y.value==="WORKSPACE"&&T.value===""&&s()}function P(l,i){return d.target.value?.skills.find(t=>t.install?.favoriteId===l||t.name===i)}function He(l){if(S.value&&K.value===l.id)return a("generated.skillCenterPage.installing");const i=P(l.id,l.normalizedName);return i===void 0?a("generated.skillCenterPage.install"):i.install?.versionId===l.currentVersionId?a("generated.skillCenterPage.reinstall"):a("generated.skillCenterPage.update")}async function Oe(l){if(!E.value||v.value===""||S.value)return;const i=v.value,t=F.value,A=`${i}:${t??""}`,Te=P(l.id,l.normalizedName)!==void 0,Je=P(l.id,l.normalizedName);let Fe=!1,Se;try{Te&&Je?.localStatus!=="INVALID_LINK"&&await ne.confirm(a("generated.skillCenterPage.reinstallingWillOverwriteExistingFilesForManual",{value0:l.normalizedName}),a("generated.skillCenterPage.overwriteSkill"),{icon:w("warning"),type:"warning",confirmButtonText:a("generated.skillCenterPage.continue"),cancelButtonText:a("generated.skillCenterPage.cancel")}),S.value=!0,K.value=l.id,$.value=!1,Se=window.setTimeout(()=>{K.value===l.id&&($.value=!0)},800),Fe=!0,await d.install(l.id,i,t,Te),V(Te?a("generated.skillCenterPage.skillUpdated"):a("generated.skillCenterPage.skillInstalled"),"success")}catch(ve){if(ge(ve))return;if(t!==void 0&&We(ve)==="WORKSPACE_SKILL_TRACKED_CONFIRM_REQUIRED"){try{await ne.confirm(a("generated.skillCenterPage.theTargetContainsGitTrackedFilesOverwritten"),a("generated.skillCenterPage.overwriteTrackedFiles"),{icon:w("warning"),type:"warning",confirmButtonText:a("generated.skillCenterPage.overwriteFiles"),cancelButtonText:a("generated.skillCenterPage.cancel2")}),await d.install(l.id,i,t,!0),V(a("generated.skillCenterPage.skillInstalled2"),"success",ve)}catch(Ae){ge(Ae)||V(Z(Ae,a("generated.skillCenterPage.skillInstallationDidNotCompleteTryAgain")),"error",Ae)}return}V(Z(ve,a("generated.skillCenterPage.skillInstallationDidNotCompleteTryAgain2")),"error",ve)}finally{Se!==void 0&&window.clearTimeout(Se),S.value=!1,K.value=void 0,$.value=!1,Fe&&`${v.value}:${F.value??""}`===A&&await le()}}function te(l){return d.installedFavorites.value.find(t=>t.id===l.install?.favoriteId)??d.installedFavorites.value.find(t=>t.normalizedName===l.name)}function Le(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 i=te(l);return i===void 0||l.install===void 0?a("generated.skillCenterPage.unknownVersion2"):i.commitSha===l.install.commitSha?a("generated.skillCenterPage.upToDate"):a("generated.skillCenterPage.updateAvailable")}async function Ye(l){if(!(v.value===""||S.value)){try{await ne.confirm(a("generated.skillCenterPage.deleteFromTheCurrentTargetTheSystem",{value0:l}),a("generated.skillCenterPage.deleteSkill"),{icon:w("warning"),type:"warning",confirmButtonText:a("generated.skillCenterPage.deleteDirectory"),cancelButtonText:a("generated.skillCenterPage.cancel3")})}catch(i){if(ge(i))return;V(Z(i,a("generated.skillCenterPage.unableToConfirmDeletionTryAgainLater")),"error",i);return}await Re(()=>d.removeInstalled(l,v.value,F.value),a("generated.skillCenterPage.skillDeleted"))}}async function Qe(){if(!(v.value===""||F.value===void 0||S.value)){try{await ne.confirm(a("generated.skillCenterPage.repairingTheEnvironmentUpdatesTheWorkspaceS"),a("generated.skillCenterPage.repairSkillEnvironment"),{icon:w("warning"),type:"warning",confirmButtonText:a("generated.skillCenterPage.repair"),cancelButtonText:a("generated.skillCenterPage.cancel4")})}catch(l){if(ge(l))return;V(Z(l,a("generated.skillCenterPage.unableToConfirmRepairTryAgainLater")),"error",l);return}await Re(()=>d.repairGitExclude(v.value,F.value),a("generated.skillCenterPage.localGitExcludeRulesRepaired"))}}async function Re(l,i){const t=`${v.value}:${F.value??""}`;S.value=!0;try{await l(),V(i,"success")}catch(A){V(Z(A,a("generated.skillCenterPage.theSkillOperationDidNotCompleteTry2")),"error",A)}finally{S.value=!1,`${v.value}:${F.value??""}`===t&&await le()}}function ge(l){return l==="cancel"||l==="close"}function _e(l){return L.scopeLabel?.(l)??a("generated.skillCenterPage.personal")}return(l,i)=>(o(),C("section",{class:"skill-page","aria-label":e(a)("generated.skillCenterPage.skillConfiguration")},[p("header",ya,[p("div",null,[p("p",null,g(e(a)("generated.skillCenterPage.installAndMaintainSkillsForNodesOr")),1)])]),c(e(Ie),{modelValue:R.value,"onUpdate:modelValue":i[0]||(i[0]=t=>R.value=t),class:"capability-tabs"},{default:u(()=>[c(e(re),{label:e(a)("common.skill"),name:"skill"},null,8,["label"]),c(e(re),{label:e(a)("common.mcp"),name:"mcp"},null,8,["label"])]),_:1},8,["modelValue"]),R.value==="mcp"?(o(),f(Pa,{key:0,"scope-label":_e,request:H.request,nodes:H.nodes},null,8,["request","nodes"])):(o(),C("section",ha,[p("section",{class:"target-panel","aria-label":e(a)("generated.skillCenterPage.skillConfigurationTarget")},[p("div",null,[p("strong",null,g(e(a)("generated.skillCenterPage.configurationTarget")),1),p("span",null,g(e(a)("generated.skillCenterPage.selectWhereTheSkillWillBeUsed")),1)]),c(e(Ke),{modelValue:y.value,"onUpdate:modelValue":i[1]||(i[1]=t=>y.value=t),options:[{label:e(a)("generated.skillCenterPage.node"),value:"NODE"},{label:e(a)("generated.skillCenterPage.workspace"),value:"WORKSPACE"}],onChange:n},null,8,["modelValue","options"]),c(e(Pe),{modelValue:v.value,"onUpdate:modelValue":i[2]||(i[2]=t=>v.value=t),class:"target-select",placeholder:e(a)("generated.skillCenterPage.selectANode"),"aria-label":e(a)("generated.skillCenterPage.skillNode"),onChange:s},{default:u(()=>[(o(!0),C(U,null,G(D.value,t=>(o(),f(e(ke),{key:t.id,value:t.id,label:t.displayName||t.registeredAddress||t.id,disabled:!t.connected||t.disabled},{default:u(()=>[p("span",null,g(t.displayName||t.registeredAddress||t.id),1),p("span",_a,g(t.disabled?e(a)("generated.skillCenterPage.disabled"):t.connected?e(a)("generated.skillCenterPage.online"):e(a)("generated.skillCenterPage.offline")),1)]),_:2},1032,["value","label","disabled"]))),128))]),_:1},8,["modelValue","placeholder","aria-label"]),y.value==="WORKSPACE"?(o(),f(e(Pe),{key:0,modelValue:T.value,"onUpdate:modelValue":i[3]||(i[3]=t=>T.value=t),class:"target-select",placeholder:e(a)("generated.skillCenterPage.selectAWorkspace"),"aria-label":e(a)("generated.skillCenterPage.skillWorkspace")},{default:u(()=>[(o(!0),C(U,null,G(O.value,t=>(o(),f(e(ke),{key:t.workspaceId,value:t.workspaceId,label:t.displayName},null,8,["value","label"]))),128))]),_:1},8,["modelValue","placeholder","aria-label"])):N("",!0),c(e(B),{icon:e(w)("refresh"),disabled:!E.value||e(d).targetLoading.value,loading:e(d).targetLoading.value&&k.value!=="installed",onClick:r},{default:u(()=>[b(g(e(a)("generated.skillCenterPage.checkEnvironment")),1)]),_:1},8,["icon","disabled","loading"]),y.value==="WORKSPACE"?(o(),f(e(B),{key:1,icon:e(w)("tool"),disabled:!E.value||S.value,onClick:Qe},{default:u(()=>[b(g(e(a)("generated.skillCenterPage.repairEnvironment")),1)]),_:1},8,["icon","disabled"])):N("",!0)],8,Na),D.value.length===0?(o(),f(e(Me),{key:0,type:"warning",closable:!1,title:e(a)("generated.skillCenterPage.noManageableNodesAreAvailableForSkill")},null,8,["title"])):v.value&&!E.value?(o(),f(e(Me),{key:1,type:"warning",closable:!1,title:e(a)("generated.skillCenterPage.theCurrentNodeDoesNotSupportThis")},null,8,["title"])):N("",!0),c(e(Ie),{modelValue:k.value,"onUpdate:modelValue":i[8]||(i[8]=t=>k.value=t),class:"skill-config-tabs"},{default:u(()=>[c(e(re),{label:e(a)("generated.skillCenterPage.availableSkills"),name:"available"},{default:u(()=>[p("div",Ta,[c(e(Be),{modelValue:e(q),"onUpdate:modelValue":i[4]||(i[4]=t=>xe(q)?q.value=t:null),clearable:"",placeholder:e(a)("generated.skillCenterPage.searchSkillNamesOrDescriptions2"),"clear-icon":e(w)("clear-input")},null,8,["modelValue","placeholder","clear-icon"]),p("div",{class:"skill-category-strip","aria-label":e(a)("generated.skillCenterPage.skillCategories2")},[p("button",{class:fe({selected:e(I)===""}),onClick:i[5]||(i[5]=t=>I.value="")},g(e(a)("generated.skillCenterPage.all2")),3),(o(!0),C(U,null,G(e(be),t=>(o(),C("button",{key:t,class:fe({selected:e(I)===t}),onClick:A=>I.value=t},g(t),11,Aa))),128))],8,Sa)]),me((o(),C("div",wa,[e(de).length>0?(o(),C(U,{key:0},[c(e(De),{class:"clickable-rows available-skill-table",data:e(ae),"row-key":"id",onRowClick:ce,onSortChange:e(m).sort},{default:u(()=>[c(e(_),{prop:"normalizedName",label:e(a)("generated.skillSourceManagementPage.name"),sortable:"custom","min-width":"180"},null,8,["label"]),c(e(_),{label:e(a)("generated.skillDetailsDialog.availability"),width:"140","class-name":"skill-scope-column"},{default:u(({row:t})=>[b(g(_e(t.scope)),1)]),_:1},8,["label"]),c(e(_),{prop:"description",label:e(a)("conversationTemplates.description"),"min-width":"280","show-overflow-tooltip":""},{default:u(({row:t})=>[b(g(t.description||e(a)("generated.skillCenterPage.noDescriptionIsAvailableForThisSkill2")),1)]),_:1},8,["label"]),c(e(_),{label:e(a)("generated.skillDetailsDialog.tags"),"min-width":"150"},{default:u(({row:t})=>[t.featured||t.tags.length>0?(o(),C("div",Ma,[t.featured?(o(),f(e(ie),{key:0,type:"warning",effect:"plain"},{default:u(()=>[b("★ "+g(e(a)("generated.skillCenterPage.featured2")),1)]),_:1})):N("",!0),(o(!0),C(U,null,G(t.tags,A=>(o(),f(e(ie),{key:A,type:"info",effect:"plain"},{default:u(()=>[b(g(A),1)]),_:2},1024))),128))])):N("",!0)]),_:1},8,["label"]),c(e(_),{label:e(a)("generated.skillSourceManagementPage.actions"),"min-width":"220"},{default:u(({row:t})=>[p("div",{class:"row-actions",onClick:i[6]||(i[6]=we(()=>{},["stop"]))},[c(e(B),{link:"",icon:e(w)("download"),disabled:!E.value||S.value,onClick:A=>Oe(t)},{default:u(()=>[b(g(He(t)),1)]),_:2},1032,["icon","disabled","onClick"]),K.value===t.id&&$.value?(o(),C("div",Ia,[p("span",null,g(e(a)("generated.skillCenterPage.installingAndValidatingTheSkillOnThe")),1),p("div",{class:"skill-install-progress__indicator",role:"progressbar","aria-label":e(a)("generated.skillCenterPage.installingAndValidatingTheSkillOnThe")},null,8,Da)])):N("",!0)])]),_:1},8,["label"])]),_:1},8,["data","onSortChange"]),c(ze,{total:e(m).total.value,"has-more":e(m).hasMore.value,page:e(m).page.value,mobile:e(m).mobileViewport.value,"mobile-visible-count":e(m).mobileVisibleCount.value,loading:e(m).loading.value,"loading-more":e(m).loadingMore.value,onPage:e(m).setPage,failed:e(m).failure.value!==void 0,"incremental-failed":e(m).failure.value?.incremental===!0,error:e(m).failure.value?.error,"context-key":e(m).contextKey.value,onRetry:e(m).retry,onLoadMore:e(m).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(d).loading.value?N("",!0):(o(),C("div",Ea,g(e(d).favorites.value.length===0?e(a)("generated.skillCenterPage.noSkillsAreAvailableAddSkillsFrom2"):e(a)("generated.skillCenterPage.noMatchingSkills2")),1))])),[[e(Ce),z.value?e(m).loading.value&&!e(m).loadingMore.value:e(d).loading.value,se.value]])]),_:1},8,["label"]),c(e(re),{label:e(a)("generated.skillCenterPage.installedSkills"),name:"installed"},{default:u(()=>[me((o(),C("div",Va,[(e(d).target.value?.skills.length??0)>0?(o(),f(e(De),{key:0,class:"clickable-rows installed-skill-table",data:e(ye),"row-key":"name",onRowClick:Ne},{default:u(()=>[c(e(_),{prop:"name",label:e(a)("generated.skillSourceManagementPage.name"),sortable:"","min-width":"180"},null,8,["label"]),c(e(_),{label:e(a)("generated.skillDetailsDialog.status"),"min-width":"160"},{default:u(({row:t})=>[c(e(ie),{type:t.localStatus==="VALID"?"success":"warning",effect:"plain"},{default:u(()=>[b(g(Le(t)),1)]),_:2},1032,["type"])]),_:1},8,["label"]),c(e(_),{prop:"description",label:e(a)("conversationTemplates.description"),"min-width":"280","show-overflow-tooltip":""},{default:u(({row:t})=>[b(g(t.description||e(a)("generated.skillCenterPage.noValidSkillDescriptionWasFound")),1)]),_:1},8,["label"]),c(e(_),{label:e(a)("generated.skillDetailsDialog.version"),width:"120"},{default:u(({row:t})=>[b(g(t.install?.commitSha.slice(0,8)??"—"),1)]),_:1},8,["label"]),c(e(_),{label:e(a)("generated.skillSourceManagementPage.actions"),"min-width":"300"},{default:u(({row:t})=>[p("div",{class:"row-actions",onClick:i[7]||(i[7]=we(()=>{},["stop"]))},[te(t)?(o(),f(e(B),{key:0,link:"",icon:e(w)("retry"),disabled:!E.value||S.value,onClick:A=>Oe(te(t))},{default:u(()=>[b(g(te(t)?.commitSha!==t.install?.commitSha?e(a)("generated.skillCenterPage.update2"):e(a)("generated.skillCenterPage.reinstall2")),1)]),_:2},1032,["icon","disabled","onClick"])):N("",!0),c(e(B),{link:"",type:"danger",icon:e(w)("delete"),disabled:!E.value||S.value,onClick:A=>Ye(t.name)},{default:u(()=>[b(g(e(a)("generated.skillCenterPage.delete")),1)]),_:1},8,["icon","disabled","onClick"]),te(t)?.id===K.value&&$.value?(o(),C("div",Oa,[p("span",null,g(e(a)("generated.skillCenterPage.installingAndValidatingTheSkillOnThe2")),1),p("div",{class:"skill-install-progress__indicator",role:"progressbar","aria-label":e(a)("generated.skillCenterPage.installingAndValidatingTheSkillOnThe2")},null,8,La)])):N("",!0)])]),_:1},8,["label"])]),_:1},8,["data"])):e(d).target.value?(o(),f(e(Ge),{key:1,description:e(a)("generated.skillCenterPage.thisTargetHasNoInstalledSkills")},null,8,["description"])):N("",!0)])),[[e(Ce),e(d).targetLoading.value,"region"]])]),_:1},8,["label"])]),_:1},8,["modelValue"])])),c(la,{modelValue:Y.value,"onUpdate:modelValue":i[9]||(i[9]=t=>Y.value=t),details:Q.value},null,8,["modelValue","details"])],8,ba))}}),el=Ve(Ra,[["__scopeId","data-v-19e6b966"]]);export{el as default};
1
+ import{m as Ee,Z as Xe,o,n as C,q as c,E as e,a5 as Ze,P as p,Q as g,_ as Ve,K as Ue,L as $e,w as x,W as V,e as We,t as a,N as me,O as Ce,D as u,a6 as U,a7 as G,C as f,G as N,F as w,ac as xe,R as Be,a2 as fe,S as b,U as we,T as B,f as h,k as M,X as ne}from"./index-CXYo0aZg.js";import{M as Me}from"./MarAlert-Cd9UQ3Nb.js";import{c as je,M as Ke}from"./mcp-center-service-CzwAD1yH.js";import{M as re,a as Ie}from"./MarTabs-C9xSpZpp.js";import{M as ie}from"./MarTag-DJs119DS.js";import{M as De,_}from"./MarTableColumn.vue_vue_type_script_setup_true_lang-R6PlEya3.js";import{a as ke,M as Pe}from"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-toYIflmN.js";import{w as qe,M as ze}from"./ManagementPagination-BYt4qkTV.js";import{f as ea}from"./time-presentation-BZYgfA5o.js";import{c as aa,s as Z,S as la}from"./SkillDetailsDialog-C0_4_KU4.js";import{M as ta}from"./McpDetailsDialog-DulmlCuF.js";import"./conversation-history-Cfjf31Eh.js";import{e as na}from"./error-presentation-zku4f4Na.js";import"./catalog-page-service-DfBXj8UO.js";import"./BusyIndicator-ioUVqyOU.js";import"./MarDescriptionsItem-DZlA06Bs.js";import"./mobile-dialog-return-service-B9Umx6Ja.js";const ra={class:"mar-ui-empty"},ia=Ee({__name:"MarEmpty",props:{description:{}},setup(H){const L=Xe();return(d,y)=>(o(),C("div",ra,[c(e(Ze),{name:"folder-open",size:"32"}),p("p",null,g(H.description??e(L).noData),1)]))}}),Ge=Ve(ia,[["__scopeId","data-v-cc9970f9"]]),sa={class:"mcp-panel"},oa=["aria-label"],da={class:"target-option-state"},ua={class:"mcp-filter-bar"},ca=["aria-label"],ga=["onClick"],va={class:"mcp-table-section"},pa={key:1},ma={key:0,class:"mcp-tags"},Ca={key:2,class:"mcp-install-progress"},fa=["aria-label"],ka=Ee({__name:"McpCenterPanel",props:{scopeLabel:{type:Function},request:{type:Function},nodes:{}},setup(H){const L=H,d=je(L.request),y=h("NODE"),v=h(""),T=h(""),S=h(!1),K=M(()=>d.loading.value&&!S.value),$=d.catalogPage.keyword,q=d.catalogPage.category,I=h("available"),k=d.catalogPage;qe(k);const m=h(""),z=h(!1),se=h(!1),Y=h(),Q=h({nodes:[],workspaces:[]}),R=M(()=>L.nodes.filter(r=>Q.value.nodes.some(s=>s.id===r.id))),j=M(()=>Q.value.workspaces.filter(r=>r.nodeId===v.value)),W=M(()=>R.value.find(r=>r.id===v.value)),J=d.catalogPage.tags,oe=M(()=>R.value.length===0?a("generated.mcpCenterPanel.thisAccountHasNoManageableNodes"):v.value===""?a("generated.mcpCenterPanel.selectANode"):W.value===void 0?a("generated.mcpCenterPanel.theSelectedNodeIsUnavailableSelectAnother"):W.value.disabled?a("generated.mcpCenterPanel.theSelectedNodeIsDisabledAndCannot"):W.value.connected?y.value==="WORKSPACE"&&j.value.length===0?a("generated.mcpCenterPanel.theSelectedNodeHasNoManageableWorkspaces"):y.value==="WORKSPACE"&&T.value===""?a("generated.mcpCenterPanel.selectAWorkspace"):"":a("generated.mcpCenterPanel.theSelectedNodeIsOfflineMCPCan")),D=M(()=>oe.value===""),ee=M(()=>new Set(d.inspection.value?.installations.map(r=>r.serverName)??[])),O=M(()=>new Map(d.inspection.value?.installations.map(r=>[r.serverName,r])??[])),E=M(()=>{const r=(I.value==="installed"?d.installedCatalog.value:d.catalog.value).map(P=>({...P,catalogAvailable:!0})),s=new Set(r.map(P=>P.serverName)),n=(d.inspection.value?.installations??[]).filter(P=>!s.has(P.serverName)).map(P=>({id:P.catalogEntryId,sourceId:"",scope:"PERSONAL",serverName:P.serverName,displayName:P.displayName,description:a("generated.mcpCenterPanel.thisMCPServerWasRemovedFromThe"),version:P.version,featured:!1,tags:[],runtime:{transport:"STDIO"},catalogAvailable:!1}));return I.value==="installed"?[...r,...n].filter(P=>ee.value.has(P.serverName)):r}),be=E;function de(r){return L.scopeLabel?.(r)??a("generated.mcpCenterPanel.personal")}function pe(r){if(r==="CURRENT")return a("generated.mcpCenterPanel.upToDate");if(r==="UPDATE_AVAILABLE")return a("generated.mcpCenterPanel.updateAvailable");if(r==="INVALID")return a("generated.mcpCenterPanel.invalidConfiguration");if(r==="UNAVAILABLE")return a("generated.mcpCenterPanel.catalogEntryUnavailable")}function ae(r){const s=O.value.get(r.serverName);return s!==void 0&&s.version!==r.version}function ye(r){const s=O.value.get(r.serverName),n=ae(r)?a("generated.mcpCenterPanel.updateAvailable2"):pe(s?.status);Y.value={name:r.displayName,serverName:r.serverName,description:r.description,scope:de(r.scope),version:s?.version??r.version,transport:r.runtime.transport,...n?{status:n}:{},featured:r.featured,tags:r.tags},se.value=!0}Ue(()=>{k.start(),he()}),$e(()=>k.dispose()),x([y,v,T],()=>{S.value=!1,ue()}),x(d.inspection,r=>{r!==void 0&&(S.value=!0)}),x(R,r=>{r.some(s=>s.id===v.value)||(v.value=r[0]?.id??"")}),x(j,r=>{r.some(s=>s.workspaceId===T.value)||(T.value=r[0]?.workspaceId??"")}),x(I,r=>{r==="available"&&X(d.loadCatalog)});async function he(){await X(async()=>{await d.loadCatalog(),Q.value=await L.request("/api/resources"),v.value=R.value.find(r=>r.connected&&!r.disabled)?.id??R.value[0]?.id??""})}async function ue(){if(!D.value){d.clearTarget();return}await X(()=>d.inspect(y.value,v.value,T.value))}async function ce(r,s=!0){m.value=r,z.value=!1;const n=setTimeout(()=>{m.value===r&&(z.value=!0)},800);try{await X(()=>d.install(y.value,v.value,T.value,r,s),s?a("generated.mcpCenterPanel.mCPInstallationWasValidatedOnTheNode"):a("generated.mcpCenterPanel.mCPServerDisabled"))}finally{clearTimeout(n),m.value="",z.value=!1}}async function Ne(r){try{await ne.confirm(a("generated.mcpCenterPanel.removeFromTheCurrentTarget",{value0:r}),a("generated.mcpCenterPanel.removeMCPServer"),{icon:w("warning"),type:"warning",confirmButtonText:a("generated.mcpCenterPanel.remove"),cancelButtonText:a("generated.mcpCenterPanel.cancel")})}catch{return}await X(()=>d.remove(y.value,v.value,T.value,r),a("generated.mcpCenterPanel.mCPServerRemoved"))}async function X(r,s){try{await d.run(r),s&&V(s,"success")}catch(n){n!==d.catalogPage.error.value&&V(le(n),"error",n)}}function le(r){const s=We(r);return s==="NODE_OFFLINE"?a("generated.mcpCenterPanel.theNodeIsOfflineTryAgainAfter"):s==="CAPABILITY_VERSION_UNSUPPORTED"?a("generated.mcpCenterPanel.thisNodeVersionDoesNotSupportMCP"):s==="CAPABILITY_UNAVAILABLE"?a("generated.mcpCenterPanel.mCPManagementIsNotEnabledOnThis"):s==="WORKSPACE_NOT_FOUND"?a("generated.mcpCenterPanel.theWorkspaceNoLongerExistsSelectAnother"):s==="MCP_INSTALL_TIMEOUT"?a("generated.mcpCenterPanel.mCPInstallationValidationTimedOutCheckNode"):s==="MCP_SECRET_MISSING"?a("generated.mcpCenterPanel.aSecretReferencedByMCPIsMissing"):s==="MCP_AUTH_FAILED"?a("generated.mcpCenterPanel.mCPAuthenticationFailedCheckTheReferencedSecrets"):s==="MCP_COMMAND_UNAVAILABLE"?a("generated.mcpCenterPanel.theNodeCouldNotStartTheMCP"):s==="MCP_CONNECTION_FAILED"?a("generated.mcpCenterPanel.theNodeCouldNotConnectToThe"):s==="MCP_PROTOCOL_VALIDATION_FAILED"?a("generated.mcpCenterPanel.mCPProtocolValidationFailedAfterStartupCheck"):s==="MCP_TOOLS_UNAVAILABLE"?a("generated.mcpCenterPanel.mCPConnectedButExposedNoToolsCheck"):s==="NODE_ACCESS_DENIED"||s==="WORKSPACE_FORBIDDEN"?a("generated.mcpCenterPanel.youDoNotHavePermissionToManage"):na(r)}return(r,s)=>me((o(),C("section",sa,[p("section",{class:"mcp-target-panel","aria-label":e(a)("generated.mcpCenterPanel.mCPConfigurationTarget")},[p("div",null,[p("strong",null,g(e(a)("generated.mcpCenterPanel.configurationTarget")),1),p("span",null,g(e(a)("generated.mcpCenterPanel.selectWhereTheMCPServerWillBe")),1)]),c(e(Ke),{modelValue:y.value,"onUpdate:modelValue":s[0]||(s[0]=n=>y.value=n),options:[{label:e(a)("generated.mcpCenterPanel.node"),value:"NODE"},{label:e(a)("generated.mcpCenterPanel.workspace"),value:"WORKSPACE"}]},null,8,["modelValue","options"]),c(e(Pe),{modelValue:v.value,"onUpdate:modelValue":s[1]||(s[1]=n=>v.value=n),"aria-label":e(a)("generated.mcpCenterPanel.node"),placeholder:e(a)("generated.mcpCenterPanel.selectANode2")},{default:u(()=>[(o(!0),C(U,null,G(R.value,n=>(o(),f(e(ke),{key:n.id,label:n.displayName||n.registeredAddress,value:n.id,disabled:n.disabled||!n.connected},{default:u(()=>[p("span",null,g(n.displayName||n.registeredAddress),1),p("span",da,g(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","aria-label","placeholder"]),y.value==="WORKSPACE"?(o(),f(e(Pe),{key:0,modelValue:T.value,"onUpdate:modelValue":s[2]||(s[2]=n=>T.value=n),"aria-label":e(a)("generated.mcpCenterPanel.workspace"),placeholder:e(a)("generated.mcpCenterPanel.selectAWorkspace2")},{default:u(()=>[(o(!0),C(U,null,G(j.value,n=>(o(),f(e(ke),{key:n.workspaceId,label:n.displayName,value:n.workspaceId},null,8,["label","value"]))),128))]),_:1},8,["modelValue","aria-label","placeholder"])):N("",!0)],8,oa),oe.value?(o(),f(e(Me),{key:0,title:oe.value,type:"info",closable:!1},null,8,["title"])):N("",!0),c(e(Ie),{modelValue:I.value,"onUpdate:modelValue":s[3]||(s[3]=n=>I.value=n),class:"mcp-config-tabs"},{default:u(()=>[c(e(re),{label:e(a)("generated.mcpCenterPanel.availableMCPServers"),name:"available"},null,8,["label"]),c(e(re),{label:e(a)("generated.mcpCenterPanel.installedMCPServers"),name:"installed"},null,8,["label"])]),_:1},8,["modelValue"]),p("div",ua,[c(e(Be),{modelValue:e($),"onUpdate:modelValue":s[4]||(s[4]=n=>xe($)?$.value=n:null),clearable:"",placeholder:e(a)("generated.mcpCenterPanel.searchMCPServers"),"clear-icon":e(w)("clear-input")},null,8,["modelValue","placeholder","clear-icon"]),p("div",{class:"mcp-category-strip","aria-label":e(a)("generated.mcpCenterPanel.mCPCategories")},[p("button",{class:fe({selected:e(q)===""}),onClick:s[5]||(s[5]=n=>q.value="")},g(e(a)("generated.mcpCenterPanel.all")),3),(o(!0),C(U,null,G(e(J),n=>(o(),C("button",{key:n,class:fe({selected:e(q)===n}),onClick:P=>q.value=n},g(n),11,ga))),128))],8,ca)]),me((o(),C("div",va,[e(E).length>0?(o(),f(e(De),{key:0,class:"clickable-rows mcp-config-table",data:e(be),"row-key":"id",onRowClick:ye,onSortChange:e(k).sort},{default:u(()=>[c(e(_),{prop:"displayName",label:e(a)("generated.mcpSourceManagementPage.name"),"min-width":"180",sortable:I.value==="available"?"custom":!0},null,8,["label","sortable"]),c(e(_),{prop:"serverName",label:e(a)("generated.mcpDetailsDialog.serverName"),"min-width":"180","show-overflow-tooltip":""},null,8,["label"]),c(e(_),{label:e(a)("generated.mcpSourceManagementPage.scope"),width:"100"},{default:u(({row:n})=>[b(g(de(n.scope)),1)]),_:1},8,["label"]),c(e(_),{prop:"description",label:e(a)("conversationTemplates.description"),"min-width":"260","show-overflow-tooltip":""},{default:u(({row:n})=>[b(g(n.description||e(a)("generated.mcpCenterPanel.noDescriptionIsAvailableForThisMCP")),1)]),_:1},8,["label"]),c(e(_),{label:e(a)("generated.mcpDetailsDialog.version"),width:"120"},{default:u(({row:n})=>[b(g(O.value.get(n.serverName)?.version??n.version),1)]),_:1},8,["label"]),I.value==="installed"?(o(),f(e(_),{key:0,label:e(a)("generated.mcpDetailsDialog.status"),"min-width":"150"},{default:u(({row:n})=>[O.value.get(n.serverName)?.origin==="NODE"&&y.value==="WORKSPACE"?(o(),f(e(ie),{key:0,type:"info",effect:"plain"},{default:u(()=>[b(g(e(a)("generated.mcpCenterPanel.inheritedFromNode")),1)]),_:1})):(o(),C("span",pa,g(ae(n)?e(a)("generated.mcpCenterPanel.updateAvailable3"):pe(O.value.get(n.serverName)?.status)),1))]),_:1},8,["label"])):N("",!0),c(e(_),{label:e(a)("generated.mcpDetailsDialog.tags"),"min-width":"150"},{default:u(({row:n})=>[n.featured||n.tags.length>0?(o(),C("div",ma,[n.featured?(o(),f(e(ie),{key:0,type:"warning",effect:"plain"},{default:u(()=>[b("★ "+g(e(a)("generated.mcpCenterPanel.featured")),1)]),_:1})):N("",!0),(o(!0),C(U,null,G(n.tags,P=>(o(),f(e(ie),{key:P,type:"info",effect:"plain"},{default:u(()=>[b(g(P),1)]),_:2},1024))),128))])):N("",!0)]),_:1},8,["label"]),c(e(_),{label:e(a)("generated.mcpSourceManagementPage.actions"),"min-width":"300"},{default:u(({row:n})=>[p("div",{class:"row-actions",onClick:s[6]||(s[6]=we(()=>{},["stop"]))},[I.value==="installed"?(o(),C(U,{key:0},[c(e(B),{link:"",icon:e(w)("power"),disabled:!D.value||!n.catalogAvailable,onClick:P=>ce(n.id,!O.value.get(n.serverName)?.enabled)},{default:u(()=>[b(g(O.value.get(n.serverName)?.enabled?e(a)("generated.mcpCenterPanel.disable"):e(a)("generated.mcpCenterPanel.enable")),1)]),_:2},1032,["icon","disabled","onClick"]),n.catalogAvailable?(o(),f(e(B),{key:0,link:"",icon:e(w)("retry"),disabled:!D.value,onClick:P=>ce(n.id)},{default:u(()=>[b(g(ae(n)?e(a)("generated.mcpCenterPanel.update"):e(a)("generated.mcpCenterPanel.reinstall")),1)]),_:2},1032,["icon","disabled","onClick"])):N("",!0),O.value.get(n.serverName)?.origin===y.value?(o(),f(e(B),{key:1,link:"",type:"danger",icon:e(w)("delete"),disabled:!D.value,onClick:P=>Ne(n.serverName)},{default:u(()=>[b(g(e(a)("generated.mcpCenterPanel.delete")),1)]),_:1},8,["icon","disabled","onClick"])):N("",!0)],64)):(o(),f(e(B),{key:1,link:"",icon:e(w)("download"),disabled:!D.value,onClick:P=>ce(n.id)},{default:u(()=>[b(g(ee.value.has(n.serverName)?ae(n)?e(a)("generated.mcpCenterPanel.update2"):e(a)("generated.mcpCenterPanel.reinstall2"):e(a)("generated.mcpCenterPanel.install")),1)]),_:2},1032,["icon","disabled","onClick"])),m.value===n.id&&z.value?(o(),C("div",Ca,[p("span",null,g(e(a)("generated.mcpCenterPanel.downloadingAndValidatingMCPOnTheNode")),1),p("div",{class:"mcp-install-progress__indicator",role:"progressbar","aria-label":e(a)("generated.mcpCenterPanel.downloadingAndValidatingMCPOnTheNode")},null,8,fa)])):N("",!0)])]),_:1},8,["label"])]),_:1},8,["data","onSortChange"])):(o(),f(e(Ge),{key:1,description:I.value==="installed"?e(a)("generated.mcpCenterPanel.thisTargetHasNoInstalledMCPServers"):e(a)("generated.mcpCenterPanel.noMCPServersAreAvailableAddOne")},null,8,["description"])),I.value==="available"?(o(),f(ze,{key:2,total:e(k).total.value,"has-more":e(k).hasMore.value,page:e(k).page.value,mobile:e(k).mobileViewport.value,"mobile-visible-count":e(k).mobileVisibleCount.value,loading:e(k).loading.value,"loading-more":e(k).loadingMore.value,onPage:e(k).setPage,failed:e(k).failure.value!==void 0,"incremental-failed":e(k).failure.value?.incremental===!0,error:e(k).failure.value?.error,"context-key":e(k).contextKey.value,onRetry:e(k).retry,onLoadMore:e(k).loadMore},null,8,["total","has-more","page","mobile","mobile-visible-count","loading","loading-more","onPage","failed","incremental-failed","error","context-key","onRetry","onLoadMore"])):N("",!0)])),[[e(Ce),e(k).loading.value&&!e(k).loadingMore.value&&(S.value||!D.value),"region"]]),c(ta,{modelValue:se.value,"onUpdate:modelValue":s[7]||(s[7]=n=>se.value=n),details:Y.value},null,8,["modelValue","details"])])),[[e(Ce),K.value,"page"]])}}),Pa=Ve(ka,[["__scopeId","data-v-80d48dd5"]]),ba=["aria-label"],ya={class:"skill-page-header"},ha={key:1,class:"skill-content"},Na=["aria-label"],_a={class:"target-option-state"},Ta={class:"skill-filter-bar"},Sa=["aria-label"],Aa=["onClick"],wa={class:"skill-table-section"},Ma={key:0,class:"skill-tags"},Ia={key:0,class:"skill-install-progress"},Da=["aria-label"],Ea={key:1,class:"skill-empty"},Va={class:"skill-table-section"},Oa={key:1,class:"skill-install-progress"},La=["aria-label"],Ra=Ee({__name:"SkillCenterPage",props:{scopeLabel:{type:Function},request:{type:Function},nodes:{}},setup(H){const L=H,d=aa(L.request),y=h("NODE"),v=h(""),T=h(""),S=h(!1),K=h(),$=h(!1),q=d.catalogPage.keyword,I=d.catalogPage.category,k=h("available"),m=d.catalogPage;qe(m);const z=h(!1),se=M(()=>z.value?"region":"page"),Y=h(!1),Q=h(),R=h("skill");let j=!1,W,J;const oe=M(()=>new Set(d.managedTargets.value.nodes.map(l=>l.id))),D=M(()=>L.nodes.filter(l=>oe.value.has(l.id))),ee=M(()=>D.value.find(l=>l.id===v.value)),O=M(()=>d.managedTargets.value.workspaces.filter(l=>l.nodeId===v.value)),F=M(()=>y.value==="WORKSPACE"&&T.value!==""?T.value:void 0),E=M(()=>ee.value!==void 0&&ee.value.connected&&!ee.value.disabled&&(y.value==="NODE"||F.value!==void 0)),be=d.catalogPage.tags,de=d.favorites,pe=M(()=>d.target.value?.skills??[]),ae=de,ye=pe;Ue(()=>{m.start(),ue(d.loadCatalog)}),$e(()=>{m.dispose()}),x(m.result,l=>{l!==void 0&&(z.value=!0)}),x([v,T,y],()=>{ue(async()=>{await he(),await le()})},{immediate:!0}),x(D,l=>{if(l.some(t=>t.id===v.value))return;const i=l.find(t=>t.connected&&!t.disabled);v.value=i?.id??l[0]?.id??"",s()}),x(k,l=>{l==="available"&&ue(d.loadCatalog)});async function he(){if(!j){if(W!==void 0)return W;W=(async()=>{if(await d.loadManagedTargets(),j=!0,!D.value.some(l=>l.id===v.value)){const l=D.value.find(i=>i.connected&&!i.disabled);v.value=l?.id??D.value[0]?.id??"",s()}})();try{await W}finally{W=void 0}}}async function ue(l,i){try{await l()}catch(t){if(t===d.catalogPage.error.value)return;V(Z(t,a("generated.skillCenterPage.theSkillOperationDidNotCompleteTry")),"error",t)}}function ce(l){Q.value={name:l.normalizedName,description:l.description,source:l.repositoryIdentity,scope:_e(l.scope),path:l.skillPath,version:l.commitSha.slice(0,8),updatedAt:X(l.updatedAt),featured:l.featured,tags:l.tags},Y.value=!0}function Ne(l){const i=te(l);Q.value={name:l.name,description:l.description,status:Le(l),...l.install===void 0?{}:{version:l.install.commitSha.slice(0,8)},...i===void 0?{}:{source:i.repositoryIdentity,path:i.skillPath,featured:i.featured,tags:i.tags}},Y.value=!0}function X(l){return ea(l)}async function le(){if(!E.value||v.value===""){d.clearTarget();return}const l=v.value,i=F.value,t=`${l}:${i??""}`;if(J?.key===t)return J.operation;const A=d.inspectTarget(l,i);J={key:t,operation:A};try{await A}finally{J?.operation===A&&(J=void 0)}}async function r(){if(!(!E.value||v.value===""))try{await le();const l=d.target.value;if(l===void 0)return;const i=l.skills.filter(A=>A.localStatus!=="VALID").length,t=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 ne.alert(a("generated.skillCenterPage.environmentModeSkillsFoundRequireAttention",{value0:t,value1:l.skills.length,value2:i}),i>0?a("generated.skillCenterPage.environmentCheckFoundIssues"):a("generated.skillCenterPage.environmentCheckPassed"),{confirmButtonText:a("generated.skillCenterPage.oK"),icon:w(i>0?"warning":"success"),type:i>0?"warning":"success"})}catch(l){ge(l)||V(Z(l,a("generated.skillCenterPage.theEnvironmentCheckDidNotCompleteTry")),"error",l)}}function s(){const l=O.value[0];T.value=l?.workspaceId??""}function n(){y.value==="WORKSPACE"&&T.value===""&&s()}function P(l,i){return d.target.value?.skills.find(t=>t.install?.favoriteId===l||t.name===i)}function He(l){if(S.value&&K.value===l.id)return a("generated.skillCenterPage.installing");const i=P(l.id,l.normalizedName);return i===void 0?a("generated.skillCenterPage.install"):i.install?.versionId===l.currentVersionId?a("generated.skillCenterPage.reinstall"):a("generated.skillCenterPage.update")}async function Oe(l){if(!E.value||v.value===""||S.value)return;const i=v.value,t=F.value,A=`${i}:${t??""}`,Te=P(l.id,l.normalizedName)!==void 0,Je=P(l.id,l.normalizedName);let Fe=!1,Se;try{Te&&Je?.localStatus!=="INVALID_LINK"&&await ne.confirm(a("generated.skillCenterPage.reinstallingWillOverwriteExistingFilesForManual",{value0:l.normalizedName}),a("generated.skillCenterPage.overwriteSkill"),{icon:w("warning"),type:"warning",confirmButtonText:a("generated.skillCenterPage.continue"),cancelButtonText:a("generated.skillCenterPage.cancel")}),S.value=!0,K.value=l.id,$.value=!1,Se=window.setTimeout(()=>{K.value===l.id&&($.value=!0)},800),Fe=!0,await d.install(l.id,i,t,Te),V(Te?a("generated.skillCenterPage.skillUpdated"):a("generated.skillCenterPage.skillInstalled"),"success")}catch(ve){if(ge(ve))return;if(t!==void 0&&We(ve)==="WORKSPACE_SKILL_TRACKED_CONFIRM_REQUIRED"){try{await ne.confirm(a("generated.skillCenterPage.theTargetContainsGitTrackedFilesOverwritten"),a("generated.skillCenterPage.overwriteTrackedFiles"),{icon:w("warning"),type:"warning",confirmButtonText:a("generated.skillCenterPage.overwriteFiles"),cancelButtonText:a("generated.skillCenterPage.cancel2")}),await d.install(l.id,i,t,!0),V(a("generated.skillCenterPage.skillInstalled2"),"success",ve)}catch(Ae){ge(Ae)||V(Z(Ae,a("generated.skillCenterPage.skillInstallationDidNotCompleteTryAgain")),"error",Ae)}return}V(Z(ve,a("generated.skillCenterPage.skillInstallationDidNotCompleteTryAgain2")),"error",ve)}finally{Se!==void 0&&window.clearTimeout(Se),S.value=!1,K.value=void 0,$.value=!1,Fe&&`${v.value}:${F.value??""}`===A&&await le()}}function te(l){return d.installedFavorites.value.find(t=>t.id===l.install?.favoriteId)??d.installedFavorites.value.find(t=>t.normalizedName===l.name)}function Le(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 i=te(l);return i===void 0||l.install===void 0?a("generated.skillCenterPage.unknownVersion2"):i.commitSha===l.install.commitSha?a("generated.skillCenterPage.upToDate"):a("generated.skillCenterPage.updateAvailable")}async function Ye(l){if(!(v.value===""||S.value)){try{await ne.confirm(a("generated.skillCenterPage.deleteFromTheCurrentTargetTheSystem",{value0:l}),a("generated.skillCenterPage.deleteSkill"),{icon:w("warning"),type:"warning",confirmButtonText:a("generated.skillCenterPage.deleteDirectory"),cancelButtonText:a("generated.skillCenterPage.cancel3")})}catch(i){if(ge(i))return;V(Z(i,a("generated.skillCenterPage.unableToConfirmDeletionTryAgainLater")),"error",i);return}await Re(()=>d.removeInstalled(l,v.value,F.value),a("generated.skillCenterPage.skillDeleted"))}}async function Qe(){if(!(v.value===""||F.value===void 0||S.value)){try{await ne.confirm(a("generated.skillCenterPage.repairingTheEnvironmentUpdatesTheWorkspaceS"),a("generated.skillCenterPage.repairSkillEnvironment"),{icon:w("warning"),type:"warning",confirmButtonText:a("generated.skillCenterPage.repair"),cancelButtonText:a("generated.skillCenterPage.cancel4")})}catch(l){if(ge(l))return;V(Z(l,a("generated.skillCenterPage.unableToConfirmRepairTryAgainLater")),"error",l);return}await Re(()=>d.repairGitExclude(v.value,F.value),a("generated.skillCenterPage.localGitExcludeRulesRepaired"))}}async function Re(l,i){const t=`${v.value}:${F.value??""}`;S.value=!0;try{await l(),V(i,"success")}catch(A){V(Z(A,a("generated.skillCenterPage.theSkillOperationDidNotCompleteTry2")),"error",A)}finally{S.value=!1,`${v.value}:${F.value??""}`===t&&await le()}}function ge(l){return l==="cancel"||l==="close"}function _e(l){return L.scopeLabel?.(l)??a("generated.skillCenterPage.personal")}return(l,i)=>(o(),C("section",{class:"skill-page","aria-label":e(a)("generated.skillCenterPage.skillConfiguration")},[p("header",ya,[p("div",null,[p("p",null,g(e(a)("generated.skillCenterPage.installAndMaintainSkillsForNodesOr")),1)])]),c(e(Ie),{modelValue:R.value,"onUpdate:modelValue":i[0]||(i[0]=t=>R.value=t),class:"capability-tabs"},{default:u(()=>[c(e(re),{label:e(a)("common.skill"),name:"skill"},null,8,["label"]),c(e(re),{label:e(a)("common.mcp"),name:"mcp"},null,8,["label"])]),_:1},8,["modelValue"]),R.value==="mcp"?(o(),f(Pa,{key:0,"scope-label":_e,request:H.request,nodes:H.nodes},null,8,["request","nodes"])):(o(),C("section",ha,[p("section",{class:"target-panel","aria-label":e(a)("generated.skillCenterPage.skillConfigurationTarget")},[p("div",null,[p("strong",null,g(e(a)("generated.skillCenterPage.configurationTarget")),1),p("span",null,g(e(a)("generated.skillCenterPage.selectWhereTheSkillWillBeUsed")),1)]),c(e(Ke),{modelValue:y.value,"onUpdate:modelValue":i[1]||(i[1]=t=>y.value=t),options:[{label:e(a)("generated.skillCenterPage.node"),value:"NODE"},{label:e(a)("generated.skillCenterPage.workspace"),value:"WORKSPACE"}],onChange:n},null,8,["modelValue","options"]),c(e(Pe),{modelValue:v.value,"onUpdate:modelValue":i[2]||(i[2]=t=>v.value=t),class:"target-select",placeholder:e(a)("generated.skillCenterPage.selectANode"),"aria-label":e(a)("generated.skillCenterPage.skillNode"),onChange:s},{default:u(()=>[(o(!0),C(U,null,G(D.value,t=>(o(),f(e(ke),{key:t.id,value:t.id,label:t.displayName||t.registeredAddress||t.id,disabled:!t.connected||t.disabled},{default:u(()=>[p("span",null,g(t.displayName||t.registeredAddress||t.id),1),p("span",_a,g(t.disabled?e(a)("generated.skillCenterPage.disabled"):t.connected?e(a)("generated.skillCenterPage.online"):e(a)("generated.skillCenterPage.offline")),1)]),_:2},1032,["value","label","disabled"]))),128))]),_:1},8,["modelValue","placeholder","aria-label"]),y.value==="WORKSPACE"?(o(),f(e(Pe),{key:0,modelValue:T.value,"onUpdate:modelValue":i[3]||(i[3]=t=>T.value=t),class:"target-select",placeholder:e(a)("generated.skillCenterPage.selectAWorkspace"),"aria-label":e(a)("generated.skillCenterPage.skillWorkspace")},{default:u(()=>[(o(!0),C(U,null,G(O.value,t=>(o(),f(e(ke),{key:t.workspaceId,value:t.workspaceId,label:t.displayName},null,8,["value","label"]))),128))]),_:1},8,["modelValue","placeholder","aria-label"])):N("",!0),c(e(B),{icon:e(w)("refresh"),disabled:!E.value||e(d).targetLoading.value,loading:e(d).targetLoading.value&&k.value!=="installed",onClick:r},{default:u(()=>[b(g(e(a)("generated.skillCenterPage.checkEnvironment")),1)]),_:1},8,["icon","disabled","loading"]),y.value==="WORKSPACE"?(o(),f(e(B),{key:1,icon:e(w)("tool"),disabled:!E.value||S.value,onClick:Qe},{default:u(()=>[b(g(e(a)("generated.skillCenterPage.repairEnvironment")),1)]),_:1},8,["icon","disabled"])):N("",!0)],8,Na),D.value.length===0?(o(),f(e(Me),{key:0,type:"warning",closable:!1,title:e(a)("generated.skillCenterPage.noManageableNodesAreAvailableForSkill")},null,8,["title"])):v.value&&!E.value?(o(),f(e(Me),{key:1,type:"warning",closable:!1,title:e(a)("generated.skillCenterPage.theCurrentNodeDoesNotSupportThis")},null,8,["title"])):N("",!0),c(e(Ie),{modelValue:k.value,"onUpdate:modelValue":i[8]||(i[8]=t=>k.value=t),class:"skill-config-tabs"},{default:u(()=>[c(e(re),{label:e(a)("generated.skillCenterPage.availableSkills"),name:"available"},{default:u(()=>[p("div",Ta,[c(e(Be),{modelValue:e(q),"onUpdate:modelValue":i[4]||(i[4]=t=>xe(q)?q.value=t:null),clearable:"",placeholder:e(a)("generated.skillCenterPage.searchSkillNamesOrDescriptions2"),"clear-icon":e(w)("clear-input")},null,8,["modelValue","placeholder","clear-icon"]),p("div",{class:"skill-category-strip","aria-label":e(a)("generated.skillCenterPage.skillCategories2")},[p("button",{class:fe({selected:e(I)===""}),onClick:i[5]||(i[5]=t=>I.value="")},g(e(a)("generated.skillCenterPage.all2")),3),(o(!0),C(U,null,G(e(be),t=>(o(),C("button",{key:t,class:fe({selected:e(I)===t}),onClick:A=>I.value=t},g(t),11,Aa))),128))],8,Sa)]),me((o(),C("div",wa,[e(de).length>0?(o(),C(U,{key:0},[c(e(De),{class:"clickable-rows available-skill-table",data:e(ae),"row-key":"id",onRowClick:ce,onSortChange:e(m).sort},{default:u(()=>[c(e(_),{prop:"normalizedName",label:e(a)("generated.skillSourceManagementPage.name"),sortable:"custom","min-width":"180"},null,8,["label"]),c(e(_),{label:e(a)("generated.skillDetailsDialog.availability"),width:"140","class-name":"skill-scope-column"},{default:u(({row:t})=>[b(g(_e(t.scope)),1)]),_:1},8,["label"]),c(e(_),{prop:"description",label:e(a)("conversationTemplates.description"),"min-width":"280","show-overflow-tooltip":""},{default:u(({row:t})=>[b(g(t.description||e(a)("generated.skillCenterPage.noDescriptionIsAvailableForThisSkill2")),1)]),_:1},8,["label"]),c(e(_),{label:e(a)("generated.skillDetailsDialog.tags"),"min-width":"150"},{default:u(({row:t})=>[t.featured||t.tags.length>0?(o(),C("div",Ma,[t.featured?(o(),f(e(ie),{key:0,type:"warning",effect:"plain"},{default:u(()=>[b("★ "+g(e(a)("generated.skillCenterPage.featured2")),1)]),_:1})):N("",!0),(o(!0),C(U,null,G(t.tags,A=>(o(),f(e(ie),{key:A,type:"info",effect:"plain"},{default:u(()=>[b(g(A),1)]),_:2},1024))),128))])):N("",!0)]),_:1},8,["label"]),c(e(_),{label:e(a)("generated.skillSourceManagementPage.actions"),"min-width":"220"},{default:u(({row:t})=>[p("div",{class:"row-actions",onClick:i[6]||(i[6]=we(()=>{},["stop"]))},[c(e(B),{link:"",icon:e(w)("download"),disabled:!E.value||S.value,onClick:A=>Oe(t)},{default:u(()=>[b(g(He(t)),1)]),_:2},1032,["icon","disabled","onClick"]),K.value===t.id&&$.value?(o(),C("div",Ia,[p("span",null,g(e(a)("generated.skillCenterPage.installingAndValidatingTheSkillOnThe")),1),p("div",{class:"skill-install-progress__indicator",role:"progressbar","aria-label":e(a)("generated.skillCenterPage.installingAndValidatingTheSkillOnThe")},null,8,Da)])):N("",!0)])]),_:1},8,["label"])]),_:1},8,["data","onSortChange"]),c(ze,{total:e(m).total.value,"has-more":e(m).hasMore.value,page:e(m).page.value,mobile:e(m).mobileViewport.value,"mobile-visible-count":e(m).mobileVisibleCount.value,loading:e(m).loading.value,"loading-more":e(m).loadingMore.value,onPage:e(m).setPage,failed:e(m).failure.value!==void 0,"incremental-failed":e(m).failure.value?.incremental===!0,error:e(m).failure.value?.error,"context-key":e(m).contextKey.value,onRetry:e(m).retry,onLoadMore:e(m).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(d).loading.value?N("",!0):(o(),C("div",Ea,g(e(d).favorites.value.length===0?e(a)("generated.skillCenterPage.noSkillsAreAvailableAddSkillsFrom2"):e(a)("generated.skillCenterPage.noMatchingSkills2")),1))])),[[e(Ce),z.value?e(m).loading.value&&!e(m).loadingMore.value:e(d).loading.value,se.value]])]),_:1},8,["label"]),c(e(re),{label:e(a)("generated.skillCenterPage.installedSkills"),name:"installed"},{default:u(()=>[me((o(),C("div",Va,[(e(d).target.value?.skills.length??0)>0?(o(),f(e(De),{key:0,class:"clickable-rows installed-skill-table",data:e(ye),"row-key":"name",onRowClick:Ne},{default:u(()=>[c(e(_),{prop:"name",label:e(a)("generated.skillSourceManagementPage.name"),sortable:"","min-width":"180"},null,8,["label"]),c(e(_),{label:e(a)("generated.skillDetailsDialog.status"),"min-width":"160"},{default:u(({row:t})=>[c(e(ie),{type:t.localStatus==="VALID"?"success":"warning",effect:"plain"},{default:u(()=>[b(g(Le(t)),1)]),_:2},1032,["type"])]),_:1},8,["label"]),c(e(_),{prop:"description",label:e(a)("conversationTemplates.description"),"min-width":"280","show-overflow-tooltip":""},{default:u(({row:t})=>[b(g(t.description||e(a)("generated.skillCenterPage.noValidSkillDescriptionWasFound")),1)]),_:1},8,["label"]),c(e(_),{label:e(a)("generated.skillDetailsDialog.version"),width:"120"},{default:u(({row:t})=>[b(g(t.install?.commitSha.slice(0,8)??"—"),1)]),_:1},8,["label"]),c(e(_),{label:e(a)("generated.skillSourceManagementPage.actions"),"min-width":"300"},{default:u(({row:t})=>[p("div",{class:"row-actions",onClick:i[7]||(i[7]=we(()=>{},["stop"]))},[te(t)?(o(),f(e(B),{key:0,link:"",icon:e(w)("retry"),disabled:!E.value||S.value,onClick:A=>Oe(te(t))},{default:u(()=>[b(g(te(t)?.commitSha!==t.install?.commitSha?e(a)("generated.skillCenterPage.update2"):e(a)("generated.skillCenterPage.reinstall2")),1)]),_:2},1032,["icon","disabled","onClick"])):N("",!0),c(e(B),{link:"",type:"danger",icon:e(w)("delete"),disabled:!E.value||S.value,onClick:A=>Ye(t.name)},{default:u(()=>[b(g(e(a)("generated.skillCenterPage.delete")),1)]),_:1},8,["icon","disabled","onClick"]),te(t)?.id===K.value&&$.value?(o(),C("div",Oa,[p("span",null,g(e(a)("generated.skillCenterPage.installingAndValidatingTheSkillOnThe2")),1),p("div",{class:"skill-install-progress__indicator",role:"progressbar","aria-label":e(a)("generated.skillCenterPage.installingAndValidatingTheSkillOnThe2")},null,8,La)])):N("",!0)])]),_:1},8,["label"])]),_:1},8,["data"])):e(d).target.value?(o(),f(e(Ge),{key:1,description:e(a)("generated.skillCenterPage.thisTargetHasNoInstalledSkills")},null,8,["description"])):N("",!0)])),[[e(Ce),e(d).targetLoading.value,"region"]])]),_:1},8,["label"])]),_:1},8,["modelValue"])])),c(la,{modelValue:Y.value,"onUpdate:modelValue":i[9]||(i[9]=t=>Y.value=t),details:Q.value},null,8,["modelValue","details"])],8,ba))}}),el=Ve(Ra,[["__scopeId","data-v-5732f5be"]]);export{el as default};
@@ -0,0 +1 @@
1
+ .mar-ui-empty[data-v-cc9970f9]{display:grid;justify-items:center;gap:.5rem;padding-block:1.5rem;color:var(--mar-ui-text-secondary);font-size:var(--mar-ui-font-size-body);text-align:center}p[data-v-cc9970f9]{margin:0}.mcp-panel[data-v-80d48dd5]{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-80d48dd5]{display:grid;gap:10px}.mcp-filter-bar[data-v-80d48dd5]>.mar-ui-input{width:min(320px,100%)}.mcp-category-strip[data-v-80d48dd5]{display:flex;overflow-x:auto;gap:6px;padding:1px 0 3px;scrollbar-width:thin}.mcp-category-strip button[data-v-80d48dd5]{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-80d48dd5]: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-80d48dd5]{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-80d48dd5]:focus-visible{outline:2px solid var(--mar-color-brand);outline-offset:1px}.mcp-config-tabs[data-v-80d48dd5]{min-height:40px}.mcp-target-panel[data-v-80d48dd5]{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-80d48dd5]:first-child{display:flex;flex:1 1 220px;flex-direction:column;gap:2px}.mcp-target-panel strong[data-v-80d48dd5]{color:var(--mar-text-primary);font-size:var(--mar-font-size-body)}.mcp-target-panel span[data-v-80d48dd5]{color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.mcp-target-panel .mar-ui-select[data-v-80d48dd5]{width:min(240px,100%)}.target-option-state[data-v-80d48dd5]{float:right;margin-left:16px;color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.mcp-tags[data-v-80d48dd5]{display:flex;flex-wrap:wrap;gap:6px}.mcp-table-section[data-v-80d48dd5]{min-width:0;min-height:180px}.clickable-rows[data-v-80d48dd5] .mar-ui-table__row{cursor:pointer}.row-actions[data-v-80d48dd5]{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}.mcp-install-progress[data-v-80d48dd5]{display:grid;gap:6px;color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.mcp-install-progress__indicator[data-v-80d48dd5]{position:relative;overflow:hidden;block-size:4px;border-radius:2px;background:var(--mar-control-fill-color-light)}.mcp-install-progress__indicator[data-v-80d48dd5]:after{position:absolute;inset:0 auto 0 0;width:40%;background:var(--mar-color-brand);content:"";animation:mcp-install-progress-80d48dd5 1.4s ease-in-out infinite}@keyframes mcp-install-progress-80d48dd5{0%{transform:translate(-100%)}to{transform:translate(250%)}}@media(prefers-reduced-motion:reduce){.mcp-install-progress__indicator[data-v-80d48dd5]:after{width:100%;opacity:.6;animation:none;transform:none}}@media(max-width:720px){.mcp-target-panel .mar-ui-select[data-v-80d48dd5]{width:100%}.mcp-target-panel[data-v-80d48dd5] .mar-ui-button{min-height:36px}}.skill-page[data-v-5732f5be]{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-5732f5be]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.skill-page-header p[data-v-5732f5be]{margin:2px 0 0;color:var(--mar-text-secondary);font-size:var(--mar-font-size-body)}.skill-content[data-v-5732f5be]{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-5732f5be]{min-height:260px}.skill-config-tabs[data-v-5732f5be] .mar-ui-tab-pane{display:grid;gap:14px}.skill-filter-bar[data-v-5732f5be]{display:grid;gap:10px}.skill-filter-bar[data-v-5732f5be]>.mar-ui-input{width:min(320px,100%)}.skill-category-strip[data-v-5732f5be]{display:flex;overflow-x:auto;gap:6px;padding:1px 0 3px;scrollbar-width:thin}.skill-category-strip button[data-v-5732f5be]{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-5732f5be]: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-5732f5be]{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-5732f5be]:focus-visible{outline:2px solid var(--mar-color-brand);outline-offset:1px}.skill-tags[data-v-5732f5be]{display:flex;flex-wrap:wrap;gap:6px}.skill-install-progress[data-v-5732f5be]{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-5732f5be]{position:relative;overflow:hidden;block-size:4px;border-radius:2px;background:var(--mar-control-fill-color-light)}.skill-install-progress__indicator[data-v-5732f5be]:after{position:absolute;inset:0 auto 0 0;width:40%;background:var(--mar-color-brand);content:"";animation:skill-install-progress-5732f5be 1.4s ease-in-out infinite}@keyframes skill-install-progress-5732f5be{0%{transform:translate(-100%)}to{transform:translate(250%)}}@media(prefers-reduced-motion:reduce){.skill-install-progress__indicator[data-v-5732f5be]:after{width:100%;opacity:.6;animation:none;transform:none}}.skill-table-section[data-v-5732f5be]{min-height:180px}.clickable-rows[data-v-5732f5be] .mar-ui-table__row{cursor:pointer}.available-skill-table[data-v-5732f5be] .skill-scope-column .mar-ui-table__cell-inner{white-space:nowrap}.row-actions[data-v-5732f5be]{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}.skill-empty[data-v-5732f5be]{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-5732f5be]{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-5732f5be]:first-child{display:flex;flex:1 1 220px;flex-direction:column;gap:2px}.target-panel strong[data-v-5732f5be]{color:var(--mar-text-primary);font-size:var(--mar-font-size-body)}.target-panel div span[data-v-5732f5be],.target-name[data-v-5732f5be]{color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.target-select[data-v-5732f5be]{width:min(240px,100%)}.target-option-state[data-v-5732f5be]{float:right;margin-left:16px;color:var(--mar-text-secondary);font-size:var(--mar-font-size-meta)}.installed-heading[data-v-5732f5be]{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-5732f5be]{overflow-x:hidden;overflow-y:auto;padding:12px}.skill-content[data-v-5732f5be],.skill-page[data-v-5732f5be]>.mcp-panel{flex:none;overflow:visible;padding-right:0}.skill-filter-bar[data-v-5732f5be]{grid-template-columns:1fr}.target-panel[data-v-5732f5be] .mar-ui-button{min-height:36px}}
@@ -1 +1 @@
1
- import{c as Se,r as P}from"./catalog-page-service-C7a95mKM.js";import{k as x,f as I,e as me,t as c,m as Ie,o as r,C as S,D as d,n as J,P as $,Q as f,E as l,q as H,S as L,G as m,av as Le,a6 as ve,a7 as Ee,T as ge,V as ke,_ as De}from"./index-BFbW15q7.js";import{M as ye,a as D}from"./MarDescriptionsItem-Ddl4rEoo.js";import{M as G}from"./MarTag-CU69nmi0.js";import{u as Re,m as pe}from"./mobile-dialog-return-service-C1n1IVHV.js";function $e(e,o={}){const s=I([]),g=I([]),v=Se(e,"/api/skill-favorites","favorites"),y=v.items,_=I([]),N=I([]),u=I(""),V=I(""),b=I(!1);let U=0;const T=I(!1),O=I(),M=I({nodes:[],workspaces:[]});let h=0,R=0;const Q=x(()=>new Set(N.value.map(a=>`${a.sourceId}:${a.normalizedName}`)));function A(){U+=1,b.value=!0}function K(){U=Math.max(0,U-1),b.value=U>0}async function k(a){A();try{return await a()}finally{K()}}async function Y(){await Promise.all([w(),p()])}async function p(){await k(async()=>{await v.refresh(),g.value.length&&(N.value=await P(e,"/api/skill-favorites","favorites",[],g.value.map(a=>a.name)))})}async function w(){A();const a=u.value;try{s.value=(await e("/api/skill-sources")).sources,s.value.some(t=>t.id===u.value&&t.enabled)||(u.value=we(s.value)),u.value!==a&&(g.value=[])}finally{K()}}async function X(){M.value=await e("/api/resources")}async function F(a){if(u.value==="")return;const t=++h,i=u.value;A();try{const n=`/api/skill-sources/${encodeURIComponent(i)}/skills`,C=a===void 0?"":`?${new URLSearchParams({query:a,limit:"40"})}`,E=await e(`${n}${C}`);if(t!==h||i!==u.value)return;const ue=await P(e,"/api/skill-favorites","favorites",[],E.skills.map(fe=>fe.name));t===h&&i===u.value&&(g.value=E.skills,N.value=ue)}catch(n){if(t!==h||i!==u.value)return;throw n}finally{K()}}async function j(){if(B()?.kind==="SKILLS_SH"){g.value=[];return}await F()}async function W(){const a=V.value.trim();if(B()?.kind==="SKILLS_SH"&&a===""){g.value=[];return}await F(a)}function B(){return s.value.find(a=>a.id===u.value)}async function z(a,t={featured:!1,tags:[]},i){await k(async()=>{const n={sourceId:u.value,candidateId:a.id,...a.skillPath===null?{}:{skillPath:a.skillPath},featured:t.featured,tags:t.tags};o.submitFavorite!==void 0?await o.submitFavorite(n,i):await e("/api/skill-favorites",{method:"POST",body:JSON.stringify({...n,scope:"PERSONAL"})}),await Promise.all([p(),w()])})}async function Z(a){await k(async()=>{await e(`/api/skill-favorites/${encodeURIComponent(a)}/upgrade`,{method:"POST"}),await p()})}async function q(a){return e(`/api/skill-favorites/${encodeURIComponent(a)}/check-update`,{method:"POST"})}async function ee(a,t){await k(async()=>{await e(`/api/skill-favorites/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify(t)}),await p()})}async function ae(a){await k(async()=>{await e(`/api/skill-favorites/${encodeURIComponent(a)}`,{method:"DELETE"}),await p()})}async function te(a,t){await k(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 le(a,t){await k(async()=>{await e(`/api/skill-sources/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify({enabled:t})}),await w()})}async function ie(a){await k(async()=>{await e(`/api/skill-sources/${encodeURIComponent(a)}`,{method:"DELETE"}),await w()})}async function ne(a,t){const i=++R;T.value=!0;try{const n=await e(t===void 0?`/api/nodes/${encodeURIComponent(a)}/skills`:`/api/workspaces/${encodeURIComponent(t)}/skills?nodeId=${encodeURIComponent(a)}`);if(i!==R)return;O.value=n,_.value=[];const C=await P(e,"/api/skill-favorites","favorites",n.skills.flatMap(E=>E.install?[E.install.favoriteId]:[]),n.skills.map(E=>E.name));i===R&&(O.value=n,_.value=C)}catch(n){if(i!==R)return;throw n}finally{i===R&&(T.value=!1)}}function oe(){R+=1,O.value=void 0,_.value=[],T.value=!1}async function se(a,t,i,n=!1){const C=i===void 0?`/api/nodes/${encodeURIComponent(t)}/skills`:`/api/workspaces/${encodeURIComponent(i)}/skills?nodeId=${encodeURIComponent(t)}`,E=await e(C,{method:"POST",body:JSON.stringify({favoriteId:a,...i===void 0?{}:{confirmTracked:n}})});await de(E.installJobId)}async function de(a){for(let t=0;t<180;t+=1){const i=await e(`/api/skill-install-jobs/${encodeURIComponent(a)}`);if(i.status==="SUCCEEDED")return;if(i.status==="FAILED")throw new Error(i.errorCode??"SKILL_INSTALL_FAILED");await new Promise(n=>setTimeout(n,500))}throw new Error("SKILL_INSTALL_STATUS_TIMEOUT")}async function re(a,t,i){const n=i===void 0?`/api/nodes/${encodeURIComponent(t)}/skills/${encodeURIComponent(a)}`:`/api/workspaces/${encodeURIComponent(i)}/skills/${encodeURIComponent(a)}?nodeId=${encodeURIComponent(t)}`;await e(n,{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:g,favorites:y,installedFavorites:_,catalogPage:v,selectedSourceId:u,query:V,loading:x(()=>b.value||v.loading.value),targetLoading:T,target:O,managedTargets:M,favoriteIds:Q,load:Y,loadCatalog:p,loadSources:w,loadManagedTargets:X,loadCandidates:j,search:W,favorite:z,upgrade:Z,checkUpdate:q,updatePresentation:ee,remove:ae,addSource:te,setSourceEnabled:le,removeSource:ie,inspectTarget:ne,clearTarget:oe,install:se,removeInstalled:re,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 Ve(e,o){if(!(e instanceof Error))return o;const s=me(e);return s!==void 0&&Ce.has(s)?c(`generated.skillErrors.${s}`):s!==void 0&&e.message===s?o:e.message}const _e={key:0,class:"skill-details"},Ue={class:"skill-name"},Te={class:"skill-description"},Oe={class:"skill-tags"},he=Ie({__name:"SkillDetailsDialog",props:{modelValue:{type:Boolean},details:{}},emits:["update:modelValue"],setup(e,{emit:o}){const s=o;return(g,v)=>e.modelValue?(r(),S(l(ke),{key:0,onVnodeMounted:l(pe),onVnodeBeforeUnmount:l(Re),"model-value":e.modelValue,title:l(c)("generated.skillDetailsDialog.skillDetails"),width:"min(720px, calc(100vw - 32px))","destroy-on-close":"","onUpdate:modelValue":v[1]||(v[1]=y=>s("update:modelValue",y))},{footer:d(()=>[H(l(ge),{onClick:v[0]||(v[0]=y=>s("update:modelValue",!1))},{default:d(()=>[L(f(l(c)("generated.skillDetailsDialog.close")),1)]),_:1})]),default:d(()=>[e.details?(r(),J("div",_e,[$("strong",Ue,f(e.details.name),1),$("p",Te,f(e.details.description||l(c)("generated.skillDetailsDialog.noDescriptionIsAvailableForThisSkill")),1),H(l(ye),{class:"mar-detail-descriptions",column:1,border:""},{default:d(()=>[e.details.source?(r(),S(l(D),{key:0,label:l(c)("generated.skillDetailsDialog.source")},{default:d(()=>[L(f(e.details.source),1)]),_:1},8,["label"])):m("",!0),e.details.scope?(r(),S(l(D),{key:1,label:l(c)("generated.skillDetailsDialog.availability")},{default:d(()=>[L(f(e.details.scope),1)]),_:1},8,["label"])):m("",!0),e.details.path?(r(),S(l(D),{key:2,label:l(c)("generated.skillDetailsDialog.skillPath")},{default:d(()=>[L(f(e.details.path),1)]),_:1},8,["label"])):m("",!0),e.details.version?(r(),S(l(D),{key:3,label:l(c)("generated.skillDetailsDialog.version")},{default:d(()=>[L(f(e.details.version),1)]),_:1},8,["label"])):m("",!0),e.details.updatedAt?(r(),S(l(D),{key:4,label:l(c)("generated.skillDetailsDialog.updated")},{default:d(()=>[L(f(e.details.updatedAt),1)]),_:1},8,["label"])):m("",!0),e.details.status?(r(),S(l(D),{key:5,label:l(c)("generated.skillDetailsDialog.status")},{default:d(()=>[L(f(e.details.status),1)]),_:1},8,["label"])):m("",!0),e.details.installs!==void 0?(r(),S(l(D),{key:6,label:l(c)("generated.skillDetailsDialog.installs")},{default:d(()=>[L(f(e.details.installs.toLocaleString(l(Le)())),1)]),_:1},8,["label"])):m("",!0),e.details.featured||(e.details.tags?.length??0)>0?(r(),S(l(D),{key:7,label:l(c)("generated.skillDetailsDialog.tags")},{default:d(()=>[$("div",Oe,[e.details.featured?(r(),S(l(G),{key:0,type:"warning",effect:"plain"},{default:d(()=>[L("★ "+f(l(c)("generated.skillDetailsDialog.featured")),1)]),_:1})):m("",!0),(r(!0),J(ve,null,Ee(e.details.tags??[],y=>(r(),S(l(G),{key:y,type:"info",effect:"plain"},{default:d(()=>[L(f(y),1)]),_:2},1024))),128))])]),_:1},8,["label"])):m("",!0)]),_:1})])):m("",!0)]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","model-value","title"])):m("",!0)}}),Me=De(he,[["__scopeId","data-v-7316b6fc"]]);export{Me as S,$e as c,Ve as s};
1
+ import{c as Se,r as P}from"./catalog-page-service-DfBXj8UO.js";import{k as x,f as I,e as me,t as c,m as Ie,o as r,C as S,D as d,n as J,P as $,Q as f,E as l,q as H,S as L,G as m,av as Le,a6 as ve,a7 as Ee,T as ge,V as ke,_ as De}from"./index-CXYo0aZg.js";import{M as ye,a as D}from"./MarDescriptionsItem-DZlA06Bs.js";import{M as G}from"./MarTag-DJs119DS.js";import{u as Re,m as pe}from"./mobile-dialog-return-service-B9Umx6Ja.js";function $e(e,o={}){const s=I([]),g=I([]),v=Se(e,"/api/skill-favorites","favorites"),y=v.items,_=I([]),N=I([]),u=I(""),V=I(""),b=I(!1);let U=0;const T=I(!1),O=I(),M=I({nodes:[],workspaces:[]});let h=0,R=0;const Q=x(()=>new Set(N.value.map(a=>`${a.sourceId}:${a.normalizedName}`)));function A(){U+=1,b.value=!0}function K(){U=Math.max(0,U-1),b.value=U>0}async function k(a){A();try{return await a()}finally{K()}}async function Y(){await Promise.all([w(),p()])}async function p(){await k(async()=>{await v.refresh(),g.value.length&&(N.value=await P(e,"/api/skill-favorites","favorites",[],g.value.map(a=>a.name)))})}async function w(){A();const a=u.value;try{s.value=(await e("/api/skill-sources")).sources,s.value.some(t=>t.id===u.value&&t.enabled)||(u.value=we(s.value)),u.value!==a&&(g.value=[])}finally{K()}}async function X(){M.value=await e("/api/resources")}async function F(a){if(u.value==="")return;const t=++h,i=u.value;A();try{const n=`/api/skill-sources/${encodeURIComponent(i)}/skills`,C=a===void 0?"":`?${new URLSearchParams({query:a,limit:"40"})}`,E=await e(`${n}${C}`);if(t!==h||i!==u.value)return;const ue=await P(e,"/api/skill-favorites","favorites",[],E.skills.map(fe=>fe.name));t===h&&i===u.value&&(g.value=E.skills,N.value=ue)}catch(n){if(t!==h||i!==u.value)return;throw n}finally{K()}}async function j(){if(B()?.kind==="SKILLS_SH"){g.value=[];return}await F()}async function W(){const a=V.value.trim();if(B()?.kind==="SKILLS_SH"&&a===""){g.value=[];return}await F(a)}function B(){return s.value.find(a=>a.id===u.value)}async function z(a,t={featured:!1,tags:[]},i){await k(async()=>{const n={sourceId:u.value,candidateId:a.id,...a.skillPath===null?{}:{skillPath:a.skillPath},featured:t.featured,tags:t.tags};o.submitFavorite!==void 0?await o.submitFavorite(n,i):await e("/api/skill-favorites",{method:"POST",body:JSON.stringify({...n,scope:"PERSONAL"})}),await Promise.all([p(),w()])})}async function Z(a){await k(async()=>{await e(`/api/skill-favorites/${encodeURIComponent(a)}/upgrade`,{method:"POST"}),await p()})}async function q(a){return e(`/api/skill-favorites/${encodeURIComponent(a)}/check-update`,{method:"POST"})}async function ee(a,t){await k(async()=>{await e(`/api/skill-favorites/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify(t)}),await p()})}async function ae(a){await k(async()=>{await e(`/api/skill-favorites/${encodeURIComponent(a)}`,{method:"DELETE"}),await p()})}async function te(a,t){await k(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 le(a,t){await k(async()=>{await e(`/api/skill-sources/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify({enabled:t})}),await w()})}async function ie(a){await k(async()=>{await e(`/api/skill-sources/${encodeURIComponent(a)}`,{method:"DELETE"}),await w()})}async function ne(a,t){const i=++R;T.value=!0;try{const n=await e(t===void 0?`/api/nodes/${encodeURIComponent(a)}/skills`:`/api/workspaces/${encodeURIComponent(t)}/skills?nodeId=${encodeURIComponent(a)}`);if(i!==R)return;O.value=n,_.value=[];const C=await P(e,"/api/skill-favorites","favorites",n.skills.flatMap(E=>E.install?[E.install.favoriteId]:[]),n.skills.map(E=>E.name));i===R&&(O.value=n,_.value=C)}catch(n){if(i!==R)return;throw n}finally{i===R&&(T.value=!1)}}function oe(){R+=1,O.value=void 0,_.value=[],T.value=!1}async function se(a,t,i,n=!1){const C=i===void 0?`/api/nodes/${encodeURIComponent(t)}/skills`:`/api/workspaces/${encodeURIComponent(i)}/skills?nodeId=${encodeURIComponent(t)}`,E=await e(C,{method:"POST",body:JSON.stringify({favoriteId:a,...i===void 0?{}:{confirmTracked:n}})});await de(E.installJobId)}async function de(a){for(let t=0;t<180;t+=1){const i=await e(`/api/skill-install-jobs/${encodeURIComponent(a)}`);if(i.status==="SUCCEEDED")return;if(i.status==="FAILED")throw new Error(i.errorCode??"SKILL_INSTALL_FAILED");await new Promise(n=>setTimeout(n,500))}throw new Error("SKILL_INSTALL_STATUS_TIMEOUT")}async function re(a,t,i){const n=i===void 0?`/api/nodes/${encodeURIComponent(t)}/skills/${encodeURIComponent(a)}`:`/api/workspaces/${encodeURIComponent(i)}/skills/${encodeURIComponent(a)}?nodeId=${encodeURIComponent(t)}`;await e(n,{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:g,favorites:y,installedFavorites:_,catalogPage:v,selectedSourceId:u,query:V,loading:x(()=>b.value||v.loading.value),targetLoading:T,target:O,managedTargets:M,favoriteIds:Q,load:Y,loadCatalog:p,loadSources:w,loadManagedTargets:X,loadCandidates:j,search:W,favorite:z,upgrade:Z,checkUpdate:q,updatePresentation:ee,remove:ae,addSource:te,setSourceEnabled:le,removeSource:ie,inspectTarget:ne,clearTarget:oe,install:se,removeInstalled:re,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 Ve(e,o){if(!(e instanceof Error))return o;const s=me(e);return s!==void 0&&Ce.has(s)?c(`generated.skillErrors.${s}`):s!==void 0&&e.message===s?o:e.message}const _e={key:0,class:"skill-details"},Ue={class:"skill-name"},Te={class:"skill-description"},Oe={class:"skill-tags"},he=Ie({__name:"SkillDetailsDialog",props:{modelValue:{type:Boolean},details:{}},emits:["update:modelValue"],setup(e,{emit:o}){const s=o;return(g,v)=>e.modelValue?(r(),S(l(ke),{key:0,onVnodeMounted:l(pe),onVnodeBeforeUnmount:l(Re),"model-value":e.modelValue,title:l(c)("generated.skillDetailsDialog.skillDetails"),width:"min(720px, calc(100vw - 32px))","destroy-on-close":"","onUpdate:modelValue":v[1]||(v[1]=y=>s("update:modelValue",y))},{footer:d(()=>[H(l(ge),{onClick:v[0]||(v[0]=y=>s("update:modelValue",!1))},{default:d(()=>[L(f(l(c)("generated.skillDetailsDialog.close")),1)]),_:1})]),default:d(()=>[e.details?(r(),J("div",_e,[$("strong",Ue,f(e.details.name),1),$("p",Te,f(e.details.description||l(c)("generated.skillDetailsDialog.noDescriptionIsAvailableForThisSkill")),1),H(l(ye),{class:"mar-detail-descriptions",column:1,border:""},{default:d(()=>[e.details.source?(r(),S(l(D),{key:0,label:l(c)("generated.skillDetailsDialog.source")},{default:d(()=>[L(f(e.details.source),1)]),_:1},8,["label"])):m("",!0),e.details.scope?(r(),S(l(D),{key:1,label:l(c)("generated.skillDetailsDialog.availability")},{default:d(()=>[L(f(e.details.scope),1)]),_:1},8,["label"])):m("",!0),e.details.path?(r(),S(l(D),{key:2,label:l(c)("generated.skillDetailsDialog.skillPath")},{default:d(()=>[L(f(e.details.path),1)]),_:1},8,["label"])):m("",!0),e.details.version?(r(),S(l(D),{key:3,label:l(c)("generated.skillDetailsDialog.version")},{default:d(()=>[L(f(e.details.version),1)]),_:1},8,["label"])):m("",!0),e.details.updatedAt?(r(),S(l(D),{key:4,label:l(c)("generated.skillDetailsDialog.updated")},{default:d(()=>[L(f(e.details.updatedAt),1)]),_:1},8,["label"])):m("",!0),e.details.status?(r(),S(l(D),{key:5,label:l(c)("generated.skillDetailsDialog.status")},{default:d(()=>[L(f(e.details.status),1)]),_:1},8,["label"])):m("",!0),e.details.installs!==void 0?(r(),S(l(D),{key:6,label:l(c)("generated.skillDetailsDialog.installs")},{default:d(()=>[L(f(e.details.installs.toLocaleString(l(Le)())),1)]),_:1},8,["label"])):m("",!0),e.details.featured||(e.details.tags?.length??0)>0?(r(),S(l(D),{key:7,label:l(c)("generated.skillDetailsDialog.tags")},{default:d(()=>[$("div",Oe,[e.details.featured?(r(),S(l(G),{key:0,type:"warning",effect:"plain"},{default:d(()=>[L("★ "+f(l(c)("generated.skillDetailsDialog.featured")),1)]),_:1})):m("",!0),(r(!0),J(ve,null,Ee(e.details.tags??[],y=>(r(),S(l(G),{key:y,type:"info",effect:"plain"},{default:d(()=>[L(f(y),1)]),_:2},1024))),128))])]),_:1},8,["label"])):m("",!0)]),_:1})])):m("",!0)]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","model-value","title"])):m("",!0)}}),Me=De(he,[["__scopeId","data-v-7316b6fc"]]);export{Me as S,$e as c,Ve as s};
@@ -1 +1 @@
1
- import{M as P}from"./MarCascader-BKG_pCU9.js";import{_ as b}from"./MarFormItem.vue_vue_type_script_setup_true_lang-DNgXEgAb.js";import{M as z,a as S}from"./MarOptionGroup.vue_vue_type_style_index_0_scoped_cacd24eb_lang-BQD1pghB.js";import{m as v,o as m,C as d,D as n,q as l,E as e,t as o,F as g,G as f,k as w}from"./index-BFbW15q7.js";import y from"./SkillSourceManagementPage-ChDzfGdm.js";import{c as R}from"./catalog-ownership-service-Om-CO2AO.js";import"./MarTabs-D28b5Cm_.js";import"./MarTag-CU69nmi0.js";import"./MarTableColumn.vue_vue_type_script_setup_true_lang-9WwypTkY.js";import"./MarSwitch-Nht5u3dc.js";import"./mobile-dialog-return-service-C1n1IVHV.js";import"./ManagementPagination-B6Pmmb2K.js";import"./error-presentation-UGQTkLY-.js";import"./BusyIndicator-BJHbXq72.js";import"./time-presentation-D0SLW-7Y.js";import"./SkillDetailsDialog-DtVFRPBy.js";import"./catalog-page-service-C7a95mKM.js";import"./MarDescriptionsItem-Ddl4rEoo.js";import"./enterprise-management-service-DoxF9G8J.js";function V(c){return{submitFavorite:(r,a)=>c("/api/skill-favorites",{method:"POST",body:JSON.stringify({...r,scope:a?.scope??"PERSONAL",...a?.scope==="ORGANIZATION"&&a.organizationId!==void 0?{organizationId:a.organizationId}:{}})}),submitSource:(r,a)=>c("/api/skill-sources",{method:"POST",body:JSON.stringify({kind:"REPOSITORY",enabled:!0,...r,scope:a?.scope??"PERSONAL",...a?.organizationId===void 0?{}:{organizationId:a.organizationId}})})}}const Q=v({__name:"SkillSourceManagementPage",props:{request:{type:Function},edition:{},role:{},writable:{type:Boolean}},setup(c){const r=c,a=R(r.request,()=>r),{sourceDraft:u,catalogDraft:p,organizationOptions:O,canUseOrganizationScope:k}=a,M=w(()=>({organizationId:[{required:!0,message:o("generated.skillSourceManagementPage.selectAnOrganization"),trigger:"change"}]}));function N(i){return i==="ENTERPRISE"?o("generated.skillSourceManagementPage.enterprise"):i==="ORGANIZATION"?o("generated.skillSourceManagementPage.organization"):o("generated.skillSourceManagementPage.personal")}const I=V(r.request),A=i=>I.submitSource(i,a.sourceTarget()),h=i=>I.submitFavorite(i,a.catalogTarget());return(i,t)=>(m(),d(y,{request:c.request,writable:c.writable,"scope-label":N,"load-extension":e(a).load,"source-context":e(u),"catalog-context":e(p),"ownership-rules":M.value,"submit-source":A,"submit-favorite":h,onOpenSource:e(a).resetSource,onOpenCatalog:e(a).resetCatalog},{"source-ownership":n(()=>[l(e(b),{label:e(o)("generated.skillSourceManagementPage.scope2"),prop:"scope"},{default:n(()=>[l(e(z),{modelValue:e(u).scope,"onUpdate:modelValue":t[0]||(t[0]=s=>e(u).scope=s),"clear-icon":e(g)("clear-input"),"suffix-icon":e(g)("chevron-down")},{default:n(()=>[l(e(S),{label:e(o)("generated.skillSourceManagementPage.personal2"),value:"PERSONAL"},null,8,["label"]),e(k)?(m(),d(e(S),{key:0,label:e(o)("generated.skillSourceManagementPage.organization2"),value:"ORGANIZATION"},null,8,["label"])):f("",!0)]),_:1},8,["modelValue","clear-icon","suffix-icon"])]),_:1},8,["label"]),e(u).scope==="ORGANIZATION"?(m(),d(e(b),{key:0,label:e(o)("generated.skillSourceManagementPage.organization3"),prop:"organizationId"},{default:n(()=>[l(e(P),{modelValue:e(u).organizationId,"onUpdate:modelValue":t[1]||(t[1]=s=>e(u).organizationId=s),style:{width:"100%"},filterable:"",placeholder:e(o)("generated.skillSourceManagementPage.selectAManageableOrganization"),options:e(O),props:{checkStrictly:!0,emitPath:!1},"clear-icon":e(g)("clear-input")},null,8,["modelValue","placeholder","options","clear-icon"])]),_:1},8,["label"])):f("",!0)]),"catalog-ownership":n(()=>[l(e(b),{label:e(o)("generated.skillSourceManagementPage.availability"),prop:"scope"},{default:n(()=>[l(e(z),{modelValue:e(p).scope,"onUpdate:modelValue":t[2]||(t[2]=s=>e(p).scope=s),"clear-icon":e(g)("clear-input"),"suffix-icon":e(g)("chevron-down")},{default:n(()=>[l(e(S),{label:e(o)("generated.skillSourceManagementPage.personal3"),value:"PERSONAL"},null,8,["label"]),e(k)?(m(),d(e(S),{key:0,label:e(o)("generated.skillSourceManagementPage.organizationMembers"),value:"ORGANIZATION"},null,8,["label"])):f("",!0)]),_:1},8,["modelValue","clear-icon","suffix-icon"])]),_:1},8,["label"]),e(p).scope==="ORGANIZATION"?(m(),d(e(b),{key:0,label:e(o)("generated.skillSourceManagementPage.organization4"),prop:"organizationId"},{default:n(()=>[l(e(P),{modelValue:e(p).organizationId,"onUpdate:modelValue":t[3]||(t[3]=s=>e(p).organizationId=s),style:{width:"100%"},filterable:"",placeholder:e(o)("generated.skillSourceManagementPage.selectAManageableOrganization2"),options:e(O),props:{checkStrictly:!0,emitPath:!1},"clear-icon":e(g)("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{Q as default};
1
+ import{M as P}from"./MarCascader-CkPUKKSU.js";import{_ as b}from"./MarFormItem.vue_vue_type_script_setup_true_lang-DR9vLmUF.js";import{M as z,a as S}from"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-toYIflmN.js";import{m as v,o as m,C as d,D as n,q as l,E as e,t as o,F as g,G as f,k as w}from"./index-CXYo0aZg.js";import y from"./SkillSourceManagementPage-pUo-KVhP.js";import{c as R}from"./catalog-ownership-service-DQLCHjkb.js";import"./MarTabs-C9xSpZpp.js";import"./MarTag-DJs119DS.js";import"./MarTableColumn.vue_vue_type_script_setup_true_lang-R6PlEya3.js";import"./MarSwitch-CnzyH7nM.js";import"./mobile-dialog-return-service-B9Umx6Ja.js";import"./ManagementPagination-BYt4qkTV.js";import"./error-presentation-zku4f4Na.js";import"./BusyIndicator-ioUVqyOU.js";import"./time-presentation-BZYgfA5o.js";import"./SkillDetailsDialog-C0_4_KU4.js";import"./catalog-page-service-DfBXj8UO.js";import"./MarDescriptionsItem-DZlA06Bs.js";import"./enterprise-management-service-D6TGnQqg.js";function V(c){return{submitFavorite:(r,a)=>c("/api/skill-favorites",{method:"POST",body:JSON.stringify({...r,scope:a?.scope??"PERSONAL",...a?.scope==="ORGANIZATION"&&a.organizationId!==void 0?{organizationId:a.organizationId}:{}})}),submitSource:(r,a)=>c("/api/skill-sources",{method:"POST",body:JSON.stringify({kind:"REPOSITORY",enabled:!0,...r,scope:a?.scope??"PERSONAL",...a?.organizationId===void 0?{}:{organizationId:a.organizationId}})})}}const Q=v({__name:"SkillSourceManagementPage",props:{request:{type:Function},edition:{},role:{},writable:{type:Boolean}},setup(c){const r=c,a=R(r.request,()=>r),{sourceDraft:u,catalogDraft:p,organizationOptions:O,canUseOrganizationScope:k}=a,M=w(()=>({organizationId:[{required:!0,message:o("generated.skillSourceManagementPage.selectAnOrganization"),trigger:"change"}]}));function N(i){return i==="ENTERPRISE"?o("generated.skillSourceManagementPage.enterprise"):i==="ORGANIZATION"?o("generated.skillSourceManagementPage.organization"):o("generated.skillSourceManagementPage.personal")}const I=V(r.request),A=i=>I.submitSource(i,a.sourceTarget()),h=i=>I.submitFavorite(i,a.catalogTarget());return(i,t)=>(m(),d(y,{request:c.request,writable:c.writable,"scope-label":N,"load-extension":e(a).load,"source-context":e(u),"catalog-context":e(p),"ownership-rules":M.value,"submit-source":A,"submit-favorite":h,onOpenSource:e(a).resetSource,onOpenCatalog:e(a).resetCatalog},{"source-ownership":n(()=>[l(e(b),{label:e(o)("generated.skillSourceManagementPage.scope2"),prop:"scope"},{default:n(()=>[l(e(z),{modelValue:e(u).scope,"onUpdate:modelValue":t[0]||(t[0]=s=>e(u).scope=s),"clear-icon":e(g)("clear-input"),"suffix-icon":e(g)("chevron-down")},{default:n(()=>[l(e(S),{label:e(o)("generated.skillSourceManagementPage.personal2"),value:"PERSONAL"},null,8,["label"]),e(k)?(m(),d(e(S),{key:0,label:e(o)("generated.skillSourceManagementPage.organization2"),value:"ORGANIZATION"},null,8,["label"])):f("",!0)]),_:1},8,["modelValue","clear-icon","suffix-icon"])]),_:1},8,["label"]),e(u).scope==="ORGANIZATION"?(m(),d(e(b),{key:0,label:e(o)("generated.skillSourceManagementPage.organization3"),prop:"organizationId"},{default:n(()=>[l(e(P),{modelValue:e(u).organizationId,"onUpdate:modelValue":t[1]||(t[1]=s=>e(u).organizationId=s),style:{width:"100%"},filterable:"",placeholder:e(o)("generated.skillSourceManagementPage.selectAManageableOrganization"),options:e(O),props:{checkStrictly:!0,emitPath:!1},"clear-icon":e(g)("clear-input")},null,8,["modelValue","placeholder","options","clear-icon"])]),_:1},8,["label"])):f("",!0)]),"catalog-ownership":n(()=>[l(e(b),{label:e(o)("generated.skillSourceManagementPage.availability"),prop:"scope"},{default:n(()=>[l(e(z),{modelValue:e(p).scope,"onUpdate:modelValue":t[2]||(t[2]=s=>e(p).scope=s),"clear-icon":e(g)("clear-input"),"suffix-icon":e(g)("chevron-down")},{default:n(()=>[l(e(S),{label:e(o)("generated.skillSourceManagementPage.personal3"),value:"PERSONAL"},null,8,["label"]),e(k)?(m(),d(e(S),{key:0,label:e(o)("generated.skillSourceManagementPage.organizationMembers"),value:"ORGANIZATION"},null,8,["label"])):f("",!0)]),_:1},8,["modelValue","clear-icon","suffix-icon"])]),_:1},8,["label"]),e(p).scope==="ORGANIZATION"?(m(),d(e(b),{key:0,label:e(o)("generated.skillSourceManagementPage.organization4"),prop:"organizationId"},{default:n(()=>[l(e(P),{modelValue:e(p).organizationId,"onUpdate:modelValue":t[3]||(t[3]=s=>e(p).organizationId=s),style:{width:"100%"},filterable:"",placeholder:e(o)("generated.skillSourceManagementPage.selectAManageableOrganization2"),options:e(O),props:{checkStrictly:!0,emitPath:!1},"clear-icon":e(g)("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{Q as default};
@@ -1 +1 @@
1
- import{m as Ge,K as He,L as Ze,W as F,t as l,N as le,E as e,O as te,o as d,n as M,P,q as o,D as i,S as c,Q as s,F as g,T as v,U as ne,C as S,G as C,a6 as E,a7 as N,R as G,a8 as je,ac as Qe,a2 as ye,p as we,V as oe,f,l as ie,k as he,X as re,_ as We}from"./index-BFbW15q7.js";import{_ as Ce,M as Xe}from"./MarTabs-D28b5Cm_.js";import{M as se}from"./MarTag-CU69nmi0.js";import{_ as p,M as ue}from"./MarTableColumn.vue_vue_type_script_setup_true_lang-9WwypTkY.js";import{a as de,_ as V}from"./MarFormItem.vue_vue_type_script_setup_true_lang-DNgXEgAb.js";import{M as O,a as q}from"./MarOptionGroup.vue_vue_type_style_index_0_scoped_cacd24eb_lang-BQD1pghB.js";import{M as Ve}from"./MarSwitch-Nht5u3dc.js";import{u as ce,m as ge}from"./mobile-dialog-return-service-C1n1IVHV.js";import{w as Je,M as Ye}from"./ManagementPagination-B6Pmmb2K.js";import{f as ea}from"./time-presentation-D0SLW-7Y.js";import{c as aa,s as H,S as la}from"./SkillDetailsDialog-DtVFRPBy.js";import"./error-presentation-UGQTkLY-.js";import"./BusyIndicator-BJHbXq72.js";import"./catalog-page-service-C7a95mKM.js";import"./MarDescriptionsItem-Ddl4rEoo.js";const ta={class:"mar-management-page"},na={class:"mar-table-actions"},oa={class:"source-search-bar"},ia={class:"toolbar"},ra={class:"skill-table-section"},sa={key:1,class:"skill-empty"},ua={class:"catalog-filter-bar"},da=["aria-label"],ca=["onClick"],ga={class:"skill-table-section"},ma={class:"table-meta"},fa={key:0,class:"skill-tags"},pa={key:1,class:"skill-empty"},va={class:"form-hint"},ka=Ge({__name:"SkillSourceManagementPage",props:{request:{type:Function},writable:{type:Boolean},scopeLabel:{type:Function},loadExtension:{type:Function},sourceContext:{},catalogContext:{},ownershipRules:{},submitSource:{type:Function},submitFavorite:{type:Function}},emits:["openSource","openCatalog"],setup(k,{emit:_e}){const _=k,me=_e,r=aa(_.request,{..._.submitSource===void 0?{}:{submitSource:_.submitSource},..._.submitFavorite===void 0?{}:{submitFavorite:_.submitFavorite}}),De=r.sources,u=r.catalogPage;Je(u);const D=f(!1),A=f(!1),T=f(!1),L=f(!1),I=f(!0),$=f(!1),B=f(new Set),Z=f(),fe=f(),pe=f(),ve=f(),j=f(),Q=f(),z=f(),U=f({}),W=u.keyword,K=u.category,ke=f("source"),w=ie({name:"",locator:""}),h=ie({featured:!1,tags:[]}),y=ie({featured:!1,tags:[]}),X=he(()=>({name:[{required:!0,message:l("generated.skillSourceManagementPage.enterASourceName"),trigger:"blur"}],locator:[{required:!0,message:l("generated.skillSourceManagementPage.enterARepositoryURL"),trigger:"blur"},{validator:(n,t,a)=>{const m=typeof t=="string"?t.trim():"";/^https:\/\//u.test(m)||/^git@[A-Za-z0-9.-]+:[A-Za-z0-9_.-]+(?:\/[A-Za-z0-9_.-]+)+(?:\.git)?$/u.test(m)?a():a(new Error(l("generated.skillSourceManagementPage.enterAnHTTPSOrGitSSHRepository")))},trigger:"blur"}],tags:[{validator:(n,t,a)=>{const m=Array.isArray(t)?t.map(R=>String(R).trim()):[];m.some(R=>R.length===0||R.length>32)?a(new Error(l("generated.skillSourceManagementPage.eachTagMustContain132Characters"))):new Set(m.map(R=>R.toLocaleLowerCase())).size!==m.length?a(new Error(l("generated.skillSourceManagementPage.duplicateTagsAreNotAllowed"))):a()},trigger:"change"}]})),J=he(()=>r.sources.value.find(n=>n.id===r.selectedSourceId.value)),Y=u.tags,Se=r.favorites;He(()=>{u.start(),Ae()}),Ze(()=>u.dispose());async function Ae(){I.value=!0;try{await b(async()=>{await Promise.all([r.loadSources(),r.loadCatalog()]),r.selectedSourceId.value!==""&&await ee(),await _.loadExtension?.()})}finally{I.value=!1}}async function b(n,t){try{await n(),t!==void 0&&F(t,"success")}catch(a){if(a===u.error.value)return;F(H(a,l("generated.skillSourceManagementPage.theSkillSourceOperationDidNotComplete")),"error",a)}}function Te(){Object.assign(w,{name:"",locator:""}),me("openSource"),D.value=!0}async function Ue(){await fe.value?.validate().catch(()=>!1)&&await b(async()=>{await r.addSource({name:w.name.trim(),locator:w.locator.trim()}),D.value=!1},l("generated.skillSourceManagementPage.skillSourceAdded"))}function xe(n){j.value=n,Object.assign(h,{featured:!1,tags:[]}),me("openCatalog"),A.value=!0}function Re(n){z.value={name:n.name,description:n.description,source:n.source,...n.skillPath===null?{}:{path:n.skillPath},...n.installs===null?{}:{installs:n.installs}},L.value=!0}function Fe(n){z.value={name:n.name,description:"",source:n.locator,scope:x(n.scope),status:n.enabled?l("generated.skillSourceManagementPage.enabled"):l("generated.skillSourceManagementPage.disabled")},L.value=!0}function Le(n){z.value={name:n.normalizedName,description:n.description,source:n.repositoryIdentity,scope:x(n.scope),path:n.skillPath,version:n.commitSha.slice(0,8),updatedAt:Pe(n.updatedAt),featured:n.featured,tags:n.tags},L.value=!0}function Ie(n){Q.value=n,y.featured=n.featured,y.tags=[...n.tags],T.value=!0}async function $e(){if(!await ve.value?.validate().catch(()=>!1)||Q.value===void 0)return;const n=y.tags.map(t=>t.trim());await b(async()=>{await r.updatePresentation(Q.value.id,{featured:y.featured,tags:n}),T.value=!1},l("generated.skillSourceManagementPage.skillInformationUpdated"))}async function Be(n){r.selectedSourceId.value=n,r.candidates.value=[],r.query.value="",await b(ee)}async function ee(){$.value=!0;try{await r.loadCandidates()}finally{$.value=!1}}async function be(){$.value=!0;try{await r.search()}finally{$.value=!1}}async function Me(n){const t=r.selectedSourceId.value;await n(),r.selectedSourceId.value!==""&&r.selectedSourceId.value!==t&&await ee()}async function Ee(n){try{await re.confirm(n.enabled?l("generated.skillSourceManagementPage.confirmDisableSkillSource",{value0:n.name}):l("generated.skillSourceManagementPage.confirmEnableSkillSource",{value0:n.name}),l("generated.skillSourceManagementPage.updateSkillSourceStatus"),{icon:g("warning"),type:"warning",confirmButtonText:n.enabled?l("generated.skillSourceManagementPage.disable"):l("generated.skillSourceManagementPage.enable"),cancelButtonText:l("generated.skillSourceManagementPage.cancel2")})}catch(t){if(ae(t))return;F(H(t,l("generated.skillSourceManagementPage.unableToConfirmSourceStatusChange")),"error",t);return}await b(()=>Me(()=>r.setSourceEnabled(n.id,!n.enabled)),l("generated.skillSourceManagementPage.skillSourceStatusUpdated"))}async function Ne(){if(!await pe.value?.validate().catch(()=>!1)||j.value===void 0)return;const n=h.tags.map(t=>t.trim());await b(async()=>{await r.favorite(j.value,{featured:h.featured,tags:n}),A.value=!1},l("generated.skillSourceManagementPage.skillAddedToTheCatalog"))}async function Oe(n){B.value=new Set([...B.value,n.id]);try{await b(async()=>{const t=await r.checkUpdate(n.id);U.value={...U.value,[n.id]:t},F(t.updateAvailable?l("generated.skillSourceManagementPage.updateAvailable"):l("generated.skillSourceManagementPage.alreadyUpToDate"),"info")})}finally{const t=new Set(B.value);t.delete(n.id),B.value=t}}async function qe(n){Z.value=n.id;try{await b(async()=>{await r.upgrade(n.id);const t={...U.value};delete t[n.id],U.value=t},l("generated.skillSourceManagementPage.catalogSkillUpdated"))}finally{Z.value=void 0}}function Pe(n){return ea(n)}async function ze(n){try{await re.confirm(l("generated.skillSourceManagementPage.deleteSkillSource",{value0:n.name}),l("generated.skillSourceManagementPage.deleteSkillSource2"),{icon:g("warning"),type:"warning",confirmButtonText:l("generated.skillSourceManagementPage.delete"),cancelButtonText:l("generated.skillSourceManagementPage.cancel")})}catch(t){if(ae(t))return;F(H(t,l("generated.skillSourceManagementPage.unableToConfirmDeletionTryAgainLater")),"error",t);return}await b(()=>Me(()=>r.removeSource(n.id)),l("generated.skillSourceManagementPage.skillSourceDeleted"))}async function Ke(n,t){try{await re.confirm(l("generated.skillSourceManagementPage.removeFromTheSkillCatalogInstalledCopies",{value0:t}),l("generated.skillSourceManagementPage.removeSkill"),{icon:g("warning"),type:"warning",confirmButtonText:l("generated.skillSourceManagementPage.remove"),cancelButtonText:l("generated.skillSourceManagementPage.cancel2")})}catch(a){if(ae(a))return;F(H(a,l("generated.skillSourceManagementPage.unableToConfirmRemovalTryAgainLater")),"error",a);return}await b(()=>r.remove(n),l("generated.skillSourceManagementPage.skillRemoved"))}function ae(n){return n==="cancel"||n==="close"}function x(n){return _.scopeLabel?.(n)??l("generated.skillSourceManagementPage.personal")}return(n,t)=>le((d(),M("section",ta,[P("div",na,[o(e(v),{type:"primary",icon:e(g)("plus"),disabled:!k.writable||e(r).loading.value,onClick:Te},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.addSkillSource")),1)]),_:1},8,["icon","disabled"])]),o(e(ue),{class:"clickable-rows skill-source-table",data:e(De),"row-key":"id",onRowClick:Fe},{default:i(()=>[o(e(p),{prop:"name",label:e(l)("generated.skillSourceManagementPage.name"),sortable:"","min-width":"180"},null,8,["label"]),o(e(p),{label:e(l)("generated.skillSourceManagementPage.scope"),width:"144","show-overflow-tooltip":"",sortable:"","sort-method":(a,m)=>x(a.scope).localeCompare(x(m.scope))},{default:i(({row:a})=>[c(s(x(a.scope)),1)]),_:1},8,["label","sort-method"]),o(e(p),{prop:"locator",label:e(l)("generated.skillSourceManagementPage.uRL"),"min-width":"280","show-overflow-tooltip":""},null,8,["label"]),o(e(p),{label:e(l)("generated.skillSourceManagementPage.status"),width:"110"},{default:i(({row:a})=>[o(e(se),{type:a.enabled?"success":"info",effect:"plain"},{default:i(()=>[c(s(a.enabled?e(l)("generated.skillSourceManagementPage.enabled"):e(l)("generated.skillSourceManagementPage.disabled")),1)]),_:2},1032,["type"])]),_:1},8,["label"]),o(e(p),{label:e(l)("generated.skillSourceManagementPage.actions"),width:180},{default:i(({row:a})=>[P("div",{class:"mar-row-actions",onClick:t[0]||(t[0]=ne(()=>{},["stop"]))},[o(e(v),{link:"",icon:e(g)("power"),disabled:!k.writable||!a.manageable||e(r).loading.value,onClick:m=>Ee(a)},{default:i(()=>[c(s(a.enabled?e(l)("generated.skillSourceManagementPage.disable"):e(l)("generated.skillSourceManagementPage.enable")),1)]),_:2},1032,["icon","disabled","onClick"]),a.builtIn?C("",!0):(d(),S(e(v),{key:0,link:"",type:"danger",icon:e(g)("delete"),disabled:!k.writable||!a.manageable||e(r).loading.value,onClick:m=>ze(a)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.delete2")),1)]),_:1},8,["icon","disabled","onClick"]))])]),_:1},8,["label"])]),_:1},8,["data"]),o(e(Xe),{modelValue:ke.value,"onUpdate:modelValue":t[8]||(t[8]=a=>ke.value=a),class:"skill-management-tabs"},{default:i(()=>[o(e(Ce),{label:e(l)("generated.skillSourceManagementPage.sourceSkills"),name:"source"},{default:i(()=>[P("div",oa,[o(e(O),{"model-value":e(r).selectedSourceId.value,"aria-label":e(l)("generated.skillSourceManagementPage.selectASkillSource"),placeholder:e(l)("generated.skillSourceManagementPage.selectAnEnabledSkillSource"),disabled:e(r).loading.value,onChange:Be},{default:i(()=>[(d(!0),M(E,null,N(e(r).sources.value.filter(a=>a.enabled),a=>(d(),S(e(q),{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["model-value","aria-label","placeholder","disabled"]),P("div",ia,[o(e(G),{modelValue:e(r).query.value,"onUpdate:modelValue":t[2]||(t[2]=a=>e(r).query.value=a),clearable:"",placeholder:e(l)("generated.skillSourceManagementPage.enterASkillNameOrDescription"),onKeyup:t[3]||(t[3]=je(a=>b(be),["enter"])),"clear-icon":e(g)("clear-input")},{append:i(()=>[o(e(v),{icon:e(g)("search"),disabled:!J.value?.enabled||e(r).loading.value,onClick:t[1]||(t[1]=a=>b(be))},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.search")),1)]),_:1},8,["icon","disabled"])]),_:1},8,["modelValue","placeholder","clear-icon"])])]),le((d(),M("div",ra,[e(r).candidates.value.length>0?(d(),S(e(ue),{key:0,class:"clickable-rows source-skill-table",data:e(r).candidates.value,"row-key":"id",onRowClick:Re},{default:i(()=>[o(e(p),{prop:"name",label:e(l)("generated.skillSourceManagementPage.name"),sortable:"","min-width":"180"},null,8,["label"]),o(e(p),{prop:"source",label:e(l)("generated.skillDetailsDialog.source"),"min-width":"180","show-overflow-tooltip":""},null,8,["label"]),o(e(p),{prop:"description",label:e(l)("conversationTemplates.description"),"min-width":"280","show-overflow-tooltip":""},{default:i(({row:a})=>[c(s(a.description||e(l)("generated.skillSourceManagementPage.noDescriptionWasProvidedByThisSource")),1)]),_:1},8,["label"]),o(e(p),{label:e(l)("generated.skillSourceManagementPage.actions"),width:180},{default:i(({row:a})=>[P("div",{class:"mar-row-actions",onClick:t[4]||(t[4]=ne(()=>{},["stop"]))},[o(e(v),{link:"",icon:e(g)("plus"),disabled:!k.writable||e(r).loading.value,onClick:m=>xe(a)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.addToCatalog")),1)]),_:1},8,["icon","disabled","onClick"])])]),_:1},8,["label"])]),_:1},8,["data"])):e(r).loading.value?C("",!0):(d(),M("div",sa,s(J.value?.kind==="SKILLS_SH"?e(l)("generated.skillSourceManagementPage.noPopularSkillsAreAvailableEnterA"):J.value?e(l)("generated.skillSourceManagementPage.thisSourceHasNoAvailableSkills"):e(l)("generated.skillSourceManagementPage.selectAnEnabledSkillSource2")),1))])),[[e(te),$.value&&!I.value,"region"]])]),_:1},8,["label"]),o(e(Ce),{label:e(l)("generated.skillSourceManagementPage.catalogSkills"),name:"catalog"},{default:i(()=>[P("div",ua,[o(e(G),{modelValue:e(W),"onUpdate:modelValue":t[5]||(t[5]=a=>Qe(W)?W.value=a:null),clearable:"",placeholder:e(l)("generated.skillSourceManagementPage.searchSkillNamesOrDescriptions"),"clear-icon":e(g)("clear-input")},null,8,["modelValue","placeholder","clear-icon"]),P("div",{class:"skill-category-strip","aria-label":e(l)("generated.skillSourceManagementPage.catalogSkillCategories")},[P("button",{class:ye({selected:e(K)===""}),onClick:t[6]||(t[6]=a=>K.value="")},s(e(l)("generated.skillSourceManagementPage.all")),3),(d(!0),M(E,null,N(e(Y),a=>(d(),M("button",{key:a,class:ye({selected:e(K)===a}),onClick:m=>K.value=a},s(a),11,ca))),128))],8,da)]),le((d(),M("div",ga,[e(Se).length>0?(d(),S(e(ue),{key:0,class:"clickable-rows catalog-skill-table",onSortChange:e(u).sort,data:e(Se),"row-key":"id",onRowClick:Le},{default:i(()=>[o(e(p),{prop:"normalizedName",label:e(l)("generated.skillSourceManagementPage.name"),sortable:"custom","min-width":"170"},null,8,["label"]),o(e(p),{prop:"repositoryIdentity",label:e(l)("generated.skillDetailsDialog.source"),"min-width":"180","show-overflow-tooltip":""},null,8,["label"]),o(e(p),{label:e(l)("generated.skillSourceManagementPage.scope"),width:"144","show-overflow-tooltip":""},{default:i(({row:a})=>[c(s(x(a.scope)),1)]),_:1},8,["label"]),o(e(p),{prop:"description",label:e(l)("conversationTemplates.description"),"min-width":"260","show-overflow-tooltip":""},{default:i(({row:a})=>[c(s(a.description||e(l)("generated.skillSourceManagementPage.noDescriptionIsAvailableForThisSkill")),1)]),_:1},8,["label"]),o(e(p),{label:e(l)("generated.skillDetailsDialog.version"),"min-width":"170"},{default:i(({row:a})=>[P("span",null,s(a.commitSha.slice(0,8)),1),P("span",ma,s(e(l)("generated.skillSourceManagementPage.updated"))+" "+s(Pe(a.updatedAt)),1)]),_:1},8,["label"]),o(e(p),{label:e(l)("generated.skillDetailsDialog.tags"),"min-width":"150"},{default:i(({row:a})=>[a.featured||a.tags.length>0?(d(),M("div",fa,[a.featured?(d(),S(e(se),{key:0,type:"warning",effect:"plain"},{default:i(()=>[c("★ "+s(e(l)("generated.skillSourceManagementPage.featured")),1)]),_:1})):C("",!0),(d(!0),M(E,null,N(a.tags,m=>(d(),S(e(se),{key:m,type:"info",effect:"plain"},{default:i(()=>[c(s(m),1)]),_:2},1024))),128))])):C("",!0)]),_:1},8,["label"]),o(e(p),{label:e(l)("generated.skillSourceManagementPage.actions"),"min-width":"360"},{default:i(({row:a})=>[P("div",{class:"mar-row-actions",onClick:t[7]||(t[7]=ne(()=>{},["stop"]))},[o(e(v),{link:"",icon:e(g)("edit"),disabled:!k.writable||!a.manageable||e(r).loading.value,onClick:m=>Ie(a)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.edit")),1)]),_:1},8,["icon","disabled","onClick"]),U.value[a.id]?.updateAvailable?(d(),S(e(v),{key:1,link:"",icon:e(g)("retry"),loading:Z.value===a.id,disabled:!k.writable||!a.manageable||e(r).loading.value,onClick:m=>qe(a)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.updateTo"))+" "+s(U.value[a.id].latestCommitSha.slice(0,8)),1)]),_:2},1032,["icon","loading","disabled","onClick"])):(d(),S(e(v),{key:0,link:"",icon:e(g)("refresh"),loading:B.value.has(a.id),disabled:!k.writable||!a.manageable||e(r).loading.value,onClick:m=>Oe(a)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.checkForUpdates")),1)]),_:1},8,["icon","loading","disabled","onClick"])),o(e(v),{link:"",type:"danger",icon:e(g)("delete"),disabled:!k.writable||!a.manageable||e(r).loading.value,onClick:m=>Ke(a.id,a.normalizedName)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.remove2")),1)]),_:1},8,["icon","disabled","onClick"])])]),_:1},8,["label"])]),_:1},8,["onSortChange","data"])):e(r).loading.value?C("",!0):(d(),M("div",pa,s(e(r).favorites.value.length===0?e(l)("generated.skillSourceManagementPage.noCatalogSkills"):e(l)("generated.skillSourceManagementPage.noMatchingSkills")),1)),o(Ye,{total:e(u).total.value,page:e(u).page.value,mobile:e(u).mobileViewport.value,"mobile-visible-count":e(u).mobileVisibleCount.value,loading:e(u).loading.value,"loading-more":e(u).loadingMore.value,"has-more":e(u).hasMore.value,onPage:e(u).setPage,failed:e(u).failure.value!==void 0,"incremental-failed":e(u).failure.value?.incremental===!0,error:e(u).failure.value?.error,"context-key":e(u).contextKey.value,onRetry:e(u).retry,onLoadMore:e(u).loadMore},null,8,["total","page","mobile","mobile-visible-count","loading","loading-more","has-more","onPage","failed","incremental-failed","error","context-key","onRetry","onLoadMore"])])),[[e(te),e(u).loading.value&&!I.value&&!e(u).loadingMore.value&&!e(u).failure.value,"region"]])]),_:1},8,["label"])]),_:1},8,["modelValue"]),D.value?(d(),S(e(oe),{key:0,onVnodeMounted:e(ge),onVnodeBeforeUnmount:e(ce),modelValue:D.value,"onUpdate:modelValue":t[12]||(t[12]=a=>D.value=a),title:e(l)("generated.skillSourceManagementPage.addSkillSource2"),width:"min(520px, calc(100vw - 32px))"},{footer:i(()=>[o(e(v),{onClick:t[11]||(t[11]=a=>D.value=!1)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.cancel3")),1)]),_:1}),o(e(v),{type:"primary",loading:e(r).loading.value,onClick:Ue},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.add")),1)]),_:1},8,["loading"])]),default:i(()=>[o(e(de),{ref_key:"sourceForm",ref:fe,model:{...k.sourceContext,...w},rules:{...k.ownershipRules,...X.value},"label-position":"top"},{default:i(()=>[o(e(V),{label:e(l)("generated.skillSourceManagementPage.name2"),prop:"name"},{default:i(()=>[o(e(G),{modelValue:w.name,"onUpdate:modelValue":t[9]||(t[9]=a=>w.name=a),maxlength:"128"},null,8,["modelValue"])]),_:1},8,["label"]),o(e(V),{label:e(l)("generated.skillSourceManagementPage.repositoryURL"),prop:"locator"},{default:i(()=>[o(e(G),{modelValue:w.locator,"onUpdate:modelValue":t[10]||(t[10]=a=>w.locator=a),placeholder:e(l)("generated.skillSourceManagementPage.httpsGithubComOrgRepoOrGit")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),P("p",va,s(e(l)("generated.skillSourceManagementPage.gitRepositoriesUseTheServerProcessUser")),1),we(n.$slots,"source-ownership",{},()=>[o(e(V),{label:e(l)("generated.skillSourceManagementPage.scope2")},{default:i(()=>[o(e(O),{"model-value":"PERSONAL","clear-icon":e(g)("clear-input"),"suffix-icon":e(g)("chevron-down")},{default:i(()=>[o(e(q),{value:"PERSONAL",label:e(l)("generated.skillSourceManagementPage.personal2")},null,8,["label"])]),_:1},8,["clear-icon","suffix-icon"])]),_:1},8,["label"])],!0)]),_:3},8,["model","rules"])]),_:3},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):C("",!0),A.value?(d(),S(e(oe),{key:1,onVnodeMounted:e(ge),onVnodeBeforeUnmount:e(ce),modelValue:A.value,"onUpdate:modelValue":t[16]||(t[16]=a=>A.value=a),title:e(l)("generated.skillSourceManagementPage.addToCatalog2"),width:"min(460px, calc(100vw - 32px))"},{footer:i(()=>[o(e(v),{onClick:t[15]||(t[15]=a=>A.value=!1)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.cancel4")),1)]),_:1}),o(e(v),{type:"primary",loading:e(r).loading.value,onClick:Ne},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.add2")),1)]),_:1},8,["loading"])]),default:i(()=>[o(e(de),{ref_key:"catalogForm",ref:pe,model:{...k.catalogContext,...h},rules:{...k.ownershipRules,...X.value},"label-position":"top"},{default:i(()=>[we(n.$slots,"catalog-ownership",{},()=>[o(e(V),{label:e(l)("generated.skillSourceManagementPage.availability")},{default:i(()=>[o(e(O),{"model-value":"PERSONAL","clear-icon":e(g)("clear-input"),"suffix-icon":e(g)("chevron-down")},{default:i(()=>[o(e(q),{value:"PERSONAL",label:e(l)("generated.skillSourceManagementPage.personal3")},null,8,["label"])]),_:1},8,["clear-icon","suffix-icon"])]),_:1},8,["label"])],!0),o(e(V),{label:e(l)("generated.skillSourceManagementPage.featured2")},{default:i(()=>[o(e(Ve),{modelValue:h.featured,"onUpdate:modelValue":t[13]||(t[13]=a=>h.featured=a)},null,8,["modelValue"])]),_:1},8,["label"]),o(e(V),{label:e(l)("generated.skillSourceManagementPage.tags"),prop:"tags"},{default:i(()=>[o(e(O),{modelValue:h.tags,"onUpdate:modelValue":t[14]||(t[14]=a=>h.tags=a),multiple:"",filterable:"","allow-create":"","default-first-option":"","multiple-limit":10,placeholder:e(l)("generated.skillSourceManagementPage.enterATagAndPressEnterUp"),"clear-icon":e(g)("clear-input"),"suffix-icon":e(g)("chevron-down")},{default:i(()=>[(d(!0),M(E,null,N(e(Y),a=>(d(),S(e(q),{key:a,label:a,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","clear-icon","suffix-icon"])]),_:1},8,["label"])]),_:3},8,["model","rules"])]),_:3},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):C("",!0),T.value?(d(),S(e(oe),{key:2,onVnodeMounted:e(ge),onVnodeBeforeUnmount:e(ce),modelValue:T.value,"onUpdate:modelValue":t[20]||(t[20]=a=>T.value=a),title:e(l)("generated.skillSourceManagementPage.editSkillInformation"),width:"min(460px, calc(100vw - 32px))","destroy-on-close":""},{footer:i(()=>[o(e(v),{onClick:t[19]||(t[19]=a=>T.value=!1)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.cancel5")),1)]),_:1}),o(e(v),{type:"primary",loading:e(r).loading.value,onClick:$e},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.save")),1)]),_:1},8,["loading"])]),default:i(()=>[o(e(de),{ref_key:"editForm",ref:ve,model:y,rules:X.value,"label-position":"top"},{default:i(()=>[o(e(V),{label:e(l)("generated.skillSourceManagementPage.featured3")},{default:i(()=>[o(e(Ve),{modelValue:y.featured,"onUpdate:modelValue":t[17]||(t[17]=a=>y.featured=a)},null,8,["modelValue"])]),_:1},8,["label"]),o(e(V),{label:e(l)("generated.skillSourceManagementPage.tags2"),prop:"tags"},{default:i(()=>[o(e(O),{modelValue:y.tags,"onUpdate:modelValue":t[18]||(t[18]=a=>y.tags=a),multiple:"",filterable:"","allow-create":"","default-first-option":"","multiple-limit":10,placeholder:e(l)("generated.skillSourceManagementPage.enterATagAndPressEnterUp2"),"clear-icon":e(g)("clear-input"),"suffix-icon":e(g)("chevron-down")},{default:i(()=>[(d(!0),M(E,null,N(e(Y),a=>(d(),S(e(q),{key:a,label:a,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","clear-icon","suffix-icon"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):C("",!0),o(la,{modelValue:L.value,"onUpdate:modelValue":t[21]||(t[21]=a=>L.value=a),details:z.value},null,8,["modelValue","details"])])),[[e(te),I.value,"page"]])}}),Ra=We(ka,[["__scopeId","data-v-8cb613c1"]]);export{Ra as default};
1
+ import{m as Ge,K as He,L as Ze,W as F,t as l,N as le,E as e,O as te,o as d,n as M,P,q as o,D as i,S as c,Q as s,F as g,T as v,U as ne,C as S,G as C,a6 as $,a7 as N,R as G,a8 as je,ac as Qe,a2 as ye,p as we,V as oe,f,l as ie,k as he,X as re,_ as We}from"./index-CXYo0aZg.js";import{M as Ce,a as Xe}from"./MarTabs-C9xSpZpp.js";import{M as se}from"./MarTag-DJs119DS.js";import{_ as p,M as ue}from"./MarTableColumn.vue_vue_type_script_setup_true_lang-R6PlEya3.js";import{a as de,_ as V}from"./MarFormItem.vue_vue_type_script_setup_true_lang-DR9vLmUF.js";import{M as O,a as q}from"./MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-toYIflmN.js";import{M as Ve}from"./MarSwitch-CnzyH7nM.js";import{u as ce,m as ge}from"./mobile-dialog-return-service-B9Umx6Ja.js";import{w as Je,M as Ye}from"./ManagementPagination-BYt4qkTV.js";import{f as ea}from"./time-presentation-BZYgfA5o.js";import{c as aa,s as H,S as la}from"./SkillDetailsDialog-C0_4_KU4.js";import"./error-presentation-zku4f4Na.js";import"./BusyIndicator-ioUVqyOU.js";import"./catalog-page-service-DfBXj8UO.js";import"./MarDescriptionsItem-DZlA06Bs.js";const ta={class:"mar-management-page"},na={class:"mar-table-actions"},oa={class:"source-search-bar"},ia={class:"toolbar"},ra={class:"skill-table-section"},sa={key:1,class:"skill-empty"},ua={class:"catalog-filter-bar"},da=["aria-label"],ca=["onClick"],ga={class:"skill-table-section"},ma={class:"table-meta"},fa={key:0,class:"skill-tags"},pa={key:1,class:"skill-empty"},va={class:"form-hint"},ka=Ge({__name:"SkillSourceManagementPage",props:{request:{type:Function},writable:{type:Boolean},scopeLabel:{type:Function},loadExtension:{type:Function},sourceContext:{},catalogContext:{},ownershipRules:{},submitSource:{type:Function},submitFavorite:{type:Function}},emits:["openSource","openCatalog"],setup(k,{emit:De}){const D=k,me=De,r=aa(D.request,{...D.submitSource===void 0?{}:{submitSource:D.submitSource},...D.submitFavorite===void 0?{}:{submitFavorite:D.submitFavorite}}),Te=r.sources,u=r.catalogPage;Je(u);const T=f(!1),_=f(!1),A=f(!1),L=f(!1),I=f(!0),B=f(!1),E=f(new Set),Z=f(),fe=f(),pe=f(),ve=f(),j=f(),Q=f(),z=f(),U=f({}),W=u.keyword,K=u.category,ke=f("source"),w=ie({name:"",locator:""}),h=ie({featured:!1,tags:[]}),y=ie({featured:!1,tags:[]}),X=he(()=>({name:[{required:!0,message:l("generated.skillSourceManagementPage.enterASourceName"),trigger:"blur"}],locator:[{required:!0,message:l("generated.skillSourceManagementPage.enterARepositoryURL"),trigger:"blur"},{validator:(n,t,a)=>{const m=typeof t=="string"?t.trim():"";/^https:\/\//u.test(m)||/^git@[A-Za-z0-9.-]+:[A-Za-z0-9_.-]+(?:\/[A-Za-z0-9_.-]+)+(?:\.git)?$/u.test(m)?a():a(new Error(l("generated.skillSourceManagementPage.enterAnHTTPSOrGitSSHRepository")))},trigger:"blur"}],tags:[{validator:(n,t,a)=>{const m=Array.isArray(t)?t.map(R=>String(R).trim()):[];m.some(R=>R.length===0||R.length>32)?a(new Error(l("generated.skillSourceManagementPage.eachTagMustContain132Characters"))):new Set(m.map(R=>R.toLocaleLowerCase())).size!==m.length?a(new Error(l("generated.skillSourceManagementPage.duplicateTagsAreNotAllowed"))):a()},trigger:"change"}]})),J=he(()=>r.sources.value.find(n=>n.id===r.selectedSourceId.value)),Y=u.tags,Se=r.favorites;He(()=>{u.start(),_e()}),Ze(()=>u.dispose());async function _e(){I.value=!0;try{await b(async()=>{await Promise.all([r.loadSources(),r.loadCatalog()]),r.selectedSourceId.value!==""&&await ee(),await D.loadExtension?.()})}finally{I.value=!1}}async function b(n,t){try{await n(),t!==void 0&&F(t,"success")}catch(a){if(a===u.error.value)return;F(H(a,l("generated.skillSourceManagementPage.theSkillSourceOperationDidNotComplete")),"error",a)}}function Ae(){Object.assign(w,{name:"",locator:""}),me("openSource"),T.value=!0}async function Ue(){await fe.value?.validate().catch(()=>!1)&&await b(async()=>{await r.addSource({name:w.name.trim(),locator:w.locator.trim()}),T.value=!1},l("generated.skillSourceManagementPage.skillSourceAdded"))}function xe(n){j.value=n,Object.assign(h,{featured:!1,tags:[]}),me("openCatalog"),_.value=!0}function Re(n){z.value={name:n.name,description:n.description,source:n.source,...n.skillPath===null?{}:{path:n.skillPath},...n.installs===null?{}:{installs:n.installs}},L.value=!0}function Fe(n){z.value={name:n.name,description:"",source:n.locator,scope:x(n.scope),status:n.enabled?l("generated.skillSourceManagementPage.enabled"):l("generated.skillSourceManagementPage.disabled")},L.value=!0}function Le(n){z.value={name:n.normalizedName,description:n.description,source:n.repositoryIdentity,scope:x(n.scope),path:n.skillPath,version:n.commitSha.slice(0,8),updatedAt:Pe(n.updatedAt),featured:n.featured,tags:n.tags},L.value=!0}function Ie(n){Q.value=n,y.featured=n.featured,y.tags=[...n.tags],A.value=!0}async function Be(){if(!await ve.value?.validate().catch(()=>!1)||Q.value===void 0)return;const n=y.tags.map(t=>t.trim());await b(async()=>{await r.updatePresentation(Q.value.id,{featured:y.featured,tags:n}),A.value=!1},l("generated.skillSourceManagementPage.skillInformationUpdated"))}async function Ee(n){r.selectedSourceId.value=n,r.candidates.value=[],r.query.value="",await b(ee)}async function ee(){B.value=!0;try{await r.loadCandidates()}finally{B.value=!1}}async function be(){B.value=!0;try{await r.search()}finally{B.value=!1}}async function Me(n){const t=r.selectedSourceId.value;await n(),r.selectedSourceId.value!==""&&r.selectedSourceId.value!==t&&await ee()}async function $e(n){try{await re.confirm(n.enabled?l("generated.skillSourceManagementPage.confirmDisableSkillSource",{value0:n.name}):l("generated.skillSourceManagementPage.confirmEnableSkillSource",{value0:n.name}),l("generated.skillSourceManagementPage.updateSkillSourceStatus"),{icon:g("warning"),type:"warning",confirmButtonText:n.enabled?l("generated.skillSourceManagementPage.disable"):l("generated.skillSourceManagementPage.enable"),cancelButtonText:l("generated.skillSourceManagementPage.cancel2")})}catch(t){if(ae(t))return;F(H(t,l("generated.skillSourceManagementPage.unableToConfirmSourceStatusChange")),"error",t);return}await b(()=>Me(()=>r.setSourceEnabled(n.id,!n.enabled)),l("generated.skillSourceManagementPage.skillSourceStatusUpdated"))}async function Ne(){if(!await pe.value?.validate().catch(()=>!1)||j.value===void 0)return;const n=h.tags.map(t=>t.trim());await b(async()=>{await r.favorite(j.value,{featured:h.featured,tags:n}),_.value=!1},l("generated.skillSourceManagementPage.skillAddedToTheCatalog"))}async function Oe(n){E.value=new Set([...E.value,n.id]);try{await b(async()=>{const t=await r.checkUpdate(n.id);U.value={...U.value,[n.id]:t},F(t.updateAvailable?l("generated.skillSourceManagementPage.updateAvailable"):l("generated.skillSourceManagementPage.alreadyUpToDate"),"info")})}finally{const t=new Set(E.value);t.delete(n.id),E.value=t}}async function qe(n){Z.value=n.id;try{await b(async()=>{await r.upgrade(n.id);const t={...U.value};delete t[n.id],U.value=t},l("generated.skillSourceManagementPage.catalogSkillUpdated"))}finally{Z.value=void 0}}function Pe(n){return ea(n)}async function ze(n){try{await re.confirm(l("generated.skillSourceManagementPage.deleteSkillSource",{value0:n.name}),l("generated.skillSourceManagementPage.deleteSkillSource2"),{icon:g("warning"),type:"warning",confirmButtonText:l("generated.skillSourceManagementPage.delete"),cancelButtonText:l("generated.skillSourceManagementPage.cancel")})}catch(t){if(ae(t))return;F(H(t,l("generated.skillSourceManagementPage.unableToConfirmDeletionTryAgainLater")),"error",t);return}await b(()=>Me(()=>r.removeSource(n.id)),l("generated.skillSourceManagementPage.skillSourceDeleted"))}async function Ke(n,t){try{await re.confirm(l("generated.skillSourceManagementPage.removeFromTheSkillCatalogInstalledCopies",{value0:t}),l("generated.skillSourceManagementPage.removeSkill"),{icon:g("warning"),type:"warning",confirmButtonText:l("generated.skillSourceManagementPage.remove"),cancelButtonText:l("generated.skillSourceManagementPage.cancel2")})}catch(a){if(ae(a))return;F(H(a,l("generated.skillSourceManagementPage.unableToConfirmRemovalTryAgainLater")),"error",a);return}await b(()=>r.remove(n),l("generated.skillSourceManagementPage.skillRemoved"))}function ae(n){return n==="cancel"||n==="close"}function x(n){return D.scopeLabel?.(n)??l("generated.skillSourceManagementPage.personal")}return(n,t)=>le((d(),M("section",ta,[P("div",na,[o(e(v),{type:"primary",icon:e(g)("plus"),disabled:!k.writable||e(r).loading.value,onClick:Ae},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.addSkillSource")),1)]),_:1},8,["icon","disabled"])]),o(e(ue),{class:"clickable-rows skill-source-table",data:e(Te),"row-key":"id",onRowClick:Fe},{default:i(()=>[o(e(p),{prop:"name",label:e(l)("generated.skillSourceManagementPage.name"),sortable:"","min-width":"180"},null,8,["label"]),o(e(p),{label:e(l)("generated.skillSourceManagementPage.scope"),width:"144","show-overflow-tooltip":"",sortable:"","sort-method":(a,m)=>x(a.scope).localeCompare(x(m.scope))},{default:i(({row:a})=>[c(s(x(a.scope)),1)]),_:1},8,["label","sort-method"]),o(e(p),{prop:"locator",label:e(l)("generated.skillSourceManagementPage.uRL"),"min-width":"280","show-overflow-tooltip":""},null,8,["label"]),o(e(p),{label:e(l)("generated.skillSourceManagementPage.status"),width:"110"},{default:i(({row:a})=>[o(e(se),{type:a.enabled?"success":"info",effect:"plain"},{default:i(()=>[c(s(a.enabled?e(l)("generated.skillSourceManagementPage.enabled"):e(l)("generated.skillSourceManagementPage.disabled")),1)]),_:2},1032,["type"])]),_:1},8,["label"]),o(e(p),{label:e(l)("generated.skillSourceManagementPage.actions"),width:180},{default:i(({row:a})=>[P("div",{class:"mar-row-actions",onClick:t[0]||(t[0]=ne(()=>{},["stop"]))},[o(e(v),{link:"",icon:e(g)("power"),disabled:!k.writable||!a.manageable||e(r).loading.value,onClick:m=>$e(a)},{default:i(()=>[c(s(a.enabled?e(l)("generated.skillSourceManagementPage.disable"):e(l)("generated.skillSourceManagementPage.enable")),1)]),_:2},1032,["icon","disabled","onClick"]),a.builtIn?C("",!0):(d(),S(e(v),{key:0,link:"",type:"danger",icon:e(g)("delete"),disabled:!k.writable||!a.manageable||e(r).loading.value,onClick:m=>ze(a)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.delete2")),1)]),_:1},8,["icon","disabled","onClick"]))])]),_:1},8,["label"])]),_:1},8,["data"]),o(e(Xe),{modelValue:ke.value,"onUpdate:modelValue":t[8]||(t[8]=a=>ke.value=a),class:"skill-management-tabs"},{default:i(()=>[o(e(Ce),{label:e(l)("generated.skillSourceManagementPage.sourceSkills"),name:"source"},{default:i(()=>[P("div",oa,[o(e(O),{"model-value":e(r).selectedSourceId.value,"aria-label":e(l)("generated.skillSourceManagementPage.selectASkillSource"),placeholder:e(l)("generated.skillSourceManagementPage.selectAnEnabledSkillSource"),disabled:e(r).loading.value,onChange:Ee},{default:i(()=>[(d(!0),M($,null,N(e(r).sources.value.filter(a=>a.enabled),a=>(d(),S(e(q),{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["model-value","aria-label","placeholder","disabled"]),P("div",ia,[o(e(G),{modelValue:e(r).query.value,"onUpdate:modelValue":t[2]||(t[2]=a=>e(r).query.value=a),clearable:"",placeholder:e(l)("generated.skillSourceManagementPage.enterASkillNameOrDescription"),onKeyup:t[3]||(t[3]=je(a=>b(be),["enter"])),"clear-icon":e(g)("clear-input")},{append:i(()=>[o(e(v),{icon:e(g)("search"),disabled:!J.value?.enabled||e(r).loading.value,onClick:t[1]||(t[1]=a=>b(be))},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.search")),1)]),_:1},8,["icon","disabled"])]),_:1},8,["modelValue","placeholder","clear-icon"])])]),le((d(),M("div",ra,[e(r).candidates.value.length>0?(d(),S(e(ue),{key:0,class:"clickable-rows source-skill-table",data:e(r).candidates.value,"row-key":"id",onRowClick:Re},{default:i(()=>[o(e(p),{prop:"name",label:e(l)("generated.skillSourceManagementPage.name"),sortable:"","min-width":"180"},null,8,["label"]),o(e(p),{prop:"source",label:e(l)("generated.skillDetailsDialog.source"),"min-width":"180","show-overflow-tooltip":""},null,8,["label"]),o(e(p),{prop:"description",label:e(l)("conversationTemplates.description"),"min-width":"280","show-overflow-tooltip":""},{default:i(({row:a})=>[c(s(a.description||e(l)("generated.skillSourceManagementPage.noDescriptionWasProvidedByThisSource")),1)]),_:1},8,["label"]),o(e(p),{label:e(l)("generated.skillSourceManagementPage.actions"),width:180},{default:i(({row:a})=>[P("div",{class:"mar-row-actions",onClick:t[4]||(t[4]=ne(()=>{},["stop"]))},[o(e(v),{link:"",icon:e(g)("plus"),disabled:!k.writable||e(r).loading.value,onClick:m=>xe(a)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.addToCatalog")),1)]),_:1},8,["icon","disabled","onClick"])])]),_:1},8,["label"])]),_:1},8,["data"])):e(r).loading.value?C("",!0):(d(),M("div",sa,s(J.value?.kind==="SKILLS_SH"?e(l)("generated.skillSourceManagementPage.noPopularSkillsAreAvailableEnterA"):J.value?e(l)("generated.skillSourceManagementPage.thisSourceHasNoAvailableSkills"):e(l)("generated.skillSourceManagementPage.selectAnEnabledSkillSource2")),1))])),[[e(te),B.value&&!I.value,"region"]])]),_:1},8,["label"]),o(e(Ce),{label:e(l)("generated.skillSourceManagementPage.catalogSkills"),name:"catalog"},{default:i(()=>[P("div",ua,[o(e(G),{modelValue:e(W),"onUpdate:modelValue":t[5]||(t[5]=a=>Qe(W)?W.value=a:null),clearable:"",placeholder:e(l)("generated.skillSourceManagementPage.searchSkillNamesOrDescriptions"),"clear-icon":e(g)("clear-input")},null,8,["modelValue","placeholder","clear-icon"]),P("div",{class:"skill-category-strip","aria-label":e(l)("generated.skillSourceManagementPage.catalogSkillCategories")},[P("button",{class:ye({selected:e(K)===""}),onClick:t[6]||(t[6]=a=>K.value="")},s(e(l)("generated.skillSourceManagementPage.all")),3),(d(!0),M($,null,N(e(Y),a=>(d(),M("button",{key:a,class:ye({selected:e(K)===a}),onClick:m=>K.value=a},s(a),11,ca))),128))],8,da)]),le((d(),M("div",ga,[e(Se).length>0?(d(),S(e(ue),{key:0,class:"clickable-rows catalog-skill-table",onSortChange:e(u).sort,data:e(Se),"row-key":"id",onRowClick:Le},{default:i(()=>[o(e(p),{prop:"normalizedName",label:e(l)("generated.skillSourceManagementPage.name"),sortable:"custom","min-width":"170"},null,8,["label"]),o(e(p),{prop:"repositoryIdentity",label:e(l)("generated.skillDetailsDialog.source"),"min-width":"180","show-overflow-tooltip":""},null,8,["label"]),o(e(p),{label:e(l)("generated.skillSourceManagementPage.scope"),width:"144","show-overflow-tooltip":""},{default:i(({row:a})=>[c(s(x(a.scope)),1)]),_:1},8,["label"]),o(e(p),{prop:"description",label:e(l)("conversationTemplates.description"),"min-width":"260","show-overflow-tooltip":""},{default:i(({row:a})=>[c(s(a.description||e(l)("generated.skillSourceManagementPage.noDescriptionIsAvailableForThisSkill")),1)]),_:1},8,["label"]),o(e(p),{label:e(l)("generated.skillDetailsDialog.version"),"min-width":"170"},{default:i(({row:a})=>[P("span",null,s(a.commitSha.slice(0,8)),1),P("span",ma,s(e(l)("generated.skillSourceManagementPage.updated"))+" "+s(Pe(a.updatedAt)),1)]),_:1},8,["label"]),o(e(p),{label:e(l)("generated.skillDetailsDialog.tags"),"min-width":"150"},{default:i(({row:a})=>[a.featured||a.tags.length>0?(d(),M("div",fa,[a.featured?(d(),S(e(se),{key:0,type:"warning",effect:"plain"},{default:i(()=>[c("★ "+s(e(l)("generated.skillSourceManagementPage.featured")),1)]),_:1})):C("",!0),(d(!0),M($,null,N(a.tags,m=>(d(),S(e(se),{key:m,type:"info",effect:"plain"},{default:i(()=>[c(s(m),1)]),_:2},1024))),128))])):C("",!0)]),_:1},8,["label"]),o(e(p),{label:e(l)("generated.skillSourceManagementPage.actions"),"min-width":"360"},{default:i(({row:a})=>[P("div",{class:"mar-row-actions",onClick:t[7]||(t[7]=ne(()=>{},["stop"]))},[o(e(v),{link:"",icon:e(g)("edit"),disabled:!k.writable||!a.manageable||e(r).loading.value,onClick:m=>Ie(a)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.edit")),1)]),_:1},8,["icon","disabled","onClick"]),U.value[a.id]?.updateAvailable?(d(),S(e(v),{key:1,link:"",icon:e(g)("retry"),loading:Z.value===a.id,disabled:!k.writable||!a.manageable||e(r).loading.value,onClick:m=>qe(a)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.updateTo"))+" "+s(U.value[a.id].latestCommitSha.slice(0,8)),1)]),_:2},1032,["icon","loading","disabled","onClick"])):(d(),S(e(v),{key:0,link:"",icon:e(g)("refresh"),loading:E.value.has(a.id),disabled:!k.writable||!a.manageable||e(r).loading.value,onClick:m=>Oe(a)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.checkForUpdates")),1)]),_:1},8,["icon","loading","disabled","onClick"])),o(e(v),{link:"",type:"danger",icon:e(g)("delete"),disabled:!k.writable||!a.manageable||e(r).loading.value,onClick:m=>Ke(a.id,a.normalizedName)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.remove2")),1)]),_:1},8,["icon","disabled","onClick"])])]),_:1},8,["label"])]),_:1},8,["onSortChange","data"])):e(r).loading.value?C("",!0):(d(),M("div",pa,s(e(r).favorites.value.length===0?e(l)("generated.skillSourceManagementPage.noCatalogSkills"):e(l)("generated.skillSourceManagementPage.noMatchingSkills")),1)),o(Ye,{total:e(u).total.value,page:e(u).page.value,mobile:e(u).mobileViewport.value,"mobile-visible-count":e(u).mobileVisibleCount.value,loading:e(u).loading.value,"loading-more":e(u).loadingMore.value,"has-more":e(u).hasMore.value,onPage:e(u).setPage,failed:e(u).failure.value!==void 0,"incremental-failed":e(u).failure.value?.incremental===!0,error:e(u).failure.value?.error,"context-key":e(u).contextKey.value,onRetry:e(u).retry,onLoadMore:e(u).loadMore},null,8,["total","page","mobile","mobile-visible-count","loading","loading-more","has-more","onPage","failed","incremental-failed","error","context-key","onRetry","onLoadMore"])])),[[e(te),e(u).loading.value&&!I.value&&!e(u).loadingMore.value&&!e(u).failure.value,"region"]])]),_:1},8,["label"])]),_:1},8,["modelValue"]),T.value?(d(),S(e(oe),{key:0,onVnodeMounted:e(ge),onVnodeBeforeUnmount:e(ce),modelValue:T.value,"onUpdate:modelValue":t[12]||(t[12]=a=>T.value=a),title:e(l)("generated.skillSourceManagementPage.addSkillSource2"),width:"min(520px, calc(100vw - 32px))"},{footer:i(()=>[o(e(v),{onClick:t[11]||(t[11]=a=>T.value=!1)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.cancel3")),1)]),_:1}),o(e(v),{type:"primary",loading:e(r).loading.value,onClick:Ue},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.add")),1)]),_:1},8,["loading"])]),default:i(()=>[o(e(de),{ref_key:"sourceForm",ref:fe,model:{...k.sourceContext,...w},rules:{...k.ownershipRules,...X.value},"label-position":"top"},{default:i(()=>[o(e(V),{label:e(l)("generated.skillSourceManagementPage.name2"),prop:"name"},{default:i(()=>[o(e(G),{modelValue:w.name,"onUpdate:modelValue":t[9]||(t[9]=a=>w.name=a),maxlength:"128"},null,8,["modelValue"])]),_:1},8,["label"]),o(e(V),{label:e(l)("generated.skillSourceManagementPage.repositoryURL"),prop:"locator"},{default:i(()=>[o(e(G),{modelValue:w.locator,"onUpdate:modelValue":t[10]||(t[10]=a=>w.locator=a),placeholder:e(l)("generated.skillSourceManagementPage.httpsGithubComOrgRepoOrGit")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),P("p",va,s(e(l)("generated.skillSourceManagementPage.gitRepositoriesUseTheServerProcessUser")),1),we(n.$slots,"source-ownership",{},()=>[o(e(V),{label:e(l)("generated.skillSourceManagementPage.scope2")},{default:i(()=>[o(e(O),{"model-value":"PERSONAL","clear-icon":e(g)("clear-input"),"suffix-icon":e(g)("chevron-down")},{default:i(()=>[o(e(q),{value:"PERSONAL",label:e(l)("generated.skillSourceManagementPage.personal2")},null,8,["label"])]),_:1},8,["clear-icon","suffix-icon"])]),_:1},8,["label"])],!0)]),_:3},8,["model","rules"])]),_:3},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):C("",!0),_.value?(d(),S(e(oe),{key:1,onVnodeMounted:e(ge),onVnodeBeforeUnmount:e(ce),modelValue:_.value,"onUpdate:modelValue":t[16]||(t[16]=a=>_.value=a),title:e(l)("generated.skillSourceManagementPage.addToCatalog2"),width:"min(460px, calc(100vw - 32px))"},{footer:i(()=>[o(e(v),{onClick:t[15]||(t[15]=a=>_.value=!1)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.cancel4")),1)]),_:1}),o(e(v),{type:"primary",loading:e(r).loading.value,onClick:Ne},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.add2")),1)]),_:1},8,["loading"])]),default:i(()=>[o(e(de),{ref_key:"catalogForm",ref:pe,model:{...k.catalogContext,...h},rules:{...k.ownershipRules,...X.value},"label-position":"top"},{default:i(()=>[we(n.$slots,"catalog-ownership",{},()=>[o(e(V),{label:e(l)("generated.skillSourceManagementPage.availability")},{default:i(()=>[o(e(O),{"model-value":"PERSONAL","clear-icon":e(g)("clear-input"),"suffix-icon":e(g)("chevron-down")},{default:i(()=>[o(e(q),{value:"PERSONAL",label:e(l)("generated.skillSourceManagementPage.personal3")},null,8,["label"])]),_:1},8,["clear-icon","suffix-icon"])]),_:1},8,["label"])],!0),o(e(V),{label:e(l)("generated.skillSourceManagementPage.featured2")},{default:i(()=>[o(e(Ve),{modelValue:h.featured,"onUpdate:modelValue":t[13]||(t[13]=a=>h.featured=a)},null,8,["modelValue"])]),_:1},8,["label"]),o(e(V),{label:e(l)("generated.skillSourceManagementPage.tags"),prop:"tags"},{default:i(()=>[o(e(O),{modelValue:h.tags,"onUpdate:modelValue":t[14]||(t[14]=a=>h.tags=a),multiple:"",filterable:"","allow-create":"","default-first-option":"","multiple-limit":10,placeholder:e(l)("generated.skillSourceManagementPage.enterATagAndPressEnterUp"),"clear-icon":e(g)("clear-input"),"suffix-icon":e(g)("chevron-down")},{default:i(()=>[(d(!0),M($,null,N(e(Y),a=>(d(),S(e(q),{key:a,label:a,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","clear-icon","suffix-icon"])]),_:1},8,["label"])]),_:3},8,["model","rules"])]),_:3},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):C("",!0),A.value?(d(),S(e(oe),{key:2,onVnodeMounted:e(ge),onVnodeBeforeUnmount:e(ce),modelValue:A.value,"onUpdate:modelValue":t[20]||(t[20]=a=>A.value=a),title:e(l)("generated.skillSourceManagementPage.editSkillInformation"),width:"min(460px, calc(100vw - 32px))","destroy-on-close":""},{footer:i(()=>[o(e(v),{onClick:t[19]||(t[19]=a=>A.value=!1)},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.cancel5")),1)]),_:1}),o(e(v),{type:"primary",loading:e(r).loading.value,onClick:Be},{default:i(()=>[c(s(e(l)("generated.skillSourceManagementPage.save")),1)]),_:1},8,["loading"])]),default:i(()=>[o(e(de),{ref_key:"editForm",ref:ve,model:y,rules:X.value,"label-position":"top"},{default:i(()=>[o(e(V),{label:e(l)("generated.skillSourceManagementPage.featured3")},{default:i(()=>[o(e(Ve),{modelValue:y.featured,"onUpdate:modelValue":t[17]||(t[17]=a=>y.featured=a)},null,8,["modelValue"])]),_:1},8,["label"]),o(e(V),{label:e(l)("generated.skillSourceManagementPage.tags2"),prop:"tags"},{default:i(()=>[o(e(O),{modelValue:y.tags,"onUpdate:modelValue":t[18]||(t[18]=a=>y.tags=a),multiple:"",filterable:"","allow-create":"","default-first-option":"","multiple-limit":10,placeholder:e(l)("generated.skillSourceManagementPage.enterATagAndPressEnterUp2"),"clear-icon":e(g)("clear-input"),"suffix-icon":e(g)("chevron-down")},{default:i(()=>[(d(!0),M($,null,N(e(Y),a=>(d(),S(e(q),{key:a,label:a,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","clear-icon","suffix-icon"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):C("",!0),o(la,{modelValue:L.value,"onUpdate:modelValue":t[21]||(t[21]=a=>L.value=a),details:z.value},null,8,["modelValue","details"])])),[[e(te),I.value,"page"]])}}),Ra=We(ka,[["__scopeId","data-v-8cb613c1"]]);export{Ra as default};