@inkeep/open-knowledge 0.51.0-beta.7 → 0.51.0

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 (512) hide show
  1. package/dist/THIRD_PARTY_NOTICES.md +2 -2
  2. package/dist/{acp-harness-probe-BWRTcfl5.mjs → acp-harness-probe-BBsJm_Pm.mjs} +2 -2
  3. package/dist/cli.mjs +61 -61
  4. package/dist/constants-C8Aedfex.mjs +2 -0
  5. package/dist/index.d.mts +17 -17
  6. package/dist/index.mjs +1 -1
  7. package/dist/init-B7p6fVB7.mjs +638 -0
  8. package/dist/init-Dd1fiyxa.mjs +1 -0
  9. package/dist/{launch-json-removal-BpqUErtZ.mjs → launch-json-removal-Cc62zZea.mjs} +2 -2
  10. package/dist/loader-B60WB2eL.mjs +1 -0
  11. package/dist/{loader-CzrbSVUr.mjs → loader-DZ4Zvbfe.mjs} +2 -2
  12. package/dist/{open-browser-CQP79XeJ.mjs → open-browser-De70N-tU.mjs} +2 -2
  13. package/dist/{preview-CQ_44H1v.mjs → preview-1bYPRdOR.mjs} +2 -2
  14. package/dist/preview-DeaLsJvy.mjs +1 -0
  15. package/dist/public/assets/{ActivityModeContent-NOKRoNvx.js → ActivityModeContent-Cjkui6nd.js} +1 -1
  16. package/dist/public/assets/AgentDiffPane-u-5ilTRE.js +2 -0
  17. package/dist/public/assets/{AgentThreadClientBinder-BFNjsn1A.js → AgentThreadClientBinder-BrrOZdn1.js} +1 -1
  18. package/dist/public/assets/AppMenubar-DzKyqu4x.js +1 -0
  19. package/dist/public/assets/BugReportHistory-mvsL4k28.js +1 -0
  20. package/dist/public/assets/{BugReportHistoryDialog-C2b4xA3d.js → BugReportHistoryDialog-DpBx3OAi.js} +1 -1
  21. package/dist/public/assets/ChangedOutsideBadge-BcoH6-nw.js +1 -0
  22. package/dist/public/assets/{CodeMirrorPropInput-BPYAZ8kt.js → CodeMirrorPropInput-D50z9yLP.js} +3 -3
  23. package/dist/public/assets/{ConfigSharingInfoTooltip-4T5uhyyt.js → ConfigSharingInfoTooltip-BPA8HEYl.js} +1 -1
  24. package/dist/public/assets/{ConsentDialogBody-DfhGpXdb.js → ConsentDialogBody-KXeO_ZFL.js} +1 -1
  25. package/dist/public/assets/{CopyButton-ByR_1gcU.js → CopyButton-DhHoiQJR.js} +1 -1
  26. package/dist/public/assets/{DiffView-BkhkquRc.js → DiffView-BjOsi4GM.js} +1 -1
  27. package/dist/public/assets/DocumentContext-CasGadtG.js +38 -0
  28. package/dist/public/assets/EditorModeToggle-6-QjT8Ga.js +1 -0
  29. package/dist/public/assets/EnableSyncConfirmDialog-CYGOKMM4.js +1 -0
  30. package/dist/public/assets/FeedbackForm-CHJMhyv8.js +1 -0
  31. package/dist/public/assets/{GraphPanel-D3eqDrvs.js → GraphPanel-H0Dz8I1Y.js} +2 -2
  32. package/dist/public/assets/ImportSkillDialog-mMdMQEcu.js +1 -0
  33. package/dist/public/assets/{LintConfigEditor-13jZ4Dsg.js → LintConfigEditor-DGxetApx.js} +1 -1
  34. package/dist/public/assets/ManagedArtifactProperties-5u803JAP.js +2 -0
  35. package/dist/public/assets/ManagedArtifactProperties-CutBH5nQ.js +1 -0
  36. package/dist/public/assets/McpConsentDialogBody-BB44PQE6.js +1 -0
  37. package/dist/public/assets/{Mermaid-BHfANkja.js → Mermaid-D-pcyGRV.js} +2 -2
  38. package/dist/public/assets/{MermaidDocEditor-BwM26FyA.js → MermaidDocEditor-BDExs-LW.js} +1 -1
  39. package/dist/public/assets/{RegisteredAgentIcon-gjOJZp_B.js → RegisteredAgentIcon-BgDInKA9.js} +1 -1
  40. package/dist/public/assets/ReportBugDialogBody-Cedm28lz.js +3 -0
  41. package/dist/public/assets/{SchemaConfigEditor-BMX58iGg.js → SchemaConfigEditor-Dbn9RObT.js} +1 -1
  42. package/dist/public/assets/SessionsHost-CPuk32sz.js +2 -0
  43. package/dist/public/assets/SettingsDialogBody-Cy0NXh6T.js +12 -0
  44. package/dist/public/assets/ShareBranchSwitchDialog-Co8TuLoa.js +1 -0
  45. package/dist/public/assets/ShareReceiveDialog-DHLrIRs0.js +1 -0
  46. package/dist/public/assets/{ShareReceiveMissDialog-CjusDUpU.js → ShareReceiveMissDialog-BHMkU4HH.js} +1 -1
  47. package/dist/public/assets/{SkillEditBanner-DAXtbz8B.js → SkillEditBanner-UvWXpguP.js} +1 -1
  48. package/dist/public/assets/{SkillOriginInline-CSKIzMpb.js → SkillOriginInline-D8kmShJA.js} +1 -1
  49. package/dist/public/assets/{SkillToolbarControls-Co9gbY4r.js → SkillToolbarControls-B9upYwy8.js} +1 -1
  50. package/dist/public/assets/SlidesToolbarControls-B_zJy_NS.js +1 -0
  51. package/dist/public/assets/SourceEditor-BYbqK1qo.js +1 -0
  52. package/dist/public/assets/{TerminalPanel-CCfioVTh.js → TerminalPanel-D5dGBcUr.js} +1 -1
  53. package/dist/public/assets/{TerminalWindowApp-CXQsiNzb.js → TerminalWindowApp-DxDcT0Nb.js} +1 -1
  54. package/dist/public/assets/TextDocEditor-GLvDavbc.js +1 -0
  55. package/dist/public/assets/ThreadView-B7F0lkW2.js +10 -0
  56. package/dist/public/assets/TimelineDiffPane-CjnN3faR.js +2 -0
  57. package/dist/public/assets/{abnfDiagram-VRR7QNED-By0_za11.js → abnfDiagram-VRR7QNED-CQ5y3jGZ.js} +1 -1
  58. package/dist/public/assets/{agent-diff-store-B8KERfT2.js → agent-diff-store-ghKYlKOr.js} +1 -1
  59. package/dist/public/assets/{arc-5_RUQzQ7.js → arc-DllfmQO6.js} +1 -1
  60. package/dist/public/assets/architecture-TIHT7OUA-CIR5HZsg.js +1 -0
  61. package/dist/public/assets/{architectureDiagram-ZJ3FMSHR-PHjEFax1.js → architectureDiagram-ZJ3FMSHR-DEDVgPeV.js} +1 -1
  62. package/dist/public/assets/arrow-up-right-D_WN0VGP.js +1 -0
  63. package/dist/public/assets/auth-state-cache-Z9zb3Xiw.js +11 -0
  64. package/dist/public/assets/{badge-DFX4S3a5.js → badge-zHd29IKW.js} +1 -1
  65. package/dist/public/assets/{blockDiagram-677ZJIJ3-BUuJiGZl.js → blockDiagram-677ZJIJ3-Biovo5Vk.js} +1 -1
  66. package/dist/public/assets/{braces-CJEjDc1f.js → braces-B2tgJ4cu.js} +1 -1
  67. package/dist/public/assets/{button-CA0dewJJ.js → button-RQ5o7P7w.js} +1 -1
  68. package/dist/public/assets/{c4Diagram-LMCZKHZV-D4UjQlwU.js → c4Diagram-LMCZKHZV-BUMbkcfU.js} +1 -1
  69. package/dist/public/assets/{calendar-BTcSoUWo.js → calendar-q3K0fDI1.js} +1 -1
  70. package/dist/public/assets/{case-sensitive-CE1B0vR4.js → case-sensitive-Cz58rAyi.js} +1 -1
  71. package/dist/public/assets/channel-C6KgPQqg.js +1 -0
  72. package/dist/public/assets/check-xiKupoJh.js +1 -0
  73. package/dist/public/assets/{checkbox-vidgONxv.js → checkbox-DxTkAw0k.js} +1 -1
  74. package/dist/public/assets/{chevron-down-DabHDQTe.js → chevron-down-DmoBYxyq.js} +1 -1
  75. package/dist/public/assets/chevron-left-CiNweXA3.js +1 -0
  76. package/dist/public/assets/chevron-right-DJvandMc.js +1 -0
  77. package/dist/public/assets/{chevron-up-BNZIobnQ.js → chevron-up-eNJS5_XA.js} +1 -1
  78. package/dist/public/assets/chunk-2Q5K7J3B-CgG_zTm9.js +1 -0
  79. package/dist/public/assets/{chunk-32BRIVSS-CqHtBxci.js → chunk-32BRIVSS-CJfLw0io.js} +1 -1
  80. package/dist/public/assets/{chunk-52WLFC77-Ct--wlEg.js → chunk-52WLFC77-CKUXR-Lo.js} +1 -1
  81. package/dist/public/assets/{chunk-5FCAYU7R-D4Qemx4Q.js → chunk-5FCAYU7R-Blhoqerk.js} +1 -1
  82. package/dist/public/assets/{chunk-5HE753X5-AFxpbWC8.js → chunk-5HE753X5-Be3l52OO.js} +1 -1
  83. package/dist/public/assets/{chunk-5JV3BV7I-DQech1b8.js → chunk-5JV3BV7I-COJRGdXn.js} +1 -1
  84. package/dist/public/assets/{chunk-5TONJI2A-DhQn7UEA.js → chunk-5TONJI2A-6Fwn-ZXg.js} +1 -1
  85. package/dist/public/assets/{chunk-5VM5RSS4-Mk-moEej.js → chunk-5VM5RSS4-CBB7ddJZ.js} +1 -1
  86. package/dist/public/assets/{chunk-7BUUIJ7U-NgiLm4do.js → chunk-7BUUIJ7U-BCqa-5nq.js} +1 -1
  87. package/dist/public/assets/{chunk-BIQX33UG-BGOx5d7P.js → chunk-BIQX33UG-DzD4i2B0.js} +1 -1
  88. package/dist/public/assets/{chunk-BO2N2NFS-BD-R2P8f.js → chunk-BO2N2NFS-KCTBsTca.js} +4 -4
  89. package/dist/public/assets/{chunk-C7G6YPKG-ETQuvHy_.js → chunk-C7G6YPKG-DxT1wdEz.js} +1 -1
  90. package/dist/public/assets/{chunk-CQNSW5MT-BtseeAyV.js → chunk-CQNSW5MT-DFeH5OJq.js} +1 -1
  91. package/dist/public/assets/{chunk-CYSBUYHQ-BMn0BrMO.js → chunk-CYSBUYHQ-BnJMwkKI.js} +1 -1
  92. package/dist/public/assets/{chunk-EMLP6XTP-CMh4Lfqa.js → chunk-EMLP6XTP-MSvlJ735.js} +1 -1
  93. package/dist/public/assets/{chunk-EX3LRPZG-9JJX2N4p.js → chunk-EX3LRPZG-DUzsTxw6.js} +1 -1
  94. package/dist/public/assets/{chunk-FWX5IMBZ-BG7sIfOm.js → chunk-FWX5IMBZ-D3EMolHi.js} +2 -2
  95. package/dist/public/assets/{chunk-HOUHSVGY-DZGPL4gA.js → chunk-HOUHSVGY-CA499J_e.js} +1 -1
  96. package/dist/public/assets/{chunk-ICXQ74PX-CKtDW9ht.js → chunk-ICXQ74PX-CNLojPkU.js} +1 -1
  97. package/dist/public/assets/{chunk-JG7HCLWE-Bx0614Ks.js → chunk-JG7HCLWE-BjvLoZ4O.js} +1 -1
  98. package/dist/public/assets/{chunk-JWPE2WC7-CTPvDarN.js → chunk-JWPE2WC7-DKo0ygBr.js} +1 -1
  99. package/dist/public/assets/{chunk-MOJQB5TN-BAhZ0kPA.js → chunk-MOJQB5TN-hxtcpfx_.js} +1 -1
  100. package/dist/public/assets/{chunk-MOZMSUNE-Cw75i_mo.js → chunk-MOZMSUNE-DQOK9LgW.js} +1 -1
  101. package/dist/public/assets/{chunk-OGEWGWER-CXRXvI-G.js → chunk-OGEWGWER-DmUP6YIh.js} +1 -1
  102. package/dist/public/assets/{chunk-OSBZ3O6U-3rlBFXeF.js → chunk-OSBZ3O6U-D1WpsIpR.js} +1 -1
  103. package/dist/public/assets/{chunk-PUDLZKDR-m0_LideR.js → chunk-PUDLZKDR-CQKVQESS.js} +1 -1
  104. package/dist/public/assets/{chunk-Q4XR5HBZ-DtfMFxTy.js → chunk-Q4XR5HBZ-CChmYrK9.js} +1 -1
  105. package/dist/public/assets/{chunk-QBLGF6JB-ClgYvCDk.js → chunk-QBLGF6JB-CgndLuEz.js} +1 -1
  106. package/dist/public/assets/{chunk-R7FJI6CG-Byfy5jLm.js → chunk-R7FJI6CG-DCv2sUq2.js} +1 -1
  107. package/dist/public/assets/{chunk-RYQCIY6F-BcYiXXs_.js → chunk-RYQCIY6F-AIaldrY4.js} +1 -1
  108. package/dist/public/assets/{chunk-U6XO7XAA-BgHi1_DT.js → chunk-U6XO7XAA-CxMMdww-.js} +1 -1
  109. package/dist/public/assets/{chunk-V7JOEXUC-87Dg_1li.js → chunk-V7JOEXUC-CXy9SmJk.js} +1 -1
  110. package/dist/public/assets/chunk-VAUOI2AC-ujVxk4Ze.js +1 -0
  111. package/dist/public/assets/{chunk-VR4S4FIN-CgLu4IqR.js → chunk-VR4S4FIN-KG7H_g4c.js} +1 -1
  112. package/dist/public/assets/{chunk-WYO6CB5R-DDQFGPZ4.js → chunk-WYO6CB5R-B368j75q.js} +2 -2
  113. package/dist/public/assets/chunk-XXDRQBXY-B7w13F3i.js +1 -0
  114. package/dist/public/assets/{chunk-YOTPTUD7-Bb6P7QJ5.js → chunk-YOTPTUD7-Cqb1OWoI.js} +1 -1
  115. package/dist/public/assets/{chunk-ZGVPDNZ5-Cps1Smx5.js → chunk-ZGVPDNZ5-BKdDRJat.js} +1 -1
  116. package/dist/public/assets/{chunk-ZIRB5QZD-BUb1k7IW.js → chunk-ZIRB5QZD-CvXXd6Mf.js} +1 -1
  117. package/dist/public/assets/classDiagram-OUVF2IWQ-CrrbWSrl.js +1 -0
  118. package/dist/public/assets/classDiagram-v2-EOCWNBFH-BYbi6pvW.js +1 -0
  119. package/dist/public/assets/client-version-C6LF52yy.js +1 -0
  120. package/dist/public/assets/{cm-theme-NiQt8zc0.js → cm-theme-ChFGbVCe.js} +1 -1
  121. package/dist/public/assets/{code-highlighter-impl-Dk8zJoMV.js → code-highlighter-impl-CHS525hA.js} +1 -1
  122. package/dist/public/assets/{collapsible-COrqeoHr.js → collapsible-OhEmjTXw.js} +1 -1
  123. package/dist/public/assets/comment-chips-S0s83wIP.js +5 -0
  124. package/dist/public/assets/{config-provider-hPtL5Ruf.js → config-provider-BIse3_Yo.js} +3 -3
  125. package/dist/public/assets/{context-menu-D1MgERPo.js → context-menu-CYgsnEgV.js} +1 -1
  126. package/dist/public/assets/{cose-bilkent-JH36ORCC-B5G6WpVe.js → cose-bilkent-JH36ORCC-CwtkHR1Y.js} +1 -1
  127. package/dist/public/assets/cynefin-VYW2F7L2-BdPtv88z.js +1 -0
  128. package/dist/public/assets/{cynefinDiagram-TSTJHNR4-xWzANYbb.js → cynefinDiagram-TSTJHNR4-LsplRO2K.js} +1 -1
  129. package/dist/public/assets/{dagre-DU0bSWB3.js → dagre-C6VKrNvO.js} +1 -1
  130. package/dist/public/assets/{dagre-VKFMJZFB-DRyoGqzk.js → dagre-VKFMJZFB-DhzjgRUZ.js} +1 -1
  131. package/dist/public/assets/{diagram-FQU43EPY-nZKoVz4B.js → diagram-FQU43EPY-a4jh9ybB.js} +1 -1
  132. package/dist/public/assets/{diagram-G47NLZAW-DPNtUg-P.js → diagram-G47NLZAW-Jgkwuc6y.js} +1 -1
  133. package/dist/public/assets/{diagram-NH7WQ7WH-Zm853285.js → diagram-NH7WQ7WH-Cz1HEitz.js} +1 -1
  134. package/dist/public/assets/{diagram-OA4YK3LP-DAhRUKgQ.js → diagram-OA4YK3LP-CIcVtjXP.js} +1 -1
  135. package/dist/public/assets/{diagram-WEI45ONY-D3E8BHEU.js → diagram-WEI45ONY-C8wU887b.js} +1 -1
  136. package/dist/public/assets/dialog-Bxcn1sLm.js +5 -0
  137. package/dist/public/assets/{dist-BSAh-TK7.js → dist-B0Beym3_.js} +1 -1
  138. package/dist/public/assets/{dist-CrYLos7c.js → dist-BOhFaMG0.js} +1 -1
  139. package/dist/public/assets/{dist-B55799jR.js → dist-Bb1r1o6u.js} +1 -1
  140. package/dist/public/assets/{dist-DsLZcVyZ.js → dist-Bi80hc1t.js} +1 -1
  141. package/dist/public/assets/{dist-BUDkMEzD.js → dist-Bx9oFJRu.js} +1 -1
  142. package/dist/public/assets/{dist-gTGB_-tT.js → dist-By2lAhKX.js} +1 -1
  143. package/dist/public/assets/{dist-DpjZjxsY.js → dist-C9uRrl_E.js} +1 -1
  144. package/dist/public/assets/{dist-RxK2lKIj.js → dist-CFyOS6pn.js} +1 -1
  145. package/dist/public/assets/{dist-DoYGOGZp.js → dist-CHVHOG7X2.js} +4 -4
  146. package/dist/public/assets/{dist-DX6BuR0m.js → dist-CR6aO28t.js} +1 -1
  147. package/dist/public/assets/{dist-lGeJn8Qx.js → dist-CXSIgvvA.js} +1 -1
  148. package/dist/public/assets/{dist-DU3mip8Z.js → dist-DL1WTl5d.js} +1 -1
  149. package/dist/public/assets/{dist-Bme5LuHX.js → dist-DMj9iIHH.js} +1 -1
  150. package/dist/public/assets/{dist-DPG-4B8V.js → dist-DRg5A_HQ.js} +1 -1
  151. package/dist/public/assets/{dist-BvwnbioL.js → dist-DY-494HN.js} +1 -1
  152. package/dist/public/assets/{dist-C6lhy_gK.js → dist-D_1xxRDt.js} +1 -1
  153. package/dist/public/assets/{dist-Ds8NLlxa.js → dist-DgRDZMLf.js} +1 -1
  154. package/dist/public/assets/{dist-DmTWt7nC.js → dist-DpaqLIPT.js} +1 -1
  155. package/dist/public/assets/{dist-DwFjOxj-.js → dist-DrCK4JBL.js} +1 -1
  156. package/dist/public/assets/{dist-CADCdgrq.js → dist-DuPjpj5-.js} +1 -1
  157. package/dist/public/assets/{dist-DbcFk_pj.js → dist-EpVTQF77.js} +1 -1
  158. package/dist/public/assets/{dist-6Kl8HTi9.js → dist-G89kioZo.js} +1 -1
  159. package/dist/public/assets/doc-paths-DEUIlKvV.js +1 -0
  160. package/dist/public/assets/documents-events-CNRzblNO.js +1 -0
  161. package/dist/public/assets/{download-C3PYuI1f.js → download-btG_KeFQ.js} +1 -1
  162. package/dist/public/assets/{dropdown-menu-CLgDYkh1.js → dropdown-menu-K4eCFwQy.js} +1 -1
  163. package/dist/public/assets/{ebnfDiagram-CCIWWBDH-BildoPpV.js → ebnfDiagram-CCIWWBDH-CjptFZja.js} +1 -1
  164. package/dist/public/assets/{erDiagram-Q63AITRT-CrQn__5X.js → erDiagram-Q63AITRT-BYiJa_5G.js} +1 -1
  165. package/dist/public/assets/{es2015-wpLRKwCl.js → es2015-B2hWAwcf.js} +1 -1
  166. package/dist/public/assets/eventmodeling-45OFAUF4-ur3Hg9pT.js +1 -0
  167. package/dist/public/assets/{eye-CSz7ogHo.js → eye-j_4QS15C.js} +1 -1
  168. package/dist/public/assets/{field-CtVP3IIV.js → field-9eXIpxzl.js} +1 -1
  169. package/dist/public/assets/file-tree-adapter-DYdb8QDM.js +1 -0
  170. package/dist/public/assets/file-tree-utils-CaXhxBar.js +1 -0
  171. package/dist/public/assets/flowDiagram-23GEKE2U-C1BAvCbz.js +1 -0
  172. package/dist/public/assets/{folder-CopDpuy5.js → folder-C8rE1Soy.js} +1 -1
  173. package/dist/public/assets/{folder-config-api-7-6Lsx3w.js → folder-config-api-Cm-dSVuA.js} +1 -1
  174. package/dist/public/assets/{folder-open-DUSc8NL8.js → folder-open-CB-trByC.js} +1 -1
  175. package/dist/public/assets/follow-file-DIXrodzs.js +1 -0
  176. package/dist/public/assets/{form-dlFqxdSN.js → form-_Bm7VdZa.js} +1 -1
  177. package/dist/public/assets/{ganttDiagram-NO4QXBWP-D3jf9kZJ.js → ganttDiagram-NO4QXBWP-TYuuGc0X.js} +1 -1
  178. package/dist/public/assets/{git-branch-CCnsAeFH.js → git-branch-JnfmLuHd.js} +1 -1
  179. package/dist/public/assets/gitGraph-TEB2WS4Q-l_1SzZcb.js +1 -0
  180. package/dist/public/assets/{gitGraphDiagram-IHSO6WYX-DlDGz9cq.js → gitGraphDiagram-IHSO6WYX-BrjUrrk2.js} +1 -1
  181. package/dist/public/assets/globals-Bq7QmnDv.css +1 -0
  182. package/dist/public/assets/{graphlib-C4PVrCSd.js → graphlib-D8PlvV2o.js} +1 -1
  183. package/dist/public/assets/{hash-DI30zEBt.js → hash-DKiwvmF3.js} +1 -1
  184. package/dist/public/assets/{highlighted-body-OFNGDK62-BRij1le7.js → highlighted-body-OFNGDK62-eJrwOujA.js} +1 -1
  185. package/dist/public/assets/{history-B1SZDFzE.js → history-eaFgPZWX.js} +1 -1
  186. package/dist/public/assets/i18n-lVHP3BYW.js +1 -0
  187. package/dist/public/assets/index-CEkDqwbq.js +2097 -0
  188. package/dist/public/assets/{info-CV59RycV.js → info-CsTy513y.js} +1 -1
  189. package/dist/public/assets/info-DKCQHKI2-CCDXfGhV.js +1 -0
  190. package/dist/public/assets/{infoDiagram-FWYZ7A6U-Bl9xWhB1.js → infoDiagram-FWYZ7A6U-B6_Knuir.js} +1 -1
  191. package/dist/public/assets/{input-group-BiaQ-rIw.js → input-group-BA2Li4LU.js} +1 -1
  192. package/dist/public/assets/{ishikawaDiagram-FXEZZL3T-gaFrf2SM.js → ishikawaDiagram-FXEZZL3T-CqxHoebw.js} +1 -1
  193. package/dist/public/assets/{journeyDiagram-5HDEW3XC-DpjawWEP.js → journeyDiagram-5HDEW3XC-B1-3fVtR.js} +1 -1
  194. package/dist/public/assets/{kanban-definition-HUTT4EX6-CEd1M9Jf.js → kanban-definition-HUTT4EX6-CdhMOBCU.js} +1 -1
  195. package/dist/public/assets/{label-B5yNUINo.js → label-BT2yjpKR.js} +1 -1
  196. package/dist/public/assets/{lib-C0Wr4O8I.js → lib-BHGXbMkc.js} +1 -1
  197. package/dist/public/assets/{lib-Bgq5iQnh.js → lib-DcrRfjuF.js} +1 -1
  198. package/dist/public/assets/{line-DF4qqG3z.js → line-C0o9Fjf4.js} +1 -1
  199. package/dist/public/assets/{linear-B3i0ZXFo.js → linear-CjM1R4zy.js} +1 -1
  200. package/dist/public/assets/lint-config-client-Di_wU0g4.js +1 -0
  201. package/dist/public/assets/{list-plus-DBdmIc6v.js → list-plus-ByOuGBSE.js} +1 -1
  202. package/dist/public/assets/{local-menu-action-bus-Cypryz6Z.js → local-menu-action-bus-BKJCODnD.js} +1 -1
  203. package/dist/public/assets/{map-DtIcVWDF.js → map-Cu759seX.js} +1 -1
  204. package/dist/public/assets/markdownlint-rule-browser-CepJct7F.js +1 -0
  205. package/dist/public/assets/{mcp-consent-store-BASpxNOZ.js → mcp-consent-store-CBPF1Ll9.js} +1 -1
  206. package/dist/public/assets/mermaid-GHXKKRXX-C9G7CQ6h.js +1 -0
  207. package/dist/public/assets/{mermaid-parser.core-ByQzJt56.js → mermaid-parser.core-DpHycRcl.js} +2 -2
  208. package/dist/public/assets/{mermaid.core-q87AkGda.js → mermaid.core-BnYdLHjl.js} +3 -3
  209. package/dist/public/assets/messages-B12ABuMo.js +1 -0
  210. package/dist/public/assets/messages-BUufFcK8.js +1 -0
  211. package/dist/public/assets/messages-BV-Jgai1.js +1 -0
  212. package/dist/public/assets/messages-B_u6thtp.js +1 -0
  213. package/dist/public/assets/messages-CS-CWF8r.js +1 -0
  214. package/dist/public/assets/messages-CwQGRPEE.js +1 -0
  215. package/dist/public/assets/messages-Cwceyxby.js +1 -0
  216. package/dist/public/assets/messages-DGpodehZ.js +1 -0
  217. package/dist/public/assets/messages-DHl_AYzv.js +1 -0
  218. package/dist/public/assets/messages-DbRvxOAn.js +1 -0
  219. package/dist/public/assets/messages-DdKkPWw3.js +1 -0
  220. package/dist/public/assets/{mindmap-definition-LN4V7U3C-Dn7sM2vD.js → mindmap-definition-LN4V7U3C-D6FYi_vY.js} +1 -1
  221. package/dist/public/assets/minus-H7UCODAH.js +1 -0
  222. package/dist/public/assets/{miss-dialog-store-sSyy54tn.js → miss-dialog-store-DKfFwAsF.js} +1 -1
  223. package/dist/public/assets/navigation-targets-Dh0TaCXK.js +1 -0
  224. package/dist/public/assets/{now-Bs9xiL-y.js → now-Cd_fQsCQ.js} +1 -1
  225. package/dist/public/assets/{open-managed-artifact-tab-ChY4GdUc.js → open-managed-artifact-tab-DflI2eed.js} +1 -1
  226. package/dist/public/assets/{ordinal-CBsC_qub.js → ordinal-oNJqAlZi.js} +1 -1
  227. package/dist/public/assets/packet-7NZHBO7P-BBeRj-Du.js +1 -0
  228. package/dist/public/assets/{panel-right-open-B66oA9M1.js → panel-right-open-JxkSMPMb.js} +1 -1
  229. package/dist/public/assets/{paperclip-BlKB6Xwa.js → paperclip-BxFhnUjq.js} +1 -1
  230. package/dist/public/assets/pdf-19dxfod4.js +54 -0
  231. package/dist/public/assets/{pdf.worker-CLesOks4.mjs → pdf.worker-B1D2UnXD.mjs} +6625 -8349
  232. package/dist/public/assets/pdf.worker-Cn0IyjYR.js +1 -0
  233. package/dist/public/assets/{pegDiagram-2B236MQR-C05FQYWa.js → pegDiagram-2B236MQR-Cic2_Ooi.js} +1 -1
  234. package/dist/public/assets/{pending-receive-nav-store-CzDpDZMG.js → pending-receive-nav-store-yXsV1Iit.js} +1 -1
  235. package/dist/public/assets/pie-RZYD4A2V-BszLCTWh.js +1 -0
  236. package/dist/public/assets/{pieDiagram-ENE6RG2P-yyTCawlg.js → pieDiagram-ENE6RG2P-DgqO0C3j.js} +1 -1
  237. package/dist/public/assets/{project-paths-_w2mRvRX.js → project-paths-DC6bWLUQ.js} +1 -1
  238. package/dist/public/assets/prop-types-CLe_EOJt.js +1 -0
  239. package/dist/public/assets/{propagation-api-PBYTadVM.js → propagation-api-DSg7UKuw.js} +1 -1
  240. package/dist/public/assets/{quadrantDiagram-ABIIQ3AL-B3sRVPYy.js → quadrantDiagram-ABIIQ3AL-CC3ZGpWb.js} +1 -1
  241. package/dist/public/assets/radar-I7S5WNFK-CG0ShGDu.js +1 -0
  242. package/dist/public/assets/{radio-group-BSCe7mNt.js → radio-group-CmCnommQ.js} +1 -1
  243. package/dist/public/assets/railroad-3IZDKUUU-N5ekmrCL.js +1 -0
  244. package/dist/public/assets/railroad-abnf-AHOZXSZD-DnjoKlG9.js +1 -0
  245. package/dist/public/assets/railroad-ebnf-EBAXGLYW-qDwmtJRh.js +1 -0
  246. package/dist/public/assets/railroad-peg-LSFZ7HO6-DSfMsKSD.js +1 -0
  247. package/dist/public/assets/{railroadDiagram-RFXS5EU6-BU6ZoyHj.js → railroadDiagram-RFXS5EU6-DaoKPEli.js} +1 -1
  248. package/dist/public/assets/{receive-store-BJRLpWDq.js → receive-store-DrPPaP0S.js} +1 -1
  249. package/dist/public/assets/{refresh-cw-DQervzDZ.js → refresh-cw-CAV3aG7d.js} +1 -1
  250. package/dist/public/assets/{requirementDiagram-TGXJPOKE-CUJr32-2.js → requirementDiagram-TGXJPOKE-qmFI0ev3.js} +1 -1
  251. package/dist/public/assets/{sankeyDiagram-HTMAVEWB-bGsSEqGh.js → sankeyDiagram-HTMAVEWB-CYeZQsa5.js} +1 -1
  252. package/dist/public/assets/{schema-fields-view-intent-DiE8NL9y.js → schema-fields-view-intent-CeZOW3HG.js} +1 -1
  253. package/dist/public/assets/{select-CguJodwX.js → select-BjNoD_FX.js} +1 -1
  254. package/dist/public/assets/{selection-context-5FLhwrRu.js → selection-context-BxRPPU5Z.js} +1 -1
  255. package/dist/public/assets/{separator-vdmCepR4.js → separator-BKbgOjgy.js} +1 -1
  256. package/dist/public/assets/{sequenceDiagram-DBY2YBRQ-d6rntmdd.js → sequenceDiagram-DBY2YBRQ-DfXkoRwp.js} +1 -1
  257. package/dist/public/assets/{sizeCapture-X5ZJPWSS-CJquhL5U.js → sizeCapture-X5ZJPWSS-Bd7A4fpz.js} +1 -1
  258. package/dist/public/assets/skill-actions-Dj2NwLGa.js +2 -0
  259. package/dist/public/assets/skill-scope-BzUNaBG8.js +1 -0
  260. package/dist/public/assets/skills-api-VZRmji1_.js +1 -0
  261. package/dist/public/assets/{spinner-BqySY7qY.js → spinner-D7fgqgRw.js} +1 -1
  262. package/dist/public/assets/{square-pen-Cb57Y3fg.js → square-pen-hwoIfi3M.js} +1 -1
  263. package/dist/public/assets/{src-Dlkd7M23.js → src-CbX6YXDU.js} +1 -1
  264. package/dist/public/assets/{src-DTnqSW2M.js → src-XHagG0Wj.js} +1 -1
  265. package/dist/public/assets/{stateDiagram-2N3HPSRC-kGd_FNp8.js → stateDiagram-2N3HPSRC-CCh_abZC.js} +1 -1
  266. package/dist/public/assets/stateDiagram-v2-6OUMAXLB-CUhlDos5.js +1 -0
  267. package/dist/public/assets/{swimlanes-5IMT3BWC-v_MAyooN.js → swimlanes-5IMT3BWC-Dk2uoutn.js} +2 -2
  268. package/dist/public/assets/swimlanesDiagram-G3AALYLV-DHL99Ckz.js +8 -0
  269. package/dist/public/assets/{switch-B2sF5R0q.js → switch-0kSGDL9E.js} +1 -1
  270. package/dist/public/assets/{tabs-DlmsMbtD.js → tabs-CjOEhhKP.js} +1 -1
  271. package/dist/public/assets/tag-pill-input-GrIUFiT7.js +1 -0
  272. package/dist/public/assets/{target-navigation-intent-Dn77egCV.js → target-navigation-intent-CqhpK9cj.js} +1 -1
  273. package/dist/public/assets/{telemetry-impl-5ki23cLU.js → telemetry-impl-DlE3Lv5F.js} +2 -2
  274. package/dist/public/assets/telemetry-startup-hv8lBqwj.js +1 -0
  275. package/dist/public/assets/terminal-bCsp6kPz.js +1 -0
  276. package/dist/public/assets/terminal-cli-display-DLfTA9tz.js +1 -0
  277. package/dist/public/assets/terminal-launch-events-DaPNTH_g.js +1 -0
  278. package/dist/public/assets/{terminal-telemetry-DATv4VP7.js → terminal-telemetry-BdrnMW3b.js} +1 -1
  279. package/dist/public/assets/{text-viewer-languages-4qbY4VOt.js → text-viewer-languages-BmEIetCD.js} +2 -2
  280. package/dist/public/assets/{thread-client-DnaLPSLV.js → thread-client-DySYYPC9.js} +1 -1
  281. package/dist/public/assets/{timeline-definition-FHXFAJF6-B79HsAbT.js → timeline-definition-FHXFAJF6-tb13RhWP.js} +1 -1
  282. package/dist/public/assets/{toggle-group-CZcn-1gX.js → toggle-group-DAYvcc1F.js} +1 -1
  283. package/dist/public/assets/{tooltip-DHXgxWLL.js → tooltip-x7BNUa3s.js} +1 -1
  284. package/dist/public/assets/{trash-2-N0ilsnnr.js → trash-2-CSpv7np3.js} +1 -1
  285. package/dist/public/assets/treeView-QDETBFTQ-DwFOcFO4.js +1 -0
  286. package/dist/public/assets/treemap-6X3UGDF4-D_-cggQd.js +1 -0
  287. package/dist/public/assets/{triangle-alert-COo6wbUK.js → triangle-alert-xKPljhlK.js} +1 -1
  288. package/dist/public/assets/{typing-burst-detector-CsTrQNxg.js → typing-burst-detector-COX8FDXD.js} +2 -2
  289. package/dist/public/assets/{undo-2-WGCwknr8.js → undo-2-D5cqFzyJ.js} +1 -1
  290. package/dist/public/assets/uninstall-Bh5dzTYb.js +1 -0
  291. package/dist/public/assets/use-activity-panel-CtHXJ4mx.js +1 -0
  292. package/dist/public/assets/use-apply-config-color-theme-Be4mSe54.js +1 -0
  293. package/dist/public/assets/use-collab-url-ChXwOaQi.js +1 -0
  294. package/dist/public/assets/{use-live-xterm-theme-XZ_rkAuD.js → use-live-xterm-theme-CaipyTAZ.js} +1 -1
  295. package/dist/public/assets/use-open-skill-DASBRT-Y.js +1 -0
  296. package/dist/public/assets/{use-popular-skills-iSI9dtuW.js → use-popular-skills-BEpYkbxf.js} +1 -1
  297. package/dist/public/assets/use-settings-route-MF7LcF5y.js +1 -0
  298. package/dist/public/assets/use-skill-origin-qCGon4Nv.js +1 -0
  299. package/dist/public/assets/use-skills-C13KTW_J.js +1 -0
  300. package/dist/public/assets/use-terminal-enabled-r2pfLhCY.js +1 -0
  301. package/dist/public/assets/{use-timeline-entry-diff-CJCmKbXD.js → use-timeline-entry-diff-C9owRy-n.js} +1 -1
  302. package/dist/public/assets/use-workspace-CEaEfKKU.js +1 -0
  303. package/dist/public/assets/{vennDiagram-L72KCM5P-CNfULt3I.js → vennDiagram-L72KCM5P-Cyp_-2xs.js} +1 -1
  304. package/dist/public/assets/wardley-OPB4EBWU-Dz0s9mBi.js +1 -0
  305. package/dist/public/assets/{wardleyDiagram-EHGQE667-CJYAF8du.js → wardleyDiagram-EHGQE667-C5z1_r-x.js} +1 -1
  306. package/dist/public/assets/{wrench-CP2MIQHF.js → wrench-yAsO-Pm9.js} +1 -1
  307. package/dist/public/assets/x-BopM5CF8.js +1 -0
  308. package/dist/public/assets/{xychartDiagram-FW5EYKEG-CDXLQgim.js → xychartDiagram-FW5EYKEG-DH9RxgRE.js} +1 -1
  309. package/dist/public/index.html +161 -162
  310. package/dist/public/uninstall.html +30 -30
  311. package/dist/{repair-launch-json-i4R0znAY.mjs → repair-launch-json-foJvpWbf.mjs} +2 -2
  312. package/dist/{repair-mcp-configs-Cfs-VUUG.mjs → repair-mcp-configs-DL2OFtP3.mjs} +2 -2
  313. package/dist/{repair-skills-CBiPGgau.mjs → repair-skills-BFfQjF9F.mjs} +2 -2
  314. package/dist/repair-skills-Dz417BMs.mjs +1 -0
  315. package/dist/{skill-teardown-RIfU9RXJ.mjs → skill-teardown-BppNXkpR.mjs} +2 -2
  316. package/dist/{src-Co6VRihn.mjs → src-B9Fu5A_J.mjs} +8 -8
  317. package/dist/src-C1KRD4rV.mjs +1 -0
  318. package/dist/{src-CLSt7s4C.mjs → src-CwuSSZyu.mjs} +368 -369
  319. package/dist/src-DR51i3QD.mjs +1 -0
  320. package/dist/start-BIUm5mQj.mjs +10 -0
  321. package/dist/start-CDBmaCqk.mjs +1 -0
  322. package/dist/ui-BBGFVQDX.mjs +1 -0
  323. package/dist/ui-CNA2d6cp.mjs +3 -0
  324. package/dist/{write-project-skill-KUk3TJzG.mjs → write-project-skill-DHsuRyv9.mjs} +3 -3
  325. package/package.json +4 -4
  326. package/dist/constants-cHW6U6sH.mjs +0 -2
  327. package/dist/init-Bq54wJz9.mjs +0 -1
  328. package/dist/init-D35f12T2.mjs +0 -638
  329. package/dist/loader-Ds3-YThN.mjs +0 -1
  330. package/dist/preview-BlgTgAfQ.mjs +0 -1
  331. package/dist/public/assets/AgentDiffPane-D6y-RNd5.js +0 -2
  332. package/dist/public/assets/AppMenubar-CYaE7Hn6.js +0 -1
  333. package/dist/public/assets/BugReportHistory-C59fSH13.js +0 -1
  334. package/dist/public/assets/ChangedOutsideBadge-CTtTUnmJ.js +0 -7
  335. package/dist/public/assets/DocumentContext-Cmtye82b.js +0 -38
  336. package/dist/public/assets/EditorModeToggle-BQwt-g16.js +0 -1
  337. package/dist/public/assets/EnableSyncConfirmDialog-CeD6U8jw.js +0 -1
  338. package/dist/public/assets/FeedbackForm-BiAgA0cr.js +0 -1
  339. package/dist/public/assets/ImportSkillDialog-Dus8C3ya.js +0 -1
  340. package/dist/public/assets/ManagedArtifactProperties-BDvo6tfo.js +0 -1
  341. package/dist/public/assets/ManagedArtifactProperties-ppSBOaES.js +0 -2
  342. package/dist/public/assets/McpConsentDialogBody-CmWQQsvA.js +0 -1
  343. package/dist/public/assets/ReportBugDialogBody-AcYxCdAP.js +0 -3
  344. package/dist/public/assets/SessionsHost-0gH5fj7L.js +0 -2
  345. package/dist/public/assets/SettingsDialogBody-CSGA73Nq.js +0 -12
  346. package/dist/public/assets/ShareBranchSwitchDialog-ClrT-3XL.js +0 -1
  347. package/dist/public/assets/ShareReceiveDialog-CGp7LdmP.js +0 -1
  348. package/dist/public/assets/SlidesToolbarControls-bvIjkbin.js +0 -1
  349. package/dist/public/assets/SourceEditor-BgLK1i4n.js +0 -1
  350. package/dist/public/assets/TextDocEditor-BhSgQ-DA.js +0 -1
  351. package/dist/public/assets/ThreadView-DfJo0d_V.js +0 -10
  352. package/dist/public/assets/TimelineDiffPane-NIZsgHzq.js +0 -2
  353. package/dist/public/assets/architecture-TIHT7OUA-DwJXOzeg.js +0 -1
  354. package/dist/public/assets/arrow-up-right-CGe6dTck.js +0 -1
  355. package/dist/public/assets/auth-state-cache-CdxRaOii.js +0 -11
  356. package/dist/public/assets/channel-DPiKu0N2.js +0 -1
  357. package/dist/public/assets/check-CGfmW4da.js +0 -1
  358. package/dist/public/assets/chevron-left-UUhIKmW4.js +0 -1
  359. package/dist/public/assets/chevron-right-Diamp-K_.js +0 -1
  360. package/dist/public/assets/chunk-2Q5K7J3B-CSqFa28W.js +0 -1
  361. package/dist/public/assets/chunk-VAUOI2AC-BRgZjfPj.js +0 -1
  362. package/dist/public/assets/chunk-XXDRQBXY-CSo_IP1t.js +0 -1
  363. package/dist/public/assets/classDiagram-OUVF2IWQ-B4b2FFhv.js +0 -1
  364. package/dist/public/assets/classDiagram-v2-EOCWNBFH-D-BosVMB.js +0 -1
  365. package/dist/public/assets/client-version-DygZeHKE.js +0 -1
  366. package/dist/public/assets/comment-chips-DUivrMCA.js +0 -5
  367. package/dist/public/assets/cynefin-VYW2F7L2-DCXxsTQd.js +0 -1
  368. package/dist/public/assets/dialog-DztIj-ZS.js +0 -5
  369. package/dist/public/assets/doc-paths-SFSlIMRQ.js +0 -1
  370. package/dist/public/assets/documents-events-a5eIuqSk.js +0 -1
  371. package/dist/public/assets/eventmodeling-45OFAUF4-CrAU37MM.js +0 -1
  372. package/dist/public/assets/file-tree-adapter-oSszPvAJ.js +0 -1
  373. package/dist/public/assets/file-tree-utils-BG5IgULP.js +0 -1
  374. package/dist/public/assets/flowDiagram-23GEKE2U-BDzq_lmd.js +0 -1
  375. package/dist/public/assets/follow-file-BukSIwm0.js +0 -4
  376. package/dist/public/assets/gitGraph-TEB2WS4Q-C3je2KR3.js +0 -1
  377. package/dist/public/assets/globals-DXwGOGPM.css +0 -1
  378. package/dist/public/assets/i18n-BAXNC2k8.js +0 -1
  379. package/dist/public/assets/index-BRKZBUZB.js +0 -2095
  380. package/dist/public/assets/info-DKCQHKI2-CT9KyzjE.js +0 -1
  381. package/dist/public/assets/lint-config-client-DPKnQGxT.js +0 -1
  382. package/dist/public/assets/markdownlint-rule-browser-CljNGtQ4.js +0 -1
  383. package/dist/public/assets/mermaid-GHXKKRXX-8B8K64kM.js +0 -1
  384. package/dist/public/assets/messages-B6vvv7H-.js +0 -1
  385. package/dist/public/assets/messages-Bf16a61t.js +0 -1
  386. package/dist/public/assets/messages-BlMkdPL-.js +0 -1
  387. package/dist/public/assets/messages-BrwWcQ1q.js +0 -1
  388. package/dist/public/assets/messages-Bsokz5p_.js +0 -1
  389. package/dist/public/assets/messages-CWnVB_17.js +0 -1
  390. package/dist/public/assets/messages-CgqvsJOb.js +0 -1
  391. package/dist/public/assets/messages-D3GzXczV.js +0 -1
  392. package/dist/public/assets/messages-DAiMiSQb.js +0 -1
  393. package/dist/public/assets/messages-DKla4fHa.js +0 -1
  394. package/dist/public/assets/messages-DhVrLKqA.js +0 -1
  395. package/dist/public/assets/minus-D07ZsfDZ.js +0 -1
  396. package/dist/public/assets/navigation-targets-CmqNPgrG.js +0 -1
  397. package/dist/public/assets/packet-7NZHBO7P-CH_5gegW.js +0 -1
  398. package/dist/public/assets/pdf-BFuk-PLE.js +0 -54
  399. package/dist/public/assets/pdf.worker-C9DGCxWN.js +0 -1
  400. package/dist/public/assets/pie-RZYD4A2V-aYfmJZ12.js +0 -1
  401. package/dist/public/assets/platform-labels-glrfxkSh.js +0 -1
  402. package/dist/public/assets/progress-BdSO2c_8.js +0 -6
  403. package/dist/public/assets/prop-types-BuByQU-C.js +0 -1
  404. package/dist/public/assets/radar-I7S5WNFK-DADBQ4w5.js +0 -1
  405. package/dist/public/assets/railroad-3IZDKUUU-pWB1DEQS.js +0 -1
  406. package/dist/public/assets/railroad-abnf-AHOZXSZD-DyMKsKhG.js +0 -1
  407. package/dist/public/assets/railroad-ebnf-EBAXGLYW-D6s4IM0k.js +0 -1
  408. package/dist/public/assets/railroad-peg-LSFZ7HO6-BTTgV3Yi.js +0 -1
  409. package/dist/public/assets/skill-actions-DwL1MSzH.js +0 -2
  410. package/dist/public/assets/skill-scope-ByxyMqpD.js +0 -1
  411. package/dist/public/assets/skills-api-CD1FoT1f.js +0 -1
  412. package/dist/public/assets/stateDiagram-v2-6OUMAXLB-6-zLyJUk.js +0 -1
  413. package/dist/public/assets/swimlanesDiagram-G3AALYLV-BBH-ZYmT.js +0 -8
  414. package/dist/public/assets/tag-pill-input-D9TPdQQY.js +0 -1
  415. package/dist/public/assets/telemetry-startup-CbAvyxdB.js +0 -1
  416. package/dist/public/assets/terminal-Cvoe7pfU.js +0 -1
  417. package/dist/public/assets/terminal-cli-display-ceeLXdxI.js +0 -1
  418. package/dist/public/assets/terminal-launch-events-un6YHfuE.js +0 -1
  419. package/dist/public/assets/treeView-QDETBFTQ-Dx6w4y7n.js +0 -1
  420. package/dist/public/assets/treemap-6X3UGDF4-BDQteRlb.js +0 -1
  421. package/dist/public/assets/uninstall-97GnPmGj.js +0 -1
  422. package/dist/public/assets/use-activity-panel-DwhRkMuD.js +0 -1
  423. package/dist/public/assets/use-apply-config-color-theme-Cwl6JTaa.js +0 -1
  424. package/dist/public/assets/use-collab-url-B6fAlmsp.js +0 -1
  425. package/dist/public/assets/use-open-skill-C9c3oqii.js +0 -1
  426. package/dist/public/assets/use-settings-route-D49weK6e.js +0 -1
  427. package/dist/public/assets/use-skill-origin-CbV3B2nV.js +0 -1
  428. package/dist/public/assets/use-skills-DWcQk94I.js +0 -1
  429. package/dist/public/assets/use-terminal-enabled-CkJ-MlfR.js +0 -1
  430. package/dist/public/assets/use-workspace-DTMCKV7B.js +0 -1
  431. package/dist/public/assets/wardley-OPB4EBWU-D46U-qP9.js +0 -1
  432. package/dist/public/assets/x-DS57FvHW.js +0 -1
  433. package/dist/repair-skills-D8TKPOmv.mjs +0 -1
  434. package/dist/src-Bw2xGQFS.mjs +0 -1
  435. package/dist/src-DStuuia4.mjs +0 -1
  436. package/dist/start-Ba1HQRTu.mjs +0 -1
  437. package/dist/start-pmfWlRKV.mjs +0 -12
  438. package/dist/ui-CjlnXaCK.mjs +0 -3
  439. package/dist/ui-DQkCLucF.mjs +0 -1
  440. /package/dist/public/assets/{ActivityPanelDiffView-GFnvFJPJ.js → ActivityPanelDiffView-fDxLwTi2.js} +0 -0
  441. /package/dist/public/assets/{SkillModeBanner-cMF-HPLA.js → SkillModeBanner-d0ZDkWTk.js} +0 -0
  442. /package/dist/public/assets/{__vite-browser-external-DD8Jl_VU.js → __vite-browser-external-D_48KNDi.js} +0 -0
  443. /package/dist/public/assets/{agent-presence-C3GIHDxc.js → agent-presence-DK_W4GTa.js} +0 -0
  444. /package/dist/public/assets/{array-Cf_JnmE6.js → array-DYKIbRR-.js} +0 -0
  445. /package/dist/public/assets/{asset-dispatch-Cz1weVX3.js → asset-dispatch-DsHoHhCG.js} +0 -0
  446. /package/dist/public/assets/{auth-prompt-store-BYOv6_8O.js → auth-prompt-store-CyiGTt3C.js} +0 -0
  447. /package/dist/public/assets/{chunk-KEIR6QF5-BOpPjw4C.js → chunk-KEIR6QF5-Z0IgTo4K.js} +0 -0
  448. /package/dist/public/assets/{chunk-Y2CYZVJY-Bw2nvaMQ.js → chunk-Y2CYZVJY-Bmis3P2F.js} +0 -0
  449. /package/dist/public/assets/{clike-BBEjy26W.js → clike-l3ublWpW.js} +0 -0
  450. /package/dist/public/assets/{clipboard-adapter-DqemxSWT.js → clipboard-adapter-DEJxizFj.js} +0 -0
  451. /package/dist/public/assets/{colors-CElM_Snc.js → colors-C77NTF6g.js} +0 -0
  452. /package/dist/public/assets/{copilot-Dh1BU6kS.js → copilot-BdGxiVpg.js} +0 -0
  453. /package/dist/public/assets/{createLucideIcon-Bhw2PmPp.js → createLucideIcon-6iYxif1u.js} +0 -0
  454. /package/dist/public/assets/{cursor-B6reg1lS.js → cursor-CUtcHGV-.js} +0 -0
  455. /package/dist/public/assets/{cytoscape.esm-h5J7wFxJ.js → cytoscape.esm-C2gIT5zZ.js} +0 -0
  456. /package/dist/public/assets/{defaultLocale-a-gWoIXg.js → defaultLocale-BugBqEWo.js} +0 -0
  457. /package/dist/public/assets/{desktop-bridge-types-NXCK8Pd7.js → desktop-bridge-types-oYPdTDmz.js} +0 -0
  458. /package/dist/public/assets/{diff-CvpcR3NJ.js → diff-TXhtTD_D.js} +0 -0
  459. /package/dist/public/assets/{dist-CK4VZUF5.js → dist-1ia0sKe1.js} +0 -0
  460. /package/dist/public/assets/{dist-B6jB2qbD2.js → dist-Bkx5dDHT2.js} +0 -0
  461. /package/dist/public/assets/{dist-DH4zqp8r.js → dist-CIv09IXf.js} +0 -0
  462. /package/dist/public/assets/{dist-DvG1-wV_.js → dist-DNiTklSL.js} +0 -0
  463. /package/dist/public/assets/{dist-mv8e6dBX.js → dist-DUWYPul7.js} +0 -0
  464. /package/dist/public/assets/{dist-DUfEoSbR.js → dist-DoS8xGN6.js} +0 -0
  465. /package/dist/public/assets/{documents-fetch-CV8lWh8v.js → documents-fetch-I34CgFeh.js} +0 -0
  466. /package/dist/public/assets/{external-link-BIMZpgNa.js → external-link-CHCx4FXC.js} +0 -0
  467. /package/dist/public/assets/{file-tree-rename-validation-CCqiFGp1.js → file-tree-rename-validation-DEuNOzhg.js} +0 -0
  468. /package/dist/public/assets/{floating-ui.dom-By-yeALv.js → floating-ui.dom-C0wusa09.js} +0 -0
  469. /package/dist/public/assets/{format-I3YtNHrv.js → format-Dx1Bv63R.js} +0 -0
  470. /package/dist/public/assets/{gherkin-D3uEvcwv.js → gherkin-Bu_VunKM.js} +0 -0
  471. /package/dist/public/assets/{globals-Ctlj0TIx.js → globals-B8Za6o5Q.js} +0 -0
  472. /package/dist/public/assets/{go-fa_HI4OB.js → go-BYJ3ESi0.js} +0 -0
  473. /package/dist/public/assets/{html-void-elements-C35FEqss.js → html-void-elements-Bkr32DGT.js} +0 -0
  474. /package/dist/public/assets/{init-B1Vy7sk-.js → init-B44NBVpk.js} +0 -0
  475. /package/dist/public/assets/{input-BYiOK210.js → input-VnbFvuKd.js} +0 -0
  476. /package/dist/public/assets/{isObject-DaQSDnzB.js → isObject-Dhzo1ma6.js} +0 -0
  477. /package/dist/public/assets/{katex-Bbx57GnP.js → katex-BE6VA85g.js} +0 -0
  478. /package/dist/public/assets/{libesm-DQtLkQQh.js → libesm-BYxokP1G.js} +0 -0
  479. /package/dist/public/assets/{lint-plugin-meta-CKntN3M1.js → lint-plugin-meta-FPoTE-0t.js} +0 -0
  480. /package/dist/public/assets/{lru-string-cache-Ckr1Pjrr.js → lru-string-cache-BgNKFfCO.js} +0 -0
  481. /package/dist/public/assets/{lua-D7ZxzT_Z.js → lua-De9v6Xwm.js} +0 -0
  482. /package/dist/public/assets/{markdownit-C1Squg6O.js → markdownit-CIgVFnWs.js} +0 -0
  483. /package/dist/public/assets/{min-Dbr9KJ3U.js → min-CgRbfTQR.js} +0 -0
  484. /package/dist/public/assets/{overlay-layers-Bj-TVfKw.js → overlay-layers-C1Y78Wu8.js} +0 -0
  485. /package/dist/public/assets/{panel-CbGx_cRv.js → panel-9S5Pf2VO.js} +0 -0
  486. /package/dist/public/assets/{panzoom.es-BtVt9FgW.js → panzoom.es-CebiCTnw.js} +0 -0
  487. /package/dist/public/assets/{parse-api-error-DfesE4Y7.js → parse-api-error-Mgtc4OJu.js} +0 -0
  488. /package/dist/public/assets/{path-kpTbN09k.js → path-DNVjzh9n.js} +0 -0
  489. /package/dist/public/assets/{perl-B2T_oOXa.js → perl-DAC-0-L4.js} +0 -0
  490. /package/dist/public/assets/{properties-BlzchQr8.js → properties-BuEq0L0N.js} +0 -0
  491. /package/dist/public/assets/{r-BuKMh1KL.js → r-D6J_8GbJ.js} +0 -0
  492. /package/dist/public/assets/{rough.esm-CP-YPkih.js → rough.esm-hH2VdTtm.js} +0 -0
  493. /package/dist/public/assets/{ruby-CUkUilNJ.js → ruby-BulDdqGQ.js} +0 -0
  494. /package/dist/public/assets/{share-metadata-rows-D5y9TY7o.js → share-metadata-rows-CBd7DuHz.js} +0 -0
  495. /package/dist/public/assets/{shell-DhuGq92J.js → shell-FYbPjPiK.js} +0 -0
  496. /package/dist/public/assets/{skeleton-D4wPMdlV.js → skeleton-BOVIbSHk.js} +0 -0
  497. /package/dist/public/assets/{sortable.esm-Dd5A8_XI.js → sortable.esm-mqYoEMD5.js} +0 -0
  498. /package/dist/public/assets/{sql-PCnKIGcH.js → sql-BTcd-g6A.js} +0 -0
  499. /package/dist/public/assets/{src-DlFhp60C.js → src-D2oHIihg.js} +0 -0
  500. /package/dist/public/assets/{startup-marks-Cdkh8q3E.js → startup-marks-BYurBbnW.js} +0 -0
  501. /package/dist/public/assets/{stex-PMopVeEZ.js → stex-BmYSnOnf.js} +0 -0
  502. /package/dist/public/assets/{swift-BxR8RYdU.js → swift-CnW5XUwC.js} +0 -0
  503. /package/dist/public/assets/{terminal-command-events-DXmeHtnk.js → terminal-command-events-mSM3ArSl.js} +0 -0
  504. /package/dist/public/assets/{textarea-yZk4yd9U.js → textarea-D59GB_Zy.js} +0 -0
  505. /package/dist/public/assets/{thread-draft-staging-BG7XGHEN.js → thread-draft-staging-BZaq81Sj.js} +0 -0
  506. /package/dist/public/assets/{timeline-diff-store-DnRthkM7.js → timeline-diff-store-cCBpDgND.js} +0 -0
  507. /package/dist/public/assets/{toml-nuQJU7MH.js → toml-vEnVjPi4.js} +0 -0
  508. /package/dist/public/assets/{trace-api-18gcBe0u.js → trace-api-DH580DYm.js} +0 -0
  509. /package/dist/public/assets/{use-installed-clis-Cydpb5jd.js → use-installed-clis-CdB0ME5s.js} +0 -0
  510. /package/dist/public/assets/{useLintConfigViewMode-DX8l9aBY.js → useLintConfigViewMode-C89oTBHY.js} +0 -0
  511. /package/dist/public/assets/{w3c-keyname-Bw5giFqP.js → w3c-keyname-hgmz1BF7.js} +0 -0
  512. /package/dist/public/assets/{workspace-paths-CKUFX0v6.js → workspace-paths-C2pS_Pbn.js} +0 -0
