@inkeep/open-knowledge 0.86.17-beta.1 → 0.86.17-beta.3

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 (146) hide show
  1. package/dist/cli.mjs +6 -6
  2. package/dist/constants-BG85h0cv.mjs +1 -0
  3. package/dist/index.mjs +1 -1
  4. package/dist/init-B2tEhkpv.mjs +1 -0
  5. package/dist/{init-CBa3jISr.mjs → init-CvyCdp2d.mjs} +2 -2
  6. package/dist/{launch-json-removal-CSHWBR5U.mjs → launch-json-removal-BRj3_5eq.mjs} +1 -1
  7. package/dist/{loader-COoc6Fxg.mjs → loader-S_g5-dc0.mjs} +1 -1
  8. package/dist/loader-_DDcFacF.mjs +1 -0
  9. package/dist/preview-Bth2y4VS.mjs +1 -0
  10. package/dist/{preview-B-8Pd2Eb.mjs → preview-CpLnHHtN.mjs} +1 -1
  11. package/dist/public/assets/{AboutSection-1db6GHW2.js → AboutSection-LPELvEUl.js} +1 -1
  12. package/dist/public/assets/{AccountSection-OfxU7l0h.js → AccountSection-BPO21vUf.js} +1 -1
  13. package/dist/public/assets/{ActivityModeContent-DTARnOpG.js → ActivityModeContent-C2ELI_T7.js} +1 -1
  14. package/dist/public/assets/{AddPropertiesButton-BLbUbLwb.js → AddPropertiesButton-CrpxZ0jL.js} +1 -1
  15. package/dist/public/assets/{AgentConnectionsSection--iYEJFNT.js → AgentConnectionsSection-DhbJCdHu.js} +1 -1
  16. package/dist/public/assets/{AgentDiffPane-CcrIX2ko.js → AgentDiffPane-CZxKNrkv.js} +1 -1
  17. package/dist/public/assets/{AgentIconCluster-Ys-JZNda.js → AgentIconCluster-DYP1yNXm.js} +1 -1
  18. package/dist/public/assets/{AppMenubar-DDyx__mD.js → AppMenubar-ClplcAeM.js} +1 -1
  19. package/dist/public/assets/{AttachmentsSection-Y0Xi3arA.js → AttachmentsSection-67spU8bD.js} +1 -1
  20. package/dist/public/assets/{CodeMirrorPropInput-EQinjKA5.js → CodeMirrorPropInput-CLpFWFtJ.js} +11 -11
  21. package/dist/public/assets/{ConfigSharingInfoTooltip-l_ayrcN2.js → ConfigSharingInfoTooltip-DSloJmkE.js} +1 -1
  22. package/dist/public/assets/{ConsentDialogBody-CYoQuVtn.js → ConsentDialogBody-CaPp8huq.js} +1 -1
  23. package/dist/public/assets/{ContentRulesSection-DqrPDrqg.js → ContentRulesSection-CH61-mRM.js} +1 -1
  24. package/dist/public/assets/{CopyButton-qKG_Y_eK.js → CopyButton-BTy3joJd.js} +1 -1
  25. package/dist/public/assets/{DocumentContext-BDhN67Vi.js → DocumentContext-CQ9yJTwa.js} +6 -6
  26. package/dist/public/assets/EditorModeToggle-Br7bWVE2.js +1 -0
  27. package/dist/public/assets/{ExcalidrawDocEditor-CiDOEHpq.js → ExcalidrawDocEditor-CeKMRAG8.js} +1 -1
  28. package/dist/public/assets/FeedbackForm-C8sXd3Wb.js +1 -0
  29. package/dist/public/assets/{GraphPanel-CJB0dVCJ.js → GraphPanel-D1tkoAHM.js} +1 -1
  30. package/dist/public/assets/{HotkeysSection-BMjtAkGn.js → HotkeysSection-C9sCf3j3.js} +1 -1
  31. package/dist/public/assets/{ImageAttachments-BWXjEZGr.js → ImageAttachments-BDh-av0V.js} +1 -1
  32. package/dist/public/assets/{ImportSkillDialog-gEZH5yq8.js → ImportSkillDialog-BmCzg6KC.js} +1 -1
  33. package/dist/public/assets/{IntegrationsSection-DoiLVCsa.js → IntegrationsSection-D3htSKMO.js} +1 -1
  34. package/dist/public/assets/{LinkPreviewsSection-DCLp2Qqj.js → LinkPreviewsSection-B9nf9R33.js} +1 -1
  35. package/dist/public/assets/{LintConfigEditor-DIOlGtWX.js → LintConfigEditor-BbEsH5lH.js} +1 -1
  36. package/dist/public/assets/{LintingSection-D25D259c.js → LintingSection-zFSe17qu.js} +1 -1
  37. package/dist/public/assets/{ManagedArtifactProperties-CkQ7QnrZ.js → ManagedArtifactProperties-BIw0B0y3.js} +1 -1
  38. package/dist/public/assets/ManagedArtifactProperties-BTKjGqhE.js +1 -0
  39. package/dist/public/assets/{McpConsentDialogBody-DKAfUcdT.js → McpConsentDialogBody-BwguVGDQ.js} +1 -1
  40. package/dist/public/assets/{MermaidDocEditor-wzP5osX6.js → MermaidDocEditor-Ci5L1_yq.js} +1 -1
  41. package/dist/public/assets/{NetworkAccessSection-CHpyMalz.js → NetworkAccessSection-BZvYLs-8.js} +1 -1
  42. package/dist/public/assets/{OkCliPathRow-XzRstb3V.js → OkCliPathRow-CIrEL7IY.js} +1 -1
  43. package/dist/public/assets/{OkignoreSection-CItndbA4.js → OkignoreSection-BudJQycp.js} +1 -1
  44. package/dist/public/assets/{OpenInAgentMenuItem-BFQfpofi.js → OpenInAgentMenuItem-DUU1-QP7.js} +1 -1
  45. package/dist/public/assets/{ProjectTemplatesSection-CF-P6d-M.js → ProjectTemplatesSection-DCliKsre.js} +1 -1
  46. package/dist/public/assets/{PropertyDisplayRow-DczWcQnb.js → PropertyDisplayRow-BjRsfbdh.js} +1 -1
  47. package/dist/public/assets/{PublishToGitHubDialog-oHFwI5-a.js → PublishToGitHubDialog-CCmFMsMn.js} +1 -1
  48. package/dist/public/assets/{ReportBugDialogBody-Cuv8swjY.js → ReportBugDialogBody-J5o6Nxwn.js} +1 -1
  49. package/dist/public/assets/{ReportBugMenuTrigger-DCel1VGa.js → ReportBugMenuTrigger-CAUKQKXn.js} +1 -1
  50. package/dist/public/assets/{RowDisclosure-gIio7LxD.js → RowDisclosure-Bj2sD4-N.js} +1 -1
  51. package/dist/public/assets/{SchemaConfigEditor-DBYzpXtT.js → SchemaConfigEditor-DMK38biI.js} +1 -1
  52. package/dist/public/assets/{SearchSection-D8Nbpi7k.js → SearchSection-CkHEgSyS.js} +1 -1
  53. package/dist/public/assets/{SessionsHost-ChbR-DXZ.js → SessionsHost-C_rKn4gK.js} +2 -2
  54. package/dist/public/assets/{SettingsDialogBody-DU8KXHiq.js → SettingsDialogBody-C3pR2lz9.js} +2 -2
  55. package/dist/public/assets/{SettingsSectionHeader-BiiyXKRM.js → SettingsSectionHeader-DDNA1hrR.js} +1 -1
  56. package/dist/public/assets/{ShareReceiveMissDialog-2oY9lW6b.js → ShareReceiveMissDialog-E9CfbNf8.js} +1 -1
  57. package/dist/public/assets/{SharingSection-DZKx4kGQ.js → SharingSection-Y4AD8HPt.js} +1 -1
  58. package/dist/public/assets/{SkillCostValue-CAF_ekD2.js → SkillCostValue-DBT6aDG-.js} +1 -1
  59. package/dist/public/assets/{SkillInstallMenu-Do_U4WMQ.js → SkillInstallMenu-DyKWxkEY.js} +1 -1
  60. package/dist/public/assets/{SkillOriginInline-RclplHSV.js → SkillOriginInline-D6YyylB6.js} +1 -1
  61. package/dist/public/assets/{SkillPluginBundleDialog-8mBM4DTV.js → SkillPluginBundleDialog-BmLQqQms.js} +1 -1
  62. package/dist/public/assets/{SkillToolbarControls-zYJ7pPqt.js → SkillToolbarControls-BYBjkIll.js} +1 -1
  63. package/dist/public/assets/{SkillsManagerSection-B5aptPCM.js → SkillsManagerSection-C0pgRzfs.js} +1 -1
  64. package/dist/public/assets/{SlidesPluginSection-DBHq4ZBE.js → SlidesPluginSection-B8KiQkqa.js} +1 -1
  65. package/dist/public/assets/{SlidesToolbarControls-BSo10McR.js → SlidesToolbarControls-DxIDubwo.js} +1 -1
  66. package/dist/public/assets/{SourceEditor-CrLIKDKI.js → SourceEditor-Cow_bsej.js} +1 -1
  67. package/dist/public/assets/SpellingSettings-CElN7mrA.js +1 -0
  68. package/dist/public/assets/{SyncSection-im01dKxX.js → SyncSection-Ccjs60mx.js} +1 -1
  69. package/dist/public/assets/{SyncStatusBadge-hCWda35V.js → SyncStatusBadge-C1T8mG3k.js} +1 -1
  70. package/dist/public/assets/{TemplateRow-C40fof6w.js → TemplateRow-DsoFn6-i.js} +1 -1
  71. package/dist/public/assets/{TerminalLaunchContext-CREkMahV.js → TerminalLaunchContext-DWUMDSpw.js} +1 -1
  72. package/dist/public/assets/{TerminalPanel-DYLjq5_k.js → TerminalPanel-ByCiyPt3.js} +1 -1
  73. package/dist/public/assets/{TerminalSection-DHfKQ5Yb.js → TerminalSection-cT2gMi9B.js} +1 -1
  74. package/dist/public/assets/{TerminalWindowApp-D3OqCVhE.js → TerminalWindowApp-DrbdGcCr.js} +1 -1
  75. package/dist/public/assets/{TextDocEditor-CObPSsW9.js → TextDocEditor-DDhSzFSB.js} +1 -1
  76. package/dist/public/assets/{ThemePluginSection-CpNh8zVh.js → ThemePluginSection-McKmY5If.js} +1 -1
  77. package/dist/public/assets/{ThreadView-LGsohPY4.js → ThreadView-D-_IGxvf.js} +1 -1
  78. package/dist/public/assets/{TimelineDiffPane-CVZjzgF_.js → TimelineDiffPane-VIqDTVsT.js} +1 -1
  79. package/dist/public/assets/{agent-connections-5LGp4_96.js → agent-connections-DSKODCmO.js} +1 -1
  80. package/dist/public/assets/{client-version-G66iAPXT.js → client-version-CCRiHemw.js} +1 -1
  81. package/dist/public/assets/{cm-theme-BoQxNVQo.js → cm-theme-Dml6DrPs.js} +1 -1
  82. package/dist/public/assets/{comment-chips-OlQRc1gf.js → comment-chips-CIE82DKm.js} +1 -1
  83. package/dist/public/assets/{config-provider-BMIXsT4s.js → config-provider-sjjSxSoD.js} +1 -1
  84. package/dist/public/assets/{context-menu-DWPgomGa.js → context-menu-B5MxEep2.js} +1 -1
  85. package/dist/public/assets/{dist-ecS2llwR.js → dist-BzicVdNV.js} +1 -1
  86. package/dist/public/assets/{dist-UouvQIiM.js → dist-C0nuYMFu.js} +1 -1
  87. package/dist/public/assets/{dist-D1AbXGbs.js → dist-Cj3Bpren.js} +1 -1
  88. package/dist/public/assets/{dist-YVu4MRkZ2.js → dist-DXjgFhPl2.js} +1 -1
  89. package/dist/public/assets/{dist-d0R4nnoB.js → dist-d2WYntJB.js} +1 -1
  90. package/dist/public/assets/{doc-undo-manager-BRpAXot3.js → doc-undo-manager-JxaZtC6U.js} +1 -1
  91. package/dist/public/assets/{dropdown-menu-DtLu9NwU.js → dropdown-menu-5XqyQTVx.js} +1 -1
  92. package/dist/public/assets/field-controls-CCcf2ybM.js +1 -0
  93. package/dist/public/assets/field-controls-CKb1JSHS.js +6 -0
  94. package/dist/public/assets/{floating-ui.dom-DkPPH5vF.js → floating-ui.dom-BYl7JZd0.js} +1 -1
  95. package/dist/public/assets/globals-Cr0S8PDH.css +1 -0
  96. package/dist/public/assets/{ime-composition-Dvok5Aig.js → ime-composition-_BDVzXn4.js} +1 -1
  97. package/dist/public/assets/index-vHGXuKt-.js +2209 -0
  98. package/dist/public/assets/{lint-plugins-CkP5fBpr.js → lint-plugins-CmqJCDle.js} +1 -1
  99. package/dist/public/assets/{markdownlint-rule-browser-Ct2gBGg7.js → markdownlint-rule-browser-BQ4c4vDN.js} +1 -1
  100. package/dist/public/assets/{pending-receive-nav-store-DC4MBIMn.js → pending-receive-nav-store-bmJhghAd.js} +1 -1
  101. package/dist/public/assets/{popover-BNtf9SIu.js → popover-Mb1GgB61.js} +1 -1
  102. package/dist/public/assets/{preferred-session-events-D1i8TS6V.js → preferred-session-events-BBIFDcsA.js} +1 -1
  103. package/dist/public/assets/{prod-tc4sAE_j.js → prod-CN58f7_5.js} +1 -1
  104. package/dist/public/assets/{progress-DxHYiPtv.js → progress-BIEd5lIx.js} +1 -1
  105. package/dist/public/assets/{project-paths-DVH_uA_B.js → project-paths-BFzGZn4G.js} +1 -1
  106. package/dist/public/assets/{schema-section-ayoRsG9p.js → schema-section-CalUQFIh.js} +1 -1
  107. package/dist/public/assets/{select-Bu4Wm3Rf.js → select-pACXgFe2.js} +1 -1
  108. package/dist/public/assets/{selection-context-C016OzfK.js → selection-context-Bk-__0F7.js} +1 -1
  109. package/dist/public/assets/{src-EaCqd5sB.js → src-C9e8mYI6.js} +1 -1
  110. package/dist/public/assets/{tag-pill-input-ez8oOC69.js → tag-pill-input-D6mNhknm.js} +1 -1
  111. package/dist/public/assets/{telemetry-impl-x4vzjbO0.js → telemetry-impl-CpZJfwf6.js} +1 -1
  112. package/dist/public/assets/{telemetry-startup-BgWJNH-g.js → telemetry-startup-DwFA1jFv.js} +1 -1
  113. package/dist/public/assets/{tooltip-DBqLYfio.js → tooltip-Bz6z4_se.js} +1 -1
  114. package/dist/public/assets/{typing-burst-detector-DrJdLhjL.js → typing-burst-detector-BoVzKGHe.js} +1 -1
  115. package/dist/public/assets/{uninstall-CoAbS5TW.js → uninstall-DFTOzPT_.js} +1 -1
  116. package/dist/public/assets/{use-activity-panel-lcH9GYBJ.js → use-activity-panel-CKMLbVv1.js} +1 -1
  117. package/dist/public/assets/{use-installed-clis-DBO1ohE8.js → use-installed-clis-BopBqnEZ.js} +2 -2
  118. package/dist/public/assets/{use-open-skill-DUcW6mZw.js → use-open-skill-BFjCoRE7.js} +1 -1
  119. package/dist/public/assets/{use-terminal-enabled-Y2xgozyj.js → use-terminal-enabled-B61pD1lf.js} +1 -1
  120. package/dist/public/assets/{use-timeline-entry-diff-Dv_2vDeg.js → use-timeline-entry-diff-DnMPpGTx.js} +1 -1
  121. package/dist/public/index.html +49 -49
  122. package/dist/public/uninstall.html +3 -3
  123. package/dist/{registry-probes-wLwyhTZG.mjs → registry-probes-_IsrAHiX.mjs} +1 -1
  124. package/dist/{removal-file-path-C6BOUost.mjs → removal-file-path-nIjE8OaK.mjs} +1 -1
  125. package/dist/{repair-launch-json-FGe0pDZo.mjs → repair-launch-json-CitXUvEN.mjs} +1 -1
  126. package/dist/{repair-mcp-configs-COs0siAU.mjs → repair-mcp-configs-DU143---.mjs} +1 -1
  127. package/dist/{src-TWwn1O5x.mjs → src-BRfo3ikA.mjs} +1 -1
  128. package/dist/src-BzYivx7V.mjs +1 -0
  129. package/dist/start-D7bmjnyB.mjs +1 -0
  130. package/dist/{start-CZIgm1hK.mjs → start-zvLt4Aja.mjs} +2 -2
  131. package/package.json +4 -4
  132. package/dist/constants-Blgf_Jgs.mjs +0 -1
  133. package/dist/init-C0aR7LuD.mjs +0 -1
  134. package/dist/loader-DITeDk2G.mjs +0 -1
  135. package/dist/preview-iLZTPE-h.mjs +0 -1
  136. package/dist/public/assets/EditorModeToggle-Dl_DndPa.js +0 -1
  137. package/dist/public/assets/FeedbackForm-i8yDRtYH.js +0 -1
  138. package/dist/public/assets/ManagedArtifactProperties-BOAYwQda.js +0 -1
  139. package/dist/public/assets/SpellingSettings-Br-26Hbn.js +0 -1
  140. package/dist/public/assets/field-controls-CXow0RGZ.js +0 -1
  141. package/dist/public/assets/field-controls-DdrxD5BW.js +0 -6
  142. package/dist/public/assets/globals-BXqkmCJW.css +0 -1
  143. package/dist/public/assets/index-s8ABNqST.js +0 -2209
  144. package/dist/src-Dh2B1zwG.mjs +0 -1
  145. package/dist/start-DU805quw.mjs +0 -1
  146. /package/dist/public/assets/{globals-IGp2_ZaI.js → globals-DHDe92Ga.js} +0 -0
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AboutSection-1db6GHW2.js","./chunk-CYidjpOJ.js","./dist-Nvb76hAm.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js","./label-CvMpFFbN.js","./dist-DTFuvKje.js","./dist-CSCUSbQc.js","./react-dom-DPxgxlDT.js","./compiler-runtime-BfE3aGVn.js","./utils-CPqDy6Hr.js","./bundle-mjs-SHeFpKGC.js","./switch-BKZTXkzu.js","./dist-DBXmXNZF.js","./dist-CRjqnzU7.js","./arrow-up-right-nJaICi16.js","./createLucideIcon-DdBzwsHe.js","./spinner-Bx8xD6f8.js","./SettingsSectionHeader-BiiyXKRM.js","./tooltip-DBqLYfio.js","./dist-YVu4MRkZ2.js","./floating-ui.dom-DkPPH5vF.js","./dist-CxbWbOvU.js","./badge-DmdA1C7r.js","./dist-BsJYDohW.js","./external-link-8lDpeCuR.js","./button-DzgjsZzC.js","./SharingSection-DZKx4kGQ.js","./radio-group-G1GR05Rb.js","./dist-uiDX6Nr9.js","./dist-BKgU0kag.js","./dist-BGzUo_18.js","./ConfigSharingInfoTooltip-l_ayrcN2.js","./info-CyR0W2SK.js","./skeleton-CrbF9ppq.js","./channel-cli-copy-DOAEiMde.js","./constants-product-BVSOzxVs.js","./AccountSection-OfxU7l0h.js","./SyncStatusBadge-hCWda35V.js","./config-provider-BMIXsT4s.js","./trace-api-BSvaJNnr.js","./status-BNivpG-Q.js","./dist-PQ5KMVDh.js","./schemas-api-CD98jV86.js","./schemas-B93JY9Ef.js","./_envelope-q8XHEv4O-C-Qnl5Tu.js","./share-D-LUU2aX-B7Yg0G_m.js","./util-doc-name-DRKmy6g9.js","./constants-cc1-Bt4QPTUe.js","./constants-github-B7yhDvQc.js","./doc-extensions-CcO7K8uD-DG9uHV54.js","./logging-renderer-log-CqIZVUIQ.js","./skill-targets-schema-D6kA7J61.js","./constants-editors-DmmORwNP.js","./use-apply-config-language-DhdpbJI9.js","./preload-helper-Chd9yIcd.js","./dist-C_FzPxEX2.js","./messages-B8VdcD3O.js","./client-version-G66iAPXT.js","./css-color-to-hex-BRv_r6oZ.js","./use-apply-config-color-theme-hiddt1uL.js","./use-apply-config-theme-CYFG76sS.js","./saved-themes-client-D09wxYQm.js","./constants-upload-CVKO8P4d.js","./select-Bu4Wm3Rf.js","./es2015-Dtr4fzLT.js","./check-B2OLRY33.js","./chevron-down-CEv6N8LG.js","./collapsible-BKbszYZV.js","./arrow-up-BGHhPj4y.js","./chevron-right-Bofu4lib.js","./settings-2-DoBlNQMk.js","./git-merge-VDBzSZBV.js","./refresh-cw-CC7UZEnZ.js","./terminal-Cpb4l1oH.js","./triangle-alert-BXrUEeRU.js","./DisclosureWarning-CYHeueUe.js","./terminal-command-events-h-p66odT.js","./handoff-DzPPe6fp.js","./dialog-BJEjKJjL.js","./electron-drag-strip-D9GZhMg_.js","./x-DM2drskU.js","./popover-BNtf9SIu.js","./dist-D1AbXGbs.js","./use-conflicts-BAjZ5TAV.js","./documents-events-ddyuXdQl.js","./schemas-cc1-B3Jf9JeC.js","./config-errors-DDAH9fqy.js","./use-git-sync-status-PkMYmN4D.js","./doc-hash-BJkweiX9.js","./reveal-editor-SLzwvD1I.js","./use-settings-route-Bj-m9X61.js","./keyboard-shortcuts-FtScAm_I.js","./dist-Dc8tD1th.js","./w3c-keyname-C7Rznu6R.js","./trash-2-CchZ0T47.js","./AuthModal-DT32BOAJ.js","./copy-DpWa6i2v.js","./input-BsFOyzfK.js","./auth-state-cache-Bx6C01Jt.js","./AgentConnectionsSection--iYEJFNT.js","./useQuery-ZeEDLtxh.js","./RegisteredAgentIcon-FmoZTlpS.js","./cursor-DWbF35K0.js","./agent-registry-DoeDgmSS.js","./search-CFu4WXqc.js","./TerminalLaunchContext-CREkMahV.js","./agent-connections-5LGp4_96.js","./alert-dialog-BA3e7-10.js","./checkbox-CKD8LETI.js","./minus-DdRxss3A.js","./folder-QqUoFRPR.js","./monitor-IXzxTnmk.js","./sparkles-BS2TX_Um.js","./AgentIconCluster-Ys-JZNda.js","./OpenInAgentMenuItem-BFQfpofi.js","./dropdown-menu-DtLu9NwU.js","./dist-UouvQIiM.js","./dist-d0R4nnoB.js","./copilot-Dh1BU6kS.js","./utils-random-uuid-D7CMpgvf.js","./mascot-outline-CtS592mc.js","./field-DFJgKWGh.js","./separator-D7s_9ZwH.js","./tool-list-format-CS7MZY1Q.js","./constants-skills-BLHVRW90.js","./bool-pref-CqB9j4bL.js","./storage-scope-ldi41iCU.js","./bridge-BeevbgaB.js","./structural-freshness-CIbkMFA3-CWi_lyiW.js","./terminal-cli-display-Irv_lU4O.js","./settings-section-labels-VKfUFuEe.js","./catalog-C1GEA-Va.js","./use-workspace-Bgh-YT5K.js","./AttachmentsSection-Y0Xi3arA.js","./field-controls-DdrxD5BW.js","./toggle-group-B7p69Qfd.js","./circle-alert-eBm4JPxY.js","./ThemePicker-pc5gwEur.js","./plus-zPnYzcqL.js","./rotate-ccw-Zi1IjIg9.js","./form-U6OjlA0v.js","./textarea-DYYN2PV4.js","./config-schema-CIaXsCAX.js","./config-validation-events-Bq1HmeDP.js","./ContentRulesSection-DqrPDrqg.js","./markdown-lint-BuEapKhE.js","./lib-CHTgVmKZ.js","./ccount-DGTHxXcy.js","./syntax-YjkwC8Y2.js","./markdownit-BNu6K0Lc.js","./field-controls-CXow0RGZ.js","./HotkeysSection-BMjtAkGn.js","./settings-host-gates-DEfVpJcs.js","./kbd-Cg1nrB7U.js","./IntegrationsSection-DoiLVCsa.js","./InstallInClaudeDesktopDialog-RH9RYFyV.js","./arrow-right-NOQZeKIW.js","./circle-check-nK1yRBIw.js","./download-BouT3__0.js","./LinkPreviewsSection-DCLp2Qqj.js","./LintingSection-D25D259c.js","./CodeMirrorPropInput-EQinjKA5.js","./dist-DTvyxWzB.js","./dist-BosZaL03.js","./dist-CBBf5U_8.js","./dist-nSDmHl8c.js","./dist-DL4JUOn7.js","./dist-urhiDaCp.js","./dist-D2c3re7d.js","./dist-BjL32yBS.js","./dist-Jw9rDwKW.js","./dist-DxN51Ana2.js","./stex-BAMK64Qm.js","./lib-DjmHwbg0.js","./space-separated-tokens-BMeAno6f.js","./trim-lines-6NHDbF9s.js","./folder-open-COGOeTzI.js","./with-selector-zVo3Fruj.js","./navigation-targets-DSSJ_2xi.js","./file-tree-utils-CiVz_BRk.js","./doc-paths-DiEZR__C.js","./cm-theme-BoQxNVQo.js","./desktop-bridge-p6CFXLIz.js","./page-list-cache-p7dO1d0k.js","./documents-fetch-BPNWNaEf.js","./note-window-mode-CI3Yju9B.js","./DocumentContext-BDhN67Vi.js","./propagation-api-B1IlUKzT.js","./context-api-B9rp0hJb.js","./lib-DggJrklf.js","./lib-BiDTxxNs.js","./lib-qLdVx2Nx.js","./git-branch-CeTudSak.js","./Mermaid-BUWNFmOJ.js","./maximize-2-DjzhPUDZ.js","./ime-composition-Dvok5Aig.js","./prop-types-ZtKgQMRh.js","./hash-C4CJQURT.js","./local-menu-action-bus-Dyh2UJJF.js","./paperclip-BHdV1F_7.js","./react-error-boundary-6ac6QM6R.js","./CopyButton-qKG_Y_eK.js","./PageListContext-CbzXXblg.js","./parse-api-error-CeEVOj25.js","./startup-marks-Cb3e8PuI.js","./perf-CPPbaRwr.js","./diagnostic-breadcrumb-DPgUDxA8.js","./file-tree-rename-validation-DAMy4Ak1.js","./use-collab-url-BWFGjvvU.js","./api-config-BeqD_2Y2.js","./excalidraw-scene-7qRUVF00.js","./known-skill-dirs-WpNGuhvr.js","./single-file-mode-_W9sHrBm.js","./skill-scope-DOTLd4gL.js","./skills-api-zXSg3eSX.js","./DocumentContext-B0sQn39F.css","./lint-plugin-meta-CtDE2R0v.js","./square-pen-BoydeSu6.js","./DeleteConfirmationDialog-CUUTX6Ez.js","./SkillPluginBundleDialog-8mBM4DTV.js","./SkillInstallMenu-Do_U4WMQ.js","./ChangedOutsideBadge-DhpGZlDx.js","./context-menu-DWPgomGa.js","./dist-ecS2llwR.js","./use-skills-B2fLFrq6.js","./use-skill-targets-DIBQkXNG.js","./markdownlint-rule-browser-Ct2gBGg7.js","./tag-pill-input-ez8oOC69.js","./lint-config-client-DRJNyM2s.js","./use-open-skill-DUcW6mZw.js","./open-managed-artifact-tab-Bgndx1BG.js","./schema-fields-view-intent-DvM5_nmW.js","./NetworkAccessSection-CHpyMalz.js","./restart-collab-server-DKIjp3iW.js","./OkignoreSection-CItndbA4.js","./sortable.esm-CFAacZUM.js","./grip-vertical-DNbkgWZL.js","./config-ignore-nested-error-events-DvR3WEey.js","./ProjectTemplatesSection-CF-P6d-M.js","./TemplateRow-C40fof6w.js","./file-plus-DKxOZh2k.js","./folder-config-api-BDhEYA86.js","./SearchSection-D8Nbpi7k.js","./use-semantic-search-status-CRj98qO1.js","./SkillsManagerSection-B5aptPCM.js","./SlidesPluginSection-DBHq4ZBE.js","./input-group-xi315pKE.js","./SyncSection-im01dKxX.js","./PublishToGitHubDialog-oHFwI5-a.js","./clipboard-adapter-C8gKg_7K.js","./TerminalSection-DHfKQ5Yb.js","./use-terminal-enabled-Y2xgozyj.js","./ThemePluginSection-CpNh8zVh.js","./schema-section-ayoRsG9p.js","./settings-fields-CAtLOUgy.js","./lint-plugins-CkP5fBpr.js","./OkCliPathRow-XzRstb3V.js","./SpellingSettings-Br-26Hbn.js"])))=>i.map(i=>d[i]);
2
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{n as i,r as a}from"./dist-Nvb76hAm.js";import{t as o}from"./compiler-runtime-BfE3aGVn.js";import{t as s}from"./triangle-alert-BXrUEeRU.js";import{t as c}from"./lazy-with-preload-D9fROG5C.js";import{n as l,r as u,t as d}from"./alert-RmVFIy8D.js";import{r as f}from"./settings-host-gates-DEfVpJcs.js";import{n as p}from"./settings-fields-CAtLOUgy.js";import{t as m}from"./SettingsSectionHeader-BiiyXKRM.js";var h=o(),g=e(r(),1),_=n();function v(e){return(0,g.lazy)(async()=>({default:await e()}))}var y=v(async()=>(await t(async()=>{let{AboutSection:e}=await import(`./AboutSection-1db6GHW2.js`);return{AboutSection:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]),import.meta.url)).AboutSection),b=v(async()=>(await t(async()=>{let{SharingSection:e}=await import(`./SharingSection-DZKx4kGQ.js`);return{SharingSection:e}},__vite__mapDeps([27,1,2,3,4,28,6,7,8,29,30,13,14,9,10,11,31,32,19,20,21,22,33,16,18,15,23,24,25,26,34,35,36]),import.meta.url)).SharingSection),x=v(async()=>(await t(async()=>{let{AccountSection:e}=await import(`./AccountSection-OfxU7l0h.js`);return{AccountSection:e}},__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,10,11,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,57,58,59,60,61,62,63,64,20,21,14,29,22,65,19,13,16,66,67,68,69,15,70,71,72,17,73,74,75,76,77,78,23,24,26,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,25,18,34,99,35]),import.meta.url)).AccountSection),S=v(async()=>(await t(async()=>{let{AgentConnectionsSection:e}=await import(`./AgentConnectionsSection--iYEJFNT.js`);return{AgentConnectionsSection:e}},__vite__mapDeps([100,1,56,2,3,4,12,6,7,8,13,14,9,10,11,101,16,15,102,103,104,43,44,45,46,47,48,49,50,51,52,53,36,78,66,17,105,75,106,107,108,80,22,65,26,24,109,110,5,19,20,21,111,33,112,113,81,114,115,116,117,118,29,30,70,42,119,120,121,23,79,122,123,124,125,126,127,128,129,130,18,25,131,98,132,133]),import.meta.url)).AgentConnectionsSection),C=v(async()=>(await t(async()=>{let{AttachmentsSection:e}=await import(`./AttachmentsSection-Y0Xi3arA.js`);return{AttachmentsSection:e}},__vite__mapDeps([134,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,64,20,21,6,7,14,29,22,65,19,10,11,13,16,66,67,135,12,136,30,24,137,138,28,112,139,140,95,75,141,5,26,79,80,81,122,123,98,34,142,87,143,18,15,23,25,144]),import.meta.url)).AttachmentsSection),w=v(async()=>(await t(async()=>{let{ContentRulesSection:e}=await import(`./ContentRulesSection-DqrPDrqg.js`);return{ContentRulesSection:e}},__vite__mapDeps([145,39,1,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,64,20,21,6,7,14,29,22,65,19,10,11,13,16,66,67,5,12,146,147,148,149,150,18,15,23,24,25,87]),import.meta.url)).ContentRulesSection),T=v(async()=>(await t(async()=>{let{SectionSkeleton:e}=await import(`./field-controls-CXow0RGZ.js`);return{SectionSkeleton:e}},__vite__mapDeps([151,135,1,2,3,4,40,64,20,21,6,7,8,14,29,22,65,19,9,10,11,13,16,66,67,12,136,30,24,137,138,28,112,61,42,139,140,95,75,141,5,31,43,44,45,46,47,48,49,50,51,52,53,36,26,79,80,81,122,123,98,34,142,54,55,56,57,60,62,63,87,143]),import.meta.url)).SectionSkeleton),E=v(async()=>(await t(async()=>{let{HotkeysSection:e}=await import(`./HotkeysSection-BMjtAkGn.js`);return{HotkeysSection:e}},__vite__mapDeps([152,2,1,3,4,9,18,19,20,21,6,7,8,14,22,10,11,15,16,23,24,25,153,154,92,93,94]),import.meta.url)).HotkeysSection),D=v(async()=>(await t(async()=>{let{IntegrationsSection:e}=await import(`./IntegrationsSection-DoiLVCsa.js`);return{IntegrationsSection:e}},__vite__mapDeps([155,1,2,3,4,156,16,157,158,97,159,17,9,10,11,31,8,26,7,24,79,80,6,22,65,81,25,18,19,20,21,14,15,23]),import.meta.url)).IntegrationsSection),O=v(async()=>(await t(async()=>{let{LinkPreviewsSection:e}=await import(`./LinkPreviewsSection-DCLp2Qqj.js`);return{LinkPreviewsSection:e}},__vite__mapDeps([160,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,26,79,80,65,81,87]),import.meta.url)).LinkPreviewsSection),k=v(async()=>(await t(async()=>{let{MarkdownlintPluginSection:e}=await import(`./LintingSection-D25D259c.js`);return{MarkdownlintPluginSection:e}},__vite__mapDeps([161,1,162,55,163,164,94,165,166,167,168,169,170,171,172,173,21,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,2,62,63,93,147,148,174,175,176,149,16,177,95,178,179,180,181,182,183,184,25,89,185,186,129,108,6,7,80,22,65,26,24,11,10,5,12,13,14,187,188,189,64,20,29,19,66,67,68,190,128,191,192,193,69,194,157,195,75,79,81,70,137,158,97,159,196,71,197,198,33,17,110,199,200,139,105,113,201,202,203,85,86,87,204,205,206,207,208,23,98,154,82,83,209,210,211,212,90,213,214,125,215,127,133,120,216,146,150,15,217,72,218,219,76,220,109,221,116,117,118,30,111,114,115,103,119,121,222,223,224,225,226,18,227,140,122,123,34,228,229,230,231,232,91,92]),import.meta.url)).MarkdownlintPluginSection),A=v(async()=>(await t(async()=>{let{ProjectPluginsManageSection:e}=await import(`./LintingSection-D25D259c.js`);return{ProjectPluginsManageSection:e}},__vite__mapDeps([161,1,162,55,163,164,94,165,166,167,168,169,170,171,172,173,21,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,2,62,63,93,147,148,174,175,176,149,16,177,95,178,179,180,181,182,183,184,25,89,185,186,129,108,6,7,80,22,65,26,24,11,10,5,12,13,14,187,188,189,64,20,29,19,66,67,68,190,128,191,192,193,69,194,157,195,75,79,81,70,137,158,97,159,196,71,197,198,33,17,110,199,200,139,105,113,201,202,203,85,86,87,204,205,206,207,208,23,98,154,82,83,209,210,211,212,90,213,214,125,215,127,133,120,216,146,150,15,217,72,218,219,76,220,109,221,116,117,118,30,111,114,115,103,119,121,222,223,224,225,226,18,227,140,122,123,34,228,229,230,231,232,91,92]),import.meta.url)).ProjectPluginsManageSection),j=v(async()=>(await t(async()=>{let{UserPluginsManageSection:e}=await import(`./LintingSection-D25D259c.js`);return{UserPluginsManageSection:e}},__vite__mapDeps([161,1,162,55,163,164,94,165,166,167,168,169,170,171,172,173,21,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,2,62,63,93,147,148,174,175,176,149,16,177,95,178,179,180,181,182,183,184,25,89,185,186,129,108,6,7,80,22,65,26,24,11,10,5,12,13,14,187,188,189,64,20,29,19,66,67,68,190,128,191,192,193,69,194,157,195,75,79,81,70,137,158,97,159,196,71,197,198,33,17,110,199,200,139,105,113,201,202,203,85,86,87,204,205,206,207,208,23,98,154,82,83,209,210,211,212,90,213,214,125,215,127,133,120,216,146,150,15,217,72,218,219,76,220,109,221,116,117,118,30,111,114,115,103,119,121,222,223,224,225,226,18,227,140,122,123,34,228,229,230,231,232,91,92]),import.meta.url)).UserPluginsManageSection),M=v(async()=>(await t(async()=>{let{NetworkAccessSection:e}=await import(`./NetworkAccessSection-CHpyMalz.js`);return{NetworkAccessSection:e}},__vite__mapDeps([233,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,108,6,7,80,22,65,26,24,11,10,5,28,29,30,13,14,12,18,19,20,21,15,16,23,25,98,35,234,87,143]),import.meta.url)).NetworkAccessSection),N=v(async()=>(await t(async()=>{let{OkignoreSection:e}=await import(`./OkignoreSection-CItndbA4.js`);return{OkignoreSection:e}},__vite__mapDeps([235,1,236,8,4,2,3,19,20,21,6,7,14,22,9,10,11,66,16,237,75,81,31,203,56,179,180,48,47,181,63,50,184,85,86,44,87,36,185,204,205,206,207,51,18,15,23,24,25,238,26,98,34,144]),import.meta.url)).OkignoreSection),P=v(async()=>(await t(async()=>{let{ProjectTemplatesSection:e}=await import(`./ProjectTemplatesSection-CF-P6d-M.js`);return{ProjectTemplatesSection:e}},__vite__mapDeps([239,1,2,3,4,139,16,9,240,56,108,6,7,8,80,22,65,26,24,11,10,116,117,118,20,21,14,29,30,66,70,241,95,81,31,43,44,45,46,47,48,49,50,51,52,53,36,219,17,79,122,5,123,98,142,85,86,87,242,204,18,19,15,23,25,34,231,89,91,92,93,94]),import.meta.url)).ProjectTemplatesSection),F=v(async()=>(await t(async()=>{let{SearchSection:e}=await import(`./SearchSection-D8Nbpi7k.js`);return{SearchSection:e}},__vite__mapDeps([243,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,68,6,7,12,13,14,10,11,70,16,244,85,86,87,18,19,20,21,22,15,23,24,25,26,79,80,65,81,122,5,123,98,35,143]),import.meta.url)).SearchSection),I=v(async()=>(await t(async()=>{let{SkillsManagerSection:e}=await import(`./SkillsManagerSection-B5aptPCM.js`);return{SkillsManagerSection:e}},__vite__mapDeps([245,1,2,3,4,108,6,7,8,80,22,65,9,26,24,11,10,16,157,116,117,118,20,21,14,29,30,66,70,97,95,31,114,19,111,113,115,42,103,119,120,121,53,36,222,18,15,23,25,79,81,98,34,226,56,43,44,45,46,47,48,49,50,51,52,85,86,87,204,215,225,212,231,89,206,207,214,125,124]),import.meta.url)).SkillsManagerSection),L=v(async()=>(await t(async()=>{let{SlidesPluginSection:e}=await import(`./SlidesPluginSection-DBHq4ZBE.js`);return{SlidesPluginSection:e}},__vite__mapDeps([246,1,2,3,4,15,16,74,9,202,19,20,21,6,7,8,14,22,10,11,66,97,26,24,77,78,45,44,46,47,18,23,25,247,98,142,91,92,93,94]),import.meta.url)).SlidesPluginSection),R=v(async()=>(await t(async()=>{let{SyncSection:e}=await import(`./SyncSection-im01dKxX.js`);return{SyncSection:e}},__vite__mapDeps([248,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,64,20,21,6,7,14,29,22,65,19,10,11,13,16,66,67,68,136,30,24,38,69,15,70,71,72,17,73,74,75,76,77,78,23,26,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,25,249,5,28,187,163,164,165,166,167,168,169,170,171,172,173,162,147,148,174,175,176,149,177,95,178,179,180,181,182,183,184,185,186,129,188,189,12,190,128,191,192,193,194,157,195,137,158,159,196,197,198,33,110,199,200,139,105,113,201,202,203,204,205,206,207,208,154,209,210,211,212,213,214,125,215,127,133,120,216,122,123,142,250,18,34]),import.meta.url)).SyncSection),z=v(async()=>(await t(async()=>{let{TerminalSection:e}=await import(`./TerminalSection-DHfKQ5Yb.js`);return{TerminalSection:e}},__vite__mapDeps([251,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,252,87,35]),import.meta.url)).TerminalSection),B=v(async()=>(await t(async()=>{let{ThemePluginSection:e}=await import(`./ThemePluginSection-CpNh8zVh.js`);return{ThemePluginSection:e}},__vite__mapDeps([253,1,2,3,4,5,6,7,8,9,10,11,15,16,42,31,43,44,45,46,47,48,49,50,51,52,53,36,254,141,135,40,64,20,21,14,29,22,65,19,13,66,67,12,136,30,24,137,138,28,112,61,139,140,95,75,26,79,80,81,122,123,98,34,142,54,55,56,57,60,62,63,87,143,18,23,25,144,255]),import.meta.url)).ThemePluginSection),V=v(async()=>{let{LINT_PLUGIN_UI:e}=await t(async()=>{let{LINT_PLUGIN_UI:e}=await import(`./lint-plugins-CkP5fBpr.js`);return{LINT_PLUGIN_UI:e}},__vite__mapDeps([256,217,16,1,4,161,162,55,163,164,94,165,166,167,168,169,170,171,172,173,21,39,40,41,42,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,2,62,63,93,147,148,174,175,176,149,177,95,178,179,180,181,182,183,184,25,89,185,186,129,108,6,7,80,22,65,26,24,11,10,5,12,13,14,187,188,189,64,20,29,19,66,67,68,190,128,191,192,193,69,194,157,195,75,79,81,70,137,158,97,159,196,71,197,198,33,17,110,199,200,139,105,113,201,202,203,85,86,87,204,205,206,207,208,23,98,154,82,83,209,210,211,212,90,213,214,125,215,127,133,120,216,146,150,15,72,218,219,76,220,109,221,116,117,118,30,111,114,115,103,119,121,222,223,224,225,226,18,227,140,122,123,34,228,229,230,231,232,91,92]),import.meta.url);return function({id:t}){let n=e.find(e=>e.id===t);if(!n)return null;let r=n.Section;return(0,_.jsx)(r,{})}}),H=c(async()=>{let[{BoundSchemaSection:e},{OkCliPathRow:n},{SpellingSettings:r}]=await Promise.all([t(()=>import(`./schema-section-ayoRsG9p.js`),__vite__mapDeps([254,1,141,7,4,5,6,8,3,9,10,11,31,135,2,40,64,20,21,14,29,22,65,19,13,16,66,67,12,136,30,24,137,138,28,112,61,42,139,140,95,75,43,44,45,46,47,48,49,50,51,52,53,36,26,79,80,81,122,123,98,34,142,54,55,56,57,60,62,63,87,143,18,15,23,25,144]),import.meta.url),t(()=>import(`./OkCliPathRow-XzRstb3V.js`),__vite__mapDeps([257,1,2,3,4,109,6,7,8,13,14,66,16,110,9,10,11,5,19,20,21,22,33,31,26,24,35,36]),import.meta.url),t(()=>import(`./SpellingSettings-Br-26Hbn.js`),__vite__mapDeps([258,1,21,20,6,7,4,8,3,14,56,2,12,13,9,10,11,19,22,66,16,140,81,31,178,135,40,64,29,65,67,136,30,24,137,138,28,112,61,42,139,95,75,141,5,43,44,45,46,47,48,49,50,51,52,53,36,26,79,80,122,123,98,34,142,54,55,57,60,62,63,87,143,153]),import.meta.url)]);return{default:function({title:t,description:i,binding:a}){return(0,_.jsx)(e,{title:t,description:i,scope:`user`,scopeBadge:`user`,binding:a,fields:p,slotsAfter:{"appearance.theme":(0,_.jsx)(n,{}),"appearance.language":(0,_.jsx)(r,{})}})}}}),U=H.preload;function W(e){let t=(0,h.c)(4),{loadFailed:n}=e;if(!n){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(T,{}),t[0]=e):e=t[0],e}let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,_.jsx)(s,{"aria-hidden":`true`}),t[1]=r):r=t[1];let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,_.jsx)(u,{children:(0,_.jsx)(i,{id:`PXg8xK`})}),t[2]=a):a=t[2];let o;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,_.jsxs)(d,{"data-testid":`settings-user-config-unavailable`,children:[r,a,(0,_.jsx)(l,{children:(0,_.jsx)(i,{id:`rFbQzX`})})]}),t[3]=o):o=t[3],o}function G(e){let t=(0,h.c)(37),{activeId:n,userBinding:r,userLoadFailed:o,okignoreBinding:s,okignoreSynced:c,markdownlintRuleQuery:l}=e,u=o===void 0?!1:o,{_:d}=a();if(n===`preferences`){let e;return t[0]!==d||t[1]!==r||t[2]!==u?(e=r?(0,_.jsx)(H,{title:d({id:`Q6hhn8`}),description:d({id:`Y_kL7X`}),binding:r}):(0,_.jsx)(W,{loadFailed:u}),t[0]=d,t[1]=r,t[2]=u,t[3]=e):e=t[3],e}if(n===`project-preferences`){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(i,{id:`Q6hhn8`}),t[4]=e):e=t[4];let n;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-project-preferences-title`,className:`space-y-8`,"data-testid":`settings-project-preferences`,children:[(0,_.jsx)(m,{titleId:`settings-project-preferences-title`,title:e,scope:`project`,children:(0,_.jsx)(i,{id:`FKVmcC`})}),(0,_.jsx)(C,{}),(0,_.jsx)(w,{}),f()?(0,_.jsx)(z,{}):null]}),t[5]=n):n=t[5],n}if(n===`agent-connections`){let e;return t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(S,{}),t[6]=e):e=t[6],e}if(n===`hotkeys`){let e;return t[7]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(E,{}),t[7]=e):e=t[7],e}if(n===`account`){let e;return t[8]!==r||t[9]!==u?(e=r?(0,_.jsx)(x,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[8]=r,t[9]=u,t[10]=e):e=t[10],e}if(n===`sync`){let e;return t[11]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-sync-sharing-title`,className:`space-y-8`,"data-testid":`settings-sync-sharing`,children:[(0,_.jsx)(m,{titleId:`settings-sync-sharing-title`,title:(0,_.jsx)(i,{id:`AznQ2V`}),children:(0,_.jsx)(i,{id:`HADdBA`})}),(0,_.jsx)(R,{}),(0,_.jsx)(b,{})]}),t[11]=e):e=t[11],e}if(n===`search`){let e;return t[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(F,{}),t[12]=e):e=t[12],e}if(n===`link-previews`){let e;return t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(O,{}),t[13]=e):e=t[13],e}if(n===`plugins-manage`){let e;return t[14]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(A,{}),t[14]=e):e=t[14],e}if(n===`user-plugins-manage`){let e;return t[15]===r?e=t[16]:(e=(0,_.jsx)(j,{userBinding:r}),t[15]=r,t[16]=e),e}if(n===`plugin:theme`){let e;return t[17]!==r||t[18]!==u?(e=r?(0,_.jsx)(B,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[17]=r,t[18]=u,t[19]=e):e=t[19],e}if(n===`plugin:slides`){let e;return t[20]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(L,{}),t[20]=e):e=t[20],e}if(n===`plugin:markdownlint`){let e=l??null,n;return t[21]===e?n=t[22]:(n=(0,_.jsx)(k,{initialRuleQuery:e}),t[21]=e,t[22]=n),n}if(n.startsWith(`plugin:`)){let e;t[23]===n?e=t[24]:(e=n.slice(7),t[23]=n,t[24]=e);let r;return t[25]!==n||t[26]!==e?(r=(0,_.jsx)(V,{id:e},n),t[25]=n,t[26]=e,t[27]=r):r=t[27],r}if(n===`project-templates`){let e;return t[28]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(P,{}),t[28]=e):e=t[28],e}if(n===`skills`){let e;return t[29]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`project`}),t[29]=e):e=t[29],e}if(n===`user-skills`){let e;return t[30]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`global`}),t[30]=e):e=t[30],e}if(n===`okignore`){let e;return t[31]!==s||t[32]!==c?(e=(0,_.jsx)(N,{binding:s,synced:c}),t[31]=s,t[32]=c,t[33]=e):e=t[33],e}if(n===`network-access`){let e;return t[34]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(M,{}),t[34]=e):e=t[34],e}if(n===`claude-desktop`){let e;return t[35]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(D,{}),t[35]=e):e=t[35],e}if(n===`about`){let e;return t[36]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(y,{}),t[36]=e):e=t[36],e}return null}export{G as SettingsDialogBody,U as preloadPreferencesSection};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AboutSection-LPELvEUl.js","./chunk-CYidjpOJ.js","./dist-Nvb76hAm.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js","./label-CvMpFFbN.js","./dist-DTFuvKje.js","./dist-CSCUSbQc.js","./react-dom-DPxgxlDT.js","./compiler-runtime-BfE3aGVn.js","./utils-CPqDy6Hr.js","./bundle-mjs-SHeFpKGC.js","./switch-BKZTXkzu.js","./dist-DBXmXNZF.js","./dist-CRjqnzU7.js","./arrow-up-right-nJaICi16.js","./createLucideIcon-DdBzwsHe.js","./spinner-Bx8xD6f8.js","./SettingsSectionHeader-DDNA1hrR.js","./tooltip-Bz6z4_se.js","./dist-DXjgFhPl2.js","./floating-ui.dom-BYl7JZd0.js","./dist-CxbWbOvU.js","./badge-DmdA1C7r.js","./dist-BsJYDohW.js","./external-link-8lDpeCuR.js","./button-DzgjsZzC.js","./SharingSection-Y4AD8HPt.js","./radio-group-G1GR05Rb.js","./dist-uiDX6Nr9.js","./dist-BKgU0kag.js","./dist-BGzUo_18.js","./ConfigSharingInfoTooltip-DSloJmkE.js","./info-CyR0W2SK.js","./skeleton-CrbF9ppq.js","./channel-cli-copy-DOAEiMde.js","./constants-product-BVSOzxVs.js","./AccountSection-BPO21vUf.js","./SyncStatusBadge-C1T8mG3k.js","./config-provider-sjjSxSoD.js","./trace-api-BSvaJNnr.js","./status-BNivpG-Q.js","./dist-PQ5KMVDh.js","./schemas-api-CD98jV86.js","./schemas-B93JY9Ef.js","./_envelope-q8XHEv4O-C-Qnl5Tu.js","./share-D-LUU2aX-B7Yg0G_m.js","./util-doc-name-DRKmy6g9.js","./constants-cc1-Bt4QPTUe.js","./constants-github-B7yhDvQc.js","./doc-extensions-CcO7K8uD-DG9uHV54.js","./logging-renderer-log-CqIZVUIQ.js","./skill-targets-schema-D6kA7J61.js","./constants-editors-DmmORwNP.js","./use-apply-config-language-DhdpbJI9.js","./preload-helper-Chd9yIcd.js","./dist-C_FzPxEX2.js","./messages-B8VdcD3O.js","./client-version-CCRiHemw.js","./css-color-to-hex-BRv_r6oZ.js","./use-apply-config-color-theme-hiddt1uL.js","./use-apply-config-theme-CYFG76sS.js","./saved-themes-client-D09wxYQm.js","./constants-upload-CVKO8P4d.js","./select-pACXgFe2.js","./es2015-Dtr4fzLT.js","./check-B2OLRY33.js","./chevron-down-CEv6N8LG.js","./collapsible-BKbszYZV.js","./arrow-up-BGHhPj4y.js","./chevron-right-Bofu4lib.js","./settings-2-DoBlNQMk.js","./git-merge-VDBzSZBV.js","./refresh-cw-CC7UZEnZ.js","./terminal-Cpb4l1oH.js","./triangle-alert-BXrUEeRU.js","./DisclosureWarning-CYHeueUe.js","./terminal-command-events-h-p66odT.js","./handoff-DzPPe6fp.js","./dialog-BJEjKJjL.js","./electron-drag-strip-D9GZhMg_.js","./x-DM2drskU.js","./popover-Mb1GgB61.js","./dist-Cj3Bpren.js","./use-conflicts-BAjZ5TAV.js","./documents-events-ddyuXdQl.js","./schemas-cc1-B3Jf9JeC.js","./config-errors-DDAH9fqy.js","./use-git-sync-status-PkMYmN4D.js","./doc-hash-BJkweiX9.js","./reveal-editor-SLzwvD1I.js","./use-settings-route-Bj-m9X61.js","./keyboard-shortcuts-FtScAm_I.js","./dist-Dc8tD1th.js","./w3c-keyname-C7Rznu6R.js","./trash-2-CchZ0T47.js","./AuthModal-DT32BOAJ.js","./copy-DpWa6i2v.js","./input-BsFOyzfK.js","./auth-state-cache-Bx6C01Jt.js","./AgentConnectionsSection-DhbJCdHu.js","./useQuery-ZeEDLtxh.js","./RegisteredAgentIcon-FmoZTlpS.js","./cursor-DWbF35K0.js","./agent-registry-DoeDgmSS.js","./search-CFu4WXqc.js","./TerminalLaunchContext-DWUMDSpw.js","./agent-connections-DSKODCmO.js","./alert-dialog-BA3e7-10.js","./checkbox-CKD8LETI.js","./minus-DdRxss3A.js","./folder-QqUoFRPR.js","./monitor-IXzxTnmk.js","./sparkles-BS2TX_Um.js","./AgentIconCluster-DYP1yNXm.js","./OpenInAgentMenuItem-DUU1-QP7.js","./dropdown-menu-5XqyQTVx.js","./dist-C0nuYMFu.js","./dist-d2WYntJB.js","./copilot-Dh1BU6kS.js","./utils-random-uuid-D7CMpgvf.js","./mascot-outline-CtS592mc.js","./field-DFJgKWGh.js","./separator-D7s_9ZwH.js","./tool-list-format-CS7MZY1Q.js","./constants-skills-BLHVRW90.js","./bool-pref-CqB9j4bL.js","./storage-scope-ldi41iCU.js","./bridge-BeevbgaB.js","./structural-freshness-CIbkMFA3-CWi_lyiW.js","./terminal-cli-display-Irv_lU4O.js","./settings-section-labels-VKfUFuEe.js","./catalog-C1GEA-Va.js","./use-workspace-Bgh-YT5K.js","./AttachmentsSection-67spU8bD.js","./field-controls-CKb1JSHS.js","./toggle-group-B7p69Qfd.js","./circle-alert-eBm4JPxY.js","./ThemePicker-pc5gwEur.js","./plus-zPnYzcqL.js","./rotate-ccw-Zi1IjIg9.js","./form-U6OjlA0v.js","./textarea-DYYN2PV4.js","./config-schema-CIaXsCAX.js","./config-validation-events-Bq1HmeDP.js","./ContentRulesSection-CH61-mRM.js","./markdown-lint-BuEapKhE.js","./lib-CHTgVmKZ.js","./ccount-DGTHxXcy.js","./syntax-YjkwC8Y2.js","./markdownit-BNu6K0Lc.js","./field-controls-CCcf2ybM.js","./HotkeysSection-C9sCf3j3.js","./settings-host-gates-DEfVpJcs.js","./kbd-Cg1nrB7U.js","./IntegrationsSection-D3htSKMO.js","./InstallInClaudeDesktopDialog-RH9RYFyV.js","./arrow-right-NOQZeKIW.js","./circle-check-nK1yRBIw.js","./download-BouT3__0.js","./LinkPreviewsSection-B9nf9R33.js","./LintingSection-zFSe17qu.js","./CodeMirrorPropInput-CLpFWFtJ.js","./dist-DTvyxWzB.js","./dist-BosZaL03.js","./dist-CBBf5U_8.js","./dist-nSDmHl8c.js","./dist-DL4JUOn7.js","./dist-urhiDaCp.js","./dist-D2c3re7d.js","./dist-BjL32yBS.js","./dist-Jw9rDwKW.js","./dist-DxN51Ana2.js","./stex-BAMK64Qm.js","./lib-DjmHwbg0.js","./space-separated-tokens-BMeAno6f.js","./trim-lines-6NHDbF9s.js","./folder-open-COGOeTzI.js","./with-selector-zVo3Fruj.js","./navigation-targets-DSSJ_2xi.js","./file-tree-utils-CiVz_BRk.js","./doc-paths-DiEZR__C.js","./cm-theme-Dml6DrPs.js","./desktop-bridge-p6CFXLIz.js","./page-list-cache-p7dO1d0k.js","./documents-fetch-BPNWNaEf.js","./note-window-mode-CI3Yju9B.js","./DocumentContext-CQ9yJTwa.js","./propagation-api-B1IlUKzT.js","./context-api-B9rp0hJb.js","./lib-DggJrklf.js","./lib-BiDTxxNs.js","./lib-qLdVx2Nx.js","./git-branch-CeTudSak.js","./Mermaid-BUWNFmOJ.js","./maximize-2-DjzhPUDZ.js","./ime-composition-_BDVzXn4.js","./prop-types-ZtKgQMRh.js","./hash-C4CJQURT.js","./local-menu-action-bus-Dyh2UJJF.js","./paperclip-BHdV1F_7.js","./react-error-boundary-6ac6QM6R.js","./CopyButton-BTy3joJd.js","./PageListContext-CbzXXblg.js","./parse-api-error-CeEVOj25.js","./startup-marks-Cb3e8PuI.js","./perf-CPPbaRwr.js","./diagnostic-breadcrumb-DPgUDxA8.js","./file-tree-rename-validation-DAMy4Ak1.js","./use-collab-url-BWFGjvvU.js","./api-config-BeqD_2Y2.js","./excalidraw-scene-7qRUVF00.js","./known-skill-dirs-WpNGuhvr.js","./single-file-mode-_W9sHrBm.js","./skill-scope-DOTLd4gL.js","./skills-api-zXSg3eSX.js","./DocumentContext-B0sQn39F.css","./lint-plugin-meta-CtDE2R0v.js","./square-pen-BoydeSu6.js","./DeleteConfirmationDialog-CUUTX6Ez.js","./SkillPluginBundleDialog-BmLQqQms.js","./SkillInstallMenu-DyKWxkEY.js","./ChangedOutsideBadge-DhpGZlDx.js","./context-menu-B5MxEep2.js","./dist-BzicVdNV.js","./use-skills-B2fLFrq6.js","./use-skill-targets-DIBQkXNG.js","./markdownlint-rule-browser-BQ4c4vDN.js","./tag-pill-input-D6mNhknm.js","./lint-config-client-DRJNyM2s.js","./use-open-skill-BFjCoRE7.js","./open-managed-artifact-tab-Bgndx1BG.js","./schema-fields-view-intent-DvM5_nmW.js","./NetworkAccessSection-BZvYLs-8.js","./restart-collab-server-DKIjp3iW.js","./OkignoreSection-BudJQycp.js","./sortable.esm-CFAacZUM.js","./grip-vertical-DNbkgWZL.js","./config-ignore-nested-error-events-DvR3WEey.js","./ProjectTemplatesSection-DCliKsre.js","./TemplateRow-DsoFn6-i.js","./file-plus-DKxOZh2k.js","./folder-config-api-BDhEYA86.js","./SearchSection-CkHEgSyS.js","./use-semantic-search-status-CRj98qO1.js","./SkillsManagerSection-C0pgRzfs.js","./SlidesPluginSection-B8KiQkqa.js","./input-group-xi315pKE.js","./SyncSection-Ccjs60mx.js","./PublishToGitHubDialog-CCmFMsMn.js","./clipboard-adapter-C8gKg_7K.js","./TerminalSection-cT2gMi9B.js","./use-terminal-enabled-B61pD1lf.js","./ThemePluginSection-McKmY5If.js","./schema-section-CalUQFIh.js","./settings-fields-CAtLOUgy.js","./lint-plugins-CmqJCDle.js","./OkCliPathRow-CIrEL7IY.js","./SpellingSettings-CElN7mrA.js"])))=>i.map(i=>d[i]);
2
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{n as i,r as a}from"./dist-Nvb76hAm.js";import{t as o}from"./compiler-runtime-BfE3aGVn.js";import{t as s}from"./triangle-alert-BXrUEeRU.js";import{t as c}from"./lazy-with-preload-D9fROG5C.js";import{n as l,r as u,t as d}from"./alert-RmVFIy8D.js";import{r as f}from"./settings-host-gates-DEfVpJcs.js";import{n as p}from"./settings-fields-CAtLOUgy.js";import{t as m}from"./SettingsSectionHeader-DDNA1hrR.js";var h=o(),g=e(r(),1),_=n();function v(e){return(0,g.lazy)(async()=>({default:await e()}))}var y=v(async()=>(await t(async()=>{let{AboutSection:e}=await import(`./AboutSection-LPELvEUl.js`);return{AboutSection:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]),import.meta.url)).AboutSection),b=v(async()=>(await t(async()=>{let{SharingSection:e}=await import(`./SharingSection-Y4AD8HPt.js`);return{SharingSection:e}},__vite__mapDeps([27,1,2,3,4,28,6,7,8,29,30,13,14,9,10,11,31,32,19,20,21,22,33,16,18,15,23,24,25,26,34,35,36]),import.meta.url)).SharingSection),x=v(async()=>(await t(async()=>{let{AccountSection:e}=await import(`./AccountSection-BPO21vUf.js`);return{AccountSection:e}},__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,10,11,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,57,58,59,60,61,62,63,64,20,21,14,29,22,65,19,13,16,66,67,68,69,15,70,71,72,17,73,74,75,76,77,78,23,24,26,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,25,18,34,99,35]),import.meta.url)).AccountSection),S=v(async()=>(await t(async()=>{let{AgentConnectionsSection:e}=await import(`./AgentConnectionsSection-DhbJCdHu.js`);return{AgentConnectionsSection:e}},__vite__mapDeps([100,1,56,2,3,4,12,6,7,8,13,14,9,10,11,101,16,15,102,103,104,43,44,45,46,47,48,49,50,51,52,53,36,78,66,17,105,75,106,107,108,80,22,65,26,24,109,110,5,19,20,21,111,33,112,113,81,114,115,116,117,118,29,30,70,42,119,120,121,23,79,122,123,124,125,126,127,128,129,130,18,25,131,98,132,133]),import.meta.url)).AgentConnectionsSection),C=v(async()=>(await t(async()=>{let{AttachmentsSection:e}=await import(`./AttachmentsSection-67spU8bD.js`);return{AttachmentsSection:e}},__vite__mapDeps([134,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,64,20,21,6,7,14,29,22,65,19,10,11,13,16,66,67,135,12,136,30,24,137,138,28,112,139,140,95,75,141,5,26,79,80,81,122,123,98,34,142,87,143,18,15,23,25,144]),import.meta.url)).AttachmentsSection),w=v(async()=>(await t(async()=>{let{ContentRulesSection:e}=await import(`./ContentRulesSection-CH61-mRM.js`);return{ContentRulesSection:e}},__vite__mapDeps([145,39,1,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,64,20,21,6,7,14,29,22,65,19,10,11,13,16,66,67,5,12,146,147,148,149,150,18,15,23,24,25,87]),import.meta.url)).ContentRulesSection),T=v(async()=>(await t(async()=>{let{SectionSkeleton:e}=await import(`./field-controls-CCcf2ybM.js`);return{SectionSkeleton:e}},__vite__mapDeps([151,135,1,2,3,4,40,64,20,21,6,7,8,14,29,22,65,19,9,10,11,13,16,66,67,12,136,30,24,137,138,28,112,61,42,139,140,95,75,141,5,31,43,44,45,46,47,48,49,50,51,52,53,36,26,79,80,81,122,123,98,34,142,54,55,56,57,60,62,63,87,143]),import.meta.url)).SectionSkeleton),E=v(async()=>(await t(async()=>{let{HotkeysSection:e}=await import(`./HotkeysSection-C9sCf3j3.js`);return{HotkeysSection:e}},__vite__mapDeps([152,2,1,3,4,9,18,19,20,21,6,7,8,14,22,10,11,15,16,23,24,25,153,154,92,93,94]),import.meta.url)).HotkeysSection),D=v(async()=>(await t(async()=>{let{IntegrationsSection:e}=await import(`./IntegrationsSection-D3htSKMO.js`);return{IntegrationsSection:e}},__vite__mapDeps([155,1,2,3,4,156,16,157,158,97,159,17,9,10,11,31,8,26,7,24,79,80,6,22,65,81,25,18,19,20,21,14,15,23]),import.meta.url)).IntegrationsSection),O=v(async()=>(await t(async()=>{let{LinkPreviewsSection:e}=await import(`./LinkPreviewsSection-B9nf9R33.js`);return{LinkPreviewsSection:e}},__vite__mapDeps([160,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,26,79,80,65,81,87]),import.meta.url)).LinkPreviewsSection),k=v(async()=>(await t(async()=>{let{MarkdownlintPluginSection:e}=await import(`./LintingSection-zFSe17qu.js`);return{MarkdownlintPluginSection:e}},__vite__mapDeps([161,1,162,55,163,164,94,165,166,167,168,169,170,171,172,173,21,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,2,62,63,93,147,148,174,175,176,149,16,177,95,178,179,180,181,182,183,184,25,89,185,186,129,108,6,7,80,22,65,26,24,11,10,5,12,13,14,187,188,189,64,20,29,19,66,67,68,190,128,191,192,193,69,194,157,195,75,79,81,70,137,158,97,159,196,71,197,198,33,17,110,199,200,139,105,113,201,202,203,85,86,87,204,205,206,207,208,23,98,154,82,83,209,210,211,212,90,213,214,125,215,127,133,120,216,146,150,15,217,72,218,219,76,220,109,221,116,117,118,30,111,114,115,103,119,121,222,223,224,225,226,18,227,140,122,123,34,228,229,230,231,232,91,92]),import.meta.url)).MarkdownlintPluginSection),A=v(async()=>(await t(async()=>{let{ProjectPluginsManageSection:e}=await import(`./LintingSection-zFSe17qu.js`);return{ProjectPluginsManageSection:e}},__vite__mapDeps([161,1,162,55,163,164,94,165,166,167,168,169,170,171,172,173,21,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,2,62,63,93,147,148,174,175,176,149,16,177,95,178,179,180,181,182,183,184,25,89,185,186,129,108,6,7,80,22,65,26,24,11,10,5,12,13,14,187,188,189,64,20,29,19,66,67,68,190,128,191,192,193,69,194,157,195,75,79,81,70,137,158,97,159,196,71,197,198,33,17,110,199,200,139,105,113,201,202,203,85,86,87,204,205,206,207,208,23,98,154,82,83,209,210,211,212,90,213,214,125,215,127,133,120,216,146,150,15,217,72,218,219,76,220,109,221,116,117,118,30,111,114,115,103,119,121,222,223,224,225,226,18,227,140,122,123,34,228,229,230,231,232,91,92]),import.meta.url)).ProjectPluginsManageSection),j=v(async()=>(await t(async()=>{let{UserPluginsManageSection:e}=await import(`./LintingSection-zFSe17qu.js`);return{UserPluginsManageSection:e}},__vite__mapDeps([161,1,162,55,163,164,94,165,166,167,168,169,170,171,172,173,21,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,2,62,63,93,147,148,174,175,176,149,16,177,95,178,179,180,181,182,183,184,25,89,185,186,129,108,6,7,80,22,65,26,24,11,10,5,12,13,14,187,188,189,64,20,29,19,66,67,68,190,128,191,192,193,69,194,157,195,75,79,81,70,137,158,97,159,196,71,197,198,33,17,110,199,200,139,105,113,201,202,203,85,86,87,204,205,206,207,208,23,98,154,82,83,209,210,211,212,90,213,214,125,215,127,133,120,216,146,150,15,217,72,218,219,76,220,109,221,116,117,118,30,111,114,115,103,119,121,222,223,224,225,226,18,227,140,122,123,34,228,229,230,231,232,91,92]),import.meta.url)).UserPluginsManageSection),M=v(async()=>(await t(async()=>{let{NetworkAccessSection:e}=await import(`./NetworkAccessSection-BZvYLs-8.js`);return{NetworkAccessSection:e}},__vite__mapDeps([233,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,108,6,7,80,22,65,26,24,11,10,5,28,29,30,13,14,12,18,19,20,21,15,16,23,25,98,35,234,87,143]),import.meta.url)).NetworkAccessSection),N=v(async()=>(await t(async()=>{let{OkignoreSection:e}=await import(`./OkignoreSection-BudJQycp.js`);return{OkignoreSection:e}},__vite__mapDeps([235,1,236,8,4,2,3,19,20,21,6,7,14,22,9,10,11,66,16,237,75,81,31,203,56,179,180,48,47,181,63,50,184,85,86,44,87,36,185,204,205,206,207,51,18,15,23,24,25,238,26,98,34,144]),import.meta.url)).OkignoreSection),P=v(async()=>(await t(async()=>{let{ProjectTemplatesSection:e}=await import(`./ProjectTemplatesSection-DCliKsre.js`);return{ProjectTemplatesSection:e}},__vite__mapDeps([239,1,2,3,4,139,16,9,240,56,108,6,7,8,80,22,65,26,24,11,10,116,117,118,20,21,14,29,30,66,70,241,95,81,31,43,44,45,46,47,48,49,50,51,52,53,36,219,17,79,122,5,123,98,142,85,86,87,242,204,18,19,15,23,25,34,231,89,91,92,93,94]),import.meta.url)).ProjectTemplatesSection),F=v(async()=>(await t(async()=>{let{SearchSection:e}=await import(`./SearchSection-CkHEgSyS.js`);return{SearchSection:e}},__vite__mapDeps([243,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,68,6,7,12,13,14,10,11,70,16,244,85,86,87,18,19,20,21,22,15,23,24,25,26,79,80,65,81,122,5,123,98,35,143]),import.meta.url)).SearchSection),I=v(async()=>(await t(async()=>{let{SkillsManagerSection:e}=await import(`./SkillsManagerSection-C0pgRzfs.js`);return{SkillsManagerSection:e}},__vite__mapDeps([245,1,2,3,4,108,6,7,8,80,22,65,9,26,24,11,10,16,157,116,117,118,20,21,14,29,30,66,70,97,95,31,114,19,111,113,115,42,103,119,120,121,53,36,222,18,15,23,25,79,81,98,34,226,56,43,44,45,46,47,48,49,50,51,52,85,86,87,204,215,225,212,231,89,206,207,214,125,124]),import.meta.url)).SkillsManagerSection),L=v(async()=>(await t(async()=>{let{SlidesPluginSection:e}=await import(`./SlidesPluginSection-B8KiQkqa.js`);return{SlidesPluginSection:e}},__vite__mapDeps([246,1,2,3,4,15,16,74,9,202,19,20,21,6,7,8,14,22,10,11,66,97,26,24,77,78,45,44,46,47,18,23,25,247,98,142,91,92,93,94]),import.meta.url)).SlidesPluginSection),R=v(async()=>(await t(async()=>{let{SyncSection:e}=await import(`./SyncSection-Ccjs60mx.js`);return{SyncSection:e}},__vite__mapDeps([248,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,64,20,21,6,7,14,29,22,65,19,10,11,13,16,66,67,68,136,30,24,38,69,15,70,71,72,17,73,74,75,76,77,78,23,26,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,25,249,5,28,187,163,164,165,166,167,168,169,170,171,172,173,162,147,148,174,175,176,149,177,95,178,179,180,181,182,183,184,185,186,129,188,189,12,190,128,191,192,193,194,157,195,137,158,159,196,197,198,33,110,199,200,139,105,113,201,202,203,204,205,206,207,208,154,209,210,211,212,213,214,125,215,127,133,120,216,122,123,142,250,18,34]),import.meta.url)).SyncSection),z=v(async()=>(await t(async()=>{let{TerminalSection:e}=await import(`./TerminalSection-cT2gMi9B.js`);return{TerminalSection:e}},__vite__mapDeps([251,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,2,62,63,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,252,87,35]),import.meta.url)).TerminalSection),B=v(async()=>(await t(async()=>{let{ThemePluginSection:e}=await import(`./ThemePluginSection-McKmY5If.js`);return{ThemePluginSection:e}},__vite__mapDeps([253,1,2,3,4,5,6,7,8,9,10,11,15,16,42,31,43,44,45,46,47,48,49,50,51,52,53,36,254,141,135,40,64,20,21,14,29,22,65,19,13,66,67,12,136,30,24,137,138,28,112,61,139,140,95,75,26,79,80,81,122,123,98,34,142,54,55,56,57,60,62,63,87,143,18,23,25,144,255]),import.meta.url)).ThemePluginSection),V=v(async()=>{let{LINT_PLUGIN_UI:e}=await t(async()=>{let{LINT_PLUGIN_UI:e}=await import(`./lint-plugins-CmqJCDle.js`);return{LINT_PLUGIN_UI:e}},__vite__mapDeps([256,217,16,1,4,161,162,55,163,164,94,165,166,167,168,169,170,171,172,173,21,39,40,41,42,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,2,62,63,93,147,148,174,175,176,149,177,95,178,179,180,181,182,183,184,25,89,185,186,129,108,6,7,80,22,65,26,24,11,10,5,12,13,14,187,188,189,64,20,29,19,66,67,68,190,128,191,192,193,69,194,157,195,75,79,81,70,137,158,97,159,196,71,197,198,33,17,110,199,200,139,105,113,201,202,203,85,86,87,204,205,206,207,208,23,98,154,82,83,209,210,211,212,90,213,214,125,215,127,133,120,216,146,150,15,72,218,219,76,220,109,221,116,117,118,30,111,114,115,103,119,121,222,223,224,225,226,18,227,140,122,123,34,228,229,230,231,232,91,92]),import.meta.url);return function({id:t}){let n=e.find(e=>e.id===t);if(!n)return null;let r=n.Section;return(0,_.jsx)(r,{})}}),H=c(async()=>{let[{BoundSchemaSection:e},{OkCliPathRow:n},{SpellingSettings:r}]=await Promise.all([t(()=>import(`./schema-section-CalUQFIh.js`),__vite__mapDeps([254,1,141,7,4,5,6,8,3,9,10,11,31,135,2,40,64,20,21,14,29,22,65,19,13,16,66,67,12,136,30,24,137,138,28,112,61,42,139,140,95,75,43,44,45,46,47,48,49,50,51,52,53,36,26,79,80,81,122,123,98,34,142,54,55,56,57,60,62,63,87,143,18,15,23,25,144]),import.meta.url),t(()=>import(`./OkCliPathRow-CIrEL7IY.js`),__vite__mapDeps([257,1,2,3,4,109,6,7,8,13,14,66,16,110,9,10,11,5,19,20,21,22,33,31,26,24,35,36]),import.meta.url),t(()=>import(`./SpellingSettings-CElN7mrA.js`),__vite__mapDeps([258,1,21,20,6,7,4,8,3,14,56,2,12,13,9,10,11,19,22,66,16,140,81,31,178,135,40,64,29,65,67,136,30,24,137,138,28,112,61,42,139,95,75,141,5,43,44,45,46,47,48,49,50,51,52,53,36,26,79,80,122,123,98,34,142,54,55,57,60,62,63,87,143,153]),import.meta.url)]);return{default:function({title:t,description:i,binding:a}){return(0,_.jsx)(e,{title:t,description:i,scope:`user`,scopeBadge:`user`,binding:a,fields:p,slotsAfter:{"appearance.theme":(0,_.jsx)(n,{}),"appearance.language":(0,_.jsx)(r,{})}})}}}),U=H.preload;function W(e){let t=(0,h.c)(4),{loadFailed:n}=e;if(!n){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(T,{}),t[0]=e):e=t[0],e}let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,_.jsx)(s,{"aria-hidden":`true`}),t[1]=r):r=t[1];let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,_.jsx)(u,{children:(0,_.jsx)(i,{id:`PXg8xK`})}),t[2]=a):a=t[2];let o;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,_.jsxs)(d,{"data-testid":`settings-user-config-unavailable`,children:[r,a,(0,_.jsx)(l,{children:(0,_.jsx)(i,{id:`rFbQzX`})})]}),t[3]=o):o=t[3],o}function G(e){let t=(0,h.c)(37),{activeId:n,userBinding:r,userLoadFailed:o,okignoreBinding:s,okignoreSynced:c,markdownlintRuleQuery:l}=e,u=o===void 0?!1:o,{_:d}=a();if(n===`preferences`){let e;return t[0]!==d||t[1]!==r||t[2]!==u?(e=r?(0,_.jsx)(H,{title:d({id:`Q6hhn8`}),description:d({id:`Y_kL7X`}),binding:r}):(0,_.jsx)(W,{loadFailed:u}),t[0]=d,t[1]=r,t[2]=u,t[3]=e):e=t[3],e}if(n===`project-preferences`){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(i,{id:`Q6hhn8`}),t[4]=e):e=t[4];let n;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-project-preferences-title`,className:`space-y-8`,"data-testid":`settings-project-preferences`,children:[(0,_.jsx)(m,{titleId:`settings-project-preferences-title`,title:e,scope:`project`,children:(0,_.jsx)(i,{id:`FKVmcC`})}),(0,_.jsx)(C,{}),(0,_.jsx)(w,{}),f()?(0,_.jsx)(z,{}):null]}),t[5]=n):n=t[5],n}if(n===`agent-connections`){let e;return t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(S,{}),t[6]=e):e=t[6],e}if(n===`hotkeys`){let e;return t[7]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(E,{}),t[7]=e):e=t[7],e}if(n===`account`){let e;return t[8]!==r||t[9]!==u?(e=r?(0,_.jsx)(x,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[8]=r,t[9]=u,t[10]=e):e=t[10],e}if(n===`sync`){let e;return t[11]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-sync-sharing-title`,className:`space-y-8`,"data-testid":`settings-sync-sharing`,children:[(0,_.jsx)(m,{titleId:`settings-sync-sharing-title`,title:(0,_.jsx)(i,{id:`AznQ2V`}),children:(0,_.jsx)(i,{id:`HADdBA`})}),(0,_.jsx)(R,{}),(0,_.jsx)(b,{})]}),t[11]=e):e=t[11],e}if(n===`search`){let e;return t[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(F,{}),t[12]=e):e=t[12],e}if(n===`link-previews`){let e;return t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(O,{}),t[13]=e):e=t[13],e}if(n===`plugins-manage`){let e;return t[14]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(A,{}),t[14]=e):e=t[14],e}if(n===`user-plugins-manage`){let e;return t[15]===r?e=t[16]:(e=(0,_.jsx)(j,{userBinding:r}),t[15]=r,t[16]=e),e}if(n===`plugin:theme`){let e;return t[17]!==r||t[18]!==u?(e=r?(0,_.jsx)(B,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[17]=r,t[18]=u,t[19]=e):e=t[19],e}if(n===`plugin:slides`){let e;return t[20]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(L,{}),t[20]=e):e=t[20],e}if(n===`plugin:markdownlint`){let e=l??null,n;return t[21]===e?n=t[22]:(n=(0,_.jsx)(k,{initialRuleQuery:e}),t[21]=e,t[22]=n),n}if(n.startsWith(`plugin:`)){let e;t[23]===n?e=t[24]:(e=n.slice(7),t[23]=n,t[24]=e);let r;return t[25]!==n||t[26]!==e?(r=(0,_.jsx)(V,{id:e},n),t[25]=n,t[26]=e,t[27]=r):r=t[27],r}if(n===`project-templates`){let e;return t[28]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(P,{}),t[28]=e):e=t[28],e}if(n===`skills`){let e;return t[29]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`project`}),t[29]=e):e=t[29],e}if(n===`user-skills`){let e;return t[30]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`global`}),t[30]=e):e=t[30],e}if(n===`okignore`){let e;return t[31]!==s||t[32]!==c?(e=(0,_.jsx)(N,{binding:s,synced:c}),t[31]=s,t[32]=c,t[33]=e):e=t[33],e}if(n===`network-access`){let e;return t[34]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(M,{}),t[34]=e):e=t[34],e}if(n===`claude-desktop`){let e;return t[35]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(D,{}),t[35]=e):e=t[35],e}if(n===`about`){let e;return t[36]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(y,{}),t[36]=e):e=t[36],e}return null}export{G as SettingsDialogBody,U as preloadPreferencesSection};
@@ -1 +1 @@
1
- import{t as e}from"./jsx-runtime-BUgB2tll.js";import{n as t,r as n}from"./dist-Nvb76hAm.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{t as i}from"./utils-CPqDy6Hr.js";import{i as a,n as o,r as s,t as c}from"./tooltip-DBqLYfio.js";import{t as l}from"./arrow-up-right-nJaICi16.js";import{t as u}from"./badge-DmdA1C7r.js";import{t as d}from"./external-link-8lDpeCuR.js";var f=r(),p=e();function m(){let e=(0,f.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,p.jsx)(u,{variant:`gray`,children:(0,p.jsx)(t,{id:`YBt9YP`})}),e[0]=n):n=e[0],n}function h(e){let n=(0,f.c)(10),{scope:r}=e,i=`settings-scope-badge-${r}`,l;n[0]===r?l=n[1]:(l=r===`user`?(0,p.jsx)(t,{id:`7PzzBU`}):r===`project-local`?(0,p.jsx)(t,{id:`ImTzPZ`}):(0,p.jsx)(t,{id:`e0NrBM`}),n[0]=r,n[1]=l);let d;n[2]!==i||n[3]!==l?(d=(0,p.jsx)(a,{asChild:!0,children:(0,p.jsx)(u,{variant:`gray`,tabIndex:0,className:`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,"data-testid":i,children:l})}),n[2]=i,n[3]=l,n[4]=d):d=n[4];let m;n[5]===r?m=n[6]:(m=(0,p.jsx)(o,{children:r===`user`?(0,p.jsx)(t,{id:`cFSbbh`}):r===`project-local`?(0,p.jsx)(t,{id:`YlwI5F`}):(0,p.jsx)(t,{id:`ebqMh6`})}),n[5]=r,n[6]=m);let h;return n[7]!==d||n[8]!==m?(h=(0,p.jsx)(s,{children:(0,p.jsxs)(c,{children:[d,m]})}),n[7]=d,n[8]=m,n[9]=h):h=n[9],h}function g(e){let r=(0,f.c)(27),{titleId:a,title:o,scope:s,level:c,beta:u,adornment:g,docUrl:_,children:v}=e,y=c===void 0?`page`:c,{_:b}=n(),x=y===`page`?`h3`:`h4`,S=y===`page`?`text-lg`:`text-base`,C;r[0]===S?C=r[1]:(C=i(`font-semibold`,S),r[0]=S,r[1]=C);let w;r[2]!==x||r[3]!==C||r[4]!==o||r[5]!==a?(w=(0,p.jsx)(x,{id:a,className:C,children:o}),r[2]=x,r[3]=C,r[4]=o,r[5]=a,r[6]=w):w=r[6];let T;r[7]===u?T=r[8]:(T=u?(0,p.jsx)(m,{}):null,r[7]=u,r[8]=T);let E;r[9]===s?E=r[10]:(E=s?(0,p.jsx)(h,{scope:s}):null,r[9]=s,r[10]=E);let D;r[11]!==g||r[12]!==w||r[13]!==T||r[14]!==E?(D=(0,p.jsxs)(`div`,{className:`flex items-center gap-2`,children:[w,g,T,E]}),r[11]=g,r[12]=w,r[13]=T,r[14]=E,r[15]=D):D=r[15];let O;r[16]===v?O=r[17]:(O=v?(0,p.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:v}):null,r[16]=v,r[17]=O);let k;r[18]!==b||r[19]!==_||r[20]!==o||r[21]!==a?(k=_===void 0?null:(0,p.jsxs)(`a`,{href:_,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>d(e,_),onAuxClick:e=>d(e,_),"aria-label":b(typeof o==`string`?{id:`Li4U-T`,values:{title:o}}:{id:`zwWKhA`}),className:`inline-flex items-center gap-0.5 text-sm text-muted-foreground underline-offset-2 hover:text-foreground hover:underline`,"data-testid":`${a}-docs-link`,children:[(0,p.jsx)(t,{id:`zwWKhA`}),(0,p.jsx)(l,{"aria-hidden":!0,className:`size-3`})]}),r[18]=b,r[19]=_,r[20]=o,r[21]=a,r[22]=k):k=r[22];let A;return r[23]!==D||r[24]!==O||r[25]!==k?(A=(0,p.jsxs)(`div`,{className:`space-y-1`,children:[D,O,k]}),r[23]=D,r[24]=O,r[25]=k,r[26]=A):A=r[26],A}export{h as n,m as r,g as t};
1
+ import{t as e}from"./jsx-runtime-BUgB2tll.js";import{n as t,r as n}from"./dist-Nvb76hAm.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{t as i}from"./utils-CPqDy6Hr.js";import{i as a,n as o,r as s,t as c}from"./tooltip-Bz6z4_se.js";import{t as l}from"./arrow-up-right-nJaICi16.js";import{t as u}from"./badge-DmdA1C7r.js";import{t as d}from"./external-link-8lDpeCuR.js";var f=r(),p=e();function m(){let e=(0,f.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,p.jsx)(u,{variant:`gray`,children:(0,p.jsx)(t,{id:`YBt9YP`})}),e[0]=n):n=e[0],n}function h(e){let n=(0,f.c)(10),{scope:r}=e,i=`settings-scope-badge-${r}`,l;n[0]===r?l=n[1]:(l=r===`user`?(0,p.jsx)(t,{id:`7PzzBU`}):r===`project-local`?(0,p.jsx)(t,{id:`ImTzPZ`}):(0,p.jsx)(t,{id:`e0NrBM`}),n[0]=r,n[1]=l);let d;n[2]!==i||n[3]!==l?(d=(0,p.jsx)(a,{asChild:!0,children:(0,p.jsx)(u,{variant:`gray`,tabIndex:0,className:`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,"data-testid":i,children:l})}),n[2]=i,n[3]=l,n[4]=d):d=n[4];let m;n[5]===r?m=n[6]:(m=(0,p.jsx)(o,{children:r===`user`?(0,p.jsx)(t,{id:`cFSbbh`}):r===`project-local`?(0,p.jsx)(t,{id:`YlwI5F`}):(0,p.jsx)(t,{id:`ebqMh6`})}),n[5]=r,n[6]=m);let h;return n[7]!==d||n[8]!==m?(h=(0,p.jsx)(s,{children:(0,p.jsxs)(c,{children:[d,m]})}),n[7]=d,n[8]=m,n[9]=h):h=n[9],h}function g(e){let r=(0,f.c)(27),{titleId:a,title:o,scope:s,level:c,beta:u,adornment:g,docUrl:_,children:v}=e,y=c===void 0?`page`:c,{_:b}=n(),x=y===`page`?`h3`:`h4`,S=y===`page`?`text-lg`:`text-base`,C;r[0]===S?C=r[1]:(C=i(`font-semibold`,S),r[0]=S,r[1]=C);let w;r[2]!==x||r[3]!==C||r[4]!==o||r[5]!==a?(w=(0,p.jsx)(x,{id:a,className:C,children:o}),r[2]=x,r[3]=C,r[4]=o,r[5]=a,r[6]=w):w=r[6];let T;r[7]===u?T=r[8]:(T=u?(0,p.jsx)(m,{}):null,r[7]=u,r[8]=T);let E;r[9]===s?E=r[10]:(E=s?(0,p.jsx)(h,{scope:s}):null,r[9]=s,r[10]=E);let D;r[11]!==g||r[12]!==w||r[13]!==T||r[14]!==E?(D=(0,p.jsxs)(`div`,{className:`flex items-center gap-2`,children:[w,g,T,E]}),r[11]=g,r[12]=w,r[13]=T,r[14]=E,r[15]=D):D=r[15];let O;r[16]===v?O=r[17]:(O=v?(0,p.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:v}):null,r[16]=v,r[17]=O);let k;r[18]!==b||r[19]!==_||r[20]!==o||r[21]!==a?(k=_===void 0?null:(0,p.jsxs)(`a`,{href:_,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>d(e,_),onAuxClick:e=>d(e,_),"aria-label":b(typeof o==`string`?{id:`Li4U-T`,values:{title:o}}:{id:`zwWKhA`}),className:`inline-flex items-center gap-0.5 text-sm text-muted-foreground underline-offset-2 hover:text-foreground hover:underline`,"data-testid":`${a}-docs-link`,children:[(0,p.jsx)(t,{id:`zwWKhA`}),(0,p.jsx)(l,{"aria-hidden":!0,className:`size-3`})]}),r[18]=b,r[19]=_,r[20]=o,r[21]=a,r[22]=k):k=r[22];let A;return r[23]!==D||r[24]!==O||r[25]!==k?(A=(0,p.jsxs)(`div`,{className:`space-y-1`,children:[D,O,k]}),r[23]=D,r[24]=O,r[25]=k,r[26]=A):A=r[26],A}export{h as n,m as r,g as t};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{a as i,i as a,n as o,o as s,r as c}from"./pending-receive-nav-store-DC4MBIMn.js";import{t as l}from"./miss-dialog-store-CsiJb9Ou.js";import{c as u,i as d,n as f,s as p,t as m}from"./dialog-BJEjKJjL.js";import{l as h,u as g}from"./doc-hash-BJkweiX9.js";var _=r(),v=e(n(),1),y=t();function b(e){let t=e.split(`/`).filter(Boolean);return t.length>0?t[t.length-1]:e}function x(){let e=(0,_.c)(2),t=(0,v.useSyncExternalStore)(l.subscribe,l.getSnapshot,S);if(t===null)return null;let n;return e[0]===t?n=e[1]:(n=(0,y.jsx)(C,{nav:t},t.path),e[0]=t,e[1]=n),n}function S(){return null}function C(e){let t=(0,_.c)(28),{nav:n}=e,{state:r,refetch:v}=s(n),x;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(x=function(){l.dismiss()},t[0]=x):x=t[0];let S=x,C;t[1]===n.path?C=t[2]:(C=function(){window.location.hash=g(i(n.path)),S()},t[1]=n.path,t[2]=C);let w=C,T;t[3]===n?T=t[4]:(T=function(e){c.arm(o(n,e)),window.location.hash=n.kind===`folder`?g(e):h(e),S()},t[3]=n,t[4]=T);let E=T,D;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>{e||S()},t[5]=D):D=t[5];let O=r.phase,k=r.phase===`resolved`?r.resolution.verdict:void 0,A;t[6]===n.path?A=t[7]:(A=b(n.path),t[6]=n.path,t[7]=A);let j;t[8]===A?j=t[9]:(j=(0,y.jsx)(p,{children:(0,y.jsx)(u,{className:`truncate`,children:A})}),t[8]=A,t[9]=j);let M=r.phase===`pending`?`flex flex-col items-center justify-center gap-3 py-6 text-center text-sm text-muted-foreground`:`flex flex-col items-center justify-center gap-6 py-2 text-center`,N;t[10]!==n.path||t[11]!==E?(N=()=>E(n.path),t[10]=n.path,t[11]=E,t[12]=N):N=t[12];let P;t[13]!==w||t[14]!==n||t[15]!==E||t[16]!==v||t[17]!==r||t[18]!==N?(P=(0,y.jsx)(a,{nav:n,state:r,onBrowseFolder:w,onOpenRenamed:E,onEnableAutoSync:S,onSyncCompleted:v,onPullApplied:N}),t[13]=w,t[14]=n,t[15]=E,t[16]=v,t[17]=r,t[18]=N,t[19]=P):P=t[19];let F;t[20]!==P||t[21]!==M?(F=(0,y.jsx)(f,{className:M,children:P}),t[20]=P,t[21]=M,t[22]=F):F=t[22];let I;return t[23]!==r.phase||t[24]!==F||t[25]!==k||t[26]!==j?(I=(0,y.jsx)(m,{open:!0,onOpenChange:D,children:(0,y.jsxs)(d,{className:`sm:max-w-md`,"data-testid":`share-receive-miss-dialog`,"data-phase":O,"data-verdict":k,children:[j,F]})}),t[23]=r.phase,t[24]=F,t[25]=k,t[26]=j,t[27]=I):I=t[27],I}export{x as ShareReceiveMissDialog};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{a as i,i as a,n as o,o as s,r as c}from"./pending-receive-nav-store-bmJhghAd.js";import{t as l}from"./miss-dialog-store-CsiJb9Ou.js";import{c as u,i as d,n as f,s as p,t as m}from"./dialog-BJEjKJjL.js";import{l as h,u as g}from"./doc-hash-BJkweiX9.js";var _=r(),v=e(n(),1),y=t();function b(e){let t=e.split(`/`).filter(Boolean);return t.length>0?t[t.length-1]:e}function x(){let e=(0,_.c)(2),t=(0,v.useSyncExternalStore)(l.subscribe,l.getSnapshot,S);if(t===null)return null;let n;return e[0]===t?n=e[1]:(n=(0,y.jsx)(C,{nav:t},t.path),e[0]=t,e[1]=n),n}function S(){return null}function C(e){let t=(0,_.c)(28),{nav:n}=e,{state:r,refetch:v}=s(n),x;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(x=function(){l.dismiss()},t[0]=x):x=t[0];let S=x,C;t[1]===n.path?C=t[2]:(C=function(){window.location.hash=g(i(n.path)),S()},t[1]=n.path,t[2]=C);let w=C,T;t[3]===n?T=t[4]:(T=function(e){c.arm(o(n,e)),window.location.hash=n.kind===`folder`?g(e):h(e),S()},t[3]=n,t[4]=T);let E=T,D;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>{e||S()},t[5]=D):D=t[5];let O=r.phase,k=r.phase===`resolved`?r.resolution.verdict:void 0,A;t[6]===n.path?A=t[7]:(A=b(n.path),t[6]=n.path,t[7]=A);let j;t[8]===A?j=t[9]:(j=(0,y.jsx)(p,{children:(0,y.jsx)(u,{className:`truncate`,children:A})}),t[8]=A,t[9]=j);let M=r.phase===`pending`?`flex flex-col items-center justify-center gap-3 py-6 text-center text-sm text-muted-foreground`:`flex flex-col items-center justify-center gap-6 py-2 text-center`,N;t[10]!==n.path||t[11]!==E?(N=()=>E(n.path),t[10]=n.path,t[11]=E,t[12]=N):N=t[12];let P;t[13]!==w||t[14]!==n||t[15]!==E||t[16]!==v||t[17]!==r||t[18]!==N?(P=(0,y.jsx)(a,{nav:n,state:r,onBrowseFolder:w,onOpenRenamed:E,onEnableAutoSync:S,onSyncCompleted:v,onPullApplied:N}),t[13]=w,t[14]=n,t[15]=E,t[16]=v,t[17]=r,t[18]=N,t[19]=P):P=t[19];let F;t[20]!==P||t[21]!==M?(F=(0,y.jsx)(f,{className:M,children:P}),t[20]=P,t[21]=M,t[22]=F):F=t[22];let I;return t[23]!==r.phase||t[24]!==F||t[25]!==k||t[26]!==j?(I=(0,y.jsx)(m,{open:!0,onOpenChange:D,children:(0,y.jsxs)(d,{className:`sm:max-w-md`,"data-testid":`share-receive-miss-dialog`,"data-phase":O,"data-verdict":k,children:[j,F]})}),t[23]=r.phase,t[24]=F,t[25]=k,t[26]=j,t[27]=I):I=t[27],I}export{x as ShareReceiveMissDialog};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{n as o,t as s}from"./radio-group-G1GR05Rb.js";import{t as c}from"./button-DzgjsZzC.js";import{n as l}from"./dist-BGzUo_18.js";import{t as u}from"./ConfigSharingInfoTooltip-l_ayrcN2.js";import{t as d}from"./channel-cli-copy-DOAEiMde.js";import{t as f}from"./skeleton-CrbF9ppq.js";import{t as p}from"./SettingsSectionHeader-BiiyXKRM.js";var m=a(),h=e(n(),1),g=t(),_=`settings-sharing-title`;function v(){let e=(0,m.c)(1),t=(typeof window<`u`?window.okDesktop:void 0)?.sharing,n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=t===void 0?(0,g.jsx)(y,{}):(0,g.jsx)(b,{}),e[0]=n):n=e[0],n}function y(){let e=(0,m.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=d(),e[0]=t):t=e[0];let n=t,i;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,g.jsx)(r,{id:`cs4mps`}),e[1]=i):i=e[1];let a;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,g.jsx)(`section`,{"aria-labelledby":_,className:`space-y-3`,"data-field":`section:sharing`,children:(0,g.jsx)(p,{titleId:_,title:i,scope:`project`,level:`block`,children:(0,g.jsx)(r,{id:`UbQzWP`,values:{cliCommand:n},components:{0:(0,g.jsx)(`code`,{}),1:(0,g.jsx)(`code`,{}),2:(0,g.jsx)(`code`,{})}})})}),e[2]=a):a=e[2],a}function b(){let e=(0,m.c)(29),{_:t}=i(),[n,a]=(0,h.useState)(null),[d,v]=(0,h.useState)(!1),[y,b]=(0,h.useState)(null),C;e[0]===t?C=e[1]:(C=async function(){let e=window.okDesktop?.sharing;if(e)try{a(await e.status())}catch(e){let n=e;l.error(n instanceof Error?n.message:t({id:`K0N7zS`})),a(S)}},e[0]=t,e[1]=C);let w=C,T;e[2]===w?T=e[3]:(T=()=>{w()},e[2]=w,e[3]=T);let E;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(E=[],e[4]=E):E=e[4],(0,h.useEffect)(T,E);let D;e[5]!==t||e[6]!==d||e[7]!==w||e[8]!==n?(D=async function(e){let r=window.okDesktop?.sharing;if(!r||n===null||d||n.mode===e)return;v(!0),b(null);let i=null,a=null;try{i=await r.setMode(e)}catch(e){a=e}if(v(!1),a!==null){l.error(a instanceof Error?a.message:t({id:`qZv5ZR`}));return}i!==null&&(i.kind===`refused-tracked`?(b({tracked:i.tracked,remediation:i.remediation}),l.error(t({id:`z2JdQ-`}),{duration:5e3})):i.kind===`no-exclude`?l.warning(i.reason===`no-git`?t({id:`YSFv5w`}):t({id:`8cS0nH`,values:{0:i.reason}})):l.success(t(e===`local-only`?{id:`wdzBgi`}:{id:`k_pade`})),await w())},e[5]=t,e[6]=d,e[7]=w,e[8]=n,e[9]=D):D=e[9];let O=D;if(n===null){let t;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,g.jsx)(p,{titleId:_,title:(0,g.jsx)(r,{id:`cs4mps`}),scope:`project`,level:`block`}),e[10]=t):t=e[10];let n;return e[11]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,g.jsxs)(`section`,{"aria-labelledby":_,className:`space-y-3`,"data-field":`section:sharing`,children:[t,(0,g.jsxs)(`div`,{role:`status`,"aria-live":`polite`,"aria-busy":`true`,children:[(0,g.jsx)(`span`,{className:`sr-only`,children:(0,g.jsx)(r,{id:`eQn7nI`})}),(0,g.jsx)(f,{className:`h-24`})]})]}),e[11]=n):n=e[11],n}let k=n.mode===`no-git`,A;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,g.jsx)(r,{id:`cs4mps`}),e[12]=A):A=e[12];let j;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,g.jsx)(p,{titleId:_,title:A,scope:`project`,level:`block`,adornment:(0,g.jsx)(u,{}),children:(0,g.jsx)(r,{id:`50gx7V`})}),e[13]=j):j=e[13];let M;e[14]!==d||e[15]!==k||e[16]!==O||e[17]!==n.mode?(M=k?(0,g.jsx)(`p`,{className:`rounded-md border border-amber-300 bg-amber-50 px-3 py-2 text-sm text-amber-900 dark:border-amber-700 dark:bg-amber-950 dark:text-amber-200`,role:`status`,"data-testid":`settings-sharing-no-git`,children:(0,g.jsx)(r,{id:`ju38ms`})}):(0,g.jsxs)(s,{value:n.mode,onValueChange:e=>void O(e),disabled:d,className:`gap-2`,"aria-labelledby":_,"data-testid":`settings-sharing-radiogroup`,children:[(0,g.jsxs)(`label`,{htmlFor:`settings-sharing-local-only`,className:`flex items-start gap-2 text-sm`,children:[(0,g.jsx)(o,{id:`settings-sharing-local-only`,value:`local-only`,"data-testid":`settings-sharing-local-only`,className:`mt-1`}),(0,g.jsxs)(`span`,{children:[(0,g.jsx)(`span`,{className:`font-medium`,children:(0,g.jsx)(r,{id:`QjzFZj`})}),(0,g.jsx)(`span`,{className:`block text-1sm text-muted-foreground`,children:(0,g.jsx)(r,{id:`un-K1H`})})]})]}),(0,g.jsxs)(`label`,{htmlFor:`settings-sharing-shared`,className:`flex items-start gap-2 text-sm`,children:[(0,g.jsx)(o,{id:`settings-sharing-shared`,value:`shared`,"data-testid":`settings-sharing-shared`,className:`mt-1`}),(0,g.jsxs)(`span`,{children:[(0,g.jsx)(`span`,{className:`font-medium`,children:(0,g.jsx)(r,{id:`0Gd0NU`})}),(0,g.jsx)(`span`,{className:`block text-1sm text-muted-foreground`,children:(0,g.jsx)(r,{id:`dJw2_7`})})]})]})]}),e[14]=d,e[15]=k,e[16]=O,e[17]=n.mode,e[18]=M):M=e[18];let N;e[19]===y?N=e[20]:(N=y===null?null:(0,g.jsxs)(`div`,{className:`space-y-2 rounded-md border border-destructive bg-destructive/10 p-3 text-sm`,role:`alert`,"data-testid":`settings-sharing-refusal`,children:[(0,g.jsx)(`p`,{className:`font-semibold`,children:(0,g.jsx)(r,{id:`ZscwQ0`})}),(0,g.jsx)(`pre`,{className:`whitespace-pre-wrap font-mono text-xs leading-relaxed`,children:y.remediation}),(0,g.jsx)(c,{variant:`outline`,size:`sm`,onClick:()=>b(null),children:(0,g.jsx)(r,{id:`1QfxQT`})})]}),e[19]=y,e[20]=N);let P;e[21]!==y||e[22]!==n.mode||e[23]!==n.trackedUpstream?(P=n.trackedUpstream.length>0&&n.mode!==`no-git`&&y===null?(0,g.jsxs)(`div`,{className:`space-y-1 rounded-md border border-muted-foreground/30 bg-muted/40 p-3 text-sm`,"data-testid":`settings-sharing-tracked-info`,children:[(0,g.jsx)(`p`,{className:`font-medium`,children:(0,g.jsx)(r,{id:`LhWYpm`})}),(0,g.jsx)(`ul`,{className:`list-disc pl-5 font-mono text-xs text-muted-foreground`,children:n.trackedUpstream.map(x)}),(0,g.jsx)(`p`,{className:`text-1sm text-muted-foreground`,children:(0,g.jsx)(r,{id:`1XSMhZ`,components:{0:(0,g.jsx)(`code`,{}),1:(0,g.jsx)(`code`,{})}})})]}):null,e[21]=y,e[22]=n.mode,e[23]=n.trackedUpstream,e[24]=P):P=e[24];let F;return e[25]!==M||e[26]!==N||e[27]!==P?(F=(0,g.jsxs)(`section`,{"aria-labelledby":_,className:`space-y-4`,"data-testid":`settings-sharing`,"data-field":`section:sharing`,children:[j,M,N,P]}),e[25]=M,e[26]=N,e[27]=P,e[28]=F):F=e[28],F}function x(e){return(0,g.jsx)(`li`,{children:e},e)}function S(e){return e??{kind:`status`,mode:`no-git`,excluded:[],trackedUpstream:[]}}export{v as SharingSection};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{n as o,t as s}from"./radio-group-G1GR05Rb.js";import{t as c}from"./button-DzgjsZzC.js";import{n as l}from"./dist-BGzUo_18.js";import{t as u}from"./ConfigSharingInfoTooltip-DSloJmkE.js";import{t as d}from"./channel-cli-copy-DOAEiMde.js";import{t as f}from"./skeleton-CrbF9ppq.js";import{t as p}from"./SettingsSectionHeader-DDNA1hrR.js";var m=a(),h=e(n(),1),g=t(),_=`settings-sharing-title`;function v(){let e=(0,m.c)(1),t=(typeof window<`u`?window.okDesktop:void 0)?.sharing,n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=t===void 0?(0,g.jsx)(y,{}):(0,g.jsx)(b,{}),e[0]=n):n=e[0],n}function y(){let e=(0,m.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=d(),e[0]=t):t=e[0];let n=t,i;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,g.jsx)(r,{id:`cs4mps`}),e[1]=i):i=e[1];let a;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,g.jsx)(`section`,{"aria-labelledby":_,className:`space-y-3`,"data-field":`section:sharing`,children:(0,g.jsx)(p,{titleId:_,title:i,scope:`project`,level:`block`,children:(0,g.jsx)(r,{id:`UbQzWP`,values:{cliCommand:n},components:{0:(0,g.jsx)(`code`,{}),1:(0,g.jsx)(`code`,{}),2:(0,g.jsx)(`code`,{})}})})}),e[2]=a):a=e[2],a}function b(){let e=(0,m.c)(29),{_:t}=i(),[n,a]=(0,h.useState)(null),[d,v]=(0,h.useState)(!1),[y,b]=(0,h.useState)(null),C;e[0]===t?C=e[1]:(C=async function(){let e=window.okDesktop?.sharing;if(e)try{a(await e.status())}catch(e){let n=e;l.error(n instanceof Error?n.message:t({id:`K0N7zS`})),a(S)}},e[0]=t,e[1]=C);let w=C,T;e[2]===w?T=e[3]:(T=()=>{w()},e[2]=w,e[3]=T);let E;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(E=[],e[4]=E):E=e[4],(0,h.useEffect)(T,E);let D;e[5]!==t||e[6]!==d||e[7]!==w||e[8]!==n?(D=async function(e){let r=window.okDesktop?.sharing;if(!r||n===null||d||n.mode===e)return;v(!0),b(null);let i=null,a=null;try{i=await r.setMode(e)}catch(e){a=e}if(v(!1),a!==null){l.error(a instanceof Error?a.message:t({id:`qZv5ZR`}));return}i!==null&&(i.kind===`refused-tracked`?(b({tracked:i.tracked,remediation:i.remediation}),l.error(t({id:`z2JdQ-`}),{duration:5e3})):i.kind===`no-exclude`?l.warning(i.reason===`no-git`?t({id:`YSFv5w`}):t({id:`8cS0nH`,values:{0:i.reason}})):l.success(t(e===`local-only`?{id:`wdzBgi`}:{id:`k_pade`})),await w())},e[5]=t,e[6]=d,e[7]=w,e[8]=n,e[9]=D):D=e[9];let O=D;if(n===null){let t;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,g.jsx)(p,{titleId:_,title:(0,g.jsx)(r,{id:`cs4mps`}),scope:`project`,level:`block`}),e[10]=t):t=e[10];let n;return e[11]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,g.jsxs)(`section`,{"aria-labelledby":_,className:`space-y-3`,"data-field":`section:sharing`,children:[t,(0,g.jsxs)(`div`,{role:`status`,"aria-live":`polite`,"aria-busy":`true`,children:[(0,g.jsx)(`span`,{className:`sr-only`,children:(0,g.jsx)(r,{id:`eQn7nI`})}),(0,g.jsx)(f,{className:`h-24`})]})]}),e[11]=n):n=e[11],n}let k=n.mode===`no-git`,A;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,g.jsx)(r,{id:`cs4mps`}),e[12]=A):A=e[12];let j;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,g.jsx)(p,{titleId:_,title:A,scope:`project`,level:`block`,adornment:(0,g.jsx)(u,{}),children:(0,g.jsx)(r,{id:`50gx7V`})}),e[13]=j):j=e[13];let M;e[14]!==d||e[15]!==k||e[16]!==O||e[17]!==n.mode?(M=k?(0,g.jsx)(`p`,{className:`rounded-md border border-amber-300 bg-amber-50 px-3 py-2 text-sm text-amber-900 dark:border-amber-700 dark:bg-amber-950 dark:text-amber-200`,role:`status`,"data-testid":`settings-sharing-no-git`,children:(0,g.jsx)(r,{id:`ju38ms`})}):(0,g.jsxs)(s,{value:n.mode,onValueChange:e=>void O(e),disabled:d,className:`gap-2`,"aria-labelledby":_,"data-testid":`settings-sharing-radiogroup`,children:[(0,g.jsxs)(`label`,{htmlFor:`settings-sharing-local-only`,className:`flex items-start gap-2 text-sm`,children:[(0,g.jsx)(o,{id:`settings-sharing-local-only`,value:`local-only`,"data-testid":`settings-sharing-local-only`,className:`mt-1`}),(0,g.jsxs)(`span`,{children:[(0,g.jsx)(`span`,{className:`font-medium`,children:(0,g.jsx)(r,{id:`QjzFZj`})}),(0,g.jsx)(`span`,{className:`block text-1sm text-muted-foreground`,children:(0,g.jsx)(r,{id:`un-K1H`})})]})]}),(0,g.jsxs)(`label`,{htmlFor:`settings-sharing-shared`,className:`flex items-start gap-2 text-sm`,children:[(0,g.jsx)(o,{id:`settings-sharing-shared`,value:`shared`,"data-testid":`settings-sharing-shared`,className:`mt-1`}),(0,g.jsxs)(`span`,{children:[(0,g.jsx)(`span`,{className:`font-medium`,children:(0,g.jsx)(r,{id:`0Gd0NU`})}),(0,g.jsx)(`span`,{className:`block text-1sm text-muted-foreground`,children:(0,g.jsx)(r,{id:`dJw2_7`})})]})]})]}),e[14]=d,e[15]=k,e[16]=O,e[17]=n.mode,e[18]=M):M=e[18];let N;e[19]===y?N=e[20]:(N=y===null?null:(0,g.jsxs)(`div`,{className:`space-y-2 rounded-md border border-destructive bg-destructive/10 p-3 text-sm`,role:`alert`,"data-testid":`settings-sharing-refusal`,children:[(0,g.jsx)(`p`,{className:`font-semibold`,children:(0,g.jsx)(r,{id:`ZscwQ0`})}),(0,g.jsx)(`pre`,{className:`whitespace-pre-wrap font-mono text-xs leading-relaxed`,children:y.remediation}),(0,g.jsx)(c,{variant:`outline`,size:`sm`,onClick:()=>b(null),children:(0,g.jsx)(r,{id:`1QfxQT`})})]}),e[19]=y,e[20]=N);let P;e[21]!==y||e[22]!==n.mode||e[23]!==n.trackedUpstream?(P=n.trackedUpstream.length>0&&n.mode!==`no-git`&&y===null?(0,g.jsxs)(`div`,{className:`space-y-1 rounded-md border border-muted-foreground/30 bg-muted/40 p-3 text-sm`,"data-testid":`settings-sharing-tracked-info`,children:[(0,g.jsx)(`p`,{className:`font-medium`,children:(0,g.jsx)(r,{id:`LhWYpm`})}),(0,g.jsx)(`ul`,{className:`list-disc pl-5 font-mono text-xs text-muted-foreground`,children:n.trackedUpstream.map(x)}),(0,g.jsx)(`p`,{className:`text-1sm text-muted-foreground`,children:(0,g.jsx)(r,{id:`1XSMhZ`,components:{0:(0,g.jsx)(`code`,{}),1:(0,g.jsx)(`code`,{})}})})]}):null,e[21]=y,e[22]=n.mode,e[23]=n.trackedUpstream,e[24]=P):P=e[24];let F;return e[25]!==M||e[26]!==N||e[27]!==P?(F=(0,g.jsxs)(`section`,{"aria-labelledby":_,className:`space-y-4`,"data-testid":`settings-sharing`,"data-field":`section:sharing`,children:[j,M,N,P]}),e[25]=M,e[26]=N,e[27]=P,e[28]=F):F=e[28],F}function x(e){return(0,g.jsx)(`li`,{children:e},e)}function S(e){return e??{kind:`status`,mode:`no-git`,excluded:[],trackedUpstream:[]}}export{v as SharingSection};
@@ -1 +1 @@
1
- import{t as e}from"./jsx-runtime-BUgB2tll.js";import{n as t,r as n}from"./dist-Nvb76hAm.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{i,n as a,r as o,t as s}from"./tooltip-DBqLYfio.js";import{et as c}from"./schemas-api-CD98jV86.js";import{t as l}from"./triangle-alert-BXrUEeRU.js";var u=r(),d=e();function f(e){return e<1e3?`${e}`:`${Math.round(e/100)/10}k`}function p(e){let t=(0,u.c)(33),{tokens:r,budget:c}=e,{_:p}=n(),m=c!==void 0&&r>c,h,g,_,v,y,b,x,S;if(t[0]!==p||t[1]!==c||t[2]!==m||t[3]!==r){S=Symbol.for(`react.early_return_sentinel`);bb0:{let e=c===void 0?``:f(c),n=m||void 0,u=m?`text-amber-600 dark:text-amber-500`:void 0,C;t[12]===r?C=t[13]:(C=f(r),t[12]=r,t[13]=C);let w=m?(0,d.jsx)(`span`,{role:`img`,"aria-label":p({id:`nem6R7`,values:{budgetLabel:e}}),children:(0,d.jsx)(l,{className:`ms-0.5 inline size-3 align-[-0.1em]`,"aria-hidden":`true`})}):null,T;t[14]!==n||t[15]!==u||t[16]!==C||t[17]!==w?(T=(0,d.jsxs)(`span`,{"data-over-budget":n,className:u,children:[C,w]}),t[14]=n,t[15]=u,t[16]=C,t[17]=w,t[18]=T):T=t[18];let E=T;if(!m){S=E;break bb0}_=o,g=s,t[19]===E?x=t[20]:(x=(0,d.jsx)(i,{asChild:!0,children:E}),t[19]=E,t[20]=x),h=a,v=`right`,y=`max-w-xs`,b=p({id:`JsHvhz`,values:{budgetLabel:e}})}t[0]=p,t[1]=c,t[2]=m,t[3]=r,t[4]=h,t[5]=g,t[6]=_,t[7]=v,t[8]=y,t[9]=b,t[10]=x,t[11]=S}else h=t[4],g=t[5],_=t[6],v=t[7],y=t[8],b=t[9],x=t[10],S=t[11];if(S!==Symbol.for(`react.early_return_sentinel`))return S;let C;t[21]!==h||t[22]!==v||t[23]!==y||t[24]!==b?(C=(0,d.jsx)(h,{side:v,className:y,children:b}),t[21]=h,t[22]=v,t[23]=y,t[24]=b,t[25]=C):C=t[25];let w;t[26]!==g||t[27]!==x||t[28]!==C?(w=(0,d.jsxs)(g,{children:[x,C]}),t[26]=g,t[27]=x,t[28]=C,t[29]=w):w=t[29];let T;return t[30]!==_||t[31]!==w?(T=(0,d.jsx)(_,{children:w}),t[30]=_,t[31]=w,t[32]=T):T=t[32],T}function m(e){let n=(0,u.c)(22),{size:r}=e,i=r.alwaysOn+r.onTrigger+r.onDemand,a;n[0]===r.alwaysOn?a=n[1]:(a=(0,d.jsx)(p,{tokens:r.alwaysOn,budget:100}),n[0]=r.alwaysOn,n[1]=a);let o;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,d.jsx)(t,{id:`eTsJYJ`}),n[2]=o):o=n[2];let s;n[3]===a?s=n[4]:(s=(0,d.jsxs)(`span`,{children:[a,` `,o]}),n[3]=a,n[4]=s);let l;n[5]===r.onTrigger?l=n[6]:(l=(0,d.jsxs)(`span`,{children:[(0,d.jsx)(p,{tokens:r.onTrigger,budget:c}),` SKILL.md`]}),n[5]=r.onTrigger,n[6]=l);let f;n[7]===r.onDemand?f=n[8]:(f=(0,d.jsx)(p,{tokens:r.onDemand}),n[7]=r.onDemand,n[8]=f);let m;n[9]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,d.jsx)(t,{id:`ae9Ozt`}),n[9]=m):m=n[9];let h;n[10]===f?h=n[11]:(h=(0,d.jsxs)(`span`,{children:[f,` `,m]}),n[10]=f,n[11]=h);let g;n[12]===i?g=n[13]:(g=(0,d.jsx)(p,{tokens:i}),n[12]=i,n[13]=g);let _;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,d.jsx)(t,{id:`ONchxy`}),n[14]=_):_=n[14];let v;n[15]===g?v=n[16]:(v=(0,d.jsxs)(`span`,{className:`text-foreground/80`,children:[g,` `,_]}),n[15]=g,n[16]=v);let y;return n[17]!==v||n[18]!==s||n[19]!==l||n[20]!==h?(y=(0,d.jsxs)(`span`,{"data-testid":`skill-cost-value`,className:`flex flex-col gap-0.5 font-mono text-[13px] text-muted-foreground`,children:[s,l,h,v]}),n[17]=v,n[18]=s,n[19]=l,n[20]=h,n[21]=y):y=n[21],y}export{f as n,m as t};
1
+ import{t as e}from"./jsx-runtime-BUgB2tll.js";import{n as t,r as n}from"./dist-Nvb76hAm.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{i,n as a,r as o,t as s}from"./tooltip-Bz6z4_se.js";import{et as c}from"./schemas-api-CD98jV86.js";import{t as l}from"./triangle-alert-BXrUEeRU.js";var u=r(),d=e();function f(e){return e<1e3?`${e}`:`${Math.round(e/100)/10}k`}function p(e){let t=(0,u.c)(33),{tokens:r,budget:c}=e,{_:p}=n(),m=c!==void 0&&r>c,h,g,_,v,y,b,x,S;if(t[0]!==p||t[1]!==c||t[2]!==m||t[3]!==r){S=Symbol.for(`react.early_return_sentinel`);bb0:{let e=c===void 0?``:f(c),n=m||void 0,u=m?`text-amber-600 dark:text-amber-500`:void 0,C;t[12]===r?C=t[13]:(C=f(r),t[12]=r,t[13]=C);let w=m?(0,d.jsx)(`span`,{role:`img`,"aria-label":p({id:`nem6R7`,values:{budgetLabel:e}}),children:(0,d.jsx)(l,{className:`ms-0.5 inline size-3 align-[-0.1em]`,"aria-hidden":`true`})}):null,T;t[14]!==n||t[15]!==u||t[16]!==C||t[17]!==w?(T=(0,d.jsxs)(`span`,{"data-over-budget":n,className:u,children:[C,w]}),t[14]=n,t[15]=u,t[16]=C,t[17]=w,t[18]=T):T=t[18];let E=T;if(!m){S=E;break bb0}_=o,g=s,t[19]===E?x=t[20]:(x=(0,d.jsx)(i,{asChild:!0,children:E}),t[19]=E,t[20]=x),h=a,v=`right`,y=`max-w-xs`,b=p({id:`JsHvhz`,values:{budgetLabel:e}})}t[0]=p,t[1]=c,t[2]=m,t[3]=r,t[4]=h,t[5]=g,t[6]=_,t[7]=v,t[8]=y,t[9]=b,t[10]=x,t[11]=S}else h=t[4],g=t[5],_=t[6],v=t[7],y=t[8],b=t[9],x=t[10],S=t[11];if(S!==Symbol.for(`react.early_return_sentinel`))return S;let C;t[21]!==h||t[22]!==v||t[23]!==y||t[24]!==b?(C=(0,d.jsx)(h,{side:v,className:y,children:b}),t[21]=h,t[22]=v,t[23]=y,t[24]=b,t[25]=C):C=t[25];let w;t[26]!==g||t[27]!==x||t[28]!==C?(w=(0,d.jsxs)(g,{children:[x,C]}),t[26]=g,t[27]=x,t[28]=C,t[29]=w):w=t[29];let T;return t[30]!==_||t[31]!==w?(T=(0,d.jsx)(_,{children:w}),t[30]=_,t[31]=w,t[32]=T):T=t[32],T}function m(e){let n=(0,u.c)(22),{size:r}=e,i=r.alwaysOn+r.onTrigger+r.onDemand,a;n[0]===r.alwaysOn?a=n[1]:(a=(0,d.jsx)(p,{tokens:r.alwaysOn,budget:100}),n[0]=r.alwaysOn,n[1]=a);let o;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,d.jsx)(t,{id:`eTsJYJ`}),n[2]=o):o=n[2];let s;n[3]===a?s=n[4]:(s=(0,d.jsxs)(`span`,{children:[a,` `,o]}),n[3]=a,n[4]=s);let l;n[5]===r.onTrigger?l=n[6]:(l=(0,d.jsxs)(`span`,{children:[(0,d.jsx)(p,{tokens:r.onTrigger,budget:c}),` SKILL.md`]}),n[5]=r.onTrigger,n[6]=l);let f;n[7]===r.onDemand?f=n[8]:(f=(0,d.jsx)(p,{tokens:r.onDemand}),n[7]=r.onDemand,n[8]=f);let m;n[9]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,d.jsx)(t,{id:`ae9Ozt`}),n[9]=m):m=n[9];let h;n[10]===f?h=n[11]:(h=(0,d.jsxs)(`span`,{children:[f,` `,m]}),n[10]=f,n[11]=h);let g;n[12]===i?g=n[13]:(g=(0,d.jsx)(p,{tokens:i}),n[12]=i,n[13]=g);let _;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,d.jsx)(t,{id:`ONchxy`}),n[14]=_):_=n[14];let v;n[15]===g?v=n[16]:(v=(0,d.jsxs)(`span`,{className:`text-foreground/80`,children:[g,` `,_]}),n[15]=g,n[16]=v);let y;return n[17]!==v||n[18]!==s||n[19]!==l||n[20]!==h?(y=(0,d.jsxs)(`span`,{"data-testid":`skill-cost-value`,className:`flex flex-col gap-0.5 font-mono text-[13px] text-muted-foreground`,children:[s,l,h,v]}),n[17]=v,n[18]=s,n[19]=l,n[20]=h,n[21]=y):y=n[21],y}export{f as n,m as t};
@@ -1,2 +1,2 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./AgentIconCluster-Ys-JZNda.js";import{i as s,n as c,t as l}from"./tooltip-DBqLYfio.js";import{t as u}from"./button-DzgjsZzC.js";import{n as d}from"./dist-BGzUo_18.js";import{c as f}from"./documents-events-ddyuXdQl.js";import{n as p}from"./constants-editors-DmmORwNP.js";import{n as m,r as h,t as g}from"./skill-targets-schema-D6kA7J61.js";import{t as _}from"./createLucideIcon-DdBzwsHe.js";import{a as v,f as y,i as b,m as x,n as S,o as C,p as w,u as T}from"./dropdown-menu-DtLu9NwU.js";import{t as E}from"./folder-QqUoFRPR.js";import"./constants-skills-BLHVRW90.js";import{i as ee,l as te,n as D,r as O}from"./skill-scope-DOTLd4gL.js";import{a as k,c as A,i as j,l as M,n as N,o as P,s as F,u as I}from"./context-menu-DWPgomGa.js";import{F as L,S as ne,j as R,x as z}from"./skills-api-zXSg3eSX.js";import{t as B}from"./use-skills-B2fLFrq6.js";import{t as V}from"./ChangedOutsideBadge-DhpGZlDx.js";var H=_(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),U=e(n(),1),W=a(),G=t();function K(e){let t=(0,W.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,G.jsx)(j,{...r}):(0,G.jsx)(b,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function re(e){let t=(0,W.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,G.jsx)(k,{...r}):(0,G.jsx)(v,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ie(e){let t=(0,W.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,G.jsx)(N,{...r}):(0,G.jsx)(S,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ae(e){let t=(0,W.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,G.jsx)(P,{...r}):(0,G.jsx)(C,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function oe(e){let t=(0,W.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,G.jsx)(F,{...r}):(0,G.jsx)(T,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function se(e){let t=(0,W.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,G.jsx)(A,{...r}):(0,G.jsx)(y,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ce(e){let t=(0,W.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,G.jsx)(M,{...r}):(0,G.jsx)(w,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function le(e){let t=(0,W.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,G.jsx)(I,{...r}):(0,G.jsx)(x,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}var q=Object.freeze({hosts:null,source:null}),J=new Map,Y=new Map;function X(e,t){return`${e}:${t}`}function Z(e){return J.get(e)??q}function ue(e,t){let n=Y.get(e)??new Set;return Y.set(e,n),n.add(t),()=>{n.delete(t),n.size===0&&Y.delete(e)}}function Q(e,t){let n=Z(e),r={...n,...t};if(!(r.hosts===n.hosts&&r.source===n.source)){r.hosts===null&&r.source===null?J.delete(e):J.set(e,r);for(let t of Y.get(e)??[])t()}}var de=g.options,fe=m.options,pe=`.agents/`;function me({skill:e,allSkills:t,hostSet:n,sourceHostOverlay:r,linkMode:i}){let a=t=>e?`${te(t,e.scope)}/${e.name}`:null,o=e?.hubOffered??(e&&t!==null?t.find(t=>t.scope===e.scope)?.hubOffered:void 0),s=e!==void 0&&(o===!0||(e.hosts??[]).includes(`agents`)||t?.some(t=>t.scope===e.scope&&(t.hosts.includes(`agents`)||t.path.startsWith(pe)))),c=e?.hostAliases??(e&&t!==null?Object.assign({},...t.filter(t=>t.scope===e.scope).map(e=>e.hostAliases??{})):{}),l=e?.installableEditors??(e&&t!==null?t.find(t=>t.scope===e.scope)?.installableEditors:void 0),u=l?new Set(l):null,d=e?.scope===`global`?fe:de,f=(s?[...d,`agents`]:d).filter(e=>!(e in c)).filter(e=>e===`agents`||u===null||u.has(e)||n.has(e)),p=new Set(f.map(e=>a(e))),m=e?.scope===`global`?`~/`:``,h=e?.path?.includes(`/`)?`${m}${e.path.replace(/\/SKILL\.mdx?$/i,``)}`:null,g=h!==null&&!p.has(h)?h:null,_=g===null?r??e?.hosts?.[0]:void 0,v=new Set(e?.conflictHosts??[]),y=new Set(e?.driftPaths??[]),b=new Set(e?.symlinkedHosts??[]),x=[...[...n].filter(e=>e!==_&&!(e in c)&&!v.has(e)&&!e.includes(`/`)).map(e=>({target:e,display:a(e)??e,mode:b.has(e)?`link`:`copy`})),...(e?.customPlacements??[]).map(e=>({target:O(e),display:`${m}${e.path}`,mode:e.mode}))],S=x.map(e=>e.mode),C=S.filter(e=>e===`link`).length,w=S.length===0?i?`link`:`copy`:C*2>=S.length?`link`:`copy`,T=new Map((e?.customPlacements??[]).map(e=>[O(e),e])),E=new Set(T.keys());if(t!==null&&e){for(let n of t)if(n.scope===e.scope)for(let e of n.customPlacements??[]){let t=O(e);t!==``&&E.add(t)}}return{pathFor:a,aliases:c,rows:f,sourceRow:g,sourceHost:_,conflicted:v,drifted:y,linked:b,expectedMode:w,convertible:x,customRootRows:e===void 0?[]:[...E].sort().map(t=>({root:t,display:`${m}${t}/${e.name}`,placed:T.get(t)??null})).filter(e=>!p.has(e.display)&&e.display!==h&&!(e.root in c))}}var he=`min-w-[24rem]`;function ge(e,t){let n=(0,W.c)(45),r=t.installingName===e.name,i=(0,U.useRef)(e),[a,o]=(0,U.useState)(!1),s=(0,U.useRef)(!1),c,l;n[0]===r?(c=n[1],l=n[2]):(c=()=>{s.current&&!r&&o(!0),s.current=r},l=[r],n[0]=r,n[1]=c,n[2]=l),(0,U.useEffect)(c,l);let u,f;n[3]===e?(u=n[4],f=n[5]):(u=()=>{e!==i.current&&(i.current=e,o(!1))},f=[e],n[3]=e,n[4]=u,n[5]=f),(0,U.useEffect)(u,f);let p=r||a,m;n[6]!==e.name||n[7]!==e.scope?(m=X(e.scope,e.name),n[6]=e.name,n[7]=e.scope,n[8]=m):m=n[8];let g=m,_,v;n[9]===g?(_=n[10],v=n[11]):(_=e=>ue(g,e),v=()=>Z(g),n[9]=g,n[10]=_,n[11]=v);let y=(0,U.useSyncExternalStore)(_,v),b=y.hosts,x=y.source,S,C;n[12]!==x||n[13]!==g||n[14]!==e.hosts?(S=()=>{x!==null&&e.hosts[0]===x&&Q(g,{source:null})},C=[e.hosts,x,g],n[12]=x,n[13]=g,n[14]=e.hosts,n[15]=S,n[16]=C):(S=n[15],C=n[16]),(0,U.useEffect)(S,C);let w=e.linkMode===!0,T=b??e.hosts,E;n[17]===T?E=n[18]:(E=new Set(T),n[17]=T,n[18]=E);let ee=E,te=b?b.length>0:e.installed,D=(0,U.useRef)(e.hosts),O,k;n[19]!==b||n[20]!==e.hosts?(O=()=>{b===null&&(D.current=e.hosts)},k=[b,e.hosts],n[19]=b,n[20]=e.hosts,n[21]=O,n[22]=k):(O=n[21],k=n[22]),(0,U.useEffect)(O,k);let A;n[23]===e.hosts?A=n[24]:(A=[...e.hosts].sort().join(`,`),n[23]=e.hosts,n[24]=A);let j=A,M,N;n[25]!==g||n[26]!==j?(M=()=>{let e=Z(g).hosts;e&&[...e].sort().join(`,`)===j&&Q(g,{hosts:null})},N=[j,g],n[25]=g,n[26]=j,n[27]=M,n[28]=N):(M=n[27],N=n[28]),(0,U.useEffect)(M,N);let P=(0,U.useRef)(null),F=(0,U.useRef)(null),I,ne;n[29]===Symbol.for(`react.memo_cache_sentinel`)?(I=()=>()=>{P.current&&clearTimeout(P.current),F.current?.(),F.current=null},ne=[],n[29]=I,n[30]=ne):(I=n[29],ne=n[30]),(0,U.useEffect)(I,ne);let B;n[31]!==t||n[32]!==g||n[33]!==e?(B=function(n,r){D.current=n,Q(g,{hosts:n}),P.current&&clearTimeout(P.current);let i=async()=>{F.current=null,P.current=null;let r=await t.install(e,n.filter(h));if(!r.ok){Q(g,{hosts:null});return}D.current=[...r.hosts],Q(g,{hosts:[...r.hosts]})};r?(F.current=()=>void i(),P.current=setTimeout(()=>void i(),350)):(F.current=null,i())},n[31]=t,n[32]=g,n[33]=e,n[34]=B):B=n[34];let V=B,H;return n[35]!==t||n[36]!==V||n[37]!==ee||n[38]!==te||n[39]!==p||n[40]!==x||n[41]!==g||n[42]!==w||n[43]!==e?(H={hostSet:ee,installed:te,installing:p,toggleEditor(e,t){let n=new Set(D.current);t?n.add(e):n.delete(e),V([...n],!0)},installAll(){let t=e.scope===`global`?fe:de,n=D.current.filter(e=>!t.includes(e)),r=e.installableEditors??t,i=t.filter(e=>r.includes(e)||D.current.includes(e));V([...n,...i],!1)},linkMode:w,sourceHost:x??e.hosts[0],placeAt(n,r){t.runLocationWrite(e,()=>z({scope:e.scope,name:e.name,dir:n,mode:r})).then(ve)},unplaceAt(n){t.runLocationWrite(e,()=>L({scope:e.scope,name:e.name,path:n})).then(_e)},setSource(n){Q(g,{source:n}),t.runLocationWrite(e,()=>R({scope:e.scope,name:e.name,target:n})).then(e=>{e.ok||(Q(g,{source:null}),d.error(e.error))})},convertLocation(n,r){t.convertLocations(e,[{target:n,mode:r}])},convertLocations(n){t.convertLocations(e,n)}},n[35]=t,n[36]=V,n[37]=ee,n[38]=te,n[39]=p,n[40]=x,n[41]=g,n[42]=w,n[43]=e,n[44]=H):H=n[44],H}function _e(e){e.ok||d.error(e.error)}function ve(e){e.ok||d.error(e.error)}function $(e){let t=(0,W.c)(7),{hint:n,children:r}=e,i;t[0]===r?i=t[1]:(i=(0,G.jsx)(s,{asChild:!0,children:r}),t[0]=r,t[1]=i);let a;t[2]===n?a=t[3]:(a=(0,G.jsx)(c,{side:`right`,className:`max-w-xs`,children:n}),t[2]=n,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=(0,G.jsxs)(l,{children:[i,a]}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function ye(e){let t=(0,W.c)(77),{toggles:n,skill:a,onResolveFork:s,onRunStart:c,menuKind:l}=e,m=l===void 0?`dropdown`:l,{_:h}=i(),{hostSet:g,toggleEditor:_,installAll:v}=n,y=B(),b,x,S,C,w,T,O,k,A,j;if(t[0]!==h||t[1]!==y.data||t[2]!==y.status||t[3]!==g||t[4]!==v||t[5]!==m||t[6]!==s||t[7]!==c||t[8]!==a||t[9]!==_||t[10]!==n){let{pathFor:e,aliases:i,rows:l,sourceRow:M,sourceHost:N,conflicted:P,drifted:F,linked:I,expectedMode:L,convertible:R,customRootRows:z}=me({skill:a,allSkills:y.status===`ready`?y.data:null,hostSet:g,sourceHostOverlay:n.sourceHost,linkMode:n.linkMode});w=l,T=M,C=L,x=R,S=z;let B=e=>D(i,e),H=Ee,U=e=>{let t=B(e);return t.length===0?!0:window.confirm(h({id:`Uobeu9`,values:{0:t.map(H).join(`, `),rootRel:e}}))},W;t[21]!==h||t[22]!==a?(W=(e,t)=>{let n=e.includes(`/`)?e:te(e,a?.scope??`project`);return(0,G.jsx)($,{hint:h({id:`0dslv8`,values:{0:H(e),1:H(e),2:a?.name??``,poolRootRel:t,subRoot:n}}),children:(0,G.jsx)(u,{variant:`ghost`,size:`sm`,className:`h-4 shrink-0 px-0`,"aria-label":h({id:`G6Lrs_`,values:{0:H(e)}}),onClick:r=>{r.preventDefault(),r.stopPropagation(),window.confirm(h({id:`iiqOKM`,values:{0:H(e),1:a.name,2:H(e),subRoot:n,poolRootRel:t}}))&&ne({scope:a.scope,root:n,action:`unlink`,exclude:[a.name]}).then(e=>{e.ok?f():d.error(h({id:`PRgIJh`,values:{0:e.error,subRoot:n}}))})},"data-testid":`skill-audience-unfollow-${e}`,children:(0,G.jsx)(o,{host:e,"aria-hidden":!0,className:`size-3.5`})})},e)},t[21]=h,t[22]=a,t[23]=W):W=t[23];let K=W;b=n.installing;let re=ee(a),oe=Te,se;t[24]!==h||t[25]!==c||t[26]!==n?(se=(e,t,i)=>{let a=i===`link`?`copy`:`link`;return(0,G.jsx)($,{hint:h(i===`link`?{id:`FeXcUS`,values:{display:t}}:{id:`ugQcJX`,values:{display:t}}),children:(0,G.jsx)(u,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-yellow-500/40 bg-yellow-500/10 px-1 font-normal text-[10px] text-yellow-600 uppercase tracking-wide hover:bg-yellow-500/20`,onClick:r=>{r.preventDefault(),r.stopPropagation(),window.confirm(h(a===`link`?{id:`m0eHej`,values:{display:t}}:{id:`HbcQYf`,values:{display:t}}))&&(c?.(),n.convertLocation?.(e,a))},"data-testid":`skill-convert-${e}`,children:i===`link`?(0,G.jsx)(r,{id:`uUCrBv`}):(0,G.jsx)(r,{id:`iaPtht`})})})},t[24]=h,t[25]=c,t[26]=n,t[27]=se):se=t[27];let ce=se,le;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,G.jsx)(r,{id:`npcziF`}),t[28]=le):le=t[28];let q;t[29]===h?q=t[30]:(q=h({id:`6f_UX4`}),t[29]=h,t[30]=q);let J;t[31]===v?J=t[32]:(J=()=>v(),t[31]=v,t[32]=J);let Y;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,G.jsx)(r,{id:`N40H-G`}),t[33]=Y):Y=t[33];let X;t[34]!==b||t[35]!==J?(X=(0,G.jsx)(u,{variant:`ghost`,size:`sm`,className:`h-5 px-1.5 font-normal text-[11px] text-muted-foreground hover:text-foreground`,disabled:b,onClick:J,"data-testid":`skill-install-all`,children:Y}),t[34]=b,t[35]=J,t[36]=X):X=t[36];let Z;t[37]!==q||t[38]!==X?(Z=(0,G.jsx)($,{hint:q,children:X}),t[37]=q,t[38]=X,t[39]=Z):Z=t[39],t[40]!==m||t[41]!==Z?(O=(0,G.jsxs)(ae,{menuKind:m,className:`flex items-center justify-between gap-2`,children:[le,Z]}),t[40]=m,t[41]=Z,t[42]=O):O=t[42],k=T===null?null:(0,G.jsx)($,{hint:h({id:`pXB6SL`}),children:(0,G.jsxs)(ie,{menuKind:m,disabled:b,checked:!0,onSelect:we,"data-testid":`skill-source-row`,children:[(0,G.jsx)(E,{"aria-hidden":!0,className:`size-4 text-muted-foreground`}),(0,G.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1.5`,children:[(0,G.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:T}),(()=>{let e=oe(T).split(`/`).slice(0,-1).join(`/`),t=B(e);return t.length>0?(0,G.jsx)(`span`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`skill-row-audience-source`,children:t.map(t=>K(t,e))}):null})(),(0,G.jsx)(`span`,{className:`inline-flex h-5 shrink-0 items-center rounded border border-border/60 px-1 text-[10px] uppercase tracking-wide text-muted-foreground`,children:(0,G.jsx)(r,{id:`tiFPjk`})})]})]})}),A=w.map(t=>{let i=e(t),c=t===`agents`?`.agents`:p[t],l=oe(i).split(`/`).slice(0,-1).join(`/`),d=B(l);return(0,G.jsx)($,{hint:P.has(t)?h({id:`8HvJlU`,values:{0:i??c}}):t===N?i?h({id:`ssk6rl`,values:{path:i}}):c:g.has(t)?h(i?{id:`9ieZhu`,values:{path:i}}:{id:`n3T3EE`,values:{label:c}}):re?.editor===t?h({id:`_3S4Ql`,values:{0:a?.name??``,1:re.plugin,2:i??c,label:c}}):h(i?N===void 0?{id:`xk133d`,values:{path:i}}:C===`link`?{id:`1LtA5r`,values:{path:i}}:{id:`opPbzN`,values:{path:i}}:{id:`Pp0Vgd`,values:{label:c}}),children:(0,G.jsxs)(ie,{menuKind:m,disabled:b,checked:g.has(t),onCheckedChange:e=>{P.has(t)||e===!0&&!U(l)||_(t,e===!0)},onSelect:Ce,className:`group`,"data-testid":`skill-install-editor-${t}`,children:[(0,G.jsx)(o,{host:t,"aria-hidden":!0,className:`size-4`}),(0,G.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1.5`,children:[(0,G.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:i??c}),d.length>0?(0,G.jsx)(`span`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`skill-row-audience-${t}`,children:d.map(e=>K(e,l))}):null,re?.editor===t&&!g.has(t)?(0,G.jsx)(`span`,{className:`inline-flex h-5 shrink-0 items-center rounded border border-border/60 px-1 text-[10px] uppercase tracking-wide text-muted-foreground`,"data-testid":`skill-row-plugin-covered-${t}`,children:(0,G.jsx)(r,{id:`scRzTw`})}):null,P.has(t)?(0,G.jsx)($,{hint:h({id:`_O7dJS`}),children:(0,G.jsx)(u,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-yellow-500/40 bg-yellow-500/10 px-1 text-[10px] text-yellow-600 uppercase tracking-wide hover:bg-yellow-500/20`,onClick:e=>{e.preventDefault(),s?.(t)},"data-testid":`skill-fork-chip-${t}`,children:(0,G.jsx)(r,{id:`jng7Ko`})})}):t===N?(0,G.jsx)(`span`,{className:`inline-flex h-5 shrink-0 items-center rounded border border-border/60 px-1 text-[10px] uppercase tracking-wide text-muted-foreground`,children:(0,G.jsx)(r,{id:`tiFPjk`})}):g.has(t)&&a?.hosts?(0,G.jsxs)(G.Fragment,{children:[!b&&(I.has(t)?`link`:`copy`)!==C?ce(t,i??c,I.has(t)?`link`:`copy`):null,(0,G.jsx)($,{hint:h({id:`nBgzKO`}),children:(0,G.jsx)(u,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-border/60 px-1 font-normal text-[10px] text-muted-foreground uppercase tracking-wide opacity-0 focus-visible:opacity-100 group-hover:opacity-100 hover:border-foreground/40 hover:text-foreground`,onClick:e=>{e.preventDefault(),e.stopPropagation(),n.setSource?.(t)},"data-testid":`skill-set-source-${t}`,children:(0,G.jsx)(r,{id:`VNNRfN`})})})]}):null,!b&&F.has(oe(i))?(0,G.jsx)($,{hint:h({id:`iz1LdD`}),children:(0,G.jsx)(V,{testId:`skill-drift-${t}`})}):null]})]})},t)}),j=S.map(e=>{let t=e.display;return(0,G.jsx)($,{hint:e.placed===null?h(N===void 0?{id:`xk133d`,values:{path:t}}:C===`link`?{id:`1LtA5r`,values:{path:t}}:{id:`opPbzN`,values:{path:t}}):h({id:`9ieZhu`,values:{path:t}}),children:(0,G.jsxs)(ie,{menuKind:m,disabled:b,checked:e.placed!==null,onCheckedChange:t=>{if(t===!0&&e.placed===null){if(!U(e.root))return;n.placeAt(e.root,C)}else e.placed!==null&&n.unplaceAt?.(e.placed.path)},onSelect:Se,className:`group`,"data-testid":`skill-custom-root-${e.root}`,children:[e.root===`.agents/skills`?(0,G.jsx)(o,{host:`agents`,"aria-hidden":!0,className:`size-4`}):(0,G.jsx)(E,{"aria-hidden":!0,className:`size-4 text-muted-foreground`}),(0,G.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1.5`,children:[(0,G.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:e.display}),B(e.root).length>0?(0,G.jsx)(`span`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`skill-row-audience-custom-${e.root}`,children:B(e.root).map(t=>K(t,e.root))}):null,!b&&e.placed!==null&&F.has(e.placed.path)?(0,G.jsx)($,{hint:h({id:`iz1LdD`}),children:(0,G.jsx)(V,{testId:`skill-drift-custom-${e.root}`})}):e.placed===null?null:(0,G.jsxs)(G.Fragment,{children:[!b&&e.placed.mode!==C?ce(e.root,e.display,e.placed.mode):null,(0,G.jsx)($,{hint:h({id:`nBgzKO`}),children:(0,G.jsx)(u,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-border/60 px-1 font-normal text-[10px] text-muted-foreground uppercase tracking-wide opacity-0 focus-visible:opacity-100 group-hover:opacity-100 hover:border-foreground/40 hover:text-foreground`,onClick:t=>{t.preventDefault(),t.stopPropagation(),n.setSource?.(e.root)},"data-testid":`skill-set-source-custom-${e.root}`,children:(0,G.jsx)(r,{id:`VNNRfN`})})})]})]})]})},e.root)}),t[0]=h,t[1]=y.data,t[2]=y.status,t[3]=g,t[4]=v,t[5]=m,t[6]=s,t[7]=c,t[8]=a,t[9]=_,t[10]=n,t[11]=b,t[12]=x,t[13]=S,t[14]=C,t[15]=w,t[16]=T,t[17]=O,t[18]=k,t[19]=A,t[20]=j}else b=t[11],x=t[12],S=t[13],C=t[14],w=t[15],T=t[16],O=t[17],k=t[18],A=t[19],j=t[20];let M;t[43]!==S||t[44]!==w.length||t[45]!==T?(M=w.length===0&&S.length===0&&T===null?(0,G.jsx)(`div`,{className:`px-2 py-1.5 text-[11px] text-muted-foreground leading-snug`,"data-testid":`skill-install-no-destinations`,children:(0,G.jsx)(r,{id:`MOAoFO`})}):null,t[43]=S,t[44]=w.length,t[45]=T,t[46]=M):M=t[46];let N;t[47]!==h||t[48]!==b||t[49]!==x||t[50]!==C||t[51]!==c||t[52]!==n?(N=x.length>0&&n.convertLocations?(0,G.jsxs)(`div`,{className:`flex items-center gap-1 px-2 pt-1 pb-1.5`,children:[(0,G.jsx)(u,{variant:`ghost`,size:`sm`,className:`h-auto whitespace-normal p-0 text-left font-normal text-[11px] text-muted-foreground leading-snug hover:bg-transparent hover:text-foreground`,onClick:e=>{e.preventDefault();let t=C===`link`?`copy`:`link`,r=x.filter(e=>e.mode!==t);if(r.length===0)return;let i=h(t===`copy`?{id:`iOAsF1`}:{id:`MS8lMS`}),a=h(t===`copy`?{id:`gZiT5e`}:{id:`PhIa-X`}),o=r.map(xe).join(`
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./AgentIconCluster-DYP1yNXm.js";import{i as s,n as c,t as l}from"./tooltip-Bz6z4_se.js";import{t as u}from"./button-DzgjsZzC.js";import{n as d}from"./dist-BGzUo_18.js";import{c as f}from"./documents-events-ddyuXdQl.js";import{n as p}from"./constants-editors-DmmORwNP.js";import{n as m,r as h,t as g}from"./skill-targets-schema-D6kA7J61.js";import{t as _}from"./createLucideIcon-DdBzwsHe.js";import{a as v,f as y,i as b,m as x,n as S,o as C,p as w,u as T}from"./dropdown-menu-5XqyQTVx.js";import{t as E}from"./folder-QqUoFRPR.js";import"./constants-skills-BLHVRW90.js";import{i as ee,l as te,n as D,r as O}from"./skill-scope-DOTLd4gL.js";import{a as k,c as A,i as j,l as M,n as N,o as P,s as F,u as I}from"./context-menu-B5MxEep2.js";import{F as L,S as ne,j as R,x as z}from"./skills-api-zXSg3eSX.js";import{t as B}from"./use-skills-B2fLFrq6.js";import{t as V}from"./ChangedOutsideBadge-DhpGZlDx.js";var H=_(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),U=e(n(),1),W=a(),G=t();function K(e){let t=(0,W.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,G.jsx)(j,{...r}):(0,G.jsx)(b,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function re(e){let t=(0,W.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,G.jsx)(k,{...r}):(0,G.jsx)(v,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ie(e){let t=(0,W.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,G.jsx)(N,{...r}):(0,G.jsx)(S,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ae(e){let t=(0,W.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,G.jsx)(P,{...r}):(0,G.jsx)(C,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function oe(e){let t=(0,W.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,G.jsx)(F,{...r}):(0,G.jsx)(T,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function se(e){let t=(0,W.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,G.jsx)(A,{...r}):(0,G.jsx)(y,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ce(e){let t=(0,W.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,G.jsx)(M,{...r}):(0,G.jsx)(w,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function le(e){let t=(0,W.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,G.jsx)(I,{...r}):(0,G.jsx)(x,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}var q=Object.freeze({hosts:null,source:null}),J=new Map,Y=new Map;function X(e,t){return`${e}:${t}`}function Z(e){return J.get(e)??q}function ue(e,t){let n=Y.get(e)??new Set;return Y.set(e,n),n.add(t),()=>{n.delete(t),n.size===0&&Y.delete(e)}}function Q(e,t){let n=Z(e),r={...n,...t};if(!(r.hosts===n.hosts&&r.source===n.source)){r.hosts===null&&r.source===null?J.delete(e):J.set(e,r);for(let t of Y.get(e)??[])t()}}var de=g.options,fe=m.options,pe=`.agents/`;function me({skill:e,allSkills:t,hostSet:n,sourceHostOverlay:r,linkMode:i}){let a=t=>e?`${te(t,e.scope)}/${e.name}`:null,o=e?.hubOffered??(e&&t!==null?t.find(t=>t.scope===e.scope)?.hubOffered:void 0),s=e!==void 0&&(o===!0||(e.hosts??[]).includes(`agents`)||t?.some(t=>t.scope===e.scope&&(t.hosts.includes(`agents`)||t.path.startsWith(pe)))),c=e?.hostAliases??(e&&t!==null?Object.assign({},...t.filter(t=>t.scope===e.scope).map(e=>e.hostAliases??{})):{}),l=e?.installableEditors??(e&&t!==null?t.find(t=>t.scope===e.scope)?.installableEditors:void 0),u=l?new Set(l):null,d=e?.scope===`global`?fe:de,f=(s?[...d,`agents`]:d).filter(e=>!(e in c)).filter(e=>e===`agents`||u===null||u.has(e)||n.has(e)),p=new Set(f.map(e=>a(e))),m=e?.scope===`global`?`~/`:``,h=e?.path?.includes(`/`)?`${m}${e.path.replace(/\/SKILL\.mdx?$/i,``)}`:null,g=h!==null&&!p.has(h)?h:null,_=g===null?r??e?.hosts?.[0]:void 0,v=new Set(e?.conflictHosts??[]),y=new Set(e?.driftPaths??[]),b=new Set(e?.symlinkedHosts??[]),x=[...[...n].filter(e=>e!==_&&!(e in c)&&!v.has(e)&&!e.includes(`/`)).map(e=>({target:e,display:a(e)??e,mode:b.has(e)?`link`:`copy`})),...(e?.customPlacements??[]).map(e=>({target:O(e),display:`${m}${e.path}`,mode:e.mode}))],S=x.map(e=>e.mode),C=S.filter(e=>e===`link`).length,w=S.length===0?i?`link`:`copy`:C*2>=S.length?`link`:`copy`,T=new Map((e?.customPlacements??[]).map(e=>[O(e),e])),E=new Set(T.keys());if(t!==null&&e){for(let n of t)if(n.scope===e.scope)for(let e of n.customPlacements??[]){let t=O(e);t!==``&&E.add(t)}}return{pathFor:a,aliases:c,rows:f,sourceRow:g,sourceHost:_,conflicted:v,drifted:y,linked:b,expectedMode:w,convertible:x,customRootRows:e===void 0?[]:[...E].sort().map(t=>({root:t,display:`${m}${t}/${e.name}`,placed:T.get(t)??null})).filter(e=>!p.has(e.display)&&e.display!==h&&!(e.root in c))}}var he=`min-w-[24rem]`;function ge(e,t){let n=(0,W.c)(45),r=t.installingName===e.name,i=(0,U.useRef)(e),[a,o]=(0,U.useState)(!1),s=(0,U.useRef)(!1),c,l;n[0]===r?(c=n[1],l=n[2]):(c=()=>{s.current&&!r&&o(!0),s.current=r},l=[r],n[0]=r,n[1]=c,n[2]=l),(0,U.useEffect)(c,l);let u,f;n[3]===e?(u=n[4],f=n[5]):(u=()=>{e!==i.current&&(i.current=e,o(!1))},f=[e],n[3]=e,n[4]=u,n[5]=f),(0,U.useEffect)(u,f);let p=r||a,m;n[6]!==e.name||n[7]!==e.scope?(m=X(e.scope,e.name),n[6]=e.name,n[7]=e.scope,n[8]=m):m=n[8];let g=m,_,v;n[9]===g?(_=n[10],v=n[11]):(_=e=>ue(g,e),v=()=>Z(g),n[9]=g,n[10]=_,n[11]=v);let y=(0,U.useSyncExternalStore)(_,v),b=y.hosts,x=y.source,S,C;n[12]!==x||n[13]!==g||n[14]!==e.hosts?(S=()=>{x!==null&&e.hosts[0]===x&&Q(g,{source:null})},C=[e.hosts,x,g],n[12]=x,n[13]=g,n[14]=e.hosts,n[15]=S,n[16]=C):(S=n[15],C=n[16]),(0,U.useEffect)(S,C);let w=e.linkMode===!0,T=b??e.hosts,E;n[17]===T?E=n[18]:(E=new Set(T),n[17]=T,n[18]=E);let ee=E,te=b?b.length>0:e.installed,D=(0,U.useRef)(e.hosts),O,k;n[19]!==b||n[20]!==e.hosts?(O=()=>{b===null&&(D.current=e.hosts)},k=[b,e.hosts],n[19]=b,n[20]=e.hosts,n[21]=O,n[22]=k):(O=n[21],k=n[22]),(0,U.useEffect)(O,k);let A;n[23]===e.hosts?A=n[24]:(A=[...e.hosts].sort().join(`,`),n[23]=e.hosts,n[24]=A);let j=A,M,N;n[25]!==g||n[26]!==j?(M=()=>{let e=Z(g).hosts;e&&[...e].sort().join(`,`)===j&&Q(g,{hosts:null})},N=[j,g],n[25]=g,n[26]=j,n[27]=M,n[28]=N):(M=n[27],N=n[28]),(0,U.useEffect)(M,N);let P=(0,U.useRef)(null),F=(0,U.useRef)(null),I,ne;n[29]===Symbol.for(`react.memo_cache_sentinel`)?(I=()=>()=>{P.current&&clearTimeout(P.current),F.current?.(),F.current=null},ne=[],n[29]=I,n[30]=ne):(I=n[29],ne=n[30]),(0,U.useEffect)(I,ne);let B;n[31]!==t||n[32]!==g||n[33]!==e?(B=function(n,r){D.current=n,Q(g,{hosts:n}),P.current&&clearTimeout(P.current);let i=async()=>{F.current=null,P.current=null;let r=await t.install(e,n.filter(h));if(!r.ok){Q(g,{hosts:null});return}D.current=[...r.hosts],Q(g,{hosts:[...r.hosts]})};r?(F.current=()=>void i(),P.current=setTimeout(()=>void i(),350)):(F.current=null,i())},n[31]=t,n[32]=g,n[33]=e,n[34]=B):B=n[34];let V=B,H;return n[35]!==t||n[36]!==V||n[37]!==ee||n[38]!==te||n[39]!==p||n[40]!==x||n[41]!==g||n[42]!==w||n[43]!==e?(H={hostSet:ee,installed:te,installing:p,toggleEditor(e,t){let n=new Set(D.current);t?n.add(e):n.delete(e),V([...n],!0)},installAll(){let t=e.scope===`global`?fe:de,n=D.current.filter(e=>!t.includes(e)),r=e.installableEditors??t,i=t.filter(e=>r.includes(e)||D.current.includes(e));V([...n,...i],!1)},linkMode:w,sourceHost:x??e.hosts[0],placeAt(n,r){t.runLocationWrite(e,()=>z({scope:e.scope,name:e.name,dir:n,mode:r})).then(ve)},unplaceAt(n){t.runLocationWrite(e,()=>L({scope:e.scope,name:e.name,path:n})).then(_e)},setSource(n){Q(g,{source:n}),t.runLocationWrite(e,()=>R({scope:e.scope,name:e.name,target:n})).then(e=>{e.ok||(Q(g,{source:null}),d.error(e.error))})},convertLocation(n,r){t.convertLocations(e,[{target:n,mode:r}])},convertLocations(n){t.convertLocations(e,n)}},n[35]=t,n[36]=V,n[37]=ee,n[38]=te,n[39]=p,n[40]=x,n[41]=g,n[42]=w,n[43]=e,n[44]=H):H=n[44],H}function _e(e){e.ok||d.error(e.error)}function ve(e){e.ok||d.error(e.error)}function $(e){let t=(0,W.c)(7),{hint:n,children:r}=e,i;t[0]===r?i=t[1]:(i=(0,G.jsx)(s,{asChild:!0,children:r}),t[0]=r,t[1]=i);let a;t[2]===n?a=t[3]:(a=(0,G.jsx)(c,{side:`right`,className:`max-w-xs`,children:n}),t[2]=n,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=(0,G.jsxs)(l,{children:[i,a]}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function ye(e){let t=(0,W.c)(77),{toggles:n,skill:a,onResolveFork:s,onRunStart:c,menuKind:l}=e,m=l===void 0?`dropdown`:l,{_:h}=i(),{hostSet:g,toggleEditor:_,installAll:v}=n,y=B(),b,x,S,C,w,T,O,k,A,j;if(t[0]!==h||t[1]!==y.data||t[2]!==y.status||t[3]!==g||t[4]!==v||t[5]!==m||t[6]!==s||t[7]!==c||t[8]!==a||t[9]!==_||t[10]!==n){let{pathFor:e,aliases:i,rows:l,sourceRow:M,sourceHost:N,conflicted:P,drifted:F,linked:I,expectedMode:L,convertible:R,customRootRows:z}=me({skill:a,allSkills:y.status===`ready`?y.data:null,hostSet:g,sourceHostOverlay:n.sourceHost,linkMode:n.linkMode});w=l,T=M,C=L,x=R,S=z;let B=e=>D(i,e),H=Ee,U=e=>{let t=B(e);return t.length===0?!0:window.confirm(h({id:`Uobeu9`,values:{0:t.map(H).join(`, `),rootRel:e}}))},W;t[21]!==h||t[22]!==a?(W=(e,t)=>{let n=e.includes(`/`)?e:te(e,a?.scope??`project`);return(0,G.jsx)($,{hint:h({id:`0dslv8`,values:{0:H(e),1:H(e),2:a?.name??``,poolRootRel:t,subRoot:n}}),children:(0,G.jsx)(u,{variant:`ghost`,size:`sm`,className:`h-4 shrink-0 px-0`,"aria-label":h({id:`G6Lrs_`,values:{0:H(e)}}),onClick:r=>{r.preventDefault(),r.stopPropagation(),window.confirm(h({id:`iiqOKM`,values:{0:H(e),1:a.name,2:H(e),subRoot:n,poolRootRel:t}}))&&ne({scope:a.scope,root:n,action:`unlink`,exclude:[a.name]}).then(e=>{e.ok?f():d.error(h({id:`PRgIJh`,values:{0:e.error,subRoot:n}}))})},"data-testid":`skill-audience-unfollow-${e}`,children:(0,G.jsx)(o,{host:e,"aria-hidden":!0,className:`size-3.5`})})},e)},t[21]=h,t[22]=a,t[23]=W):W=t[23];let K=W;b=n.installing;let re=ee(a),oe=Te,se;t[24]!==h||t[25]!==c||t[26]!==n?(se=(e,t,i)=>{let a=i===`link`?`copy`:`link`;return(0,G.jsx)($,{hint:h(i===`link`?{id:`FeXcUS`,values:{display:t}}:{id:`ugQcJX`,values:{display:t}}),children:(0,G.jsx)(u,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-yellow-500/40 bg-yellow-500/10 px-1 font-normal text-[10px] text-yellow-600 uppercase tracking-wide hover:bg-yellow-500/20`,onClick:r=>{r.preventDefault(),r.stopPropagation(),window.confirm(h(a===`link`?{id:`m0eHej`,values:{display:t}}:{id:`HbcQYf`,values:{display:t}}))&&(c?.(),n.convertLocation?.(e,a))},"data-testid":`skill-convert-${e}`,children:i===`link`?(0,G.jsx)(r,{id:`uUCrBv`}):(0,G.jsx)(r,{id:`iaPtht`})})})},t[24]=h,t[25]=c,t[26]=n,t[27]=se):se=t[27];let ce=se,le;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,G.jsx)(r,{id:`npcziF`}),t[28]=le):le=t[28];let q;t[29]===h?q=t[30]:(q=h({id:`6f_UX4`}),t[29]=h,t[30]=q);let J;t[31]===v?J=t[32]:(J=()=>v(),t[31]=v,t[32]=J);let Y;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,G.jsx)(r,{id:`N40H-G`}),t[33]=Y):Y=t[33];let X;t[34]!==b||t[35]!==J?(X=(0,G.jsx)(u,{variant:`ghost`,size:`sm`,className:`h-5 px-1.5 font-normal text-[11px] text-muted-foreground hover:text-foreground`,disabled:b,onClick:J,"data-testid":`skill-install-all`,children:Y}),t[34]=b,t[35]=J,t[36]=X):X=t[36];let Z;t[37]!==q||t[38]!==X?(Z=(0,G.jsx)($,{hint:q,children:X}),t[37]=q,t[38]=X,t[39]=Z):Z=t[39],t[40]!==m||t[41]!==Z?(O=(0,G.jsxs)(ae,{menuKind:m,className:`flex items-center justify-between gap-2`,children:[le,Z]}),t[40]=m,t[41]=Z,t[42]=O):O=t[42],k=T===null?null:(0,G.jsx)($,{hint:h({id:`pXB6SL`}),children:(0,G.jsxs)(ie,{menuKind:m,disabled:b,checked:!0,onSelect:we,"data-testid":`skill-source-row`,children:[(0,G.jsx)(E,{"aria-hidden":!0,className:`size-4 text-muted-foreground`}),(0,G.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1.5`,children:[(0,G.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:T}),(()=>{let e=oe(T).split(`/`).slice(0,-1).join(`/`),t=B(e);return t.length>0?(0,G.jsx)(`span`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`skill-row-audience-source`,children:t.map(t=>K(t,e))}):null})(),(0,G.jsx)(`span`,{className:`inline-flex h-5 shrink-0 items-center rounded border border-border/60 px-1 text-[10px] uppercase tracking-wide text-muted-foreground`,children:(0,G.jsx)(r,{id:`tiFPjk`})})]})]})}),A=w.map(t=>{let i=e(t),c=t===`agents`?`.agents`:p[t],l=oe(i).split(`/`).slice(0,-1).join(`/`),d=B(l);return(0,G.jsx)($,{hint:P.has(t)?h({id:`8HvJlU`,values:{0:i??c}}):t===N?i?h({id:`ssk6rl`,values:{path:i}}):c:g.has(t)?h(i?{id:`9ieZhu`,values:{path:i}}:{id:`n3T3EE`,values:{label:c}}):re?.editor===t?h({id:`_3S4Ql`,values:{0:a?.name??``,1:re.plugin,2:i??c,label:c}}):h(i?N===void 0?{id:`xk133d`,values:{path:i}}:C===`link`?{id:`1LtA5r`,values:{path:i}}:{id:`opPbzN`,values:{path:i}}:{id:`Pp0Vgd`,values:{label:c}}),children:(0,G.jsxs)(ie,{menuKind:m,disabled:b,checked:g.has(t),onCheckedChange:e=>{P.has(t)||e===!0&&!U(l)||_(t,e===!0)},onSelect:Ce,className:`group`,"data-testid":`skill-install-editor-${t}`,children:[(0,G.jsx)(o,{host:t,"aria-hidden":!0,className:`size-4`}),(0,G.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1.5`,children:[(0,G.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:i??c}),d.length>0?(0,G.jsx)(`span`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`skill-row-audience-${t}`,children:d.map(e=>K(e,l))}):null,re?.editor===t&&!g.has(t)?(0,G.jsx)(`span`,{className:`inline-flex h-5 shrink-0 items-center rounded border border-border/60 px-1 text-[10px] uppercase tracking-wide text-muted-foreground`,"data-testid":`skill-row-plugin-covered-${t}`,children:(0,G.jsx)(r,{id:`scRzTw`})}):null,P.has(t)?(0,G.jsx)($,{hint:h({id:`_O7dJS`}),children:(0,G.jsx)(u,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-yellow-500/40 bg-yellow-500/10 px-1 text-[10px] text-yellow-600 uppercase tracking-wide hover:bg-yellow-500/20`,onClick:e=>{e.preventDefault(),s?.(t)},"data-testid":`skill-fork-chip-${t}`,children:(0,G.jsx)(r,{id:`jng7Ko`})})}):t===N?(0,G.jsx)(`span`,{className:`inline-flex h-5 shrink-0 items-center rounded border border-border/60 px-1 text-[10px] uppercase tracking-wide text-muted-foreground`,children:(0,G.jsx)(r,{id:`tiFPjk`})}):g.has(t)&&a?.hosts?(0,G.jsxs)(G.Fragment,{children:[!b&&(I.has(t)?`link`:`copy`)!==C?ce(t,i??c,I.has(t)?`link`:`copy`):null,(0,G.jsx)($,{hint:h({id:`nBgzKO`}),children:(0,G.jsx)(u,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-border/60 px-1 font-normal text-[10px] text-muted-foreground uppercase tracking-wide opacity-0 focus-visible:opacity-100 group-hover:opacity-100 hover:border-foreground/40 hover:text-foreground`,onClick:e=>{e.preventDefault(),e.stopPropagation(),n.setSource?.(t)},"data-testid":`skill-set-source-${t}`,children:(0,G.jsx)(r,{id:`VNNRfN`})})})]}):null,!b&&F.has(oe(i))?(0,G.jsx)($,{hint:h({id:`iz1LdD`}),children:(0,G.jsx)(V,{testId:`skill-drift-${t}`})}):null]})]})},t)}),j=S.map(e=>{let t=e.display;return(0,G.jsx)($,{hint:e.placed===null?h(N===void 0?{id:`xk133d`,values:{path:t}}:C===`link`?{id:`1LtA5r`,values:{path:t}}:{id:`opPbzN`,values:{path:t}}):h({id:`9ieZhu`,values:{path:t}}),children:(0,G.jsxs)(ie,{menuKind:m,disabled:b,checked:e.placed!==null,onCheckedChange:t=>{if(t===!0&&e.placed===null){if(!U(e.root))return;n.placeAt(e.root,C)}else e.placed!==null&&n.unplaceAt?.(e.placed.path)},onSelect:Se,className:`group`,"data-testid":`skill-custom-root-${e.root}`,children:[e.root===`.agents/skills`?(0,G.jsx)(o,{host:`agents`,"aria-hidden":!0,className:`size-4`}):(0,G.jsx)(E,{"aria-hidden":!0,className:`size-4 text-muted-foreground`}),(0,G.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1.5`,children:[(0,G.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:e.display}),B(e.root).length>0?(0,G.jsx)(`span`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`skill-row-audience-custom-${e.root}`,children:B(e.root).map(t=>K(t,e.root))}):null,!b&&e.placed!==null&&F.has(e.placed.path)?(0,G.jsx)($,{hint:h({id:`iz1LdD`}),children:(0,G.jsx)(V,{testId:`skill-drift-custom-${e.root}`})}):e.placed===null?null:(0,G.jsxs)(G.Fragment,{children:[!b&&e.placed.mode!==C?ce(e.root,e.display,e.placed.mode):null,(0,G.jsx)($,{hint:h({id:`nBgzKO`}),children:(0,G.jsx)(u,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-border/60 px-1 font-normal text-[10px] text-muted-foreground uppercase tracking-wide opacity-0 focus-visible:opacity-100 group-hover:opacity-100 hover:border-foreground/40 hover:text-foreground`,onClick:t=>{t.preventDefault(),t.stopPropagation(),n.setSource?.(e.root)},"data-testid":`skill-set-source-custom-${e.root}`,children:(0,G.jsx)(r,{id:`VNNRfN`})})})]})]})]})},e.root)}),t[0]=h,t[1]=y.data,t[2]=y.status,t[3]=g,t[4]=v,t[5]=m,t[6]=s,t[7]=c,t[8]=a,t[9]=_,t[10]=n,t[11]=b,t[12]=x,t[13]=S,t[14]=C,t[15]=w,t[16]=T,t[17]=O,t[18]=k,t[19]=A,t[20]=j}else b=t[11],x=t[12],S=t[13],C=t[14],w=t[15],T=t[16],O=t[17],k=t[18],A=t[19],j=t[20];let M;t[43]!==S||t[44]!==w.length||t[45]!==T?(M=w.length===0&&S.length===0&&T===null?(0,G.jsx)(`div`,{className:`px-2 py-1.5 text-[11px] text-muted-foreground leading-snug`,"data-testid":`skill-install-no-destinations`,children:(0,G.jsx)(r,{id:`MOAoFO`})}):null,t[43]=S,t[44]=w.length,t[45]=T,t[46]=M):M=t[46];let N;t[47]!==h||t[48]!==b||t[49]!==x||t[50]!==C||t[51]!==c||t[52]!==n?(N=x.length>0&&n.convertLocations?(0,G.jsxs)(`div`,{className:`flex items-center gap-1 px-2 pt-1 pb-1.5`,children:[(0,G.jsx)(u,{variant:`ghost`,size:`sm`,className:`h-auto whitespace-normal p-0 text-left font-normal text-[11px] text-muted-foreground leading-snug hover:bg-transparent hover:text-foreground`,onClick:e=>{e.preventDefault();let t=C===`link`?`copy`:`link`,r=x.filter(e=>e.mode!==t);if(r.length===0)return;let i=h(t===`copy`?{id:`iOAsF1`}:{id:`MS8lMS`}),a=h(t===`copy`?{id:`gZiT5e`}:{id:`PhIa-X`}),o=r.map(xe).join(`
2
2
  `);window.confirm(`${i}\n\n${a}\n\n${o}\n\n${h({id:`Cu6GXQ`})}`)&&(c?.(),n.convertLocations?.(r.map(e=>({target:e.target,mode:t}))))},disabled:b,"data-testid":`skill-convert-all`,children:C===`link`?(0,G.jsx)(r,{id:`rcJmK8`}):(0,G.jsx)(r,{id:`LBv_TR`})}),(0,G.jsx)($,{hint:h({id:`0J6nhG`}),children:(0,G.jsx)(u,{variant:`ghost`,size:`sm`,"aria-label":h({id:`qJSo0_`}),className:`size-4 shrink-0 rounded-full border border-border/60 p-0 font-normal text-[9px] text-muted-foreground hover:border-foreground/40 hover:bg-transparent hover:text-foreground`,onClick:be,"data-testid":`skill-convert-all-help`,children:`?`})})]}):null,t[47]=h,t[48]=b,t[49]=x,t[50]=C,t[51]=c,t[52]=n,t[53]=N):N=t[53];let P;t[54]===m?P=t[55]:(P=(0,G.jsx)(oe,{menuKind:m}),t[54]=m,t[55]=P);let F;t[56]===h?F=t[57]:(F=h({id:`5ymuTA`}),t[56]=h,t[57]=F);let I;t[58]===a?.scope?I=t[59]:(I=()=>{window.location.hash=a?.scope===`global`?`#settings/user-skills`:`#settings/skills`},t[58]=a?.scope,t[59]=I);let L,R;t[60]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,G.jsx)(H,{"aria-hidden":!0}),R=(0,G.jsx)(r,{id:`ZBF9fn`}),t[60]=L,t[61]=R):(L=t[60],R=t[61]);let z;t[62]!==m||t[63]!==I?(z=(0,G.jsxs)(re,{menuKind:m,onSelect:I,children:[L,R]}),t[62]=m,t[63]=I,t[64]=z):z=t[64];let U;t[65]!==z||t[66]!==F?(U=(0,G.jsx)($,{hint:F,children:z}),t[65]=z,t[66]=F,t[67]=U):U=t[67];let K;return t[68]!==U||t[69]!==O||t[70]!==k||t[71]!==A||t[72]!==j||t[73]!==M||t[74]!==N||t[75]!==P?(K=(0,G.jsxs)(G.Fragment,{children:[O,k,A,j,M,N,P,U]}),t[68]=U,t[69]=O,t[70]=k,t[71]=A,t[72]=j,t[73]=M,t[74]=N,t[75]=P,t[76]=K):K=t[76],K}function be(e){return e.preventDefault()}function xe(e){return e.display}function Se(e){return e.preventDefault()}function Ce(e){return e.preventDefault()}function we(e){return e.preventDefault()}function Te(e){return(e??``).replace(/^~\//,``)}function Ee(e){return e===`agents`?`.agents`:p[e]??e}export{de as a,ae as c,ce as d,le as f,fe as i,oe as l,ye as n,K as o,H as p,ge as r,re as s,he as t,se as u};
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SkillUpdateConflictDialog-D_oqmK3K.js","./dist-Nvb76hAm.js","./chunk-CYidjpOJ.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js","./pierre-theme-DzTcpkj5.js","./preload-helper-Chd9yIcd.js","./engine-compile-DCFDOxYT.js","./lib-BiDTxxNs.js","./ccount-DGTHxXcy.js","./lib-DjmHwbg0.js","./space-separated-tokens-BMeAno6f.js","./lib-qLdVx2Nx.js","./ok-syntax-theme-DvmmMFpb.js","./MultiFileDiff-BFbTHRMN.js","./compiler-runtime-BfE3aGVn.js","./button-DzgjsZzC.js","./dist-CSCUSbQc.js","./dist-BsJYDohW.js","./bundle-mjs-SHeFpKGC.js","./utils-CPqDy6Hr.js","./dialog-BJEjKJjL.js","./electron-drag-strip-D9GZhMg_.js","./dist-DTFuvKje.js","./react-dom-DPxgxlDT.js","./dist-CxbWbOvU.js","./es2015-Dtr4fzLT.js","./x-DM2drskU.js","./createLucideIcon-DdBzwsHe.js"])))=>i.map(i=>d[i]);
2
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{n as i,r as a}from"./dist-Nvb76hAm.js";import{t as o}from"./compiler-runtime-BfE3aGVn.js";import{i as s,n as c,t as l}from"./tooltip-DBqLYfio.js";import{t as u}from"./switch-BKZTXkzu.js";import{t as d}from"./button-DzgjsZzC.js";import{t as f}from"./arrow-up-right-nJaICi16.js";import{t as p}from"./spinner-Bx8xD6f8.js";import{t as m}from"./refresh-cw-CC7UZEnZ.js";import{t as h}from"./undo-2-xEF_s_Io.js";import{t as g}from"./use-skill-origin-BAc45a3e.js";var _=o(),v=e(r(),1),y=n(),b=(0,v.lazy)(async()=>({default:(await t(()=>import(`./SkillUpdateConflictDialog-D_oqmK3K.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28]),import.meta.url)).SkillUpdateConflictDialog}));function x(e){let t=(0,_.c)(48),{scope:n,name:r}=e,{_:o}=a(),x;t[0]!==r||t[1]!==n?(x={scope:n,name:r},t[0]=r,t[1]=n,t[2]=x):x=t[2];let{origin:S,github:C,displaySource:w,importedTitle:T,canReimport:E,updateAvailable:D,modified:O,autoUpdate:k,gitTracked:A,setAutoUpdate:j,revertable:M,reimport:N,reimporting:P,previewUpdate:F,revert:I,reverting:L}=g(x),[R,z]=(0,v.useState)(null),B;t[3]!==O||t[4]!==F||t[5]!==N?(B=async function(){if(O){let e=await F();e&&z(e);return}await N()},t[3]=O,t[4]=F,t[5]=N,t[6]=B):B=t[6];let V=B,H;t[7]===N?H=t[8]:(H=async function(){await N(),z(null)},t[7]=N,t[8]=H);let U=H;if(!S)return null;let W;t[9]!==w||t[10]!==C||t[11]!==T?(W=C?(0,y.jsxs)(`a`,{href:C,target:`_blank`,rel:`noreferrer`,title:T??void 0,className:`hidden min-w-0 max-w-48 items-center gap-1 hover:text-foreground @xl/toolbar:flex`,children:[(0,y.jsx)(`span`,{className:`truncate`,children:w}),(0,y.jsx)(f,{className:`size-3 shrink-0`,"aria-hidden":!0})]}):(0,y.jsx)(`span`,{title:T??void 0,className:`hidden min-w-0 max-w-48 truncate @xl/toolbar:inline`,children:w}),t[9]=w,t[10]=C,t[11]=T,t[12]=W):W=t[12];let G;t[13]!==o||t[14]!==k||t[15]!==E||t[16]!==A||t[17]!==j?(G=E?(0,y.jsxs)(l,{children:[(0,y.jsx)(s,{asChild:!0,children:(0,y.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1`,children:[(0,y.jsx)(`label`,{htmlFor:`skill-auto-update-switch`,className:`hidden cursor-pointer @xl/toolbar:inline`,children:(0,y.jsx)(i,{id:`2M0JF6`})}),(0,y.jsx)(u,{id:`skill-auto-update-switch`,checked:k&&!A,disabled:A,onCheckedChange:e=>void j(e===!0),"aria-label":o({id:`o9fPtM`}),className:`scale-75`})]})}),(0,y.jsx)(c,{side:`bottom`,children:A?(0,y.jsx)(i,{id:`vy_VIN`}):k?(0,y.jsx)(i,{id:`vGQxBT`}):(0,y.jsx)(i,{id:`9p_QBN`})})]}):null,t[13]=o,t[14]=k,t[15]=E,t[16]=A,t[17]=j,t[18]=G):G=t[18];let K;t[19]===O?K=t[20]:(K=O?(0,y.jsxs)(l,{children:[(0,y.jsx)(s,{asChild:!0,children:(0,y.jsx)(`span`,{className:`shrink-0 rounded-sm bg-amber-500/15 px-1.5 py-0.5 font-medium text-[11px] text-amber-700 dark:text-amber-400`,children:(0,y.jsx)(i,{id:`tgWuMB`})})}),(0,y.jsx)(c,{side:`bottom`,children:(0,y.jsx)(i,{id:`s0Iold`})})]}):null,t[19]=O,t[20]=K);let q;t[21]!==o||t[22]!==E||t[23]!==O||t[24]!==P||t[25]!==I||t[26]!==M||t[27]!==L?(q=O&&E&&M?(0,y.jsxs)(l,{children:[(0,y.jsx)(d,{variant:`ghost`,size:`sm`,onClick:()=>void I(),disabled:L||P,"aria-label":o({id:`VxLvKE`}),className:`shrink-0 gap-1 text-muted-foreground px-2 text-xs hover:text-foreground`,asChild:!0,children:(0,y.jsxs)(s,{children:[L?(0,y.jsx)(p,{icon:h,className:`size-3`,"aria-hidden":!0}):(0,y.jsx)(h,{className:`size-3`,"aria-hidden":!0}),(0,y.jsx)(`span`,{className:`hidden @xl/toolbar:inline`,children:L?(0,y.jsx)(i,{id:`fIJtam`}):(0,y.jsx)(i,{id:`jJdwCB`})})]})}),(0,y.jsx)(c,{side:`bottom`,children:(0,y.jsx)(i,{id:`XSb9HS`})})]}):null,t[21]=o,t[22]=E,t[23]=O,t[24]=P,t[25]=I,t[26]=M,t[27]=L,t[28]=q):q=t[28];let J;t[29]!==o||t[30]!==E||t[31]!==V||t[32]!==P||t[33]!==L||t[34]!==D?(J=E&&D?(0,y.jsxs)(l,{children:[(0,y.jsx)(d,{variant:`ghost`,size:`sm`,onClick:()=>void V(),disabled:P||L,"aria-label":o({id:`GidGkh`}),className:`shrink-0 gap-1 text-muted-foreground px-2 text-xs hover:text-foreground`,asChild:!0,children:(0,y.jsxs)(s,{children:[P?(0,y.jsx)(p,{icon:m,className:`size-3`,"aria-hidden":!0}):(0,y.jsx)(m,{className:`size-3`,"aria-hidden":!0}),(0,y.jsx)(`span`,{className:`hidden @xl/toolbar:inline`,children:P?(0,y.jsx)(i,{id:`JL3si7`}):(0,y.jsx)(i,{id:`EkH9pt`})})]})}),(0,y.jsx)(c,{side:`bottom`,children:(0,y.jsx)(i,{id:`GidGkh`})})]}):null,t[29]=o,t[30]=E,t[31]=V,t[32]=P,t[33]=L,t[34]=D,t[35]=J):J=t[35];let Y;t[36]!==R||t[37]!==r||t[38]!==U||t[39]!==P?(Y=R?(0,y.jsx)(v.Suspense,{fallback:null,children:(0,y.jsx)(b,{open:!0,onOpenChange:e=>{e||z(null)},skillName:r,localBody:R.localBody,upstreamBody:R.upstreamBody,applying:P,onTakeUpstream:()=>void U()})}):null,t[36]=R,t[37]=r,t[38]=U,t[39]=P,t[40]=Y):Y=t[40];let X;return t[41]!==W||t[42]!==G||t[43]!==K||t[44]!==q||t[45]!==J||t[46]!==Y?(X=(0,y.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5 text-muted-foreground text-xs`,children:[W,G,K,q,J,Y]}),t[41]=W,t[42]=G,t[43]=K,t[44]=q,t[45]=J,t[46]=Y,t[47]=X):X=t[47],X}export{x as SkillOriginInline};
2
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{n as i,r as a}from"./dist-Nvb76hAm.js";import{t as o}from"./compiler-runtime-BfE3aGVn.js";import{i as s,n as c,t as l}from"./tooltip-Bz6z4_se.js";import{t as u}from"./switch-BKZTXkzu.js";import{t as d}from"./button-DzgjsZzC.js";import{t as f}from"./arrow-up-right-nJaICi16.js";import{t as p}from"./spinner-Bx8xD6f8.js";import{t as m}from"./refresh-cw-CC7UZEnZ.js";import{t as h}from"./undo-2-xEF_s_Io.js";import{t as g}from"./use-skill-origin-BAc45a3e.js";var _=o(),v=e(r(),1),y=n(),b=(0,v.lazy)(async()=>({default:(await t(()=>import(`./SkillUpdateConflictDialog-D_oqmK3K.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28]),import.meta.url)).SkillUpdateConflictDialog}));function x(e){let t=(0,_.c)(48),{scope:n,name:r}=e,{_:o}=a(),x;t[0]!==r||t[1]!==n?(x={scope:n,name:r},t[0]=r,t[1]=n,t[2]=x):x=t[2];let{origin:S,github:C,displaySource:w,importedTitle:T,canReimport:E,updateAvailable:D,modified:O,autoUpdate:k,gitTracked:A,setAutoUpdate:j,revertable:M,reimport:N,reimporting:P,previewUpdate:F,revert:I,reverting:L}=g(x),[R,z]=(0,v.useState)(null),B;t[3]!==O||t[4]!==F||t[5]!==N?(B=async function(){if(O){let e=await F();e&&z(e);return}await N()},t[3]=O,t[4]=F,t[5]=N,t[6]=B):B=t[6];let V=B,H;t[7]===N?H=t[8]:(H=async function(){await N(),z(null)},t[7]=N,t[8]=H);let U=H;if(!S)return null;let W;t[9]!==w||t[10]!==C||t[11]!==T?(W=C?(0,y.jsxs)(`a`,{href:C,target:`_blank`,rel:`noreferrer`,title:T??void 0,className:`hidden min-w-0 max-w-48 items-center gap-1 hover:text-foreground @xl/toolbar:flex`,children:[(0,y.jsx)(`span`,{className:`truncate`,children:w}),(0,y.jsx)(f,{className:`size-3 shrink-0`,"aria-hidden":!0})]}):(0,y.jsx)(`span`,{title:T??void 0,className:`hidden min-w-0 max-w-48 truncate @xl/toolbar:inline`,children:w}),t[9]=w,t[10]=C,t[11]=T,t[12]=W):W=t[12];let G;t[13]!==o||t[14]!==k||t[15]!==E||t[16]!==A||t[17]!==j?(G=E?(0,y.jsxs)(l,{children:[(0,y.jsx)(s,{asChild:!0,children:(0,y.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1`,children:[(0,y.jsx)(`label`,{htmlFor:`skill-auto-update-switch`,className:`hidden cursor-pointer @xl/toolbar:inline`,children:(0,y.jsx)(i,{id:`2M0JF6`})}),(0,y.jsx)(u,{id:`skill-auto-update-switch`,checked:k&&!A,disabled:A,onCheckedChange:e=>void j(e===!0),"aria-label":o({id:`o9fPtM`}),className:`scale-75`})]})}),(0,y.jsx)(c,{side:`bottom`,children:A?(0,y.jsx)(i,{id:`vy_VIN`}):k?(0,y.jsx)(i,{id:`vGQxBT`}):(0,y.jsx)(i,{id:`9p_QBN`})})]}):null,t[13]=o,t[14]=k,t[15]=E,t[16]=A,t[17]=j,t[18]=G):G=t[18];let K;t[19]===O?K=t[20]:(K=O?(0,y.jsxs)(l,{children:[(0,y.jsx)(s,{asChild:!0,children:(0,y.jsx)(`span`,{className:`shrink-0 rounded-sm bg-amber-500/15 px-1.5 py-0.5 font-medium text-[11px] text-amber-700 dark:text-amber-400`,children:(0,y.jsx)(i,{id:`tgWuMB`})})}),(0,y.jsx)(c,{side:`bottom`,children:(0,y.jsx)(i,{id:`s0Iold`})})]}):null,t[19]=O,t[20]=K);let q;t[21]!==o||t[22]!==E||t[23]!==O||t[24]!==P||t[25]!==I||t[26]!==M||t[27]!==L?(q=O&&E&&M?(0,y.jsxs)(l,{children:[(0,y.jsx)(d,{variant:`ghost`,size:`sm`,onClick:()=>void I(),disabled:L||P,"aria-label":o({id:`VxLvKE`}),className:`shrink-0 gap-1 text-muted-foreground px-2 text-xs hover:text-foreground`,asChild:!0,children:(0,y.jsxs)(s,{children:[L?(0,y.jsx)(p,{icon:h,className:`size-3`,"aria-hidden":!0}):(0,y.jsx)(h,{className:`size-3`,"aria-hidden":!0}),(0,y.jsx)(`span`,{className:`hidden @xl/toolbar:inline`,children:L?(0,y.jsx)(i,{id:`fIJtam`}):(0,y.jsx)(i,{id:`jJdwCB`})})]})}),(0,y.jsx)(c,{side:`bottom`,children:(0,y.jsx)(i,{id:`XSb9HS`})})]}):null,t[21]=o,t[22]=E,t[23]=O,t[24]=P,t[25]=I,t[26]=M,t[27]=L,t[28]=q):q=t[28];let J;t[29]!==o||t[30]!==E||t[31]!==V||t[32]!==P||t[33]!==L||t[34]!==D?(J=E&&D?(0,y.jsxs)(l,{children:[(0,y.jsx)(d,{variant:`ghost`,size:`sm`,onClick:()=>void V(),disabled:P||L,"aria-label":o({id:`GidGkh`}),className:`shrink-0 gap-1 text-muted-foreground px-2 text-xs hover:text-foreground`,asChild:!0,children:(0,y.jsxs)(s,{children:[P?(0,y.jsx)(p,{icon:m,className:`size-3`,"aria-hidden":!0}):(0,y.jsx)(m,{className:`size-3`,"aria-hidden":!0}),(0,y.jsx)(`span`,{className:`hidden @xl/toolbar:inline`,children:P?(0,y.jsx)(i,{id:`JL3si7`}):(0,y.jsx)(i,{id:`EkH9pt`})})]})}),(0,y.jsx)(c,{side:`bottom`,children:(0,y.jsx)(i,{id:`GidGkh`})})]}):null,t[29]=o,t[30]=E,t[31]=V,t[32]=P,t[33]=L,t[34]=D,t[35]=J):J=t[35];let Y;t[36]!==R||t[37]!==r||t[38]!==U||t[39]!==P?(Y=R?(0,y.jsx)(v.Suspense,{fallback:null,children:(0,y.jsx)(b,{open:!0,onOpenChange:e=>{e||z(null)},skillName:r,localBody:R.localBody,upstreamBody:R.upstreamBody,applying:P,onTakeUpstream:()=>void U()})}):null,t[36]=R,t[37]=r,t[38]=U,t[39]=P,t[40]=Y):Y=t[40];let X;return t[41]!==W||t[42]!==G||t[43]!==K||t[44]!==q||t[45]!==J||t[46]!==Y?(X=(0,y.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5 text-muted-foreground text-xs`,children:[W,G,K,q,J,Y]}),t[41]=W,t[42]=G,t[43]=K,t[44]=q,t[45]=J,t[46]=Y,t[47]=X):X=t[47],X}export{x as SkillOriginInline};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./utils-CPqDy6Hr.js";import{n as s}from"./AgentIconCluster-Ys-JZNda.js";import{t as c}from"./dist-CSCUSbQc.js";import{t as l}from"./checkbox-CKD8LETI.js";import{t as u}from"./label-CvMpFFbN.js";import{i as d,n as ee,o as te,s as ne,t as re}from"./select-Bu4Wm3Rf.js";import{t as ie}from"./button-DzgjsZzC.js";import{n as f}from"./dist-BGzUo_18.js";import{n as ae}from"./constants-editors-DmmORwNP.js";import{t as oe}from"./spinner-Bx8xD6f8.js";import{a as se}from"./SkillInstallMenu-Do_U4WMQ.js";import{a as ce,c as le,i as ue,n as de,o as fe,s as pe,t as me}from"./dialog-BJEjKJjL.js";import{a as he,i as ge,t as _e}from"./popover-BNtf9SIu.js";import{p as ve,r as ye,t as be}from"./skill-scope-DOTLd4gL.js";import{h as xe,i as Se,p as Ce,x as we}from"./skills-api-zXSg3eSX.js";import{t as Te}from"./use-skills-B2fLFrq6.js";import{t as Ee}from"./use-skill-targets-DIBQkXNG.js";var p=a(),m=t();function h(e){let t=(0,p.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,size:i,asChild:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let s=i===void 0?`default`:i,l=a!==void 0&&a?c:`div`,u;t[5]===n?u=t[6]:(u=o(`group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl`,n),t[5]=n,t[6]=u);let d;return t[7]!==l||t[8]!==r||t[9]!==s||t[10]!==u?(d=(0,m.jsx)(l,{"data-slot":`card`,"data-size":s,className:u,...r}),t[7]=l,t[8]=r,t[9]=s,t[10]=u,t[11]=d):d=t[11],d}function g(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=o(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(`div`,{"data-slot":`card-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function _(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=o(`cn-font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(`div`,{"data-slot":`card-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function v(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=o(`text-sm text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(`div`,{"data-slot":`card-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function De(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=o(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(`div`,{"data-slot":`card-action`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Oe(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=o(`px-(--card-spacing)`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(`div`,{"data-slot":`card-content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function y(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=o(`flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(`div`,{"data-slot":`card-footer`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var b=e(n(),1);function ke(e){let t=(0,p.c)(2);if(!e.bundle)return null;let n;return t[0]===e?n=t[1]:(n=(0,m.jsx)(Ae,{...e,bundle:e.bundle}),t[0]=e,t[1]=n),n}function Ae(e){let t=(0,p.c)(118),{bundle:n,source:a,defaultScope:o,installOverride:c,onInstalled:h,onOpenChange:g,returnFocus:_}=e,{_:v}=i(),De=(0,b.useId)(),Oe=ve(),[y,ke]=(0,b.useState)(c?.scope??o),Ae;t[0]!==n.names||t[1]!==c?(Ae=()=>c?new Set(n.names):new Set,t[0]=n.names,t[1]=c,t[2]=Ae):Ae=t[2];let[x,Le]=(0,b.useState)(Ae),[S,Re]=(0,b.useState)(!1),ze;t[3]===n.descriptions?ze=t[4]:(ze=()=>new Map(Object.entries(n.descriptions??{})),t[3]=n.descriptions,t[4]=ze);let[Be,Ve]=(0,b.useState)(ze),C=Ee(),[He,Ue]=(0,b.useState)(null),We=C.state.status===`ready`?C.state.data.targets:null,Ge;t[5]!==We||t[6]!==He?(Ge=He??new Set(We??[]),t[5]=We,t[6]=He,t[7]=Ge):Ge=t[7];let w=Ge,T=Te(),Ke=T.status===`ready`?T.data.find(e=>e.scope===y)?.installableEditors:void 0,qe=se.filter(e=>!Ke||Ke.includes(e)||w.has(e)),Je;t[8]!==y||t[9]!==T.data||t[10]!==T.status?(Je=T.status===`ready`?new Set(T.data.filter(e=>e.scope===y).map(Ie)):new Set,t[8]=y,t[9]=T.data,t[10]=T.status,t[11]=Je):Je=t[11];let E=Je,Ye;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=new Set,t[12]=Ye):Ye=t[12];let[D,Xe]=(0,b.useState)(Ye),Ze=new Set;if(C.state.status===`ready`){let e;t[13]===C.state.data.folders?e=t[14]:(e=C.state.data.folders??[],t[13]=C.state.data.folders,t[14]=e);for(let t of e)t.scope===y&&(se.includes(t.host)||t.root&&Ze.add(t.root))}if(T.status===`ready`){for(let e of T.data)if(e.scope===y)for(let t of e.customPlacements??[]){let e=ye(t);e&&Ze.add(e)}}let Qe=[...Ze].sort(),$e=c!==void 0,et,tt;t[15]!==a||t[16]!==$e?(et=()=>{if($e)return;let e=new AbortController;return Se(a,e.signal).then(t=>{e.signal.aborted||!t.ok||Ve(new Map(t.skills.map(Fe)))}),()=>e.abort()},tt=[a,$e],t[15]=a,t[16]=$e,t[17]=et,t[18]=tt):(et=t[17],tt=t[18]),(0,b.useEffect)(et,tt);let{plugin:O,names:k}=n,nt;if(t[19]!==E||t[20]!==k){let e;t[22]===E?e=t[23]:(e=e=>!E.has(e),t[22]=E,t[23]=e),nt=k.filter(e),t[19]=E,t[20]=k,t[21]=nt}else nt=t[21];let A=nt,j=x.size===A.length&&A.length>0,rt;t[24]===x?rt=t[25]:(rt=function(e,t){let n=new Set(x);t?n.add(e):n.delete(e),Le(n)},t[24]=x,t[25]=rt);let it=rt,at;t[26]!==v||t[27]!==D||t[28]!==w||t[29]!==c||t[30]!==h||t[31]!==g||t[32]!==O||t[33]!==y||t[34]!==x||t[35]!==a?(at=async function(){if(Re(!0),c){let e=await c.installSelected([...x]);if(Re(!1),e===null)return;e.size>0&&h?.(e),g(!1);return}let e=await Ce({source:a,skills:[...x],scope:y,install:!1,marketplace:!0});if(!e.ok){Re(!1),f.error(v({id:`Lbl6KA`,values:{0:O??a,1:e.error}}));return}let t=e.results.map(Pe).filter(Ne),n=[...w];if(n.length>0)for(let e of t){let t=await xe({scope:y,name:e,targets:n,linkMode:!0});t.ok||f.error(v({id:`1oSHI0`,values:{0:t.error,skillName:e}}))}for(let e of D)for(let n of t){let t=await we({scope:y,name:n,dir:e,mode:`link`});t.ok||f.error(v({id:`OkC7-2`,values:{0:t.error,skillName:n,root:e}}))}Re(!1);let{imported:r,alreadyImported:i,failed:o}=e;if(o>0){let t=e.results.filter(Me).map(je).join(`, `);f.error(v({id:`cMMb6H`,values:{imported:r,failed:o,failedNames:t}}))}else r===0?f.info(v({id:`uJfwF8`})):i>0?f.success(v({id:`tkIXtS`,values:{imported:r,alreadyImported:i}})):f.success(v({id:`-kKdCC`,values:{0:O??a,imported:r}}));let s=new Map;for(let t of e.results)t.status!==`imported`&&t.status!==`already-imported`||s.set(t.requested,t.name??t.requested);s.size>0&&h?.(s),g(!1)},t[26]=v,t[27]=D,t[28]=w,t[29]=c,t[30]=h,t[31]=g,t[32]=O,t[33]=y,t[34]=x,t[35]=a,t[36]=at):at=t[36];let ot=at,st=me,M;t[37]!==S||t[38]!==g?(M=e=>{!e&&!S&&g(!1)},t[37]=S,t[38]=g,t[39]=M):M=t[39];let ct=ue,N;t[40]===_?N=t[41]:(N=e=>{_&&(e.preventDefault(),_())},t[40]=_,t[41]=N);let P;t[42]!==O||t[43]!==a?(P=(0,m.jsx)(le,{children:O?(0,m.jsx)(r,{id:`J86siq`,values:{plugin:O}}):(0,m.jsx)(r,{id:`Q-DKvr`,values:{source:a}})}),t[42]=O,t[43]=a,t[44]=P):P=t[44];let F;t[45]===O?F=t[46]:(F=(0,m.jsx)(ce,{children:O?(0,m.jsx)(r,{id:`lj4cNf`}):(0,m.jsx)(r,{id:`4mDIcg`})}),t[45]=O,t[46]=F);let I;t[47]!==P||t[48]!==F?(I=(0,m.jsxs)(pe,{children:[P,F]}),t[47]=P,t[48]=F,t[49]=I):I=t[49];let lt=de,L;t[50]!==A.length||t[51]!==x.size?(L=(0,m.jsx)(`p`,{className:`font-medium text-xs font-mono text-foreground/70 uppercase tracking-wider`,children:(0,m.jsx)(r,{id:`lUtr1r`,values:{0:x.size,1:A.length}})}),t[50]=A.length,t[51]=x.size,t[52]=L):L=t[52];let R;t[53]!==j||t[54]!==A?(R=()=>Le(j?new Set:new Set(A)),t[53]=j,t[54]=A,t[55]=R):R=t[55];let z;t[56]===j?z=t[57]:(z=j?(0,m.jsx)(r,{id:`xCJdfg`}):(0,m.jsx)(r,{id:`wgNoIs`}),t[56]=j,t[57]=z);let B;t[58]!==S||t[59]!==R||t[60]!==z?(B=(0,m.jsx)(ie,{variant:`ghost`,size:`sm`,disabled:S,onClick:R,children:z}),t[58]=S,t[59]=R,t[60]=z,t[61]=B):B=t[61];let V;t[62]!==L||t[63]!==B?(V=(0,m.jsxs)(`div`,{className:`flex items-center justify-between`,children:[L,B]}),t[62]=L,t[63]=B,t[64]=V):V=t[64];let H;if(t[65]!==S||t[66]!==Be||t[67]!==E||t[68]!==k||t[69]!==x||t[70]!==it){let e;t[72]!==S||t[73]!==Be||t[74]!==E||t[75]!==x||t[76]!==it?(e=e=>{let t=Be.get(e),n=E.has(e);return(0,m.jsxs)(u,{className:`flex cursor-pointer items-start gap-3 p-3 text-sm font-normal hover:bg-muted/40`,children:[(0,m.jsx)(l,{checked:n||x.has(e),disabled:S||n,onCheckedChange:t=>it(e,t===!0),className:`mt-0.5`}),(0,m.jsxs)(`span`,{className:`flex min-w-0 flex-col gap-0.5`,children:[(0,m.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`span`,{className:`font-mono`,children:e}),n?(0,m.jsx)(`span`,{className:`shrink-0 rounded-sm bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground uppercase tracking-wide`,children:(0,m.jsx)(r,{id:`eQkgKV`})}):null]}),t?(0,m.jsx)(`span`,{className:`text-1sm text-muted-foreground line-clamp-2`,children:t}):null]})]},e)},t[72]=S,t[73]=Be,t[74]=E,t[75]=x,t[76]=it,t[77]=e):e=t[77],H=k.map(e),t[65]=S,t[66]=Be,t[67]=E,t[68]=k,t[69]=x,t[70]=it,t[71]=H}else H=t[71];let U;t[78]===H?U=t[79]:(U=(0,m.jsx)(`div`,{className:`max-h-72 overflow-y-auto rounded-md border border-border divide-y divide-border`,children:H}),t[78]=H,t[79]=U);let W;t[80]===y?W=t[81]:(W=y===`project`?(0,m.jsx)(r,{id:`oVW7VD`}):(0,m.jsx)(r,{id:`7HY6fA`}),t[80]=y,t[81]=W);let ut=$e?null:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{"aria-hidden":!0,children:`·`}),w.size+D.size>0?(0,m.jsx)(s,{hosts:[...w,...D],iconClassName:`size-3.5`}):(0,m.jsx)(r,{id:`poAsUN`}),(0,m.jsxs)(_e,{children:[(0,m.jsx)(he,{asChild:!0,children:(0,m.jsx)(ie,{variant:`link`,size:`sm`,className:`h-auto px-1`,disabled:S,"data-testid":`plugin-bundle-change-destination`,children:(0,m.jsx)(r,{id:`o-XJ9D`})})}),(0,m.jsxs)(ge,{align:`start`,className:`flex w-72 flex-col gap-4`,children:[(0,m.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,m.jsx)(u,{htmlFor:De,children:(0,m.jsx)(r,{id:`7MSbAT`})}),(0,m.jsxs)(re,{value:y,disabled:S,onValueChange:e=>ke(e),children:[(0,m.jsx)(te,{id:De,className:`w-full`,children:(0,m.jsx)(ne,{})}),(0,m.jsx)(ee,{children:be.map(e=>(0,m.jsx)(d,{value:e,children:Oe[e]},e))})]})]}),(0,m.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,m.jsx)(u,{children:(0,m.jsx)(r,{id:`Y5la_5`})}),(0,m.jsxs)(`div`,{className:`flex flex-wrap gap-x-4 gap-y-2`,children:[qe.map(e=>(0,m.jsxs)(u,{className:`flex cursor-pointer items-center gap-2 text-sm font-normal`,children:[(0,m.jsx)(l,{checked:w.has(e),disabled:S,onCheckedChange:t=>{let n=new Set(w);t===!0?n.add(e):n.delete(e),Ue(n)}}),ae[e]??e]},e)),Qe.map(e=>(0,m.jsxs)(u,{className:`flex cursor-pointer items-center gap-2 font-normal text-sm`,children:[(0,m.jsx)(l,{checked:D.has(e),disabled:S,onCheckedChange:t=>{let n=new Set(D);t===!0?n.add(e):n.delete(e),Xe(n)}}),(0,m.jsx)(`span`,{className:`font-mono text-xs`,children:e})]},e))]})]})]})]})]}),G;t[82]!==W||t[83]!==ut?(G=(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5 text-1sm text-muted-foreground`,"data-testid":`plugin-bundle-destination`,children:[W,ut]}),t[82]=W,t[83]=ut,t[84]=G):G=t[84];let K;t[85]!==lt||t[86]!==V||t[87]!==U||t[88]!==G?(K=(0,m.jsxs)(lt,{className:`flex flex-col gap-4`,children:[V,U,G]}),t[85]=lt,t[86]=V,t[87]=U,t[88]=G,t[89]=K):K=t[89];let q;t[90]===g?q=t[91]:(q=()=>g(!1),t[90]=g,t[91]=q);let dt;t[92]===Symbol.for(`react.memo_cache_sentinel`)?(dt=(0,m.jsx)(r,{id:`dEgA5A`}),t[92]=dt):dt=t[92];let J;t[93]!==S||t[94]!==q?(J=(0,m.jsx)(ie,{variant:`outline`,disabled:S,onClick:q,children:dt}),t[93]=S,t[94]=q,t[95]=J):J=t[95];let ft=S||x.size===0,Y;t[96]===ot?Y=t[97]:(Y=()=>void ot(),t[96]=ot,t[97]=Y);let X;t[98]!==S||t[99]!==x.size?(X=S?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(oe,{"aria-hidden":`true`,className:`size-4`}),(0,m.jsx)(r,{id:`Wtw22s`})]}):x.size===0?(0,m.jsx)(r,{id:`TKQ7K-`}):(0,m.jsx)(r,{id:`9XwoPv`,values:{0:x.size}}),t[98]=S,t[99]=x.size,t[100]=X):X=t[100];let Z;t[101]!==ft||t[102]!==Y||t[103]!==X?(Z=(0,m.jsx)(ie,{"data-testid":`plugin-bundle-install`,disabled:ft,onClick:Y,children:X}),t[101]=ft,t[102]=Y,t[103]=X,t[104]=Z):Z=t[104];let Q;t[105]!==J||t[106]!==Z?(Q=(0,m.jsxs)(fe,{children:[J,Z]}),t[105]=J,t[106]=Z,t[107]=Q):Q=t[107];let $;t[108]!==ct||t[109]!==N||t[110]!==I||t[111]!==K||t[112]!==Q?($=(0,m.jsxs)(ct,{className:`sm:max-w-lg`,onCloseAutoFocus:N,children:[I,K,Q]}),t[108]=ct,t[109]=N,t[110]=I,t[111]=K,t[112]=Q,t[113]=$):$=t[113];let pt;return t[114]!==st||t[115]!==M||t[116]!==$?(pt=(0,m.jsx)(st,{open:!0,onOpenChange:M,children:$}),t[114]=st,t[115]=M,t[116]=$,t[117]=pt):pt=t[117],pt}function je(e){return e.requested}function Me(e){return e.status===`failed`||e.status===`not-found`}function Ne(e){return typeof e==`string`}function Pe(e){return e.name}function Fe(e){return[e.name,e.description]}function Ie(e){return e.name}export{v as a,_ as c,Oe as i,h as n,y as o,De as r,g as s,ke as t};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./utils-CPqDy6Hr.js";import{n as s}from"./AgentIconCluster-DYP1yNXm.js";import{t as c}from"./dist-CSCUSbQc.js";import{t as l}from"./checkbox-CKD8LETI.js";import{t as u}from"./label-CvMpFFbN.js";import{i as d,n as ee,o as te,s as ne,t as re}from"./select-pACXgFe2.js";import{t as ie}from"./button-DzgjsZzC.js";import{n as f}from"./dist-BGzUo_18.js";import{n as ae}from"./constants-editors-DmmORwNP.js";import{t as oe}from"./spinner-Bx8xD6f8.js";import{a as se}from"./SkillInstallMenu-DyKWxkEY.js";import{a as ce,c as le,i as ue,n as de,o as fe,s as pe,t as me}from"./dialog-BJEjKJjL.js";import{a as he,i as ge,t as _e}from"./popover-Mb1GgB61.js";import{p as ve,r as ye,t as be}from"./skill-scope-DOTLd4gL.js";import{h as xe,i as Se,p as Ce,x as we}from"./skills-api-zXSg3eSX.js";import{t as Te}from"./use-skills-B2fLFrq6.js";import{t as Ee}from"./use-skill-targets-DIBQkXNG.js";var p=a(),m=t();function h(e){let t=(0,p.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,size:i,asChild:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let s=i===void 0?`default`:i,l=a!==void 0&&a?c:`div`,u;t[5]===n?u=t[6]:(u=o(`group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl`,n),t[5]=n,t[6]=u);let d;return t[7]!==l||t[8]!==r||t[9]!==s||t[10]!==u?(d=(0,m.jsx)(l,{"data-slot":`card`,"data-size":s,className:u,...r}),t[7]=l,t[8]=r,t[9]=s,t[10]=u,t[11]=d):d=t[11],d}function g(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=o(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(`div`,{"data-slot":`card-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function _(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=o(`cn-font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(`div`,{"data-slot":`card-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function v(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=o(`text-sm text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(`div`,{"data-slot":`card-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function De(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=o(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(`div`,{"data-slot":`card-action`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Oe(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=o(`px-(--card-spacing)`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(`div`,{"data-slot":`card-content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function y(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=o(`flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,m.jsx)(`div`,{"data-slot":`card-footer`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var b=e(n(),1);function ke(e){let t=(0,p.c)(2);if(!e.bundle)return null;let n;return t[0]===e?n=t[1]:(n=(0,m.jsx)(Ae,{...e,bundle:e.bundle}),t[0]=e,t[1]=n),n}function Ae(e){let t=(0,p.c)(118),{bundle:n,source:a,defaultScope:o,installOverride:c,onInstalled:h,onOpenChange:g,returnFocus:_}=e,{_:v}=i(),De=(0,b.useId)(),Oe=ve(),[y,ke]=(0,b.useState)(c?.scope??o),Ae;t[0]!==n.names||t[1]!==c?(Ae=()=>c?new Set(n.names):new Set,t[0]=n.names,t[1]=c,t[2]=Ae):Ae=t[2];let[x,Le]=(0,b.useState)(Ae),[S,Re]=(0,b.useState)(!1),ze;t[3]===n.descriptions?ze=t[4]:(ze=()=>new Map(Object.entries(n.descriptions??{})),t[3]=n.descriptions,t[4]=ze);let[Be,Ve]=(0,b.useState)(ze),C=Ee(),[He,Ue]=(0,b.useState)(null),We=C.state.status===`ready`?C.state.data.targets:null,Ge;t[5]!==We||t[6]!==He?(Ge=He??new Set(We??[]),t[5]=We,t[6]=He,t[7]=Ge):Ge=t[7];let w=Ge,T=Te(),Ke=T.status===`ready`?T.data.find(e=>e.scope===y)?.installableEditors:void 0,qe=se.filter(e=>!Ke||Ke.includes(e)||w.has(e)),Je;t[8]!==y||t[9]!==T.data||t[10]!==T.status?(Je=T.status===`ready`?new Set(T.data.filter(e=>e.scope===y).map(Ie)):new Set,t[8]=y,t[9]=T.data,t[10]=T.status,t[11]=Je):Je=t[11];let E=Je,Ye;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=new Set,t[12]=Ye):Ye=t[12];let[D,Xe]=(0,b.useState)(Ye),Ze=new Set;if(C.state.status===`ready`){let e;t[13]===C.state.data.folders?e=t[14]:(e=C.state.data.folders??[],t[13]=C.state.data.folders,t[14]=e);for(let t of e)t.scope===y&&(se.includes(t.host)||t.root&&Ze.add(t.root))}if(T.status===`ready`){for(let e of T.data)if(e.scope===y)for(let t of e.customPlacements??[]){let e=ye(t);e&&Ze.add(e)}}let Qe=[...Ze].sort(),$e=c!==void 0,et,tt;t[15]!==a||t[16]!==$e?(et=()=>{if($e)return;let e=new AbortController;return Se(a,e.signal).then(t=>{e.signal.aborted||!t.ok||Ve(new Map(t.skills.map(Fe)))}),()=>e.abort()},tt=[a,$e],t[15]=a,t[16]=$e,t[17]=et,t[18]=tt):(et=t[17],tt=t[18]),(0,b.useEffect)(et,tt);let{plugin:O,names:k}=n,nt;if(t[19]!==E||t[20]!==k){let e;t[22]===E?e=t[23]:(e=e=>!E.has(e),t[22]=E,t[23]=e),nt=k.filter(e),t[19]=E,t[20]=k,t[21]=nt}else nt=t[21];let A=nt,j=x.size===A.length&&A.length>0,rt;t[24]===x?rt=t[25]:(rt=function(e,t){let n=new Set(x);t?n.add(e):n.delete(e),Le(n)},t[24]=x,t[25]=rt);let it=rt,at;t[26]!==v||t[27]!==D||t[28]!==w||t[29]!==c||t[30]!==h||t[31]!==g||t[32]!==O||t[33]!==y||t[34]!==x||t[35]!==a?(at=async function(){if(Re(!0),c){let e=await c.installSelected([...x]);if(Re(!1),e===null)return;e.size>0&&h?.(e),g(!1);return}let e=await Ce({source:a,skills:[...x],scope:y,install:!1,marketplace:!0});if(!e.ok){Re(!1),f.error(v({id:`Lbl6KA`,values:{0:O??a,1:e.error}}));return}let t=e.results.map(Pe).filter(Ne),n=[...w];if(n.length>0)for(let e of t){let t=await xe({scope:y,name:e,targets:n,linkMode:!0});t.ok||f.error(v({id:`1oSHI0`,values:{0:t.error,skillName:e}}))}for(let e of D)for(let n of t){let t=await we({scope:y,name:n,dir:e,mode:`link`});t.ok||f.error(v({id:`OkC7-2`,values:{0:t.error,skillName:n,root:e}}))}Re(!1);let{imported:r,alreadyImported:i,failed:o}=e;if(o>0){let t=e.results.filter(Me).map(je).join(`, `);f.error(v({id:`cMMb6H`,values:{imported:r,failed:o,failedNames:t}}))}else r===0?f.info(v({id:`uJfwF8`})):i>0?f.success(v({id:`tkIXtS`,values:{imported:r,alreadyImported:i}})):f.success(v({id:`-kKdCC`,values:{0:O??a,imported:r}}));let s=new Map;for(let t of e.results)t.status!==`imported`&&t.status!==`already-imported`||s.set(t.requested,t.name??t.requested);s.size>0&&h?.(s),g(!1)},t[26]=v,t[27]=D,t[28]=w,t[29]=c,t[30]=h,t[31]=g,t[32]=O,t[33]=y,t[34]=x,t[35]=a,t[36]=at):at=t[36];let ot=at,st=me,M;t[37]!==S||t[38]!==g?(M=e=>{!e&&!S&&g(!1)},t[37]=S,t[38]=g,t[39]=M):M=t[39];let ct=ue,N;t[40]===_?N=t[41]:(N=e=>{_&&(e.preventDefault(),_())},t[40]=_,t[41]=N);let P;t[42]!==O||t[43]!==a?(P=(0,m.jsx)(le,{children:O?(0,m.jsx)(r,{id:`J86siq`,values:{plugin:O}}):(0,m.jsx)(r,{id:`Q-DKvr`,values:{source:a}})}),t[42]=O,t[43]=a,t[44]=P):P=t[44];let F;t[45]===O?F=t[46]:(F=(0,m.jsx)(ce,{children:O?(0,m.jsx)(r,{id:`lj4cNf`}):(0,m.jsx)(r,{id:`4mDIcg`})}),t[45]=O,t[46]=F);let I;t[47]!==P||t[48]!==F?(I=(0,m.jsxs)(pe,{children:[P,F]}),t[47]=P,t[48]=F,t[49]=I):I=t[49];let lt=de,L;t[50]!==A.length||t[51]!==x.size?(L=(0,m.jsx)(`p`,{className:`font-medium text-xs font-mono text-foreground/70 uppercase tracking-wider`,children:(0,m.jsx)(r,{id:`lUtr1r`,values:{0:x.size,1:A.length}})}),t[50]=A.length,t[51]=x.size,t[52]=L):L=t[52];let R;t[53]!==j||t[54]!==A?(R=()=>Le(j?new Set:new Set(A)),t[53]=j,t[54]=A,t[55]=R):R=t[55];let z;t[56]===j?z=t[57]:(z=j?(0,m.jsx)(r,{id:`xCJdfg`}):(0,m.jsx)(r,{id:`wgNoIs`}),t[56]=j,t[57]=z);let B;t[58]!==S||t[59]!==R||t[60]!==z?(B=(0,m.jsx)(ie,{variant:`ghost`,size:`sm`,disabled:S,onClick:R,children:z}),t[58]=S,t[59]=R,t[60]=z,t[61]=B):B=t[61];let V;t[62]!==L||t[63]!==B?(V=(0,m.jsxs)(`div`,{className:`flex items-center justify-between`,children:[L,B]}),t[62]=L,t[63]=B,t[64]=V):V=t[64];let H;if(t[65]!==S||t[66]!==Be||t[67]!==E||t[68]!==k||t[69]!==x||t[70]!==it){let e;t[72]!==S||t[73]!==Be||t[74]!==E||t[75]!==x||t[76]!==it?(e=e=>{let t=Be.get(e),n=E.has(e);return(0,m.jsxs)(u,{className:`flex cursor-pointer items-start gap-3 p-3 text-sm font-normal hover:bg-muted/40`,children:[(0,m.jsx)(l,{checked:n||x.has(e),disabled:S||n,onCheckedChange:t=>it(e,t===!0),className:`mt-0.5`}),(0,m.jsxs)(`span`,{className:`flex min-w-0 flex-col gap-0.5`,children:[(0,m.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`span`,{className:`font-mono`,children:e}),n?(0,m.jsx)(`span`,{className:`shrink-0 rounded-sm bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground uppercase tracking-wide`,children:(0,m.jsx)(r,{id:`eQkgKV`})}):null]}),t?(0,m.jsx)(`span`,{className:`text-1sm text-muted-foreground line-clamp-2`,children:t}):null]})]},e)},t[72]=S,t[73]=Be,t[74]=E,t[75]=x,t[76]=it,t[77]=e):e=t[77],H=k.map(e),t[65]=S,t[66]=Be,t[67]=E,t[68]=k,t[69]=x,t[70]=it,t[71]=H}else H=t[71];let U;t[78]===H?U=t[79]:(U=(0,m.jsx)(`div`,{className:`max-h-72 overflow-y-auto rounded-md border border-border divide-y divide-border`,children:H}),t[78]=H,t[79]=U);let W;t[80]===y?W=t[81]:(W=y===`project`?(0,m.jsx)(r,{id:`oVW7VD`}):(0,m.jsx)(r,{id:`7HY6fA`}),t[80]=y,t[81]=W);let ut=$e?null:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{"aria-hidden":!0,children:`·`}),w.size+D.size>0?(0,m.jsx)(s,{hosts:[...w,...D],iconClassName:`size-3.5`}):(0,m.jsx)(r,{id:`poAsUN`}),(0,m.jsxs)(_e,{children:[(0,m.jsx)(he,{asChild:!0,children:(0,m.jsx)(ie,{variant:`link`,size:`sm`,className:`h-auto px-1`,disabled:S,"data-testid":`plugin-bundle-change-destination`,children:(0,m.jsx)(r,{id:`o-XJ9D`})})}),(0,m.jsxs)(ge,{align:`start`,className:`flex w-72 flex-col gap-4`,children:[(0,m.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,m.jsx)(u,{htmlFor:De,children:(0,m.jsx)(r,{id:`7MSbAT`})}),(0,m.jsxs)(re,{value:y,disabled:S,onValueChange:e=>ke(e),children:[(0,m.jsx)(te,{id:De,className:`w-full`,children:(0,m.jsx)(ne,{})}),(0,m.jsx)(ee,{children:be.map(e=>(0,m.jsx)(d,{value:e,children:Oe[e]},e))})]})]}),(0,m.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,m.jsx)(u,{children:(0,m.jsx)(r,{id:`Y5la_5`})}),(0,m.jsxs)(`div`,{className:`flex flex-wrap gap-x-4 gap-y-2`,children:[qe.map(e=>(0,m.jsxs)(u,{className:`flex cursor-pointer items-center gap-2 text-sm font-normal`,children:[(0,m.jsx)(l,{checked:w.has(e),disabled:S,onCheckedChange:t=>{let n=new Set(w);t===!0?n.add(e):n.delete(e),Ue(n)}}),ae[e]??e]},e)),Qe.map(e=>(0,m.jsxs)(u,{className:`flex cursor-pointer items-center gap-2 font-normal text-sm`,children:[(0,m.jsx)(l,{checked:D.has(e),disabled:S,onCheckedChange:t=>{let n=new Set(D);t===!0?n.add(e):n.delete(e),Xe(n)}}),(0,m.jsx)(`span`,{className:`font-mono text-xs`,children:e})]},e))]})]})]})]})]}),G;t[82]!==W||t[83]!==ut?(G=(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5 text-1sm text-muted-foreground`,"data-testid":`plugin-bundle-destination`,children:[W,ut]}),t[82]=W,t[83]=ut,t[84]=G):G=t[84];let K;t[85]!==lt||t[86]!==V||t[87]!==U||t[88]!==G?(K=(0,m.jsxs)(lt,{className:`flex flex-col gap-4`,children:[V,U,G]}),t[85]=lt,t[86]=V,t[87]=U,t[88]=G,t[89]=K):K=t[89];let q;t[90]===g?q=t[91]:(q=()=>g(!1),t[90]=g,t[91]=q);let dt;t[92]===Symbol.for(`react.memo_cache_sentinel`)?(dt=(0,m.jsx)(r,{id:`dEgA5A`}),t[92]=dt):dt=t[92];let J;t[93]!==S||t[94]!==q?(J=(0,m.jsx)(ie,{variant:`outline`,disabled:S,onClick:q,children:dt}),t[93]=S,t[94]=q,t[95]=J):J=t[95];let ft=S||x.size===0,Y;t[96]===ot?Y=t[97]:(Y=()=>void ot(),t[96]=ot,t[97]=Y);let X;t[98]!==S||t[99]!==x.size?(X=S?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(oe,{"aria-hidden":`true`,className:`size-4`}),(0,m.jsx)(r,{id:`Wtw22s`})]}):x.size===0?(0,m.jsx)(r,{id:`TKQ7K-`}):(0,m.jsx)(r,{id:`9XwoPv`,values:{0:x.size}}),t[98]=S,t[99]=x.size,t[100]=X):X=t[100];let Z;t[101]!==ft||t[102]!==Y||t[103]!==X?(Z=(0,m.jsx)(ie,{"data-testid":`plugin-bundle-install`,disabled:ft,onClick:Y,children:X}),t[101]=ft,t[102]=Y,t[103]=X,t[104]=Z):Z=t[104];let Q;t[105]!==J||t[106]!==Z?(Q=(0,m.jsxs)(fe,{children:[J,Z]}),t[105]=J,t[106]=Z,t[107]=Q):Q=t[107];let $;t[108]!==ct||t[109]!==N||t[110]!==I||t[111]!==K||t[112]!==Q?($=(0,m.jsxs)(ct,{className:`sm:max-w-lg`,onCloseAutoFocus:N,children:[I,K,Q]}),t[108]=ct,t[109]=N,t[110]=I,t[111]=K,t[112]=Q,t[113]=$):$=t[113];let pt;return t[114]!==st||t[115]!==M||t[116]!==$?(pt=(0,m.jsx)(st,{open:!0,onOpenChange:M,children:$}),t[114]=st,t[115]=M,t[116]=$,t[117]=pt):pt=t[117],pt}function je(e){return e.requested}function Me(e){return e.status===`failed`||e.status===`not-found`}function Ne(e){return typeof e==`string`}function Pe(e){return e.name}function Fe(e){return[e.name,e.description]}function Ie(e){return e.name}export{v as a,_ as c,Oe as i,h as n,y as o,De as r,g as s,ke as t};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./utils-CPqDy6Hr.js";import{a as s,i as c,n as l,o as u,r as d,s as f,t as p}from"./select-Bu4Wm3Rf.js";import{t as m}from"./button-DzgjsZzC.js";import{l as h,n as g,r as _,t as v}from"./AddPropertiesButton-BLbUbLwb.js";import{a as y,h as b,r as x,t as S,u as C}from"./dropdown-menu-DtLu9NwU.js";import{n as w}from"./file-plus-DKxOZh2k.js";import{t as T}from"./list-plus-CYMJBvrm.js";import{p as E,t as D}from"./skill-scope-DOTLd4gL.js";var O=a(),k=t();function A(e){let t=(0,O.c)(21),{value:n,onRequestMove:a,disabled:m,triggerClassName:h}=e,{_:g}=i(),_=E(),v;t[0]===a?v=t[1]:(v=e=>a(e),t[0]=a,t[1]=v);let y;t[2]===g?y=t[3]:(y=g({id:`oCHfGC`}),t[2]=g,t[3]=y);let b;t[4]===h?b=t[5]:(b=o(`w-auto gap-1 text-xs font-mono uppercase`,h),t[4]=h,t[5]=b);let x;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,k.jsx)(f,{}),t[6]=x):x=t[6];let S;t[7]!==y||t[8]!==b?(S=(0,k.jsx)(u,{size:`sm`,"aria-label":y,"data-testid":`skill-level-select`,className:b,children:x}),t[7]=y,t[8]=b,t[9]=S):S=t[9];let C;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,k.jsx)(s,{children:(0,k.jsx)(r,{id:`oCHfGC`})}),t[10]=C):C=t[10];let w;t[11]===_?w=t[12]:(w=D.map(e=>(0,k.jsx)(c,{value:e,children:_[e]},e)),t[11]=_,t[12]=w);let T;t[13]===w?T=t[14]:(T=(0,k.jsx)(l,{align:`end`,children:(0,k.jsxs)(d,{children:[C,w]})}),t[13]=w,t[14]=T);let A;return t[15]!==m||t[16]!==v||t[17]!==S||t[18]!==T||t[19]!==n?(A=(0,k.jsxs)(p,{value:n,onValueChange:v,disabled:m,children:[S,T]}),t[15]=m,t[16]=v,t[17]=S,t[18]=T,t[19]=n,t[20]=A):A=t[20],A}var j=e(n(),1);function M(e){let t=(0,O.c)(12),{scope:n,name:r}=e,[i,a]=(0,j.useState)(null),o;t[0]===n?o=t[1]:(o=e=>{e!==n&&a(e)},t[0]=n,t[1]=o);let s;t[2]!==r||t[3]!==i||t[4]!==n?(s=i?{scope:n,name:r,toScope:i}:null,t[2]=r,t[3]=i,t[4]=n,t[5]=s):s=t[5];let c;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=e=>!e&&a(null),t[6]=c):c=t[6];let l;t[7]===s?l=t[8]:(l=(0,k.jsx)(h,{target:s,onOpenChange:c}),t[7]=s,t[8]=l);let u;return t[9]!==o||t[10]!==l?(u={requestMove:o,dialog:l},t[9]=o,t[10]=l,t[11]=u):u=t[11],u}function N(e){let t=(0,O.c)(41),{scope:n,name:a,showAddPropertyButton:o,onAddProperty:s,problemCount:c,problemMessages:l}=e,{_:u}=i(),d;t[0]!==a||t[1]!==n?(d={scope:n,name:a},t[0]=a,t[1]=n,t[2]=d):d=t[2];let f=M(d),p;t[3]!==f.requestMove||t[4]!==n?(p=(0,k.jsx)(A,{value:n,onRequestMove:f.requestMove,triggerClassName:`hidden @xl/toolbar:flex`}),t[3]=f.requestMove,t[4]=n,t[5]=p):p=t[5];let h;t[6]!==a||t[7]!==n?(h=(0,k.jsx)(_,{scope:n,name:a}),t[6]=a,t[7]=n,t[8]=h):h=t[8];let E;t[9]!==p||t[10]!==h?(E=(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[p,h]}),t[9]=p,t[10]=h,t[11]=E):E=t[11];let D;t[12]!==s||t[13]!==c||t[14]!==l||t[15]!==o?(D=o?(0,k.jsx)(v,{onAddProperty:s,problemCount:c,problemMessages:l,className:`hidden @xl/toolbar:inline-flex`}):null,t[12]=s,t[13]=c,t[14]=l,t[15]=o,t[16]=D):D=t[16];let j;t[17]===u?j=t[18]:(j=u({id:`Yzs3QX`}),t[17]=u,t[18]=j);let N;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,k.jsx)(w,{className:`size-4`,"aria-hidden":!0}),t[19]=N):N=t[19];let P;t[20]===j?P=t[21]:(P=(0,k.jsx)(b,{asChild:!0,children:(0,k.jsx)(m,{variant:`ghost`,size:`icon`,"aria-label":j,"data-testid":`skill-toolbar-overflow`,className:`@xl/toolbar:hidden`,children:N})}),t[20]=j,t[21]=P);let F;t[22]===f?F=t[23]:(F=e=>f.requestMove(e),t[22]=f,t[23]=F);let I;t[24]!==n||t[25]!==F?(I=(0,k.jsx)(g,{value:n,onSelect:F}),t[24]=n,t[25]=F,t[26]=I):I=t[26];let L;t[27]!==s||t[28]!==o?(L=o?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(C,{}),(0,k.jsxs)(y,{onSelect:s,children:[(0,k.jsx)(T,{}),(0,k.jsx)(r,{id:`81H_23`})]})]}):null,t[27]=s,t[28]=o,t[29]=L):L=t[29];let R;t[30]!==I||t[31]!==L?(R=(0,k.jsxs)(x,{align:`end`,className:`min-w-44`,children:[I,L]}),t[30]=I,t[31]=L,t[32]=R):R=t[32];let z;t[33]!==R||t[34]!==P?(z=(0,k.jsxs)(S,{children:[P,R]}),t[33]=R,t[34]=P,t[35]=z):z=t[35];let B;return t[36]!==f.dialog||t[37]!==z||t[38]!==E||t[39]!==D?(B=(0,k.jsxs)(k.Fragment,{children:[E,D,z,f.dialog]}),t[36]=f.dialog,t[37]=z,t[38]=E,t[39]=D,t[40]=B):B=t[40],B}export{N as SkillToolbarControls};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./utils-CPqDy6Hr.js";import{a as s,i as c,n as l,o as u,r as d,s as f,t as p}from"./select-pACXgFe2.js";import{t as m}from"./button-DzgjsZzC.js";import{l as h,n as g,r as _,t as v}from"./AddPropertiesButton-CrpxZ0jL.js";import{a as y,h as b,r as x,t as S,u as C}from"./dropdown-menu-5XqyQTVx.js";import{n as w}from"./file-plus-DKxOZh2k.js";import{t as T}from"./list-plus-CYMJBvrm.js";import{p as E,t as D}from"./skill-scope-DOTLd4gL.js";var O=a(),k=t();function A(e){let t=(0,O.c)(21),{value:n,onRequestMove:a,disabled:m,triggerClassName:h}=e,{_:g}=i(),_=E(),v;t[0]===a?v=t[1]:(v=e=>a(e),t[0]=a,t[1]=v);let y;t[2]===g?y=t[3]:(y=g({id:`oCHfGC`}),t[2]=g,t[3]=y);let b;t[4]===h?b=t[5]:(b=o(`w-auto gap-1 text-xs font-mono uppercase`,h),t[4]=h,t[5]=b);let x;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,k.jsx)(f,{}),t[6]=x):x=t[6];let S;t[7]!==y||t[8]!==b?(S=(0,k.jsx)(u,{size:`sm`,"aria-label":y,"data-testid":`skill-level-select`,className:b,children:x}),t[7]=y,t[8]=b,t[9]=S):S=t[9];let C;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,k.jsx)(s,{children:(0,k.jsx)(r,{id:`oCHfGC`})}),t[10]=C):C=t[10];let w;t[11]===_?w=t[12]:(w=D.map(e=>(0,k.jsx)(c,{value:e,children:_[e]},e)),t[11]=_,t[12]=w);let T;t[13]===w?T=t[14]:(T=(0,k.jsx)(l,{align:`end`,children:(0,k.jsxs)(d,{children:[C,w]})}),t[13]=w,t[14]=T);let A;return t[15]!==m||t[16]!==v||t[17]!==S||t[18]!==T||t[19]!==n?(A=(0,k.jsxs)(p,{value:n,onValueChange:v,disabled:m,children:[S,T]}),t[15]=m,t[16]=v,t[17]=S,t[18]=T,t[19]=n,t[20]=A):A=t[20],A}var j=e(n(),1);function M(e){let t=(0,O.c)(12),{scope:n,name:r}=e,[i,a]=(0,j.useState)(null),o;t[0]===n?o=t[1]:(o=e=>{e!==n&&a(e)},t[0]=n,t[1]=o);let s;t[2]!==r||t[3]!==i||t[4]!==n?(s=i?{scope:n,name:r,toScope:i}:null,t[2]=r,t[3]=i,t[4]=n,t[5]=s):s=t[5];let c;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=e=>!e&&a(null),t[6]=c):c=t[6];let l;t[7]===s?l=t[8]:(l=(0,k.jsx)(h,{target:s,onOpenChange:c}),t[7]=s,t[8]=l);let u;return t[9]!==o||t[10]!==l?(u={requestMove:o,dialog:l},t[9]=o,t[10]=l,t[11]=u):u=t[11],u}function N(e){let t=(0,O.c)(41),{scope:n,name:a,showAddPropertyButton:o,onAddProperty:s,problemCount:c,problemMessages:l}=e,{_:u}=i(),d;t[0]!==a||t[1]!==n?(d={scope:n,name:a},t[0]=a,t[1]=n,t[2]=d):d=t[2];let f=M(d),p;t[3]!==f.requestMove||t[4]!==n?(p=(0,k.jsx)(A,{value:n,onRequestMove:f.requestMove,triggerClassName:`hidden @xl/toolbar:flex`}),t[3]=f.requestMove,t[4]=n,t[5]=p):p=t[5];let h;t[6]!==a||t[7]!==n?(h=(0,k.jsx)(_,{scope:n,name:a}),t[6]=a,t[7]=n,t[8]=h):h=t[8];let E;t[9]!==p||t[10]!==h?(E=(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[p,h]}),t[9]=p,t[10]=h,t[11]=E):E=t[11];let D;t[12]!==s||t[13]!==c||t[14]!==l||t[15]!==o?(D=o?(0,k.jsx)(v,{onAddProperty:s,problemCount:c,problemMessages:l,className:`hidden @xl/toolbar:inline-flex`}):null,t[12]=s,t[13]=c,t[14]=l,t[15]=o,t[16]=D):D=t[16];let j;t[17]===u?j=t[18]:(j=u({id:`Yzs3QX`}),t[17]=u,t[18]=j);let N;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,k.jsx)(w,{className:`size-4`,"aria-hidden":!0}),t[19]=N):N=t[19];let P;t[20]===j?P=t[21]:(P=(0,k.jsx)(b,{asChild:!0,children:(0,k.jsx)(m,{variant:`ghost`,size:`icon`,"aria-label":j,"data-testid":`skill-toolbar-overflow`,className:`@xl/toolbar:hidden`,children:N})}),t[20]=j,t[21]=P);let F;t[22]===f?F=t[23]:(F=e=>f.requestMove(e),t[22]=f,t[23]=F);let I;t[24]!==n||t[25]!==F?(I=(0,k.jsx)(g,{value:n,onSelect:F}),t[24]=n,t[25]=F,t[26]=I):I=t[26];let L;t[27]!==s||t[28]!==o?(L=o?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(C,{}),(0,k.jsxs)(y,{onSelect:s,children:[(0,k.jsx)(T,{}),(0,k.jsx)(r,{id:`81H_23`})]})]}):null,t[27]=s,t[28]=o,t[29]=L):L=t[29];let R;t[30]!==I||t[31]!==L?(R=(0,k.jsxs)(x,{align:`end`,className:`min-w-44`,children:[I,L]}),t[30]=I,t[31]=L,t[32]=R):R=t[32];let z;t[33]!==R||t[34]!==P?(z=(0,k.jsxs)(S,{children:[P,R]}),t[33]=R,t[34]=P,t[35]=z):z=t[35];let B;return t[36]!==f.dialog||t[37]!==z||t[38]!==E||t[39]!==D?(B=(0,k.jsxs)(k.Fragment,{children:[E,D,z,f.dialog]}),t[36]=f.dialog,t[37]=z,t[38]=E,t[39]=D,t[40]=B):B=t[40],B}export{N as SkillToolbarControls};