@inkeep/open-knowledge 0.86.13-beta.4 → 0.86.13-beta.6
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.mjs +64 -61
- package/dist/constants-QhGcX1jP.mjs +1 -0
- package/dist/{dist-B3JSP2vE.mjs → dist-B-LAoRmW.mjs} +246 -246
- package/dist/{dist-Cg8yynJK.mjs → dist-DFHKTwRq.mjs} +1 -1
- package/dist/index.mjs +211 -211
- package/dist/init-DNcF_zUp.mjs +1 -0
- package/dist/{init-_CLZ7nWu.mjs → init-DsTDW8PN.mjs} +2 -2
- package/dist/{launch-json-removal-BvhxP9Uz.mjs → launch-json-removal-C0-wLRJG.mjs} +1 -1
- package/dist/{loader-Cx5ZU1Vt.mjs → loader-B14ip6IN.mjs} +1 -1
- package/dist/loader-CEVDxJIa.mjs +1 -0
- package/dist/{md-manager-BGnqyqi1-C3TzVoMq.mjs → md-manager-BGnqyqi1-CPATjLIj.mjs} +161 -161
- package/dist/{open-browser-CZQVLAb7.mjs → open-browser-DfTjiF9R.mjs} +1 -1
- package/dist/parse-worker.mjs +1 -1
- package/dist/{preview-D79TyBWV.mjs → preview-DCs1uVu5.mjs} +1 -1
- package/dist/preview-DptKn8iO.mjs +1 -0
- package/dist/public/assets/{AccountSection-Dcm3ugb6.js → AccountSection-CowlGJFs.js} +1 -1
- package/dist/public/assets/{ActivityModeContent-CZjIZtvs.js → ActivityModeContent-CcroJ-DG.js} +1 -1
- package/dist/public/assets/{ActivityPanelDiffView-D1HNJ0EL.js → ActivityPanelDiffView-EBKh4lfz.js} +1 -1
- package/dist/public/assets/{AddPropertiesButton-BWs3n4R_.js → AddPropertiesButton-Ack7vynK.js} +2 -2
- package/dist/public/assets/{AgentConnectionsSection-I5ydhOvH.js → AgentConnectionsSection-V1XIxXWn.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-DMJ-Au6L.js → AgentDiffPane-DiwxFrFb.js} +2 -2
- package/dist/public/assets/{AgentIconCluster-C-VgT3LF.js → AgentIconCluster-BEGR8gsd.js} +1 -1
- package/dist/public/assets/{AgentThreadClientBinder-DrhaSEqj.js → AgentThreadClientBinder-i1OS6YZc.js} +1 -1
- package/dist/public/assets/{AppMenubar-CRsvgLgT.js → AppMenubar-D2cojoe2.js} +1 -1
- package/dist/public/assets/{AttachmentsSection-WqNH7NpR.js → AttachmentsSection-85LnQHCB.js} +1 -1
- package/dist/public/assets/{AuthModal-VAjga0R_.js → AuthModal-DFNZnQuX.js} +1 -1
- package/dist/public/assets/{BugReportHistory-D_vS5yeX.js → BugReportHistory-BVxLhZnU.js} +1 -1
- package/dist/public/assets/{BugReportHistoryDialog-BsHedQLK.js → BugReportHistoryDialog-B3DqNwzj.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-CkbDdHLO.js → CodeMirrorPropInput-UA1el3M1.js} +74 -76
- package/dist/public/assets/{ConsentDialogBody-Cs9U--xK.js → ConsentDialogBody-yhQ0MBLP.js} +1 -1
- package/dist/public/assets/{ContentRulesSection-bfsSbU4r.js → ContentRulesSection-mTywn1H0.js} +1 -1
- package/dist/public/assets/{DiffViewBoundary-FHxnNVAP.js → DiffViewBoundary-G84zg4aW.js} +1 -1
- package/dist/public/assets/{DocumentContext-DWznAbsT.js → DocumentContext-Bpjsqo1P.js} +29 -29
- package/dist/public/assets/EditorModeToggle-BxZG0GCz.js +1 -0
- package/dist/public/assets/{ExcalidrawDocEditor-CONtiMLs.js → ExcalidrawDocEditor-zDA0vdbs.js} +1 -1
- package/dist/public/assets/FeedbackForm-6XiRSy77.js +1 -0
- package/dist/public/assets/{GraphPanel-E08oqH31.js → GraphPanel-CZaSd77y.js} +1 -1
- package/dist/public/assets/{ImportSkillDialog-DJokKBEG.js → ImportSkillDialog-30iXeyF6.js} +1 -1
- package/dist/public/assets/{LinkPreviewsSection-CO91jX-w.js → LinkPreviewsSection-Dunim138.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-BTbTxzH2.js → LintConfigEditor-DOaH26Y3.js} +1 -1
- package/dist/public/assets/{LintingSection-5MMhZDt1.js → LintingSection-CR6EIafl.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-BmUZv2uD.js +1 -0
- package/dist/public/assets/{ManagedArtifactProperties-DdtwSRSZ.js → ManagedArtifactProperties-aljVpK04.js} +1 -1
- package/dist/public/assets/{McpConsentDialogBody-C8ZreyHs.js → McpConsentDialogBody-PdwC87Hm.js} +1 -1
- package/dist/public/assets/{Mermaid-OyqDVkV1.js → Mermaid-DrDUd07u.js} +2 -2
- package/dist/public/assets/{MermaidDocEditor-CMJavKRs.js → MermaidDocEditor-B8TfaHGr.js} +1 -1
- package/dist/public/assets/{MultiFileDiff-B6HXL4Bz.js → MultiFileDiff-BjX5FEfb.js} +1 -1
- package/dist/public/assets/{NetworkAccessSection-BtvIoHiy.js → NetworkAccessSection-TETzOWD_.js} +1 -1
- package/dist/public/assets/{OkCliPathRow-DbB_6973.js → OkCliPathRow-C6EY6HcU.js} +1 -1
- package/dist/public/assets/{OkignoreSection-yGChxPkk.js → OkignoreSection-D-T6Z6dG.js} +1 -1
- package/dist/public/assets/{PageListContext-Bi_B31eY.js → PageListContext-CLxDIn56.js} +1 -1
- package/dist/public/assets/{ProjectTemplatesSection-CErBIZAd.js → ProjectTemplatesSection-CDlx8JGk.js} +1 -1
- package/dist/public/assets/PropertyDisplayRow-PpwMWELQ.js +2 -0
- package/dist/public/assets/{PublishToGitHubDialog-D_pqPo58.js → PublishToGitHubDialog-DHCNHDEf.js} +1 -1
- package/dist/public/assets/{RegisteredAgentIcon-B-QI5vC7.js → RegisteredAgentIcon-BPF2tZVE.js} +1 -1
- package/dist/public/assets/{ReportBugDialogBody-D_wT-bR6.js → ReportBugDialogBody-De5A5a-_.js} +1 -1
- package/dist/public/assets/{ReportBugMenuTrigger-CJ3kXXwl.js → ReportBugMenuTrigger-D7K_uENa.js} +1 -1
- package/dist/public/assets/{SchemaConfigEditor-CYqQEvxP.js → SchemaConfigEditor-LrnwWr8i.js} +1 -1
- package/dist/public/assets/{SearchSection-D91ee5E7.js → SearchSection-ey8z-UyU.js} +1 -1
- package/dist/public/assets/{SessionsHost-B4M20RbQ.js → SessionsHost-DV3rQaV6.js} +2 -2
- package/dist/public/assets/{SettingsDialogBody-D5LT_4b7.js → SettingsDialogBody-Bcv_vYHe.js} +2 -2
- package/dist/public/assets/{ShareReceiveMissDialog-DrUa_h5L.js → ShareReceiveMissDialog-MpyX-2te.js} +1 -1
- package/dist/public/assets/{SkillCostValue-BDp7Eha2.js → SkillCostValue-BXNJ1Tm_.js} +1 -1
- package/dist/public/assets/{SkillEditBanner-BffWSG8a.js → SkillEditBanner-DpXrK2i-.js} +1 -1
- package/dist/public/assets/{SkillForkDialog-DQddOiyu.js → SkillForkDialog-CizHc05K.js} +1 -1
- package/dist/public/assets/{SkillInstallMenu-DlHKq8hv.js → SkillInstallMenu-DDMeuUUL.js} +1 -1
- package/dist/public/assets/{SkillOriginInline-ChwFcqXX.js → SkillOriginInline-BCqN9HRT.js} +2 -2
- package/dist/public/assets/{SkillToolbarControls-Dj0M6wzH.js → SkillToolbarControls-EF87XEf5.js} +1 -1
- package/dist/public/assets/{SkillUpdateConflictDialog-DPXsWJ1y.js → SkillUpdateConflictDialog-CgPPIuYI.js} +1 -1
- package/dist/public/assets/{SkillsManagerSection-D5LD8yyw.js → SkillsManagerSection-C3olYKp8.js} +1 -1
- package/dist/public/assets/{SlidesToolbarControls-BkLR0bIN.js → SlidesToolbarControls-D7F4vLiq.js} +1 -1
- package/dist/public/assets/SourceEditor-Dns11FYK.js +1 -0
- package/dist/public/assets/{SpellingSettings-Bynn3jvm.js → SpellingSettings-DTFaJnWZ.js} +1 -1
- package/dist/public/assets/{SyncSection-BqmjIYgs.js → SyncSection-BIbeHZvp.js} +1 -1
- package/dist/public/assets/{SyncStatusBadge-DMSpKYfw.js → SyncStatusBadge-DaMofnew.js} +1 -1
- package/dist/public/assets/{TemplateRow-DQdGnT7G.js → TemplateRow-DnL_ZwrM.js} +1 -1
- package/dist/public/assets/{TerminalLaunchContext-C0D0AjYk.js → TerminalLaunchContext-B3McB-vb.js} +1 -1
- package/dist/public/assets/{TerminalPanel-C2XH2APV.js → TerminalPanel-CQlOB1Fu.js} +1 -1
- package/dist/public/assets/{TerminalSection-rEqZGj0V.js → TerminalSection-DQWuBL3s.js} +1 -1
- package/dist/public/assets/{TerminalWindowApp-DYRgstu-.js → TerminalWindowApp-LE6KPay1.js} +1 -1
- package/dist/public/assets/{TextDocEditor-Cg3E-W6p.js → TextDocEditor-BcJtDjng.js} +1 -1
- package/dist/public/assets/{ThemePluginSection-Bz5OQvNw.js → ThemePluginSection-ebkfP2XH.js} +1 -1
- package/dist/public/assets/{ThreadView-DmE-Joxt.js → ThreadView-DI-eMUWY.js} +4 -4
- package/dist/public/assets/{TimelineDiffPane-Di7b0Lms.js → TimelineDiffPane-SShlUARz.js} +2 -2
- package/dist/public/assets/{abnfDiagram-N423BO3Z-DI1MOTax.js → abnfDiagram-N423BO3Z-HaE-1SHy.js} +1 -1
- package/dist/public/assets/{agent-connections-DNmfyMsp.js → agent-connections-D3CCdbtf.js} +1 -1
- package/dist/public/assets/{agent-registry-DogpWp0g.js → agent-registry-CIU-Kw1G.js} +1 -1
- package/dist/public/assets/{architectureDiagram-T3A2C74G-CjnIcTlm.js → architectureDiagram-T3A2C74G-Ccu6kbYe.js} +1 -1
- package/dist/public/assets/{blockDiagram-VBNYF7ZC-CtugLD14.js → blockDiagram-VBNYF7ZC-DdBB9Ln0.js} +1 -1
- package/dist/public/assets/{bridge-D7iidAps.js → bridge-J-D0yfAt.js} +1 -1
- package/dist/public/assets/{c4Diagram-5PPSVZJV-jQGQqB7a.js → c4Diagram-5PPSVZJV-BD8BlKWy.js} +1 -1
- package/dist/public/assets/{card-BCGFc40z.js → card-hDaniKMv.js} +1 -1
- package/dist/public/assets/{catalog-B6wrSY6n.js → catalog-BinlaYrt.js} +1 -1
- package/dist/public/assets/channel-CYnTkHik.js +1 -0
- package/dist/public/assets/{channel-cli-copy-je7XEBLx.js → channel-cli-copy-JyS-Y0NW.js} +1 -1
- package/dist/public/assets/{chunk-2GRJ4B5K-BluuBMiQ.js → chunk-2GRJ4B5K-sot9-RGs.js} +1 -1
- package/dist/public/assets/{chunk-3NCLNEKW-J87Pt5Ce.js → chunk-3NCLNEKW-B_jASG33.js} +1 -1
- package/dist/public/assets/{chunk-4I5QYGJK-VLITJA8M.js → chunk-4I5QYGJK-_A5aYnw2.js} +1 -1
- package/dist/public/assets/{chunk-5RXB4S5H-CAUonrKc.js → chunk-5RXB4S5H-DsIiMH6C.js} +1 -1
- package/dist/public/assets/{chunk-6Q2QTUOP-DksP2qPM.js → chunk-6Q2QTUOP-B44d4_I1.js} +1 -1
- package/dist/public/assets/{chunk-7Z6QIM7H-L0nm87vF.js → chunk-7Z6QIM7H-BkSyAoJV.js} +1 -1
- package/dist/public/assets/{chunk-BO2N2NFS-Cu3Zcp58.js → chunk-BO2N2NFS-CA1DMyeT.js} +4 -4
- package/dist/public/assets/{chunk-GF5L2VYU-DIj9Ac3d.js → chunk-GF5L2VYU-BiIl9j28.js} +1 -1
- package/dist/public/assets/{chunk-I66GZJ75-CHQVooIa.js → chunk-I66GZJ75-BBS7pKXH.js} +1 -1
- package/dist/public/assets/{chunk-J7OUQ5F2-BJaftJuu.js → chunk-J7OUQ5F2-Bym5ibCp.js} +2 -2
- package/dist/public/assets/{chunk-JQJVKLGR-Bg0yqFQE.js → chunk-JQJVKLGR-pDr7vdp1.js} +1 -1
- package/dist/public/assets/{chunk-KBJHAD2P-CZyxKjx5.js → chunk-KBJHAD2P-BFdlSWL6.js} +1 -1
- package/dist/public/assets/{chunk-NSK5VX7P-DKFvDLTr.js → chunk-NSK5VX7P-eSc6NYUh.js} +1 -1
- package/dist/public/assets/{chunk-QR6OTTB3-CFQoHy2U.js → chunk-QR6OTTB3-CgpJcD7h.js} +1 -1
- package/dist/public/assets/{chunk-UBXNYLIW-ByzoKB1b.js → chunk-UBXNYLIW-DH4CIV4Z.js} +1 -1
- package/dist/public/assets/{chunk-W5SLKNZC-C55mW624.js → chunk-W5SLKNZC-D-lroYqs.js} +1 -1
- package/dist/public/assets/{chunk-WRU74C26-ButWmYus.js → chunk-WRU74C26-d-2Ia2A3.js} +1 -1
- package/dist/public/assets/classDiagram-JCYQIIEL-YchR3ru9.js +1 -0
- package/dist/public/assets/classDiagram-v2-OCEON4UE-DovRAlnt.js +1 -0
- package/dist/public/assets/{client-version-PD0qSMU1.js → client-version-CdR5OEoA.js} +1 -1
- package/dist/public/assets/cm-theme-DsKCc8Du.js +3 -0
- package/dist/public/assets/{code-highlighter-impl-a2b98fkn.js → code-highlighter-impl-CNu9hCDQ.js} +1 -1
- package/dist/public/assets/{comment-chips-DCa2cG-c.js → comment-chips-CGV3uBng.js} +3 -3
- package/dist/public/assets/{config-errors-CRSjDE6L.js → config-errors-D_yVSvNT.js} +1 -1
- package/dist/public/assets/{config-provider-Rd-Pxamp.js → config-provider-DyQHdVWH.js} +1 -1
- package/dist/public/assets/config-schema-DztM21_Q.js +1 -0
- package/dist/public/assets/{constants-editors-CUF3jjbc.js → constants-editors-CfabqCeY.js} +1 -1
- package/dist/public/assets/constants-product-B7cMRfgm.js +1 -0
- package/dist/public/assets/{css-color-to-hex-7HjZuD_e.js → css-color-to-hex-DLoRfF4H.js} +1 -1
- package/dist/public/assets/{cynefinDiagram-MW4NZA55-BMApxUec.js → cynefinDiagram-MW4NZA55-Bt---2w-.js} +1 -1
- package/dist/public/assets/{dagre-VZM6K2ZE-CWAXiEIi.js → dagre-VZM6K2ZE-DadMRY2W.js} +1 -1
- package/dist/public/assets/{diagram-7IWD3JNH-CGgAPAS_.js → diagram-7IWD3JNH-xND6JtDz.js} +1 -1
- package/dist/public/assets/{diagram-B4RE2ZJO-HTZnbLMJ.js → diagram-B4RE2ZJO-CZVxA6hR.js} +1 -1
- package/dist/public/assets/{diagram-LBJQPF4R-BEqABlrl.js → diagram-LBJQPF4R-rX0Tq4jZ.js} +1 -1
- package/dist/public/assets/{diagram-Q27KOJAE-D0dG7XZ0.js → diagram-Q27KOJAE-nt3g7b0x.js} +1 -1
- package/dist/public/assets/{diagram-UB23O5K3-CN18Hs5e.js → diagram-UB23O5K3-szgv1p93.js} +1 -1
- package/dist/public/assets/dist-Bft6rZTE.js +1 -0
- package/dist/public/assets/{dist-CThTn0n3.js → dist-D3PI74Ez.js} +1 -1
- package/dist/public/assets/{doc-undo-manager-BkkystHW.js → doc-undo-manager-BzYAqvBQ.js} +1 -1
- package/dist/public/assets/{documents-events-Bk-Mqly7.js → documents-events-BLdDDkgL.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-BXEA7PRR-e3dD5Nln.js → ebnfDiagram-BXEA7PRR-D6Uvf-oy.js} +1 -1
- package/dist/public/assets/{engine-compile--HhyEWi4.js → engine-compile-BycZLMmD.js} +1 -1
- package/dist/public/assets/{erDiagram-JOGREHBK-szVyqZkn.js → erDiagram-JOGREHBK-DpQfEzzT.js} +1 -1
- package/dist/public/assets/{field-controls-Bh5SHZoS.js → field-controls-BuDfcEQ5.js} +1 -1
- package/dist/public/assets/field-controls-C5yOp45E.js +1 -0
- package/dist/public/assets/flowDiagram-UKHOOZJN-Bvgmb4Q6.js +1 -0
- package/dist/public/assets/{folder-config-api-DH9wJrB1.js → folder-config-api-CJ0YtcMT.js} +1 -1
- package/dist/public/assets/{ganttDiagram-PKOTCBZU-CcKCaoog.js → ganttDiagram-PKOTCBZU-DLwqDN74.js} +1 -1
- package/dist/public/assets/{gitGraphDiagram-DS77QQ5N-iHZmSAWb.js → gitGraphDiagram-DS77QQ5N-Cc5MCrtO.js} +1 -1
- package/dist/public/assets/{highlighted-body-OFNGDK62-iKto6Lag.js → highlighted-body-OFNGDK62-DS7wrpMM.js} +1 -1
- package/dist/public/assets/ime-composition-gK1nUjUW.js +1 -0
- package/dist/public/assets/{index-BahO2BwG.js → index-BUWsL8h_.js} +10 -10
- package/dist/public/assets/{infoDiagram-6WML65LV-CqhCLrMr.js → infoDiagram-6WML65LV-ChXfRabQ.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-WSZJBQD7-DqDbu5yX.js → ishikawaDiagram-WSZJBQD7-B0AT-ixb.js} +1 -1
- package/dist/public/assets/{journeyDiagram-NVQOT4AX-wc4iC-J-.js → journeyDiagram-NVQOT4AX-CF-x6pcZ.js} +1 -1
- package/dist/public/assets/{kanban-definition-27J2QSJJ-PXZDaBtc.js → kanban-definition-27J2QSJJ-BphUtkcd.js} +1 -1
- package/dist/public/assets/{lib-TFtgHRaJ.js → lib-BZsAU7Y2.js} +1 -1
- package/dist/public/assets/{lib-QQS1Brzc.js → lib-CY2yz3tg.js} +1 -1
- package/dist/public/assets/{lib-JGveGkyb.js → lib-DoyE8anS.js} +1 -1
- package/dist/public/assets/{line-DR0ZdS7v.js → line-C48bgrw0.js} +1 -1
- package/dist/public/assets/{lint-config-client-Be09aKfu.js → lint-config-client-CCGSFVIS.js} +1 -1
- package/dist/public/assets/{lint-plugins-Cxyq9hcz.js → lint-plugins-KeEVAAw5.js} +1 -1
- package/dist/public/assets/{markdown-lint-BZk7r3Tr.js → markdown-lint-Sq_kGPCg.js} +1 -1
- package/dist/public/assets/{markdownlint-rule-browser-B3jc6OY4.js → markdownlint-rule-browser-dtdwuRgB.js} +1 -1
- package/dist/public/assets/mermaid-GHXKKRXX-CBCytjg2.js +1 -0
- package/dist/public/assets/mermaid.core-BVxpulpZ.js +1 -0
- package/dist/public/assets/{mermaid.core-Bn6Q9XXR.js → mermaid.core-F1GwOUF1.js} +3 -3
- package/dist/public/assets/{mindmap-definition-FAOFIHXS-CcvQ-MXn.js → mindmap-definition-FAOFIHXS-FCm0u13z.js} +1 -1
- package/dist/public/assets/{pegDiagram-VL7TDLO6-CgYLYwO0.js → pegDiagram-VL7TDLO6-BbT62SD0.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-Cayui9sS.js → pending-receive-nav-store-tATiLz5K.js} +1 -1
- package/dist/public/assets/{pieDiagram-7S7Q4E2Y-CQIjti_a.js → pieDiagram-7S7Q4E2Y-BJNWjsh4.js} +1 -1
- package/dist/public/assets/{pierre-theme-DvUAgu98.js → pierre-theme-C-t7fYw4.js} +1 -1
- package/dist/public/assets/{platform-labels-DHtsSQ0P.js → platform-labels-DN5Bj-9B.js} +1 -1
- package/dist/public/assets/{preferred-session-events-BlOJOblG.js → preferred-session-events-D23QukOQ.js} +1 -1
- package/dist/public/assets/{prod-CLa_vJbk.js → prod-CxRC-Qp7.js} +4 -4
- package/dist/public/assets/{progress-BhNMXirr.js → progress-DqKVGUPv.js} +4 -4
- package/dist/public/assets/{project-paths-CUohiCJG.js → project-paths-Bf9WziK0.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-CIZ2JOQS-DuNJGeBa.js → quadrantDiagram-CIZ2JOQS-CIAFe2Yx.js} +1 -1
- package/dist/public/assets/{railroadDiagram-AXF67PYL-C85uSObP.js → railroadDiagram-AXF67PYL-z8dJWtZ0.js} +1 -1
- package/dist/public/assets/{requirementDiagram-LRYGKXZP-BXrpr1j3.js → requirementDiagram-LRYGKXZP-BLUmU7lf.js} +1 -1
- package/dist/public/assets/{restart-collab-server-DGH2TqEq.js → restart-collab-server-CEDAvS-U.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-W5VNT64P-DzYrkeo7.js → sankeyDiagram-W5VNT64P-DwOYO9rY.js} +1 -1
- package/dist/public/assets/{saved-themes-client-C4Y32L79.js → saved-themes-client-D8_0b0C1.js} +1 -1
- package/dist/public/assets/{schema-section-CwVAx_th.js → schema-section-Bx7R1XV-.js} +1 -1
- package/dist/public/assets/{schemas-api-CA_2n9vX.js → schemas-api-DIKsrZIF.js} +1 -1
- package/dist/public/assets/{schemas-cc1-FCbB-xU_.js → schemas-cc1-yd7Jnf8d.js} +1 -1
- package/dist/public/assets/{selection-context-B8VN-37c.js → selection-context-C7GkLjF6.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-SI44F4Z6-Cf6wHWjC.js → sequenceDiagram-SI44F4Z6-CaFn_mL8.js} +1 -1
- package/dist/public/assets/{sign-in-terminal-events-qAzCuTER.js → sign-in-terminal-events-D9AR7Mb5.js} +1 -1
- package/dist/public/assets/{skill-scope-CIeUVU7m.js → skill-scope-CfyUkpZa.js} +1 -1
- package/dist/public/assets/{skill-targets-schema-B6BdLjyi.js → skill-targets-schema-CQo7KF-N.js} +1 -1
- package/dist/public/assets/{skills-api-D0tbnsM3.js → skills-api-BJWscOmZ.js} +1 -1
- package/dist/public/assets/{src-CCW1TRhy.js → src-BXx-EsNC.js} +1 -1
- package/dist/public/assets/{stateDiagram-OKZ733FA-9Rg5VJGs.js → stateDiagram-OKZ733FA-eaUxVBOS.js} +1 -1
- package/dist/public/assets/stateDiagram-v2-UEYNNEHI-CaQfCbFq.js +1 -0
- package/dist/public/assets/storage-scope-D7iYzqgX.js +1 -0
- package/dist/public/assets/{swimlanes-SLNWSIFB-CAVgvhB7.js → swimlanes-SLNWSIFB-BxWGE_7Y.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-CEPnDPH7.js +8 -0
- package/dist/public/assets/{syntax-CKL08zSk.js → syntax-sfl_d8Li.js} +1 -1
- package/dist/public/assets/tag-pill-input-CpqGo9X9.js +1 -0
- package/dist/public/assets/{telemetry-impl-wRnGS6EX.js → telemetry-impl-Cwb_fUix.js} +1 -1
- package/dist/public/assets/{telemetry-startup-_0AFQdt9.js → telemetry-startup-Beq4pPTJ.js} +1 -1
- package/dist/public/assets/{terminal-launch-events-DPlVnMLl.js → terminal-launch-events-DmCMwCpY.js} +1 -1
- package/dist/public/assets/{thread-client-B1GCx5cb.js → thread-client-C1l-VKKx.js} +1 -1
- package/dist/public/assets/{timeline-definition-Z64GVDOM-CgsgxSIN.js → timeline-definition-Z64GVDOM-BUklZaYO.js} +1 -1
- package/dist/public/assets/{trim-lines-DfV8CCf7.js → trim-lines-DUSR4OI1.js} +1 -1
- package/dist/public/assets/typing-burst-detector-Bky0Uf5I.js +8 -0
- package/dist/public/assets/{use-activity-panel-BnlcXYbY.js → use-activity-panel-BcSX-2vK.js} +1 -1
- package/dist/public/assets/{use-apply-config-color-theme-C5gD4T4U.js → use-apply-config-color-theme-DbLCAv5T.js} +1 -1
- package/dist/public/assets/{use-collab-url-Bur5PAXk.js → use-collab-url-QvSzKabe.js} +1 -1
- package/dist/public/assets/{use-conflicts-D5CCX9hP.js → use-conflicts-DNiHZHRG.js} +1 -1
- package/dist/public/assets/{use-git-sync-status-Bu-5pE-u.js → use-git-sync-status-D7jzQObo.js} +1 -1
- package/dist/public/assets/{use-installed-clis-D0S_l3Gg.js → use-installed-clis-BzkmtX4n.js} +2 -2
- package/dist/public/assets/{use-live-xterm-theme-BrEaArmX.js → use-live-xterm-theme-CfinBKDY.js} +1 -1
- package/dist/public/assets/{use-open-skill-DRoqyQpi.js → use-open-skill-CwYfqsE-.js} +1 -1
- package/dist/public/assets/{use-semantic-search-status-D7yrZoql.js → use-semantic-search-status-rn1T1N4H.js} +1 -1
- package/dist/public/assets/{use-skill-origin-CPFCKWPh.js → use-skill-origin-CLlPwrcN.js} +1 -1
- package/dist/public/assets/{use-skill-targets-BnMuHStv.js → use-skill-targets-DQ4dL6NQ.js} +1 -1
- package/dist/public/assets/{use-skills-BIXsUrqC.js → use-skills-CoZ4zzvv.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-BDYcPoIN.js → use-terminal-enabled-BtJN1Ej9.js} +1 -1
- package/dist/public/assets/{use-timeline-entry-diff-C4VcOtjd.js → use-timeline-entry-diff-C_vMkhk8.js} +1 -1
- package/dist/public/assets/{use-workspace-23m61sdL.js → use-workspace-BaTgM_V-.js} +1 -1
- package/dist/public/assets/{vennDiagram-T6HMQDX7-XL0mnmh6.js → vennDiagram-T6HMQDX7-D5U0ZIl2.js} +1 -1
- package/dist/public/assets/{wardleyDiagram-T6FBY63Y-Be2NrWXE.js → wardleyDiagram-T6FBY63Y-No5BmkiI.js} +1 -1
- package/dist/public/assets/{xychartDiagram-ELKLHX3M-vD-tBwgP.js → xychartDiagram-ELKLHX3M-CM_KjEoD.js} +1 -1
- package/dist/public/index.html +75 -75
- package/dist/{registry-probes-DvKSuXOV.mjs → registry-probes-BCYLuGAW.mjs} +1 -1
- package/dist/{removal-file-path-BjTJDg9R.mjs → removal-file-path-C94YYdie.mjs} +1 -1
- package/dist/{repair-launch-json-l0MrwtFa.mjs → repair-launch-json-BLHEsJOF.mjs} +1 -1
- package/dist/{repair-mcp-configs-BllheG-5.mjs → repair-mcp-configs-CRfhQbOD.mjs} +1 -1
- package/dist/src-C2dLuB-4.mjs +16 -0
- package/dist/src-DwoGfost.mjs +1 -0
- package/dist/start-B4k7Ovrz.mjs +1 -0
- package/dist/{start-B-auTeLV.mjs → start-uMGB8N0f.mjs} +3 -3
- package/package.json +4 -4
- package/dist/constants-Bjn5N--r.mjs +0 -1
- package/dist/init-DgBWGxJ0.mjs +0 -1
- package/dist/loader-IaP2XVOM.mjs +0 -1
- package/dist/preview-CoedbexB.mjs +0 -1
- package/dist/public/assets/EditorModeToggle-CwB9qne6.js +0 -1
- package/dist/public/assets/FeedbackForm-BXBYitMi.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-DBWMQtRc.js +0 -1
- package/dist/public/assets/PropertyDisplayRow-B8tGE4X1.js +0 -2
- package/dist/public/assets/SourceEditor-IgcPmMzh.js +0 -1
- package/dist/public/assets/channel-OzAyj6l2.js +0 -1
- package/dist/public/assets/classDiagram-JCYQIIEL-DF0YJ6u8.js +0 -1
- package/dist/public/assets/classDiagram-v2-OCEON4UE-CQ-KKEQq.js +0 -1
- package/dist/public/assets/cm-theme-o8S36rrW.js +0 -1
- package/dist/public/assets/config-schema-URyaXzlH.js +0 -1
- package/dist/public/assets/constants-product-D0tjOjNF.js +0 -1
- package/dist/public/assets/dist-XYmEWMox.js +0 -1
- package/dist/public/assets/field-controls-1RBq7k0E.js +0 -1
- package/dist/public/assets/flowDiagram-UKHOOZJN-Dn0Imle8.js +0 -1
- package/dist/public/assets/frontmatter-tags-CYFuMZTI.js +0 -1
- package/dist/public/assets/mermaid-GHXKKRXX-SHS635CF.js +0 -1
- package/dist/public/assets/mermaid.core-Dta0iWzH.js +0 -1
- package/dist/public/assets/stateDiagram-v2-UEYNNEHI-CXxmQOoG.js +0 -1
- package/dist/public/assets/storage-scope-DwpMl2xK.js +0 -1
- package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-DhOdVr-O.js +0 -8
- package/dist/public/assets/tag-pill-input-E0ChHeJe.js +0 -1
- package/dist/public/assets/typing-burst-detector-DGhEEJTt.js +0 -8
- package/dist/src-C6DoKdlO.mjs +0 -16
- package/dist/src-DOxl3CM1.mjs +0 -1
- package/dist/start-BCDsauG-.mjs +0 -1
- /package/dist/public/assets/{ccount-BoHE53_k.js → ccount-Cc4-GkFF.js} +0 -0
- /package/dist/public/assets/{katex-ByejJr4L.js → katex-ACpOp-9g.js} +0 -0
- /package/dist/public/assets/{lib-DlDYgFfS.js → lib-D0X048Zn.js} +0 -0
- /package/dist/public/assets/{space-separated-tokens-l9yufOSK.js → space-separated-tokens-B5lqTxi5.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ActivityPanelDiffView-
|
|
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 ee}from"./dist-Nvb76hAm.js";import{t as te}from"./compiler-runtime-BfE3aGVn.js";import{t as ne}from"./overlay-layers-CKMAjef3.js";import{i as re,n as ie,t as ae}from"./tooltip-DBqLYfio.js";import{c as oe}from"./select-Bu4Wm3Rf.js";import{n as se,t as ce}from"./toggle-group-B7p69Qfd.js";import{t as a}from"./button-DzgjsZzC.js";import{n as le}from"./dist-BGzUo_18.js";import{n as ue}from"./_envelope-q8XHEv4O-C-Qnl5Tu.js";import"./schemas-api-CA_2n9vX.js";import{t as de}from"./chevron-down-CEv6N8LG.js";import{t as fe}from"./spinner-Bx8xD6f8.js";import{n as pe,t as me}from"./panel-right-open-BSU2gtLb.js";import{t as he}from"./undo-2-xEF_s_Io.js";import{t as ge}from"./x-DM2drskU.js";import{a as _e,c as ve,i as ye,o as be,s as xe,t as Se}from"./dialog-BJEjKJjL.js";import{t as Ce}from"./timeline-diff-store-BJsA5WRF.js";import{t as o}from"./lru-string-cache-B1zhgxAH.js";import{a as we,c as Te,i as Ee,l as De,n as Oe,o as ke,r as Ae,s as je,u as Me}from"./use-timeline-entry-diff-C4VcOtjd.js";var Ne=te(),s=e(r(),1),c=n(),Pe=(0,s.lazy)(async()=>({default:(await t(()=>import(`./ActivityPanelDiffView-D1HNJ0EL.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url)).ActivityPanelDiffView}));function l(e){let t=(0,Ne.c)(166),{view:n,isPanelCollapsed:r,onTogglePanel:te}=e,{_:o}=ee(),{docName:l,sha:u,parentSha:Le,laterEdits:d,authorName:Re,relativeTime:ze}=n,[Be]=(0,s.useState)(Ie),[f,Ve]=(0,s.useState)(`rendered`),[p,He]=(0,s.useState)(!1),[m,Ue]=(0,s.useState)(!1),We=(0,s.useRef)(null),Ge=(0,s.useRef)(null),[Ke,qe]=(0,s.useState)(0),[Je,Ye]=(0,s.useState)(0),[h,Xe]=(0,s.useState)(!1),[Ze,Qe]=(0,s.useState)(!0),g=Oe(u,l,Be,`vs-parent`,Le),_,v,y,b,$e,x;t[0]!==Je||t[1]!==h||t[2]!==f||t[3]!==g.after||t[4]!==g.before||t[5]!==g.properties||t[6]!==g.status?(b=g.status===`ready`?je(g.before,g.after):null,x=f===`rendered`&&b?.ok===!0,v=g.status===`ready`?g.properties:null,y=v?.changes.length??0,_=v!==null&&(v.changes.length>0||v.unparseable!==null),$e=g.status===`ready`?x&&b?.ok?De(b):h?Je:0:0,t[0]=Je,t[1]=h,t[2]=f,t[3]=g.after,t[4]=g.before,t[5]=g.properties,t[6]=g.status,t[7]=_,t[8]=v,t[9]=y,t[10]=b,t[11]=$e,t[12]=x):(_=t[7],v=t[8],y=t[9],b=t[10],$e=t[11],x=t[12]);let et=$e+(v===null?0:v.unparseable===null?Ze?Math.min(y,50):0:1),tt;t[13]!==h||t[14]!==x?(tt=function(e){let t=Ge.current;if(!t)return;let n=[...t.querySelectorAll(Ae),...x?Array.from(t.querySelectorAll(Te)):h?Ee(t):[]];if(n.length===0)return;let r=(e+n.length)%n.length;qe(r),n[r]?.scrollIntoView({block:`center`,behavior:`smooth`})},t[13]=h,t[14]=x,t[15]=tt):tt=t[15];let nt=tt,rt,it;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(rt=()=>()=>We.current?.abort(),it=[],t[16]=rt,t[17]=it):(rt=t[16],it=t[17]),(0,s.useEffect)(rt,it);let at=g.status===`ready`?`${f}:${g.diff}`:``,ot,st;t[18]===at?(ot=t[19],st=t[20]):(ot=()=>{let e=Ge.current;if(at===``||!e)return;qe(0),Ye(0),Xe(!1);let t=!1,n=null,r,i,ee=()=>{re.sync();let t=Ee(e);return Ye(t.length),Xe(!0),t},te=()=>{let n=ee();if(t)return;let r=e.querySelector(`[data-property-change]`)??e.querySelector(`.ok-diff-ins, .ok-diff-ins-block, [data-diff-deleted]`)??n[0];if(!r)return;t=!0;let i=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;r.scrollIntoView({block:`center`,behavior:i?`auto`:`smooth`})},ne=()=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>{i!==void 0&&cancelAnimationFrame(i),i=requestAnimationFrame(()=>{i=requestAnimationFrame(te)})},120)},re=we(e,ne);n=new MutationObserver(ne),n.observe(e,{childList:!0,subtree:!0}),ne();let ie=setTimeout(()=>{ee(),n?.disconnect(),re.disconnect()},5e3);return()=>{n?.disconnect(),re.disconnect(),r!==void 0&&clearTimeout(r),i!==void 0&&cancelAnimationFrame(i),clearTimeout(ie)}},st=[at],t[18]=at,t[19]=ot,t[20]=st),(0,s.useEffect)(ot,st);let ct,lt;t[21]===p?(ct=t[22],lt=t[23]):(ct=()=>{let e=e=>{e.key===`Escape`&&(p||ne()||Ce())};return window.addEventListener(`keydown`,e,{capture:!0}),()=>window.removeEventListener(`keydown`,e,{capture:!0})},lt=[p],t[21]=p,t[22]=ct,t[23]=lt),(0,s.useEffect)(ct,lt);let ut;t[24]!==o||t[25]!==l||t[26]!==u?(ut=async function(){Ue(!0);let e=new AbortController;We.current=e;let t=function(){e.signal.aborted||Ue(!1),We.current===e&&(We.current=null)},n;try{n=await fetch(`/api/rollback`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({docName:l,commitSha:u}),signal:e.signal})}catch(n){let r=n;!e.signal.aborted&&!(r instanceof DOMException&&r.name===`AbortError`)&&le.error(o({id:`NkXEFS`}),{duration:4e3}),t();return}if(e.signal.aborted){t();return}if(n.ok){t(),He(!1),Ce();return}let r=`HTTP ${n.status}`;try{let e=ue.safeParse(await n.json());e.success&&(r=e.data.title)}catch{}le.error(o({id:`uM6jnS`}),{description:r,duration:6e3}),t()},t[24]=o,t[25]=l,t[26]=u,t[27]=ut):ut=t[27];let S=ut,dt=g.status===`ready`&&(g.additions>0||g.deletions>0),C;t[28]===o?C=t[29]:(C=o({id:`b18t0_`}),t[28]=o,t[29]=C);let ft;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(ft=(0,c.jsx)(ge,{className:`size-4`}),t[30]=ft):ft=t[30];let w;t[31]===C?w=t[32]:(w=(0,c.jsx)(re,{asChild:!0,children:(0,c.jsx)(a,{variant:`ghost`,size:`icon`,className:`size-7 shrink-0`,"data-testid":`timeline-diff-close`,"aria-label":C,onClick:Fe,children:ft})}),t[31]=C,t[32]=w);let T;t[33]===o?T=t[34]:(T=o({id:`b18t0_`}),t[33]=o,t[34]=T);let E;t[35]===T?E=t[36]:(E=(0,c.jsx)(ie,{side:`bottom`,children:T}),t[35]=T,t[36]=E);let D;t[37]!==w||t[38]!==E?(D=(0,c.jsxs)(ae,{children:[w,E]}),t[37]=w,t[38]=E,t[39]=D):D=t[39];let O;t[40]===l?O=t[41]:(O=(0,c.jsx)(`div`,{className:`truncate text-sm font-medium text-foreground`,children:l}),t[40]=l,t[41]=O);let k;t[42]!==Re||t[43]!==ze?(k=(0,c.jsxs)(`div`,{className:`truncate text-xs text-muted-foreground`,children:[Re,` · `,ze]}),t[42]=Re,t[43]=ze,t[44]=k):k=t[44];let A;t[45]!==O||t[46]!==k?(A=(0,c.jsxs)(`div`,{className:`min-w-[8rem] flex-1`,children:[O,k]}),t[45]=O,t[46]=k,t[47]=A):A=t[47];let j;t[48]===y?j=t[49]:(j=y>0&&(0,c.jsx)(`span`,{className:`shrink-0 text-xs text-muted-foreground tabular-nums`,"data-testid":`timeline-diff-property-stat`,children:(0,c.jsx)(i,{id:`UI0WPT`,values:{propertyCount:y}})}),t[48]=y,t[49]=j);let M;t[50]!==o||t[51]!==g.additions||t[52]!==g.deletions||t[53]!==g.status||t[54]!==dt?(M=dt&&g.status===`ready`&&(0,c.jsxs)(`span`,{role:`img`,className:`shrink-0 text-xs tabular-nums`,"data-testid":`timeline-diff-stat`,"aria-label":o({id:`8lwQlE`,values:{0:g.additions,1:g.deletions}}),children:[(0,c.jsxs)(`span`,{"aria-hidden":`true`,className:`text-emerald-600 dark:text-emerald-500`,children:[`+`,g.additions]}),` `,(0,c.jsxs)(`span`,{"aria-hidden":`true`,className:`text-red-600 dark:text-red-500`,children:[`−`,g.deletions]})]}),t[50]=o,t[51]=g.additions,t[52]=g.deletions,t[53]=g.status,t[54]=dt,t[55]=M):M=t[55];let pt;t[56]===Symbol.for(`react.memo_cache_sentinel`)?(pt=e=>{(e===`rendered`||e===`source`)&&Ve(e)},t[56]=pt):pt=t[56];let N;t[57]===o?N=t[58]:(N=o({id:`ZW3mlR`}),t[57]=o,t[58]=N);let mt;t[59]===Symbol.for(`react.memo_cache_sentinel`)?(mt=(0,c.jsx)(se,{value:`rendered`,className:`h-6 px-2 text-xs`,"data-testid":`timeline-diff-render-rendered`,children:(0,c.jsx)(i,{id:`4z_1j2`})}),t[59]=mt):mt=t[59];let ht;t[60]===Symbol.for(`react.memo_cache_sentinel`)?(ht=(0,c.jsx)(se,{value:`source`,className:`h-6 px-2 text-xs`,"data-testid":`timeline-diff-render-source`,children:(0,c.jsx)(i,{id:`wdxz7K`})}),t[60]=ht):ht=t[60];let gt;t[61]!==f||t[62]!==N?(gt=(0,c.jsxs)(ce,{type:`single`,value:f,onValueChange:pt,"aria-label":N,variant:`segmented`,size:`sm`,spacing:1,className:`shrink-0 rounded-md bg-muted p-0.5 dark:bg-background`,children:[mt,ht]}),t[61]=f,t[62]=N,t[63]=gt):gt=t[63];let P;t[64]!==o||t[65]!==et||t[66]!==Ke||t[67]!==nt?(P=et>1&&(0,c.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5 rounded-md border border-border bg-muted/40 p-0.5 dark:bg-background`,children:[(0,c.jsx)(a,{variant:`ghost`,size:`icon`,className:`size-6`,"aria-label":o({id:`_azghp`}),"data-testid":`timeline-diff-prev`,onClick:()=>nt(Ke-1),children:(0,c.jsx)(oe,{className:`size-3.5`})}),(0,c.jsxs)(`span`,{className:`px-0.5 text-xs tabular-nums text-muted-foreground`,"aria-live":`polite`,children:[Ke+1,` / `,et]}),(0,c.jsx)(a,{variant:`ghost`,size:`icon`,className:`size-6`,"aria-label":o({id:`-bFGPF`}),"data-testid":`timeline-diff-next`,onClick:()=>nt(Ke+1),children:(0,c.jsx)(de,{className:`size-3.5`})})]}),t[64]=o,t[65]=et,t[66]=Ke,t[67]=nt,t[68]=P):P=t[68];let F;t[69]!==S||t[70]!==d?(F=()=>d>0?He(!0):S(),t[69]=S,t[70]=d,t[71]=F):F=t[71];let I;t[72]===m?I=t[73]:(I=m?(0,c.jsx)(fe,{"aria-hidden":`true`,className:`mr-1.5 size-3.5`}):(0,c.jsx)(he,{className:`mr-1.5 size-3.5`}),t[72]=m,t[73]=I);let _t;t[74]===Symbol.for(`react.memo_cache_sentinel`)?(_t=(0,c.jsx)(i,{id:`yKu_3Y`}),t[74]=_t):_t=t[74];let L;t[75]!==m||t[76]!==F||t[77]!==I?(L=(0,c.jsxs)(a,{variant:`outline`,size:`sm`,className:`h-7 shrink-0`,"data-testid":`timeline-diff-restore`,disabled:m,onClick:F,children:[I,_t]}),t[75]=m,t[76]=F,t[77]=I,t[78]=L):L=t[78];let R;t[79]!==o||t[80]!==r?(R=o(r?{id:`6iDEWA`}:{id:`170Js2`}),t[79]=o,t[80]=r,t[81]=R):R=t[81];let vt=!r,z;t[82]===r?z=t[83]:(z=r?(0,c.jsx)(me,{className:`size-4`}):(0,c.jsx)(pe,{className:`size-4`}),t[82]=r,t[83]=z);let B;t[84]!==te||t[85]!==R||t[86]!==vt||t[87]!==z?(B=(0,c.jsx)(re,{asChild:!0,children:(0,c.jsx)(a,{variant:`ghost`,size:`icon`,className:`size-7 shrink-0`,"data-testid":`timeline-diff-toggle-panel`,"aria-label":R,"aria-expanded":vt,onClick:te,children:z})}),t[84]=te,t[85]=R,t[86]=vt,t[87]=z,t[88]=B):B=t[88];let V;t[89]!==o||t[90]!==r?(V=o(r?{id:`6iDEWA`}:{id:`170Js2`}),t[89]=o,t[90]=r,t[91]=V):V=t[91];let H;t[92]===V?H=t[93]:(H=(0,c.jsx)(ie,{side:`bottom`,children:V}),t[92]=V,t[93]=H);let U;t[94]!==B||t[95]!==H?(U=(0,c.jsxs)(ae,{children:[B,H]}),t[94]=B,t[95]=H,t[96]=U):U=t[96];let W;t[97]!==j||t[98]!==M||t[99]!==gt||t[100]!==P||t[101]!==L||t[102]!==U?(W=(0,c.jsxs)(`div`,{className:`ml-auto flex flex-wrap items-center justify-end gap-2`,children:[j,M,gt,P,L,U]}),t[97]=j,t[98]=M,t[99]=gt,t[100]=P,t[101]=L,t[102]=U,t[103]=W):W=t[103];let G;t[104]!==D||t[105]!==A||t[106]!==W?(G=(0,c.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1.5 border-b border-border px-3 py-2`,children:[D,A,W]}),t[104]=D,t[105]=A,t[106]=W,t[107]=G):G=t[107];let K;t[108]===g.status?K=t[109]:(K=g.status===`loading`&&(0,c.jsxs)(`div`,{className:`flex items-center gap-2 px-4 py-3 text-xs text-muted-foreground`,children:[(0,c.jsx)(fe,{"aria-hidden":`true`,className:`size-3`}),(0,c.jsx)(i,{id:`38foVZ`})]}),t[108]=g.status,t[109]=K);let q;t[110]===g.status?q=t[111]:(q=g.status===`error`&&(0,c.jsx)(`p`,{className:`px-4 py-3 text-xs text-destructive`,children:(0,c.jsx)(i,{id:`vvWZnu`})}),t[110]=g.status,t[111]=q);let J;t[112]!==v||t[113]!==Ze||t[114]!==g.status?(J=g.status===`ready`&&v!==null&&(0,c.jsx)(Me,{delta:v,open:Ze,onOpenChange:e=>{Qe(e),qe(0)}}),t[112]=v,t[113]=Ze,t[114]=g.status,t[115]=J):J=t[115];let Y;t[116]!==l||t[117]!==_||t[118]!==f||t[119]!==b||t[120]!==g.after||t[121]!==g.before||t[122]!==g.diff||t[123]!==g.status||t[124]!==u?(Y=g.status===`ready`&&(f===`rendered`&&b?.ok?(0,c.jsx)(ke,{diff:b,docName:l}):g.diff===``?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(`p`,{className:`border-b border-border px-4 py-2 text-xs text-muted-foreground italic`,children:_?(0,c.jsx)(i,{id:`oCO0pe`}):(0,c.jsx)(i,{id:`3YWddZ`})}),(0,c.jsx)(`pre`,{className:`whitespace-pre-wrap px-4 py-3 font-mono text-xs text-foreground/90`,children:g.after})]}):(0,c.jsx)(s.Suspense,{fallback:(0,c.jsxs)(`div`,{className:`flex items-center gap-2 px-4 py-3 text-xs text-muted-foreground`,children:[(0,c.jsx)(fe,{"aria-hidden":`true`,className:`size-3`}),(0,c.jsx)(i,{id:`EDm3wJ`})]}),children:(0,c.jsx)(Pe,{before:g.before,after:g.after,cacheKey:`${l}@${u}`})})),t[116]=l,t[117]=_,t[118]=f,t[119]=b,t[120]=g.after,t[121]=g.before,t[122]=g.diff,t[123]=g.status,t[124]=u,t[125]=Y):Y=t[125];let X;t[126]!==K||t[127]!==q||t[128]!==J||t[129]!==Y?(X=(0,c.jsxs)(`div`,{ref:Ge,className:`min-h-0 flex-1 overflow-auto subtle-scrollbar`,children:[K,q,J,Y]}),t[126]=K,t[127]=q,t[128]=J,t[129]=Y,t[130]=X):X=t[130];let yt;t[131]===m?yt=t[132]:(yt=e=>{!e&&!m?He(!1):e&&He(!0)},t[131]=m,t[132]=yt);let bt;t[133]===o?bt=t[134]:(bt=o({id:`n3wx1q`}),t[133]=o,t[134]=bt);let xt;t[135]===bt?xt=t[136]:(xt=(0,c.jsx)(ve,{children:bt}),t[135]=bt,t[136]=xt);let Z;t[137]===d?Z=t[138]:(Z=(0,c.jsx)(i,{id:`nfPccR`,values:{laterEdits:d}}),t[137]=d,t[138]=Z);let St;t[139]===Symbol.for(`react.memo_cache_sentinel`)?(St=(0,c.jsx)(i,{id:`5ZbJFS`}),t[139]=St):St=t[139];let Ct;t[140]===Z?Ct=t[141]:(Ct=(0,c.jsxs)(_e,{children:[Z,` `,St]}),t[140]=Z,t[141]=Ct);let wt;t[142]!==xt||t[143]!==Ct?(wt=(0,c.jsxs)(xe,{children:[xt,Ct]}),t[142]=xt,t[143]=Ct,t[144]=wt):wt=t[144];let Tt;t[145]===Symbol.for(`react.memo_cache_sentinel`)?(Tt=(0,c.jsx)(a,{variant:`outline`,"data-testid":`timeline-diff-restore-cancel`,onClick:()=>He(!1),children:(0,c.jsx)(i,{id:`dEgA5A`})}),t[145]=Tt):Tt=t[145];let Et;t[146]===S?Et=t[147]:(Et=()=>S(),t[146]=S,t[147]=Et);let Dt;t[148]===m?Dt=t[149]:(Dt=m?(0,c.jsx)(fe,{"aria-hidden":`true`,className:`mr-2 size-4`}):null,t[148]=m,t[149]=Dt);let Ot;t[150]===Symbol.for(`react.memo_cache_sentinel`)?(Ot=(0,c.jsx)(i,{id:`yKu_3Y`}),t[150]=Ot):Ot=t[150];let kt;t[151]!==m||t[152]!==Et||t[153]!==Dt?(kt=(0,c.jsxs)(be,{children:[Tt,(0,c.jsxs)(a,{variant:`destructive`,"data-testid":`timeline-diff-restore-confirm`,disabled:m,onClick:Et,children:[Dt,Ot]})]}),t[151]=m,t[152]=Et,t[153]=Dt,t[154]=kt):kt=t[154];let Q;t[155]!==wt||t[156]!==kt?(Q=(0,c.jsxs)(ye,{children:[wt,kt]}),t[155]=wt,t[156]=kt,t[157]=Q):Q=t[157];let $;t[158]!==p||t[159]!==yt||t[160]!==Q?($=(0,c.jsx)(Se,{open:p,onOpenChange:yt,children:Q}),t[158]=p,t[159]=yt,t[160]=Q,t[161]=$):$=t[161];let At;return t[162]!==G||t[163]!==X||t[164]!==$?(At=(0,c.jsxs)(`div`,{className:`absolute inset-0 z-20 flex flex-col bg-background`,"data-testid":`timeline-diff-pane`,children:[G,X,$]}),t[162]=G,t[163]=X,t[164]=$,t[165]=At):At=t[165],At}function Fe(){return Ce()}function Ie(){return new o(32)}export{l as TimelineDiffPane};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ActivityPanelDiffView-EBKh4lfz.js","./dist-Nvb76hAm.js","./chunk-CYidjpOJ.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js","./pierre-theme-C-t7fYw4.js","./preload-helper-Chd9yIcd.js","./engine-compile-BycZLMmD.js","./lib-BZsAU7Y2.js","./ccount-Cc4-GkFF.js","./lib-D0X048Zn.js","./space-separated-tokens-B5lqTxi5.js","./lib-7Zm1Z07d.js","./ok-syntax-theme-DcApB92F.js","./MultiFileDiff-BjX5FEfb.js","./react-error-boundary-6ac6QM6R.js","./compiler-runtime-BfE3aGVn.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 ee}from"./dist-Nvb76hAm.js";import{t as te}from"./compiler-runtime-BfE3aGVn.js";import{t as ne}from"./overlay-layers-CKMAjef3.js";import{i as re,n as ie,t as ae}from"./tooltip-DBqLYfio.js";import{c as oe}from"./select-Bu4Wm3Rf.js";import{n as se,t as ce}from"./toggle-group-B7p69Qfd.js";import{t as a}from"./button-DzgjsZzC.js";import{n as le}from"./dist-BGzUo_18.js";import{n as ue}from"./_envelope-q8XHEv4O-C-Qnl5Tu.js";import"./schemas-api-DIKsrZIF.js";import{t as de}from"./chevron-down-CEv6N8LG.js";import{t as fe}from"./spinner-Bx8xD6f8.js";import{n as pe,t as me}from"./panel-right-open-BSU2gtLb.js";import{t as he}from"./undo-2-xEF_s_Io.js";import{t as ge}from"./x-DM2drskU.js";import{a as _e,c as ve,i as ye,o as be,s as xe,t as Se}from"./dialog-BJEjKJjL.js";import{t as Ce}from"./timeline-diff-store-BJsA5WRF.js";import{t as o}from"./lru-string-cache-B1zhgxAH.js";import{a as we,c as Te,i as Ee,l as De,n as Oe,o as ke,r as Ae,s as je,u as Me}from"./use-timeline-entry-diff-C_vMkhk8.js";var Ne=te(),s=e(r(),1),c=n(),Pe=(0,s.lazy)(async()=>({default:(await t(()=>import(`./ActivityPanelDiffView-EBKh4lfz.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url)).ActivityPanelDiffView}));function l(e){let t=(0,Ne.c)(166),{view:n,isPanelCollapsed:r,onTogglePanel:te}=e,{_:o}=ee(),{docName:l,sha:u,parentSha:Le,laterEdits:d,authorName:Re,relativeTime:ze}=n,[Be]=(0,s.useState)(Ie),[f,Ve]=(0,s.useState)(`rendered`),[p,He]=(0,s.useState)(!1),[m,Ue]=(0,s.useState)(!1),We=(0,s.useRef)(null),Ge=(0,s.useRef)(null),[Ke,qe]=(0,s.useState)(0),[Je,Ye]=(0,s.useState)(0),[h,Xe]=(0,s.useState)(!1),[Ze,Qe]=(0,s.useState)(!0),g=Oe(u,l,Be,`vs-parent`,Le),_,v,y,b,$e,x;t[0]!==Je||t[1]!==h||t[2]!==f||t[3]!==g.after||t[4]!==g.before||t[5]!==g.properties||t[6]!==g.status?(b=g.status===`ready`?je(g.before,g.after):null,x=f===`rendered`&&b?.ok===!0,v=g.status===`ready`?g.properties:null,y=v?.changes.length??0,_=v!==null&&(v.changes.length>0||v.unparseable!==null),$e=g.status===`ready`?x&&b?.ok?De(b):h?Je:0:0,t[0]=Je,t[1]=h,t[2]=f,t[3]=g.after,t[4]=g.before,t[5]=g.properties,t[6]=g.status,t[7]=_,t[8]=v,t[9]=y,t[10]=b,t[11]=$e,t[12]=x):(_=t[7],v=t[8],y=t[9],b=t[10],$e=t[11],x=t[12]);let et=$e+(v===null?0:v.unparseable===null?Ze?Math.min(y,50):0:1),tt;t[13]!==h||t[14]!==x?(tt=function(e){let t=Ge.current;if(!t)return;let n=[...t.querySelectorAll(Ae),...x?Array.from(t.querySelectorAll(Te)):h?Ee(t):[]];if(n.length===0)return;let r=(e+n.length)%n.length;qe(r),n[r]?.scrollIntoView({block:`center`,behavior:`smooth`})},t[13]=h,t[14]=x,t[15]=tt):tt=t[15];let nt=tt,rt,it;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(rt=()=>()=>We.current?.abort(),it=[],t[16]=rt,t[17]=it):(rt=t[16],it=t[17]),(0,s.useEffect)(rt,it);let at=g.status===`ready`?`${f}:${g.diff}`:``,ot,st;t[18]===at?(ot=t[19],st=t[20]):(ot=()=>{let e=Ge.current;if(at===``||!e)return;qe(0),Ye(0),Xe(!1);let t=!1,n=null,r,i,ee=()=>{re.sync();let t=Ee(e);return Ye(t.length),Xe(!0),t},te=()=>{let n=ee();if(t)return;let r=e.querySelector(`[data-property-change]`)??e.querySelector(`.ok-diff-ins, .ok-diff-ins-block, [data-diff-deleted]`)??n[0];if(!r)return;t=!0;let i=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;r.scrollIntoView({block:`center`,behavior:i?`auto`:`smooth`})},ne=()=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>{i!==void 0&&cancelAnimationFrame(i),i=requestAnimationFrame(()=>{i=requestAnimationFrame(te)})},120)},re=we(e,ne);n=new MutationObserver(ne),n.observe(e,{childList:!0,subtree:!0}),ne();let ie=setTimeout(()=>{ee(),n?.disconnect(),re.disconnect()},5e3);return()=>{n?.disconnect(),re.disconnect(),r!==void 0&&clearTimeout(r),i!==void 0&&cancelAnimationFrame(i),clearTimeout(ie)}},st=[at],t[18]=at,t[19]=ot,t[20]=st),(0,s.useEffect)(ot,st);let ct,lt;t[21]===p?(ct=t[22],lt=t[23]):(ct=()=>{let e=e=>{e.key===`Escape`&&(p||ne()||Ce())};return window.addEventListener(`keydown`,e,{capture:!0}),()=>window.removeEventListener(`keydown`,e,{capture:!0})},lt=[p],t[21]=p,t[22]=ct,t[23]=lt),(0,s.useEffect)(ct,lt);let ut;t[24]!==o||t[25]!==l||t[26]!==u?(ut=async function(){Ue(!0);let e=new AbortController;We.current=e;let t=function(){e.signal.aborted||Ue(!1),We.current===e&&(We.current=null)},n;try{n=await fetch(`/api/rollback`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({docName:l,commitSha:u}),signal:e.signal})}catch(n){let r=n;!e.signal.aborted&&!(r instanceof DOMException&&r.name===`AbortError`)&&le.error(o({id:`NkXEFS`}),{duration:4e3}),t();return}if(e.signal.aborted){t();return}if(n.ok){t(),He(!1),Ce();return}let r=`HTTP ${n.status}`;try{let e=ue.safeParse(await n.json());e.success&&(r=e.data.title)}catch{}le.error(o({id:`uM6jnS`}),{description:r,duration:6e3}),t()},t[24]=o,t[25]=l,t[26]=u,t[27]=ut):ut=t[27];let S=ut,dt=g.status===`ready`&&(g.additions>0||g.deletions>0),C;t[28]===o?C=t[29]:(C=o({id:`b18t0_`}),t[28]=o,t[29]=C);let ft;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(ft=(0,c.jsx)(ge,{className:`size-4`}),t[30]=ft):ft=t[30];let w;t[31]===C?w=t[32]:(w=(0,c.jsx)(re,{asChild:!0,children:(0,c.jsx)(a,{variant:`ghost`,size:`icon`,className:`size-7 shrink-0`,"data-testid":`timeline-diff-close`,"aria-label":C,onClick:Fe,children:ft})}),t[31]=C,t[32]=w);let T;t[33]===o?T=t[34]:(T=o({id:`b18t0_`}),t[33]=o,t[34]=T);let E;t[35]===T?E=t[36]:(E=(0,c.jsx)(ie,{side:`bottom`,children:T}),t[35]=T,t[36]=E);let D;t[37]!==w||t[38]!==E?(D=(0,c.jsxs)(ae,{children:[w,E]}),t[37]=w,t[38]=E,t[39]=D):D=t[39];let O;t[40]===l?O=t[41]:(O=(0,c.jsx)(`div`,{className:`truncate text-sm font-medium text-foreground`,children:l}),t[40]=l,t[41]=O);let k;t[42]!==Re||t[43]!==ze?(k=(0,c.jsxs)(`div`,{className:`truncate text-xs text-muted-foreground`,children:[Re,` · `,ze]}),t[42]=Re,t[43]=ze,t[44]=k):k=t[44];let A;t[45]!==O||t[46]!==k?(A=(0,c.jsxs)(`div`,{className:`min-w-[8rem] flex-1`,children:[O,k]}),t[45]=O,t[46]=k,t[47]=A):A=t[47];let j;t[48]===y?j=t[49]:(j=y>0&&(0,c.jsx)(`span`,{className:`shrink-0 text-xs text-muted-foreground tabular-nums`,"data-testid":`timeline-diff-property-stat`,children:(0,c.jsx)(i,{id:`UI0WPT`,values:{propertyCount:y}})}),t[48]=y,t[49]=j);let M;t[50]!==o||t[51]!==g.additions||t[52]!==g.deletions||t[53]!==g.status||t[54]!==dt?(M=dt&&g.status===`ready`&&(0,c.jsxs)(`span`,{role:`img`,className:`shrink-0 text-xs tabular-nums`,"data-testid":`timeline-diff-stat`,"aria-label":o({id:`8lwQlE`,values:{0:g.additions,1:g.deletions}}),children:[(0,c.jsxs)(`span`,{"aria-hidden":`true`,className:`text-emerald-600 dark:text-emerald-500`,children:[`+`,g.additions]}),` `,(0,c.jsxs)(`span`,{"aria-hidden":`true`,className:`text-red-600 dark:text-red-500`,children:[`−`,g.deletions]})]}),t[50]=o,t[51]=g.additions,t[52]=g.deletions,t[53]=g.status,t[54]=dt,t[55]=M):M=t[55];let pt;t[56]===Symbol.for(`react.memo_cache_sentinel`)?(pt=e=>{(e===`rendered`||e===`source`)&&Ve(e)},t[56]=pt):pt=t[56];let N;t[57]===o?N=t[58]:(N=o({id:`ZW3mlR`}),t[57]=o,t[58]=N);let mt;t[59]===Symbol.for(`react.memo_cache_sentinel`)?(mt=(0,c.jsx)(se,{value:`rendered`,className:`h-6 px-2 text-xs`,"data-testid":`timeline-diff-render-rendered`,children:(0,c.jsx)(i,{id:`4z_1j2`})}),t[59]=mt):mt=t[59];let ht;t[60]===Symbol.for(`react.memo_cache_sentinel`)?(ht=(0,c.jsx)(se,{value:`source`,className:`h-6 px-2 text-xs`,"data-testid":`timeline-diff-render-source`,children:(0,c.jsx)(i,{id:`wdxz7K`})}),t[60]=ht):ht=t[60];let gt;t[61]!==f||t[62]!==N?(gt=(0,c.jsxs)(ce,{type:`single`,value:f,onValueChange:pt,"aria-label":N,variant:`segmented`,size:`sm`,spacing:1,className:`shrink-0 rounded-md bg-muted p-0.5 dark:bg-background`,children:[mt,ht]}),t[61]=f,t[62]=N,t[63]=gt):gt=t[63];let P;t[64]!==o||t[65]!==et||t[66]!==Ke||t[67]!==nt?(P=et>1&&(0,c.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5 rounded-md border border-border bg-muted/40 p-0.5 dark:bg-background`,children:[(0,c.jsx)(a,{variant:`ghost`,size:`icon`,className:`size-6`,"aria-label":o({id:`_azghp`}),"data-testid":`timeline-diff-prev`,onClick:()=>nt(Ke-1),children:(0,c.jsx)(oe,{className:`size-3.5`})}),(0,c.jsxs)(`span`,{className:`px-0.5 text-xs tabular-nums text-muted-foreground`,"aria-live":`polite`,children:[Ke+1,` / `,et]}),(0,c.jsx)(a,{variant:`ghost`,size:`icon`,className:`size-6`,"aria-label":o({id:`-bFGPF`}),"data-testid":`timeline-diff-next`,onClick:()=>nt(Ke+1),children:(0,c.jsx)(de,{className:`size-3.5`})})]}),t[64]=o,t[65]=et,t[66]=Ke,t[67]=nt,t[68]=P):P=t[68];let F;t[69]!==S||t[70]!==d?(F=()=>d>0?He(!0):S(),t[69]=S,t[70]=d,t[71]=F):F=t[71];let I;t[72]===m?I=t[73]:(I=m?(0,c.jsx)(fe,{"aria-hidden":`true`,className:`mr-1.5 size-3.5`}):(0,c.jsx)(he,{className:`mr-1.5 size-3.5`}),t[72]=m,t[73]=I);let _t;t[74]===Symbol.for(`react.memo_cache_sentinel`)?(_t=(0,c.jsx)(i,{id:`yKu_3Y`}),t[74]=_t):_t=t[74];let L;t[75]!==m||t[76]!==F||t[77]!==I?(L=(0,c.jsxs)(a,{variant:`outline`,size:`sm`,className:`h-7 shrink-0`,"data-testid":`timeline-diff-restore`,disabled:m,onClick:F,children:[I,_t]}),t[75]=m,t[76]=F,t[77]=I,t[78]=L):L=t[78];let R;t[79]!==o||t[80]!==r?(R=o(r?{id:`6iDEWA`}:{id:`170Js2`}),t[79]=o,t[80]=r,t[81]=R):R=t[81];let vt=!r,z;t[82]===r?z=t[83]:(z=r?(0,c.jsx)(me,{className:`size-4`}):(0,c.jsx)(pe,{className:`size-4`}),t[82]=r,t[83]=z);let B;t[84]!==te||t[85]!==R||t[86]!==vt||t[87]!==z?(B=(0,c.jsx)(re,{asChild:!0,children:(0,c.jsx)(a,{variant:`ghost`,size:`icon`,className:`size-7 shrink-0`,"data-testid":`timeline-diff-toggle-panel`,"aria-label":R,"aria-expanded":vt,onClick:te,children:z})}),t[84]=te,t[85]=R,t[86]=vt,t[87]=z,t[88]=B):B=t[88];let V;t[89]!==o||t[90]!==r?(V=o(r?{id:`6iDEWA`}:{id:`170Js2`}),t[89]=o,t[90]=r,t[91]=V):V=t[91];let H;t[92]===V?H=t[93]:(H=(0,c.jsx)(ie,{side:`bottom`,children:V}),t[92]=V,t[93]=H);let U;t[94]!==B||t[95]!==H?(U=(0,c.jsxs)(ae,{children:[B,H]}),t[94]=B,t[95]=H,t[96]=U):U=t[96];let W;t[97]!==j||t[98]!==M||t[99]!==gt||t[100]!==P||t[101]!==L||t[102]!==U?(W=(0,c.jsxs)(`div`,{className:`ml-auto flex flex-wrap items-center justify-end gap-2`,children:[j,M,gt,P,L,U]}),t[97]=j,t[98]=M,t[99]=gt,t[100]=P,t[101]=L,t[102]=U,t[103]=W):W=t[103];let G;t[104]!==D||t[105]!==A||t[106]!==W?(G=(0,c.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1.5 border-b border-border px-3 py-2`,children:[D,A,W]}),t[104]=D,t[105]=A,t[106]=W,t[107]=G):G=t[107];let K;t[108]===g.status?K=t[109]:(K=g.status===`loading`&&(0,c.jsxs)(`div`,{className:`flex items-center gap-2 px-4 py-3 text-xs text-muted-foreground`,children:[(0,c.jsx)(fe,{"aria-hidden":`true`,className:`size-3`}),(0,c.jsx)(i,{id:`38foVZ`})]}),t[108]=g.status,t[109]=K);let q;t[110]===g.status?q=t[111]:(q=g.status===`error`&&(0,c.jsx)(`p`,{className:`px-4 py-3 text-xs text-destructive`,children:(0,c.jsx)(i,{id:`vvWZnu`})}),t[110]=g.status,t[111]=q);let J;t[112]!==v||t[113]!==Ze||t[114]!==g.status?(J=g.status===`ready`&&v!==null&&(0,c.jsx)(Me,{delta:v,open:Ze,onOpenChange:e=>{Qe(e),qe(0)}}),t[112]=v,t[113]=Ze,t[114]=g.status,t[115]=J):J=t[115];let Y;t[116]!==l||t[117]!==_||t[118]!==f||t[119]!==b||t[120]!==g.after||t[121]!==g.before||t[122]!==g.diff||t[123]!==g.status||t[124]!==u?(Y=g.status===`ready`&&(f===`rendered`&&b?.ok?(0,c.jsx)(ke,{diff:b,docName:l}):g.diff===``?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(`p`,{className:`border-b border-border px-4 py-2 text-xs text-muted-foreground italic`,children:_?(0,c.jsx)(i,{id:`oCO0pe`}):(0,c.jsx)(i,{id:`3YWddZ`})}),(0,c.jsx)(`pre`,{className:`whitespace-pre-wrap px-4 py-3 font-mono text-xs text-foreground/90`,children:g.after})]}):(0,c.jsx)(s.Suspense,{fallback:(0,c.jsxs)(`div`,{className:`flex items-center gap-2 px-4 py-3 text-xs text-muted-foreground`,children:[(0,c.jsx)(fe,{"aria-hidden":`true`,className:`size-3`}),(0,c.jsx)(i,{id:`EDm3wJ`})]}),children:(0,c.jsx)(Pe,{before:g.before,after:g.after,cacheKey:`${l}@${u}`})})),t[116]=l,t[117]=_,t[118]=f,t[119]=b,t[120]=g.after,t[121]=g.before,t[122]=g.diff,t[123]=g.status,t[124]=u,t[125]=Y):Y=t[125];let X;t[126]!==K||t[127]!==q||t[128]!==J||t[129]!==Y?(X=(0,c.jsxs)(`div`,{ref:Ge,className:`min-h-0 flex-1 overflow-auto subtle-scrollbar`,children:[K,q,J,Y]}),t[126]=K,t[127]=q,t[128]=J,t[129]=Y,t[130]=X):X=t[130];let yt;t[131]===m?yt=t[132]:(yt=e=>{!e&&!m?He(!1):e&&He(!0)},t[131]=m,t[132]=yt);let bt;t[133]===o?bt=t[134]:(bt=o({id:`n3wx1q`}),t[133]=o,t[134]=bt);let xt;t[135]===bt?xt=t[136]:(xt=(0,c.jsx)(ve,{children:bt}),t[135]=bt,t[136]=xt);let Z;t[137]===d?Z=t[138]:(Z=(0,c.jsx)(i,{id:`nfPccR`,values:{laterEdits:d}}),t[137]=d,t[138]=Z);let St;t[139]===Symbol.for(`react.memo_cache_sentinel`)?(St=(0,c.jsx)(i,{id:`5ZbJFS`}),t[139]=St):St=t[139];let Ct;t[140]===Z?Ct=t[141]:(Ct=(0,c.jsxs)(_e,{children:[Z,` `,St]}),t[140]=Z,t[141]=Ct);let wt;t[142]!==xt||t[143]!==Ct?(wt=(0,c.jsxs)(xe,{children:[xt,Ct]}),t[142]=xt,t[143]=Ct,t[144]=wt):wt=t[144];let Tt;t[145]===Symbol.for(`react.memo_cache_sentinel`)?(Tt=(0,c.jsx)(a,{variant:`outline`,"data-testid":`timeline-diff-restore-cancel`,onClick:()=>He(!1),children:(0,c.jsx)(i,{id:`dEgA5A`})}),t[145]=Tt):Tt=t[145];let Et;t[146]===S?Et=t[147]:(Et=()=>S(),t[146]=S,t[147]=Et);let Dt;t[148]===m?Dt=t[149]:(Dt=m?(0,c.jsx)(fe,{"aria-hidden":`true`,className:`mr-2 size-4`}):null,t[148]=m,t[149]=Dt);let Ot;t[150]===Symbol.for(`react.memo_cache_sentinel`)?(Ot=(0,c.jsx)(i,{id:`yKu_3Y`}),t[150]=Ot):Ot=t[150];let kt;t[151]!==m||t[152]!==Et||t[153]!==Dt?(kt=(0,c.jsxs)(be,{children:[Tt,(0,c.jsxs)(a,{variant:`destructive`,"data-testid":`timeline-diff-restore-confirm`,disabled:m,onClick:Et,children:[Dt,Ot]})]}),t[151]=m,t[152]=Et,t[153]=Dt,t[154]=kt):kt=t[154];let Q;t[155]!==wt||t[156]!==kt?(Q=(0,c.jsxs)(ye,{children:[wt,kt]}),t[155]=wt,t[156]=kt,t[157]=Q):Q=t[157];let $;t[158]!==p||t[159]!==yt||t[160]!==Q?($=(0,c.jsx)(Se,{open:p,onOpenChange:yt,children:Q}),t[158]=p,t[159]=yt,t[160]=Q,t[161]=$):$=t[161];let At;return t[162]!==G||t[163]!==X||t[164]!==$?(At=(0,c.jsxs)(`div`,{className:`absolute inset-0 z-20 flex flex-col bg-background`,"data-testid":`timeline-diff-pane`,children:[G,X,$]}),t[162]=G,t[163]=X,t[164]=$,t[165]=At):At=t[165],At}function Fe(){return Ce()}function Ie(){return new o(32)}export{l as TimelineDiffPane};
|
package/dist/public/assets/{abnfDiagram-N423BO3Z-DI1MOTax.js → abnfDiagram-N423BO3Z-HaE-1SHy.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-BYsYvaJQ.js";import{t}from"./src-BnaOz0iT.js";import"./chunk-I66GZJ75-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-BYsYvaJQ.js";import{t}from"./src-BnaOz0iT.js";import"./chunk-I66GZJ75-BBS7pKXH.js";import"./chunk-3NCLNEKW-B_jASG33.js";import{n}from"./chunk-5HE753X5-Ca7uYBp2.js";import{n as r,r as i,t as a}from"./chunk-6Q2QTUOP-B44d4_I1.js";import{t as o}from"./chunk-JWPE2WC7-CaorRnL6.js";import{t as s}from"./mermaid-parser.core-n_PI0UL9.js";var c=n().RailroadAbnf.parser.LangiumParser,l=e(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=e(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=e(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=e(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=e(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=e(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=e(e=>{o(e,a),e.title&&a.setTitle(e.title),e.rules.map(e=>a.addRule(m(e)))},`populateDb`),g={parser:{parse:e(e=>{a.clear(),t.debug(`[ABNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new s(n);let r=n.value;t.debug(`[ABNF Parser] Parsed rules:`,r.rules.length),h(r),t.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:a}},db:a,renderer:i,styles:r};export{g as diagram};
|
|
@@ -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-C-VgT3LF.js";import{i as s,n as c,t as l}from"./tooltip-DBqLYfio.js";import{a as u,c as d,i as f,l as p,n as m,o as h,r as g,s as _,t as v}from"./alert-dialog-BA3e7-10.js";import{t as y}from"./checkbox-CKD8LETI.js";import{t as b}from"./label-CvMpFFbN.js";import{t as x}from"./button-DzgjsZzC.js";import{t as S}from"./dist-C_FzPxEX2.js";import{t as C}from"./constants-product-D0tjOjNF.js";import{r as w}from"./schemas-api-CA_2n9vX.js";import{a as T,c as E,n as D,r as O,s as k}from"./constants-editors-CUF3jjbc.js";import{x as A}from"./handoff-DzPPe6fp.js";import{c as j,d as M,f as N,h as P,i as F,n as I,r as L,t as R,u as ee}from"./agent-registry-DogpWp0g.js";import{t as te}from"./folder-QqUoFRPR.js";import{t as z}from"./info-CyR0W2SK.js";import{t as ne}from"./monitor-IXzxTnmk.js";import{t as B}from"./sparkles-BS2TX_Um.js";import{t as V}from"./triangle-alert-BXrUEeRU.js";import{t as H}from"./x-DM2drskU.js";import{t as re}from"./badge-DmdA1C7r.js";import{a as ie,c as ae,i as oe,n as se,o as ce,s as le,t as ue}from"./dialog-BJEjKJjL.js";import{c as de,l as fe,n as U,s as pe,t as W}from"./field-DFJgKWGh.js";import{t as G}from"./constants-skills-BLHVRW90.js";import{t as K}from"./tool-list-format-CS7MZY1Q.js";var q=e(n(),1),J=a();function Y(e){if(e===void 0)return null;let t=P(e);if(t===null)return null;if(t.kind===`central-skill-store`)return`~/${G}/`;switch(t.kind){case`editor-project-config`:return E[t.editor];case`editor-project-skill-root`:{let e=O[t.editor];return e===null?null:`${e}/${k}/`}case`editor-user-skill-root`:{let e=T[t.editor];return e===null?null:`~/${e}/`}case`editor-user-config`:return null}}function me(e,t){if(e===void 0||t.length===0)return[];let n=P(e);return n===null||n.kind===`central-skill-store`?[]:t.map(e=>Y(`${n.kind}:${e}`)).filter(e=>e!==null)}function he(){return(typeof window>`u`?null:window.okDesktop?.mcpServerName)||null}function ge(){return he()??`OpenKnowledge`}function _e(e){return typeof e==`string`&&e!==``?e:he()??C.stable.mcpServerName}function X(e){return typeof e==`string`?D[e]??e:null}function ve(e){if(e===void 0)return null;let t=X(e.params?.agent);if(t===null)return null;switch(e.id){case`guidance.mcp.user-config`:return S._({id:`guidance.mcp.user-config`,values:{agent:t}});case`guidance.mcp.project-config`:return S._({id:`guidance.mcp.project-config`,values:{agent:t}});case`guidance.mcp.session-injection`:return S._({id:`guidance.mcp.session-injection`,values:{agent:t}});case`guidance.mcp.managed-file`:return S._({id:`guidance.mcp.managed-file`,values:{agent:t}});case`guidance.skill.project`:return S._({id:`guidance.skill.project`,values:{agent:t}});case`guidance.skill.user`:return S._({id:`guidance.skill.user`,values:{agent:t}});case`guidance.skill.central-store`:return S._({id:`guidance.skill.central-store`,values:{agent:t}});default:return null}}function ye(e){if(e===void 0)return null;let t=X(e.params?.agent);if(t===null)return null;switch(e.id){case`troubleshooting.claude.project-entry-not-approved`:return S._({id:`troubleshooting.claude.project-entry-not-approved`,values:{agent:t}});case`troubleshooting.claude-desktop.per-tool-approval`:return S._({id:`troubleshooting.claude-desktop.per-tool-approval`,values:{agent:t}});case`troubleshooting.cursor.project-entry-not-loaded`:{let n=_e(e.params?.server);return S._({id:`troubleshooting.cursor.project-entry-not-loaded`,values:{agent:t,server:n}})}case`troubleshooting.codex.folder-trust`:return S._({id:`troubleshooting.codex.folder-trust`,values:{agent:t}});case`troubleshooting.codex.desktop-project-config`:return e.params?.honoredByDesktop===!0?null:S._({id:`troubleshooting.codex.desktop-project-config`,values:{agent:t}});case`troubleshooting.copilot.shared-workspace-config`:{let n=X(e.params?.sourceAgent)??``;return S._({id:`troubleshooting.copilot.shared-workspace-config`,values:{agent:t,sourceAgent:n}})}case`troubleshooting.openclaw.central-store-missing`:return S._({id:`troubleshooting.openclaw.central-store-missing`,values:{agent:t}});case`troubleshooting.pi.folder-trust`:return S._({id:`troubleshooting.pi.folder-trust`,values:{agent:t}});case`troubleshooting.lm-studio.config-path-mismatch`:return S._({id:`troubleshooting.lm-studio.config-path-mismatch`,values:{agent:t}});default:return null}}function Z(e){return e?.closest(`section`)?.querySelector(`h4`)??null}var Q=t(),be={projectMcp:!1,projectSkill:!1,globalMcp:!1,discoverySkill:!1},xe=[`projectMcp`,`projectSkill`,`globalMcp`,`discoverySkill`],Se={projectMcp:`project`,projectSkill:`project`,globalMcp:`machine`,discoverySkill:`machine`};function Ce(e,t){return xe.flatMap(n=>{if(Se[n]!==t)return[];let r=e.cells[n];return r===void 0?[]:[[n,r]]})}function $(e){return e.disabledReason!==null}function we(e){let t=new Set,n=new Map;for(let[r,i]of e){let e=[];if(i.checked&&!$(i))for(let n of i.troubleshooting){if(t.has(n.id))continue;let r=ye(n);r!==null&&(t.add(n.id),e.push({id:n.id,text:r}))}n.set(r,e)}return n}function Te(e){return e.scope===`project`&&e.piece===`mcp`?`projectMcp`:e.scope===`project`&&e.piece===`skill`?`projectSkill`:e.scope===`user`&&e.piece===`mcp`?`globalMcp`:e.scope===`user`&&e.piece===`skill`?`discoverySkill`:null}function Ee(e){if(!j.includes(e.agentId))return null;let t=e.agentId,n={};for(let t of e.scopes)for(let e of t.cells){let t=Te(e);t!==null&&(n[t]=e)}return{id:t,label:De(t),row:e,cells:n}}function De(e){return D[e]}function Oe(e){let t=(0,J.c)(5),{agentId:n,className:r}=e;if(n===`lm-studio`){let e;return t[0]===r?e=t[1]:(e=(0,Q.jsx)(B,{"aria-hidden":!0,className:r,strokeWidth:1.5}),t[0]=r,t[1]=e),e}let i;return t[2]!==n||t[3]!==r?(i=(0,Q.jsx)(o,{host:n,"aria-hidden":!0,className:r}),t[2]=n,t[3]=r,t[4]=i):i=t[4],i}function ke(e,{forceDetected:t=[]}={}){return I({agentIds:j,probes:e.probes,detection:{...e.detection,detected:[...e.detection.detected,...t]}}).rows.flatMap(e=>{let t=Ee(e);return t===null?[]:[t]})}function Ae(e){return A.some(t=>N(t)===e)&&ee.some(t=>M(t.id)===e)}function je(e){return{projectMcp:e.cells.projectMcp?.checked===!0,projectSkill:e.cells.projectSkill?.checked===!0,globalMcp:e.cells.globalMcp?.checked===!0,discoverySkill:e.cells.discoverySkill?.checked===!0}}function Me(e){let t=je(e);return Ne(t)>0?t:Object.fromEntries(xe.map(t=>{let n=e.cells[t];return[t,n!==void 0&&!$(n)&&!F(n.state)]}))}function Ne(e){return Object.values(e).filter(Boolean).length}function Pe(e){return Object.values(e.cells).some(e=>!$(e))}function Fe(e){let t=Object.values(e.cells);return t.length>0&&t.every(e=>e.checked)}function Ie(e){let t=(0,J.c)(10),{children:n}=e,{_:r}=i(),a;t[0]===r?a=t[1]:(a=r({id:`kjrq_8`}),t[0]=r,t[1]=a);let o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Q.jsx)(z,{"aria-hidden":!0}),t[2]=o):o=t[2];let u;t[3]===a?u=t[4]:(u=(0,Q.jsx)(s,{asChild:!0,children:(0,Q.jsx)(x,{variant:`ghost`,size:`icon-sm`,"aria-label":a,children:o})}),t[3]=a,t[4]=u);let d;t[5]===n?d=t[6]:(d=(0,Q.jsx)(c,{className:`max-w-72`,children:n}),t[5]=n,t[6]=d);let f;return t[7]!==u||t[8]!==d?(f=(0,Q.jsxs)(l,{children:[u,d]}),t[7]=u,t[8]=d,t[9]=f):f=t[9],f}function Le(e){let t=(0,J.c)(16),{message:n,path:r,info:a}=e,{_:o}=i(),u;t[0]===o?u=t[1]:(u=o({id:`bn_MDX`}),t[0]=o,t[1]=u);let d;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Q.jsx)(V,{"aria-hidden":!0}),t[2]=d):d=t[2];let f;t[3]===u?f=t[4]:(f=(0,Q.jsx)(s,{asChild:!0,children:(0,Q.jsx)(x,{variant:`ghost`,size:`icon-sm`,className:`text-amber-700 hover:text-amber-700 dark:text-amber-400 dark:hover:text-amber-400`,"aria-label":u,children:d})}),t[3]=u,t[4]=f);let p;t[5]===n?p=t[6]:(p=(0,Q.jsx)(`span`,{className:`font-medium`,children:n}),t[5]=n,t[6]=p);let m;t[7]===r?m=t[8]:(m=r===null?null:(0,Q.jsx)(`code`,{className:`wrap-break-word font-mono opacity-80`,children:r}),t[7]=r,t[8]=m);let h;t[9]!==a||t[10]!==p||t[11]!==m?(h=(0,Q.jsx)(c,{className:`max-w-72`,children:(0,Q.jsxs)(`span`,{className:`flex flex-col gap-1.5`,children:[p,a,m]})}),t[9]=a,t[10]=p,t[11]=m,t[12]=h):h=t[12];let g;return t[13]!==f||t[14]!==h?(g=(0,Q.jsxs)(l,{children:[f,h]}),t[13]=f,t[14]=h,t[15]=g):g=t[15],g}function Re(e){let t=(0,J.c)(51),{id:n,checked:r,disabled:a,exception:o,state:s,title:c,description:l,info:u,path:d,sharedPaths:f,alsoAffects:p,notes:m,onCheckedChange:h}=e,{_:g}=i(),_=o===`warning`||o===`error`,v;t[0]!==g||t[1]!==_||t[2]!==s?(v=_?g(s===`foreign`?{id:`tCE-ZH`}:s===`foreign-replaceable`?{id:`KTxoDA`}:{id:`8wwkVu`}):null,t[0]=g,t[1]=_,t[2]=s,t[3]=v):v=t[3];let x=v,S=x===null?void 0:`${n}-warning`,C=p===null?void 0:`${n}-shared`,w;t[4]!==C||t[5]!==S?(w=[S,C].filter(Boolean).join(` `)||void 0,t[4]=C,t[5]=S,t[6]=w):w=t[6];let T=w,E=a||void 0,D;t[7]===h?D=t[8]:(D=e=>h(e===!0),t[7]=h,t[8]=D);let O;t[9]!==r||t[10]!==T||t[11]!==a||t[12]!==n||t[13]!==D?(O=(0,Q.jsx)(`div`,{className:`flex h-7 items-center`,children:(0,Q.jsx)(y,{id:n,checked:r,disabled:a,"aria-describedby":T,onCheckedChange:D})}),t[9]=r,t[10]=T,t[11]=a,t[12]=n,t[13]=D,t[14]=O):O=t[14];let k;t[15]===c?k=t[16]:(k=(0,Q.jsx)(fe,{children:c}),t[15]=c,t[16]=k);let A;t[17]!==n||t[18]!==k?(A=(0,Q.jsx)(b,{htmlFor:n,className:`cursor-pointer`,children:k}),t[17]=n,t[18]=k,t[19]=A):A=t[19];let j;t[20]!==a||t[21]!==u||t[22]!==d||t[23]!==f||t[24]!==x?(j=x===null?(0,Q.jsx)(Ie,{children:(0,Q.jsxs)(`span`,{className:`flex flex-col gap-1.5`,children:[u,d===null?null:(0,Q.jsx)(`code`,{className:`wrap-break-word font-mono opacity-80`,children:d}),f.map(Be)]})}):(0,Q.jsx)(Le,{message:x,path:d,info:a?null:u}),t[20]=a,t[21]=u,t[22]=d,t[23]=f,t[24]=x,t[25]=j):j=t[25];let M;t[26]!==A||t[27]!==j?(M=(0,Q.jsxs)(`div`,{className:`flex items-center gap-1`,children:[A,j]}),t[26]=A,t[27]=j,t[28]=M):M=t[28];let N;t[29]===l?N=t[30]:(N=(0,Q.jsx)(`p`,{className:`text-sm leading-relaxed text-muted-foreground`,children:l}),t[29]=l,t[30]=N);let P;t[31]!==n||t[32]!==m?(P=m.length===0?null:(0,Q.jsx)(`div`,{className:`flex flex-col gap-1.5`,"data-testid":`${n}-troubleshooting`,children:m.map(ze)}),t[31]=n,t[32]=m,t[33]=P):P=t[33];let F;t[34]!==g||t[35]!==p||t[36]!==C?(F=p===null?null:(0,Q.jsx)(`p`,{id:C,className:`text-sm leading-relaxed text-amber-700 dark:text-amber-400`,children:g({id:`qze9od`,values:{alsoAffects:p}})}),t[34]=g,t[35]=p,t[36]=C,t[37]=F):F=t[37];let I;t[38]!==x||t[39]!==S?(I=S===void 0?null:(0,Q.jsx)(`span`,{id:S,className:`sr-only`,children:x}),t[38]=x,t[39]=S,t[40]=I):I=t[40];let L;t[41]!==N||t[42]!==P||t[43]!==F||t[44]!==I||t[45]!==M?(L=(0,Q.jsxs)(U,{children:[M,N,P,F,I]}),t[41]=N,t[42]=P,t[43]=F,t[44]=I,t[45]=M,t[46]=L):L=t[46];let R;return t[47]!==L||t[48]!==E||t[49]!==O?(R=(0,Q.jsxs)(W,{orientation:`horizontal`,className:`items-start gap-3`,"data-disabled":E,children:[O,L]}),t[47]=L,t[48]=E,t[49]=O,t[50]=R):R=t[50],R}function ze(e){return(0,Q.jsx)(`p`,{className:`text-sm leading-relaxed text-muted-foreground`,children:e.text},e.id)}function Be(e){return(0,Q.jsx)(`code`,{className:`wrap-break-word font-mono opacity-80`,children:e},e)}function Ve(e,t){let n=e.cells[t];return n===void 0?!1:!$(n)}function He(e){let t=(0,J.c)(81),{part:n,cell:a,notes:o,draft:s,setPart:c}=e,{i18n:l,_:u}=i(),d;t[0]===a?d=t[1]:(d=$(a),t[0]=a,t[1]=d);let f=d,p;t[2]===u?p=t[3]:(p=u({id:`ggMMa7`}),t[2]=u,t[3]=p);let m;t[4]===u?m=t[5]:(m=u({id:`LtiJ5c`}),t[4]=u,t[5]=m);let h;t[6]===u?h=t[7]:(h=u({id:`2gXnCO`}),t[6]=u,t[7]=h);let g;t[8]===u?g=t[9]:(g=u({id:`ejiJeW`}),t[8]=u,t[9]=g);let _;t[10]!==p||t[11]!==m||t[12]!==h||t[13]!==g?(_={projectMcp:p,projectSkill:m,globalMcp:h,discoverySkill:g},t[10]=p,t[11]=m,t[12]=h,t[13]=g,t[14]=_):_=t[14];let v=_,y;if(t[15]!==u||t[16]!==a.agentId||t[17]!==a.disabledReason||t[18]!==a.exception||t[19]!==a.guidance||t[20]!==a.pathId||t[21]!==a.piece||t[22]!==a.resolvedPath||t[23]!==a.sharedFolderWith||t[24]!==a.state||t[25]!==f||t[26]!==s||t[27]!==l||t[28]!==o||t[29]!==n||t[30]!==c||t[31]!==v){y=Symbol.for(`react.early_return_sentinel`);bb0:{let e={foreign:u({id:`tCE-ZH`}),"structural-na":u({id:`3n7lnE`}),"not-installable":u({id:`BMoSQy`}),"agent-undetected":u({id:`mdWhUY`})},i=function(){let t=a.disabledReason;return t==null?u({id:`RXYvxn`}):e[t]},d;if(t[33]!==u||t[34]!==a.state){let e=ge();d=a.state===`foreign-replaceable`?u({id:`uOKoBM`,values:{server:e}}):null,t[33]=u,t[34]=a.state,t[35]=d}else d=t[35];let p=d,m;t[36]!==a.piece||t[37]!==a.sharedFolderWith||t[38]!==l?(m=a.piece===`skill`&&a.sharedFolderWith.length>0?K(a.sharedFolderWith.map(nt),l.locale):null,t[36]=a.piece,t[37]=a.sharedFolderWith,t[38]=l,t[39]=m):m=t[39];let h=m,g=a.exception,_=g===`warning`||g===`error`,b;t[40]!==a.pathId||t[41]!==a.sharedFolderWith?(b=me(a.pathId,a.sharedFolderWith),t[40]=a.pathId,t[41]=a.sharedFolderWith,t[42]=b):b=t[42];let x=b,S;t[43]===a.guidance?S=t[44]:(S=ve(a.guidance),t[43]=a.guidance,t[44]=S);let C=S,w=`${a.agentId}-${n}`,T=s[n],E;t[45]!==a.pathId||t[46]!==a.resolvedPath||t[47]!==f||t[48]!==_?(E=f&&!_?null:a.resolvedPath??Y(a.pathId),t[45]=a.pathId,t[46]=a.resolvedPath,t[47]=f,t[48]=_,t[49]=E):E=t[49];let D;t[50]!==f||t[51]!==_||t[52]!==x?(D=f&&!_?[]:x,t[50]=f,t[51]=_,t[52]=x,t[53]=D):D=t[53];let O=f?null:h,k;t[54]!==n||t[55]!==c?(k=e=>c(n,e),t[54]=n,t[55]=c,t[56]=k):k=t[56];let A;t[57]!==a.state||t[58]!==f||t[59]!==g||t[60]!==o||t[61]!==w||t[62]!==T||t[63]!==E||t[64]!==D||t[65]!==O||t[66]!==k?(A={id:w,checked:T,disabled:f,exception:g,state:a.state,notes:o,path:E,sharedPaths:D,alsoAffects:O,onCheckedChange:k},t[57]=a.state,t[58]=f,t[59]=g,t[60]=o,t[61]=w,t[62]=T,t[63]=E,t[64]=D,t[65]=O,t[66]=k,t[67]=A):A=t[67];let j=A;switch(n){case`projectMcp`:{let e;t[68]===C?e=t[69]:(e=C??(0,Q.jsx)(r,{id:`oxj8er`}),t[68]=C,t[69]=e),y=(0,Q.jsx)(Re,{...j,title:v[n],description:e,info:f?i():p??(0,Q.jsx)(r,{id:`EBP_hA`})});break bb0}case`projectSkill`:{let e;t[70]===C?e=t[71]:(e=C??(0,Q.jsx)(r,{id:`nta97o`}),t[70]=C,t[71]=e),y=(0,Q.jsx)(Re,{...j,title:v[n],description:e,info:f?i():(0,Q.jsx)(r,{id:`n11Jj7`})});break bb0}case`globalMcp`:{let e;t[72]===C?e=t[73]:(e=C??(0,Q.jsx)(r,{id:`itchkf`}),t[72]=C,t[73]=e),y=(0,Q.jsx)(Re,{...j,title:v[n],description:e,info:f?i():p??(0,Q.jsx)(r,{id:`wgj--j`})});break bb0}case`discoverySkill`:{let e=v[n],a;t[74]===C?a=t[75]:(a=C??(0,Q.jsx)(r,{id:`6ur2Mk`}),t[74]=C,t[75]=a);let o=f?i():(0,Q.jsx)(r,{id:`uVhq9B`}),s;t[76]!==j||t[77]!==e||t[78]!==a||t[79]!==o?(s=(0,Q.jsx)(Re,{...j,title:e,description:a,info:o}),t[76]=j,t[77]=e,t[78]=a,t[79]=o,t[80]=s):s=t[80],y=s;break bb0}}}t[15]=u,t[16]=a.agentId,t[17]=a.disabledReason,t[18]=a.exception,t[19]=a.guidance,t[20]=a.pathId,t[21]=a.piece,t[22]=a.resolvedPath,t[23]=a.sharedFolderWith,t[24]=a.state,t[25]=f,t[26]=s,t[27]=l,t[28]=o,t[29]=n,t[30]=c,t[31]=v,t[32]=y}else y=t[32];if(y!==Symbol.for(`react.early_return_sentinel`))return y}function Ue(e){return e.piece===`mcp`&&e.scope===`project`?(0,Q.jsx)(r,{id:`ggMMa7`}):e.piece===`skill`&&e.scope===`project`?(0,Q.jsx)(r,{id:`LtiJ5c`}):e.piece===`mcp`&&e.scope===`user`?(0,Q.jsx)(r,{id:`2gXnCO`}):e.piece===`skill`&&e.scope===`user`?(0,Q.jsx)(r,{id:`ejiJeW`}):null}function We(e,t,n,r){let i=e.report.conflicts.find(e=>e.kind===r);if(i===void 0)return null;let a=e=>xe.find(n=>t.cells[n]?.satisfierId===e),[o,s]=i.satisfierIds,c=o===void 0?void 0:a(o),l=s===void 0?void 0:a(s);return c===void 0||l===void 0?null:{dependent:n[l],prerequisite:n[c],blockedReason:i.blockedReason}}function Ge(e){let t=(0,J.c)(29),{result:n,connection:a}=e,{_:o}=i(),s;if(t[0]!==o||t[1]!==a||t[2]!==n){s=Symbol.for(`react.early_return_sentinel`);bb0:{let e={projectMcp:o({id:`ggMMa7`}),projectSkill:o({id:`LtiJ5c`}),globalMcp:o({id:`2gXnCO`}),discoverySkill:o({id:`ejiJeW`})},t=We(n,a,e,`prerequisite-unavailable`);if(t!==null){let{dependent:e,prerequisite:n}=t;s=(0,Q.jsx)(`p`,{role:`alert`,className:`text-sm text-destructive`,children:(()=>{switch(t.blockedReason){case`foreign`:return o({id:`XrPvMT`,values:{dependent:e,prerequisite:n}});case`structural-na`:return o({id:`XNdXMR`,values:{dependent:e,prerequisite:n}});case`not-installable`:return o({id:`GTvYzA`,values:{dependent:e,prerequisite:n}});case`agent-undetected`:return o({id:`7Ny8bV`,values:{dependent:e,prerequisite:n}});default:return o({id:`h2QPvj`,values:{dependent:e,prerequisite:n}})}})()});break bb0}let r=We(n,a,e,`prerequisite-removed`);if(r!==null){s=(0,Q.jsx)(`p`,{role:`alert`,className:`text-sm text-destructive`,children:o({id:`5CHuXn`,values:{0:r.dependent,1:r.prerequisite}})});break bb0}}t[0]=o,t[1]=a,t[2]=n,t[3]=s}else s=t[3];if(s!==Symbol.for(`react.early_return_sentinel`))return s;if(n.unavailable===!0){let e;t[4]!==o||t[5]!==n.devBuild?(e=n.devBuild===!0?o({id:`AUORpp`}):o({id:`RD8cCw`}),t[4]=o,t[5]=n.devBuild,t[6]=e):e=t[6];let r;return t[7]===e?r=t[8]:(r=(0,Q.jsx)(`p`,{role:`alert`,className:`text-sm text-destructive`,children:e}),t[7]=e,t[8]=r),r}let c;t[9]===o?c=t[10]:(c=e=>{switch(e.errorId){case`surface-missing`:return o({id:`3n7lnE`});case`foreign-artifact`:return o({id:`tCE-ZH`});case`no-writer`:case`not-installable`:return o({id:`BMoSQy`});case`dependency-failed`:return o({id:`1FXL-O`});case`write-declined`:return o({id:`_fZSIY`});case`write-failed`:case`executor-threw`:case`unrecognized-outcome`:return o({id:`dCforW`});default:return null}},t[9]=o,t[10]=c);let l=c,u=n.report.actions,d,f,p,m;if(t[11]!==l||t[12]!==n.error||t[13]!==n.report.actions){m=Symbol.for(`react.early_return_sentinel`);bb1:{let e;t[18]===l?e=t[19]:(e=e=>({key:e.satisfierId,title:Ue(e),managedInSkillsStudio:e.errorId===`no-writer`&&e.piece===`skill`&&e.scope===`user`,detail:l(e)}),t[18]=l,t[19]=e);let i=u.filter(Je).map(e).filter(qe);if(i.length===0){let e;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Q.jsx)(`p`,{children:(0,Q.jsx)(r,{id:`fWsBTs`})}),t[20]=e):e=t[20];let i;t[21]===n.error?i=t[22]:(i=n.error===void 0?null:(0,Q.jsx)(`code`,{className:`block wrap-break-word font-mono text-xs opacity-80`,children:n.error}),t[21]=n.error,t[22]=i);let a;t[23]===i?a=t[24]:(a=(0,Q.jsxs)(`div`,{role:`alert`,className:`space-y-1 text-sm text-destructive`,children:[e,i]}),t[23]=i,t[24]=a),m=a;break bb1}d=`alert`,f=`space-y-2 text-sm text-destructive`,p=i.map(Ke)}t[11]=l,t[12]=n.error,t[13]=n.report.actions,t[14]=d,t[15]=f,t[16]=p,t[17]=m}else d=t[14],f=t[15],p=t[16],m=t[17];if(m!==Symbol.for(`react.early_return_sentinel`))return m;let h;return t[25]!==d||t[26]!==f||t[27]!==p?(h=(0,Q.jsx)(`div`,{role:d,className:f,children:p}),t[25]=d,t[26]=f,t[27]=p,t[28]=h):h=t[28],h}function Ke(e){return(0,Q.jsxs)(`div`,{className:`space-y-1`,children:[e.title===null?null:(0,Q.jsx)(`p`,{className:`font-medium`,children:e.title}),(0,Q.jsx)(`p`,{children:e.managedInSkillsStudio?(0,Q.jsx)(r,{id:`5RiC8D`}):e.detail})]},e.key)}function qe(e){return e.managedInSkillsStudio||e.detail!==null}function Je(e){return e.errorId!==void 0}function Ye(){let e=(0,J.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:(0,Q.jsx)(r,{id:`s8difl`})}),e[0]=t):t=e[0],t}function Xe(e){let t=(0,J.c)(5),{label:n}=e,{_:r}=i(),a;t[0]!==r||t[1]!==n?(a=r({id:`74Mikl`,values:{label:n}}),t[0]=r,t[1]=n,t[2]=a):a=t[2];let o;return t[3]===a?o=t[4]:(o=(0,Q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:a}),t[3]=a,t[4]=o),o}function Ze(e){let t=(0,J.c)(5),{label:n}=e,{_:r}=i(),a;t[0]!==r||t[1]!==n?(a=r({id:`2lJAvH`,values:{label:n}}),t[0]=r,t[1]=n,t[2]=a):a=t[2];let o;return t[3]===a?o=t[4]:(o=(0,Q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:a}),t[3]=a,t[4]=o),o}function Qe(e){let t=(0,J.c)(141),{connection:n,open:a,onOpenChange:o,onSave:s,paired:c,onCloseAutoFocus:l,validateSave:u,alternateAction:d}=e,f=c===void 0?!1:c,{i18n:p,_:m}=i(),h=(0,q.useId)(),g;t[0]===n?g=t[1]:(g=()=>n===null?be:Me(n),t[0]=n,t[1]=g);let[_,v]=(0,q.useState)(g),[C,w]=(0,q.useState)(!1),[T,E]=(0,q.useState)(null),[D,O]=(0,q.useState)(null),[k,A]=(0,q.useState)(null),[j,M]=(0,q.useState)(null),N;t[2]!==n||t[3]!==_?(N=n!==null&&xe.some(e=>{let t=n.cells[e];return _[e]&&t!==void 0&&F(t.state)}),t[2]=n,t[3]=_,t[4]=N):N=t[4];let P=N,I;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(I=function(e,t){v(n=>({...n,[e]:t})),A(null),O(null),M(null)},t[5]=I):I=t[5];let L=I,R;t[6]!==n||t[7]!==_?(R=n!==null&&!_.projectSkill&&Ve(n,`projectSkill`),t[6]=n,t[7]=_,t[8]=R):R=t[8];let ee=R,z,B,V,H,fe,U,W,G,K,Y,me,he,ge,_e,X,ve,ye,Z;if(t[9]!==m||t[10]!==n||t[11]!==_||t[12]!==l||t[13]!==o||t[14]!==a||t[15]!==f||t[16]!==C||t[17]!==j||t[18]!==ee){let e=n===null?[]:Ce(n,`project`),i=n===null?[]:Ce(n,`machine`),s=n!==null&&e.length===0,c=n?.label,u=we(e),d=we(i),p;t[37]!==n?.cells||t[38]!==_?(p=xe.filter(e=>n?.cells[e]?.checked===!0&&!_[e]),t[37]=n?.cells,t[38]=_,t[39]=p):p=t[39],U=p.length;let h;t[40]!==n||t[41]!==_?(h=xe.filter(e=>n?.cells[e]!==void 0&&_[e]&&!n.cells[e]?.checked),t[40]=n,t[41]=_,t[42]=h):h=t[42],H=h.length;let g;t[43]!==m||t[44]!==H||t[45]!==U?(g=H>0&&U>0?m({id:`6tQC_t`,values:{addingCount:H,removingCount:U}}):H>0?S._({id:`xKcXG6`,values:{addingCount:H}}):U>0?S._({id:`0niWj3`,values:{removingCount:U}}):null,t[43]=m,t[44]=H,t[45]=U,t[46]=g):g=t[46];let v=g;W=U>0&&H===0;let y;t[47]!==_||t[48]!==W?(y=W&&xe.every(e=>!_[e]),t[47]=_,t[48]=W,t[49]=y):y=t[49];let b=y;Z=j!==null&&j.peerSatisfierIds.length>0;let x;t[50]!==m||t[51]!==H||t[52]!==n||t[53]!==b||t[54]!==U||t[55]!==j||t[56]!==v||t[57]!==Z?(x=n===null?null:j===null?b?m({id:`CCngW8`,values:{0:n.label}}):v:Z?m(H>0?{id:`0hAvVd`,values:{0:n.label,1:j.peers,addingCount:H,removingCount:U}}:{id:`yqr502`,values:{0:n.label,1:j.peers,removingCount:U}}):v,t[50]=m,t[51]=H,t[52]=n,t[53]=b,t[54]=U,t[55]=j,t[56]=v,t[57]=Z,t[58]=x):x=t[58],fe=x,V=ue,he=a,t[59]!==o||t[60]!==C?(ge=e=>!C&&o(e),t[59]=o,t[60]=C,t[61]=ge):ge=t[61],B=oe,G=`sm:max-w-lg`,K=!1,Y=l;let w;t[62]===n?w=t[63]:(w=n?(0,Q.jsx)(Oe,{agentId:n.id,className:`size-5 text-muted-foreground`}):null,t[62]=n,t[63]=w);let T=n?.label,E;t[64]!==w||t[65]!==T?(E=(0,Q.jsxs)(ae,{className:`flex items-center gap-2 text-lg`,children:[w,T]}),t[64]=w,t[65]=T,t[66]=E):E=t[66];let D;t[67]!==m||t[68]!==c||t[69]!==n||t[70]!==s?(D=m(n?s?{id:`bm1oV9`,values:{agentLabel:c}}:{id:`qr2gAH`,values:{0:n.label}}:{id:`CxnZP4`}),t[67]=m,t[68]=c,t[69]=n,t[70]=s,t[71]=D):D=t[71];let O;t[72]===D?O=t[73]:(O=(0,Q.jsx)(ie,{children:D}),t[72]=D,t[73]=O),t[74]!==E||t[75]!==O?(me=(0,Q.jsxs)(le,{className:`gap-2`,children:[E,O]}),t[74]=E,t[75]=O,t[76]=me):me=t[76],z=se,_e=`flex flex-col gap-6`,t[77]!==n||t[78]!==f?(X=f&&n?(0,Q.jsx)(Xe,{label:n.label}):null,t[77]=n,t[78]=f,t[79]=X):X=t[79],ve=e.length>0?(0,Q.jsxs)(de,{className:`gap-5`,children:[(0,Q.jsxs)(pe,{className:`flex items-center gap-2 font-mono data-[variant=legend]:text-xs uppercase tracking-wide text-muted-foreground`,children:[(0,Q.jsx)(te,{"aria-hidden":!0,className:`size-3.5`}),(0,Q.jsx)(r,{id:`ZWyHmq`}),(0,Q.jsx)(re,{variant:`secondary`,className:`font-mono text-[10px] uppercase`,children:(0,Q.jsx)(r,{id:`WEYdDv`})})]}),e.map(e=>{let[t,n]=e;return(0,Q.jsx)(He,{part:t,cell:n,notes:u.get(t)??[],draft:_,setPart:L},t)}),ee?(0,Q.jsx)(Ye,{}):null]}):null,ye=i.length>0?(0,Q.jsxs)(de,{className:`gap-5`,children:[(0,Q.jsxs)(pe,{className:`flex items-center gap-2 font-mono data-[variant=legend]:text-xs uppercase tracking-wide text-muted-foreground`,children:[(0,Q.jsx)(ne,{"aria-hidden":!0,className:`size-3.5`}),(0,Q.jsx)(r,{id:`ImTzPZ`})]}),i.map(e=>{let[t,n]=e;return(0,Q.jsx)(He,{part:t,cell:n,notes:d.get(t)??[],draft:_,setPart:L},t)})]}):null,t[9]=m,t[10]=n,t[11]=_,t[12]=l,t[13]=o,t[14]=a,t[15]=f,t[16]=C,t[17]=j,t[18]=ee,t[19]=z,t[20]=B,t[21]=V,t[22]=H,t[23]=fe,t[24]=U,t[25]=W,t[26]=G,t[27]=K,t[28]=Y,t[29]=me,t[30]=he,t[31]=ge,t[32]=_e,t[33]=X,t[34]=ve,t[35]=ye,t[36]=Z}else z=t[19],B=t[20],V=t[21],H=t[22],fe=t[23],U=t[24],W=t[25],G=t[26],K=t[27],Y=t[28],me=t[29],he=t[30],ge=t[31],_e=t[32],X=t[33],ve=t[34],ye=t[35],Z=t[36];let Se;t[80]!==n||t[81]!==T||t[82]!==D||t[83]!==j||t[84]!==k?(Se=j===null?k===null?D===null?T!==null&&n!==null?(0,Q.jsx)(Ge,{result:T,connection:n}):null:(0,Q.jsx)(`p`,{role:`status`,className:`text-sm text-muted-foreground`,children:D}):(0,Q.jsx)(`p`,{role:`alert`,className:`text-sm text-destructive`,children:k}):(0,Q.jsx)(it,{choice:j}),t[80]=n,t[81]=T,t[82]=D,t[83]=j,t[84]=k,t[85]=Se):Se=t[85];let $;t[86]!==z||t[87]!==Se||t[88]!==_e||t[89]!==X||t[90]!==ve||t[91]!==ye?($=(0,Q.jsxs)(z,{className:_e,children:[X,ve,ye,Se]}),t[86]=z,t[87]=Se,t[88]=_e,t[89]=X,t[90]=ve,t[91]=ye,t[92]=$):$=t[92];let Te;t[93]===fe?Te=t[94]:(Te=(0,Q.jsx)(`p`,{role:`status`,className:`me-auto text-xs text-muted-foreground`,"aria-live":`polite`,"aria-atomic":`true`,children:fe}),t[93]=fe,t[94]=Te);let Ee;t[95]===o?Ee=t[96]:(Ee=()=>o(!1),t[95]=o,t[96]=Ee);let De;t[97]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,Q.jsx)(r,{id:`dEgA5A`}),t[97]=De):De=t[97];let ke;t[98]!==C||t[99]!==Ee?(ke=(0,Q.jsx)(x,{variant:`outline`,className:`font-mono uppercase`,disabled:C,onClick:Ee,children:De}),t[98]=C,t[99]=Ee,t[100]=ke):ke=t[100];let Ae;t[101]!==d||t[102]!==h||t[103]!==C?(Ae=d===void 0?null:(0,Q.jsxs)(`div`,{className:`flex flex-col items-start gap-2 sm:items-end`,children:[d.preference===void 0?null:(0,Q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Q.jsx)(y,{id:h,checked:d.preference.checked,disabled:C,onCheckedChange:e=>d.preference?.onCheckedChange(e===!0)}),(0,Q.jsx)(b,{htmlFor:h,className:`cursor-pointer text-sm`,children:d.preference.label})]}),(0,Q.jsx)(x,{variant:`ghost`,className:`font-mono uppercase`,disabled:C,onClick:d.onClick,children:d.label})]}),t[101]=d,t[102]=h,t[103]=C,t[104]=Ae):Ae=t[104];let je=P||U>0?`destructive`:`default`,Ne=C||(j===null?H+U===0:!Z),Pe;t[105]!==n||t[106]!==_||t[107]!==p||t[108]!==o||t[109]!==s||t[110]!==j?.peerSatisfierIds||t[111]!==u?(Pe=()=>{let e=u?.(_)??null;if(e!==null){A(e);return}w(!0),A(null),E(null),O(null);let t=j?.peerSatisfierIds;M(null),s(_,t).then(e=>{if(`kind`in e){O(e.message);return}if(e.ok){o(!1);return}let t=n===null?null:rt(e,n,p.locale);t===null?E(e):M(t)}).catch(()=>E({ok:!1,report:{actions:[],conflicts:[],withheld:[]},snapshot:null})).finally(()=>w(!1))},t[105]=n,t[106]=_,t[107]=p,t[108]=o,t[109]=s,t[110]=j?.peerSatisfierIds,t[111]=u,t[112]=Pe):Pe=t[112];let Fe;t[113]!==P||t[114]!==W||t[115]!==C||t[116]!==Z?(Fe=C?(0,Q.jsx)(r,{id:`uF9ruK`}):Z?(0,Q.jsx)(r,{id:`dGcsnU`}):P?(0,Q.jsx)(r,{id:`inJhKB`}):W?(0,Q.jsx)(r,{id:`t_YqKh`}):(0,Q.jsx)(r,{id:`y3aU20`}),t[113]=P,t[114]=W,t[115]=C,t[116]=Z,t[117]=Fe):Fe=t[117];let Ie;t[118]!==je||t[119]!==Ne||t[120]!==Pe||t[121]!==Fe?(Ie=(0,Q.jsx)(x,{variant:je,className:`font-mono uppercase`,disabled:Ne,onClick:Pe,children:Fe}),t[118]=je,t[119]=Ne,t[120]=Pe,t[121]=Fe,t[122]=Ie):Ie=t[122];let Le;t[123]!==Te||t[124]!==ke||t[125]!==Ae||t[126]!==Ie?(Le=(0,Q.jsxs)(ce,{className:`items-center`,children:[Te,ke,Ae,Ie]}),t[123]=Te,t[124]=ke,t[125]=Ae,t[126]=Ie,t[127]=Le):Le=t[127];let Re;t[128]!==B||t[129]!==G||t[130]!==K||t[131]!==Y||t[132]!==me||t[133]!==$||t[134]!==Le?(Re=(0,Q.jsxs)(B,{className:G,showCloseButton:K,onCloseAutoFocus:Y,children:[me,$,Le]}),t[128]=B,t[129]=G,t[130]=K,t[131]=Y,t[132]=me,t[133]=$,t[134]=Le,t[135]=Re):Re=t[135];let ze;return t[136]!==V||t[137]!==he||t[138]!==ge||t[139]!==Re?(ze=(0,Q.jsx)(V,{open:he,onOpenChange:ge,children:Re}),t[136]=V,t[137]=he,t[138]=ge,t[139]=Re,t[140]=ze):ze=t[140],ze}function $e(e){switch(e){case`projectMcp`:return(0,Q.jsx)(r,{id:`ggMMa7`});case`projectSkill`:return(0,Q.jsx)(r,{id:`LtiJ5c`});case`globalMcp`:return(0,Q.jsx)(r,{id:`2gXnCO`});case`discoverySkill`:return(0,Q.jsx)(r,{id:`ejiJeW`})}}function et(e,t){return xe.flatMap(n=>{let r=e.cells[n];return r?.checked===!0?[{cell:r,part:n,label:$e(n),path:r.resolvedPath??Y(r.pathId),scope:r.scope===`project`?`project`:`machine`,alsoAffects:r.piece===`skill`&&r.sharedFolderWith.length>0?K(r.sharedFolderWith.map(nt),t):null}]:[]})}function tt(e){let t=(0,J.c)(12),{scope:n,rows:a}=e,{_:o}=i();if(a.length===0)return null;let s;t[0]===n?s=t[1]:(s=(0,Q.jsxs)(`div`,{className:`flex items-center gap-2 border-b bg-muted/60 px-3 py-2 font-mono text-xs uppercase tracking-wide text-muted-foreground`,children:[n===`project`?(0,Q.jsx)(te,{"aria-hidden":!0,className:`size-3.5`}):(0,Q.jsx)(ne,{"aria-hidden":!0,className:`size-3.5`}),n===`project`?(0,Q.jsx)(r,{id:`ZWyHmq`}):(0,Q.jsx)(r,{id:`ImTzPZ`})]}),t[0]=n,t[1]=s);let c;if(t[2]!==o||t[3]!==a){let e;t[5]===o?e=t[6]:(e=e=>{let t=e.alsoAffects;return(0,Q.jsxs)(`li`,{className:`flex items-start gap-3 px-3 py-3`,children:[(0,Q.jsx)(H,{"aria-hidden":!0,className:`mt-0.5 size-4 shrink-0 text-destructive`}),(0,Q.jsxs)(`div`,{className:`min-w-0`,children:[(0,Q.jsx)(`p`,{className:`text-sm font-medium`,children:e.label}),e.path===null?null:(0,Q.jsx)(`code`,{className:`block truncate text-xs text-muted-foreground`,children:e.path}),t===null?null:(0,Q.jsx)(`p`,{className:`text-xs text-amber-700 dark:text-amber-400`,children:o({id:`qze9od`,values:{alsoAffects:t}})})]})]},e.cell.satisfierId)},t[5]=o,t[6]=e),c=a.map(e),t[2]=o,t[3]=a,t[4]=c}else c=t[4];let l;t[7]===c?l=t[8]:(l=(0,Q.jsx)(`ul`,{className:`divide-y divide-border`,children:c}),t[7]=c,t[8]=l);let u;return t[9]!==s||t[10]!==l?(u=(0,Q.jsxs)(`div`,{children:[s,l]}),t[9]=s,t[10]=l,t[11]=u):u=t[11],u}function nt(e){return D[e]??e}function rt(e,t,n){let r=e.report.conflicts.filter(e=>e.kind===`unresolved-shared-copy`),i=new Set(Object.values(t.cells).map(e=>e.satisfierId)),a=[...new Set(r.flatMap(e=>e.satisfierIds))].filter(e=>!i.has(e)),o=[...new Set(r.flatMap(e=>e.agentIds))].filter(e=>e!==t.id);if(a.length===0&&o.length===0)return null;let s=[...new Set(r.map(e=>Y(e.pathId)).filter(e=>e!==null))];return{peers:K(o.map(nt),n),path:s.length===1?s[0]:null,peerSatisfierIds:a}}function it(e){let t=(0,J.c)(5),{choice:n}=e,{peers:i,path:a}=n;if(n.peerSatisfierIds.length===0){let e;return t[0]===i?e=t[1]:(e=(0,Q.jsx)(`div`,{role:`status`,className:`rounded-md border bg-muted/50 p-3 text-sm`,children:(0,Q.jsx)(r,{id:`H8tj8y`,values:{peers:i}})}),t[0]=i,t[1]=e),e}let o;return t[2]!==a||t[3]!==i?(o=(0,Q.jsx)(`div`,{role:`status`,className:`rounded-md border bg-muted/50 p-3 text-sm`,children:a===null?(0,Q.jsx)(r,{id:`4C2RCg`,values:{peers:i}}):(0,Q.jsx)(r,{id:`fybwfg`,values:{peers:i,path:a},components:{0:(0,Q.jsx)(`code`,{className:`font-mono`})}})}),t[2]=a,t[3]=i,t[4]=o):o=t[4],o}function at(e){let t=(0,J.c)(96),{connection:n,open:a,onOpenChange:o,onRemove:s,paired:c}=e,l=c===void 0?!1:c,{i18n:y,_:b}=i(),x=(0,q.useRef)(null),S=(0,q.useRef)(null),C,w;t[0]===a?(C=t[1],w=t[2]):(C=()=>{if(!a)return;let e=document.activeElement;x.current=e,S.current=e?.closest(`section`)??null},w=[a],t[0]=a,t[1]=C,t[2]=w),(0,q.useEffect)(C,w);let[T,E]=(0,q.useState)(!1),[D,O]=(0,q.useState)(null),[k,A]=(0,q.useState)(null),j,M,N,P,F,I,L,R,ee,te,z,ne,B,V,H,re;if(t[3]!==b||t[4]!==n||t[5]!==y||t[6]!==o||t[7]!==s||t[8]!==a||t[9]!==T){F=n?et(n,y.locale):[];let e;t[26]!==n||t[27]!==y||t[28]!==o||t[29]!==s?(e=function(e){n!==null&&(E(!0),O(null),A(null),s(e).then(e=>{if(e.ok){o(!1);return}let t=rt(e,n,y.locale);t===null?O(e):A(t)}).catch(e=>O({ok:!1,report:{actions:[],conflicts:[],withheld:[]},snapshot:null,error:e instanceof Error?e.message:String(e)})).finally(()=>E(!1)))},t[26]=n,t[27]=y,t[28]=o,t[29]=s,t[30]=e):e=t[30],I=e,P=v,ee=a,t[31]!==o||t[32]!==T?(te=e=>!T&&o(e),t[31]=o,t[32]=T,t[33]=te):te=t[33],N=u,re=`sm:max-w-lg`,t[34]===Symbol.for(`react.memo_cache_sentinel`)?(L=e=>{let t=x.current,n=t?.isConnected?t:Z(S.current);n?.isConnected&&(e.preventDefault(),n.focus())},t[34]=L):L=t[34];let i;t[35]===n?i=t[36]:(i=n?(0,Q.jsx)(Oe,{agentId:n.id,className:`size-5 text-muted-foreground`}):null,t[35]=n,t[36]=i);let c;t[37]!==b||t[38]!==n?(c=b(n?{id:`ApNWRQ`,values:{0:n.label}}:{id:`Y1wa2r`}),t[37]=b,t[38]=n,t[39]=c):c=t[39];let l;t[40]!==i||t[41]!==c?(l=(0,Q.jsxs)(p,{className:`flex items-center gap-2 text-lg`,children:[i,c]}),t[40]=i,t[41]=c,t[42]=l):l=t[42];let f;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Q.jsx)(h,{children:(0,Q.jsx)(r,{id:`da7Yfw`})}),t[43]=f):f=t[43],t[44]===l?R=t[45]:(R=(0,Q.jsxs)(d,{className:`gap-2`,children:[l,f]}),t[44]=l,t[45]=R),M=g,H=`flex flex-col gap-4`,B=`overflow-hidden rounded-lg border`,V=(0,Q.jsx)(tt,{scope:`project`,rows:F.filter(st)}),j=tt,z=`machine`,ne=F.filter(ot),t[3]=b,t[4]=n,t[5]=y,t[6]=o,t[7]=s,t[8]=a,t[9]=T,t[10]=j,t[11]=M,t[12]=N,t[13]=P,t[14]=F,t[15]=I,t[16]=L,t[17]=R,t[18]=ee,t[19]=te,t[20]=z,t[21]=ne,t[22]=B,t[23]=V,t[24]=H,t[25]=re}else j=t[10],M=t[11],N=t[12],P=t[13],F=t[14],I=t[15],L=t[16],R=t[17],ee=t[18],te=t[19],z=t[20],ne=t[21],B=t[22],V=t[23],H=t[24],re=t[25];let ie;t[46]!==j||t[47]!==z||t[48]!==ne?(ie=(0,Q.jsx)(j,{scope:z,rows:ne}),t[46]=j,t[47]=z,t[48]=ne,t[49]=ie):ie=t[49];let ae;t[50]!==ie||t[51]!==B||t[52]!==V?(ae=(0,Q.jsxs)(`div`,{className:B,children:[V,ie]}),t[50]=ie,t[51]=B,t[52]=V,t[53]=ae):ae=t[53];let oe;t[54]!==n||t[55]!==l?(oe=l&&n?(0,Q.jsx)(Ze,{label:n.label}):null,t[54]=n,t[55]=l,t[56]=oe):oe=t[56];let se;t[57]===Symbol.for(`react.memo_cache_sentinel`)?(se=(0,Q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:(0,Q.jsx)(r,{id:`Evsh6U`})}),t[57]=se):se=t[57];let ce;t[58]!==n||t[59]!==D||t[60]!==k?(ce=k===null?D!==null&&n!==null?(0,Q.jsx)(Ge,{result:D,connection:n}):null:(0,Q.jsx)(it,{choice:k}),t[58]=n,t[59]=D,t[60]=k,t[61]=ce):ce=t[61];let le;t[62]!==M||t[63]!==ae||t[64]!==oe||t[65]!==ce||t[66]!==H?(le=(0,Q.jsxs)(M,{className:H,children:[ae,oe,se,ce]}),t[62]=M,t[63]=ae,t[64]=oe,t[65]=ce,t[66]=H,t[67]=le):le=t[67];let ue;t[68]===Symbol.for(`react.memo_cache_sentinel`)?(ue=(0,Q.jsx)(r,{id:`dEgA5A`}),t[68]=ue):ue=t[68];let de;t[69]===T?de=t[70]:(de=(0,Q.jsx)(f,{disabled:T,children:ue}),t[69]=T,t[70]=de);let fe=T||F.length===0||k!==null&&k.peerSatisfierIds.length===0,U;t[71]!==k?.peerSatisfierIds||t[72]!==I?(U=e=>{e.preventDefault(),I(k?.peerSatisfierIds)},t[71]=k?.peerSatisfierIds,t[72]=I,t[73]=U):U=t[73];let pe;t[74]!==T||t[75]!==k?(pe=T?(0,Q.jsx)(r,{id:`uF9ruK`}):k!==null&&k.peerSatisfierIds.length>0?(0,Q.jsx)(r,{id:`dGcsnU`}):(0,Q.jsx)(r,{id:`t_YqKh`}),t[74]=T,t[75]=k,t[76]=pe):pe=t[76];let W;t[77]!==fe||t[78]!==U||t[79]!==pe?(W=(0,Q.jsx)(m,{variant:`destructive`,className:`font-mono uppercase`,disabled:fe,onClick:U,children:pe}),t[77]=fe,t[78]=U,t[79]=pe,t[80]=W):W=t[80];let G;t[81]!==de||t[82]!==W?(G=(0,Q.jsxs)(_,{children:[de,W]}),t[81]=de,t[82]=W,t[83]=G):G=t[83];let K;t[84]!==N||t[85]!==L||t[86]!==R||t[87]!==le||t[88]!==G||t[89]!==re?(K=(0,Q.jsxs)(N,{className:re,onCloseAutoFocus:L,children:[R,le,G]}),t[84]=N,t[85]=L,t[86]=R,t[87]=le,t[88]=G,t[89]=re,t[90]=K):K=t[90];let Y;return t[91]!==P||t[92]!==ee||t[93]!==te||t[94]!==K?(Y=(0,Q.jsx)(P,{open:ee,onOpenChange:te,children:K}),t[91]=P,t[92]=ee,t[93]=te,t[94]=K,t[95]=Y):Y=t[95],Y}function ot(e){return e.scope===`machine`}function st(e){return e.scope===`project`}function ct(e,t,n=[]){let r=je(e);return[...n.map(e=>({satisfierId:e,desired:`absent`})),...xe.flatMap(n=>{let i=e.cells[n];return i===void 0||t[n]===r[n]?[]:[{satisfierId:i.satisfierId,desired:t[n]?`present`:`absent`}]})]}function lt(e,t=[]){let n=je(e),r=Object.fromEntries(xe.map(t=>[t,e.cells[t]?!1:n[t]])),i=t.map(e=>({satisfierId:e,desired:`absent`}));return[...ct(e,r),...i]}function ut(e){if(e.status===`nothing-required`)return`met`;let t=!1;for(let n of e.options){if(n.confidence===`unverified`){t=!0;continue}if(n.counts)return`met`}return t?`unprobed`:`unmet`}function dt(e,t,n){return n===!1?`absent`:n===!0?`present`:t===null||!t.detection.probed?`unknown`:L(t.detection,e)?`present`:`absent`}function ft(e){let{agentId:t,mode:n,snapshot:r,detected:i}=e;if(dt(t,r,i)===`absent`)return`not-installed`;if(r===null)return`no-status`;let a=R({agentId:t,mode:n,probes:r.probes}).requirements.filter(e=>e.level===`required`);if(a.length===0)return`no-status`;let o=a.map(ut);return o.includes(`unprobed`)?`no-status`:o.includes(`unmet`)?`not-connected`:`connected`}function pt(e){return e===`enable-manually`?`external`:`terminal`}function mt(e){let{agentId:t,mode:n,snapshot:r,projectMcp:i}=e;if(r===null||i?.followup===void 0||ft(e)!==`connected`)return;let a=R({agentId:t,mode:n,probes:r.probes}).requirements.find(e=>e.level===`required`&&e.piece===`mcp`);if(a===void 0||a.status!==`met`)return;let o=a.options.filter(e=>e.counts);if(!(o.length!==1||o[0]?.id!==i.satisfierId))return i.followup}var ht={actions:[],conflicts:[],withheld:[]};function gt(e){return{ok:!1,report:ht,snapshot:null,error:e}}function _t(e){return e.conflicts.length===0&&e.actions.every(e=>e.errorId===void 0)}async function vt(e,t){let n=globalThis.window?.okDesktop;if(n!==void 0)try{let t=await n.agentIntegrations.apply({intents:e});return t.ok?{ok:!0,report:t.report,snapshot:t.snapshot}:{ok:!1,report:t.report,snapshot:t.snapshot,error:t.error,...t.unavailable===!0?{unavailable:!0}:{},...t.devBuild===!0?{devBuild:!0}:{}}}catch(e){return{ok:!1,report:ht,snapshot:null,error:e instanceof Error?e.message:String(e)}}let r;try{r=await fetch(`/api/agent-integrations/apply`,{method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},body:JSON.stringify({intents:e}),signal:t?.webSignal})}catch(e){return gt(e instanceof Error?e.message:String(e))}if(!r.ok)return gt(`HTTP ${r.status} ${r.statusText}`.trimEnd());let i;try{i=await r.json()}catch(e){return gt(e instanceof Error?e.message:String(e))}let a=w.safeParse(i);if(!a.success){let e=a.error.issues.map(e=>e.path.join(`.`));return console.warn(`[agent-connections] response schema drift`,{issues:e}),gt(`Unexpected response shape at ${e.join(`, `)}`)}let o={actions:a.data.actions,conflicts:a.data.conflicts,withheld:a.data.withheld};return{ok:_t(o),report:o,snapshot:a.data.snapshot}}var yt=new Set;function bt(e){return yt.add(e),()=>{yt.delete(e)}}async function xt(e,t){let n=await vt(e,t);if(e.length>0){let e=[...yt];for(let t of e)try{t(n)}catch(e){console.warn(`[agent-connections] change listener failed:`,e)}}return n}export{je as _,pt as a,Oe as c,De as d,ke as f,ct as g,Ne as h,mt as i,at as l,Ae as m,bt as n,dt as o,Pe as p,ft as r,Qe as s,xt as t,Fe as u,lt as v,Z as y};
|
|
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-BEGR8gsd.js";import{i as s,n as c,t as l}from"./tooltip-DBqLYfio.js";import{a as u,c as d,i as f,l as p,n as m,o as h,r as g,s as _,t as v}from"./alert-dialog-BA3e7-10.js";import{t as y}from"./checkbox-CKD8LETI.js";import{t as b}from"./label-CvMpFFbN.js";import{t as x}from"./button-DzgjsZzC.js";import{t as S}from"./dist-C_FzPxEX2.js";import{t as C}from"./constants-product-B7cMRfgm.js";import{r as w}from"./schemas-api-DIKsrZIF.js";import{a as T,c as E,n as D,r as O,s as k}from"./constants-editors-CfabqCeY.js";import{x as A}from"./handoff-DzPPe6fp.js";import{c as j,d as M,f as N,h as P,i as F,n as I,r as L,t as R,u as ee}from"./agent-registry-CIU-Kw1G.js";import{t as te}from"./folder-QqUoFRPR.js";import{t as z}from"./info-CyR0W2SK.js";import{t as ne}from"./monitor-IXzxTnmk.js";import{t as B}from"./sparkles-BS2TX_Um.js";import{t as V}from"./triangle-alert-BXrUEeRU.js";import{t as H}from"./x-DM2drskU.js";import{t as re}from"./badge-DmdA1C7r.js";import{a as ie,c as ae,i as oe,n as se,o as ce,s as le,t as ue}from"./dialog-BJEjKJjL.js";import{c as de,l as fe,n as U,s as pe,t as W}from"./field-DFJgKWGh.js";import{t as G}from"./constants-skills-BLHVRW90.js";import{t as K}from"./tool-list-format-CS7MZY1Q.js";var q=e(n(),1),J=a();function Y(e){if(e===void 0)return null;let t=P(e);if(t===null)return null;if(t.kind===`central-skill-store`)return`~/${G}/`;switch(t.kind){case`editor-project-config`:return E[t.editor];case`editor-project-skill-root`:{let e=O[t.editor];return e===null?null:`${e}/${k}/`}case`editor-user-skill-root`:{let e=T[t.editor];return e===null?null:`~/${e}/`}case`editor-user-config`:return null}}function me(e,t){if(e===void 0||t.length===0)return[];let n=P(e);return n===null||n.kind===`central-skill-store`?[]:t.map(e=>Y(`${n.kind}:${e}`)).filter(e=>e!==null)}function he(){return(typeof window>`u`?null:window.okDesktop?.mcpServerName)||null}function ge(){return he()??`OpenKnowledge`}function _e(e){return typeof e==`string`&&e!==``?e:he()??C.stable.mcpServerName}function X(e){return typeof e==`string`?D[e]??e:null}function ve(e){if(e===void 0)return null;let t=X(e.params?.agent);if(t===null)return null;switch(e.id){case`guidance.mcp.user-config`:return S._({id:`guidance.mcp.user-config`,values:{agent:t}});case`guidance.mcp.project-config`:return S._({id:`guidance.mcp.project-config`,values:{agent:t}});case`guidance.mcp.session-injection`:return S._({id:`guidance.mcp.session-injection`,values:{agent:t}});case`guidance.mcp.managed-file`:return S._({id:`guidance.mcp.managed-file`,values:{agent:t}});case`guidance.skill.project`:return S._({id:`guidance.skill.project`,values:{agent:t}});case`guidance.skill.user`:return S._({id:`guidance.skill.user`,values:{agent:t}});case`guidance.skill.central-store`:return S._({id:`guidance.skill.central-store`,values:{agent:t}});default:return null}}function ye(e){if(e===void 0)return null;let t=X(e.params?.agent);if(t===null)return null;switch(e.id){case`troubleshooting.claude.project-entry-not-approved`:return S._({id:`troubleshooting.claude.project-entry-not-approved`,values:{agent:t}});case`troubleshooting.claude-desktop.per-tool-approval`:return S._({id:`troubleshooting.claude-desktop.per-tool-approval`,values:{agent:t}});case`troubleshooting.cursor.project-entry-not-loaded`:{let n=_e(e.params?.server);return S._({id:`troubleshooting.cursor.project-entry-not-loaded`,values:{agent:t,server:n}})}case`troubleshooting.codex.folder-trust`:return S._({id:`troubleshooting.codex.folder-trust`,values:{agent:t}});case`troubleshooting.codex.desktop-project-config`:return e.params?.honoredByDesktop===!0?null:S._({id:`troubleshooting.codex.desktop-project-config`,values:{agent:t}});case`troubleshooting.copilot.shared-workspace-config`:{let n=X(e.params?.sourceAgent)??``;return S._({id:`troubleshooting.copilot.shared-workspace-config`,values:{agent:t,sourceAgent:n}})}case`troubleshooting.openclaw.central-store-missing`:return S._({id:`troubleshooting.openclaw.central-store-missing`,values:{agent:t}});case`troubleshooting.pi.folder-trust`:return S._({id:`troubleshooting.pi.folder-trust`,values:{agent:t}});case`troubleshooting.lm-studio.config-path-mismatch`:return S._({id:`troubleshooting.lm-studio.config-path-mismatch`,values:{agent:t}});default:return null}}function Z(e){return e?.closest(`section`)?.querySelector(`h4`)??null}var Q=t(),be={projectMcp:!1,projectSkill:!1,globalMcp:!1,discoverySkill:!1},xe=[`projectMcp`,`projectSkill`,`globalMcp`,`discoverySkill`],Se={projectMcp:`project`,projectSkill:`project`,globalMcp:`machine`,discoverySkill:`machine`};function Ce(e,t){return xe.flatMap(n=>{if(Se[n]!==t)return[];let r=e.cells[n];return r===void 0?[]:[[n,r]]})}function $(e){return e.disabledReason!==null}function we(e){let t=new Set,n=new Map;for(let[r,i]of e){let e=[];if(i.checked&&!$(i))for(let n of i.troubleshooting){if(t.has(n.id))continue;let r=ye(n);r!==null&&(t.add(n.id),e.push({id:n.id,text:r}))}n.set(r,e)}return n}function Te(e){return e.scope===`project`&&e.piece===`mcp`?`projectMcp`:e.scope===`project`&&e.piece===`skill`?`projectSkill`:e.scope===`user`&&e.piece===`mcp`?`globalMcp`:e.scope===`user`&&e.piece===`skill`?`discoverySkill`:null}function Ee(e){if(!j.includes(e.agentId))return null;let t=e.agentId,n={};for(let t of e.scopes)for(let e of t.cells){let t=Te(e);t!==null&&(n[t]=e)}return{id:t,label:De(t),row:e,cells:n}}function De(e){return D[e]}function Oe(e){let t=(0,J.c)(5),{agentId:n,className:r}=e;if(n===`lm-studio`){let e;return t[0]===r?e=t[1]:(e=(0,Q.jsx)(B,{"aria-hidden":!0,className:r,strokeWidth:1.5}),t[0]=r,t[1]=e),e}let i;return t[2]!==n||t[3]!==r?(i=(0,Q.jsx)(o,{host:n,"aria-hidden":!0,className:r}),t[2]=n,t[3]=r,t[4]=i):i=t[4],i}function ke(e,{forceDetected:t=[]}={}){return I({agentIds:j,probes:e.probes,detection:{...e.detection,detected:[...e.detection.detected,...t]}}).rows.flatMap(e=>{let t=Ee(e);return t===null?[]:[t]})}function Ae(e){return A.some(t=>N(t)===e)&&ee.some(t=>M(t.id)===e)}function je(e){return{projectMcp:e.cells.projectMcp?.checked===!0,projectSkill:e.cells.projectSkill?.checked===!0,globalMcp:e.cells.globalMcp?.checked===!0,discoverySkill:e.cells.discoverySkill?.checked===!0}}function Me(e){let t=je(e);return Ne(t)>0?t:Object.fromEntries(xe.map(t=>{let n=e.cells[t];return[t,n!==void 0&&!$(n)&&!F(n.state)]}))}function Ne(e){return Object.values(e).filter(Boolean).length}function Pe(e){return Object.values(e.cells).some(e=>!$(e))}function Fe(e){let t=Object.values(e.cells);return t.length>0&&t.every(e=>e.checked)}function Ie(e){let t=(0,J.c)(10),{children:n}=e,{_:r}=i(),a;t[0]===r?a=t[1]:(a=r({id:`kjrq_8`}),t[0]=r,t[1]=a);let o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Q.jsx)(z,{"aria-hidden":!0}),t[2]=o):o=t[2];let u;t[3]===a?u=t[4]:(u=(0,Q.jsx)(s,{asChild:!0,children:(0,Q.jsx)(x,{variant:`ghost`,size:`icon-sm`,"aria-label":a,children:o})}),t[3]=a,t[4]=u);let d;t[5]===n?d=t[6]:(d=(0,Q.jsx)(c,{className:`max-w-72`,children:n}),t[5]=n,t[6]=d);let f;return t[7]!==u||t[8]!==d?(f=(0,Q.jsxs)(l,{children:[u,d]}),t[7]=u,t[8]=d,t[9]=f):f=t[9],f}function Le(e){let t=(0,J.c)(16),{message:n,path:r,info:a}=e,{_:o}=i(),u;t[0]===o?u=t[1]:(u=o({id:`bn_MDX`}),t[0]=o,t[1]=u);let d;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Q.jsx)(V,{"aria-hidden":!0}),t[2]=d):d=t[2];let f;t[3]===u?f=t[4]:(f=(0,Q.jsx)(s,{asChild:!0,children:(0,Q.jsx)(x,{variant:`ghost`,size:`icon-sm`,className:`text-amber-700 hover:text-amber-700 dark:text-amber-400 dark:hover:text-amber-400`,"aria-label":u,children:d})}),t[3]=u,t[4]=f);let p;t[5]===n?p=t[6]:(p=(0,Q.jsx)(`span`,{className:`font-medium`,children:n}),t[5]=n,t[6]=p);let m;t[7]===r?m=t[8]:(m=r===null?null:(0,Q.jsx)(`code`,{className:`wrap-break-word font-mono opacity-80`,children:r}),t[7]=r,t[8]=m);let h;t[9]!==a||t[10]!==p||t[11]!==m?(h=(0,Q.jsx)(c,{className:`max-w-72`,children:(0,Q.jsxs)(`span`,{className:`flex flex-col gap-1.5`,children:[p,a,m]})}),t[9]=a,t[10]=p,t[11]=m,t[12]=h):h=t[12];let g;return t[13]!==f||t[14]!==h?(g=(0,Q.jsxs)(l,{children:[f,h]}),t[13]=f,t[14]=h,t[15]=g):g=t[15],g}function Re(e){let t=(0,J.c)(51),{id:n,checked:r,disabled:a,exception:o,state:s,title:c,description:l,info:u,path:d,sharedPaths:f,alsoAffects:p,notes:m,onCheckedChange:h}=e,{_:g}=i(),_=o===`warning`||o===`error`,v;t[0]!==g||t[1]!==_||t[2]!==s?(v=_?g(s===`foreign`?{id:`tCE-ZH`}:s===`foreign-replaceable`?{id:`KTxoDA`}:{id:`8wwkVu`}):null,t[0]=g,t[1]=_,t[2]=s,t[3]=v):v=t[3];let x=v,S=x===null?void 0:`${n}-warning`,C=p===null?void 0:`${n}-shared`,w;t[4]!==C||t[5]!==S?(w=[S,C].filter(Boolean).join(` `)||void 0,t[4]=C,t[5]=S,t[6]=w):w=t[6];let T=w,E=a||void 0,D;t[7]===h?D=t[8]:(D=e=>h(e===!0),t[7]=h,t[8]=D);let O;t[9]!==r||t[10]!==T||t[11]!==a||t[12]!==n||t[13]!==D?(O=(0,Q.jsx)(`div`,{className:`flex h-7 items-center`,children:(0,Q.jsx)(y,{id:n,checked:r,disabled:a,"aria-describedby":T,onCheckedChange:D})}),t[9]=r,t[10]=T,t[11]=a,t[12]=n,t[13]=D,t[14]=O):O=t[14];let k;t[15]===c?k=t[16]:(k=(0,Q.jsx)(fe,{children:c}),t[15]=c,t[16]=k);let A;t[17]!==n||t[18]!==k?(A=(0,Q.jsx)(b,{htmlFor:n,className:`cursor-pointer`,children:k}),t[17]=n,t[18]=k,t[19]=A):A=t[19];let j;t[20]!==a||t[21]!==u||t[22]!==d||t[23]!==f||t[24]!==x?(j=x===null?(0,Q.jsx)(Ie,{children:(0,Q.jsxs)(`span`,{className:`flex flex-col gap-1.5`,children:[u,d===null?null:(0,Q.jsx)(`code`,{className:`wrap-break-word font-mono opacity-80`,children:d}),f.map(Be)]})}):(0,Q.jsx)(Le,{message:x,path:d,info:a?null:u}),t[20]=a,t[21]=u,t[22]=d,t[23]=f,t[24]=x,t[25]=j):j=t[25];let M;t[26]!==A||t[27]!==j?(M=(0,Q.jsxs)(`div`,{className:`flex items-center gap-1`,children:[A,j]}),t[26]=A,t[27]=j,t[28]=M):M=t[28];let N;t[29]===l?N=t[30]:(N=(0,Q.jsx)(`p`,{className:`text-sm leading-relaxed text-muted-foreground`,children:l}),t[29]=l,t[30]=N);let P;t[31]!==n||t[32]!==m?(P=m.length===0?null:(0,Q.jsx)(`div`,{className:`flex flex-col gap-1.5`,"data-testid":`${n}-troubleshooting`,children:m.map(ze)}),t[31]=n,t[32]=m,t[33]=P):P=t[33];let F;t[34]!==g||t[35]!==p||t[36]!==C?(F=p===null?null:(0,Q.jsx)(`p`,{id:C,className:`text-sm leading-relaxed text-amber-700 dark:text-amber-400`,children:g({id:`qze9od`,values:{alsoAffects:p}})}),t[34]=g,t[35]=p,t[36]=C,t[37]=F):F=t[37];let I;t[38]!==x||t[39]!==S?(I=S===void 0?null:(0,Q.jsx)(`span`,{id:S,className:`sr-only`,children:x}),t[38]=x,t[39]=S,t[40]=I):I=t[40];let L;t[41]!==N||t[42]!==P||t[43]!==F||t[44]!==I||t[45]!==M?(L=(0,Q.jsxs)(U,{children:[M,N,P,F,I]}),t[41]=N,t[42]=P,t[43]=F,t[44]=I,t[45]=M,t[46]=L):L=t[46];let R;return t[47]!==L||t[48]!==E||t[49]!==O?(R=(0,Q.jsxs)(W,{orientation:`horizontal`,className:`items-start gap-3`,"data-disabled":E,children:[O,L]}),t[47]=L,t[48]=E,t[49]=O,t[50]=R):R=t[50],R}function ze(e){return(0,Q.jsx)(`p`,{className:`text-sm leading-relaxed text-muted-foreground`,children:e.text},e.id)}function Be(e){return(0,Q.jsx)(`code`,{className:`wrap-break-word font-mono opacity-80`,children:e},e)}function Ve(e,t){let n=e.cells[t];return n===void 0?!1:!$(n)}function He(e){let t=(0,J.c)(81),{part:n,cell:a,notes:o,draft:s,setPart:c}=e,{i18n:l,_:u}=i(),d;t[0]===a?d=t[1]:(d=$(a),t[0]=a,t[1]=d);let f=d,p;t[2]===u?p=t[3]:(p=u({id:`ggMMa7`}),t[2]=u,t[3]=p);let m;t[4]===u?m=t[5]:(m=u({id:`LtiJ5c`}),t[4]=u,t[5]=m);let h;t[6]===u?h=t[7]:(h=u({id:`2gXnCO`}),t[6]=u,t[7]=h);let g;t[8]===u?g=t[9]:(g=u({id:`ejiJeW`}),t[8]=u,t[9]=g);let _;t[10]!==p||t[11]!==m||t[12]!==h||t[13]!==g?(_={projectMcp:p,projectSkill:m,globalMcp:h,discoverySkill:g},t[10]=p,t[11]=m,t[12]=h,t[13]=g,t[14]=_):_=t[14];let v=_,y;if(t[15]!==u||t[16]!==a.agentId||t[17]!==a.disabledReason||t[18]!==a.exception||t[19]!==a.guidance||t[20]!==a.pathId||t[21]!==a.piece||t[22]!==a.resolvedPath||t[23]!==a.sharedFolderWith||t[24]!==a.state||t[25]!==f||t[26]!==s||t[27]!==l||t[28]!==o||t[29]!==n||t[30]!==c||t[31]!==v){y=Symbol.for(`react.early_return_sentinel`);bb0:{let e={foreign:u({id:`tCE-ZH`}),"structural-na":u({id:`3n7lnE`}),"not-installable":u({id:`BMoSQy`}),"agent-undetected":u({id:`mdWhUY`})},i=function(){let t=a.disabledReason;return t==null?u({id:`RXYvxn`}):e[t]},d;if(t[33]!==u||t[34]!==a.state){let e=ge();d=a.state===`foreign-replaceable`?u({id:`uOKoBM`,values:{server:e}}):null,t[33]=u,t[34]=a.state,t[35]=d}else d=t[35];let p=d,m;t[36]!==a.piece||t[37]!==a.sharedFolderWith||t[38]!==l?(m=a.piece===`skill`&&a.sharedFolderWith.length>0?K(a.sharedFolderWith.map(nt),l.locale):null,t[36]=a.piece,t[37]=a.sharedFolderWith,t[38]=l,t[39]=m):m=t[39];let h=m,g=a.exception,_=g===`warning`||g===`error`,b;t[40]!==a.pathId||t[41]!==a.sharedFolderWith?(b=me(a.pathId,a.sharedFolderWith),t[40]=a.pathId,t[41]=a.sharedFolderWith,t[42]=b):b=t[42];let x=b,S;t[43]===a.guidance?S=t[44]:(S=ve(a.guidance),t[43]=a.guidance,t[44]=S);let C=S,w=`${a.agentId}-${n}`,T=s[n],E;t[45]!==a.pathId||t[46]!==a.resolvedPath||t[47]!==f||t[48]!==_?(E=f&&!_?null:a.resolvedPath??Y(a.pathId),t[45]=a.pathId,t[46]=a.resolvedPath,t[47]=f,t[48]=_,t[49]=E):E=t[49];let D;t[50]!==f||t[51]!==_||t[52]!==x?(D=f&&!_?[]:x,t[50]=f,t[51]=_,t[52]=x,t[53]=D):D=t[53];let O=f?null:h,k;t[54]!==n||t[55]!==c?(k=e=>c(n,e),t[54]=n,t[55]=c,t[56]=k):k=t[56];let A;t[57]!==a.state||t[58]!==f||t[59]!==g||t[60]!==o||t[61]!==w||t[62]!==T||t[63]!==E||t[64]!==D||t[65]!==O||t[66]!==k?(A={id:w,checked:T,disabled:f,exception:g,state:a.state,notes:o,path:E,sharedPaths:D,alsoAffects:O,onCheckedChange:k},t[57]=a.state,t[58]=f,t[59]=g,t[60]=o,t[61]=w,t[62]=T,t[63]=E,t[64]=D,t[65]=O,t[66]=k,t[67]=A):A=t[67];let j=A;switch(n){case`projectMcp`:{let e;t[68]===C?e=t[69]:(e=C??(0,Q.jsx)(r,{id:`oxj8er`}),t[68]=C,t[69]=e),y=(0,Q.jsx)(Re,{...j,title:v[n],description:e,info:f?i():p??(0,Q.jsx)(r,{id:`EBP_hA`})});break bb0}case`projectSkill`:{let e;t[70]===C?e=t[71]:(e=C??(0,Q.jsx)(r,{id:`nta97o`}),t[70]=C,t[71]=e),y=(0,Q.jsx)(Re,{...j,title:v[n],description:e,info:f?i():(0,Q.jsx)(r,{id:`n11Jj7`})});break bb0}case`globalMcp`:{let e;t[72]===C?e=t[73]:(e=C??(0,Q.jsx)(r,{id:`itchkf`}),t[72]=C,t[73]=e),y=(0,Q.jsx)(Re,{...j,title:v[n],description:e,info:f?i():p??(0,Q.jsx)(r,{id:`wgj--j`})});break bb0}case`discoverySkill`:{let e=v[n],a;t[74]===C?a=t[75]:(a=C??(0,Q.jsx)(r,{id:`6ur2Mk`}),t[74]=C,t[75]=a);let o=f?i():(0,Q.jsx)(r,{id:`uVhq9B`}),s;t[76]!==j||t[77]!==e||t[78]!==a||t[79]!==o?(s=(0,Q.jsx)(Re,{...j,title:e,description:a,info:o}),t[76]=j,t[77]=e,t[78]=a,t[79]=o,t[80]=s):s=t[80],y=s;break bb0}}}t[15]=u,t[16]=a.agentId,t[17]=a.disabledReason,t[18]=a.exception,t[19]=a.guidance,t[20]=a.pathId,t[21]=a.piece,t[22]=a.resolvedPath,t[23]=a.sharedFolderWith,t[24]=a.state,t[25]=f,t[26]=s,t[27]=l,t[28]=o,t[29]=n,t[30]=c,t[31]=v,t[32]=y}else y=t[32];if(y!==Symbol.for(`react.early_return_sentinel`))return y}function Ue(e){return e.piece===`mcp`&&e.scope===`project`?(0,Q.jsx)(r,{id:`ggMMa7`}):e.piece===`skill`&&e.scope===`project`?(0,Q.jsx)(r,{id:`LtiJ5c`}):e.piece===`mcp`&&e.scope===`user`?(0,Q.jsx)(r,{id:`2gXnCO`}):e.piece===`skill`&&e.scope===`user`?(0,Q.jsx)(r,{id:`ejiJeW`}):null}function We(e,t,n,r){let i=e.report.conflicts.find(e=>e.kind===r);if(i===void 0)return null;let a=e=>xe.find(n=>t.cells[n]?.satisfierId===e),[o,s]=i.satisfierIds,c=o===void 0?void 0:a(o),l=s===void 0?void 0:a(s);return c===void 0||l===void 0?null:{dependent:n[l],prerequisite:n[c],blockedReason:i.blockedReason}}function Ge(e){let t=(0,J.c)(29),{result:n,connection:a}=e,{_:o}=i(),s;if(t[0]!==o||t[1]!==a||t[2]!==n){s=Symbol.for(`react.early_return_sentinel`);bb0:{let e={projectMcp:o({id:`ggMMa7`}),projectSkill:o({id:`LtiJ5c`}),globalMcp:o({id:`2gXnCO`}),discoverySkill:o({id:`ejiJeW`})},t=We(n,a,e,`prerequisite-unavailable`);if(t!==null){let{dependent:e,prerequisite:n}=t;s=(0,Q.jsx)(`p`,{role:`alert`,className:`text-sm text-destructive`,children:(()=>{switch(t.blockedReason){case`foreign`:return o({id:`XrPvMT`,values:{dependent:e,prerequisite:n}});case`structural-na`:return o({id:`XNdXMR`,values:{dependent:e,prerequisite:n}});case`not-installable`:return o({id:`GTvYzA`,values:{dependent:e,prerequisite:n}});case`agent-undetected`:return o({id:`7Ny8bV`,values:{dependent:e,prerequisite:n}});default:return o({id:`h2QPvj`,values:{dependent:e,prerequisite:n}})}})()});break bb0}let r=We(n,a,e,`prerequisite-removed`);if(r!==null){s=(0,Q.jsx)(`p`,{role:`alert`,className:`text-sm text-destructive`,children:o({id:`5CHuXn`,values:{0:r.dependent,1:r.prerequisite}})});break bb0}}t[0]=o,t[1]=a,t[2]=n,t[3]=s}else s=t[3];if(s!==Symbol.for(`react.early_return_sentinel`))return s;if(n.unavailable===!0){let e;t[4]!==o||t[5]!==n.devBuild?(e=n.devBuild===!0?o({id:`AUORpp`}):o({id:`RD8cCw`}),t[4]=o,t[5]=n.devBuild,t[6]=e):e=t[6];let r;return t[7]===e?r=t[8]:(r=(0,Q.jsx)(`p`,{role:`alert`,className:`text-sm text-destructive`,children:e}),t[7]=e,t[8]=r),r}let c;t[9]===o?c=t[10]:(c=e=>{switch(e.errorId){case`surface-missing`:return o({id:`3n7lnE`});case`foreign-artifact`:return o({id:`tCE-ZH`});case`no-writer`:case`not-installable`:return o({id:`BMoSQy`});case`dependency-failed`:return o({id:`1FXL-O`});case`write-declined`:return o({id:`_fZSIY`});case`write-failed`:case`executor-threw`:case`unrecognized-outcome`:return o({id:`dCforW`});default:return null}},t[9]=o,t[10]=c);let l=c,u=n.report.actions,d,f,p,m;if(t[11]!==l||t[12]!==n.error||t[13]!==n.report.actions){m=Symbol.for(`react.early_return_sentinel`);bb1:{let e;t[18]===l?e=t[19]:(e=e=>({key:e.satisfierId,title:Ue(e),managedInSkillsStudio:e.errorId===`no-writer`&&e.piece===`skill`&&e.scope===`user`,detail:l(e)}),t[18]=l,t[19]=e);let i=u.filter(Je).map(e).filter(qe);if(i.length===0){let e;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Q.jsx)(`p`,{children:(0,Q.jsx)(r,{id:`fWsBTs`})}),t[20]=e):e=t[20];let i;t[21]===n.error?i=t[22]:(i=n.error===void 0?null:(0,Q.jsx)(`code`,{className:`block wrap-break-word font-mono text-xs opacity-80`,children:n.error}),t[21]=n.error,t[22]=i);let a;t[23]===i?a=t[24]:(a=(0,Q.jsxs)(`div`,{role:`alert`,className:`space-y-1 text-sm text-destructive`,children:[e,i]}),t[23]=i,t[24]=a),m=a;break bb1}d=`alert`,f=`space-y-2 text-sm text-destructive`,p=i.map(Ke)}t[11]=l,t[12]=n.error,t[13]=n.report.actions,t[14]=d,t[15]=f,t[16]=p,t[17]=m}else d=t[14],f=t[15],p=t[16],m=t[17];if(m!==Symbol.for(`react.early_return_sentinel`))return m;let h;return t[25]!==d||t[26]!==f||t[27]!==p?(h=(0,Q.jsx)(`div`,{role:d,className:f,children:p}),t[25]=d,t[26]=f,t[27]=p,t[28]=h):h=t[28],h}function Ke(e){return(0,Q.jsxs)(`div`,{className:`space-y-1`,children:[e.title===null?null:(0,Q.jsx)(`p`,{className:`font-medium`,children:e.title}),(0,Q.jsx)(`p`,{children:e.managedInSkillsStudio?(0,Q.jsx)(r,{id:`5RiC8D`}):e.detail})]},e.key)}function qe(e){return e.managedInSkillsStudio||e.detail!==null}function Je(e){return e.errorId!==void 0}function Ye(){let e=(0,J.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:(0,Q.jsx)(r,{id:`s8difl`})}),e[0]=t):t=e[0],t}function Xe(e){let t=(0,J.c)(5),{label:n}=e,{_:r}=i(),a;t[0]!==r||t[1]!==n?(a=r({id:`74Mikl`,values:{label:n}}),t[0]=r,t[1]=n,t[2]=a):a=t[2];let o;return t[3]===a?o=t[4]:(o=(0,Q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:a}),t[3]=a,t[4]=o),o}function Ze(e){let t=(0,J.c)(5),{label:n}=e,{_:r}=i(),a;t[0]!==r||t[1]!==n?(a=r({id:`2lJAvH`,values:{label:n}}),t[0]=r,t[1]=n,t[2]=a):a=t[2];let o;return t[3]===a?o=t[4]:(o=(0,Q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:a}),t[3]=a,t[4]=o),o}function Qe(e){let t=(0,J.c)(141),{connection:n,open:a,onOpenChange:o,onSave:s,paired:c,onCloseAutoFocus:l,validateSave:u,alternateAction:d}=e,f=c===void 0?!1:c,{i18n:p,_:m}=i(),h=(0,q.useId)(),g;t[0]===n?g=t[1]:(g=()=>n===null?be:Me(n),t[0]=n,t[1]=g);let[_,v]=(0,q.useState)(g),[C,w]=(0,q.useState)(!1),[T,E]=(0,q.useState)(null),[D,O]=(0,q.useState)(null),[k,A]=(0,q.useState)(null),[j,M]=(0,q.useState)(null),N;t[2]!==n||t[3]!==_?(N=n!==null&&xe.some(e=>{let t=n.cells[e];return _[e]&&t!==void 0&&F(t.state)}),t[2]=n,t[3]=_,t[4]=N):N=t[4];let P=N,I;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(I=function(e,t){v(n=>({...n,[e]:t})),A(null),O(null),M(null)},t[5]=I):I=t[5];let L=I,R;t[6]!==n||t[7]!==_?(R=n!==null&&!_.projectSkill&&Ve(n,`projectSkill`),t[6]=n,t[7]=_,t[8]=R):R=t[8];let ee=R,z,B,V,H,fe,U,W,G,K,Y,me,he,ge,_e,X,ve,ye,Z;if(t[9]!==m||t[10]!==n||t[11]!==_||t[12]!==l||t[13]!==o||t[14]!==a||t[15]!==f||t[16]!==C||t[17]!==j||t[18]!==ee){let e=n===null?[]:Ce(n,`project`),i=n===null?[]:Ce(n,`machine`),s=n!==null&&e.length===0,c=n?.label,u=we(e),d=we(i),p;t[37]!==n?.cells||t[38]!==_?(p=xe.filter(e=>n?.cells[e]?.checked===!0&&!_[e]),t[37]=n?.cells,t[38]=_,t[39]=p):p=t[39],U=p.length;let h;t[40]!==n||t[41]!==_?(h=xe.filter(e=>n?.cells[e]!==void 0&&_[e]&&!n.cells[e]?.checked),t[40]=n,t[41]=_,t[42]=h):h=t[42],H=h.length;let g;t[43]!==m||t[44]!==H||t[45]!==U?(g=H>0&&U>0?m({id:`6tQC_t`,values:{addingCount:H,removingCount:U}}):H>0?S._({id:`xKcXG6`,values:{addingCount:H}}):U>0?S._({id:`0niWj3`,values:{removingCount:U}}):null,t[43]=m,t[44]=H,t[45]=U,t[46]=g):g=t[46];let v=g;W=U>0&&H===0;let y;t[47]!==_||t[48]!==W?(y=W&&xe.every(e=>!_[e]),t[47]=_,t[48]=W,t[49]=y):y=t[49];let b=y;Z=j!==null&&j.peerSatisfierIds.length>0;let x;t[50]!==m||t[51]!==H||t[52]!==n||t[53]!==b||t[54]!==U||t[55]!==j||t[56]!==v||t[57]!==Z?(x=n===null?null:j===null?b?m({id:`CCngW8`,values:{0:n.label}}):v:Z?m(H>0?{id:`0hAvVd`,values:{0:n.label,1:j.peers,addingCount:H,removingCount:U}}:{id:`yqr502`,values:{0:n.label,1:j.peers,removingCount:U}}):v,t[50]=m,t[51]=H,t[52]=n,t[53]=b,t[54]=U,t[55]=j,t[56]=v,t[57]=Z,t[58]=x):x=t[58],fe=x,V=ue,he=a,t[59]!==o||t[60]!==C?(ge=e=>!C&&o(e),t[59]=o,t[60]=C,t[61]=ge):ge=t[61],B=oe,G=`sm:max-w-lg`,K=!1,Y=l;let w;t[62]===n?w=t[63]:(w=n?(0,Q.jsx)(Oe,{agentId:n.id,className:`size-5 text-muted-foreground`}):null,t[62]=n,t[63]=w);let T=n?.label,E;t[64]!==w||t[65]!==T?(E=(0,Q.jsxs)(ae,{className:`flex items-center gap-2 text-lg`,children:[w,T]}),t[64]=w,t[65]=T,t[66]=E):E=t[66];let D;t[67]!==m||t[68]!==c||t[69]!==n||t[70]!==s?(D=m(n?s?{id:`bm1oV9`,values:{agentLabel:c}}:{id:`qr2gAH`,values:{0:n.label}}:{id:`CxnZP4`}),t[67]=m,t[68]=c,t[69]=n,t[70]=s,t[71]=D):D=t[71];let O;t[72]===D?O=t[73]:(O=(0,Q.jsx)(ie,{children:D}),t[72]=D,t[73]=O),t[74]!==E||t[75]!==O?(me=(0,Q.jsxs)(le,{className:`gap-2`,children:[E,O]}),t[74]=E,t[75]=O,t[76]=me):me=t[76],z=se,_e=`flex flex-col gap-6`,t[77]!==n||t[78]!==f?(X=f&&n?(0,Q.jsx)(Xe,{label:n.label}):null,t[77]=n,t[78]=f,t[79]=X):X=t[79],ve=e.length>0?(0,Q.jsxs)(de,{className:`gap-5`,children:[(0,Q.jsxs)(pe,{className:`flex items-center gap-2 font-mono data-[variant=legend]:text-xs uppercase tracking-wide text-muted-foreground`,children:[(0,Q.jsx)(te,{"aria-hidden":!0,className:`size-3.5`}),(0,Q.jsx)(r,{id:`ZWyHmq`}),(0,Q.jsx)(re,{variant:`secondary`,className:`font-mono text-[10px] uppercase`,children:(0,Q.jsx)(r,{id:`WEYdDv`})})]}),e.map(e=>{let[t,n]=e;return(0,Q.jsx)(He,{part:t,cell:n,notes:u.get(t)??[],draft:_,setPart:L},t)}),ee?(0,Q.jsx)(Ye,{}):null]}):null,ye=i.length>0?(0,Q.jsxs)(de,{className:`gap-5`,children:[(0,Q.jsxs)(pe,{className:`flex items-center gap-2 font-mono data-[variant=legend]:text-xs uppercase tracking-wide text-muted-foreground`,children:[(0,Q.jsx)(ne,{"aria-hidden":!0,className:`size-3.5`}),(0,Q.jsx)(r,{id:`ImTzPZ`})]}),i.map(e=>{let[t,n]=e;return(0,Q.jsx)(He,{part:t,cell:n,notes:d.get(t)??[],draft:_,setPart:L},t)})]}):null,t[9]=m,t[10]=n,t[11]=_,t[12]=l,t[13]=o,t[14]=a,t[15]=f,t[16]=C,t[17]=j,t[18]=ee,t[19]=z,t[20]=B,t[21]=V,t[22]=H,t[23]=fe,t[24]=U,t[25]=W,t[26]=G,t[27]=K,t[28]=Y,t[29]=me,t[30]=he,t[31]=ge,t[32]=_e,t[33]=X,t[34]=ve,t[35]=ye,t[36]=Z}else z=t[19],B=t[20],V=t[21],H=t[22],fe=t[23],U=t[24],W=t[25],G=t[26],K=t[27],Y=t[28],me=t[29],he=t[30],ge=t[31],_e=t[32],X=t[33],ve=t[34],ye=t[35],Z=t[36];let Se;t[80]!==n||t[81]!==T||t[82]!==D||t[83]!==j||t[84]!==k?(Se=j===null?k===null?D===null?T!==null&&n!==null?(0,Q.jsx)(Ge,{result:T,connection:n}):null:(0,Q.jsx)(`p`,{role:`status`,className:`text-sm text-muted-foreground`,children:D}):(0,Q.jsx)(`p`,{role:`alert`,className:`text-sm text-destructive`,children:k}):(0,Q.jsx)(it,{choice:j}),t[80]=n,t[81]=T,t[82]=D,t[83]=j,t[84]=k,t[85]=Se):Se=t[85];let $;t[86]!==z||t[87]!==Se||t[88]!==_e||t[89]!==X||t[90]!==ve||t[91]!==ye?($=(0,Q.jsxs)(z,{className:_e,children:[X,ve,ye,Se]}),t[86]=z,t[87]=Se,t[88]=_e,t[89]=X,t[90]=ve,t[91]=ye,t[92]=$):$=t[92];let Te;t[93]===fe?Te=t[94]:(Te=(0,Q.jsx)(`p`,{role:`status`,className:`me-auto text-xs text-muted-foreground`,"aria-live":`polite`,"aria-atomic":`true`,children:fe}),t[93]=fe,t[94]=Te);let Ee;t[95]===o?Ee=t[96]:(Ee=()=>o(!1),t[95]=o,t[96]=Ee);let De;t[97]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,Q.jsx)(r,{id:`dEgA5A`}),t[97]=De):De=t[97];let ke;t[98]!==C||t[99]!==Ee?(ke=(0,Q.jsx)(x,{variant:`outline`,className:`font-mono uppercase`,disabled:C,onClick:Ee,children:De}),t[98]=C,t[99]=Ee,t[100]=ke):ke=t[100];let Ae;t[101]!==d||t[102]!==h||t[103]!==C?(Ae=d===void 0?null:(0,Q.jsxs)(`div`,{className:`flex flex-col items-start gap-2 sm:items-end`,children:[d.preference===void 0?null:(0,Q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Q.jsx)(y,{id:h,checked:d.preference.checked,disabled:C,onCheckedChange:e=>d.preference?.onCheckedChange(e===!0)}),(0,Q.jsx)(b,{htmlFor:h,className:`cursor-pointer text-sm`,children:d.preference.label})]}),(0,Q.jsx)(x,{variant:`ghost`,className:`font-mono uppercase`,disabled:C,onClick:d.onClick,children:d.label})]}),t[101]=d,t[102]=h,t[103]=C,t[104]=Ae):Ae=t[104];let je=P||U>0?`destructive`:`default`,Ne=C||(j===null?H+U===0:!Z),Pe;t[105]!==n||t[106]!==_||t[107]!==p||t[108]!==o||t[109]!==s||t[110]!==j?.peerSatisfierIds||t[111]!==u?(Pe=()=>{let e=u?.(_)??null;if(e!==null){A(e);return}w(!0),A(null),E(null),O(null);let t=j?.peerSatisfierIds;M(null),s(_,t).then(e=>{if(`kind`in e){O(e.message);return}if(e.ok){o(!1);return}let t=n===null?null:rt(e,n,p.locale);t===null?E(e):M(t)}).catch(()=>E({ok:!1,report:{actions:[],conflicts:[],withheld:[]},snapshot:null})).finally(()=>w(!1))},t[105]=n,t[106]=_,t[107]=p,t[108]=o,t[109]=s,t[110]=j?.peerSatisfierIds,t[111]=u,t[112]=Pe):Pe=t[112];let Fe;t[113]!==P||t[114]!==W||t[115]!==C||t[116]!==Z?(Fe=C?(0,Q.jsx)(r,{id:`uF9ruK`}):Z?(0,Q.jsx)(r,{id:`dGcsnU`}):P?(0,Q.jsx)(r,{id:`inJhKB`}):W?(0,Q.jsx)(r,{id:`t_YqKh`}):(0,Q.jsx)(r,{id:`y3aU20`}),t[113]=P,t[114]=W,t[115]=C,t[116]=Z,t[117]=Fe):Fe=t[117];let Ie;t[118]!==je||t[119]!==Ne||t[120]!==Pe||t[121]!==Fe?(Ie=(0,Q.jsx)(x,{variant:je,className:`font-mono uppercase`,disabled:Ne,onClick:Pe,children:Fe}),t[118]=je,t[119]=Ne,t[120]=Pe,t[121]=Fe,t[122]=Ie):Ie=t[122];let Le;t[123]!==Te||t[124]!==ke||t[125]!==Ae||t[126]!==Ie?(Le=(0,Q.jsxs)(ce,{className:`items-center`,children:[Te,ke,Ae,Ie]}),t[123]=Te,t[124]=ke,t[125]=Ae,t[126]=Ie,t[127]=Le):Le=t[127];let Re;t[128]!==B||t[129]!==G||t[130]!==K||t[131]!==Y||t[132]!==me||t[133]!==$||t[134]!==Le?(Re=(0,Q.jsxs)(B,{className:G,showCloseButton:K,onCloseAutoFocus:Y,children:[me,$,Le]}),t[128]=B,t[129]=G,t[130]=K,t[131]=Y,t[132]=me,t[133]=$,t[134]=Le,t[135]=Re):Re=t[135];let ze;return t[136]!==V||t[137]!==he||t[138]!==ge||t[139]!==Re?(ze=(0,Q.jsx)(V,{open:he,onOpenChange:ge,children:Re}),t[136]=V,t[137]=he,t[138]=ge,t[139]=Re,t[140]=ze):ze=t[140],ze}function $e(e){switch(e){case`projectMcp`:return(0,Q.jsx)(r,{id:`ggMMa7`});case`projectSkill`:return(0,Q.jsx)(r,{id:`LtiJ5c`});case`globalMcp`:return(0,Q.jsx)(r,{id:`2gXnCO`});case`discoverySkill`:return(0,Q.jsx)(r,{id:`ejiJeW`})}}function et(e,t){return xe.flatMap(n=>{let r=e.cells[n];return r?.checked===!0?[{cell:r,part:n,label:$e(n),path:r.resolvedPath??Y(r.pathId),scope:r.scope===`project`?`project`:`machine`,alsoAffects:r.piece===`skill`&&r.sharedFolderWith.length>0?K(r.sharedFolderWith.map(nt),t):null}]:[]})}function tt(e){let t=(0,J.c)(12),{scope:n,rows:a}=e,{_:o}=i();if(a.length===0)return null;let s;t[0]===n?s=t[1]:(s=(0,Q.jsxs)(`div`,{className:`flex items-center gap-2 border-b bg-muted/60 px-3 py-2 font-mono text-xs uppercase tracking-wide text-muted-foreground`,children:[n===`project`?(0,Q.jsx)(te,{"aria-hidden":!0,className:`size-3.5`}):(0,Q.jsx)(ne,{"aria-hidden":!0,className:`size-3.5`}),n===`project`?(0,Q.jsx)(r,{id:`ZWyHmq`}):(0,Q.jsx)(r,{id:`ImTzPZ`})]}),t[0]=n,t[1]=s);let c;if(t[2]!==o||t[3]!==a){let e;t[5]===o?e=t[6]:(e=e=>{let t=e.alsoAffects;return(0,Q.jsxs)(`li`,{className:`flex items-start gap-3 px-3 py-3`,children:[(0,Q.jsx)(H,{"aria-hidden":!0,className:`mt-0.5 size-4 shrink-0 text-destructive`}),(0,Q.jsxs)(`div`,{className:`min-w-0`,children:[(0,Q.jsx)(`p`,{className:`text-sm font-medium`,children:e.label}),e.path===null?null:(0,Q.jsx)(`code`,{className:`block truncate text-xs text-muted-foreground`,children:e.path}),t===null?null:(0,Q.jsx)(`p`,{className:`text-xs text-amber-700 dark:text-amber-400`,children:o({id:`qze9od`,values:{alsoAffects:t}})})]})]},e.cell.satisfierId)},t[5]=o,t[6]=e),c=a.map(e),t[2]=o,t[3]=a,t[4]=c}else c=t[4];let l;t[7]===c?l=t[8]:(l=(0,Q.jsx)(`ul`,{className:`divide-y divide-border`,children:c}),t[7]=c,t[8]=l);let u;return t[9]!==s||t[10]!==l?(u=(0,Q.jsxs)(`div`,{children:[s,l]}),t[9]=s,t[10]=l,t[11]=u):u=t[11],u}function nt(e){return D[e]??e}function rt(e,t,n){let r=e.report.conflicts.filter(e=>e.kind===`unresolved-shared-copy`),i=new Set(Object.values(t.cells).map(e=>e.satisfierId)),a=[...new Set(r.flatMap(e=>e.satisfierIds))].filter(e=>!i.has(e)),o=[...new Set(r.flatMap(e=>e.agentIds))].filter(e=>e!==t.id);if(a.length===0&&o.length===0)return null;let s=[...new Set(r.map(e=>Y(e.pathId)).filter(e=>e!==null))];return{peers:K(o.map(nt),n),path:s.length===1?s[0]:null,peerSatisfierIds:a}}function it(e){let t=(0,J.c)(5),{choice:n}=e,{peers:i,path:a}=n;if(n.peerSatisfierIds.length===0){let e;return t[0]===i?e=t[1]:(e=(0,Q.jsx)(`div`,{role:`status`,className:`rounded-md border bg-muted/50 p-3 text-sm`,children:(0,Q.jsx)(r,{id:`H8tj8y`,values:{peers:i}})}),t[0]=i,t[1]=e),e}let o;return t[2]!==a||t[3]!==i?(o=(0,Q.jsx)(`div`,{role:`status`,className:`rounded-md border bg-muted/50 p-3 text-sm`,children:a===null?(0,Q.jsx)(r,{id:`4C2RCg`,values:{peers:i}}):(0,Q.jsx)(r,{id:`fybwfg`,values:{peers:i,path:a},components:{0:(0,Q.jsx)(`code`,{className:`font-mono`})}})}),t[2]=a,t[3]=i,t[4]=o):o=t[4],o}function at(e){let t=(0,J.c)(96),{connection:n,open:a,onOpenChange:o,onRemove:s,paired:c}=e,l=c===void 0?!1:c,{i18n:y,_:b}=i(),x=(0,q.useRef)(null),S=(0,q.useRef)(null),C,w;t[0]===a?(C=t[1],w=t[2]):(C=()=>{if(!a)return;let e=document.activeElement;x.current=e,S.current=e?.closest(`section`)??null},w=[a],t[0]=a,t[1]=C,t[2]=w),(0,q.useEffect)(C,w);let[T,E]=(0,q.useState)(!1),[D,O]=(0,q.useState)(null),[k,A]=(0,q.useState)(null),j,M,N,P,F,I,L,R,ee,te,z,ne,B,V,H,re;if(t[3]!==b||t[4]!==n||t[5]!==y||t[6]!==o||t[7]!==s||t[8]!==a||t[9]!==T){F=n?et(n,y.locale):[];let e;t[26]!==n||t[27]!==y||t[28]!==o||t[29]!==s?(e=function(e){n!==null&&(E(!0),O(null),A(null),s(e).then(e=>{if(e.ok){o(!1);return}let t=rt(e,n,y.locale);t===null?O(e):A(t)}).catch(e=>O({ok:!1,report:{actions:[],conflicts:[],withheld:[]},snapshot:null,error:e instanceof Error?e.message:String(e)})).finally(()=>E(!1)))},t[26]=n,t[27]=y,t[28]=o,t[29]=s,t[30]=e):e=t[30],I=e,P=v,ee=a,t[31]!==o||t[32]!==T?(te=e=>!T&&o(e),t[31]=o,t[32]=T,t[33]=te):te=t[33],N=u,re=`sm:max-w-lg`,t[34]===Symbol.for(`react.memo_cache_sentinel`)?(L=e=>{let t=x.current,n=t?.isConnected?t:Z(S.current);n?.isConnected&&(e.preventDefault(),n.focus())},t[34]=L):L=t[34];let i;t[35]===n?i=t[36]:(i=n?(0,Q.jsx)(Oe,{agentId:n.id,className:`size-5 text-muted-foreground`}):null,t[35]=n,t[36]=i);let c;t[37]!==b||t[38]!==n?(c=b(n?{id:`ApNWRQ`,values:{0:n.label}}:{id:`Y1wa2r`}),t[37]=b,t[38]=n,t[39]=c):c=t[39];let l;t[40]!==i||t[41]!==c?(l=(0,Q.jsxs)(p,{className:`flex items-center gap-2 text-lg`,children:[i,c]}),t[40]=i,t[41]=c,t[42]=l):l=t[42];let f;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Q.jsx)(h,{children:(0,Q.jsx)(r,{id:`da7Yfw`})}),t[43]=f):f=t[43],t[44]===l?R=t[45]:(R=(0,Q.jsxs)(d,{className:`gap-2`,children:[l,f]}),t[44]=l,t[45]=R),M=g,H=`flex flex-col gap-4`,B=`overflow-hidden rounded-lg border`,V=(0,Q.jsx)(tt,{scope:`project`,rows:F.filter(st)}),j=tt,z=`machine`,ne=F.filter(ot),t[3]=b,t[4]=n,t[5]=y,t[6]=o,t[7]=s,t[8]=a,t[9]=T,t[10]=j,t[11]=M,t[12]=N,t[13]=P,t[14]=F,t[15]=I,t[16]=L,t[17]=R,t[18]=ee,t[19]=te,t[20]=z,t[21]=ne,t[22]=B,t[23]=V,t[24]=H,t[25]=re}else j=t[10],M=t[11],N=t[12],P=t[13],F=t[14],I=t[15],L=t[16],R=t[17],ee=t[18],te=t[19],z=t[20],ne=t[21],B=t[22],V=t[23],H=t[24],re=t[25];let ie;t[46]!==j||t[47]!==z||t[48]!==ne?(ie=(0,Q.jsx)(j,{scope:z,rows:ne}),t[46]=j,t[47]=z,t[48]=ne,t[49]=ie):ie=t[49];let ae;t[50]!==ie||t[51]!==B||t[52]!==V?(ae=(0,Q.jsxs)(`div`,{className:B,children:[V,ie]}),t[50]=ie,t[51]=B,t[52]=V,t[53]=ae):ae=t[53];let oe;t[54]!==n||t[55]!==l?(oe=l&&n?(0,Q.jsx)(Ze,{label:n.label}):null,t[54]=n,t[55]=l,t[56]=oe):oe=t[56];let se;t[57]===Symbol.for(`react.memo_cache_sentinel`)?(se=(0,Q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:(0,Q.jsx)(r,{id:`Evsh6U`})}),t[57]=se):se=t[57];let ce;t[58]!==n||t[59]!==D||t[60]!==k?(ce=k===null?D!==null&&n!==null?(0,Q.jsx)(Ge,{result:D,connection:n}):null:(0,Q.jsx)(it,{choice:k}),t[58]=n,t[59]=D,t[60]=k,t[61]=ce):ce=t[61];let le;t[62]!==M||t[63]!==ae||t[64]!==oe||t[65]!==ce||t[66]!==H?(le=(0,Q.jsxs)(M,{className:H,children:[ae,oe,se,ce]}),t[62]=M,t[63]=ae,t[64]=oe,t[65]=ce,t[66]=H,t[67]=le):le=t[67];let ue;t[68]===Symbol.for(`react.memo_cache_sentinel`)?(ue=(0,Q.jsx)(r,{id:`dEgA5A`}),t[68]=ue):ue=t[68];let de;t[69]===T?de=t[70]:(de=(0,Q.jsx)(f,{disabled:T,children:ue}),t[69]=T,t[70]=de);let fe=T||F.length===0||k!==null&&k.peerSatisfierIds.length===0,U;t[71]!==k?.peerSatisfierIds||t[72]!==I?(U=e=>{e.preventDefault(),I(k?.peerSatisfierIds)},t[71]=k?.peerSatisfierIds,t[72]=I,t[73]=U):U=t[73];let pe;t[74]!==T||t[75]!==k?(pe=T?(0,Q.jsx)(r,{id:`uF9ruK`}):k!==null&&k.peerSatisfierIds.length>0?(0,Q.jsx)(r,{id:`dGcsnU`}):(0,Q.jsx)(r,{id:`t_YqKh`}),t[74]=T,t[75]=k,t[76]=pe):pe=t[76];let W;t[77]!==fe||t[78]!==U||t[79]!==pe?(W=(0,Q.jsx)(m,{variant:`destructive`,className:`font-mono uppercase`,disabled:fe,onClick:U,children:pe}),t[77]=fe,t[78]=U,t[79]=pe,t[80]=W):W=t[80];let G;t[81]!==de||t[82]!==W?(G=(0,Q.jsxs)(_,{children:[de,W]}),t[81]=de,t[82]=W,t[83]=G):G=t[83];let K;t[84]!==N||t[85]!==L||t[86]!==R||t[87]!==le||t[88]!==G||t[89]!==re?(K=(0,Q.jsxs)(N,{className:re,onCloseAutoFocus:L,children:[R,le,G]}),t[84]=N,t[85]=L,t[86]=R,t[87]=le,t[88]=G,t[89]=re,t[90]=K):K=t[90];let Y;return t[91]!==P||t[92]!==ee||t[93]!==te||t[94]!==K?(Y=(0,Q.jsx)(P,{open:ee,onOpenChange:te,children:K}),t[91]=P,t[92]=ee,t[93]=te,t[94]=K,t[95]=Y):Y=t[95],Y}function ot(e){return e.scope===`machine`}function st(e){return e.scope===`project`}function ct(e,t,n=[]){let r=je(e);return[...n.map(e=>({satisfierId:e,desired:`absent`})),...xe.flatMap(n=>{let i=e.cells[n];return i===void 0||t[n]===r[n]?[]:[{satisfierId:i.satisfierId,desired:t[n]?`present`:`absent`}]})]}function lt(e,t=[]){let n=je(e),r=Object.fromEntries(xe.map(t=>[t,e.cells[t]?!1:n[t]])),i=t.map(e=>({satisfierId:e,desired:`absent`}));return[...ct(e,r),...i]}function ut(e){if(e.status===`nothing-required`)return`met`;let t=!1;for(let n of e.options){if(n.confidence===`unverified`){t=!0;continue}if(n.counts)return`met`}return t?`unprobed`:`unmet`}function dt(e,t,n){return n===!1?`absent`:n===!0?`present`:t===null||!t.detection.probed?`unknown`:L(t.detection,e)?`present`:`absent`}function ft(e){let{agentId:t,mode:n,snapshot:r,detected:i}=e;if(dt(t,r,i)===`absent`)return`not-installed`;if(r===null)return`no-status`;let a=R({agentId:t,mode:n,probes:r.probes}).requirements.filter(e=>e.level===`required`);if(a.length===0)return`no-status`;let o=a.map(ut);return o.includes(`unprobed`)?`no-status`:o.includes(`unmet`)?`not-connected`:`connected`}function pt(e){return e===`enable-manually`?`external`:`terminal`}function mt(e){let{agentId:t,mode:n,snapshot:r,projectMcp:i}=e;if(r===null||i?.followup===void 0||ft(e)!==`connected`)return;let a=R({agentId:t,mode:n,probes:r.probes}).requirements.find(e=>e.level===`required`&&e.piece===`mcp`);if(a===void 0||a.status!==`met`)return;let o=a.options.filter(e=>e.counts);if(!(o.length!==1||o[0]?.id!==i.satisfierId))return i.followup}var ht={actions:[],conflicts:[],withheld:[]};function gt(e){return{ok:!1,report:ht,snapshot:null,error:e}}function _t(e){return e.conflicts.length===0&&e.actions.every(e=>e.errorId===void 0)}async function vt(e,t){let n=globalThis.window?.okDesktop;if(n!==void 0)try{let t=await n.agentIntegrations.apply({intents:e});return t.ok?{ok:!0,report:t.report,snapshot:t.snapshot}:{ok:!1,report:t.report,snapshot:t.snapshot,error:t.error,...t.unavailable===!0?{unavailable:!0}:{},...t.devBuild===!0?{devBuild:!0}:{}}}catch(e){return{ok:!1,report:ht,snapshot:null,error:e instanceof Error?e.message:String(e)}}let r;try{r=await fetch(`/api/agent-integrations/apply`,{method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},body:JSON.stringify({intents:e}),signal:t?.webSignal})}catch(e){return gt(e instanceof Error?e.message:String(e))}if(!r.ok)return gt(`HTTP ${r.status} ${r.statusText}`.trimEnd());let i;try{i=await r.json()}catch(e){return gt(e instanceof Error?e.message:String(e))}let a=w.safeParse(i);if(!a.success){let e=a.error.issues.map(e=>e.path.join(`.`));return console.warn(`[agent-connections] response schema drift`,{issues:e}),gt(`Unexpected response shape at ${e.join(`, `)}`)}let o={actions:a.data.actions,conflicts:a.data.conflicts,withheld:a.data.withheld};return{ok:_t(o),report:o,snapshot:a.data.snapshot}}var yt=new Set;function bt(e){return yt.add(e),()=>{yt.delete(e)}}async function xt(e,t){let n=await vt(e,t);if(e.length>0){let e=[...yt];for(let t of e)try{t(n)}catch(e){console.warn(`[agent-connections] change listener failed:`,e)}}return n}export{je as _,pt as a,Oe as c,De as d,ke as f,ct as g,Ne as h,mt as i,at as l,Ae as m,bt as n,dt as o,Pe as p,ft as r,Qe as s,xt as t,Fe as u,lt as v,Z as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t,f as n,g as r,i,m as a,p as o,s,t as c,u as l,v as u,y as ee}from"./schemas-B93JY9Ef.js";import{Ft as d,It as te,Lt as ne,Mt as re,Nt as ie,Pt as ae,Rt as f,jt as oe}from"./schemas-api-CA_2n9vX.js";import{i as p,t as m}from"./constants-editors-CUF3jjbc.js";import{x as se}from"./handoff-DzPPe6fp.js";var h=[...m,`gemini`],g=c(h);function _(e){return h.includes(e)}var ce=c([`acp`,`terminal`,`external`]),le=c([...se,`gemini`]),ue=c([`claude-cowork`,`claude-code`,`codex`,`cursor`,`copilot`,`opencode`,`pi`,`antigravity`,`openclaw`,`hermes`]),v=c([`mcp`,`skill`]),de=[`project`,`user`,`session`],fe=c(de),y=u().regex(/^[a-z0-9-]+\/[a-z0-9-]+\/[a-z0-9-]+\/[a-z0-9-]+$/).transform(e=>e),pe=u().min(1).transform(e=>e),me=u().min(1).transform(e=>e);function b(e){return`${e.agent}/${e.piece}/${e.scope}/${e.kind}`}function he(e){return e}function ge(e){return e}var _e=[`editor-user-config`,`editor-project-config`,`editor-project-skill-root`,`editor-user-skill-root`],ve=he(`central-skill-store`);function x(e,t){return he(`${e}:${t}`)}function ye(e){if(e===ve)return{kind:`central-skill-store`};let t=e.indexOf(`:`);if(t===-1)return null;let n=e.slice(0,t),r=e.slice(t+1);return!_e.includes(n)||!m.includes(r)?null:{kind:n,editor:r}}var be=c(m),S=o({kind:c([`source-read`,`measured`,`vendor-doc`,`upstream-issue`,`observation`]),ref:u().min(1),note:u().optional()}),C=o({version:u().min(1).optional(),observedAt:u().min(1)}),xe=s(`confidence`,[o({confidence:l(`verified`),evidence:i(S).min(1),verifiedAgainst:C.optional()}),o({confidence:l(`assumed`),evidence:i(S).min(1),verifiedAgainst:C.optional()}),o({confidence:l(`contested`),evidence:i(S).min(1),verifiedAgainst:C})]),w=o({id:me,params:r(u(),ee([u(),n(),t()])).optional()}),Se=s(`mode`,[o({mode:l(`probeable`),strictness:i(d).min(1)}),o({mode:l(`unprobeable`),reason:c([`no-readable-state`,`different-machine`,`no-programmatic-path`,`session-scoped`]),note:u().optional()})]),Ce=c([`this-project`,`this-user`,`this-machine`]),we=c([`installable`,`user-completes`,`not-installable`]),Te=o({id:y,agent:g,piece:v,scope:fe,kind:ne,pathId:pe.optional(),sharedWith:i(g).default([]),prerequisites:i(y).default([]),consentClass:re.default(`none`),probe:Se,attestation:xe,audience:Ce,installability:we.default(`installable`),notInstallableReason:c([`no-non-interactive-verb`,`session-scoped`,`no-surface`]).optional(),preferred:t().default(!1),guidance:w.optional(),followup:w.optional(),troubleshooting:i(w).default([])}),Ee=o({piece:v,level:te,satisfiedByAny:i(y)}),De=o({acpAgentId:u().min(1),featuredOrder:n().int().nonnegative().nullable(),harnessCli:le.nullable(),harnessReadsEditorConfig:be.nullable(),harnessReadsEditorConfigAttestation:xe,verifiedPosture:c([`asks`,`self-managed`,`autonomous`]).nullable()}),Oe=o({cliId:u().min(1)}),T=[`darwin`,`win32`,`linux`],ke=c(T),Ae=o({targetId:ue,knownOrder:n().int().nonnegative(),visible:t(),displayName:u().min(1),appBrandName:u().min(1).optional(),schemes:i(u().min(1)),installUrl:u().min(1),platforms:i(ke).min(1),tagline:u().min(1).optional()}),je=o({requirements:i(Ee),caveats:i(w).default([])});o({id:g,setupDocSlug:u().min(1).nullable(),offerOnlyWhenDetected:t().default(!1),offersConnectionRow:t().default(!1),detectionSources:i(u().min(1)).default([]),satisfiers:i(Te),modes:a(ce,je),acp:De.optional(),terminal:Oe.optional(),external:Ae.optional()}),o({id:u().min(1),requiredStrictness:d,scope:fe.optional(),piece:v,revokedByForeignEntry:t().default(!1),guidance:w.optional()});var Me=e=>e===void 0?[]:Array.isArray(e)?[...e]:[e];function E(e){let{sharedWith:t,prerequisites:n,consentClass:r,installability:i,preferred:a,troubleshooting:o,...s}=e;return{...s,troubleshooting:Me(o),id:b({agent:e.agent,piece:e.piece,scope:e.scope,kind:e.kind}),sharedWith:t??[],prerequisites:n??[],consentClass:r??`none`,installability:i??`installable`,preferred:a??!1}}function D(e){let{offerOnlyWhenDetected:t,offersConnectionRow:n,detectionSources:r,modes:i,...a}=e,o={};for(let[e,t]of Object.entries(i))o[e]={requirements:t.requirements,caveats:t.caveats??[]};return{...a,offerOnlyWhenDetected:t??!1,offersConnectionRow:n??!1,detectionSources:r??[],modes:o}}var O=(e,t,n,r)=>b({agent:e,piece:t,scope:n,kind:r}),k=e=>({piece:`mcp`,level:`required`,satisfiedByAny:e}),A=e=>({piece:`skill`,level:`recommended`,satisfiedByAny:e}),j=(...e)=>({mode:`probeable`,strictness:e}),Ne=(e,t)=>({mode:`unprobeable`,reason:e,...t===void 0?{}:{note:t}}),M=(e,t)=>({id:ge(e),...t===void 0?{}:{params:t}}),Pe=(e,t)=>{let n=ae.find(t=>t===e);return n===void 0?void 0:M(`followup.${n}`,{agent:t})},N=(e,t)=>({kind:`source-read`,ref:e,...t===void 0?{}:{note:t}}),P=(e,t)=>t===void 0?{confidence:`verified`,evidence:e}:{confidence:`verified`,evidence:e,verifiedAgainst:t},Fe=(e,t)=>({confidence:`contested`,evidence:e,verifiedAgainst:t});function F(e){return{acpAgentId:e.acpAgentId,featuredOrder:e.featuredOrder,harnessCli:e.harnessCli,harnessReadsEditorConfig:e.readsEditorConfig,harnessReadsEditorConfigAttestation:e.readsEditorConfigAttestation,verifiedPosture:e.verifiedPosture}}function I(e){let{appBrandName:t,tagline:n,platforms:r=T,...i}=e;return{...i,platforms:[...r],...t===void 0?{}:{appBrandName:t},...n===void 0?{}:{tagline:n}}}var L=(e,t)=>({kind:`observation`,ref:e,note:t}),R={observedAt:`2026-07-02`},z={cliEditors:`packages/cli/src/commands/editors.ts`,coreEditors:`packages/core/src/constants/editors.ts`,acpRegistry:`packages/server/src/acp/registry.ts`,threadManager:`packages/server/src/acp/thread-manager.ts`,writeProjectSkill:`packages/cli/src/integrations/write-project-skill.ts`,repairSkills:`packages/cli/src/commands/repair-skills.ts`,skillInstall:`packages/server/src/skill-install.ts`,presenceProbes:`packages/desktop/src/main/integrations-settings.ts`};function B(e){return E({agent:e.agent,piece:`mcp`,scope:`user`,kind:`config-entry`,pathId:x(`editor-user-config`,e.agent),probe:j(...e.strictness),attestation:e.attestation,audience:`this-user`,installability:e.installability,notInstallableReason:e.notInstallableReason,guidance:M(`guidance.mcp.user-config`,{agent:e.agent}),troubleshooting:e.troubleshooting})}function V(e){return E({agent:e.agent,piece:`mcp`,scope:`project`,kind:`config-entry`,pathId:x(`editor-project-config`,e.fileOwner??e.agent),sharedWith:e.sharedWith,consentClass:e.consentClass,probe:j(...e.strictness),attestation:e.attestation,audience:`this-project`,guidance:M(`guidance.mcp.project-config`,{agent:e.agent}),followup:Pe(e.consentClass,e.agent),troubleshooting:e.troubleshooting})}function H(e){return E({agent:e.agent,piece:`skill`,scope:`project`,kind:`skill-bundle-copy`,pathId:x(`editor-project-skill-root`,e.agent),prerequisites:e.prerequisites,probe:j(`reclaim-permissive`),attestation:e.attestation,audience:`this-project`,guidance:M(`guidance.skill.project`,{agent:e.agent}),troubleshooting:e.troubleshooting})}function U(e){return E({agent:e.agent,piece:`skill`,scope:`user`,kind:`skill-bundle-copy`,pathId:x(`editor-user-skill-root`,e.agent),probe:j(`reclaim-permissive`),attestation:e.attestation,audience:`this-user`,guidance:M(`guidance.skill.user`,{agent:e.agent})})}function W(e){return E({agent:e,piece:`mcp`,scope:`session`,kind:`session-injection`,probe:Ne(`session-scoped`),attestation:P([N(z.threadManager,`the session MCP config the thread manager builds per thread`)]),audience:`this-project`,installability:`not-installable`,notInstallableReason:`session-scoped`,guidance:M(`guidance.mcp.session-injection`,{agent:e})})}var G={claude:D({id:`claude`,setupDocSlug:p.claude,offersConnectionRow:!0,detectionSources:[`cli-on-path:claude`,`scheme-handler:claude-code`],satisfiers:[B({agent:`claude`,strictness:[`reclaim-permissive`,`pre-approval-exact`,`injection-functional`],attestation:P([N(z.cliEditors,`user-global MCP config target`)])}),V({agent:`claude`,sharedWith:[`copilot`],consentClass:`approve-once`,strictness:[`reclaim-permissive`,`pre-approval-exact`,`injection-functional`],attestation:P([N(z.cliEditors),N(z.coreEditors)]),troubleshooting:M(`troubleshooting.claude.project-entry-not-approved`,{agent:`claude`})}),H({agent:`claude`,prerequisites:[O(`claude`,`mcp`,`project`,`config-entry`)],attestation:P([N(z.coreEditors),N(z.repairSkills)])}),U({agent:`claude`,attestation:P([N(z.coreEditors),N(z.skillInstall)])}),W(`claude`)],modes:{external:{requirements:[k([O(`claude`,`mcp`,`user`,`config-entry`),O(`claude`,`mcp`,`project`,`config-entry`)]),A([O(`claude`,`skill`,`project`,`skill-bundle-copy`),O(`claude`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[k([O(`claude`,`mcp`,`user`,`config-entry`),O(`claude`,`mcp`,`project`,`config-entry`)]),A([O(`claude`,`skill`,`project`,`skill-bundle-copy`),O(`claude`,`skill`,`user`,`skill-bundle-copy`)])]},acp:{requirements:[k([O(`claude`,`mcp`,`session`,`session-injection`),O(`claude`,`mcp`,`user`,`config-entry`),O(`claude`,`mcp`,`project`,`config-entry`)]),A([O(`claude`,`skill`,`project`,`skill-bundle-copy`),O(`claude`,`skill`,`user`,`skill-bundle-copy`)])]}},acp:F({acpAgentId:`claude-acp`,featuredOrder:0,harnessCli:`claude`,readsEditorConfig:`claude`,readsEditorConfigAttestation:P([N(z.threadManager,`the injection-skip probe reads the managed entry for this editor`),L(`claude-acp adapter`,`The adapter runs Claude Code, which loads the MCP entry OK writes for the Claude editor on its own, so injecting a same-name duplicate would be redundant.`)],R),verifiedPosture:`asks`}),external:I({targetId:`claude-code`,knownOrder:1,visible:!0,displayName:`Claude`,appBrandName:`Claude Desktop`,schemes:[`claude:`],installUrl:`https://claude.com/download`,tagline:`Agentic coding in Claude Desktop's Code tab.`})}),"claude-desktop":D({id:`claude-desktop`,setupDocSlug:p[`claude-desktop`],offersConnectionRow:!1,detectionSources:[`scheme-handler:claude-code`],satisfiers:[B({agent:`claude-desktop`,strictness:[`reclaim-permissive`],attestation:P([N(z.cliEditors,`user-global config target; its path resolution throws on Linux`)]),troubleshooting:M(`troubleshooting.claude-desktop.per-tool-approval`,{agent:`claude-desktop`})})],modes:{external:{requirements:[k([O(`claude-desktop`,`mcp`,`user`,`config-entry`)]),A([])]}},external:I({targetId:`claude-cowork`,knownOrder:0,visible:!1,displayName:`Claude Cowork`,appBrandName:`Claude Desktop`,schemes:[`claude:`],installUrl:`https://claude.com/download`,tagline:`Conversational pairing in Claude Desktop's Cowork tab.`})}),cursor:D({id:`cursor`,setupDocSlug:p.cursor,offersConnectionRow:!0,detectionSources:[`cli-on-path:cursor`,`scheme-handler:cursor`],satisfiers:[B({agent:`cursor`,strictness:[`reclaim-permissive`],attestation:P([N(z.cliEditors)])}),V({agent:`cursor`,consentClass:`enable-manually`,strictness:[`reclaim-permissive`],attestation:P([N(z.cliEditors),N(z.coreEditors),{kind:`observation`,ref:`cursor-3.19.19-project-server-default-off`,note:`project .cursor/mcp.json server listed Disabled under Customize → MCPs with no prompt; enabled via the per-source toggle in its Configure dialog; with a same-named user-level entry present, the user entry connected and the disabled project entry did not shadow it`}],{version:`3.19.19`,observedAt:`2026-09-09`}),troubleshooting:M(`troubleshooting.cursor.project-entry-not-loaded`,{agent:`cursor`})}),H({agent:`cursor`,prerequisites:[O(`cursor`,`mcp`,`project`,`config-entry`)],attestation:P([N(z.coreEditors),N(z.repairSkills)])}),U({agent:`cursor`,attestation:P([N(z.coreEditors),N(z.skillInstall)])}),W(`cursor`)],modes:{external:{requirements:[k([O(`cursor`,`mcp`,`user`,`config-entry`),O(`cursor`,`mcp`,`project`,`config-entry`)]),A([O(`cursor`,`skill`,`project`,`skill-bundle-copy`),O(`cursor`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[k([O(`cursor`,`mcp`,`user`,`config-entry`),O(`cursor`,`mcp`,`project`,`config-entry`)]),A([O(`cursor`,`skill`,`project`,`skill-bundle-copy`),O(`cursor`,`skill`,`user`,`skill-bundle-copy`)])]},acp:{requirements:[k([O(`cursor`,`mcp`,`session`,`session-injection`)]),A([O(`cursor`,`skill`,`project`,`skill-bundle-copy`),O(`cursor`,`skill`,`user`,`skill-bundle-copy`)])]}},acp:F({acpAgentId:`cursor`,featuredOrder:3,harnessCli:`cursor`,readsEditorConfig:null,readsEditorConfigAttestation:P([L(`cursor-agent mcp list`,`Reports a config-declared entry that has not been approved as "not loaded (needs approval)", so a present entry says nothing about whether the agent will have the tools.`),N(z.threadManager,`the one agent the skip probe never stands down for`)],{observedAt:`2026-08-20`}),verifiedPosture:`self-managed`}),external:I({targetId:`cursor`,knownOrder:3,visible:!0,displayName:`Cursor`,schemes:[`cursor:`],installUrl:`https://cursor.com/`,tagline:`AI-first VS Code fork with multi-file edits.`})}),codex:D({id:`codex`,setupDocSlug:p.codex,offersConnectionRow:!0,detectionSources:[`cli-on-path:codex`,`scheme-handler:codex`],satisfiers:[B({agent:`codex`,strictness:[`reclaim-permissive`,`injection-functional`],attestation:P([N(z.cliEditors,`TOML user-global config target`)])}),V({agent:`codex`,consentClass:`trust-gated`,strictness:[`reclaim-permissive`,`injection-functional`],attestation:Fe([N(z.cliEditors,`project config path added by analogy with the other editors`),{kind:`upstream-issue`,ref:`openai/codex#13025`,note:`open, reproduced on builds newer than the one OK checked`},{kind:`upstream-issue`,ref:`openai/codex#36960`,note:`requires an explicit trust decision in rust-v0.147.0, reverting #36935's automatic trust from the same release; builds from 0.113 asked but did not reliably persist the answer (#14547); codex exec never asks`},{kind:`vendor-doc`,ref:`OpenAI Codex: Advanced configuration`,note:`project-scoped config loads only for a trusted project`},{kind:`observation`,ref:`codex-desktop-project-config-load`,note:`single non-repro on 26.623.81905; the CLI honors it only for a trusted project`}],{version:`26.707.72221`,observedAt:`2026-07-15`}),troubleshooting:[M(`troubleshooting.codex.desktop-project-config`,{agent:`codex`,honoredByDesktop:!1}),M(`troubleshooting.codex.folder-trust`,{agent:`codex`})]}),H({agent:`codex`,prerequisites:[O(`codex`,`mcp`,`project`,`config-entry`)],attestation:P([N(z.coreEditors),N(z.repairSkills)]),troubleshooting:M(`troubleshooting.codex.folder-trust`,{agent:`codex`})}),U({agent:`codex`,attestation:P([N(z.coreEditors),N(z.skillInstall)])}),W(`codex`)],modes:{external:{requirements:[k([O(`codex`,`mcp`,`user`,`config-entry`),O(`codex`,`mcp`,`project`,`config-entry`)]),A([O(`codex`,`skill`,`project`,`skill-bundle-copy`),O(`codex`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[k([O(`codex`,`mcp`,`user`,`config-entry`),O(`codex`,`mcp`,`project`,`config-entry`)]),A([O(`codex`,`skill`,`project`,`skill-bundle-copy`),O(`codex`,`skill`,`user`,`skill-bundle-copy`)])]},acp:{requirements:[k([O(`codex`,`mcp`,`session`,`session-injection`),O(`codex`,`mcp`,`user`,`config-entry`),O(`codex`,`mcp`,`project`,`config-entry`)]),A([O(`codex`,`skill`,`project`,`skill-bundle-copy`),O(`codex`,`skill`,`user`,`skill-bundle-copy`)])]}},acp:F({acpAgentId:`codex-acp`,featuredOrder:1,harnessCli:`codex`,readsEditorConfig:`codex`,readsEditorConfigAttestation:P([N(z.cliEditors,`the managed MCP entry OK writes into the Codex TOML config`),L(`codex-acp adapter`,`The adapter runs the Codex CLI, which loads the MCP servers declared in its own config, so the managed entry is already in the session.`)],R),verifiedPosture:`self-managed`}),external:I({targetId:`codex`,knownOrder:2,visible:!0,displayName:`ChatGPT`,appBrandName:`ChatGPT Desktop`,schemes:[`codex:`],installUrl:`https://developers.openai.com/codex/app`,tagline:`OpenAI's ChatGPT desktop app, home of the Codex agent.`})}),copilot:D({id:`copilot`,setupDocSlug:p.copilot,offersConnectionRow:!0,detectionSources:[`cli-on-path:copilot`],satisfiers:[B({agent:`copilot`,strictness:[`reclaim-permissive`],attestation:P([N(z.cliEditors)])}),V({agent:`copilot`,fileOwner:`claude`,sharedWith:[`claude`],consentClass:`trust-gated`,strictness:[`reclaim-permissive`],attestation:P([{kind:`vendor-doc`,ref:`GitHub Copilot CLI — MCP configuration`,note:"reads workspace `.mcp.json` or `.github/mcp.json`"},{kind:`vendor-doc`,ref:`GitHub Docs: Adding MCP servers for Copilot CLI`,note:`project-level servers load only after folder-trust confirmation; skipped silently in untrusted folders; under copilot -p they load only in an already-trusted folder unless GITHUB_COPILOT_PROMPT_MODE_WORKSPACE_MCP=true`},N(z.coreEditors,`OK deliberately writes no second copy for copilot`)],{version:`copilot CLI 1.0.80`,observedAt:`2026-08-20`}),troubleshooting:M(`troubleshooting.copilot.shared-workspace-config`,{agent:`copilot`,sourceAgent:`claude`})}),H({agent:`copilot`,prerequisites:[O(`copilot`,`mcp`,`project`,`config-entry`),O(`copilot`,`mcp`,`user`,`config-entry`)],attestation:P([N(z.coreEditors),N(z.writeProjectSkill)])}),U({agent:`copilot`,attestation:P([N(z.coreEditors),N(z.skillInstall)])}),W(`copilot`)],modes:{external:{requirements:[k([O(`copilot`,`mcp`,`user`,`config-entry`),O(`copilot`,`mcp`,`project`,`config-entry`)]),A([O(`copilot`,`skill`,`project`,`skill-bundle-copy`),O(`copilot`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[k([O(`copilot`,`mcp`,`user`,`config-entry`),O(`copilot`,`mcp`,`project`,`config-entry`)]),A([O(`copilot`,`skill`,`project`,`skill-bundle-copy`),O(`copilot`,`skill`,`user`,`skill-bundle-copy`)])]},acp:{requirements:[k([O(`copilot`,`mcp`,`session`,`session-injection`)]),A([O(`copilot`,`skill`,`project`,`skill-bundle-copy`),O(`copilot`,`skill`,`user`,`skill-bundle-copy`)])]}},acp:F({acpAgentId:`github-copilot-cli`,featuredOrder:4,harnessCli:null,readsEditorConfig:null,readsEditorConfigAttestation:{confidence:`assumed`,evidence:[L(`copilot CLI 1.0.80`,"The CLI does read a workspace `.mcp.json`, but nobody has observed the ACP adapter loading the managed entry inside a session. Claiming it would stand our injection down on an unverified read and risk a thread with no OK tools, so the claim stays unmade and OK keeps injecting.")],verifiedAgainst:{version:`1.0.80`,observedAt:`2026-08-20`}},verifiedPosture:null}),external:I({targetId:`copilot`,knownOrder:4,visible:!1,displayName:`GitHub Copilot`,schemes:[],installUrl:`https://docs.github.com/en/copilot/how-tos/copilot-cli/cli-getting-started`,tagline:`GitHub's terminal-native coding agent.`})}),opencode:D({id:`opencode`,setupDocSlug:p.opencode,offersConnectionRow:!0,detectionSources:[`cli-on-path:opencode`],satisfiers:[B({agent:`opencode`,strictness:[`reclaim-permissive`,`injection-functional`],attestation:P([N(z.cliEditors,`XDG config dir; the win32 location is by analogy and unverified`)])}),V({agent:`opencode`,consentClass:`none`,strictness:[`reclaim-permissive`,`injection-functional`],attestation:P([N(z.cliEditors,`the one project config that is not under a dotdir`)])}),H({agent:`opencode`,prerequisites:[O(`opencode`,`mcp`,`project`,`config-entry`)],attestation:P([N(z.coreEditors),N(z.repairSkills)])}),U({agent:`opencode`,attestation:P([N(z.coreEditors),N(z.skillInstall)])}),W(`opencode`)],modes:{external:{requirements:[k([O(`opencode`,`mcp`,`user`,`config-entry`),O(`opencode`,`mcp`,`project`,`config-entry`)]),A([O(`opencode`,`skill`,`project`,`skill-bundle-copy`),O(`opencode`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[k([O(`opencode`,`mcp`,`user`,`config-entry`),O(`opencode`,`mcp`,`project`,`config-entry`)]),A([O(`opencode`,`skill`,`project`,`skill-bundle-copy`),O(`opencode`,`skill`,`user`,`skill-bundle-copy`)])]},acp:{requirements:[k([O(`opencode`,`mcp`,`session`,`session-injection`),O(`opencode`,`mcp`,`user`,`config-entry`),O(`opencode`,`mcp`,`project`,`config-entry`)]),A([O(`opencode`,`skill`,`project`,`skill-bundle-copy`),O(`opencode`,`skill`,`user`,`skill-bundle-copy`)])]}},acp:F({acpAgentId:`opencode`,featuredOrder:5,harnessCli:`opencode`,readsEditorConfig:`opencode`,readsEditorConfigAttestation:P([N(z.cliEditors,`the managed MCP entry OK writes into the opencode config`),L(`opencode-acp adapter`,`The adapter runs opencode, which loads its own configured MCP servers, so the managed entry is already in the session.`)],R),verifiedPosture:null}),external:I({targetId:`opencode`,knownOrder:5,visible:!1,displayName:`OpenCode`,schemes:[],installUrl:`https://opencode.ai`,tagline:`Open-source terminal coding agent; bring any local model.`})}),openclaw:D({id:`openclaw`,setupDocSlug:p.openclaw,offersConnectionRow:!0,offerOnlyWhenDetected:!0,detectionSources:[`cli-on-path:openclaw`],satisfiers:[B({agent:`openclaw`,strictness:[`reclaim-permissive`],attestation:P([N(z.cliEditors,"the one two-level server map, nested under `mcp.servers`")])}),E({agent:`openclaw`,piece:`skill`,scope:`user`,kind:`central-store-copy`,pathId:ve,probe:j(`reclaim-permissive`),attestation:P([N(z.coreEditors),N(z.skillInstall,`the hub is written only when it already exists`)]),audience:`this-user`,guidance:M(`guidance.skill.central-store`,{agent:`openclaw`}),troubleshooting:M(`troubleshooting.openclaw.central-store-missing`,{agent:`openclaw`})})],modes:{external:{requirements:[k([O(`openclaw`,`mcp`,`user`,`config-entry`)]),A([O(`openclaw`,`skill`,`user`,`central-store-copy`)])]},terminal:{requirements:[k([O(`openclaw`,`mcp`,`user`,`config-entry`)]),A([O(`openclaw`,`skill`,`user`,`central-store-copy`)])]}},external:I({targetId:`openclaw`,knownOrder:8,visible:!1,displayName:`OpenClaw`,schemes:[],installUrl:`https://openclaw.ai`,tagline:`Open-source agent gateway; runs agents against your MCP servers.`})}),pi:D({id:`pi`,setupDocSlug:p.pi,offersConnectionRow:!0,detectionSources:[`cli-on-path:pi`],satisfiers:[E({agent:`pi`,piece:`mcp`,scope:`project`,kind:`managed-file`,pathId:x(`editor-project-config`,`pi`),probe:j(`reclaim-permissive`,`injection-functional`),attestation:P([N(z.cliEditors,`OK owns the whole file; currency is a first-line sentinel`),N(z.acpRegistry,`the thread provisions this file instead of injecting`)]),audience:`this-project`,guidance:M(`guidance.mcp.managed-file`,{agent:`pi`}),troubleshooting:M(`troubleshooting.pi.folder-trust`,{agent:`pi`})}),H({agent:`pi`,prerequisites:[O(`pi`,`mcp`,`project`,`managed-file`)],attestation:P([N(z.coreEditors),N(z.writeProjectSkill)]),troubleshooting:M(`troubleshooting.pi.folder-trust`,{agent:`pi`})}),U({agent:`pi`,attestation:P([N(z.coreEditors,`the agent home nests one level below the dotdir`),N(z.skillInstall)])})],modes:{external:{requirements:[k([O(`pi`,`mcp`,`project`,`managed-file`)]),A([O(`pi`,`skill`,`project`,`skill-bundle-copy`),O(`pi`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[k([O(`pi`,`mcp`,`project`,`managed-file`)]),A([O(`pi`,`skill`,`project`,`skill-bundle-copy`),O(`pi`,`skill`,`user`,`skill-bundle-copy`)])]},acp:{requirements:[k([O(`pi`,`mcp`,`project`,`managed-file`)]),A([O(`pi`,`skill`,`project`,`skill-bundle-copy`),O(`pi`,`skill`,`user`,`skill-bundle-copy`)])]}},acp:F({acpAgentId:`pi-acp`,featuredOrder:null,harnessCli:`pi`,readsEditorConfig:`pi`,readsEditorConfigAttestation:P([L(`pi-acp@0.0.33`,"Pi has no MCP client at all: it accepts `mcpServers` at session/new, stores them write-only and never connects. Its wiring is a managed extension FILE in the project, which OK provisions instead of injecting — the same mapping, a different shape."),N(z.threadManager,`the bridge route that provisions the extension instead of injecting`)],{version:`0.0.33`,observedAt:`2026-08-20`}),verifiedPosture:`autonomous`}),external:I({targetId:`pi`,knownOrder:6,visible:!1,displayName:`Pi`,schemes:[],installUrl:`https://pi.dev`,tagline:`Minimal open-source terminal coding agent, extensible in TypeScript.`})}),antigravity:D({id:`antigravity`,setupDocSlug:p.antigravity,offersConnectionRow:!0,offerOnlyWhenDetected:!0,detectionSources:[`cli-on-path:antigravity`],satisfiers:[B({agent:`antigravity`,strictness:[`reclaim-permissive`],attestation:P([N(z.cliEditors,`one user-global file shared by the IDE, the app and the CLI; per project you can only filter it`)])}),U({agent:`antigravity`,attestation:P([N(z.coreEditors),N(z.skillInstall)])})],modes:{external:{requirements:[k([O(`antigravity`,`mcp`,`user`,`config-entry`)]),A([O(`antigravity`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[k([O(`antigravity`,`mcp`,`user`,`config-entry`)]),A([O(`antigravity`,`skill`,`user`,`skill-bundle-copy`)])]}},external:I({targetId:`antigravity`,knownOrder:7,visible:!1,displayName:`Antigravity`,schemes:[],installUrl:`https://antigravity.google`,tagline:"Google's agentic IDE + `agy` terminal agent."})}),"lm-studio":D({id:`lm-studio`,setupDocSlug:p[`lm-studio`],offersConnectionRow:!0,offerOnlyWhenDetected:!0,detectionSources:[],satisfiers:[B({agent:`lm-studio`,strictness:[`reclaim-permissive`],installability:`not-installable`,notInstallableReason:`no-non-interactive-verb`,attestation:P([N(z.cliEditors,`two candidate locations, resolved against what already exists`),{kind:`upstream-issue`,ref:`lmstudio-ai/lmstudio-bug-tracker#1371`,note:`documented config path differs from the one the app reads on macOS`},N(z.presenceProbes,`deliberately absent from the presence probes`)]),troubleshooting:M(`troubleshooting.lm-studio.config-path-mismatch`,{agent:`lm-studio`})})],modes:{external:{requirements:[k([O(`lm-studio`,`mcp`,`user`,`config-entry`)]),A([])]}}}),hermes:D({id:`hermes`,setupDocSlug:p.hermes,offersConnectionRow:!0,offerOnlyWhenDetected:!0,detectionSources:[`cli-on-path:hermes`],satisfiers:[B({agent:`hermes`,strictness:[`reclaim-permissive`],attestation:P([N(z.cliEditors,`the one YAML target; the whole config is a single user-global file`)])})],modes:{external:{requirements:[k([O(`hermes`,`mcp`,`user`,`config-entry`)]),A([])]},terminal:{requirements:[k([O(`hermes`,`mcp`,`user`,`config-entry`)]),A([])]}},external:I({targetId:`hermes`,knownOrder:9,visible:!1,displayName:`Hermes`,schemes:[],installUrl:`https://hermes-agent.nousresearch.com`,tagline:`Nous Research's terminal coding agent.`})}),gemini:D({id:`gemini`,setupDocSlug:null,detectionSources:[`harness-bin:gemini`],satisfiers:[W(`gemini`)],modes:{acp:{requirements:[k([O(`gemini`,`mcp`,`session`,`session-injection`)]),A([])]}},acp:F({acpAgentId:`gemini`,featuredOrder:2,harnessCli:`gemini`,readsEditorConfig:null,readsEditorConfigAttestation:P([N(z.coreEditors,`gemini reaches OK as an ACP agent only; it has no editor config target`)],R),verifiedPosture:null})})};function Ie(e){return G[e]}var Le=Object.values(G).flatMap(e=>e.satisfiers),Re=new Map(Le.map(e=>[e.id,e]));function ze(e){return Re.get(e)}var K=Object.values(G).flatMap(e=>e.acp===void 0?[]:[{record:e,acp:e.acp}]).sort((e,t)=>e.acp.acpAgentId.localeCompare(t.acp.acpAgentId));K.filter(({acp:e})=>e.featuredOrder!==null).sort((e,t)=>(e.acp.featuredOrder??0)-(t.acp.featuredOrder??0)).map(({acp:e})=>e.acpAgentId);var Be=Object.fromEntries(K.flatMap(({acp:e})=>e.harnessCli===null?[]:[[e.acpAgentId,e.harnessCli]]));Object.fromEntries(K.flatMap(({acp:e})=>e.harnessReadsEditorConfig===null?[]:[[e.acpAgentId,e.harnessReadsEditorConfig]]));var Ve=Object.fromEntries(K.flatMap(({acp:e})=>e.verifiedPosture===null?[]:[[e.acpAgentId,e.verifiedPosture]])),He=Object.values(G).flatMap(e=>e.external===void 0?[]:[e.external]).sort((e,t)=>e.knownOrder-t.knownOrder),Ue=He.map(({targetId:e,displayName:t,appBrandName:n,schemes:r,installUrl:i,platforms:a,tagline:o})=>({id:e,displayName:t,...n===void 0?{}:{appBrandName:n},schemes:r,installUrl:i,platforms:a,...o===void 0?{}:{tagline:o}}));function We(e,t){return t==null||e.platforms.includes(t)}var Ge=new Set(He.filter(e=>e.visible).map(e=>e.targetId)),Ke=Ue.filter(e=>Ge.has(e.id)),qe=m.filter(e=>G[e].offersConnectionRow),Je=new Map(Object.values(G).flatMap(e=>e.external===void 0?[]:[[e.external.targetId,e.id]]));function Ye(e){return Je.get(e)}var Xe=new Map(Object.values(G).flatMap(e=>e.modes.terminal===void 0?[]:[[e.id,e.id]]));function Ze(e){return Xe.get(e)}Object.fromEntries(Object.values(G).flatMap(e=>{let t=e.satisfiers.find(e=>e.piece===`mcp`&&e.scope===`project`&&e.consentClass!==`none`)?.consentClass;return t===void 0?[]:[[e.id,t]]})),new Set(oe);var Qe=[{id:`mcp-preapproval`,piece:`mcp`,scope:`project`,requiredStrictness:`pre-approval-exact`,revokedByForeignEntry:!1},{id:`tool-autoapprove`,piece:`mcp`,requiredStrictness:`pre-approval-exact`,revokedByForeignEntry:!0}];Qe.map(e=>e.id);var q={satisfied:{counts:!0,exception:null},"present-consent-unknown":{counts:!0,exception:`info`},absent:{counts:!1,exception:null},foreign:{counts:!1,exception:`warning`},"foreign-replaceable":{counts:!1,exception:`warning`},drifted:{counts:!1,exception:`warning`},excluded:{counts:!1,exception:`info`},"structural-na":{counts:!1,exception:`info`},undetected:{counts:!1,exception:null},unprobeable:{counts:!0,exception:`info`},unprobed:{counts:!1,exception:`info`}};c([`count-unverified`,`not-count`]);var $e={acp:{unprobed:`count-unverified`},terminal:{unprobed:`count-unverified`},external:{unprobed:`not-count`}};c([`acp-catalog-supported`,`harness-cli-on-path`,`os-scheme-handler`]);var et={acp:{signal:`acp-catalog-supported`,unresolved:`show`,negativeOutranksOverride:!0},terminal:{signal:`harness-cli-on-path`,unresolved:`show`,negativeOutranksOverride:!1},external:{signal:`os-scheme-handler`,unresolved:`hide`,negativeOutranksOverride:!1}};function J(e){return typeof e==`object`&&!!e}function Y(e,t){if(!J(e))return;let{satisfiers:n}=e;if(!J(n))return;let r=n[t];if(!J(r))return;let{state:i,strictness:a,sharedWith:o}=r;if(typeof i!=`string`||i.length===0)return;let s=Array.isArray(a)?a.filter(e=>typeof e==`string`):void 0,c=Array.isArray(o)?o.filter(e=>typeof e==`string`&&_(e)):void 0;return{state:i,...s===void 0?{}:{strictness:s},...c===void 0||c.length===0?{}:{sharedWith:c}}}function tt(e,t){if(!J(e))return!1;let{detected:n}=e;return Array.isArray(n)&&n.includes(t)}function X(e,t){return e.probe.mode===`unprobeable`?`unprobeable`:Y(t,e.id)?.state??`unprobed`}function Z(e){return f(e)?q[e]:q.unprobed}function nt(e,t){let n=e.filter(e=>{let n=ze(e);return n===void 0?!0:!Z(X(n,t)).counts});return n.length===e.length?n:[]}function rt(e){return Z(e).exception===`warning`}function it(e){return e.state===`foreign`?`foreign`:e.state===`structural-na`?`structural-na`:e.installability===`not-installable`?`not-installable`:e.agentFolded?`agent-undetected`:null}function at(e,t){let n=t?.probed===!0?tt(t,e.id):null;return{detected:n,folded:e.offerOnlyWhenDetected&&n===!1}}function ot(e,t){return(Y(t,e.id)?.sharedWith??[]).filter(t=>t!==e.agent)}var st=de.filter(e=>e!==`session`);function ct(e){return ie.includes(e)}function lt(e,t,n){let r=[];for(let i of e.satisfiers){if(!ct(i.kind))continue;let a=X(i,t),o=t?.satisfiers?.[i.id]?.path,s=Z(a),c=nt(i.prerequisites,t),l=it({state:a,installability:i.installability,agentFolded:n});r.push({satisfierId:i.id,agentId:e.id,piece:i.piece,scope:i.scope,kind:i.kind,...i.pathId===void 0?{}:{pathId:i.pathId},...o===void 0?{}:{resolvedPath:o},audience:i.audience,state:a,checked:s.counts,exception:s.exception,folded:a===`undetected`,enabled:l===null,disabledReason:l,sharedWith:i.sharedWith,sharedFolderWith:ot(i,t),prerequisites:i.prerequisites,unmetPrerequisites:c,consentClass:i.consentClass,installability:i.installability,...i.guidance===void 0?{}:{guidance:i.guidance},...i.followup===void 0?{}:{followup:i.followup},troubleshooting:i.troubleshooting})}return r}function ut(e){let t=[];for(let n of st){let r=e.filter(e=>e.scope===n);r.length!==0&&t.push({scope:n,cells:r})}return t}function dt(e,t,n){let{detected:r,folded:i}=at(e,n),a=lt(e,t,i);return{agentId:e.id,detected:r,folded:i,setupDocSlug:e.setupDocSlug,scopes:ut(a)}}function ft(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`&&_(e)):h}function pt(e={}){let{agentIds:t,probes:n,detection:r}=e;return{rows:ft(t).map(e=>G[e]).filter(e=>e!==void 0).map(e=>dt(e,n,r))}}var Q={agent:g},mt={"followup.enable-manually":{params:e(Q)},"guidance.mcp.user-config":{params:e(Q)},"guidance.mcp.project-config":{params:e(Q)},"guidance.mcp.session-injection":{params:e(Q)},"guidance.mcp.managed-file":{params:e(Q)},"guidance.skill.project":{params:e(Q)},"guidance.skill.user":{params:e(Q)},"guidance.skill.central-store":{params:e(Q)},"troubleshooting.claude.project-entry-not-approved":{params:e(Q)},"troubleshooting.claude-desktop.per-tool-approval":{params:e(Q)},"troubleshooting.cursor.project-entry-not-loaded":{params:e({...Q,server:u().optional()})},"troubleshooting.codex.desktop-project-config":{params:e({...Q,honoredByDesktop:t()})},"troubleshooting.codex.folder-trust":{params:e(Q)},"troubleshooting.copilot.shared-workspace-config":{params:e({...Q,sourceAgent:g})},"troubleshooting.openclaw.central-store-missing":{params:e(Q)},"troubleshooting.pi.folder-trust":{params:e(Q)},"troubleshooting.lm-studio.config-path-mismatch":{params:e(Q)}};Object.keys(mt).sort(),Le.flatMap(e=>e.probe.mode===`probeable`?[{satisfierId:e.id,agent:e.agent,piece:e.piece,scope:e.scope,kind:e.kind,pathId:e.pathId??null,strictness:e.probe.strictness}]:[]).map(e=>e.satisfierId);var ht={verified:3,unverifiable:2,unverified:1};function gt(e,t){let n=et[e],r=typeof t==`boolean`?t:null;return{signal:n.signal,resolved:r,show:r??n.unresolved===`show`}}function _t(e,t,n){let r=ze(e);if(r===void 0)return{id:e,state:`absent`,counts:!1,confidence:`unverified`,exception:q.absent.exception,consentClass:`none`,troubleshooting:[]};let i=X(r,n),a=!f(i)||i===`unprobed`,o=$e[t].unprobed===`count-unverified`;return{id:e,state:i,counts:a?o:Z(i).counts,confidence:a?`unverified`:i===`unprobeable`?`unverifiable`:`verified`,exception:Z(i).exception,consentClass:r.consentClass,...r.guidance===void 0?{}:{guidance:r.guidance},...r.followup===void 0?{}:{followup:r.followup},troubleshooting:r.troubleshooting}}function vt(e,t,n){let r=e.satisfiedByAny.map(e=>_t(e,t,n));if(r.length===0)return{piece:e.piece,level:e.level,status:`nothing-required`,confidence:null,satisfiedBy:null,options:r};let i=null;for(let e of r)e.counts&&(i===null||ht[e.confidence]>ht[i.confidence])&&(i=e);return{piece:e.piece,level:e.level,status:i===null?`unmet`:`met`,confidence:i?.confidence??null,satisfiedBy:i?.id??null,options:r}}var yt=[`absent`,`structural-na`];function bt(e,t){let n=[];for(let r of Qe){let i=e.satisfiers.filter(e=>e.piece===r.piece&&e.kind!==`session-injection`&&(r.scope===void 0||e.scope===r.scope));r.revokedByForeignEntry&&i.some(e=>yt.includes(X(e,t))?!1:!$(Y(t,e.id),r.requiredStrictness))||i.some(e=>e.probe.mode!==`probeable`||!e.probe.strictness.includes(r.requiredStrictness)||!Z(X(e,t)).counts?!1:$(Y(t,e.id),r.requiredStrictness))&&n.push(r.id)}return n}function $(e,t){return e?.strictness?.includes(t)===!0}function xt(e){let{agentId:t,mode:n,probes:r,modeSignal:i}=e,a=_(t)?Ie(t):void 0;if(a===void 0)return{agentId:t,mode:n,verdict:`not-registered`,visibility:{...gt(n,i),show:!0},requirements:[],grantedCapabilities:[],modeCaveats:[]};let o=gt(n,i),s=a.modes[n];if(s===void 0)return{agentId:t,mode:n,verdict:`mode-not-available`,visibility:o,requirements:[],grantedCapabilities:[],modeCaveats:[]};let c=s.requirements.map(e=>vt(e,n,r)),l=c.some(e=>e.level===`required`&&e.status===`unmet`),u=c.some(e=>e.status===`unmet`);return{agentId:t,mode:n,verdict:l?`blocked`:u?`ready-with-nudges`:`ready`,visibility:o,requirements:c,grantedCapabilities:bt(a,r),modeCaveats:s.caveats}}export{Be as a,qe as c,Ye as d,Ze as f,ye as h,rt as i,Ue as l,We as m,pt as n,Ve as o,Ie as p,tt as r,G as s,xt as t,Ke as u};
|
|
1
|
+
import{_ as e,a as t,f as n,g as r,i,m as a,p as o,s,t as c,u as l,v as u,y as ee}from"./schemas-B93JY9Ef.js";import{Ft as d,It as te,Lt as ne,Mt as re,Nt as ie,Pt as ae,Rt as f,jt as oe}from"./schemas-api-DIKsrZIF.js";import{i as p,t as m}from"./constants-editors-CfabqCeY.js";import{x as se}from"./handoff-DzPPe6fp.js";var h=[...m,`gemini`],g=c(h);function _(e){return h.includes(e)}var ce=c([`acp`,`terminal`,`external`]),le=c([...se,`gemini`]),ue=c([`claude-cowork`,`claude-code`,`codex`,`cursor`,`copilot`,`opencode`,`pi`,`antigravity`,`openclaw`,`hermes`]),v=c([`mcp`,`skill`]),de=[`project`,`user`,`session`],fe=c(de),y=u().regex(/^[a-z0-9-]+\/[a-z0-9-]+\/[a-z0-9-]+\/[a-z0-9-]+$/).transform(e=>e),pe=u().min(1).transform(e=>e),me=u().min(1).transform(e=>e);function b(e){return`${e.agent}/${e.piece}/${e.scope}/${e.kind}`}function he(e){return e}function ge(e){return e}var _e=[`editor-user-config`,`editor-project-config`,`editor-project-skill-root`,`editor-user-skill-root`],ve=he(`central-skill-store`);function x(e,t){return he(`${e}:${t}`)}function ye(e){if(e===ve)return{kind:`central-skill-store`};let t=e.indexOf(`:`);if(t===-1)return null;let n=e.slice(0,t),r=e.slice(t+1);return!_e.includes(n)||!m.includes(r)?null:{kind:n,editor:r}}var be=c(m),S=o({kind:c([`source-read`,`measured`,`vendor-doc`,`upstream-issue`,`observation`]),ref:u().min(1),note:u().optional()}),C=o({version:u().min(1).optional(),observedAt:u().min(1)}),xe=s(`confidence`,[o({confidence:l(`verified`),evidence:i(S).min(1),verifiedAgainst:C.optional()}),o({confidence:l(`assumed`),evidence:i(S).min(1),verifiedAgainst:C.optional()}),o({confidence:l(`contested`),evidence:i(S).min(1),verifiedAgainst:C})]),w=o({id:me,params:r(u(),ee([u(),n(),t()])).optional()}),Se=s(`mode`,[o({mode:l(`probeable`),strictness:i(d).min(1)}),o({mode:l(`unprobeable`),reason:c([`no-readable-state`,`different-machine`,`no-programmatic-path`,`session-scoped`]),note:u().optional()})]),Ce=c([`this-project`,`this-user`,`this-machine`]),we=c([`installable`,`user-completes`,`not-installable`]),Te=o({id:y,agent:g,piece:v,scope:fe,kind:ne,pathId:pe.optional(),sharedWith:i(g).default([]),prerequisites:i(y).default([]),consentClass:re.default(`none`),probe:Se,attestation:xe,audience:Ce,installability:we.default(`installable`),notInstallableReason:c([`no-non-interactive-verb`,`session-scoped`,`no-surface`]).optional(),preferred:t().default(!1),guidance:w.optional(),followup:w.optional(),troubleshooting:i(w).default([])}),Ee=o({piece:v,level:te,satisfiedByAny:i(y)}),De=o({acpAgentId:u().min(1),featuredOrder:n().int().nonnegative().nullable(),harnessCli:le.nullable(),harnessReadsEditorConfig:be.nullable(),harnessReadsEditorConfigAttestation:xe,verifiedPosture:c([`asks`,`self-managed`,`autonomous`]).nullable()}),Oe=o({cliId:u().min(1)}),T=[`darwin`,`win32`,`linux`],ke=c(T),Ae=o({targetId:ue,knownOrder:n().int().nonnegative(),visible:t(),displayName:u().min(1),appBrandName:u().min(1).optional(),schemes:i(u().min(1)),installUrl:u().min(1),platforms:i(ke).min(1),tagline:u().min(1).optional()}),je=o({requirements:i(Ee),caveats:i(w).default([])});o({id:g,setupDocSlug:u().min(1).nullable(),offerOnlyWhenDetected:t().default(!1),offersConnectionRow:t().default(!1),detectionSources:i(u().min(1)).default([]),satisfiers:i(Te),modes:a(ce,je),acp:De.optional(),terminal:Oe.optional(),external:Ae.optional()}),o({id:u().min(1),requiredStrictness:d,scope:fe.optional(),piece:v,revokedByForeignEntry:t().default(!1),guidance:w.optional()});var Me=e=>e===void 0?[]:Array.isArray(e)?[...e]:[e];function E(e){let{sharedWith:t,prerequisites:n,consentClass:r,installability:i,preferred:a,troubleshooting:o,...s}=e;return{...s,troubleshooting:Me(o),id:b({agent:e.agent,piece:e.piece,scope:e.scope,kind:e.kind}),sharedWith:t??[],prerequisites:n??[],consentClass:r??`none`,installability:i??`installable`,preferred:a??!1}}function D(e){let{offerOnlyWhenDetected:t,offersConnectionRow:n,detectionSources:r,modes:i,...a}=e,o={};for(let[e,t]of Object.entries(i))o[e]={requirements:t.requirements,caveats:t.caveats??[]};return{...a,offerOnlyWhenDetected:t??!1,offersConnectionRow:n??!1,detectionSources:r??[],modes:o}}var O=(e,t,n,r)=>b({agent:e,piece:t,scope:n,kind:r}),k=e=>({piece:`mcp`,level:`required`,satisfiedByAny:e}),A=e=>({piece:`skill`,level:`recommended`,satisfiedByAny:e}),j=(...e)=>({mode:`probeable`,strictness:e}),Ne=(e,t)=>({mode:`unprobeable`,reason:e,...t===void 0?{}:{note:t}}),M=(e,t)=>({id:ge(e),...t===void 0?{}:{params:t}}),Pe=(e,t)=>{let n=ae.find(t=>t===e);return n===void 0?void 0:M(`followup.${n}`,{agent:t})},N=(e,t)=>({kind:`source-read`,ref:e,...t===void 0?{}:{note:t}}),P=(e,t)=>t===void 0?{confidence:`verified`,evidence:e}:{confidence:`verified`,evidence:e,verifiedAgainst:t},Fe=(e,t)=>({confidence:`contested`,evidence:e,verifiedAgainst:t});function F(e){return{acpAgentId:e.acpAgentId,featuredOrder:e.featuredOrder,harnessCli:e.harnessCli,harnessReadsEditorConfig:e.readsEditorConfig,harnessReadsEditorConfigAttestation:e.readsEditorConfigAttestation,verifiedPosture:e.verifiedPosture}}function I(e){let{appBrandName:t,tagline:n,platforms:r=T,...i}=e;return{...i,platforms:[...r],...t===void 0?{}:{appBrandName:t},...n===void 0?{}:{tagline:n}}}var L=(e,t)=>({kind:`observation`,ref:e,note:t}),R={observedAt:`2026-07-02`},z={cliEditors:`packages/cli/src/commands/editors.ts`,coreEditors:`packages/core/src/constants/editors.ts`,acpRegistry:`packages/server/src/acp/registry.ts`,threadManager:`packages/server/src/acp/thread-manager.ts`,writeProjectSkill:`packages/cli/src/integrations/write-project-skill.ts`,repairSkills:`packages/cli/src/commands/repair-skills.ts`,skillInstall:`packages/server/src/skill-install.ts`,presenceProbes:`packages/desktop/src/main/integrations-settings.ts`};function B(e){return E({agent:e.agent,piece:`mcp`,scope:`user`,kind:`config-entry`,pathId:x(`editor-user-config`,e.agent),probe:j(...e.strictness),attestation:e.attestation,audience:`this-user`,installability:e.installability,notInstallableReason:e.notInstallableReason,guidance:M(`guidance.mcp.user-config`,{agent:e.agent}),troubleshooting:e.troubleshooting})}function V(e){return E({agent:e.agent,piece:`mcp`,scope:`project`,kind:`config-entry`,pathId:x(`editor-project-config`,e.fileOwner??e.agent),sharedWith:e.sharedWith,consentClass:e.consentClass,probe:j(...e.strictness),attestation:e.attestation,audience:`this-project`,guidance:M(`guidance.mcp.project-config`,{agent:e.agent}),followup:Pe(e.consentClass,e.agent),troubleshooting:e.troubleshooting})}function H(e){return E({agent:e.agent,piece:`skill`,scope:`project`,kind:`skill-bundle-copy`,pathId:x(`editor-project-skill-root`,e.agent),prerequisites:e.prerequisites,probe:j(`reclaim-permissive`),attestation:e.attestation,audience:`this-project`,guidance:M(`guidance.skill.project`,{agent:e.agent}),troubleshooting:e.troubleshooting})}function U(e){return E({agent:e.agent,piece:`skill`,scope:`user`,kind:`skill-bundle-copy`,pathId:x(`editor-user-skill-root`,e.agent),probe:j(`reclaim-permissive`),attestation:e.attestation,audience:`this-user`,guidance:M(`guidance.skill.user`,{agent:e.agent})})}function W(e){return E({agent:e,piece:`mcp`,scope:`session`,kind:`session-injection`,probe:Ne(`session-scoped`),attestation:P([N(z.threadManager,`the session MCP config the thread manager builds per thread`)]),audience:`this-project`,installability:`not-installable`,notInstallableReason:`session-scoped`,guidance:M(`guidance.mcp.session-injection`,{agent:e})})}var G={claude:D({id:`claude`,setupDocSlug:p.claude,offersConnectionRow:!0,detectionSources:[`cli-on-path:claude`,`scheme-handler:claude-code`],satisfiers:[B({agent:`claude`,strictness:[`reclaim-permissive`,`pre-approval-exact`,`injection-functional`],attestation:P([N(z.cliEditors,`user-global MCP config target`)])}),V({agent:`claude`,sharedWith:[`copilot`],consentClass:`approve-once`,strictness:[`reclaim-permissive`,`pre-approval-exact`,`injection-functional`],attestation:P([N(z.cliEditors),N(z.coreEditors)]),troubleshooting:M(`troubleshooting.claude.project-entry-not-approved`,{agent:`claude`})}),H({agent:`claude`,prerequisites:[O(`claude`,`mcp`,`project`,`config-entry`)],attestation:P([N(z.coreEditors),N(z.repairSkills)])}),U({agent:`claude`,attestation:P([N(z.coreEditors),N(z.skillInstall)])}),W(`claude`)],modes:{external:{requirements:[k([O(`claude`,`mcp`,`user`,`config-entry`),O(`claude`,`mcp`,`project`,`config-entry`)]),A([O(`claude`,`skill`,`project`,`skill-bundle-copy`),O(`claude`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[k([O(`claude`,`mcp`,`user`,`config-entry`),O(`claude`,`mcp`,`project`,`config-entry`)]),A([O(`claude`,`skill`,`project`,`skill-bundle-copy`),O(`claude`,`skill`,`user`,`skill-bundle-copy`)])]},acp:{requirements:[k([O(`claude`,`mcp`,`session`,`session-injection`),O(`claude`,`mcp`,`user`,`config-entry`),O(`claude`,`mcp`,`project`,`config-entry`)]),A([O(`claude`,`skill`,`project`,`skill-bundle-copy`),O(`claude`,`skill`,`user`,`skill-bundle-copy`)])]}},acp:F({acpAgentId:`claude-acp`,featuredOrder:0,harnessCli:`claude`,readsEditorConfig:`claude`,readsEditorConfigAttestation:P([N(z.threadManager,`the injection-skip probe reads the managed entry for this editor`),L(`claude-acp adapter`,`The adapter runs Claude Code, which loads the MCP entry OK writes for the Claude editor on its own, so injecting a same-name duplicate would be redundant.`)],R),verifiedPosture:`asks`}),external:I({targetId:`claude-code`,knownOrder:1,visible:!0,displayName:`Claude`,appBrandName:`Claude Desktop`,schemes:[`claude:`],installUrl:`https://claude.com/download`,tagline:`Agentic coding in Claude Desktop's Code tab.`})}),"claude-desktop":D({id:`claude-desktop`,setupDocSlug:p[`claude-desktop`],offersConnectionRow:!1,detectionSources:[`scheme-handler:claude-code`],satisfiers:[B({agent:`claude-desktop`,strictness:[`reclaim-permissive`],attestation:P([N(z.cliEditors,`user-global config target; its path resolution throws on Linux`)]),troubleshooting:M(`troubleshooting.claude-desktop.per-tool-approval`,{agent:`claude-desktop`})})],modes:{external:{requirements:[k([O(`claude-desktop`,`mcp`,`user`,`config-entry`)]),A([])]}},external:I({targetId:`claude-cowork`,knownOrder:0,visible:!1,displayName:`Claude Cowork`,appBrandName:`Claude Desktop`,schemes:[`claude:`],installUrl:`https://claude.com/download`,tagline:`Conversational pairing in Claude Desktop's Cowork tab.`})}),cursor:D({id:`cursor`,setupDocSlug:p.cursor,offersConnectionRow:!0,detectionSources:[`cli-on-path:cursor`,`scheme-handler:cursor`],satisfiers:[B({agent:`cursor`,strictness:[`reclaim-permissive`],attestation:P([N(z.cliEditors)])}),V({agent:`cursor`,consentClass:`enable-manually`,strictness:[`reclaim-permissive`],attestation:P([N(z.cliEditors),N(z.coreEditors),{kind:`observation`,ref:`cursor-3.19.19-project-server-default-off`,note:`project .cursor/mcp.json server listed Disabled under Customize → MCPs with no prompt; enabled via the per-source toggle in its Configure dialog; with a same-named user-level entry present, the user entry connected and the disabled project entry did not shadow it`}],{version:`3.19.19`,observedAt:`2026-09-09`}),troubleshooting:M(`troubleshooting.cursor.project-entry-not-loaded`,{agent:`cursor`})}),H({agent:`cursor`,prerequisites:[O(`cursor`,`mcp`,`project`,`config-entry`)],attestation:P([N(z.coreEditors),N(z.repairSkills)])}),U({agent:`cursor`,attestation:P([N(z.coreEditors),N(z.skillInstall)])}),W(`cursor`)],modes:{external:{requirements:[k([O(`cursor`,`mcp`,`user`,`config-entry`),O(`cursor`,`mcp`,`project`,`config-entry`)]),A([O(`cursor`,`skill`,`project`,`skill-bundle-copy`),O(`cursor`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[k([O(`cursor`,`mcp`,`user`,`config-entry`),O(`cursor`,`mcp`,`project`,`config-entry`)]),A([O(`cursor`,`skill`,`project`,`skill-bundle-copy`),O(`cursor`,`skill`,`user`,`skill-bundle-copy`)])]},acp:{requirements:[k([O(`cursor`,`mcp`,`session`,`session-injection`)]),A([O(`cursor`,`skill`,`project`,`skill-bundle-copy`),O(`cursor`,`skill`,`user`,`skill-bundle-copy`)])]}},acp:F({acpAgentId:`cursor`,featuredOrder:3,harnessCli:`cursor`,readsEditorConfig:null,readsEditorConfigAttestation:P([L(`cursor-agent mcp list`,`Reports a config-declared entry that has not been approved as "not loaded (needs approval)", so a present entry says nothing about whether the agent will have the tools.`),N(z.threadManager,`the one agent the skip probe never stands down for`)],{observedAt:`2026-08-20`}),verifiedPosture:`self-managed`}),external:I({targetId:`cursor`,knownOrder:3,visible:!0,displayName:`Cursor`,schemes:[`cursor:`],installUrl:`https://cursor.com/`,tagline:`AI-first VS Code fork with multi-file edits.`})}),codex:D({id:`codex`,setupDocSlug:p.codex,offersConnectionRow:!0,detectionSources:[`cli-on-path:codex`,`scheme-handler:codex`],satisfiers:[B({agent:`codex`,strictness:[`reclaim-permissive`,`injection-functional`],attestation:P([N(z.cliEditors,`TOML user-global config target`)])}),V({agent:`codex`,consentClass:`trust-gated`,strictness:[`reclaim-permissive`,`injection-functional`],attestation:Fe([N(z.cliEditors,`project config path added by analogy with the other editors`),{kind:`upstream-issue`,ref:`openai/codex#13025`,note:`open, reproduced on builds newer than the one OK checked`},{kind:`upstream-issue`,ref:`openai/codex#36960`,note:`requires an explicit trust decision in rust-v0.147.0, reverting #36935's automatic trust from the same release; builds from 0.113 asked but did not reliably persist the answer (#14547); codex exec never asks`},{kind:`vendor-doc`,ref:`OpenAI Codex: Advanced configuration`,note:`project-scoped config loads only for a trusted project`},{kind:`observation`,ref:`codex-desktop-project-config-load`,note:`single non-repro on 26.623.81905; the CLI honors it only for a trusted project`}],{version:`26.707.72221`,observedAt:`2026-07-15`}),troubleshooting:[M(`troubleshooting.codex.desktop-project-config`,{agent:`codex`,honoredByDesktop:!1}),M(`troubleshooting.codex.folder-trust`,{agent:`codex`})]}),H({agent:`codex`,prerequisites:[O(`codex`,`mcp`,`project`,`config-entry`)],attestation:P([N(z.coreEditors),N(z.repairSkills)]),troubleshooting:M(`troubleshooting.codex.folder-trust`,{agent:`codex`})}),U({agent:`codex`,attestation:P([N(z.coreEditors),N(z.skillInstall)])}),W(`codex`)],modes:{external:{requirements:[k([O(`codex`,`mcp`,`user`,`config-entry`),O(`codex`,`mcp`,`project`,`config-entry`)]),A([O(`codex`,`skill`,`project`,`skill-bundle-copy`),O(`codex`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[k([O(`codex`,`mcp`,`user`,`config-entry`),O(`codex`,`mcp`,`project`,`config-entry`)]),A([O(`codex`,`skill`,`project`,`skill-bundle-copy`),O(`codex`,`skill`,`user`,`skill-bundle-copy`)])]},acp:{requirements:[k([O(`codex`,`mcp`,`session`,`session-injection`),O(`codex`,`mcp`,`user`,`config-entry`),O(`codex`,`mcp`,`project`,`config-entry`)]),A([O(`codex`,`skill`,`project`,`skill-bundle-copy`),O(`codex`,`skill`,`user`,`skill-bundle-copy`)])]}},acp:F({acpAgentId:`codex-acp`,featuredOrder:1,harnessCli:`codex`,readsEditorConfig:`codex`,readsEditorConfigAttestation:P([N(z.cliEditors,`the managed MCP entry OK writes into the Codex TOML config`),L(`codex-acp adapter`,`The adapter runs the Codex CLI, which loads the MCP servers declared in its own config, so the managed entry is already in the session.`)],R),verifiedPosture:`self-managed`}),external:I({targetId:`codex`,knownOrder:2,visible:!0,displayName:`ChatGPT`,appBrandName:`ChatGPT Desktop`,schemes:[`codex:`],installUrl:`https://developers.openai.com/codex/app`,tagline:`OpenAI's ChatGPT desktop app, home of the Codex agent.`})}),copilot:D({id:`copilot`,setupDocSlug:p.copilot,offersConnectionRow:!0,detectionSources:[`cli-on-path:copilot`],satisfiers:[B({agent:`copilot`,strictness:[`reclaim-permissive`],attestation:P([N(z.cliEditors)])}),V({agent:`copilot`,fileOwner:`claude`,sharedWith:[`claude`],consentClass:`trust-gated`,strictness:[`reclaim-permissive`],attestation:P([{kind:`vendor-doc`,ref:`GitHub Copilot CLI — MCP configuration`,note:"reads workspace `.mcp.json` or `.github/mcp.json`"},{kind:`vendor-doc`,ref:`GitHub Docs: Adding MCP servers for Copilot CLI`,note:`project-level servers load only after folder-trust confirmation; skipped silently in untrusted folders; under copilot -p they load only in an already-trusted folder unless GITHUB_COPILOT_PROMPT_MODE_WORKSPACE_MCP=true`},N(z.coreEditors,`OK deliberately writes no second copy for copilot`)],{version:`copilot CLI 1.0.80`,observedAt:`2026-08-20`}),troubleshooting:M(`troubleshooting.copilot.shared-workspace-config`,{agent:`copilot`,sourceAgent:`claude`})}),H({agent:`copilot`,prerequisites:[O(`copilot`,`mcp`,`project`,`config-entry`),O(`copilot`,`mcp`,`user`,`config-entry`)],attestation:P([N(z.coreEditors),N(z.writeProjectSkill)])}),U({agent:`copilot`,attestation:P([N(z.coreEditors),N(z.skillInstall)])}),W(`copilot`)],modes:{external:{requirements:[k([O(`copilot`,`mcp`,`user`,`config-entry`),O(`copilot`,`mcp`,`project`,`config-entry`)]),A([O(`copilot`,`skill`,`project`,`skill-bundle-copy`),O(`copilot`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[k([O(`copilot`,`mcp`,`user`,`config-entry`),O(`copilot`,`mcp`,`project`,`config-entry`)]),A([O(`copilot`,`skill`,`project`,`skill-bundle-copy`),O(`copilot`,`skill`,`user`,`skill-bundle-copy`)])]},acp:{requirements:[k([O(`copilot`,`mcp`,`session`,`session-injection`)]),A([O(`copilot`,`skill`,`project`,`skill-bundle-copy`),O(`copilot`,`skill`,`user`,`skill-bundle-copy`)])]}},acp:F({acpAgentId:`github-copilot-cli`,featuredOrder:4,harnessCli:null,readsEditorConfig:null,readsEditorConfigAttestation:{confidence:`assumed`,evidence:[L(`copilot CLI 1.0.80`,"The CLI does read a workspace `.mcp.json`, but nobody has observed the ACP adapter loading the managed entry inside a session. Claiming it would stand our injection down on an unverified read and risk a thread with no OK tools, so the claim stays unmade and OK keeps injecting.")],verifiedAgainst:{version:`1.0.80`,observedAt:`2026-08-20`}},verifiedPosture:null}),external:I({targetId:`copilot`,knownOrder:4,visible:!1,displayName:`GitHub Copilot`,schemes:[],installUrl:`https://docs.github.com/en/copilot/how-tos/copilot-cli/cli-getting-started`,tagline:`GitHub's terminal-native coding agent.`})}),opencode:D({id:`opencode`,setupDocSlug:p.opencode,offersConnectionRow:!0,detectionSources:[`cli-on-path:opencode`],satisfiers:[B({agent:`opencode`,strictness:[`reclaim-permissive`,`injection-functional`],attestation:P([N(z.cliEditors,`XDG config dir; the win32 location is by analogy and unverified`)])}),V({agent:`opencode`,consentClass:`none`,strictness:[`reclaim-permissive`,`injection-functional`],attestation:P([N(z.cliEditors,`the one project config that is not under a dotdir`)])}),H({agent:`opencode`,prerequisites:[O(`opencode`,`mcp`,`project`,`config-entry`)],attestation:P([N(z.coreEditors),N(z.repairSkills)])}),U({agent:`opencode`,attestation:P([N(z.coreEditors),N(z.skillInstall)])}),W(`opencode`)],modes:{external:{requirements:[k([O(`opencode`,`mcp`,`user`,`config-entry`),O(`opencode`,`mcp`,`project`,`config-entry`)]),A([O(`opencode`,`skill`,`project`,`skill-bundle-copy`),O(`opencode`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[k([O(`opencode`,`mcp`,`user`,`config-entry`),O(`opencode`,`mcp`,`project`,`config-entry`)]),A([O(`opencode`,`skill`,`project`,`skill-bundle-copy`),O(`opencode`,`skill`,`user`,`skill-bundle-copy`)])]},acp:{requirements:[k([O(`opencode`,`mcp`,`session`,`session-injection`),O(`opencode`,`mcp`,`user`,`config-entry`),O(`opencode`,`mcp`,`project`,`config-entry`)]),A([O(`opencode`,`skill`,`project`,`skill-bundle-copy`),O(`opencode`,`skill`,`user`,`skill-bundle-copy`)])]}},acp:F({acpAgentId:`opencode`,featuredOrder:5,harnessCli:`opencode`,readsEditorConfig:`opencode`,readsEditorConfigAttestation:P([N(z.cliEditors,`the managed MCP entry OK writes into the opencode config`),L(`opencode-acp adapter`,`The adapter runs opencode, which loads its own configured MCP servers, so the managed entry is already in the session.`)],R),verifiedPosture:null}),external:I({targetId:`opencode`,knownOrder:5,visible:!1,displayName:`OpenCode`,schemes:[],installUrl:`https://opencode.ai`,tagline:`Open-source terminal coding agent; bring any local model.`})}),openclaw:D({id:`openclaw`,setupDocSlug:p.openclaw,offersConnectionRow:!0,offerOnlyWhenDetected:!0,detectionSources:[`cli-on-path:openclaw`],satisfiers:[B({agent:`openclaw`,strictness:[`reclaim-permissive`],attestation:P([N(z.cliEditors,"the one two-level server map, nested under `mcp.servers`")])}),E({agent:`openclaw`,piece:`skill`,scope:`user`,kind:`central-store-copy`,pathId:ve,probe:j(`reclaim-permissive`),attestation:P([N(z.coreEditors),N(z.skillInstall,`the hub is written only when it already exists`)]),audience:`this-user`,guidance:M(`guidance.skill.central-store`,{agent:`openclaw`}),troubleshooting:M(`troubleshooting.openclaw.central-store-missing`,{agent:`openclaw`})})],modes:{external:{requirements:[k([O(`openclaw`,`mcp`,`user`,`config-entry`)]),A([O(`openclaw`,`skill`,`user`,`central-store-copy`)])]},terminal:{requirements:[k([O(`openclaw`,`mcp`,`user`,`config-entry`)]),A([O(`openclaw`,`skill`,`user`,`central-store-copy`)])]}},external:I({targetId:`openclaw`,knownOrder:8,visible:!1,displayName:`OpenClaw`,schemes:[],installUrl:`https://openclaw.ai`,tagline:`Open-source agent gateway; runs agents against your MCP servers.`})}),pi:D({id:`pi`,setupDocSlug:p.pi,offersConnectionRow:!0,detectionSources:[`cli-on-path:pi`],satisfiers:[E({agent:`pi`,piece:`mcp`,scope:`project`,kind:`managed-file`,pathId:x(`editor-project-config`,`pi`),probe:j(`reclaim-permissive`,`injection-functional`),attestation:P([N(z.cliEditors,`OK owns the whole file; currency is a first-line sentinel`),N(z.acpRegistry,`the thread provisions this file instead of injecting`)]),audience:`this-project`,guidance:M(`guidance.mcp.managed-file`,{agent:`pi`}),troubleshooting:M(`troubleshooting.pi.folder-trust`,{agent:`pi`})}),H({agent:`pi`,prerequisites:[O(`pi`,`mcp`,`project`,`managed-file`)],attestation:P([N(z.coreEditors),N(z.writeProjectSkill)]),troubleshooting:M(`troubleshooting.pi.folder-trust`,{agent:`pi`})}),U({agent:`pi`,attestation:P([N(z.coreEditors,`the agent home nests one level below the dotdir`),N(z.skillInstall)])})],modes:{external:{requirements:[k([O(`pi`,`mcp`,`project`,`managed-file`)]),A([O(`pi`,`skill`,`project`,`skill-bundle-copy`),O(`pi`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[k([O(`pi`,`mcp`,`project`,`managed-file`)]),A([O(`pi`,`skill`,`project`,`skill-bundle-copy`),O(`pi`,`skill`,`user`,`skill-bundle-copy`)])]},acp:{requirements:[k([O(`pi`,`mcp`,`project`,`managed-file`)]),A([O(`pi`,`skill`,`project`,`skill-bundle-copy`),O(`pi`,`skill`,`user`,`skill-bundle-copy`)])]}},acp:F({acpAgentId:`pi-acp`,featuredOrder:null,harnessCli:`pi`,readsEditorConfig:`pi`,readsEditorConfigAttestation:P([L(`pi-acp@0.0.33`,"Pi has no MCP client at all: it accepts `mcpServers` at session/new, stores them write-only and never connects. Its wiring is a managed extension FILE in the project, which OK provisions instead of injecting — the same mapping, a different shape."),N(z.threadManager,`the bridge route that provisions the extension instead of injecting`)],{version:`0.0.33`,observedAt:`2026-08-20`}),verifiedPosture:`autonomous`}),external:I({targetId:`pi`,knownOrder:6,visible:!1,displayName:`Pi`,schemes:[],installUrl:`https://pi.dev`,tagline:`Minimal open-source terminal coding agent, extensible in TypeScript.`})}),antigravity:D({id:`antigravity`,setupDocSlug:p.antigravity,offersConnectionRow:!0,offerOnlyWhenDetected:!0,detectionSources:[`cli-on-path:antigravity`],satisfiers:[B({agent:`antigravity`,strictness:[`reclaim-permissive`],attestation:P([N(z.cliEditors,`one user-global file shared by the IDE, the app and the CLI; per project you can only filter it`)])}),U({agent:`antigravity`,attestation:P([N(z.coreEditors),N(z.skillInstall)])})],modes:{external:{requirements:[k([O(`antigravity`,`mcp`,`user`,`config-entry`)]),A([O(`antigravity`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[k([O(`antigravity`,`mcp`,`user`,`config-entry`)]),A([O(`antigravity`,`skill`,`user`,`skill-bundle-copy`)])]}},external:I({targetId:`antigravity`,knownOrder:7,visible:!1,displayName:`Antigravity`,schemes:[],installUrl:`https://antigravity.google`,tagline:"Google's agentic IDE + `agy` terminal agent."})}),"lm-studio":D({id:`lm-studio`,setupDocSlug:p[`lm-studio`],offersConnectionRow:!0,offerOnlyWhenDetected:!0,detectionSources:[],satisfiers:[B({agent:`lm-studio`,strictness:[`reclaim-permissive`],installability:`not-installable`,notInstallableReason:`no-non-interactive-verb`,attestation:P([N(z.cliEditors,`two candidate locations, resolved against what already exists`),{kind:`upstream-issue`,ref:`lmstudio-ai/lmstudio-bug-tracker#1371`,note:`documented config path differs from the one the app reads on macOS`},N(z.presenceProbes,`deliberately absent from the presence probes`)]),troubleshooting:M(`troubleshooting.lm-studio.config-path-mismatch`,{agent:`lm-studio`})})],modes:{external:{requirements:[k([O(`lm-studio`,`mcp`,`user`,`config-entry`)]),A([])]}}}),hermes:D({id:`hermes`,setupDocSlug:p.hermes,offersConnectionRow:!0,offerOnlyWhenDetected:!0,detectionSources:[`cli-on-path:hermes`],satisfiers:[B({agent:`hermes`,strictness:[`reclaim-permissive`],attestation:P([N(z.cliEditors,`the one YAML target; the whole config is a single user-global file`)])})],modes:{external:{requirements:[k([O(`hermes`,`mcp`,`user`,`config-entry`)]),A([])]},terminal:{requirements:[k([O(`hermes`,`mcp`,`user`,`config-entry`)]),A([])]}},external:I({targetId:`hermes`,knownOrder:9,visible:!1,displayName:`Hermes`,schemes:[],installUrl:`https://hermes-agent.nousresearch.com`,tagline:`Nous Research's terminal coding agent.`})}),gemini:D({id:`gemini`,setupDocSlug:null,detectionSources:[`harness-bin:gemini`],satisfiers:[W(`gemini`)],modes:{acp:{requirements:[k([O(`gemini`,`mcp`,`session`,`session-injection`)]),A([])]}},acp:F({acpAgentId:`gemini`,featuredOrder:2,harnessCli:`gemini`,readsEditorConfig:null,readsEditorConfigAttestation:P([N(z.coreEditors,`gemini reaches OK as an ACP agent only; it has no editor config target`)],R),verifiedPosture:null})})};function Ie(e){return G[e]}var Le=Object.values(G).flatMap(e=>e.satisfiers),Re=new Map(Le.map(e=>[e.id,e]));function ze(e){return Re.get(e)}var K=Object.values(G).flatMap(e=>e.acp===void 0?[]:[{record:e,acp:e.acp}]).sort((e,t)=>e.acp.acpAgentId.localeCompare(t.acp.acpAgentId));K.filter(({acp:e})=>e.featuredOrder!==null).sort((e,t)=>(e.acp.featuredOrder??0)-(t.acp.featuredOrder??0)).map(({acp:e})=>e.acpAgentId);var Be=Object.fromEntries(K.flatMap(({acp:e})=>e.harnessCli===null?[]:[[e.acpAgentId,e.harnessCli]]));Object.fromEntries(K.flatMap(({acp:e})=>e.harnessReadsEditorConfig===null?[]:[[e.acpAgentId,e.harnessReadsEditorConfig]]));var Ve=Object.fromEntries(K.flatMap(({acp:e})=>e.verifiedPosture===null?[]:[[e.acpAgentId,e.verifiedPosture]])),He=Object.values(G).flatMap(e=>e.external===void 0?[]:[e.external]).sort((e,t)=>e.knownOrder-t.knownOrder),Ue=He.map(({targetId:e,displayName:t,appBrandName:n,schemes:r,installUrl:i,platforms:a,tagline:o})=>({id:e,displayName:t,...n===void 0?{}:{appBrandName:n},schemes:r,installUrl:i,platforms:a,...o===void 0?{}:{tagline:o}}));function We(e,t){return t==null||e.platforms.includes(t)}var Ge=new Set(He.filter(e=>e.visible).map(e=>e.targetId)),Ke=Ue.filter(e=>Ge.has(e.id)),qe=m.filter(e=>G[e].offersConnectionRow),Je=new Map(Object.values(G).flatMap(e=>e.external===void 0?[]:[[e.external.targetId,e.id]]));function Ye(e){return Je.get(e)}var Xe=new Map(Object.values(G).flatMap(e=>e.modes.terminal===void 0?[]:[[e.id,e.id]]));function Ze(e){return Xe.get(e)}Object.fromEntries(Object.values(G).flatMap(e=>{let t=e.satisfiers.find(e=>e.piece===`mcp`&&e.scope===`project`&&e.consentClass!==`none`)?.consentClass;return t===void 0?[]:[[e.id,t]]})),new Set(oe);var Qe=[{id:`mcp-preapproval`,piece:`mcp`,scope:`project`,requiredStrictness:`pre-approval-exact`,revokedByForeignEntry:!1},{id:`tool-autoapprove`,piece:`mcp`,requiredStrictness:`pre-approval-exact`,revokedByForeignEntry:!0}];Qe.map(e=>e.id);var q={satisfied:{counts:!0,exception:null},"present-consent-unknown":{counts:!0,exception:`info`},absent:{counts:!1,exception:null},foreign:{counts:!1,exception:`warning`},"foreign-replaceable":{counts:!1,exception:`warning`},drifted:{counts:!1,exception:`warning`},excluded:{counts:!1,exception:`info`},"structural-na":{counts:!1,exception:`info`},undetected:{counts:!1,exception:null},unprobeable:{counts:!0,exception:`info`},unprobed:{counts:!1,exception:`info`}};c([`count-unverified`,`not-count`]);var $e={acp:{unprobed:`count-unverified`},terminal:{unprobed:`count-unverified`},external:{unprobed:`not-count`}};c([`acp-catalog-supported`,`harness-cli-on-path`,`os-scheme-handler`]);var et={acp:{signal:`acp-catalog-supported`,unresolved:`show`,negativeOutranksOverride:!0},terminal:{signal:`harness-cli-on-path`,unresolved:`show`,negativeOutranksOverride:!1},external:{signal:`os-scheme-handler`,unresolved:`hide`,negativeOutranksOverride:!1}};function J(e){return typeof e==`object`&&!!e}function Y(e,t){if(!J(e))return;let{satisfiers:n}=e;if(!J(n))return;let r=n[t];if(!J(r))return;let{state:i,strictness:a,sharedWith:o}=r;if(typeof i!=`string`||i.length===0)return;let s=Array.isArray(a)?a.filter(e=>typeof e==`string`):void 0,c=Array.isArray(o)?o.filter(e=>typeof e==`string`&&_(e)):void 0;return{state:i,...s===void 0?{}:{strictness:s},...c===void 0||c.length===0?{}:{sharedWith:c}}}function tt(e,t){if(!J(e))return!1;let{detected:n}=e;return Array.isArray(n)&&n.includes(t)}function X(e,t){return e.probe.mode===`unprobeable`?`unprobeable`:Y(t,e.id)?.state??`unprobed`}function Z(e){return f(e)?q[e]:q.unprobed}function nt(e,t){let n=e.filter(e=>{let n=ze(e);return n===void 0?!0:!Z(X(n,t)).counts});return n.length===e.length?n:[]}function rt(e){return Z(e).exception===`warning`}function it(e){return e.state===`foreign`?`foreign`:e.state===`structural-na`?`structural-na`:e.installability===`not-installable`?`not-installable`:e.agentFolded?`agent-undetected`:null}function at(e,t){let n=t?.probed===!0?tt(t,e.id):null;return{detected:n,folded:e.offerOnlyWhenDetected&&n===!1}}function ot(e,t){return(Y(t,e.id)?.sharedWith??[]).filter(t=>t!==e.agent)}var st=de.filter(e=>e!==`session`);function ct(e){return ie.includes(e)}function lt(e,t,n){let r=[];for(let i of e.satisfiers){if(!ct(i.kind))continue;let a=X(i,t),o=t?.satisfiers?.[i.id]?.path,s=Z(a),c=nt(i.prerequisites,t),l=it({state:a,installability:i.installability,agentFolded:n});r.push({satisfierId:i.id,agentId:e.id,piece:i.piece,scope:i.scope,kind:i.kind,...i.pathId===void 0?{}:{pathId:i.pathId},...o===void 0?{}:{resolvedPath:o},audience:i.audience,state:a,checked:s.counts,exception:s.exception,folded:a===`undetected`,enabled:l===null,disabledReason:l,sharedWith:i.sharedWith,sharedFolderWith:ot(i,t),prerequisites:i.prerequisites,unmetPrerequisites:c,consentClass:i.consentClass,installability:i.installability,...i.guidance===void 0?{}:{guidance:i.guidance},...i.followup===void 0?{}:{followup:i.followup},troubleshooting:i.troubleshooting})}return r}function ut(e){let t=[];for(let n of st){let r=e.filter(e=>e.scope===n);r.length!==0&&t.push({scope:n,cells:r})}return t}function dt(e,t,n){let{detected:r,folded:i}=at(e,n),a=lt(e,t,i);return{agentId:e.id,detected:r,folded:i,setupDocSlug:e.setupDocSlug,scopes:ut(a)}}function ft(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`&&_(e)):h}function pt(e={}){let{agentIds:t,probes:n,detection:r}=e;return{rows:ft(t).map(e=>G[e]).filter(e=>e!==void 0).map(e=>dt(e,n,r))}}var Q={agent:g},mt={"followup.enable-manually":{params:e(Q)},"guidance.mcp.user-config":{params:e(Q)},"guidance.mcp.project-config":{params:e(Q)},"guidance.mcp.session-injection":{params:e(Q)},"guidance.mcp.managed-file":{params:e(Q)},"guidance.skill.project":{params:e(Q)},"guidance.skill.user":{params:e(Q)},"guidance.skill.central-store":{params:e(Q)},"troubleshooting.claude.project-entry-not-approved":{params:e(Q)},"troubleshooting.claude-desktop.per-tool-approval":{params:e(Q)},"troubleshooting.cursor.project-entry-not-loaded":{params:e({...Q,server:u().optional()})},"troubleshooting.codex.desktop-project-config":{params:e({...Q,honoredByDesktop:t()})},"troubleshooting.codex.folder-trust":{params:e(Q)},"troubleshooting.copilot.shared-workspace-config":{params:e({...Q,sourceAgent:g})},"troubleshooting.openclaw.central-store-missing":{params:e(Q)},"troubleshooting.pi.folder-trust":{params:e(Q)},"troubleshooting.lm-studio.config-path-mismatch":{params:e(Q)}};Object.keys(mt).sort(),Le.flatMap(e=>e.probe.mode===`probeable`?[{satisfierId:e.id,agent:e.agent,piece:e.piece,scope:e.scope,kind:e.kind,pathId:e.pathId??null,strictness:e.probe.strictness}]:[]).map(e=>e.satisfierId);var ht={verified:3,unverifiable:2,unverified:1};function gt(e,t){let n=et[e],r=typeof t==`boolean`?t:null;return{signal:n.signal,resolved:r,show:r??n.unresolved===`show`}}function _t(e,t,n){let r=ze(e);if(r===void 0)return{id:e,state:`absent`,counts:!1,confidence:`unverified`,exception:q.absent.exception,consentClass:`none`,troubleshooting:[]};let i=X(r,n),a=!f(i)||i===`unprobed`,o=$e[t].unprobed===`count-unverified`;return{id:e,state:i,counts:a?o:Z(i).counts,confidence:a?`unverified`:i===`unprobeable`?`unverifiable`:`verified`,exception:Z(i).exception,consentClass:r.consentClass,...r.guidance===void 0?{}:{guidance:r.guidance},...r.followup===void 0?{}:{followup:r.followup},troubleshooting:r.troubleshooting}}function vt(e,t,n){let r=e.satisfiedByAny.map(e=>_t(e,t,n));if(r.length===0)return{piece:e.piece,level:e.level,status:`nothing-required`,confidence:null,satisfiedBy:null,options:r};let i=null;for(let e of r)e.counts&&(i===null||ht[e.confidence]>ht[i.confidence])&&(i=e);return{piece:e.piece,level:e.level,status:i===null?`unmet`:`met`,confidence:i?.confidence??null,satisfiedBy:i?.id??null,options:r}}var yt=[`absent`,`structural-na`];function bt(e,t){let n=[];for(let r of Qe){let i=e.satisfiers.filter(e=>e.piece===r.piece&&e.kind!==`session-injection`&&(r.scope===void 0||e.scope===r.scope));r.revokedByForeignEntry&&i.some(e=>yt.includes(X(e,t))?!1:!$(Y(t,e.id),r.requiredStrictness))||i.some(e=>e.probe.mode!==`probeable`||!e.probe.strictness.includes(r.requiredStrictness)||!Z(X(e,t)).counts?!1:$(Y(t,e.id),r.requiredStrictness))&&n.push(r.id)}return n}function $(e,t){return e?.strictness?.includes(t)===!0}function xt(e){let{agentId:t,mode:n,probes:r,modeSignal:i}=e,a=_(t)?Ie(t):void 0;if(a===void 0)return{agentId:t,mode:n,verdict:`not-registered`,visibility:{...gt(n,i),show:!0},requirements:[],grantedCapabilities:[],modeCaveats:[]};let o=gt(n,i),s=a.modes[n];if(s===void 0)return{agentId:t,mode:n,verdict:`mode-not-available`,visibility:o,requirements:[],grantedCapabilities:[],modeCaveats:[]};let c=s.requirements.map(e=>vt(e,n,r)),l=c.some(e=>e.level===`required`&&e.status===`unmet`),u=c.some(e=>e.status===`unmet`);return{agentId:t,mode:n,verdict:l?`blocked`:u?`ready-with-nudges`:`ready`,visibility:o,requirements:c,grantedCapabilities:bt(a,r),modeCaveats:s.caveats}}export{Be as a,qe as c,Ye as d,Ze as f,ye as h,rt as i,Ue as l,We as m,pt as n,Ve as o,Ie as p,tt as r,G as s,xt as t,Ke as u};
|