@inkeep/open-knowledge 0.46.0-beta.24 → 0.46.0-beta.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (352) hide show
  1. package/dist/{acp-harness-probe-CNr_uL76.mjs → acp-harness-probe-CWSgVEXp.mjs} +2 -2
  2. package/dist/cli.mjs +7 -7
  3. package/dist/constants-DVpRelLO.mjs +2 -0
  4. package/dist/index.mjs +1 -1
  5. package/dist/init-BmRhHNNm.mjs +1 -0
  6. package/dist/{init-BJIgDJa3.mjs → init-Cp1cLnZk.mjs} +3 -3
  7. package/dist/{launch-json-removal-CJgXyPl3.mjs → launch-json-removal-DUge6f_e.mjs} +2 -2
  8. package/dist/loader-Bh_ZTHZc.mjs +1 -0
  9. package/dist/{loader-BVADW1fG.mjs → loader-CQZle2jn.mjs} +2 -2
  10. package/dist/{open-browser-DlO-Gsw_.mjs → open-browser-BGVZscyy.mjs} +2 -2
  11. package/dist/{preview-BwdVoUBB.mjs → preview-CVEIuiZH.mjs} +2 -2
  12. package/dist/preview-Cxdw_wal.mjs +1 -0
  13. package/dist/public/assets/{ActivityModeContent-DQJfhFeQ.js → ActivityModeContent-CZsut2kK.js} +1 -1
  14. package/dist/public/assets/{AgentDiffPane-D9VDqMCh.js → AgentDiffPane-Glfn8BNa.js} +2 -2
  15. package/dist/public/assets/{AgentThreadClientBinder-D_oR-NzN.js → AgentThreadClientBinder-5Q_2wmdQ.js} +1 -1
  16. package/dist/public/assets/{BugReportHistory-DJY_ATlh.js → BugReportHistory-BV64CLFc.js} +1 -1
  17. package/dist/public/assets/{BugReportHistoryDialog-_HgchijV.js → BugReportHistoryDialog-CU6gVHpy.js} +1 -1
  18. package/dist/public/assets/{ChangedOutsideBadge-bIQSwxNT.js → ChangedOutsideBadge-D3NWhSWI.js} +1 -1
  19. package/dist/public/assets/{CodeMirrorPropInput-C21yk3-k.js → CodeMirrorPropInput-yJZmvoN3.js} +3 -3
  20. package/dist/public/assets/{ConsentDialogBody-C9wS0j09.js → ConsentDialogBody-BNMDXCOp.js} +1 -1
  21. package/dist/public/assets/{DiffView-DuPfWTAC.js → DiffView-ChmPu7VO.js} +1 -1
  22. package/dist/public/assets/{DocumentContext-Bhb-Rllg.js → DocumentContext-BYAIHlLG.js} +2 -2
  23. package/dist/public/assets/{EditorModeToggle-DYt4xV0B.js → EditorModeToggle-CHPv1W1o.js} +1 -1
  24. package/dist/public/assets/{EnableSyncConfirmDialog-D7Jzb7yA.js → EnableSyncConfirmDialog-B_PT2E6k.js} +1 -1
  25. package/dist/public/assets/FeedbackForm-CXjxL9--.js +1 -0
  26. package/dist/public/assets/{GraphPanel-BK4oU7K8.js → GraphPanel-BkBbXSSY.js} +1 -1
  27. package/dist/public/assets/{ImportSkillDialog-DT373DMA.js → ImportSkillDialog-BmK5Zi4Y.js} +1 -1
  28. package/dist/public/assets/{LintConfigEditor-CKLpAwfC.js → LintConfigEditor-wjND6OMW.js} +1 -1
  29. package/dist/public/assets/ManagedArtifactProperties-Cv2PfiCt.js +1 -0
  30. package/dist/public/assets/ManagedArtifactProperties-DX6VEhcK.js +8 -0
  31. package/dist/public/assets/{McpConsentDialogBody-BICQmO-R.js → McpConsentDialogBody-GFZy2Nx1.js} +1 -1
  32. package/dist/public/assets/{Mermaid-Ba_Bj7D1.js → Mermaid-aTkc_U2P.js} +2 -2
  33. package/dist/public/assets/{MermaidDocEditor-CwRVCqx7.js → MermaidDocEditor-ClsHMr-h.js} +1 -1
  34. package/dist/public/assets/{RegisteredAgentIcon-UInuA1Ei.js → RegisteredAgentIcon-CKpJ_hgB.js} +1 -1
  35. package/dist/public/assets/{ReportBugDialogBody-COTMJPnc.js → ReportBugDialogBody-Blgf8Ql8.js} +1 -1
  36. package/dist/public/assets/{SchemaConfigEditor-bkLxSHte.js → SchemaConfigEditor-CYPVCRe9.js} +1 -1
  37. package/dist/public/assets/{SessionsHost-Bw4MKgvL.js → SessionsHost-DfHGA3JK.js} +2 -2
  38. package/dist/public/assets/{SettingsDialogBody-DYh6a8hI.js → SettingsDialogBody-DKXJqt7T.js} +1 -1
  39. package/dist/public/assets/{ShareBranchSwitchDialog-BrnApKc6.js → ShareBranchSwitchDialog-VEk7nqm9.js} +1 -1
  40. package/dist/public/assets/{ShareReceiveDialog-iTAeKpJM.js → ShareReceiveDialog-CohqkEQn.js} +1 -1
  41. package/dist/public/assets/{ShareReceiveMissDialog-D4JlxFnU.js → ShareReceiveMissDialog-Dm_HJ-fk.js} +1 -1
  42. package/dist/public/assets/{SkillEditBanner-B4YWkWzW.js → SkillEditBanner-Bb-ORdb8.js} +1 -1
  43. package/dist/public/assets/{SkillOriginInline-Uo33TCpC.js → SkillOriginInline-BFexlLco.js} +1 -1
  44. package/dist/public/assets/{SkillToolbarControls-DjI3RNFS.js → SkillToolbarControls-B-dV8j9p.js} +1 -1
  45. package/dist/public/assets/{SourceEditor-BZSPCXoy.js → SourceEditor-CgLBpfga.js} +1 -1
  46. package/dist/public/assets/{TerminalPanel-CVHJq4Iu.js → TerminalPanel-DSHFfNWo.js} +1 -1
  47. package/dist/public/assets/{TerminalWindowApp-BITwxu5N.js → TerminalWindowApp-B3Nw6A9a.js} +1 -1
  48. package/dist/public/assets/{TextDocEditor-7FzBwfzQ.js → TextDocEditor-DzmAdiZe.js} +1 -1
  49. package/dist/public/assets/ThreadView-Di5TkV_e.js +6 -0
  50. package/dist/public/assets/{TimelineDiffPane-Cvmtozih.js → TimelineDiffPane-N5K-0E_Q.js} +2 -2
  51. package/dist/public/assets/{abnfDiagram-VRR7QNED-BR4MFhNI.js → abnfDiagram-VRR7QNED-DHJtI87X.js} +1 -1
  52. package/dist/public/assets/{agent-diff-store-CC8aPVHS.js → agent-diff-store-kv64r9C1.js} +1 -1
  53. package/dist/public/assets/{agent-visibility-XcypjuYX.js → agent-visibility-BiwwzWZK.js} +1 -1
  54. package/dist/public/assets/{arc-BLA1oiJE.js → arc-CcVRsw3e.js} +1 -1
  55. package/dist/public/assets/architecture-TIHT7OUA-B22-UzyM.js +1 -0
  56. package/dist/public/assets/{architectureDiagram-ZJ3FMSHR-BrnPZKqe.js → architectureDiagram-ZJ3FMSHR-CiwaxO5n.js} +1 -1
  57. package/dist/public/assets/{auth-state-cache-DZEPs4Pt.js → auth-state-cache-CDJruLs7.js} +1 -1
  58. package/dist/public/assets/{blockDiagram-677ZJIJ3-CQbm0LEu.js → blockDiagram-677ZJIJ3-0zO7n7Sf.js} +1 -1
  59. package/dist/public/assets/{c4Diagram-LMCZKHZV-D4Y9FZQ4.js → c4Diagram-LMCZKHZV-C662qesx.js} +1 -1
  60. package/dist/public/assets/{calendar-C__xvB0F.js → calendar-T2ubnd-H.js} +1 -1
  61. package/dist/public/assets/channel-DfI0YSva.js +1 -0
  62. package/dist/public/assets/{checkbox-Cq1BnJ3x.js → checkbox-CgM6fL3A.js} +1 -1
  63. package/dist/public/assets/chunk-2Q5K7J3B-BSFIGC1j.js +1 -0
  64. package/dist/public/assets/{chunk-32BRIVSS-Nd1XGYMr.js → chunk-32BRIVSS-CydyM0Ml.js} +1 -1
  65. package/dist/public/assets/{chunk-52WLFC77-DngEZdpt.js → chunk-52WLFC77-cG-DvO_j.js} +1 -1
  66. package/dist/public/assets/{chunk-5FCAYU7R-CVOgng3o.js → chunk-5FCAYU7R-Bxw_oikr.js} +1 -1
  67. package/dist/public/assets/{chunk-5HE753X5-CD6gRM54.js → chunk-5HE753X5-DKXmxfLW.js} +1 -1
  68. package/dist/public/assets/{chunk-5JV3BV7I-C7ouju6I.js → chunk-5JV3BV7I-DvmJcvTR.js} +1 -1
  69. package/dist/public/assets/{chunk-5TONJI2A-BKisaZuR.js → chunk-5TONJI2A-DzotvxWN.js} +1 -1
  70. package/dist/public/assets/{chunk-5VM5RSS4-DldpLG4q.js → chunk-5VM5RSS4-BhXaeUUw.js} +1 -1
  71. package/dist/public/assets/{chunk-7BUUIJ7U-B8p2bGIc.js → chunk-7BUUIJ7U-nkQ2KUUq.js} +1 -1
  72. package/dist/public/assets/{chunk-BIQX33UG-B-IlaACl.js → chunk-BIQX33UG-dgZifYB8.js} +1 -1
  73. package/dist/public/assets/{chunk-BO2N2NFS-BmPFIuzT.js → chunk-BO2N2NFS-BgpjQQXT.js} +3 -3
  74. package/dist/public/assets/{chunk-C7G6YPKG-CTPk4N9r.js → chunk-C7G6YPKG-DeJ7KSfD.js} +1 -1
  75. package/dist/public/assets/{chunk-CQNSW5MT-BoHYZDmN.js → chunk-CQNSW5MT-WJU8lHxD.js} +1 -1
  76. package/dist/public/assets/{chunk-CYSBUYHQ-BtnyZlJv.js → chunk-CYSBUYHQ-5BxfdOgL.js} +1 -1
  77. package/dist/public/assets/{chunk-EMLP6XTP-D_CFM3mi.js → chunk-EMLP6XTP-mSjYkSCS.js} +1 -1
  78. package/dist/public/assets/{chunk-EX3LRPZG-9kHpIDAY.js → chunk-EX3LRPZG-BNd6Cxwo.js} +1 -1
  79. package/dist/public/assets/{chunk-FWX5IMBZ-A1C9veGN.js → chunk-FWX5IMBZ-CXQqiinv.js} +2 -2
  80. package/dist/public/assets/{chunk-HOUHSVGY-D2OO7RX0.js → chunk-HOUHSVGY-FQeseOdw.js} +1 -1
  81. package/dist/public/assets/{chunk-ICXQ74PX-CINPzArE.js → chunk-ICXQ74PX-QBz75RJe.js} +1 -1
  82. package/dist/public/assets/{chunk-JG7HCLWE-jpq6rFyK.js → chunk-JG7HCLWE-ClAPLVoN.js} +1 -1
  83. package/dist/public/assets/{chunk-JWPE2WC7-BUo8MoXj.js → chunk-JWPE2WC7-D00QuO4l.js} +1 -1
  84. package/dist/public/assets/{chunk-MOJQB5TN-INvVDa7M.js → chunk-MOJQB5TN-BHolK4Fc.js} +1 -1
  85. package/dist/public/assets/{chunk-MOZMSUNE-bwYn0Kww.js → chunk-MOZMSUNE-B2zrwpvW.js} +1 -1
  86. package/dist/public/assets/{chunk-OGEWGWER-Di8f25Zt.js → chunk-OGEWGWER-D9rNoxcC.js} +1 -1
  87. package/dist/public/assets/{chunk-OSBZ3O6U-CUc7n3PO.js → chunk-OSBZ3O6U-pMDQqwwa.js} +1 -1
  88. package/dist/public/assets/{chunk-PUDLZKDR-C9YcryH0.js → chunk-PUDLZKDR-zvmgn7x_.js} +1 -1
  89. package/dist/public/assets/{chunk-Q4XR5HBZ-DuA-1W6g.js → chunk-Q4XR5HBZ-FwXZQ9hY.js} +1 -1
  90. package/dist/public/assets/{chunk-QBLGF6JB-DOtavLb0.js → chunk-QBLGF6JB-gQMNwA9k.js} +1 -1
  91. package/dist/public/assets/{chunk-R7FJI6CG-CWhtEDe1.js → chunk-R7FJI6CG-4qEQ9dBZ.js} +1 -1
  92. package/dist/public/assets/{chunk-RYQCIY6F-D8KQw2wV.js → chunk-RYQCIY6F-BV0ikdQB.js} +1 -1
  93. package/dist/public/assets/{chunk-U6XO7XAA-CMfN73K7.js → chunk-U6XO7XAA-CaNmcaAV.js} +1 -1
  94. package/dist/public/assets/{chunk-V7JOEXUC-868ygkS5.js → chunk-V7JOEXUC-CsJjje8x.js} +1 -1
  95. package/dist/public/assets/chunk-VAUOI2AC-B_byVmRb.js +1 -0
  96. package/dist/public/assets/{chunk-VR4S4FIN-BZrd9pWi.js → chunk-VR4S4FIN-bcHVGPIL.js} +1 -1
  97. package/dist/public/assets/{chunk-WYO6CB5R-T4JOF4Cu.js → chunk-WYO6CB5R-BMZjhy31.js} +1 -1
  98. package/dist/public/assets/chunk-XXDRQBXY-BW_2kVvu.js +1 -0
  99. package/dist/public/assets/{chunk-YOTPTUD7-DzE2J0ru.js → chunk-YOTPTUD7-NNZ-Yv3s.js} +1 -1
  100. package/dist/public/assets/{chunk-ZGVPDNZ5-BtaLh1Pm.js → chunk-ZGVPDNZ5-DN7h9evR.js} +1 -1
  101. package/dist/public/assets/{chunk-ZIRB5QZD-DTzEX6O5.js → chunk-ZIRB5QZD-BUzL4gtl.js} +1 -1
  102. package/dist/public/assets/classDiagram-OUVF2IWQ-D-ugBPkQ.js +1 -0
  103. package/dist/public/assets/classDiagram-v2-EOCWNBFH-Bn6YRP9I.js +1 -0
  104. package/dist/public/assets/{cm-theme-BIKMj2KE.js → cm-theme-D_cRdFJy.js} +1 -1
  105. package/dist/public/assets/{config-provider-COjQaZZa.js → config-provider-CH2tG_0H.js} +1 -1
  106. package/dist/public/assets/{cose-bilkent-JH36ORCC-Dfdgm0c_.js → cose-bilkent-JH36ORCC-C3tuxXMJ.js} +1 -1
  107. package/dist/public/assets/cynefin-VYW2F7L2-g7Kr3o9e.js +1 -0
  108. package/dist/public/assets/{cynefinDiagram-TSTJHNR4-DRyLma_-.js → cynefinDiagram-TSTJHNR4-gF8dJ8RL.js} +1 -1
  109. package/dist/public/assets/{dagre-Bx2kZZfx.js → dagre-DqpVUR-3.js} +1 -1
  110. package/dist/public/assets/{dagre-VKFMJZFB-CWRpaHfL.js → dagre-VKFMJZFB-Bdh7Hq5O.js} +1 -1
  111. package/dist/public/assets/{diagram-FQU43EPY-BWhEolBl.js → diagram-FQU43EPY-BZ8uLueR.js} +1 -1
  112. package/dist/public/assets/{diagram-G47NLZAW-CtrwOhAm.js → diagram-G47NLZAW-QyYub_Y-.js} +1 -1
  113. package/dist/public/assets/{diagram-NH7WQ7WH-Bwg0orbY.js → diagram-NH7WQ7WH-BZmKErWp.js} +1 -1
  114. package/dist/public/assets/{diagram-OA4YK3LP-sK_x_R3w.js → diagram-OA4YK3LP-X4I0Ny_1.js} +1 -1
  115. package/dist/public/assets/{diagram-WEI45ONY-BGLea-AN.js → diagram-WEI45ONY-Dvn-EcwS.js} +1 -1
  116. package/dist/public/assets/{dialog-BRwYcDyc.js → dialog-C1XaLkpS.js} +1 -1
  117. package/dist/public/assets/{dist-DZQQflzj.js → dist-4KAJEfHq.js} +1 -1
  118. package/dist/public/assets/{dist-cmNR9Bbs.js → dist-9KHzlPis.js} +1 -1
  119. package/dist/public/assets/{dist-Cka1ipRf.js → dist-B6SsWR_R.js} +1 -1
  120. package/dist/public/assets/{dist-D14X-mK2.js → dist-BXU3IB1z.js} +1 -1
  121. package/dist/public/assets/{dist-B42mX0YC.js → dist-BawYG08a.js} +1 -1
  122. package/dist/public/assets/{dist-ChpE673Q.js → dist-BgGuqEY3.js} +1 -1
  123. package/dist/public/assets/{dist-B4xkxNpz.js → dist-BhBnufkS.js} +1 -1
  124. package/dist/public/assets/{dist-gVPIADKn2.js → dist-BqxgYl4M2.js} +1 -1
  125. package/dist/public/assets/{dist-Dp7TiZ5u2.js → dist-CqpwzCMe2.js} +1 -1
  126. package/dist/public/assets/{dist-DsE9X3Yz.js → dist-DhrsAcRJ.js} +1 -1
  127. package/dist/public/assets/{dist-2Zg1mqwY.js → dist-DmGGmoBk.js} +1 -1
  128. package/dist/public/assets/{dist-DjACJACU.js → dist-Dtdr1fU5.js} +1 -1
  129. package/dist/public/assets/{dist-BOFmnwXG.js → dist-Dum8FOZE.js} +1 -1
  130. package/dist/public/assets/{ebnfDiagram-CCIWWBDH-LwDvRqCc.js → ebnfDiagram-CCIWWBDH-Bee-0Vsa.js} +1 -1
  131. package/dist/public/assets/{erDiagram-Q63AITRT-ZtP-do8Y.js → erDiagram-Q63AITRT-DxkcAaEh.js} +1 -1
  132. package/dist/public/assets/eventmodeling-45OFAUF4-DdR7ha8I.js +1 -0
  133. package/dist/public/assets/{file-tree-adapter-DESJhWoq.js → file-tree-adapter-CSa3dhgi.js} +1 -1
  134. package/dist/public/assets/flowDiagram-23GEKE2U-BAuyQn3U.js +1 -0
  135. package/dist/public/assets/{folder-config-api-DNrN753j.js → folder-config-api-DzuTtGJJ.js} +1 -1
  136. package/dist/public/assets/{ganttDiagram-NO4QXBWP-toql98c1.js → ganttDiagram-NO4QXBWP-CfKrR8t0.js} +1 -1
  137. package/dist/public/assets/gitGraph-TEB2WS4Q-B9_Hbzw_.js +1 -0
  138. package/dist/public/assets/{gitGraphDiagram-IHSO6WYX-D7D6x-Xl.js → gitGraphDiagram-IHSO6WYX-l_eG9uKD.js} +1 -1
  139. package/dist/public/assets/{globals-BGbHjQJ2.js → globals-CLapcd3A.js} +2 -2
  140. package/dist/public/assets/{graphlib-BIjbwrWA.js → graphlib-2mbBufU8.js} +1 -1
  141. package/dist/public/assets/{highlighted-body-OFNGDK62-Ckmp4Uen.js → highlighted-body-OFNGDK62-BIipOt-U.js} +1 -1
  142. package/dist/public/assets/{index-DEksXdTO.js → index-Cp_NinKw.js} +13 -13
  143. package/dist/public/assets/info-DKCQHKI2-BQeDe2mR.js +1 -0
  144. package/dist/public/assets/{infoDiagram-FWYZ7A6U-D-w6lLUB.js → infoDiagram-FWYZ7A6U-DgvJ7Awn.js} +1 -1
  145. package/dist/public/assets/{input-group-Dw-FNINK.js → input-group-BrCQUQTG.js} +1 -1
  146. package/dist/public/assets/{ishikawaDiagram-FXEZZL3T-DiMtCb6J.js → ishikawaDiagram-FXEZZL3T-DQ4Gskk4.js} +1 -1
  147. package/dist/public/assets/{journeyDiagram-5HDEW3XC-BBd5InQB.js → journeyDiagram-5HDEW3XC-DPs0RcwQ.js} +1 -1
  148. package/dist/public/assets/{kanban-definition-HUTT4EX6-CA41_RYU.js → kanban-definition-HUTT4EX6-Ck2HSfan.js} +1 -1
  149. package/dist/public/assets/{line-DE139-H6.js → line-DWKLErsv.js} +1 -1
  150. package/dist/public/assets/{linear-HAqJanW2.js → linear-dbIThZWJ.js} +1 -1
  151. package/dist/public/assets/{map-CUyVBcsz.js → map-DCuMc749.js} +1 -1
  152. package/dist/public/assets/{markdownlint-rule-browser-DrFQPMJg.js → markdownlint-rule-browser-zRyV_kJO.js} +1 -1
  153. package/dist/public/assets/mermaid-GHXKKRXX-DE1vq5OK.js +1 -0
  154. package/dist/public/assets/{mermaid-parser.core-CAIoUhyF.js → mermaid-parser.core-B2uYfibA.js} +2 -2
  155. package/dist/public/assets/{mermaid.core-B8bL0otS.js → mermaid.core-BUTR3k00.js} +3 -3
  156. package/dist/public/assets/{mindmap-definition-LN4V7U3C-BG4thSqa.js → mindmap-definition-LN4V7U3C-CjuwnrRK.js} +1 -1
  157. package/dist/public/assets/{navigation-targets-0wZAeKrc.js → navigation-targets-CIvGC6UT.js} +1 -1
  158. package/dist/public/assets/{now-DrceMm81.js → now-D9M3Ys6o.js} +1 -1
  159. package/dist/public/assets/{open-managed-artifact-tab-BVeI_6BU.js → open-managed-artifact-tab-DvNiFkHO.js} +1 -1
  160. package/dist/public/assets/{ordinal-DOdOZcEj.js → ordinal-DdrNAXbu.js} +1 -1
  161. package/dist/public/assets/packet-7NZHBO7P-BW9abikZ.js +1 -0
  162. package/dist/public/assets/{pegDiagram-2B236MQR-LXeKNT9p.js → pegDiagram-2B236MQR-BbkSvB2I.js} +1 -1
  163. package/dist/public/assets/{pending-receive-nav-store-iHnQtDVG.js → pending-receive-nav-store-DR1sAKXJ.js} +1 -1
  164. package/dist/public/assets/pie-RZYD4A2V-D86NaVqt.js +1 -0
  165. package/dist/public/assets/{pieDiagram-ENE6RG2P-CP834p3L.js → pieDiagram-ENE6RG2P-mC03ntFr.js} +1 -1
  166. package/dist/public/assets/{project-paths-DZoifJi3.js → project-paths-Cic76qJK.js} +1 -1
  167. package/dist/public/assets/{prop-types-CHOFqrri.js → prop-types-lRaJp2DY.js} +1 -1
  168. package/dist/public/assets/{quadrantDiagram-ABIIQ3AL-CRH-DZR6.js → quadrantDiagram-ABIIQ3AL-C5Wf9EzX.js} +1 -1
  169. package/dist/public/assets/radar-I7S5WNFK-DQAd0dLq.js +1 -0
  170. package/dist/public/assets/railroad-3IZDKUUU-BpjxCYYP.js +1 -0
  171. package/dist/public/assets/railroad-abnf-AHOZXSZD-BVzINhcN.js +1 -0
  172. package/dist/public/assets/railroad-ebnf-EBAXGLYW-FAz3aWnD.js +1 -0
  173. package/dist/public/assets/railroad-peg-LSFZ7HO6-Smtu6BYl.js +1 -0
  174. package/dist/public/assets/{railroadDiagram-RFXS5EU6-B0y7CNEU.js → railroadDiagram-RFXS5EU6-D5k_b8X2.js} +1 -1
  175. package/dist/public/assets/{requirementDiagram-TGXJPOKE-CDOzFe2o.js → requirementDiagram-TGXJPOKE-sZXA_y1K.js} +1 -1
  176. package/dist/public/assets/{sankeyDiagram-HTMAVEWB-8LYEe9RT.js → sankeyDiagram-HTMAVEWB-VaejSuXD.js} +1 -1
  177. package/dist/public/assets/{schema-fields-view-intent-DQNqHHeG.js → schema-fields-view-intent-TJtc4k-6.js} +1 -1
  178. package/dist/public/assets/{selection-context-CtO8dzXv.js → selection-context-BXUHt52S.js} +1 -1
  179. package/dist/public/assets/{sequenceDiagram-DBY2YBRQ-DTI3lfyS.js → sequenceDiagram-DBY2YBRQ-nCH-USjy.js} +1 -1
  180. package/dist/public/assets/{sizeCapture-X5ZJPWSS-CdOK33Lp.js → sizeCapture-X5ZJPWSS-CyNe-U3Z.js} +1 -1
  181. package/dist/public/assets/{skill-actions-CKsFVZ7s.js → skill-actions-Dba4au8l.js} +1 -1
  182. package/dist/public/assets/{skills-api-YMCgcUab.js → skills-api-DF632dit.js} +1 -1
  183. package/dist/public/assets/{src-CprZUkQE.js → src-DFZupjZD.js} +1 -1
  184. package/dist/public/assets/{src-DKNcDpsX.js → src-HQ9jN5TM.js} +1 -1
  185. package/dist/public/assets/{stateDiagram-2N3HPSRC-Be5NtYCp.js → stateDiagram-2N3HPSRC-uY9Mif8t.js} +1 -1
  186. package/dist/public/assets/stateDiagram-v2-6OUMAXLB-BdS5vmc7.js +1 -0
  187. package/dist/public/assets/{swimlanes-5IMT3BWC-Cyw1mKbC.js → swimlanes-5IMT3BWC-cGipHfZ5.js} +2 -2
  188. package/dist/public/assets/swimlanesDiagram-G3AALYLV-Do_H-wCL.js +8 -0
  189. package/dist/public/assets/{tag-pill-input-BR-zZRy9.js → tag-pill-input-dMdZz7rQ.js} +1 -1
  190. package/dist/public/assets/{target-navigation-intent-CTSKR5SK.js → target-navigation-intent-DJIHeKVE.js} +1 -1
  191. package/dist/public/assets/{telemetry-impl-BJK36lQF.js → telemetry-impl-wB4jlPUB.js} +2 -2
  192. package/dist/public/assets/{telemetry-startup-D8rFEM2d.js → telemetry-startup-VOUFAT7a.js} +1 -1
  193. package/dist/public/assets/{terminal-launch-events-D7klM-xS.js → terminal-launch-events-DLrJMi-n.js} +1 -1
  194. package/dist/public/assets/{terminal-telemetry-JwJxpal6.js → terminal-telemetry-tRSeGdHR.js} +1 -1
  195. package/dist/public/assets/{text-viewer-languages-BLSME92j.js → text-viewer-languages-fF8VNtRc.js} +2 -2
  196. package/dist/public/assets/{thread-client-DTPNoVs3.js → thread-client-CJRnPjEz.js} +1 -1
  197. package/dist/public/assets/{timeline-definition-FHXFAJF6-BlFXUexj.js → timeline-definition-FHXFAJF6-BaWSHiEf.js} +1 -1
  198. package/dist/public/assets/treeView-QDETBFTQ-BgORrhQ0.js +1 -0
  199. package/dist/public/assets/treemap-6X3UGDF4-Zr5ZEdj0.js +1 -0
  200. package/dist/public/assets/{typing-burst-detector-X0S33jis.js → typing-burst-detector-CC7bIjEV.js} +1 -1
  201. package/dist/public/assets/{uninstall-CgrheMqc.js → uninstall-CC6Bx6G7.js} +1 -1
  202. package/dist/public/assets/{use-activity-panel-BZ9nGQPH.js → use-activity-panel-D9D0qVT-.js} +1 -1
  203. package/dist/public/assets/{use-live-xterm-theme-on3ebtaK.js → use-live-xterm-theme-CRmcqypM.js} +1 -1
  204. package/dist/public/assets/{use-open-skill-CI0ilwyX.js → use-open-skill-7MNEmyfe.js} +1 -1
  205. package/dist/public/assets/{use-skill-directory-BVbrNJTi.js → use-skill-directory-ByVFCtzx.js} +1 -1
  206. package/dist/public/assets/{use-skill-origin-CEQwPxVb.js → use-skill-origin-CiWSd5Bp.js} +1 -1
  207. package/dist/public/assets/{use-skills-DdHlTORK.js → use-skills-CjgBfNqJ.js} +1 -1
  208. package/dist/public/assets/{use-terminal-enabled-DVN1muEr.js → use-terminal-enabled-6lUTjD1J.js} +1 -1
  209. package/dist/public/assets/{use-timeline-entry-diff-Be73Nm0G.js → use-timeline-entry-diff-TOhNAiEO.js} +1 -1
  210. package/dist/public/assets/{vennDiagram-L72KCM5P-CbMxlzwT.js → vennDiagram-L72KCM5P-boRPAxOy.js} +1 -1
  211. package/dist/public/assets/wardley-OPB4EBWU-WeTAUrVk.js +1 -0
  212. package/dist/public/assets/{wardleyDiagram-EHGQE667-CVZ_1-Ob.js → wardleyDiagram-EHGQE667-vi90NC-5.js} +1 -1
  213. package/dist/public/assets/{xychartDiagram-FW5EYKEG-CiobWJYX.js → xychartDiagram-FW5EYKEG-Ckph0Tnv.js} +1 -1
  214. package/dist/public/index.html +101 -102
  215. package/dist/public/uninstall.html +8 -8
  216. package/dist/{repair-launch-json-kJ-N16X6.mjs → repair-launch-json-BLsGi3mb.mjs} +2 -2
  217. package/dist/{repair-mcp-configs-cRf1KHN2.mjs → repair-mcp-configs-BBKSodto.mjs} +2 -2
  218. package/dist/{repair-skills-CAgJh50Q.mjs → repair-skills-Bdq3MhBx.mjs} +2 -2
  219. package/dist/repair-skills-DzOXy3tC.mjs +1 -0
  220. package/dist/{src-K60Nfy_1.mjs → src-B3Ey-N80.mjs} +2 -2
  221. package/dist/{src-6SIlUA0g.mjs → src-BJlGFyAy.mjs} +1 -1
  222. package/dist/{src-DlAv53T2.mjs → src-CFTJ6mgL.mjs} +220 -220
  223. package/dist/start-9wytEH8K.mjs +1 -0
  224. package/dist/{start-fAsaQwEs.mjs → start-CKOa3i5A.mjs} +3 -3
  225. package/dist/{write-project-skill-Bn1Fo5lw.mjs → write-project-skill-KxnphNDZ.mjs} +2 -2
  226. package/package.json +4 -4
  227. package/dist/constants-Bi35H8-Y.mjs +0 -2
  228. package/dist/init-BHEUjCX8.mjs +0 -1
  229. package/dist/loader-DIKghq91.mjs +0 -1
  230. package/dist/preview-CRUQ2pHj.mjs +0 -1
  231. package/dist/public/assets/FeedbackForm-D46RvfHP.js +0 -1
  232. package/dist/public/assets/ManagedArtifactProperties-BijATHK9.js +0 -1
  233. package/dist/public/assets/ManagedArtifactProperties-CTw29aB4.js +0 -2
  234. package/dist/public/assets/ThreadView-1kpA4rse.js +0 -6
  235. package/dist/public/assets/architecture-TIHT7OUA-4xbw6BHT.js +0 -1
  236. package/dist/public/assets/channel-CEdybrh9.js +0 -1
  237. package/dist/public/assets/chunk-2Q5K7J3B-CTVQtWlX.js +0 -1
  238. package/dist/public/assets/chunk-VAUOI2AC-BPnCZl88.js +0 -1
  239. package/dist/public/assets/chunk-XXDRQBXY-AFNsmOQr.js +0 -1
  240. package/dist/public/assets/classDiagram-OUVF2IWQ-DJJ_lD6S.js +0 -1
  241. package/dist/public/assets/classDiagram-v2-EOCWNBFH-DU_c9B2S.js +0 -1
  242. package/dist/public/assets/comment-chips-tOHcZ7p1.js +0 -7
  243. package/dist/public/assets/cynefin-VYW2F7L2-PIqjqGI8.js +0 -1
  244. package/dist/public/assets/eventmodeling-45OFAUF4-BXfoXwmF.js +0 -1
  245. package/dist/public/assets/flowDiagram-23GEKE2U-FFa51yc6.js +0 -1
  246. package/dist/public/assets/gitGraph-TEB2WS4Q-CO_Nyook.js +0 -1
  247. package/dist/public/assets/info-DKCQHKI2-Qu4WNhHa.js +0 -1
  248. package/dist/public/assets/mermaid-GHXKKRXX-C0TBTYbW.js +0 -1
  249. package/dist/public/assets/packet-7NZHBO7P-DYoxmend.js +0 -1
  250. package/dist/public/assets/pie-RZYD4A2V-C5oywqmk.js +0 -1
  251. package/dist/public/assets/radar-I7S5WNFK-adGffv9k.js +0 -1
  252. package/dist/public/assets/railroad-3IZDKUUU-D4AY10Mc.js +0 -1
  253. package/dist/public/assets/railroad-abnf-AHOZXSZD-CSShZExy.js +0 -1
  254. package/dist/public/assets/railroad-ebnf-EBAXGLYW-Dl_rhwOm.js +0 -1
  255. package/dist/public/assets/railroad-peg-LSFZ7HO6-B2JvE7nW.js +0 -1
  256. package/dist/public/assets/stateDiagram-v2-6OUMAXLB-B6a4uvcW.js +0 -1
  257. package/dist/public/assets/swimlanesDiagram-G3AALYLV-D3egjuKf.js +0 -8
  258. package/dist/public/assets/treeView-QDETBFTQ-qMpkjbKi.js +0 -1
  259. package/dist/public/assets/treemap-6X3UGDF4-BW1Uc-Dj.js +0 -1
  260. package/dist/public/assets/wardley-OPB4EBWU-BBZU6-hF.js +0 -1
  261. package/dist/repair-skills-CXwfQm8m.mjs +0 -1
  262. package/dist/start-ak4kOBNH.mjs +0 -1
  263. /package/dist/public/assets/{ActivityPanelDiffView-BXFg3amj.js → ActivityPanelDiffView-DzcGG-3T.js} +0 -0
  264. /package/dist/public/assets/{AppMenubar-Cub3r1zs.js → AppMenubar-rFZzqUIz.js} +0 -0
  265. /package/dist/public/assets/{ConfigSharingInfoTooltip-OJruUI3H.js → ConfigSharingInfoTooltip-TcS6sVpd.js} +0 -0
  266. /package/dist/public/assets/{SkillModeBanner-BPmqGiVe.js → SkillModeBanner-BGvDA8_3.js} +0 -0
  267. /package/dist/public/assets/{__vite-browser-external-CVGzy5OC.js → __vite-browser-external-DRftbq1J.js} +0 -0
  268. /package/dist/public/assets/{agent-presence-Dn2bQ2Pn.js → agent-presence-DspgbUIJ.js} +0 -0
  269. /package/dist/public/assets/{array-CxykTcx8.js → array-BlR6RSqS.js} +0 -0
  270. /package/dist/public/assets/{auth-prompt-store-2KB0Hew5.js → auth-prompt-store-C7w8BqXG.js} +0 -0
  271. /package/dist/public/assets/{badge-DwfQ2IQa.js → badge-BTPyRUGW.js} +0 -0
  272. /package/dist/public/assets/{chunk-KEIR6QF5-DQW1nIEN.js → chunk-KEIR6QF5-Cvu_RfZc.js} +0 -0
  273. /package/dist/public/assets/{chunk-Y2CYZVJY-Dp_m2dHs.js → chunk-Y2CYZVJY-BavonG01.js} +0 -0
  274. /package/dist/public/assets/{client-version-DL1elh-R.js → client-version-DD_4w0Q_.js} +0 -0
  275. /package/dist/public/assets/{clike-D2Qtyj0W.js → clike-BTKURkAr.js} +0 -0
  276. /package/dist/public/assets/{clipboard-adapter-Brbch5VX.js → clipboard-adapter-DdkYoUY3.js} +0 -0
  277. /package/dist/public/assets/{colors-DxV0gzKw.js → colors-DThYSuj1.js} +0 -0
  278. /package/dist/public/assets/{config-context-CVWonKyE.js → config-context-7il4AXHf.js} +0 -0
  279. /package/dist/public/assets/{copilot-_tsUyzgD.js → copilot-CYbxld_I.js} +0 -0
  280. /package/dist/public/assets/{cursor-D_UKSHL6.js → cursor-CVuYJhcM.js} +0 -0
  281. /package/dist/public/assets/{cytoscape.esm-Yabh0yK_.js → cytoscape.esm-CcKBPOPz.js} +0 -0
  282. /package/dist/public/assets/{defaultLocale-BwEiHuJD.js → defaultLocale-Bj1aksfd.js} +0 -0
  283. /package/dist/public/assets/{desktop-bridge-types-cNTLS5xb.js → desktop-bridge-types-ByIs2Wy8.js} +0 -0
  284. /package/dist/public/assets/{diff-Dke_3Gcp.js → diff-CC9Zbhye.js} +0 -0
  285. /package/dist/public/assets/{dist-yoZDDKeY.js → dist-BKO-SihH.js} +0 -0
  286. /package/dist/public/assets/{dist-CPBLOoKm.js → dist-CublDHOR.js} +0 -0
  287. /package/dist/public/assets/{dist-D6euTqbb.js → dist-D1YpGD7x.js} +0 -0
  288. /package/dist/public/assets/{dist-BNVxnBBw.js → dist-Dr52ya0i.js} +0 -0
  289. /package/dist/public/assets/{dist-CJ0cwmiC.js → dist-pl6OT5yc.js} +0 -0
  290. /package/dist/public/assets/{doc-paths-CQTfUOZw.js → doc-paths-D9TaK83y.js} +0 -0
  291. /package/dist/public/assets/{documents-events-BwmrmAGX.js → documents-events-Bz6CFw_P.js} +0 -0
  292. /package/dist/public/assets/{documents-fetch-D4kwvrzo.js → documents-fetch-Ks0Eoaj3.js} +0 -0
  293. /package/dist/public/assets/{external-link-CKZFgCFq.js → external-link-CIs3ZL0b.js} +0 -0
  294. /package/dist/public/assets/{field-mSLytCEk.js → field-Cq66GDVw.js} +0 -0
  295. /package/dist/public/assets/{file-tree-rename-validation-BH8L3cc3.js → file-tree-rename-validation-D3F7wC1T.js} +0 -0
  296. /package/dist/public/assets/{file-tree-utils-BG34yBvw.js → file-tree-utils-DNgYWWaG.js} +0 -0
  297. /package/dist/public/assets/{follow-file-B9VBGXDD.js → follow-file-DbGZjgvx.js} +0 -0
  298. /package/dist/public/assets/{form-CDklsKOD.js → form-DipRd6xO.js} +0 -0
  299. /package/dist/public/assets/{format-DAPkd5Gj.js → format-B72MB8qy.js} +0 -0
  300. /package/dist/public/assets/{go-CcjpRIwm.js → go-BOoSlAXr.js} +0 -0
  301. /package/dist/public/assets/{init-c3-Nu4HJ.js → init-tTyHApSS.js} +0 -0
  302. /package/dist/public/assets/{input-DcoGZoTQ.js → input-CdGQDWjM.js} +0 -0
  303. /package/dist/public/assets/{isObject-cN229uXS.js → isObject-CS6pZNNk.js} +0 -0
  304. /package/dist/public/assets/{libesm-DXt8eMZu.js → libesm-COuF-Ycc.js} +0 -0
  305. /package/dist/public/assets/{lint-config-client-Bg_dSPOM.js → lint-config-client-C5EEYoJ7.js} +0 -0
  306. /package/dist/public/assets/{lint-plugin-meta-BxfSlkph.js → lint-plugin-meta-7A6ZrPoH.js} +0 -0
  307. /package/dist/public/assets/{lru-string-cache-Dvzy2WTu.js → lru-string-cache-DXyh0UqD.js} +0 -0
  308. /package/dist/public/assets/{lua-DxmBbMX2.js → lua-Dxo01oIG.js} +0 -0
  309. /package/dist/public/assets/{mcp-consent-store-BcrhbRwc.js → mcp-consent-store-BivjPpLe.js} +0 -0
  310. /package/dist/public/assets/{min-BZE3RIbd.js → min-B52VabRz.js} +0 -0
  311. /package/dist/public/assets/{minus-dDmjPbo4.js → minus-BqVmr9UG.js} +0 -0
  312. /package/dist/public/assets/{overlay-layers-DGwgwjHg.js → overlay-layers-gL_2dQqz.js} +0 -0
  313. /package/dist/public/assets/{panel-Bjv8raTx.js → panel-Boo96yEj.js} +0 -0
  314. /package/dist/public/assets/{panel-right-open-EPKoGQBE.js → panel-right-open-mOxBnqyo.js} +0 -0
  315. /package/dist/public/assets/{panzoom.es-BG-eqGqR.js → panzoom.es-JQqfaE6_.js} +0 -0
  316. /package/dist/public/assets/{paperclip-DSaV3jTp.js → paperclip-mdBEQ0WS.js} +0 -0
  317. /package/dist/public/assets/{parse-api-error-CGRziNbI.js → parse-api-error-9c-Rs5WJ.js} +0 -0
  318. /package/dist/public/assets/{path-C0vgPxDI.js → path-BTSnI4V0.js} +0 -0
  319. /package/dist/public/assets/{pdf-Cvbt6FaY.js → pdf-DDNlrbvd.js} +0 -0
  320. /package/dist/public/assets/{pdf.worker-D0hSc7ZI.js → pdf.worker-MgQT7Lb-.js} +0 -0
  321. /package/dist/public/assets/{perl-CTbv8SzR.js → perl-L_d0-K7D.js} +0 -0
  322. /package/dist/public/assets/{properties-CJVfsSwL.js → properties-B1mL7FEj.js} +0 -0
  323. /package/dist/public/assets/{r-DePwCFla.js → r-D1HJ6WJD.js} +0 -0
  324. /package/dist/public/assets/{receive-store-YZh_VQ02.js → receive-store-D_AGLfs3.js} +0 -0
  325. /package/dist/public/assets/{refresh-cw-DaKSQ-xL.js → refresh-cw-CsRXA9N2.js} +0 -0
  326. /package/dist/public/assets/{rough.esm-jZQkcmER.js → rough.esm-FREjYXwx.js} +0 -0
  327. /package/dist/public/assets/{ruby-CbNmqTQ7.js → ruby-BWJ7ZkjF.js} +0 -0
  328. /package/dist/public/assets/{share-metadata-rows-CuFlpaJB.js → share-metadata-rows-c17l05D6.js} +0 -0
  329. /package/dist/public/assets/{shell-PtNEZQbu.js → shell-ul8ysUs1.js} +0 -0
  330. /package/dist/public/assets/{skeleton-Zj40UZU5.js → skeleton-CD1oYYfF.js} +0 -0
  331. /package/dist/public/assets/{skill-scope-DNo7_4lO.js → skill-scope-C8db1Nmk.js} +0 -0
  332. /package/dist/public/assets/{sortable.esm-BuA5-2It.js → sortable.esm-Dngr9VJ1.js} +0 -0
  333. /package/dist/public/assets/{sql-DLytrKWQ.js → sql-BJVFbIWu.js} +0 -0
  334. /package/dist/public/assets/{square-pen-BETfUJNH.js → square-pen-BbETm_LZ.js} +0 -0
  335. /package/dist/public/assets/{src-D9TuoXKa.js → src-CIOeKeVw.js} +0 -0
  336. /package/dist/public/assets/{startup-marks-Bl-kvAXX.js → startup-marks-BFvG00Uu.js} +0 -0
  337. /package/dist/public/assets/{stex-7gT25hE_.js → stex-WCjgSIWy.js} +0 -0
  338. /package/dist/public/assets/{swift-BqNeJfD7.js → swift-BmJYIPlb.js} +0 -0
  339. /package/dist/public/assets/{textarea-Cl4IJ1LU.js → textarea-BzPGvj03.js} +0 -0
  340. /package/dist/public/assets/{thread-draft-staging-XfhEE_6X.js → thread-draft-staging-Df0IT4FR.js} +0 -0
  341. /package/dist/public/assets/{timeline-diff-store-B-Ea84Rl.js → timeline-diff-store-BYDskbwd.js} +0 -0
  342. /package/dist/public/assets/{toml-Cboq-aWW.js → toml-BOOm8Wvq.js} +0 -0
  343. /package/dist/public/assets/{trash-2-YBQNhePb.js → trash-2-4ZuuBm4P.js} +0 -0
  344. /package/dist/public/assets/{triangle-alert-Dk8dL1G6.js → triangle-alert-BB_1Bz59.js} +0 -0
  345. /package/dist/public/assets/{undo-2-1g5Fg6rD.js → undo-2-BxTugTzj.js} +0 -0
  346. /package/dist/public/assets/{use-collab-url-D8N5M2pl.js → use-collab-url-YV5mZB2Z.js} +0 -0
  347. /package/dist/public/assets/{use-installed-clis-BpdGnrVu.js → use-installed-clis-a0f5-upA.js} +0 -0
  348. /package/dist/public/assets/{use-settings-route-BiaOx7d8.js → use-settings-route-Cj3iyYQM.js} +0 -0
  349. /package/dist/public/assets/{use-workspace--dJVq1a4.js → use-workspace-DX49f8pU.js} +0 -0
  350. /package/dist/public/assets/{useLintConfigViewMode-DHyC74de.js → useLintConfigViewMode-15VleUG7.js} +0 -0
  351. /package/dist/public/assets/{wrench-86_Xzzag.js → wrench-BHZvMfZp.js} +0 -0
  352. /package/dist/public/assets/{x-M_y7ybHr.js → x-BL2rz544.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{R as e}from"./src-CA2-5ky_.mjs";import{Qn as t,Zn as n,ar as r,dr as i,fr as a,nr as o,rr as s,sr as c,tr as l}from"./src-DlAv53T2.mjs";import{T as u,a as d,d as f,f as p,o as m,s as h,t as g}from"./write-project-skill-Bn1Fo5lw.mjs";import{n as _,s as v,t as y}from"./colors-BsmVIwfM.mjs";import{dirname as b,join as x,relative as S,resolve as C}from"node:path";import{existsSync as w,mkdirSync as T,readFileSync as E,readdirSync as D,rmSync as O,statSync as k,writeFileSync as A}from"node:fs";import{homedir as j}from"node:os";import{createInterface as M}from"node:readline/promises";const N={existsSync:e=>w(e),isDirectory:e=>{try{return k(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw e}},readdirSync:e=>D(e),readFileSync:e=>E(e),writeFileSync:(e,t)=>{A(e,t)},mkdirSync:(e,t)=>{T(e,t)},rmSync:(e,t)=>{O(e,t)}},P={resolveProjectBundledSkillDir:()=>c(`project`,{checkDesktop:!1}),resolveUserBundledSkillDir:e=>c(e,{checkDesktop:!1}),readBundledVersion:()=>t(),readRecordedVersion:e=>l(e,`cli-hosts`),writeRecordedVersion:(e,t)=>s(e,`cli-hosts`,t,`cli-start`),recordEvent:e=>r(e),readBundleDecision:(e,t)=>n(e,t),writeBundleDecision:(e,t,n)=>o(e,t,n),removeBundleFromDisk:(e,t)=>h(e,t)};function F(e){process.stderr.write(`${JSON.stringify(e)}\n`)}function I(e,t,n){n.rmSync(t,{recursive:!0,force:!0}),n.mkdirSync(b(t),{recursive:!0}),L(e,t,n)}function L(e,t,n){n.mkdirSync(t,{recursive:!0});for(let r of n.readdirSync(e)){let i=x(e,r),a=x(t,r);n.isDirectory(i)?L(i,a,n):n.writeFileSync(a,n.readFileSync(i))}}function R(e,t,n,r,i,a){let o=[],s=x(e,`.agents`,`skills`,t),c=!1;if(r.existsSync(s))o.push({kind:`central`,path:s,outcome:`skipped-present`});else try{I(n,s,r),c=!0,o.push({kind:`central`,path:s,outcome:`written`}),i({event:`user-skill-reclaim-central-written`,scope:`user`,path:s,preexisting:!1,version:a})}catch(e){let t=e instanceof Error?e.message:String(e);o.push({kind:`central`,path:s,outcome:`failed`,error:t}),i({event:`user-skill-reclaim-central-failed`,scope:`user`,path:s,error:t})}for(let c of p){let l=x(e,c.hostDir),u=x(l,`skills`,t);if(u===s){o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`skipped-collapsed-with-central`});continue}if(!r.existsSync(l)){o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`skipped-host-absent`});continue}if(r.existsSync(u)){o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`skipped-present`});continue}try{I(n,u,r),o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`written`}),i({event:`user-skill-reclaim-host-written`,scope:`user`,editorId:c.editorId,hostDir:c.hostDir,path:u,preexisting:!1,version:a})}catch(e){let t=e instanceof Error?e.message:String(e);o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`failed`,error:t}),i({event:`user-skill-reclaim-host-failed`,scope:`user`,editorId:c.editorId,hostDir:c.hostDir,path:u,error:t})}}return{entries:o,centralWritten:c}}function z(e,t){if(!e)return!1;try{return t.existsSync(e)?t.readFileSync(e).toString(`utf8`).includes(`# ok-mcp-`):!1}catch{return!1}}function B(e,t,n,r){let i;try{i=t.resolveProjectBundledSkillDir()}catch(e){return r({event:`project-skill-reclaim-bundle-missing`,scope:`project`,error:e instanceof Error?e.message:String(e)}),{outcome:`skipped`,reason:`bundle-missing`}}let a=[];for(let t of p){let o=x(e,t.hostDir,`skills`,`open-knowledge`),s=x(o,`SKILL.md`);if(n.existsSync(s)){a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`present`});continue}let c=f[t.editorId]?.projectConfigPath?.(e);if(!z(c,n)){a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`no-token`}),r({event:`project-skill-reclaim-no-token`,scope:`project`,editorId:t.editorId,path:o});continue}try{g(o,e),I(i,o,n),a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`created`}),r({event:`project-skill-reclaim-created`,scope:`project`,editorId:t.editorId,path:o})}catch(e){let n=e instanceof Error?e.message:String(e);a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`failed`,error:n}),r({event:`project-skill-reclaim-failed`,scope:`project`,editorId:t.editorId,path:o,error:n})}}return{outcome:`done`,entries:a}}async function V(t,n,r,o){let s=e=>{n.recordEvent(e).catch(()=>{})},c=()=>new Date().toISOString(),l;try{l=await n.readBundledVersion()}catch(e){let t=e instanceof Error?e.message:String(e);return o({event:`user-skill-reclaim-version-read-failed`,scope:`user`,error:t}),s({ts:c(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:`failed`,reason:`version-read-failed:${t}`}),{outcome:`skipped`,reason:`version-read-failed`}}let u;try{u=await n.readRecordedVersion(t)}catch(e){o({event:`user-skill-reclaim-version-read-error`,scope:`user`,error:e instanceof Error?e.message:String(e)}),u=null}let d=[],f=null;for(let e of a)try{d.push({id:e,sourceDir:n.resolveUserBundledSkillDir(e)})}catch(e){f=e instanceof Error?e.message:String(e)}if(d.length===0)return o({event:`user-skill-reclaim-bundle-missing`,scope:`user`,error:f??`no user-global bundles`}),s({ts:c(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,reason:`bundle-missing:${f}`}),{outcome:`skipped`,reason:`bundle-missing`};let p=[];for(let a of d){let s=i[a.id],c=r.existsSync(x(t,`.agents`,`skills`,s)),l=await n.readBundleDecision(t,s).catch(()=>null);if(!e(l,{installedOnDisk:c})){if(c)try{n.removeBundleFromDisk(t,a.id),o({event:`user-skill-reclaim-bundle-declined-removed`,scope:`user`,bundle:a.id})}catch(e){o({event:`user-skill-reclaim-bundle-remove-failed`,scope:`user`,bundle:a.id,error:e instanceof Error?e.message:String(e)})}continue}if(l===null&&c)try{await n.writeBundleDecision(t,s,!0)}catch(e){o({event:`user-skill-reclaim-grandfather-write-failed`,scope:`user`,bundle:a.id,error:e instanceof Error?e.message:String(e)})}p.push(a)}if(p.length===0)return{outcome:`skipped`,reason:`all-bundles-declined`};let m=p.every(e=>r.existsSync(x(t,`.agents`,`skills`,i[e.id])));if(u!==null&&u===l&&m)return o({event:`user-skill-reclaim-skipped-version-current`,scope:`user`,version:l}),{outcome:`skipped`,reason:`version-current`};let h=[],g=d.length===a.length,_=[];for(let{id:e,sourceDir:n}of p){let a=R(t,i[e],n,r,o,l);h.push(...a.entries),_.push({id:e,centralWritten:a.centralWritten})}let v=h.some(e=>e.kind===`central`&&e.outcome===`failed`);if(g&&!v){let e=null;try{await n.writeRecordedVersion(t,l),o({event:`user-skill-reclaim-version-recorded`,scope:`user`,version:l})}catch(t){e=t instanceof Error?t.message:String(t),o({event:`user-skill-reclaim-version-record-failed`,scope:`user`,version:l,error:e})}for(let{id:t,centralWritten:n}of _)s({ts:c(),surface:`cli-start`,target:`cli-hosts`,bundle:t,outcome:e===null?n?`installed`:`skip-current`:`failed`,version:l,...e===null?{}:{reason:`state-write-failed:${e}`}})}else{let e=h.some(e=>e.kind===`host`&&e.outcome===`failed`);s({ts:c(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,version:l,reason:g?e?`all-writes-failed`:`central-write-failed`:`bundle-unresolved`})}return{outcome:`done`,version:l,entries:h}}async function H(e){let t=e.logger??F,n=e.fs??N,r=e.home??j(),i={...P,...e.deps};if(e.reclaimDisableEnv===`1`)return t({event:`skill-repair-skipped`,reason:`reclaim-disabled`}),{status:`skipped`,reason:`reclaim-disabled`};let a=B(e.projectDir,i,n,t),o=await V(r,i,n,t),s=m(r),c=[],l=!1,u=!1;if(s.skillDirs.length>0||s.emptyDirs.length>0)if(e.confirmLegacyCleanup&&await e.confirmLegacyCleanup(s)){try{c=d(r,s)}catch(e){u=!0,t({event:`legacy-fanout-cleanup-refused`,scope:`user`,error:e instanceof Error?e.message:String(e)})}for(let e of c)t({event:`legacy-fanout-path-removed`,scope:`user`,path:e})}else l=!0,t({event:`legacy-fanout-cleanup-declined`,scope:`user`});return{status:`done`,project:a,user:o,legacySwept:c,legacyCleanupDeclined:l,legacyCleanupFailed:u}}function U(e){return e.status===`skipped`?e.reason===`reclaim-disabled`?0:1:e.project.outcome===`skipped`||e.user.outcome===`skipped`&&e.user.reason!==`version-current`&&e.user.reason!==`all-bundles-declined`||e.project.entries.some(e=>e.outcome===`failed`)||e.user.outcome===`done`&&e.user.entries.some(e=>e.outcome===`failed`)?1:0}function W(e){if(e.status===`skipped`)return`Skipped: ${e.reason}`;let t=[`Skill reclaim complete.`];if(e.project.outcome===`done`){let n=e.project.entries.filter(e=>e.outcome===`present`).length,r=e.project.entries.filter(e=>e.outcome===`created`).length,i=e.project.entries.filter(e=>e.outcome===`no-token`).length,a=e.project.entries.filter(e=>e.outcome===`failed`).length;t.push(` Project: ${n} present, ${r} created, ${i} no-token, ${a} failed.`)}else t.push(` Project: skipped (${e.project.reason}).`);if(e.user.outcome===`done`){let n=e.user.entries.filter(e=>e.outcome===`written`).length,r=e.user.entries.filter(e=>e.outcome===`skipped-present`).length,i=e.user.entries.filter(e=>e.outcome===`skipped-host-absent`||e.outcome===`skipped-collapsed-with-central`).length,a=e.user.entries.filter(e=>e.outcome===`failed`).length;t.push(` User (${e.user.version}): ${n} written, ${r} present, ${i} skipped, ${a} failed.`)}else t.push(` User: skipped (${e.user.reason}).`);return e.legacySwept.length>0?t.push(` Cleanup: removed ${e.legacySwept.length} path(s) from a pre-0.42 install.`):e.legacyCleanupFailed?t.push(` Cleanup: failed — see logs; pre-0.42 directories left in place.`):e.legacyCleanupDeclined&&t.push(` Cleanup: declined — pre-0.42 directories left in place.`),t.join(`
1
+ import{R as e}from"./src-CA2-5ky_.mjs";import{Qn as t,Zn as n,ar as r,dr as i,fr as a,nr as o,rr as s,sr as c,tr as l}from"./src-CFTJ6mgL.mjs";import{T as u,a as d,d as f,f as p,o as m,s as h,t as g}from"./write-project-skill-KxnphNDZ.mjs";import{n as _,s as v,t as y}from"./colors-BsmVIwfM.mjs";import{dirname as b,join as x,relative as S,resolve as C}from"node:path";import{existsSync as w,mkdirSync as T,readFileSync as E,readdirSync as D,rmSync as O,statSync as k,writeFileSync as A}from"node:fs";import{homedir as j}from"node:os";import{createInterface as M}from"node:readline/promises";const N={existsSync:e=>w(e),isDirectory:e=>{try{return k(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw e}},readdirSync:e=>D(e),readFileSync:e=>E(e),writeFileSync:(e,t)=>{A(e,t)},mkdirSync:(e,t)=>{T(e,t)},rmSync:(e,t)=>{O(e,t)}},P={resolveProjectBundledSkillDir:()=>c(`project`,{checkDesktop:!1}),resolveUserBundledSkillDir:e=>c(e,{checkDesktop:!1}),readBundledVersion:()=>t(),readRecordedVersion:e=>l(e,`cli-hosts`),writeRecordedVersion:(e,t)=>s(e,`cli-hosts`,t,`cli-start`),recordEvent:e=>r(e),readBundleDecision:(e,t)=>n(e,t),writeBundleDecision:(e,t,n)=>o(e,t,n),removeBundleFromDisk:(e,t)=>h(e,t)};function F(e){process.stderr.write(`${JSON.stringify(e)}\n`)}function I(e,t,n){n.rmSync(t,{recursive:!0,force:!0}),n.mkdirSync(b(t),{recursive:!0}),L(e,t,n)}function L(e,t,n){n.mkdirSync(t,{recursive:!0});for(let r of n.readdirSync(e)){let i=x(e,r),a=x(t,r);n.isDirectory(i)?L(i,a,n):n.writeFileSync(a,n.readFileSync(i))}}function R(e,t,n,r,i,a){let o=[],s=x(e,`.agents`,`skills`,t),c=!1;if(r.existsSync(s))o.push({kind:`central`,path:s,outcome:`skipped-present`});else try{I(n,s,r),c=!0,o.push({kind:`central`,path:s,outcome:`written`}),i({event:`user-skill-reclaim-central-written`,scope:`user`,path:s,preexisting:!1,version:a})}catch(e){let t=e instanceof Error?e.message:String(e);o.push({kind:`central`,path:s,outcome:`failed`,error:t}),i({event:`user-skill-reclaim-central-failed`,scope:`user`,path:s,error:t})}for(let c of p){let l=x(e,c.hostDir),u=x(l,`skills`,t);if(u===s){o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`skipped-collapsed-with-central`});continue}if(!r.existsSync(l)){o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`skipped-host-absent`});continue}if(r.existsSync(u)){o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`skipped-present`});continue}try{I(n,u,r),o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`written`}),i({event:`user-skill-reclaim-host-written`,scope:`user`,editorId:c.editorId,hostDir:c.hostDir,path:u,preexisting:!1,version:a})}catch(e){let t=e instanceof Error?e.message:String(e);o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`failed`,error:t}),i({event:`user-skill-reclaim-host-failed`,scope:`user`,editorId:c.editorId,hostDir:c.hostDir,path:u,error:t})}}return{entries:o,centralWritten:c}}function z(e,t){if(!e)return!1;try{return t.existsSync(e)?t.readFileSync(e).toString(`utf8`).includes(`# ok-mcp-`):!1}catch{return!1}}function B(e,t,n,r){let i;try{i=t.resolveProjectBundledSkillDir()}catch(e){return r({event:`project-skill-reclaim-bundle-missing`,scope:`project`,error:e instanceof Error?e.message:String(e)}),{outcome:`skipped`,reason:`bundle-missing`}}let a=[];for(let t of p){let o=x(e,t.hostDir,`skills`,`open-knowledge`),s=x(o,`SKILL.md`);if(n.existsSync(s)){a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`present`});continue}let c=f[t.editorId]?.projectConfigPath?.(e);if(!z(c,n)){a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`no-token`}),r({event:`project-skill-reclaim-no-token`,scope:`project`,editorId:t.editorId,path:o});continue}try{g(o,e),I(i,o,n),a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`created`}),r({event:`project-skill-reclaim-created`,scope:`project`,editorId:t.editorId,path:o})}catch(e){let n=e instanceof Error?e.message:String(e);a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`failed`,error:n}),r({event:`project-skill-reclaim-failed`,scope:`project`,editorId:t.editorId,path:o,error:n})}}return{outcome:`done`,entries:a}}async function V(t,n,r,o){let s=e=>{n.recordEvent(e).catch(()=>{})},c=()=>new Date().toISOString(),l;try{l=await n.readBundledVersion()}catch(e){let t=e instanceof Error?e.message:String(e);return o({event:`user-skill-reclaim-version-read-failed`,scope:`user`,error:t}),s({ts:c(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:`failed`,reason:`version-read-failed:${t}`}),{outcome:`skipped`,reason:`version-read-failed`}}let u;try{u=await n.readRecordedVersion(t)}catch(e){o({event:`user-skill-reclaim-version-read-error`,scope:`user`,error:e instanceof Error?e.message:String(e)}),u=null}let d=[],f=null;for(let e of a)try{d.push({id:e,sourceDir:n.resolveUserBundledSkillDir(e)})}catch(e){f=e instanceof Error?e.message:String(e)}if(d.length===0)return o({event:`user-skill-reclaim-bundle-missing`,scope:`user`,error:f??`no user-global bundles`}),s({ts:c(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,reason:`bundle-missing:${f}`}),{outcome:`skipped`,reason:`bundle-missing`};let p=[];for(let a of d){let s=i[a.id],c=r.existsSync(x(t,`.agents`,`skills`,s)),l=await n.readBundleDecision(t,s).catch(()=>null);if(!e(l,{installedOnDisk:c})){if(c)try{n.removeBundleFromDisk(t,a.id),o({event:`user-skill-reclaim-bundle-declined-removed`,scope:`user`,bundle:a.id})}catch(e){o({event:`user-skill-reclaim-bundle-remove-failed`,scope:`user`,bundle:a.id,error:e instanceof Error?e.message:String(e)})}continue}if(l===null&&c)try{await n.writeBundleDecision(t,s,!0)}catch(e){o({event:`user-skill-reclaim-grandfather-write-failed`,scope:`user`,bundle:a.id,error:e instanceof Error?e.message:String(e)})}p.push(a)}if(p.length===0)return{outcome:`skipped`,reason:`all-bundles-declined`};let m=p.every(e=>r.existsSync(x(t,`.agents`,`skills`,i[e.id])));if(u!==null&&u===l&&m)return o({event:`user-skill-reclaim-skipped-version-current`,scope:`user`,version:l}),{outcome:`skipped`,reason:`version-current`};let h=[],g=d.length===a.length,_=[];for(let{id:e,sourceDir:n}of p){let a=R(t,i[e],n,r,o,l);h.push(...a.entries),_.push({id:e,centralWritten:a.centralWritten})}let v=h.some(e=>e.kind===`central`&&e.outcome===`failed`);if(g&&!v){let e=null;try{await n.writeRecordedVersion(t,l),o({event:`user-skill-reclaim-version-recorded`,scope:`user`,version:l})}catch(t){e=t instanceof Error?t.message:String(t),o({event:`user-skill-reclaim-version-record-failed`,scope:`user`,version:l,error:e})}for(let{id:t,centralWritten:n}of _)s({ts:c(),surface:`cli-start`,target:`cli-hosts`,bundle:t,outcome:e===null?n?`installed`:`skip-current`:`failed`,version:l,...e===null?{}:{reason:`state-write-failed:${e}`}})}else{let e=h.some(e=>e.kind===`host`&&e.outcome===`failed`);s({ts:c(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,version:l,reason:g?e?`all-writes-failed`:`central-write-failed`:`bundle-unresolved`})}return{outcome:`done`,version:l,entries:h}}async function H(e){let t=e.logger??F,n=e.fs??N,r=e.home??j(),i={...P,...e.deps};if(e.reclaimDisableEnv===`1`)return t({event:`skill-repair-skipped`,reason:`reclaim-disabled`}),{status:`skipped`,reason:`reclaim-disabled`};let a=B(e.projectDir,i,n,t),o=await V(r,i,n,t),s=m(r),c=[],l=!1,u=!1;if(s.skillDirs.length>0||s.emptyDirs.length>0)if(e.confirmLegacyCleanup&&await e.confirmLegacyCleanup(s)){try{c=d(r,s)}catch(e){u=!0,t({event:`legacy-fanout-cleanup-refused`,scope:`user`,error:e instanceof Error?e.message:String(e)})}for(let e of c)t({event:`legacy-fanout-path-removed`,scope:`user`,path:e})}else l=!0,t({event:`legacy-fanout-cleanup-declined`,scope:`user`});return{status:`done`,project:a,user:o,legacySwept:c,legacyCleanupDeclined:l,legacyCleanupFailed:u}}function U(e){return e.status===`skipped`?e.reason===`reclaim-disabled`?0:1:e.project.outcome===`skipped`||e.user.outcome===`skipped`&&e.user.reason!==`version-current`&&e.user.reason!==`all-bundles-declined`||e.project.entries.some(e=>e.outcome===`failed`)||e.user.outcome===`done`&&e.user.entries.some(e=>e.outcome===`failed`)?1:0}function W(e){if(e.status===`skipped`)return`Skipped: ${e.reason}`;let t=[`Skill reclaim complete.`];if(e.project.outcome===`done`){let n=e.project.entries.filter(e=>e.outcome===`present`).length,r=e.project.entries.filter(e=>e.outcome===`created`).length,i=e.project.entries.filter(e=>e.outcome===`no-token`).length,a=e.project.entries.filter(e=>e.outcome===`failed`).length;t.push(` Project: ${n} present, ${r} created, ${i} no-token, ${a} failed.`)}else t.push(` Project: skipped (${e.project.reason}).`);if(e.user.outcome===`done`){let n=e.user.entries.filter(e=>e.outcome===`written`).length,r=e.user.entries.filter(e=>e.outcome===`skipped-present`).length,i=e.user.entries.filter(e=>e.outcome===`skipped-host-absent`||e.outcome===`skipped-collapsed-with-central`).length,a=e.user.entries.filter(e=>e.outcome===`failed`).length;t.push(` User (${e.user.version}): ${n} written, ${r} present, ${i} skipped, ${a} failed.`)}else t.push(` User: skipped (${e.user.reason}).`);return e.legacySwept.length>0?t.push(` Cleanup: removed ${e.legacySwept.length} path(s) from a pre-0.42 install.`):e.legacyCleanupFailed?t.push(` Cleanup: failed — see logs; pre-0.42 directories left in place.`):e.legacyCleanupDeclined&&t.push(` Cleanup: declined — pre-0.42 directories left in place.`),t.join(`
2
2
  `)}function G(){return new u(`repair-skills`).description("Refresh bundled SKILL.md files for installed AI editors (project-local + user-global). Runs automatically during `ok start`; this command forces an explicit sweep.").option(`-y, --yes`,`Skip the confirmation prompt for removing directories left by a pre-0.42 install.`).action(async e=>{let t=await H({projectDir:C(process.cwd()),reclaimDisableEnv:process.env.OK_RECLAIM_DISABLE??null,confirmLegacyCleanup:t=>K(t,{yes:e.yes===!0})});process.stdout.write(`${W(t)}\n`),process.exitCode=U(t)})}async function K(e,t){let n=j(),r=e=>`~/${S(n,e)}`,i=t.input??process.stdin,a=[``,y(`A previous version of OpenKnowledge installed its skill into agent tools you may never have used.`),_(`(Versions before 0.42 wrote to every host a third-party installer knew about — see issue #820.)`)];if(e.skillDirs.length>0&&a.push(``,`${y(`Remove OpenKnowledge skills:`)} ${e.skillDirs.length}`,...e.skillDirs.map(e=>` ${r(e)}`)),e.emptyDirs.length>0){let t=e.skillDirs.length>0?`Then remove these, which hold nothing else once the above are gone:`:`Remove these empty directories, left behind by that install:`;a.push(``,`${y(t)} ${e.emptyDirs.length}`,...e.emptyDirs.map(e=>` ${r(e)}`))}if(a.push(``,_(`Nothing outside these paths is touched. A directory that still holds anything is kept.`)),process.stdout.write(`${a.join(`
3
3
  `)}\n`),t.yes)return!0;if(!i.isTTY)return process.stdout.write(`${v("Not a terminal — skipping cleanup. Re-run with `ok repair-skills --yes` to remove these.")}\n`),!1;let o=M({input:i,output:process.stdout});try{let e=(await o.question(`\n${y(`Remove them?`)} ${_(`[y/N] `)}`)).trim().toLowerCase();return e===`y`||e===`yes`}finally{o.close()}}export{G as n,H as t};
4
- //# sourceMappingURL=repair-skills-CAgJh50Q.mjs.map
4
+ //# sourceMappingURL=repair-skills-Bdq3MhBx.mjs.map
@@ -0,0 +1 @@
1
+ import{t as e}from"./repair-skills-Bdq3MhBx.mjs";export{e as repairSkills};
@@ -1,4 +1,4 @@
1
- import{o as e}from"./chunk-DTipWd-i.mjs";import{Y as t}from"./sleep-C5OfWWWx.mjs";import{Lo as n,X as r,Z as i,bs as a,xs as o}from"./src-CA2-5ky_.mjs";import{Vr as s,at as c,it as l,nt as u,rt as d,si as f,vn as p,xa as m}from"./src-DlAv53T2.mjs";import{O as h,P as g}from"./fs-traced-OS6B1cZZ.mjs";import{S as _,u as v,v as y,x as b}from"./server-lock-BcVRTi0F.mjs";import{t as x}from"./yazl-BafwB467.mjs";import{T as S,b as C,d as w,i as ee,x as te}from"./write-project-skill-Bn1Fo5lw.mjs";import{c as ne}from"./colors-BsmVIwfM.mjs";import"./acp-harness-probe-CNr_uL76.mjs";import{D as T,E,S as re,T as D,_ as O,b as ie,o as k,v as A}from"./init-BJIgDJa3.mjs";import{n as j}from"./constants-Bi35H8-Y.mjs";import{t as ae}from"./is-object-ByG7RnjH.mjs";import"./loader-BVADW1fG.mjs";import"./preview-BwdVoUBB.mjs";import{execSync as oe,spawnSync as M}from"node:child_process";import{basename as N,dirname as P,isAbsolute as se,join as F,relative as ce,resolve as I,sep as le}from"node:path";import{cpSync as ue,createWriteStream as de,existsSync as L,lstatSync as fe,mkdirSync as R,mkdtempSync as pe,readFileSync as z,readdirSync as me,readlinkSync as he,rmSync as ge,statSync as _e,writeFileSync as B}from"node:fs";import{arch as ve,freemem as ye,homedir as be,hostname as xe,platform as Se,release as Ce,tmpdir as we,totalmem as Te,type as Ee,uptime as De}from"node:os";import{realpath as V}from"node:fs/promises";import{createHash as Oe}from"node:crypto";var H=t();const ke=new Set([`start`,`stop`,`status`,`clean`,`ui`,`mcp`,`preview`,`lint`,`deinit`,`auth`]);function Ae(e,t,n=p){if(e!==void 0&&!ke.has(e))return null;let r=n(t);return r===null||r.distance===0?null:r.rootPath}let je=null;function Me(e){je=e}function Ne(){return je??process.cwd()}function Pe(){return F(be(),`.ok`,`bug-reports`)}function Fe(e=new Date){let t=e.toISOString().replace(/[:.]/g,`-`),n=Pe(),r=`${t}-bugreport`,i=F(n,`${r}.zip`);for(let e=2;L(i);e+=1)i=F(n,`${r}-${e}.zip`);return i}function Ie(e,t){let n=F(e,`.ok`,`config.yml`);if(L(n))try{let e=z(n,`utf8`).match(/^\s*name:\s*['"]?(.+?)['"]?\s*$/m);if(e?.[1])return e[1]}catch(e){t?.warn({configPath:n,err:e},`bug-report: failed to read .ok/config.yml for project slug; using path-hash fallback`)}return L(F(e,`.ok`))?Oe(`sha256`).update(I(e)).digest(`hex`).slice(0,12):null}function Le(){let e={timestamp:new Date().toISOString(),platform:Se(),osType:Ee(),osRelease:Ce(),hostname:`[redacted]`,uptime:De(),freeMem:ye(),totalMem:Te(),nodeVersion:process.version,bunVersion:process.versions.bun??null,v8Version:process.versions.v8??null,pid:process.pid};try{e.macosVersion=oe(`sw_vers -productVersion 2>/dev/null`,s({encoding:`utf8`})).trim()}catch{}try{let t=F(__dirname,`..`,`..`,`package.json`);L(t)&&(e.okVersion=JSON.parse(z(t,`utf8`)).version)}catch{}return e}function Re(e,t){return ze(e,t).files}function ze(e,t){if(!L(t))return{files:[]};let n=me(t).filter(e=>e.endsWith(`.log`)||/\.log\.\d+$/.test(e)).map(e=>F(t,e));if(e&&n.length>0){let t=n.filter(t=>{try{return z(t,`utf8`).includes(`"project":"${e}"`)}catch{return!0}});t.length>0&&(n=t)}return{files:n}}function Be(e){let t=F(e,`.ok`,`local`);return L(t)?{files:[`server.lock`,`last-spawn-error.log`,r].map(e=>F(t,e)).filter(e=>L(e))}:{files:[]}}function Ve(e){let t=F(e,`.ok`,`local`,`logs`);return L(t)?{files:[`server-current.jsonl`,`server-prev.jsonl`].map(e=>F(t,e)).filter(e=>L(e))}:{files:[]}}function He(e){if(e.redact){let{redacted:t,patterns:n,lineCount:r}=o(e.content);e.zipfile.addBuffer(Buffer.from(t,`utf8`),e.name),e.bundleFiles.push(e.name),n.length>0&&e.redactions.push({file:e.name,lineCount:r,patterns:n})}else e.zipfile.addBuffer(Buffer.from(e.content,`utf8`),e.name),e.bundleFiles.push(e.name)}function U(e){for(let t of e.files)try{He({zipfile:e.zipfile,name:`${e.prefix}/${N(t)}`,content:z(t,`utf8`),redact:e.redact,bundleFiles:e.bundleFiles,redactions:e.redactions})}catch(n){e.logger?.warn({file:t,prefix:e.prefix,err:n},`bug-report: skipped unreadable file`)}}async function Ue(t){let{redact:n,outputPath:r,logger:i}=t,o=t.userLogsDir??F(be(),`.ok`,`logs`),s=t.projectDir?Ie(t.projectDir,i):null;R(P(r),{recursive:!0}),i?.info({projectSlug:s},`gathering diagnostic data`);let c=Le();c.desktop=t.desktop??null;let{files:l}=ze(s,o),{files:u}=t.projectDir?Be(t.projectDir):{files:[]},{files:d}=t.projectDir?Ve(t.projectDir):{files:[]};i?.info({logFileCount:l.length,lockFileCount:u.length,localSinkFileCount:d.length},`files collected`);let f=[],p=[],{ZipFile:m}=await import(`./yazl-vwTkB7U0.mjs`).then(t=>e(t.default,1)),h=new m;U({zipfile:h,files:l,prefix:`logs`,redact:n,bundleFiles:p,redactions:f,logger:i}),U({zipfile:h,files:u,prefix:`lockdir`,redact:n,bundleFiles:p,redactions:f,logger:i}),U({zipfile:h,files:d,prefix:`local-logs`,redact:n,bundleFiles:p,redactions:f,logger:i});for(let e of t.extraFiles??[])try{let t=z(e.sourcePath),n=`extra/${e.zipName??N(e.sourcePath)}`;h.addBuffer(t,n),p.push(n)}catch(t){i?.warn({sourcePath:e.sourcePath,err:t},`extra file unreadable; omitted from bundle`)}t.note&&He({zipfile:h,name:`note.txt`,content:t.note,redact:n,bundleFiles:p,redactions:f});let g=JSON.stringify(c,null,2);h.addBuffer(Buffer.from(g,`utf8`),`sysinfo.json`),p.push(`sysinfo.json`);let _={generatedAt:new Date().toISOString(),disciplineVersion:`1.0.0`,projectSlug:s,files:p,redactions:f,sysinfo:c};h.addBuffer(Buffer.from(JSON.stringify(_,null,2),`utf8`),`MANIFEST.json`);let v=f.reduce((e,t)=>e+t.lineCount,0),y=[`# Bug Report Bundle`,``,`Generated: ${_.generatedAt}`,`Project: ${s??`(unscoped)`}`,`Discipline version: ${_.disciplineVersion}`,``,`## Contents`,``,...p.map(e=>`- ${e}`),``,`## Privacy`,``,...n?[`This bundle was auto-redacted before packaging.`,`Patterns checked: ${a.join(`, `)}`,v>0?`${v} line(s) were scrubbed across ${f.length} file(s).`:`No redactions were needed.`,`See MANIFEST.json for the full redaction audit report.`,``,`This bundle is safe to attach to a GitHub issue.`]:[`Redaction was disabled for this bundle; file contents are unmodified.`]].join(`
1
+ import{o as e}from"./chunk-DTipWd-i.mjs";import{Y as t}from"./sleep-C5OfWWWx.mjs";import{Lo as n,X as r,Z as i,bs as a,xs as o}from"./src-CA2-5ky_.mjs";import{Vr as s,at as c,it as l,nt as u,rt as d,si as f,vn as p,xa as m}from"./src-CFTJ6mgL.mjs";import{O as h,P as g}from"./fs-traced-OS6B1cZZ.mjs";import{S as _,u as v,v as y,x as b}from"./server-lock-BcVRTi0F.mjs";import{t as x}from"./yazl-BafwB467.mjs";import{T as S,b as C,d as w,i as ee,x as te}from"./write-project-skill-KxnphNDZ.mjs";import{c as ne}from"./colors-BsmVIwfM.mjs";import"./acp-harness-probe-CWSgVEXp.mjs";import{D as T,E,S as re,T as D,_ as O,b as ie,o as k,v as A}from"./init-Cp1cLnZk.mjs";import{n as j}from"./constants-DVpRelLO.mjs";import{t as ae}from"./is-object-ByG7RnjH.mjs";import"./loader-CQZle2jn.mjs";import"./preview-CVEIuiZH.mjs";import{execSync as oe,spawnSync as M}from"node:child_process";import{basename as N,dirname as P,isAbsolute as se,join as F,relative as ce,resolve as I,sep as le}from"node:path";import{cpSync as ue,createWriteStream as de,existsSync as L,lstatSync as fe,mkdirSync as R,mkdtempSync as pe,readFileSync as z,readdirSync as me,readlinkSync as he,rmSync as ge,statSync as _e,writeFileSync as B}from"node:fs";import{arch as ve,freemem as ye,homedir as be,hostname as xe,platform as Se,release as Ce,tmpdir as we,totalmem as Te,type as Ee,uptime as De}from"node:os";import{realpath as V}from"node:fs/promises";import{createHash as Oe}from"node:crypto";var H=t();const ke=new Set([`start`,`stop`,`status`,`clean`,`ui`,`mcp`,`preview`,`lint`,`deinit`,`auth`]);function Ae(e,t,n=p){if(e!==void 0&&!ke.has(e))return null;let r=n(t);return r===null||r.distance===0?null:r.rootPath}let je=null;function Me(e){je=e}function Ne(){return je??process.cwd()}function Pe(){return F(be(),`.ok`,`bug-reports`)}function Fe(e=new Date){let t=e.toISOString().replace(/[:.]/g,`-`),n=Pe(),r=`${t}-bugreport`,i=F(n,`${r}.zip`);for(let e=2;L(i);e+=1)i=F(n,`${r}-${e}.zip`);return i}function Ie(e,t){let n=F(e,`.ok`,`config.yml`);if(L(n))try{let e=z(n,`utf8`).match(/^\s*name:\s*['"]?(.+?)['"]?\s*$/m);if(e?.[1])return e[1]}catch(e){t?.warn({configPath:n,err:e},`bug-report: failed to read .ok/config.yml for project slug; using path-hash fallback`)}return L(F(e,`.ok`))?Oe(`sha256`).update(I(e)).digest(`hex`).slice(0,12):null}function Le(){let e={timestamp:new Date().toISOString(),platform:Se(),osType:Ee(),osRelease:Ce(),hostname:`[redacted]`,uptime:De(),freeMem:ye(),totalMem:Te(),nodeVersion:process.version,bunVersion:process.versions.bun??null,v8Version:process.versions.v8??null,pid:process.pid};try{e.macosVersion=oe(`sw_vers -productVersion 2>/dev/null`,s({encoding:`utf8`})).trim()}catch{}try{let t=F(__dirname,`..`,`..`,`package.json`);L(t)&&(e.okVersion=JSON.parse(z(t,`utf8`)).version)}catch{}return e}function Re(e,t){return ze(e,t).files}function ze(e,t){if(!L(t))return{files:[]};let n=me(t).filter(e=>e.endsWith(`.log`)||/\.log\.\d+$/.test(e)).map(e=>F(t,e));if(e&&n.length>0){let t=n.filter(t=>{try{return z(t,`utf8`).includes(`"project":"${e}"`)}catch{return!0}});t.length>0&&(n=t)}return{files:n}}function Be(e){let t=F(e,`.ok`,`local`);return L(t)?{files:[`server.lock`,`last-spawn-error.log`,r].map(e=>F(t,e)).filter(e=>L(e))}:{files:[]}}function Ve(e){let t=F(e,`.ok`,`local`,`logs`);return L(t)?{files:[`server-current.jsonl`,`server-prev.jsonl`].map(e=>F(t,e)).filter(e=>L(e))}:{files:[]}}function He(e){if(e.redact){let{redacted:t,patterns:n,lineCount:r}=o(e.content);e.zipfile.addBuffer(Buffer.from(t,`utf8`),e.name),e.bundleFiles.push(e.name),n.length>0&&e.redactions.push({file:e.name,lineCount:r,patterns:n})}else e.zipfile.addBuffer(Buffer.from(e.content,`utf8`),e.name),e.bundleFiles.push(e.name)}function U(e){for(let t of e.files)try{He({zipfile:e.zipfile,name:`${e.prefix}/${N(t)}`,content:z(t,`utf8`),redact:e.redact,bundleFiles:e.bundleFiles,redactions:e.redactions})}catch(n){e.logger?.warn({file:t,prefix:e.prefix,err:n},`bug-report: skipped unreadable file`)}}async function Ue(t){let{redact:n,outputPath:r,logger:i}=t,o=t.userLogsDir??F(be(),`.ok`,`logs`),s=t.projectDir?Ie(t.projectDir,i):null;R(P(r),{recursive:!0}),i?.info({projectSlug:s},`gathering diagnostic data`);let c=Le();c.desktop=t.desktop??null;let{files:l}=ze(s,o),{files:u}=t.projectDir?Be(t.projectDir):{files:[]},{files:d}=t.projectDir?Ve(t.projectDir):{files:[]};i?.info({logFileCount:l.length,lockFileCount:u.length,localSinkFileCount:d.length},`files collected`);let f=[],p=[],{ZipFile:m}=await import(`./yazl-vwTkB7U0.mjs`).then(t=>e(t.default,1)),h=new m;U({zipfile:h,files:l,prefix:`logs`,redact:n,bundleFiles:p,redactions:f,logger:i}),U({zipfile:h,files:u,prefix:`lockdir`,redact:n,bundleFiles:p,redactions:f,logger:i}),U({zipfile:h,files:d,prefix:`local-logs`,redact:n,bundleFiles:p,redactions:f,logger:i});for(let e of t.extraFiles??[])try{let t=z(e.sourcePath),n=`extra/${e.zipName??N(e.sourcePath)}`;h.addBuffer(t,n),p.push(n)}catch(t){i?.warn({sourcePath:e.sourcePath,err:t},`extra file unreadable; omitted from bundle`)}t.note&&He({zipfile:h,name:`note.txt`,content:t.note,redact:n,bundleFiles:p,redactions:f});let g=JSON.stringify(c,null,2);h.addBuffer(Buffer.from(g,`utf8`),`sysinfo.json`),p.push(`sysinfo.json`);let _={generatedAt:new Date().toISOString(),disciplineVersion:`1.0.0`,projectSlug:s,files:p,redactions:f,sysinfo:c};h.addBuffer(Buffer.from(JSON.stringify(_,null,2),`utf8`),`MANIFEST.json`);let v=f.reduce((e,t)=>e+t.lineCount,0),y=[`# Bug Report Bundle`,``,`Generated: ${_.generatedAt}`,`Project: ${s??`(unscoped)`}`,`Discipline version: ${_.disciplineVersion}`,``,`## Contents`,``,...p.map(e=>`- ${e}`),``,`## Privacy`,``,...n?[`This bundle was auto-redacted before packaging.`,`Patterns checked: ${a.join(`, `)}`,v>0?`${v} line(s) were scrubbed across ${f.length} file(s).`:`No redactions were needed.`,`See MANIFEST.json for the full redaction audit report.`,``,`This bundle is safe to attach to a GitHub issue.`]:[`Redaction was disabled for this bundle; file contents are unmodified.`]].join(`
2
2
  `);h.addBuffer(Buffer.from(y,`utf8`),`README.md`),h.end();let b=de(r);return h.outputStream.pipe(b),await new Promise((e,t)=>{b.on(`close`,e),b.on(`error`,t)}),i?.info({bundlePath:r,fileCount:p.length,redactionCount:v},`bundle written`),{zipPath:r,summary:{projectSlug:s,files:p,redactions:f,redactedLineCount:v,generatedAt:_.generatedAt}}}var We=e(x(),1),W=e(ne(),1);function G(e,t){return t.length===0||!e.includes(t)?e:e.split(t).join(`<CONTENT_DIR>`)}function Ge(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function K(e,t){if(typeof e==`string`)return G(e,t.contentDir);if(Array.isArray(e))return e.map(e=>K(e,t));if(!Ge(e))return e;let n={};for(let[r,i]of Object.entries(e))n[r]=K(i,t);return n}function Ke(e,t){let n=z(e,`utf-8`);if(n.length===0)return;let r=n.endsWith(`
3
3
  `),i=n.split(`
4
4
  `),a=[];for(let e=0;e<i.length;e++){let n=i[e]??``;if(!(e===i.length-1&&n===``)){if(n.length===0){a.push(``);continue}try{let e=K(JSON.parse(n),t);a.push(JSON.stringify(e))}catch{a.push(n)}}}B(e,r?`${a.join(`
@@ -17,4 +17,4 @@ import{o as e}from"./chunk-DTipWd-i.mjs";import{Y as t}from"./sleep-C5OfWWWx.mjs
17
17
  `).replace(/\n/g,`\r
18
18
  `));let u=`${i?``:``}${l}`;return u!==r&&g(e,u,{mode:D(e)}),{kind:`removed`}}function ln(e){return e==null?!1:e.includes(`--type=utility`)&&e.includes(`--utility-sub-type=node.mojom.NodeService`)}function un(e,t=Date.now()){let n=new Date(e).getTime();if(Number.isNaN(n))return`—`;let r=t-n,i=Math.floor(r/1e3);if(i<60)return`${i}s`;let a=Math.floor(i/60);if(a<60)return`${a}m ago`;let o=Math.floor(a/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function dn(e,t,n,r,i,a){if(t.status===`missing`||t.status===`corrupt`)return null;let o=t.lock,s=null;if(n.status!==`missing`&&n.status!==`corrupt`){let e=n.lock;s={port:e.port,status:n.status,pid:e.pid,startedAt:e.startedAt,usage:a}}return{directory:o.worktreeRoot,server:{port:o.port,status:t.status,pid:o.pid,startedAt:o.startedAt,usage:i},ui:s,hostname:o.hostname,lockPath:t.lockPath,binary:r==null?null:d(r),command:r,isDesktop:ln(r)}}function fn(e){return e.ui==null?!1:e.ui.status===`alive`||e.ui.status===`foreign-host`}function Q(e){let t=e.server.status;return t===`alive`||t===`foreign-host`?e.isDesktop?`desktop`:t===`alive`?`running`:`foreign`:t===`dead-pid`&&fn(e)?`ui-orphan`:`stale`}const pn=new Set([`running`,`desktop`,`foreign`,`ui-orphan`]);function mn(e){switch(e){case`running`:return W.default.green(e);case`desktop`:return W.default.blue(e);case`foreign`:return W.default.cyan(e);case`ui-orphan`:return W.default.magenta(e);case`stale`:return W.default.yellow(e)}}function hn(e){return e==null?`—`:`${e.cpuPercent.toFixed(1)}% / ${e.memPercent.toFixed(1)}%`}function gn(e){return`${hn(e.server.usage)} | ${hn(e.ui?.usage??null)}`}function _n(e){return`${e.server.port===0?`(starting)`:String(e.server.port)} / ${e.ui==null||e.ui.status===`dead-pid`?`—`:String(e.ui.port)}`}function vn(e){if(e.length===0)return`No open-knowledge servers found.`;let t=[`DIRECTORY`,`PORTS (API/UI)`,`CPU/MEM (API | UI)`,`STATUS`,`PID`,`STARTED`,`BINARY`],n=e.map(e=>{let t=Q(e),n=t===`ui-orphan`&&e.ui!=null?e.ui.pid:e.server.pid;return[e.directory,_n(e),gn(e),t,String(n),un(e.server.startedAt),e.binary??`—`]}),r=t.length,i=t.map(e=>e.length);for(let e of n)for(let t=0;t<r;t++)i[t]=Math.max(i[t]??0,(e[t]??``).length);let a=t.map((e,t)=>e.padEnd(i[t]??0)).join(` `).trimEnd(),o=e.map((e,t)=>{let a=n[t]??[],o=[];for(let t=0;t<r;t++){let n=(a[t]??``).padEnd(i[t]??0);if(t===3){let r=a[t]??``;n=mn(Q(e))+` `.repeat(Math.max(0,(i[t]??0)-r.length))}o.push(n)}return o.join(` `).trimEnd()}),s=W.default.dim(`To stop a server: ok stop <port|pid|directory|all>`);return[a,...o,``,s].join(`
19
19
  `)}async function yn(e={}){let t=e.discover??u,n=e.inspect??Z,r=e.log??(e=>console.log(e)),i=e.resolveCommand??l,a=e.resolveUsage??c,o=await t(),s=[];for(let e of o){let t=n(e,`server`),r=n(e,`ui`),o=dn(e,t,r,t.status===`missing`||t.status===`corrupt`?null:i(t.lock.pid),t.status===`missing`||t.status===`corrupt`?null:a(t.lock.pid),r.status===`missing`||r.status===`corrupt`?null:a(r.lock.pid));o!=null&&s.push(o)}if(e.json){let e=s.map(e=>({...e,displayStatus:Q(e)}));r(JSON.stringify(e,null,2));return}r(vn(e.all?s:s.filter(e=>pn.has(Q(e)))))}function bn(){return new S(`ps`).description(`List all running open-knowledge servers`).argument(`[modifier]`,`"all" to include stale (dead-pid) entries`).option(`--all`,`Include stale (dead-pid) entries (foreign-host shows by default)`).option(`--json`,`Emit structured JSON (always includes all statuses)`).action(async(e,t)=>{await yn({all:t.all===!0||e===`all`,json:t.json===!0})})}function xn(e,t,n={}){let r=n.isAlive??b,i=[];for(let[n,a]of[[`server`,e],[`ui`,t]])(a.status===`alive`||a.status===`foreign-host`&&r(a.lock.pid))&&i.push({name:n,pid:a.lock.pid,port:a.lock.port});return{targets:i}}function Sn(e){let t=e.inspect??(t=>Z(e.lockDir,t)),n=e.kill??((e,t)=>process.kill(e,t)),r=e.log??(e=>console.log(e)),i=e.error??(e=>console.error(e)),a=xn(t(`server`),t(`ui`),{isAlive:e.isAlive});if(a.targets.length===0)return r(`No running open-knowledge processes.`),{stopped:[],failed:[],hadTargets:!1};let o=[],s=[];for(let e of a.targets)try{n(e.pid,`SIGTERM`),o.push(e)}catch(t){s.push({target:e,error:t instanceof Error?t.message:String(t)})}return o.length>0&&r(`Stopped: ${o.map(e=>`${e.name} (pid=${e.pid}, port=${e.port})`).join(`, `)}`),s.length>0&&i(`Failed to stop: ${s.map(({target:e,error:t})=>`${e.name} (pid=${e.pid}): ${t}`).join(`; `)}`),{stopped:o,failed:s,hadTargets:!0}}function $(e,t){return e.status===`alive`?!0:e.status===`foreign-host`?t(e.lock.pid):!1}async function Cn(e,t=b){let n=await u(),r=null;for(let i of n){let n=Z(i,`server`),a=Z(i,`ui`);if($(n,t)&&n.lock.port===e||$(a,t)&&a.lock.port===e)return i;r===null&&($(n,t)&&n.lock.pid===e||$(a,t)&&a.lock.pid===e)&&(r=i)}return r}function wn(e){let t=Sn({lockDir:e});return t.failed.length>0&&(process.exitCode=1),t}function Tn(e){return new S(`stop`).description(`Stop open-knowledge server(s). With no argument: stops the server for the current directory. Pass a port number, a directory path, or "all" to target globally.`).argument(`[target...]`,`port number, directory path (spaces OK), or "all"`).action(async t=>{let n=t.length===0?void 0:t.join(` `);if(n===void 0){e();let t=Sn({lockDir:f(process.cwd()),log:()=>{}});if(t.hadTargets){if(t.stopped.length>0){let e=t.stopped.map(e=>`${e.name} (pid=${e.pid}, port=${e.port})`).join(`, `);console.log(`Stopped: ${e}`)}t.failed.length>0&&(process.exitCode=1)}else await yn({});return}if(n===`all`){let e=await u();if(e.length===0){console.log(`No running open-knowledge servers found.`);return}let t=0;for(let n of e){let e=Z(n,`server`),r=Z(n,`ui`);!$(e,b)&&!$(r,b)||(wn(n),t++)}t===0&&console.log(`No running open-knowledge servers found.`);return}if(/^\d+$/.test(n)){let e=Number.parseInt(n,10),t=await Cn(e);if(t===null){console.log(`No running open-knowledge server found with port or PID ${e}.`);return}wn(t);return}wn(f(I(Ne(),n)))})}function En(e){return{event:`mcp-config-decline`,scope:e.scope,surface:e.surface,editorId:e.editorId,reason:e.reason}}async function Dn(e,t){let r,i;try{r=await V(I(e)),i=await V(I(P(e)))}catch{return{kind:`not-git`}}if(!On(r,i))return{kind:`symlink-escape`};let a=F(r,`.git`),o;try{o=_e(a)}catch{return{kind:`not-git`}}if(o.isDirectory()){let e;try{e=await V(a)}catch{return{kind:`not-git`}}if(!On(e,r))return{kind:`symlink-escape`}}else if(!o.isFile())return{kind:`not-git`};let s=m(r);if(s.kind!==`repository`)return{kind:`not-git`};let c=s.repository.readRemoteUrl(`origin`);if(c.kind===`unreadable`)return{kind:`not-git`};if(c.kind===`absent`)return c.reason===`config-missing`?{kind:`not-git`}:{kind:`no-origin`};let l=c.url,u=Wt(l);if(u===null)return{kind:`non-github`};let d=n(u.hostname);if(d===null)return{kind:`non-github`};let f=d===t.host.toLowerCase(),p=u.owner.toLowerCase()===t.owner.toLowerCase(),h=u.name.toLowerCase()===t.repo.toLowerCase();return!f&&p&&h?{kind:`wrong-host`,actualHost:d}:!f||!p||!h?{kind:`wrong-repo`,actualOwner:u.owner,actualRepo:u.name}:{kind:`ok`,gitRemoteUrl:`https://${d}/${u.owner}/${u.name}.git`}}function On(e,t){if(e===t)return!0;let n=ce(t,e);return n.length>0&&!n.startsWith(`..`)&&!se(n)}const kn=[{id:`mcp-config`,write(e,t,n){let r=e.projectConfigPath?.(t);if(!r)return{integration:`mcp-config`,editorId:e.id,action:`skipped-unsupported`};try{let i=A(e,t,n,void 0,r);return i.action===`written`||i.action===`overwritten`?{integration:`mcp-config`,editorId:e.id,action:i.action,path:i.configPath}:i.action===`failed`?{integration:`mcp-config`,editorId:e.id,action:`failed`,path:i.configPath,error:i.error??`unknown failure`}:i.action===`declined`?{integration:`mcp-config`,editorId:e.id,action:`declined`,path:i.configPath,...i.declineReason===void 0?{}:{reason:i.declineReason}}:{integration:`mcp-config`,editorId:e.id,action:`failed`,path:i.configPath,error:`unexpected project-scope action: ${i.action}`}}catch(t){return{integration:`mcp-config`,editorId:e.id,action:`failed`,path:r,error:t instanceof Error?t.message:String(t)}}}},{id:`project-skill`,write(e,t,n){try{let r=ee(e,t,{home:n.home});return{integration:`project-skill`,editorId:e.id,action:r.action,...r.path?{path:r.path}:{},...r.error?{error:r.error}:{}}}catch(t){return{integration:`project-skill`,editorId:e.id,action:`failed`,error:t instanceof Error?t.message:String(t)}}}}];function An(e,t,n={},r=kn){let i=[];for(let a of t){let t=w[a];for(let a of r)i.push(a.write(t,e,n))}return i}function jn(e,t,n={}){return{integrations:An(e,t,n)}}export{Fe as C,Ae as D,Me as E,zt as S,Ne as T,Kt as _,Tn as a,Ht as b,Jt as c,tn as d,Zt as f,qt as g,Gt as h,Sn as i,Xt as l,en as m,Dn as n,bn as o,$t as p,En as r,an as s,jn as t,Yt as u,Wt as v,Pe as w,Rt as x,Z as y};
20
- //# sourceMappingURL=src-K60Nfy_1.mjs.map
20
+ //# sourceMappingURL=src-B3Ey-N80.mjs.map
@@ -1 +1 @@
1
- import{Mo as e,No as t,P as n,Po as r,R as i,Yo as a,Zo as o,d as s,l as c,ss as l,ws as u}from"./src-CA2-5ky_.mjs";import{$ as d,$i as f,$n as p,$r as m,$t as h,A as g,Ai as _,An as v,Ar as y,At as b,B as x,Bi as S,Bn as C,Br as w,Bt as T,C as E,Ci as D,Cn as O,Cr as k,Ct as A,D as j,Di as M,Dn as N,Dt as P,E as F,Ei as I,En as L,Et as R,F as z,Fi as B,Fn as V,Fr as H,Ft as U,G as W,Gi as G,Gn as K,Gr as q,Gt as J,H as Y,Hi as X,Hn as Z,Hr as Q,Ht as $,I as ee,Ii as te,In as ne,Ir as re,It as ie,J as ae,Ji as oe,Jn as se,Jr as ce,Jt as le,K as ue,Ki as de,Kn as fe,Kr as pe,Kt as me,L as he,Li as ge,Ln as _e,Lr as ve,Lt as ye,M as be,Mi as xe,Mn as Se,Mr as Ce,Mt as we,N as Te,Ni as Ee,Nn as De,Nr as Oe,Nt as ke,O as Ae,Oi as je,On as Me,Ot as Ne,P as Pe,Pi as Fe,Pn as Ie,Pr as Le,Pt as Re,Q as ze,Qi as Be,Qn as Ve,Qr as He,Qt as Ue,R as We,Ri as Ge,Rn as Ke,Rr as qe,Rt as Je,S as Ye,Si as Xe,Sn as Ze,Sr as Qe,St as $e,T as et,Ti as tt,Tn as nt,Tt as rt,U as it,Ui as at,Un as ot,Ur as st,Ut as ct,V as lt,Vi as ut,Vn as dt,Vr as ft,Vt as pt,W as mt,Wi as ht,Wn as gt,Wr as _t,Wt as vt,X as yt,Xi as bt,Xn as xt,Xr as St,Xt as Ct,Y as wt,Yi as Tt,Yn as Et,Yr as Dt,Yt as Ot,Z as kt,Zi as At,Zn as jt,Zr as Mt,Zt as Nt,_ as Pt,_a as Ft,_n as It,_r as Lt,_t as Rt,a as zt,aa as Bt,ai as Vt,an as Ht,ar as Ut,at as Wt,b as Gt,bi as Kt,bn as qt,br as Jt,bt as Yt,c as Xt,ca as Zt,ci as Qt,cn as $t,cr as en,ct as tn,d as nn,da as rn,di as an,dn as on,dr as sn,ea as cn,ei as ln,en as un,er as dn,et as fn,f as pn,fa as mn,fi as hn,fn as gn,fr as _n,g as vn,ga as yn,gi as bn,gn as xn,gr as Sn,gt as Cn,h as wn,ha as Tn,hi as En,hn as Dn,hr as On,ht as kn,i as An,ia as jn,ii as Mn,in as Nn,ir as Pn,it as Fn,j as In,ji as Ln,jn as Rn,jr as zn,jt as Bn,k as Vn,ki as Hn,kn as Un,kr as Wn,kt as Gn,l as Kn,la as qn,li as Jn,ln as Yn,lr as Xn,m as Zn,ma as Qn,mi as $n,mn as er,mr as tr,n as nr,na as rr,ni as ir,nn as ar,nr as or,nt as sr,o as cr,oa as lr,oi as ur,on as dr,or as fr,ot as pr,p as mr,pa as hr,pi as gr,pn as _r,pr as vr,q as yr,qi as br,qn as xr,qr as Sr,qt as Cr,r as wr,ra as Tr,ri as Er,rn as Dr,rr as Or,rt as kr,s as Ar,sa as jr,si as Mr,sn as Nr,sr as Pr,st as Fr,t as Ir,ta as Lr,ti as Rr,tn as zr,tr as Br,tt as Vr,u as Hr,ua as Ur,ui as Wr,un as Gr,ur as Kr,v as qr,vi as Jr,vn as Yr,vr as Xr,vt as Zr,w as Qr,wi as $r,wn as ei,wt as ti,x as ni,xi as ri,xn as ii,xr as ai,xt as oi,y as si,yi as ci,yn as li,yr as ui,yt as di,z as fi,zi as pi,zn as mi,zr as hi,zt as gi}from"./src-DlAv53T2.mjs";import{C as _i,E as vi,T as yi,_ as bi,b as xi,c as Si,d as Ci,g as wi,i as Ti,l as Ei,m as Di,n as Oi,p as ki,s as Ai,t as ji,u as Mi,v as Ni,w as Pi,x as Fi,y as Ii}from"./fs-traced-OS6B1cZZ.mjs";import{a as Li,d as Ri,f as zi,i as Bi,l as Vi,n as Hi,r as Ui,t as Wi,u as Gi}from"./logger-5LePyO3n.mjs";import{S as Ki,_ as qi,a as Ji,c as Yi,f as Xi,g as Zi,h as Qi,i as $i,l as ea,m as ta,n as na,o as ra,p as ia,r as aa,s as oa,t as sa,u as ca,v as la,x as ua}from"./server-lock-BcVRTi0F.mjs";export{Zt as AGENT_ID_MAX_LEN,qn as AGENT_ID_RE,$r as AGENT_WRITE_ORIGIN,Tn as AcpPermissionStore,mn as AcpRegistry,ri as AcpThreadManager,ci as AgentFocusBroadcaster,Jr as AgentPresenceBroadcaster,tt as AgentSessionCapacityError,I as AgentSessionManager,Cn as AutoStartDisabledError,Xn as BUNDLE_IDS,Kr as BUNDLE_SCOPE,sn as BUNDLE_SKILL_NAME,C as BacklinkIndex,te as CC1Broadcaster,o as CC1_CONTRACT_VERSION,Gr as CONFIG_FILENAME,Ie as CONFLICT_MARKER_RE,Oe as CURSOR_BUNDLE_PATHS_BY_PLATFORM,Pt as ConfigSchema,X as DEFAULT_CHECKPOINT_RETENTION,Dt as DEFAULT_EMBEDDINGS_DIMENSIONS,U as DEFAULT_PACK_ID,lt as DocumentDurabilityState,St as EMBEDDINGS_API_KEY_ENV,hr as FEATURED_AGENT_IDS,at as FILE_SYSTEM_WRITER,Ke as FILE_WATCHER_ORIGIN,st as FileEmbeddingsBackend,Nt as GIT_PREFLIGHT_FAIL_SPAN_NAME,ht as GIT_UPSTREAM_WRITER,yn as GitDirAccessError,h as GitNotAvailableError,un as GitTooOldError,Rt as HOCUSPOCUS_AUTH_REJECTION_REASONS,Zr as HocuspocusAuthRejection,di as HocuspocusAuthTokenSchema,hi as INSTALLED_AGENTS_SCHEMES,a as LINEAGE_EPOCH_KEY,We as LIVE_DERIVED_INDEX_DEBOUNCE_MS,ie as LOG_MD_TEMPLATE,rt as MANAGED_RENAME_ORIGIN,Xe as MAX_ACP_THREADS,M as MAX_AGENT_SESSIONS,Fr as MCP_CONNECTION_ID_HEADER,e as MCP_SERVER_NAME,je as MIN_EVICTABLE_IDLE_MS,zr as MIN_GIT_VERSION,Y as MISSING_OK_CONFIG_MESSAGE,Ft as MalformedGitPointerError,d as McpLogger,it as MissingOkConfigError,_ as OBSERVER_SYNC_ORIGIN,on as OK_OKIGNORE_TEMPLATE,t as ORPHAN_MODES,u as PROTOCOL_VERSION,Wi as PinoLogger,Yi as ProcessLockCollisionError,Kn as ProjectGitInitError,R as ROLLBACK_ORIGIN,gn as ROOT_GITIGNORE_TEMPLATE,Zi as RUNTIME_VERSION,an as RemoteConfigError,G as SERVICE_WRITER,Pn as SKILL_INSTALL_EVENTS_FILE_REL,n as SKILL_STATE_TARGETS,ye as STARTER_FOLDERS,Je as STARTER_FOLDER_FRONTMATTER_FILENAME,gi as STARTER_PACKS,T as STARTER_PACK_IDS,pt as STARTER_TEMPLATES,et as STATE_MANIFEST_FILENAME,qi as STATE_SCHEMA_VERSION,l as SYSTEM_DOC_NAME,Cr as SeedPrerequisiteError,le as SeedRootDirError,sa as ServerLockCollisionError,Ir as SingleFileNotAFileError,nr as SingleFileNotFoundError,wr as SingleFileNotMarkdownError,F as StateManifestError,mi as TagIndex,_n as USER_GLOBAL_BUNDLE_IDS,Z as UiLockCollisionError,P as __getShowAllWalkStatsForTesting,Ne as __resetShowAllWalkStatsForTesting,ea as acquireProcessLock,na as acquireServerLock,ot as acquireUiLock,Hn as applyAgentMarkdownWrite,Se as applyExternalChange,Re as applySeed,j as assertCompatibleStateManifest,ar as assertGitAvailable,qt as assertNeverDiskEvent,Kt as attachAcpThreadSocket,kn as attachIdleShutdown,qr as bootServer,xr as buildAndOpenSkill,_r as buildConfigYmlContent,ae as buildExecResult,D as buildOkMcpStdioCommand,fr as buildSkillZip,$ as buildStarterFolderFrontmatterYaml,de as buildWipTree,vr as bundleSkillMdPath,_t as canonicalProjectKey,ii as classifyEvents,ji as classifyFsPath,q as clearAllEmbeddingsKeys,He as clearContributors,ct as coercePackId,c as colorFromSeed,br as commitUpstreamImport,oe as commitWip,Tt as commitWipFromTree,Dr as compareSemver,Sn as composeEffectiveLinterConfig,Lt as composeFrontmatterSchemasConfig,V as containsConflictMarkers,Ze as contentHash,m as contributorCount,Pe as countShadowObjects,z as countStaleAgentWipRefs,ee as countWipRefs,Gn as createApiExtension,Qt as createAssetServeMiddleware,Wn as createContentFilter,y as createContentFilterAsync,pe as createEmbeddingsSecretStore,An as createEphemeralProjectDir,De as createExternalChangeHandler,pn as createFileLogger,fi as createLiveDerivedIndexExtension,ue as createMcpHttpHandler,w as createOsProbe,Te as createPersistenceExtension,E as createServer,In as createServerObserverExtension,Ee as createStreamingErrorWriter,Hi as createTestLogger,Sr as describeStoredEmbeddingsKey,vn as detectClaudeDesktopPresence,Nn as detectGit,Ae as detectProjectShape,se as detectUserSkillHosts,sr as discoverLockDirs,Jt as discoverMarkdownlintConfig,Ue as emitPreflightFailureSpan,wt as encodeDocName,yt as encodeFolderRoute,kt as encodeSkillRoute,Hr as ensureProjectGit,er as ensureProjectSkillGitignore,Fe as errorResponse,O as evictStaleTrackerEntries,b as extractHeadings,kr as extractOkBinaryPath,dt as extractWikiLinksFromMarkdown,Ht as fallbackPaths,nn as findEnclosingGitRoot,Yr as findEnclosingProjectRoot,ai as findNativeMarkdownlintFile,mr as flushFileLogger,Yt as formatAuthRejectionWire,ln as formatContributors,Rr as formatContributorsFrom,we as formatPackRationale,bt as gcCheckpointRefs,fn as getCurrentMcpLogger,Vt as getLocalDir,Zn as getLogFilePath,Ui as getLogger,wn as getLogsDir,la as getMachineId,Ii as getMeter,Tr as getMetrics,xi as getTracer,jn as handleCollabSocketError,Le as handleSpawnCursor,hn as hasForwardingHeaders,he as hasGcLogLatch,s as iconFromClientName,Bt as incrementCollabSocketFilteredError,lr as incrementServerObserverFire,Dn as initContent,At as initShadowRepo,Fi as initTelemetry,Gt as initToleranceTelemetryWriter,pr as installPrettyZodErrors,Bi as installTestLoggers,Et as installUserSkill,Wr as isAllowedApiOrigin,En as isAllowedWorkspaceHostHeader,ge as isConfigDoc,oi as isHocuspocusAuthRejectionReason,vt as isKnownPackId,Ge as isLinkIndexExcludedDoc,bn as isLoopbackAddress,pi as isManagedArtifactDoc,r as isOrphanMode,Ln as isPairedWriteOrigin,H as isPathWithinDir,ua as isProcessAlive,li as isProjectRoot,gr as isRemoteAdmitted,S as isReservedForUserTree,ei as isSelfWrite,ut as isSystemDoc,ni as isToleranceTelemetryEnabled,Ki as isValidLockPid,nt as lastKnownHash,Be as listRescueCheckpoints,J as listStarterPacks,Qn as loadCustomAgents,be as loadPrincipal,ca as lockFilePath,Li as loggerFactory,Vi as logsCurrentPath,Gi as logsPreviousPath,ce as makeLazyEmbeddingsKeyStore,aa as markServerLockDraining,mt as mountMcpAndApi,Oi as normalizeFsPath,tr as originGitHubHost,xn as packageVersionMajorMinor,$e as parseAuthRejectionWire,dr as parseGitVersion,A as parseHocuspocusAuthToken,W as parseKeepaliveConnectionId,L as pathToDocName,ke as planSeed,zt as prepareSingleFileOpen,Fn as processCommand,Wt as processUsage,xt as readAllTargets,jt as readBundleDecision,Qe as readOwnNativeRules,Xi as readProcessLock,ia as readProcessLockDetailed,x as readProjectHeadState,Q as readProjectLocalSemanticConfig,$i as readServerLock,Ve as readServerPackageVersion,p as readSkillInstallStateSnapshot,Vn as readStateManifest,dn as readTargetRecordedAt,Br as readTargetVersion,gt as readUiLock,ne as reconcile,ir as recordContributor,Ut as recordSkillInstallEvent,yr as registerAllTools,N as registerWrite,ta as releaseProcessLock,Ji as releaseServerLock,K as releaseUiLock,Me as removeLastKnownHash,jr as resetMetrics,i as resolveBundleEnabled,Pr as resolveBundledSkillDir,ur as resolveContentDir,re as resolveCursorBinaryDefault,ve as resolveCursorSpawnInvocation,Xr as resolveEffectiveLinterConfig,Mt as resolveEmbeddingsCredential,Mr as resolveLockDir,ui as resolveNativeConfigForDoc,k as resolveNativeMarkdownlintConfig,me as resolvePack,Ar as resolvePackageVersion,$n as resolveRemoteAccess,ze as resolveUiInfo,Er as restoreContributors,si as restoreLifecycleFromConflictsJson,zn as rewriteMarkdownLinksForDocumentRename,Ce as rewriteWikiLinksForDocumentRename,Nr as runAuthReposSubprocess,$t as runAuthStatusSubprocess,Ot as runCloneSubprocess,Yn as runDeviceFlowSubprocess,Vr as runWithMcpLogger,Jn as safeContentPath,Bn as safeSubdir,f as safetyCheckpoint,tn as sanitizeClientName,cn as saveInMemoryCheckpoint,Lr as saveVersion,ti as seedBasenameIndex,cr as serializeError,_i as setActiveSpanAttributes,xe as setupServerObservers,rr as shadowGit,Pi as shutdownTelemetry,Ri as spansCurrentPath,zi as spansPreviousPath,qe as spawnDetached,_e as splitMarkdownBlocks,Un as startWatcher,B as streamingProblemEvent,Mn as swapContributors,Ye as teardownToleranceTelemetryWriter,Ur as toBroadcasterKey,Ti as tracedAppendFileSync,Ai as tracedLinkSync,Si as tracedMkdir,Ei as tracedMkdirSync,Mi as tracedRename,Ci as tracedRenameSync,ki as tracedRmSync,Di as tracedRmdirSync,wi as tracedUnlinkSync,bi as tracedWriteFile,Ni as tracedWriteFileSync,Qr as trustSystemCertificates,Xt as untrackTrackedProjectSkillProjection,v as updateLastKnownHash,Qi as updateProcessLockPort,ra as updateServerLockPort,fe as updateUiLockPort,rn as validateAgentId,Ct as validateCloneInputs,en as validateSkillZip,oa as waitForServerLockDrain,ft as withHiddenWindowsConsole,yi as withSpan,vi as withSpanSync,or as writeBundleDecision,On as writeMarkdownlintRule,It as writeRootGitignoreForNewRepo,g as writeStateManifest,Or as writeTargetVersion,Rn as writeTracker};
1
+ import{Mo as e,No as t,P as n,Po as r,R as i,Yo as a,Zo as o,d as s,l as c,ss as l,ws as u}from"./src-CA2-5ky_.mjs";import{$ as d,$i as f,$n as p,$r as m,$t as h,A as g,Ai as _,An as v,Ar as y,At as b,B as x,Bi as S,Bn as C,Br as w,Bt as T,C as E,Ci as D,Cn as O,Cr as k,Ct as A,D as j,Di as M,Dn as N,Dt as P,E as F,Ei as I,En as L,Et as R,F as z,Fi as B,Fn as V,Fr as H,Ft as U,G as W,Gi as G,Gn as K,Gr as q,Gt as J,H as Y,Hi as X,Hn as Z,Hr as Q,Ht as $,I as ee,Ii as te,In as ne,Ir as re,It as ie,J as ae,Ji as oe,Jn as se,Jr as ce,Jt as le,K as ue,Ki as de,Kn as fe,Kr as pe,Kt as me,L as he,Li as ge,Ln as _e,Lr as ve,Lt as ye,M as be,Mi as xe,Mn as Se,Mr as Ce,Mt as we,N as Te,Ni as Ee,Nn as De,Nr as Oe,Nt as ke,O as Ae,Oi as je,On as Me,Ot as Ne,P as Pe,Pi as Fe,Pn as Ie,Pr as Le,Pt as Re,Q as ze,Qi as Be,Qn as Ve,Qr as He,Qt as Ue,R as We,Ri as Ge,Rn as Ke,Rr as qe,Rt as Je,S as Ye,Si as Xe,Sn as Ze,Sr as Qe,St as $e,T as et,Ti as tt,Tn as nt,Tt as rt,U as it,Ui as at,Un as ot,Ur as st,Ut as ct,V as lt,Vi as ut,Vn as dt,Vr as ft,Vt as pt,W as mt,Wi as ht,Wn as gt,Wr as _t,Wt as vt,X as yt,Xi as bt,Xn as xt,Xr as St,Xt as Ct,Y as wt,Yi as Tt,Yn as Et,Yr as Dt,Yt as Ot,Z as kt,Zi as At,Zn as jt,Zr as Mt,Zt as Nt,_ as Pt,_a as Ft,_n as It,_r as Lt,_t as Rt,a as zt,aa as Bt,ai as Vt,an as Ht,ar as Ut,at as Wt,b as Gt,bi as Kt,bn as qt,br as Jt,bt as Yt,c as Xt,ca as Zt,ci as Qt,cn as $t,cr as en,ct as tn,d as nn,da as rn,di as an,dn as on,dr as sn,ea as cn,ei as ln,en as un,er as dn,et as fn,f as pn,fa as mn,fi as hn,fn as gn,fr as _n,g as vn,ga as yn,gi as bn,gn as xn,gr as Sn,gt as Cn,h as wn,ha as Tn,hi as En,hn as Dn,hr as On,ht as kn,i as An,ia as jn,ii as Mn,in as Nn,ir as Pn,it as Fn,j as In,ji as Ln,jn as Rn,jr as zn,jt as Bn,k as Vn,ki as Hn,kn as Un,kr as Wn,kt as Gn,l as Kn,la as qn,li as Jn,ln as Yn,lr as Xn,m as Zn,ma as Qn,mi as $n,mn as er,mr as tr,n as nr,na as rr,ni as ir,nn as ar,nr as or,nt as sr,o as cr,oa as lr,oi as ur,on as dr,or as fr,ot as pr,p as mr,pa as hr,pi as gr,pn as _r,pr as vr,q as yr,qi as br,qn as xr,qr as Sr,qt as Cr,r as wr,ra as Tr,ri as Er,rn as Dr,rr as Or,rt as kr,s as Ar,sa as jr,si as Mr,sn as Nr,sr as Pr,st as Fr,t as Ir,ta as Lr,ti as Rr,tn as zr,tr as Br,tt as Vr,u as Hr,ua as Ur,ui as Wr,un as Gr,ur as Kr,v as qr,vi as Jr,vn as Yr,vr as Xr,vt as Zr,w as Qr,wi as $r,wn as ei,wt as ti,x as ni,xi as ri,xn as ii,xr as ai,xt as oi,y as si,yi as ci,yn as li,yr as ui,yt as di,z as fi,zi as pi,zn as mi,zr as hi,zt as gi}from"./src-CFTJ6mgL.mjs";import{C as _i,E as vi,T as yi,_ as bi,b as xi,c as Si,d as Ci,g as wi,i as Ti,l as Ei,m as Di,n as Oi,p as ki,s as Ai,t as ji,u as Mi,v as Ni,w as Pi,x as Fi,y as Ii}from"./fs-traced-OS6B1cZZ.mjs";import{a as Li,d as Ri,f as zi,i as Bi,l as Vi,n as Hi,r as Ui,t as Wi,u as Gi}from"./logger-5LePyO3n.mjs";import{S as Ki,_ as qi,a as Ji,c as Yi,f as Xi,g as Zi,h as Qi,i as $i,l as ea,m as ta,n as na,o as ra,p as ia,r as aa,s as oa,t as sa,u as ca,v as la,x as ua}from"./server-lock-BcVRTi0F.mjs";export{Zt as AGENT_ID_MAX_LEN,qn as AGENT_ID_RE,$r as AGENT_WRITE_ORIGIN,Tn as AcpPermissionStore,mn as AcpRegistry,ri as AcpThreadManager,ci as AgentFocusBroadcaster,Jr as AgentPresenceBroadcaster,tt as AgentSessionCapacityError,I as AgentSessionManager,Cn as AutoStartDisabledError,Xn as BUNDLE_IDS,Kr as BUNDLE_SCOPE,sn as BUNDLE_SKILL_NAME,C as BacklinkIndex,te as CC1Broadcaster,o as CC1_CONTRACT_VERSION,Gr as CONFIG_FILENAME,Ie as CONFLICT_MARKER_RE,Oe as CURSOR_BUNDLE_PATHS_BY_PLATFORM,Pt as ConfigSchema,X as DEFAULT_CHECKPOINT_RETENTION,Dt as DEFAULT_EMBEDDINGS_DIMENSIONS,U as DEFAULT_PACK_ID,lt as DocumentDurabilityState,St as EMBEDDINGS_API_KEY_ENV,hr as FEATURED_AGENT_IDS,at as FILE_SYSTEM_WRITER,Ke as FILE_WATCHER_ORIGIN,st as FileEmbeddingsBackend,Nt as GIT_PREFLIGHT_FAIL_SPAN_NAME,ht as GIT_UPSTREAM_WRITER,yn as GitDirAccessError,h as GitNotAvailableError,un as GitTooOldError,Rt as HOCUSPOCUS_AUTH_REJECTION_REASONS,Zr as HocuspocusAuthRejection,di as HocuspocusAuthTokenSchema,hi as INSTALLED_AGENTS_SCHEMES,a as LINEAGE_EPOCH_KEY,We as LIVE_DERIVED_INDEX_DEBOUNCE_MS,ie as LOG_MD_TEMPLATE,rt as MANAGED_RENAME_ORIGIN,Xe as MAX_ACP_THREADS,M as MAX_AGENT_SESSIONS,Fr as MCP_CONNECTION_ID_HEADER,e as MCP_SERVER_NAME,je as MIN_EVICTABLE_IDLE_MS,zr as MIN_GIT_VERSION,Y as MISSING_OK_CONFIG_MESSAGE,Ft as MalformedGitPointerError,d as McpLogger,it as MissingOkConfigError,_ as OBSERVER_SYNC_ORIGIN,on as OK_OKIGNORE_TEMPLATE,t as ORPHAN_MODES,u as PROTOCOL_VERSION,Wi as PinoLogger,Yi as ProcessLockCollisionError,Kn as ProjectGitInitError,R as ROLLBACK_ORIGIN,gn as ROOT_GITIGNORE_TEMPLATE,Zi as RUNTIME_VERSION,an as RemoteConfigError,G as SERVICE_WRITER,Pn as SKILL_INSTALL_EVENTS_FILE_REL,n as SKILL_STATE_TARGETS,ye as STARTER_FOLDERS,Je as STARTER_FOLDER_FRONTMATTER_FILENAME,gi as STARTER_PACKS,T as STARTER_PACK_IDS,pt as STARTER_TEMPLATES,et as STATE_MANIFEST_FILENAME,qi as STATE_SCHEMA_VERSION,l as SYSTEM_DOC_NAME,Cr as SeedPrerequisiteError,le as SeedRootDirError,sa as ServerLockCollisionError,Ir as SingleFileNotAFileError,nr as SingleFileNotFoundError,wr as SingleFileNotMarkdownError,F as StateManifestError,mi as TagIndex,_n as USER_GLOBAL_BUNDLE_IDS,Z as UiLockCollisionError,P as __getShowAllWalkStatsForTesting,Ne as __resetShowAllWalkStatsForTesting,ea as acquireProcessLock,na as acquireServerLock,ot as acquireUiLock,Hn as applyAgentMarkdownWrite,Se as applyExternalChange,Re as applySeed,j as assertCompatibleStateManifest,ar as assertGitAvailable,qt as assertNeverDiskEvent,Kt as attachAcpThreadSocket,kn as attachIdleShutdown,qr as bootServer,xr as buildAndOpenSkill,_r as buildConfigYmlContent,ae as buildExecResult,D as buildOkMcpStdioCommand,fr as buildSkillZip,$ as buildStarterFolderFrontmatterYaml,de as buildWipTree,vr as bundleSkillMdPath,_t as canonicalProjectKey,ii as classifyEvents,ji as classifyFsPath,q as clearAllEmbeddingsKeys,He as clearContributors,ct as coercePackId,c as colorFromSeed,br as commitUpstreamImport,oe as commitWip,Tt as commitWipFromTree,Dr as compareSemver,Sn as composeEffectiveLinterConfig,Lt as composeFrontmatterSchemasConfig,V as containsConflictMarkers,Ze as contentHash,m as contributorCount,Pe as countShadowObjects,z as countStaleAgentWipRefs,ee as countWipRefs,Gn as createApiExtension,Qt as createAssetServeMiddleware,Wn as createContentFilter,y as createContentFilterAsync,pe as createEmbeddingsSecretStore,An as createEphemeralProjectDir,De as createExternalChangeHandler,pn as createFileLogger,fi as createLiveDerivedIndexExtension,ue as createMcpHttpHandler,w as createOsProbe,Te as createPersistenceExtension,E as createServer,In as createServerObserverExtension,Ee as createStreamingErrorWriter,Hi as createTestLogger,Sr as describeStoredEmbeddingsKey,vn as detectClaudeDesktopPresence,Nn as detectGit,Ae as detectProjectShape,se as detectUserSkillHosts,sr as discoverLockDirs,Jt as discoverMarkdownlintConfig,Ue as emitPreflightFailureSpan,wt as encodeDocName,yt as encodeFolderRoute,kt as encodeSkillRoute,Hr as ensureProjectGit,er as ensureProjectSkillGitignore,Fe as errorResponse,O as evictStaleTrackerEntries,b as extractHeadings,kr as extractOkBinaryPath,dt as extractWikiLinksFromMarkdown,Ht as fallbackPaths,nn as findEnclosingGitRoot,Yr as findEnclosingProjectRoot,ai as findNativeMarkdownlintFile,mr as flushFileLogger,Yt as formatAuthRejectionWire,ln as formatContributors,Rr as formatContributorsFrom,we as formatPackRationale,bt as gcCheckpointRefs,fn as getCurrentMcpLogger,Vt as getLocalDir,Zn as getLogFilePath,Ui as getLogger,wn as getLogsDir,la as getMachineId,Ii as getMeter,Tr as getMetrics,xi as getTracer,jn as handleCollabSocketError,Le as handleSpawnCursor,hn as hasForwardingHeaders,he as hasGcLogLatch,s as iconFromClientName,Bt as incrementCollabSocketFilteredError,lr as incrementServerObserverFire,Dn as initContent,At as initShadowRepo,Fi as initTelemetry,Gt as initToleranceTelemetryWriter,pr as installPrettyZodErrors,Bi as installTestLoggers,Et as installUserSkill,Wr as isAllowedApiOrigin,En as isAllowedWorkspaceHostHeader,ge as isConfigDoc,oi as isHocuspocusAuthRejectionReason,vt as isKnownPackId,Ge as isLinkIndexExcludedDoc,bn as isLoopbackAddress,pi as isManagedArtifactDoc,r as isOrphanMode,Ln as isPairedWriteOrigin,H as isPathWithinDir,ua as isProcessAlive,li as isProjectRoot,gr as isRemoteAdmitted,S as isReservedForUserTree,ei as isSelfWrite,ut as isSystemDoc,ni as isToleranceTelemetryEnabled,Ki as isValidLockPid,nt as lastKnownHash,Be as listRescueCheckpoints,J as listStarterPacks,Qn as loadCustomAgents,be as loadPrincipal,ca as lockFilePath,Li as loggerFactory,Vi as logsCurrentPath,Gi as logsPreviousPath,ce as makeLazyEmbeddingsKeyStore,aa as markServerLockDraining,mt as mountMcpAndApi,Oi as normalizeFsPath,tr as originGitHubHost,xn as packageVersionMajorMinor,$e as parseAuthRejectionWire,dr as parseGitVersion,A as parseHocuspocusAuthToken,W as parseKeepaliveConnectionId,L as pathToDocName,ke as planSeed,zt as prepareSingleFileOpen,Fn as processCommand,Wt as processUsage,xt as readAllTargets,jt as readBundleDecision,Qe as readOwnNativeRules,Xi as readProcessLock,ia as readProcessLockDetailed,x as readProjectHeadState,Q as readProjectLocalSemanticConfig,$i as readServerLock,Ve as readServerPackageVersion,p as readSkillInstallStateSnapshot,Vn as readStateManifest,dn as readTargetRecordedAt,Br as readTargetVersion,gt as readUiLock,ne as reconcile,ir as recordContributor,Ut as recordSkillInstallEvent,yr as registerAllTools,N as registerWrite,ta as releaseProcessLock,Ji as releaseServerLock,K as releaseUiLock,Me as removeLastKnownHash,jr as resetMetrics,i as resolveBundleEnabled,Pr as resolveBundledSkillDir,ur as resolveContentDir,re as resolveCursorBinaryDefault,ve as resolveCursorSpawnInvocation,Xr as resolveEffectiveLinterConfig,Mt as resolveEmbeddingsCredential,Mr as resolveLockDir,ui as resolveNativeConfigForDoc,k as resolveNativeMarkdownlintConfig,me as resolvePack,Ar as resolvePackageVersion,$n as resolveRemoteAccess,ze as resolveUiInfo,Er as restoreContributors,si as restoreLifecycleFromConflictsJson,zn as rewriteMarkdownLinksForDocumentRename,Ce as rewriteWikiLinksForDocumentRename,Nr as runAuthReposSubprocess,$t as runAuthStatusSubprocess,Ot as runCloneSubprocess,Yn as runDeviceFlowSubprocess,Vr as runWithMcpLogger,Jn as safeContentPath,Bn as safeSubdir,f as safetyCheckpoint,tn as sanitizeClientName,cn as saveInMemoryCheckpoint,Lr as saveVersion,ti as seedBasenameIndex,cr as serializeError,_i as setActiveSpanAttributes,xe as setupServerObservers,rr as shadowGit,Pi as shutdownTelemetry,Ri as spansCurrentPath,zi as spansPreviousPath,qe as spawnDetached,_e as splitMarkdownBlocks,Un as startWatcher,B as streamingProblemEvent,Mn as swapContributors,Ye as teardownToleranceTelemetryWriter,Ur as toBroadcasterKey,Ti as tracedAppendFileSync,Ai as tracedLinkSync,Si as tracedMkdir,Ei as tracedMkdirSync,Mi as tracedRename,Ci as tracedRenameSync,ki as tracedRmSync,Di as tracedRmdirSync,wi as tracedUnlinkSync,bi as tracedWriteFile,Ni as tracedWriteFileSync,Qr as trustSystemCertificates,Xt as untrackTrackedProjectSkillProjection,v as updateLastKnownHash,Qi as updateProcessLockPort,ra as updateServerLockPort,fe as updateUiLockPort,rn as validateAgentId,Ct as validateCloneInputs,en as validateSkillZip,oa as waitForServerLockDrain,ft as withHiddenWindowsConsole,yi as withSpan,vi as withSpanSync,or as writeBundleDecision,On as writeMarkdownlintRule,It as writeRootGitignoreForNewRepo,g as writeStateManifest,Or as writeTargetVersion,Rn as writeTracker};