@inkeep/open-knowledge 0.89.10-beta.0 → 0.89.10-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{cli-DuTQpnfi.mjs → cli-BnM1FTDH.mjs} +39 -39
- package/dist/cli.mjs +1 -1
- package/dist/constants-naktyCmW.mjs +1 -0
- package/dist/{dist-CLk9BDyE.mjs → dist-B8fZrH3f.mjs} +521 -521
- package/dist/dist-SdORgRtG.mjs +1 -0
- package/dist/index.mjs +12 -12
- package/dist/{init-CXy1X9eP.mjs → init-DJpguwtL.mjs} +14 -14
- package/dist/init-Dczju_5i.mjs +1 -0
- package/dist/{launch-json-removal-B7vVCFBV.mjs → launch-json-removal-CIZKpvKa.mjs} +1 -1
- package/dist/{loader-BHK1kqxP.mjs → loader-Bmw0zjIb.mjs} +1 -1
- package/dist/loader-Cdc5oVnE.mjs +1 -0
- package/dist/{open-browser-DzU6eS0X.mjs → open-browser-shNCq6Jg.mjs} +1 -1
- package/dist/preview-BUx9kg8i.mjs +1 -0
- package/dist/{preview-DEG83Uxb.mjs → preview-Blybr0dr.mjs} +1 -1
- package/dist/public/assets/{AboutSection-Wga6ljal.js → AboutSection-PYOotN54.js} +1 -1
- package/dist/public/assets/{AccountSection-BqL4s6YP.js → AccountSection-BRDw6CDt.js} +1 -1
- package/dist/public/assets/{ActivityModeContent-C42kiKB-.js → ActivityModeContent-CKsbEQva.js} +1 -1
- package/dist/public/assets/{ActivityPanelDiffView-Btj__TNB.js → ActivityPanelDiffView-Drnt3eYg.js} +1 -1
- package/dist/public/assets/{AddPropertiesButton-D4OE9whB.js → AddPropertiesButton-DZRrywnM.js} +2 -2
- package/dist/public/assets/{AgentConnectionsSection-DL5G9vDr.js → AgentConnectionsSection-CHHCm3U2.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-CDc5mtZ-.js → AgentDiffPane-Bye03tzm.js} +2 -2
- package/dist/public/assets/{AttachmentsSection-CRY017gc.js → AttachmentsSection-CaDpV2y1.js} +1 -1
- package/dist/public/assets/{AuthModal-BqAFZ5VD.js → AuthModal-DK7kzx8-.js} +1 -1
- package/dist/public/assets/{CodeMirrorEditor-UCMRAMCV-BjEQv2x_.js → CodeMirrorEditor-UCMRAMCV-JkGHBVVc.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-B3ERDnwN.js → CodeMirrorPropInput-Cmp5Nj4G.js} +75 -75
- package/dist/public/assets/{ConsentDialogBody-B20jtW8L.js → ConsentDialogBody-CvSKtIAi.js} +1 -1
- package/dist/public/assets/{ContentRulesSection-BZZ0uRpp.js → ContentRulesSection-XkfMUBZh.js} +1 -1
- package/dist/public/assets/{DiffViewBoundary-BCb7uBFd.js → DiffViewBoundary-Bpy3dZ0r.js} +1 -1
- package/dist/public/assets/DocumentContext-Wb9BCFqj.js +110 -0
- package/dist/public/assets/{EditorModeToggle-DTSzp44_.js → EditorModeToggle-DR-niAdL.js} +1 -1
- package/dist/public/assets/{ExcalidrawDocEditor-CEo-k4K-.js → ExcalidrawDocEditor-DJY9eTS-.js} +1 -1
- package/dist/public/assets/FeedbackForm-DeDUOHCF.js +1 -0
- package/dist/public/assets/{GraphPanel-epDsGADf.js → GraphPanel-an3G7Esa.js} +1 -1
- package/dist/public/assets/{HotkeysSection-DrZRSXKK.js → HotkeysSection-o4i2U9Lo.js} +1 -1
- package/dist/public/assets/{ImportSkillDialog-CyHoUxuA.js → ImportSkillDialog-CR2KplKg.js} +1 -1
- package/dist/public/assets/{InstallInClaudeDesktopDialog-C_RQYp3V.js → InstallInClaudeDesktopDialog-D4VEpFPf.js} +1 -1
- package/dist/public/assets/{IntegrationsSection-gn7Gi9_7.js → IntegrationsSection-DCIbejNW.js} +1 -1
- package/dist/public/assets/{LinkPreviewsSection-CO7oBdpg.js → LinkPreviewsSection-lEWtD5nf.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-BLMM0YXw.js → LintConfigEditor-Cn47RFTz.js} +1 -1
- package/dist/public/assets/{LintingSection-CHxHEOFS.js → LintingSection-72S0YZjO.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-BRgU2Iry.js +1 -0
- package/dist/public/assets/{ManagedArtifactProperties-CAW43s3B.js → ManagedArtifactProperties-Gc49zvuT.js} +1 -1
- package/dist/public/assets/{Mermaid-BcowK1bP.js → Mermaid-BiYl2hf6.js} +1 -1
- package/dist/public/assets/{MermaidDocEditor-w4VlJz4i.js → MermaidDocEditor-DbtN9U8A.js} +1 -1
- package/dist/public/assets/{MultiFileDiff-BsuBGl7q.js → MultiFileDiff-B2a-fkjz.js} +1 -1
- package/dist/public/assets/{NetworkAccessSection-sT8H1jm9.js → NetworkAccessSection-DLKSkggc.js} +1 -1
- package/dist/public/assets/{OkignoreSection-BfbduXqI.js → OkignoreSection-BsF3GbXc.js} +1 -1
- package/dist/public/assets/{PageListContext-DpKyZSYI.js → PageListContext-DG07q00l.js} +1 -1
- package/dist/public/assets/{ProjectTemplatesSection-D7kiwJKw.js → ProjectTemplatesSection-B6gvHBKM.js} +1 -1
- package/dist/public/assets/{PropertyDisplayRow-CR3oGERe.js → PropertyDisplayRow-DZZE9YrT.js} +1 -1
- package/dist/public/assets/{PublishToGitHubDialog-D5vpuxK-.js → PublishToGitHubDialog-CSba5_xA.js} +1 -1
- package/dist/public/assets/{SchemaConfigEditor-Bq_G5vOn.js → SchemaConfigEditor-Bf9lTi_e.js} +1 -1
- package/dist/public/assets/{SearchSection-DP2To-By.js → SearchSection-CXVxOouf.js} +1 -1
- package/dist/public/assets/{SessionsHost-CiBXwe8A.js → SessionsHost-BZm5V5lI.js} +2 -2
- package/dist/public/assets/{SettingsDialogBody-Wm7ffqsk.js → SettingsDialogBody-sklRpbsm.js} +2 -2
- package/dist/public/assets/{SettingsSectionHeader-DoDCqZE9.js → SettingsSectionHeader-EhpZ2oo5.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-Biq8DZrB.js → ShareReceiveMissDialog-BIFE0grG.js} +1 -1
- package/dist/public/assets/{SharingSection-CmvBaP1e.js → SharingSection-DDRWca95.js} +1 -1
- package/dist/public/assets/{SkillForkDialog-3Q4qiLGp.js → SkillForkDialog-rG4DERkO.js} +1 -1
- package/dist/public/assets/{SkillInstallMenu-CgZ6TUtX.js → SkillInstallMenu-BNaUPGis.js} +1 -1
- package/dist/public/assets/{SkillOriginInline-XucbICfa.js → SkillOriginInline-ezRE9UzK.js} +2 -2
- package/dist/public/assets/{SkillPluginBundleDialog-9gvF1DrZ.js → SkillPluginBundleDialog-CQB8MF78.js} +1 -1
- package/dist/public/assets/{SkillToolbarControls-BUHQ4HKP.js → SkillToolbarControls-B_fHbGu4.js} +1 -1
- package/dist/public/assets/{SkillUpdateConflictDialog-BRuajj8h.js → SkillUpdateConflictDialog-CtyW6wPA.js} +1 -1
- package/dist/public/assets/{SkillsManagerSection-BKfHEWsE.js → SkillsManagerSection-DBEG1i7w.js} +1 -1
- package/dist/public/assets/{SlidesPluginSection-BpeI6naA.js → SlidesPluginSection-DqdmgP6_.js} +1 -1
- package/dist/public/assets/{SourceEditor-CYABPG6-.js → SourceEditor-Vu66CETo.js} +1 -1
- package/dist/public/assets/{SyncSection-B55HJey_.js → SyncSection-Coa6lFiE.js} +1 -1
- package/dist/public/assets/{SyncStatusBadge-D92whmoD.js → SyncStatusBadge-BW0YVl2z.js} +1 -1
- package/dist/public/assets/{TerminalPanel-CZqgzugj.js → TerminalPanel-CYqHKI2E.js} +3 -3
- package/dist/public/assets/{TerminalSection-Cot3kZ1b.js → TerminalSection-DaO8owbQ.js} +1 -1
- package/dist/public/assets/{TerminalWindowApp-Bk3GZdT3.js → TerminalWindowApp-BkoTZoiV.js} +1 -1
- package/dist/public/assets/{TextDocEditor-Cmjge0ed.js → TextDocEditor-C1S2Awhi.js} +1 -1
- package/dist/public/assets/{ThemePluginSection-CwqUh1BX.js → ThemePluginSection-CCAFe0bO.js} +1 -1
- package/dist/public/assets/{ThreadView-BdsRBXxP.js → ThreadView-BXAVZ8nY.js} +4 -4
- package/dist/public/assets/{TimelineDiffPane-Cmp2spQg.js → TimelineDiffPane-VOZs0FvZ.js} +2 -2
- package/dist/public/assets/{chunk-BO2N2NFS-Dl8M8LuR.js → chunk-BO2N2NFS-BEuwRDxJ.js} +4 -4
- package/dist/public/assets/{client-version-A-GxukuD.js → client-version-bdpMlJIw.js} +1 -1
- package/dist/public/assets/cm-theme-Cfku0s0U.js +3 -0
- package/dist/public/assets/{code-highlighter-impl-DAaUGe7G.js → code-highlighter-impl-B8pGTITV.js} +1 -1
- package/dist/public/assets/{comment-chips-CHaOUkXI.js → comment-chips-B_y1sjFe.js} +1 -1
- package/dist/public/assets/{config-provider-VNO-8pnC.js → config-provider-CIXp9Q30.js} +1 -1
- package/dist/public/assets/{dist-CUgGmlsn.js → dist-BLBhO77H.js} +1 -1
- package/dist/public/assets/{dist-DQuOA3vR.js → dist-Bz0NdQrJ.js} +1 -1
- package/dist/public/assets/{dist-CitzgyZk.js → dist-C8wn7WIc.js} +1 -1
- package/dist/public/assets/{dist-XOMICCBT.js → dist-Cqrno4UK.js} +1 -1
- package/dist/public/assets/{dist-R7QC_kjf.js → dist-D4SA-mVq.js} +1 -1
- package/dist/public/assets/{dist-CDI_AHNY2.js → dist-DkkpJ2aw.js} +1 -1
- package/dist/public/assets/{dist-DlTJY48Q.js → dist-dtIrts84.js} +1 -1
- package/dist/public/assets/{dist-LtbcyjB7.js → dist-wKKrgsd0.js} +1 -1
- package/dist/public/assets/{dist-oYievw6e.js → dist-yM-JiFXV2.js} +1 -1
- package/dist/public/assets/{doc-undo-manager-BKTm511k.js → doc-undo-manager-CmjnLvcY.js} +1 -1
- package/dist/public/assets/{engine-compile-BKhUOp9O.js → engine-compile-DCXqaKj1.js} +1 -1
- package/dist/public/assets/external-link-CV9ONfls.js +1 -0
- package/dist/public/assets/{highlighted-body-OFNGDK62-DsFROhgi.js → highlighted-body-OFNGDK62-BQg91IZ5.js} +1 -1
- package/dist/public/assets/{ime-composition-4cqEjrpI.js → ime-composition-B8fpGInz.js} +1 -1
- package/dist/public/assets/{index-C1ZPNUde.js → index-BusCRx2S.js} +8 -8
- package/dist/public/assets/{lib-CNBaznYe.js → lib-BFwLNStM.js} +1 -1
- package/dist/public/assets/{lint-plugins-B2-SsSEw.js → lint-plugins-CD7RVi0l.js} +1 -1
- package/dist/public/assets/{markdownlint-rule-browser-Ccvw_f-J.js → markdownlint-rule-browser-BH2pUfXz.js} +1 -1
- package/dist/public/assets/mermaid-GHXKKRXX-CTQTYtGv.js +1 -0
- package/dist/public/assets/{pending-receive-nav-store-dpOE8895.js → pending-receive-nav-store-4BSbHH4p.js} +1 -1
- package/dist/public/assets/{pierre-theme-Og_zQBPD.js → pierre-theme-bTg6dZWN.js} +1 -1
- package/dist/public/assets/{preferred-session-events-Hghttr98.js → preferred-session-events-ohIKavc3.js} +1 -1
- package/dist/public/assets/{prod-CxmLlnTC.js → prod-BYmgqcPA.js} +2 -2
- package/dist/public/assets/{progress-CZuFzG86.js → progress-lvv6PjMw.js} +1 -1
- package/dist/public/assets/{project-paths-DjS_hY_q.js → project-paths-BVP8z0Qv.js} +1 -1
- package/dist/public/assets/{schema-section-DDYszxnQ.js → schema-section-7rwc4iOl.js} +1 -1
- package/dist/public/assets/{selection-context-x0Smfuvg.js → selection-context-Ckxz0S9i.js} +1 -1
- package/dist/public/assets/{src-DbOdApPx.js → src-CRiK-e1l.js} +1 -1
- package/dist/public/assets/{tag-pill-input-C6vxVbIh.js → tag-pill-input-CAQxdwNs.js} +1 -1
- package/dist/public/assets/{telemetry-impl-BvyaF4rq.js → telemetry-impl-D8FtB48W.js} +1 -1
- package/dist/public/assets/{telemetry-startup-D9H-pijT.js → telemetry-startup-ROFmei1a.js} +1 -1
- package/dist/public/assets/{text-viewer-languages-5aC_46ro.js → text-viewer-languages-B5vCLX2f.js} +2 -2
- package/dist/public/assets/{typing-burst-detector-OTRAtOce.js → typing-burst-detector-DPuYxxMx.js} +1 -1
- package/dist/public/assets/{use-activity-panel-D_1FtfiY.js → use-activity-panel-Dyahk3Lt.js} +1 -1
- package/dist/public/assets/{use-open-skill-DJfSnwuI.js → use-open-skill-BhvW1NOZ.js} +1 -1
- package/dist/public/assets/{use-skill-origin-NWSdADZr.js → use-skill-origin-BsQ6pqNb.js} +1 -1
- package/dist/public/assets/{use-skill-targets-UEhNy--n.js → use-skill-targets-DdhJK0_S.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-BjIU3d8F.js → use-terminal-enabled-DDfs8VwB.js} +1 -1
- package/dist/public/assets/{use-timeline-entry-diff-DvwEPALr.js → use-timeline-entry-diff-BMLS3VzF.js} +1 -1
- package/dist/public/index.html +50 -50
- package/dist/{registry-probes-zHczfZFZ.mjs → registry-probes-D2Fcqx88.mjs} +7 -7
- package/dist/{removal-file-path-7-MdAEIS.mjs → removal-file-path-Dteeix7c.mjs} +1 -1
- package/dist/{repair-launch-json-BOfweiWp.mjs → repair-launch-json-CsiQ-Oie.mjs} +1 -1
- package/dist/{repair-mcp-configs-DIXgisAC.mjs → repair-mcp-configs-BsZ99LDP.mjs} +1 -1
- package/dist/src-22rYneLM.mjs +1 -0
- package/dist/src-CW3RhKEZ.mjs +16 -0
- package/dist/start-C1ERNfPu.mjs +5 -0
- package/dist/start-D90bHzUZ.mjs +1 -0
- package/package.json +4 -4
- package/dist/constants-C3jlSnWU.mjs +0 -1
- package/dist/dist-BNdZzjgr.mjs +0 -1
- package/dist/init-Bh7tibtK.mjs +0 -1
- package/dist/loader-CQOeIQS4.mjs +0 -1
- package/dist/preview-CBEyzv-I.mjs +0 -1
- package/dist/public/assets/DocumentContext-tjCBs5iM.js +0 -110
- package/dist/public/assets/FeedbackForm-JgP998Pr.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-CohT34HK.js +0 -1
- package/dist/public/assets/cm-theme-DHJ4FCK8.js +0 -3
- package/dist/public/assets/external-link-C6hldklD.js +0 -1
- package/dist/public/assets/mermaid-GHXKKRXX-CTq-e8f7.js +0 -1
- package/dist/src-CrS-edQZ.mjs +0 -16
- package/dist/src-k7CfDLlv.mjs +0 -1
- package/dist/start-CLJRdzjn.mjs +0 -5
- package/dist/start-CN8XT_VE.mjs +0 -1
- /package/dist/public/assets/{desktop-bridge-Btg3qpKV.js → desktop-bridge-bSzKDe_w.js} +0 -0
- /package/dist/public/assets/{dist-qfZ4Zkay.js → dist-BFBWje6D.js} +0 -0
- /package/dist/public/assets/{dist-B3l4eYse.js → dist-DJ9i_e8X.js} +0 -0
- /package/dist/public/assets/{dist-McVxqaQr.js → dist-yBmUFswj.js} +0 -0
- /package/dist/public/assets/{documents-fetch-aXwpCEvh.js → documents-fetch-BNA2S_EX.js} +0 -0
- /package/dist/public/assets/{lib-AgCVC0Wn.js → lib-C_jEl4A5.js} +0 -0
- /package/dist/public/assets/{page-list-cache-tOaID4O4.js → page-list-cache-BJpuIApf.js} +0 -0
- /package/dist/public/assets/{skills-api-MxDmjydw.js → skills-api-CcgOY0Iy.js} +0 -0
- /package/dist/public/assets/{startup-marks-iW0WPaQZ.js → startup-marks-D6zprGWE.js} +0 -0
- /package/dist/public/assets/{stex-BzLRGzOW.js → stex-7eUHyf61.js} +0 -0
package/dist/public/assets/{SettingsDialogBody-Wm7ffqsk.js → SettingsDialogBody-sklRpbsm.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AboutSection-
|
|
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-COKT45NU.js";import{t as c}from"./lazy-with-preload-CZeMX40u.js";import{n as l,r as u,t as d}from"./alert-B2ODUyh8.js";import{r as f}from"./settings-host-gates-4_h8m1EA.js";import{n as p}from"./settings-fields-B2hCMOD3.js";import{t as m}from"./SettingsSectionHeader-DoDCqZE9.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-Wga6ljal.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-CmvBaP1e.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-BqL4s6YP.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,65,20,21,14,29,22,66,19,13,16,67,68,69,70,15,71,72,73,17,74,75,76,77,78,79,23,24,26,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,25,18,34,100,35]),import.meta.url)).AccountSection),S=v(async()=>(await t(async()=>{let{AgentConnectionsSection:e}=await import(`./AgentConnectionsSection-DL5G9vDr.js`);return{AgentConnectionsSection:e}},__vite__mapDeps([101,1,56,2,3,4,12,6,7,8,13,14,9,10,11,102,16,15,103,104,105,43,44,45,46,47,48,49,50,51,52,53,36,79,67,17,106,76,107,108,109,81,22,66,26,24,110,111,5,19,20,21,112,33,113,114,82,115,116,117,118,119,29,30,71,42,120,121,122,23,80,123,124,125,126,127,128,129,130,131,18,25,132,99,133,134]),import.meta.url)).AgentConnectionsSection),C=v(async()=>(await t(async()=>{let{AttachmentsSection:e}=await import(`./AttachmentsSection-CRY017gc.js`);return{AttachmentsSection:e}},__vite__mapDeps([135,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,62,2,63,64,136,65,20,21,6,7,14,29,22,66,19,10,11,13,16,67,68,12,137,30,24,138,139,28,113,140,141,96,76,142,5,26,80,81,82,123,124,99,34,143,88,144,18,15,23,25,145]),import.meta.url)).AttachmentsSection),w=v(async()=>(await t(async()=>{let{ContentRulesSection:e}=await import(`./ContentRulesSection-BZZ0uRpp.js`);return{ContentRulesSection:e}},__vite__mapDeps([146,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,62,2,63,64,65,20,21,6,7,14,29,22,66,19,10,11,13,16,67,68,5,12,147,148,149,150,151,18,15,23,24,25,88]),import.meta.url)).ContentRulesSection),T=v(async()=>(await t(async()=>{let{SectionSkeleton:e}=await import(`./field-controls-D-_OBjbL.js`);return{SectionSkeleton:e}},__vite__mapDeps([152,136,1,2,3,4,40,65,20,21,6,7,8,14,29,22,66,19,9,10,11,13,16,67,68,12,137,30,24,138,139,28,113,61,42,140,141,96,76,142,5,31,43,44,45,46,47,48,49,50,51,52,53,36,26,80,81,82,123,124,99,34,143,54,55,56,57,60,62,63,64,88,144]),import.meta.url)).SectionSkeleton),E=v(async()=>(await t(async()=>{let{HotkeysSection:e}=await import(`./HotkeysSection-DrZRSXKK.js`);return{HotkeysSection:e}},__vite__mapDeps([153,2,1,3,4,9,18,19,20,21,6,7,8,14,22,10,11,15,16,23,24,25,154,155,93,94,95]),import.meta.url)).HotkeysSection),D=v(async()=>(await t(async()=>{let{IntegrationsSection:e}=await import(`./IntegrationsSection-gn7Gi9_7.js`);return{IntegrationsSection:e}},__vite__mapDeps([156,1,2,3,4,157,16,158,159,98,160,17,9,10,11,31,8,26,7,24,80,81,6,22,66,82,25,18,19,20,21,14,15,23]),import.meta.url)).IntegrationsSection),O=v(async()=>(await t(async()=>{let{LinkPreviewsSection:e}=await import(`./LinkPreviewsSection-CO7oBdpg.js`);return{LinkPreviewsSection:e}},__vite__mapDeps([161,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,62,2,63,64,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,26,80,81,66,82,88]),import.meta.url)).LinkPreviewsSection),k=v(async()=>(await t(async()=>{let{MarkdownlintPluginSection:e}=await import(`./LintingSection-CHxHEOFS.js`);return{MarkdownlintPluginSection:e}},__vite__mapDeps([162,1,163,55,164,165,95,166,167,168,169,170,171,172,173,174,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,62,2,63,64,94,148,149,175,176,177,150,16,178,96,179,180,181,182,183,184,185,25,90,186,187,130,109,6,7,81,22,66,26,24,11,10,5,12,13,14,188,189,190,65,20,29,19,67,68,69,191,129,192,193,194,70,195,158,196,76,80,82,197,198,71,138,159,98,160,199,72,200,201,33,17,111,202,203,140,106,114,204,205,206,86,87,88,207,208,209,23,99,155,83,84,34,210,211,212,93,213,91,214,215,126,216,128,134,121,217,147,151,15,218,73,219,220,77,221,110,222,117,118,119,30,112,115,116,104,120,122,223,224,225,226,227,18,228,141,123,124,229,230,231,232,233,92]),import.meta.url)).MarkdownlintPluginSection),A=v(async()=>(await t(async()=>{let{ProjectPluginsManageSection:e}=await import(`./LintingSection-CHxHEOFS.js`);return{ProjectPluginsManageSection:e}},__vite__mapDeps([162,1,163,55,164,165,95,166,167,168,169,170,171,172,173,174,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,62,2,63,64,94,148,149,175,176,177,150,16,178,96,179,180,181,182,183,184,185,25,90,186,187,130,109,6,7,81,22,66,26,24,11,10,5,12,13,14,188,189,190,65,20,29,19,67,68,69,191,129,192,193,194,70,195,158,196,76,80,82,197,198,71,138,159,98,160,199,72,200,201,33,17,111,202,203,140,106,114,204,205,206,86,87,88,207,208,209,23,99,155,83,84,34,210,211,212,93,213,91,214,215,126,216,128,134,121,217,147,151,15,218,73,219,220,77,221,110,222,117,118,119,30,112,115,116,104,120,122,223,224,225,226,227,18,228,141,123,124,229,230,231,232,233,92]),import.meta.url)).ProjectPluginsManageSection),j=v(async()=>(await t(async()=>{let{UserPluginsManageSection:e}=await import(`./LintingSection-CHxHEOFS.js`);return{UserPluginsManageSection:e}},__vite__mapDeps([162,1,163,55,164,165,95,166,167,168,169,170,171,172,173,174,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,62,2,63,64,94,148,149,175,176,177,150,16,178,96,179,180,181,182,183,184,185,25,90,186,187,130,109,6,7,81,22,66,26,24,11,10,5,12,13,14,188,189,190,65,20,29,19,67,68,69,191,129,192,193,194,70,195,158,196,76,80,82,197,198,71,138,159,98,160,199,72,200,201,33,17,111,202,203,140,106,114,204,205,206,86,87,88,207,208,209,23,99,155,83,84,34,210,211,212,93,213,91,214,215,126,216,128,134,121,217,147,151,15,218,73,219,220,77,221,110,222,117,118,119,30,112,115,116,104,120,122,223,224,225,226,227,18,228,141,123,124,229,230,231,232,233,92]),import.meta.url)).UserPluginsManageSection),M=v(async()=>(await t(async()=>{let{NetworkAccessSection:e}=await import(`./NetworkAccessSection-sT8H1jm9.js`);return{NetworkAccessSection:e}},__vite__mapDeps([234,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,62,2,63,64,109,6,7,81,22,66,26,24,11,10,5,28,29,30,13,14,12,18,19,20,21,15,16,23,25,99,35,235,88,144]),import.meta.url)).NetworkAccessSection),N=v(async()=>(await t(async()=>{let{OkignoreSection:e}=await import(`./OkignoreSection-BfbduXqI.js`);return{OkignoreSection:e}},__vite__mapDeps([236,1,237,8,4,2,3,19,20,21,6,7,14,22,9,10,11,67,16,238,76,82,31,206,56,180,181,48,47,182,64,50,185,86,87,44,88,36,186,207,208,197,198,51,18,15,23,24,25,239,26,99,34,145,240]),import.meta.url)).OkignoreSection),P=v(async()=>(await t(async()=>{let{ProjectTemplatesSection:e}=await import(`./ProjectTemplatesSection-D7kiwJKw.js`);return{ProjectTemplatesSection:e}},__vite__mapDeps([241,1,2,3,4,140,16,9,242,56,109,6,7,8,81,22,66,26,24,11,10,117,118,119,20,21,14,29,30,67,71,243,96,82,31,43,44,45,46,47,48,49,50,51,52,53,36,220,17,80,123,5,124,99,143,86,87,88,244,207,18,19,15,23,25,34,232,90,92,93,94,95]),import.meta.url)).ProjectTemplatesSection),F=v(async()=>(await t(async()=>{let{SearchSection:e}=await import(`./SearchSection-DP2To-By.js`);return{SearchSection:e}},__vite__mapDeps([245,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,62,2,63,64,69,6,7,12,13,14,10,11,71,16,246,86,87,88,18,19,20,21,22,15,23,24,25,26,80,81,66,82,123,5,124,99,144]),import.meta.url)).SearchSection),I=v(async()=>(await t(async()=>{let{SkillsManagerSection:e}=await import(`./SkillsManagerSection-BKfHEWsE.js`);return{SkillsManagerSection:e}},__vite__mapDeps([247,1,2,3,4,109,6,7,8,81,22,66,9,26,24,11,10,16,158,117,118,119,20,21,14,29,30,67,71,98,96,31,115,19,112,114,116,42,104,120,121,122,53,36,223,18,15,23,25,80,82,99,34,227,56,43,44,45,46,47,48,49,50,51,52,86,87,88,207,216,226,213,232,90,197,198,215,126,125]),import.meta.url)).SkillsManagerSection),L=v(async()=>(await t(async()=>{let{SlidesPluginSection:e}=await import(`./SlidesPluginSection-BpeI6naA.js`);return{SlidesPluginSection:e}},__vite__mapDeps([248,1,2,3,4,15,16,75,9,205,19,20,21,6,7,8,14,22,10,11,67,98,26,24,78,79,45,44,46,47,18,23,25,249,99,143,92,93,94,95]),import.meta.url)).SlidesPluginSection),R=v(async()=>(await t(async()=>{let{SyncSection:e}=await import(`./SyncSection-B55HJey_.js`);return{SyncSection:e}},__vite__mapDeps([250,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,62,2,63,64,65,20,21,6,7,14,29,22,66,19,10,11,13,16,67,68,69,137,30,24,38,70,15,71,72,73,17,74,75,76,77,78,79,23,26,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,97,98,99,25,251,5,28,188,164,165,166,167,168,169,170,171,172,173,174,163,148,149,175,176,177,150,178,96,179,180,181,182,183,184,185,186,187,130,189,190,12,191,129,192,193,194,195,158,196,197,198,138,159,160,199,200,201,33,111,202,203,140,106,114,204,205,206,207,208,209,155,34,210,211,212,213,214,215,126,216,128,134,121,217,123,124,143,252,18]),import.meta.url)).SyncSection),z=v(async()=>(await t(async()=>{let{TerminalSection:e}=await import(`./TerminalSection-Cot3kZ1b.js`);return{TerminalSection:e}},__vite__mapDeps([253,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,62,2,63,64,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,254,88,35]),import.meta.url)).TerminalSection),B=v(async()=>(await t(async()=>{let{ThemePluginSection:e}=await import(`./ThemePluginSection-CwqUh1BX.js`);return{ThemePluginSection:e}},__vite__mapDeps([255,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,256,142,136,40,65,20,21,14,29,22,66,19,13,67,68,12,137,30,24,138,139,28,113,61,140,141,96,76,26,80,81,82,123,124,99,34,143,54,55,56,57,60,62,63,64,88,144,18,23,25,145,240,257]),import.meta.url)).ThemePluginSection),V=v(async()=>{let{LINT_PLUGIN_UI:e}=await t(async()=>{let{LINT_PLUGIN_UI:e}=await import(`./lint-plugins-B2-SsSEw.js`);return{LINT_PLUGIN_UI:e}},__vite__mapDeps([258,218,16,1,4,162,163,55,164,165,95,166,167,168,169,170,171,172,173,174,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,62,2,63,64,94,148,149,175,176,177,150,178,96,179,180,181,182,183,184,185,25,90,186,187,130,109,6,7,81,22,66,26,24,11,10,5,12,13,14,188,189,190,65,20,29,19,67,68,69,191,129,192,193,194,70,195,158,196,76,80,82,197,198,71,138,159,98,160,199,72,200,201,33,17,111,202,203,140,106,114,204,205,206,86,87,88,207,208,209,23,99,155,83,84,34,210,211,212,93,213,91,214,215,126,216,128,134,121,217,147,151,15,73,219,220,77,221,110,222,117,118,119,30,112,115,116,104,120,122,223,224,225,226,227,18,228,141,123,124,229,230,231,232,233,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-DDYszxnQ.js`),__vite__mapDeps([256,1,2,3,4,142,7,5,6,8,9,10,11,31,136,40,65,20,21,14,29,22,66,19,13,16,67,68,12,137,30,24,138,139,28,113,61,42,140,141,96,76,43,44,45,46,47,48,49,50,51,52,53,36,26,80,81,82,123,124,99,34,143,54,55,56,57,60,62,63,64,88,144,18,15,23,25,145,240]),import.meta.url),t(()=>import(`./OkCliPathRow-S85j6YMf.js`),__vite__mapDeps([259,1,2,3,4,110,6,7,8,13,14,67,16,111,9,10,11,5,19,20,21,22,33,31,26,24,35,36]),import.meta.url),t(()=>import(`./SpellingSettings-COx1auhE.js`),__vite__mapDeps([260,1,21,20,6,7,4,8,3,14,56,2,12,13,9,10,11,19,22,67,16,141,82,31,179,136,40,65,29,66,68,137,30,24,138,139,28,113,61,42,140,96,76,142,5,43,44,45,46,47,48,49,50,51,52,53,36,26,80,81,123,124,99,34,143,54,55,57,60,62,63,64,88,144,154]),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-PYOotN54.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-BuM5_PNk.js","./createLucideIcon-CB3nKwwz.js","./spinner-CeYJkImG.js","./SettingsSectionHeader-EhpZ2oo5.js","./tooltip-BjuCvy5N.js","./dist-DXjgFhPl2.js","./floating-ui.dom-BYl7JZd0.js","./dist-CxbWbOvU.js","./badge-DcyFOLs8.js","./dist-BsJYDohW.js","./external-link-CV9ONfls.js","./button-DzgjsZzC.js","./SharingSection-DDRWca95.js","./radio-group-G1GR05Rb.js","./dist-uiDX6Nr9.js","./dist-BKgU0kag.js","./dist-Bs8bPT30.js","./ConfigSharingInfoTooltip-CmaSkr99.js","./info-CTtlruwn.js","./skeleton-BBQ4J9l6.js","./channel-cli-copy-BE13Ri4Z.js","./constants-product-DTeqlnBa.js","./AccountSection-BRDw6CDt.js","./SyncStatusBadge-BW0YVl2z.js","./config-provider-CIXp9Q30.js","./trace-api-nQInEDYS.js","./status-CUwkWWLj.js","./dist-PQ5KMVDh.js","./schemas-api-C0HskKob.js","./schemas-DN_HD0k4.js","./_envelope-DuFpUEag-DIV0rnvM.js","./share-D-LUU2aX-iU4CJWyG.js","./util-doc-name-ICsmfVCh.js","./constants-cc1-DSBEUyZb.js","./constants-github-CG_3Vnhk.js","./doc-extensions-CcO7K8uD-BsCiKh3N.js","./logging-renderer-log-BxHgdJfM.js","./skill-targets-schema-CqL94mYR.js","./constants-editors-IUfUQiPg.js","./use-apply-config-language-D4d5ulA6.js","./preload-helper-Chd9yIcd.js","./dist-XgwTV-oh2.js","./messages-B7tDSj7E.js","./client-version-bdpMlJIw.js","./css-color-to-hex-CKYM0Miq.js","./use-apply-config-color-theme-4QTd28x5.js","./use-apply-config-theme-D81w9H1H.js","./config-context-DmzX_4s_.js","./saved-themes-client-Bzchw1CL.js","./constants-upload-kkBkFBty.js","./select-BELkoEB6.js","./es2015-Dtr4fzLT.js","./check-x3deoXUY.js","./chevron-down-COI0lQ_Z.js","./collapsible-BKbszYZV.js","./arrow-up-VsvqTAMX.js","./chevron-right-B3hLba9m.js","./settings-2-wYPq-LU9.js","./git-merge-Cmg8y0YC.js","./refresh-cw-kK6tPJpw.js","./terminal-BaAWoXQi.js","./triangle-alert-COKT45NU.js","./DisclosureWarning-ColqYMZV.js","./terminal-command-events-DHW8vnqr.js","./handoff-rTg39zAU.js","./dialog-BPbtQmOL.js","./electron-drag-strip-D9GZhMg_.js","./x-B-DmMnJT.js","./popover-Dxc5JyiN.js","./dist-Cj3Bpren.js","./use-conflicts-DxlfkTJB.js","./documents-events-DD7-XBOS.js","./schemas-cc1-tjl2gPeT.js","./config-errors-BXj4CTPy.js","./use-git-sync-status-D8KvdiBj.js","./doc-hash-BDtDlqpM.js","./reveal-editor-8pMyPDaK.js","./use-settings-route-9jEucaC_.js","./keyboard-shortcuts-BqVfFaC6.js","./dist-CdgIFD0J.js","./w3c-keyname-DElaZB74.js","./trash-2-Dx-L6HlB.js","./AuthModal-DK7kzx8-.js","./copy-C2v-T-2G.js","./input-DUSj2Bri.js","./auth-state-cache-Upa8QNbS.js","./AgentConnectionsSection-CHHCm3U2.js","./useQuery-ZeEDLtxh.js","./RegisteredAgentIcon-C69y42WU.js","./cursor-pH0WlPzE.js","./agent-registry-0mqN6WP3.js","./search-DtAlL42D.js","./TerminalLaunchContext-Ce2ozRHg.js","./agent-connections-CAbRKNnv.js","./alert-dialog-Mwvu63aS.js","./checkbox-CYP7ZXBH.js","./minus-BUHNVRuZ.js","./folder-DSkyRNas.js","./monitor-Ddo728b9.js","./sparkles-CLa9Bco7.js","./AgentIconCluster-DJYZ5s2f.js","./OpenInAgentMenuItem-BBBy2Gy8.js","./dropdown-menu-480HwyVz.js","./dist-C0nuYMFu.js","./dist-d2WYntJB.js","./copilot-CmkvU8CH.js","./utils-random-uuid-CE1X6bNM.js","./mascot-outline-CtS592mc.js","./field-DtEiTjHS.js","./separator-D7s_9ZwH.js","./tool-list-format-ahklHT7Z.js","./constants-skills-Coq7kn_k.js","./bool-pref-pcNhKZb_.js","./storage-scope-BJsd6z-F.js","./bridge-CW0Ocq0O.js","./structural-freshness-C6rR7cV3-VXiZX15w.js","./terminal-cli-display-nqMvU4tr.js","./settings-section-labels-BfnPYQKp.js","./catalog-DuBdYGMO.js","./use-workspace-Cnu149Vc.js","./AttachmentsSection-CaDpV2y1.js","./field-controls-DTr_FtG5.js","./toggle-group-aEGkM0EG.js","./circle-alert-dBeNuHbp.js","./ThemePicker-l4igefke.js","./plus-CTeS7j4Q.js","./rotate-ccw-LkVEzPHf.js","./form-zUZZA6cJ.js","./textarea-DUYJ_2l0.js","./config-schema-Ds5bpbY0.js","./config-validation-events-BcNoRosd.js","./ContentRulesSection-XkfMUBZh.js","./markdown-lint-Co4IJlAV.js","./lib-Bq-Hw4OM.js","./ccount-Bpl7p-di.js","./syntax-IpEhTG_b.js","./markdownit-Bzko96Lx.js","./field-controls-D-_OBjbL.js","./HotkeysSection-o4i2U9Lo.js","./settings-host-gates-4_h8m1EA.js","./kbd-Cg1nrB7U.js","./IntegrationsSection-DCIbejNW.js","./InstallInClaudeDesktopDialog-D4VEpFPf.js","./arrow-right-9zZjHMAu.js","./circle-check-CGCTZ_86.js","./download-D-kvS_hz.js","./LinkPreviewsSection-lEWtD5nf.js","./LintingSection-72S0YZjO.js","./CodeMirrorPropInput-Cmp5Nj4G.js","./dist-BFBWje6D.js","./dist-DPg4Sze-.js","./dist-dtIrts84.js","./dist-yBmUFswj.js","./dist-wKKrgsd0.js","./dist-Cqrno4UK.js","./dist-DJ9i_e8X.js","./dist-C8wn7WIc.js","./dist-yM-JiFXV2.js","./dist-DkkpJ2aw.js","./stex-7eUHyf61.js","./lib-BdDWWJXX.js","./space-separated-tokens-Db5y9Cue.js","./trim-lines-34TPYcWX.js","./folder-open-a_XLAh8h.js","./with-selector-zVo3Fruj.js","./navigation-targets-CDgtiaAU.js","./file-tree-utils-Chf8oKT-.js","./doc-paths-BxQo1KRQ.js","./cm-theme-Cfku0s0U.js","./desktop-bridge-bSzKDe_w.js","./page-list-cache-BJpuIApf.js","./documents-fetch-BNA2S_EX.js","./note-window-mode-DK36peY8.js","./DocumentContext-Wb9BCFqj.js","./propagation-api-dgM6YInk.js","./context-api-CMjojwfb.js","./lib-dxiLvrQN.js","./lib-BFwLNStM.js","./lib-C_jEl4A5.js","./git-branch-EQxRRYB4.js","./Mermaid-BiYl2hf6.js","./use-app-color-mode-D01Vqp07.js","./perf-B1ng3teX.js","./diagnostic-breadcrumb-DJHixy9_.js","./ime-composition-B8fpGInz.js","./prop-types-CLb0dK7M.js","./hash-Cm4xjMc9.js","./local-menu-action-bus-BRwk7KU_.js","./paperclip-CToLKs9f.js","./react-error-boundary-6ac6QM6R.js","./CopyButton-BGXlB8sP.js","./PageListContext-DG07q00l.js","./parse-api-error-B-hICRsf.js","./startup-marks-D6zprGWE.js","./file-tree-rename-validation-7hzb3Ip7.js","./use-collab-url-KnAEFuX9.js","./api-config-DPT9T4cy.js","./excalidraw-scene-D5967Kw-.js","./known-skill-dirs-DrTKWg6a.js","./single-file-mode-DZrC4pKS.js","./skill-scope-C6c798PF.js","./skills-api-CcgOY0Iy.js","./DocumentContext-B0sQn39F.css","./lint-plugin-meta-6QZWEsvL.js","./square-pen-5YkKFkKE.js","./DeleteConfirmationDialog-DJ6Qtngd.js","./SkillPluginBundleDialog-CQB8MF78.js","./SkillInstallMenu-BNaUPGis.js","./ChangedOutsideBadge-h-lbo6MQ.js","./context-menu-v1ORxy1K.js","./dist-BzicVdNV.js","./use-skills-DAulZHaI.js","./use-skill-targets-DdhJK0_S.js","./markdownlint-rule-browser-BH2pUfXz.js","./tag-pill-input-CAQxdwNs.js","./lint-config-client-CPGcGpvG.js","./use-open-skill-BhvW1NOZ.js","./open-managed-artifact-tab-Iri08bTq.js","./schema-fields-view-intent-D1_jiI63.js","./NetworkAccessSection-DLKSkggc.js","./restart-collab-server-D7TSZeVB.js","./OkignoreSection-BsF3GbXc.js","./sortable.esm-IIDOfP1t.js","./grip-vertical-DDCmIcxh.js","./config-ignore-nested-error-events-DxD25Hw7.js","./save-held-message-BxyYPArP.js","./ProjectTemplatesSection-B6gvHBKM.js","./TemplateRow-CsngmzEI.js","./file-plus-DBpEVY_Q.js","./folder-config-api-DIgyKHZD.js","./SearchSection-CXVxOouf.js","./use-semantic-search-status-ndZxS3vx.js","./SkillsManagerSection-DBEG1i7w.js","./SlidesPluginSection-DqdmgP6_.js","./input-group-CaWCr-lk.js","./SyncSection-Coa6lFiE.js","./PublishToGitHubDialog-CSba5_xA.js","./clipboard-adapter-DZrGg03s.js","./TerminalSection-DaO8owbQ.js","./use-terminal-enabled-DDfs8VwB.js","./ThemePluginSection-CCAFe0bO.js","./schema-section-7rwc4iOl.js","./settings-fields-B2hCMOD3.js","./lint-plugins-CD7RVi0l.js","./OkCliPathRow-S85j6YMf.js","./SpellingSettings-COx1auhE.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-COKT45NU.js";import{t as c}from"./lazy-with-preload-CZeMX40u.js";import{n as l,r as u,t as d}from"./alert-B2ODUyh8.js";import{r as f}from"./settings-host-gates-4_h8m1EA.js";import{n as p}from"./settings-fields-B2hCMOD3.js";import{t as m}from"./SettingsSectionHeader-EhpZ2oo5.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-PYOotN54.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-DDRWca95.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-BRDw6CDt.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,65,20,21,14,29,22,66,19,13,16,67,68,69,70,15,71,72,73,17,74,75,76,77,78,79,23,24,26,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,25,18,34,100,35]),import.meta.url)).AccountSection),S=v(async()=>(await t(async()=>{let{AgentConnectionsSection:e}=await import(`./AgentConnectionsSection-CHHCm3U2.js`);return{AgentConnectionsSection:e}},__vite__mapDeps([101,1,56,2,3,4,12,6,7,8,13,14,9,10,11,102,16,15,103,104,105,43,44,45,46,47,48,49,50,51,52,53,36,79,67,17,106,76,107,108,109,81,22,66,26,24,110,111,5,19,20,21,112,33,113,114,82,115,116,117,118,119,29,30,71,42,120,121,122,23,80,123,124,125,126,127,128,129,130,131,18,25,132,99,133,134]),import.meta.url)).AgentConnectionsSection),C=v(async()=>(await t(async()=>{let{AttachmentsSection:e}=await import(`./AttachmentsSection-CaDpV2y1.js`);return{AttachmentsSection:e}},__vite__mapDeps([135,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,62,2,63,64,136,65,20,21,6,7,14,29,22,66,19,10,11,13,16,67,68,12,137,30,24,138,139,28,113,140,141,96,76,142,5,26,80,81,82,123,124,99,34,143,88,144,18,15,23,25,145]),import.meta.url)).AttachmentsSection),w=v(async()=>(await t(async()=>{let{ContentRulesSection:e}=await import(`./ContentRulesSection-XkfMUBZh.js`);return{ContentRulesSection:e}},__vite__mapDeps([146,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,62,2,63,64,65,20,21,6,7,14,29,22,66,19,10,11,13,16,67,68,5,12,147,148,149,150,151,18,15,23,24,25,88]),import.meta.url)).ContentRulesSection),T=v(async()=>(await t(async()=>{let{SectionSkeleton:e}=await import(`./field-controls-D-_OBjbL.js`);return{SectionSkeleton:e}},__vite__mapDeps([152,136,1,2,3,4,40,65,20,21,6,7,8,14,29,22,66,19,9,10,11,13,16,67,68,12,137,30,24,138,139,28,113,61,42,140,141,96,76,142,5,31,43,44,45,46,47,48,49,50,51,52,53,36,26,80,81,82,123,124,99,34,143,54,55,56,57,60,62,63,64,88,144]),import.meta.url)).SectionSkeleton),E=v(async()=>(await t(async()=>{let{HotkeysSection:e}=await import(`./HotkeysSection-o4i2U9Lo.js`);return{HotkeysSection:e}},__vite__mapDeps([153,2,1,3,4,9,18,19,20,21,6,7,8,14,22,10,11,15,16,23,24,25,154,155,93,94,95]),import.meta.url)).HotkeysSection),D=v(async()=>(await t(async()=>{let{IntegrationsSection:e}=await import(`./IntegrationsSection-DCIbejNW.js`);return{IntegrationsSection:e}},__vite__mapDeps([156,1,2,3,4,157,16,158,159,98,160,17,9,10,11,31,8,26,7,24,80,81,6,22,66,82,25,18,19,20,21,14,15,23]),import.meta.url)).IntegrationsSection),O=v(async()=>(await t(async()=>{let{LinkPreviewsSection:e}=await import(`./LinkPreviewsSection-lEWtD5nf.js`);return{LinkPreviewsSection:e}},__vite__mapDeps([161,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,62,2,63,64,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,26,80,81,66,82,88]),import.meta.url)).LinkPreviewsSection),k=v(async()=>(await t(async()=>{let{MarkdownlintPluginSection:e}=await import(`./LintingSection-72S0YZjO.js`);return{MarkdownlintPluginSection:e}},__vite__mapDeps([162,1,163,55,164,165,95,166,167,168,169,170,171,172,173,174,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,62,2,63,64,94,148,149,175,176,177,150,16,178,96,179,180,181,182,183,184,185,25,90,186,187,130,109,6,7,81,22,66,26,24,11,10,5,12,13,14,188,189,190,65,20,29,19,67,68,69,191,129,192,193,194,70,195,158,196,76,80,82,197,198,71,138,159,98,160,199,72,200,201,33,17,111,202,203,140,106,114,204,205,206,86,87,88,207,208,209,23,99,155,83,84,34,210,211,212,93,213,91,214,215,126,216,128,134,121,217,147,151,15,218,73,219,220,77,221,110,222,117,118,119,30,112,115,116,104,120,122,223,224,225,226,227,18,228,141,123,124,229,230,231,232,233,92]),import.meta.url)).MarkdownlintPluginSection),A=v(async()=>(await t(async()=>{let{ProjectPluginsManageSection:e}=await import(`./LintingSection-72S0YZjO.js`);return{ProjectPluginsManageSection:e}},__vite__mapDeps([162,1,163,55,164,165,95,166,167,168,169,170,171,172,173,174,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,62,2,63,64,94,148,149,175,176,177,150,16,178,96,179,180,181,182,183,184,185,25,90,186,187,130,109,6,7,81,22,66,26,24,11,10,5,12,13,14,188,189,190,65,20,29,19,67,68,69,191,129,192,193,194,70,195,158,196,76,80,82,197,198,71,138,159,98,160,199,72,200,201,33,17,111,202,203,140,106,114,204,205,206,86,87,88,207,208,209,23,99,155,83,84,34,210,211,212,93,213,91,214,215,126,216,128,134,121,217,147,151,15,218,73,219,220,77,221,110,222,117,118,119,30,112,115,116,104,120,122,223,224,225,226,227,18,228,141,123,124,229,230,231,232,233,92]),import.meta.url)).ProjectPluginsManageSection),j=v(async()=>(await t(async()=>{let{UserPluginsManageSection:e}=await import(`./LintingSection-72S0YZjO.js`);return{UserPluginsManageSection:e}},__vite__mapDeps([162,1,163,55,164,165,95,166,167,168,169,170,171,172,173,174,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,62,2,63,64,94,148,149,175,176,177,150,16,178,96,179,180,181,182,183,184,185,25,90,186,187,130,109,6,7,81,22,66,26,24,11,10,5,12,13,14,188,189,190,65,20,29,19,67,68,69,191,129,192,193,194,70,195,158,196,76,80,82,197,198,71,138,159,98,160,199,72,200,201,33,17,111,202,203,140,106,114,204,205,206,86,87,88,207,208,209,23,99,155,83,84,34,210,211,212,93,213,91,214,215,126,216,128,134,121,217,147,151,15,218,73,219,220,77,221,110,222,117,118,119,30,112,115,116,104,120,122,223,224,225,226,227,18,228,141,123,124,229,230,231,232,233,92]),import.meta.url)).UserPluginsManageSection),M=v(async()=>(await t(async()=>{let{NetworkAccessSection:e}=await import(`./NetworkAccessSection-DLKSkggc.js`);return{NetworkAccessSection:e}},__vite__mapDeps([234,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,62,2,63,64,109,6,7,81,22,66,26,24,11,10,5,28,29,30,13,14,12,18,19,20,21,15,16,23,25,99,35,235,88,144]),import.meta.url)).NetworkAccessSection),N=v(async()=>(await t(async()=>{let{OkignoreSection:e}=await import(`./OkignoreSection-BsF3GbXc.js`);return{OkignoreSection:e}},__vite__mapDeps([236,1,237,8,4,2,3,19,20,21,6,7,14,22,9,10,11,67,16,238,76,82,31,206,56,180,181,48,47,182,64,50,185,86,87,44,88,36,186,207,208,197,198,51,18,15,23,24,25,239,26,99,34,145,240]),import.meta.url)).OkignoreSection),P=v(async()=>(await t(async()=>{let{ProjectTemplatesSection:e}=await import(`./ProjectTemplatesSection-B6gvHBKM.js`);return{ProjectTemplatesSection:e}},__vite__mapDeps([241,1,2,3,4,140,16,9,242,56,109,6,7,8,81,22,66,26,24,11,10,117,118,119,20,21,14,29,30,67,71,243,96,82,31,43,44,45,46,47,48,49,50,51,52,53,36,220,17,80,123,5,124,99,143,86,87,88,244,207,18,19,15,23,25,34,232,90,92,93,94,95]),import.meta.url)).ProjectTemplatesSection),F=v(async()=>(await t(async()=>{let{SearchSection:e}=await import(`./SearchSection-CXVxOouf.js`);return{SearchSection:e}},__vite__mapDeps([245,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,62,2,63,64,69,6,7,12,13,14,10,11,71,16,246,86,87,88,18,19,20,21,22,15,23,24,25,26,80,81,66,82,123,5,124,99,144]),import.meta.url)).SearchSection),I=v(async()=>(await t(async()=>{let{SkillsManagerSection:e}=await import(`./SkillsManagerSection-DBEG1i7w.js`);return{SkillsManagerSection:e}},__vite__mapDeps([247,1,2,3,4,109,6,7,8,81,22,66,9,26,24,11,10,16,158,117,118,119,20,21,14,29,30,67,71,98,96,31,115,19,112,114,116,42,104,120,121,122,53,36,223,18,15,23,25,80,82,99,34,227,56,43,44,45,46,47,48,49,50,51,52,86,87,88,207,216,226,213,232,90,197,198,215,126,125]),import.meta.url)).SkillsManagerSection),L=v(async()=>(await t(async()=>{let{SlidesPluginSection:e}=await import(`./SlidesPluginSection-DqdmgP6_.js`);return{SlidesPluginSection:e}},__vite__mapDeps([248,1,2,3,4,15,16,75,9,205,19,20,21,6,7,8,14,22,10,11,67,98,26,24,78,79,45,44,46,47,18,23,25,249,99,143,92,93,94,95]),import.meta.url)).SlidesPluginSection),R=v(async()=>(await t(async()=>{let{SyncSection:e}=await import(`./SyncSection-Coa6lFiE.js`);return{SyncSection:e}},__vite__mapDeps([250,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,62,2,63,64,65,20,21,6,7,14,29,22,66,19,10,11,13,16,67,68,69,137,30,24,38,70,15,71,72,73,17,74,75,76,77,78,79,23,26,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,97,98,99,25,251,5,28,188,164,165,166,167,168,169,170,171,172,173,174,163,148,149,175,176,177,150,178,96,179,180,181,182,183,184,185,186,187,130,189,190,12,191,129,192,193,194,195,158,196,197,198,138,159,160,199,200,201,33,111,202,203,140,106,114,204,205,206,207,208,209,155,34,210,211,212,213,214,215,126,216,128,134,121,217,123,124,143,252,18]),import.meta.url)).SyncSection),z=v(async()=>(await t(async()=>{let{TerminalSection:e}=await import(`./TerminalSection-DaO8owbQ.js`);return{TerminalSection:e}},__vite__mapDeps([253,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,62,2,63,64,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,254,88,35]),import.meta.url)).TerminalSection),B=v(async()=>(await t(async()=>{let{ThemePluginSection:e}=await import(`./ThemePluginSection-CCAFe0bO.js`);return{ThemePluginSection:e}},__vite__mapDeps([255,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,256,142,136,40,65,20,21,14,29,22,66,19,13,67,68,12,137,30,24,138,139,28,113,61,140,141,96,76,26,80,81,82,123,124,99,34,143,54,55,56,57,60,62,63,64,88,144,18,23,25,145,240,257]),import.meta.url)).ThemePluginSection),V=v(async()=>{let{LINT_PLUGIN_UI:e}=await t(async()=>{let{LINT_PLUGIN_UI:e}=await import(`./lint-plugins-CD7RVi0l.js`);return{LINT_PLUGIN_UI:e}},__vite__mapDeps([258,218,16,1,4,162,163,55,164,165,95,166,167,168,169,170,171,172,173,174,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,62,2,63,64,94,148,149,175,176,177,150,178,96,179,180,181,182,183,184,185,25,90,186,187,130,109,6,7,81,22,66,26,24,11,10,5,12,13,14,188,189,190,65,20,29,19,67,68,69,191,129,192,193,194,70,195,158,196,76,80,82,197,198,71,138,159,98,160,199,72,200,201,33,17,111,202,203,140,106,114,204,205,206,86,87,88,207,208,209,23,99,155,83,84,34,210,211,212,93,213,91,214,215,126,216,128,134,121,217,147,151,15,73,219,220,77,221,110,222,117,118,119,30,112,115,116,104,120,122,223,224,225,226,227,18,228,141,123,124,229,230,231,232,233,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-7rwc4iOl.js`),__vite__mapDeps([256,1,2,3,4,142,7,5,6,8,9,10,11,31,136,40,65,20,21,14,29,22,66,19,13,16,67,68,12,137,30,24,138,139,28,113,61,42,140,141,96,76,43,44,45,46,47,48,49,50,51,52,53,36,26,80,81,82,123,124,99,34,143,54,55,56,57,60,62,63,64,88,144,18,15,23,25,145,240]),import.meta.url),t(()=>import(`./OkCliPathRow-S85j6YMf.js`),__vite__mapDeps([259,1,2,3,4,110,6,7,8,13,14,67,16,111,9,10,11,5,19,20,21,22,33,31,26,24,35,36]),import.meta.url),t(()=>import(`./SpellingSettings-COx1auhE.js`),__vite__mapDeps([260,1,21,20,6,7,4,8,3,14,56,2,12,13,9,10,11,19,22,67,16,141,82,31,179,136,40,65,29,66,68,137,30,24,138,139,28,113,61,42,140,96,76,142,5,43,44,45,46,47,48,49,50,51,52,53,36,26,80,81,123,124,99,34,143,54,55,57,60,62,63,64,88,144,154]),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};
|
package/dist/public/assets/{SettingsSectionHeader-DoDCqZE9.js → SettingsSectionHeader-EhpZ2oo5.js}
RENAMED
|
@@ -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-BjuCvy5N.js";import{t as l}from"./arrow-up-right-BuM5_PNk.js";import{t as u}from"./badge-DcyFOLs8.js";import{t as d}from"./external-link-
|
|
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-BjuCvy5N.js";import{t as l}from"./arrow-up-right-BuM5_PNk.js";import{t as u}from"./badge-DcyFOLs8.js";import{t as d}from"./external-link-CV9ONfls.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)(28),{titleId:a,title:o,scope:s,level:c,beta:u,adornment:g,docUrl:_,descriptionId:v,children:y}=e,b=c===void 0?`page`:c,{_:x}=n(),S=b===`page`?`h3`:`h4`,C;r[0]!==x||r[1]!==_||r[2]!==o||r[3]!==a?(C=_===void 0?null:(0,p.jsxs)(`a`,{href:_,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>d(e,_),onAuxClick:e=>d(e,_),"aria-label":x(typeof o==`string`?{id:`Li4U-T`,values:{title:o}}:{id:`zwWKhA`}),className:`inline-flex items-center gap-0.5 text-sm text-primary underline-offset-2 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[0]=x,r[1]=_,r[2]=o,r[3]=a,r[4]=C):C=r[4];let w=C,T=b===`page`?`text-lg`:`text-base`,E;r[5]===T?E=r[6]:(E=i(`font-semibold`,T),r[5]=T,r[6]=E);let D;r[7]!==S||r[8]!==E||r[9]!==o||r[10]!==a?(D=(0,p.jsx)(S,{id:a,className:E,children:o}),r[7]=S,r[8]=E,r[9]=o,r[10]=a,r[11]=D):D=r[11];let O;r[12]===u?O=r[13]:(O=u?(0,p.jsx)(m,{}):null,r[12]=u,r[13]=O);let k;r[14]===s?k=r[15]:(k=s?(0,p.jsx)(h,{scope:s}):null,r[14]=s,r[15]=k);let A;r[16]!==g||r[17]!==D||r[18]!==O||r[19]!==k?(A=(0,p.jsxs)(`div`,{className:`flex items-center gap-2`,children:[D,g,O,k]}),r[16]=g,r[17]=D,r[18]=O,r[19]=k,r[20]=A):A=r[20];let j;r[21]!==y||r[22]!==v||r[23]!==w?(j=y?(0,p.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[(0,p.jsx)(`span`,{id:v,children:y}),w?(0,p.jsxs)(p.Fragment,{children:[` `,w]}):null]}):w,r[21]=y,r[22]=v,r[23]=w,r[24]=j):j=r[24];let M;return r[25]!==A||r[26]!==j?(M=(0,p.jsxs)(`div`,{className:`space-y-1`,children:[A,j]}),r[25]=A,r[26]=j,r[27]=M):M=r[27],M}export{h as n,m as r,g as t};
|
package/dist/public/assets/{ShareReceiveMissDialog-Biq8DZrB.js → ShareReceiveMissDialog-BIFE0grG.js}
RENAMED
|
@@ -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-
|
|
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-4BSbHH4p.js";import{t as l}from"./miss-dialog-store-9W8qZPsI.js";import{c as u,i as d,n as f,s as p,t as m}from"./dialog-BPbtQmOL.js";import{d as h,u as g}from"./doc-hash-BDtDlqpM.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=h(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`?h(e):g(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-Bs8bPT30.js";import{t as u}from"./skeleton-BBQ4J9l6.js";import{t as d}from"./ConfigSharingInfoTooltip-CmaSkr99.js";import{t as f}from"./channel-cli-copy-BE13Ri4Z.js";import{t as p}from"./SettingsSectionHeader-
|
|
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-Bs8bPT30.js";import{t as u}from"./skeleton-BBQ4J9l6.js";import{t as d}from"./ConfigSharingInfoTooltip-CmaSkr99.js";import{t as f}from"./channel-cli-copy-BE13Ri4Z.js";import{t as p}from"./SettingsSectionHeader-EhpZ2oo5.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=f(),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),[f,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]!==f||e[7]!==w||e[8]!==n?(D=async function(e){let r=window.okDesktop?.sharing;if(!r||n===null||f||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]=f,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)(u,{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)(d,{}),children:(0,g.jsx)(r,{id:`50gx7V`})}),e[13]=j):j=e[13];let M;e[14]!==f||e[15]!==k||e[16]!==O||e[17]!==n.mode?(M=k?(0,g.jsx)(`p`,{className:`rounded-md border border-warning/40 px-3 py-2 text-sm text-foreground`,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:f,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]=f,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 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{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"./label-CvMpFFbN.js";import{t as s}from"./button-DzgjsZzC.js";import{n as c}from"./dist-Bs8bPT30.js";import{A as ee}from"./schemas-api-C0HskKob.js";import{a as l,c as te,i as u,n as d,o as f,s as p,t as m}from"./dialog-BPbtQmOL.js";import{t as h}from"./input-DUSj2Bri.js";import{l as ne}from"./skill-scope-C6c798PF.js";import{E as re,u as ie}from"./skills-api-
|
|
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"./label-CvMpFFbN.js";import{t as s}from"./button-DzgjsZzC.js";import{n as c}from"./dist-Bs8bPT30.js";import{A as ee}from"./schemas-api-C0HskKob.js";import{a as l,c as te,i as u,n as d,o as f,s as p,t as m}from"./dialog-BPbtQmOL.js";import{t as h}from"./input-DUSj2Bri.js";import{l as ne}from"./skill-scope-C6c798PF.js";import{E as re,u as ie}from"./skills-api-CcgOY0Iy.js";import{t as ae}from"./MultiFileDiff-B2a-fkjz.js";import{t as oe}from"./pierre-theme-bTg6dZWN.js";var se=a(),g=e(n(),1),_=t();function v(e){let t=(0,se.c)(60),{target:n,onOpenChange:a}=e,{_:v}=i(),y=(0,g.useId)(),[b,x]=(0,g.useState)(null),[S,C]=(0,g.useState)(null),[w,T]=(0,g.useState)(!1),[E,D]=(0,g.useState)(!1),[O,k]=(0,g.useState)(``),[A,j]=(0,g.useState)(!1),M;t[0]===n?M=t[1]:(M=()=>{if(x(null),C(null),T(!1),D(!1),!n)return;let{skill:e,editor:t}=n,r=e.absolutePath?.slice(0,-`/${e.path}`.length)??null;if(r===null){T(!0);return}let i=`${r}/${e.path.replace(/\/SKILL\.mdx?$/i,``)}`,a=`${r}/${ne(t,e.scope)}/${e.name}`,o=new AbortController;for(let[t,n]of[[i,C],[a,x]])ie({source:t,name:e.name},o.signal).then(e=>{o.signal.aborted||(e.ok?n(e.skillMd):T(!0))}).catch(()=>{o.signal.aborted||T(!0)});return()=>o.abort()},t[0]=n,t[1]=M);let N=n?.skill.scope,P=n?.skill.name,F=n?.editor,I;if(t[2]!==N||t[3]!==P||t[4]!==F?(I=[N,P,F],t[2]=N,t[3]=P,t[4]=F,t[5]=I):I=t[5],(0,g.useEffect)(M,I),!n)return null;let{skill:L,editor:R}=n,z;t[6]!==v||t[7]!==R||t[8]!==a||t[9]!==L.name||t[10]!==L.scope||t[11]!==n||t[12]!==O?(z=async function(e){if(!n)return;j(!0);let t=await re({scope:L.scope,name:L.name,editor:R,action:e,...e===`rename`?{toName:O.trim()}:{}});if(j(!1),!t.ok){c.error(v({id:`MIF36T`,values:{0:t.error}}));return}c.success(v(e===`align`?{id:`QKgePK`,values:{editor:R}}:e===`make-source`?{id:`It9oAP`,values:{editor:R}}:{id:`b2ezG_`,values:{0:O.trim()}})),a(!1)},t[6]=v,t[7]=R,t[8]=a,t[9]=L.name,t[10]=L.scope,t[11]=n,t[12]=O,t[13]=z):z=t[13];let B=z,V,H;t[14]!==L.name||t[15]!==O?(H=O.trim(),V=H===``||!ee.test(H)||H===L.name,t[14]=L.name,t[15]=O,t[16]=V,t[17]=H):(V=t[16],H=t[17]);let U=V,W;t[18]!==A||t[19]!==a?(W=e=>{!e&&!A&&a(!1)},t[18]=A,t[19]=a,t[20]=W):W=t[20];let G;t[21]!==R||t[22]!==L.name?(G=(0,_.jsx)(te,{children:(0,_.jsx)(r,{id:`q8aCbb`,values:{0:L.name,editor:R}})}),t[21]=R,t[22]=L.name,t[23]=G):G=t[23];let K;t[24]===R?K=t[25]:(K=(0,_.jsx)(l,{children:(0,_.jsx)(r,{id:`QASTNu`,values:{editor:R}})}),t[24]=R,t[25]=K);let q;t[26]!==K||t[27]!==G?(q=(0,_.jsxs)(p,{children:[G,K]}),t[26]=K,t[27]=G,t[28]=q):q=t[28];let J;t[29]!==S||t[30]!==b||t[31]!==w||t[32]!==L.name?(J=S!==null&&b!==null?(0,_.jsx)(ae,{className:`pierre-diff`,oldFile:{name:L.name,contents:S},newFile:{name:L.name,contents:b},options:{overflow:`wrap`,diffStyle:`unified`,theme:oe()}}):w?(0,_.jsx)(`div`,{className:`flex min-h-56 items-center justify-center px-6 text-center text-muted-foreground text-sm`,children:(0,_.jsx)(r,{id:`5BlXTD`})}):(0,_.jsx)(`div`,{className:`flex min-h-56 items-center justify-center text-muted-foreground text-sm`,children:(0,_.jsx)(r,{id:`1V17kO`})}),t[29]=S,t[30]=b,t[31]=w,t[32]=L.name,t[33]=J):J=t[33];let Y;t[34]!==B||t[35]!==R||t[36]!==y||t[37]!==U||t[38]!==E||t[39]!==L.name||t[40]!==O||t[41]!==H?(Y=E?(0,_.jsxs)(`div`,{className:`mt-3 space-y-1.5`,children:[(0,_.jsx)(o,{htmlFor:y,children:(0,_.jsx)(r,{id:`pSimwP`,values:{editor:R}})}),(0,_.jsx)(h,{id:y,value:O,onChange:e=>k(e.target.value),placeholder:`${L.name}-${R}`,"aria-invalid":U&&H!==``,onKeyDown:e=>{e.key===`Enter`&&!U&&B(`rename`)}})]}):null,t[34]=B,t[35]=R,t[36]=y,t[37]=U,t[38]=E,t[39]=L.name,t[40]=O,t[41]=H,t[42]=Y):Y=t[42];let X;t[43]!==J||t[44]!==Y?(X=(0,_.jsxs)(d,{className:`min-h-0 flex-1 overflow-auto`,children:[J,Y]}),t[43]=J,t[44]=Y,t[45]=X):X=t[45];let Z;t[46]!==B||t[47]!==A||t[48]!==R||t[49]!==U||t[50]!==E||t[51]!==L.name?(Z=(0,_.jsx)(f,{children:E?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(s,{variant:`outline`,onClick:()=>D(!1),disabled:A,children:(0,_.jsx)(r,{id:`iH8pgl`})}),(0,_.jsx)(s,{onClick:()=>void B(`rename`),disabled:A||U,children:(0,_.jsx)(r,{id:`AT0e50`})})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(s,{variant:`outline`,onClick:()=>{k(`${L.name}-${R}`),D(!0)},disabled:A,children:(0,_.jsx)(r,{id:`AT0e50`})}),(0,_.jsx)(s,{variant:`outline`,onClick:()=>void B(`make-source`),disabled:A,children:(0,_.jsx)(r,{id:`xWomUD`,values:{editor:R}})}),(0,_.jsx)(s,{onClick:()=>void B(`align`),disabled:A,children:(0,_.jsx)(r,{id:`PZn2LP`})})]})}),t[46]=B,t[47]=A,t[48]=R,t[49]=U,t[50]=E,t[51]=L.name,t[52]=Z):Z=t[52];let Q;t[53]!==q||t[54]!==X||t[55]!==Z?(Q=(0,_.jsxs)(u,{className:`flex max-h-[85vh] w-full flex-col sm:max-w-5xl`,children:[q,X,Z]}),t[53]=q,t[54]=X,t[55]=Z,t[56]=Q):Q=t[56];let $;return t[57]!==Q||t[58]!==W?($=(0,_.jsx)(m,{open:!0,onOpenChange:W,children:Q}),t[57]=Q,t[58]=W,t[59]=$):$=t[59],$}export{v as SkillForkDialog};
|
|
@@ -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"./AgentIconCluster-DJYZ5s2f.js";import{i as s,n as c,t as l}from"./tooltip-BjuCvy5N.js";import{a as u,c as d,i as f,l as p,o as m,r as h,s as g,t as ee}from"./alert-dialog-Mwvu63aS.js";import{t as _}from"./button-DzgjsZzC.js";import{n as te}from"./dist-Bs8bPT30.js";import{c as v}from"./documents-events-DD7-XBOS.js";import{n as y}from"./constants-editors-IUfUQiPg.js";import{n as b,r as x,t as S}from"./skill-targets-schema-CqL94mYR.js";import{t as C}from"./createLucideIcon-CB3nKwwz.js";import{a as w,f as ne,i as T,m as E,n as D,o as O,p as k,u as A}from"./dropdown-menu-480HwyVz.js";import{t as re}from"./folder-DSkyRNas.js";import"./constants-skills-Coq7kn_k.js";import{i as ie,l as j,n as ae,r as M}from"./skill-scope-C6c798PF.js";import{a as N,c as P,i as F,l as I,n as oe,o as se,s as L,u as ce}from"./context-menu-v1ORxy1K.js";import{F as le,S as ue,j as de,x as fe}from"./skills-api-MxDmjydw.js";import{t as pe}from"./use-skills-DAulZHaI.js";import{t as me}from"./ChangedOutsideBadge-h-lbo6MQ.js";var he=C(`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`}]]),R=e(n(),1),z=a(),B=t();function V(e){let t=(0,z.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,B.jsx)(F,{...r}):(0,B.jsx)(T,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ge(e){let t=(0,z.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,B.jsx)(N,{...r}):(0,B.jsx)(w,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function _e(e){let t=(0,z.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,B.jsx)(oe,{...r}):(0,B.jsx)(D,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ve(e){let t=(0,z.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,B.jsx)(se,{...r}):(0,B.jsx)(O,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ye(e){let t=(0,z.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,B.jsx)(L,{...r}):(0,B.jsx)(A,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function H(e){let t=(0,z.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,B.jsx)(P,{...r}):(0,B.jsx)(ne,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function be(e){let t=(0,z.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,B.jsx)(I,{...r}):(0,B.jsx)(k,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function U(e){let t=(0,z.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,B.jsx)(ce,{...r}):(0,B.jsx)(E,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}var W=Object.freeze({hosts:null,source:null}),G=new Map,K=new Map;function xe(e,t){return`${e}:${t}`}function Se(e){return G.get(e)??W}function q(e,t){let n=K.get(e)??new Set;return K.set(e,n),n.add(t),()=>{n.delete(t),n.size===0&&K.delete(e)}}function J(e,t){let n=Se(e),r={...n,...t};if(!(r.hosts===n.hosts&&r.source===n.source)){r.hosts===null&&r.source===null?G.delete(e):G.set(e,r);for(let t of K.get(e)??[])t()}}var Y=S.options,X=b.options,Z=`.agents/`;function Ce({skill:e,allSkills:t,hostSet:n,sourceHostOverlay:r,linkMode:i}){let a=t=>e?`${j(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(Z)))),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`?X:Y,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,ee=g===null?r??e?.hosts?.[0]:void 0,_=new Set(e?.conflictHosts??[]),te=new Set(e?.driftPaths??[]),v=new Set(e?.symlinkedHosts??[]),y=[...[...n].filter(e=>e!==ee&&!(e in c)&&!_.has(e)&&!e.includes(`/`)).map(e=>({target:e,display:a(e)??e,mode:v.has(e)?`link`:`copy`})),...(e?.customPlacements??[]).map(e=>({target:M(e),display:`${m}${e.path}`,mode:e.mode}))],b=y.map(e=>e.mode),x=b.filter(e=>e===`link`).length,S=b.length===0?i?`link`:`copy`:x*2>=b.length?`link`:`copy`,C=new Map((e?.customPlacements??[]).map(e=>[M(e),e])),w=new Set(C.keys());if(t!==null&&e){for(let n of t)if(n.scope===e.scope)for(let e of n.customPlacements??[]){let t=M(e);t!==``&&w.add(t)}}return{pathFor:a,aliases:c,rows:f,sourceRow:g,sourceHost:ee,conflicted:_,drifted:te,linked:v,expectedMode:S,convertible:y,customRootRows:e===void 0?[]:[...w].sort().map(t=>({root:t,display:`${m}${t}/${e.name}`,placed:C.get(t)??null})).filter(e=>!p.has(e.display)&&e.display!==h&&!(e.root in c))}}var we=`min-w-[24rem]`;function Te(e,t){let n=(0,z.c)(45),r=t.installingName===e.name,i=(0,R.useRef)(e),[a,o]=(0,R.useState)(!1),s=(0,R.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,R.useEffect)(c,l);let u,d;n[3]===e?(u=n[4],d=n[5]):(u=()=>{e!==i.current&&(i.current=e,o(!1))},d=[e],n[3]=e,n[4]=u,n[5]=d),(0,R.useEffect)(u,d);let f=r||a,p;n[6]!==e.name||n[7]!==e.scope?(p=xe(e.scope,e.name),n[6]=e.name,n[7]=e.scope,n[8]=p):p=n[8];let m=p,h,g;n[9]===m?(h=n[10],g=n[11]):(h=e=>q(m,e),g=()=>Se(m),n[9]=m,n[10]=h,n[11]=g);let ee=(0,R.useSyncExternalStore)(h,g),_=ee.hosts,v=ee.source,y,b;n[12]!==v||n[13]!==m||n[14]!==e.hosts?(y=()=>{v!==null&&e.hosts[0]===v&&J(m,{source:null})},b=[e.hosts,v,m],n[12]=v,n[13]=m,n[14]=e.hosts,n[15]=y,n[16]=b):(y=n[15],b=n[16]),(0,R.useEffect)(y,b);let S=e.linkMode===!0,C=_??e.hosts,w;n[17]===C?w=n[18]:(w=new Set(C),n[17]=C,n[18]=w);let ne=w,T=_?_.length>0:e.installed,E=(0,R.useRef)(e.hosts),D,O;n[19]!==_||n[20]!==e.hosts?(D=()=>{_===null&&(E.current=e.hosts)},O=[_,e.hosts],n[19]=_,n[20]=e.hosts,n[21]=D,n[22]=O):(D=n[21],O=n[22]),(0,R.useEffect)(D,O);let k;n[23]===e.hosts?k=n[24]:(k=[...e.hosts].sort().join(`,`),n[23]=e.hosts,n[24]=k);let A=k,re,ie;n[25]!==m||n[26]!==A?(re=()=>{let e=Se(m).hosts;e&&[...e].sort().join(`,`)===A&&J(m,{hosts:null})},ie=[A,m],n[25]=m,n[26]=A,n[27]=re,n[28]=ie):(re=n[27],ie=n[28]),(0,R.useEffect)(re,ie);let j=(0,R.useRef)(null),ae=(0,R.useRef)(null),M,N;n[29]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>()=>{j.current&&clearTimeout(j.current),ae.current?.(),ae.current=null},N=[],n[29]=M,n[30]=N):(M=n[29],N=n[30]),(0,R.useEffect)(M,N);let P;n[31]!==t||n[32]!==m||n[33]!==e?(P=function(n,r){E.current=n,J(m,{hosts:n}),j.current&&clearTimeout(j.current);let i=async()=>{ae.current=null,j.current=null;let r=await t.install(e,n.filter(x));if(!r.ok){J(m,{hosts:null});return}E.current=[...r.hosts],J(m,{hosts:[...r.hosts]})};r?(ae.current=()=>void i(),j.current=setTimeout(()=>void i(),350)):(ae.current=null,i())},n[31]=t,n[32]=m,n[33]=e,n[34]=P):P=n[34];let F=P,I;return n[35]!==t||n[36]!==F||n[37]!==ne||n[38]!==T||n[39]!==f||n[40]!==v||n[41]!==m||n[42]!==S||n[43]!==e?(I={hostSet:ne,installed:T,installing:f,toggleEditor(e,t){let n=new Set(E.current);t?n.add(e):n.delete(e),F([...n],!0)},installAll(){let t=e.scope===`global`?X:Y,n=E.current.filter(e=>!t.includes(e)),r=e.installableEditors??t,i=t.filter(e=>r.includes(e)||E.current.includes(e));F([...n,...i],!1)},linkMode:S,sourceHost:v??e.hosts[0],placeAt(n,r){t.runLocationWrite(e,()=>fe({scope:e.scope,name:e.name,dir:n,mode:r})).then(De)},unplaceAt(n){t.runLocationWrite(e,()=>le({scope:e.scope,name:e.name,path:n})).then(Ee)},setSource(n){J(m,{source:n}),t.runLocationWrite(e,()=>de({scope:e.scope,name:e.name,target:n})).then(e=>{e.ok||(J(m,{source:null}),te.error(e.error))})},convertLocation(n,r){t.convertLocations(e,[{target:n,mode:r}])},convertLocations(n){t.convertLocations(e,n)}},n[35]=t,n[36]=F,n[37]=ne,n[38]=T,n[39]=f,n[40]=v,n[41]=m,n[42]=S,n[43]=e,n[44]=I):I=n[44],I}function Ee(e){e.ok||te.error(e.error)}function De(e){e.ok||te.error(e.error)}var Q={"data-file-tree-context-menu-root":`true`};function Oe(e){let t=(0,z.c)(10),{confirmation:n,onClose:i,onCloseAutoFocus:a}=e,o=n!==null,s;t[0]===i?s=t[1]:(s=e=>{e||i()},t[0]=i,t[1]=s);let c;t[2]!==n||t[3]!==i||t[4]!==a?(c=n===null?null:(0,B.jsxs)(u,{"data-testid":`skill-install-confirm`,...Q,overlayProps:Q,onCloseAutoFocus:a,children:[(0,B.jsxs)(d,{children:[(0,B.jsx)(p,{children:n.title}),(0,B.jsx)(m,{children:n.description})]}),n.paths!==void 0||n.footnote!==void 0?(0,B.jsxs)(h,{className:`flex flex-col gap-2`,children:[n.paths===void 0?null:(0,B.jsx)(`ul`,{className:`flex flex-col gap-0.5`,"data-testid":`skill-install-confirm-paths`,children:n.paths.map(ke)}),n.footnote===void 0?null:(0,B.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:n.footnote})]}):null,(0,B.jsxs)(g,{children:[(0,B.jsx)(f,{children:(0,B.jsx)(r,{id:`dEgA5A`})}),(0,B.jsx)(_,{onClick:()=>{i(),n.onConfirm()},"data-testid":`skill-install-confirm-action`,children:n.confirmLabel})]})]}),t[2]=n,t[3]=i,t[4]=a,t[5]=c):c=t[5];let l;return t[6]!==o||t[7]!==s||t[8]!==c?(l=(0,B.jsx)(ee,{open:o,onOpenChange:s,children:c}),t[6]=o,t[7]=s,t[8]=c,t[9]=l):l=t[9],l}function ke(e){return(0,B.jsx)(`li`,{children:(0,B.jsx)(`code`,{className:`break-all font-mono text-xs`,children:e})},e)}function $(e){let t=(0,z.c)(7),{hint:n,children:r}=e,i;t[0]===r?i=t[1]:(i=(0,B.jsx)(s,{asChild:!0,children:r}),t[0]=r,t[1]=i);let a;t[2]===n?a=t[3]:(a=(0,B.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,B.jsxs)(l,{children:[i,a]}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function Ae(e){let t=(0,z.c)(58),{toggles:n,skill:a,onResolveFork:s,onRunStart:c,menuKind:l}=e,u=l===void 0?`dropdown`:l,{_:d}=i(),{hostSet:f,toggleEditor:p,installAll:m}=n,h=pe(),{pathFor:g,aliases:ee,rows:b,sourceRow:x,sourceHost:S,conflicted:C,drifted:w,linked:ne,expectedMode:T,convertible:E,customRootRows:D}=Ce({skill:a,allSkills:h.status===`ready`?h.data:null,hostSet:f,sourceHostOverlay:n.sourceHost,linkMode:n.linkMode}),O=e=>ae(ee,e),k=Le,[A,M]=(0,R.useState)(null),N=(0,R.useRef)(null),P=e=>{N.current=document.activeElement instanceof HTMLElement?document.activeElement:null,M(e)},F;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(F=e=>{let t=N.current;N.current=null,!(t===null||!t.isConnected)&&(e.preventDefault(),(t.matches(`:disabled, [data-disabled]`)?t.closest(`[role="menu"]`):t)?.focus())},t[0]=F):F=t[0];let I=F,oe=(e,t)=>{let n=O(e);if(n.length===0){t();return}P({title:d({id:`TOIgzw`}),description:d({id:`Uobeu9`,values:{0:n.map(k).join(`, `),rootRel:e}}),confirmLabel:d({id:`TKQ7K-`}),onConfirm:t})},se=(e,t)=>{let n=e.includes(`/`)?e:j(e,a?.scope??`project`);return(0,B.jsx)($,{hint:d({id:`0dslv8`,values:{0:k(e),1:k(e),2:a?.name??``,poolRootRel:t,subRoot:n}}),children:(0,B.jsx)(_,{variant:`ghost`,size:`sm`,className:`h-4 shrink-0 px-0`,"aria-label":d({id:`G6Lrs_`,values:{0:k(e)}}),onClick:r=>{r.preventDefault(),r.stopPropagation(),P({title:d({id:`G6Lrs_`,values:{0:k(e)}}),description:d({id:`iiqOKM`,values:{0:k(e),1:a.name,2:k(e),subRoot:n,poolRootRel:t}}),confirmLabel:d({id:`Z6OEfL`}),onConfirm:()=>{ue({scope:a.scope,root:n,action:`unlink`,exclude:[a.name]}).then(e=>{e.ok?v():te.error(d({id:`PRgIJh`,values:{0:e.error,subRoot:n}}))})}})},"data-testid":`skill-audience-unfollow-${e}`,children:(0,B.jsx)(o,{host:e,"aria-hidden":!0,className:`size-3.5`})})},e)},L=n.installing,ce=ie(a),le=Ie,de=(e,t,i)=>{let a=i===`link`?`copy`:`link`;return(0,B.jsx)($,{hint:d(i===`link`?{id:`FeXcUS`,values:{display:t}}:{id:`ugQcJX`,values:{display:t}}),children:(0,B.jsx)(_,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-warning/40 bg-warning/10 px-1 font-normal text-[10px] text-warning uppercase tracking-wide hover:bg-warning/20 hover:text-warning dark:hover:bg-warning/20`,onClick:r=>{r.preventDefault(),r.stopPropagation(),P({title:d(a===`link`?{id:`nTpWnj`}:{id:`a3sp22`}),description:d(a===`link`?{id:`m0eHej`,values:{display:t}}:{id:`HbcQYf`,values:{display:t}}),confirmLabel:d(a===`link`?{id:`rS659a`}:{id:`qxI9iV`}),onConfirm:()=>{c?.(),n.convertLocation?.(e,a)}})},"data-testid":`skill-convert-${e}`,children:i===`link`?(0,B.jsx)(r,{id:`uUCrBv`}):(0,B.jsx)(r,{id:`iaPtht`})})})},fe;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(fe=(0,B.jsx)(r,{id:`npcziF`}),t[1]=fe):fe=t[1];let V;t[2]===d?V=t[3]:(V=d({id:`6f_UX4`}),t[2]=d,t[3]=V);let H;t[4]===m?H=t[5]:(H=()=>m(),t[4]=m,t[5]=H);let be;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(be=(0,B.jsx)(r,{id:`N40H-G`}),t[6]=be):be=t[6];let U;t[7]!==L||t[8]!==H?(U=(0,B.jsx)(_,{variant:`ghost`,size:`sm`,className:`h-5 px-1.5 font-normal text-[11px] text-muted-foreground hover:text-foreground`,disabled:L,onClick:H,"data-testid":`skill-install-all`,children:be}),t[7]=L,t[8]=H,t[9]=U):U=t[9];let W;t[10]!==V||t[11]!==U?(W=(0,B.jsx)($,{hint:V,children:U}),t[10]=V,t[11]=U,t[12]=W):W=t[12];let G;t[13]!==u||t[14]!==W?(G=(0,B.jsxs)(ve,{menuKind:u,className:`flex items-center justify-between gap-2`,children:[fe,W]}),t[13]=u,t[14]=W,t[15]=G):G=t[15];let K=x===null?null:(0,B.jsx)($,{hint:d({id:`pXB6SL`}),children:(0,B.jsxs)(_e,{menuKind:u,disabled:L,checked:!0,onSelect:Fe,"data-testid":`skill-source-row`,children:[(0,B.jsx)(re,{"aria-hidden":!0,className:`size-4 text-muted-foreground`}),(0,B.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1.5`,children:[(0,B.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:x}),(()=>{let e=le(x).split(`/`).slice(0,-1).join(`/`),t=O(e);return t.length>0?(0,B.jsx)(`span`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`skill-row-audience-source`,children:t.map(t=>se(t,e))}):null})(),(0,B.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,B.jsx)(r,{id:`tiFPjk`})})]})]})}),xe=b.map(e=>{let t=g(e),i=e===`agents`?`.agents`:y[e],c=le(t).split(`/`).slice(0,-1).join(`/`),l=O(c);return(0,B.jsx)($,{hint:C.has(e)?d({id:`8HvJlU`,values:{0:t??i}}):e===S?t?d({id:`ssk6rl`,values:{path:t}}):i:f.has(e)?d(t?{id:`9ieZhu`,values:{path:t}}:{id:`n3T3EE`,values:{label:i}}):ce?.editor===e?d({id:`_3S4Ql`,values:{0:a?.name??``,1:ce.plugin,2:t??i,label:i}}):d(t?S===void 0?{id:`xk133d`,values:{path:t}}:T===`link`?{id:`1LtA5r`,values:{path:t}}:{id:`opPbzN`,values:{path:t}}:{id:`Pp0Vgd`,values:{label:i}}),children:(0,B.jsxs)(_e,{menuKind:u,disabled:L,checked:f.has(e),onCheckedChange:t=>{C.has(e)||(t===!0?oe(c,()=>p(e,!0)):p(e,!1))},onSelect:Pe,className:`group`,"data-testid":`skill-install-editor-${e}`,children:[(0,B.jsx)(o,{host:e,"aria-hidden":!0,className:`size-4`}),(0,B.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1.5`,children:[(0,B.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:t??i}),l.length>0?(0,B.jsx)(`span`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`skill-row-audience-${e}`,children:l.map(e=>se(e,c))}):null,ce?.editor===e&&!f.has(e)?(0,B.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-${e}`,children:(0,B.jsx)(r,{id:`scRzTw`})}):null,C.has(e)?(0,B.jsx)($,{hint:d({id:`_O7dJS`}),children:(0,B.jsx)(_,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-warning/40 bg-warning/10 px-1 text-[10px] text-warning uppercase tracking-wide hover:bg-warning/20 hover:text-warning dark:hover:bg-warning/20`,onClick:t=>{t.preventDefault(),s?.(e)},"data-testid":`skill-fork-chip-${e}`,children:(0,B.jsx)(r,{id:`jng7Ko`})})}):e===S?(0,B.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,B.jsx)(r,{id:`tiFPjk`})}):f.has(e)&&a?.hosts?(0,B.jsxs)(B.Fragment,{children:[!L&&(ne.has(e)?`link`:`copy`)!==T?de(e,t??i,ne.has(e)?`link`:`copy`):null,(0,B.jsx)($,{hint:d({id:`nBgzKO`}),children:(0,B.jsx)(_,{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)},"data-testid":`skill-set-source-${e}`,children:(0,B.jsx)(r,{id:`VNNRfN`})})})]}):null,!L&&w.has(le(t))?(0,B.jsx)($,{hint:d({id:`iz1LdD`}),children:(0,B.jsx)(me,{testId:`skill-drift-${e}`})}):null]})]})},e)}),Se=D.map(e=>{let t=e.display;return(0,B.jsx)($,{hint:e.placed===null?d(S===void 0?{id:`xk133d`,values:{path:t}}:T===`link`?{id:`1LtA5r`,values:{path:t}}:{id:`opPbzN`,values:{path:t}}):d({id:`9ieZhu`,values:{path:t}}),children:(0,B.jsxs)(_e,{menuKind:u,disabled:L,checked:e.placed!==null,onCheckedChange:t=>{t===!0&&e.placed===null?oe(e.root,()=>n.placeAt(e.root,T)):e.placed!==null&&n.unplaceAt?.(e.placed.path)},onSelect:Ne,className:`group`,"data-testid":`skill-custom-root-${e.root}`,children:[e.root===`.agents/skills`?(0,B.jsx)(o,{host:`agents`,"aria-hidden":!0,className:`size-4`}):(0,B.jsx)(re,{"aria-hidden":!0,className:`size-4 text-muted-foreground`}),(0,B.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1.5`,children:[(0,B.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:e.display}),O(e.root).length>0?(0,B.jsx)(`span`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`skill-row-audience-custom-${e.root}`,children:O(e.root).map(t=>se(t,e.root))}):null,!L&&e.placed!==null&&w.has(e.placed.path)?(0,B.jsx)($,{hint:d({id:`iz1LdD`}),children:(0,B.jsx)(me,{testId:`skill-drift-custom-${e.root}`})}):e.placed===null?null:(0,B.jsxs)(B.Fragment,{children:[!L&&e.placed.mode!==T?de(e.root,e.display,e.placed.mode):null,(0,B.jsx)($,{hint:d({id:`nBgzKO`}),children:(0,B.jsx)(_,{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,B.jsx)(r,{id:`VNNRfN`})})})]})]})]})},e.root)}),q;t[16]!==D||t[17]!==b.length||t[18]!==x?(q=b.length===0&&D.length===0&&x===null?(0,B.jsx)(`div`,{className:`px-2 py-1.5 text-[11px] text-muted-foreground leading-snug`,"data-testid":`skill-install-no-destinations`,children:(0,B.jsx)(r,{id:`MOAoFO`})}):null,t[16]=D,t[17]=b.length,t[18]=x,t[19]=q):q=t[19];let J;t[20]!==d||t[21]!==P||t[22]!==L||t[23]!==E||t[24]!==T||t[25]!==c||t[26]!==n?(J=E.length>0&&n.convertLocations?(0,B.jsxs)(`div`,{className:`flex items-center gap-1 px-2 pt-1 pb-1.5`,children:[(0,B.jsx)(_,{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=T===`link`?`copy`:`link`,r=E.filter(e=>e.mode!==t);if(r.length===0)return;let i=d(t===`copy`?{id:`iOAsF1`}:{id:`MS8lMS`});P({title:d(t===`copy`?{id:`gZiT5e`}:{id:`PhIa-X`}),description:i,paths:r.map(Me),footnote:d({id:`Cu6GXQ`}),confirmLabel:d(t===`copy`?{id:`rcJmK8`}:{id:`LBv_TR`}),onConfirm:()=>{c?.(),n.convertLocations?.(r.map(e=>({target:e.target,mode:t})))}})},disabled:L,"data-testid":`skill-convert-all`,children:T===`link`?(0,B.jsx)(r,{id:`rcJmK8`}):(0,B.jsx)(r,{id:`LBv_TR`})}),(0,B.jsx)($,{hint:d({id:`0J6nhG`}),children:(0,B.jsx)(_,{variant:`ghost`,size:`sm`,"aria-label":d({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:je,"data-testid":`skill-convert-all-help`,children:`?`})})]}):null,t[20]=d,t[21]=P,t[22]=L,t[23]=E,t[24]=T,t[25]=c,t[26]=n,t[27]=J):J=t[27];let Y;t[28]===u?Y=t[29]:(Y=(0,B.jsx)(ye,{menuKind:u}),t[28]=u,t[29]=Y);let X;t[30]===d?X=t[31]:(X=d({id:`5ymuTA`}),t[30]=d,t[31]=X);let Z;t[32]===a?.scope?Z=t[33]:(Z=()=>{window.location.hash=a?.scope===`global`?`#settings/user-skills`:`#settings/skills`},t[32]=a?.scope,t[33]=Z);let we,Te;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(we=(0,B.jsx)(he,{"aria-hidden":!0}),Te=(0,B.jsx)(r,{id:`ZBF9fn`}),t[34]=we,t[35]=Te):(we=t[34],Te=t[35]);let Ee;t[36]!==u||t[37]!==Z?(Ee=(0,B.jsxs)(ge,{menuKind:u,onSelect:Z,children:[we,Te]}),t[36]=u,t[37]=Z,t[38]=Ee):Ee=t[38];let De;t[39]!==X||t[40]!==Ee?(De=(0,B.jsx)($,{hint:X,children:Ee}),t[39]=X,t[40]=Ee,t[41]=De):De=t[41];let Q;t[42]===M?Q=t[43]:(Q=()=>M(null),t[42]=M,t[43]=Q);let ke;t[44]!==A||t[45]!==I||t[46]!==Q?(ke=(0,B.jsx)(Oe,{confirmation:A,onClose:Q,onCloseAutoFocus:I}),t[44]=A,t[45]=I,t[46]=Q,t[47]=ke):ke=t[47];let Ae;return t[48]!==K||t[49]!==xe||t[50]!==Se||t[51]!==q||t[52]!==J||t[53]!==Y||t[54]!==De||t[55]!==ke||t[56]!==G?(Ae=(0,B.jsxs)(B.Fragment,{children:[G,K,xe,Se,q,J,Y,De,ke]}),t[48]=K,t[49]=xe,t[50]=Se,t[51]=q,t[52]=J,t[53]=Y,t[54]=De,t[55]=ke,t[56]=G,t[57]=Ae):Ae=t[57],Ae}function je(e){return e.preventDefault()}function Me(e){return e.display}function Ne(e){return e.preventDefault()}function Pe(e){return e.preventDefault()}function Fe(e){return e.preventDefault()}function Ie(e){return(e??``).replace(/^~\//,``)}function Le(e){return e===`agents`?`.agents`:y[e]??e}export{Y as a,ve as c,be as d,U as f,X as i,ye as l,Ae as n,V as o,he as p,Te as r,ge as s,we as t,H as u};
|
|
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-DJYZ5s2f.js";import{i as s,n as c,t as l}from"./tooltip-BjuCvy5N.js";import{a as u,c as d,i as f,l as p,o as m,r as h,s as g,t as ee}from"./alert-dialog-Mwvu63aS.js";import{t as _}from"./button-DzgjsZzC.js";import{n as te}from"./dist-Bs8bPT30.js";import{c as v}from"./documents-events-DD7-XBOS.js";import{n as y}from"./constants-editors-IUfUQiPg.js";import{n as b,r as x,t as S}from"./skill-targets-schema-CqL94mYR.js";import{t as C}from"./createLucideIcon-CB3nKwwz.js";import{a as w,f as ne,i as T,m as E,n as D,o as O,p as k,u as A}from"./dropdown-menu-480HwyVz.js";import{t as re}from"./folder-DSkyRNas.js";import"./constants-skills-Coq7kn_k.js";import{i as ie,l as j,n as ae,r as M}from"./skill-scope-C6c798PF.js";import{a as N,c as P,i as F,l as I,n as oe,o as se,s as L,u as ce}from"./context-menu-v1ORxy1K.js";import{F as le,S as ue,j as de,x as fe}from"./skills-api-CcgOY0Iy.js";import{t as pe}from"./use-skills-DAulZHaI.js";import{t as me}from"./ChangedOutsideBadge-h-lbo6MQ.js";var he=C(`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`}]]),R=e(n(),1),z=a(),B=t();function V(e){let t=(0,z.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,B.jsx)(F,{...r}):(0,B.jsx)(T,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ge(e){let t=(0,z.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,B.jsx)(N,{...r}):(0,B.jsx)(w,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function _e(e){let t=(0,z.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,B.jsx)(oe,{...r}):(0,B.jsx)(D,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ve(e){let t=(0,z.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,B.jsx)(se,{...r}):(0,B.jsx)(O,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ye(e){let t=(0,z.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,B.jsx)(L,{...r}):(0,B.jsx)(A,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function H(e){let t=(0,z.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,B.jsx)(P,{...r}):(0,B.jsx)(ne,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function be(e){let t=(0,z.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,B.jsx)(I,{...r}):(0,B.jsx)(k,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function U(e){let t=(0,z.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,B.jsx)(ce,{...r}):(0,B.jsx)(E,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}var W=Object.freeze({hosts:null,source:null}),G=new Map,K=new Map;function xe(e,t){return`${e}:${t}`}function Se(e){return G.get(e)??W}function q(e,t){let n=K.get(e)??new Set;return K.set(e,n),n.add(t),()=>{n.delete(t),n.size===0&&K.delete(e)}}function J(e,t){let n=Se(e),r={...n,...t};if(!(r.hosts===n.hosts&&r.source===n.source)){r.hosts===null&&r.source===null?G.delete(e):G.set(e,r);for(let t of K.get(e)??[])t()}}var Y=S.options,X=b.options,Z=`.agents/`;function Ce({skill:e,allSkills:t,hostSet:n,sourceHostOverlay:r,linkMode:i}){let a=t=>e?`${j(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(Z)))),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`?X:Y,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,ee=g===null?r??e?.hosts?.[0]:void 0,_=new Set(e?.conflictHosts??[]),te=new Set(e?.driftPaths??[]),v=new Set(e?.symlinkedHosts??[]),y=[...[...n].filter(e=>e!==ee&&!(e in c)&&!_.has(e)&&!e.includes(`/`)).map(e=>({target:e,display:a(e)??e,mode:v.has(e)?`link`:`copy`})),...(e?.customPlacements??[]).map(e=>({target:M(e),display:`${m}${e.path}`,mode:e.mode}))],b=y.map(e=>e.mode),x=b.filter(e=>e===`link`).length,S=b.length===0?i?`link`:`copy`:x*2>=b.length?`link`:`copy`,C=new Map((e?.customPlacements??[]).map(e=>[M(e),e])),w=new Set(C.keys());if(t!==null&&e){for(let n of t)if(n.scope===e.scope)for(let e of n.customPlacements??[]){let t=M(e);t!==``&&w.add(t)}}return{pathFor:a,aliases:c,rows:f,sourceRow:g,sourceHost:ee,conflicted:_,drifted:te,linked:v,expectedMode:S,convertible:y,customRootRows:e===void 0?[]:[...w].sort().map(t=>({root:t,display:`${m}${t}/${e.name}`,placed:C.get(t)??null})).filter(e=>!p.has(e.display)&&e.display!==h&&!(e.root in c))}}var we=`min-w-[24rem]`;function Te(e,t){let n=(0,z.c)(45),r=t.installingName===e.name,i=(0,R.useRef)(e),[a,o]=(0,R.useState)(!1),s=(0,R.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,R.useEffect)(c,l);let u,d;n[3]===e?(u=n[4],d=n[5]):(u=()=>{e!==i.current&&(i.current=e,o(!1))},d=[e],n[3]=e,n[4]=u,n[5]=d),(0,R.useEffect)(u,d);let f=r||a,p;n[6]!==e.name||n[7]!==e.scope?(p=xe(e.scope,e.name),n[6]=e.name,n[7]=e.scope,n[8]=p):p=n[8];let m=p,h,g;n[9]===m?(h=n[10],g=n[11]):(h=e=>q(m,e),g=()=>Se(m),n[9]=m,n[10]=h,n[11]=g);let ee=(0,R.useSyncExternalStore)(h,g),_=ee.hosts,v=ee.source,y,b;n[12]!==v||n[13]!==m||n[14]!==e.hosts?(y=()=>{v!==null&&e.hosts[0]===v&&J(m,{source:null})},b=[e.hosts,v,m],n[12]=v,n[13]=m,n[14]=e.hosts,n[15]=y,n[16]=b):(y=n[15],b=n[16]),(0,R.useEffect)(y,b);let S=e.linkMode===!0,C=_??e.hosts,w;n[17]===C?w=n[18]:(w=new Set(C),n[17]=C,n[18]=w);let ne=w,T=_?_.length>0:e.installed,E=(0,R.useRef)(e.hosts),D,O;n[19]!==_||n[20]!==e.hosts?(D=()=>{_===null&&(E.current=e.hosts)},O=[_,e.hosts],n[19]=_,n[20]=e.hosts,n[21]=D,n[22]=O):(D=n[21],O=n[22]),(0,R.useEffect)(D,O);let k;n[23]===e.hosts?k=n[24]:(k=[...e.hosts].sort().join(`,`),n[23]=e.hosts,n[24]=k);let A=k,re,ie;n[25]!==m||n[26]!==A?(re=()=>{let e=Se(m).hosts;e&&[...e].sort().join(`,`)===A&&J(m,{hosts:null})},ie=[A,m],n[25]=m,n[26]=A,n[27]=re,n[28]=ie):(re=n[27],ie=n[28]),(0,R.useEffect)(re,ie);let j=(0,R.useRef)(null),ae=(0,R.useRef)(null),M,N;n[29]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>()=>{j.current&&clearTimeout(j.current),ae.current?.(),ae.current=null},N=[],n[29]=M,n[30]=N):(M=n[29],N=n[30]),(0,R.useEffect)(M,N);let P;n[31]!==t||n[32]!==m||n[33]!==e?(P=function(n,r){E.current=n,J(m,{hosts:n}),j.current&&clearTimeout(j.current);let i=async()=>{ae.current=null,j.current=null;let r=await t.install(e,n.filter(x));if(!r.ok){J(m,{hosts:null});return}E.current=[...r.hosts],J(m,{hosts:[...r.hosts]})};r?(ae.current=()=>void i(),j.current=setTimeout(()=>void i(),350)):(ae.current=null,i())},n[31]=t,n[32]=m,n[33]=e,n[34]=P):P=n[34];let F=P,I;return n[35]!==t||n[36]!==F||n[37]!==ne||n[38]!==T||n[39]!==f||n[40]!==v||n[41]!==m||n[42]!==S||n[43]!==e?(I={hostSet:ne,installed:T,installing:f,toggleEditor(e,t){let n=new Set(E.current);t?n.add(e):n.delete(e),F([...n],!0)},installAll(){let t=e.scope===`global`?X:Y,n=E.current.filter(e=>!t.includes(e)),r=e.installableEditors??t,i=t.filter(e=>r.includes(e)||E.current.includes(e));F([...n,...i],!1)},linkMode:S,sourceHost:v??e.hosts[0],placeAt(n,r){t.runLocationWrite(e,()=>fe({scope:e.scope,name:e.name,dir:n,mode:r})).then(De)},unplaceAt(n){t.runLocationWrite(e,()=>le({scope:e.scope,name:e.name,path:n})).then(Ee)},setSource(n){J(m,{source:n}),t.runLocationWrite(e,()=>de({scope:e.scope,name:e.name,target:n})).then(e=>{e.ok||(J(m,{source:null}),te.error(e.error))})},convertLocation(n,r){t.convertLocations(e,[{target:n,mode:r}])},convertLocations(n){t.convertLocations(e,n)}},n[35]=t,n[36]=F,n[37]=ne,n[38]=T,n[39]=f,n[40]=v,n[41]=m,n[42]=S,n[43]=e,n[44]=I):I=n[44],I}function Ee(e){e.ok||te.error(e.error)}function De(e){e.ok||te.error(e.error)}var Q={"data-file-tree-context-menu-root":`true`};function Oe(e){let t=(0,z.c)(10),{confirmation:n,onClose:i,onCloseAutoFocus:a}=e,o=n!==null,s;t[0]===i?s=t[1]:(s=e=>{e||i()},t[0]=i,t[1]=s);let c;t[2]!==n||t[3]!==i||t[4]!==a?(c=n===null?null:(0,B.jsxs)(u,{"data-testid":`skill-install-confirm`,...Q,overlayProps:Q,onCloseAutoFocus:a,children:[(0,B.jsxs)(d,{children:[(0,B.jsx)(p,{children:n.title}),(0,B.jsx)(m,{children:n.description})]}),n.paths!==void 0||n.footnote!==void 0?(0,B.jsxs)(h,{className:`flex flex-col gap-2`,children:[n.paths===void 0?null:(0,B.jsx)(`ul`,{className:`flex flex-col gap-0.5`,"data-testid":`skill-install-confirm-paths`,children:n.paths.map(ke)}),n.footnote===void 0?null:(0,B.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:n.footnote})]}):null,(0,B.jsxs)(g,{children:[(0,B.jsx)(f,{children:(0,B.jsx)(r,{id:`dEgA5A`})}),(0,B.jsx)(_,{onClick:()=>{i(),n.onConfirm()},"data-testid":`skill-install-confirm-action`,children:n.confirmLabel})]})]}),t[2]=n,t[3]=i,t[4]=a,t[5]=c):c=t[5];let l;return t[6]!==o||t[7]!==s||t[8]!==c?(l=(0,B.jsx)(ee,{open:o,onOpenChange:s,children:c}),t[6]=o,t[7]=s,t[8]=c,t[9]=l):l=t[9],l}function ke(e){return(0,B.jsx)(`li`,{children:(0,B.jsx)(`code`,{className:`break-all font-mono text-xs`,children:e})},e)}function $(e){let t=(0,z.c)(7),{hint:n,children:r}=e,i;t[0]===r?i=t[1]:(i=(0,B.jsx)(s,{asChild:!0,children:r}),t[0]=r,t[1]=i);let a;t[2]===n?a=t[3]:(a=(0,B.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,B.jsxs)(l,{children:[i,a]}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function Ae(e){let t=(0,z.c)(58),{toggles:n,skill:a,onResolveFork:s,onRunStart:c,menuKind:l}=e,u=l===void 0?`dropdown`:l,{_:d}=i(),{hostSet:f,toggleEditor:p,installAll:m}=n,h=pe(),{pathFor:g,aliases:ee,rows:b,sourceRow:x,sourceHost:S,conflicted:C,drifted:w,linked:ne,expectedMode:T,convertible:E,customRootRows:D}=Ce({skill:a,allSkills:h.status===`ready`?h.data:null,hostSet:f,sourceHostOverlay:n.sourceHost,linkMode:n.linkMode}),O=e=>ae(ee,e),k=Le,[A,M]=(0,R.useState)(null),N=(0,R.useRef)(null),P=e=>{N.current=document.activeElement instanceof HTMLElement?document.activeElement:null,M(e)},F;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(F=e=>{let t=N.current;N.current=null,!(t===null||!t.isConnected)&&(e.preventDefault(),(t.matches(`:disabled, [data-disabled]`)?t.closest(`[role="menu"]`):t)?.focus())},t[0]=F):F=t[0];let I=F,oe=(e,t)=>{let n=O(e);if(n.length===0){t();return}P({title:d({id:`TOIgzw`}),description:d({id:`Uobeu9`,values:{0:n.map(k).join(`, `),rootRel:e}}),confirmLabel:d({id:`TKQ7K-`}),onConfirm:t})},se=(e,t)=>{let n=e.includes(`/`)?e:j(e,a?.scope??`project`);return(0,B.jsx)($,{hint:d({id:`0dslv8`,values:{0:k(e),1:k(e),2:a?.name??``,poolRootRel:t,subRoot:n}}),children:(0,B.jsx)(_,{variant:`ghost`,size:`sm`,className:`h-4 shrink-0 px-0`,"aria-label":d({id:`G6Lrs_`,values:{0:k(e)}}),onClick:r=>{r.preventDefault(),r.stopPropagation(),P({title:d({id:`G6Lrs_`,values:{0:k(e)}}),description:d({id:`iiqOKM`,values:{0:k(e),1:a.name,2:k(e),subRoot:n,poolRootRel:t}}),confirmLabel:d({id:`Z6OEfL`}),onConfirm:()=>{ue({scope:a.scope,root:n,action:`unlink`,exclude:[a.name]}).then(e=>{e.ok?v():te.error(d({id:`PRgIJh`,values:{0:e.error,subRoot:n}}))})}})},"data-testid":`skill-audience-unfollow-${e}`,children:(0,B.jsx)(o,{host:e,"aria-hidden":!0,className:`size-3.5`})})},e)},L=n.installing,ce=ie(a),le=Ie,de=(e,t,i)=>{let a=i===`link`?`copy`:`link`;return(0,B.jsx)($,{hint:d(i===`link`?{id:`FeXcUS`,values:{display:t}}:{id:`ugQcJX`,values:{display:t}}),children:(0,B.jsx)(_,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-warning/40 bg-warning/10 px-1 font-normal text-[10px] text-warning uppercase tracking-wide hover:bg-warning/20 hover:text-warning dark:hover:bg-warning/20`,onClick:r=>{r.preventDefault(),r.stopPropagation(),P({title:d(a===`link`?{id:`nTpWnj`}:{id:`a3sp22`}),description:d(a===`link`?{id:`m0eHej`,values:{display:t}}:{id:`HbcQYf`,values:{display:t}}),confirmLabel:d(a===`link`?{id:`rS659a`}:{id:`qxI9iV`}),onConfirm:()=>{c?.(),n.convertLocation?.(e,a)}})},"data-testid":`skill-convert-${e}`,children:i===`link`?(0,B.jsx)(r,{id:`uUCrBv`}):(0,B.jsx)(r,{id:`iaPtht`})})})},fe;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(fe=(0,B.jsx)(r,{id:`npcziF`}),t[1]=fe):fe=t[1];let V;t[2]===d?V=t[3]:(V=d({id:`6f_UX4`}),t[2]=d,t[3]=V);let H;t[4]===m?H=t[5]:(H=()=>m(),t[4]=m,t[5]=H);let be;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(be=(0,B.jsx)(r,{id:`N40H-G`}),t[6]=be):be=t[6];let U;t[7]!==L||t[8]!==H?(U=(0,B.jsx)(_,{variant:`ghost`,size:`sm`,className:`h-5 px-1.5 font-normal text-[11px] text-muted-foreground hover:text-foreground`,disabled:L,onClick:H,"data-testid":`skill-install-all`,children:be}),t[7]=L,t[8]=H,t[9]=U):U=t[9];let W;t[10]!==V||t[11]!==U?(W=(0,B.jsx)($,{hint:V,children:U}),t[10]=V,t[11]=U,t[12]=W):W=t[12];let G;t[13]!==u||t[14]!==W?(G=(0,B.jsxs)(ve,{menuKind:u,className:`flex items-center justify-between gap-2`,children:[fe,W]}),t[13]=u,t[14]=W,t[15]=G):G=t[15];let K=x===null?null:(0,B.jsx)($,{hint:d({id:`pXB6SL`}),children:(0,B.jsxs)(_e,{menuKind:u,disabled:L,checked:!0,onSelect:Fe,"data-testid":`skill-source-row`,children:[(0,B.jsx)(re,{"aria-hidden":!0,className:`size-4 text-muted-foreground`}),(0,B.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1.5`,children:[(0,B.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:x}),(()=>{let e=le(x).split(`/`).slice(0,-1).join(`/`),t=O(e);return t.length>0?(0,B.jsx)(`span`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`skill-row-audience-source`,children:t.map(t=>se(t,e))}):null})(),(0,B.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,B.jsx)(r,{id:`tiFPjk`})})]})]})}),xe=b.map(e=>{let t=g(e),i=e===`agents`?`.agents`:y[e],c=le(t).split(`/`).slice(0,-1).join(`/`),l=O(c);return(0,B.jsx)($,{hint:C.has(e)?d({id:`8HvJlU`,values:{0:t??i}}):e===S?t?d({id:`ssk6rl`,values:{path:t}}):i:f.has(e)?d(t?{id:`9ieZhu`,values:{path:t}}:{id:`n3T3EE`,values:{label:i}}):ce?.editor===e?d({id:`_3S4Ql`,values:{0:a?.name??``,1:ce.plugin,2:t??i,label:i}}):d(t?S===void 0?{id:`xk133d`,values:{path:t}}:T===`link`?{id:`1LtA5r`,values:{path:t}}:{id:`opPbzN`,values:{path:t}}:{id:`Pp0Vgd`,values:{label:i}}),children:(0,B.jsxs)(_e,{menuKind:u,disabled:L,checked:f.has(e),onCheckedChange:t=>{C.has(e)||(t===!0?oe(c,()=>p(e,!0)):p(e,!1))},onSelect:Pe,className:`group`,"data-testid":`skill-install-editor-${e}`,children:[(0,B.jsx)(o,{host:e,"aria-hidden":!0,className:`size-4`}),(0,B.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1.5`,children:[(0,B.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:t??i}),l.length>0?(0,B.jsx)(`span`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`skill-row-audience-${e}`,children:l.map(e=>se(e,c))}):null,ce?.editor===e&&!f.has(e)?(0,B.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-${e}`,children:(0,B.jsx)(r,{id:`scRzTw`})}):null,C.has(e)?(0,B.jsx)($,{hint:d({id:`_O7dJS`}),children:(0,B.jsx)(_,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-warning/40 bg-warning/10 px-1 text-[10px] text-warning uppercase tracking-wide hover:bg-warning/20 hover:text-warning dark:hover:bg-warning/20`,onClick:t=>{t.preventDefault(),s?.(e)},"data-testid":`skill-fork-chip-${e}`,children:(0,B.jsx)(r,{id:`jng7Ko`})})}):e===S?(0,B.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,B.jsx)(r,{id:`tiFPjk`})}):f.has(e)&&a?.hosts?(0,B.jsxs)(B.Fragment,{children:[!L&&(ne.has(e)?`link`:`copy`)!==T?de(e,t??i,ne.has(e)?`link`:`copy`):null,(0,B.jsx)($,{hint:d({id:`nBgzKO`}),children:(0,B.jsx)(_,{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)},"data-testid":`skill-set-source-${e}`,children:(0,B.jsx)(r,{id:`VNNRfN`})})})]}):null,!L&&w.has(le(t))?(0,B.jsx)($,{hint:d({id:`iz1LdD`}),children:(0,B.jsx)(me,{testId:`skill-drift-${e}`})}):null]})]})},e)}),Se=D.map(e=>{let t=e.display;return(0,B.jsx)($,{hint:e.placed===null?d(S===void 0?{id:`xk133d`,values:{path:t}}:T===`link`?{id:`1LtA5r`,values:{path:t}}:{id:`opPbzN`,values:{path:t}}):d({id:`9ieZhu`,values:{path:t}}),children:(0,B.jsxs)(_e,{menuKind:u,disabled:L,checked:e.placed!==null,onCheckedChange:t=>{t===!0&&e.placed===null?oe(e.root,()=>n.placeAt(e.root,T)):e.placed!==null&&n.unplaceAt?.(e.placed.path)},onSelect:Ne,className:`group`,"data-testid":`skill-custom-root-${e.root}`,children:[e.root===`.agents/skills`?(0,B.jsx)(o,{host:`agents`,"aria-hidden":!0,className:`size-4`}):(0,B.jsx)(re,{"aria-hidden":!0,className:`size-4 text-muted-foreground`}),(0,B.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1.5`,children:[(0,B.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:e.display}),O(e.root).length>0?(0,B.jsx)(`span`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`skill-row-audience-custom-${e.root}`,children:O(e.root).map(t=>se(t,e.root))}):null,!L&&e.placed!==null&&w.has(e.placed.path)?(0,B.jsx)($,{hint:d({id:`iz1LdD`}),children:(0,B.jsx)(me,{testId:`skill-drift-custom-${e.root}`})}):e.placed===null?null:(0,B.jsxs)(B.Fragment,{children:[!L&&e.placed.mode!==T?de(e.root,e.display,e.placed.mode):null,(0,B.jsx)($,{hint:d({id:`nBgzKO`}),children:(0,B.jsx)(_,{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,B.jsx)(r,{id:`VNNRfN`})})})]})]})]})},e.root)}),q;t[16]!==D||t[17]!==b.length||t[18]!==x?(q=b.length===0&&D.length===0&&x===null?(0,B.jsx)(`div`,{className:`px-2 py-1.5 text-[11px] text-muted-foreground leading-snug`,"data-testid":`skill-install-no-destinations`,children:(0,B.jsx)(r,{id:`MOAoFO`})}):null,t[16]=D,t[17]=b.length,t[18]=x,t[19]=q):q=t[19];let J;t[20]!==d||t[21]!==P||t[22]!==L||t[23]!==E||t[24]!==T||t[25]!==c||t[26]!==n?(J=E.length>0&&n.convertLocations?(0,B.jsxs)(`div`,{className:`flex items-center gap-1 px-2 pt-1 pb-1.5`,children:[(0,B.jsx)(_,{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=T===`link`?`copy`:`link`,r=E.filter(e=>e.mode!==t);if(r.length===0)return;let i=d(t===`copy`?{id:`iOAsF1`}:{id:`MS8lMS`});P({title:d(t===`copy`?{id:`gZiT5e`}:{id:`PhIa-X`}),description:i,paths:r.map(Me),footnote:d({id:`Cu6GXQ`}),confirmLabel:d(t===`copy`?{id:`rcJmK8`}:{id:`LBv_TR`}),onConfirm:()=>{c?.(),n.convertLocations?.(r.map(e=>({target:e.target,mode:t})))}})},disabled:L,"data-testid":`skill-convert-all`,children:T===`link`?(0,B.jsx)(r,{id:`rcJmK8`}):(0,B.jsx)(r,{id:`LBv_TR`})}),(0,B.jsx)($,{hint:d({id:`0J6nhG`}),children:(0,B.jsx)(_,{variant:`ghost`,size:`sm`,"aria-label":d({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:je,"data-testid":`skill-convert-all-help`,children:`?`})})]}):null,t[20]=d,t[21]=P,t[22]=L,t[23]=E,t[24]=T,t[25]=c,t[26]=n,t[27]=J):J=t[27];let Y;t[28]===u?Y=t[29]:(Y=(0,B.jsx)(ye,{menuKind:u}),t[28]=u,t[29]=Y);let X;t[30]===d?X=t[31]:(X=d({id:`5ymuTA`}),t[30]=d,t[31]=X);let Z;t[32]===a?.scope?Z=t[33]:(Z=()=>{window.location.hash=a?.scope===`global`?`#settings/user-skills`:`#settings/skills`},t[32]=a?.scope,t[33]=Z);let we,Te;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(we=(0,B.jsx)(he,{"aria-hidden":!0}),Te=(0,B.jsx)(r,{id:`ZBF9fn`}),t[34]=we,t[35]=Te):(we=t[34],Te=t[35]);let Ee;t[36]!==u||t[37]!==Z?(Ee=(0,B.jsxs)(ge,{menuKind:u,onSelect:Z,children:[we,Te]}),t[36]=u,t[37]=Z,t[38]=Ee):Ee=t[38];let De;t[39]!==X||t[40]!==Ee?(De=(0,B.jsx)($,{hint:X,children:Ee}),t[39]=X,t[40]=Ee,t[41]=De):De=t[41];let Q;t[42]===M?Q=t[43]:(Q=()=>M(null),t[42]=M,t[43]=Q);let ke;t[44]!==A||t[45]!==I||t[46]!==Q?(ke=(0,B.jsx)(Oe,{confirmation:A,onClose:Q,onCloseAutoFocus:I}),t[44]=A,t[45]=I,t[46]=Q,t[47]=ke):ke=t[47];let Ae;return t[48]!==K||t[49]!==xe||t[50]!==Se||t[51]!==q||t[52]!==J||t[53]!==Y||t[54]!==De||t[55]!==ke||t[56]!==G?(Ae=(0,B.jsxs)(B.Fragment,{children:[G,K,xe,Se,q,J,Y,De,ke]}),t[48]=K,t[49]=xe,t[50]=Se,t[51]=q,t[52]=J,t[53]=Y,t[54]=De,t[55]=ke,t[56]=G,t[57]=Ae):Ae=t[57],Ae}function je(e){return e.preventDefault()}function Me(e){return e.display}function Ne(e){return e.preventDefault()}function Pe(e){return e.preventDefault()}function Fe(e){return e.preventDefault()}function Ie(e){return(e??``).replace(/^~\//,``)}function Le(e){return e===`agents`?`.agents`:y[e]??e}export{Y as a,ve as c,be as d,U as f,X as i,ye as l,Ae as n,V as o,he as p,Te as r,ge as s,we as t,H as u};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SkillUpdateConflictDialog-
|
|
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-BjuCvy5N.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-BuM5_PNk.js";import{t as p}from"./spinner-CeYJkImG.js";import{t as m}from"./refresh-cw-kK6tPJpw.js";import{t as h}from"./undo-2-DFO1_Si-.js";import{t as g}from"./use-skill-origin-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SkillUpdateConflictDialog-CtyW6wPA.js","./dist-Nvb76hAm.js","./chunk-CYidjpOJ.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js","./pierre-theme-bTg6dZWN.js","./preload-helper-Chd9yIcd.js","./engine-compile-DCXqaKj1.js","./lib-BFwLNStM.js","./ccount-Bpl7p-di.js","./lib-BdDWWJXX.js","./space-separated-tokens-Db5y9Cue.js","./lib-C_jEl4A5.js","./ok-syntax-theme-8liHuuQb.js","./MultiFileDiff-B2a-fkjz.js","./compiler-runtime-BfE3aGVn.js","./button-DzgjsZzC.js","./dist-CSCUSbQc.js","./dist-BsJYDohW.js","./bundle-mjs-SHeFpKGC.js","./utils-CPqDy6Hr.js","./dialog-BPbtQmOL.js","./electron-drag-strip-D9GZhMg_.js","./dist-DTFuvKje.js","./react-dom-DPxgxlDT.js","./dist-CxbWbOvU.js","./es2015-Dtr4fzLT.js","./x-B-DmMnJT.js","./createLucideIcon-CB3nKwwz.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-BjuCvy5N.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-BuM5_PNk.js";import{t as p}from"./spinner-CeYJkImG.js";import{t as m}from"./refresh-cw-kK6tPJpw.js";import{t as h}from"./undo-2-DFO1_Si-.js";import{t as g}from"./use-skill-origin-BsQ6pqNb.js";var _=o(),v=e(r(),1),y=n(),b=(0,v.lazy)(async()=>({default:(await t(()=>import(`./SkillUpdateConflictDialog-CtyW6wPA.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-warning/10 px-1.5 py-0.5 font-medium text-[11px] text-warning`,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-DJYZ5s2f.js";import{t as c}from"./dist-CSCUSbQc.js";import{t as l}from"./checkbox-CYP7ZXBH.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-BELkoEB6.js";import{t as ie}from"./button-DzgjsZzC.js";import{n as f}from"./dist-Bs8bPT30.js";import{n as ae}from"./constants-editors-IUfUQiPg.js";import{t as oe}from"./spinner-CeYJkImG.js";import{a as se}from"./SkillInstallMenu-CgZ6TUtX.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-BPbtQmOL.js";import{a as he,i as ge,t as _e}from"./popover-Dxc5JyiN.js";import{p as ve,r as ye,t as be}from"./skill-scope-C6c798PF.js";import{h as xe,i as Se,p as Ce,x as we}from"./skills-api-MxDmjydw.js";import{t as Te}from"./use-skills-DAulZHaI.js";import{t as Ee}from"./use-skill-targets-UEhNy--n.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-DJYZ5s2f.js";import{t as c}from"./dist-CSCUSbQc.js";import{t as l}from"./checkbox-CYP7ZXBH.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-BELkoEB6.js";import{t as ie}from"./button-DzgjsZzC.js";import{n as f}from"./dist-Bs8bPT30.js";import{n as ae}from"./constants-editors-IUfUQiPg.js";import{t as oe}from"./spinner-CeYJkImG.js";import{a as se}from"./SkillInstallMenu-BNaUPGis.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-BPbtQmOL.js";import{a as he,i as ge,t as _e}from"./popover-Dxc5JyiN.js";import{p as ve,r as ye,t as be}from"./skill-scope-C6c798PF.js";import{h as xe,i as Se,p as Ce,x as we}from"./skills-api-CcgOY0Iy.js";import{t as Te}from"./use-skills-DAulZHaI.js";import{t as Ee}from"./use-skill-targets-DdhJK0_S.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};
|
package/dist/public/assets/{SkillToolbarControls-BUHQ4HKP.js → SkillToolbarControls-B_fHbGu4.js}
RENAMED
|
@@ -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-BELkoEB6.js";import{t as m}from"./button-DzgjsZzC.js";import{l as h,n as g,r as _,t as v}from"./AddPropertiesButton-
|
|
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-BELkoEB6.js";import{t as m}from"./button-DzgjsZzC.js";import{l as h,n as g,r as _,t as v}from"./AddPropertiesButton-DZRrywnM.js";import{a as y,h as b,r as x,t as S,u as C}from"./dropdown-menu-480HwyVz.js";import{n as w}from"./file-plus-DBpEVY_Q.js";import{t as T}from"./list-plus-BF2ESfO9.js";import{p as E,t as D}from"./skill-scope-C6c798PF.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 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-BUgB2tll.js";import{n as t}from"./dist-Nvb76hAm.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{t as r}from"./button-DzgjsZzC.js";import{a as i,c as a,i as o,n as s,o as c,s as l,t as u}from"./dialog-BPbtQmOL.js";import{t as d}from"./MultiFileDiff-
|
|
1
|
+
import{t as e}from"./jsx-runtime-BUgB2tll.js";import{n as t}from"./dist-Nvb76hAm.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{t as r}from"./button-DzgjsZzC.js";import{a as i,c as a,i as o,n as s,o as c,s as l,t as u}from"./dialog-BPbtQmOL.js";import{t as d}from"./MultiFileDiff-B2a-fkjz.js";import{t as f}from"./pierre-theme-bTg6dZWN.js";var p=n(),m=e();function h(e){let n=(0,p.c)(38),{open:h,onOpenChange:g,skillName:_,localBody:v,upstreamBody:y,applying:b,onTakeUpstream:x}=e,S;n[0]===_?S=n[1]:(S=(0,m.jsx)(a,{children:(0,m.jsx)(t,{id:`EPKVES`,values:{skillName:_}})}),n[0]=_,n[1]=S);let C;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,m.jsx)(i,{children:(0,m.jsx)(t,{id:`kKw0H3`})}),n[2]=C):C=n[2];let w;n[3]===S?w=n[4]:(w=(0,m.jsxs)(l,{children:[S,C]}),n[3]=S,n[4]=w);let T;n[5]!==v||n[6]!==_?(T={name:_,contents:v},n[5]=v,n[6]=_,n[7]=T):T=n[7];let E;n[8]!==_||n[9]!==y?(E={name:_,contents:y},n[8]=_,n[9]=y,n[10]=E):E=n[10];let D;n[11]===Symbol.for(`react.memo_cache_sentinel`)?(D={overflow:`wrap`,diffStyle:`unified`,theme:f()},n[11]=D):D=n[11];let O;n[12]!==T||n[13]!==E?(O=(0,m.jsx)(s,{className:`min-h-0 flex-1 overflow-auto`,children:(0,m.jsx)(d,{className:`pierre-diff`,oldFile:T,newFile:E,options:D})}),n[12]=T,n[13]=E,n[14]=O):O=n[14];let k;n[15]===g?k=n[16]:(k=()=>g(!1),n[15]=g,n[16]=k);let A;n[17]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,m.jsx)(t,{id:`Tq3pcs`}),n[17]=A):A=n[17];let j;n[18]!==b||n[19]!==k?(j=(0,m.jsx)(r,{variant:`outline`,onClick:k,disabled:b,children:A}),n[18]=b,n[19]=k,n[20]=j):j=n[20];let M;n[21]===b?M=n[22]:(M=b?(0,m.jsx)(t,{id:`JL3si7`}):(0,m.jsx)(t,{id:`qkqG0b`}),n[21]=b,n[22]=M);let N;n[23]!==b||n[24]!==x||n[25]!==M?(N=(0,m.jsx)(r,{onClick:x,disabled:b,children:M}),n[23]=b,n[24]=x,n[25]=M,n[26]=N):N=n[26];let P;n[27]!==j||n[28]!==N?(P=(0,m.jsxs)(c,{children:[j,N]}),n[27]=j,n[28]=N,n[29]=P):P=n[29];let F;n[30]!==P||n[31]!==w||n[32]!==O?(F=(0,m.jsxs)(o,{className:`flex max-h-[85vh] flex-col sm:max-w-5xl`,children:[w,O,P]}),n[30]=P,n[31]=w,n[32]=O,n[33]=F):F=n[33];let I;return n[34]!==g||n[35]!==h||n[36]!==F?(I=(0,m.jsx)(u,{open:h,onOpenChange:g,children:F}),n[34]=g,n[35]=h,n[36]=F,n[37]=I):I=n[37],I}export{h as SkillUpdateConflictDialog};
|