@inkeep/open-knowledge 0.68.2-beta.0 → 0.68.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1172) hide show
  1. package/dist/THIRD_PARTY_NOTICES.md +8 -18
  2. package/dist/acp-harness-probe-DPsqUdRT.mjs +7 -0
  3. package/dist/cli.mjs +6 -6
  4. package/dist/constants-DqOS8cvc.mjs +2 -0
  5. package/dist/index.mjs +1 -1
  6. package/dist/init-BPjcery5.mjs +640 -0
  7. package/dist/init-Cs6GzO1-.mjs +1 -0
  8. package/dist/launch-json-removal-BcB-aTiD.mjs +2 -0
  9. package/dist/loader-BmJpJKIK.mjs +2 -0
  10. package/dist/loader-CNVQcVUl.mjs +1 -0
  11. package/dist/preview-C1V1t9po.mjs +1 -0
  12. package/dist/preview-CCnyKM4D.mjs +3 -0
  13. package/dist/public/assets/ActivityModeContent-D7ND97Sf.js +1 -0
  14. package/dist/public/assets/AddPropertiesButton-Du7cPx8e.js +2 -0
  15. package/dist/public/assets/AgentDiffPane-BnU3EmuD.js +2 -0
  16. package/dist/public/assets/AgentThreadClientBinder-BVZs2iKR.js +1 -0
  17. package/dist/public/assets/AppMenubar-BMMMLBll.js +1 -0
  18. package/dist/public/assets/BugReportHistory-CqQkzIp_.js +1 -0
  19. package/dist/public/assets/BugReportHistoryDialog-Bt4xl3j1.js +1 -0
  20. package/dist/public/assets/CodeMirrorPropInput-CI2UjSwy.js +3 -0
  21. package/dist/public/assets/ConfigSharingInfoTooltip-DRyxWzh-.js +1 -0
  22. package/dist/public/assets/ConsentDialogBody-BfBusJ03.js +2 -0
  23. package/dist/public/assets/DiffViewBoundary-CSySINnF.js +29 -0
  24. package/dist/public/assets/DocumentContext-DRcYKC2_.js +38 -0
  25. package/dist/public/assets/EditorModeToggle-B5_ouxf5.js +1 -0
  26. package/dist/public/assets/EnableSyncConfirmDialog-BijFlTys.js +1 -0
  27. package/dist/public/assets/ExcalidrawDocEditor-D-nPTIm6.js +1 -0
  28. package/dist/public/assets/ExcalidrawDocEditor-D_O2bRP1.css +1 -0
  29. package/dist/public/assets/FeedbackForm-NRXGWGJR.js +1 -0
  30. package/dist/public/assets/GraphPanel-DuROwb0a.js +44 -0
  31. package/dist/public/assets/ImportSkillDialog-U7RNkRfx.js +1 -0
  32. package/dist/public/assets/LintConfigEditor-DEzA9_yi.js +1 -0
  33. package/dist/public/assets/ManagedArtifactProperties-BiZYBVvt.js +1 -0
  34. package/dist/public/assets/ManagedArtifactProperties-DzvaC_Mm.js +1 -0
  35. package/dist/public/assets/McpConsentDialogBody-DLJ4dIZG.js +1 -0
  36. package/dist/public/assets/Mermaid-DjoyXvsA.js +2 -0
  37. package/dist/public/assets/MermaidDocEditor-DOG0XSxR.js +1 -0
  38. package/dist/public/assets/MultiFileDiff-x2S3lKk7.js +1 -0
  39. package/dist/public/assets/PropertyDisplayRow-Bow1KBwy.js +2 -0
  40. package/dist/public/assets/RegisteredAgentIcon-DUuGkpy7.js +1 -0
  41. package/dist/public/assets/ReportBugDialogBody-BIm6WlxD.js +3 -0
  42. package/dist/public/assets/ReportBugMenuTrigger-DoGBeYEE.js +2 -0
  43. package/dist/public/assets/RowDisclosure-CGm5tQBO.js +1 -0
  44. package/dist/public/assets/SchemaConfigEditor-BOd1pvok.js +1 -0
  45. package/dist/public/assets/SessionsHost-C0rklikY.js +2 -0
  46. package/dist/public/assets/SettingsDialogBody-8wMbo28a.js +12 -0
  47. package/dist/public/assets/ShareBranchSwitchDialog-DTfMd-Zt.js +1 -0
  48. package/dist/public/assets/ShareReceiveDialog-gqs8hp-Z.js +1 -0
  49. package/dist/public/assets/ShareReceiveMissDialog-DoOCk5aK.js +1 -0
  50. package/dist/public/assets/SkillCostValue-L2mg5JGI.js +1 -0
  51. package/dist/public/assets/SkillEditBanner-DOe3ytaz.js +1 -0
  52. package/dist/public/assets/SkillForkDialog-CV8Ek7_i.js +1 -0
  53. package/dist/public/assets/SkillInstallMenu-BXCcAwxP.js +2 -0
  54. package/dist/public/assets/SkillOriginInline-BTyGTqC9.js +2 -0
  55. package/dist/public/assets/SkillToolbarControls-gCNvt2i-.js +1 -0
  56. package/dist/public/assets/SkillUpdateConflictDialog-DuNmOBYq.js +1 -0
  57. package/dist/public/assets/SlidesToolbarControls-BCinCcbI.js +1 -0
  58. package/dist/public/assets/SourceEditor-BgYbZLzD.js +1 -0
  59. package/dist/public/assets/TerminalPanel-50cICIBm.js +146 -0
  60. package/dist/public/assets/TerminalStartingNotice-BnwjxhV9.js +1 -0
  61. package/dist/public/assets/TerminalWindowApp-aw58Ws5Z.js +1 -0
  62. package/dist/public/assets/TextDocEditor-DKbLHlhL.js +1 -0
  63. package/dist/public/assets/ThemePicker-CinV_1Q2.js +1 -0
  64. package/dist/public/assets/ThreadView-0awrbjx3.js +15 -0
  65. package/dist/public/assets/TimelineDiffPane-BtDHFsCO.js +2 -0
  66. package/dist/public/assets/abnfDiagram-N423BO3Z-B-KUYSPU.js +1 -0
  67. package/dist/public/assets/agent-diff-store-RR_HllpC.js +1 -0
  68. package/dist/public/assets/alert-dialog-BEGcylJn.js +7 -0
  69. package/dist/public/assets/angular-html-n4ghLdMv.js +1 -0
  70. package/dist/public/assets/angular-ts-CzpCTj1V.js +1 -0
  71. package/dist/public/assets/apl-CRsp8rW9.js +1 -0
  72. package/dist/public/assets/ar-SA-G6X2FPQ2-DTMXAvms.js +10 -0
  73. package/dist/public/assets/arc-Dmhr4hLU.js +1 -0
  74. package/dist/public/assets/architecture-TIHT7OUA-CBK_7XPq.js +1 -0
  75. package/dist/public/assets/architectureDiagram-T3A2C74G-DuAU4K2G.js +36 -0
  76. package/dist/public/assets/arrow-up-right-BTi7mHwL.js +1 -0
  77. package/dist/public/assets/astro-0cQDdI42.js +1 -0
  78. package/dist/public/assets/auth-state-cache-DmRZVZw_.js +11 -0
  79. package/dist/public/assets/az-AZ-76LH7QW2-Bgju4xnA.js +1 -0
  80. package/dist/public/assets/bg-BG-XCXSNQG7-CP_1b6Sl.js +5 -0
  81. package/dist/public/assets/blade-C6EQouNV.js +1 -0
  82. package/dist/public/assets/blockDiagram-VBNYF7ZC-AAQ797XU.js +132 -0
  83. package/dist/public/assets/bn-BD-2XOGV67Q-VB6NuZ5C.js +5 -0
  84. package/dist/public/assets/braces-Bzye844v.js +1 -0
  85. package/dist/public/assets/bsl-Ckf_OQ92.js +1 -0
  86. package/dist/public/assets/bug-report-send-manager-B2keHEdm.js +1 -0
  87. package/dist/public/assets/c4Diagram-5PPSVZJV-BvX-A_6-.js +10 -0
  88. package/dist/public/assets/ca-ES-6MX7JW3Y-eyxaNjQO.js +8 -0
  89. package/dist/public/assets/cairo-Jb8feLWC.js +1 -0
  90. package/dist/public/assets/calendar-DqB9WX3l.js +1 -0
  91. package/dist/public/assets/case-sensitive-BwklrMJw.js +1 -0
  92. package/dist/public/assets/channel-BtqcvpKi.js +1 -0
  93. package/dist/public/assets/check-Dut4Aov8.js +1 -0
  94. package/dist/public/assets/checkbox-Dn4wpaYH.js +1 -0
  95. package/dist/public/assets/chevron-down-DNO3PgI_.js +1 -0
  96. package/dist/public/assets/chevron-left-Dhf0Sw0W.js +1 -0
  97. package/dist/public/assets/chevron-right-4mYNnAZZ.js +1 -0
  98. package/dist/public/assets/chunk-2GRJ4B5K-CmVhfGVx.js +1 -0
  99. package/dist/public/assets/chunk-2Q5K7J3B-B1sxq5S_.js +1 -0
  100. package/dist/public/assets/chunk-3NCLNEKW-s2aCRmuP.js +1 -0
  101. package/dist/public/assets/chunk-4I5QYGJK-C3fKZeMQ.js +1 -0
  102. package/dist/public/assets/chunk-5FCAYU7R-CSnaoxVz.js +1 -0
  103. package/dist/public/assets/chunk-5HE753X5-BnKL8Lpu.js +1 -0
  104. package/dist/public/assets/chunk-5JV3BV7I-ehkTe4Rv.js +1 -0
  105. package/dist/public/assets/chunk-5RXB4S5H-DWBgsYiy.js +231 -0
  106. package/dist/public/assets/chunk-5TONJI2A-CQQGqtGx.js +2 -0
  107. package/dist/public/assets/chunk-5VM5RSS4-DTPzAl4h.js +15 -0
  108. package/dist/public/assets/chunk-6Q2QTUOP-Bdiq9Vhp.js +88 -0
  109. package/dist/public/assets/chunk-6U3AYISY-Cil04UpZ.js +12 -0
  110. package/dist/public/assets/chunk-7BUUIJ7U-DGxdEC2T.js +1 -0
  111. package/dist/public/assets/chunk-7Z6QIM7H-DxTcyTdV.js +10 -0
  112. package/dist/public/assets/chunk-BIQX33UG-BHR2Rb1t.js +1 -0
  113. package/dist/public/assets/chunk-BO2N2NFS-CxPPjOHs.js +103 -0
  114. package/dist/public/assets/chunk-CQNSW5MT-CVGnRvcW.js +1 -0
  115. package/dist/public/assets/chunk-CYSBUYHQ-DWqDaswI.js +1 -0
  116. package/dist/public/assets/chunk-EIO257PC-CP2KSARU.js +22 -0
  117. package/dist/public/assets/chunk-EMLP6XTP-Ddj0zI-H.js +1 -0
  118. package/dist/public/assets/chunk-GF5L2VYU-D9p7fbeI.js +206 -0
  119. package/dist/public/assets/chunk-I66GZJ75-q2Pj0wYV.js +127 -0
  120. package/dist/public/assets/chunk-J7OUQ5F2-BWGb9t2L.js +2 -0
  121. package/dist/public/assets/chunk-JG7HCLWE-BCMCXubM.js +2 -0
  122. package/dist/public/assets/chunk-JQJVKLGR-BNcpRyOS.js +156 -0
  123. package/dist/public/assets/chunk-JWPE2WC7-oeJvnud1.js +1 -0
  124. package/dist/public/assets/chunk-K2UTITRG-DyZrDHf5.js +35 -0
  125. package/dist/public/assets/chunk-KBJHAD2P-CidJw9J7.js +1 -0
  126. package/dist/public/assets/chunk-MOZMSUNE-DZsIHwaM.js +1 -0
  127. package/dist/public/assets/chunk-NSK5VX7P-Ba98eesG.js +2 -0
  128. package/dist/public/assets/chunk-OSBZ3O6U-DdoGGZsg.js +1 -0
  129. package/dist/public/assets/chunk-QBLGF6JB-HzSE2r7m.js +1 -0
  130. package/dist/public/assets/chunk-QR6OTTB3-BoesuMke.js +62 -0
  131. package/dist/public/assets/chunk-R7FJI6CG-w-lZoGJq.js +1 -0
  132. package/dist/public/assets/chunk-RYQCIY6F-DAdE8PYU.js +1 -0
  133. package/dist/public/assets/chunk-U6XO7XAA-BHAbFsO0.js +2 -0
  134. package/dist/public/assets/chunk-UBXNYLIW-Cz1081DJ.js +1 -0
  135. package/dist/public/assets/chunk-W5SLKNZC-CdSz4Xzc.js +1 -0
  136. package/dist/public/assets/chunk-WRU74C26-Dhm0KT3r.js +70 -0
  137. package/dist/public/assets/chunk-XXDRQBXY-BK97jNt8.js +1 -0
  138. package/dist/public/assets/chunk-YOTPTUD7-HcnxfrwT.js +1 -0
  139. package/dist/public/assets/chunk-Z3N5DIM6-CEh54hBR.js +1 -0
  140. package/dist/public/assets/chunk-ZIRB5QZD-BSxQfUL9.js +32 -0
  141. package/dist/public/assets/chunk-ZUYEQ4TG-qbwUPqcX.js +7 -0
  142. package/dist/public/assets/circle-alert-b-E0_BIP.js +1 -0
  143. package/dist/public/assets/classDiagram-JCYQIIEL-Bka1xARG.js +1 -0
  144. package/dist/public/assets/classDiagram-v2-OCEON4UE-CnJyFv1f.js +1 -0
  145. package/dist/public/assets/client-version-CAVqDfpW.js +1 -0
  146. package/dist/public/assets/cm-theme-CKEh-Eln.js +1 -0
  147. package/dist/public/assets/cobol-qDupnzyY.js +1 -0
  148. package/dist/public/assets/code-highlighter-impl-DrAqor5h.js +1 -0
  149. package/dist/public/assets/coffee-C0KdXDDu.js +1 -0
  150. package/dist/public/assets/comment-chips-BYso7Qp3.js +5 -0
  151. package/dist/public/assets/config-provider-BsNv9lD2.js +5 -0
  152. package/dist/public/assets/cose-bilkent-JH36ORCC-DI5IMOwg.js +1 -0
  153. package/dist/public/assets/cpp-CgZMslXi.js +1 -0
  154. package/dist/public/assets/crystal-CxwNVTCs.js +1 -0
  155. package/dist/public/assets/cs-CZ-2BRQDIVT-DtCkLHs2.js +11 -0
  156. package/dist/public/assets/cynefin-VYW2F7L2-DzKfauIm.js +1 -0
  157. package/dist/public/assets/cynefinDiagram-MW4NZA55-D2cWZWCw.js +62 -0
  158. package/dist/public/assets/da-DK-5WZEPLOC-2-goKUyz.js +5 -0
  159. package/dist/public/assets/dagre-D-Xa3Gc6.js +1 -0
  160. package/dist/public/assets/dagre-VZM6K2ZE-9Lju2zbP.js +4 -0
  161. package/dist/public/assets/de-DE-XR44H4JA-BmSMv8r9.js +8 -0
  162. package/dist/public/assets/diagram-7IWD3JNH-DEfveysg.js +30 -0
  163. package/dist/public/assets/diagram-B4RE2ZJO-DE-HTSHG.js +3 -0
  164. package/dist/public/assets/diagram-LBJQPF4R-Cc_1i0FO.js +24 -0
  165. package/dist/public/assets/diagram-Q27KOJAE-Y0RE3bcO.js +24 -0
  166. package/dist/public/assets/diagram-UB23O5K3-qwnU3QDe.js +41 -0
  167. package/dist/public/assets/dialog-doK3a8ht.js +5 -0
  168. package/dist/public/assets/directory-open-01563666-DGtvxLbi.js +1 -0
  169. package/dist/public/assets/directory-open-4ed118d0-D7oSshfB.js +1 -0
  170. package/dist/public/assets/dist-4gO3Qps8.js +1 -0
  171. package/dist/public/assets/dist-BsNrI_u8.js +1 -0
  172. package/dist/public/assets/dist-CSfohOIb.js +1 -0
  173. package/dist/public/assets/dist-CnImTB5w.js +19 -0
  174. package/dist/public/assets/dist-CytFe_JQ2.js +2 -0
  175. package/dist/public/assets/dist-CzV59-xP.js +6 -0
  176. package/dist/public/assets/dist-DEHRcQjN.js +1 -0
  177. package/dist/public/assets/dist-DYChjkrO.js +1 -0
  178. package/dist/public/assets/dist-Dowoza_r2.js +1 -0
  179. package/dist/public/assets/dist-Dpj3Mp6l.js +9 -0
  180. package/dist/public/assets/dist-DyRKWEAB.js +23 -0
  181. package/dist/public/assets/dist-HYojJaAI.js +1 -0
  182. package/dist/public/assets/dist-K7_GHmEZ.js +1 -0
  183. package/dist/public/assets/dist-o0yygciJ.js +124 -0
  184. package/dist/public/assets/dropdown-menu-CRvS0_4-.js +1 -0
  185. package/dist/public/assets/ebnfDiagram-BXEA7PRR-mHbksd3Q.js +1 -0
  186. package/dist/public/assets/edge-DEVpEU5f.js +1 -0
  187. package/dist/public/assets/el-GR-BZB4AONW-Bvp7NhWh.js +10 -0
  188. package/dist/public/assets/elixir-Dddfg7fp.js +1 -0
  189. package/dist/public/assets/elm-Ezo5Qpmw.js +1 -0
  190. package/dist/public/assets/en-B4ZKOASM-BDigjYND.js +1 -0
  191. package/dist/public/assets/erDiagram-JOGREHBK-BE2vvbCV.js +85 -0
  192. package/dist/public/assets/erb-BbTrcb1O.js +1 -0
  193. package/dist/public/assets/erlang-C2L8MrJZ.js +1 -0
  194. package/dist/public/assets/es-ES-U4NZUMDT-y_qZhd78.js +9 -0
  195. package/dist/public/assets/eu-ES-A7QVB2H4-CZZIy5p8.js +11 -0
  196. package/dist/public/assets/eventmodeling-45OFAUF4-C_NnCoan.js +1 -0
  197. package/dist/public/assets/excalidraw-env-B6p0xqTq.js +1 -0
  198. package/dist/public/assets/eye-7pio2q9G.js +1 -0
  199. package/dist/public/assets/fa-IR-HGAKTJCU-DyexZjX1.js +8 -0
  200. package/dist/public/assets/fi-FI-Z5N7JZ37-Dm0hPjRy.js +6 -0
  201. package/dist/public/assets/field-BaLAHDGw.js +1 -0
  202. package/dist/public/assets/file-open-002ab408-BBIapLFV.js +1 -0
  203. package/dist/public/assets/file-open-7c801643-DyDehGip.js +1 -0
  204. package/dist/public/assets/file-save-3189631c-CVC1pHfx.js +1 -0
  205. package/dist/public/assets/file-save-745eba88-BmKUJrEh.js +1 -0
  206. package/dist/public/assets/file-tree-adapter-DLzyCG31.js +1 -0
  207. package/dist/public/assets/flowDiagram-UKHOOZJN-BVFlnqrU.js +1 -0
  208. package/dist/public/assets/folder-config-api-DLUlLOYx.js +1 -0
  209. package/dist/public/assets/folder-open-K9GIY2oQ.js +1 -0
  210. package/dist/public/assets/fortran-fixed-form-D4oHoC4Z.js +1 -0
  211. package/dist/public/assets/fr-FR-RHASNOE6-CzP_eMz2.js +9 -0
  212. package/dist/public/assets/fsharp-DvrdmLri.js +1 -0
  213. package/dist/public/assets/ganttDiagram-PKOTCBZU-BL-h9ZLt.js +292 -0
  214. package/dist/public/assets/gdresource-5mVFz0Eb.js +1 -0
  215. package/dist/public/assets/git-branch-3CSRgL0o.js +1 -0
  216. package/dist/public/assets/git-commit-BDmva5Kx.js +1 -0
  217. package/dist/public/assets/git-rebase-DuzI7-Xg.js +1 -0
  218. package/dist/public/assets/gitGraph-TEB2WS4Q-CrFDBA93.js +1 -0
  219. package/dist/public/assets/gitGraphDiagram-DS77QQ5N-6OfC9jpd.js +106 -0
  220. package/dist/public/assets/gl-ES-HMX3MZ6V-C72V_f-p.js +10 -0
  221. package/dist/public/assets/glimmer-js-CIDYxv0B.js +1 -0
  222. package/dist/public/assets/glimmer-ts-B8KcZgpW.js +1 -0
  223. package/dist/public/assets/glsl-qRqAIeL8.js +1 -0
  224. package/dist/public/assets/graphlib-D5Xap45B.js +1 -0
  225. package/dist/public/assets/graphql-iOihbM3S.js +1 -0
  226. package/dist/public/assets/hack-DSvxjw6w.js +1 -0
  227. package/dist/public/assets/haml-BAfr11pv.js +1 -0
  228. package/dist/public/assets/handlebars-Dv_nCNRv.js +1 -0
  229. package/dist/public/assets/hash-C3Mmwaez.js +1 -0
  230. package/dist/public/assets/he-IL-6SHJWFNN-Ccsx5CW-.js +10 -0
  231. package/dist/public/assets/hi-IN-IWLTKZ5I-BcBEzuOU.js +4 -0
  232. package/dist/public/assets/highlighted-body-OFNGDK62-G37OWDlt.js +1 -0
  233. package/dist/public/assets/html-BsOt9JL6.js +1 -0
  234. package/dist/public/assets/html-derivative-6fcHg2t5.js +1 -0
  235. package/dist/public/assets/http-DWhZU72_.js +1 -0
  236. package/dist/public/assets/hu-HU-A5ZG7DT2-DaLwtcEO.js +7 -0
  237. package/dist/public/assets/hurl-DCR0HhW_.js +1 -0
  238. package/dist/public/assets/hxml-CeiyPsue.js +1 -0
  239. package/dist/public/assets/i18n-BIMzqHOM.js +1 -0
  240. package/dist/public/assets/id-ID-SAP4L64H-DbEGNj8P.js +10 -0
  241. package/dist/public/assets/image-GAAHSSAO-BubRrNLy.js +1 -0
  242. package/dist/public/assets/index-CPc92gE3.js +2204 -0
  243. package/dist/public/assets/info-DKCQHKI2-Cig1XpPF.js +1 -0
  244. package/dist/public/assets/info-GFoSMANR.js +1 -0
  245. package/dist/public/assets/infoDiagram-6WML65LV-UvmcrE2B.js +2 -0
  246. package/dist/public/assets/input-group-DaPqG5Sr.js +1 -0
  247. package/dist/public/assets/ishikawaDiagram-WSZJBQD7-wXQiCK3m.js +70 -0
  248. package/dist/public/assets/it-IT-JPQ66NNP-HE90_52I.js +11 -0
  249. package/dist/public/assets/ja-JP-DBVTYXUO-CndnBIwt.js +8 -0
  250. package/dist/public/assets/jinja-DUqrW4s-.js +1 -0
  251. package/dist/public/assets/jison-ByjfMFjX.js +1 -0
  252. package/dist/public/assets/journeyDiagram-NVQOT4AX-DOveFCSQ.js +139 -0
  253. package/dist/public/assets/julia-DyTfkFvV.js +1 -0
  254. package/dist/public/assets/just-B6gk73UZ.js +1 -0
  255. package/dist/public/assets/kaa-6HZHGXH3-BWKVr1KV.js +1 -0
  256. package/dist/public/assets/kab-KAB-ZGHBKWFO-D2l9Vo7B.js +8 -0
  257. package/dist/public/assets/kanban-definition-27J2QSJJ-LpbNOEtT.js +89 -0
  258. package/dist/public/assets/kk-KZ-P5N5QNE5-6C8OO3Pg.js +1 -0
  259. package/dist/public/assets/km-KH-HSX4SM5Z-iGFSAhvM.js +11 -0
  260. package/dist/public/assets/ko-KR-MTYHY66A-Dtr9UZPc.js +9 -0
  261. package/dist/public/assets/ku-TR-6OUDTVRD-Dpwjkpg9.js +9 -0
  262. package/dist/public/assets/latex-CbC-qiB_.js +1 -0
  263. package/dist/public/assets/launch-agent-thread-CwgqC9Cf.js +1 -0
  264. package/dist/public/assets/launcher-selection-CY4K2SKu.js +1 -0
  265. package/dist/public/assets/line-C32woA7D.js +1 -0
  266. package/dist/public/assets/linear-CAd94h8_.js +1 -0
  267. package/dist/public/assets/lint-plugin-meta-LEBWvINg.js +1 -0
  268. package/dist/public/assets/liquid-VWGE9my3.js +1 -0
  269. package/dist/public/assets/list-plus-9clHli3G.js +1 -0
  270. package/dist/public/assets/local-menu-action-bus-BLEUyEvu.js +1 -0
  271. package/dist/public/assets/lt-LT-XHIRWOB4-CgngbLaB.js +3 -0
  272. package/dist/public/assets/lua-B9eZaovI.js +1 -0
  273. package/dist/public/assets/lv-LV-5QDEKY6T-26eo7M32.js +7 -0
  274. package/dist/public/assets/map-Ctmwineq.js +1 -0
  275. package/dist/public/assets/markdownlint-rule-browser-D-ssSunq.js +1 -0
  276. package/dist/public/assets/marko-CGKBfJS1.js +1 -0
  277. package/dist/public/assets/maximize-2-CGTtVjw-.js +1 -0
  278. package/dist/public/assets/mdc-D9LrNFnV.js +1 -0
  279. package/dist/public/assets/mermaid-GHXKKRXX-ZHusC0xw.js +1 -0
  280. package/dist/public/assets/mermaid-parser.core-8vGdIoe3.js +4 -0
  281. package/dist/public/assets/mermaid.core-81do77ZV.js +11 -0
  282. package/dist/public/assets/mermaid.core-Da6fpOcw.js +1 -0
  283. package/dist/public/assets/mindmap-definition-FAOFIHXS-BQMxiXIk.js +96 -0
  284. package/dist/public/assets/minus-DAXWIxbJ.js +1 -0
  285. package/dist/public/assets/miss-dialog-store-C2psV7qs.js +1 -0
  286. package/dist/public/assets/mr-IN-CRQNXWMA-DVkrZJVd.js +13 -0
  287. package/dist/public/assets/my-MM-5M5IBNSE-DG5YfvWi.js +1 -0
  288. package/dist/public/assets/nb-NO-T6EIAALU-DyeNjgrr.js +10 -0
  289. package/dist/public/assets/nextflow-S6gN2Pag.js +1 -0
  290. package/dist/public/assets/nginx-Ci-HxEmt.js +1 -0
  291. package/dist/public/assets/nim-C8hsUA-U.js +1 -0
  292. package/dist/public/assets/nl-NL-IS3SIHDZ-CXLEbUpA.js +8 -0
  293. package/dist/public/assets/nn-NO-6E72VCQL-aZby_DEw.js +8 -0
  294. package/dist/public/assets/now-CIY4UY2e.js +1 -0
  295. package/dist/public/assets/oc-FR-POXYY2M6-CAHceWO9.js +8 -0
  296. package/dist/public/assets/ordinal-Cz6Oq_bl.js +1 -0
  297. package/dist/public/assets/pa-IN-N4M65BXN-hy4lc5is.js +4 -0
  298. package/dist/public/assets/package-B-HM4QAu.js +1 -0
  299. package/dist/public/assets/packet-7NZHBO7P-CEQrghMB.js +1 -0
  300. package/dist/public/assets/page-list-cache-CC7R8dLi.js +1 -0
  301. package/dist/public/assets/panel-right-open-CGSjfNrM.js +1 -0
  302. package/dist/public/assets/paperclip-CKCMhpaY.js +1 -0
  303. package/dist/public/assets/pegDiagram-VL7TDLO6-ux59hwLa.js +1 -0
  304. package/dist/public/assets/pending-receive-nav-store-BI6OXY6F.js +1 -0
  305. package/dist/public/assets/percentages-BXMCSKIN-CI9m-eWX.js +1 -0
  306. package/dist/public/assets/perl-sjkijjWb.js +1 -0
  307. package/dist/public/assets/php--bRl7pTD.js +1 -0
  308. package/dist/public/assets/pie-RZYD4A2V-DBU37-sc.js +1 -0
  309. package/dist/public/assets/pieDiagram-7S7Q4E2Y-CLJbjO27.js +39 -0
  310. package/dist/public/assets/pierre-theme-BP0UI9YU.js +1376 -0
  311. package/dist/public/assets/pl-PL-T2D74RX3-CvkPhdVM.js +9 -0
  312. package/dist/public/assets/prod-Bsto2GJy.js +109 -0
  313. package/dist/public/assets/progress-jHfi_nyR.js +9 -0
  314. package/dist/public/assets/project-paths-DdET6gZ9.js +1 -0
  315. package/dist/public/assets/prop-types--7tSQuV6.js +1 -0
  316. package/dist/public/assets/pt-BR-5N22H2LF-BQdH8DS3.js +9 -0
  317. package/dist/public/assets/pt-PT-UZXXM6DQ-DPpz1SbK.js +9 -0
  318. package/dist/public/assets/pug-COTJchGu.js +1 -0
  319. package/dist/public/assets/qml-9tiv6IqZ.js +1 -0
  320. package/dist/public/assets/quadrantDiagram-CIZ2JOQS-BHvBTIYM.js +7 -0
  321. package/dist/public/assets/radar-I7S5WNFK-BurhDVxf.js +1 -0
  322. package/dist/public/assets/railroad-3IZDKUUU-g8mzrJmo.js +1 -0
  323. package/dist/public/assets/railroad-abnf-AHOZXSZD-DPqknkFw.js +1 -0
  324. package/dist/public/assets/railroad-ebnf-EBAXGLYW-U_lHOkoE.js +1 -0
  325. package/dist/public/assets/railroad-peg-LSFZ7HO6-f2k0ZR8P.js +1 -0
  326. package/dist/public/assets/railroadDiagram-AXF67PYL-Dz6_ITL0.js +1 -0
  327. package/dist/public/assets/razor-CtL2ZS-q.js +1 -0
  328. package/dist/public/assets/refresh-cw-DZ0cLdZU.js +1 -0
  329. package/dist/public/assets/requirementDiagram-LRYGKXZP-B6IWs5aN.js +84 -0
  330. package/dist/public/assets/ro-RO-JPDTUUEW-CmvUoq1j.js +11 -0
  331. package/dist/public/assets/rst-Blfp3q-K.js +1 -0
  332. package/dist/public/assets/ru-RU-B4JR7IUQ-aSDMvTVA.js +9 -0
  333. package/dist/public/assets/ruby-BMlLTbYD.js +1 -0
  334. package/dist/public/assets/sankeyDiagram-W5VNT64P-z2OTWArg.js +40 -0
  335. package/dist/public/assets/sas-CVkF3NvP.js +1 -0
  336. package/dist/public/assets/scss-B7QgXkYM.js +1 -0
  337. package/dist/public/assets/select-XEGYznMI.js +1 -0
  338. package/dist/public/assets/selection-context-CMtvsI7U.js +4 -0
  339. package/dist/public/assets/separator-C6x7j8mC.js +1 -0
  340. package/dist/public/assets/sequenceDiagram-SI44F4Z6-DhzIlSIY.js +162 -0
  341. package/dist/public/assets/shaderlab-B_5EKyWv.js +1 -0
  342. package/dist/public/assets/shellsession-p2CcXHX2.js +1 -0
  343. package/dist/public/assets/si-LK-N5RQ5JYF-kTqEMzDW.js +1 -0
  344. package/dist/public/assets/sizeCapture-X5ZJPWSS-Cu13xTQD.js +1 -0
  345. package/dist/public/assets/sk-SK-C5VTKIMK-Wr_e7Rcf.js +6 -0
  346. package/dist/public/assets/sl-SI-NN7IZMDC-D6VZ17Bs.js +6 -0
  347. package/dist/public/assets/soy-DWWkDlnP.js +1 -0
  348. package/dist/public/assets/sparql-w_hAf98A.js +1 -0
  349. package/dist/public/assets/spinner-BY5pJxJc.js +1 -0
  350. package/dist/public/assets/square-pen-VQxtgU7b.js +1 -0
  351. package/dist/public/assets/src-DjJ3hkaN.js +1 -0
  352. package/dist/public/assets/src-trBwwFl8.js +2 -0
  353. package/dist/public/assets/stata-2LyUuRsx.js +1 -0
  354. package/dist/public/assets/stateDiagram-OKZ733FA-CD4IJ_xK.js +1 -0
  355. package/dist/public/assets/stateDiagram-v2-UEYNNEHI-CUkm_7_i.js +1 -0
  356. package/dist/public/assets/subset-shared.chunk-BD7P103Y.js +1 -0
  357. package/dist/public/assets/subset-worker.chunk-DCAA0_Vp.js +1 -0
  358. package/dist/public/assets/surrealql-CqEv8gEG.js +1 -0
  359. package/dist/public/assets/sv-SE-XGPEYMSR-CdJ22G8j.js +10 -0
  360. package/dist/public/assets/svelte-C7wChqpk.js +1 -0
  361. package/dist/public/assets/swimlanes-SLNWSIFB-DcpSJSjr.js +2 -0
  362. package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-Dnj1Erf6.js +8 -0
  363. package/dist/public/assets/ta-IN-2NMHFXQM-Ctx-wWpk.js +9 -0
  364. package/dist/public/assets/tag-pill-input-D1--PoWq.js +1 -0
  365. package/dist/public/assets/target-navigation-intent-C5w8bAt9.js +1 -0
  366. package/dist/public/assets/telemetry-impl-gYTHzJW-.js +2 -0
  367. package/dist/public/assets/telemetry-startup-ckMzeDLV.js +1 -0
  368. package/dist/public/assets/templ-BjhNsuXH.js +1 -0
  369. package/dist/public/assets/terminal-D4HSnHXf.js +1 -0
  370. package/dist/public/assets/terminal-cli-display-CIQ1ixu-.js +1 -0
  371. package/dist/public/assets/terminal-launch-events-CTZtJmKB.js +1 -0
  372. package/dist/public/assets/terminal-telemetry-Li-mcc_T.js +1 -0
  373. package/dist/public/assets/tex-B7RebxEe.js +1 -0
  374. package/dist/public/assets/text-viewer-languages-CQTvnrPA.js +2 -0
  375. package/dist/public/assets/th-TH-HPSO5L25-cI2IrCuR.js +2 -0
  376. package/dist/public/assets/timeline-definition-Z64GVDOM-BPyOiBf9.js +120 -0
  377. package/dist/public/assets/tr-TR-DEFEU3FU-opXQwv0x.js +7 -0
  378. package/dist/public/assets/trash-2-HHPbIvfD.js +1 -0
  379. package/dist/public/assets/treeView-QDETBFTQ-DViAhb4S.js +1 -0
  380. package/dist/public/assets/treemap-6X3UGDF4-Xb6GUWf1.js +1 -0
  381. package/dist/public/assets/triangle-alert-BacEvDZF.js +1 -0
  382. package/dist/public/assets/ts-tags-BhlXGVAw.js +1 -0
  383. package/dist/public/assets/twig-BsTbWmg7.js +1 -0
  384. package/dist/public/assets/typing-burst-detector-Cfq0i_g7.js +8 -0
  385. package/dist/public/assets/uk-UA-QMV73CPH-BY-Nidtr.js +6 -0
  386. package/dist/public/assets/undo-2-E_jsrA9n.js +1 -0
  387. package/dist/public/assets/uninstall-B1WlSLkL.js +1 -0
  388. package/dist/public/assets/use-activity-panel-nFt7qmvr.js +1 -0
  389. package/dist/public/assets/use-live-xterm-theme-BV0348jo.js +1 -0
  390. package/dist/public/assets/use-open-skill-DOFvlGv5.js +1 -0
  391. package/dist/public/assets/use-skill-origin-Hzaac0kP.js +1 -0
  392. package/dist/public/assets/use-skills-C41QewGQ.js +1 -0
  393. package/dist/public/assets/use-terminal-enabled-DfmVSqqv.js +1 -0
  394. package/dist/public/assets/use-timeline-entry-diff-viQ4jB-I.js +6 -0
  395. package/dist/public/assets/vennDiagram-T6HMQDX7-cAKZTGwX.js +34 -0
  396. package/dist/public/assets/vi-VN-M7AON7JQ-C2TbAh0D.js +5 -0
  397. package/dist/public/assets/vue-D88xOGOv.js +1 -0
  398. package/dist/public/assets/vue-html-BkZfX-7b.js +1 -0
  399. package/dist/public/assets/vue-vine-dychJqAM.js +1 -0
  400. package/dist/public/assets/wardley-OPB4EBWU-D9e6vi55.js +1 -0
  401. package/dist/public/assets/wardleyDiagram-T6FBY63Y-ByNfnshh.js +78 -0
  402. package/dist/public/assets/wrench-0VSsjkY8.js +1 -0
  403. package/dist/public/assets/x-CteY0nHf.js +1 -0
  404. package/dist/public/assets/xml-CllYRSXm.js +1 -0
  405. package/dist/public/assets/xsl-C6TjKenw.js +1 -0
  406. package/dist/public/assets/xychartDiagram-ELKLHX3M-BJWhjjyM.js +7 -0
  407. package/dist/public/assets/zh-CN-LNUGB5OW-CSTNkYQT.js +10 -0
  408. package/dist/public/assets/zh-HK-E62DVLB3-CRmzsGyc.js +1 -0
  409. package/dist/public/assets/zh-TW-RAJ6MFWO-By_r83Se.js +9 -0
  410. package/dist/public/excalidraw-assets/.copied-from-0.18.1 +1 -0
  411. package/dist/public/index.html +136 -139
  412. package/dist/public/uninstall.html +11 -11
  413. package/dist/repair-launch-json-rwvg8lfs.mjs +2 -0
  414. package/dist/repair-mcp-configs-ojmdtCX5.mjs +2 -0
  415. package/dist/src-DYkhQEiu.mjs +1 -0
  416. package/dist/src-nM5gMDNj.mjs +20 -0
  417. package/dist/start-BKr50ApU.mjs +5 -0
  418. package/dist/start-Bf0BFz7e.mjs +1 -0
  419. package/package.json +4 -4
  420. package/dist/acp-harness-probe-Xk1cOf7t.mjs +0 -7
  421. package/dist/constants-CIBQHvAU.mjs +0 -2
  422. package/dist/init-Bz5vjKFs.mjs +0 -640
  423. package/dist/init-CUH3tueI.mjs +0 -1
  424. package/dist/launch-json-removal-Bbih6nS1.mjs +0 -2
  425. package/dist/loader-BJkT51dw.mjs +0 -1
  426. package/dist/loader-mvgzARvs.mjs +0 -2
  427. package/dist/preview-G0XRXzxK.mjs +0 -1
  428. package/dist/preview-OD4j-jED.mjs +0 -3
  429. package/dist/public/assets/ActivityModeContent-490xsbxH.js +0 -1
  430. package/dist/public/assets/AddPropertiesButton-CobX-wUd.js +0 -2
  431. package/dist/public/assets/AgentDiffPane-B33vEgp5.js +0 -2
  432. package/dist/public/assets/AgentThreadClientBinder-BfzzW91s.js +0 -1
  433. package/dist/public/assets/AppMenubar-ByI-BInV.js +0 -1
  434. package/dist/public/assets/BugReportHistory-BFeDHqqW.js +0 -1
  435. package/dist/public/assets/BugReportHistoryDialog-BTq3iS9V.js +0 -1
  436. package/dist/public/assets/CodeMirrorEditor-UCMRAMCV-Cij7EZM1.js +0 -1
  437. package/dist/public/assets/CodeMirrorPropInput-b3cbFnOm.js +0 -3
  438. package/dist/public/assets/ConfigSharingInfoTooltip-DzKdlED6.js +0 -1
  439. package/dist/public/assets/ConsentDialogBody-e0bDGpfC.js +0 -2
  440. package/dist/public/assets/DiffViewBoundary-C_NVhw3Y.js +0 -29
  441. package/dist/public/assets/DocumentContext-CsXwnPlW.js +0 -38
  442. package/dist/public/assets/EditorModeToggle-BGsSL-mj.js +0 -1
  443. package/dist/public/assets/EnableSyncConfirmDialog-BdAQ957p.js +0 -1
  444. package/dist/public/assets/ExcalidrawDocEditor-BfA9dsWC.css +0 -1
  445. package/dist/public/assets/ExcalidrawDocEditor-Cjv1yN9o.js +0 -1
  446. package/dist/public/assets/FeedbackForm-BQ2krPQx.js +0 -1
  447. package/dist/public/assets/GraphPanel-BUWA0D9J.js +0 -44
  448. package/dist/public/assets/ImportSkillDialog-DTjk3V-o.js +0 -1
  449. package/dist/public/assets/LintConfigEditor-CINgHp4V.js +0 -1
  450. package/dist/public/assets/ManagedArtifactProperties-DXJgROEj.js +0 -1
  451. package/dist/public/assets/ManagedArtifactProperties-pt4H4Kwd.js +0 -1
  452. package/dist/public/assets/McpConsentDialogBody-CS-c374d.js +0 -1
  453. package/dist/public/assets/Mermaid-mq736Zb_.js +0 -2
  454. package/dist/public/assets/MermaidDocEditor-Dk_1im8V.js +0 -1
  455. package/dist/public/assets/MultiFileDiff-B2LBKfyB.js +0 -1
  456. package/dist/public/assets/PropertyDisplayRow-kZtqJp9m.js +0 -2
  457. package/dist/public/assets/RegisteredAgentIcon-5StNVeMK.js +0 -1
  458. package/dist/public/assets/ReportBugDialogBody-CmxYVKGf.js +0 -3
  459. package/dist/public/assets/ReportBugMenuTrigger-BTdzj2n4.js +0 -2
  460. package/dist/public/assets/RowDisclosure-8rxC_kc0.js +0 -1
  461. package/dist/public/assets/SchemaConfigEditor-B1n1F5p-.js +0 -1
  462. package/dist/public/assets/SessionsHost-C7Ogn2M6.js +0 -2
  463. package/dist/public/assets/SettingsDialogBody-Cix2bO2l.js +0 -12
  464. package/dist/public/assets/ShareBranchSwitchDialog-4R7TrS-D.js +0 -1
  465. package/dist/public/assets/ShareReceiveDialog-Cmq2hZPb.js +0 -1
  466. package/dist/public/assets/ShareReceiveMissDialog-BX3MYEcR.js +0 -1
  467. package/dist/public/assets/SkillCostValue-DHSmxhI-.js +0 -1
  468. package/dist/public/assets/SkillEditBanner-B27-_Aay.js +0 -1
  469. package/dist/public/assets/SkillForkDialog-BAZRmLVh.js +0 -1
  470. package/dist/public/assets/SkillInstallMenu-CvY-S9ls.js +0 -2
  471. package/dist/public/assets/SkillOriginInline-BSlC26uH.js +0 -2
  472. package/dist/public/assets/SkillToolbarControls-orefNngC.js +0 -1
  473. package/dist/public/assets/SkillUpdateConflictDialog-AerOBYmk.js +0 -1
  474. package/dist/public/assets/SlidesToolbarControls-BxNx9-Fx.js +0 -1
  475. package/dist/public/assets/SourceEditor-C94e0yC5.js +0 -1
  476. package/dist/public/assets/TerminalPanel-uwQJYmWz.js +0 -146
  477. package/dist/public/assets/TerminalStartingNotice-DPZ5efWf.js +0 -1
  478. package/dist/public/assets/TerminalWindowApp-DhoB84_B.js +0 -1
  479. package/dist/public/assets/TextDocEditor-CF4qJdK_.js +0 -1
  480. package/dist/public/assets/ThemePicker-CrXM91f-.js +0 -1
  481. package/dist/public/assets/ThreadView-BQOWUPN4.js +0 -15
  482. package/dist/public/assets/TimelineDiffPane-BF2h-Xxg.js +0 -2
  483. package/dist/public/assets/abnfDiagram-N423BO3Z-CwGrBVLC.js +0 -1
  484. package/dist/public/assets/agent-diff-store-BdBeIe07.js +0 -1
  485. package/dist/public/assets/alert-dialog-BFfs04J5.js +0 -7
  486. package/dist/public/assets/angular-html-Btpy0q0k.js +0 -1
  487. package/dist/public/assets/angular-ts-BrSzuuFU.js +0 -1
  488. package/dist/public/assets/apl-vFoMk9-0.js +0 -1
  489. package/dist/public/assets/ar-SA-PQUY64WN-PQbO-51L.js +0 -10
  490. package/dist/public/assets/arc-CQb2AKAx.js +0 -1
  491. package/dist/public/assets/architecture-TIHT7OUA-DQf3c3Hp.js +0 -1
  492. package/dist/public/assets/architectureDiagram-T3A2C74G-CeZuzYuu.js +0 -36
  493. package/dist/public/assets/arrow-up-right-BaKj0sfV.js +0 -1
  494. package/dist/public/assets/astro-DSlgGT8T.js +0 -1
  495. package/dist/public/assets/auth-state-cache-BHopeazX.js +0 -11
  496. package/dist/public/assets/az-AZ-OXJXL76K-CPmcszkd.js +0 -1
  497. package/dist/public/assets/bg-BG-W2GKIJDF-DQXDfygb.js +0 -5
  498. package/dist/public/assets/blade-DPk0NJyc.js +0 -1
  499. package/dist/public/assets/blockDiagram-VBNYF7ZC-DTHWQKwa.js +0 -132
  500. package/dist/public/assets/bn-BD-TGL7M4PJ-BpbZzobg.js +0 -3
  501. package/dist/public/assets/bn-IN-BKETKYEH-BpHvStrp.js +0 -3
  502. package/dist/public/assets/braces-BP2Hc0Kn.js +0 -1
  503. package/dist/public/assets/bsl-DJpyuoJk.js +0 -1
  504. package/dist/public/assets/bug-report-send-manager-TlhphH7d.js +0 -1
  505. package/dist/public/assets/c4Diagram-5PPSVZJV-CAqTarHG.js +0 -10
  506. package/dist/public/assets/ca-ES-LD5SCRVV-CmDj24r3.js +0 -8
  507. package/dist/public/assets/cairo-DhOjE0gg.js +0 -1
  508. package/dist/public/assets/calendar-EJgVmWKE.js +0 -1
  509. package/dist/public/assets/case-sensitive-CvV5vDMz.js +0 -1
  510. package/dist/public/assets/channel-BOJZt2df.js +0 -1
  511. package/dist/public/assets/check-D16atakQ.js +0 -1
  512. package/dist/public/assets/checkbox-Dm1F7ko3.js +0 -1
  513. package/dist/public/assets/chevron-down-DZvAgb7P.js +0 -1
  514. package/dist/public/assets/chevron-left-Y28NVO5d.js +0 -1
  515. package/dist/public/assets/chevron-right-ARd3H40k.js +0 -1
  516. package/dist/public/assets/chunk-2GRJ4B5K-wqPSGDf9.js +0 -1
  517. package/dist/public/assets/chunk-2Q5K7J3B-CImid_Y5.js +0 -1
  518. package/dist/public/assets/chunk-3NCLNEKW-RYrKXVY9.js +0 -1
  519. package/dist/public/assets/chunk-4I5QYGJK-B1LDTgE1.js +0 -1
  520. package/dist/public/assets/chunk-5FCAYU7R-qzd-GNjw.js +0 -1
  521. package/dist/public/assets/chunk-5HE753X5-CR-v6dSo.js +0 -1
  522. package/dist/public/assets/chunk-5JV3BV7I-C0xPk2sR.js +0 -1
  523. package/dist/public/assets/chunk-5RXB4S5H-DxeRek40.js +0 -231
  524. package/dist/public/assets/chunk-5TONJI2A-DrCWMBwq.js +0 -2
  525. package/dist/public/assets/chunk-5VM5RSS4-BpZ2-4D7.js +0 -15
  526. package/dist/public/assets/chunk-6Q2QTUOP-atEGPau_.js +0 -88
  527. package/dist/public/assets/chunk-7BUUIJ7U-DpTl4Qku.js +0 -1
  528. package/dist/public/assets/chunk-7XWMRXBY-BLUgKGIj.js +0 -1
  529. package/dist/public/assets/chunk-7Z6QIM7H-D-Ql3uYX.js +0 -10
  530. package/dist/public/assets/chunk-A66AFZZU-D5J-3i2I.js +0 -7
  531. package/dist/public/assets/chunk-BIQX33UG-Ba9Qln1u.js +0 -1
  532. package/dist/public/assets/chunk-BO2N2NFS-CUMnMIzo.js +0 -103
  533. package/dist/public/assets/chunk-CQNSW5MT-CmqFXg2y.js +0 -1
  534. package/dist/public/assets/chunk-CYSBUYHQ-Cnad-ODK.js +0 -1
  535. package/dist/public/assets/chunk-EMLP6XTP-FQ_kYmpD.js +0 -1
  536. package/dist/public/assets/chunk-FLYJHZSQ-fkBI-voi.js +0 -12
  537. package/dist/public/assets/chunk-GF5L2VYU-CisRraQN.js +0 -206
  538. package/dist/public/assets/chunk-I66GZJ75-XrvqIPtf.js +0 -127
  539. package/dist/public/assets/chunk-J7OUQ5F2-D7t-TW4G.js +0 -2
  540. package/dist/public/assets/chunk-JG7HCLWE-OBINelJQ.js +0 -2
  541. package/dist/public/assets/chunk-JQJVKLGR-DtfrgEAw.js +0 -156
  542. package/dist/public/assets/chunk-JWPE2WC7-MFNLYS6E.js +0 -1
  543. package/dist/public/assets/chunk-KBJHAD2P-DiSh-uZj.js +0 -1
  544. package/dist/public/assets/chunk-MOZMSUNE-BlEnH6km.js +0 -1
  545. package/dist/public/assets/chunk-NSK5VX7P-08Dpvd3E.js +0 -2
  546. package/dist/public/assets/chunk-OSBZ3O6U-4T4LnMTK.js +0 -1
  547. package/dist/public/assets/chunk-QBLGF6JB-BYuhTci9.js +0 -1
  548. package/dist/public/assets/chunk-QR6OTTB3-DDjrwmk8.js +0 -62
  549. package/dist/public/assets/chunk-R7FJI6CG-CyUcfBy5.js +0 -1
  550. package/dist/public/assets/chunk-RM4UPSZO-BW9bukOD.js +0 -35
  551. package/dist/public/assets/chunk-RYQCIY6F-CkLcwkxI.js +0 -1
  552. package/dist/public/assets/chunk-U6XO7XAA-CGgxECrs.js +0 -2
  553. package/dist/public/assets/chunk-UBXNYLIW-BuP-Qxfn.js +0 -1
  554. package/dist/public/assets/chunk-W5SLKNZC-faJAaoHC.js +0 -1
  555. package/dist/public/assets/chunk-WRU74C26-BVn6t_N8.js +0 -70
  556. package/dist/public/assets/chunk-XXDRQBXY-Bl1wINV6.js +0 -1
  557. package/dist/public/assets/chunk-YOTPTUD7-D8ww8CW9.js +0 -1
  558. package/dist/public/assets/chunk-Z5NKEFVG-DZPxFQZ5.js +0 -22
  559. package/dist/public/assets/chunk-ZIRB5QZD-BRs3I_C4.js +0 -32
  560. package/dist/public/assets/circle-alert-g-C_b-Ua.js +0 -1
  561. package/dist/public/assets/classDiagram-JCYQIIEL-VIlpegMN.js +0 -1
  562. package/dist/public/assets/classDiagram-v2-OCEON4UE-BXwQxF7i.js +0 -1
  563. package/dist/public/assets/client-version-CLJgOS1l.js +0 -1
  564. package/dist/public/assets/cm-theme-BAUNpz80.js +0 -1
  565. package/dist/public/assets/cobol-DZLIeBCr.js +0 -1
  566. package/dist/public/assets/code-highlighter-impl-CX4PVgAd.js +0 -1
  567. package/dist/public/assets/coffee-Bl-kuNo5.js +0 -1
  568. package/dist/public/assets/comment-chips-B3gaaRYT.js +0 -5
  569. package/dist/public/assets/config-provider-C-j90g2h.js +0 -5
  570. package/dist/public/assets/cose-bilkent-JH36ORCC-Cuo3l2a6.js +0 -1
  571. package/dist/public/assets/cpp-DUCrPMkz.js +0 -1
  572. package/dist/public/assets/crystal-DXp5UwgU.js +0 -1
  573. package/dist/public/assets/cs-CZ-OFPU5DBV-Ds-08Va-.js +0 -7
  574. package/dist/public/assets/cynefin-VYW2F7L2-6-5v50vu.js +0 -1
  575. package/dist/public/assets/cynefinDiagram-MW4NZA55-D-4AaXUd.js +0 -62
  576. package/dist/public/assets/da-DK-FRDJFYWF-CsgUAQup.js +0 -2
  577. package/dist/public/assets/dagre-B2bpbgWN.js +0 -1
  578. package/dist/public/assets/dagre-VZM6K2ZE-D_Cxd0x7.js +0 -4
  579. package/dist/public/assets/de-CH-ZG7H3QK3-B3tx2jwN.js +0 -11
  580. package/dist/public/assets/de-DE-SIJYH4IH-B25frTmW.js +0 -11
  581. package/dist/public/assets/diagram-7IWD3JNH-7etWbrc8.js +0 -30
  582. package/dist/public/assets/diagram-B4RE2ZJO-DC48tm0t.js +0 -3
  583. package/dist/public/assets/diagram-LBJQPF4R-CFNS_Ekj.js +0 -24
  584. package/dist/public/assets/diagram-Q27KOJAE-C4fM0My-.js +0 -24
  585. package/dist/public/assets/diagram-UB23O5K3-Cj_MQzv-.js +0 -41
  586. package/dist/public/assets/dialog-CCHt-oLh.js +0 -5
  587. package/dist/public/assets/dist-B2hqgN1j.js +0 -19
  588. package/dist/public/assets/dist-B4UQ1jHk.js +0 -6
  589. package/dist/public/assets/dist-BBgXXF91.js +0 -23
  590. package/dist/public/assets/dist-BHeX1K_T2.js +0 -2
  591. package/dist/public/assets/dist-BNAK9cIn.js +0 -1
  592. package/dist/public/assets/dist-BRn6V_mT.js +0 -1
  593. package/dist/public/assets/dist-BamsYfxi.js +0 -1
  594. package/dist/public/assets/dist-BjJaywqn.js +0 -1
  595. package/dist/public/assets/dist-CL8P8PlP.js +0 -9
  596. package/dist/public/assets/dist-CX_PO_27.js +0 -1
  597. package/dist/public/assets/dist-CdhSc3fp.js +0 -124
  598. package/dist/public/assets/dist-CrDOq41p.js +0 -1
  599. package/dist/public/assets/dist-CsTGDHWQ.js +0 -1
  600. package/dist/public/assets/dist-Cxq5_zBE.js +0 -1
  601. package/dist/public/assets/dist-DBMXz-r_.js +0 -1
  602. package/dist/public/assets/dist-DX3X9Ax9.js +0 -1
  603. package/dist/public/assets/dist-Dk_qlbA92.js +0 -1
  604. package/dist/public/assets/dist-lZ4I5dY3.js +0 -1
  605. package/dist/public/assets/dropdown-menu-DYfdElMl.js +0 -1
  606. package/dist/public/assets/ebnfDiagram-BXEA7PRR-C-3ZQEg7.js +0 -1
  607. package/dist/public/assets/edge-DbgzIVWE.js +0 -1
  608. package/dist/public/assets/el-GR-IEE2CGI2-CZsW5pmc.js +0 -7
  609. package/dist/public/assets/elixir-CnOfjrWJ.js +0 -1
  610. package/dist/public/assets/elm-RKFRpR0O.js +0 -1
  611. package/dist/public/assets/en-SJ2YIMFF-DKQt7L_V.js +0 -1
  612. package/dist/public/assets/erDiagram-JOGREHBK-DkEhhtGC.js +0 -85
  613. package/dist/public/assets/erb-Ca-ZfJbt.js +0 -1
  614. package/dist/public/assets/erlang-CAFUxeCA.js +0 -1
  615. package/dist/public/assets/es-ES-TVVPWKV5-B9eAG48C.js +0 -12
  616. package/dist/public/assets/eu-ES-CGBMFQDT-B5DdkkUE.js +0 -8
  617. package/dist/public/assets/eventmodeling-45OFAUF4-CVSrDnLq.js +0 -1
  618. package/dist/public/assets/excalidraw-scene-Beu7eb7a.js +0 -1
  619. package/dist/public/assets/eye-B_gavT2I.js +0 -1
  620. package/dist/public/assets/fa-IR-IE6XAPR4-CY6w2u0M.js +0 -9
  621. package/dist/public/assets/fi-FI-P7TKNHRM-DQ4Y7FW8.js +0 -6
  622. package/dist/public/assets/field-Dq4rVnNT.js +0 -1
  623. package/dist/public/assets/file-tree-adapter-BpMqjQeh.js +0 -1
  624. package/dist/public/assets/flowDiagram-UKHOOZJN-D4TYANY9.js +0 -1
  625. package/dist/public/assets/folder-config-api-BGqXA_Yc.js +0 -1
  626. package/dist/public/assets/folder-open-Do94fvzX.js +0 -1
  627. package/dist/public/assets/fortran-fixed-form-DAlbJzjA.js +0 -1
  628. package/dist/public/assets/fr-FR-QI2XZNT7-Crpp4QlF.js +0 -12
  629. package/dist/public/assets/fsharp-CBE1KNSz.js +0 -1
  630. package/dist/public/assets/ganttDiagram-PKOTCBZU-D1qR0KEc.js +0 -292
  631. package/dist/public/assets/gdresource-DOJHvlWP.js +0 -1
  632. package/dist/public/assets/git-branch-980jD05X.js +0 -1
  633. package/dist/public/assets/git-commit-aOiAcBdu.js +0 -1
  634. package/dist/public/assets/git-rebase-CPHs4Yke.js +0 -1
  635. package/dist/public/assets/gitGraph-TEB2WS4Q-C5MTJyNH.js +0 -1
  636. package/dist/public/assets/gitGraphDiagram-DS77QQ5N-DHsitZ-T.js +0 -106
  637. package/dist/public/assets/gl-ES-TLYCNOZZ-CdjTojN9.js +0 -6
  638. package/dist/public/assets/glimmer-js-CRXkc5JU.js +0 -1
  639. package/dist/public/assets/glimmer-ts-B6h9gbF_.js +0 -1
  640. package/dist/public/assets/glsl-BTs_reRo.js +0 -1
  641. package/dist/public/assets/graphlib-Dqsd0Abe.js +0 -1
  642. package/dist/public/assets/graphql-Bioh40CC.js +0 -1
  643. package/dist/public/assets/hack-DtbZ7zps.js +0 -1
  644. package/dist/public/assets/haml-CTpqIE1V.js +0 -1
  645. package/dist/public/assets/handlebars-BpIl_2f5.js +0 -1
  646. package/dist/public/assets/hash-DasvQ1cj.js +0 -1
  647. package/dist/public/assets/he-IL-ZX43XLGP-CyX54Gp-.js +0 -9
  648. package/dist/public/assets/hi-IN-UTYRMTUF-C51HcuG4.js +0 -3
  649. package/dist/public/assets/highlighted-body-OFNGDK62-ht6RVgg3.js +0 -1
  650. package/dist/public/assets/html-BAFrkEUa.js +0 -1
  651. package/dist/public/assets/html-derivative-D9AAuBSB.js +0 -1
  652. package/dist/public/assets/http-DFqHpt_G.js +0 -1
  653. package/dist/public/assets/hu-HU-AJOSEBW6-DkmNsRd4.js +0 -3
  654. package/dist/public/assets/hurl-BQx3hQVg.js +0 -1
  655. package/dist/public/assets/hxml-uKpDV52M.js +0 -1
  656. package/dist/public/assets/i18n-BDM0SfuE.js +0 -1
  657. package/dist/public/assets/id-ID-ETLTVG6C-5aQNBO4K.js +0 -8
  658. package/dist/public/assets/image-ZVKINSPA-CLWoH_Ud.js +0 -1
  659. package/dist/public/assets/index-DMdVdzZH.js +0 -2204
  660. package/dist/public/assets/info-A3ob83yN.js +0 -1
  661. package/dist/public/assets/info-DKCQHKI2-lSym2dWy.js +0 -1
  662. package/dist/public/assets/infoDiagram-6WML65LV-B_C8HD4U.js +0 -2
  663. package/dist/public/assets/input-group-DBosszKy.js +0 -1
  664. package/dist/public/assets/ishikawaDiagram-WSZJBQD7-D2IvtwFC.js +0 -70
  665. package/dist/public/assets/it-IT-B4B6TP6L-B6OILLSd.js +0 -12
  666. package/dist/public/assets/ja-JP-IYKVURR5-CCLPVj7t.js +0 -12
  667. package/dist/public/assets/jinja-7GLl-wfr.js +0 -1
  668. package/dist/public/assets/jison-DQCVmVOq.js +0 -1
  669. package/dist/public/assets/journeyDiagram-NVQOT4AX-C1II1aDP.js +0 -139
  670. package/dist/public/assets/julia-BVuRnTNO.js +0 -1
  671. package/dist/public/assets/just-BCI7I8i9.js +0 -1
  672. package/dist/public/assets/kaa-SE2BUIKX-D_BpPU6K.js +0 -1
  673. package/dist/public/assets/kab-KAB-Y3GLKXLR-B-15dZJS.js +0 -4
  674. package/dist/public/assets/kanban-definition-27J2QSJJ-BQ_6NSKf.js +0 -89
  675. package/dist/public/assets/kk-KZ-ABWUFVOH-Ws__Ogrv.js +0 -1
  676. package/dist/public/assets/km-KH-PCWDKPHP-BOMlJDFi.js +0 -7
  677. package/dist/public/assets/ko-KR-7JQDXKGM-BdgUUdAa.js +0 -5
  678. package/dist/public/assets/ku-TR-NAH2Q5B7-1bSkaN_S.js +0 -6
  679. package/dist/public/assets/latex-cM8HurNJ.js +0 -1
  680. package/dist/public/assets/launch-agent-thread-CYKu9e2m.js +0 -1
  681. package/dist/public/assets/launcher-selection-Q4ZIQ0VB.js +0 -1
  682. package/dist/public/assets/line-D6SOO9rv.js +0 -1
  683. package/dist/public/assets/linear-wPQKtCnF.js +0 -1
  684. package/dist/public/assets/lint-plugin-meta-BEuBahq9.js +0 -1
  685. package/dist/public/assets/liquid-BRV4ZLC1.js +0 -1
  686. package/dist/public/assets/list-plus-BXaFXlLg.js +0 -1
  687. package/dist/public/assets/local-menu-action-bus-CTOHR9LV.js +0 -1
  688. package/dist/public/assets/lt-LT-VQFYRSNQ-KtnJQAfz.js +0 -3
  689. package/dist/public/assets/lua-sCVHXsMO.js +0 -1
  690. package/dist/public/assets/lv-LV-T62VSYUM-D0O8E4eZ.js +0 -4
  691. package/dist/public/assets/map-DcHdMm3d.js +0 -1
  692. package/dist/public/assets/markdownlint-rule-browser-Dw2Ln--S.js +0 -1
  693. package/dist/public/assets/marko-Cs2EYUIK.js +0 -1
  694. package/dist/public/assets/maximize-2-DGaFLVum.js +0 -1
  695. package/dist/public/assets/mdc-CvIcrggy.js +0 -1
  696. package/dist/public/assets/mermaid-GHXKKRXX-DjWhl1pn.js +0 -1
  697. package/dist/public/assets/mermaid-parser.core-BAVMOY3Z.js +0 -4
  698. package/dist/public/assets/mermaid.core-CaqyUaRU.js +0 -11
  699. package/dist/public/assets/mermaid.core-Daw_cNlC.js +0 -1
  700. package/dist/public/assets/mindmap-definition-FAOFIHXS-1V_AbP5h.js +0 -96
  701. package/dist/public/assets/minus-O6IVpGJy.js +0 -1
  702. package/dist/public/assets/miss-dialog-store-Cj4KLsks.js +0 -1
  703. package/dist/public/assets/mr-IN-V4FHLCJE-C5fH6hQC.js +0 -9
  704. package/dist/public/assets/my-MM-E3SQ6E54-BGXs3N4n.js +0 -1
  705. package/dist/public/assets/nb-NO-MLNOFN5H-B0pEzSe0.js +0 -8
  706. package/dist/public/assets/nextflow-sU2c8xbA.js +0 -1
  707. package/dist/public/assets/nginx-bqL-y6OY.js +0 -1
  708. package/dist/public/assets/nim-6UUVq-Fj.js +0 -1
  709. package/dist/public/assets/nl-NL-D5L3ZV4M-Bxa3ZGio.js +0 -13
  710. package/dist/public/assets/nn-NO-NNHDGPKB-CAWT-HLo.js +0 -4
  711. package/dist/public/assets/now-Ekfly0gU.js +0 -1
  712. package/dist/public/assets/oc-FR-DWCRF55G-B6RHGNZ3.js +0 -4
  713. package/dist/public/assets/ordinal-DXfwmpMf.js +0 -1
  714. package/dist/public/assets/pa-IN-3JSAY44M-BoCSUyIq.js +0 -4
  715. package/dist/public/assets/package-sAzSJkP6.js +0 -1
  716. package/dist/public/assets/packet-7NZHBO7P-Cj6GOHbc.js +0 -1
  717. package/dist/public/assets/page-list-cache-D2uEX_G6.js +0 -1
  718. package/dist/public/assets/panel-right-open-D4enOyq7.js +0 -1
  719. package/dist/public/assets/paperclip-s2F4zVCC.js +0 -1
  720. package/dist/public/assets/pegDiagram-VL7TDLO6-CgpKv1Za.js +0 -1
  721. package/dist/public/assets/pending-receive-nav-store-Cm2ghEBT.js +0 -1
  722. package/dist/public/assets/percentages-ETZPVQEE-DY6QMX5N.js +0 -1
  723. package/dist/public/assets/perl-4F1SMmlk.js +0 -1
  724. package/dist/public/assets/php-BvC598Ja.js +0 -1
  725. package/dist/public/assets/pie-RZYD4A2V-CL7SW8XK.js +0 -1
  726. package/dist/public/assets/pieDiagram-7S7Q4E2Y-Dm6i3Pe4.js +0 -39
  727. package/dist/public/assets/pierre-theme-CQAERd6x.js +0 -1376
  728. package/dist/public/assets/pl-PL-ACURYKP3-GQxCZh8Y.js +0 -12
  729. package/dist/public/assets/prod-BzcoV_nJ.js +0 -137
  730. package/dist/public/assets/progress-BcPvGqGo.js +0 -9
  731. package/dist/public/assets/project-paths-5B1myPxo.js +0 -1
  732. package/dist/public/assets/prop-types-BkTKnQXu.js +0 -1
  733. package/dist/public/assets/pt-BR-LOX7MLGD-wGFpzAj4.js +0 -10
  734. package/dist/public/assets/pt-PT-CZ2U2RFQ-DvKLUZVM.js +0 -12
  735. package/dist/public/assets/pug-D3oCQbst.js +0 -1
  736. package/dist/public/assets/qml-Cjm-DHU5.js +0 -1
  737. package/dist/public/assets/quadrantDiagram-CIZ2JOQS-oFdG2mrD.js +0 -7
  738. package/dist/public/assets/radar-I7S5WNFK-Mfok89Zx.js +0 -1
  739. package/dist/public/assets/railroad-3IZDKUUU-DBr1CHfI.js +0 -1
  740. package/dist/public/assets/railroad-abnf-AHOZXSZD-BItJV2go.js +0 -1
  741. package/dist/public/assets/railroad-ebnf-EBAXGLYW-l2BgVE5Z.js +0 -1
  742. package/dist/public/assets/railroad-peg-LSFZ7HO6-BYigVaia.js +0 -1
  743. package/dist/public/assets/railroadDiagram-AXF67PYL--QxzcfPm.js +0 -1
  744. package/dist/public/assets/razor-C76DVHJc.js +0 -1
  745. package/dist/public/assets/refresh-cw-BO3b6gLF.js +0 -1
  746. package/dist/public/assets/requirementDiagram-LRYGKXZP-RHMTqViv.js +0 -84
  747. package/dist/public/assets/ro-RO-2HECL2X6-DN6B4ALh.js +0 -12
  748. package/dist/public/assets/rst-LtFN2IyT.js +0 -1
  749. package/dist/public/assets/ru-RU-HAYNXO46-DUSY7aVD.js +0 -10
  750. package/dist/public/assets/ruby-C9bw36ef.js +0 -1
  751. package/dist/public/assets/sankeyDiagram-W5VNT64P-DddpCRdP.js +0 -40
  752. package/dist/public/assets/sas-DeeclxhY.js +0 -1
  753. package/dist/public/assets/scss-D5VAatXt.js +0 -1
  754. package/dist/public/assets/select-BL1z9P70.js +0 -1
  755. package/dist/public/assets/selection-context-DuBn-LwJ.js +0 -4
  756. package/dist/public/assets/separator-DmmNuc_B.js +0 -1
  757. package/dist/public/assets/sequenceDiagram-SI44F4Z6-CtoLsO69.js +0 -162
  758. package/dist/public/assets/shaderlab-bEikNDr8.js +0 -1
  759. package/dist/public/assets/shellsession-Cvu_ojql.js +0 -1
  760. package/dist/public/assets/si-LK-W5KNS4H6-uOwuwocF.js +0 -1
  761. package/dist/public/assets/sizeCapture-X5ZJPWSS-LpDT2Zl9.js +0 -1
  762. package/dist/public/assets/sk-SK-7K2CFGDV-1kyGdWyX.js +0 -7
  763. package/dist/public/assets/sl-SI-OXV2QZWW-CIjw8ixJ.js +0 -6
  764. package/dist/public/assets/soy-CHaeJgu1.js +0 -1
  765. package/dist/public/assets/sparql-BE56Jwyw.js +0 -1
  766. package/dist/public/assets/spinner-By93kIxm.js +0 -1
  767. package/dist/public/assets/square-pen-DK8eXxpV.js +0 -1
  768. package/dist/public/assets/src-B5Uf_H4s.js +0 -1
  769. package/dist/public/assets/src-DIFgXKGG.js +0 -2
  770. package/dist/public/assets/stata-C23QKhaM.js +0 -1
  771. package/dist/public/assets/stateDiagram-OKZ733FA-DxxGT47L.js +0 -1
  772. package/dist/public/assets/stateDiagram-v2-UEYNNEHI-DOvRLqD5.js +0 -1
  773. package/dist/public/assets/subset-shared.chunk-DgGRwKqB.js +0 -1
  774. package/dist/public/assets/subset-worker.chunk-DSwIMTnq.js +0 -1
  775. package/dist/public/assets/surrealql-DftfQ14v.js +0 -1
  776. package/dist/public/assets/sv-SE-JTOBZRGL-BiX2hVca.js +0 -12
  777. package/dist/public/assets/svelte-CMBKGfog.js +0 -1
  778. package/dist/public/assets/swimlanes-SLNWSIFB-CYbbcXGA.js +0 -2
  779. package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-Bxm6ckJF.js +0 -8
  780. package/dist/public/assets/ta-IN-KFAVKXGT-DEOAmR7A.js +0 -6
  781. package/dist/public/assets/tag-pill-input-ORi2pYBF.js +0 -1
  782. package/dist/public/assets/target-navigation-intent-BE1C7c1m.js +0 -1
  783. package/dist/public/assets/telemetry-impl-CsxCbiJb.js +0 -2
  784. package/dist/public/assets/telemetry-startup-AfERk07n.js +0 -1
  785. package/dist/public/assets/templ-D27XTJWZ.js +0 -1
  786. package/dist/public/assets/terminal-D4S9lNQf.js +0 -1
  787. package/dist/public/assets/terminal-cli-display-BBkrKOa9.js +0 -1
  788. package/dist/public/assets/terminal-launch-events-Che2grQr.js +0 -1
  789. package/dist/public/assets/terminal-telemetry-z_vfchja.js +0 -1
  790. package/dist/public/assets/tex-BwbHhfC3.js +0 -1
  791. package/dist/public/assets/text-viewer-languages-DE3Z2Ufk.js +0 -2
  792. package/dist/public/assets/th-TH-VDMSCPDL-BkeSIHBW.js +0 -1
  793. package/dist/public/assets/timeline-definition-Z64GVDOM-C4GzWBzu.js +0 -120
  794. package/dist/public/assets/tr-TR-CEZ6GX45-VN7jwMna.js +0 -4
  795. package/dist/public/assets/trash-2-Dxkzm2qO.js +0 -1
  796. package/dist/public/assets/treeView-QDETBFTQ-DBqzMCzp.js +0 -1
  797. package/dist/public/assets/treemap-6X3UGDF4-DUAoR8Ka.js +0 -1
  798. package/dist/public/assets/triangle-alert-CnzPFn6V.js +0 -1
  799. package/dist/public/assets/ts-tags-D4R-SeWh.js +0 -1
  800. package/dist/public/assets/twig-D8ZmVmQZ.js +0 -1
  801. package/dist/public/assets/typing-burst-detector-DvBah6kI.js +0 -8
  802. package/dist/public/assets/uk-UA-Q3H3OXQC-ChSO21wE.js +0 -6
  803. package/dist/public/assets/undo-2-DXBUErQ5.js +0 -1
  804. package/dist/public/assets/uninstall-3URh0Jfo.js +0 -1
  805. package/dist/public/assets/use-activity-panel-J6YD_5i3.js +0 -1
  806. package/dist/public/assets/use-live-xterm-theme-tJoPOgqZ.js +0 -1
  807. package/dist/public/assets/use-open-skill-BZ5jfhYm.js +0 -1
  808. package/dist/public/assets/use-skill-origin-BCC3l5H8.js +0 -1
  809. package/dist/public/assets/use-skills-rVlSdbIJ.js +0 -1
  810. package/dist/public/assets/use-terminal-enabled-C_apLwLM.js +0 -1
  811. package/dist/public/assets/use-timeline-entry-diff-DHdWNXbP.js +0 -6
  812. package/dist/public/assets/uz-UZ-NGCSWWPX-CBUDUwYm.js +0 -1
  813. package/dist/public/assets/vennDiagram-T6HMQDX7-DJN2W4Pg.js +0 -34
  814. package/dist/public/assets/vi-VN-P3NDEVPS-D8Qyi_M6.js +0 -7
  815. package/dist/public/assets/vue-BMLp1n2Z.js +0 -1
  816. package/dist/public/assets/vue-html-D0xhFNLq.js +0 -1
  817. package/dist/public/assets/vue-vine-C8BGMRz4.js +0 -1
  818. package/dist/public/assets/wardley-OPB4EBWU-B1SlbErr.js +0 -1
  819. package/dist/public/assets/wardleyDiagram-T6FBY63Y-dmRQP1PB.js +0 -78
  820. package/dist/public/assets/wrench-X0fcm_5p.js +0 -1
  821. package/dist/public/assets/x-CAqepOgq.js +0 -1
  822. package/dist/public/assets/xml-CDd8lS6Y.js +0 -1
  823. package/dist/public/assets/xsl-DEZEUWOY.js +0 -1
  824. package/dist/public/assets/xychartDiagram-ELKLHX3M-BuKnXHvi.js +0 -7
  825. package/dist/public/assets/zh-CN-SS3O57GA-DvGe3XMm.js +0 -11
  826. package/dist/public/assets/zh-HK-LWJT3VCF-C7bZhVVR.js +0 -1
  827. package/dist/public/assets/zh-TW-VJXC72RT-BAPHxrLc.js +0 -13
  828. package/dist/public/excalidraw-assets/.copied-from-0.18.0-abeeaeb +0 -1
  829. package/dist/repair-launch-json-DgOnb9bU.mjs +0 -2
  830. package/dist/repair-mcp-configs-DjFHp_1V.mjs +0 -2
  831. package/dist/src-BqaoKzJZ.mjs +0 -1
  832. package/dist/src-c0FWVAgC.mjs +0 -20
  833. package/dist/start-CdjYV0Kl.mjs +0 -5
  834. package/dist/start-CvRgHWFa.mjs +0 -1
  835. /package/dist/public/assets/{ActivityPanelDiffView-BAloNqfo.js → ActivityPanelDiffView-B_ukaP-y.js} +0 -0
  836. /package/dist/public/assets/{SkillModeBanner-BjusWgkL.js → SkillModeBanner-DIz5Twrd.js} +0 -0
  837. /package/dist/public/assets/{__vite-browser-external-Bk_TL8Am.js → __vite-browser-external-BrPh1PNv.js} +0 -0
  838. /package/dist/public/assets/{abap-B7F_Y6dg.js → abap-Dvih5Jjx.js} +0 -0
  839. /package/dist/public/assets/{actionscript-3-CqxzDtzN.js → actionscript-3-nhdaN_K9.js} +0 -0
  840. /package/dist/public/assets/{ada-CIijJOPY.js → ada-CBUAtG1u.js} +0 -0
  841. /package/dist/public/assets/{agent-presence-BFDnO46z.js → agent-presence-d6bnVPHl.js} +0 -0
  842. /package/dist/public/assets/{andromeeda-Rf_hXaRf.js → andromeeda-DefWKyap.js} +0 -0
  843. /package/dist/public/assets/{apache-BRikmsZ7.js → apache-D0XPvvwH.js} +0 -0
  844. /package/dist/public/assets/{apex-bgxkKNLa.js → apex-UAODApVK.js} +0 -0
  845. /package/dist/public/assets/{app-menubar-gate-Cv0nKfPN.js → app-menubar-gate-LayRlZaH.js} +0 -0
  846. /package/dist/public/assets/{applescript-Bzri2MxM.js → applescript-Db4AITcV.js} +0 -0
  847. /package/dist/public/assets/{ara-NDWIZniF.js → ara-E8P1gVmT.js} +0 -0
  848. /package/dist/public/assets/{array-DNx71GJU.js → array-CYcNQv0r.js} +0 -0
  849. /package/dist/public/assets/{asciidoc-DLdJTvyP.js → asciidoc-BiByQX-D.js} +0 -0
  850. /package/dist/public/assets/{asm-CbL-kigb.js → asm-C3k7JPeo.js} +0 -0
  851. /package/dist/public/assets/{aurora-x-CMLKGxJw.js → aurora-x-DQ5pBHKR.js} +0 -0
  852. /package/dist/public/assets/{auth-prompt-store-BPHueNTO.js → auth-prompt-store-jon9eRIn.js} +0 -0
  853. /package/dist/public/assets/{awk--d9kl0b1.js → awk-B0gRaS6e.js} +0 -0
  854. /package/dist/public/assets/{ayu-dark-B-kbm2t5.js → ayu-dark-CiOXzLYb.js} +0 -0
  855. /package/dist/public/assets/{ayu-light-BSrxRMQV.js → ayu-light-BWGWIvJb.js} +0 -0
  856. /package/dist/public/assets/{ayu-mirage-D5Z5ARt9.js → ayu-mirage-CGkChjR8.js} +0 -0
  857. /package/dist/public/assets/{badge-DXNaFLJT.js → badge-BRSw5Y8U.js} +0 -0
  858. /package/dist/public/assets/{ballerina-CN4G9Cmy.js → ballerina-BAH22tUM.js} +0 -0
  859. /package/dist/public/assets/{bat--lZWNGXT.js → bat-QFpSaaph.js} +0 -0
  860. /package/dist/public/assets/{beancount-DCzA_G5O.js → beancount-o0D9a_jI.js} +0 -0
  861. /package/dist/public/assets/{berry-Nj9qFwSH.js → berry-CWHkqfBI.js} +0 -0
  862. /package/dist/public/assets/{bibtex-D3y0AjAg.js → bibtex-DwTIWGTx.js} +0 -0
  863. /package/dist/public/assets/{bicep-K2m5GYnp.js → bicep-BscWtLN6.js} +0 -0
  864. /package/dist/public/assets/{bird2-i97Lmq53.js → bird2-B50Atbjz.js} +0 -0
  865. /package/dist/public/assets/{c-PhWlBeZS.js → c-DSkvK-0s.js} +0 -0
  866. /package/dist/public/assets/{c3-CeeLFJG0.js → c3-BEW3aJMb.js} +0 -0
  867. /package/dist/public/assets/{cadence-BBAVsMfY.js → cadence-B-hzp7u4.js} +0 -0
  868. /package/dist/public/assets/{catppuccin-frappe-DkBhCm_h.js → catppuccin-frappe-BNgc1lLk.js} +0 -0
  869. /package/dist/public/assets/{catppuccin-latte-Cjcj58HO.js → catppuccin-latte-DBoROz5K.js} +0 -0
  870. /package/dist/public/assets/{catppuccin-macchiato-DCQlnk4Z.js → catppuccin-macchiato-snV87cjM.js} +0 -0
  871. /package/dist/public/assets/{catppuccin-mocha-CVAP8wGe.js → catppuccin-mocha-DLJVWMCe.js} +0 -0
  872. /package/dist/public/assets/{chunk-KEIR6QF5-B97jNhCw.js → chunk-KEIR6QF5-C1dyLxj_.js} +0 -0
  873. /package/dist/public/assets/{chunk-SRAX5OIU-nZgS_yeN.js → chunk-SRAX5OIU-DUvIeieh.js} +0 -0
  874. /package/dist/public/assets/{chunk-Y2CYZVJY-CTUIHOWN.js → chunk-Y2CYZVJY-Cu5p-GMJ.js} +0 -0
  875. /package/dist/public/assets/{clarity-CEtC166s.js → clarity--J2G5LXo.js} +0 -0
  876. /package/dist/public/assets/{clike-Bwibm8NO.js → clike-CvzqbleC.js} +0 -0
  877. /package/dist/public/assets/{clojure-SVG9YCaX.js → clojure-BcsRuvDU.js} +0 -0
  878. /package/dist/public/assets/{cmake-bXT6_xfB.js → cmake-C-9pZtPW.js} +0 -0
  879. /package/dist/public/assets/{codeowners-CGabm1Rr.js → codeowners-BfPNMNof.js} +0 -0
  880. /package/dist/public/assets/{codeql-BmH9BraG.js → codeql-CUEBlAzH.js} +0 -0
  881. /package/dist/public/assets/{colors-DY6SwyM_.js → colors-gKSsGRom.js} +0 -0
  882. /package/dist/public/assets/{common-lisp-aSvzl7_n.js → common-lisp-7bnb1hJE.js} +0 -0
  883. /package/dist/public/assets/{copilot-DLy2Kvlv.js → copilot-NHFJrAso.js} +0 -0
  884. /package/dist/public/assets/{coq-BptzC0si.js → coq-3itpofU0.js} +0 -0
  885. /package/dist/public/assets/{createLucideIcon-BYL3gqKc.js → createLucideIcon-BulbvLvN.js} +0 -0
  886. /package/dist/public/assets/{csharp-CRlCca3M.js → csharp-Bc9TusF5.js} +0 -0
  887. /package/dist/public/assets/{css-DVo_6oqG.js → css-B-i9uFGn.js} +0 -0
  888. /package/dist/public/assets/{csv-C97I5Rnl.js → csv-DSnMTSCG.js} +0 -0
  889. /package/dist/public/assets/{cue-BUYz6scb.js → cue-DwwbdkQY.js} +0 -0
  890. /package/dist/public/assets/{cursor-BZjrNgR6.js → cursor-D5MuxMm8.js} +0 -0
  891. /package/dist/public/assets/{cypher-BUnfQXCd.js → cypher-CfyqySaz.js} +0 -0
  892. /package/dist/public/assets/{cytoscape.esm-Dy3DzT73.js → cytoscape.esm-n2UlwuBv.js} +0 -0
  893. /package/dist/public/assets/{d-VFtIxq2W.js → d-KpyqreL5.js} +0 -0
  894. /package/dist/public/assets/{dark-plus-D0qIojXN.js → dark-plus-DLjAcrBK.js} +0 -0
  895. /package/dist/public/assets/{dart-DHinhNuu.js → dart-ZiGd43uZ.js} +0 -0
  896. /package/dist/public/assets/{dax-CyDqrrm7.js → dax-dHzIIs0M.js} +0 -0
  897. /package/dist/public/assets/{defaultLocale-4pz4GyJ6.js → defaultLocale-BJEg67zJ.js} +0 -0
  898. /package/dist/public/assets/{desktop-oxfTY-fQ.js → desktop-D-N1Jo72.js} +0 -0
  899. /package/dist/public/assets/{diff-YSi1dXha.js → diff-584ePE70.js} +0 -0
  900. /package/dist/public/assets/{diff-KPRaIRKE.js → diff-D1pWuOOm.js} +0 -0
  901. /package/dist/public/assets/{dist-BEt_n3Bj.js → dist-Cg3AiHws.js} +0 -0
  902. /package/dist/public/assets/{dist-C_J0Iqwf.js → dist-CtxotmOK.js} +0 -0
  903. /package/dist/public/assets/{dist-B4r_A2mw.js → dist-D1K--pI4.js} +0 -0
  904. /package/dist/public/assets/{doc-hash-CbN6l-bN.js → doc-hash-BQrjuwR6.js} +0 -0
  905. /package/dist/public/assets/{doc-paths-Co-S4Nk5.js → doc-paths-F5IsgYj0.js} +0 -0
  906. /package/dist/public/assets/{docker-B39Gr-F8.js → docker-XJKHfbfa.js} +0 -0
  907. /package/dist/public/assets/{documents-fetch-CM9yjwOc.js → documents-fetch-DMG54QRV.js} +0 -0
  908. /package/dist/public/assets/{dotenv-BYD04AoQ.js → dotenv-Bwt3D_YK.js} +0 -0
  909. /package/dist/public/assets/{dracula-DZyo-0X7.js → dracula-q4S-kYGH.js} +0 -0
  910. /package/dist/public/assets/{dracula-soft-ChaveePv.js → dracula-soft-D0DrYIo-.js} +0 -0
  911. /package/dist/public/assets/{dream-maker-AMGEOUKN.js → dream-maker-ylOWnlvn.js} +0 -0
  912. /package/dist/public/assets/{emacs-lisp-aiFNf3TX.js → emacs-lisp-Co_O-Su_.js} +0 -0
  913. /package/dist/public/assets/{engine-compile-DQkU3NTo.js → engine-compile-BfANKtoL.js} +0 -0
  914. /package/dist/public/assets/{everforest-dark-CqnRDJUd.js → everforest-dark-DsqbDDsU.js} +0 -0
  915. /package/dist/public/assets/{everforest-light-CJZnWCKT.js → everforest-light-Cy2ZtjPw.js} +0 -0
  916. /package/dist/public/assets/{external-link-DSbrgMTH.js → external-link-BCU3KUmP.js} +0 -0
  917. /package/dist/public/assets/{fennel-BmDkCPO2.js → fennel-BgyBqGgg.js} +0 -0
  918. /package/dist/public/assets/{file-tree-rename-validation-DkwrQpH8.js → file-tree-rename-validation-BHGFeVe9.js} +0 -0
  919. /package/dist/public/assets/{file-tree-utils-D3vfryrA.js → file-tree-utils-l1rtKsDx.js} +0 -0
  920. /package/dist/public/assets/{fish-DEqoR9OA.js → fish-axVW08sz.js} +0 -0
  921. /package/dist/public/assets/{fluent-CntH-o8L.js → fluent-BomFy9ky.js} +0 -0
  922. /package/dist/public/assets/{form-B5ftalsR.js → form-7WMSa--f.js} +0 -0
  923. /package/dist/public/assets/{format-BgPeaVPK.js → format-DLB5Llo7.js} +0 -0
  924. /package/dist/public/assets/{fortran-free-form-BqSUZAYH.js → fortran-free-form-BbeTRGC0.js} +0 -0
  925. /package/dist/public/assets/{gdscript-B8iuuarp.js → gdscript-CeusV2lP.js} +0 -0
  926. /package/dist/public/assets/{gdshader-1a8pC1pr.js → gdshader-Bui-OSAd.js} +0 -0
  927. /package/dist/public/assets/{genie-TBxVlvgP.js → genie-Cy7kiywH.js} +0 -0
  928. /package/dist/public/assets/{gherkin-uiqYLh9n.js → gherkin-BgVzm7oO.js} +0 -0
  929. /package/dist/public/assets/{gherkin-yK1_QHBI.js → gherkin-DC0xJ0ij.js} +0 -0
  930. /package/dist/public/assets/{github-dark-Dv1ndBbN.js → github-dark-DAVeVioH.js} +0 -0
  931. /package/dist/public/assets/{github-dark-default-hHuYYVlP.js → github-dark-default-hcspuVl4.js} +0 -0
  932. /package/dist/public/assets/{github-dark-dimmed-6Yuj3I95.js → github-dark-dimmed-DzeSH83z.js} +0 -0
  933. /package/dist/public/assets/{github-dark-high-contrast-xkBPZ6Gw.js → github-dark-high-contrast-DlUV5EsX.js} +0 -0
  934. /package/dist/public/assets/{github-light-Cf9qHeGe.js → github-light-CE-qGZlE.js} +0 -0
  935. /package/dist/public/assets/{github-light-default-Cwn7Z2eg.js → github-light-default-D0Kgnr-0.js} +0 -0
  936. /package/dist/public/assets/{github-light-high-contrast-CrnpzxQN.js → github-light-high-contrast-k3vTXEA8.js} +0 -0
  937. /package/dist/public/assets/{gleam-CgOItVyN.js → gleam-Rm0SDdnT.js} +0 -0
  938. /package/dist/public/assets/{gn-DbUvGyfp.js → gn-C0q4CmtD.js} +0 -0
  939. /package/dist/public/assets/{gnuplot-DObIk4zp.js → gnuplot-fkNOd0af.js} +0 -0
  940. /package/dist/public/assets/{go-2gRi5JlD.js → go-B3-qBdvS.js} +0 -0
  941. /package/dist/public/assets/{go-Cc9Pf4kZ.js → go-DNds6fzq.js} +0 -0
  942. /package/dist/public/assets/{groovy-BXb6Fsap.js → groovy-DFy3xlS4.js} +0 -0
  943. /package/dist/public/assets/{gruvbox-dark-hard-Czylenq-.js → gruvbox-dark-hard-AD0OBTHX.js} +0 -0
  944. /package/dist/public/assets/{gruvbox-dark-medium-kWzdTk2g.js → gruvbox-dark-medium-BZucxGgV.js} +0 -0
  945. /package/dist/public/assets/{gruvbox-dark-soft-CLVKUjWR.js → gruvbox-dark-soft-C-zpqBpG.js} +0 -0
  946. /package/dist/public/assets/{gruvbox-light-hard-Be9Z2Eym.js → gruvbox-light-hard-iQE4Lt8A.js} +0 -0
  947. /package/dist/public/assets/{gruvbox-light-medium-D_G8OWSy.js → gruvbox-light-medium-CDz4foGJ.js} +0 -0
  948. /package/dist/public/assets/{gruvbox-light-soft-8xBVRHUS.js → gruvbox-light-soft-7-5g2-32.js} +0 -0
  949. /package/dist/public/assets/{haskell-JZjlb1kT.js → haskell-BtUnZjZ4.js} +0 -0
  950. /package/dist/public/assets/{haxe-DqOeVhdh.js → haxe-DmzRY7W-.js} +0 -0
  951. /package/dist/public/assets/{hcl-Dd1qAGi4.js → hcl-CbHuFGfY.js} +0 -0
  952. /package/dist/public/assets/{hjson-fYKTlYTi.js → hjson-CUAeoX6L.js} +0 -0
  953. /package/dist/public/assets/{hlsl-CxXpO9MY.js → hlsl-DaDEqYZK.js} +0 -0
  954. /package/dist/public/assets/{horizon-I5VVKZBq.js → horizon-DOy1RLPD.js} +0 -0
  955. /package/dist/public/assets/{horizon-bright-Dxnb4dTX.js → horizon-bright-BMtnIH2e.js} +0 -0
  956. /package/dist/public/assets/{houston-DplTFb8b.js → houston-lOgqZz1a.js} +0 -0
  957. /package/dist/public/assets/{hy-DVwCwadn.js → hy-BLoUxnPH.js} +0 -0
  958. /package/dist/public/assets/{image-blob-reduce.esm-BsrpMZ7C.js → image-blob-reduce.esm-DH61DCnh.js} +0 -0
  959. /package/dist/public/assets/{imba-Bf_bC32l.js → imba-DGI-MC9Q.js} +0 -0
  960. /package/dist/public/assets/{ini-DH8NRqmF.js → ini-BDw2N7Ca.js} +0 -0
  961. /package/dist/public/assets/{init-D4gOVDL_.js → init-sStUUVYf.js} +0 -0
  962. /package/dist/public/assets/{input-CUJ5gt4q.js → input-Dsaekkpj.js} +0 -0
  963. /package/dist/public/assets/{isObject-D_TNdrzd.js → isObject-DV6LhAfv.js} +0 -0
  964. /package/dist/public/assets/{java-Bd2TH7WL.js → java-BUgC6oTE.js} +0 -0
  965. /package/dist/public/assets/{javascript-CZOCR3Iu.js → javascript-BvLHDUhW.js} +0 -0
  966. /package/dist/public/assets/{json-C3XLmYL7.js → json-CaEdawYu.js} +0 -0
  967. /package/dist/public/assets/{json5-CGRzUoOY.js → json5-DAXE_28t.js} +0 -0
  968. /package/dist/public/assets/{jsonc-BvZjR-KK.js → jsonc-Vb8TVLzI.js} +0 -0
  969. /package/dist/public/assets/{jsonl-DPvEGY9p.js → jsonl-BCqnnPAN.js} +0 -0
  970. /package/dist/public/assets/{jsonnet-BtgB_xmH.js → jsonnet-CBt4NuBD.js} +0 -0
  971. /package/dist/public/assets/{jssm-ChsTqUyC.js → jssm-CzXlQDQT.js} +0 -0
  972. /package/dist/public/assets/{jsx-BitXevG9.js → jsx-bIz82uLO.js} +0 -0
  973. /package/dist/public/assets/{kanagawa-dragon-BUYksOA8.js → kanagawa-dragon-C7J23AL9.js} +0 -0
  974. /package/dist/public/assets/{kanagawa-lotus-AUrL0bsP.js → kanagawa-lotus-BFtX5XVL.js} +0 -0
  975. /package/dist/public/assets/{kanagawa-wave-BK5w_FWf.js → kanagawa-wave-D3kC3i3O.js} +0 -0
  976. /package/dist/public/assets/{kdl-BaUQOCAD.js → kdl-KYZrUKEf.js} +0 -0
  977. /package/dist/public/assets/{known-skill-dirs-CsDCOBbq.js → known-skill-dirs-H_ICFCVz.js} +0 -0
  978. /package/dist/public/assets/{kotlin-DKmeZuQg.js → kotlin-PTmoAz1a.js} +0 -0
  979. /package/dist/public/assets/{kusto-Bj4i1Yoq.js → kusto-b9_oTSu6.js} +0 -0
  980. /package/dist/public/assets/{laserwave-BlgVET8-.js → laserwave-D9Cewdg3.js} +0 -0
  981. /package/dist/public/assets/{lean-DUgeZ5v-.js → lean-BWgV2bKQ.js} +0 -0
  982. /package/dist/public/assets/{less-Cuxtheqm.js → less-qVDrjjU_.js} +0 -0
  983. /package/dist/public/assets/{libesm-AifqMnJy.js → libesm-DZ8fozZB.js} +0 -0
  984. /package/dist/public/assets/{light-plus-dQzBHFiR.js → light-plus-Cqnl9_64.js} +0 -0
  985. /package/dist/public/assets/{lint-config-client-nUUp3gxC.js → lint-config-client-DdKWnGrT.js} +0 -0
  986. /package/dist/public/assets/{llvm-BTfOAk91.js → llvm-C4HMTyEM.js} +0 -0
  987. /package/dist/public/assets/{log-CBw5AtOH.js → log-BcatQ06l.js} +0 -0
  988. /package/dist/public/assets/{logo-CLm550Hh.js → logo-CyslFRNd.js} +0 -0
  989. /package/dist/public/assets/{lru-string-cache-B0-sPXj-.js → lru-string-cache-NmlEjTUD.js} +0 -0
  990. /package/dist/public/assets/{lua-CW8VWIM3.js → lua-DrO9uFV1.js} +0 -0
  991. /package/dist/public/assets/{luau-0Fs_lOll.js → luau-LKIHsD_a.js} +0 -0
  992. /package/dist/public/assets/{make--Jzu6GzT.js → make-E1ZtvGYs.js} +0 -0
  993. /package/dist/public/assets/{markdown-CPBSohqB.js → markdown-DumcPRWR.js} +0 -0
  994. /package/dist/public/assets/{material-theme-DEvD5UZ4.js → material-theme-BIGknLkf.js} +0 -0
  995. /package/dist/public/assets/{material-theme-darker-CZrxGVe6.js → material-theme-darker-B6FMYeZP.js} +0 -0
  996. /package/dist/public/assets/{material-theme-lighter-CW9JmflO.js → material-theme-lighter-CMme_bLm.js} +0 -0
  997. /package/dist/public/assets/{material-theme-ocean-B93i7uN3.js → material-theme-ocean-AqpOtvzm.js} +0 -0
  998. /package/dist/public/assets/{material-theme-palenight-FaHWd6qe.js → material-theme-palenight-_5EWv78s.js} +0 -0
  999. /package/dist/public/assets/{matlab-DUbfN2P0.js → matlab-3C0SiQgc.js} +0 -0
  1000. /package/dist/public/assets/{mdx-DfeMpyGu.js → mdx-D7EkzknL.js} +0 -0
  1001. /package/dist/public/assets/{mermaid-BpQExIEm.js → mermaid-CYRSQt0H.js} +0 -0
  1002. /package/dist/public/assets/{messages-Yj8SVZjn.js → messages-Bq-E-8-B.js} +0 -0
  1003. /package/dist/public/assets/{messages-Bm1_dKft.js → messages-CPHNHOI0.js} +0 -0
  1004. /package/dist/public/assets/{messages-CgeWrYpD.js → messages-CstFkdfM.js} +0 -0
  1005. /package/dist/public/assets/{messages-D-KzxOns.js → messages-CtI5_sM4.js} +0 -0
  1006. /package/dist/public/assets/{messages-BRuH4eGg.js → messages-CtgFk5dN.js} +0 -0
  1007. /package/dist/public/assets/{messages-BCDzGZ-z.js → messages-DaU7E8X5.js} +0 -0
  1008. /package/dist/public/assets/{messages-CpNH27MF.js → messages-Dpf1HE10.js} +0 -0
  1009. /package/dist/public/assets/{messages-JDwxbJeu.js → messages-Dwt0YY50.js} +0 -0
  1010. /package/dist/public/assets/{messages-BbmzhhGy.js → messages-KpghHzTn.js} +0 -0
  1011. /package/dist/public/assets/{messages-CrOuHdVj.js → messages-U6HCfF5E.js} +0 -0
  1012. /package/dist/public/assets/{messages-BIKExws8.js → messages-vIhyUyEG.js} +0 -0
  1013. /package/dist/public/assets/{messages-Do2oL-dp.js → messages-vvbuhZTe.js} +0 -0
  1014. /package/dist/public/assets/{min-x3trf8Wh.js → min-ClqJjozU.js} +0 -0
  1015. /package/dist/public/assets/{min-dark-ds7OKtpz.js → min-dark-D7p-7t9n.js} +0 -0
  1016. /package/dist/public/assets/{min-light-CvhvAUF7.js → min-light-BGIKEkgx.js} +0 -0
  1017. /package/dist/public/assets/{mipsasm-BPMRTpVR.js → mipsasm-CRz3TFL8.js} +0 -0
  1018. /package/dist/public/assets/{mojo-mqHG_8Zu.js → mojo-DoD1ZoHY.js} +0 -0
  1019. /package/dist/public/assets/{monokai-BLh-8PR2.js → monokai-BpJWOrRH.js} +0 -0
  1020. /package/dist/public/assets/{moonbit-BrcCxAL7.js → moonbit-CpCJTv09.js} +0 -0
  1021. /package/dist/public/assets/{move-z4fznRzz.js → move-CGWLqtLm.js} +0 -0
  1022. /package/dist/public/assets/{narrat-xqb1WNjw.js → narrat-Bu_qLHBD.js} +0 -0
  1023. /package/dist/public/assets/{nextflow-groovy-Coic21px.js → nextflow-groovy-VWqFGsKk.js} +0 -0
  1024. /package/dist/public/assets/{night-owl-Cmhq-RnR.js → night-owl-H7vDxnjx.js} +0 -0
  1025. /package/dist/public/assets/{night-owl-light-M9ihfTXG.js → night-owl-light-BqUNZmcl.js} +0 -0
  1026. /package/dist/public/assets/{nix-CfTyUKg3.js → nix-Bcr32mtF.js} +0 -0
  1027. /package/dist/public/assets/{nord-A6d_L6Cl.js → nord-CzPwz-_a.js} +0 -0
  1028. /package/dist/public/assets/{nushell-_tXIO8Mu.js → nushell-28gNrp73.js} +0 -0
  1029. /package/dist/public/assets/{objective-c-fxpWCyJB.js → objective-c-Cq91hqZ2.js} +0 -0
  1030. /package/dist/public/assets/{objective-cpp-B9X3nKwe.js → objective-cpp-DEiP9Ud8.js} +0 -0
  1031. /package/dist/public/assets/{ocaml-CYpCwFSs.js → ocaml-EL5ZoBHP.js} +0 -0
  1032. /package/dist/public/assets/{odin-DbghylMb.js → odin-DgxosPRA.js} +0 -0
  1033. /package/dist/public/assets/{ok-syntax-theme-COS26B1a.js → ok-syntax-theme-BtQ9vOLf.js} +0 -0
  1034. /package/dist/public/assets/{ok-04mPbAHz.js → ok-vKHvtLsG.js} +0 -0
  1035. /package/dist/public/assets/{one-dark-pro-CaqELo4Z.js → one-dark-pro-CwUtTdhr.js} +0 -0
  1036. /package/dist/public/assets/{one-light-B0L7nP8t.js → one-light-BeThVxzp.js} +0 -0
  1037. /package/dist/public/assets/{openscad-Bfd5iptt.js → openscad-Dm7bwSS3.js} +0 -0
  1038. /package/dist/public/assets/{panel-DEds67m5.js → panel-B1pLAN-t.js} +0 -0
  1039. /package/dist/public/assets/{panzoom.es-BoM-00N2.js → panzoom.es-B-l0-7Yz.js} +0 -0
  1040. /package/dist/public/assets/{pascal-BAUmrnOV.js → pascal-B3UF553c.js} +0 -0
  1041. /package/dist/public/assets/{path-CPUiTFzQ.js → path-DXVvC2_m.js} +0 -0
  1042. /package/dist/public/assets/{pdf-BjH5cynh.js → pdf-BjWRdXQ7.js} +0 -0
  1043. /package/dist/public/assets/{pdf.worker-jlry72Tu.js → pdf.worker-CO0z42s-.js} +0 -0
  1044. /package/dist/public/assets/{perl-TCh9AkO5.js → perl-DdsHnHec.js} +0 -0
  1045. /package/dist/public/assets/{pica-Bul6BynE.js → pica-DgAc-Lr3.js} +0 -0
  1046. /package/dist/public/assets/{pierre-dark-CB7Itgmj.js → pierre-dark-gwf4dUfE.js} +0 -0
  1047. /package/dist/public/assets/{pierre-dark-protanopia-deuteranopia-pO4f3hGn.js → pierre-dark-protanopia-deuteranopia-JDDd3qzd.js} +0 -0
  1048. /package/dist/public/assets/{pierre-dark-soft-CefVsUEh.js → pierre-dark-soft-ClhZr_EP.js} +0 -0
  1049. /package/dist/public/assets/{pierre-dark-tritanopia-ComIQsyj.js → pierre-dark-tritanopia-DKVFmiFF.js} +0 -0
  1050. /package/dist/public/assets/{pierre-dark-vibrant-CTq6Sa-e.js → pierre-dark-vibrant-CE457piL.js} +0 -0
  1051. /package/dist/public/assets/{pierre-light-c5o_H7Dj.js → pierre-light-DUaqiUVo.js} +0 -0
  1052. /package/dist/public/assets/{pierre-light-protanopia-deuteranopia-CJBbHrGe.js → pierre-light-protanopia-deuteranopia-B3B3yJPf.js} +0 -0
  1053. /package/dist/public/assets/{pierre-light-soft-JttgXXbp.js → pierre-light-soft-CbamuIxh.js} +0 -0
  1054. /package/dist/public/assets/{pierre-light-tritanopia-CTXp22X0.js → pierre-light-tritanopia-BegIHr6r.js} +0 -0
  1055. /package/dist/public/assets/{pierre-light-vibrant-CTPd4A4U.js → pierre-light-vibrant-B-v_q9gg.js} +0 -0
  1056. /package/dist/public/assets/{pkl-D1Raamoh.js → pkl-C8QDw0jy.js} +0 -0
  1057. /package/dist/public/assets/{plastic-DOBRIFPi.js → plastic-53oDAgbg.js} +0 -0
  1058. /package/dist/public/assets/{platform-labels-DmyLwrQy.js → platform-labels-C9-TGg63.js} +0 -0
  1059. /package/dist/public/assets/{plsql-K45YPj8B.js → plsql-DlVcoKgQ.js} +0 -0
  1060. /package/dist/public/assets/{po-B8VpnsOH.js → po-Vwx1jtmS.js} +0 -0
  1061. /package/dist/public/assets/{poimandres-Cl0D4D_C.js → poimandres-BoIosKd3.js} +0 -0
  1062. /package/dist/public/assets/{polar-CtoCMCep.js → polar-CnLRLVV6.js} +0 -0
  1063. /package/dist/public/assets/{popover-DoM32eoR.js → popover-Dd5Mp8tK.js} +0 -0
  1064. /package/dist/public/assets/{postcss-IkQtPjAK.js → postcss-ByGTQ12L.js} +0 -0
  1065. /package/dist/public/assets/{powerquery-C8jFjmoo.js → powerquery-DsZ_CfqU.js} +0 -0
  1066. /package/dist/public/assets/{powershell-Bq7yOUp3.js → powershell-DretVBnS.js} +0 -0
  1067. /package/dist/public/assets/{prisma-zztXlC5k.js → prisma-gPsV81C5.js} +0 -0
  1068. /package/dist/public/assets/{prolog-DUTXoi_n.js → prolog-BszjPyMU.js} +0 -0
  1069. /package/dist/public/assets/{properties-C6JlqUYK.js → properties-D3eBXfhu.js} +0 -0
  1070. /package/dist/public/assets/{proto-D9A7v2uW.js → proto-BpatxkPe.js} +0 -0
  1071. /package/dist/public/assets/{puppet-Q6WUQCsq.js → puppet-C2fZ9oU8.js} +0 -0
  1072. /package/dist/public/assets/{purescript-Bv9Fin5-.js → purescript-Dv7eIc67.js} +0 -0
  1073. /package/dist/public/assets/{python-X9bxiKBC.js → python-Bmx6Kg45.js} +0 -0
  1074. /package/dist/public/assets/{qmldir-DEjuifjU.js → qmldir-BzelagoB.js} +0 -0
  1075. /package/dist/public/assets/{qss-CB_rsY2M.js → qss-BxHToEWx.js} +0 -0
  1076. /package/dist/public/assets/{r-BQ61XUt1.js → r-2nfIUiU9.js} +0 -0
  1077. /package/dist/public/assets/{r-bfGeUk5F.js → r-BHsw_UFm.js} +0 -0
  1078. /package/dist/public/assets/{racket-DR9XE678.js → racket-C2p8VPki.js} +0 -0
  1079. /package/dist/public/assets/{raku-DIeRvMME.js → raku-CQK3hGve.js} +0 -0
  1080. /package/dist/public/assets/{receive-store-BQjSh3hv.js → receive-store-C-j1mbmP.js} +0 -0
  1081. /package/dist/public/assets/{red-2Wm7r03G.js → red-BwaXNDPd.js} +0 -0
  1082. /package/dist/public/assets/{reg-BZodVhnT.js → reg-DQMEjeAC.js} +0 -0
  1083. /package/dist/public/assets/{regexp-BLO2r6uV.js → regexp-B7-OUXSR.js} +0 -0
  1084. /package/dist/public/assets/{rel-DBfXZsLw.js → rel-ColsGzrD.js} +0 -0
  1085. /package/dist/public/assets/{riscv-DMoXJcP9.js → riscv-Dnd2IAl0.js} +0 -0
  1086. /package/dist/public/assets/{ron-B7t8_B6-.js → ron-ChYuJ1CE.js} +0 -0
  1087. /package/dist/public/assets/{rose-pine-Bej_3qFk.js → rose-pine-CrA_W0Fc.js} +0 -0
  1088. /package/dist/public/assets/{rose-pine-dawn-DomeE1kn.js → rose-pine-dawn-BvTFGJRo.js} +0 -0
  1089. /package/dist/public/assets/{rose-pine-moon-Dn8dgARE.js → rose-pine-moon-DBHt_oNu.js} +0 -0
  1090. /package/dist/public/assets/{rosmsg-CSuTPVnl.js → rosmsg-CNU3Zl31.js} +0 -0
  1091. /package/dist/public/assets/{rough.esm-PymitDBj.js → rough.esm-W_zK822k.js} +0 -0
  1092. /package/dist/public/assets/{roundRect-BEmpM44f.js → roundRect-Ms3pdLLg.js} +0 -0
  1093. /package/dist/public/assets/{ruby-D3hxKllI.js → ruby-CS9tYfzu.js} +0 -0
  1094. /package/dist/public/assets/{rust-BKZ0ei9R.js → rust-KKs3qDhc.js} +0 -0
  1095. /package/dist/public/assets/{sass-t0ZG6n8e.js → sass-CWxxvcHE.js} +0 -0
  1096. /package/dist/public/assets/{scala-asn9mO8k.js → scala-BfiplW-M.js} +0 -0
  1097. /package/dist/public/assets/{schema-fields-view-intent-CC2U0Dcz.js → schema-fields-view-intent-BEdLgkmF.js} +0 -0
  1098. /package/dist/public/assets/{scheme-BeitcsPX.js → scheme-2151Yq-t.js} +0 -0
  1099. /package/dist/public/assets/{sdbl-D5MTprHp.js → sdbl-B2pa-nyi.js} +0 -0
  1100. /package/dist/public/assets/{share-metadata-rows-l9N1Abdo.js → share-metadata-rows-BqegRhpI.js} +0 -0
  1101. /package/dist/public/assets/{shell-DBJvOCIU.js → shell-CvcE8wG1.js} +0 -0
  1102. /package/dist/public/assets/{shellscript-CS0MpU9F.js → shellscript-BJKrSxdz.js} +0 -0
  1103. /package/dist/public/assets/{skeleton-IXDSleLh.js → skeleton-KziCzCjg.js} +0 -0
  1104. /package/dist/public/assets/{skill-scope-QdZW9jQB.js → skill-scope-DhbCj29F.js} +0 -0
  1105. /package/dist/public/assets/{skills-api-_0gvQ7uH.js → skills-api-BL-MXSMJ.js} +0 -0
  1106. /package/dist/public/assets/{slack-dark-CZbB5TVt.js → slack-dark-D8xiiB5S.js} +0 -0
  1107. /package/dist/public/assets/{slack-ochin-BfkMAwFc.js → slack-ochin-CXgI4r59.js} +0 -0
  1108. /package/dist/public/assets/{smalltalk-CzLfCjUV.js → smalltalk-D1kUL1oa.js} +0 -0
  1109. /package/dist/public/assets/{snazzy-light-DkJhsjEA.js → snazzy-light-CH2ir3aK.js} +0 -0
  1110. /package/dist/public/assets/{solarized-dark-mvextcT9.js → solarized-dark-D_rmsvgT.js} +0 -0
  1111. /package/dist/public/assets/{solarized-light-B7g9n1rJ.js → solarized-light-Dkuxcx-Y.js} +0 -0
  1112. /package/dist/public/assets/{solidity-Bzcwq-hs.js → solidity-ZYuC1PbX.js} +0 -0
  1113. /package/dist/public/assets/{sortable.esm-_XYOlees.js → sortable.esm-BcyLZV4U.js} +0 -0
  1114. /package/dist/public/assets/{splunk-DLphb0RA.js → splunk-DUX8aW9G.js} +0 -0
  1115. /package/dist/public/assets/{sql-BkyzSV9J.js → sql-CNCGWUHM.js} +0 -0
  1116. /package/dist/public/assets/{sql-BUdYgAuy.js → sql-eiW5jin2.js} +0 -0
  1117. /package/dist/public/assets/{src-B5LmWD6e.js → src-D61Kx_9L.js} +0 -0
  1118. /package/dist/public/assets/{ssh-config-C5_vSDFY.js → ssh-config-Db4XKT31.js} +0 -0
  1119. /package/dist/public/assets/{startup-marks-BrgDU-FF.js → startup-marks-CoE2w_93.js} +0 -0
  1120. /package/dist/public/assets/{stex-CO8mFD4t.js → stex-B0if-N0b.js} +0 -0
  1121. /package/dist/public/assets/{stylus--Su7UdeX.js → stylus-D64LWnd0.js} +0 -0
  1122. /package/dist/public/assets/{swift-C5RtnVJD.js → swift-Bd0ajAGC.js} +0 -0
  1123. /package/dist/public/assets/{swift-DxchGxPl.js → swift-Duiz-3G2.js} +0 -0
  1124. /package/dist/public/assets/{synthwave-84-CIZ9Dzoh.js → synthwave-84-USTNRP8w.js} +0 -0
  1125. /package/dist/public/assets/{system-verilog-DJd_VM4L.js → system-verilog-CUTOxWnf.js} +0 -0
  1126. /package/dist/public/assets/{systemd-Cd620qf7.js → systemd-DdZtZzGd.js} +0 -0
  1127. /package/dist/public/assets/{tabs-CGk-Lem4.js → tabs-DOFSRvIk.js} +0 -0
  1128. /package/dist/public/assets/{talonscript-C6n820U_.js → talonscript-HawFkh7U.js} +0 -0
  1129. /package/dist/public/assets/{tasl-CkEqu_M1.js → tasl-BlSbSMLQ.js} +0 -0
  1130. /package/dist/public/assets/{tcl-CJMqCrmQ.js → tcl-C-as2LPh.js} +0 -0
  1131. /package/dist/public/assets/{terminal-command-events-De5Ifk_s.js → terminal-command-events-C9Af46Gh.js} +0 -0
  1132. /package/dist/public/assets/{terraform-CJeinmur.js → terraform-Fch_9-C1.js} +0 -0
  1133. /package/dist/public/assets/{textarea-BlVs71hx.js → textarea-Bv8SxKZ3.js} +0 -0
  1134. /package/dist/public/assets/{thread-client-Cww-A_o6.js → thread-client-CVJKg0IF.js} +0 -0
  1135. /package/dist/public/assets/{timeline-diff-store-CdyjyOp2.js → timeline-diff-store-CIr5jvOb.js} +0 -0
  1136. /package/dist/public/assets/{tokyo-night-DKV0i25T.js → tokyo-night-COvs1bWK.js} +0 -0
  1137. /package/dist/public/assets/{toml-DUS-uie-.js → toml-BBW-YxMg.js} +0 -0
  1138. /package/dist/public/assets/{toml-D9iZU0lq.js → toml-BxCaMmLI.js} +0 -0
  1139. /package/dist/public/assets/{tool-list-format-B0ec_7sK.js → tool-list-format-CD59hD1v.js} +0 -0
  1140. /package/dist/public/assets/{tsv-BjMD-rgC.js → tsv-BMJMcIml.js} +0 -0
  1141. /package/dist/public/assets/{tsx-B0YyuJfA.js → tsx-D4wzBTDa.js} +0 -0
  1142. /package/dist/public/assets/{turtle-DINvzTQp.js → turtle-DPLq4ce5.js} +0 -0
  1143. /package/dist/public/assets/{typescript-BvTmagZY.js → typescript-DDTNVPwO.js} +0 -0
  1144. /package/dist/public/assets/{typespec-D8JR2guc.js → typespec-DLqYqoto.js} +0 -0
  1145. /package/dist/public/assets/{typst-avMnPV69.js → typst--rj1ntZE.js} +0 -0
  1146. /package/dist/public/assets/{use-apply-config-color-theme-B7J-6HE8.js → use-apply-config-color-theme-BCmZu_vB.js} +0 -0
  1147. /package/dist/public/assets/{use-collab-url-2h75iiK6.js → use-collab-url-Bm6bSzkW.js} +0 -0
  1148. /package/dist/public/assets/{use-conflicts-aEERGkga.js → use-conflicts-DM3SSc_Z.js} +0 -0
  1149. /package/dist/public/assets/{use-workspace-BzePm1UL.js → use-workspace-BsyHB7f5.js} +0 -0
  1150. /package/dist/public/assets/{useLintConfigViewMode-B1AUcWg_.js → useLintConfigViewMode-D913dlq-.js} +0 -0
  1151. /package/dist/public/assets/{v-CPTrpd8n.js → v-BoWMEvA1.js} +0 -0
  1152. /package/dist/public/assets/{vala-DRdQ5Iel.js → vala-AEbZe7PB.js} +0 -0
  1153. /package/dist/public/assets/{vb-BV3rAAxF.js → vb-4kCtjpdf.js} +0 -0
  1154. /package/dist/public/assets/{verilog-BHwQnzmI.js → verilog-DDTv2xcv.js} +0 -0
  1155. /package/dist/public/assets/{vesper-BjaGi8Rl.js → vesper-Bm0DrqBe.js} +0 -0
  1156. /package/dist/public/assets/{vhdl-HggOQuPz.js → vhdl-D43t2aU8.js} +0 -0
  1157. /package/dist/public/assets/{viml-CNr-Bj6Q.js → viml-7k8goPHf.js} +0 -0
  1158. /package/dist/public/assets/{vitesse-black-UFUHYZOi.js → vitesse-black-Bu9vbc7o.js} +0 -0
  1159. /package/dist/public/assets/{vitesse-dark-9SuNhqla.js → vitesse-dark-CyFTaI66.js} +0 -0
  1160. /package/dist/public/assets/{vitesse-light-CkuFARs9.js → vitesse-light-DLY-UHGG.js} +0 -0
  1161. /package/dist/public/assets/{vyper-DYMl3ZVz.js → vyper-cjZzBeRA.js} +0 -0
  1162. /package/dist/public/assets/{wasm-BeTBJmtX.js → wasm-DBfRs-8a.js} +0 -0
  1163. /package/dist/public/assets/{wasm-pE0h2nPb.js → wasm-DeYoUErr.js} +0 -0
  1164. /package/dist/public/assets/{wenyan-DzYi3FsB.js → wenyan-NGcNUNfV.js} +0 -0
  1165. /package/dist/public/assets/{wgsl-vXrXZ2k-.js → wgsl-Bci5LoTF.js} +0 -0
  1166. /package/dist/public/assets/{wikitext-BW3gGb1i.js → wikitext-CgON_g8D.js} +0 -0
  1167. /package/dist/public/assets/{wit-BG_nO3uR.js → wit-DAtKCZ_Y.js} +0 -0
  1168. /package/dist/public/assets/{wolfram-TZsfMO7V.js → wolfram-DA8UWlNN.js} +0 -0
  1169. /package/dist/public/assets/{workspace-paths-hw0bowEX.js → workspace-paths-CAsMig07.js} +0 -0
  1170. /package/dist/public/assets/{yaml-Bkc3eLkv.js → yaml-BI3K8JtX.js} +0 -0
  1171. /package/dist/public/assets/{zenscript-DXCoB67p.js → zenscript-B__D5yQG.js} +0 -0
  1172. /package/dist/public/assets/{zig-CvoE9o0e.js → zig-C-UrUKEM.js} +0 -0
@@ -869,7 +869,7 @@ Homepage: https://github.com/gr2m/before-after-hook
869
869
 
870
870
  Copyright 2018 Gregor Martynus and other contributors.
871
871
 
872
- ### `browser-fs-access@0.38.0`
872
+ ### `browser-fs-access@0.29.1`
873
873
  Homepage: https://github.com/GoogleChromeLabs/browser-fs-access#readme
874
874
 
875
875
  _(LICENSE template present but no copyright line filled in; refer to the package source for canonical attribution.)_
@@ -1351,17 +1351,7 @@ Homepage: https://github.com/clauderic/dnd-kit
1351
1351
 
1352
1352
  Copyright (c) 2021, Claudéric Demers
1353
1353
 
1354
- ### `@excalidraw/common@0.18.0-abeeaeb`
1355
- Homepage: https://github.com/excalidraw/excalidraw
1356
-
1357
- _(No LICENSE file in package; SPDX identifier in `package.json` is the sole declared grant.)_
1358
-
1359
- ### `@excalidraw/element@0.18.0-abeeaeb`
1360
- Homepage: https://github.com/excalidraw/excalidraw
1361
-
1362
- _(No LICENSE file in package; SPDX identifier in `package.json` is the sole declared grant.)_
1363
-
1364
- ### `@excalidraw/excalidraw@0.18.0-abeeaeb`
1354
+ ### `@excalidraw/excalidraw@0.18.1`
1365
1355
  Homepage: https://github.com/excalidraw/excalidraw/tree/master/packages/excalidraw
1366
1356
 
1367
1357
  _(No LICENSE file in package; SPDX identifier in `package.json` is the sole declared grant.)_
@@ -1375,11 +1365,6 @@ Homepage: https://github.com/danestves/markdown-to-text.git
1375
1365
 
1376
1366
  Copyright (c) 2020 Daniel Esteves
1377
1367
 
1378
- ### `@excalidraw/math@0.18.0-abeeaeb`
1379
- Homepage: https://github.com/excalidraw/excalidraw
1380
-
1381
- _(No LICENSE file in package; SPDX identifier in `package.json` is the sole declared grant.)_
1382
-
1383
1368
  ### `@excalidraw/mermaid-to-excalidraw@2.2.2`
1384
1369
 
1385
1370
  Copyright (c) 2023 Excalidraw
@@ -4744,6 +4729,11 @@ Homepage: https://github.com/sindresorhus/open
4744
4729
 
4745
4730
  Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4746
4731
 
4732
+ ### `open-color@1.9.1`
4733
+ Homepage: https://github.com/yeun/open-color
4734
+
4735
+ Copyright (c) 2016 heeyeun
4736
+
4747
4737
  ### `ora@8.2.0`
4748
4738
  Homepage: https://github.com/sindresorhus/ora
4749
4739
 
@@ -6644,7 +6634,7 @@ Copyright (c) 2015, Yeoman team
6644
6634
 
6645
6635
  The following packages are under licenses that do not require attribution (BlueOak-1.0.0, 0BSD, WTFPL, Unlicense, CC0-1.0). Listed for completeness and traceability.
6646
6636
 
6647
- - `@excalidraw/fractional-indexing@0.18.0-abeeaeb` — CC0-1.0
6637
+ - `fractional-indexing@3.2.0` — CC0-1.0
6648
6638
  - `isexe@3.1.5` — BlueOak-1.0.0
6649
6639
  - `minimatch@10.2.5` — BlueOak-1.0.0
6650
6640
  - `robust-predicates@3.0.3` — Unlicense
@@ -0,0 +1,7 @@
1
+ import{Ct as e}from"./sleep-CFk6IVkN.mjs";import{Bi as t}from"./src-DjN4slzL.mjs";import{I as n,N as r,P as i}from"./fs-traced-C8gNIaHq.mjs";import{b as a,g as o,m as s,p as c,s as l}from"./resolve-project-root-CE3DfbZs.mjs";import{S as ee,T as u,d as te,o as d,v as f,x as ne}from"./init-BPjcery5.mjs";import{t as p}from"./is-object-Bw0-z8qH.mjs";import{execFileSync as m,spawn as h}from"node:child_process";import{basename as re,dirname as g,join as _,resolve as ie,win32 as v}from"node:path";import{existsSync as y,mkdirSync as b,readFileSync as x,readdirSync as ae,statSync as oe,writeFileSync as se}from"node:fs";import{homedir as S}from"node:os";var C=e();const w=`open-knowledge`;function T(e){try{e()}catch{}}var E=class{backend=`keyring`;constructor(e){this.onKeychainRead=e}async get(e){let{Entry:t}=await import(`@napi-rs/keyring`),n;try{n=new t(w,e).getPassword()}catch(t){return T(()=>this.onKeychainRead?.({kind:`read-error`,host:e,error:t instanceof Error?t.name:`unknown`})),null}if(n==null)return T(()=>this.onKeychainRead?.({kind:`absent`,host:e})),null;try{return JSON.parse(n)}catch{return T(()=>this.onKeychainRead?.({kind:`corrupt-entry`,host:e,error:`corrupt-entry`})),null}}async set(e,t,n,r){let{Entry:i}=await import(`@napi-rs/keyring`),a=new i(w,e),o={login:t,token:n,...r};a.setPassword(JSON.stringify(o))}async clear(e){let{Entry:t}=await import(`@napi-rs/keyring`);try{new t(w,e).deletePassword()}catch{}}},D=class{backend=`file`;authFile;constructor(e){this.authFile=e??_(S(),`.ok`,`auth.yml`)}read(){if(!y(this.authFile))return{};try{return(0,C.parse)(x(this.authFile,`utf-8`))??{}}catch(e){let t=e instanceof Error?e.message:`unknown error`;return process.stderr.write(`[auth] Failed to parse ${this.authFile}: ${t}. Starting with empty credentials.\n`),{}}}write(e){let t=g(this.authFile);y(t)||b(t,{recursive:!0,mode:448}),se(this.authFile,(0,C.stringify)(e),{mode:384})}async get(e){return this.read()[e]??null}async set(e,t,n,r){let i=this.read();i[e]={login:t,token:n,...r},this.write(i)}async clear(e){let t=this.read();delete t[e],this.write(t)}},ce=class{backend=`keyring`;constructor(e,t){this.keychain=e,this.file=t}async get(e){let t=await this.keychain.get(e);if(t!=null)return t;let n=await this.file.get(e);if(n==null)return null;try{await this.keychain.set(e,n.login,n.token,{gitProtocol:n.gitProtocol,name:n.name,email:n.email}),await this.file.clear(e),process.stderr.write(`[auth] migrated ${e} credential from ~/.ok/auth.yml to the OS keychain\n`)}catch{}return n}set(e,t,n,r){return this.keychain.set(e,t,n,r)}async clear(e){await this.keychain.clear(e),await this.file.get(e)!=null&&await this.file.clear(e)}};async function O(e,t){try{let{Entry:n}=await import(`@napi-rs/keyring`);return new n(w,`__probe__`),process.stderr.write(`[auth] token storage: OS keychain
2
+ `),T(()=>t?.onBackendSelected?.({backend:`keyring`})),new ce(new E(t?.onKeychainRead),new D(e))}catch(n){let r=n instanceof Error?`${n.name}: ${n.message}`:String(n);return process.stderr.write(`[auth] token storage: file (~/.ok/auth.yml) — OS keychain unavailable: ${r}\n`),T(()=>t?.onBackendSelected?.({backend:`file`,reason:r})),new D(e)}}function k(e){let t=null;return function(){if(t)return t;let n=2e3;return t=(async()=>{let t=null,r=new Promise(r=>{t=setTimeout(()=>{process.stderr.write(`[auth] token storage: keyring init exceeded ${n}ms; falling back to file (~/.ok/auth.yml)\n`),r(new D(e))},n)});try{return await Promise.race([O(e),r])}catch{return new D(e)}finally{t!==null&&clearTimeout(t)}})(),t}}function le(e){let t=k(e);return{async get(e){let n=await(await t()).get(e);return n===null?null:{token:n.token,login:n.login}}}}function ue(e){let t=k(e);return{backend:`file`,async get(e){return(await t()).get(e)},async set(e,n,r,i){return(await t()).set(e,n,r,i)},async clear(e){return(await t()).clear(e)}}}async function de(e,t){let n=[],r=new D(t);await r.get(e)!=null&&(await r.clear(e),n.push(`file`));let i;try{let{Entry:t}=await import(`@napi-rs/keyring`);new t(w,`__probe__`);let r,a=await new E(e=>{e.kind===`read-error`&&(r=e.error??`read-error`)}).get(e);if(r!==void 0)i=r;else if(a!=null)try{new t(w,e).deletePassword(),n.push(`keychain`)}catch(e){i=e instanceof Error?e.name:`delete-error`}}catch{}return{touched:n,keychainError:i}}const fe=[`/opt/homebrew/bin/gh`,`/usr/local/bin/gh`,`/opt/local/bin/gh`,`/snap/bin/gh`,`/usr/bin/gh`],A={encoding:`utf-8`,stdio:[`ignore`,`pipe`,`pipe`],timeout:5e3,windowsHide:!0};function j(e,t={}){let{login:n}=t,r=t._exec??m,i=M(t._fileExists??y),a=e?[`--hostname`,e]:[];if(n){let e=N(r,i,[`auth`,`token`,...a,`--user`,n]);if(e)return{available:!0,token:e,resolvedLogin:n,fallback:!1}}let o=N(r,i,[`auth`,`token`,...a]);return o?n?{available:!0,token:o,fallback:!0}:{available:!0,token:o}:{available:!1}}function M(e){return[`gh`,...fe.filter(e)]}function N(e,t,n){for(let r of t)try{let t=e(r,n,A).toString().trim();if(t.length>0)return t}catch{}}function P(e,t={}){let n=t._exec??m,r=M(t._fileExists??y),i=[`auth`,`status`,...e?[`--hostname`,e]:[]],a=N(n,r,[...i,`--json`,`hosts`]);if(a!==void 0){let t=I(a,e);if(t)return t}let o=N(n,r,i);if(o!==void 0){let e=V(o);if(e.length>0)return e}}function F(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function I(e,t){let n;try{n=JSON.parse(e)}catch{return}let r=F(F(n)?.hosts);if(!r||t!==void 0&&r[t]===void 0)return;let i=t===void 0?Object.values(r):[r[t]],a=[];for(let e of i){if(!Array.isArray(e))return;for(let t of e){let e=F(t);if(!e)continue;let n=e.login;typeof n!=`string`||n.length===0||a.push({login:n,active:e.active===!0})}}return a}const L=/Logged in to \S+ account (\S+) \(/,R=/(?:Failed to log in to|Timeout trying to log in to) \S+/,z=/^\s*-\s*Active account:\s*true\s*$/,B=/\u001b\[[0-9;]*m/g;function V(e){let t=[],n;for(let r of e.split(`
3
+ `)){let e=r.replace(B,``),i=L.exec(e)?.[1];if(i){n={login:i,active:!1},t.push(n);continue}if(R.test(e)){n=void 0;continue}n&&z.test(e)&&(n.active=!0)}return t}function pe(e){let t={...e};return delete t.ELECTRON_RUN_AS_NODE,t}function H(e){let t=e?.code;return t===`ENOENT`||t===`EACCES`||t===`EPERM`?{ok:!1,reason:`not-installed`}:{ok:!1,reason:`spawn-error`}}function U(e){return t({detached:!0,stdio:`ignore`,shell:!1,env:pe(e)})}function W(e,t,n={}){let r=(n.spawn??h)(e,[...t],U(n.env??process.env));return r.unref(),r}function me(e,t,n={}){let r=n.spawn??h,i=n.timeoutMs??2e3;return new Promise(a=>{let o=!1,s=e=>{o||(o=!0,a(e))},c=setTimeout(()=>s({ok:!1,reason:`timeout`}),i);try{let i=r(e,[...t],U(n.env??process.env));i.once(`error`,e=>{clearTimeout(c),s(H(e))}),i.once(`spawn`,()=>{clearTimeout(c),s({ok:!0})});try{i.unref()}catch{}}catch(e){clearTimeout(c),s(H(e))}})}const G=`com.inkeep.open-knowledge`,K=`OpenKnowledge.app`,q=`/Applications/${K}`;function he(){return{platform:process.platform,env:process.env,execPath:process.execPath,isTTY:process.stdout.isTTY,statSync:e=>{try{return oe(e,{throwIfNoEntry:!1})??null}catch{return null}}}}function ge(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`){let t=/(.+?\.app)\/Contents\/MacOS\//.exec(e.execPath);if(t?.[1])return t[1]}if(J(e,q))return q;let t=_(e.homeDir??S(),`Applications`,K);return J(e,t)?t:null}function J(e,t){return Y(e,_(t,`Contents`,`MacOS`,`OpenKnowledge`))}function Y(e,t){try{let n=e.statSync(t);return n&&typeof n.isFile==`function`?n.isFile():!1}catch{return!1}}const _e=[`@inkeepopen-knowledge-desktop`,`OpenKnowledge`];function ve(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`&&/\\OpenKnowledge\.exe$/i.test(e.execPath))return e.execPath;let t=e.env.LOCALAPPDATA;if(t)for(let n of _e){let r=v.join(t,`Programs`,n,`OpenKnowledge.exe`);if(Y(e,r))return r}return null}function ye(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`&&e.execPath.endsWith(`/openknowledge`))return e.execPath;let t=`/opt/OpenKnowledge/openknowledge`;return Y(e,t)?t:null}function be(e){if(e.env.OK_FORCE_BROWSER===`1`)return{available:!1,reason:`force-browser`};if(e.platform!==`darwin`&&e.platform!==`win32`&&e.platform!==`linux`)return{available:!1,reason:`unsupported-platform`};let t;try{t=e.platform===`darwin`?ge(e):e.platform===`win32`?ve(e):ye(e)}catch{return{available:!1,reason:`stat-error`}}return t?e.env.OK_FORCE_DESKTOP===`1`?{available:!0,reason:`available`,bundlePath:t}:!(e.isTTY===!0||e.platform===`win32`&&e.isTTY===void 0&&!e.env.CI)||e.env.SSH_CONNECTION||e.env.SSH_TTY||e.platform===`linux`&&!e.env.DISPLAY&&!e.env.WAYLAND_DISPLAY?{available:!1,reason:`headless`,bundlePath:t}:{available:!0,reason:`available`,bundlePath:t}:{available:!1,reason:`no-bundle`}}function xe(e,t){let n=e.log??(e=>console.error(e)),r=e.platform??process.platform;if(n("Launching OpenKnowledge desktop (use `ok start` for the browser server, or `OK_FORCE_BROWSER=1` to always skip)"),r===`darwin`){W(`open`,[`-b`,G],{spawn:e.spawn});return}let i=t?.bundlePath;if(!i){n(`Desktop launch skipped: no resolved desktop executable (caller bug).`);return}W(i,[],{spawn:e.spawn})}function Se(e=`no-bundle`){switch(e){case`no-bundle`:return`Desktop app not found (checked the standard install locations for this OS). Install it from https://openknowledge.ai/download, or omit --mode for browser mode.`;case`darwin-only`:case`unsupported-platform`:return`Desktop app is not available on this platform. Use --mode=browser, or omit --mode for the server fallback.`;case`headless`:return`Desktop launch is gated in headless contexts (CI, SSH, non-TTY stdout). Set OK_FORCE_DESKTOP=1 to override, or use --mode=browser.`;case`force-browser`:return`OK_FORCE_BROWSER=1 is set — desktop dispatch is disabled. Unset it to use --mode=app.`;case`stat-error`:return`Failed to inspect the desktop install (filesystem error). Check permissions or use --mode=browser.`;case`available`:return`Desktop app appears available but launch dispatch did not fire (caller bug).`}}function X(e,t){let n=ie(e),r=t===void 0?a():a({home:t,env:{}});return{cwd:n,bridgePath:l.pi.projectConfigPath?.(n)??``,trustPath:_(r,`trust.json`)}}function Z(e,t,n){let r=d(l.pi,e,n,t);if(r.kind===`absent`)return{state:`absent`,text:null};if(r.kind!==`present`)return{state:`unreadable`,text:null};let i=r.entry,a=Array.isArray(i.args)&&typeof i.args[0]==`string`?i.args[0]:null;return s(i)?{state:`own-current`,text:a}:ee(i)?{state:`own-stale`,text:a}:{state:`foreign`,text:a}}function Q(e,t){let n;try{n=x(e,`utf-8`)}catch(e){let t=e.code;return t===`ENOENT`||t===`ENOTDIR`?{state:`untrusted`,entries:{},trailingNewline:!1}:{state:`unreadable`,entries:null,trailingNewline:!1}}if(n.trim()===``)return{state:`untrusted`,entries:{},trailingNewline:!1};let r;try{r=JSON.parse(n)}catch{return{state:`unreadable`,entries:null,trailingNewline:!1}}return p(r)?{state:r[t]===!0?`trusted`:`untrusted`,entries:r,trailingNewline:n.endsWith(`
4
+ `)}:{state:`unreadable`,entries:null,trailingNewline:!1}}function Ce(e,t){let n=X(e,t),r=Z(n.cwd,n.bridgePath,t).state,i=Q(n.trustPath,n.cwd).state;return{...n,bridge:r,trust:i,bridgeLoadable:(r===`own-current`||r===`own-stale`)&&i===`trusted`,otherExtensions:$(n.bridgePath).names}}function $(e){let t=g(e),n=re(e);try{return{names:ae(t).filter(e=>e!==n&&e.endsWith(`.ts`)).sort(),verified:!0}}catch(e){let t=e.code;return{names:[],verified:t===`ENOENT`||t===`ENOTDIR`}}}async function we(e,t={mode:`published`},n){let r=X(e,n),i=Z(r.cwd,r.bridgePath,n);if(i.state===`foreign`)return{...r,ok:!1,bridge:`refused-foreign`,trust:`skipped`};if(i.state===`unreadable`)return{...r,ok:!1,bridge:`refused-unreadable`,trust:`skipped`};let a;if(i.state===`absent`)a=`written`;else{let e;try{e=ne(t)}catch{e=void 0}a=e!==void 0&&i.text===e?`unchanged`:`refreshed`}if(a!==`unchanged`){let e=f(l.pi,r.cwd,t,n,r.bridgePath);if(e.action!==`written`&&e.action!==`overwritten`)return{...r,ok:!1,bridge:`failed`,trust:`skipped`,error:e.error??`bridge write ${e.action}`}}let o=await Te(r.trustPath,r.cwd);return{...r,ok:o.action===`already-trusted`||o.action===`added`,bridge:a,trust:o.action,...o.error===void 0?{}:{error:o.error}}}async function Te(e,t){try{b(g(e),{recursive:!0})}catch(e){return{action:`failed`,error:e instanceof Error?e.message:String(e)}}let i={action:`added`};try{await r(`${e}.lock`,async()=>{let r=Q(e,t);if(r.state===`trusted`){i.action=`already-trusted`;return}if(r.entries===null){i.action=`refused-unreadable`;return}let a={...r.entries,[t]:!0},o=JSON.stringify(a,null,2)+(r.trailingNewline?`
5
+ `:``),s=u(e);n(e,o,s===void 0?void 0:{mode:s}),i.action=`added`})}catch(e){return{action:`failed`,error:e instanceof Error?e.message:String(e)}}return i.action===`refused-unreadable`?{action:`refused-unreadable`,error:`trust store is not a readable JSON object`}:{action:i.action}}function Ee(e,t){let r=X(e,t),a=$(r.bridgePath);if(!a.verified)return{action:`kept-unverified`,error:`could not read the Pi extensions folder`};if(a.names.length>0)return{action:`kept-shared`};if(!y(r.trustPath))return{action:`not-present`};let o={action:`removed`};try{i(`${r.trustPath}.lock`,()=>{let e=Q(r.trustPath,r.cwd);if(e.entries===null){o.action=e.state===`unreadable`?`refused-unreadable`:`not-present`;return}if(!(r.cwd in e.entries)){o.action=`not-present`;return}let t={...e.entries};delete t[r.cwd];let i=JSON.stringify(t,null,2)+(e.trailingNewline?`
6
+ `:``),a=u(r.trustPath);n(r.trustPath,i,a===void 0?void 0:{mode:a}),o.action=`removed`})}catch(e){return{action:`failed`,error:e instanceof Error?e.message:String(e)}}return o.action===`refused-unreadable`?{action:`refused-unreadable`,error:`trust store is not a readable JSON object`}:{action:o.action}}function De(e){return e===`opencode`?o:c}function Oe(e,t,n){let r=l[e],i=De(e),a=[],o=r.projectConfigPath?.(t);o!==void 0&&a.push({scope:`project`,configPath:o});try{a.push({scope:`user`,configPath:r.configPath(t,n)})}catch{}for(let o of a){let a=te(r,t,n,o.configPath);if(a!==null&&i(a))return{editorId:e,scope:o.scope,configPath:o.configPath}}return null}export{ue as _,G as a,xe as c,me as d,j as f,le as g,O as h,Ee as i,Se as l,de as m,we as n,he as o,P as p,Ce as r,be as s,Oe as t,W as u};
7
+ //# sourceMappingURL=acp-harness-probe-DPsqUdRT.mjs.map
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{o as e}from"./chunk-DTipWd-i.mjs";import{Ao as t,Cs as n,Di as r,Ei as i,Go as a,Hs as o,P as s,Ro as c,Ti as l,Uo as u,Xi as d,Yi as f,Yo as p,Zs as m,a as h,as as g,da as _,do as v,es as y,et as b,fo as x,ic as S,is as ee,ji as te,ko as C,o as ne,po as re,ps as ie,us as ae,vo as oe,wi as se}from"./src-CDcerRX2.mjs";import{At as w,Ct as ce,It as le,Kt as ue,Lt as de,M as fe,Ot as pe,R as me,Rt as he,Ut as T,Xt as ge,a as _e,d as ve,j as ye,kt as E,l as be,ln as xe,m as Se,wt as Ce,y as D,zt as O}from"./sleep-CFk6IVkN.mjs";import{$t as we,Ai as Te,B as Ee,Bi as k,Ci as De,Cn as Oe,Cr as ke,D as Ae,Dr as je,En as Me,Er as Ne,Fa as Pe,Fi as Fe,Hr as Ie,Ia as Le,Jr as Re,Mi as ze,Na as Be,Ni as Ve,O as He,Pa as Ue,Q as We,Qr as Ge,Qt as Ke,R as qe,Sr as Je,St as Ye,V as Xe,Vr as Ze,Zr as Qe,_t as $e,a as et,an as tt,ar as nt,b as rt,bn as it,di as at,dt as ot,en as st,et as ct,fi as lt,g as ut,gt as dt,ht as ft,i as pt,ji as mt,kr as ht,lt as gt,mt as _t,n as vt,ni as yt,nt as bt,on as xt,pi as A,pn as St,pt as Ct,r as wt,ri as Tt,rt as Et,s as Dt,st as Ot,tn as kt,tt as At,ut as jt,vt as Mt,wr as Nt,xr as Pt,yt as Ft,z as It,zr as Lt}from"./src-DjN4slzL.mjs";import{A as Rt,D as zt,I as Bt,L as Vt,j as Ht}from"./fs-traced-C8gNIaHq.mjs";import{s as Ut}from"./git-handle-DnoBon5O.mjs";import{S as Wt,a as Gt,b as Kt,d as qt,r as Jt}from"./server-lock-BIDrb6q3.mjs";import{_ as Yt,a as Xt,r as Zt,s as Qt,v as $t,x as j}from"./resolve-project-root-CE3DfbZs.mjs";import{S as en,a as tn,b as nn,d as rn,f as an,g as on,h as sn,i as cn,l as ln,m as un,n as dn,p as fn,r as pn,s as mn,t as hn,u as gn,v as _n,x as vn,y as yn}from"./src-c0FWVAgC.mjs";import{c as bn,i as M,n as N,o as P,r as F,s as I,t as L}from"./colors-DSyAT9Cz.mjs";import{_ as xn,c as Sn,d as Cn,f as wn,h as Tn,m as En,o as Dn,s as On,u as kn}from"./acp-harness-probe-Xk1cOf7t.mjs";import{n as An,r as jn,t as Mn}from"./dist-bundle-EXrl9_Zm.mjs";import{A as Nn,B as Pn,C as Fn,F as In,H as Ln,I as Rn,L as zn,M as Bn,N as Vn,O as Hn,P as Un,R as Wn,T as Gn,V as Kn,j as qn,u as Jn,w as Yn,z as Xn}from"./init-Bz5vjKFs.mjs";import{n as Zn,t as Qn}from"./constants-CIBQHvAU.mjs";import{n as $n,t as er}from"./loader-mvgzARvs.mjs";import{S as tr,y as nr}from"./start-CdjYV0Kl.mjs";import{i as rr}from"./skill-teardown-BVI7R0BY.mjs";import{t as ir}from"./launch-json-removal-Bbih6nS1.mjs";import{n as ar}from"./repair-skills-vX3HTE3Y.mjs";import{execFile as or,execFileSync as sr,execSync as cr,spawn as lr,spawnSync as ur}from"node:child_process";import{basename as dr,dirname as R,isAbsolute as fr,join as z,posix as pr,relative as B,resolve as V,sep as mr}from"node:path";import hr from"node:process";import{fileURLToPath as gr}from"node:url";import{accessSync as _r,appendFileSync as vr,closeSync as yr,constants as br,existsSync as H,lstatSync as xr,mkdirSync as Sr,mkdtempSync as Cr,readFileSync as U,readdirSync as wr,realpathSync as Tr,renameSync as Er,rmSync as Dr,statSync as W,unlinkSync as G,writeFileSync as Or}from"node:fs";import{homedir as kr,platform as Ar,tmpdir as jr}from"node:os";import{rm as Mr}from"node:fs/promises";import{randomUUID as Nr}from"node:crypto";import{setTimeout as Pr}from"node:timers/promises";import{promisify as Fr}from"node:util";import{createInterface as Ir}from"node:readline/promises";const Lr={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`};var Rr;(function(e){})(Rr||={});function zr(e){return ge(Ce,e)}async function Br(e){let{projectDir:t,contentDir:n,baseConfig:r,targetPath:a,fix:o=!1}=e,s=[],c=Lt({projectDir:t,contentDir:n}),u=new Set,d=e=>{u.has(e)||(u.add(e),s.push(e))},f=je(t,r,d),p=i(f,{mode:`lint`}),m=[],h=e=>{m.push(e)},g=new Map,_=e=>{let t=R(e),r=g.get(t);if(r)return r;let i=Ne(f,ht(n,e,d));return g.set(t,i),i},v=[],y=Vr(a,n);y.kind===`file`?v.push(B(n,y.path)):b(y.path);function b(e){let t;try{t=wr(e,{withFileTypes:!0})}catch(t){s.push(`could not read directory ${B(n,e)||`.`}: ${Ur(t)}`);return}for(let r of t){if(r.name.startsWith(`.`))continue;let t=z(e,r.name),i=B(n,t);if(r.isDirectory()){if(c.isDirExcluded(i))continue;b(t)}else if(r.isFile()){if(!Hr(r.name)||c.isExcluded(i))continue;v.push(i)}}}v.sort();let x=[],S=0,ee=0,C=0;for(let e of v){let t=z(n,e),r;try{r=U(t,`utf-8`)}catch(t){s.push(`could not read ${e}: ${Ur(t)}`);continue}let i=_(e),a=!1;if(o&&i.enabled){let n=se(r,i,e,h);if(n!==r){let i=`${t}.tmp.${process.pid}.${Date.now()}`;try{Or(i,n,`utf-8`),Er(i,t),r=n,a=!0,C++}catch(t){try{G(i)}catch{}s.push(`could not write fix to ${e}: ${Ur(t)}`)}}}let c=await l(r,i,e,h);for(let e of c)e.severity===`error`?S++:ee++;x.push({file:e,diagnostics:c,fixed:a})}return s.push(...te(m)),{contentDir:n,files:x,warnings:s,fileCount:v.length,errorCount:S,warningCount:ee,fixedCount:C,ran:p}}function Vr(e,t){if(e===void 0||e===``)return{kind:`dir`,path:t};let n=fr(e)?e:V(t,e);try{if(W(n).isFile())return{kind:`file`,path:n}}catch{}return{kind:`dir`,path:n}}function Hr(e){let t=e.toLowerCase();return ie.some(e=>t.endsWith(e))}function Ur(e){return e instanceof Error?e.message:String(e)}function Wr(e){return new j(`lint`).description(`Lint markdown content (headless) — whole project, a folder, or a single file`).argument(`[path]`,`Folder or file to lint, relative to where you run the command`).option(`--json`,`Emit structured JSON instead of formatted text`).option(`--fix`,`Auto-fix fixable issues in place (markdownlint rules only)`).option(`--errors-only`,`Exit non-zero only on error-severity problems (findings are warning-severity unless your .markdownlint.* assigns a rule "error")`).action(async(t,n)=>{let r=e(),i=process.cwd(),a=lt(r,i),o=t===void 0?void 0:Gr(t,_n()),s=r.contentRules,c=await Br({projectDir:i,contentDir:a,baseConfig:s?d(s):_,targetPath:o,fix:n.fix===!0});n.json===!0?process.stdout.write(`${JSON.stringify(c,null,2)}\n`):process.stdout.write(`${Jr(c)}\n`),(n.errorsOnly===!0?c.errorCount>0:Kr(c))&&(process.exitCode=1)})}function Gr(e,t){return V(t,e)}function Kr(e){return e.errorCount>0||e.warningCount>0}function qr(e){let t=[L(e.file)+(e.fixed?N(` (fixed)`):``)];for(let n of e.diagnostics){let e=N(`${n.range.start.line+1}:${n.range.start.character+1}`.padEnd(7)),r=n.severity===`error`?F(`error `):I(`warning`);t.push(` ${e} ${r} ${n.message} ${N(`${n.source}/${n.code}`)}`)}return t.push(``),t}function Jr(e){let t=[];for(let n of e.files)n.diagnostics.length>0&&t.push(...qr(n));let n=e.errorCount+e.warningCount;if(n===0)t.push(P(`✓ No problems in ${e.fileCount} file${e.fileCount===1?``:`s`}.`));else{let r=[`${n} problem${n===1?``:`s`}`];r.push(`${e.errorCount} error${e.errorCount===1?``:`s`}`),r.push(`${e.warningCount} warning${e.warningCount===1?``:`s`}`),t.push(`${F(r[0]??``)} (${r[1]}, ${r[2]}) across ${e.fileCount} file${e.fileCount===1?``:`s`}.`)}if(e.fixedCount>0&&t.push(N(`Fixed ${e.fixedCount} file${e.fixedCount===1?``:`s`}.`)),t.push(...r(e.ran).map(e=>N(e))),e.warnings.length>0){t.push(``);for(let n of e.warnings)t.push(I(`! ${n}`))}return t.join(`
2
+ import{o as e}from"./chunk-DTipWd-i.mjs";import{Ao as t,Cs as n,Di as r,Ei as i,Go as a,Hs as o,P as s,Ro as c,Ti as l,Uo as u,Xi as d,Yi as f,Yo as p,Zs as m,a as h,as as g,da as _,do as v,es as y,et as b,fo as x,ic as S,is as ee,ji as te,ko as C,o as ne,po as re,ps as ie,us as ae,vo as oe,wi as se}from"./src-CDcerRX2.mjs";import{At as w,Ct as ce,It as le,Kt as ue,Lt as de,M as fe,Ot as pe,R as me,Rt as he,Ut as T,Xt as ge,a as _e,d as ve,j as ye,kt as E,l as be,ln as xe,m as Se,wt as Ce,y as D,zt as O}from"./sleep-CFk6IVkN.mjs";import{$t as we,Ai as Te,B as Ee,Bi as k,Ci as De,Cn as Oe,Cr as ke,D as Ae,Dr as je,En as Me,Er as Ne,Fa as Pe,Fi as Fe,Hr as Ie,Ia as Le,Jr as Re,Mi as ze,Na as Be,Ni as Ve,O as He,Pa as Ue,Q as We,Qr as Ge,Qt as Ke,R as qe,Sr as Je,St as Ye,V as Xe,Vr as Ze,Zr as Qe,_t as $e,a as et,an as tt,ar as nt,b as rt,bn as it,di as at,dt as ot,en as st,et as ct,fi as lt,g as ut,gt as dt,ht as ft,i as pt,ji as mt,kr as ht,lt as gt,mt as _t,n as vt,ni as yt,nt as bt,on as xt,pi as A,pn as St,pt as Ct,r as wt,ri as Tt,rt as Et,s as Dt,st as Ot,tn as kt,tt as At,ut as jt,vt as Mt,wr as Nt,xr as Pt,yt as Ft,z as It,zr as Lt}from"./src-DjN4slzL.mjs";import{A as Rt,D as zt,I as Bt,L as Vt,j as Ht}from"./fs-traced-C8gNIaHq.mjs";import{s as Ut}from"./git-handle-DnoBon5O.mjs";import{S as Wt,a as Gt,b as Kt,d as qt,r as Jt}from"./server-lock-BIDrb6q3.mjs";import{_ as Yt,a as Xt,r as Zt,s as Qt,v as $t,x as j}from"./resolve-project-root-CE3DfbZs.mjs";import{S as en,a as tn,b as nn,d as rn,f as an,g as on,h as sn,i as cn,l as ln,m as un,n as dn,p as fn,r as pn,s as mn,t as hn,u as gn,v as _n,x as vn,y as yn}from"./src-nM5gMDNj.mjs";import{c as bn,i as M,n as N,o as P,r as F,s as I,t as L}from"./colors-DSyAT9Cz.mjs";import{_ as xn,c as Sn,d as Cn,f as wn,h as Tn,m as En,o as Dn,s as On,u as kn}from"./acp-harness-probe-DPsqUdRT.mjs";import{n as An,r as jn,t as Mn}from"./dist-bundle-EXrl9_Zm.mjs";import{A as Nn,B as Pn,C as Fn,F as In,H as Ln,I as Rn,L as zn,M as Bn,N as Vn,O as Hn,P as Un,R as Wn,T as Gn,V as Kn,j as qn,u as Jn,w as Yn,z as Xn}from"./init-BPjcery5.mjs";import{n as Zn,t as Qn}from"./constants-DqOS8cvc.mjs";import{n as $n,t as er}from"./loader-BmJpJKIK.mjs";import{S as tr,y as nr}from"./start-BKr50ApU.mjs";import{i as rr}from"./skill-teardown-BVI7R0BY.mjs";import{t as ir}from"./launch-json-removal-BcB-aTiD.mjs";import{n as ar}from"./repair-skills-vX3HTE3Y.mjs";import{execFile as or,execFileSync as sr,execSync as cr,spawn as lr,spawnSync as ur}from"node:child_process";import{basename as dr,dirname as R,isAbsolute as fr,join as z,posix as pr,relative as B,resolve as V,sep as mr}from"node:path";import hr from"node:process";import{fileURLToPath as gr}from"node:url";import{accessSync as _r,appendFileSync as vr,closeSync as yr,constants as br,existsSync as H,lstatSync as xr,mkdirSync as Sr,mkdtempSync as Cr,readFileSync as U,readdirSync as wr,realpathSync as Tr,renameSync as Er,rmSync as Dr,statSync as W,unlinkSync as G,writeFileSync as Or}from"node:fs";import{homedir as kr,platform as Ar,tmpdir as jr}from"node:os";import{rm as Mr}from"node:fs/promises";import{randomUUID as Nr}from"node:crypto";import{setTimeout as Pr}from"node:timers/promises";import{promisify as Fr}from"node:util";import{createInterface as Ir}from"node:readline/promises";const Lr={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`};var Rr;(function(e){})(Rr||={});function zr(e){return ge(Ce,e)}async function Br(e){let{projectDir:t,contentDir:n,baseConfig:r,targetPath:a,fix:o=!1}=e,s=[],c=Lt({projectDir:t,contentDir:n}),u=new Set,d=e=>{u.has(e)||(u.add(e),s.push(e))},f=je(t,r,d),p=i(f,{mode:`lint`}),m=[],h=e=>{m.push(e)},g=new Map,_=e=>{let t=R(e),r=g.get(t);if(r)return r;let i=Ne(f,ht(n,e,d));return g.set(t,i),i},v=[],y=Vr(a,n);y.kind===`file`?v.push(B(n,y.path)):b(y.path);function b(e){let t;try{t=wr(e,{withFileTypes:!0})}catch(t){s.push(`could not read directory ${B(n,e)||`.`}: ${Ur(t)}`);return}for(let r of t){if(r.name.startsWith(`.`))continue;let t=z(e,r.name),i=B(n,t);if(r.isDirectory()){if(c.isDirExcluded(i))continue;b(t)}else if(r.isFile()){if(!Hr(r.name)||c.isExcluded(i))continue;v.push(i)}}}v.sort();let x=[],S=0,ee=0,C=0;for(let e of v){let t=z(n,e),r;try{r=U(t,`utf-8`)}catch(t){s.push(`could not read ${e}: ${Ur(t)}`);continue}let i=_(e),a=!1;if(o&&i.enabled){let n=se(r,i,e,h);if(n!==r){let i=`${t}.tmp.${process.pid}.${Date.now()}`;try{Or(i,n,`utf-8`),Er(i,t),r=n,a=!0,C++}catch(t){try{G(i)}catch{}s.push(`could not write fix to ${e}: ${Ur(t)}`)}}}let c=await l(r,i,e,h);for(let e of c)e.severity===`error`?S++:ee++;x.push({file:e,diagnostics:c,fixed:a})}return s.push(...te(m)),{contentDir:n,files:x,warnings:s,fileCount:v.length,errorCount:S,warningCount:ee,fixedCount:C,ran:p}}function Vr(e,t){if(e===void 0||e===``)return{kind:`dir`,path:t};let n=fr(e)?e:V(t,e);try{if(W(n).isFile())return{kind:`file`,path:n}}catch{}return{kind:`dir`,path:n}}function Hr(e){let t=e.toLowerCase();return ie.some(e=>t.endsWith(e))}function Ur(e){return e instanceof Error?e.message:String(e)}function Wr(e){return new j(`lint`).description(`Lint markdown content (headless) — whole project, a folder, or a single file`).argument(`[path]`,`Folder or file to lint, relative to where you run the command`).option(`--json`,`Emit structured JSON instead of formatted text`).option(`--fix`,`Auto-fix fixable issues in place (markdownlint rules only)`).option(`--errors-only`,`Exit non-zero only on error-severity problems (findings are warning-severity unless your .markdownlint.* assigns a rule "error")`).action(async(t,n)=>{let r=e(),i=process.cwd(),a=lt(r,i),o=t===void 0?void 0:Gr(t,_n()),s=r.contentRules,c=await Br({projectDir:i,contentDir:a,baseConfig:s?d(s):_,targetPath:o,fix:n.fix===!0});n.json===!0?process.stdout.write(`${JSON.stringify(c,null,2)}\n`):process.stdout.write(`${Jr(c)}\n`),(n.errorsOnly===!0?c.errorCount>0:Kr(c))&&(process.exitCode=1)})}function Gr(e,t){return V(t,e)}function Kr(e){return e.errorCount>0||e.warningCount>0}function qr(e){let t=[L(e.file)+(e.fixed?N(` (fixed)`):``)];for(let n of e.diagnostics){let e=N(`${n.range.start.line+1}:${n.range.start.character+1}`.padEnd(7)),r=n.severity===`error`?F(`error `):I(`warning`);t.push(` ${e} ${r} ${n.message} ${N(`${n.source}/${n.code}`)}`)}return t.push(``),t}function Jr(e){let t=[];for(let n of e.files)n.diagnostics.length>0&&t.push(...qr(n));let n=e.errorCount+e.warningCount;if(n===0)t.push(P(`✓ No problems in ${e.fileCount} file${e.fileCount===1?``:`s`}.`));else{let r=[`${n} problem${n===1?``:`s`}`];r.push(`${e.errorCount} error${e.errorCount===1?``:`s`}`),r.push(`${e.warningCount} warning${e.warningCount===1?``:`s`}`),t.push(`${F(r[0]??``)} (${r[1]}, ${r[2]}) across ${e.fileCount} file${e.fileCount===1?``:`s`}.`)}if(e.fixedCount>0&&t.push(N(`Fixed ${e.fixedCount} file${e.fixedCount===1?``:`s`}.`)),t.push(...r(e.ran).map(e=>N(e))),e.warnings.length>0){t.push(``);for(let n of e.warnings)t.push(I(`! ${n}`))}return t.join(`
3
3
  `)}const Yr={out:e=>process.stdout.write(`${e}\n`),err:e=>process.stderr.write(`${e}\n`)};function Xr(e){return new j(`audit`).description(`Unified validation audit (markdown lint + broken internal links) via the running project server`).argument(`[path]`,`Folder or file to audit, relative to where you run the command`).option(`--json`,`Emit the full structured JSON response instead of formatted text`).option(`--errors-only`,`Exit non-zero only on error-severity problems (broken links default to warnings; the project's validation.links setting can raise them to errors)`).action(async(t,n)=>{let r=await Zr(t,n,e(),process.cwd(),_n());r!==0&&(process.exitCode=r)})}async function Zr(e,t,n,r,i,a=Yr){let o=lt(n,r),s;if(e!==void 0){let t=Qr(e,i,o);if(t===null)return a.err(`Path is outside the content directory (${o}): ${e}`),1;s=t===``?void 0:t}let c=Gt(A(r));if(!c||c.port<=0)return a.err("OpenKnowledge server is not running — the links validator needs the live backlink index. Start it with `ok start` (or open OK Desktop) and re-run. For headless lint-only checks, use `ok lint`."),1;let l=s===void 0?``:`?path=${encodeURIComponent(s)}`,u;try{u=await fetch(`http://127.0.0.1:${c.port}/api/audit${l}`,{headers:m({kind:`cli`,runtimeVersion:Kt})})}catch(e){return a.err(`Could not reach the OpenKnowledge server on port ${c.port}: ${String(e)}`),1}if(!u.ok){let e=await u.json().catch(()=>({}));return a.err(`Audit failed: ${e.title??e.error??e.message??`server responded with ${u.status}`}`),1}let d=f.safeParse(await u.json().catch(()=>null));if(!d.success){let e=d.error.issues.map(e=>`${e.path.join(`.`)}: ${e.message}`).join(`; `);return a.err(`Audit failed: unexpected response shape from the server. Schema issues: ${e}`),1}let p=d.data;return t.json===!0?a.out(JSON.stringify(p,null,2)):a.out(Jr($r(p))),+(t.errorsOnly===!0?p.errorCount>0:p.errorCount+p.warningCount>0)}function Qr(e,t,n){let r=B(n,V(t,e));return r===``?``:r.startsWith(`..`)||fr(r)?null:r.split(mr).join(`/`)}function $r(e){return{files:e.files.map(e=>({file:e.file,fixed:!1,diagnostics:e.diagnostics})),warnings:e.warnings,fileCount:e.fileCount,errorCount:e.errorCount,warningCount:e.warningCount,fixedCount:0,ran:e.ran}}async function ei(e,t,n,r){let i=ti(await ni(e)).host??``,a=e=>e.replace(/[\r\n]/g,``);if(!i)return r?.log?.warn({outcome:`no-host`,backend:n.backend},`[auth] git-credential get`),1;let o=process.env.OK_GH_TOKEN,s=process.env.OK_GH_TOKEN_HOST;if(o&&s===i)return r?.log?.debug({host:i,outcome:`gh-env-token`,backend:n.backend,relayLogin:process.env.OK_GH_TOKEN_LOGIN},`[auth] git-credential get`),t.write(`username=x-access-token\npassword=${a(o)}\n`),0;let c=await n.get(i),l=r?.getDiag?.(),u=c==null?l?.kind??`absent`:`found`;if(r?.log){let e={host:i,outcome:u,backend:n.backend,...l?.error?{keychainError:l.error}:{}};u===`found`?r.log.debug(e,`[auth] git-credential get`):r.log.warn(e,`[auth] git-credential get`)}return c==null?1:(t.write(`username=${a(c.login)}\npassword=${a(c.token)}\n`),0)}function ti(e){let t={};for(let n of e.split(`
4
4
  `)){let e=n.trim();if(e===``)continue;let r=e.indexOf(`=`);r!==-1&&(t[e.slice(0,r)]=e.slice(r+1))}return t}function ni(e){return new Promise((t,n)=>{let r=[];e.on(`data`,e=>r.push(e)),e.on(`end`,()=>t(Buffer.concat(r).toString(`utf-8`))),e.on(`error`,n)})}function ri(e,t){let n=new j(`git-credential`);return n.description(`Git credential helper (git credential-helper protocol)`),n.command(`get`).description(`Lookup credentials from TokenStore (called by git)`).action(async()=>{let n=t?.();try{let t,r=await e({onKeychainRead:e=>{t=e},onBackendSelected:e=>{e.backend===`file`&&e.reason&&n?.warn({backend:`file`,reason:e.reason},`[auth] token storage fallback`)}}),i=await ei(process.stdin,process.stdout,r,{log:n,getDiag:()=>t});await ut(n),process.exit(i)}catch(e){n?.error({err:e},`[auth] git-credential get: unexpected error`),await ut(n),process.exit(1)}}),n}function ii(e){let t=e.endpoint.DEFAULTS;return/^https:\/\/(api\.)?github\.com$/.test(t.baseUrl)?`https://github.com`:t.baseUrl.replace(`/api/v3`,``)}async function ai(e,t,n){let r={baseUrl:ii(e),headers:{accept:`application/json`},...n},i=await e(t,r);if(`error`in i.data){let n=new An(`${i.data.error_description} (${i.data.error}, ${i.data.error_uri})`,400,{request:e.endpoint.merge(t,r)});throw n.response=i,n}return i}async function oi(e){let t=e.request||Mn,n={client_id:e.clientId};return`scopes`in e&&Array.isArray(e.scopes)&&(n.scope=e.scopes.join(` `)),ai(t,`POST /login/device/code`,n)}async function si(e){let t=await ai(e.request||Mn,`POST /login/oauth/access_token`,{client_id:e.clientId,device_code:e.code,grant_type:`urn:ietf:params:oauth:grant-type:device_code`}),n={clientType:e.clientType,clientId:e.clientId,token:t.data.access_token,scopes:t.data.scope.split(/\s+/).filter(Boolean)};if(`clientSecret`in e&&(n.clientSecret=e.clientSecret),e.clientType===`github-app`){if(`refresh_token`in t.data){let e=new Date(t.headers.date).getTime();n.refreshToken=t.data.refresh_token,n.expiresAt=ci(e,t.data.expires_in),n.refreshTokenExpiresAt=ci(e,t.data.refresh_token_expires_in)}delete n.scopes}return{...t,authentication:n}}function ci(e,t){return new Date(e+t*1e3).toISOString()}async function li(e,t){let n=ui(e,t.auth);if(n)return n;let{data:r}=await oi({clientType:e.clientType,clientId:e.clientId,request:t.request||e.request,scopes:t.auth.scopes||e.scopes});await e.onVerification(r);let i=await fi(t.request||e.request,e.clientId,e.clientType,r);return e.authentication=i,i}function ui(e,t){if(t.refresh===!0||!e.authentication)return!1;if(e.clientType===`github-app`)return e.authentication;let n=e.authentication;return(`scopes`in t&&t.scopes||e.scopes).join(` `)===n.scopes.join(` `)?n:!1}async function di(e){await new Promise(t=>setTimeout(t,e*1e3))}async function fi(e,t,n,r){try{let i={clientId:t,request:e,code:r.device_code},{authentication:a}=n===`oauth-app`?await si({...i,clientType:`oauth-app`}):await si({...i,clientType:`github-app`});return{type:`token`,tokenType:`oauth`,...a}}catch(i){if(!i.response)throw i;let a=i.response.data.error;if(a===`authorization_pending`)return await di(r.interval),fi(e,t,n,r);if(a===`slow_down`)return await di(r.interval+7),fi(e,t,n,r);throw i}}async function pi(e,t){return li(e,{auth:t})}async function mi(e,t,n,r){let i=t.endpoint.merge(n,r);if(/\/login\/(oauth\/access_token|device\/code)$/.test(i.url))return t(i);let{token:a}=await li(e,{request:t,auth:{type:`oauth`}});return i.headers.authorization=`token ${a}`,t(i)}var hi=`0.0.0-development`;function gi(e){let t=e.request||Mn.defaults({headers:{"user-agent":`octokit-auth-oauth-device.js/${hi} ${jn()}`}}),{request:n=t,...r}=e,i=e.clientType===`github-app`?{...r,clientType:`github-app`,request:n}:{...r,clientType:`oauth-app`,request:n,scopes:e.scopes||[]};if(!e.clientId)throw Error(`[@octokit/auth-oauth-device] "clientId" option must be set (https://github.com/octokit/auth-oauth-device.js#usage)`);if(!e.onVerification)throw Error(`[@octokit/auth-oauth-device] "onVerification" option must be a function (https://github.com/octokit/auth-oauth-device.js#usage)`);return Object.assign(pi.bind(null,i),{hook:mi.bind(null,i)})}async function _i(e){let{clientId:t,scopes:n=[`repo`,`read:user`,`user:email`],onVerification:r,host:i}=e,a=i&&i!==`github.com`?`https://${i}/api/v3`:`https://api.github.com`,o=gi({clientType:`oauth-app`,clientId:t,scopes:n,onVerification:async e=>{await r({verificationUri:e.verification_uri,userCode:e.user_code,expiresIn:e.expires_in,interval:e.interval})},request:a===`https://api.github.com`?void 0:(await import(`./dist-bundle-CtDa6mtZ.mjs`)).request.defaults({baseUrl:a})}),s;try{s=await o({type:`oauth`})}catch(e){if(e instanceof Error){let t=e.message.toLowerCase();throw t.includes(`access_denied`)?Error(`Device-flow authorization was denied.`):t.includes(`expired_token`)||t.includes(`timeout`)||t.includes(`timed out`)?Error(`Device-flow code expired before authorization — please try again.`):Error(`GitHub sign-in failed: ${e.message}`)}throw e}return{token:s.token,tokenType:s.tokenType,scopes:s.scopes??[]}}function vi(){return process.env.OPEN_KNOWLEDGE_GITHUB_CLIENT_ID??`Ov23liqlSd0V1MwR6rhI`}function K(e){let t=e.toLowerCase().replace(/:\d+$/,``);p.has(t)&&(process.stderr.write(`Error: ${e} is not a GitHub host. Only GitHub and GitHub Enterprise Server are supported.\n`),process.exit(1))}function yi(e,t){e&&process.stdout.write(`${JSON.stringify(t)}\n`)}async function bi(e,t,n=_i){let r=vi(),{host:i,json:a}=e;K(i),a||process.stderr.write(`Logging in to ${i}\n`);let o=await n({clientId:r,host:i===`github.com`?void 0:i,onVerification:e=>{e.userCode,e.verificationUri,a?yi(!0,{type:`verification`,user_code:e.userCode,verification_uri:e.verificationUri,expires_in:e.expiresIn}):process.stderr.write(`Open: ${e.verificationUri}\nEnter code: ${e.userCode}\n`)}}),s=`unknown`,c,l;try{let e=i===`github.com`?`https://api.github.com`:`https://${i}/api/v3`,t=await fetch(`${e}/user`,{headers:{Authorization:`Bearer ${o.token}`,"User-Agent":`open-knowledge-cli`,Accept:`application/vnd.github+json`}});if(t.ok){let e=await t.json();s=e.login??s,c=e.name??void 0,l=e.email??void 0}}catch{}await t.set(i,s,o.token,{gitProtocol:`https`,name:c,email:l}),a?yi(!0,{type:`complete`,host:i,login:s}):process.stderr.write(`✓ Logged in as ${s} on ${i}\n`)}function xi(e){return new j(`login`).description(`Authenticate with GitHub via Device Flow`).option(`--host <host>`,`GitHub or GitHub Enterprise hostname (default: workspace origin host)`).option(`--json`,`Output JSONL progress events`,!1).action(async t=>{let n=t.host??ke(process.cwd()),r=await e();await bi({...t,host:n},r)})}const Si={style:{maskedText:`[input is masked]`}};var Ci=Rn((e,t)=>{let{validate:n=()=>!0}=e,r=Pn(Si,e.theme),[i,a]=Kn(`idle`),[o,s]=Kn(),[c,l]=Kn(``),u=Xn({status:i,theme:r});Wn(async(e,r)=>{if(i===`idle`)if(Ln(e)){let e=c;a(`loading`);let i=await n(e);i===!0?(l(e),a(`done`),t(e)):(r.write(c),s(i||`You must provide a valid value`),a(`idle`))}else l(r.line),s(void 0)});let d=r.style.message(e.message,i),f=``,p;e.mask?f=(typeof e.mask==`string`?e.mask:`*`).repeat(c.length):i!==`done`&&(p=`${r.style.help(r.style.maskedText)}${zn}`),i===`done`&&(f=r.style.answer(f));let m=``;return o&&(m=r.style.error(o)),[[u,d,e.mask?f:p].join(` `),m]});function wi(e,t,n,r){if(typeof n!=`function`)throw Error(`method for before hook must be a function`);return r||={},Array.isArray(t)?t.reverse().reduce((t,n)=>wi.bind(null,e,n,t,r),n)():Promise.resolve().then(()=>e.registry[t]?e.registry[t].reduce((e,t)=>t.hook.bind(null,e,r),n)():n(r))}function Ti(e,t,n,r){let i=r;e.registry[n]||(e.registry[n]=[]),t===`before`&&(r=(e,t)=>Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))),t===`after`&&(r=(e,t)=>{let n;return Promise.resolve().then(e.bind(null,t)).then(e=>(n=e,i(n,t))).then(()=>n)}),t===`error`&&(r=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch(e=>i(e,t))),e.registry[n].push({hook:r,orig:i})}function Ei(e,t,n){if(!e.registry[t])return;let r=e.registry[t].map(e=>e.orig).indexOf(n);r!==-1&&e.registry[t].splice(r,1)}const Di=Function.bind,Oi=Di.bind(Di);function ki(e,t,n){let r=Oi(Ei,null).apply(null,n?[t,n]:[t]);e.api={remove:r},e.remove=r,[`before`,`error`,`after`,`wrap`].forEach(r=>{let i=n?[t,r,n]:[t,r];e[r]=e.api[r]=Oi(Ti,null).apply(null,i)})}function Ai(){let e=Symbol(`Singular`),t={registry:{}},n=wi.bind(null,t,e);return ki(n,t,e),n}function ji(){let e={registry:{}},t=wi.bind(null,e);return ki(t,e),t}var Mi={Singular:Ai,Collection:ji},Ni=`0.0.0-development`;function Pi(e){return`Request failed due to following response errors:
5
5
  `+e.errors.map(e=>` - ${e.message}`).join(`
@@ -8,9 +8,9 @@ import{o as e}from"./chunk-DTipWd-i.mjs";import{Ao as t,Cs as n,Di as r,Ei as i,
8
8
  `),n.includes(`file`)&&process.stderr.write(` cleared from ~/.ok/auth.yml
9
9
  `)}function ka(){return new j(`signout`).description(`Remove stored credentials`).option(`--host <host>`,`GitHub or GitHub Enterprise hostname (default: workspace origin host)`).action(async e=>{let t=e.host??ke(process.cwd());await Oa({...e,host:t})})}async function Aa(e,t,n=wn){let r=n(e);if(r.available&&r.token)return{tier:`A`,token:r.token};let i=await t.get(e);return i==null?{tier:`none`}:{tier:i.gitProtocol===`ssh`?`C`:`B`,token:i.token}}function ja(e,t,n){return{type:`status`,host:e,backend:t,...n}}async function Ma(e,t){let{host:n,json:r}=e;K(n);let i=t.backend,a=await Aa(n,t);a.tier===`none`&&(r?process.stdout.write(`${JSON.stringify(ja(n,i,{authenticated:!1}))}\n`):process.stderr.write(`Not logged in to ${n}\n`),process.exit(1));let o=n===`github.com`?void 0:`https://${n}/api/v3`,s=new va({auth:a.token,...o?{baseUrl:o}:{}});try{let{data:e}=await s.users.getAuthenticated();r?process.stdout.write(`${JSON.stringify(ja(n,i,{authenticated:!0,tier:a.tier,login:e.login,name:e.name,email:e.email}))}\n`):process.stderr.write(`✓ Logged in as ${e.login} on ${n}\n`)}catch(e){let t=xa(e,n);r?process.stdout.write(`${JSON.stringify(ja(n,i,{authenticated:!1,error:t.message}))}\n`):process.stderr.write(`✗ ${t.message}\n`),process.exit(1)}}function Na(e){return new j(`status`).description(`Show authentication status`).option(`--host <host>`,`GitHub or GitHub Enterprise hostname (default: workspace origin host)`).option(`--json`,`Output JSON`,!1).action(async t=>{let n=t.host??ke(process.cwd());await Ma({...t,host:n},await e())})}function Pa(e){let t=new j(`auth`);t.description(`GitHub authentication management`);let n=e=>Tn(void 0,e);return t.addCommand(xi(n)),t.addCommand(Na(n)),t.addCommand(Da(n)),t.addCommand(ka()),t.addCommand(wa(n)),t.addCommand(ri(n,e)),t}function Fa(e,t=Ar(),n=kn){try{t===`darwin`?n(`/usr/bin/open`,[`-R`,e]):n(t===`win32`?`explorer.exe`:`xdg-open`,[R(e)])}catch{}}function Ia(){return new j(`bug-report`).description(`Generate a diagnostic bundle for bug reporting`).option(`--reveal`,`Reveal the bundle in your file manager (default: true)`,!0).option(`--no-reveal`,`Do not reveal the bundle in your file manager`).action(async e=>{try{let{zipPath:t,summary:n}=await fn({level:`standard`,projectDir:process.cwd(),redact:!0,outputPath:on(),logger:vn()});process.stdout.write(`${t}\n`),n.redactedLineCount>0&&process.stderr.write(`ok bug-report: ${n.redactedLineCount} line(s) auto-redacted across ${n.redactions.length} file(s)\n`),e.reveal&&Fa(t)}catch(e){let t=e instanceof Error?e.message:String(e);process.stderr.write(`ok bug-report: failed — ${t}\n`),process.exitCode=1}})}function La(e){let t=[];return(e.status===`dead-pid`||e.status===`corrupt`)&&t.push({name:`server`,lockPath:e.lockPath,reason:e.status}),{prune:t}}function Ra(e){let t=e.inspect??(()=>an(e.lockDir,`server`)),n=e.unlink??(e=>G(e)),r=e.log??(e=>console.log(e)),i=e.error??(e=>console.error(e)),a=La(t());if(a.prune.length===0)return r(`No stale locks.`),{pruned:[],failed:[]};let o=[],s=[];for(let e of a.prune)try{n(e.lockPath),o.push(e)}catch(t){s.push({target:e,error:t instanceof Error?t.message:String(t)})}if(o.length>0){let e=o.map(e=>`${e.name} (${e.reason})`).join(`, `);r(`Pruned ${o.length} stale lock${o.length===1?``:`s`}: ${e}`)}return s.length>0&&i(`Failed to prune: ${s.map(({target:e,error:t})=>`${e.name} (${e.lockPath}): ${t}`).join(`; `)}`),{pruned:o,failed:s}}function za(e){return new j(`clean`).description(`Prune a stale / corrupt open-knowledge lock file (never touches live locks)`).action(()=>{e(),Ra({lockDir:A(process.cwd())}).failed.length>0&&(process.exitCode=1)})}function Ba(e){return`credential.helper=!${e.map(oe).join(` `)} auth git-credential`}async function Va(e,t,n={},r=wn){let i=[`credential.helper=`,Ba(n.selfCliArgs??[`open-knowledge`])];if(!n.skipGhDetect){let t=r(e,{login:n.login});if(t.available&&t.token)return{tier:`A`,gitConfig:i,relayToken:{token:t.token,host:e,...t.resolvedLogin?{login:t.resolvedLogin}:{}}}}let a=await t.get(e);return a==null?{tier:`none`,gitConfig:[]}:{tier:a.gitProtocol===`ssh`?`C`:`B`,gitConfig:i}}async function Ha(e,t,n=fetch){let r=new AbortController,i=setTimeout(()=>r.abort(),5e3);try{return(await n(`https://api.github.com/repos/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{signal:r.signal,headers:{"User-Agent":`open-knowledge-cli`,Accept:`application/vnd.github+json`}})).status===200}catch{return!1}finally{clearTimeout(i)}}const Ua=[[`count`,0,10],[`compress`,10,20],[`receiv`,20,60],[`resolv`,60,100]];function Wa(e){let t=/^([\w ]+):\s+(\d+)%/.exec(e.trim());if(!t)return null;let n=t[1].toLowerCase(),r=Number(t[2]);for(let[e,i,a]of Ua)if(n.includes(e))return{stage:t[1],pct:Math.round(i+r/100*(a-i))};return null}function q(e,t){e&&process.stdout.write(`${JSON.stringify(t)}\n`)}function Ga(e=process.env){let t={};for(let[n,r]of Object.entries(e))r!==void 0&&(t[n]=r);return t.GIT_TERMINAL_PROMPT=`0`,t.LANG=`C`,t.LC_ALL=`C`,t}function Ka(e,t=process.env){let n=Ga(t);return e.relayToken?(n.OK_GH_TOKEN=e.relayToken.token,n.OK_GH_TOKEN_HOST=e.relayToken.host,e.relayToken.login?n.OK_GH_TOKEN_LOGIN=e.relayToken.login:delete n.OK_GH_TOKEN_LOGIN):(delete n.OK_GH_TOKEN,delete n.OK_GH_TOKEN_HOST,delete n.OK_GH_TOKEN_LOGIN),n}function qa(e=process.argv,t=process.execPath){let n=e[1];return n?[t,n]:[t]}function Ja(e){return typeof e!=`string`||e.length===0?[`--progress`]:[`--progress`,`-b`,e]}const Ya=x;async function Xa(e){try{return await e.clone(Ja(e.branch)),{fellBack:!1}}catch(t){if(e.branch!==null&&Ya(t))return e.onFallback(e.branch),await e.clone(Ja(null)),{fellBack:!0};throw t}}function Za(e,t){return{baseDir:e,config:t,unsafe:{allowUnsafeCredentialHelper:!0,allowUnsafePager:!0,allowUnsafeSshCommand:!0,allowUnsafeAskPass:!0,allowUnsafeEditor:!0}}}function Qa(e,t,n){return e===`https`&&t===`github.com`&&n}function $a(e){if(e===void 0)return null;let{declaredLogin:t,declaredSource:n}=e,r;switch(n){case`remote-url`:r=`The clone URL names ${t}`;break;case`credential-config`:r=`Your Git credential configuration names ${t}`;break;default:r=`Your Git configuration names ${t}`}return`⚠ ${r}, but the GitHub CLI couldn't confirm that account — the clone used its active account.\n Run \`gh auth status\` to see which account that is. If ${t} is listed as active, nothing is wrong; confirming an account by name needs GitHub CLI 2.40 or newer.\n`}async function eo(e,t,n={}){let r=rn(e);if(!r)throw Error(`Invalid git URL: ${ao(e)}`);let i=He(e,{cwd:n.cwd,_readCredentialUrlMatch:n._readCredentialUrlMatch}),a=await Va(i.host??r.hostname,t,{selfCliArgs:n.selfCliArgs,login:i.login},n._detectGhFn),o=i.login!==void 0&&a.tier===`A`&&!Nt(a.relayToken?.login,i.login)?{declaredLogin:i.login,declaredSource:i.source}:void 0;return{auth:a,...o===void 0?{}:{declaredMiss:o}}}function to(e,t){let n=`${t.owner}/${t.name}`;return e===n||e===`${n}.git`?`https://${t.hostname}/${n}`:e}async function no(e,t,n,r=process.cwd()){let i=rn(e);if(!i)throw Error(`Invalid git URL: ${ao(e)}`);let a=to(e,i),o=t.dir?V(r,t.dir):V(r,i.name);if(H(o)&&wr(o).length>0)throw Error(`Target directory is not empty: ${o}`);Fe();let s=xn(),c=i.protocol===`https`&&i.hostname===`github.com`?await Ha(i.owner,i.name):!1,l=Qa(i.protocol,i.hostname,c)?{auth:{tier:`none`,gitConfig:[]}}:await eo(a,s,{selfCliArgs:qa(),cwd:r,...t._detectGhFn?{_detectGhFn:t._detectGhFn}:{}}),u=l.auth;if(t.onAuthResolved?.({tier:u.tier,login:u.relayToken?.login}),!t.json){let e=$a(l.declaredMiss);e&&process.stderr.write(e)}let d=Ka(u),f=Ut(Za(r,u.gitConfig)).env(d),p=-1;f.outputHandler((e,n,r)=>{r.on(`data`,e=>{let n=e.toString(`utf-8`);for(let e of n.split(`
10
10
  `)){let n=Wa(e);n&&n.pct!==p&&(p=n.pct,q(t.json,{type:`progress`,pct:n.pct,stage:n.stage}),t.json||process.stderr.write(`\r Cloning ${n.pct}%`))}})}),await Xa({branch:typeof t.branch==`string`&&t.branch.length>0?t.branch:null,clone:e=>f.clone(a,o,e),onFallback:e=>{q(t.json,{type:`branch-fallback`,branch:e}),t.json||process.stderr.write(`\n Branch '${e}' not found upstream — cloning default branch instead.\n`)}}),t.json||process.stderr.write(`
11
- `);try{let{runInit:e}=await import(`./init-CUH3tueI.mjs`),n=await e({cwd:o,mcp:!1});if(n.contentUpdated.length>0){let e=`auto-init: updated ${n.contentUpdated.join(`, `)}`;t.json?q(!0,{type:`warning`,message:e}):process.stderr.write(` ${e}\n`)}}catch(e){let n=e instanceof Error?e.message:String(e);t.json?q(!0,{type:`warning`,message:`auto-init: ${n}`}):process.stderr.write(` auto-init: ${n}\n`)}try{ro(o)}catch(e){let n=e instanceof Error?e.message:String(e);t.json?q(!0,{type:`warning`,message:`git-exclude: ${n}`}):process.stderr.write(` git-exclude: ${n}\n`)}return o}function ro(e){let t=Hn(e,[`.ok/`]);return t.kind===`no-exclude`?`no-exclude`:t.kind===`refused-tracked`?`already-present`:t.appended.length>0?`appended`:`already-present`}const io=/^[A-Za-z0-9._/:@-]+$/;function ao(e){return e.replace(/^([a-z][a-z0-9+.-]*:\/\/)([^/]*)@/i,(e,t,n)=>{let r=n.indexOf(`:`),i=r===-1?n:n.slice(0,r);return i!==``&&Je(i)!==void 0?`${t}${i}@`:t})}function oo(e){return io.test(e)?e:oe(e)}function so(e,t){let n=typeof t==`string`&&t.length>0?` -b ${oo(t)}`:``;return`ok clone ${oo(e)}${n}`}function co(e){let t=v(e.error);if(t.kind!==`auth`)return null;let n=ao(e.url);if(re(t)){let t=so(n,e.branch);return[`✗ Couldn't clone ${n} — authentication is required.`,``,` To fix:`,` 1. Run: ok auth login`,` 2. Then re-run: ${t}`].join(`
11
+ `);try{let{runInit:e}=await import(`./init-Cs6GzO1-.mjs`),n=await e({cwd:o,mcp:!1});if(n.contentUpdated.length>0){let e=`auto-init: updated ${n.contentUpdated.join(`, `)}`;t.json?q(!0,{type:`warning`,message:e}):process.stderr.write(` ${e}\n`)}}catch(e){let n=e instanceof Error?e.message:String(e);t.json?q(!0,{type:`warning`,message:`auto-init: ${n}`}):process.stderr.write(` auto-init: ${n}\n`)}try{ro(o)}catch(e){let n=e instanceof Error?e.message:String(e);t.json?q(!0,{type:`warning`,message:`git-exclude: ${n}`}):process.stderr.write(` git-exclude: ${n}\n`)}return o}function ro(e){let t=Hn(e,[`.ok/`]);return t.kind===`no-exclude`?`no-exclude`:t.kind===`refused-tracked`?`already-present`:t.appended.length>0?`appended`:`already-present`}const io=/^[A-Za-z0-9._/:@-]+$/;function ao(e){return e.replace(/^([a-z][a-z0-9+.-]*:\/\/)([^/]*)@/i,(e,t,n)=>{let r=n.indexOf(`:`),i=r===-1?n:n.slice(0,r);return i!==``&&Je(i)!==void 0?`${t}${i}@`:t})}function oo(e){return io.test(e)?e:oe(e)}function so(e,t){let n=typeof t==`string`&&t.length>0?` -b ${oo(t)}`:``;return`ok clone ${oo(e)}${n}`}function co(e){let t=v(e.error);if(t.kind!==`auth`)return null;let n=ao(e.url);if(re(t)){let t=so(n,e.branch);return[`✗ Couldn't clone ${n} — authentication is required.`,``,` To fix:`,` 1. Run: ok auth login`,` 2. Then re-run: ${t}`].join(`
12
12
  `)}return t.subclass===`403`?`✗ Access denied when cloning ${n}${typeof e.principal==`string`&&e.principal.length>0?` (signed in as @${e.principal} — may lack access)`:``}. Check that your account has access to the repository.`:t.subclass===`ssh-auth`?`✗ Couldn't clone ${n} over SSH — authentication failed. Check that your SSH key is added to your GitHub account and the host key is trusted, or clone the HTTPS URL instead.`:t.subclass===`not-found-as-identity`?`✗ Repository not found when cloning ${n}. It may not exist, or the account used may not have access.${typeof e.resolvedLogin==`string`&&e.resolvedLogin.length>0?` Authenticated as ${e.resolvedLogin}.`:``}`:["✗ Your GitHub token is missing required OAuth scopes — likely the `repo` scope.",``,` To fix:`," 1. Create a token with `repo` scope at https://github.com/settings/tokens",` 2. Run: ok auth pat`,` 3. Then re-run: ${so(n,e.branch)}`].join(`
13
- `)}function lo(e){let t=Pt(e.error instanceof Error?e.error.message:String(e.error));if(e.json){e.emit({type:`error`,message:t});return}let n=co({error:e.error,url:e.url,branch:e.branch,principal:e.principal,resolvedLogin:e.resolvedLogin});e.printStderr(`${n??`✗ ${t}`}\n`)}async function uo(e,t){let n=(await e.get(t))?.login;return n&&n!==`unknown`?n:null}async function fo(e){let t=v(e.error),n=e.auth?.tier===`A`?e.auth:void 0,r=null;if(!e.json&&t.kind===`auth`&&t.subclass===`403`){if(n)r=n.login??null;else if(e.auth?.tier!==`none`){let t=rn(e.url);t&&(r=await(e.resolvePrincipal??(e=>uo(xn(),e)))(t.hostname))}}lo({error:e.error,url:e.url,branch:e.branch,json:e.json,principal:r,resolvedLogin:n?.login??null,emit:e.emit,printStderr:e.printStderr})}function po(e){return new j(`clone`).description(`Clone a git repository and open it`).argument(`<url>`,`Repository URL or owner/repo shorthand`).argument(`[dir]`,`Target directory (default: ./<repo-name>)`).option(`--json`,`Output JSONL progress events`,!1).option(`-b, --branch <branch>`,`Branch to check out (falls back to default if missing)`).action(async(t,n,r)=>{let i=e(),a;try{let o=await no(t,{json:r.json,dir:n,branch:r.branch??null,onAuthResolved:e=>{a=e}},i);if(r.json)q(!0,{type:`complete`,dir:o});else{process.stderr.write(`✓ Cloned to ${o}\n`),process.chdir(o);let{startCommand:t}=await import(`./start-CvRgHWFa.mjs`);await t(e).parseAsync([],{from:`user`})}}catch(e){if(e instanceof ze||e instanceof Ve){r.json?q(!0,{type:`error`,message:e.message}):process.stderr.write(`${e.message}\n`),process.exitCode=78;return}await fo({error:e,url:t,branch:r.branch??null,json:r.json,auth:a,emit:e=>q(!0,e),printStderr:e=>process.stderr.write(e)}),process.exitCode=1}})}var mo=ce();const ho=[[`sync`],[`persistence`,`debounceMs`],[`persistence`,`maxDebounceMs`],...Se.map(e=>e.path)];function go(e){return Vt({absPath:Rt(`project-local`,e),sideline:!1}).diagnostics}function _o(e={}){let t=e.log??(e=>console.error(e)),n=e.error??(e=>console.error(e)),r=e.loadConfigFn??$n;try{let{sources:n,diagnostics:i,sidelined:a}=r(e.cwd),o=(e.readProjectLocalFn??go)(e.cwd??process.cwd()),s=[...i,...o],c=n.length===0?`defaults only`:n.join(`, `),l=s.filter(e=>e.code!==`REMOVED_KEY`);l.length===0?t(`✓ Configuration valid (sources: ${c})`):t(`! Configuration loaded, but ${l.length} config layer(s) had issues (sources: ${c})`);for(let e of s)t(``),t(D(e));for(let{from:e,to:n}of a)t(``),t(`Moved ${e} aside to ${n} so defaults could be used. Restore it once fixed.`);return{ok:!0}}catch(e){return n(e instanceof Error?e.message:String(e)),{ok:!1}}}function vo(e){let t=(0,mo.parseDocument)(U(e,`utf-8`));if(t.errors.length>0)throw Error(`Could not parse ${e}: ${t.errors.map(e=>e.message).join(`; `)}`);let n=[];for(let e of ho)t.hasIn(e)&&n.push(e.join(`.`));return n}function yo(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function bo(e){let t={};for(let n of e){let e=t;for(let t=0;t<n.length-1;t++){let r=n[t],i=e[r],a=yo(i)?i:{};e[r]=a,e=a}e[n[n.length-1]]=null}return t}function xo(e){switch(e){case`project`:return[`project`];case`project-local`:return[`project-local`];case`user`:return[`user`];case`both`:return[`project`,`user`];case`all`:return[`project`,`project-local`,`user`]}}async function So(e={}){let t=e.log??(e=>console.log(e)),n=e.error??(e=>console.error(e)),r=e.scope??`all`,i=e.dryRun??!1,a=e.cwd??process.cwd(),o=e.writeConfigPatchFn??Ht,s=xo(r).map(t=>({scope:t,absPath:Rt(t,a,e.homedirOverride)})),c=[],l=!0;for(let{scope:t,absPath:n}of s){if(!H(n)){c.push({path:n,scope:t,found:[],removed:[]});continue}let r;try{r=vo(n)}catch(e){let r=e instanceof Error?e.message:String(e);c.push({path:n,scope:t,found:[],removed:[],error:r}),l=!1;continue}if(r.length===0||i){c.push({path:n,scope:t,found:r,removed:[]});continue}let s=await o({cwd:a,scope:t,patch:bo(ho.filter(e=>r.includes(e.join(`.`)))),homedirOverride:e.homedirOverride});if(!s.ok){c.push({path:n,scope:t,found:r,removed:[],error:D(s.error)}),l=!1;continue}c.push({path:n,scope:t,found:r,removed:r})}for(let e of c)e.error&&n(`✗ ${e.path}: ${e.error}`);let u=c.some(e=>e.error!==void 0),d=c.reduce((e,t)=>e+t.found.length,0);if(d===0&&!u)t(`No deprecated fields found.`);else if(d>0)for(let e of c)e.error||(e.found.length===0?t(` ${e.path}: no deprecated fields`):t(i?`[dry-run] ${e.path}: would remove ${e.found.length} field(s): ${e.found.join(`, `)}`:`✓ ${e.path}: removed ${e.removed.length} field(s): ${e.removed.join(`, `)}`));return{outcomes:c,ok:l}}const Co=`project | project-local | user | all`,wo=new Set(Object.keys({project:!0,"project-local":!0,user:!0,both:!0,all:!0}));function To(e){return e!==`config`}function Eo(){let e=new j(`config`).description(`Inspect and maintain OpenKnowledge configuration files`);return e.command(`validate`).description(`Validate the merged config (defaults → user → project)`).action(()=>{_o({}).ok||(process.exitCode=1)}),e.command(`migrate`).description(`Remove deprecated config fields from config.yml idempotently (every removed key in the registry — content.*, folders, appearance.editorModeDefault, server.host, etc. — plus the silently-dropped sync.*, persistence.*)`).option(`--scope <scope>`,`Which scope to migrate: ${Co}`,`all`).option(`--dry-run`,`Preview without writing`,!1).action(async e=>{let t=String(e.scope);if(!wo.has(t)){console.error(`Invalid --scope: ${t}. Expected: ${Co}`),process.exitCode=2;return}(await So({scope:t,dryRun:e.dryRun})).ok||(process.exitCode=1)}),e}const Do=[` 1. ${L(`Customize`)} (sidebar) → ${L(`Skills`)}`,` 2. Click the ${L(`+`)} button`,` 3. Click ${L(`Create skill`)}`,` 4. Click ${L(`Upload skill`)}`,` 5. Pick ${L(`openknowledge.skill`)} from Downloads`],Oo=M(` Open the Claude Desktop App, then: ${L(`Customize → Skills → + → Create skill → Upload skill`)} → pick the file.`);function ko(e){let t=[P(`Built ${e.outputPath}`),N(` ${e.size} bytes • sha256 ${e.sha256?.slice(0,12)}…`)];return e.handoffError&&t.push(I(` Handoff failed: ${e.handoffError.message}`)),t.push(Oo),t.join(`
13
+ `)}function lo(e){let t=Pt(e.error instanceof Error?e.error.message:String(e.error));if(e.json){e.emit({type:`error`,message:t});return}let n=co({error:e.error,url:e.url,branch:e.branch,principal:e.principal,resolvedLogin:e.resolvedLogin});e.printStderr(`${n??`✗ ${t}`}\n`)}async function uo(e,t){let n=(await e.get(t))?.login;return n&&n!==`unknown`?n:null}async function fo(e){let t=v(e.error),n=e.auth?.tier===`A`?e.auth:void 0,r=null;if(!e.json&&t.kind===`auth`&&t.subclass===`403`){if(n)r=n.login??null;else if(e.auth?.tier!==`none`){let t=rn(e.url);t&&(r=await(e.resolvePrincipal??(e=>uo(xn(),e)))(t.hostname))}}lo({error:e.error,url:e.url,branch:e.branch,json:e.json,principal:r,resolvedLogin:n?.login??null,emit:e.emit,printStderr:e.printStderr})}function po(e){return new j(`clone`).description(`Clone a git repository and open it`).argument(`<url>`,`Repository URL or owner/repo shorthand`).argument(`[dir]`,`Target directory (default: ./<repo-name>)`).option(`--json`,`Output JSONL progress events`,!1).option(`-b, --branch <branch>`,`Branch to check out (falls back to default if missing)`).action(async(t,n,r)=>{let i=e(),a;try{let o=await no(t,{json:r.json,dir:n,branch:r.branch??null,onAuthResolved:e=>{a=e}},i);if(r.json)q(!0,{type:`complete`,dir:o});else{process.stderr.write(`✓ Cloned to ${o}\n`),process.chdir(o);let{startCommand:t}=await import(`./start-Bf0BFz7e.mjs`);await t(e).parseAsync([],{from:`user`})}}catch(e){if(e instanceof ze||e instanceof Ve){r.json?q(!0,{type:`error`,message:e.message}):process.stderr.write(`${e.message}\n`),process.exitCode=78;return}await fo({error:e,url:t,branch:r.branch??null,json:r.json,auth:a,emit:e=>q(!0,e),printStderr:e=>process.stderr.write(e)}),process.exitCode=1}})}var mo=ce();const ho=[[`sync`],[`persistence`,`debounceMs`],[`persistence`,`maxDebounceMs`],...Se.map(e=>e.path)];function go(e){return Vt({absPath:Rt(`project-local`,e),sideline:!1}).diagnostics}function _o(e={}){let t=e.log??(e=>console.error(e)),n=e.error??(e=>console.error(e)),r=e.loadConfigFn??$n;try{let{sources:n,diagnostics:i,sidelined:a}=r(e.cwd),o=(e.readProjectLocalFn??go)(e.cwd??process.cwd()),s=[...i,...o],c=n.length===0?`defaults only`:n.join(`, `),l=s.filter(e=>e.code!==`REMOVED_KEY`);l.length===0?t(`✓ Configuration valid (sources: ${c})`):t(`! Configuration loaded, but ${l.length} config layer(s) had issues (sources: ${c})`);for(let e of s)t(``),t(D(e));for(let{from:e,to:n}of a)t(``),t(`Moved ${e} aside to ${n} so defaults could be used. Restore it once fixed.`);return{ok:!0}}catch(e){return n(e instanceof Error?e.message:String(e)),{ok:!1}}}function vo(e){let t=(0,mo.parseDocument)(U(e,`utf-8`));if(t.errors.length>0)throw Error(`Could not parse ${e}: ${t.errors.map(e=>e.message).join(`; `)}`);let n=[];for(let e of ho)t.hasIn(e)&&n.push(e.join(`.`));return n}function yo(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function bo(e){let t={};for(let n of e){let e=t;for(let t=0;t<n.length-1;t++){let r=n[t],i=e[r],a=yo(i)?i:{};e[r]=a,e=a}e[n[n.length-1]]=null}return t}function xo(e){switch(e){case`project`:return[`project`];case`project-local`:return[`project-local`];case`user`:return[`user`];case`both`:return[`project`,`user`];case`all`:return[`project`,`project-local`,`user`]}}async function So(e={}){let t=e.log??(e=>console.log(e)),n=e.error??(e=>console.error(e)),r=e.scope??`all`,i=e.dryRun??!1,a=e.cwd??process.cwd(),o=e.writeConfigPatchFn??Ht,s=xo(r).map(t=>({scope:t,absPath:Rt(t,a,e.homedirOverride)})),c=[],l=!0;for(let{scope:t,absPath:n}of s){if(!H(n)){c.push({path:n,scope:t,found:[],removed:[]});continue}let r;try{r=vo(n)}catch(e){let r=e instanceof Error?e.message:String(e);c.push({path:n,scope:t,found:[],removed:[],error:r}),l=!1;continue}if(r.length===0||i){c.push({path:n,scope:t,found:r,removed:[]});continue}let s=await o({cwd:a,scope:t,patch:bo(ho.filter(e=>r.includes(e.join(`.`)))),homedirOverride:e.homedirOverride});if(!s.ok){c.push({path:n,scope:t,found:r,removed:[],error:D(s.error)}),l=!1;continue}c.push({path:n,scope:t,found:r,removed:r})}for(let e of c)e.error&&n(`✗ ${e.path}: ${e.error}`);let u=c.some(e=>e.error!==void 0),d=c.reduce((e,t)=>e+t.found.length,0);if(d===0&&!u)t(`No deprecated fields found.`);else if(d>0)for(let e of c)e.error||(e.found.length===0?t(` ${e.path}: no deprecated fields`):t(i?`[dry-run] ${e.path}: would remove ${e.found.length} field(s): ${e.found.join(`, `)}`:`✓ ${e.path}: removed ${e.removed.length} field(s): ${e.removed.join(`, `)}`));return{outcomes:c,ok:l}}const Co=`project | project-local | user | all`,wo=new Set(Object.keys({project:!0,"project-local":!0,user:!0,both:!0,all:!0}));function To(e){return e!==`config`}function Eo(){let e=new j(`config`).description(`Inspect and maintain OpenKnowledge configuration files`);return e.command(`validate`).description(`Validate the merged config (defaults → user → project)`).action(()=>{_o({}).ok||(process.exitCode=1)}),e.command(`migrate`).description(`Remove deprecated config fields from config.yml idempotently (every removed key in the registry — content.*, folders, appearance.editorModeDefault, server.host, etc. — plus the silently-dropped sync.*, persistence.*)`).option(`--scope <scope>`,`Which scope to migrate: ${Co}`,`all`).option(`--dry-run`,`Preview without writing`,!1).action(async e=>{let t=String(e.scope);if(!wo.has(t)){console.error(`Invalid --scope: ${t}. Expected: ${Co}`),process.exitCode=2;return}(await So({scope:t,dryRun:e.dryRun})).ok||(process.exitCode=1)}),e}const Do=[` 1. ${L(`Customize`)} (sidebar) → ${L(`Skills`)}`,` 2. Click the ${L(`+`)} button`,` 3. Click ${L(`Create skill`)}`,` 4. Click ${L(`Upload skill`)}`,` 5. Pick ${L(`openknowledge.skill`)} from Downloads`],Oo=M(` Open the Claude Desktop App, then: ${L(`Customize → Skills → + → Create skill → Upload skill`)} → pick the file.`);function ko(e){let t=[P(`Built ${e.outputPath}`),N(` ${e.size} bytes • sha256 ${e.sha256?.slice(0,12)}…`)];return e.handoffError&&t.push(I(` Handoff failed: ${e.handoffError.message}`)),t.push(Oo),t.join(`
14
14
  `)}function Ao(e){let t=e.skillVersion??`unknown`,n=e.recordedAt??`unknown`;return[M(`OpenKnowledge skill ${L(`v${t}`)} already delivered to Claude Desktop.`),N(` Recorded at ${n} in ~/.ok/skill-state.yml`),N(` Use ${L(`--force`)} to rebuild and re-open the install dialog.`)].join(`
15
15
  `)}function jo(e){let t=e.skillVersion?` • Skill v${e.skillVersion}`:``;return[P(`Built ${e.outputPath}`),N(` ${e.size} bytes • sha256 ${e.sha256?.slice(0,12)}…${t}`),M(` Claude Desktop App opened. Now upload the file manually:`),...Do,N(` If Claude Desktop didn't open, open it and start at step 1. The file is at ${e.outputPath}`)].join(`
16
16
  `)}function Mo(e){return`${F(`Error:`)} ${e.buildError??`unknown build failure`}`}async function No(e={}){let t=await nt(e);return t.status===`failed`?{...t,message:Mo(t),exitCode:1}:t.status===`skip-current`?{...t,message:Ao(t),exitCode:0}:t.status===`installed`?{...t,message:jo(t),exitCode:0}:{...t,message:ko(t),exitCode:0}}function Po(){return new j(`cowork`).description("Build openknowledge.skill and open the Claude Desktop App so you can upload it for Claude Chat & Cowork. (Advanced/rarely needed — `ok init` already wires Claude.)").option(`--out <path>`,`Custom output path (default: ~/Downloads/openknowledge.skill)`).option(`--no-open`,`Build the file but skip the OS file-association handoff`).option(`--force`,`Bypass the install-state gate and rebuild unconditionally`).action(async e=>{let t=await No({out:e.out,noOpen:!e.open,force:e.force??!1});process.stdout.write(`${t.message}\n`),t.exitCode!==0&&process.exit(t.exitCode)})}async function Fo(e,t){let n=Ir({input:t??process.stdin,output:process.stderr});try{let t=(await n.question(e)).trim().toLowerCase();return t===`y`||t===`yes`}finally{n.close()}}function Io(e={}){let t=e.platformName??process.platform,n=e.productName??`OpenKnowledge`;return Yt(t).join($t({...e,platformName:t}),n)}function Lo(e={}){let t=e.platformName??process.platform,n=e.home??kr(),r=e.env??process.env,i=Yt(t),a;return a=t===`win32`?r.LOCALAPPDATA||i.join(n,`AppData`,`Local`):t===`darwin`?i.join(n,`Library`,`Caches`):r.XDG_CACHE_HOME||i.join(n,`.cache`),i.join(a,`@inkeepopen-knowledge-desktop-updater`)}function Ro(e){if(typeof e!=`object`||!e)return null;let t=e.recentProjects;if(!Array.isArray(t))return null;let n=[];for(let e of t){if(typeof e!=`object`||!e)continue;let t=e;typeof t.path==`string`&&typeof t.name==`string`&&n.push({path:t.path,name:t.name})}return n}function zo(e){let t=z(e,`state.json`);if(!H(t))return[];let n;try{n=JSON.parse(U(t,`utf-8`))}catch{return[]}return Ro(n)??[]}function Bo(e){let t=z(e,`state.json`);if(!H(t))return!1;try{return Ro(JSON.parse(U(t,`utf-8`)))!==null}catch{return!1}}function J(e,t){return e===t?`~`:e.startsWith(`${t}/`)?`~${e.slice(t.length)}`:e}function Vo(e){return mr===`/`?e:e.split(mr).join(`/`)}function Ho(e,t,n=`This project`){let r=[];r.push({kind:`stop-server`,group:n,label:`Stop the project server (if running)`,lockDir:A(e)});let i=new Set;for(let a of Xt){let o=Qt[a];if(!o.projectConfigPath)continue;let s=o.projectConfigPath(e);i.add(Vo(B(e,s))),r.push({kind:`mcp-entry`,group:n,label:`Remove OK's MCP entry from ${o.label} (${Vo(B(e,s))})`,editorId:a,scope:`project`,cwd:e,home:t,configPath:s})}r.push({kind:`launch-entry`,group:n,label:`Remove OK's entry from .claude/launch.json`,projectRoot:e}),r.push({kind:`git-exclude`,group:n,label:`Remove OK paths from .git/info/exclude`,projectRoot:e});let a=new Set([...Bn(e),...qn(e),...g]);for(let t of a){let a=t.replace(/\/$/,``);i.has(a)||a!==`.claude/launch.json`&&r.push({kind:`remove-path`,group:n,label:`Remove ${t}`,path:z(e,a),containWithin:e})}try{r.push({kind:`remove-path`,group:n,label:`Remove the OK shadow repo (.git/ok/)`,path:Le(e)})}catch{}return r}function Uo(e,t){return{scope:`deinit`,ops:Ho(e,t)}}function Wo(e){let{home:t,platform:n,host:r,lockDirs:i,marker:a,recentDeinitProjectRoots:o,purgeContent:s}=e,c=[];for(let e of i)c.push({kind:`stop-server`,group:`Running servers`,label:`Stop server at ${J(z(e,`..`,`..`),t)}`,lockDir:e});c.push({kind:`keychain-token`,group:`Credentials`,label:`Remove the GitHub credential (${r}) from the OS keychain + auth.yml`,host:r}),c.push({kind:`embeddings-key`,group:`Credentials`,label:`Remove all embeddings API keys (secrets.yml)`}),c.push(...Ko(a,t));for(let e of Xt){let n=Qt[e],r;try{r=n.configPath(``,t)}catch{continue}c.push({kind:`mcp-entry`,group:`Editor MCP configs`,label:`Remove OK's MCP entry from ${n.label} (${J(r,t)})`,editorId:e,scope:`user`,cwd:t,home:t,configPath:r})}for(let e of rr(t))c.push({kind:`remove-path`,group:`Skill bundles`,label:`Remove ${J(e.path,t)}`,path:e.path});c.push(...qo(t,n,e.env));for(let e of o)c.push(...Ho(e,t,`Project: ${dr(e)}`));return c.push({kind:`remove-path`,group:`Global directory`,label:s?`Remove ~/.ok (including user-authored skills)`:`Remove ~/.ok (keeping ~/.ok/skills)`,path:z(t,`.ok`),preserve:s?void 0:[`skills`]}),{scope:`uninstall`,ops:c}}function Go(e){return[z(e,`.zshrc`),z(e,`.bash_profile`),z(e,`.config`,`fish`,`conf.d`,`open-knowledge.fish`)]}function Ko(e,t){let n=[],r=new Set([...Go(t),...e?.rcFiles??[]]);for(let e of r)H(e)&&n.push({kind:`shell-block`,group:`Shell PATH`,label:`Strip the OK block from ${J(e,t)}`,rcFile:e});for(let r of e?.extraSymlinks??[])n.push({kind:`extra-symlink`,group:`Shell PATH`,label:`Remove the ok symlink at ${J(r.path,t)}`,path:r.path,target:r.target});return n}function qo(e,t,n){let r={home:e,platformName:t,env:n},i=Io(r),a=Lo(r),o=[{kind:`remove-path`,group:`Application data`,label:`Remove ${J(i,e)}`,path:i}];if(t===`darwin`){let t=Io({...r,productName:`Open Knowledge`});o.push({kind:`remove-path`,group:`Application data`,label:`Remove ${J(t,e)} (only if it is OpenKnowledge's)`,path:t,requireOurState:!0})}return o.push({kind:`remove-path`,group:`Application data`,label:`Remove ${J(a,e)}`,path:a}),o}async function Jo(e,t={}){let n=t.clearToken??En,r=t.clearEmbeddingsKey??Qe,i=t.stopServer??(async e=>{let t=await dn({lockDir:e,force:!0,log:()=>{},error:()=>{}});return{stopped:t.stopped.length,failed:t.failed.map(e=>({pid:e.target.pid,error:e.error}))}}),a=[];for(let t of e.ops)try{a.push(await Xo(t,{clearToken:n,clearEmbeddingsKey:r,stopServer:i}))}catch(e){a.push({op:t,status:`failed`,detail:e instanceof Error?e.message:String(e)})}return{results:a,removed:a.filter(e=>e.status===`removed`),failed:a.filter(e=>e.status===`failed`)}}async function Yo(e,t=hn){let n=[];for(let r of e.ops){if(r.kind!==`stop-server`)continue;let e=await t(r.lockDir);e===null||e===0||n.push(`${e} collaboration client${e===1?``:`s`} (editor window${e===1?``:`s`} or agents) ${e===1?`is`:`are`} connected to the server at ${r.lockDir}. Those windows will stop working, and restarting will NOT recover them — this removes the project state they depend on.`)}return n}async function Xo(e,t){switch(e.kind){case`stop-server`:{let{stopped:n,failed:r}=await t.stopServer(e.lockDir);return r.length>0?{op:e,status:`failed`,detail:`could not stop the server (${r.map(e=>`pid ${e.pid}: ${e.error}`).join(`; `)}); a process may still be using files that were removed`}:{op:e,status:n>0?`removed`:`not-present`}}case`keychain-token`:{let{touched:n,keychainError:r}=await t.clearToken(e.host);return r?{op:e,status:`failed`,detail:`keychain unreachable (${r}); remove manually: Keychain Access → service "open-knowledge"`}:{op:e,status:n.length>0?`removed`:`not-present`}}case`embeddings-key`:{let{touched:n}=await t.clearEmbeddingsKey();return{op:e,status:n.length>0?`removed`:`not-present`}}case`shell-block`:{if(!H(e.rcFile))return{op:e,status:`not-present`};let{text:t,changed:n,emptyAfter:r}=gn(U(e.rcFile,`utf-8`));return n?r?(Dr(e.rcFile,{force:!0}),{op:e,status:`removed`,detail:`file removed (was OK-owned)`}):(Bt(e.rcFile,t,{mode:Gn(e.rcFile)}),{op:e,status:`removed`}):{op:e,status:`not-present`}}case`extra-symlink`:return mn(e.path,e.target)?(G(e.path),{op:e,status:`removed`}):{op:e,status:`not-present`};case`mcp-entry`:{let t=tn(Qt[e.editorId],e.cwd,e.home,e.configPath);switch(t.kind){case`removed`:switch(t.trust){case void 0:case`removed`:case`not-present`:return{op:e,status:`removed`};case`kept-shared`:return{op:e,status:`removed`,detail:`kept Pi's folder trust — another extension there still needs it`};case`kept-unverified`:return{op:e,status:`removed`,detail:`kept Pi's folder trust — couldn't read the extensions folder to see what else needs it`};default:return{op:e,status:`failed`,detail:`removed the bridge file, but couldn't revoke Pi's folder trust (${t.trust})${t.trustError===void 0?``:`: ${t.trustError}`}`}}case`not-present`:return{op:e,status:`not-present`};case`left-foreign`:return{op:e,status:`skipped`,detail:`left a non-OK server in place`};case`declined`:return{op:e,status:`skipped`,detail:`declined (${t.reason})`};default:throw Error(`unhandled mcp-remove outcome: ${t.kind}`)}}case`launch-entry`:{let t=ir(e.projectRoot);switch(t.kind){case`removed`:return{op:e,status:`removed`};case`not-present`:return{op:e,status:`not-present`};case`declined`:return{op:e,status:`skipped`,detail:`declined (unparseable)`};default:throw Error(`unhandled launch-remove outcome: ${t.kind}`)}}case`git-exclude`:{if(Nn(e.projectRoot).length===0)return{op:e,status:`not-present`};let t=In(e.projectRoot,Bn(e.projectRoot));return t.kind===`no-exclude`?t.reason===`inaccessible`?{op:e,status:`failed`,detail:`could not write .git/info/exclude (inaccessible)`}:{op:e,status:`not-present`,detail:t.reason}:{op:e,status:t.removed.length>0?`removed`:`not-present`}}case`remove-path`:return Zo(e)}}function Zo(e){if(e.requireOurState&&!Bo(e.path))return{op:e,status:`skipped`,detail:`not verified as OpenKnowledge — left untouched`};e.containWithin&&Zt(e.path,e.containWithin);let t;try{t=xr(e.path)}catch(e){if(e.code!==`ENOENT`)throw e}if(!t)return{op:e,status:`not-present`};if(t.isSymbolicLink())return G(e.path),{op:e,status:`removed`};if(e.preserve&&e.preserve.length>0){let t=new Set(e.preserve),n=!1;for(let r of wr(e.path))t.has(r)||(Dr(z(e.path,r),{recursive:!0,force:!0}),n=!0);return{op:e,status:n?`removed`:`not-present`}}return Dr(e.path,{recursive:!0,force:!0}),{op:e,status:`removed`}}function Qo(e){let t=new Map;for(let n of e){let e=t.get(n.group)??[];e.push(n),t.set(n.group,e)}return t}function $o(e){if(e.ops.length===0)return N(`Nothing to remove.`);let t=[];for(let[n,r]of Qo(e.ops)){t.length>0&&t.push(``),t.push(L(`${n}:`));for(let e of r)t.push(` ${I(`-`)} ${e.label}`)}return t.join(`
@@ -40,7 +40,7 @@ ws.addEventListener('error', () => process.exit(1));
40
40
  setTimeout(() => process.exit(2), ${t+1e4});
41
41
  `),r}async function Ns(e,t,n,r,i){let a=Ms(e,t,z(r,`cpu.cpuprofile`)),o=!1,s=lr(process.execPath,[a],k({stdio:`ignore`})),c=setInterval(()=>{let e=Os(n);e&&i(e)},1e3);await new Promise(e=>{s.once(`close`,t=>{o=t===0,e()}),setTimeout(()=>{s.kill(),e()},t+12e3)}),clearInterval(c);try{Dr(z(a,`..`),{recursive:!0,force:!0})}catch{}return o}function Ps(e){let t;try{t=JSON.parse(e)}catch{return`(could not parse profile)`}let n=new Map(t.nodes.map(e=>[e.id,e])),r=new Map;for(let e of t.nodes)for(let t of e.children??[])r.set(t,e.id);let i=new Map;for(let e of t.samples??[])i.set(e,(i.get(e)??0)+1);let a=t.samples?.length??0,o=t.endTime!=null&&t.startTime!=null?((t.endTime-t.startTime)/1e3).toFixed(2):`?`,s=[...i.entries()].sort((e,t)=>t[1]-e[1]).slice(0,10),c=[`samples ${a} duration_ms ${o}`,``,`Top leaf nodes`];for(let[e,t]of s){let r=n.get(e);if(!r)continue;let i=a>0?(t/a*100).toFixed(1):`0.0`,{functionName:o,url:s,lineNumber:l,columnNumber:u}=r.callFrame;c.push(` ${t} ${i}% id=${e} ${o||`(anonymous)`} ${s}:${l}:${u} hit=${r.hitCount??0}`)}c.push(``,`Top stacks`);let l=e=>{let t=[],i=e;for(;i!=null;){let e=n.get(i);if(!e)break;let{functionName:a,url:o,lineNumber:s,columnNumber:c}=e.callFrame;t.unshift(` ${a||`(anonymous)`} ${o} ${s} ${c}`),i=r.get(i)}return t};for(let[e,t]of s.slice(0,5)){let n=a>0?(t/a*100).toFixed(1):`0.0`;c.push(``,`--- ${t} ${n}%`,...l(e))}return c.join(`
42
42
  `)}async function Fs(e,t={}){let{pid:n,cpuProfileSecs:r=15,noInspector:i=!1}=e,a=t.log??(e=>console.log(e)),o=t.discover??Ot,s=t.inspect??(e=>an(e,`server`)),c=t.resolveCommand??gt,l=t.resolveUsage??jt,u=t.collectLsofFn??ks,d=t.getEndpoints??js,f=t.profiler??Ns,p=t.isAlive??(e=>{try{return process.kill(e,0),!0}catch(e){return e.code===`EPERM`}}),m=t.sendSignal??((e,t)=>{process.kill(e,t)}),h=t.sleep??(e=>new Promise(t=>setTimeout(t,e))),g=r*1e3;if(!p(n)){a(Y.default.red(`No process with pid ${n} found.`));return}let _=await o(),v=null,y=null;for(let e of _){let t=s(e);if(t.status!==`missing`&&t.status!==`corrupt`&&t.lock.pid===n){v=t.lock.worktreeRoot,y={lockDir:e,state:t.status,lockPath:t.lockPath,lock:t.lock};break}}let b=new Date().toISOString().replace(/[:.]/g,`-`),x=e.output?e.output:v?z(v,`.ok`,`local`,`diagnostics`,`process-${n}-${b}`):z(process.cwd(),`ok-diagnose-${n}-${b}`);try{Sr(x,{recursive:!0})}catch(e){a(Y.default.red(`Cannot create output directory ${x}: ${e.message}`));return}a(Y.default.bold(`Diagnosing pid ${n}`)),a(`Output: ${x}`),a(``);let S=(e,t)=>{Or(z(x,e),t),a(` wrote ${e}`)},ee=c(n),te=l(n);S(`metadata.json`,JSON.stringify({capturedAt:new Date().toISOString(),pid:n,command:ee,usage:te,lockInfo:y},null,2)),a(` sampling lsof`);let C=u(n);if(C&&S(`lsof.txt`,C),!i){let e=C?As(C).find(e=>e>=9229&&e<=9299)??9229:9229,t=d(e);if(!t||t.length===0){a(` no inspector on :${e}, sending SIGUSR1 to pid ${n}`);try{m(n,`SIGUSR1`),await h(2e3),t=d(e)}catch(e){a(Y.default.yellow(` SIGUSR1 delivery failed: ${e.message}`))}}if(t&&t.length>0){S(`inspector-endpoints.json`,JSON.stringify(t,null,2));let e=t[0].webSocketDebuggerUrl;if(e){a(` capturing ${r}s CPU profile`);let t=[];await f(e,g,n,x,e=>t.push(e))?a(` wrote cpu.cpuprofile`):a(Y.default.yellow(` CPU profile capture failed`)),t.length>0&&S(`process-stats.jsonl`,`${t.map(e=>JSON.stringify(e)).join(`
43
- `)}\n`);try{S(`stacks.txt`,Ps(U(z(x,`cpu.cpuprofile`),`utf-8`)))}catch(e){a(Y.default.yellow(` stacks.txt skipped: ${e.message}`))}}}else a(Y.default.yellow(` Node inspector unavailable — skipping CPU profile`))}a(``),a(Y.default.yellow(`⚠ Before sharing, review what each file contains:`)),a(` metadata.json — content directory paths, lock file locations, CPU/MEM at capture time`),a(` lsof.txt — all open files, network connections, and private paths for this process`),a(` inspector-endpoints.json — Node debugger metadata (titles, URLs)`),a(` cpu.cpuprofile — function names and source file paths from your Node process`),a(` stacks.txt — call stacks derived from cpu.cpuprofile; includes source paths`),a(` process-stats.jsonl — CPU/MEM/RSS numbers only; safe to share`),a(``),a(`Bundle: ${Y.default.bold(x)}`)}async function Is(e){let t=Ir({input:process.stdin,output:process.stdout});try{return(await t.question(e)).trim()}finally{t.close()}}async function Ls(e){let t=Cr(z(jr(),`ok-bundle-process-`));return await Fs({pid:e,output:t}),t}function Rs(e){if(e<1024)return`${e} B`;let t=e/1024;if(t<1024)return`${t.toFixed(1)} KB`;let n=t/1024;return n<1024?`${n.toFixed(1)} MB`:`${(n/1024).toFixed(1)} GB`}function zs(e){let t=e.trim().toLowerCase();return t===`y`||t===`yes`}function Bs(e){let{summary:t,manifest:n}=e;return t.redacted?t.contentDirVisible?`masked as <CONTENT_DIR>, but still present in some files`:`masked as <CONTENT_DIR>`:t.contentDirVisible?`visible (${n.contentDir.absolutePath})`:`not present`}function Vs(e){let t=e.manifest.redaction.secretScrub;return t===void 0?Y.default.yellow(`NOT scrubbed (--no-redact): tokens and keys ship verbatim`):`scrubbed known credential formats (${t.redactedLineCount} line(s) across ${t.redactions.length} file(s))`}function Hs(e,t,n){let{summary:r,manifest:i}=t;e(``),e(Y.default.bold(`ok diagnose bundle — what leaves this machine`)),e(``),e(` Files: ${r.fileCount}`),e(` Total size: ${Rs(r.totalBytes)} uncompressed`),e(` Document names: included in cleartext (${r.docNameCount} doc.name occurrence(s) in telemetry)`),e(` Content-dir path: ${Bs(t)}`),e(` Credentials: ${Vs(t)}`),e(` Server status: ${i.serverStatus}`),e(` Output: ${n}`),e(``)}async function Us(e,t={}){let n=t.log??(e=>console.log(e)),r=t.prompt??Is,i=t.runProcessDiagnose??Ls,a=t.now??(()=>new Date),o;if(e.out!==void 0){o=e.out;let t=R(o);if(!H(t))throw Error(`ok diagnose bundle: --out parent directory does not exist: ${t}. Create it first.`)}else{let t=a().toISOString().replace(/[:.]/g,`-`),n=z(e.contentDir,`.ok`,`local`,`diagnostics`);Sr(n,{recursive:!0}),o=z(n,`bundle-${t}.zip`)}let s;e.pid!==void 0&&(n(Y.default.dim(`Running ok diagnose process ${e.pid} into a temp dir`)),s=await i(e.pid));let c=e.redact!==!1,l=await un({contentDir:e.contentDir,projectDir:e.projectDir,processDir:s,redact:c,scrubSecrets:c,deps:t.collectDeps});try{return l.manifest.serverStatus===`not-running`&&n(Y.default.yellow(` server not running — live state unavailable`)),Hs(n,l,o),e.yes!==!0&&!zs(await r(`Write bundle? [y/N]: `))?(n(Y.default.dim(`Aborted; no bundle written.`)),{outputPath:null,declined:!0}):(await sn({collected:l,outputPath:o}),n(Y.default.bold(`Bundle: ${o}`)),{outputPath:o,declined:!1})}finally{if(l.cleanup(),s!==void 0)try{Dr(s,{recursive:!0,force:!0})}catch{}}}function Ws(){let e=new j(`diagnose`).description(`Diagnostic utilities for open-knowledge processes`);return e.command(`process`).description(`Capture a diagnostic bundle (metadata, lsof, CPU profile) for a running process`).argument(`<pid>`,`Process ID to diagnose`).option(`--cpu-profile <seconds>`,`CPU profile duration (default: 15)`,`15`).option(`--output <dir>`,`Output directory`).option(`--no-inspector`,`Collect metadata only; skip Node inspector and CPU profile`).action(async(e,t)=>{let n=Number.parseInt(e,10);(Number.isNaN(n)||n<=0)&&(console.error(Y.default.red(`Invalid pid '${e}': must be a positive integer`)),process.exit(1));let r=Number.parseInt(t.cpuProfile,10);(Number.isNaN(r)||r<=0)&&(console.error(Y.default.red(`--cpu-profile must be a positive integer`)),process.exit(1)),await Fs({pid:n,cpuProfileSecs:r,output:t.output,noInspector:!t.inspector})}),e.addCommand(Ds()),e.command(`bundle`).description(`Capture a support bundle (telemetry + logs + server state) into a zip suitable for bug reports`).option(`--pid <pid>`,"Include `ok diagnose process <pid>` output under process/ in the bundle").option(`--out <path>`,`Write the zip to this path instead of the default location`).option(`--yes`,`Skip the y/N prompt`).option(`--no-redact`,`Write a raw bundle: skip credential scrubbing and content-dir path masking`).option(`--redact`,`Scrub credentials and mask the content-dir path (the default)`).action(async e=>{let t;e.pid!==void 0&&(t=Number.parseInt(e.pid,10),(Number.isNaN(t)||t<=0)&&(console.error(Y.default.red(`Invalid --pid '${e.pid}': must be a positive integer`)),process.exit(1)));try{let{loadConfig:n}=await import(`./loader-BJkT51dw.mjs`),{resolveContentDir:r}=await import(`./src-DB22-png.mjs`),i=process.cwd(),{config:a}=n(i);await Us({contentDir:r(a,i),projectDir:i,pid:t,out:e.out,yes:e.yes===!0,redact:e.redact})}catch(e){let t=e instanceof Error?e.message:String(e);console.error(Y.default.red(t)),process.exit(1)}}),e}async function Gs(){if(!process.stdin.isTTY){let e=[];for await(let t of process.stdin)e.push(t);return Buffer.concat(e).toString(`utf-8`).trim()}return(await Ci({message:`Enter embeddings provider API key:`})).trim()}function Ks(e){return Re(e)}async function qs(e,t){let n=await Tt(Ge(),e,t);return n.apiKey?{present:!0,notRequired:!1,source:n.source}:{present:!1,notRequired:n.keyless,source:null}}async function Js(e){try{let t=Gt(A(e));if(!t||t.port<=0||!Wt(t.pid))return null;let n=await fetch(`http://127.0.0.1:${t.port}/api/semantic-status`,{signal:AbortSignal.timeout(1500)});if(!n.ok)return null;let r=await n.json();return typeof r.embedded!=`number`||typeof r.total!=`number`?null:{embedded:r.embedded,total:r.total}}catch{return null}}function Ys(){return new j(`set-key`).description(`Store the embeddings API key for THIS project's configured endpoint`).option(`--cwd <path>`,`Project directory (defaults to the current directory)`).action(async e=>{let t=await Gs();if(!t){process.stderr.write(`No key provided.
43
+ `)}\n`);try{S(`stacks.txt`,Ps(U(z(x,`cpu.cpuprofile`),`utf-8`)))}catch(e){a(Y.default.yellow(` stacks.txt skipped: ${e.message}`))}}}else a(Y.default.yellow(` Node inspector unavailable — skipping CPU profile`))}a(``),a(Y.default.yellow(`⚠ Before sharing, review what each file contains:`)),a(` metadata.json — content directory paths, lock file locations, CPU/MEM at capture time`),a(` lsof.txt — all open files, network connections, and private paths for this process`),a(` inspector-endpoints.json — Node debugger metadata (titles, URLs)`),a(` cpu.cpuprofile — function names and source file paths from your Node process`),a(` stacks.txt — call stacks derived from cpu.cpuprofile; includes source paths`),a(` process-stats.jsonl — CPU/MEM/RSS numbers only; safe to share`),a(``),a(`Bundle: ${Y.default.bold(x)}`)}async function Is(e){let t=Ir({input:process.stdin,output:process.stdout});try{return(await t.question(e)).trim()}finally{t.close()}}async function Ls(e){let t=Cr(z(jr(),`ok-bundle-process-`));return await Fs({pid:e,output:t}),t}function Rs(e){if(e<1024)return`${e} B`;let t=e/1024;if(t<1024)return`${t.toFixed(1)} KB`;let n=t/1024;return n<1024?`${n.toFixed(1)} MB`:`${(n/1024).toFixed(1)} GB`}function zs(e){let t=e.trim().toLowerCase();return t===`y`||t===`yes`}function Bs(e){let{summary:t,manifest:n}=e;return t.redacted?t.contentDirVisible?`masked as <CONTENT_DIR>, but still present in some files`:`masked as <CONTENT_DIR>`:t.contentDirVisible?`visible (${n.contentDir.absolutePath})`:`not present`}function Vs(e){let t=e.manifest.redaction.secretScrub;return t===void 0?Y.default.yellow(`NOT scrubbed (--no-redact): tokens and keys ship verbatim`):`scrubbed known credential formats (${t.redactedLineCount} line(s) across ${t.redactions.length} file(s))`}function Hs(e,t,n){let{summary:r,manifest:i}=t;e(``),e(Y.default.bold(`ok diagnose bundle — what leaves this machine`)),e(``),e(` Files: ${r.fileCount}`),e(` Total size: ${Rs(r.totalBytes)} uncompressed`),e(` Document names: included in cleartext (${r.docNameCount} doc.name occurrence(s) in telemetry)`),e(` Content-dir path: ${Bs(t)}`),e(` Credentials: ${Vs(t)}`),e(` Server status: ${i.serverStatus}`),e(` Output: ${n}`),e(``)}async function Us(e,t={}){let n=t.log??(e=>console.log(e)),r=t.prompt??Is,i=t.runProcessDiagnose??Ls,a=t.now??(()=>new Date),o;if(e.out!==void 0){o=e.out;let t=R(o);if(!H(t))throw Error(`ok diagnose bundle: --out parent directory does not exist: ${t}. Create it first.`)}else{let t=a().toISOString().replace(/[:.]/g,`-`),n=z(e.contentDir,`.ok`,`local`,`diagnostics`);Sr(n,{recursive:!0}),o=z(n,`bundle-${t}.zip`)}let s;e.pid!==void 0&&(n(Y.default.dim(`Running ok diagnose process ${e.pid} into a temp dir`)),s=await i(e.pid));let c=e.redact!==!1,l=await un({contentDir:e.contentDir,projectDir:e.projectDir,processDir:s,redact:c,scrubSecrets:c,deps:t.collectDeps});try{return l.manifest.serverStatus===`not-running`&&n(Y.default.yellow(` server not running — live state unavailable`)),Hs(n,l,o),e.yes!==!0&&!zs(await r(`Write bundle? [y/N]: `))?(n(Y.default.dim(`Aborted; no bundle written.`)),{outputPath:null,declined:!0}):(await sn({collected:l,outputPath:o}),n(Y.default.bold(`Bundle: ${o}`)),{outputPath:o,declined:!1})}finally{if(l.cleanup(),s!==void 0)try{Dr(s,{recursive:!0,force:!0})}catch{}}}function Ws(){let e=new j(`diagnose`).description(`Diagnostic utilities for open-knowledge processes`);return e.command(`process`).description(`Capture a diagnostic bundle (metadata, lsof, CPU profile) for a running process`).argument(`<pid>`,`Process ID to diagnose`).option(`--cpu-profile <seconds>`,`CPU profile duration (default: 15)`,`15`).option(`--output <dir>`,`Output directory`).option(`--no-inspector`,`Collect metadata only; skip Node inspector and CPU profile`).action(async(e,t)=>{let n=Number.parseInt(e,10);(Number.isNaN(n)||n<=0)&&(console.error(Y.default.red(`Invalid pid '${e}': must be a positive integer`)),process.exit(1));let r=Number.parseInt(t.cpuProfile,10);(Number.isNaN(r)||r<=0)&&(console.error(Y.default.red(`--cpu-profile must be a positive integer`)),process.exit(1)),await Fs({pid:n,cpuProfileSecs:r,output:t.output,noInspector:!t.inspector})}),e.addCommand(Ds()),e.command(`bundle`).description(`Capture a support bundle (telemetry + logs + server state) into a zip suitable for bug reports`).option(`--pid <pid>`,"Include `ok diagnose process <pid>` output under process/ in the bundle").option(`--out <path>`,`Write the zip to this path instead of the default location`).option(`--yes`,`Skip the y/N prompt`).option(`--no-redact`,`Write a raw bundle: skip credential scrubbing and content-dir path masking`).option(`--redact`,`Scrub credentials and mask the content-dir path (the default)`).action(async e=>{let t;e.pid!==void 0&&(t=Number.parseInt(e.pid,10),(Number.isNaN(t)||t<=0)&&(console.error(Y.default.red(`Invalid --pid '${e.pid}': must be a positive integer`)),process.exit(1)));try{let{loadConfig:n}=await import(`./loader-CNVQcVUl.mjs`),{resolveContentDir:r}=await import(`./src-DB22-png.mjs`),i=process.cwd(),{config:a}=n(i);await Us({contentDir:r(a,i),projectDir:i,pid:t,out:e.out,yes:e.yes===!0,redact:e.redact})}catch(e){let t=e instanceof Error?e.message:String(e);console.error(Y.default.red(t)),process.exit(1)}}),e}async function Gs(){if(!process.stdin.isTTY){let e=[];for await(let t of process.stdin)e.push(t);return Buffer.concat(e).toString(`utf-8`).trim()}return(await Ci({message:`Enter embeddings provider API key:`})).trim()}function Ks(e){return Re(e)}async function qs(e,t){let n=await Tt(Ge(),e,t);return n.apiKey?{present:!0,notRequired:!1,source:n.source}:{present:!1,notRequired:n.keyless,source:null}}async function Js(e){try{let t=Gt(A(e));if(!t||t.port<=0||!Wt(t.pid))return null;let n=await fetch(`http://127.0.0.1:${t.port}/api/semantic-status`,{signal:AbortSignal.timeout(1500)});if(!n.ok)return null;let r=await n.json();return typeof r.embedded!=`number`||typeof r.total!=`number`?null:{embedded:r.embedded,total:r.total}}catch{return null}}function Ys(){return new j(`set-key`).description(`Store the embeddings API key for THIS project's configured endpoint`).option(`--cwd <path>`,`Project directory (defaults to the current directory)`).action(async e=>{let t=await Gs();if(!t){process.stderr.write(`No key provided.
44
44
  `),process.exitCode=1;return}let n=V(e.cwd??process.cwd()),{baseUrl:r}=Ks(n);try{await Ge().setForProject(n,r,t)}catch(e){process.stderr.write(`Failed to store the embeddings key: ${e instanceof Error?e.message:String(e)}\n`),process.exitCode=1;return}process.stderr.write(`✓ Embeddings API key stored for ${r}\n (kept in ~/.ok/secrets.yml, 0600, this machine only — never in the project).
45
45
  Enable semantic search with \`ok embeddings enable\`, or in
46
46
  OK Desktop → Settings → This project → Search.
@@ -75,7 +75,7 @@ ${t}`,d++;break;case`id`:l=t.includes(`\0`)?void 0:t;break;case`retry`:/^\d+$/.t
75
75
  `).replace(/\n+$/,``);return e.endsWith(`
76
76
  `)?`${c}\n`:c}function sd(e){return e.replace(/\r\n|\r|\n/g,`<br>`).replace(/\|/g,`\\|`)}function cd(e){return/\s/.test(e)?`<${e}>`:e}function ld(e,t={}){let{header:n,rows:r}=Mu(e),i=n.length;if(i===0)return{table:``,columns:0,wide:!1};let a=t.wideThreshold??15,o=t.titleColumn??0;return{table:[`| ${n.map(sd).join(` | `)} |`,`| ${n.map(()=>`---`).join(` | `)} |`,...r.map(e=>`| ${n.map((n,r)=>{let i=e[r]??``,a=sd(i);if(r===o&&t.linkForTitle&&i.trim()!==``){let e=t.linkForTitle(i);if(e)return`[${a}](${cd(e)})`}return a}).join(` | `)} |`)].join(`
77
77
  `),columns:i,wide:i>a}}function ud(e,t){let n=e.match(/^#\s+(.+)$/m);return n?n[1].trim():t}function dd(e,t){return`# ${e}\n\n${t}\n`}const fd=[`links`,`frontmatter`,`callouts`,`images`,`tables`],pd=/\.mdx?$/i;function md(e){return{isNotionExport:e,transforms:{links:0,frontmatter:0,callouts:0,images:0,tables:0},assetsExtracted:0,stubsCreated:0,csvsRemoved:0,wideTables:[],ambiguousTitleLinks:0,unreadable:[],filesChanged:0}}function hd(e,t={}){let n=t.selected??new Set(fd),r=$u(e);if(!r&&!t.force)return{changes:[],assets:[],deletions:[],report:md(!1)};let i=md(r),a=Xu(e),o=Vu(a,{onUnreadable:e=>i.unreadable.push(e)}),s=n.has(`tables`),c=new Map,l=new Set;for(let e of o){e.stubPath&&l.add(e.stubPath);for(let t of e.rowFiles)c.set(t,e)}let u=[],d=[],f=[];for(let e of a){if(!pd.test(e)||s&&l.has(e))continue;let r;try{r=U(e,`utf8`)}catch{i.unreadable.push(e);continue}let a=r,o=(e,t)=>{a!==t&&(i.transforms[e]+=1)};if(n.has(`images`)){let n=a,r=ju(a,dr(e),{strip:t.stripBase64});a=r.markdown;for(let t of r.assets)d.push({path:z(R(e),t.filename),bytes:t.bytes});i.assetsExtracted+=r.assets.length,o(`images`,n)}if(n.has(`callouts`)){let e=a;a=Du(a),o(`callouts`,e)}if(n.has(`frontmatter`)){let t=c.get(e);if(t){let e=a;a=od(a,t.propertyKeys),o(`frontmatter`,e)}}if(n.has(`links`)){let e=a;a=Yu(a,{redirectCsv:s}),o(`links`,e)}a!==r&&u.push({path:e,content:a})}if(s)for(let e of o){let r=ld(e.csvText,{linkForTitle:t=>{let n=Ru(e.folderIndex,t);return n.ambiguous&&(i.ambiguousTitleLinks+=1),n.path?B(R(e.stubTargetPath),n.path):null}});if(r.columns===0)continue;let a=e.stubPath??e.stubTargetPath,o=null;if(e.stubPath)try{o=U(e.stubPath,`utf8`)}catch{i.unreadable.push(e.stubPath);continue}let c=dd(o===null?e.fallbackTitle:ud(o,e.fallbackTitle),r.table);n.has(`links`)&&(c=Yu(c,{redirectCsv:s})),r.wide&&i.wideTables.push(a),o===null?(u.push({path:a,content:c}),i.stubsCreated+=1,i.transforms.tables+=1):c!==o&&(u.push({path:a,content:c}),i.transforms.tables+=1),t.removeCsv&&(f.push(e.csvPath),i.csvsRemoved+=1)}return i.filesChanged=new Set(u.map(e=>e.path)).size,{changes:u,assets:d,deletions:f,report:i}}function gd(e){for(let t of e.assets)Sr(R(t.path),{recursive:!0}),Or(t.path,t.bytes);for(let t of e.changes)Sr(R(t.path),{recursive:!0}),Or(t.path,t.content,`utf8`);for(let t of e.deletions)try{G(t)}catch(e){if(e.code!==`ENOENT`)throw e}}const _d={images:`Inline base64 images extracted`,callouts:`Notion <aside> callouts converted`,frontmatter:`Row properties lifted to frontmatter`,tables:`Databases rendered as tables`,links:`Internal links decoded`},vd=[`images`,`callouts`,`frontmatter`,`tables`,`links`];function yd(e,t){let n=[];n.push(t.applied?`Applied Notion cleanup in ${t.dir}`:`Dry run — no changes written (${t.dir})`);for(let t of vd)n.push(` ${_d[t]}: ${e.transforms[t]}`);return n.push(` Assets written: ${e.assetsExtracted}`),e.stubsCreated>0&&n.push(` Database pages created (CSVs without a stub): ${e.stubsCreated}`),e.csvsRemoved>0&&n.push(` CSV files removed: ${e.csvsRemoved}`),n.push(` Files changed: ${e.filesChanged}`),e.ambiguousTitleLinks>0&&n.push(` Ambiguous title links left as plain text: ${e.ambiguousTitleLinks}`),e.wideTables.length>0&&n.push(` Wide tables (>15 columns): ${e.wideTables.length}`),e.unreadable.length>0&&n.push(` Skipped unreadable files: ${e.unreadable.length}`),!t.applied&&e.filesChanged+e.assetsExtracted+e.csvsRemoved>0&&(n.push(``),n.push(`Re-run with --apply to write these changes.`)),n.join(`
78
- `)}function bd(e,t){return JSON.stringify({applied:t.applied,...e},null,2)}function xd(e){let t=new Set(fd);return e.split(`,`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(!t.has(e))throw Error(`Unknown transform "${e}". Valid transforms: ${fd.join(`, `)}`);return e})}function Sd(e,t){let n=new Set(fd);if(e&&(n=new Set(xd(e))),t)for(let e of xd(t))n.delete(e);return n}function Cd(){let e=new j(`migrate`).description(`Migrate content from other tools into Open Knowledge`);return e.command(`notion [dir]`).description(`Clean up a Notion "Markdown & CSV" export in place (dry-run unless --apply)`).option(`--apply`,`write changes to disk (default: dry-run preview)`).option(`--strip-base64`,`delete inline base64 images instead of extracting them to files`).option(`--remove-csv`,`delete each "_all.csv" once its table page exists (destructive)`).option(`--only <transforms>`,`run only these transforms (comma-separated: links,frontmatter,callouts,images,tables)`).option(`--skip <transforms>`,`skip these transforms (comma-separated)`).option(`--force`,`run even if the directory is not detected as a Notion export`).option(`--json`,`print a machine-readable JSON report`).action((e,t)=>{let n=V(e??process.cwd()),r;try{r=Sd(t.only,t.skip)}catch(e){console.error(e instanceof Error?e.message:String(e)),process.exitCode=2;return}let i=hd(n,{selected:r,stripBase64:t.stripBase64??!1,removeCsv:t.removeCsv??!1,force:t.force??!1}),{report:a}=i;if(!a.isNotionExport&&!t.force){t.json?console.log(JSON.stringify({refused:!0,reason:`not-a-notion-export`,dir:n},null,2)):console.error(`Not a Notion export: ${n}\nNo id-suffixed pages, "_all.csv", or inline base64 images were found. Re-run with --force to override.`),process.exitCode=2;return}if(t.apply)try{gd(i)}catch(e){console.error(`Failed to apply changes: ${e instanceof Error?e.message:String(e)}`),process.exitCode=4;return}console.log(t.json?bd(a,{applied:t.apply??!1}):yd(a,{applied:t.apply??!1,dir:n})),a.filesChanged===0&&a.assetsExtracted===0&&i.deletions.length===0?process.exitCode=1:t.apply&&(a.ambiguousTitleLinks>0||a.wideTables.length>0)&&(process.exitCode=3)}),e}function wd(e,t,n){return t===`darwin`?n&&e.startsWith(`openknowledge://`)?{command:`/usr/bin/open`,args:[`-a`,n,e]}:{command:`/usr/bin/open`,args:[e]}:t===`win32`?e.startsWith(`http://`)||e.startsWith(`https://`)?{command:`explorer.exe`,args:[e]}:{command:`rundll32.exe`,args:[`url.dll,FileProtocolHandler`,e]}:{command:`xdg-open`,args:[e]}}function Td(e,t={}){let n=wd(e,t.platform??process.platform,t.desktopBundlePath);return Cn(n.command,n.args,{spawn:t.spawn,env:t.env,timeoutMs:t.timeoutMs})}function Ed(e,t,n=process.platform){let r=wd(t,n).command;switch(e){case`not-installed`:return`${r} is not installed or cannot be executed`;case`timeout`:return`${r} did not start in time`;case`spawn-error`:return`${r} could not be started`}}function Dd(e=()=>On(Dn())){return{detectBundlePath:()=>e().bundlePath??null,resolveBaseUrl:e=>Et({lockDir:A(e)}).baseUrl,classifyName:(e,t)=>{let n=z(e,t);try{return W(n).isDirectory()?`folder`:`doc`}catch(e){let t=e?.code;return t!==`ENOENT`&&t!==`ENOTDIR`&&process.stderr.write(`[ok open] statSync failed for ${n} (${t??`unknown`}); treating as a doc\n`),`doc`}},openTarget:Td,findAncestorProject:e=>Ze(R(V(e)))?.rootPath??null,isProjectRoot:e=>Ze(e)?.distance===0,enclosingProject:e=>Ze(V(e))?.rootPath??null,log:e=>process.stdout.write(`${e}\n`),error:e=>process.stderr.write(`${e}\n`)}}function Od(e){return e.startsWith(`/`)||e.includes(`\\`)||e.split(`/`).includes(`..`)}function kd(e){return e.error("No OpenKnowledge desktop app found and no UI is running. Install it from https://openknowledge.ai/download, or run `ok start` to serve the editor, then retry."),1}async function Ad(e,t,n,r,i,a){let o=await i.openTarget(e,a?{desktopBundlePath:a}:{});if(!o.ok)return i.error(`Could not open ${e}: ${Ed(o.reason,e)}.`),1;if(i.log(t),!r)return i.log(`Working directory: ${n} (not an OpenKnowledge project).`),0;i.log(`Project: ${n}`);let s=i.findAncestorProject(n);return s!==null&&i.log(`Note: this project (${n}) is nested inside another OpenKnowledge project at ${s}. Pass --project to choose explicitly.`),0}async function jd(e,t,r){let i=t.project!==void 0,a=i?null:r.enclosingProject(process.cwd()),o=V(t.project??a??process.cwd()),s=i||a!==null,c=e.replace(/\/+$/,``);if(i&&!r.isProjectRoot(o))return r.error(`Cannot open with --project ${o}: no .ok/config.yml there, so it is not an OpenKnowledge project.`),1;if(!c)return r.error("Nothing to open: pass a doc, folder, or skill name (e.g. `ok open specs/foo/SPEC`)."),1;if(Od(c))return r.error(`Invalid name "${c}": must be a relative path with no '..' segments, leading '/', or backslashes.`),1;if(t.skill===!0){let e=t.scope??`project`;if(!n.includes(e))return r.error(`Invalid --scope "${t.scope}": expected one of ${n.join(`, `)}.`),1;let i=r.detectBundlePath();if(i)return Ad(`openknowledge://open?project=${encodeURIComponent(o)}&doc=${encodeURIComponent(`__skill__/${e}/${c}`)}`,`Opening skill ${c} (${e}) in the OpenKnowledge desktop app.`,o,s,r,i);let a=r.resolveBaseUrl(o);if(a){let t=`${a}/#/${bt(e,c)}`;return Ad(t,`Opening skill ${c} (${e}) in your browser: ${t}`,o,s,r)}return kd(r)}let l=/\/+$/.test(e)||r.classifyName(o,c)===`folder`,u=r.detectBundlePath();if(l){if(u)return Ad(`openknowledge://open?project=${encodeURIComponent(o)}&folder=${encodeURIComponent(c)}`,`Opening folder ${c} in the OpenKnowledge desktop app.`,o,s,r,u);let e=r.resolveBaseUrl(o);if(e){let t=`${e}/#/${At(c)}`;return Ad(t,`Opening folder ${c} in your browser: ${t}`,o,s,r)}return kd(r)}if(u)return Ad(`openknowledge://open?project=${encodeURIComponent(o)}&doc=${encodeURIComponent(c)}`,`Opening ${c} in the OpenKnowledge desktop app.`,o,s,r,u);let d=r.resolveBaseUrl(o);if(d){let e=`${d}/#/${ct(c)}`;return Ad(e,`Opening ${c} in your browser: ${e}`,o,s,r)}return kd(r)}function Md(){return new j(`open`).description(`Open a doc, folder, or skill in the OK Desktop app (falls back to the browser UI). Docs and folders are auto-detected — no flag needed.`).argument(`<name>`,`Doc path (specs/foo/SPEC), folder path (specs/foo or specs/foo/), or a skill name with --skill`).option(`--skill`,`Open <name> as a skill in the skill editor`).option(`--scope <scope>`,`Skill scope when --skill is set: ${n.join(` | `)}`,`project`).option(`--project <dir>`,`Project root (defaults to the project enclosing the current directory)`).action(async(e,t)=>{process.exitCode=await jd(e,t,Dd())})}function Nd(e){return new j(`preview`).description(`Show what content the watcher will track (read-only)`).action(async()=>{let{previewContent:t,formatPreviewBlock:n}=await import(`./preview-G0XRXzxK.mjs`),r=e(),i=process.cwd(),a=lt(r,i),o;try{o=t({projectDir:i,contentDir:a})}catch(e){console.error(`Content preview failed: ${e instanceof Error?e.message:String(e)}`),process.exitCode=1;return}process.stdout.write(`${n(o,i)}\n`),o.totalCount===0&&o.warnings.length>0&&(process.exitCode=1)})}function Pd(e,t){e&&process.stdout.write(`${JSON.stringify(t)}\n`)}async function Fd(e,t,n=process.cwd()){let r=e.op??`sync`,i=Gt(A(n));if(i&&i.port>0){let t=`http://127.0.0.1:${i.port}/api/sync/trigger`;e.json||process.stderr.write(`Triggering ${r} via running server (port ${i.port})\n`);try{let n=await fetch(t,{method:`POST`,headers:{"Content-Type":`application/json`,...m({kind:`cli`,runtimeVersion:Kt})},body:JSON.stringify({op:r})});if(!n.ok){let e=await n.json().catch(()=>({}));throw Error(e.title??e.error??e.message??`Server responded with ${n.status}`)}Pd(e.json,{type:`triggered`,op:r,port:i.port}),e.json||process.stderr.write(`✓ ${r} triggered\n`);return}catch(t){let n=t instanceof Error?t.message:String(t);e.json||process.stderr.write(`Server trigger failed (${n}), running directly\n`)}}e.json||process.stderr.write(`Running ${r} directly (no live server)\n`);let a=Ut({baseDir:n});if(r===`sync`||r===`pull`){Pd(e.json,{type:`step`,step:`pull`});let t=await a.pull();Pd(e.json,{type:`pull`,summary:t.summary}),e.json||process.stderr.write(` pull: ${t.summary.changes} changes\n`)}(r===`sync`||r===`push`)&&(Pd(e.json,{type:`step`,step:`push`}),await a.push(),Pd(e.json,{type:`push`,ok:!0}),e.json||process.stderr.write(` push: ok
78
+ `)}function bd(e,t){return JSON.stringify({applied:t.applied,...e},null,2)}function xd(e){let t=new Set(fd);return e.split(`,`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(!t.has(e))throw Error(`Unknown transform "${e}". Valid transforms: ${fd.join(`, `)}`);return e})}function Sd(e,t){let n=new Set(fd);if(e&&(n=new Set(xd(e))),t)for(let e of xd(t))n.delete(e);return n}function Cd(){let e=new j(`migrate`).description(`Migrate content from other tools into Open Knowledge`);return e.command(`notion [dir]`).description(`Clean up a Notion "Markdown & CSV" export in place (dry-run unless --apply)`).option(`--apply`,`write changes to disk (default: dry-run preview)`).option(`--strip-base64`,`delete inline base64 images instead of extracting them to files`).option(`--remove-csv`,`delete each "_all.csv" once its table page exists (destructive)`).option(`--only <transforms>`,`run only these transforms (comma-separated: links,frontmatter,callouts,images,tables)`).option(`--skip <transforms>`,`skip these transforms (comma-separated)`).option(`--force`,`run even if the directory is not detected as a Notion export`).option(`--json`,`print a machine-readable JSON report`).action((e,t)=>{let n=V(e??process.cwd()),r;try{r=Sd(t.only,t.skip)}catch(e){console.error(e instanceof Error?e.message:String(e)),process.exitCode=2;return}let i=hd(n,{selected:r,stripBase64:t.stripBase64??!1,removeCsv:t.removeCsv??!1,force:t.force??!1}),{report:a}=i;if(!a.isNotionExport&&!t.force){t.json?console.log(JSON.stringify({refused:!0,reason:`not-a-notion-export`,dir:n},null,2)):console.error(`Not a Notion export: ${n}\nNo id-suffixed pages, "_all.csv", or inline base64 images were found. Re-run with --force to override.`),process.exitCode=2;return}if(t.apply)try{gd(i)}catch(e){console.error(`Failed to apply changes: ${e instanceof Error?e.message:String(e)}`),process.exitCode=4;return}console.log(t.json?bd(a,{applied:t.apply??!1}):yd(a,{applied:t.apply??!1,dir:n})),a.filesChanged===0&&a.assetsExtracted===0&&i.deletions.length===0?process.exitCode=1:t.apply&&(a.ambiguousTitleLinks>0||a.wideTables.length>0)&&(process.exitCode=3)}),e}function wd(e,t,n){return t===`darwin`?n&&e.startsWith(`openknowledge://`)?{command:`/usr/bin/open`,args:[`-a`,n,e]}:{command:`/usr/bin/open`,args:[e]}:t===`win32`?e.startsWith(`http://`)||e.startsWith(`https://`)?{command:`explorer.exe`,args:[e]}:{command:`rundll32.exe`,args:[`url.dll,FileProtocolHandler`,e]}:{command:`xdg-open`,args:[e]}}function Td(e,t={}){let n=wd(e,t.platform??process.platform,t.desktopBundlePath);return Cn(n.command,n.args,{spawn:t.spawn,env:t.env,timeoutMs:t.timeoutMs})}function Ed(e,t,n=process.platform){let r=wd(t,n).command;switch(e){case`not-installed`:return`${r} is not installed or cannot be executed`;case`timeout`:return`${r} did not start in time`;case`spawn-error`:return`${r} could not be started`}}function Dd(e=()=>On(Dn())){return{detectBundlePath:()=>e().bundlePath??null,resolveBaseUrl:e=>Et({lockDir:A(e)}).baseUrl,classifyName:(e,t)=>{let n=z(e,t);try{return W(n).isDirectory()?`folder`:`doc`}catch(e){let t=e?.code;return t!==`ENOENT`&&t!==`ENOTDIR`&&process.stderr.write(`[ok open] statSync failed for ${n} (${t??`unknown`}); treating as a doc\n`),`doc`}},openTarget:Td,findAncestorProject:e=>Ze(R(V(e)))?.rootPath??null,isProjectRoot:e=>Ze(e)?.distance===0,enclosingProject:e=>Ze(V(e))?.rootPath??null,log:e=>process.stdout.write(`${e}\n`),error:e=>process.stderr.write(`${e}\n`)}}function Od(e){return e.startsWith(`/`)||e.includes(`\\`)||e.split(`/`).includes(`..`)}function kd(e){return e.error("No OpenKnowledge desktop app found and no UI is running. Install it from https://openknowledge.ai/download, or run `ok start` to serve the editor, then retry."),1}async function Ad(e,t,n,r,i,a){let o=await i.openTarget(e,a?{desktopBundlePath:a}:{});if(!o.ok)return i.error(`Could not open ${e}: ${Ed(o.reason,e)}.`),1;if(i.log(t),!r)return i.log(`Working directory: ${n} (not an OpenKnowledge project).`),0;i.log(`Project: ${n}`);let s=i.findAncestorProject(n);return s!==null&&i.log(`Note: this project (${n}) is nested inside another OpenKnowledge project at ${s}. Pass --project to choose explicitly.`),0}async function jd(e,t,r){let i=t.project!==void 0,a=i?null:r.enclosingProject(process.cwd()),o=V(t.project??a??process.cwd()),s=i||a!==null,c=e.replace(/\/+$/,``);if(i&&!r.isProjectRoot(o))return r.error(`Cannot open with --project ${o}: no .ok/config.yml there, so it is not an OpenKnowledge project.`),1;if(!c)return r.error("Nothing to open: pass a doc, folder, or skill name (e.g. `ok open specs/foo/SPEC`)."),1;if(Od(c))return r.error(`Invalid name "${c}": must be a relative path with no '..' segments, leading '/', or backslashes.`),1;if(t.skill===!0){let e=t.scope??`project`;if(!n.includes(e))return r.error(`Invalid --scope "${t.scope}": expected one of ${n.join(`, `)}.`),1;let i=r.detectBundlePath();if(i)return Ad(`openknowledge://open?project=${encodeURIComponent(o)}&doc=${encodeURIComponent(`__skill__/${e}/${c}`)}`,`Opening skill ${c} (${e}) in the OpenKnowledge desktop app.`,o,s,r,i);let a=r.resolveBaseUrl(o);if(a){let t=`${a}/#/${bt(e,c)}`;return Ad(t,`Opening skill ${c} (${e}) in your browser: ${t}`,o,s,r)}return kd(r)}let l=/\/+$/.test(e)||r.classifyName(o,c)===`folder`,u=r.detectBundlePath();if(l){if(u)return Ad(`openknowledge://open?project=${encodeURIComponent(o)}&folder=${encodeURIComponent(c)}`,`Opening folder ${c} in the OpenKnowledge desktop app.`,o,s,r,u);let e=r.resolveBaseUrl(o);if(e){let t=`${e}/#/${At(c)}`;return Ad(t,`Opening folder ${c} in your browser: ${t}`,o,s,r)}return kd(r)}if(u)return Ad(`openknowledge://open?project=${encodeURIComponent(o)}&doc=${encodeURIComponent(c)}`,`Opening ${c} in the OpenKnowledge desktop app.`,o,s,r,u);let d=r.resolveBaseUrl(o);if(d){let e=`${d}/#/${ct(c)}`;return Ad(e,`Opening ${c} in your browser: ${e}`,o,s,r)}return kd(r)}function Md(){return new j(`open`).description(`Open a doc, folder, or skill in the OK Desktop app (falls back to the browser UI). Docs and folders are auto-detected — no flag needed.`).argument(`<name>`,`Doc path (specs/foo/SPEC), folder path (specs/foo or specs/foo/), or a skill name with --skill`).option(`--skill`,`Open <name> as a skill in the skill editor`).option(`--scope <scope>`,`Skill scope when --skill is set: ${n.join(` | `)}`,`project`).option(`--project <dir>`,`Project root (defaults to the project enclosing the current directory)`).action(async(e,t)=>{process.exitCode=await jd(e,t,Dd())})}function Nd(e){return new j(`preview`).description(`Show what content the watcher will track (read-only)`).action(async()=>{let{previewContent:t,formatPreviewBlock:n}=await import(`./preview-C1V1t9po.mjs`),r=e(),i=process.cwd(),a=lt(r,i),o;try{o=t({projectDir:i,contentDir:a})}catch(e){console.error(`Content preview failed: ${e instanceof Error?e.message:String(e)}`),process.exitCode=1;return}process.stdout.write(`${n(o,i)}\n`),o.totalCount===0&&o.warnings.length>0&&(process.exitCode=1)})}function Pd(e,t){e&&process.stdout.write(`${JSON.stringify(t)}\n`)}async function Fd(e,t,n=process.cwd()){let r=e.op??`sync`,i=Gt(A(n));if(i&&i.port>0){let t=`http://127.0.0.1:${i.port}/api/sync/trigger`;e.json||process.stderr.write(`Triggering ${r} via running server (port ${i.port})\n`);try{let n=await fetch(t,{method:`POST`,headers:{"Content-Type":`application/json`,...m({kind:`cli`,runtimeVersion:Kt})},body:JSON.stringify({op:r})});if(!n.ok){let e=await n.json().catch(()=>({}));throw Error(e.title??e.error??e.message??`Server responded with ${n.status}`)}Pd(e.json,{type:`triggered`,op:r,port:i.port}),e.json||process.stderr.write(`✓ ${r} triggered\n`);return}catch(t){let n=t instanceof Error?t.message:String(t);e.json||process.stderr.write(`Server trigger failed (${n}), running directly\n`)}}e.json||process.stderr.write(`Running ${r} directly (no live server)\n`);let a=Ut({baseDir:n});if(r===`sync`||r===`pull`){Pd(e.json,{type:`step`,step:`pull`});let t=await a.pull();Pd(e.json,{type:`pull`,summary:t.summary}),e.json||process.stderr.write(` pull: ${t.summary.changes} changes\n`)}(r===`sync`||r===`push`)&&(Pd(e.json,{type:`step`,step:`push`}),await a.push(),Pd(e.json,{type:`push`,ok:!0}),e.json||process.stderr.write(` push: ok
79
79
  `)),Pd(e.json,{type:`complete`,op:r}),e.json||process.stderr.write(`✓ ${r} complete\n`)}function Id(e){return new j(`sync`).description(`Commit, pull, and push to the remote`).option(`--json`,`Output JSONL progress events`,!1).action(async t=>{try{await Fd({json:t.json,op:`sync`},e())}catch(e){let n=e instanceof Error?e.message:String(e);t.json?process.stdout.write(`${JSON.stringify({type:`error`,message:n})}\n`):process.stderr.write(`✗ sync failed: ${n}\n`),process.exit(1)}})}function Ld(e){return new j(`pull`).description(`Pull changes from the remote`).option(`--json`,`Output JSONL progress events`,!1).action(async t=>{try{await Fd({json:t.json,op:`pull`},e())}catch(e){let n=e instanceof Error?e.message:String(e);t.json?process.stdout.write(`${JSON.stringify({type:`error`,message:n})}\n`):process.stderr.write(`✗ pull failed: ${n}\n`),process.exit(1)}})}function Rd(e){return new j(`push`).description(`Push commits to the remote`).option(`--json`,`Output JSONL progress events`,!1).action(async t=>{try{await Fd({json:t.json,op:`push`},e())}catch(e){let n=e instanceof Error?e.message:String(e);t.json?process.stdout.write(`${JSON.stringify({type:`error`,message:n})}\n`):process.stderr.write(`✗ push failed: ${n}\n`),process.exit(1)}})}function zd(e,n){if(e.packSkillHomeRefusal===void 0)return``;if(e.packSkillHomeRefusal===`home-escapes-project`)return`\n${I(`!`)} The ${n} skills were not installed: this project's skill folder is a symlink pointing outside the project, and Open Knowledge will not write through it. Replace it with a real directory inside the project, then run \`ok seed\` again.`;let r=[...new Set([t,...ee.map(e=>y[e])].filter(e=>e!==null).map(ae))].map(e=>`${e}/`);return`\n${I(`!`)} The ${n} skills were not installed: this project has no agent folder for them. Open Knowledge only writes skills into a folder that already exists (${r.join(`, `)}) and never creates one for you. Create the folder your agent uses, then run \`ok seed\` again to install them.`}function Bd(e){return typeof e==`string`&&xt.includes(e)}async function Vd(e={}){let t=V(e.cwd??process.cwd()),n=e.pack??`knowledge-base`;if(!tt[n])return{status:`failed`,message:`${F(`Error:`)} Unknown pack "${n}". Available: ${xt.join(`, `)}`,exitCode:1};let r;try{r=await we({projectDir:t,rootDir:e.root,packId:n,skipPrerequisite:e.dryRun===!0})}catch(e){return e instanceof St?{status:`prerequisite-missing`,message:`${F(`Error:`)} ${e.message}`,exitCode:1}:{status:`failed`,message:`${F(`Error:`)} ${e instanceof Error?e.message:String(e)}`,exitCode:1}}if(!b(r)){let e=tt[n].name,t=(r.packSkills??[]).filter(e=>e.conflict).map(e=>`\n${I(`!`)} Skill "${e.name}" is your own — the pack's version is not installed. Rename yours to install the pack's version.`).join(``),i=zd(r,e);return{status:`no-op`,message:`${P(`Your ${e} pack is already seeded.`)}${i}${t}${i===``?`\n${N(`Nothing to do.`)}`:``}`,plan:r,exitCode:0}}if(e.dryRun){let e=Ke(tt[n]);return{status:`dry-run`,message:`${L(`Reference this pack for inspiration (dry-run — no changes made):`)}\n\n${e}\n\n${L(`Plan:`)}\n\n${Ud(r,t)}`,plan:r,exitCode:0}}if(!e.yes&&!await Wd(`${L(`Plan:`)}\n\n${Ud(r,t)}\n\n${L(`Apply?`)} ${N(`[Y/n] `)}`,e.confirmStream))return{status:`cancelled`,message:N(`Cancelled.`),plan:r,exitCode:0};let i=await st(r,{projectDir:t,packId:n});if(i.errors.length>0){let e=i.errors.map(e=>` ${F(`✗`)} ${e.path}: ${e.error}`);return{status:`failed`,message:[`${I(`Applied`)} ${i.applied} entries, ${I(String(i.errors.length))} error(s):`,...e].join(`
80
80
  `),plan:r,exitCode:1}}let a=tt[n].name,o=i.packSkillsInstalled.length>0?`\n${N(`Installed the ${a} skills for: ${i.packSkillsInstalled.join(`, `)}`)}`:``,s=i.pluginsEnabled.length>0?`\n${N(`Enabled plugin(s) included with this pack: ${i.pluginsEnabled.join(`, `)} — turn off any time in Settings.`)}`:``,c=(i.packSkillConflicts??[]).map(e=>e.hosts===void 0||e.hosts.length===0?`\n${I(`!`)} Skill "${e.name}" was not installed — you already have your own skill with that name. Rename yours if you want the pack's version.`:`\n${I(`!`)} Skill "${e.name}" was not installed for ${e.hosts.join(`, `)} — you already have your own skill with that name there. Rename yours if you want the pack's version.`).join(``);return{status:`applied`,message:`${P(`✓ Seeded ${a}`)} ${N(`(${i.applied} entries, ${i.durationMs}ms)`)}${o}${s}${zd(r,a)}${c}`,plan:r,exitCode:0}}function Hd(){let e=[L(`Available packs:`)];for(let t of xt){let n=tt[t];e.push(` ${P(t)} ${N(`—`)} ${n.name}: ${n.description}`)}return e.join(`
81
81
  `)}function Ud(e,t){let n=[],r=e.created.filter(e=>e.kind===`folder`),i=e.created.filter(e=>e.kind===`file`);if(r.length>0){n.push(L(`Folders to create:`));for(let e of r)n.push(` ${P(`+`)} ${M(B(t,V(t,e.path))||e.path)}${N(`/`)}`)}if(i.length>0){n.length>0&&n.push(``),n.push(L(`Files to create:`));for(let e of i)n.push(` ${P(`+`)} ${M(B(t,V(t,e.path))||e.path)}`)}if(e.skipped.length>0){n.length>0&&n.push(``),n.push(N(`Already present (skipped):`));for(let t of e.skipped)n.push(` ${N(`· ${t.path} (${t.reason})`)}`)}if(e.warnings.length>0){n.length>0&&n.push(``),n.push(I(`Warnings:`));for(let t of e.warnings)n.push(` ${I(`!`)} ${t}`)}let a=(e.packSkills??[]).filter(e=>e.conflict);if(a.length>0){n.length>0&&n.push(``),n.push(I(`Name collisions:`));for(let e of a)n.push(` ${I(`!`)} Skill "${e.name}" is your own — the pack's version will not be installed. Rename yours to install the pack's version.`)}return n.join(`
@@ -84,7 +84,7 @@ ${t}`,d++;break;case`id`:l=t.includes(`\0`)?void 0:t;break;case`retry`:/^\d+$/.t
84
84
  `);return}if(a){process.stdout.write(`${JSON.stringify({type:`error`,code:c.kind})}\n`);return}process.stderr.write(`✗ share name-check failed: ${c.kind}\n`),process.exit(1)}function Jd(e){return new j(`name-check`).description(`Check if owner/name is available on GitHub`).requiredOption(`--owner <owner>`,`GitHub owner (user or org)`).requiredOption(`--name <name>`,`Repository name`).option(`--host <host>`,`GitHub or GitHub Enterprise hostname`,`github.com`).option(`--json`,`Output JSON`,!1).action(async t=>{await qd(t,await e())})}async function Yd(e){try{let t=[],n=await e.users.getAuthenticated();t.push({login:n.data.login,kind:`user`,avatarUrl:n.data.avatar_url});for await(let n of e.paginate.iterator(e.orgs.listMembershipsForAuthenticatedUser,{state:`active`,per_page:100}))for(let e of n.data)(e.permissions?.can_create_repository===!0||e.role===`admin`)&&t.push({login:e.organization.login,kind:`org`,avatarUrl:e.organization.avatar_url??void 0});return{kind:`ok`,owners:t}}catch(e){return e.status===401?{kind:`auth-required`}:{kind:`network`}}}async function Xd(e,t){let{host:n,json:r}=e;K(n);let i=await Ta(n,t);if(i==null){if(r){process.stdout.write(`${JSON.stringify({type:`error`,code:`auth-required`})}\n`);return}process.stderr.write(`Not logged in to ${n}\n`),process.exit(1)}let a=n===`github.com`?void 0:`https://${n}/api/v3`,o=await Yd(new va({auth:i,...a?{baseUrl:a}:{}}));if(o.kind===`ok`){if(r)process.stdout.write(`${JSON.stringify({type:`owners`,owners:o.owners})}\n`);else for(let e of o.owners)process.stdout.write(`${e.kind}\t${e.login}\n`);return}if(r){process.stdout.write(`${JSON.stringify({type:`error`,code:o.kind})}\n`);return}process.stderr.write(`✗ share owners failed: ${o.kind}\n`),process.exit(1)}function Zd(e){return new j(`owners`).description(`List GitHub owners eligible to host a new repository`).option(`--host <host>`,`GitHub or GitHub Enterprise hostname`,`github.com`).option(`--json`,`Output JSON`,!1).action(async t=>{await Xd(t,await e())})}function Qd(e){let t=e,n=t.status,r=t.response?.data,i=t.response?.headers,a=`${r?.message??r?.errors?.map(e=>e.message??``).join(`
85
85
  `)??``}\n${t.message??``}`.toLowerCase();return n===401?`auth-required`:n===403?i?.[`x-github-sso`]||a.includes(`saml`)||a.includes(`sso`)?`saml-sso`:`network`:n===422&&(r?.errors?.some(e=>e.field===`name`)||a.includes(`already exists`)||a.includes(`name already exists`))?`name-conflict`:`network`}async function $d(e){let{octokit:t,ownerLogin:n,ownerKind:r,name:i,visibility:a,description:o}=e,s=a===`private`;if(r===`user`){let{data:e}=await t.repos.createForAuthenticatedUser({name:i,private:s,...o?{description:o}:{}});return{cloneUrl:e.clone_url,defaultBranch:e.default_branch??`main`}}let{data:c}=await t.repos.createInOrg({org:n,name:i,visibility:a,...o?{description:o}:{}});return{cloneUrl:c.clone_url,defaultBranch:c.default_branch??`main`}}async function ef(e,t,n){try{let{data:r}=await e.repos.get({owner:t,repo:n});return{cloneUrl:r.clone_url,defaultBranch:r.default_branch??`main`}}catch{return null}}async function tf(e,t){return(await e.users.getAuthenticated()).data.login.toLowerCase()===t.toLowerCase()?`user`:`org`}function nf(e){return Ut(Za(e,[])).env(Ga())}function rf(e,t){if(!e.startsWith(`https://`))return e;try{if(new URL(e).hostname!==`github.com`)return e}catch{return e}return e.replace(`https://`,`https://x-access-token:${t}@`)}const af={ensureOkScaffold:e=>{it(e)},gitFactory:nf};async function of(e){let t={...af,...e.deps},n=V(e.projectDir),r;if(e.ownerKind)r=e.ownerKind;else try{r=await tf(e.octokit,e.body.owner)}catch(e){return{kind:`error`,code:Qd(e)}}try{t.ensureOkScaffold(n)}catch{return{kind:`error`,code:`init-failed`}}let i=t.gitFactory(n);if(!H(z(n,`.git`)))try{await i.init()}catch{return{kind:`error`,code:`init-failed`}}let a;try{a=await $d({octokit:e.octokit,ownerLogin:e.body.owner,ownerKind:r,name:e.body.name,visibility:e.body.visibility,description:e.body.description})}catch(t){if(Qd(t)===`name-conflict`){let t=await ef(e.octokit,e.body.owner,e.body.name);if(t===null)return{kind:`error`,code:`name-conflict`};a=t}else return{kind:`error`,code:Qd(t)}}try{await i.addRemote(`origin`,a.cloneUrl)}catch(e){if(!String(e.message??``).toLowerCase().includes(`remote origin already exists`))return{kind:`error`,code:`push-failed`}}let o=!1;try{await i.raw([`rev-parse`,`--verify`,`HEAD`])}catch{o=!0}if(o)try{await i.add(`.`),await i.raw([`commit`,`--allow-empty`,`-m`,`Initial commit`])}catch{return{kind:`error`,code:`init-failed`}}let s=rf(a.cloneUrl,e.token);try{await i.raw([`push`,s,`HEAD:refs/heads/${a.defaultBranch}`])}catch(e){let t=String(e.message??``).toLowerCase();return t.includes(`saml`)||t.includes(`sso`)?{kind:`error`,code:`saml-sso`}:{kind:`error`,code:`push-failed`}}try{await i.raw([`update-ref`,`refs/remotes/origin/${a.defaultBranch}`,`HEAD`])}catch{}return{kind:`ok`,value:{ownerLogin:e.body.owner,repoName:e.body.name,cloneUrl:a.cloneUrl,defaultBranch:a.defaultBranch}}}function sf(e,t){if(!e){t.kind===`ok`?process.stdout.write(`✓ Published ${t.value.cloneUrl}\n`):(process.stderr.write(`✗ share publish failed: ${t.code}\n`),process.exit(1));return}if(t.kind===`ok`){process.stdout.write(`${JSON.stringify({type:`publish`,...t.value})}\n`);return}process.stdout.write(`${JSON.stringify({type:`error`,code:t.code})}\n`)}async function cf(e,t){let{host:n,owner:r,name:i,visibility:a,description:o,projectDir:s,json:c}=e;if(K(n),Me(s)){process.stderr.write(`${new Oe(V(s)).message}\n`),process.exitCode=64;return}let l=await Ta(n,t);if(l==null){sf(c,{kind:`error`,code:`auth-required`});return}let u=n===`github.com`?void 0:`https://${n}/api/v3`,d=new va({auth:l,...u?{baseUrl:u}:{}});try{cr(`git config user.email`,k({cwd:s,stdio:`ignore`}))}catch{process.env.GIT_AUTHOR_NAME??=`OpenKnowledge`,process.env.GIT_AUTHOR_EMAIL??=`noreply@inkeep.com`,process.env.GIT_COMMITTER_NAME??=`OpenKnowledge`,process.env.GIT_COMMITTER_EMAIL??=`noreply@inkeep.com`}sf(c,await of({octokit:d,token:l,projectDir:s,body:{owner:r,name:i,visibility:a,description:o}}))}function lf(e){return new j(`publish`).description(`Publish a no-remote project to GitHub`).requiredOption(`--owner <owner>`,`GitHub owner (user or org)`).requiredOption(`--name <name>`,`Repository name`).requiredOption(`--visibility <visibility>`,`public or private`).option(`--description <description>`,`Repository description`).requiredOption(`--project-dir <projectDir>`,`Path to the project on disk`).option(`--host <host>`,`GitHub or GitHub Enterprise hostname`,`github.com`).option(`--json`,`Output JSON`,!1).action(async t=>{t.visibility!==`public`&&t.visibility!==`private`&&(process.stderr.write(`✗ visibility must be 'public' or 'private'
86
86
  `),process.exit(1)),await cf(t,await e())})}function uf(){let e=new j(`share`);e.description(`Sharing flow operations (owners, name-check, publish)`);let t=()=>Tn();return e.addCommand(Zd(t)),e.addCommand(Jd(t)),e.addCommand(lf(t)),e}function df(e){if(e.length!==0){process.stderr.write(` Cleared ${e.length} stale entry(s) left by an older version:\n`);for(let t of e)process.stderr.write(` ${t}\n`)}}function ff(){return new j(`unshare`).description(`Switch this project to local-only mode (add OK artifacts to .git/info/exclude so they stay out of git)`).option(`--project <dir>`,`Project root (defaults to cwd)`).option(`--json`,`Output JSON`,!1).action(async e=>{let t=V(e.project??process.cwd()),n=Hn(t,Bn(t));if(n.kind===`refused-tracked`){if(e.json){let e={type:`sharing-unshare`,projectRoot:t,mode:`refused-tracked`,tracked:n.tracked,remediation:n.remediation};process.stdout.write(`${JSON.stringify(e)}\n`)}else process.stderr.write(`${n.remediation}\n`);process.exitCode=1;return}if(n.kind===`no-exclude`){pf(e.json,t,n.reason);return}let r=Un(t);if(e.json){let e={type:`sharing-unshare`,projectRoot:t,mode:r,appended:n.appended,alreadyPresent:n.alreadyPresent,removed:n.removed};process.stdout.write(`${JSON.stringify(e)}\n`);return}if(n.appended.length===0){if(n.removed.length>0){process.stderr.write(`${P(`✓`)} ${L(`Sharing mode is already`)} ${P(`local-only`)}${L(`.`)}\n`),df(n.removed);return}process.stderr.write(`${L(`Sharing mode is already`)} ${P(`local-only`)} ${L(`— nothing to do.`)}\n`);return}process.stderr.write(`${P(`✓`)} ${L(`Sharing mode set to`)} ${P(`local-only`)}\n`),process.stderr.write(` Added ${n.appended.length} path(s) to ${L(`.git/info/exclude`)} (per-clone, not committed).\n`),df(n.removed)})}function pf(e,t,n){if(e){process.stdout.write(`${JSON.stringify({type:`sharing-unshare`,projectRoot:t,mode:`no-git`,appended:[],alreadyPresent:[],reason:n})}\n`);return}process.stderr.write(`${I({"no-git":`No git repository here — sharing mode does not apply.`,"no-info-dir":`The gitdir's info/ folder is absent; cannot toggle sharing mode.`,"malformed-pointer":"The .git pointer file is malformed (stale worktree). Run `git worktree prune` and try again.",inaccessible:`The .git path is inaccessible (permissions or mount issue).`}[n])}\n`)}function mf(){return new j(`share`).description(`Switch this project to shared mode (commit OK config alongside content)`).option(`--project <dir>`,`Project root (defaults to cwd)`).option(`--json`,`Output JSON`,!1).action(async e=>{let t=V(e.project??process.cwd()),n=Un(t),r=In(t,Bn(t));if(r.kind===`no-exclude`){hf(e.json,t,r.reason);return}let i=Un(t);if(e.json){let e={type:`sharing-share`,projectRoot:t,mode:i,removed:r.removed};process.stdout.write(`${JSON.stringify(e)}\n`);return}if(n===`shared`){if(r.removed.length>0){process.stderr.write(`${P(`✓`)} ${M(`Sharing mode is already`)} ${L(`shared`)}${M(`.`)}\n`),df(r.removed);return}process.stderr.write(`${M(`Sharing mode is already`)} ${L(`shared`)} ${M(`— nothing to do.`)}\n`);return}process.stderr.write(`${P(`✓`)} ${L(`Sharing mode set to`)} ${P(`shared`)}\n`),process.stderr.write(` Removed OK paths from ${L(`.git/info/exclude`)}; commit the files to share with teammates.\n`)})}function hf(e,t,n){if(e){process.stdout.write(`${JSON.stringify({type:`sharing-share`,projectRoot:t,mode:`no-git`,removed:[],reason:n})}\n`);return}process.stderr.write(`${I({"no-git":`No git repository here — sharing mode does not apply.`,"no-info-dir":`The gitdir's info/ folder is absent; cannot toggle sharing mode.`,"malformed-pointer":"The .git pointer file is malformed (stale worktree). Run `git worktree prune` and try again.",inaccessible:`The .git path is inaccessible (permissions or mount issue).`}[n])}\n`)}function gf(){return new j(`status`).description(`Print the current sharing mode and the OK paths in .git/info/exclude`).option(`--project <dir>`,`Project root (defaults to cwd)`).option(`--json`,`Output JSON`,!1).action(async e=>{let t=V(e.project??process.cwd()),n=Un(t),r=[...Nn(t)],i=Vn(t,Bn(t)).tracked;if(e.json){let e={type:`sharing-status`,projectRoot:t,mode:n,excluded:r,trackedUpstream:i};process.stdout.write(`${JSON.stringify(e)}\n`);return}let a=[];if(a.push(`OpenKnowledge sharing mode: ${_f(n)}`),a.push(``),a.push(`Excluded from git via ${L(`.git/info/exclude`)}:`),r.length===0)a.push(` (none)`);else for(let e of r)a.push(` ${e}`);if(a.push(``),a.push(`Other OK paths exist but are tracked upstream:`),i.length===0)a.push(` (none)`);else for(let e of i)a.push(` ${e}`);a.push(``),a.push(`Toggle with: ${M(n===`local-only`?`ok config-sharing share`:`ok config-sharing unshare`)}`),process.stdout.write(`${a.join(`
87
- `)}\n`)})}function _f(e){switch(e){case`shared`:return P(`shared`);case`local-only`:return P(`local-only`);case`no-git`:return I(`no-git (not a git repository)`)}}function vf(){let e=new j(`config-sharing`);return e.description(`Manage OpenKnowledge's git-sharing mode (share OK config with the team, or keep local-only on this machine)`),e.addCommand(mf()),e.addCommand(ff()),e.addCommand(gf()),e}const yf=new Set([`--cwd`,`--log-level`,`--project`,`--scope`]);function bf(e){let t=[],n=null,r=null,i=!1;for(let a=0;a<e.length;a++){let o=e[a];if(o===`--help`||o===`-h`||o===`--version`||o===`-V`){i=!0;break}if(yf.has(o)){let t=e[a+1]??null;o===`--cwd`&&(n=t),o===`--project`&&(r=t),a++;continue}if(o.startsWith(`--cwd=`)){n=o.slice(6);continue}if(o.startsWith(`--project=`)){r=o.slice(10);continue}o.startsWith(`-`)||t.push(o)}return{operands:t,cwd:n,project:r,sawTerminalFlag:i}}function xf(e,t){if(e.length===0)return null;let n=e[0];return n===`open`&&e[1]!==void 0&&t.isFileish(e[1])?e[1]:t.knownSubcommands.has(n)?null:t.isFileish(n)?n:null}function Sf(e){return/\.(md|mdx)$/i.test(e)}function Cf(e,t){if(Sf(t))return!0;try{return W(e).isFile()}catch(t){let n=t?.code;return n!==`ENOENT`&&n!==`ENOTDIR`&&process.stderr.write(`[ok] statSync failed for ${e} (${n??`unknown`}); treating as non-fileish\n`),!1}}function wf(e,t){let n=bf(e);if(n.sawTerminalFlag)return null;let r=n.cwd?t.resolvePath(t.cwd,n.cwd):t.cwd,i=xf(n.operands,{knownSubcommands:t.knownSubcommands,isFileish:e=>t.isFileish(t.resolvePath(r,e),e)});return i===null?null:{absPath:t.resolvePath(r,i),projectRoot:n.project===null?null:t.resolvePath(r,n.project)}}function Tf(e=()=>On(Dn())){return{prepare:Dt,detectBundlePath:()=>e().bundlePath??null,openTarget:Td,runProjectOpen:(e,t)=>jd(e,{project:t},Dd()),runBrowserOpen:e=>Df(e),log:e=>process.stdout.write(`${e}\n`),error:e=>process.stderr.write(`${e}\n`)}}async function Ef(e,t,n={}){let r;try{r=t.prepare(e,{projectRoot:n.projectRoot})}catch(e){if(e instanceof wt||e instanceof vt||e instanceof pt||e instanceof et)return t.error(e.message),1;throw e}if(r.mode===`project`)return await t.runProjectOpen(r.docName,r.projectRoot);let i=t.detectBundlePath();if(i){let e=`openknowledge://open?file=${encodeURIComponent(r.canonicalFilePath)}`,n=await t.openTarget(e,{desktopBundlePath:i});return n.ok?(t.log(`Opening ${r.singleDocRelPath} in the OpenKnowledge desktop app.`),0):(t.error(`Could not open the OpenKnowledge desktop app: ${Ed(n.reason,e)}.`),1)}return await t.runBrowserOpen(r),0}async function Df(e){let{createEphemeralProjectDir:t}=await import(`./src-DB22-png.mjs`),{loadConfig:n}=await import(`./src-BqaoKzJZ.mjs`),{bootStartServer:r,resolveBundledReactShellDir:i,resolveHost:a}=await import(`./start-CvRgHWFa.mjs`),{openBrowser:o}=await import(`./open-browser-C1ODtLI7.mjs`),s=i();s||(process.stderr.write("OpenKnowledge UI assets were not found. Reinstall @inkeep/open-knowledge, or build the app (`bun run build`) in a monorepo checkout.\n"),process.exit(1));let c=t(e.contentDir),l=!1,u,d=async()=>{if(!l){l=!0;try{await u?.destroy(`external-signal`)}catch{}try{await Mr(c,{recursive:!0,force:!0})}catch{}}},f=()=>{d().then(()=>process.exit(0))};process.once(`SIGINT`,f),process.once(`SIGTERM`,f);let{config:p}=n(c),m=a({},process.env);try{u=await r({config:p,cwd:c,host:m,port:0,projectDir:c,singleFile:e.canonicalFilePath,serveContentAssets:!0,reactShellDistDir:s,idleThresholdMs:6e5})}catch(t){await d(),process.stderr.write(`Failed to open ${e.singleDocRelPath}: ${t instanceof Error?t.message:String(t)}\n`),process.exit(1)}let h=`http://${m}:${u.port}/#/${ct(e.docName)}`;process.env.OK_SINGLE_FILE_NO_OPEN===`1`?process.stdout.write(`Serving ${e.singleDocRelPath} (headless) at: ${h}\n`):(process.stdout.write(`Opening ${e.singleDocRelPath} in your browser: ${h}\n`),process.stdout.write(`Press Ctrl-C to close the session.
87
+ `)}\n`)})}function _f(e){switch(e){case`shared`:return P(`shared`);case`local-only`:return P(`local-only`);case`no-git`:return I(`no-git (not a git repository)`)}}function vf(){let e=new j(`config-sharing`);return e.description(`Manage OpenKnowledge's git-sharing mode (share OK config with the team, or keep local-only on this machine)`),e.addCommand(mf()),e.addCommand(ff()),e.addCommand(gf()),e}const yf=new Set([`--cwd`,`--log-level`,`--project`,`--scope`]);function bf(e){let t=[],n=null,r=null,i=!1;for(let a=0;a<e.length;a++){let o=e[a];if(o===`--help`||o===`-h`||o===`--version`||o===`-V`){i=!0;break}if(yf.has(o)){let t=e[a+1]??null;o===`--cwd`&&(n=t),o===`--project`&&(r=t),a++;continue}if(o.startsWith(`--cwd=`)){n=o.slice(6);continue}if(o.startsWith(`--project=`)){r=o.slice(10);continue}o.startsWith(`-`)||t.push(o)}return{operands:t,cwd:n,project:r,sawTerminalFlag:i}}function xf(e,t){if(e.length===0)return null;let n=e[0];return n===`open`&&e[1]!==void 0&&t.isFileish(e[1])?e[1]:t.knownSubcommands.has(n)?null:t.isFileish(n)?n:null}function Sf(e){return/\.(md|mdx)$/i.test(e)}function Cf(e,t){if(Sf(t))return!0;try{return W(e).isFile()}catch(t){let n=t?.code;return n!==`ENOENT`&&n!==`ENOTDIR`&&process.stderr.write(`[ok] statSync failed for ${e} (${n??`unknown`}); treating as non-fileish\n`),!1}}function wf(e,t){let n=bf(e);if(n.sawTerminalFlag)return null;let r=n.cwd?t.resolvePath(t.cwd,n.cwd):t.cwd,i=xf(n.operands,{knownSubcommands:t.knownSubcommands,isFileish:e=>t.isFileish(t.resolvePath(r,e),e)});return i===null?null:{absPath:t.resolvePath(r,i),projectRoot:n.project===null?null:t.resolvePath(r,n.project)}}function Tf(e=()=>On(Dn())){return{prepare:Dt,detectBundlePath:()=>e().bundlePath??null,openTarget:Td,runProjectOpen:(e,t)=>jd(e,{project:t},Dd()),runBrowserOpen:e=>Df(e),log:e=>process.stdout.write(`${e}\n`),error:e=>process.stderr.write(`${e}\n`)}}async function Ef(e,t,n={}){let r;try{r=t.prepare(e,{projectRoot:n.projectRoot})}catch(e){if(e instanceof wt||e instanceof vt||e instanceof pt||e instanceof et)return t.error(e.message),1;throw e}if(r.mode===`project`)return await t.runProjectOpen(r.docName,r.projectRoot);let i=t.detectBundlePath();if(i){let e=`openknowledge://open?file=${encodeURIComponent(r.canonicalFilePath)}`,n=await t.openTarget(e,{desktopBundlePath:i});return n.ok?(t.log(`Opening ${r.singleDocRelPath} in the OpenKnowledge desktop app.`),0):(t.error(`Could not open the OpenKnowledge desktop app: ${Ed(n.reason,e)}.`),1)}return await t.runBrowserOpen(r),0}async function Df(e){let{createEphemeralProjectDir:t}=await import(`./src-DB22-png.mjs`),{loadConfig:n}=await import(`./src-DYkhQEiu.mjs`),{bootStartServer:r,resolveBundledReactShellDir:i,resolveHost:a}=await import(`./start-Bf0BFz7e.mjs`),{openBrowser:o}=await import(`./open-browser-C1ODtLI7.mjs`),s=i();s||(process.stderr.write("OpenKnowledge UI assets were not found. Reinstall @inkeep/open-knowledge, or build the app (`bun run build`) in a monorepo checkout.\n"),process.exit(1));let c=t(e.contentDir),l=!1,u,d=async()=>{if(!l){l=!0;try{await u?.destroy(`external-signal`)}catch{}try{await Mr(c,{recursive:!0,force:!0})}catch{}}},f=()=>{d().then(()=>process.exit(0))};process.once(`SIGINT`,f),process.once(`SIGTERM`,f);let{config:p}=n(c),m=a({},process.env);try{u=await r({config:p,cwd:c,host:m,port:0,projectDir:c,singleFile:e.canonicalFilePath,serveContentAssets:!0,reactShellDistDir:s,idleThresholdMs:6e5})}catch(t){await d(),process.stderr.write(`Failed to open ${e.singleDocRelPath}: ${t instanceof Error?t.message:String(t)}\n`),process.exit(1)}let h=`http://${m}:${u.port}/#/${ct(e.docName)}`;process.env.OK_SINGLE_FILE_NO_OPEN===`1`?process.stdout.write(`Serving ${e.singleDocRelPath} (headless) at: ${h}\n`):(process.stdout.write(`Opening ${e.singleDocRelPath} in your browser: ${h}\n`),process.stdout.write(`Press Ctrl-C to close the session.
88
88
  `),o(h)),await new Promise(()=>{})}function Of(){let e=new j(`skills`).description(`Manage Open Knowledge skills for this project.`);return e.command(`installed`).description(`List every skill installed across all your agents (read-only).`).option(`--json`,`Emit the raw enumeration as JSON.`).action(e=>{let t=V(process.cwd()),n=Pe(Ze(t)?.rootPath??t),r=De({projectDir:n}),i={...r,skills:r.skills.filter(e=>s(e.provenance,n))};if(e.json){process.stdout.write(`${JSON.stringify(i,null,2)}\n`);return}if(i.skills.length===0){process.stdout.write(`${N(`No installed skills found across any agent.`)}\n`);return}process.stdout.write(`${L(`${i.skills.length} installed skill(s):`)}\n`);for(let e of i.skills){let t=e.provenance.version?N(` v${e.provenance.version}`):``,n=[e.inert.commands&&`commands`,e.inert.hooks&&`hooks`,e.inert.mcp&&`mcp`].filter(Boolean),r=n.length>0?N(` [${n.join(`, `)}]`):``;process.stdout.write(` ${P(e.name)}${t} ${N(e.sourceHarnesses.join(`, `))}${r}\n`)}process.stdout.write(`\n${L(`${i.packs.length} pack(s):`)}\n`);for(let e of i.packs)process.stdout.write(` ${M(e.name)} ${N(`v${e.version}`)} — ${e.skills.length} skill(s)\n`)}),e.command(`import <source>`).description(`Import a skill into this project as versioned content (github owner/repo, a git URL, or a local path).`).option(`--skill <name>`,`Pick one skill from a multi-skill source.`).option(`--scope <scope>`,`project (default) or global.`,`project`).action(async(e,t)=>{let n=an(A(process.cwd()),`server`);if(n.status!==`alive`){process.stderr.write(`${F(`Error:`)} no running Open Knowledge server for this project. Start it with ${L(`ok start`)} and retry.\n`),process.exitCode=1;return}let r;try{r=await fetch(`http://127.0.0.1:${n.lock.port}/api/skill/import`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({source:e,...t.skill?{skill:t.skill}:{},scope:t.scope===`global`?`global`:`project`})})}catch(e){let t=e instanceof Error?e.message:String(e);process.stderr.write(`${F(`Error:`)} could not reach the server: ${t}\n`),process.exitCode=1;return}let i=await r.json().catch(()=>({}));if(!r.ok){let e=i.detail??i.title??`HTTP ${r.status}`;process.stderr.write(`${F(`Import failed:`)} ${e}\n`),process.exitCode=1;return}let a=i.name;if(i.alreadyImported){process.stdout.write(`${M(`Already imported:`)} ${L(a)} (identical content).\n`);return}let o=i.provenance??{},s=i.collisionRenamedFrom;process.stdout.write(`${P(`Imported`)} ${L(a)}${s?N(` (renamed from ${s} — name was taken)`):``} from ${N(o.source??e)}${o.publisher?N(` · ${o.publisher}`):``}.\n${N(`Saved as versioned content in this project's skill home. Scripts shown, never run. Use the skill's install menu (or the install MCP verb) to add it to your other editors.`)}\n`);for(let e of i.warnings??[])process.stdout.write(` ${N(`! ${e}`)}\n`)}),e}function kf(e){return{server:Af(`server`,e),ui:e.status===`alive`&&Jt(e.lock)?{name:`ui`,state:`alive`,pid:e.lock.pid,port:e.lock.port,startedAt:e.lock.startedAt,host:e.lock.hostname,alive:!0,servedByServer:!0}:{name:`ui`,state:`missing`,alive:!1}}}function Af(e,t){switch(t.status){case`missing`:return{name:e,state:`missing`,alive:!1};case`corrupt`:return{name:e,state:`corrupt`,alive:!1};case`foreign-host`:return{name:e,state:`foreign-host`,pid:t.lock.pid,port:t.lock.port,startedAt:t.lock.startedAt,host:t.lock.hostname,alive:`unknown`};case`dead-pid`:return{name:e,state:`dead-pid`,pid:t.lock.pid,port:t.lock.port,startedAt:t.lock.startedAt,host:t.lock.hostname,alive:!1};case`alive`:return{name:e,state:`alive`,pid:t.lock.pid,port:t.lock.port,startedAt:t.lock.startedAt,host:t.lock.hostname,alive:!0}}}function jf(e){return`${Mf(e.server)}\n${Mf(e.ui)}`}function Mf(e){let t=e.name===`server`?`server`:`ui `;return e.state===`missing`?`${t} not running`:e.state===`corrupt`?`${t} lock file corrupt — run \`ok clean\``:e.state===`foreign-host`?`${t} foreign host (${e.host}) pid=${e.pid} port=${e.port}`:e.state===`dead-pid`?`${t} stale (dead pid=${e.pid}) — run \`ok clean\``:e.servedByServer===!0?`${t} served by server pid=${e.pid} port=${e.port}`:`${t} alive pid=${e.pid} port=${e.port} started=${e.startedAt}`}function Nf(e){let t=e.inspect??(()=>an(e.lockDir,`server`)),n=e.log??(e=>console.log(e)),r=kf(t());return e.json?n(JSON.stringify(r,null,2)):n(jf(r)),r}function Pf(e){return new j(`status`).description(`Show whether the server and UI are running for this project`).option(`--json`,`Emit structured JSON instead of formatted text`).action(t=>{e(),Nf({lockDir:A(process.cwd()),json:t.json===!0})})}function Ff(e){if(e.yes===!0||e.json===!0)return!1;let t=e.stdinIsTTY??process.stdin.isTTY,n=e.stdoutIsTTY??process.stdout.isTTY;return t===!0&&n===!0}async function If(e,t){let n=Ir({input:e.input,output:e.output});try{return(await n.question(t)).trim()}finally{n.close()}}async function Lf(e={}){let t={input:e.input??process.stdin,output:e.output??process.stderr};t.output.write(N(`
89
89
  What you share is sent to the OpenKnowledge team.
90
90
  `));let n=await Fn({message:`Before you go, mind sharing why? (optional)`,default:null,pageSize:C.length+1,choices:[...C.map(e=>({name:e.label,value:e.value})),{name:`Skip, I'd rather not say`,value:null}]},t);if(n===null)return{};let r=await If(t,N(`Anything else we should know? (optional) `)),i=await If(t,N(`Email, if we may follow up (optional) `));return{reason:n,note:r||void 0,email:i||void 0}}async function Rf(e){if(!Ff(e))return`not-prompted`;let t;try{t=await(e.collect??(()=>Lf(e)))()}catch{return`failed`}return h(t)?((e.output??process.stderr).write(`\n${L(`Thank you. We read every response.`)}\n\n`),(await(e.submit??ne)({...t,source:`cli_uninstall`,appVersion:e.appVersion,platform:e.platform})).ok?`submitted`:`undelivered`):`skipped`}function zf(e,t,n=Bf,r=H,i={}){let a=[],o=i.platform??process.platform,s=i.env??process.env;if(o===`darwin`)for(let t of[`/Applications/OpenKnowledge.app`,z(e,`Applications`,`OpenKnowledge.app`)])r(t)&&a.push({method:`app`,label:`OK Desktop (${t})`,instruction:`Move ${t} to the Trash (or: rm -rf "${t}")`});else if(o===`win32`){let e=s.LOCALAPPDATA;if(e)for(let t of[`@inkeepopen-knowledge-desktop`,`OpenKnowledge`]){let n=z(e,`Programs`,t,`OpenKnowledge.exe`);if(r(n)){a.push({method:`app`,label:`OK Desktop (${n})`,instruction:`Uninstall from Windows Settings → Apps → Installed apps → OpenKnowledge`});break}}}else o===`linux`&&r(`/opt/OpenKnowledge/openknowledge`)&&a.push({method:`app`,label:`OK Desktop (/opt/OpenKnowledge)`,instruction:`Remove with your package manager: sudo apt remove openknowledge (Debian/Ubuntu) or sudo dnf remove OpenKnowledge (Fedora/RHEL)`});return n([`ls`,`-g`,`--depth=0`,`@inkeep/open-knowledge`])?.includes(`@inkeep/open-knowledge@`)&&a.push({method:`npm-global`,label:`npm global install`,instruction:`npm uninstall -g @inkeep/open-knowledge`}),t&&/[/\\]_npx[/\\]/.test(t)&&a.push({method:`npx`,label:`npx (ephemeral)`,instruction:`Nothing to uninstall — npx runs from a temporary cache. (Optional: npm cache clean --force)`}),a}function Bf(e){try{return sr(`npm`,e,k({encoding:`utf-8`,timeout:5e3,stdio:[`ignore`,`pipe`,`ignore`]}))}catch{return null}}const Vf=`━`.repeat(64);function Hf(e,t=process.platform){let n=[I(Vf),L(` One more step — remove the OpenKnowledge app itself`),N(` (OpenKnowledge can't delete its own running binary — do this by hand.)`),``];if(e.length===0){let e=t===`win32`?`uninstall from Settings → Apps → Installed apps → OpenKnowledge`:t===`linux`?`remove the openknowledge package with your package manager (apt / dnf)`:`move /Applications/OpenKnowledge.app to the Trash`;n.push(N(` Install method not detected. If you installed it, remove it via:`)),n.push(` ${M(`OK Desktop`)} — ${e}`),n.push(` ${M(`npm global`)} — npm uninstall -g @inkeep/open-knowledge`),n.push(` ${M(`npx`)} — nothing to remove (runs from a temporary cache)`)}else for(let t of e)n.push(` ${M(t.label)}`),n.push(` ${t.instruction}`);return n.push(I(Vf)),n.join(`
@@ -0,0 +1,2 @@
1
+ import"./src-CDcerRX2.mjs";var e=`0.68.2`;const t=`config.yml`,n=e;export{n,t};
2
+ //# sourceMappingURL=constants-DqOS8cvc.mjs.map
package/dist/index.mjs CHANGED
@@ -1528,6 +1528,6 @@ export default function okBridge(pi: {
1528
1528
  `))}function M9(e,t){let n=S(e,`utf-8`);if(n.trim().length!==0)try{let r=A9(JSON.parse(n),t),i=n.endsWith(`
1529
1529
  `)?`
1530
1530
  `:``;te(e,`${JSON.stringify(r,null,2)}${i}`)}catch{let r=k9(n,t.contentDir);r!==n&&te(e,r)}}function N9(e,t){let n=S(e,`utf-8`),r=k9(n,t.contentDir);r!==n&&te(e,r)}function P9(e){try{return C(e,{withFileTypes:!0}).filter(e=>e.isFile()).map(t=>N(e,t.name))}catch{return[]}}const BTe=new Set([`agent-presence.json`,`agent-effects.json`,`runtime.json`]);function F9(e){return/\.log\.\d+$/.test(e)}function VTe(e){return e.endsWith(`.jsonl`)||e.endsWith(`.log`)||F9(e)}function HTe(e){let t={contentDir:e.contentDir};for(let n of[`telemetry`,`logs`,`process`])for(let r of P9(N(e.stagingDir,n)))VTe(r)?j9(r,t):r.endsWith(`.json`)?M9(r,t):N9(r,t);for(let n of P9(N(e.stagingDir,`state`))){let e=fe(n);n.endsWith(`.jsonl`)?j9(n,t):BTe.has(e)?M9(n,t):N9(n,t)}}const I9=[`.ok`,`local`,`telemetry`],L9=[`.ok`,`local`,`logs`],R9=[`.ok`,`local`,`loss-capture`],z9=`spans-current.jsonl`,B9=`spans-prev.jsonl`,V9=`server-current.jsonl`,H9=`server-prev.jsonl`,U9=`loss-current.jsonl`,W9=`loss-prev.jsonl`;function UTe(e){return N(e,...I9,z9)}function WTe(e){return N(e,...I9,B9)}function GTe(e){return N(e,...L9,V9)}function KTe(e){return N(e,...L9,H9)}function qTe(e){return N(e,...R9,U9)}function JTe(e){return N(e,...R9,W9)}const G9=1e3;async function YTe(e){try{let t=await fetch(`http://127.0.0.1:${e}/api/metrics/agent-presence`,{signal:AbortSignal.timeout(G9)});return t.ok?await t.text():null}catch{return null}}async function XTe(e){try{let t=await fetch(`http://127.0.0.1:${e}/api/metrics/agent-effects`,{signal:AbortSignal.timeout(G9)});return t.ok?await t.text():null}catch{return null}}async function ZTe(e){try{let t=await fetch(`http://127.0.0.1:${e}/api/metrics/watcher-recent`,{signal:AbortSignal.timeout(G9)});return t.ok?await t.text():null}catch{return null}}function QTe(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(`
1531
- `)}\n`:null}catch{return null}}function $Te(e){let t=N(e,`.git`,`ok`);if(!g(t))return null;let n=u(`git`,[`-C`,t,`log`,`--oneline`,`-50`],u3({encoding:`utf-8`,timeout:2e3}));return n.error||n.status!==0?null:n.stdout??``}function eEe(e){let t=N(e,`.git`,`ok`);if(!g(t))return null;let n=u(`git`,[`-C`,t,`for-each-ref`,`--sort=-creatordate`,`--count=50`,`--format=%(refname)%09%(creatordate:iso-strict)%09%(contents:subject)`,`refs/checkpoints/`],u3({encoding:`utf-8`,timeout:2e3}));return n.error||n.status!==0?null:n.stdout??``}function K9(){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 tEe(){return{nodeVersion:process.version,platform:k(),arch:re()}}function nEe(){return process.env.OTEL_SDK_DISABLED===`false`}function q9(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function J9(e){if(!g(e))return{};let t;try{t=(0,on.parse)(S(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(!q9(t))return{};let n=t.telemetry;if(!q9(n))return{};let r=n.localSink;return q9(r)?r:{}}function Y9(e){return typeof e==`boolean`?e:void 0}function rEe(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:void 0}function X9(e){if(q9(e))return rEe(e.maxBytes)}function iEe(e){let t=J9(YQ(`project`,e)),n=J9(YQ(`project-local`,e));return{enabled:Y9(n.enabled)??Y9(t.enabled)??!0,spansMaxBytes:X9(n.spans)??X9(t.spans)??52428800,logsMaxBytes:X9(n.logs)??X9(t.logs)??26214400}}function aEe(e){return Ae(`sha256`).update(e).digest(`hex`)}function oEe(e){let t=S(e),n=0;for(let e=0;e<t.length;e++)t[e]===10&&n++;return n}const sEe=[`"doc.name"`,`"docName"`];function cEe(e){let t=S(e,`utf-8`),n=0;for(let e of sEe){let r=t.indexOf(e);for(;r!==-1;)n++,r=t.indexOf(e,r+e.length)}return n}function Z9(e,t){if(!g(e))return!1;try{return v(pe(t),{recursive:!0}),m(e,t),!0}catch{return!1}}function Q9(e){let t=[],n=e=>{let r=C(e,{withFileTypes:!0});for(let i of r){let r=N(e,i.name);i.isDirectory()?n(r):i.isFile()&&t.push(r)}};return n(e),t.sort()}const lEe=new Set([`.jsonl`]);function uEe(e){let t=e.lastIndexOf(`.`);return t===-1?!1:lEe.has(e.slice(t))}const dEe=new Set([`.jsonl`,`.json`,`.txt`,`.log`,`.lock`,`.yaml`,`.yml`]);function fEe(e){if(F9(e))return!0;let t=e.lastIndexOf(`.`);return t===-1?!1:dEe.has(e.slice(t))}function pEe(e){let t=[];for(let n of Q9(e)){let r=$9(e,n);if(!fEe(r))continue;let{redacted:i,patterns:a,lineCount:o}=Rw(S(n,`utf-8`));a.length!==0&&(te(n,i),t.push({file:r,lineCount:o,patterns:a}))}return{redactions:t,redactedLineCount:t.reduce((e,t)=>e+t.lineCount,0)}}function $9(e,t){return _e(e,t).split(ye).join(`/`)}async function mEe(e){let t=ve(e.contentDir),n=ve(e.projectDir??e.contentDir),r=e.deps??{},i=r.fetchAgentPresence??YTe,a=r.fetchAgentEffects??XTe,o=r.fetchWatcherRecent??ZTe,s=r.readShadowHead??$Te,c=r.readCheckpointRefs??eEe,l=r.now??(()=>new Date),u=r.okVersion??(()=>`0.68.2-beta.0`),d=r.readDesktopEnv??K9,f=r.readLanguage??O9,p=r.readRuntime??tEe,h=r.isOtlpPushEnabled??nEe,_=y(N(le(),`ok-bundle-`));try{v(N(_,`telemetry`),{recursive:!0}),v(N(_,`logs`),{recursive:!0}),v(N(_,`state`),{recursive:!0}),Z9(UTe(n),N(_,`telemetry`,z9)),Z9(WTe(n),N(_,`telemetry`,B9)),Z9(GTe(n),N(_,`logs`,V9)),Z9(KTe(n),N(_,`logs`,H9));for(let t of e.userLogFiles??[])Z9(t,N(_,`logs`,fe(t)));for(let t of e.userStateFiles??[])Z9(t,N(_,ds,fe(t)));let y=N(n,`.ok`,`local`),b=N(y,`server.lock`),x=`not-running`,C=`no server.lock`,w=null;if(g(b)){Z9(b,N(_,`state`,`server.lock`));try{let e=S(b,`utf-8`),t=JSON.parse(e);typeof t.port==`number`?w=t.port:C=`lock present but no port`}catch{C=`lock present but unparseable`}}if(w!==null){let e=await i(w);e===null?C=`agent-presence endpoint at :${w} unreachable`:(te(N(_,`state`,`agent-presence.json`),e),x=`running`,C=``);let t=await a(w);t!==null&&te(N(_,`state`,`agent-effects.json`),t);let n=await o(w);if(n!==null){let e=QTe(n);e!==null&&te(N(_,`state`,`watcher-recent.jsonl`),e)}}let T=s(t);T!==null&&te(N(_,`state`,`shadow-head.txt`),T);let E=c(t);E!==null&&te(N(_,`state`,`checkpoint-refs.txt`),E),Z9(qTe(n),N(_,`state`,U9)),Z9(JTe(n),N(_,`state`,W9)),Z9(N(y,`last-spawn-error.log`),N(_,`state`,`last-spawn-error.log`)),Z9(N(y,ju),N(_,`state`,ju)),Z9(N(y,Mu),N(_,`state`,Mu));let ee=p(),ne=d(),re=f(),ie={ok:{version:u(),nodeVersion:ee.nodeVersion,platform:ee.platform,arch:ee.arch},host:{desktop:ne,language:re}};te(N(_,`state`,`runtime.json`),`${JSON.stringify(ie,null,2)}\n`);let ae=x===`running`?`running
1531
+ `)}\n`:null}catch{return null}}function $Te(e){let t=N(e,`.git`,`ok`);if(!g(t))return null;let n=u(`git`,[`-C`,t,`log`,`--oneline`,`-50`],u3({encoding:`utf-8`,timeout:2e3}));return n.error||n.status!==0?null:n.stdout??``}function eEe(e){let t=N(e,`.git`,`ok`);if(!g(t))return null;let n=u(`git`,[`-C`,t,`for-each-ref`,`--sort=-creatordate`,`--count=50`,`--format=%(refname)%09%(creatordate:iso-strict)%09%(contents:subject)`,`refs/checkpoints/`],u3({encoding:`utf-8`,timeout:2e3}));return n.error||n.status!==0?null:n.stdout??``}function K9(){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 tEe(){return{nodeVersion:process.version,platform:k(),arch:re()}}function nEe(){return process.env.OTEL_SDK_DISABLED===`false`}function q9(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function J9(e){if(!g(e))return{};let t;try{t=(0,on.parse)(S(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(!q9(t))return{};let n=t.telemetry;if(!q9(n))return{};let r=n.localSink;return q9(r)?r:{}}function Y9(e){return typeof e==`boolean`?e:void 0}function rEe(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:void 0}function X9(e){if(q9(e))return rEe(e.maxBytes)}function iEe(e){let t=J9(YQ(`project`,e)),n=J9(YQ(`project-local`,e));return{enabled:Y9(n.enabled)??Y9(t.enabled)??!0,spansMaxBytes:X9(n.spans)??X9(t.spans)??52428800,logsMaxBytes:X9(n.logs)??X9(t.logs)??26214400}}function aEe(e){return Ae(`sha256`).update(e).digest(`hex`)}function oEe(e){let t=S(e),n=0;for(let e=0;e<t.length;e++)t[e]===10&&n++;return n}const sEe=[`"doc.name"`,`"docName"`];function cEe(e){let t=S(e,`utf-8`),n=0;for(let e of sEe){let r=t.indexOf(e);for(;r!==-1;)n++,r=t.indexOf(e,r+e.length)}return n}function Z9(e,t){if(!g(e))return!1;try{return v(pe(t),{recursive:!0}),m(e,t),!0}catch{return!1}}function Q9(e){let t=[],n=e=>{let r=C(e,{withFileTypes:!0});for(let i of r){let r=N(e,i.name);i.isDirectory()?n(r):i.isFile()&&t.push(r)}};return n(e),t.sort()}const lEe=new Set([`.jsonl`]);function uEe(e){let t=e.lastIndexOf(`.`);return t===-1?!1:lEe.has(e.slice(t))}const dEe=new Set([`.jsonl`,`.json`,`.txt`,`.log`,`.lock`,`.yaml`,`.yml`]);function fEe(e){if(F9(e))return!0;let t=e.lastIndexOf(`.`);return t===-1?!1:dEe.has(e.slice(t))}function pEe(e){let t=[];for(let n of Q9(e)){let r=$9(e,n);if(!fEe(r))continue;let{redacted:i,patterns:a,lineCount:o}=Rw(S(n,`utf-8`));a.length!==0&&(te(n,i),t.push({file:r,lineCount:o,patterns:a}))}return{redactions:t,redactedLineCount:t.reduce((e,t)=>e+t.lineCount,0)}}function $9(e,t){return _e(e,t).split(ye).join(`/`)}async function mEe(e){let t=ve(e.contentDir),n=ve(e.projectDir??e.contentDir),r=e.deps??{},i=r.fetchAgentPresence??YTe,a=r.fetchAgentEffects??XTe,o=r.fetchWatcherRecent??ZTe,s=r.readShadowHead??$Te,c=r.readCheckpointRefs??eEe,l=r.now??(()=>new Date),u=r.okVersion??(()=>`0.68.2`),d=r.readDesktopEnv??K9,f=r.readLanguage??O9,p=r.readRuntime??tEe,h=r.isOtlpPushEnabled??nEe,_=y(N(le(),`ok-bundle-`));try{v(N(_,`telemetry`),{recursive:!0}),v(N(_,`logs`),{recursive:!0}),v(N(_,`state`),{recursive:!0}),Z9(UTe(n),N(_,`telemetry`,z9)),Z9(WTe(n),N(_,`telemetry`,B9)),Z9(GTe(n),N(_,`logs`,V9)),Z9(KTe(n),N(_,`logs`,H9));for(let t of e.userLogFiles??[])Z9(t,N(_,`logs`,fe(t)));for(let t of e.userStateFiles??[])Z9(t,N(_,ds,fe(t)));let y=N(n,`.ok`,`local`),b=N(y,`server.lock`),x=`not-running`,C=`no server.lock`,w=null;if(g(b)){Z9(b,N(_,`state`,`server.lock`));try{let e=S(b,`utf-8`),t=JSON.parse(e);typeof t.port==`number`?w=t.port:C=`lock present but no port`}catch{C=`lock present but unparseable`}}if(w!==null){let e=await i(w);e===null?C=`agent-presence endpoint at :${w} unreachable`:(te(N(_,`state`,`agent-presence.json`),e),x=`running`,C=``);let t=await a(w);t!==null&&te(N(_,`state`,`agent-effects.json`),t);let n=await o(w);if(n!==null){let e=QTe(n);e!==null&&te(N(_,`state`,`watcher-recent.jsonl`),e)}}let T=s(t);T!==null&&te(N(_,`state`,`shadow-head.txt`),T);let E=c(t);E!==null&&te(N(_,`state`,`checkpoint-refs.txt`),E),Z9(qTe(n),N(_,`state`,U9)),Z9(JTe(n),N(_,`state`,W9)),Z9(N(y,`last-spawn-error.log`),N(_,`state`,`last-spawn-error.log`)),Z9(N(y,ju),N(_,`state`,ju)),Z9(N(y,Mu),N(_,`state`,Mu));let ee=p(),ne=d(),re=f(),ie={ok:{version:u(),nodeVersion:ee.nodeVersion,platform:ee.platform,arch:ee.arch},host:{desktop:ne,language:re}};te(N(_,`state`,`runtime.json`),`${JSON.stringify(ie,null,2)}\n`);let ae=x===`running`?`running
1532
1532
  `:`not-running (${C})\n`;if(te(N(_,`state`,`server-status.txt`),ae),e.processDir&&g(e.processDir)){let t=N(_,`process`);v(t,{recursive:!0}),m(e.processDir,t,{recursive:!0})}let oe=e.redact===!0;oe&&HTe({stagingDir:_,contentDir:t}),e.note&&te(N(_,`note.txt`),e.note);let se=null;e.scrubSecrets===!0&&(se=pEe(_));for(let t of e.extraFiles??[])Z9(t.sourcePath,N(_,`extra`,t.zipName??fe(t.sourcePath)))||r.logger?.warn({sourcePath:t.sourcePath},`extra file missing; omitted from bundle`);let k=iEe(n),ce=Q9(_),le=[],ue=0,A=0;for(let e of ce){let t=$9(_,e),n=O(e).size,r=uEe(t)?oEe(e):0;le.push({path:t,bytes:n,lines:r}),ue+=n,(t.startsWith(`telemetry/`)||t.startsWith(`logs/`))&&(A+=cEe(e))}let j={applied:oe};se!==null&&(j.secretScrub=se);let de={schemaVersion:2,createdAt:l().toISOString(),ok:{version:u(),nodeVersion:ee.nodeVersion,platform:ee.platform,arch:ee.arch},host:{desktop:ne,language:re},contentDir:{pathSha256:aEe(t),absolutePath:oe?`<CONTENT_DIR>`:t},telemetry:{localSink:k,otlpPushEnabled:h()},redaction:j,serverStatus:x,files:le};te(N(_,`manifest.json`),`${JSON.stringify(de,null,2)}\n`);let pe=ce.some(e=>{try{return S(e,`utf-8`).includes(t)}catch{return!1}}),me={totalBytes:ue,fileCount:le.length,docNameCount:A,contentDirVisible:pe,redacted:oe},M=!1;return{stagingDir:_,manifest:de,summary:me,cleanup:()=>{M||(M=!0,D(_,{recursive:!0,force:!0}))}}}catch(e){throw D(_,{recursive:!0,force:!0}),e}}async function hEe(e){let{collected:t,outputPath:n}=e,r=pe(n);if(!g(r))throw Error(`ok diagnose bundle: parent directory does not exist: ${r}. Create it or pass --out with an existing parent.`);let i=new zye.ZipFile,a=Q9(t.stagingDir);for(let e of a){let n=$9(t.stagingDir,e);i.addFile(e,n)}i.end();let o=h(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 gEe(e,t){let n=N(e,`.ok`,`config.yml`);if(g(n))try{let t=(0,on.parse)(S(n,`utf-8`)),r=A7(t)?t.content:void 0,i=A7(r)?r.dir:void 0;if(typeof i==`string`&&i.length>0)return ve(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 ve(e)}async function _Ee(e,t,n,r){let i=s9(t,e.logger),a=await mEe({contentDir:gEe(t,e.logger),projectDir:t,redact:e.redact,scrubSecrets:e.redact,note:e.note,extraFiles:e.extraFiles,userLogFiles:[...iTe(i,e.userLogsDir??N(oe(),`.ok`,`logs`)),...l9(e.cachesDir??N(oe(),`Library`,`Caches`))],userStateFiles:u9(e.bugReportsDir??o9()),deps:{readDesktopEnv:n,readLanguage:r,logger:e.logger}});try{v(pe(e.outputPath),{recursive:!0}),await hEe({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 vEe(e){let{projectDir:t}=e,n=e.readDesktopEnv??K9,r=e.readLanguage??O9;if(e.level===`full`&&t!==void 0)return _Ee(e,t,n,r);let{zipPath:i,summary:a}=await lTe({projectDir:t,redact:e.redact,revealDocNames:e.level===`full`,outputPath:e.outputPath,userLogsDir:e.userLogsDir,shipItLogFiles:l9(e.cachesDir??N(oe(),`Library`,`Caches`)),bugReportLedgerFiles:u9(e.bugReportsDir??o9()),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}}}export{N5 as ALL_EDITOR_IDS,P5 as EDITOR_LABELS,n7 as EDITOR_TARGETS,pCe as HOSTS_WITH_USER_SKILL_DIR,qwe as LAUNCH_CONFIG_NAME,kTe as PATH_SHIM_BEGIN,jTe as PATH_SHIM_BLOCK_RE,ATe as PATH_SHIM_END,Owe as addOkPathsToGitExclude,S7 as assertProjectPathSafe,U5 as buildManagedServerEntry,yTe as buildMcpConfigDeclineEvent,bTe as buildMcpConfigMigrateEvent,a9 as classifyExistingMcpEntry,vEe as collectReportBundle,un as createTokenStore,tTe as defaultBugReportZipPath,Be as detectGh,Ue as detectGhAccounts,Qwe as detectInstalledEditors,ECe as editorConfigPathDisplay,TCe as editorEntryLocator,dTe as ensurePiBridge,z7 as formatTrackedRemediation,jwe as getExcludedOkPaths,L7 as getInstalledSkillProjectionPaths,Dwe as getNativeTomlMcpEditor,I7 as getOkArtifactPaths,V5 as isEntryUpToDate,W5 as isOwnManagedEntry,ETe as loadConfig,fee as makeLazyProbeTokenStore,o9 as okBugReportsDir,w9 as parseGitHubBlobUrl,DTe as parseGitHubShareUrl,T9 as parseGitHubTreeUrl,C9 as parseGitUrl,MTe as pathInstallMarkerPath,owe as previewContent,eTe as probeOwnManagedEditorMcpEntry,uTe as probePiBridgeState,R7 as probeTrackedOkPaths,r9 as readExistingMcpEntry,Awe as readSharingMode,Rw as redactContent,kwe as removeOkPathsFromGitExclude,hTe as removeOwnMcpEntry,gwe as removeProjectSkill,PTe as removeUserGlobalSkillBundle,fwe as resolveProjectRoot,CTe as runStop,y9 as truncatePriorEntry,D9 as userGlobalSkillBundleTargets,OTe as validateLocalFolderForShare,n9 as writeEditorMcpConfig,LTe as writeProjectAiIntegrations,T7 as writeProjectSkill,Zwe as writeUserMcpConfigs};
1533
1533
  //# sourceMappingURL=index.mjs.map