@@ -1,20 +1,20 @@
1
- import{o as e}from"./chunk-DTipWd-i.mjs";import{K as t,ft as n,q as r}from"./sleep-ChZE9826.mjs";import{Ga as i,Hs as a,Vs as o,X as s,Z as c}from"./src-DMpGVIiQ.mjs";import{On as l,Zr as u,at as d,bi as f,it as p,ot as m,rt as h}from"./src-CLSt7s4C.mjs";import{D as g,F as _,I as v,k as y}from"./fs-traced-RPXwxrA5.mjs";import{C as b,S as x,d as S,y as C}from"./server-lock-BV0Ktccm.mjs";import{t as w}from"./yazl-DZr4PyKA.mjs";import{t as T}from"./esm-DmX1RzAi.mjs";import{c as E}from"./colors-BsmVIwfM.mjs";import{n as D}from"./acp-harness-probe-BWRTcfl5.mjs";import{E as ee,T as O,_ as k,o as A,w as j,x as M,y as N}from"./init-D35f12T2.mjs";import{n as te}from"./constants-cHW6U6sH.mjs";import{t as P}from"./is-object-ByG7RnjH.mjs";import{m as ne,p as re}from"./write-project-skill-KUk3TJzG.mjs";import"./loader-CzrbSVUr.mjs";import"./skill-teardown-RIfU9RXJ.mjs";import"./preview-CQ_44H1v.mjs";import{execSync as ie,spawnSync as ae}from"node:child_process";import{basename as F,dirname as I,join as L,relative as oe,resolve as R,sep as se}from"node:path";import{cpSync as ce,createWriteStream as le,existsSync as z,lstatSync as ue,mkdirSync as B,mkdtempSync as de,readFileSync as V,readdirSync as H,readlinkSync as fe,rmSync as U,statSync as pe,writeFileSync as W}from"node:fs";import{arch as me,freemem as he,homedir as G,hostname as ge,platform as _e,release as ve,tmpdir as ye,totalmem as be,type as xe,uptime as Se}from"node:os";import"node:fs/promises";import{createHash as Ce}from"node:crypto";var we=n();const Te=new Set([`start`,`stop`,`status`,`clean`,`ui`,`mcp`,`preview`,`lint`,`deinit`,`auth`]);function Ee(e,t,n=l){if(e!==void 0&&!Te.has(e))return null;let r=n(t);return r===null||r.distance===0?null:r.rootPath}let De=null;function Oe(e){De=e}function ke(){return De??process.cwd()}function Ae(){return L(G(),`.ok`,`bug-reports`)}function je(e=new Date){let t=e.toISOString().replace(/[:.]/g,`-`),n=Ae(),r=`${t}-bugreport`,i=L(n,`${r}.zip`);for(let e=2;z(i);e+=1)i=L(n,`${r}-${e}.zip`);return i}function Me(e,t){let n=L(e,`.ok`,`config.yml`);if(z(n))try{let e=V(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 z(L(e,`.ok`))?Ce(`sha256`).update(R(e)).digest(`hex`).slice(0,12):null}function Ne(){let e={timestamp:new Date().toISOString(),platform:_e(),osType:xe(),osRelease:ve(),hostname:`[redacted]`,uptime:Se(),freeMem:he(),totalMem:be(),nodeVersion:process.version,bunVersion:process.versions.bun??null,v8Version:process.versions.v8??null,pid:process.pid};try{e.macosVersion=ie(`sw_vers -productVersion 2>/dev/null`,u({encoding:`utf8`})).trim()}catch{}try{let t=L(__dirname,`..`,`..`,`package.json`);z(t)&&(e.okVersion=JSON.parse(V(t,`utf8`)).version)}catch{}return e}const Pe=[{prefix:`cli`,projectTagged:!0},{prefix:`desktop`,projectTagged:!1},{prefix:`mcp`,projectTagged:!1}];function Fe(e){let t=F(e);return Pe.some(e=>e.projectTagged&&t.startsWith(`${e.prefix}.`))}function Ie(e,t){return ze(e,t).files}const Le=[`ShipIt_stderr.log`,`ShipIt_stdout.log`];function Re(e,t=D){let n=L(e,`${t}.ShipIt`);return z(n)?Le.map(e=>L(n,e)).filter(e=>z(e)):[]}function ze(e,t){if(!z(t))return{files:[],excludedByProjectSlug:0};let n=H(t).filter(e=>e.endsWith(`.log`)||/\.log\.\d+$/.test(e)).map(e=>L(t,e));if(!e)return{files:n,excludedByProjectSlug:0};let r=n.filter(Fe),i=[],a=r.filter(t=>{try{return V(t,`utf8`).includes(`"project":"${e}"`)}catch{return i.push(t),!1}});if(a.length===0)return{files:n,excludedByProjectSlug:0};let o=new Set([...a,...i]);return{files:n.filter(e=>!Fe(e)||o.has(e)),excludedByProjectSlug:r.length-o.size}}function Be(e){let t=L(e,`.ok`,`local`);return z(t)?{files:[`server.lock`,`last-spawn-error.log`,s].map(e=>L(t,e)).filter(e=>z(e))}:{files:[]}}function Ve(e){let t=L(e,`.ok`,`local`,`logs`);return z(t)?{files:[`server-current.jsonl`,`server-prev.jsonl`].map(e=>L(t,e)).filter(e=>z(e))}:{files:[]}}function He(e){if(e.redact){let{redacted:t,patterns:n,lineCount:r}=a(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 Ue(e){for(let t of e.files)try{He({zipfile:e.zipfile,name:`${e.prefix}/${F(t)}`,content:V(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 We(t){let{redact:n,outputPath:r,logger:i}=t,a=t.userLogsDir??L(G(),`.ok`,`logs`),s=t.projectDir?Me(t.projectDir,i):null;B(I(r),{recursive:!0}),i?.info({projectSlug:s},`gathering diagnostic data`);let c=Ne();c.desktop=t.desktop??null,c.language=t.language??null;let{files:l,excludedByProjectSlug:u}=ze(s,a),{files:d}=t.projectDir?Be(t.projectDir):{files:[]},{files:f}=t.projectDir?Ve(t.projectDir):{files:[]},p=t.shipItLogFiles??[];i?.info({logFileCount:l.length,logFilesExcludedByProjectSlug:u,lockFileCount:d.length,localSinkFileCount:f.length,shipItLogFileCount:p.length},`files collected`);let m=[],h=[],{ZipFile:g}=await import(`./yazl-jVENrf5i.mjs`).then(t=>e(t.default,1)),_=new g;Ue({zipfile:_,files:[...l,...p],prefix:`logs`,redact:n,bundleFiles:h,redactions:m,logger:i}),Ue({zipfile:_,files:d,prefix:`lockdir`,redact:n,bundleFiles:h,redactions:m,logger:i}),Ue({zipfile:_,files:f,prefix:`local-logs`,redact:n,bundleFiles:h,redactions:m,logger:i});for(let e of t.extraFiles??[])try{let t=V(e.sourcePath),n=`extra/${e.zipName??F(e.sourcePath)}`;_.addBuffer(t,n),h.push(n)}catch(t){i?.warn({sourcePath:e.sourcePath,err:t},`extra file unreadable; omitted from bundle`)}t.note&&He({zipfile:_,name:`note.txt`,content:t.note,redact:n,bundleFiles:h,redactions:m});let v=JSON.stringify(c,null,2);_.addBuffer(Buffer.from(v,`utf8`),`sysinfo.json`),h.push(`sysinfo.json`);let y={generatedAt:new Date().toISOString(),disciplineVersion:`1.0.0`,projectSlug:s,files:h,redactions:m,sysinfo:c};_.addBuffer(Buffer.from(JSON.stringify(y,null,2),`utf8`),`MANIFEST.json`);let b=m.reduce((e,t)=>e+t.lineCount,0),x=new Set(p.map(e=>`logs/${F(e)}`)),S=h.filter(e=>x.has(e)),C=s?h.filter(e=>e.startsWith(`logs/`)&&!Fe(e)&&!x.has(e)):[],w=[`# Bug Report Bundle`,``,`Generated: ${y.generatedAt}`,`Project: ${s??`(unscoped)`}`,`Discipline version: ${y.disciplineVersion}`,``,`## Contents`,``,...h.map(e=>`- ${e}`),``,`## Privacy`,``,...C.length>0?[`Scope: some collected logs are user-wide rather than project-scoped.`,`These are written once per machine per day and can contain activity`,`from other projects open on this machine, including captured console`,`output:`,...C.map(e=>`- ${e}`),``]:[],...S.length>0?[`Installer logs: written by the macOS update helper rather than by`,`OpenKnowledge itself, and machine-wide rather than scoped to any one`,`project. They record the install and update history of this app on`,`this machine. Only this app is collected, never other applications`,`that use the same update mechanism:`,...S.map(e=>`- ${e}`),``]:[],...n?[`This bundle was auto-redacted before packaging.`,`Patterns checked: ${o.join(`, `)}`,b>0?`${b} line(s) were scrubbed across ${m.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
- `);_.addBuffer(Buffer.from(w,`utf8`),`README.md`),_.end();let T=le(r);return _.outputStream.pipe(T),await new Promise((e,t)=>{T.on(`close`,e),T.on(`error`,t)}),i?.info({bundlePath:r,fileCount:h.length,redactionCount:b},`bundle written`),{zipPath:r,summary:{projectSlug:s,files:h,redactions:m,redactedLineCount:b,generatedAt:y.generatedAt}}}var Ge=e(w(),1),K=e(E(),1);function Ke(e){return v({absPath:y(`user`,e,e),sideline:!1,warn:()=>{}}).value.appearance?.language??`system`}function qe({home:e=G(),env:n=process.env}={}){let a=Ke(e),{override:o,preferenceList:s}=g(n),{locale:c,source:l}=i({override:o,storedPreference:a,supportedLocales:r,preferenceList:s,autoDetectableLocales:t});return{preference:a,locale:c,source:l,systemLanguages:s}}function Je(e,t){return t.length===0||!e.includes(t)?e:e.split(t).join(`<CONTENT_DIR>`)}function Ye(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function q(e,t){if(typeof e==`string`)return Je(e,t.contentDir);if(Array.isArray(e))return e.map(e=>q(e,t));if(!Ye(e))return e;let n={};for(let[r,i]of Object.entries(e))n[r]=q(i,t);return n}function Xe(e,t){let n=V(e,`utf-8`);if(n.length===0)return;let r=n.endsWith(`
1
+ import{o as e}from"./chunk-DTipWd-i.mjs";import{K as t,ft as n,q as r}from"./sleep-ChZE9826.mjs";import{Ga as i,Hs as a,Vs as o,X as s,Z as c}from"./src-DMpGVIiQ.mjs";import{Ci as l,at as u,ei as d,it as f,jn as p,ot as m,rt as h}from"./src-CwuSSZyu.mjs";import{D as g,F as _,I as v,k as y}from"./fs-traced-RPXwxrA5.mjs";import{C as b,S as x,d as S,y as C}from"./server-lock-BV0Ktccm.mjs";import{t as w}from"./yazl-DZr4PyKA.mjs";import{t as T}from"./esm-DmX1RzAi.mjs";import{c as ee}from"./colors-BsmVIwfM.mjs";import{n as E}from"./acp-harness-probe-BBsJm_Pm.mjs";import{E as te,T as D,_ as O,o as k,w as A,x as j,y as M}from"./init-B7p6fVB7.mjs";import{n as N}from"./constants-C8Aedfex.mjs";import{t as P}from"./is-object-ByG7RnjH.mjs";import{m as ne,p as re}from"./write-project-skill-DHsuRyv9.mjs";import"./loader-DZ4Zvbfe.mjs";import"./skill-teardown-BppNXkpR.mjs";import"./preview-1bYPRdOR.mjs";import{execSync as ie,spawnSync as ae}from"node:child_process";import{basename as F,dirname as I,join as L,relative as oe,resolve as R,sep as se}from"node:path";import{cpSync as ce,createWriteStream as le,existsSync as z,lstatSync as ue,mkdirSync as B,mkdtempSync as de,readFileSync as V,readdirSync as H,readlinkSync as fe,rmSync as U,statSync as pe,writeFileSync as W}from"node:fs";import{arch as me,freemem as he,homedir as G,hostname as ge,platform as _e,release as ve,tmpdir as ye,totalmem as be,type as xe,uptime as Se}from"node:os";import"node:fs/promises";import{createHash as Ce}from"node:crypto";var we=n();const Te=new Set([`start`,`stop`,`status`,`clean`,`ui`,`mcp`,`preview`,`lint`,`deinit`,`auth`]);function Ee(e,t,n=p){if(e!==void 0&&!Te.has(e))return null;let r=n(t);return r===null||r.distance===0?null:r.rootPath}let De=null;function Oe(e){De=e}function ke(){return De??process.cwd()}function Ae(){return L(G(),`.ok`,`bug-reports`)}function je(e=new Date){let t=e.toISOString().replace(/[:.]/g,`-`),n=Ae(),r=`${t}-bugreport`,i=L(n,`${r}.zip`);for(let e=2;z(i);e+=1)i=L(n,`${r}-${e}.zip`);return i}function Me(e,t){let n=L(e,`.ok`,`config.yml`);if(z(n))try{let e=V(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 z(L(e,`.ok`))?Ce(`sha256`).update(R(e)).digest(`hex`).slice(0,12):null}function Ne(){let e={timestamp:new Date().toISOString(),platform:_e(),osType:xe(),osRelease:ve(),hostname:`[redacted]`,uptime:Se(),freeMem:he(),totalMem:be(),nodeVersion:process.version,bunVersion:process.versions.bun??null,v8Version:process.versions.v8??null,pid:process.pid};try{e.macosVersion=ie(`sw_vers -productVersion 2>/dev/null`,d({encoding:`utf8`})).trim()}catch{}try{let t=L(__dirname,`..`,`..`,`package.json`);z(t)&&(e.okVersion=JSON.parse(V(t,`utf8`)).version)}catch{}return e}const Pe=[{prefix:`cli`,projectTagged:!0},{prefix:`desktop`,projectTagged:!1},{prefix:`mcp`,projectTagged:!1}];function Fe(e){let t=F(e);return Pe.some(e=>e.projectTagged&&t.startsWith(`${e.prefix}.`))}function Ie(e,t){return ze(e,t).files}const Le=[`ShipIt_stderr.log`,`ShipIt_stdout.log`];function Re(e,t=E){let n=L(e,`${t}.ShipIt`);return z(n)?Le.map(e=>L(n,e)).filter(e=>z(e)):[]}function ze(e,t){if(!z(t))return{files:[],excludedByProjectSlug:0};let n=H(t).filter(e=>e.endsWith(`.log`)||/\.log\.\d+$/.test(e)).map(e=>L(t,e));if(!e)return{files:n,excludedByProjectSlug:0};let r=n.filter(Fe),i=[],a=r.filter(t=>{try{return V(t,`utf8`).includes(`"project":"${e}"`)}catch{return i.push(t),!1}});if(a.length===0)return{files:n,excludedByProjectSlug:0};let o=new Set([...a,...i]);return{files:n.filter(e=>!Fe(e)||o.has(e)),excludedByProjectSlug:r.length-o.size}}function Be(e){let t=L(e,`.ok`,`local`);return z(t)?{files:[`server.lock`,`last-spawn-error.log`,s].map(e=>L(t,e)).filter(e=>z(e))}:{files:[]}}function Ve(e){let t=L(e,`.ok`,`local`,`logs`);return z(t)?{files:[`server-current.jsonl`,`server-prev.jsonl`].map(e=>L(t,e)).filter(e=>z(e))}:{files:[]}}function He(e){if(e.redact){let{redacted:t,patterns:n,lineCount:r}=a(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 Ue(e){for(let t of e.files)try{He({zipfile:e.zipfile,name:`${e.prefix}/${F(t)}`,content:V(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 We(t){let{redact:n,outputPath:r,logger:i}=t,a=t.userLogsDir??L(G(),`.ok`,`logs`),s=t.projectDir?Me(t.projectDir,i):null;B(I(r),{recursive:!0}),i?.info({projectSlug:s},`gathering diagnostic data`);let c=Ne();c.desktop=t.desktop??null,c.language=t.language??null;let{files:l,excludedByProjectSlug:u}=ze(s,a),{files:d}=t.projectDir?Be(t.projectDir):{files:[]},{files:f}=t.projectDir?Ve(t.projectDir):{files:[]},p=t.shipItLogFiles??[];i?.info({logFileCount:l.length,logFilesExcludedByProjectSlug:u,lockFileCount:d.length,localSinkFileCount:f.length,shipItLogFileCount:p.length},`files collected`);let m=[],h=[],{ZipFile:g}=await import(`./yazl-jVENrf5i.mjs`).then(t=>e(t.default,1)),_=new g;Ue({zipfile:_,files:[...l,...p],prefix:`logs`,redact:n,bundleFiles:h,redactions:m,logger:i}),Ue({zipfile:_,files:d,prefix:`lockdir`,redact:n,bundleFiles:h,redactions:m,logger:i}),Ue({zipfile:_,files:f,prefix:`local-logs`,redact:n,bundleFiles:h,redactions:m,logger:i});for(let e of t.extraFiles??[])try{let t=V(e.sourcePath),n=`extra/${e.zipName??F(e.sourcePath)}`;_.addBuffer(t,n),h.push(n)}catch(t){i?.warn({sourcePath:e.sourcePath,err:t},`extra file unreadable; omitted from bundle`)}t.note&&He({zipfile:_,name:`note.txt`,content:t.note,redact:n,bundleFiles:h,redactions:m});let v=JSON.stringify(c,null,2);_.addBuffer(Buffer.from(v,`utf8`),`sysinfo.json`),h.push(`sysinfo.json`);let y={generatedAt:new Date().toISOString(),disciplineVersion:`1.0.0`,projectSlug:s,files:h,redactions:m,sysinfo:c};_.addBuffer(Buffer.from(JSON.stringify(y,null,2),`utf8`),`MANIFEST.json`);let b=m.reduce((e,t)=>e+t.lineCount,0),x=new Set(p.map(e=>`logs/${F(e)}`)),S=h.filter(e=>x.has(e)),C=s?h.filter(e=>e.startsWith(`logs/`)&&!Fe(e)&&!x.has(e)):[],w=[`# Bug Report Bundle`,``,`Generated: ${y.generatedAt}`,`Project: ${s??`(unscoped)`}`,`Discipline version: ${y.disciplineVersion}`,``,`## Contents`,``,...h.map(e=>`- ${e}`),``,`## Privacy`,``,...C.length>0?[`Scope: some collected logs are user-wide rather than project-scoped.`,`These are written once per machine per day and can contain activity`,`from other projects open on this machine, including captured console`,`output:`,...C.map(e=>`- ${e}`),``]:[],...S.length>0?[`Installer logs: written by the macOS update helper rather than by`,`OpenKnowledge itself, and machine-wide rather than scoped to any one`,`project. They record the install and update history of this app on`,`this machine. Only this app is collected, never other applications`,`that use the same update mechanism:`,...S.map(e=>`- ${e}`),``]:[],...n?[`This bundle was auto-redacted before packaging.`,`Patterns checked: ${o.join(`, `)}`,b>0?`${b} line(s) were scrubbed across ${m.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
+ `);_.addBuffer(Buffer.from(w,`utf8`),`README.md`),_.end();let T=le(r);return _.outputStream.pipe(T),await new Promise((e,t)=>{T.on(`close`,e),T.on(`error`,t)}),i?.info({bundlePath:r,fileCount:h.length,redactionCount:b},`bundle written`),{zipPath:r,summary:{projectSlug:s,files:h,redactions:m,redactedLineCount:b,generatedAt:y.generatedAt}}}var Ge=e(w(),1),K=e(ee(),1);function Ke(e){return v({absPath:y(`user`,e,e),sideline:!1,warn:()=>{}}).value.appearance?.language??`system`}function qe({home:e=G(),env:n=process.env}={}){let a=Ke(e),{override:o,preferenceList:s}=g(n),{locale:c,source:l}=i({override:o,storedPreference:a,supportedLocales:r,preferenceList:s,autoDetectableLocales:t});return{preference:a,locale:c,source:l,systemLanguages:s}}function Je(e,t){return t.length===0||!e.includes(t)?e:e.split(t).join(`<CONTENT_DIR>`)}function Ye(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function q(e,t){if(typeof e==`string`)return Je(e,t.contentDir);if(Array.isArray(e))return e.map(e=>q(e,t));if(!Ye(e))return e;let n={};for(let[r,i]of Object.entries(e))n[r]=q(i,t);return n}function Xe(e,t){let n=V(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=q(JSON.parse(n),t);a.push(JSON.stringify(e))}catch{a.push(n)}}}W(e,r?`${a.join(`
5
5
  `)}\n`:a.join(`
6
6
  `))}function Ze(e,t){let n=V(e,`utf-8`);if(n.trim().length!==0)try{let r=q(JSON.parse(n),t),i=n.endsWith(`
7
7
  `)?`
8
8
  `:``;W(e,`${JSON.stringify(r,null,2)}${i}`)}catch{let r=Je(n,t.contentDir);r!==n&&W(e,r)}}function Qe(e,t){let n=V(e,`utf-8`),r=Je(n,t.contentDir);r!==n&&W(e,r)}function $e(e){try{return H(e,{withFileTypes:!0}).filter(e=>e.isFile()).map(t=>L(e,t.name))}catch{return[]}}const et=new Set([`agent-presence.json`,`agent-effects.json`,`runtime.json`]);function tt(e){return/\.log\.\d+$/.test(e)}function nt(e){return e.endsWith(`.jsonl`)||e.endsWith(`.log`)||tt(e)}function rt(e){let t={contentDir:e.contentDir};for(let n of[`telemetry`,`logs`,`process`])for(let r of $e(L(e.stagingDir,n)))nt(r)?Xe(r,t):r.endsWith(`.json`)?Ze(r,t):Qe(r,t);for(let n of $e(L(e.stagingDir,`state`))){let e=F(n);n.endsWith(`.jsonl`)?Xe(n,t):et.has(e)?Ze(n,t):Qe(n,t)}}const it=[`.ok`,`local`,`telemetry`],at=[`.ok`,`local`,`logs`],ot=[`.ok`,`local`,`loss-capture`],st=`spans-current.jsonl`,ct=`spans-prev.jsonl`,lt=`server-current.jsonl`,ut=`server-prev.jsonl`,dt=`loss-current.jsonl`,ft=`loss-prev.jsonl`;function pt(e){return L(e,...it,st)}function mt(e){return L(e,...it,ct)}function ht(e){return L(e,...at,lt)}function gt(e){return L(e,...at,ut)}function _t(e){return L(e,...ot,dt)}function vt(e){return L(e,...ot,ft)}const yt=1e3;async function bt(e){try{let t=await fetch(`http://127.0.0.1:${e}/api/metrics/agent-presence`,{signal:AbortSignal.timeout(yt)});return t.ok?await t.text():null}catch{return null}}async function xt(e){try{let t=await fetch(`http://127.0.0.1:${e}/api/metrics/agent-effects`,{signal:AbortSignal.timeout(yt)});return t.ok?await t.text():null}catch{return null}}async function St(e){try{let t=await fetch(`http://127.0.0.1:${e}/api/metrics/watcher-recent`,{signal:AbortSignal.timeout(yt)});return t.ok?await t.text():null}catch{return null}}function Ct(e){try{let t=JSON.parse(e);if(typeof t!=`object`||!t)return null;let n=t.decisions;return Array.isArray(n)?n.length===0?``:`${n.map(e=>JSON.stringify(e)).join(`
9
- `)}\n`:null}catch{return null}}function wt(e){let t=L(e,`.git`,`ok`);if(!z(t))return null;let n=ae(`git`,[`-C`,t,`log`,`--oneline`,`-50`],u({encoding:`utf-8`,timeout:2e3}));return n.error||n.status!==0?null:n.stdout??``}function Tt(e){let t=L(e,`.git`,`ok`);if(!z(t))return null;let n=ae(`git`,[`-C`,t,`for-each-ref`,`--sort=-creatordate`,`--count=50`,`--format=%(refname)%09%(creatordate:iso-strict)%09%(contents:subject)`,`refs/checkpoints/`],u({encoding:`utf-8`,timeout:2e3}));return n.error||n.status!==0?null:n.stdout??``}function Et(){let e=process.env.OK_DESKTOP_VERSION,t=process.env.OK_DESKTOP_PACKAGED,n=process.env.OK_DESKTOP_CHANNEL;return e===void 0||t===void 0||n===void 0?null:{electronVersion:e,packaged:t===`1`||t.toLowerCase()===`true`,channel:n}}function Dt(){return{nodeVersion:process.version,platform:_e(),arch:me()}}function Ot(){return process.env.OTEL_SDK_DISABLED===`false`}function J(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function kt(e){if(!z(e))return{};let t;try{t=(0,we.parse)(V(e,`utf-8`))}catch(t){return console.warn(`[ok diagnose bundle] failed to parse ${e} for manifest config; manifest will report schema defaults. Reason: ${t instanceof Error?t.message:String(t)}`),{}}if(!J(t))return{};let n=t.telemetry;if(!J(n))return{};let r=n.localSink;return J(r)?r:{}}function At(e){return typeof e==`boolean`?e:void 0}function jt(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:void 0}function Y(e){if(J(e))return jt(e.maxBytes)}function Mt(e){let t=kt(y(`project`,e)),n=kt(y(`project-local`,e));return{enabled:At(n.enabled)??At(t.enabled)??!0,spansMaxBytes:Y(n.spans)??Y(t.spans)??52428800,logsMaxBytes:Y(n.logs)??Y(t.logs)??26214400}}function Nt(e){return Ce(`sha256`).update(e).digest(`hex`)}function Pt(e){let t=V(e),n=0;for(let e=0;e<t.length;e++)t[e]===10&&n++;return n}function Ft(e){let t=V(e,`utf-8`),n=`"doc.name"`,r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+10);return r}function X(e,t){if(!z(e))return!1;try{return B(I(t),{recursive:!0}),ce(e,t),!0}catch{return!1}}function It(e){let t=[],n=e=>{let r=H(e,{withFileTypes:!0});for(let i of r){let r=L(e,i.name);i.isDirectory()?n(r):i.isFile()&&t.push(r)}};return n(e),t.sort()}const Lt=new Set([`.jsonl`]);function Rt(e){let t=e.lastIndexOf(`.`);return t===-1?!1:Lt.has(e.slice(t))}const zt=new Set([`.jsonl`,`.json`,`.txt`,`.log`,`.lock`]);function Bt(e){if(tt(e))return!0;let t=e.lastIndexOf(`.`);return t===-1?!1:zt.has(e.slice(t))}function Vt(e){let t=[];for(let n of It(e)){let r=Ht(e,n);if(!Bt(r))continue;let{redacted:i,patterns:o,lineCount:s}=a(V(n,`utf-8`));o.length!==0&&(W(n,i),t.push({file:r,lineCount:s,patterns:o}))}return{redactions:t,redactedLineCount:t.reduce((e,t)=>e+t.lineCount,0)}}function Ht(e,t){return oe(e,t).split(se).join(`/`)}async function Ut(e){let t=R(e.contentDir),n=R(e.projectDir??e.contentDir),r=e.deps??{},i=r.fetchAgentPresence??bt,a=r.fetchAgentEffects??xt,o=r.fetchWatcherRecent??St,l=r.readShadowHead??wt,u=r.readCheckpointRefs??Tt,d=r.now??(()=>new Date),f=r.okVersion??(()=>te),p=r.readDesktopEnv??Et,m=r.readLanguage??qe,h=r.readRuntime??Dt,g=r.isOtlpPushEnabled??Ot,_=de(L(ye(),`ok-bundle-`));try{B(L(_,`telemetry`),{recursive:!0}),B(L(_,`logs`),{recursive:!0}),B(L(_,`state`),{recursive:!0}),X(pt(n),L(_,`telemetry`,st)),X(mt(n),L(_,`telemetry`,ct)),X(ht(n),L(_,`logs`,lt)),X(gt(n),L(_,`logs`,ut));for(let t of e.userLogFiles??[])X(t,L(_,`logs`,F(t)));let v=L(n,`.ok`,`local`),y=L(v,`server.lock`),b=`not-running`,x=`no server.lock`,S=null;if(z(y)){X(y,L(_,`state`,`server.lock`));try{let e=V(y,`utf-8`),t=JSON.parse(e);typeof t.port==`number`?S=t.port:x=`lock present but no port`}catch{x=`lock present but unparseable`}}if(S!==null){let e=await i(S);e===null?x=`agent-presence endpoint at :${S} unreachable`:(W(L(_,`state`,`agent-presence.json`),e),b=`running`,x=``);let t=await a(S);t!==null&&W(L(_,`state`,`agent-effects.json`),t);let n=await o(S);if(n!==null){let e=Ct(n);e!==null&&W(L(_,`state`,`watcher-recent.jsonl`),e)}}let C=l(t);C!==null&&W(L(_,`state`,`shadow-head.txt`),C);let w=u(t);w!==null&&W(L(_,`state`,`checkpoint-refs.txt`),w),X(_t(n),L(_,`state`,dt)),X(vt(n),L(_,`state`,ft)),X(L(v,`last-spawn-error.log`),L(_,`state`,`last-spawn-error.log`)),X(L(v,c),L(_,`state`,c)),X(L(v,s),L(_,`state`,s));let T=h(),E=p(),D=m(),ee={ok:{version:f(),nodeVersion:T.nodeVersion,platform:T.platform,arch:T.arch},host:{desktop:E,language:D}};W(L(_,`state`,`runtime.json`),`${JSON.stringify(ee,null,2)}\n`);let O=b===`running`?`running
10
- `:`not-running (${x})\n`;if(W(L(_,`state`,`server-status.txt`),O),e.processDir&&z(e.processDir)){let t=L(_,`process`);B(t,{recursive:!0}),ce(e.processDir,t,{recursive:!0})}let k=e.redact===!0;k&&rt({stagingDir:_,contentDir:t}),e.note&&W(L(_,`note.txt`),e.note);let A=null;e.scrubSecrets===!0&&(A=Vt(_));for(let t of e.extraFiles??[])X(t.sourcePath,L(_,`extra`,t.zipName??F(t.sourcePath)))||r.logger?.warn({sourcePath:t.sourcePath},`extra file missing; omitted from bundle`);let j=Mt(n),M=It(_),N=[],te=0,P=0;for(let e of M){let t=Ht(_,e),n=pe(e).size,r=Rt(t)?Pt(e):0;N.push({path:t,bytes:n,lines:r}),te+=n,t.startsWith(`telemetry/`)&&Rt(t)&&(P+=Ft(e))}let ne={applied:k};A!==null&&(ne.secretScrub=A);let re={schemaVersion:2,createdAt:d().toISOString(),ok:{version:f(),nodeVersion:T.nodeVersion,platform:T.platform,arch:T.arch},host:{desktop:E,language:D},contentDir:{pathSha256:Nt(t),absolutePath:k?`<CONTENT_DIR>`:t},telemetry:{localSink:j,otlpPushEnabled:g()},redaction:ne,serverStatus:b,files:N};W(L(_,`manifest.json`),`${JSON.stringify(re,null,2)}\n`);let ie=M.some(e=>{try{return V(e,`utf-8`).includes(t)}catch{return!1}}),ae={totalBytes:te,fileCount:N.length,docNameCount:P,contentDirVisible:ie,redacted:k},I=!1;return{stagingDir:_,manifest:re,summary:ae,cleanup:()=>{I||(I=!0,U(_,{recursive:!0,force:!0}))}}}catch(e){throw U(_,{recursive:!0,force:!0}),e}}async function Wt(e){let{collected:t,outputPath:n}=e,r=I(n);if(!z(r))throw Error(`ok diagnose bundle: parent directory does not exist: ${r}. Create it or pass --out with an existing parent.`);let i=new Ge.ZipFile,a=It(t.stagingDir);for(let e of a){let n=Ht(t.stagingDir,e);i.addFile(e,n)}i.end();let o=le(n);return i.outputStream.pipe(o),await new Promise((e,t)=>{o.on(`close`,e),o.on(`error`,t),i.outputStream.on(`error`,t)}),n}function Gt(e,t){let n=L(e,`.ok`,`config.yml`);if(z(n))try{let t=(0,we.parse)(V(n,`utf-8`)),r=P(t)?t.content:void 0,i=P(r)?r.dir:void 0;if(typeof i==`string`&&i.length>0)return R(e,i)}catch(e){t?.warn({configPath:n,err:e},`bug-report: failed to read .ok/config.yml; falling back to project root as content dir`)}return R(e)}async function Kt(e,t,n,r){let i=Me(t,e.logger),a=await Ut({contentDir:Gt(t,e.logger),projectDir:t,redact:e.redact,scrubSecrets:e.redact,note:e.note,extraFiles:e.extraFiles,userLogFiles:[...Ie(i,e.userLogsDir??L(G(),`.ok`,`logs`)),...Re(e.cachesDir??L(G(),`Library`,`Caches`))],deps:{readDesktopEnv:n,readLanguage:r,logger:e.logger}});try{B(I(e.outputPath),{recursive:!0}),await Wt({collected:a,outputPath:e.outputPath});let t=a.manifest.redaction.secretScrub;return{zipPath:e.outputPath,summary:{level:`full`,systemWide:!1,projectSlug:i,files:a.manifest.files.map(e=>e.path),redactions:t?.redactions??[],redactedLineCount:t?.redactedLineCount??0,generatedAt:a.manifest.createdAt}}}finally{a.cleanup()}}async function qt(e){let{projectDir:t}=e,n=e.readDesktopEnv??Et,r=e.readLanguage??qe;if(e.level===`full`&&t!==void 0)return Kt(e,t,n,r);let{zipPath:i,summary:a}=await We({projectDir:t,redact:e.redact,outputPath:e.outputPath,userLogsDir:e.userLogsDir,shipItLogFiles:Re(e.cachesDir??L(G(),`Library`,`Caches`)),logger:e.logger,note:e.note,extraFiles:e.extraFiles,desktop:n(),language:r()});return{zipPath:i,summary:{level:e.level,systemWide:t===void 0,projectSlug:a.projectSlug,files:a.files,redactions:a.redactions,redactedLineCount:a.redactedLineCount,generatedAt:a.generatedAt}}}function Z(e,t,n={}){let r=S(e,t);if(!z(r))return{status:`missing`,lockPath:r};let i;try{i=JSON.parse(V(r,`utf-8`))}catch{return{status:`corrupt`,lockPath:r}}if(!i||typeof i!=`object`||!b(i.pid))return{status:`corrupt`,lockPath:r};let a=i;if(!(n.isAlive??x)(a.pid))return{status:`dead-pid`,lockPath:r,lock:a};if(typeof a.machineId==`string`)return a.machineId===(n.machineId??C())?{status:`alive`,lockPath:r,lock:a}:{status:`foreign-host`,lockPath:r,lock:a};let o=n.host??ge();return a.hostname===o?{status:`alive`,lockPath:r,lock:a}:{status:`foreign-host`,lockPath:r,lock:a}}function Jt(e){return e.replace(/:\d+$/,``)}function Yt(e){let t=e.trim();if(!t)return null;{let e=/^https?:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`https`,hostname:Jt(e[1]),owner:e[2],name:e[3]}}{let e=/^ssh:\/\/(?:[\w.-]+@)?([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`ssh`,hostname:Jt(e[1]),owner:e[2],name:e[3]}}{let e=/^git:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:Jt(e[1]),owner:e[2],name:e[3]}}{let e=/^(?:[\w.-]+@)?([\w.-]+):([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?$/.exec(t);if(e?.[1].includes(`.`)||e&&t.startsWith(`git@`))return{protocol:`ssh`,hostname:e[1],owner:e[2],name:e[3]}}{let e=/^git:([\w.-]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:e[1],owner:e[2],name:e[3]}}if(!t.includes(`://`)&&!t.includes(`@`)&&!t.startsWith(`/`)){let e=/^([\w.-]+)\/([\w.\-~%]+?)(?:\.git)?$/.exec(t);if(e)return{protocol:`https`,hostname:`github.com`,owner:e[1],name:e[2]}}return null}const Xt=/^# >>> open-knowledge cli >>>\n[\s\S]*?^# <<< open-knowledge cli <<<\n?/m;function Zt(e){return L(e,`Library`,`Application Support`,`OpenKnowledge`,`path-install.json`)}const Qt={existsSync:e=>z(e),readFileSync:(e,t)=>V(e,t),lstatSync:e=>ue(e),readlinkSync:e=>fe(e)};function $t(e,t=Qt){let n=Zt(e);if(!t.existsSync(n))return null;try{let e=JSON.parse(t.readFileSync(n,`utf8`));return e?.version===1?e:null}catch{return null}}function en(e){let t=e.replace(Xt,``);return{text:t,changed:t!==e,emptyAfter:t.trim()===``}}function tn(e,t,n=Qt){try{return n.lstatSync(e).isSymbolicLink()?n.readlinkSync(e)===t:!1}catch{return!1}}function nn(e){return re(e)||ne(e)||M(e)}const rn=10*1024*1024;function an(e,t,n,r){let i=A(e,t,n,r);if(i.kind===`absent`||i.kind===`no-entry`)return{kind:`not-present`};if(i.kind===`decline`)return{kind:`declined`,reason:i.reason};if(!nn(i.entry))return{kind:`left-foreign`};let a;try{a=r??e.configPath(t,n)}catch{return{kind:`not-present`}}let o=e.serverName(t);return e.format===`file`?(U(a,{force:!0}),{kind:`removed`}):e.format===`toml`?cn(a,o):e.format===`yaml`?sn(a,e.topLevelKey,o):on(a,e.topLevelKey,e.serverMapSubKey,o)}function on(e,t,n,r){let i;try{i=V(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}if(Buffer.byteLength(i,`utf-8`)>rn)return{kind:`declined`,reason:`oversize`};let{text:a,changed:o}=ee(i,k(t,n,r));return o?(_(e,a,{mode:j(e)}),{kind:`removed`}):{kind:`not-present`}}function sn(e,t,n){let r;try{r=V(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}if(Buffer.byteLength(r,`utf-8`)>rn)return{kind:`declined`,reason:`oversize`};let i=r.charCodeAt(0)===65279,a=i?r.slice(1):r,o=(0,we.parseDocument)(a);if(o.errors.length>0)return{kind:`declined`,reason:`unparseable`};let s=[t,n];if(!o.hasIn(s))return{kind:`not-present`};o.deleteIn(s);let c=o.toString(),l=O(a);a.trim()===``||a.endsWith(`
9
+ `)}\n`:null}catch{return null}}function wt(e){let t=L(e,`.git`,`ok`);if(!z(t))return null;let n=ae(`git`,[`-C`,t,`log`,`--oneline`,`-50`],d({encoding:`utf-8`,timeout:2e3}));return n.error||n.status!==0?null:n.stdout??``}function Tt(e){let t=L(e,`.git`,`ok`);if(!z(t))return null;let n=ae(`git`,[`-C`,t,`for-each-ref`,`--sort=-creatordate`,`--count=50`,`--format=%(refname)%09%(creatordate:iso-strict)%09%(contents:subject)`,`refs/checkpoints/`],d({encoding:`utf-8`,timeout:2e3}));return n.error||n.status!==0?null:n.stdout??``}function Et(){let e=process.env.OK_DESKTOP_VERSION,t=process.env.OK_DESKTOP_PACKAGED,n=process.env.OK_DESKTOP_CHANNEL;return e===void 0||t===void 0||n===void 0?null:{electronVersion:e,packaged:t===`1`||t.toLowerCase()===`true`,channel:n}}function Dt(){return{nodeVersion:process.version,platform:_e(),arch:me()}}function Ot(){return process.env.OTEL_SDK_DISABLED===`false`}function J(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function kt(e){if(!z(e))return{};let t;try{t=(0,we.parse)(V(e,`utf-8`))}catch(t){return console.warn(`[ok diagnose bundle] failed to parse ${e} for manifest config; manifest will report schema defaults. Reason: ${t instanceof Error?t.message:String(t)}`),{}}if(!J(t))return{};let n=t.telemetry;if(!J(n))return{};let r=n.localSink;return J(r)?r:{}}function At(e){return typeof e==`boolean`?e:void 0}function jt(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:void 0}function Y(e){if(J(e))return jt(e.maxBytes)}function Mt(e){let t=kt(y(`project`,e)),n=kt(y(`project-local`,e));return{enabled:At(n.enabled)??At(t.enabled)??!0,spansMaxBytes:Y(n.spans)??Y(t.spans)??52428800,logsMaxBytes:Y(n.logs)??Y(t.logs)??26214400}}function Nt(e){return Ce(`sha256`).update(e).digest(`hex`)}function Pt(e){let t=V(e),n=0;for(let e=0;e<t.length;e++)t[e]===10&&n++;return n}function Ft(e){let t=V(e,`utf-8`),n=`"doc.name"`,r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+10);return r}function X(e,t){if(!z(e))return!1;try{return B(I(t),{recursive:!0}),ce(e,t),!0}catch{return!1}}function It(e){let t=[],n=e=>{let r=H(e,{withFileTypes:!0});for(let i of r){let r=L(e,i.name);i.isDirectory()?n(r):i.isFile()&&t.push(r)}};return n(e),t.sort()}const Lt=new Set([`.jsonl`]);function Rt(e){let t=e.lastIndexOf(`.`);return t===-1?!1:Lt.has(e.slice(t))}const zt=new Set([`.jsonl`,`.json`,`.txt`,`.log`,`.lock`]);function Bt(e){if(tt(e))return!0;let t=e.lastIndexOf(`.`);return t===-1?!1:zt.has(e.slice(t))}function Vt(e){let t=[];for(let n of It(e)){let r=Ht(e,n);if(!Bt(r))continue;let{redacted:i,patterns:o,lineCount:s}=a(V(n,`utf-8`));o.length!==0&&(W(n,i),t.push({file:r,lineCount:s,patterns:o}))}return{redactions:t,redactedLineCount:t.reduce((e,t)=>e+t.lineCount,0)}}function Ht(e,t){return oe(e,t).split(se).join(`/`)}async function Ut(e){let t=R(e.contentDir),n=R(e.projectDir??e.contentDir),r=e.deps??{},i=r.fetchAgentPresence??bt,a=r.fetchAgentEffects??xt,o=r.fetchWatcherRecent??St,l=r.readShadowHead??wt,u=r.readCheckpointRefs??Tt,d=r.now??(()=>new Date),f=r.okVersion??(()=>N),p=r.readDesktopEnv??Et,m=r.readLanguage??qe,h=r.readRuntime??Dt,g=r.isOtlpPushEnabled??Ot,_=de(L(ye(),`ok-bundle-`));try{B(L(_,`telemetry`),{recursive:!0}),B(L(_,`logs`),{recursive:!0}),B(L(_,`state`),{recursive:!0}),X(pt(n),L(_,`telemetry`,st)),X(mt(n),L(_,`telemetry`,ct)),X(ht(n),L(_,`logs`,lt)),X(gt(n),L(_,`logs`,ut));for(let t of e.userLogFiles??[])X(t,L(_,`logs`,F(t)));let v=L(n,`.ok`,`local`),y=L(v,`server.lock`),b=`not-running`,x=`no server.lock`,S=null;if(z(y)){X(y,L(_,`state`,`server.lock`));try{let e=V(y,`utf-8`),t=JSON.parse(e);typeof t.port==`number`?S=t.port:x=`lock present but no port`}catch{x=`lock present but unparseable`}}if(S!==null){let e=await i(S);e===null?x=`agent-presence endpoint at :${S} unreachable`:(W(L(_,`state`,`agent-presence.json`),e),b=`running`,x=``);let t=await a(S);t!==null&&W(L(_,`state`,`agent-effects.json`),t);let n=await o(S);if(n!==null){let e=Ct(n);e!==null&&W(L(_,`state`,`watcher-recent.jsonl`),e)}}let C=l(t);C!==null&&W(L(_,`state`,`shadow-head.txt`),C);let w=u(t);w!==null&&W(L(_,`state`,`checkpoint-refs.txt`),w),X(_t(n),L(_,`state`,dt)),X(vt(n),L(_,`state`,ft)),X(L(v,`last-spawn-error.log`),L(_,`state`,`last-spawn-error.log`)),X(L(v,c),L(_,`state`,c)),X(L(v,s),L(_,`state`,s));let T=h(),ee=p(),E=m(),te={ok:{version:f(),nodeVersion:T.nodeVersion,platform:T.platform,arch:T.arch},host:{desktop:ee,language:E}};W(L(_,`state`,`runtime.json`),`${JSON.stringify(te,null,2)}\n`);let D=b===`running`?`running
10
+ `:`not-running (${x})\n`;if(W(L(_,`state`,`server-status.txt`),D),e.processDir&&z(e.processDir)){let t=L(_,`process`);B(t,{recursive:!0}),ce(e.processDir,t,{recursive:!0})}let O=e.redact===!0;O&&rt({stagingDir:_,contentDir:t}),e.note&&W(L(_,`note.txt`),e.note);let k=null;e.scrubSecrets===!0&&(k=Vt(_));for(let t of e.extraFiles??[])X(t.sourcePath,L(_,`extra`,t.zipName??F(t.sourcePath)))||r.logger?.warn({sourcePath:t.sourcePath},`extra file missing; omitted from bundle`);let A=Mt(n),j=It(_),M=[],N=0,P=0;for(let e of j){let t=Ht(_,e),n=pe(e).size,r=Rt(t)?Pt(e):0;M.push({path:t,bytes:n,lines:r}),N+=n,t.startsWith(`telemetry/`)&&Rt(t)&&(P+=Ft(e))}let ne={applied:O};k!==null&&(ne.secretScrub=k);let re={schemaVersion:2,createdAt:d().toISOString(),ok:{version:f(),nodeVersion:T.nodeVersion,platform:T.platform,arch:T.arch},host:{desktop:ee,language:E},contentDir:{pathSha256:Nt(t),absolutePath:O?`<CONTENT_DIR>`:t},telemetry:{localSink:A,otlpPushEnabled:g()},redaction:ne,serverStatus:b,files:M};W(L(_,`manifest.json`),`${JSON.stringify(re,null,2)}\n`);let ie=j.some(e=>{try{return V(e,`utf-8`).includes(t)}catch{return!1}}),ae={totalBytes:N,fileCount:M.length,docNameCount:P,contentDirVisible:ie,redacted:O},I=!1;return{stagingDir:_,manifest:re,summary:ae,cleanup:()=>{I||(I=!0,U(_,{recursive:!0,force:!0}))}}}catch(e){throw U(_,{recursive:!0,force:!0}),e}}async function Wt(e){let{collected:t,outputPath:n}=e,r=I(n);if(!z(r))throw Error(`ok diagnose bundle: parent directory does not exist: ${r}. Create it or pass --out with an existing parent.`);let i=new Ge.ZipFile,a=It(t.stagingDir);for(let e of a){let n=Ht(t.stagingDir,e);i.addFile(e,n)}i.end();let o=le(n);return i.outputStream.pipe(o),await new Promise((e,t)=>{o.on(`close`,e),o.on(`error`,t),i.outputStream.on(`error`,t)}),n}function Gt(e,t){let n=L(e,`.ok`,`config.yml`);if(z(n))try{let t=(0,we.parse)(V(n,`utf-8`)),r=P(t)?t.content:void 0,i=P(r)?r.dir:void 0;if(typeof i==`string`&&i.length>0)return R(e,i)}catch(e){t?.warn({configPath:n,err:e},`bug-report: failed to read .ok/config.yml; falling back to project root as content dir`)}return R(e)}async function Kt(e,t,n,r){let i=Me(t,e.logger),a=await Ut({contentDir:Gt(t,e.logger),projectDir:t,redact:e.redact,scrubSecrets:e.redact,note:e.note,extraFiles:e.extraFiles,userLogFiles:[...Ie(i,e.userLogsDir??L(G(),`.ok`,`logs`)),...Re(e.cachesDir??L(G(),`Library`,`Caches`))],deps:{readDesktopEnv:n,readLanguage:r,logger:e.logger}});try{B(I(e.outputPath),{recursive:!0}),await Wt({collected:a,outputPath:e.outputPath});let t=a.manifest.redaction.secretScrub;return{zipPath:e.outputPath,summary:{level:`full`,systemWide:!1,projectSlug:i,files:a.manifest.files.map(e=>e.path),redactions:t?.redactions??[],redactedLineCount:t?.redactedLineCount??0,generatedAt:a.manifest.createdAt}}}finally{a.cleanup()}}async function qt(e){let{projectDir:t}=e,n=e.readDesktopEnv??Et,r=e.readLanguage??qe;if(e.level===`full`&&t!==void 0)return Kt(e,t,n,r);let{zipPath:i,summary:a}=await We({projectDir:t,redact:e.redact,outputPath:e.outputPath,userLogsDir:e.userLogsDir,shipItLogFiles:Re(e.cachesDir??L(G(),`Library`,`Caches`)),logger:e.logger,note:e.note,extraFiles:e.extraFiles,desktop:n(),language:r()});return{zipPath:i,summary:{level:e.level,systemWide:t===void 0,projectSlug:a.projectSlug,files:a.files,redactions:a.redactions,redactedLineCount:a.redactedLineCount,generatedAt:a.generatedAt}}}function Z(e,t,n={}){let r=S(e,t);if(!z(r))return{status:`missing`,lockPath:r};let i;try{i=JSON.parse(V(r,`utf-8`))}catch{return{status:`corrupt`,lockPath:r}}if(!i||typeof i!=`object`||!b(i.pid))return{status:`corrupt`,lockPath:r};let a=i;if(!(n.isAlive??x)(a.pid))return{status:`dead-pid`,lockPath:r,lock:a};if(typeof a.machineId==`string`)return a.machineId===(n.machineId??C())?{status:`alive`,lockPath:r,lock:a}:{status:`foreign-host`,lockPath:r,lock:a};let o=n.host??ge();return a.hostname===o?{status:`alive`,lockPath:r,lock:a}:{status:`foreign-host`,lockPath:r,lock:a}}function Jt(e){return e.replace(/:\d+$/,``)}function Yt(e){let t=e.trim();if(!t)return null;{let e=/^https?:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`https`,hostname:Jt(e[1]),owner:e[2],name:e[3]}}{let e=/^ssh:\/\/(?:[\w.-]+@)?([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`ssh`,hostname:Jt(e[1]),owner:e[2],name:e[3]}}{let e=/^git:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:Jt(e[1]),owner:e[2],name:e[3]}}{let e=/^(?:[\w.-]+@)?([\w.-]+):([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?$/.exec(t);if(e?.[1].includes(`.`)||e&&t.startsWith(`git@`))return{protocol:`ssh`,hostname:e[1],owner:e[2],name:e[3]}}{let e=/^git:([\w.-]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:e[1],owner:e[2],name:e[3]}}if(!t.includes(`://`)&&!t.includes(`@`)&&!t.startsWith(`/`)){let e=/^([\w.-]+)\/([\w.\-~%]+?)(?:\.git)?$/.exec(t);if(e)return{protocol:`https`,hostname:`github.com`,owner:e[1],name:e[2]}}return null}const Xt=/^# >>> open-knowledge cli >>>\n[\s\S]*?^# <<< open-knowledge cli <<<\n?/m;function Zt(e){return L(e,`Library`,`Application Support`,`OpenKnowledge`,`path-install.json`)}const Qt={existsSync:e=>z(e),readFileSync:(e,t)=>V(e,t),lstatSync:e=>ue(e),readlinkSync:e=>fe(e)};function $t(e,t=Qt){let n=Zt(e);if(!t.existsSync(n))return null;try{let e=JSON.parse(t.readFileSync(n,`utf8`));return e?.version===1?e:null}catch{return null}}function en(e){let t=e.replace(Xt,``);return{text:t,changed:t!==e,emptyAfter:t.trim()===``}}function tn(e,t,n=Qt){try{return n.lstatSync(e).isSymbolicLink()?n.readlinkSync(e)===t:!1}catch{return!1}}function nn(e){return re(e)||ne(e)||j(e)}const rn=10*1024*1024;function an(e,t,n,r){let i=k(e,t,n,r);if(i.kind===`absent`||i.kind===`no-entry`)return{kind:`not-present`};if(i.kind===`decline`)return{kind:`declined`,reason:i.reason};if(!nn(i.entry))return{kind:`left-foreign`};let a;try{a=r??e.configPath(t,n)}catch{return{kind:`not-present`}}let o=e.serverName(t);return e.format===`file`?(U(a,{force:!0}),{kind:`removed`}):e.format===`toml`?cn(a,o):e.format===`yaml`?sn(a,e.topLevelKey,o):on(a,e.topLevelKey,e.serverMapSubKey,o)}function on(e,t,n,r){let i;try{i=V(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}if(Buffer.byteLength(i,`utf-8`)>rn)return{kind:`declined`,reason:`oversize`};let{text:a,changed:o}=te(i,O(t,n,r));return o?(_(e,a,{mode:A(e)}),{kind:`removed`}):{kind:`not-present`}}function sn(e,t,n){let r;try{r=V(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}if(Buffer.byteLength(r,`utf-8`)>rn)return{kind:`declined`,reason:`oversize`};let i=r.charCodeAt(0)===65279,a=i?r.slice(1):r,o=(0,we.parseDocument)(a);if(o.errors.length>0)return{kind:`declined`,reason:`unparseable`};let s=[t,n];if(!o.hasIn(s))return{kind:`not-present`};o.deleteIn(s);let c=o.toString(),l=D(a);a.trim()===``||a.endsWith(`
11
11
  `)?c.endsWith(`
12
12
  `)||(c=`${c}\n`):c=c.replace(/\n+$/,``),l&&(c=c.replace(/\r\n/g,`
13
13
  `).replace(/\n/g,`\r
14
- `));let u=`${i?``:``}${c}`;return u!==r&&_(e,u,{mode:j(e)}),{kind:`removed`}}function cn(e,t){let n=N();if(n.backend===`fallback`)return{kind:`declined`,reason:`no-native-writer`};let r;try{r=V(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}let i=r.charCodeAt(0)===65279,a=i?r.slice(1):r,o=O(a),s=a.trim()===``||a.endsWith(`
14
+ `));let u=`${i?``:``}${c}`;return u!==r&&_(e,u,{mode:A(e)}),{kind:`removed`}}function cn(e,t){let n=M();if(n.backend===`fallback`)return{kind:`declined`,reason:`no-native-writer`};let r;try{r=V(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}let i=r.charCodeAt(0)===65279,a=i?r.slice(1):r,o=D(a),s=a.trim()===``||a.endsWith(`
15
15
  `),c;try{c=n.removeEntry(a,t)}catch{return{kind:`declined`,reason:`unparseable`}}if(!c.existed)return{kind:`not-present`};let l=c.text;s?l.endsWith(`
16
16
  `)||(l=`${l}\n`):l=l.replace(/\n+$/,``),o&&(l=l.replace(/\r\n/g,`
17
17
  `).replace(/\n/g,`\r
18
- `));let u=`${i?``:``}${l}`;return u!==r&&_(e,u,{mode:j(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:p(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 K.default.green(e);case`desktop`:return K.default.blue(e);case`foreign`:return K.default.cyan(e);case`ui-orphan`:return K.default.magenta(e);case`stale`:return K.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=K.default.dim(`To stop a server: ok stop <port|pid|directory|all>`);return[a,...o,``,s].join(`
19
- `)}async function yn(e={}){let t=e.discover??h,n=e.inspect??Z,r=e.log??(e=>console.log(e)),i=e.resolveCommand??d,a=e.resolveUsage??m,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 T(`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??x,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=x){let n=await h(),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 T(`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 h();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,x)&&!$(r,x)||(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(R(ke(),n)))})}export{ke as _,Xt as a,$t as c,Z as d,qt as f,Ae as g,je as h,an as i,en as l,Wt as m,Tn as n,tn as o,Ut as p,bn as r,Zt as s,Sn as t,Yt as u,Oe as v,Ee as y};
20
- //# sourceMappingURL=src-Co6VRihn.mjs.map
18
+ `));let u=`${i?``:``}${l}`;return u!==r&&_(e,u,{mode:A(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:f(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 K.default.green(e);case`desktop`:return K.default.blue(e);case`foreign`:return K.default.cyan(e);case`ui-orphan`:return K.default.magenta(e);case`stale`:return K.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=K.default.dim(`To stop a server: ok stop <port|pid|directory|all>`);return[a,...o,``,s].join(`
19
+ `)}async function yn(e={}){let t=e.discover??h,n=e.inspect??Z,r=e.log??(e=>console.log(e)),i=e.resolveCommand??u,a=e.resolveUsage??m,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 T(`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??x,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=x){let n=await h(),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 T(`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:l(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 h();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,x)&&!$(r,x)||(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(l(R(ke(),n)))})}export{ke as _,Xt as a,$t as c,Z as d,qt as f,Ae as g,je as h,an as i,en as l,Wt as m,Tn as n,tn as o,Ut as p,bn as r,Zt as s,Sn as t,Yt as u,Oe as v,Ee as y};
20
+ //# sourceMappingURL=src-B9Fu5A_J.mjs.map
@@ -0,0 +1 @@
1
+ import"./src-DMpGVIiQ.mjs";import"./src-B9Fu5A_J.mjs";import"./acp-harness-probe-BBsJm_Pm.mjs";import"./init-B7p6fVB7.mjs";import"./write-project-skill-DHsuRyv9.mjs";import{n as e}from"./loader-DZ4Zvbfe.mjs";import"./skill-teardown-BppNXkpR.mjs";import"./preview-1bYPRdOR.mjs";import"./mcp-migrate-event-BsswfOLm.mjs";export{e as loadConfig};