@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./dist-B-LAoRmW.mjs";import{_ as e}from"./init-DsTDW8PN.mjs";export{e as runInit};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,o as t,t as n}from"./rolldown-runtime-tZXQYakl.mjs";import{Ba as r,Cf as i,Ju as a,K as o,Tf as s,Uc as c,V as l,Va as u,_ as d,_f as f,a as p,af as m,bf as h,cf as g,dd as _,ff as v,if as y,kf as b,lf as x,mc as S,md as C,of as ee,pf as te,tt as ne,vf as re,wf as ie,xf as ae,z as oe}from"./md-manager-BGnqyqi1-
|
|
1
|
+
import{i as e,o as t,t as n}from"./rolldown-runtime-tZXQYakl.mjs";import{Ba as r,Cf as i,Ju as a,K as o,Tf as s,Uc as c,V as l,Va as u,_ as d,_f as f,a as p,af as m,bf as h,cf as g,dd as _,ff as v,if as y,kf as b,lf as x,mc as S,md as C,of as ee,pf as te,tt as ne,vf as re,wf as ie,xf as ae,z as oe}from"./md-manager-BGnqyqi1-CPATjLIj.mjs";import{Ao as se,At as ce,F as le,Fo as ue,Fr as de,Hi as fe,Jo as pe,Ko as me,No as he,R as ge,U as _e,Vr as ve,Xo as ye,Yo as be,Yr as xe,Zn as Se,at as Ce,ci as we,cs as Te,di as Ee,dn as De,ir as Oe,ja as ke,m as Ae,ma as je,ms as Me,pa as Ne,qo as Pe,qr as Fe,rt as Ie,ts as w,va as Le,z as Re}from"./dist-B-LAoRmW.mjs";import{i as T,n as E,o as D,r as ze,s as O,t as k}from"./colors-r_owlCuY.mjs";import{t as A}from"./is-object-BGze3w87.mjs";import{t as Be}from"./constants-QhGcX1jP.mjs";import{t as Ve}from"./preview-DCs1uVu5.mjs";import{createRequire as He}from"node:module";import{execFileSync as Ue}from"node:child_process";import We,{basename as Ge,dirname as j,isAbsolute as Ke,join as M,posix as qe,relative as N,resolve as P,sep as F,win32 as Je}from"node:path";import I from"node:process";import{fileURLToPath as Ye}from"node:url";import{cpSync as Xe,existsSync as L,lstatSync as Ze,mkdirSync as Qe,readFileSync as R,readdirSync as $e,readlinkSync as et,realpathSync as tt,rmSync as nt,statSync as rt,writeFileSync as it}from"node:fs";import{homedir as z}from"node:os";import{inspect as at,stripVTControlCharacters as ot,styleText as B}from"node:util";import*as st from"node:readline";import{AsyncLocalStorage as ct,AsyncResource as lt}from"node:async_hooks";var ut=n((e=>{var t=class extends Error{constructor(e,t,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}},n=class extends t{constructor(e){super(1,`commander.invalidArgument`,e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};e.CommanderError=t,e.InvalidArgumentError=n})),dt=n((e=>{let{InvalidArgumentError:t}=ut();var n=class{constructor(e,t){switch(this.description=t||``,this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case`<`:this.required=!0,this._name=e.slice(1,-1);break;case`[`:this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e}this._name.endsWith(`...`)&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(e,t){return t===this.defaultValue||!Array.isArray(t)?[e]:(t.push(e),t)}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,n)=>{if(!this.argChoices.includes(e))throw new t(`Allowed choices are ${this.argChoices.join(`, `)}.`);return this.variadic?this._collectValue(e,n):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function r(e){let t=e.name()+(e.variadic===!0?`...`:``);return e.required?`<`+t+`>`:`[`+t+`]`}e.Argument=n,e.humanReadableArgName=r})),ft=n((e=>{let{humanReadableArgName:t}=dt();var n=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(e){this.helpWidth=this.helpWidth??e.helpWidth??80}visibleCommands(e){let t=e.commands.filter(e=>!e._hidden),n=e._getHelpCommand();return n&&!n._hidden&&t.push(n),this.sortSubcommands&&t.sort((e,t)=>e.name().localeCompare(t.name())),t}compareOptions(e,t){let n=e=>e.short?e.short.replace(/^-/,``):e.long.replace(/^--/,``);return n(e).localeCompare(n(t))}visibleOptions(e){let t=e.options.filter(e=>!e.hidden),n=e._getHelpOption();if(n&&!n.hidden){let r=n.short&&e._findOption(n.short),i=n.long&&e._findOption(n.long);!r&&!i?t.push(n):n.long&&!i?t.push(e.createOption(n.long,n.description)):n.short&&!r&&t.push(e.createOption(n.short,n.description))}return this.sortOptions&&t.sort(this.compareOptions),t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let t=[];for(let n=e.parent;n;n=n.parent){let e=n.options.filter(e=>!e.hidden);t.push(...e)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(t=>{t.description=t.description||e._argsDescription[t.name()]||``}),e.registeredArguments.find(e=>e.description)?e.registeredArguments:[]}subcommandTerm(e){let n=e.registeredArguments.map(e=>t(e)).join(` `);return e._name+(e._aliases[0]?`|`+e._aliases[0]:``)+(e.options.length?` [options]`:``)+(n?` `+n:``)}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleSubcommandTerm(t.subcommandTerm(n)))),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleOptionTerm(t.optionTerm(n)))),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleOptionTerm(t.optionTerm(n)))),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleArgumentTerm(t.argumentTerm(n)))),0)}commandUsage(e){let t=e._name;e._aliases[0]&&(t=t+`|`+e._aliases[0]);let n=``;for(let t=e.parent;t;t=t.parent)n=t.name()+` `+n;return n+t+` `+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(e=>JSON.stringify(e)).join(`, `)}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue==`boolean`)&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&t.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&t.push(`env: ${e.envVar}`),t.length>0){let n=`(${t.join(`, `)})`;return e.description?`${e.description} ${n}`:n}return e.description}argumentDescription(e){let t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(e=>JSON.stringify(e)).join(`, `)}`),e.defaultValue!==void 0&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),t.length>0){let n=`(${t.join(`, `)})`;return e.description?`${e.description} ${n}`:n}return e.description}formatItemList(e,t,n){return t.length===0?[]:[n.styleTitle(e),...t,``]}groupItems(e,t,n){let r=new Map;return e.forEach(e=>{let t=n(e);r.has(t)||r.set(t,[])}),t.forEach(e=>{let t=n(e);r.has(t)||r.set(t,[]),r.get(t).push(e)}),r}formatHelp(e,t){let n=t.padWidth(e,t),r=t.helpWidth??80;function i(e,r){return t.formatItem(e,n,r,t)}let a=[`${t.styleTitle(`Usage:`)} ${t.styleUsage(t.commandUsage(e))}`,``],o=t.commandDescription(e);o.length>0&&(a=a.concat([t.boxWrap(t.styleCommandDescription(o),r),``]));let s=t.visibleArguments(e).map(e=>i(t.styleArgumentTerm(t.argumentTerm(e)),t.styleArgumentDescription(t.argumentDescription(e))));if(a=a.concat(this.formatItemList(`Arguments:`,s,t)),this.groupItems(e.options,t.visibleOptions(e),e=>e.helpGroupHeading??`Options:`).forEach((e,n)=>{let r=e.map(e=>i(t.styleOptionTerm(t.optionTerm(e)),t.styleOptionDescription(t.optionDescription(e))));a=a.concat(this.formatItemList(n,r,t))}),t.showGlobalOptions){let n=t.visibleGlobalOptions(e).map(e=>i(t.styleOptionTerm(t.optionTerm(e)),t.styleOptionDescription(t.optionDescription(e))));a=a.concat(this.formatItemList(`Global Options:`,n,t))}return this.groupItems(e.commands,t.visibleCommands(e),e=>e.helpGroup()||`Commands:`).forEach((e,n)=>{let r=e.map(e=>i(t.styleSubcommandTerm(t.subcommandTerm(e)),t.styleSubcommandDescription(t.subcommandDescription(e))));a=a.concat(this.formatItemList(n,r,t))}),a.join(`
|
|
2
2
|
`)}displayWidth(e){return r(e).length}styleTitle(e){return e}styleUsage(e){return e.split(` `).map(e=>e===`[options]`?this.styleOptionText(e):e===`[command]`?this.styleSubcommandText(e):e[0]===`[`||e[0]===`<`?this.styleArgumentText(e):this.styleCommandText(e)).join(` `)}styleCommandDescription(e){return this.styleDescriptionText(e)}styleOptionDescription(e){return this.styleDescriptionText(e)}styleSubcommandDescription(e){return this.styleDescriptionText(e)}styleArgumentDescription(e){return this.styleDescriptionText(e)}styleDescriptionText(e){return e}styleOptionTerm(e){return this.styleOptionText(e)}styleSubcommandTerm(e){return e.split(` `).map(e=>e===`[options]`?this.styleOptionText(e):e[0]===`[`||e[0]===`<`?this.styleArgumentText(e):this.styleSubcommandText(e)).join(` `)}styleArgumentTerm(e){return this.styleArgumentText(e)}styleOptionText(e){return e}styleArgumentText(e){return e}styleSubcommandText(e){return e}styleCommandText(e){return e}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}preformatted(e){return/\n[^\S\r\n]/.test(e)}formatItem(e,t,n,r){let i=` `.repeat(2);if(!n)return i+e;let a=e.padEnd(t+e.length-r.displayWidth(e)),o=(this.helpWidth??80)-t-2-2,s;return s=o<this.minWidthToWrap||r.preformatted(n)?n:r.boxWrap(n,o).replace(/\n/g,`
|
|
3
3
|
`+` `.repeat(t+2)),i+a+` `.repeat(2)+s.replace(/\n/g,`\n${i}`)}boxWrap(e,t){if(t<this.minWidthToWrap)return e;let n=e.split(/\r\n|\n/),r=/[\s]*[^\s]+/g,i=[];return n.forEach(e=>{let n=e.match(r);if(n===null){i.push(``);return}let a=[n.shift()],o=this.displayWidth(a[0]);n.forEach(e=>{let n=this.displayWidth(e);if(o+n<=t){a.push(e),o+=n;return}i.push(a.join(``));let r=e.trimStart();a=[r],o=this.displayWidth(r)}),i.push(a.join(``))}),i.join(`
|
|
4
4
|
`)}};function r(e){return e.replace(/\x1b\[\d*(;\d*)*m/g,``)}e.Help=n,e.stripColor=r})),pt=n((e=>{let{InvalidArgumentError:t}=ut();var n=class{constructor(e,t){this.flags=e,this.description=t||``,this.required=e.includes(`<`),this.optional=e.includes(`[`),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=a(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith(`--no-`)),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let t=e;return typeof e==`string`&&(t={[e]:!0}),this.implied=Object.assign(this.implied||{},t),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_collectValue(e,t){return t===this.defaultValue||!Array.isArray(t)?[e]:(t.push(e),t)}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,n)=>{if(!this.argChoices.includes(e))throw new t(`Allowed choices are ${this.argChoices.join(`, `)}.`);return this.variadic?this._collectValue(e,n):e},this}name(){return this.long?this.long.replace(/^--/,``):this.short.replace(/^-/,``)}attributeName(){return this.negate?i(this.name().replace(/^no-/,``)):i(this.name())}helpGroup(e){return this.helpGroupHeading=e,this}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},r=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(e=>{e.negate?this.negativeOptions.set(e.attributeName(),e):this.positiveOptions.set(e.attributeName(),e)}),this.negativeOptions.forEach((e,t)=>{this.positiveOptions.has(t)&&this.dualOptions.add(t)})}valueFromOption(e,t){let n=t.attributeName();if(!this.dualOptions.has(n))return!0;let r=this.negativeOptions.get(n).presetArg,i=r!==void 0&&r;return t.negate===(i===e)}};function i(e){return e.split(`-`).reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}function a(e){let t,n,r=/^-[^-]$/,i=/^--[^-]/,a=e.split(/[ |,]+/).concat(`guard`);if(r.test(a[0])&&(t=a.shift()),i.test(a[0])&&(n=a.shift()),!t&&r.test(a[0])&&(t=a.shift()),!t&&i.test(a[0])&&(t=n,n=a.shift()),a[0].startsWith(`-`)){let t=a[0],n=`option creation failed due to '${t}' in option flags '${e}'`;throw/^-[^-][^-]/.test(t)?Error(`${n}
|
|
@@ -689,5 +689,5 @@ export default function okBridge(pi: {
|
|
|
689
689
|
`));let g=`${s?``:``}${m}`;return g!==o&&w(e,g,{mode:La(e)}),a&&g===o?{kind:`unchanged`}:{kind:d?`overwritten`:`written`}}const Ao=e=>e!==`project`,jo=e=>e!==`user`;async function Mo(){let e=await Ka({message:`Where should the MCP server be configured?
|
|
690
690
|
`,required:!1,theme:{icon:{checked:`[x]`,unchecked:`[ ]`}},choices:[{name:`User-level (~/.claude.json, ~/.cursor/mcp.json, …)`,value:`user`,checked:!0},{name:`Project-level (.mcp.json, .cursor/mcp.json, …)`,value:`project`,checked:!0}]});return e.includes(`user`)&&e.includes(`project`)?`both`:e.includes(`user`)?`user`:e.includes(`project`)?`project`:null}async function No(e){return e.mcp===!1?null:e.scope?e.scope:e.isTTY??process.stdout.isTTY?(e.promptFn??Mo)():`both`}async function Po(e){return Za({message:`How do you want to handle OpenKnowledge config files (.ok/, .mcp.json)?`,default:e,choices:[{name:`Share with my team (commit alongside content)`,value:`shared`,description:`OK config gets committed alongside your project content.`},{name:`Local only (keep out of git via .git/info/exclude)`,value:`local-only`,description:`OK config stays on this machine only; teammates do not see it. Safe escape hatch via \`${i()} config-sharing share\`.`}]})}async function Fo(e){if(e.sharing!==void 0)return e.sharing;let t=oa(e.projectRoot)===`local-only`||e.freshProject===!0?`local-only`:`shared`;return e.isTTY??process.stdout.isTTY?(e.promptFn??Po)(t):t}var Io=class extends Error{constructor(e){super(e),this.name=`ContentDirError`}};function Lo(e){if(e===void 0||e===!0)return new Set(Ie);if(e===!1)return new Set;let t=e.split(`,`).map(e=>e.trim()).filter(Boolean);return new Set(ce.filter(e=>t.includes(e)))}function Ro(e,t,n){let r=P(n,e),i;try{i=rt(r)}catch(e){let t=e.code;throw t===`ENOENT`?new Io(`--content-dir path does not exist: ${r}`):new Io(`--content-dir path is not accessible (${t??`unknown error`}): ${r}`)}if(!i.isDirectory())throw new Io(`--content-dir must be a directory: ${r}`);let a=zo(t),o=zo(r),s=N(a,o);if(s.startsWith(`..`)||Ke(s))throw new Io(`--content-dir must be inside the project root (${t}); got ${r}`);return s===``?`.`:s}function zo(e){try{return tt(e)}catch{return e}}const Bo=`open-knowledge-ui`;function Vo(e,t,n){try{let r=e.detectPath?.(t,n)??j(e.configPath(t,n));return L(r)}catch{return!1}}function Ho(e,t,n){try{let r=P(j(e.configPath(t,n))),i=P(e.detectPath?.(t,n)??r);return i===r||r.startsWith(i+F)}catch{return!1}}function Uo(e,t,n,r,i){let a=e.serverName(t),o;try{o=i??e.configPath(t,r)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:``,serverName:a,error:t instanceof Error?t.message:String(t)}}let s=n.pruneOnly===!0;if(s&&(e.format===`file`||!L(o)))return{editorId:e.id,label:e.label,action:`skipped-flag`,configPath:o,serverName:a,...i===void 0?{}:{configScope:`project`}};let c=!n.skipAvailabilityCheck||e.offerOnlyWhenDetected===!0||Ho(e,t,r);if(!i&&c&&!Vo(e,t,r))return{editorId:e.id,label:e.label,action:`skipped-missing`,configPath:o,serverName:a};if(i!==void 0)try{ba(o,t)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:t instanceof Error?t.message:String(t),configScope:`project`}}if(e.format===`file`)return Go(e,o,a,n,{isProjectScope:i!==void 0});let l;try{l=e.buildEntry(t,n)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:t instanceof Error?t.message:String(t),...i===void 0?{}:{configScope:`project`}}}try{s||Qe(j(o),{recursive:!0})}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:t instanceof Error?t.message:String(t),...i===void 0?{}:{configScope:`project`}}}let u={action:`written`},d;try{Te(`${o}.lock`,()=>{let t=lo(o).writePath;if(s||Qe(j(t),{recursive:!0}),e.format===`toml`){let r=Eo(ni(),t,e.topLevelKey,a,l,n.replaceEntry===!0,n.pruneOnly===!0);u.action=r.kind,r.kind===`declined`&&(u.declineReason=r.reason);return}if(e.format===`yaml`){let r=ko(t,e.topLevelKey,a,l,n.replaceEntry===!0,n.pruneOnly===!0);u.action=r.kind,r.kind===`declined`&&(u.declineReason=r.reason);return}let r=To(t,e.topLevelKey,a,l,e.serverMapSubKey,n.replaceEntry===!0,n.pruneOnly===!0);u.action=r.kind,r.kind===`declined`&&(u.declineReason=r.reason)},{onWarn:(e,t)=>process.stderr.write(`[ok] ${e} ${JSON.stringify(t)}\n`)})}catch(e){d=e instanceof Error?e:Error(String(e))}return d?{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:d.message,...i===void 0?{}:{configScope:`project`}}:u.action===`declined`?{editorId:e.id,label:e.label,action:`declined`,configPath:o,serverName:a,declineReason:u.declineReason,...i===void 0?{}:{configScope:`project`}}:{editorId:e.id,label:e.label,action:u.action===`unchanged`?`skipped-flag`:u.action,configPath:o,serverName:a,...i===void 0?{}:{configScope:`project`}}}const Wo={pi:to};function Go(e,t,n,r,i){let a=i.isProjectScope?{configScope:`project`}:{},o=r=>({editorId:e.id,label:e.label,action:`failed`,configPath:t,serverName:n,error:r instanceof Error?r.message:String(r),...a}),s=Wo[e.id];if(!s)return o(Error(`No managed-file builder registered for editor "${e.id}" (format: 'file' targets need a MANAGED_FILE_BUILDERS entry).`));let c;try{c=s(r)}catch(e){return o(e)}try{Qe(j(t),{recursive:!0})}catch(e){return o(e)}let l={action:`written`};try{Te(`${t}.lock`,()=>{let e=null;try{e=R(t,`utf-8`)}catch{e=null}if(e===c){l.action=`overwritten`;return}w(t,c,e===null?void 0:{mode:La(t)}),l.action=e===null?`written`:`overwritten`},{onWarn:(e,t)=>process.stderr.write(`[ok] ${e} ${JSON.stringify(t)}\n`)})}catch(e){return o(e)}return{editorId:e.id,label:e.label,action:l.action,configPath:t,serverName:n,...a}}function Ko(e,t){let n=e.projectConfigPath?.(t);if(!(!n||!L(n)))return{editorId:e.id,label:e.label,path:n}}async function qo(e){let t=$i(e.editors).filter(e=>e.scope===`global`),n={mode:`published`,skipAvailabilityCheck:!0,...e.replaceEntry===!0?{replaceEntry:!0}:{},...e.pruneOnly===!0?{pruneOnly:!0}:{}};return t.map(t=>Uo(t,``,n,e.home))}function Jo(e,t,n,r){let i=Xo(e,t,n,r);return i.kind===`present`?i.entry:null}function Yo(e,t,n,r){let i=wo(e,t,r);if(!A(i))return{kind:`no-entry`};let a=i[n];return A(a)?{kind:`present`,entry:a}:{kind:`no-entry`}}function Xo(e,t,n,r){let i;try{i=r??e.configPath(t,n)}catch{return{kind:`absent`}}if(!L(i))return{kind:`absent`};try{if(rt(i).size>vo)return{kind:`decline`,reason:`oversize`}}catch(e){return{kind:`decline`,reason:Na(e)}}let a;try{a=R(i,`utf-8`)}catch(e){return{kind:`decline`,reason:Na(e)}}if(a.trim()===``)return{kind:`absent`};if(e.format===`file`)return{kind:`present`,entry:eo(a)};let o=e.serverName(t);if(e.format===`toml`){let t;try{t=ni().parseToObject(a)}catch{return{kind:`decline`,reason:`unparseable`}}return Yo(t,e.topLevelKey,o,e.serverMapSubKey)}if(e.format===`yaml`){let t=(0,Ur.parseDocument)(a.charCodeAt(0)===65279?a.slice(1):a);return t.errors.length>0?{kind:`decline`,reason:`unparseable`}:Yo(t.toJS()??{},e.topLevelKey,o,e.serverMapSubKey)}let s=po(a);return s?mo(s,e.topLevelKey)>1?{kind:`decline`,reason:`duplicate-container`}:Yo(Pe(s),e.topLevelKey,o,e.serverMapSubKey):{kind:`decline`,reason:`unparseable`}}async function Zo(e={}){let t=P(e.cwd??process.cwd()),n=io(t,{homeDir:e.home}),r=n.projectRoot;if(xe(r,e.home??z()))throw new _e(r);if(Fe(r))throw new le(r);let a=!L(M(r,`.ok`)),o=n.gitRootPromoted?N(r,t):void 0,s=e.contentDir===void 0?n.defaultContentDir:Ro(e.contentDir,r,t);n.ancestorPromoted?console.log(`[ok] Opened existing project at ${r}`):n.gitRootPromoted&&a&&s===`.`&&process.stderr.write(`${O(`[ok] Content scope promoted to the git repo root: ${r}`)}\n Ran in ${o}/, but .ok/ lives at the git root (one .ok/ per git repo),\n so the whole repo is now the content scope. To narrow it, re-run with\n \`${i()} init --content-dir .\`, or set content.dir: ${o} in .ok/config.yml.\n`);let c={mode:e.devMcp?`dev`:`published`},l=await Oe(r),d;try{d=de(r,{contentDir:s})}catch(t){let i=$.claude.configPath(r,e.home);return{projectRoot:r,contentCreated:[],contentUpdated:[],contentSkipped:[],editors:[],projectSkills:[],legacyProjectConfigs:[],didGitInit:l.didInit,rootGitignoreCreated:!1,gitRootPromoted:n.gitRootPromoted,promotedFromDir:o,contentDirRequested:e.contentDir,contentScaffoldFailed:!0,mcpAction:`failed`,mcpPath:i,mcpError:`Content scaffolding failed: ${t instanceof Error?t.message:String(t)}`,sharing:{kind:`no-exclude`,reason:`no-git`,localOnlyRequested:!1}}}let f=d.created.includes(Be),p=!1;if(l.didInit)try{p=ue(r)===`created`}catch(e){console.warn(`[ok] Skipping .gitignore seed at ${r}: ${e instanceof Error?e.message:String(e)}`)}try{Ne(r)===`removed`&&console.warn(`[ok] Removed the OpenKnowledge project-skill lines from .gitignore. The skill is ordinary project content now — commit it if your team wants it on clone.`)}catch(e){console.warn(`[ok] Skipping project-skill .gitignore cleanup at ${r}: ${e instanceof Error?e.message:String(e)}`)}let m=await No({scope:e.scope,mcp:e.mcp,isTTY:e.isTTY,promptFn:e.promptFn}),h=e.editors??rs(r,e.home),g=e.editors??h,_=$i(h),v=$i(g),y=e.mcp===!1||m===null,b=Array.from(new Map([..._,...y?[]:v].map(e=>[e.id,e])).values()),x=_.filter(t=>Vo(t,r,e.home)),S=[],C=[],ee=new Set;for(let t of b){if(y){let n=``;try{n=t.configPath(r,e.home)}catch{}S.push({editorId:t.id,label:t.label,action:`skipped-flag`,configPath:n,serverName:t.serverName(r)});continue}if(Ao(m)&&_.includes(t)&&t.scope===`global`&&S.push(Uo(t,r,c,e.home)),jo(m)&&v.includes(t)&&t.projectConfigPath){let n=t.projectConfigPath(r),i=Uo(t,r,c,e.home,n);S.push(i),(i.action===`written`||i.action===`overwritten`)&&ee.add(n)}}let te=new Set;for(let t of v){let n=t.projectSkillPath?.(r);!n||te.has(n)||(te.add(n),C.push(ja(t,r,{home:e.home})))}let ne=Aa(r,v.map(e=>e.id));ne&&C.push(ne);let re=C.filter(e=>e.action===`written`||e.action===`overwritten`).map(e=>e.editorId);if(re.length>0){let t=e.home??z();je({source:u,skills:[Ae.project],agents:re,scope:r},{home:t,enabled:ke(t).enabled})}let ie=!y&&m!==null&&jo(m)?v.filter(e=>!e.projectConfigPath&&!e.projectSkillPath).map(e=>e.label):void 0,ae=y?[]:x.map(e=>Ko(e,r)).filter(e=>e!==void 0).filter(e=>!ee.has(e.path)),oe=e.installUserSkill??ve,se=e.home??z(),pe=Lo(e.skills),me=typeof e.skills!=`string`,ge=!1,ye=!1,be=!1,Ce=!1,we=!1,Te=!1,De=!1,Me=[];for(let t of ce){if(!pe.has(t))continue;if(ge=!0,me){let e=await fe(se,Ae[t]).then(e=>({ok:!0,value:e}),()=>({ok:!1}));if(!e.ok){Me.push({bundleId:t,result:`decision-read-failed`}),De=!0;continue}if(e.value===!1){Me.push({bundleId:t,result:`opted-out`}),Te=!0;continue}}await he(se,Ae[t],!0).catch(()=>{});let n=await oe({home:e.home,bundleId:t,force:!0});Me.push({bundleId:t,result:n}),n===`installed`?ye=!0:n===`failed`?be=!0:n===`no-hosts`?we=!0:Ce=!0}let Pe=be?`failed`:De?`decision-read-failed`:ye?`installed`:ge&&Ce?`skip-current`:ge&&we?`no-hosts`:Te?`opted-out`:`declined`,Ie=ye?Se(se).map(e=>e.editorId):[],w=ke(se).enabled&&!Ee(),Le=y?`skipped-flag`:`skipped-missing`,Re=S.find(e=>e.editorId===`claude`)??S[0]??{action:Le,configPath:$.claude.configPath(r,e.home)},T=await Qo({projectRoot:r,desiredMode:await Fo({sharing:e.sharing,projectRoot:r,isTTY:e.isTTY,freshProject:a,promptFn:e.sharingPromptFn}),explicitFlag:e.sharing});return{projectRoot:r,contentCreated:d.created,contentUpdated:d.updated,contentSkipped:d.skipped,editors:S,projectSkills:C,legacyProjectConfigs:ae,skillInstall:Pe,skillBundles:Me,skillsRequested:e.skills,skillHosts:Ie,skillInstallsCounted:w,didGitInit:l.didInit,rootGitignoreCreated:p,gitRootPromoted:n.gitRootPromoted,promotedFromDir:o,contentDir:f?s:void 0,contentDirRequested:e.contentDir,contentScaffoldFailed:!1,mcpAction:Re.action,mcpPath:Re.configPath,mcpError:`error`in Re?Re.error:void 0,projectScopeUnsupportedLabels:ie,sharing:T}}async function Qo(e){let{projectRoot:t,desiredMode:n,explicitFlag:r}=e,i=oa(t);if(i===`no-git`)return{kind:`no-exclude`,reason:`no-git`,localOnlyRequested:r===`local-only`};let a=na(t);if(n===`local-only`){let e=ia(t,a);if(e.kind===`refused-tracked`){let t=e;return{kind:`refused-tracked`,tracked:t.tracked,remediation:t.remediation}}return e.kind===`no-exclude`?{kind:`no-exclude`,reason:e.reason,localOnlyRequested:r===`local-only`}:$o(t,e,`add`)}if(i===`shared`)return{kind:`applied`,mode:`shared`,action:`noop`,appended:[],alreadyPresent:[],removed:[]};let o=aa(t,a);return o.kind===`no-exclude`?{kind:`no-exclude`,reason:o.reason,localOnlyRequested:!1}:$o(t,o,`remove`)}function $o(e,t,n){let r=oa(e);return n===`add`?{kind:`applied`,mode:r,action:t.appended.length>0?`added`:t.removed.length>0?`cleaned`:`noop`,appended:t.appended,alreadyPresent:t.alreadyPresent,removed:t.removed}:{kind:`applied`,mode:r,action:`removed`,appended:[],alreadyPresent:[],removed:t.removed}}function es(e){switch(e){case`permission-denied`:return`permission denied; check file and parent-directory permissions`;case`unresolved-symlink`:return`could not resolve the path or symlink; check permissions and symlink cycles`;case`not-a-file`:return`config path is not a regular file`;case`disappeared`:return`config disappeared while being read; retry to check its current state`;case`unreadable`:return`could not read the config file; check that the path is accessible`;case`unparseable`:return`config could not be parsed`;case`oversize`:return`config too large to edit safely`;case`duplicate-container`:return`duplicate server block`;case`no-native-writer`:return`no format-preserving writer available`;case void 0:return`config not readable`;default:throw Error(`unhandled MCP decline reason: ${e}`)}}function ts(e,t){let n=[],r=e.editors.some(e=>e.action===`written`||e.action===`overwritten`),a=e.editors.some(e=>e.action===`failed`)||e.projectSkills.some(e=>e.action===`failed`),o=e.editors.length>0&&e.editors.every(e=>e.action===`skipped-flag`),l=e.editors.length>0&&e.editors.every(e=>e.action===`skipped-missing`);e.didGitInit&&n.push(`Initialized git repo at ${t}/.git/ (default branch: main)`),e.rootGitignoreCreated&&n.push(`Seeded .gitignore at ${t}/.gitignore (.DS_Store)`);let u=M(t,`.ok`);if(e.contentCreated.length>0||e.contentUpdated.length>0?(n.push(k(`Content scaffolded at ${u}/`)),e.contentCreated.length>0&&n.push(` Created: ${e.contentCreated.join(`, `)}`),e.contentUpdated.length>0&&n.push(` Updated: ${e.contentUpdated.join(`, `)}`)):n.push(k(`Content already present at ${u}/`)),e.contentSkipped.length>0&&n.push(` Skipped (already exist): ${e.contentSkipped.join(`, `)}`),n.push(``),e.mcpError&&e.editors.length===0)n.push(`Warning: ${e.mcpError}`);else if(e.editors.length===0){if(n.push(k(`MCP server configuration:`)),e.mcpAction===`skipped-flag`)n.push(` MCP config not written — use without --no-mcp to configure editors`);else if(e.projectScopeUnsupportedLabels&&e.projectScopeUnsupportedLabels.length>0){let t=e.projectScopeUnsupportedLabels.join(`, `),r=e.projectScopeUnsupportedLabels.length===1?`does`:`do`;n.push(` ${t} ${r} not support project-level config; skipped`)}else n.push(` No supported editor config directories detected; skipped MCP registration`)}else if(o)n.push(`MCP config not written — use without --no-mcp to configure editors`);else if(l)n.push(k(`MCP server configuration:`)),n.push(` No supported editor config directories detected; skipped MCP registration`);else{n.push(k(`MCP server configuration:`));for(let r of e.editors){let e=r.configPath.startsWith(t)?N(t,r.configPath):r.configPath.replace(/^\/Users\/[^/]+/,`~`),i=r.serverName===s()?``:` (${r.serverName})`,a=r.configScope===`project`?` (project)`:``,o=`${r.label}${a}`,c=` `.repeat(Math.max(1,20-o.length)),l=r.editorId===`claude-desktop`&&(r.action===`written`||r.action===`overwritten`)?` — quit and relaunch Claude Desktop to activate`:``;switch(r.action){case`written`:n.push(` ${o}${c}${e} ${D(`registered`)}${i}${l}`);break;case`overwritten`:n.push(` ${o}${c}${e} ${D(`updated`)}${i}${l}`);break;case`skipped-missing`:n.push(` ${o}${c}${e} config root missing; skipped`);break;case`failed`:n.push(` ${o}${c}${e} ${ze(`FAILED`)}: ${r.error}`);break;case`declined`:n.push(` ${o}${c}${e} left unchanged (${es(r.declineReason)})`);break;case`skipped-flag`:break;default:r.action}}if(e.projectScopeUnsupportedLabels&&e.projectScopeUnsupportedLabels.length>0){let t=e.projectScopeUnsupportedLabels.join(`, `),r=e.projectScopeUnsupportedLabels.length===1?`does`:`do`;n.push(` ${t} ${r} not support project-level config; skipped`)}}if(e.projectSkills.length>0){n.push(``),n.push(k(`Project-local skills:`));for(let r of e.projectSkills){let e=`${r.label} (project)`,i=` `.repeat(Math.max(1,20-e.length)),a=r.path?N(t,r.path):``;switch(r.action){case`written`:n.push(` ${e}${i}${a} ${D(`installed`)}`);break;case`overwritten`:n.push(` ${e}${i}${a} ${D(`updated`)}`);break;case`skipped-unsupported`:n.push(` ${e}${i}no known project skill surface; skipped`);break;case`skipped-prerequisite`:n.push(` ${e}${i}OpenKnowledge MCP is not configured; skipped`);break;case`failed`:n.push(` ${e}${i}${a} ${ze(`FAILED`)}: ${r.error}`)}}}if(a&&(n.push(``),n.push(`For failed editors, add the MCP server entry or project skill manually. See:`),n.push(` https://github.com/inkeep/open-knowledge#mcp-setup`)),e.legacyProjectConfigs.length>0){n.push(``),n.push(`Project MCP configs found:`);for(let r of e.legacyProjectConfigs)n.push(` ${r.label} ${N(t,r.path)}`);n.push(` These project-local files may override the global config. Remove them if you want fully user-scoped MCP setup in this project.`)}if(e.skillInstall===`declined`)n.push(``),n.push(k(`User-global skills:`)),typeof e.skillsRequested==`string`?(n.push(` ${E(`none installed — --skills "${e.skillsRequested}" names no known skill bundle (known: ${ce.join(`, `)})`)}`),n.push(` ${E(`No user-global skill was installed or removed.`)}`)):(n.push(` ${E(`none installed — skipped for this run (--no-skills)`)}`),n.push(` ${E(`No user-global skill was installed or removed; any already on this`)}`),n.push(` ${E(`machine are untouched. Run init without the flag to install them:`)}`),n.push(` ${E(` ${i()} init`)}`),n.push(` ${E(`--no-skills covers user-global skills only, not project-local skills.`)}`));else if(e.skillInstall){n.push(``),n.push(k(`User-global skills:`));let t=e.skillBundles??[],r=Math.max(0,...t.map(e=>Ae[e.bundleId].length));for(let a of t){let t=Ae[a.bundleId].padEnd(r);switch(a.result){case`installed`:{let r=(e.skillHosts??[]).map(e=>X[e]??e),i=r.length>0?r.join(`, `):`the shared ~/.agents store`;n.push(` ${t} ${D(`installed for ${i}`)}`);break}case`skip-current`:n.push(` ${t} ${D(`already installed at current version`)}`);break;case`no-hosts`:n.push(` ${t} ${E(`skipped — no supported agent host detected in your home directory`)}`);break;case`failed`:n.push(` ${O(`${t} install failed`)}`);break;case`opted-out`:n.push(` ${t} ${E(`not installed — turned off on this machine; reinstall with ${i()} init --skills ${a.bundleId} or Settings → Skills Studio`)}`);break;case`decision-read-failed`:n.push(` ${O(`${t} not installed — could not read whether it is turned off on this machine; rerun ${i()} init once ${c(d)} is readable`)}`);break;default:a.result}}e.skillInstallsCounted&&t.some(e=>e.result===`installed`)&&(n.push(` ${E(`Counted on skills.sh (skill name + source repo, once per machine).`)}`),n.push(` ${E(`Opt out: DO_NOT_TRACK=1, or Settings → User → Preferences.`)}`)),t.some(e=>e.result===`failed`)&&n.push(` ${O(`Retry with: ${i()} repair-skills`)}`)}e.contentDirRequested!==void 0&&e.contentDir===void 0&&!e.contentScaffoldFailed?(n.push(``),n.push(O(`⚠ --content-dir ${e.contentDirRequested} ignored — .ok/config.yml already exists`)),n.push(` Edit .ok/config.yml → content.dir directly to change the content scope.`)):e.contentDir!==void 0&&e.contentDir!==`.`?(n.push(``),n.push(`Content scope set to ${e.contentDir}/ (content.dir in .ok/config.yml).`)):e.gitRootPromoted&&e.contentDir===`.`&&e.contentDirRequested===void 0&&(n.push(``),n.push(O(`⚠ Content scope promoted to the git repo root`)),n.push(` .ok/ was initialized at ${t} because it contains a .git folder (one .ok/ per git repo),`),n.push(` not the sub-folder you ran \`${i()} init\` in${e.promotedFromDir?` (${e.promotedFromDir})`:``}. The whole repo is now the content scope.`),e.promotedFromDir&&(n.push(` To scope to just that sub-folder, re-run \`${i()} init --content-dir .\` from there, or set`),n.push(` content.dir: ${e.promotedFromDir} in .ok/config.yml.`))),e.preview?(n.push(``),n.push(Ve(e.preview,t))):e.previewWarning&&(n.push(``),n.push(`Content preview unavailable: ${e.previewWarning}`)),n.push(``),n.push(...os(e.sharing,t));let f=e=>[`${e}- ${T(`${i()} seed --list-packs`)} — browse the starter packs`,`${e}- ${T(`${i()} seed`)} — scaffold an empty repo`];if(r){let t=new Set,r=e.editors.filter(e=>e.action===`written`||e.action===`overwritten`).filter(e=>!t.has(e.editorId)&&t.add(e.editorId)).map(e=>e.label);n.push(``),n.push(`${D(`✓`)} ${k(`Next steps:`)}`),n.push(` 1. Open your editor (${T(r.join(` / `))})`),n.push(` 2. Approve the MCP server when prompted`);let i=3;e.contentScaffoldFailed||(n.push(` ${i++}. (Optional) scaffold the starter knowledge-base structure:`),n.push(...f(` `))),n.push(` ${i}. Ask your agent to capture a source, research a topic, or build a wiki —`),n.push(` the procedures ship as skills alongside the MCP tools.`)}else e.contentScaffoldFailed||(n.push(``),n.push(`${k(`Next steps:`)} (optional) scaffold the starter knowledge-base structure:`),n.push(...f(` `)));return n.join(`
|
|
691
691
|
`)}function ns(e,t){return{projectRoot:e.projectRoot,gitRootPromoted:e.gitRootPromoted,promotedFromDir:e.promotedFromDir??null,contentDir:t.contentDir,contentDirRequested:e.contentDirRequested??null,contentDirApplied:e.contentDir!==void 0,contentFileCount:t.contentFileCount,previewError:e.previewWarning??null,didGitInit:e.didGitInit,mcpAction:e.mcpAction,editors:e.editors.map(e=>({editorId:e.editorId,label:e.label,action:e.action,configPath:e.configPath,scope:e.configScope===`project`?`project`:`user`}))}}function rs(e,t){let n=[];for(let r of ii)r!==`claude-desktop`&&Vo($[r],e,t)&&n.push(r);return n}function is(){let e={log:console.log,info:console.info,debug:console.debug},t=(...e)=>{process.stderr.write(`${e.map(e=>typeof e==`string`?e:at(e)).join(` `)}\n`)};return console.log=t,console.info=t,console.debug=t,()=>{console.log=e.log,console.info=e.info,console.debug=e.debug}}function as(){return new Ct(`init`).description(`Scaffold .ok/ in the current directory and register the MCP server for your editor(s)`).option(`--mcp`,`Register the MCP server for selected editors (default: true)`,!0).option(`--no-mcp`,`Scaffold the .ok/ directory but do not touch MCP config`).option(`--dev-mcp`,`Register a local dev MCP entry using node + packages/cli/dist/cli.mjs with debug logging`).option(`--content-dir <dir>`,`Limit content to <dir> instead of the whole project. <dir> is interpreted relative to your current directory (e.g. "." = the folder you run the command in), then saved to .ok/config.yml as content.dir.`).option(`--json`,`Emit a structured JSON summary to stdout (diagnostics stay on stderr)`).option(`--skills <ids>`,`Install only the named user-global skill bundles (comma list: discovery,write-skill)`).option(`--no-skills`,`Do not install any user-global skill bundles`).addOption(new Tt(`--scope <scope>`,`Write MCP config at user level, project level, or both`).choices([`user`,`project`,`both`])).addOption(new Tt(`--shared`,`Commit OK config alongside content (the default for fresh repos)`).conflicts(`localOnly`)).addOption(new Tt(`--local-only`,`Keep OK config out of git via .git/info/exclude (per-clone, not committed)`).conflicts(`shared`)).action(async e=>{let t=process.cwd(),n=e.shared?`shared`:e.localOnly?`local-only`:void 0,r=e.json?is():null;try{let r;try{r=await Zo({cwd:t,mcp:e.mcp,devMcp:e.devMcp,scope:e.scope,sharing:n,contentDir:e.contentDir,skills:e.skills})}catch(e){if(e instanceof Io||e instanceof _e||e instanceof le){process.stderr.write(`${e.message}\n`),process.exitCode=64;return}if(e instanceof ge||e instanceof Re){process.stderr.write(`${e.message}\n`),process.exitCode=78;return}if(e instanceof Ce){process.stderr.write(`open-knowledge could not initialize a git repo for this project. Re-run, or run 'git init' yourself in the project folder.
|
|
692
|
-
`),e.stderr&&process.stderr.write(`${e.stderr.trim()}\n`),process.exitCode=1;return}throw e}let i=r.contentDir??`.`,a=null,{loadConfig:o}=await import(`./loader-
|
|
692
|
+
`),e.stderr&&process.stderr.write(`${e.stderr.trim()}\n`),process.exitCode=1;return}throw e}let i=r.contentDir??`.`,a=null,{loadConfig:o}=await import(`./loader-CEVDxJIa.mjs`),{resolveContentDir:s}=await import(`./dist-DFHKTwRq.mjs`),c;try{c=o(r.projectRoot).config,i=c.content.dir}catch(e){r.previewWarning=e instanceof Error?e.message:String(e)}if(c)try{let{previewContent:e}=await import(`./preview-DptKn8iO.mjs`),t=s(c,r.projectRoot);r.preview=e({projectDir:r.projectRoot,contentDir:t}),a=r.preview.totalCount}catch(e){r.previewWarning=e instanceof Error?e.message:String(e)}e.json?process.stdout.write(`${JSON.stringify(ns(r,{contentDir:i,contentFileCount:a}),null,2)}\n`):process.stdout.write(`${ts(r,r.projectRoot)}\n`),(r.editors.some(e=>e.action===`failed`)||r.mcpAction===`failed`)&&(process.exitCode=1)}finally{r?.()}})}function os(e,t){let n=[];switch(e.kind){case`applied`:return n.push(k(`Sharing mode:`)),e.mode===`local-only`?e.action===`added`?(n.push(` ${D(`local-only`)} — appended ${e.appended.length} path(s) to ${k(`${t}/.git/info/exclude`)} (per-clone, not committed).`),e.removed.length>0&&n.push(` cleared ${e.removed.length} stale entry(s) left by an older version: ${e.removed.join(`, `)}.`)):e.action===`cleaned`?n.push(` ${D(`local-only`)} — already excluded; cleared ${e.removed.length} stale entry(s) left by an older version: ${e.removed.join(`, `)}.`):e.action===`noop`&&e.alreadyPresent.length>0?n.push(` ${D(`local-only`)} — already excluded; nothing to do.`):n.push(` ${D(`local-only`)}`):e.action===`removed`?n.push(` ${D(`shared`)} — removed OK paths from ${k(`${t}/.git/info/exclude`)}; commit the files to share with teammates.`):n.push(` ${D(`shared`)} — OK config will be committed alongside content.`),n;case`refused-tracked`:n.push(O(`Sharing mode: switch to local-only deferred`));for(let t of e.remediation.split(`
|
|
693
693
|
`))n.push(t.length>0?` ${t}`:``);return n.push(` Re-run ${T(`${i()} config-sharing unshare`)} after resolving to complete the switch.`),n;case`no-exclude`:if(e.localOnlyRequested)n.push(O(`Sharing mode: --local-only requested but no git repo found — option ignored`)),n.push(` Run ${T(`git init`)} (or open this folder via OK Desktop, which can scaffold a repo) and then ${T(`${i()} config-sharing unshare`)}.`);else if(e.reason===`no-git`)return[];else n.push(O(`Sharing mode unavailable: ${e.reason}.`));return n}}export{Ni as $,Ra as A,ia as B,io as C,Ct,Ka as D,Za as E,ba as F,ca as G,sa as H,xa as I,ii as J,oa as K,Ma as L,Na as M,ya as N,La as O,Ca as P,Z as Q,wa as R,lo as S,Pt as St,$a as T,Tt,ra as U,fa as V,na as W,$ as X,X as Y,ai as Z,Zo as _,tr as _t,ns as a,Ii as at,qo as b,sn as bt,ts as c,Ji as ct,Vo as d,ni as dt,Mi as et,Jo as f,Y as ft,Fo as g,fr as gt,Ro as h,Jr as ht,Qo as i,vi as it,Pa as j,Ia as k,os as l,Si as lt,No as m,Gr as mt,Bo as n,Fi as nt,Xo as o,Q as ot,Lo as p,Kr as pt,aa as q,Wo as r,hi as rt,rs as s,Li as st,Io as t,Pi as tt,as as u,ri as ut,So as v,dn as vt,to as w,xt as wt,Ho as x,U as xt,Uo as y,cn as yt,ja as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Xo as e,qo as t,ts as n}from"./dist-
|
|
1
|
+
import{Xo as e,qo as t,ts as n}from"./dist-B-LAoRmW.mjs";import{A as r,M as i,O as a}from"./init-DsTDW8PN.mjs";import{t as o}from"./is-object-BGze3w87.mjs";import{t as s}from"./removal-file-path-C94YYdie.mjs";import{join as c}from"node:path";import{readFileSync as l}from"node:fs";const u={allowTrailingComma:!0,disallowComments:!1};function d(e,t){return e.error===1&&e.offset===0&&t.charCodeAt(0)===65279}function f(o){let f=s(c(o,`.claude`,`launch.json`));if(f.kind!==`ready`)return f;let m=f.path,h;try{h=l(m,`utf-8`)}catch(e){return{kind:`declined`,reason:i(e)}}let g=[],_=e(h,g,u)??void 0;if(g.some(e=>!d(e,h))||_?.type!==`object`)return{kind:`declined`,reason:`unparseable`};let v=t(_).configurations;if(!Array.isArray(v))return{kind:`not-present`};let y=v.findIndex(p);if(y===-1)return{kind:`not-present`};let{text:b,changed:x}=r(h,[`configurations`,y]);return x?(n(m,b,{mode:a(m)}),{kind:`removed`}):{kind:`not-present`}}function p(e){if(!o(e))return!1;let t=e;if(t.name!==`open-knowledge-ui`||!Array.isArray(t.runtimeArgs))return!1;let n=t.runtimeArgs;return t.runtimeExecutable===`/bin/sh`?n.length===3&&n[0]===`-l`&&n[1]===`-c`&&typeof n[2]==`string`&&/^# ok-ui-v[1-9]\d*$/.test(n[2].split(/\r?\n/,1)[0]??``):t.runtimeExecutable===`npx`?m.some(e=>h(n,e)):t.runtimeExecutable===`powershell`&&n.length===4&&n[0]===`-NoProfile`&&n[1]===`-NonInteractive`&&n[2]===`-Command`&&typeof n[3]==`string`&&/^# ok-ui-win-v[1-9]\d*$/.test(n[3].split(/\r?\n/,1)[0]??``)}const m=[[`@inkeep/open-knowledge`,`ui`],[`-y`,`@inkeep/open-knowledge`,`ui`],[`-y`,`@inkeep/open-knowledge@latest`,`ui`]];function h(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}export{f as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$c as e,Ju as t,Zc as n,jc as r,k as i,kc as a,rl as o}from"./md-manager-BGnqyqi1-
|
|
1
|
+
import{$c as e,Ju as t,Zc as n,jc as r,k as i,kc as a,rl as o}from"./md-manager-BGnqyqi1-CPATjLIj.mjs";import{is as s,os as c,x as l}from"./dist-B-LAoRmW.mjs";import{t as u}from"./is-object-BGze3w87.mjs";import{t as d}from"./constants-QhGcX1jP.mjs";import{resolve as f}from"node:path";import{existsSync as p,readFileSync as m}from"node:fs";import{realpath as h}from"node:fs/promises";var g=t();async function _(e){let t=f(e);try{return await h(t)}catch(e){if(e.code!==`ENOENT`){let n=e instanceof Error?e.message:String(e);console.warn(`[normalize-cwd] realpath failed for ${t}: ${n}`)}return t}}function v(e){if(!p(e))return{value:null,path:e,source:null,doc:null};let t;try{t=m(e,`utf-8`)}catch(t){let n=t instanceof Error?t.message:String(t);return console.warn(`[config] Failed to read ${e}: ${n}`),{value:null,path:e,source:null,doc:null,diagnostic:{code:`UNREADABLE`,detail:`${e}: ${n}`}}}let n=(0,g.parseDocument)(t);if(n.errors.length>0){let r=n.errors.map(e=>e.message).join(`; `);return console.warn(`[config] Failed to parse ${e}: ${r}`),{value:null,path:e,source:t,doc:null,diagnostic:{code:`YAML_PARSE`,detail:`${e}: ${r}`}}}let r=n.toJSON();return u(r)?{value:r,path:e,source:t,doc:n}:{value:null,path:e,source:t,doc:n}}function y(t,n){return t.map(t=>{let r=t.path.map(e=>typeof e==`symbol`?String(e):e),i={path:r,message:t.message,issueCode:t.code};if(n.doc!==null&&n.source!==null){let t=e({file:n.path,source:n.source,doc:n.doc,path:r});if(t!==void 0)return{...i,source:t}}return i})}function b(e){let t=e??process.cwd(),u=[],p=[],m=[],h=[],g=c(`user`,t),_=s({absPath:g});p.push(..._.diagnostics),!_.valid&&_.sidelinedTo!==void 0&&m.push({from:g,to:_.sidelinedTo}),_.valid&&_.source!==void 0&&u.push(g);let b=(e,t=!1)=>{let r=v(e);if(r.diagnostic!==void 0&&p.push(r.diagnostic),r.value===null)return{};let a=n({value:r.value,file:r.path,source:r.source,doc:r.doc});p.push(...a),u.push(e);let s=a.length>0?o(r.value):r.value;return t&&h.push(...i({value:s,file:r.path,source:r.source,doc:r.doc})),s},x=f(t,`.ok`,d),S=b(x,!0),C=b(c(`project-local`,t)),w=a(_.value,S,C),T=l.safeParse(w);if(!T.success){let e=v(x),t={code:`SCHEMA_INVALID`,issues:y(T.error.issues,e)};throw Error(r(t))}return{config:T.data,sources:u,diagnostics:p,sidelined:m,ignoredCommittedKeys:h}}function x(e){let t=e.cacheMs??1e3,n=e.loadConfigFn??b,r=new Map,i=new Map,a=_(e.startupCwd);return async o=>{let s=await _(o??e.startupCwd),c=Date.now(),l=r.get(s);if(l&&l.expiresAt>c)return l.config;let u=i.get(s);if(u)return await u;let d=(async()=>{if(s===await a)return r.set(s,{config:e.startupConfig,expiresAt:Date.now()+t}),e.startupConfig;let i=n(s).config;return r.set(s,{config:i,expiresAt:Date.now()+t}),i})();i.set(s,d);try{return await d}finally{i.delete(s)}}}export{b as n,x as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./loader-B14ip6IN.mjs";export{e as loadConfig};
|