@inkeep/open-knowledge 0.8.0-beta.17 → 0.8.0-beta.19

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 (327) hide show
  1. package/dist/alias-JE7RI5QX-DiMuvZ_b.mjs +1 -0
  2. package/dist/assets/skills/discovery/SKILL.md +1 -1
  3. package/dist/assets/skills/project/SKILL.md +1 -1
  4. package/dist/awk2-POPGKRAI-BeVnDraO.mjs +1 -0
  5. package/dist/{banner-BEKwr_uU.mjs → banner-2j-_SAt6.mjs} +2 -2
  6. package/dist/base64-4YMZCVJ5-B4tjJP2m.mjs +1 -0
  7. package/dist/basename-AA2KJYZQ-BDBZjFZG.mjs +1 -0
  8. package/dist/bash-IJWYRKFO-UQr9bYdp.mjs +1 -0
  9. package/dist/cat-RDUMLXKC-D-Lvspp-.mjs +1 -0
  10. package/dist/chmod-SYMGL4JA-C9nV9I5a.mjs +1 -0
  11. package/dist/{chokidar-CblsKfnx.mjs → chokidar-Drw_7KKo.mjs} +1 -1
  12. package/dist/{chunk-24IMIIXA-_PX4ITYZ.mjs → chunk-24IMIIXA-BPYIgkX5.mjs} +2 -2
  13. package/dist/{chunk-3THT3N7L-DrzOuTpA.mjs → chunk-3THT3N7L-DJBUbZXN.mjs} +1 -1
  14. package/dist/{chunk-3ZUFRYJ4-C93H8j0V.mjs → chunk-3ZUFRYJ4-BZnpEf92.mjs} +1 -1
  15. package/dist/{chunk-44UOCSGV-BbZqjKvt.mjs → chunk-44UOCSGV-Bldn7atv.mjs} +1 -1
  16. package/dist/{chunk-4GTNDTRF-_OVmXcJ-.mjs → chunk-4GTNDTRF--1mJs7-X.mjs} +2 -2
  17. package/dist/{chunk-4HHKTUW3-Dm69hDaZ.mjs → chunk-4HHKTUW3-MVqoi_T3.mjs} +1 -1
  18. package/dist/{chunk-4Q4SM6WR-DDQRsilN.mjs → chunk-4Q4SM6WR-CvGF-_Q8.mjs} +2 -2
  19. package/dist/{chunk-55VFSPNA-DVZfQAzN.mjs → chunk-55VFSPNA-BI6dNKjc.mjs} +2 -2
  20. package/dist/{chunk-5QMZ5MUS-SLhNX8t9.mjs → chunk-5QMZ5MUS-BQ6AJ7O6.mjs} +2 -2
  21. package/dist/{chunk-5QVNJEHU-BvsipSFW.mjs → chunk-5QVNJEHU-BvfNka90.mjs} +2 -2
  22. package/dist/{chunk-5V6VZH6T-BCr5_GDF.mjs → chunk-5V6VZH6T-D7bOa6u8.mjs} +2 -2
  23. package/dist/{chunk-62RKD26F-Xy18vjr1.mjs → chunk-62RKD26F-CNcG0-gc.mjs} +2 -2
  24. package/dist/{chunk-64BAICW3-CTJNEx4Q.mjs → chunk-64BAICW3-Ct0k59pL.mjs} +2 -2
  25. package/dist/{chunk-74CEPOFO-D1bzz49u.mjs → chunk-74CEPOFO-CExCjuFQ.mjs} +1 -1
  26. package/dist/{chunk-7L36YK2X-RiPZFKaV.mjs → chunk-7L36YK2X-Q1rIcbLT.mjs} +1 -1
  27. package/dist/{chunk-7TSDKFEO-a-GUGBTu.mjs → chunk-7TSDKFEO-CVXHdZlP.mjs} +1 -1
  28. package/dist/{chunk-A4HU7SVR-hefV_YmW.mjs → chunk-A4HU7SVR-BecnXf_j.mjs} +1 -1
  29. package/dist/{chunk-A4JSPFCI-D3-Pg2lq.mjs → chunk-A4JSPFCI-CFUAbT7E.mjs} +2 -2
  30. package/dist/{chunk-A5O5YHGN-DQP-O5US.mjs → chunk-A5O5YHGN-C4hFXTXp.mjs} +2 -2
  31. package/dist/{chunk-A65PWWJC-D7J5l9eq.mjs → chunk-A65PWWJC-DCxPAHkR.mjs} +2 -2
  32. package/dist/{chunk-A7A2DBEE-PLfkXLI4.mjs → chunk-A7A2DBEE-Cz9e5Bhr.mjs} +1 -1
  33. package/dist/{chunk-A7ICOL4V-Drb3XsEL.mjs → chunk-A7ICOL4V-BsLyPNES.mjs} +2 -2
  34. package/dist/{chunk-ALLTKNUZ-BMiTDN50.mjs → chunk-ALLTKNUZ-HEyM2sBV.mjs} +2 -2
  35. package/dist/{chunk-APT7OOP2-CXHnSuct.mjs → chunk-APT7OOP2-CR6NU00o.mjs} +2 -2
  36. package/dist/{chunk-BBXLRYSX-Cxoye6wj.mjs → chunk-BBXLRYSX-mzBO0XWz.mjs} +2 -2
  37. package/dist/{chunk-BRGMQKJV-Dr9Z7G7y.mjs → chunk-BRGMQKJV-BKd1VT2Z.mjs} +3 -3
  38. package/dist/{chunk-CR5AFCPT-BBd9E4Jo.mjs → chunk-CR5AFCPT-D7NkQWcH.mjs} +2 -2
  39. package/dist/{chunk-CWQS3NFK-BQ5SUtd7.mjs → chunk-CWQS3NFK-CKoiDb4a.mjs} +1 -1
  40. package/dist/{chunk-D4J545R4-C8nMOauR.mjs → chunk-D4J545R4-Cx98m4P-.mjs} +2 -2
  41. package/dist/{chunk-D6CWQ5DW-BudNEuOo.mjs → chunk-D6CWQ5DW-CI9YGPey.mjs} +2 -2
  42. package/dist/{chunk-D7MEQ3VN-Csvth_Ss.mjs → chunk-D7MEQ3VN-BMterGJ_.mjs} +2 -2
  43. package/dist/{chunk-DCAAORBQ-BdrR5ttw.mjs → chunk-DCAAORBQ-D6297aec.mjs} +2 -2
  44. package/dist/{chunk-DXB73IDG-DfmyzFzL.mjs → chunk-DXB73IDG-DiBHw8JN.mjs} +1 -1
  45. package/dist/{chunk-EEXR5ZDP-C5AJH114.mjs → chunk-EEXR5ZDP-Bn4vQQ9d.mjs} +1 -1
  46. package/dist/{chunk-EIZGF4BS-8bsVXqW0.mjs → chunk-EIZGF4BS-DpDxPaeq.mjs} +2 -2
  47. package/dist/{chunk-F23WWYKW-DST0dB7V.mjs → chunk-F23WWYKW-CJjGfJog.mjs} +2 -2
  48. package/dist/{chunk-F55TLFGB-CezmwFJN.mjs → chunk-F55TLFGB-Bin48pra.mjs} +2 -2
  49. package/dist/{chunk-FEIOJCZD-Vm1q1kLH.mjs → chunk-FEIOJCZD-B2ACHNVA.mjs} +2 -2
  50. package/dist/{chunk-GCTKCWKD-Deqi1D_N.mjs → chunk-GCTKCWKD-BHUn6H7z.mjs} +1 -1
  51. package/dist/{chunk-GFQRA5P5-CkMj9l7f.mjs → chunk-GFQRA5P5-Cud1eg4y.mjs} +1 -1
  52. package/dist/{chunk-GOV5EKKI-DNFJiYJI.mjs → chunk-GOV5EKKI-21xKIzGR.mjs} +2 -2
  53. package/dist/{chunk-GXVXFKBA-993FoPmq.mjs → chunk-GXVXFKBA-Cj_Fxv_5.mjs} +2 -2
  54. package/dist/{chunk-HDQ56CKY-pGV4pOJA.mjs → chunk-HDQ56CKY-C-CmmYx3.mjs} +2 -2
  55. package/dist/{chunk-HJQJAYMS-Ci3vsKQW.mjs → chunk-HJQJAYMS-BIgu03Ox.mjs} +1 -1
  56. package/dist/{chunk-HJWBQKYG-UZig4wUt.mjs → chunk-HJWBQKYG-rWCXbrjW.mjs} +2 -2
  57. package/dist/{chunk-HWBSOZZR-B0-Qfe0T.mjs → chunk-HWBSOZZR-uOggqK2F.mjs} +2 -2
  58. package/dist/{chunk-HWKDQ44K-CPSjqtR_.mjs → chunk-HWKDQ44K-_GSIs_AO.mjs} +2 -2
  59. package/dist/{chunk-I57KEIP3-C9JW7Nfp.mjs → chunk-I57KEIP3-7YwPR338.mjs} +2 -2
  60. package/dist/{chunk-IPJHKYVM-orb6vjJ1.mjs → chunk-IPJHKYVM-CkYRWt-S.mjs} +1 -1
  61. package/dist/{chunk-J642UCRS-D2hPh3Cf.mjs → chunk-J642UCRS-Cyg-aSoS.mjs} +2 -2
  62. package/dist/{chunk-JVPRLUMK-DnQCNjpq.mjs → chunk-JVPRLUMK-DSRfSbMx.mjs} +2 -2
  63. package/dist/{chunk-KMEYNNUA-DfdK88O_.mjs → chunk-KMEYNNUA-CDMPzUOg.mjs} +2 -2
  64. package/dist/{chunk-LL3S3NLB-DxXgE3kY.mjs → chunk-LL3S3NLB-CRM1v6xO.mjs} +2 -2
  65. package/dist/{chunk-LPQPILI2-8E8WwnE3.mjs → chunk-LPQPILI2-BI3cmSCQ.mjs} +2 -2
  66. package/dist/{chunk-LTZRCH7N-GAjTFNwG.mjs → chunk-LTZRCH7N-zhq7ggMR.mjs} +2 -2
  67. package/dist/{chunk-LWEGUNWT-BALY4RLC.mjs → chunk-LWEGUNWT-DsSNdmG6.mjs} +2 -2
  68. package/dist/{chunk-MDDMCKUK-DD6paciv.mjs → chunk-MDDMCKUK-BOemNzYa.mjs} +2 -2
  69. package/dist/{chunk-MDLLFABN-oBQf6bGE.mjs → chunk-MDLLFABN-BUZLLdU-.mjs} +2 -2
  70. package/dist/{chunk-MHTUABJP-dKmK6Hw7.mjs → chunk-MHTUABJP-CFOPmfuD.mjs} +1 -1
  71. package/dist/{chunk-MIZPJHVH-BPfxJ3C2.mjs → chunk-MIZPJHVH-DRUAnovn.mjs} +2 -2
  72. package/dist/{chunk-MLXIYONF-CQ5Q9uTP.mjs → chunk-MLXIYONF-C43lG0dq.mjs} +2 -2
  73. package/dist/{chunk-MYE6AGBJ-B4pRo9ma.mjs → chunk-MYE6AGBJ-IJhb8Pnd.mjs} +2 -2
  74. package/dist/{chunk-NAERJDUW-B3fduMx2.mjs → chunk-NAERJDUW-B0-n_gxK.mjs} +2 -2
  75. package/dist/{chunk-NCNPKYJZ-BFGan4lR.mjs → chunk-NCNPKYJZ-CTS9W0AE.mjs} +2 -2
  76. package/dist/{chunk-NUYSJFDK-BVw8oahq.mjs → chunk-NUYSJFDK-J6Py8CIT.mjs} +2 -2
  77. package/dist/{chunk-NYQYO467-nPa6J2DD.mjs → chunk-NYQYO467-DRNkyF-U.mjs} +2 -2
  78. package/dist/{chunk-OARHFVLG-DGpNgI6K.mjs → chunk-OARHFVLG-98yp8JRG.mjs} +2 -2
  79. package/dist/{chunk-OCLXQMOG-Bktk24jL.mjs → chunk-OCLXQMOG-Bwp2OfcJ.mjs} +2 -2
  80. package/dist/{chunk-OCS6LSEM-WwUGJ0am.mjs → chunk-OCS6LSEM-B8tIhL1k.mjs} +2 -2
  81. package/dist/{chunk-OJDRYQWQ-D4lSWh0K.mjs → chunk-OJDRYQWQ-XHSNzsVx.mjs} +1 -1
  82. package/dist/{chunk-OL3S66CO-DtsweltN.mjs → chunk-OL3S66CO-DAKw4RBb.mjs} +2 -2
  83. package/dist/{chunk-PBXLG62G-Ci7A7XGA.mjs → chunk-PBXLG62G-CLbYzY24.mjs} +2 -2
  84. package/dist/{chunk-PP6PSHAB-DMC_XCfO.mjs → chunk-PP6PSHAB-DU1u4KhR.mjs} +1 -1
  85. package/dist/{chunk-PYSFUGCK-CY7pclEB.mjs → chunk-PYSFUGCK-BHCYaqaR.mjs} +2 -2
  86. package/dist/{chunk-QCDB2VPH-D1RuXtOm.mjs → chunk-QCDB2VPH-B7sObey-.mjs} +2 -2
  87. package/dist/{chunk-QJ7O6ZN3-BH67tCjg.mjs → chunk-QJ7O6ZN3-SwU_vJqW.mjs} +2 -2
  88. package/dist/{chunk-R6QSAL5T-CtbJTvt9.mjs → chunk-R6QSAL5T-CfNKT29I.mjs} +1 -1
  89. package/dist/{chunk-R6VWJ2ZL-DSqbA7Rj.mjs → chunk-R6VWJ2ZL-DIztW2nG.mjs} +1 -1
  90. package/dist/{chunk-RPNGRAAP-BughPjdR.mjs → chunk-RPNGRAAP-C_hK2f_6.mjs} +2 -2
  91. package/dist/{chunk-SDNKECQQ-C3GEf3VZ.mjs → chunk-SDNKECQQ-ivh2-vsR.mjs} +2 -2
  92. package/dist/{chunk-SYMJJMQ4-0QtKvQIP.mjs → chunk-SYMJJMQ4-N8usXlyn.mjs} +2 -2
  93. package/dist/{chunk-T56QNPHK-DjHqXy9T.mjs → chunk-T56QNPHK-BpY2JAwZ.mjs} +2 -2
  94. package/dist/{chunk-TLSUDHID-6EWOySH2.mjs → chunk-TLSUDHID-PXPLisKA.mjs} +2 -2
  95. package/dist/{chunk-TOMNU26N-BjLxRX8P.mjs → chunk-TOMNU26N-BVt75BK5.mjs} +2 -2
  96. package/dist/{chunk-TXBZCHCQ-l48TczF5.mjs → chunk-TXBZCHCQ-CzW3I1vv.mjs} +2 -2
  97. package/dist/{chunk-UNYNJIFU-BbdoO4yb.mjs → chunk-UNYNJIFU-5QHcA85X.mjs} +3 -3
  98. package/dist/{chunk-V7TAPXDL-CnKUp2df.mjs → chunk-V7TAPXDL-DImQ2x1N.mjs} +2 -2
  99. package/dist/{chunk-VJFXDYWH-IiUXkKX0.mjs → chunk-VJFXDYWH-HJeqU79C.mjs} +2 -2
  100. package/dist/{chunk-VLGZJRPG-B678hnuU.mjs → chunk-VLGZJRPG-BdCxuGR9.mjs} +2 -2
  101. package/dist/{chunk-VOBGTVA6-BT7gUxqf.mjs → chunk-VOBGTVA6-BrLYHV3X.mjs} +2 -2
  102. package/dist/{chunk-VYOJP4TV-BvibOnKG.mjs → chunk-VYOJP4TV-CyUuqbM6.mjs} +2 -2
  103. package/dist/{chunk-WKFATFPP-DCZdrA8x.mjs → chunk-WKFATFPP-Bs2wgFlc.mjs} +2 -2
  104. package/dist/{chunk-X2AJGDEF-BaH6i1Rq.mjs → chunk-X2AJGDEF-Bcm-Bs1P.mjs} +1 -1
  105. package/dist/{chunk-XHM67O4N-Cd7Fiqsb.mjs → chunk-XHM67O4N-VMZIJhmy.mjs} +1 -1
  106. package/dist/{chunk-XKQRETAK-cVWA9gEB.mjs → chunk-XKQRETAK--OBLek3Q.mjs} +2 -2
  107. package/dist/{chunk-XORM457F-BAW3OKIy.mjs → chunk-XORM457F-DPa9UklK.mjs} +2 -2
  108. package/dist/{chunk-XVDPCNWR-CtK-Xs2O.mjs → chunk-XVDPCNWR-D-2j42Wk.mjs} +2 -2
  109. package/dist/{chunk-YCFVLTST-PFJX6AMj.mjs → chunk-YCFVLTST-DLBC7Zw_.mjs} +2 -2
  110. package/dist/{chunk-YFG2CMIF-CVDz5Fsh.mjs → chunk-YFG2CMIF-QAvMGKqJ.mjs} +2 -2
  111. package/dist/{chunk-YNYSPYQ5-Dq-BWW-f.mjs → chunk-YNYSPYQ5-DzToRSq3.mjs} +1 -1
  112. package/dist/{chunk-YS3AZT3J-DRSVwRFh.mjs → chunk-YS3AZT3J-BLSxIHIX.mjs} +2 -2
  113. package/dist/{chunk-YTNYSM6T-KUvMCIKS.mjs → chunk-YTNYSM6T-DC2EcahF.mjs} +2 -2
  114. package/dist/{chunk-Z6LRHWXI-CF_r-CgG.mjs → chunk-Z6LRHWXI-Dwj1jdge.mjs} +2 -2
  115. package/dist/{chunk-Z7JVV2SM-BzR-yvwK.mjs → chunk-Z7JVV2SM-B1GYGO5h.mjs} +2 -2
  116. package/dist/clear-5CZ5X4YR-DKZjZQKM.mjs +1 -0
  117. package/dist/cli.d.mts +1 -3
  118. package/dist/cli.mjs +11 -11
  119. package/dist/colors-B75xIh3W.mjs +1 -0
  120. package/dist/{colors-D0wh7lK1.mjs → colors-DEbd2OH6.mjs} +1 -1
  121. package/dist/column-WLPMMSTS-KeKoME8E.mjs +1 -0
  122. package/dist/comm-5SLSESQG-f07t_kbe.mjs +1 -0
  123. package/dist/constants-Cv4s1KlO.mjs +2 -0
  124. package/dist/cp-XOYR4ABJ-T4RhGkGw.mjs +1 -0
  125. package/dist/{curl-47BFPSFW-Dq2QRfS5.mjs → curl-47BFPSFW-D1Ai6Ase.mjs} +2 -2
  126. package/dist/cut-OPC3VAGB-I2VCQmsN.mjs +1 -0
  127. package/dist/date-DD7FVA2V-726kEzqx.mjs +1 -0
  128. package/dist/diff-HJF2MPDN-DGxFa9Fq.mjs +1 -0
  129. package/dist/dirname-LEMTZZFS-BXgOaoej.mjs +1 -0
  130. package/dist/{dist-3m799Jis.mjs → dist-4x_d-0GF.mjs} +1 -1
  131. package/dist/{dist-DikIN25T.mjs → dist-BWAKwlW9.mjs} +20 -16
  132. package/dist/du-WO2ENHXQ-BsCwKI6D.mjs +1 -0
  133. package/dist/echo-O45JWWI2-DLZg7wXN.mjs +1 -0
  134. package/dist/env-5EPCWSXR-C5vCIn-C.mjs +1 -0
  135. package/dist/{execAsync-0jii24p9.mjs → execAsync-Bpfn4nfY.mjs} +1 -1
  136. package/dist/{execAsync-Czqc-yAz.mjs → execAsync-BtSomP_N.mjs} +1 -1
  137. package/dist/{execAsync-DgmLXmTx.mjs → execAsync-D93HRpVy.mjs} +1 -1
  138. package/dist/expand-DTNXU4LQ-BlyiHu-Q.mjs +1 -0
  139. package/dist/expansion-ENLSRCXJ-CedPCKSI.mjs +1 -0
  140. package/dist/expr-5T3UU5KE-Cibsfrp2.mjs +1 -0
  141. package/dist/file-ZIGAJ4YS-DAHjzYSb.mjs +1 -0
  142. package/dist/find-TPUOAIUQ-B6Q1kA1J.mjs +1 -0
  143. package/dist/flag-coverage-QT4N2Z44-CspB_4zD.mjs +2 -0
  144. package/dist/fold-LDSORVYE-O9T5HKO_.mjs +1 -0
  145. package/dist/{getMachineId-bsd-BCJXEJCn.mjs → getMachineId-bsd-B17iO60u.mjs} +2 -2
  146. package/dist/{getMachineId-bsd-D7C80Q-x.mjs → getMachineId-bsd-CoWfSNjc.mjs} +2 -2
  147. package/dist/{getMachineId-bsd-GIcY1fmf.mjs → getMachineId-bsd-OuF-VvA3.mjs} +2 -2
  148. package/dist/{getMachineId-darwin-C9wsuHP1.mjs → getMachineId-darwin-BpLOQVU5.mjs} +2 -2
  149. package/dist/{getMachineId-darwin-D9y6ky_l.mjs → getMachineId-darwin-CVTu_op_.mjs} +2 -2
  150. package/dist/{getMachineId-darwin-DG876t7S.mjs → getMachineId-darwin-t-Bfqk_6.mjs} +2 -2
  151. package/dist/{getMachineId-linux-Bt9mk0EE.mjs → getMachineId-linux-BmnQivfI.mjs} +1 -1
  152. package/dist/{getMachineId-linux-D9atImpV.mjs → getMachineId-linux-BnxRLexR.mjs} +1 -1
  153. package/dist/{getMachineId-linux-BJESQahL.mjs → getMachineId-linux-DeBhqVXn.mjs} +1 -1
  154. package/dist/{getMachineId-unsupported-Dabs3aBp.mjs → getMachineId-unsupported-60J1q9rW.mjs} +1 -1
  155. package/dist/{getMachineId-unsupported-cApRznzG.mjs → getMachineId-unsupported-CsZB09JV.mjs} +1 -1
  156. package/dist/{getMachineId-unsupported-DAbsbHrs.mjs → getMachineId-unsupported-DpFmOcSz.mjs} +1 -1
  157. package/dist/{getMachineId-win-CH98qgwX.mjs → getMachineId-win-B1Mk_gfO.mjs} +2 -2
  158. package/dist/{getMachineId-win-CU_iAQo9.mjs → getMachineId-win-BqUG1yKa.mjs} +2 -2
  159. package/dist/{getMachineId-win-1MPHaim9.mjs → getMachineId-win-DPcPexEZ.mjs} +2 -2
  160. package/dist/{gh-detect-DaEGWQM-.mjs → gh-detect-CSW5IRNM.mjs} +2 -2
  161. package/dist/grep-3AIAIJVR-BZ96dHZF.mjs +1 -0
  162. package/dist/gzip-AQXSGOVS-Cd0FzI4A.mjs +1 -0
  163. package/dist/head-HT2B6D2J-_8qJ44Y0.mjs +1 -0
  164. package/dist/help-VVWX7SA5-nLv-kQgx.mjs +1 -0
  165. package/dist/history-J4QRNGRO-BFBrUjOI.mjs +1 -0
  166. package/dist/hostname-BK6HG2DE-CSD4JAoH.mjs +1 -0
  167. package/dist/html-to-markdown-TFCECAGV-1itrHcsS.mjs +1 -0
  168. package/dist/index.d.mts +28 -3
  169. package/dist/index.mjs +1 -1
  170. package/dist/init-Gnx02_L9.mjs +1 -0
  171. package/dist/init-vEhO5tm3.mjs +281 -0
  172. package/dist/{is-object-BXWpSxBI.mjs → is-object-Cg453afR.mjs} +1 -1
  173. package/dist/join-GG2LDHE5-CQlHJDoT.mjs +1 -0
  174. package/dist/jq-ODXZBPLY-S6TqGJov.mjs +1 -0
  175. package/dist/{js-exec-M6UR76J5-D6BVeQcA.mjs → js-exec-M6UR76J5-BYzv20nM.mjs} +2 -2
  176. package/dist/{lib-Dl2j2VNl.mjs → lib-DvSbHPnW.mjs} +1 -1
  177. package/dist/ln-4TRFBYAT-Ch5rvb9d.mjs +1 -0
  178. package/dist/loader-BKhrYc2B.mjs +1 -0
  179. package/dist/{loader-0yiiW-5-.mjs → loader-DUSa9hJG.mjs} +2 -2
  180. package/dist/ls-KSXFZCWH-D_f10oDS.mjs +1 -0
  181. package/dist/{lzma-BSHkPrAt.mjs → lzma-CldL5ztj.mjs} +1 -1
  182. package/dist/mcp-migrate-event-CyH1VVyy.mjs +2 -0
  183. package/dist/md5sum-INMIK4DX-BX1tQou-.mjs +1 -0
  184. package/dist/mkdir-TDEMSB6C-BfIhr62Z.mjs +1 -0
  185. package/dist/mv-Z6MORUFL-BejgWBGu.mjs +1 -0
  186. package/dist/nl-U5YJDM32-Da4W1JfF.mjs +1 -0
  187. package/dist/od-VJEF2UR5-CEABTjhC.mjs +1 -0
  188. package/dist/{open-browser-C6LU_1mt.mjs → open-browser-C9GRQw2D.mjs} +1 -1
  189. package/dist/paste-7N6AFSDS-Dy-ZdSmA.mjs +1 -0
  190. package/dist/preview-DbGYRaVb.mjs +1 -0
  191. package/dist/{preview-Cm1-EGf1.mjs → preview-H36YGxZa.mjs} +2 -2
  192. package/dist/printf-CX64KX2P-BlwE4RVF.mjs +1 -0
  193. package/dist/pwd-D4OZ7N27-Dt_xnI1A.mjs +1 -0
  194. package/dist/{python3-AUFTPCU6-CcfVkAVy.mjs → python3-AUFTPCU6-8zelkhgh.mjs} +2 -2
  195. package/dist/readlink-MI4GCHJF-Z4cZ2KAJ.mjs +1 -0
  196. package/dist/{repair-launch-json-DIJDH5Tl.mjs → repair-launch-json-R0MDO4C-.mjs} +2 -2
  197. package/dist/repair-mcp-configs-DrKyEaqS.mjs +2 -0
  198. package/dist/repair-skills-BGSggwrg.mjs +1 -0
  199. package/dist/{repair-skills-B0q960oj.mjs → repair-skills-ClqjW2ic.mjs} +2 -2
  200. package/dist/rev-XOSYPP45-B-ZnKgE3.mjs +1 -0
  201. package/dist/rg-FOQSCCX3-CYZLZUMA.mjs +1 -0
  202. package/dist/rm-RTZG23RL-ibWWiOu8.mjs +1 -0
  203. package/dist/rmdir-XTQXT7RK-DMTHF36H.mjs +1 -0
  204. package/dist/sed-VFTTATXJ-aqlHXp32.mjs +1 -0
  205. package/dist/seq-RN5ZUASB-bQnXHGvz.mjs +1 -0
  206. package/dist/sha1sum-VJPNLNU6-CcW4qlsk.mjs +1 -0
  207. package/dist/sha256sum-PI32XWXY-DrJUb3sN.mjs +1 -0
  208. package/dist/sleep-VZFPZFWA-B1ZBrvAs.mjs +1 -0
  209. package/dist/sort-DCNRDA7U-BB4WJgyf.mjs +1 -0
  210. package/dist/split-SITCSYCZ-x4Y-DA6y.mjs +1 -0
  211. package/dist/sqlite3-56UMWEY3-CY0-gfQK.mjs +1 -0
  212. package/dist/{src-Q5deioVX.mjs → src-J8FSbKHH.mjs} +2 -2
  213. package/dist/{start-DUoyJgxA.mjs → start-BwCvoKIY.mjs} +2 -2
  214. package/dist/start-DoOisI_H.mjs +1 -0
  215. package/dist/stat-BT5A227F-D6H5uqhc.mjs +1 -0
  216. package/dist/strings-7PLOGTPD-DPGaNEOP.mjs +1 -0
  217. package/dist/tac-SJGXQ4T2-kzO3q4pS.mjs +1 -0
  218. package/dist/tail-S5ULNTJU-CFPNNUdK.mjs +1 -0
  219. package/dist/tar-ANUBEFJY-RRKF2LBe.mjs +1 -0
  220. package/dist/tee-O7VXZDCO-ME2-H9TH.mjs +1 -0
  221. package/dist/time-DEUO3QV2-BTPD4eTE.mjs +1 -0
  222. package/dist/timeout-VRKMCG72-B4YT9w6n.mjs +1 -0
  223. package/dist/touch-DX2IJOQ4-B8zV5e5M.mjs +1 -0
  224. package/dist/tr-2HXZRDSW-5mSbPCHX.mjs +1 -0
  225. package/dist/tree-LYXBS7DC-DNl0GTgm.mjs +1 -0
  226. package/dist/true-WHJNXCHG-CMYHoY79.mjs +1 -0
  227. package/dist/unexpand-RGTMIGZM-Df742ryg.mjs +1 -0
  228. package/dist/uniq-SUNANL47-_OEYW1YV.mjs +1 -0
  229. package/dist/wc-TQB3VNOX-CfS7oyuj.mjs +1 -0
  230. package/dist/which-XZHEH76L-BQVUqgjz.mjs +1 -0
  231. package/dist/whoami-DGKU3D2X-DPUnZuMu.mjs +1 -0
  232. package/dist/{write-project-skill-Bh1t5k11.mjs → write-project-skill-C3aYUp9w.mjs} +2 -2
  233. package/dist/xan-BXDXYEIB-D6d2arbs.mjs +1 -0
  234. package/dist/xan-view-ECQUO7AJ-DanvS4LJ.mjs +1 -0
  235. package/dist/xargs-I6EZUCYF-BE34OAki.mjs +1 -0
  236. package/dist/yazl-BKdvfH0Q.mjs +2 -0
  237. package/dist/yazl-Cw7cic8l.mjs +1 -0
  238. package/dist/yq-MJMAR36V-XOqahbXI.mjs +1 -0
  239. package/package.json +1 -1
  240. package/dist/alias-JE7RI5QX-CjsckksZ.mjs +0 -1
  241. package/dist/awk2-POPGKRAI-DeuggFRh.mjs +0 -1
  242. package/dist/base64-4YMZCVJ5-Cj7j5Pz8.mjs +0 -1
  243. package/dist/basename-AA2KJYZQ-DSRxx5mc.mjs +0 -1
  244. package/dist/bash-IJWYRKFO-DFBZjU3V.mjs +0 -1
  245. package/dist/cat-RDUMLXKC-CI2IrKwx.mjs +0 -1
  246. package/dist/chmod-SYMGL4JA-D31pO-B4.mjs +0 -1
  247. package/dist/clear-5CZ5X4YR-CwAD0ujG.mjs +0 -1
  248. package/dist/colors-Dl3c2q5r.mjs +0 -1
  249. package/dist/column-WLPMMSTS-OtgXQJPP.mjs +0 -1
  250. package/dist/comm-5SLSESQG-Dbe_0JM-.mjs +0 -1
  251. package/dist/constants-EVa8rJ0p.mjs +0 -2
  252. package/dist/cp-XOYR4ABJ-Fs-BUNPK.mjs +0 -1
  253. package/dist/cut-OPC3VAGB-QytesYLS.mjs +0 -1
  254. package/dist/date-DD7FVA2V-Cg5stPCO.mjs +0 -1
  255. package/dist/diff-HJF2MPDN-DRmjT8LD.mjs +0 -1
  256. package/dist/dirname-LEMTZZFS-BU2v6Jk9.mjs +0 -1
  257. package/dist/du-WO2ENHXQ-BcC6aUKa.mjs +0 -1
  258. package/dist/echo-O45JWWI2-D_LDH8mS.mjs +0 -1
  259. package/dist/env-5EPCWSXR-C4ozdy42.mjs +0 -1
  260. package/dist/expand-DTNXU4LQ-CHt1YsOk.mjs +0 -1
  261. package/dist/expansion-ENLSRCXJ-CcahEplO.mjs +0 -1
  262. package/dist/expr-5T3UU5KE-BL4xVSIz.mjs +0 -1
  263. package/dist/file-ZIGAJ4YS-CT98h277.mjs +0 -1
  264. package/dist/find-TPUOAIUQ-BE_RhPSK.mjs +0 -1
  265. package/dist/flag-coverage-QT4N2Z44-g6MqLsWy.mjs +0 -2
  266. package/dist/fold-LDSORVYE-CnErgTj9.mjs +0 -1
  267. package/dist/grep-3AIAIJVR-02E3dSfi.mjs +0 -1
  268. package/dist/gzip-AQXSGOVS-UkVql__3.mjs +0 -1
  269. package/dist/head-HT2B6D2J-C2sNM7Dv.mjs +0 -1
  270. package/dist/help-VVWX7SA5-CZumUR0P.mjs +0 -1
  271. package/dist/history-J4QRNGRO-rwbd7U40.mjs +0 -1
  272. package/dist/hostname-BK6HG2DE-BQG1bQvh.mjs +0 -1
  273. package/dist/html-to-markdown-TFCECAGV-Db230ZWS.mjs +0 -1
  274. package/dist/init-DX-Cg7hF.mjs +0 -271
  275. package/dist/init-DaWRJoym.mjs +0 -1
  276. package/dist/join-GG2LDHE5-Bc_GxS8t.mjs +0 -1
  277. package/dist/jq-ODXZBPLY-B5VN-dXM.mjs +0 -1
  278. package/dist/ln-4TRFBYAT-oG2zzF3W.mjs +0 -1
  279. package/dist/loader-D7lxInHP.mjs +0 -1
  280. package/dist/ls-KSXFZCWH-BWWIeWvm.mjs +0 -1
  281. package/dist/md5sum-INMIK4DX-lBp2yvEW.mjs +0 -1
  282. package/dist/mkdir-TDEMSB6C-DbpQ_xq6.mjs +0 -1
  283. package/dist/mv-Z6MORUFL-CH8FstC-.mjs +0 -1
  284. package/dist/nl-U5YJDM32-VxSz_iJ4.mjs +0 -1
  285. package/dist/od-VJEF2UR5-BniMheOA.mjs +0 -1
  286. package/dist/paste-7N6AFSDS-C1AAbgf8.mjs +0 -1
  287. package/dist/preview-MhkMMvsI.mjs +0 -1
  288. package/dist/printf-CX64KX2P-DjH-DHsP.mjs +0 -1
  289. package/dist/pwd-D4OZ7N27-VQ3RwUo8.mjs +0 -1
  290. package/dist/readlink-MI4GCHJF-L50-Upms.mjs +0 -1
  291. package/dist/repair-mcp-configs-DisocOil.mjs +0 -2
  292. package/dist/repair-skills-oNUU16Sj.mjs +0 -1
  293. package/dist/rev-XOSYPP45-CwKU0j6Z.mjs +0 -1
  294. package/dist/rg-FOQSCCX3-BrvjgaMQ.mjs +0 -1
  295. package/dist/rm-RTZG23RL-_UcxChNg.mjs +0 -1
  296. package/dist/rmdir-XTQXT7RK-BRaqkv9Z.mjs +0 -1
  297. package/dist/sed-VFTTATXJ-CZsNmySp.mjs +0 -1
  298. package/dist/seq-RN5ZUASB-Cg0b6SeB.mjs +0 -1
  299. package/dist/sha1sum-VJPNLNU6-CAg7QQIj.mjs +0 -1
  300. package/dist/sha256sum-PI32XWXY-CFFtkep9.mjs +0 -1
  301. package/dist/sleep-VZFPZFWA-D3Ph1Gn6.mjs +0 -1
  302. package/dist/sort-DCNRDA7U-BePJiuxU.mjs +0 -1
  303. package/dist/split-SITCSYCZ-COiAX9LF.mjs +0 -1
  304. package/dist/sqlite3-56UMWEY3-DN8JOqf2.mjs +0 -1
  305. package/dist/start-DpTR2AVF.mjs +0 -1
  306. package/dist/stat-BT5A227F-NmZL1hMB.mjs +0 -1
  307. package/dist/strings-7PLOGTPD-CUJSASTo.mjs +0 -1
  308. package/dist/tac-SJGXQ4T2-B-fSXHB1.mjs +0 -1
  309. package/dist/tail-S5ULNTJU-CG1c0Pxf.mjs +0 -1
  310. package/dist/tar-ANUBEFJY-DH18Zmoc.mjs +0 -1
  311. package/dist/tee-O7VXZDCO-D_NgfJcm.mjs +0 -1
  312. package/dist/time-DEUO3QV2-DdyaxseS.mjs +0 -1
  313. package/dist/timeout-VRKMCG72-LxpBVg0M.mjs +0 -1
  314. package/dist/touch-DX2IJOQ4-BdSZnvQi.mjs +0 -1
  315. package/dist/tr-2HXZRDSW-QjngBhOg.mjs +0 -1
  316. package/dist/tree-LYXBS7DC-CsfD1mRM.mjs +0 -1
  317. package/dist/true-WHJNXCHG-DJUeGOw7.mjs +0 -1
  318. package/dist/unexpand-RGTMIGZM-gIXCkWyw.mjs +0 -1
  319. package/dist/uniq-SUNANL47-CiH7i9-p.mjs +0 -1
  320. package/dist/wc-TQB3VNOX-D1U1S7L6.mjs +0 -1
  321. package/dist/which-XZHEH76L-CRVfCXCP.mjs +0 -1
  322. package/dist/whoami-DGKU3D2X-COB3yQf8.mjs +0 -1
  323. package/dist/xan-BXDXYEIB-iFQjU_f2.mjs +0 -1
  324. package/dist/xan-view-ECQUO7AJ-BGX-rpom.mjs +0 -1
  325. package/dist/xargs-I6EZUCYF-CqFBjjSK.mjs +0 -1
  326. package/dist/yq-MJMAR36V-B5nTz8YA.mjs +0 -1
  327. /package/dist/{build-GAD37AZK.mjs → build-5_QDpj2G.mjs} +0 -0
@@ -1,4 +1,4 @@
1
- import"./chunk-R6VWJ2ZL-DSqbA7Rj.mjs";import"./chunk-CWQS3NFK-BQ5SUtd7.mjs";import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as e}from"./chunk-5QMZ5MUS-SLhNX8t9.mjs";import{n as t,t as n}from"./chunk-A5O5YHGN-DQP-O5US.mjs";import{r}from"./chunk-OJDRYQWQ-D4lSWh0K.mjs";import{n as i}from"./chunk-24IMIIXA-_PX4ITYZ.mjs";import{n as a,t as o}from"./chunk-3THT3N7L-DrzOuTpA.mjs";import{t as s}from"./chunk-44UOCSGV-BbZqjKvt.mjs";import{r as c,t as l}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{n as u,t as d}from"./chunk-I57KEIP3-C9JW7Nfp.mjs";import{fileURLToPath as f}from"node:url";import{randomBytes as p}from"node:crypto";import{Worker as m}from"node:worker_threads";var h=1e4,g=6e4,_={name:`python3`,summary:`Execute Python code via CPython Emscripten`,usage:`python3 [OPTIONS] [-c CODE | -m MODULE | FILE] [ARGS...]`,description:[`Execute Python code using CPython compiled to WebAssembly via Emscripten.`,``,`This command runs Python in an isolated environment with access to`,`the virtual filesystem. Standard library modules are available.`],options:[`-c CODE Execute CODE as Python script`,`-m MODULE Run library module as a script`,`--version Show Python version`,`--help Show this help`],examples:[`python3 -c "print(1 + 2)"`,`python3 -c "import sys; print(sys.version)"`,`python3 script.py`,`python3 script.py arg1 arg2`,`echo 'print("hello")' | python3`],notes:[`CPython runs in WebAssembly, so execution may be slower than native Python.`,`Standard library modules are available (no pip install).`,`Maximum execution time is 30 seconds by default.`]};function v(e){let t={code:null,module:null,scriptFile:null,showVersion:!1,scriptArgs:[]};if(e.length===0)return t;let n=e.findIndex(e=>!e.startsWith(`-`)||e===`-`||e===`--`);for(let r=0;r<(n===-1?e.length:n);r++){let n=e[r];if(n===`-c`)return r+1>=e.length?{stdout:``,stderr:`python3: option requires an argument -- 'c'
1
+ import"./chunk-R6VWJ2ZL-DIztW2nG.mjs";import"./chunk-CWQS3NFK-CKoiDb4a.mjs";import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-5QMZ5MUS-BQ6AJ7O6.mjs";import{n as t,t as n}from"./chunk-A5O5YHGN-C4hFXTXp.mjs";import{r}from"./chunk-OJDRYQWQ-XHSNzsVx.mjs";import{n as i}from"./chunk-24IMIIXA-BPYIgkX5.mjs";import{n as a,t as o}from"./chunk-3THT3N7L-DJBUbZXN.mjs";import{t as s}from"./chunk-44UOCSGV-Bldn7atv.mjs";import{r as c,t as l}from"./chunk-74CEPOFO-CExCjuFQ.mjs";import{n as u,t as d}from"./chunk-I57KEIP3-7YwPR338.mjs";import{fileURLToPath as f}from"node:url";import{randomBytes as p}from"node:crypto";import{Worker as m}from"node:worker_threads";var h=1e4,g=6e4,_={name:`python3`,summary:`Execute Python code via CPython Emscripten`,usage:`python3 [OPTIONS] [-c CODE | -m MODULE | FILE] [ARGS...]`,description:[`Execute Python code using CPython compiled to WebAssembly via Emscripten.`,``,`This command runs Python in an isolated environment with access to`,`the virtual filesystem. Standard library modules are available.`],options:[`-c CODE Execute CODE as Python script`,`-m MODULE Run library module as a script`,`--version Show Python version`,`--help Show this help`],examples:[`python3 -c "print(1 + 2)"`,`python3 -c "import sys; print(sys.version)"`,`python3 script.py`,`python3 script.py arg1 arg2`,`echo 'print("hello")' | python3`],notes:[`CPython runs in WebAssembly, so execution may be slower than native Python.`,`Standard library modules are available (no pip install).`,`Maximum execution time is 30 seconds by default.`]};function v(e){let t={code:null,module:null,scriptFile:null,showVersion:!1,scriptArgs:[]};if(e.length===0)return t;let n=e.findIndex(e=>!e.startsWith(`-`)||e===`-`||e===`--`);for(let r=0;r<(n===-1?e.length:n);r++){let n=e[r];if(n===`-c`)return r+1>=e.length?{stdout:``,stderr:`python3: option requires an argument -- 'c'
2
2
  `,exitCode:2}:(t.code=e[r+1],t.scriptArgs=e.slice(r+2),t);if(n===`-m`)return r+1>=e.length?{stdout:``,stderr:`python3: option requires an argument -- 'm'
3
3
  `,exitCode:2}:(t.module=e[r+1],t.scriptArgs=e.slice(r+2),t);if(n===`--version`||n===`-V`)return t.showVersion=!0,t;if(n.startsWith(`-`)&&n!==`-`)return{stdout:``,stderr:`python3: unrecognized option '${n}'
4
4
  `,exitCode:2}}if(n!==-1){let r=e[n];r===`--`?n+1<e.length&&(t.scriptFile=e[n+1],t.scriptArgs=e.slice(n+2)):(t.scriptFile=r,t.scriptArgs=e.slice(n+1))}return t}var y=new WeakMap;function b(e){let t=y.get(e);return t||(t={executionQueue:[],isExecuting:!1},y.set(e,t)),t}var x=f(new URL(`./worker.js`,import.meta.url));function S(){return p(16).toString(`hex`)}function C(e,t){if(!e||typeof e!=`object`)return{success:!1,error:`Malformed worker response`};let n=e;return typeof n.protocolToken!=`string`||n.protocolToken!==t?{success:!1,error:`Malformed worker response: invalid protocol token`}:n.type===`security-violation`?{success:!1,error:`Security violation: ${typeof n.violation?.type==`string`?n.violation.type:`unknown`}`}:typeof n.success==`boolean`?n.success?{success:!0}:{success:!1,error:typeof n.error==`string`&&n.error.length>0?n.error:`Worker execution failed`}:{success:!1,error:`Malformed worker response: missing success flag`}}function w(t){if(t.isExecuting||t.executionQueue.length===0)return;for(;t.executionQueue.length>0&&t.executionQueue[0].canceled;)t.executionQueue.shift();if(t.executionQueue.length===0)return;let n=t.executionQueue.shift();if(!n)return;t.isExecuting=!0;let r;try{r=e.runTrusted(()=>new m(x,{workerData:n.input}))}catch(e){let r=e instanceof Error?e.message:String(e);n.resolve({success:!1,error:o(r)}),t.isExecuting=!1,w(t);return}n.workerRef&&(n.workerRef.current=r);let a=i(n.requireDefenseContext,`python3`,`worker message callback`,e=>{n.resolve(C(e,n.input.protocolToken)),t.isExecuting=!1,r.terminate(),w(t)}),c=i(n.requireDefenseContext,`python3`,`worker error callback`,e=>{let r=o(s(e));n.resolve({success:!1,error:r}),t.isExecuting=!1,w(t)}),l=i(n.requireDefenseContext,`python3`,`worker exit callback`,()=>{t.isExecuting&&(n.resolve({success:!1,error:`Worker exited unexpectedly`}),t.isExecuting=!1,w(t))});r.on(`message`,e=>{try{a(e)}catch(e){let i=e instanceof Error?e.message:String(e);n.resolve({success:!1,error:o(i)}),t.isExecuting=!1,r.terminate(),w(t)}}),r.on(`error`,e=>{try{c(e)}catch(e){let r=e instanceof Error?e.message:String(e);n.resolve({success:!1,error:o(r)}),t.isExecuting=!1,w(t)}}),r.on(`exit`,()=>{try{l()}catch(e){let r=e instanceof Error?e.message:String(e);n.resolve({success:!1,error:o(r)}),t.isExecuting=!1,w(t)}})}async function T(e,a,c,l=[]){let f=u(),p=new d(f,a.fs,a.cwd,`python3`,a.fetch,a.limits?.maxOutputSize??0),m=a.limits?.maxPythonTimeoutMs??h,_=a.fetch?Math.max(m,g):m,v=b(a.fs),y={protocolToken:S(),sharedBuffer:f,pythonCode:e,cwd:a.cwd,env:r(a.env),args:l,scriptPath:c,timeoutMs:_},x={current:null},C=new Promise(e=>{let r={input:y,resolve:()=>{},workerRef:x,requireDefenseContext:a.requireDefenseContext},s=i(a.requireDefenseContext,`python3`,`worker timeout callback`,()=>{x.current?x.current.terminate():r.canceled=!0,e({success:!1,error:`Execution timeout: exceeded ${_}ms limit`})}),c=n(()=>{try{s()}catch(t){e({success:!1,error:o(t instanceof Error?t.message:String(t))})}},_);r.resolve=n=>{t(c),e(n)},v.executionQueue.push(r),w(v)}),[T,E]=await Promise.all([p.run(_).catch(e=>({stdout:``,stderr:`python3: bridge error: ${o(s(e))}
@@ -9,4 +9,4 @@ import"./chunk-R6VWJ2ZL-DSqbA7Rj.mjs";import"./chunk-CWQS3NFK-BQ5SUtd7.mjs";impo
9
9
  `,exitCode:2};try{r=await t.fs.readFile(e),i=n.scriptFile}catch(e){let t=a(e.message);return{stdout:``,stderr:`python3: can't open file '${n.scriptFile}': ${t}
10
10
  `,exitCode:2}}}else if(t.stdin.trim())r=t.stdin,i=`<stdin>`;else return{stdout:``,stderr:`python3: no input provided (use -c CODE, -m MODULE, or provide a script file)
11
11
  `,exitCode:2};return T(r,t,i,n.scriptArgs)}},D={name:`python`,async execute(e,t){return E.execute(e,t)}};export{E as python3Command,D as pythonCommand};
12
- //# sourceMappingURL=python3-AUFTPCU6-CcfVkAVy.mjs.map
12
+ //# sourceMappingURL=python3-AUFTPCU6-8zelkhgh.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-HJWBQKYG-rWCXbrjW.mjs";export{e as readlinkCommand};
@@ -1,2 +1,2 @@
1
- import{n as e,u as t}from"./init-DX-Cg7hF.mjs";import{t as n}from"./is-object-BXWpSxBI.mjs";import{join as r}from"node:path";import{existsSync as i,readFileSync as a}from"node:fs";const o=[[`@inkeep/open-knowledge`,`ui`],[`-y`,`@inkeep/open-knowledge`,`ui`]];function s(t){if(t.runtimeExecutable!==`npx`||!Array.isArray(t.runtimeArgs))return`preserved`;if(c(t.runtimeArgs,e))return`canonical`;for(let e of o)if(c(t.runtimeArgs,e))return`legacy-bare`;return`preserved`}function c(e,t){if(e.length!==t.length)return!1;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function l(e){let o=e.logger??u,c=r(e.projectDir,`.claude`,`launch.json`);if(e.reclaimDisableEnv===`1`)return o({event:`launch-json-repair-skipped`,reason:`reclaim-disabled`}),{outcome:{configPath:c,outcome:`skipped-reclaim-disabled`},repairedCount:0};if(!i(c))return{outcome:{configPath:c,outcome:`no-file`},repairedCount:0};let l;try{let e=a(c,`utf-8`).trim();l=e?JSON.parse(e):{}}catch(e){let t=e instanceof Error?e.message:String(e);return o({event:`launch-json-repair-read-failed`,configPath:c,error:t}),{outcome:{configPath:c,outcome:`read-failed`,error:t},repairedCount:0}}if(!n(l)){let e=`launch.json root is not an object`;return o({event:`launch-json-repair-read-failed`,configPath:c,error:e}),{outcome:{configPath:c,outcome:`read-failed`,error:e},repairedCount:0}}let d=l.configurations;if(!Array.isArray(d))return{outcome:{configPath:c,outcome:`no-entry`},repairedCount:0};let f=d.find(e=>n(e)&&e.name===`open-knowledge-ui`);if(!f)return{outcome:{configPath:c,outcome:`no-entry`},repairedCount:0};let p=s(f);if(p===`canonical`)return{outcome:{configPath:c,outcome:`canonical`},repairedCount:0};if(p===`preserved`)return{outcome:{configPath:c,outcome:`preserved`},repairedCount:0};let m=t(e.projectDir,{mode:`published`});if(m.action===`failed`){let e=m.error??`unknown write failure`;return o({event:`launch-json-repair-write-failed`,configPath:c,error:e}),{outcome:{configPath:c,outcome:`write-failed`,error:e},repairedCount:0}}return o({event:`launch-json-repair-applied`,configPath:c}),{outcome:{configPath:c,outcome:`repaired`},repairedCount:1}}function u(e){process.stderr.write(`${JSON.stringify(e)}\n`)}export{l as repairLaunchJson};
2
- //# sourceMappingURL=repair-launch-json-DIJDH5Tl.mjs.map
1
+ import{n as e,u as t}from"./init-vEhO5tm3.mjs";import{t as n}from"./is-object-Cg453afR.mjs";import{join as r}from"node:path";import{existsSync as i,readFileSync as a}from"node:fs";const o=[[`@inkeep/open-knowledge`,`ui`],[`-y`,`@inkeep/open-knowledge`,`ui`]];function s(t){if(t.runtimeExecutable!==`npx`||!Array.isArray(t.runtimeArgs))return`preserved`;if(c(t.runtimeArgs,e))return`canonical`;for(let e of o)if(c(t.runtimeArgs,e))return`legacy-bare`;return`preserved`}function c(e,t){if(e.length!==t.length)return!1;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function l(e){let o=e.logger??u,c=r(e.projectDir,`.claude`,`launch.json`);if(e.reclaimDisableEnv===`1`)return o({event:`launch-json-repair-skipped`,reason:`reclaim-disabled`}),{outcome:{configPath:c,outcome:`skipped-reclaim-disabled`},repairedCount:0};if(!i(c))return{outcome:{configPath:c,outcome:`no-file`},repairedCount:0};let l;try{let e=a(c,`utf-8`).trim();l=e?JSON.parse(e):{}}catch(e){let t=e instanceof Error?e.message:String(e);return o({event:`launch-json-repair-read-failed`,configPath:c,error:t}),{outcome:{configPath:c,outcome:`read-failed`,error:t},repairedCount:0}}if(!n(l)){let e=`launch.json root is not an object`;return o({event:`launch-json-repair-read-failed`,configPath:c,error:e}),{outcome:{configPath:c,outcome:`read-failed`,error:e},repairedCount:0}}let d=l.configurations;if(!Array.isArray(d))return{outcome:{configPath:c,outcome:`no-entry`},repairedCount:0};let f=d.find(e=>n(e)&&e.name===`open-knowledge-ui`);if(!f)return{outcome:{configPath:c,outcome:`no-entry`},repairedCount:0};let p=s(f);if(p===`canonical`)return{outcome:{configPath:c,outcome:`canonical`},repairedCount:0};if(p===`preserved`)return{outcome:{configPath:c,outcome:`preserved`},repairedCount:0};let m=t(e.projectDir,{mode:`published`});if(m.action===`failed`){let e=m.error??`unknown write failure`;return o({event:`launch-json-repair-write-failed`,configPath:c,error:e}),{outcome:{configPath:c,outcome:`write-failed`,error:e},repairedCount:0}}return o({event:`launch-json-repair-applied`,configPath:c}),{outcome:{configPath:c,outcome:`repaired`},repairedCount:1}}function u(e){process.stderr.write(`${JSON.stringify(e)}\n`)}export{l as repairLaunchJson};
2
+ //# sourceMappingURL=repair-launch-json-R0MDO4C-.mjs.map
@@ -0,0 +1,2 @@
1
+ import{d as e,g as t,m as n,s as r,v as i}from"./init-vEhO5tm3.mjs";import{t as a}from"./mcp-migrate-event-CyH1VVyy.mjs";import{homedir as o}from"node:os";function s(e){let r=e.logger??u,i=e.home??o(),a=[];if(e.reclaimDisableEnv===`1`)return r({event:`mcp-config-repair-skipped`,reason:`reclaim-disabled`}),{outcomes:a,repairedCount:0};for(let o of n){let n=t[o],s=c(()=>n.configPath(``,i));if(s!==null&&a.push(l({scope:`user`,editorId:o,target:n,home:i,cwd:``,configPath:s,configPathOverride:void 0,logger:r})),n.projectConfigPath){let t=n.projectConfigPath,i=c(()=>t(e.projectDir));i!==null&&a.push(l({scope:`project`,editorId:o,target:n,home:void 0,cwd:e.projectDir,configPath:i,configPathOverride:i,logger:r}))}}return{outcomes:a,repairedCount:a.filter(e=>e.outcome===`repaired`).length}}function c(e){try{return e()}catch{return null}}function l(t){let n={scope:t.scope,editorId:t.editorId,configPath:t.configPath},o=r(t.target,t.cwd,t.home,t.configPathOverride);if(o===null)return{...n,outcome:`no-entry`};if(i(o))return{...n,outcome:`canonical`};t.logger(a({scope:t.scope,surface:`cli-repair`,editorId:t.editorId,configPath:t.configPath,priorEntry:o}));let s=e(t.target,t.cwd,{mode:`published`,skipAvailabilityCheck:!0},t.home,t.configPathOverride);if(s.action===`failed`){let e=s.error??`unknown write failure`;return t.logger({event:`mcp-config-repair-write-failed`,scope:t.scope,editorId:t.editorId,configPath:t.configPath,error:e}),{...n,outcome:`write-failed`,error:e}}return{...n,outcome:`repaired`}}function u(e){process.stderr.write(`${JSON.stringify(e)}\n`)}export{s as repairMcpConfigs};
2
+ //# sourceMappingURL=repair-mcp-configs-DrKyEaqS.mjs.map
@@ -0,0 +1 @@
1
+ import{t as e}from"./repair-skills-ClqjW2ic.mjs";export{e as repairSkills};
@@ -1,3 +1,3 @@
1
- import{t as e}from"./esm-CEs3LWY3.mjs";import{Gn as t,Ln as n,Vn as r,Yr as i,Zn as a}from"./dist-DikIN25T.mjs";import{t as o}from"./write-project-skill-Bh1t5k11.mjs";import{dirname as s,join as c,resolve as l}from"node:path";import{existsSync as u,mkdirSync as d,readFileSync as f,readdirSync as p,rmSync as m,statSync as h,writeFileSync as g}from"node:fs";import{homedir as _}from"node:os";const v=[{hostDir:`.claude`,editorId:`claude`},{hostDir:`.cursor`,editorId:`cursor`},{hostDir:`.agents`,editorId:`codex`}],y=`open-knowledge-discovery`,b=[`.agents`,`skills`,y],x={existsSync:e=>u(e),isDirectory:e=>{try{return h(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw e}},readdirSync:e=>p(e),readFileSync:e=>f(e),writeFileSync:(e,t)=>{g(e,t)},mkdirSync:(e,t)=>{d(e,t)},rmSync:(e,t)=>{m(e,t)}},S={resolveProjectBundledSkillDir:()=>a(`project`,{checkDesktop:!1}),resolveDiscoveryBundledSkillDir:()=>a(`discovery`,{checkDesktop:!1}),readBundledVersion:()=>n(),readRecordedVersion:e=>r(e,`cli-hosts`),writeRecordedVersion:(e,t)=>i(e,`cli-hosts`,t,`cli-start`),recordEvent:e=>t(e)};function C(e){process.stderr.write(`${JSON.stringify(e)}\n`)}function w(e,t,n){n.rmSync(t,{recursive:!0,force:!0}),n.mkdirSync(s(t),{recursive:!0}),T(e,t,n)}function T(e,t,n){n.mkdirSync(t,{recursive:!0});for(let r of n.readdirSync(e)){let i=c(e,r),a=c(t,r);n.isDirectory(i)?T(i,a,n):n.writeFileSync(a,n.readFileSync(i))}}function E(e,t,n,r){let i;try{i=t.resolveProjectBundledSkillDir()}catch(e){return r({event:`project-skill-reclaim-bundle-missing`,scope:`project`,error:e instanceof Error?e.message:String(e)}),{outcome:`skipped`,reason:`bundle-missing`}}let a=[];for(let t of v){let s=c(e,t.hostDir,`skills`,`open-knowledge`),l=c(s,`SKILL.md`);if(!n.existsSync(l)){a.push({editorId:t.editorId,hostDir:t.hostDir,path:s,outcome:`no-token`}),r({event:`project-skill-reclaim-no-token`,scope:`project`,editorId:t.editorId,path:s});continue}try{o(s,e),w(i,s,n),a.push({editorId:t.editorId,hostDir:t.hostDir,path:s,outcome:`reclaimed`}),r({event:`project-skill-reclaim-reclaimed`,scope:`project`,editorId:t.editorId,path:s})}catch(e){let n=e instanceof Error?e.message:String(e);a.push({editorId:t.editorId,hostDir:t.hostDir,path:s,outcome:`failed`,error:n}),r({event:`project-skill-reclaim-failed`,scope:`project`,editorId:t.editorId,path:s,error:n})}}return{outcome:`done`,entries:a}}async function D(e,t,n,r){let i=e=>{t.recordEvent(e).catch(()=>{})},a=()=>new Date().toISOString(),o;try{o=await t.readBundledVersion()}catch(e){let t=e instanceof Error?e.message:String(e);return r({event:`user-skill-reclaim-version-read-failed`,scope:`user`,error:t}),i({ts:a(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:`failed`,reason:`version-read-failed:${t}`}),{outcome:`skipped`,reason:`version-read-failed`}}let s;try{s=await t.readRecordedVersion(e)}catch(e){r({event:`user-skill-reclaim-version-read-error`,scope:`user`,error:e instanceof Error?e.message:String(e)}),s=null}if(s!==null&&s===o)return r({event:`user-skill-reclaim-skipped-version-current`,scope:`user`,version:o}),{outcome:`skipped`,reason:`version-current`};let l;try{l=t.resolveDiscoveryBundledSkillDir()}catch(e){let t=e instanceof Error?e.message:String(e);return r({event:`user-skill-reclaim-bundle-missing`,scope:`user`,error:t}),i({ts:a(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:`failed`,reason:`bundle-missing:${t}`}),{outcome:`skipped`,reason:`bundle-missing`}}let u=[],d=c(e,...b),f=n.existsSync(d);try{w(l,d,n),u.push({kind:`central`,path:d,outcome:f?`overwritten`:`written`}),r({event:`user-skill-reclaim-central-written`,scope:`user`,path:d,preexisting:f,version:o})}catch(e){let t=e instanceof Error?e.message:String(e);u.push({kind:`central`,path:d,outcome:`failed`,error:t}),r({event:`user-skill-reclaim-central-failed`,scope:`user`,path:d,error:t})}for(let t of v){let i=c(e,t.hostDir),a=c(i,`skills`,y);if(a===d){u.push({kind:`host`,editorId:t.editorId,hostDir:t.hostDir,path:a,outcome:`skipped-collapsed-with-central`});continue}if(!n.existsSync(i)){u.push({kind:`host`,editorId:t.editorId,hostDir:t.hostDir,path:a,outcome:`skipped-host-absent`});continue}let s=n.existsSync(a);try{w(l,a,n),u.push({kind:`host`,editorId:t.editorId,hostDir:t.hostDir,path:a,outcome:s?`overwritten`:`written`}),r({event:`user-skill-reclaim-host-written`,scope:`user`,editorId:t.editorId,hostDir:t.hostDir,path:a,preexisting:s,version:o})}catch(e){let n=e instanceof Error?e.message:String(e);u.push({kind:`host`,editorId:t.editorId,hostDir:t.hostDir,path:a,outcome:`failed`,error:n}),r({event:`user-skill-reclaim-host-failed`,scope:`user`,editorId:t.editorId,hostDir:t.hostDir,path:a,error:n})}}let p=u.find(e=>e.kind===`central`);if(p?.outcome===`written`||p?.outcome===`overwritten`){let n=null;try{await t.writeRecordedVersion(e,o),r({event:`user-skill-reclaim-version-recorded`,scope:`user`,version:o})}catch(e){n=e instanceof Error?e.message:String(e),r({event:`user-skill-reclaim-version-record-failed`,scope:`user`,version:o,error:n})}i({ts:a(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:n===null?`installed`:`failed`,version:o,...n===null?{}:{reason:`state-write-failed:${n}`}})}else{let e=u.some(e=>e.kind===`host`&&e.outcome===`failed`);i({ts:a(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:`failed`,version:o,reason:e?`all-writes-failed`:`no-hosts-installed`})}return{outcome:`done`,version:o,entries:u}}async function O(e){let t=e.logger??C,n=e.fs??x,r=e.home??_(),i={...S,...e.deps};return e.reclaimDisableEnv===`1`?(t({event:`skill-repair-skipped`,reason:`reclaim-disabled`}),{status:`skipped`,reason:`reclaim-disabled`}):{status:`done`,project:E(e.projectDir,i,n,t),user:await D(r,i,n,t)}}function k(e){return e.status===`skipped`?e.reason===`reclaim-disabled`?0:1:e.project.outcome===`skipped`||e.user.outcome===`skipped`&&e.user.reason!==`version-current`||e.project.entries.some(e=>e.outcome===`failed`)||e.user.outcome===`done`&&e.user.entries.some(e=>e.outcome===`failed`)?1:0}function A(e){if(e.status===`skipped`)return`Skipped: ${e.reason}`;let t=[`Skill reclaim complete.`];if(e.project.outcome===`done`){let n=e.project.entries.filter(e=>e.outcome===`reclaimed`).length,r=e.project.entries.filter(e=>e.outcome===`no-token`).length,i=e.project.entries.filter(e=>e.outcome===`failed`).length;t.push(` Project: ${n} reclaimed, ${r} no-token, ${i} failed.`)}else t.push(` Project: skipped (${e.project.reason}).`);if(e.user.outcome===`done`){let n=e.user.entries.filter(e=>e.outcome===`written`||e.outcome===`overwritten`).length,r=e.user.entries.filter(e=>e.outcome===`skipped-host-absent`||e.outcome===`skipped-collapsed-with-central`).length,i=e.user.entries.filter(e=>e.outcome===`failed`).length;t.push(` User (${e.user.version}): ${n} written, ${r} skipped, ${i} failed.`)}else t.push(` User: skipped (${e.user.reason}).`);return t.join(`
1
+ import{t as e}from"./esm-CEs3LWY3.mjs";import{Gn as t,Ln as n,Vn as r,Yr as i,Zn as a}from"./dist-BWAKwlW9.mjs";import{t as o}from"./write-project-skill-C3aYUp9w.mjs";import{dirname as s,join as c,resolve as l}from"node:path";import{existsSync as u,mkdirSync as d,readFileSync as f,readdirSync as p,rmSync as m,statSync as h,writeFileSync as g}from"node:fs";import{homedir as _}from"node:os";const v=[{hostDir:`.claude`,editorId:`claude`},{hostDir:`.cursor`,editorId:`cursor`},{hostDir:`.agents`,editorId:`codex`}],y=`open-knowledge-discovery`,b=[`.agents`,`skills`,y],x={existsSync:e=>u(e),isDirectory:e=>{try{return h(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw e}},readdirSync:e=>p(e),readFileSync:e=>f(e),writeFileSync:(e,t)=>{g(e,t)},mkdirSync:(e,t)=>{d(e,t)},rmSync:(e,t)=>{m(e,t)}},S={resolveProjectBundledSkillDir:()=>a(`project`,{checkDesktop:!1}),resolveDiscoveryBundledSkillDir:()=>a(`discovery`,{checkDesktop:!1}),readBundledVersion:()=>n(),readRecordedVersion:e=>r(e,`cli-hosts`),writeRecordedVersion:(e,t)=>i(e,`cli-hosts`,t,`cli-start`),recordEvent:e=>t(e)};function C(e){process.stderr.write(`${JSON.stringify(e)}\n`)}function w(e,t,n){n.rmSync(t,{recursive:!0,force:!0}),n.mkdirSync(s(t),{recursive:!0}),T(e,t,n)}function T(e,t,n){n.mkdirSync(t,{recursive:!0});for(let r of n.readdirSync(e)){let i=c(e,r),a=c(t,r);n.isDirectory(i)?T(i,a,n):n.writeFileSync(a,n.readFileSync(i))}}function E(e,t,n,r){let i;try{i=t.resolveProjectBundledSkillDir()}catch(e){return r({event:`project-skill-reclaim-bundle-missing`,scope:`project`,error:e instanceof Error?e.message:String(e)}),{outcome:`skipped`,reason:`bundle-missing`}}let a=[];for(let t of v){let s=c(e,t.hostDir,`skills`,`open-knowledge`),l=c(s,`SKILL.md`);if(!n.existsSync(l)){a.push({editorId:t.editorId,hostDir:t.hostDir,path:s,outcome:`no-token`}),r({event:`project-skill-reclaim-no-token`,scope:`project`,editorId:t.editorId,path:s});continue}try{o(s,e),w(i,s,n),a.push({editorId:t.editorId,hostDir:t.hostDir,path:s,outcome:`reclaimed`}),r({event:`project-skill-reclaim-reclaimed`,scope:`project`,editorId:t.editorId,path:s})}catch(e){let n=e instanceof Error?e.message:String(e);a.push({editorId:t.editorId,hostDir:t.hostDir,path:s,outcome:`failed`,error:n}),r({event:`project-skill-reclaim-failed`,scope:`project`,editorId:t.editorId,path:s,error:n})}}return{outcome:`done`,entries:a}}async function D(e,t,n,r){let i=e=>{t.recordEvent(e).catch(()=>{})},a=()=>new Date().toISOString(),o;try{o=await t.readBundledVersion()}catch(e){let t=e instanceof Error?e.message:String(e);return r({event:`user-skill-reclaim-version-read-failed`,scope:`user`,error:t}),i({ts:a(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:`failed`,reason:`version-read-failed:${t}`}),{outcome:`skipped`,reason:`version-read-failed`}}let s;try{s=await t.readRecordedVersion(e)}catch(e){r({event:`user-skill-reclaim-version-read-error`,scope:`user`,error:e instanceof Error?e.message:String(e)}),s=null}if(s!==null&&s===o)return r({event:`user-skill-reclaim-skipped-version-current`,scope:`user`,version:o}),{outcome:`skipped`,reason:`version-current`};let l;try{l=t.resolveDiscoveryBundledSkillDir()}catch(e){let t=e instanceof Error?e.message:String(e);return r({event:`user-skill-reclaim-bundle-missing`,scope:`user`,error:t}),i({ts:a(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:`failed`,reason:`bundle-missing:${t}`}),{outcome:`skipped`,reason:`bundle-missing`}}let u=[],d=c(e,...b),f=n.existsSync(d);try{w(l,d,n),u.push({kind:`central`,path:d,outcome:f?`overwritten`:`written`}),r({event:`user-skill-reclaim-central-written`,scope:`user`,path:d,preexisting:f,version:o})}catch(e){let t=e instanceof Error?e.message:String(e);u.push({kind:`central`,path:d,outcome:`failed`,error:t}),r({event:`user-skill-reclaim-central-failed`,scope:`user`,path:d,error:t})}for(let t of v){let i=c(e,t.hostDir),a=c(i,`skills`,y);if(a===d){u.push({kind:`host`,editorId:t.editorId,hostDir:t.hostDir,path:a,outcome:`skipped-collapsed-with-central`});continue}if(!n.existsSync(i)){u.push({kind:`host`,editorId:t.editorId,hostDir:t.hostDir,path:a,outcome:`skipped-host-absent`});continue}let s=n.existsSync(a);try{w(l,a,n),u.push({kind:`host`,editorId:t.editorId,hostDir:t.hostDir,path:a,outcome:s?`overwritten`:`written`}),r({event:`user-skill-reclaim-host-written`,scope:`user`,editorId:t.editorId,hostDir:t.hostDir,path:a,preexisting:s,version:o})}catch(e){let n=e instanceof Error?e.message:String(e);u.push({kind:`host`,editorId:t.editorId,hostDir:t.hostDir,path:a,outcome:`failed`,error:n}),r({event:`user-skill-reclaim-host-failed`,scope:`user`,editorId:t.editorId,hostDir:t.hostDir,path:a,error:n})}}let p=u.find(e=>e.kind===`central`);if(p?.outcome===`written`||p?.outcome===`overwritten`){let n=null;try{await t.writeRecordedVersion(e,o),r({event:`user-skill-reclaim-version-recorded`,scope:`user`,version:o})}catch(e){n=e instanceof Error?e.message:String(e),r({event:`user-skill-reclaim-version-record-failed`,scope:`user`,version:o,error:n})}i({ts:a(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:n===null?`installed`:`failed`,version:o,...n===null?{}:{reason:`state-write-failed:${n}`}})}else{let e=u.some(e=>e.kind===`host`&&e.outcome===`failed`);i({ts:a(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:`failed`,version:o,reason:e?`all-writes-failed`:`no-hosts-installed`})}return{outcome:`done`,version:o,entries:u}}async function O(e){let t=e.logger??C,n=e.fs??x,r=e.home??_(),i={...S,...e.deps};return e.reclaimDisableEnv===`1`?(t({event:`skill-repair-skipped`,reason:`reclaim-disabled`}),{status:`skipped`,reason:`reclaim-disabled`}):{status:`done`,project:E(e.projectDir,i,n,t),user:await D(r,i,n,t)}}function k(e){return e.status===`skipped`?e.reason===`reclaim-disabled`?0:1:e.project.outcome===`skipped`||e.user.outcome===`skipped`&&e.user.reason!==`version-current`||e.project.entries.some(e=>e.outcome===`failed`)||e.user.outcome===`done`&&e.user.entries.some(e=>e.outcome===`failed`)?1:0}function A(e){if(e.status===`skipped`)return`Skipped: ${e.reason}`;let t=[`Skill reclaim complete.`];if(e.project.outcome===`done`){let n=e.project.entries.filter(e=>e.outcome===`reclaimed`).length,r=e.project.entries.filter(e=>e.outcome===`no-token`).length,i=e.project.entries.filter(e=>e.outcome===`failed`).length;t.push(` Project: ${n} reclaimed, ${r} no-token, ${i} failed.`)}else t.push(` Project: skipped (${e.project.reason}).`);if(e.user.outcome===`done`){let n=e.user.entries.filter(e=>e.outcome===`written`||e.outcome===`overwritten`).length,r=e.user.entries.filter(e=>e.outcome===`skipped-host-absent`||e.outcome===`skipped-collapsed-with-central`).length,i=e.user.entries.filter(e=>e.outcome===`failed`).length;t.push(` User (${e.user.version}): ${n} written, ${r} skipped, ${i} failed.`)}else t.push(` User: skipped (${e.user.reason}).`);return t.join(`
2
2
  `)}function j(){return new e(`repair-skills`).description("Refresh bundled SKILL.md files for installed AI editors (project-local + user-global). Runs automatically during `ok start`; this command forces an explicit sweep.").action(async()=>{let e=await O({projectDir:l(process.cwd()),reclaimDisableEnv:process.env.OK_RECLAIM_DISABLE??null});process.stdout.write(`${A(e)}\n`),process.exitCode=k(e)})}export{j as n,O as t};
3
- //# sourceMappingURL=repair-skills-B0q960oj.mjs.map
3
+ //# sourceMappingURL=repair-skills-ClqjW2ic.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-QCDB2VPH-B7sObey-.mjs";export{e as rev};
@@ -0,0 +1 @@
1
+ import"./chunk-YNYSPYQ5-DzToRSq3.mjs";import"./chunk-DXB73IDG-DiBHw8JN.mjs";import"./chunk-7TSDKFEO-CVXHdZlP.mjs";import"./chunk-VLGZJRPG-BdCxuGR9.mjs";import{t as e}from"./chunk-NYQYO467-DRNkyF-U.mjs";export{e as rgCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-MIZPJHVH-DRUAnovn.mjs";export{e as rmCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-OCS6LSEM-B8tIhL1k.mjs";export{e as rmdirCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-YNYSPYQ5-DzToRSq3.mjs";import"./chunk-DXB73IDG-DiBHw8JN.mjs";import"./chunk-5QMZ5MUS-BQ6AJ7O6.mjs";import"./chunk-24IMIIXA-BPYIgkX5.mjs";import{t as e}from"./chunk-OL3S66CO-DAKw4RBb.mjs";export{e as sedCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-A7A2DBEE-Cz9e5Bhr.mjs";export{e as seqCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-XKQRETAK--OBLek3Q.mjs";export{e as sha1sumCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-5V6VZH6T-D7bOa6u8.mjs";export{e as sha256sumCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import"./chunk-5QMZ5MUS-BQ6AJ7O6.mjs";import"./chunk-A5O5YHGN-C4hFXTXp.mjs";import{n as e}from"./chunk-GOV5EKKI-21xKIzGR.mjs";export{e as sleepCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-KMEYNNUA-CDMPzUOg.mjs";export{e as sortCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-MYE6AGBJ-IJhb8Pnd.mjs";export{e as split};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import"./chunk-5QMZ5MUS-BQ6AJ7O6.mjs";import"./chunk-A5O5YHGN-C4hFXTXp.mjs";import"./chunk-24IMIIXA-BPYIgkX5.mjs";import{t as e}from"./chunk-HWBSOZZR-uOggqK2F.mjs";export{e as sqlite3Command};
@@ -1,2 +1,2 @@
1
- import"./gh-detect-DaEGWQM-.mjs";import{d as e,g as t,u as n}from"./init-DX-Cg7hF.mjs";import"./loader-0yiiW-5-.mjs";import"./preview-Cm1-EGf1.mjs";import{n as r}from"./write-project-skill-Bh1t5k11.mjs";import{dirname as i,isAbsolute as a,join as o,relative as s,resolve as c}from"node:path";import{statSync as l}from"node:fs";import{readFile as u,realpath as d}from"node:fs/promises";function f(e){return e.replace(/:\d+$/,``)}function p(e){let t=e.trim();if(!t)return null;{let e=/^https?:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`https`,hostname:f(e[1]),owner:e[2],name:e[3]}}{let e=/^ssh:\/\/(?:[\w.-]+@)?([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`ssh`,hostname:f(e[1]),owner:e[2],name:e[3]}}{let e=/^git:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:f(e[1]),owner:e[2],name:e[3]}}{let e=/^(?:[\w.-]+@)?([\w.-]+):([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?$/.exec(t);if(e?.[1].includes(`.`)||e&&t.startsWith(`git@`))return{protocol:`ssh`,hostname:e[1],owner:e[2],name:e[3]}}{let e=/^git:([\w.-]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:e[1],owner:e[2],name:e[3]}}if(!t.includes(`://`)&&!t.includes(`@`)&&!t.startsWith(`/`)){let e=/^([\w.-]+)\/([\w.\-~%]+?)(?:\.git)?$/.exec(t);if(e)return{protocol:`https`,hostname:`github.com`,owner:e[1],name:e[2]}}return null}function m(e){let t;try{t=new URL(e)}catch{return null}if(t.hostname!==`github.com`&&t.hostname!==`www.github.com`)return null;let n=t.pathname.split(`/`).filter(e=>e.length>0);if(n.length<5||n[2]!==`blob`)return null;let r,i,a,o;try{r=decodeURIComponent(n[0]),i=decodeURIComponent(n[1]),a=decodeURIComponent(n[3]),o=n.slice(4).map(e=>decodeURIComponent(e))}catch{return null}return!r||!i||!a||o.length===0||o.some(e=>e.length===0)?null:{owner:r,repo:i,branch:a,path:o.join(`/`)}}async function h(e,t){let n,r;try{n=await d(c(e)),r=await d(c(i(e)))}catch{return{kind:`not-git`}}if(!_(n,r))return{kind:`symlink-escape`};let s=o(n,`.git`),f;try{f=l(s)}catch{return{kind:`not-git`}}let m;if(f.isDirectory()){let e;try{e=await d(s)}catch{return{kind:`not-git`}}if(!_(e,n))return{kind:`symlink-escape`};m=e}else if(f.isFile()){let e;try{e=await u(s,`utf-8`)}catch{return{kind:`not-git`}}let t=/^gitdir:\s*(.+)$/m.exec(e.trim());if(!t)return{kind:`not-git`};let r=t[1].trim(),i=a(r)?r:c(n,r);try{m=await d(i)}catch{return{kind:`not-git`}}}else return{kind:`not-git`};let h=o(await g(m),`config`),v;try{v=await u(h,`utf-8`)}catch{return{kind:`not-git`}}let b=y(v);if(b===null)return{kind:`no-origin`};let x=p(b);if(x===null||x.hostname!==`github.com`)return{kind:`non-github`};let S=x.owner.toLowerCase()===t.owner.toLowerCase(),C=x.name.toLowerCase()===t.repo.toLowerCase();return!S||!C?{kind:`wrong-repo`,actualOwner:x.owner,actualRepo:x.name}:{kind:`ok`,gitRemoteUrl:`https://github.com/${x.owner}/${x.name}.git`}}async function g(e){let t;try{t=(await u(o(e,`commondir`),`utf-8`)).trim()}catch{return e}if(t.length===0)return e;let n=a(t)?t:c(e,t);try{return await d(n)}catch{return n}}function _(e,t){if(e===t)return!0;let n=s(t,e);return n.length>0&&!n.startsWith(`..`)&&!a(n)}function v(e){let t=e.indexOf(`#`),n=e.indexOf(`;`),r=-1;return t>=0&&n>=0?r=Math.min(t,n):t>=0?r=t:n>=0&&(r=n),(r===-1?e:e.slice(0,r)).trim()}function y(e){let t=!1;for(let n of e.split(/\r?\n/)){let e=v(n);if(e.length===0)continue;if(e.startsWith(`[`)){t=/^\[\s*remote\s+["']origin["']\s*\]$/.test(e);continue}if(!t)continue;let r=/^url\s*=\s*(.+)$/.exec(e);if(r)return b(r[1])}return null}function b(e){let t=e.trim();return t.startsWith(`"`)&&t.endsWith(`"`)||t.startsWith(`'`)&&t.endsWith(`'`)?t.slice(1,-1):t}const x=[{id:`mcp-config`,write(t,n,r){let i=t.projectConfigPath?.(n);if(!i)return{integration:`mcp-config`,editorId:t.id,action:`skipped-unsupported`};try{let a=e(t,n,r,void 0,i);return a.action===`written`||a.action===`overwritten`?{integration:`mcp-config`,editorId:t.id,action:a.action,path:a.configPath}:a.action===`failed`?{integration:`mcp-config`,editorId:t.id,action:`failed`,path:a.configPath,error:a.error??`unknown failure`}:{integration:`mcp-config`,editorId:t.id,action:`failed`,path:a.configPath,error:`unexpected project-scope action: ${a.action}`}}catch(e){return{integration:`mcp-config`,editorId:t.id,action:`failed`,path:i,error:e instanceof Error?e.message:String(e)}}}},{id:`project-skill`,write(e,t,n){try{let n=r(e,t);return{integration:`project-skill`,editorId:e.id,action:n.action,...n.path?{path:n.path}:{},...n.error?{error:n.error}:{}}}catch(t){return{integration:`project-skill`,editorId:e.id,action:`failed`,error:t instanceof Error?t.message:String(t)}}}}];function S(e,n,r={},i=x){let a=[];for(let o of n){let n=t[o];for(let t of i)a.push(t.write(n,e,r))}return a}function C(e,t,r={}){return{integrations:S(e,t,r),claudeLaunchJson:t.includes(`claude`)?n(e,r):void 0}}export{p as i,h as n,m as r,C as t};
2
- //# sourceMappingURL=src-Q5deioVX.mjs.map
1
+ import"./gh-detect-CSW5IRNM.mjs";import{d as e,g as t,u as n}from"./init-vEhO5tm3.mjs";import"./loader-DUSa9hJG.mjs";import"./preview-H36YGxZa.mjs";import{n as r}from"./write-project-skill-C3aYUp9w.mjs";import{dirname as i,isAbsolute as a,join as o,relative as s,resolve as c}from"node:path";import{statSync as l}from"node:fs";import{readFile as u,realpath as d}from"node:fs/promises";function f(e){return e.replace(/:\d+$/,``)}function p(e){let t=e.trim();if(!t)return null;{let e=/^https?:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`https`,hostname:f(e[1]),owner:e[2],name:e[3]}}{let e=/^ssh:\/\/(?:[\w.-]+@)?([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`ssh`,hostname:f(e[1]),owner:e[2],name:e[3]}}{let e=/^git:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:f(e[1]),owner:e[2],name:e[3]}}{let e=/^(?:[\w.-]+@)?([\w.-]+):([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?$/.exec(t);if(e?.[1].includes(`.`)||e&&t.startsWith(`git@`))return{protocol:`ssh`,hostname:e[1],owner:e[2],name:e[3]}}{let e=/^git:([\w.-]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:e[1],owner:e[2],name:e[3]}}if(!t.includes(`://`)&&!t.includes(`@`)&&!t.startsWith(`/`)){let e=/^([\w.-]+)\/([\w.\-~%]+?)(?:\.git)?$/.exec(t);if(e)return{protocol:`https`,hostname:`github.com`,owner:e[1],name:e[2]}}return null}function m(e){let t;try{t=new URL(e)}catch{return null}if(t.hostname!==`github.com`&&t.hostname!==`www.github.com`)return null;let n=t.pathname.split(`/`).filter(e=>e.length>0);if(n.length<5||n[2]!==`blob`)return null;let r,i,a,o;try{r=decodeURIComponent(n[0]),i=decodeURIComponent(n[1]),a=decodeURIComponent(n[3]),o=n.slice(4).map(e=>decodeURIComponent(e))}catch{return null}return!r||!i||!a||o.length===0||o.some(e=>e.length===0)?null:{owner:r,repo:i,branch:a,path:o.join(`/`)}}async function h(e,t){let n,r;try{n=await d(c(e)),r=await d(c(i(e)))}catch{return{kind:`not-git`}}if(!_(n,r))return{kind:`symlink-escape`};let s=o(n,`.git`),f;try{f=l(s)}catch{return{kind:`not-git`}}let m;if(f.isDirectory()){let e;try{e=await d(s)}catch{return{kind:`not-git`}}if(!_(e,n))return{kind:`symlink-escape`};m=e}else if(f.isFile()){let e;try{e=await u(s,`utf-8`)}catch{return{kind:`not-git`}}let t=/^gitdir:\s*(.+)$/m.exec(e.trim());if(!t)return{kind:`not-git`};let r=t[1].trim(),i=a(r)?r:c(n,r);try{m=await d(i)}catch{return{kind:`not-git`}}}else return{kind:`not-git`};let h=o(await g(m),`config`),v;try{v=await u(h,`utf-8`)}catch{return{kind:`not-git`}}let b=y(v);if(b===null)return{kind:`no-origin`};let x=p(b);if(x===null||x.hostname!==`github.com`)return{kind:`non-github`};let S=x.owner.toLowerCase()===t.owner.toLowerCase(),C=x.name.toLowerCase()===t.repo.toLowerCase();return!S||!C?{kind:`wrong-repo`,actualOwner:x.owner,actualRepo:x.name}:{kind:`ok`,gitRemoteUrl:`https://github.com/${x.owner}/${x.name}.git`}}async function g(e){let t;try{t=(await u(o(e,`commondir`),`utf-8`)).trim()}catch{return e}if(t.length===0)return e;let n=a(t)?t:c(e,t);try{return await d(n)}catch{return n}}function _(e,t){if(e===t)return!0;let n=s(t,e);return n.length>0&&!n.startsWith(`..`)&&!a(n)}function v(e){let t=e.indexOf(`#`),n=e.indexOf(`;`),r=-1;return t>=0&&n>=0?r=Math.min(t,n):t>=0?r=t:n>=0&&(r=n),(r===-1?e:e.slice(0,r)).trim()}function y(e){let t=!1;for(let n of e.split(/\r?\n/)){let e=v(n);if(e.length===0)continue;if(e.startsWith(`[`)){t=/^\[\s*remote\s+["']origin["']\s*\]$/.test(e);continue}if(!t)continue;let r=/^url\s*=\s*(.+)$/.exec(e);if(r)return b(r[1])}return null}function b(e){let t=e.trim();return t.startsWith(`"`)&&t.endsWith(`"`)||t.startsWith(`'`)&&t.endsWith(`'`)?t.slice(1,-1):t}const x=[{id:`mcp-config`,write(t,n,r){let i=t.projectConfigPath?.(n);if(!i)return{integration:`mcp-config`,editorId:t.id,action:`skipped-unsupported`};try{let a=e(t,n,r,void 0,i);return a.action===`written`||a.action===`overwritten`?{integration:`mcp-config`,editorId:t.id,action:a.action,path:a.configPath}:a.action===`failed`?{integration:`mcp-config`,editorId:t.id,action:`failed`,path:a.configPath,error:a.error??`unknown failure`}:{integration:`mcp-config`,editorId:t.id,action:`failed`,path:a.configPath,error:`unexpected project-scope action: ${a.action}`}}catch(e){return{integration:`mcp-config`,editorId:t.id,action:`failed`,path:i,error:e instanceof Error?e.message:String(e)}}}},{id:`project-skill`,write(e,t,n){try{let n=r(e,t);return{integration:`project-skill`,editorId:e.id,action:n.action,...n.path?{path:n.path}:{},...n.error?{error:n.error}:{}}}catch(t){return{integration:`project-skill`,editorId:e.id,action:`failed`,error:t instanceof Error?t.message:String(t)}}}}];function S(e,n,r={},i=x){let a=[];for(let o of n){let n=t[o];for(let t of i)a.push(t.write(n,e,r))}return a}function C(e,t,r={}){return{integrations:S(e,t,r),claudeLaunchJson:t.includes(`claude`)?n(e,r):void 0}}export{p as i,h as n,m as r,C as t};
2
+ //# sourceMappingURL=src-J8FSbKHH.mjs.map
@@ -1,3 +1,3 @@
1
- import{n as e,t}from"./esm-CEs3LWY3.mjs";import{Si as n,hi as r,yn as i}from"./dist-DikIN25T.mjs";import{i as a,t as o}from"./gh-detect-DaEGWQM-.mjs";import{n as s}from"./constants-EVa8rJ0p.mjs";import{spawn as c}from"node:child_process";import{basename as l,join as u}from"node:path";import{closeSync as d,existsSync as f,mkdirSync as p,openSync as m,statSync as h}from"node:fs";import{homedir as g}from"node:os";import{setTimeout as _}from"node:timers/promises";const v=`Open Knowledge.app`,y=`/Applications/${v}`;function b(){return{platform:process.platform,env:process.env,execPath:process.execPath,isTTY:process.stdout.isTTY,statSync:e=>{try{return h(e,{throwIfNoEntry:!1})??null}catch{return null}}}}function x(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`){let t=/(.+?\.app)\/Contents\/MacOS\//.exec(e.execPath);if(t?.[1])return t[1]}if(S(e,y))return y;let t=u(e.homeDir??g(),`Applications`,v);return S(e,t)?t:null}function S(e,t){try{let n=u(t,`Contents`,`MacOS`,`Open Knowledge`),r=e.statSync(n);return r&&typeof r.isFile==`function`?r.isFile():!1}catch{return!1}}function C(e){if(e.env.OK_FORCE_BROWSER===`1`)return{available:!1,reason:`force-browser`};if(e.platform!==`darwin`)return{available:!1,reason:`darwin-only`};let t;try{t=x(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.env.SSH_CONNECTION||e.env.SSH_TTY?{available:!1,reason:`headless`,bundlePath:t}:{available:!0,reason:`available`,bundlePath:t}:{available:!1,reason:`no-bundle`}}function w(e){(e.log??(e=>console.error(e)))("Launching Open Knowledge desktop (use `ok start` for the browser server, or `OK_FORCE_BROWSER=1` to always skip)");let t={...process.env};delete t.ELECTRON_RUN_AS_NODE,e.spawn(`open`,[`-b`,`com.inkeep.open-knowledge`],{detached:!0,stdio:`ignore`,env:t}).unref()}function T(e=`no-bundle`){switch(e){case`no-bundle`:return`Desktop app not found at ${y}. Install via DMG, or omit --mode for browser mode.`;case`darwin-only`:return`Desktop app is macOS-only on this release. 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 desktop bundle at ${y} (filesystem error). Check permissions or use --mode=browser.`;case`available`:return`Desktop app appears available at ${y} but launch dispatch did not fire (caller bug).`}}function E(){let e=process.execPath,t=process.argv[1];return t?{command:e,prefixArgs:[t]}:(console.warn(`[self-spawn] process.argv[1] is empty — falling back to \`npx -y @inkeep/open-knowledge@latest\`. This re-introduces the registry-fetch surface that re-exec was fixing. Observed argv: ${JSON.stringify(process.argv)}`),{command:`npx`,prefixArgs:[`-y`,`@inkeep/open-knowledge@latest`]})}function D(e,t){return e.host??t.HOST??`localhost`}function O(e){let t=l(e).replace(/[^\x20-\x7E]/g,``).trim().slice(0,64);return`open-knowledge-server ${t.length>0?t:`unknown`}`}var k=class extends Error{cwd;constructor(e){super("This directory isn't set up yet. Run `ok init` first, then `ok start` again."),this.name=`OkDirMissingError`,this.cwd=e}};function A(e){return e.uiLock?e.isAlive(e.uiLock.pid)?{action:`skip`,reason:`alive`,pid:e.uiLock.pid,port:e.uiLock.port}:{action:`spawn`,reason:`stale`,stalePid:e.uiLock.pid}:{action:`spawn`,reason:`absent`}}function j(e){f(e.lockDir)||p(e.lockDir,{recursive:!0});let t=m(u(e.lockDir,n),`w`),r=e.spawn??c,{PORT:i,...a}=process.env,o=E();try{let n=r(o.command,[...o.prefixArgs,...e.args??[`ui`]],{detached:!0,stdio:[`ignore`,`ignore`,t],cwd:e.cwd,env:a});return n.unref(),n}finally{try{d(t)}catch{}}}async function M(e){let t=e.now()+e.timeoutMs;for(;e.now()<t;){let t=e.readUiLock();if(t&&t.port>0)return t.port;await e.sleep(e.pollIntervalMs)}let n=e.readUiLock();return n&&n.port>0?n.port:null}const N=r;function P(e){let t=e.sigtermGraceMs??N,n=e.sigtermPollIntervalMs??200,r=e.sleep??(e=>_(e));return async()=>{try{let i=e.readUiLock();if(i&&e.isAlive(i.pid))try{e.killPid(i.pid,`SIGTERM`),e.log?.info({pid:i.pid,port:i.port},`idle-shutdown: SIGTERM UI sibling`);let a=Date.now()+t;for(;Date.now()<a&&e.isAlive(i.pid);)await r(n);if(e.isAlive(i.pid))try{e.killPid(i.pid,`SIGKILL`),e.log?.warn({pid:i.pid,graceMs:t},`idle-shutdown: SIGTERM grace expired — escalated to SIGKILL`)}catch(t){e.log?.error({pid:i.pid,err:t instanceof Error?t.message:String(t)},`idle-shutdown: SIGKILL failed`)}}catch(t){e.log?.warn({pid:i.pid,err:t instanceof Error?t.message:String(t)},`idle-shutdown: failed to SIGTERM UI sibling`)}}catch(t){e.log?.warn({err:t instanceof Error?t.message:String(t)},`idle-shutdown: UI lookup failed; proceeding with destroy`)}await e.destroy()}}async function F(e){let{config:t,cwd:n,host:r}=e,s=e.skipAutoInit??!1,c=e.skipUiAutoSpawn??!1,l=e.idleThresholdMs??18e5,{existsSync:u,mkdirSync:d}=await import(`node:fs`),{bootServer:f,getLogger:p,isProcessAlive:m,readUiLock:h,resolveContentDir:g}=await import(`./dist-3m799Jis.mjs`),v=e.log??p(`start`);if(!s&&!i(n))throw new k(n);let y=process.env.OK_RECLAIM_DISABLE??null;try{(e.repairMcpConfigsFn??(await import(`./repair-mcp-configs-DisocOil.mjs`)).repairMcpConfigs)({projectDir:n,reclaimDisableEnv:y})}catch(e){v.warn({err:e},`[start] mcp-config repair sweep failed; continuing`)}try{(e.repairLaunchJsonFn??(await import(`./repair-launch-json-DIJDH5Tl.mjs`)).repairLaunchJson)({projectDir:n,reclaimDisableEnv:y})}catch(e){v.warn({err:e},`[start] launch.json repair sweep failed; continuing`)}try{await(e.repairSkillsFn??(await import(`./repair-skills-oNUU16Sj.mjs`)).repairSkills)({projectDir:n,reclaimDisableEnv:y})}catch(e){v.warn({err:e},`[start] skill repair sweep failed; continuing`)}let b=g(t,n);u(b)||(d(b,{recursive:!0}),v.info({contentDir:b},`Created content directory`));let x=null,S=async({lockDir:t})=>{if(x=A({uiLock:h(t),isAlive:m}),x.action===`spawn`&&!c)try{j({lockDir:t,cwd:n,spawn:e.spawn}),v.info({reason:x.reason},`[start] auto-spawned ok ui sibling`)}catch(e){console.warn(`[start] failed to auto-spawn ok ui: ${e instanceof Error?e.message:String(e)}`)}else x.action===`skip`&&v.info({port:x.port,pid:x.pid},`UI already running at port ${x.port}`)},C=e.reactShellDistDir===void 0,w=a(),T=await f({config:t,contentDir:b,projectDir:n,contentRoot:t.content.dir,port:e.port,host:r,quiet:!1,detectGh:o,tokenStore:w,localOpCliArgs:[process.execPath,process.argv[1]],attachUiSibling:C,idleShutdownMs:l,skipAutoInit:!0,...C?{spawnUiSiblingFn:S}:{},idleShutdownHandler:e=>P({readUiLock:()=>h(T.lockDir),isAlive:m,killPid:(e,t)=>{process.kill(e,t)},destroy:e,log:v}),log:v,...e.serveContentAssets?{serveContentAssets:!0}:{},...e.reactShellDistDir?{reactShellDistDir:e.reactShellDistDir}:{}});x||={action:`skip`,reason:`alive`,pid:0,port:0};let E=x,D=null;if(E.action===`skip`)D=E.port>0?E.port:null;else if(!c){let t=e.uiBindTimeoutMs??3e3;D=await M({readUiLock:()=>h(T.lockDir),now:Date.now,sleep:e=>_(e),timeoutMs:t,pollIntervalMs:50}),D===null&&v.warn({timeoutMs:t},`[start] ok ui did not bind within timeout — banner falls back to API URL`)}return{httpServer:T.httpServer,destroy:T.destroy,lockDir:T.lockDir,contentDir:b,port:T.port,ready:T.ready,degraded:T.degraded,uiSpawnDecision:x,resolvedUiPort:D}}function I(t){if(t===`browser`||t===`app`)return t;throw new e(`--mode must be 'browser' or 'app'`)}async function L(e,t){let{renderBanner:n}=await import(`./banner-BEKwr_uU.mjs`),{dim:r,error:i,warning:a}=await import(`./colors-Dl3c2q5r.mjs`),o=process.cwd(),c=e;process.title=O(o);let l=D(t,process.env),u=t.port===void 0?void 0:Number(t.port),d=process.env.PORT?Number(process.env.PORT):void 0,f=u??d,p;try{p=await F({config:c,cwd:o,host:l,port:f,...t.serveContentAssets?{serveContentAssets:!0}:{},...t.reactShellDistDir?{reactShellDistDir:t.reactShellDistDir}:{}})}catch(e){e instanceof k&&(console.error(i(e.message)),process.exit(1));let t=R(e,o,await import(`./dist-3m799Jis.mjs`));t!==null&&(console.error(i(t)),process.exit(1)),console.error(`${i(`Failed to start:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exit(1)}let m=!1,h=async e=>{if(!m){m=!0,console.log(r(`\nShutting down (${e})`));try{await p.destroy()}catch(e){console.error(`${i(`destroy() failed:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exitCode=1}process.exit(process.exitCode??0)}};process.once(`SIGINT`,()=>{h(`SIGINT`)}),process.once(`SIGTERM`,()=>{h(`SIGTERM`)});let g=`http://${l}:${p.port}`,_=l===`0.0.0.0`||l===`::`?`http://0.0.0.0:${p.port}`:void 0,v=p.resolvedUiPort,y=v!==null&&v>0?`http://${l}:${v}`:g;console.log(n({name:`open-knowledge`,version:s,localUrl:y,apiUrl:y===g?void 0:g,networkUrl:_}));let b={"shadow-repo":`Version history and branch-switch safety unavailable`,"file-watcher":`External file changes will not sync to the editor`,"head-watcher":`Git branch switches may cause document inconsistency`};p.ready.then(async()=>{if(p.degraded.length>0){console.log();for(let e of p.degraded){let t=b[e]??`${e} (check server logs for details)`;console.warn(` ${a(`⚠`)} ${a(e)}: ${r(t)}`)}console.log()}if(t.open){let{openBrowser:e}=await import(`./open-browser-C6LU_1mt.mjs`);e(y)}}).catch(e=>{console.error(` ${i(`Server initialization failed:`)} ${e instanceof Error?e.message:String(e)}`)})}function R(e,t,n){let r=n.ServerLockCollisionError;if(r===void 0||!(e instanceof r))return null;try{let e=u(t,`.ok`),r=n.readServerLock(e);return r?r.kind===`interactive`?`Open Knowledge desktop is currently running on this project. Quit it or use --cwd to point elsewhere.`:r.kind===`mcp-spawned`?"An MCP-spawned server holds this lock; it should release on idle-shutdown (~30 min). Or run `ok stop`.":"Open Knowledge server is already running on this project — check `ok status` or `ok stop`.":"Open Knowledge server is already running on this project — check `ok status` or `ok stop`."}catch{return null}}function z(e){return new t(`start`).description(`Start the knowledge base collab server`).option(`-p, --port <port>`,`Server port`,void 0).option(`-H, --host <host>`,`Server host`,void 0).option(`--open`,`Open browser after start`).option(`--mode <mode>`,`Force dispatch mode: 'browser' or 'app'`,I).option(`--serve-content-assets`,`Serve content assets from this server`).option(`--react-shell-dist-dir <path>`,`Serve React shell from <path> (suppresses ok ui sibling)`).action(async t=>{let n=e();if(t.mode===`app`){t.open&&(process.stderr.write(`error: option '--mode=app' cannot be combined with '--open' (--open opens a browser tab against the local server, which app mode does not boot)
1
+ import{n as e,t}from"./esm-CEs3LWY3.mjs";import{Si as n,hi as r,yn as i}from"./dist-BWAKwlW9.mjs";import{i as a,t as o}from"./gh-detect-CSW5IRNM.mjs";import{n as s}from"./constants-Cv4s1KlO.mjs";import{spawn as c}from"node:child_process";import{basename as l,join as u}from"node:path";import{closeSync as d,existsSync as f,mkdirSync as p,openSync as m,statSync as h}from"node:fs";import{homedir as g}from"node:os";import{setTimeout as _}from"node:timers/promises";const v=`Open Knowledge.app`,y=`/Applications/${v}`;function b(){return{platform:process.platform,env:process.env,execPath:process.execPath,isTTY:process.stdout.isTTY,statSync:e=>{try{return h(e,{throwIfNoEntry:!1})??null}catch{return null}}}}function x(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`){let t=/(.+?\.app)\/Contents\/MacOS\//.exec(e.execPath);if(t?.[1])return t[1]}if(S(e,y))return y;let t=u(e.homeDir??g(),`Applications`,v);return S(e,t)?t:null}function S(e,t){try{let n=u(t,`Contents`,`MacOS`,`Open Knowledge`),r=e.statSync(n);return r&&typeof r.isFile==`function`?r.isFile():!1}catch{return!1}}function C(e){if(e.env.OK_FORCE_BROWSER===`1`)return{available:!1,reason:`force-browser`};if(e.platform!==`darwin`)return{available:!1,reason:`darwin-only`};let t;try{t=x(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.env.SSH_CONNECTION||e.env.SSH_TTY?{available:!1,reason:`headless`,bundlePath:t}:{available:!0,reason:`available`,bundlePath:t}:{available:!1,reason:`no-bundle`}}function w(e){(e.log??(e=>console.error(e)))("Launching Open Knowledge desktop (use `ok start` for the browser server, or `OK_FORCE_BROWSER=1` to always skip)");let t={...process.env};delete t.ELECTRON_RUN_AS_NODE,e.spawn(`open`,[`-b`,`com.inkeep.open-knowledge`],{detached:!0,stdio:`ignore`,env:t}).unref()}function T(e=`no-bundle`){switch(e){case`no-bundle`:return`Desktop app not found at ${y}. Install via DMG, or omit --mode for browser mode.`;case`darwin-only`:return`Desktop app is macOS-only on this release. 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 desktop bundle at ${y} (filesystem error). Check permissions or use --mode=browser.`;case`available`:return`Desktop app appears available at ${y} but launch dispatch did not fire (caller bug).`}}function E(){let e=process.execPath,t=process.argv[1];return t?{command:e,prefixArgs:[t]}:(console.warn(`[self-spawn] process.argv[1] is empty — falling back to \`npx -y @inkeep/open-knowledge@latest\`. This re-introduces the registry-fetch surface that re-exec was fixing. Observed argv: ${JSON.stringify(process.argv)}`),{command:`npx`,prefixArgs:[`-y`,`@inkeep/open-knowledge@latest`]})}function D(e,t){return e.host??t.HOST??`localhost`}function O(e){let t=l(e).replace(/[^\x20-\x7E]/g,``).trim().slice(0,64);return`open-knowledge-server ${t.length>0?t:`unknown`}`}var k=class extends Error{cwd;constructor(e){super("This directory isn't set up yet. Run `ok init` first, then `ok start` again."),this.name=`OkDirMissingError`,this.cwd=e}};function A(e){return e.uiLock?e.isAlive(e.uiLock.pid)?{action:`skip`,reason:`alive`,pid:e.uiLock.pid,port:e.uiLock.port}:{action:`spawn`,reason:`stale`,stalePid:e.uiLock.pid}:{action:`spawn`,reason:`absent`}}function j(e){f(e.lockDir)||p(e.lockDir,{recursive:!0});let t=m(u(e.lockDir,n),`w`),r=e.spawn??c,{PORT:i,...a}=process.env,o=E();try{let n=r(o.command,[...o.prefixArgs,...e.args??[`ui`]],{detached:!0,stdio:[`ignore`,`ignore`,t],cwd:e.cwd,env:a});return n.unref(),n}finally{try{d(t)}catch{}}}async function M(e){let t=e.now()+e.timeoutMs;for(;e.now()<t;){let t=e.readUiLock();if(t&&t.port>0)return t.port;await e.sleep(e.pollIntervalMs)}let n=e.readUiLock();return n&&n.port>0?n.port:null}const N=r;function P(e){let t=e.sigtermGraceMs??N,n=e.sigtermPollIntervalMs??200,r=e.sleep??(e=>_(e));return async()=>{try{let i=e.readUiLock();if(i&&e.isAlive(i.pid))try{e.killPid(i.pid,`SIGTERM`),e.log?.info({pid:i.pid,port:i.port},`idle-shutdown: SIGTERM UI sibling`);let a=Date.now()+t;for(;Date.now()<a&&e.isAlive(i.pid);)await r(n);if(e.isAlive(i.pid))try{e.killPid(i.pid,`SIGKILL`),e.log?.warn({pid:i.pid,graceMs:t},`idle-shutdown: SIGTERM grace expired — escalated to SIGKILL`)}catch(t){e.log?.error({pid:i.pid,err:t instanceof Error?t.message:String(t)},`idle-shutdown: SIGKILL failed`)}}catch(t){e.log?.warn({pid:i.pid,err:t instanceof Error?t.message:String(t)},`idle-shutdown: failed to SIGTERM UI sibling`)}}catch(t){e.log?.warn({err:t instanceof Error?t.message:String(t)},`idle-shutdown: UI lookup failed; proceeding with destroy`)}await e.destroy()}}async function F(e){let{config:t,cwd:n,host:r}=e,s=e.skipAutoInit??!1,c=e.skipUiAutoSpawn??!1,l=e.idleThresholdMs??18e5,{existsSync:u,mkdirSync:d}=await import(`node:fs`),{bootServer:f,getLogger:p,isProcessAlive:m,readUiLock:h,resolveContentDir:g}=await import(`./dist-4x_d-0GF.mjs`),v=e.log??p(`start`);if(!s&&!i(n))throw new k(n);let y=process.env.OK_RECLAIM_DISABLE??null;try{(e.repairMcpConfigsFn??(await import(`./repair-mcp-configs-DrKyEaqS.mjs`)).repairMcpConfigs)({projectDir:n,reclaimDisableEnv:y})}catch(e){v.warn({err:e},`[start] mcp-config repair sweep failed; continuing`)}try{(e.repairLaunchJsonFn??(await import(`./repair-launch-json-R0MDO4C-.mjs`)).repairLaunchJson)({projectDir:n,reclaimDisableEnv:y})}catch(e){v.warn({err:e},`[start] launch.json repair sweep failed; continuing`)}try{await(e.repairSkillsFn??(await import(`./repair-skills-BGSggwrg.mjs`)).repairSkills)({projectDir:n,reclaimDisableEnv:y})}catch(e){v.warn({err:e},`[start] skill repair sweep failed; continuing`)}let b=g(t,n);u(b)||(d(b,{recursive:!0}),v.info({contentDir:b},`Created content directory`));let x=null,S=async({lockDir:t})=>{if(x=A({uiLock:h(t),isAlive:m}),x.action===`spawn`&&!c)try{j({lockDir:t,cwd:n,spawn:e.spawn}),v.info({reason:x.reason},`[start] auto-spawned ok ui sibling`)}catch(e){console.warn(`[start] failed to auto-spawn ok ui: ${e instanceof Error?e.message:String(e)}`)}else x.action===`skip`&&v.info({port:x.port,pid:x.pid},`UI already running at port ${x.port}`)},C=e.reactShellDistDir===void 0,w=a(),T=await f({config:t,contentDir:b,projectDir:n,contentRoot:t.content.dir,port:e.port,host:r,quiet:!1,detectGh:o,tokenStore:w,localOpCliArgs:[process.execPath,process.argv[1]],attachUiSibling:C,idleShutdownMs:l,skipAutoInit:!0,...C?{spawnUiSiblingFn:S}:{},idleShutdownHandler:e=>P({readUiLock:()=>h(T.lockDir),isAlive:m,killPid:(e,t)=>{process.kill(e,t)},destroy:e,log:v}),log:v,...e.serveContentAssets?{serveContentAssets:!0}:{},...e.reactShellDistDir?{reactShellDistDir:e.reactShellDistDir}:{}});x||={action:`skip`,reason:`alive`,pid:0,port:0};let E=x,D=null;if(E.action===`skip`)D=E.port>0?E.port:null;else if(!c){let t=e.uiBindTimeoutMs??3e3;D=await M({readUiLock:()=>h(T.lockDir),now:Date.now,sleep:e=>_(e),timeoutMs:t,pollIntervalMs:50}),D===null&&v.warn({timeoutMs:t},`[start] ok ui did not bind within timeout — banner falls back to API URL`)}return{httpServer:T.httpServer,destroy:T.destroy,lockDir:T.lockDir,contentDir:b,port:T.port,ready:T.ready,degraded:T.degraded,uiSpawnDecision:x,resolvedUiPort:D}}function I(t){if(t===`browser`||t===`app`)return t;throw new e(`--mode must be 'browser' or 'app'`)}async function L(e,t){let{renderBanner:n}=await import(`./banner-2j-_SAt6.mjs`),{dim:r,error:i,warning:a}=await import(`./colors-B75xIh3W.mjs`),o=process.cwd(),c=e;process.title=O(o);let l=D(t,process.env),u=t.port===void 0?void 0:Number(t.port),d=process.env.PORT?Number(process.env.PORT):void 0,f=u??d,p;try{p=await F({config:c,cwd:o,host:l,port:f,...t.serveContentAssets?{serveContentAssets:!0}:{},...t.reactShellDistDir?{reactShellDistDir:t.reactShellDistDir}:{}})}catch(e){e instanceof k&&(console.error(i(e.message)),process.exit(1));let t=R(e,o,await import(`./dist-4x_d-0GF.mjs`));t!==null&&(console.error(i(t)),process.exit(1)),console.error(`${i(`Failed to start:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exit(1)}let m=!1,h=async e=>{if(!m){m=!0,console.log(r(`\nShutting down (${e})`));try{await p.destroy()}catch(e){console.error(`${i(`destroy() failed:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exitCode=1}process.exit(process.exitCode??0)}};process.once(`SIGINT`,()=>{h(`SIGINT`)}),process.once(`SIGTERM`,()=>{h(`SIGTERM`)});let g=`http://${l}:${p.port}`,_=l===`0.0.0.0`||l===`::`?`http://0.0.0.0:${p.port}`:void 0,v=p.resolvedUiPort,y=v!==null&&v>0?`http://${l}:${v}`:g;console.log(n({name:`open-knowledge`,version:s,localUrl:y,apiUrl:y===g?void 0:g,networkUrl:_}));let b={"shadow-repo":`Version history and branch-switch safety unavailable`,"file-watcher":`External file changes will not sync to the editor`,"head-watcher":`Git branch switches may cause document inconsistency`};p.ready.then(async()=>{if(p.degraded.length>0){console.log();for(let e of p.degraded){let t=b[e]??`${e} (check server logs for details)`;console.warn(` ${a(`⚠`)} ${a(e)}: ${r(t)}`)}console.log()}if(t.open){let{openBrowser:e}=await import(`./open-browser-C9GRQw2D.mjs`);e(y)}}).catch(e=>{console.error(` ${i(`Server initialization failed:`)} ${e instanceof Error?e.message:String(e)}`)})}function R(e,t,n){let r=n.ServerLockCollisionError;if(r===void 0||!(e instanceof r))return null;try{let e=u(t,`.ok`),r=n.readServerLock(e);return r?r.kind===`interactive`?`Open Knowledge desktop is currently running on this project. Quit it or use --cwd to point elsewhere.`:r.kind===`mcp-spawned`?"An MCP-spawned server holds this lock; it should release on idle-shutdown (~30 min). Or run `ok stop`.":"Open Knowledge server is already running on this project — check `ok status` or `ok stop`.":"Open Knowledge server is already running on this project — check `ok status` or `ok stop`."}catch{return null}}function z(e){return new t(`start`).description(`Start the knowledge base collab server`).option(`-p, --port <port>`,`Server port`,void 0).option(`-H, --host <host>`,`Server host`,void 0).option(`--open`,`Open browser after start`).option(`--mode <mode>`,`Force dispatch mode: 'browser' or 'app'`,I).option(`--serve-content-assets`,`Serve content assets from this server`).option(`--react-shell-dist-dir <path>`,`Serve React shell from <path> (suppresses ok ui sibling)`).action(async t=>{let n=e();if(t.mode===`app`){t.open&&(process.stderr.write(`error: option '--mode=app' cannot be combined with '--open' (--open opens a browser tab against the local server, which app mode does not boot)
2
2
  `),process.exit(2));let e=[];if(t.port!==void 0&&e.push(`--port`),t.host!==void 0&&e.push(`--host`),e.length>0){let t=process.env.OK_LOG_LEVEL??`info`;(t===`debug`||t===`trace`)&&console.error(`--mode=app: ignoring ${e.join(`, `)}`)}let n=C(b());if(n.available){w({spawn:c});return}console.error(T(n.reason)),process.exit(1)}await L(n,t)})}export{A as a,L as c,R as d,E as f,w as h,P as i,j as l,C as m,M as n,O as o,b as p,F as r,D as s,k as t,z as u};
3
- //# sourceMappingURL=start-DUoyJgxA.mjs.map
3
+ //# sourceMappingURL=start-BwCvoKIY.mjs.map
@@ -0,0 +1 @@
1
+ import{u as e}from"./start-BwCvoKIY.mjs";export{e as startCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-5QVNJEHU-BvfNka90.mjs";export{e as statCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-VYOJP4TV-CyUuqbM6.mjs";export{e as strings};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-MHTUABJP-CFOPmfuD.mjs";export{e as tac};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-DCAAORBQ-D6297aec.mjs";export{e as tailCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-YNYSPYQ5-DzToRSq3.mjs";import"./chunk-DXB73IDG-DiBHw8JN.mjs";import"./chunk-5QMZ5MUS-BQ6AJ7O6.mjs";import{n as e}from"./chunk-BRGMQKJV-BKd1VT2Z.mjs";export{e as tarCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-55VFSPNA-BI6dNKjc.mjs";export{e as teeCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-CWQS3NFK-CKoiDb4a.mjs";import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-Z6LRHWXI-Dwj1jdge.mjs";export{e as timeCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import"./chunk-5QMZ5MUS-BQ6AJ7O6.mjs";import"./chunk-A5O5YHGN-C4hFXTXp.mjs";import{n as e}from"./chunk-YTNYSM6T-DC2EcahF.mjs";export{e as timeoutCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-OCLXQMOG-Bwp2OfcJ.mjs";export{e as touchCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-62RKD26F-CNcG0-gc.mjs";export{e as trCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-XVDPCNWR-D-2j42Wk.mjs";export{e as treeCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{i as e,t}from"./chunk-R6QSAL5T-CfNKT29I.mjs";export{e as falseCommand,t as trueCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-PYSFUGCK-BHCYaqaR.mjs";export{e as unexpand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-WKFATFPP-Bs2wgFlc.mjs";export{e as uniqCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-GXVXFKBA-Cj_Fxv_5.mjs";export{e as wcCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-A65PWWJC-DCxPAHkR.mjs";export{e as whichCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-HJQJAYMS-BIgu03Ox.mjs";export{e as whoami};
@@ -1,2 +1,2 @@
1
- import{Zn as e}from"./dist-DikIN25T.mjs";import{dirname as t,isAbsolute as n,relative as r,resolve as i,sep as a}from"node:path";import{cpSync as o,existsSync as s,lstatSync as c,mkdirSync as l,realpathSync as u,rmSync as d}from"node:fs";function f(e,o){let s;try{s=u(o)}catch{s=i(o)}let l;try{l=c(e)}catch(e){if(e.code!==`ENOENT`)throw e}if(l?.isSymbolicLink())throw Error(`Refusing to write through a symbolic link at ${e}. Remove the symlink and re-run project setup.`);let d=t(e);for(;d.length>1&&d!==a;){let i;try{i=u(d)}catch(e){if(e.code===`ENOENT`){d=t(d);continue}throw e}let a=r(s,i);if(a===``||!a.startsWith(`..`)&&!n(a))return;throw Error(`Refusing to write at ${e}: ancestor ${d} resolves to ${i}, which is outside the project directory ${s}. A symbolic link in the path likely escapes the project. Remove the symlink and re-run project setup.`)}}function p(n,r){let i=n.projectSkillPath?.(r);if(!i)return{editorId:n.id,label:n.label,action:`skipped-unsupported`,path:``};try{let a=e(`project`,{checkDesktop:!0}),c=t(i);f(c,r);let u=s(i)?`overwritten`:`written`;return d(c,{recursive:!0,force:!0}),l(t(c),{recursive:!0}),o(a,c,{recursive:!0}),{editorId:n.id,label:n.label,action:u,path:i}}catch(e){return{editorId:n.id,label:n.label,action:`failed`,path:i,error:e instanceof Error?e.message:String(e)}}}export{p as n,f as t};
2
- //# sourceMappingURL=write-project-skill-Bh1t5k11.mjs.map
1
+ import{Zn as e}from"./dist-BWAKwlW9.mjs";import{dirname as t,isAbsolute as n,relative as r,resolve as i,sep as a}from"node:path";import{cpSync as o,existsSync as s,lstatSync as c,mkdirSync as l,realpathSync as u,rmSync as d}from"node:fs";function f(e,o){let s;try{s=u(o)}catch{s=i(o)}let l;try{l=c(e)}catch(e){if(e.code!==`ENOENT`)throw e}if(l?.isSymbolicLink())throw Error(`Refusing to write through a symbolic link at ${e}. Remove the symlink and re-run project setup.`);let d=t(e);for(;d.length>1&&d!==a;){let i;try{i=u(d)}catch(e){if(e.code===`ENOENT`){d=t(d);continue}throw e}let a=r(s,i);if(a===``||!a.startsWith(`..`)&&!n(a))return;throw Error(`Refusing to write at ${e}: ancestor ${d} resolves to ${i}, which is outside the project directory ${s}. A symbolic link in the path likely escapes the project. Remove the symlink and re-run project setup.`)}}function p(n,r){let i=n.projectSkillPath?.(r);if(!i)return{editorId:n.id,label:n.label,action:`skipped-unsupported`,path:``};try{let a=e(`project`,{checkDesktop:!0}),c=t(i);f(c,r);let u=s(i)?`overwritten`:`written`;return d(c,{recursive:!0,force:!0}),l(t(c),{recursive:!0}),o(a,c,{recursive:!0}),{editorId:n.id,label:n.label,action:u,path:i}}catch(e){return{editorId:n.id,label:n.label,action:`failed`,path:i,error:e instanceof Error?e.message:String(e)}}}export{p as n,f as t};
2
+ //# sourceMappingURL=write-project-skill-C3aYUp9w.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-YNYSPYQ5-DzToRSq3.mjs";import"./chunk-DXB73IDG-DiBHw8JN.mjs";import"./chunk-5QMZ5MUS-BQ6AJ7O6.mjs";import"./chunk-24IMIIXA-BPYIgkX5.mjs";import"./chunk-SYMJJMQ4-N8usXlyn.mjs";import"./chunk-7TSDKFEO-CVXHdZlP.mjs";import"./chunk-BBXLRYSX-mzBO0XWz.mjs";import"./chunk-F55TLFGB-Bin48pra.mjs";import{n as e}from"./chunk-UNYNJIFU-5QHcA85X.mjs";export{e as xanCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import"./chunk-SYMJJMQ4-N8usXlyn.mjs";import{c as e}from"./chunk-F55TLFGB-Bin48pra.mjs";export{e as cmdView};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-TOMNU26N-BVt75BK5.mjs";export{e as xargsCommand};
@@ -0,0 +1,2 @@
1
+ import{i as e,t}from"./chunk-FK9Q3tQk.mjs";var n=t(((e,t)=>{function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}let r=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function i(e){if(Buffer.isBuffer(e))return e;if(typeof e==`number`)return Buffer.alloc(e);if(typeof e==`string`)return Buffer.from(e);throw Error(`input must be buffer, number, or string, received `+typeof e)}function a(e){let t=i(4);return t.writeInt32BE(e,0),t}function o(e,t){e=i(e),Buffer.isBuffer(t)&&(t=t.readUInt32BE(0));let n=~~t^-1;for(var a=0;a<e.length;a++)n=r[(n^e[a])&255]^n>>>8;return n^-1}function s(){return a(o.apply(null,arguments))}s.signed=function(){return o.apply(null,arguments)},s.unsigned=function(){return o.apply(null,arguments)>>>0},t.exports=n(s)})),r=t((t=>{var r=e(`fs`),i=e(`stream`).Transform,a=e(`stream`).PassThrough,o=e(`zlib`),s=e(`util`),c=e(`events`).EventEmitter,l=e(`events`).errorMonitor,u=n();t.ZipFile=d,t.dateToDosDateTime=z,s.inherits(d,c);function d(){this.outputStream=new a,this.entries=[],this.outputStreamCursor=0,this.ended=!1,this.allDone=!1,this.forceZip64Eocd=!1,this.errored=!1,this.on(l,function(){this.errored=!0})}d.prototype.addFile=function(e,t,n){var i=this;if(t=C(t,!1),n??={},!v(i)){var a=new T(t,!1,n);i.entries.push(a),r.stat(e,function(t,o){if(t)return i.emit(`error`,t);if(!o.isFile())return i.emit(`error`,Error(`not a file: `+e));a.uncompressedSize=o.size,n.mtime??a.setLastModDate(o.mtime),n.mode??a.setFileAttributesMode(o.mode),a.setFileDataPumpFunction(function(){var t=r.createReadStream(e);a.state=T.FILE_DATA_IN_PROGRESS,t.on(`error`,function(e){i.emit(`error`,e)}),m(i,a,t)}),g(i)})}},d.prototype.addReadStream=function(e,t,n){this.addReadStreamLazy(t,n,function(t){t(null,e)})},d.prototype.addReadStreamLazy=function(e,t,n){var r=this;if(typeof t==`function`&&(n=t,t=null),t??={},e=C(e,!1),!v(r)){var i=new T(e,!1,t);r.entries.push(i),i.setFileDataPumpFunction(function(){i.state=T.FILE_DATA_IN_PROGRESS,n(function(e,t){if(e)return r.emit(`error`,e);m(r,i,t)})}),g(r)}},d.prototype.addBuffer=function(e,t,n){var r=this;if(t=C(t,!1),e.length>1073741823)throw Error(`buffer too large: `+e.length+` > 1073741823`);if(n??={},n.size!=null)throw Error(`options.size not allowed`);if(v(r))return;var i=new T(t,!1,n);i.uncompressedSize=e.length,i.crc32=u.unsigned(e),i.crcAndFileSizeKnown=!0,r.entries.push(i),i.compressionLevel===0?a(e):o.deflateRaw(e,{level:i.compressionLevel},function(e,t){a(t)});function a(e){i.compressedSize=e.length,i.setFileDataPumpFunction(function(){p(r,e),p(r,i.getDataDescriptor()),i.state=T.FILE_DATA_DONE,setImmediate(function(){g(r)})}),g(r)}},d.prototype.addEmptyDirectory=function(e,t){var n=this;if(e=C(e,!0),t??={},t.size!=null)throw Error(`options.size not allowed`);if(t.compress!=null)throw Error(`options.compress not allowed`);if(t.compressionLevel!=null)throw Error(`options.compressionLevel not allowed`);if(!v(n)){var r=new T(e,!0,t);n.entries.push(r),r.setFileDataPumpFunction(function(){p(n,r.getDataDescriptor()),r.state=T.FILE_DATA_DONE,g(n)}),g(n)}};var f=q([80,75,5,6]);d.prototype.end=function(e,t){if(typeof e==`function`&&(t=e,e=null),e??={},!this.ended&&(this.ended=!0,!this.errored)){if(this.calculatedTotalSizeCallback=t,this.forceZip64Eocd=!!e.forceZip64Format,e.comment){if(typeof e.comment==`string`?this.comment=G(e.comment):this.comment=e.comment,this.comment.length>65535)throw Error(`comment is too large`);if(J(this.comment,f))throw Error(`comment contains end of central directory record signature`)}else this.comment=w;g(this)}};function p(e,t){e.outputStream.write(t),e.outputStreamCursor+=t.length}function m(e,t,n){var r=new H,i=new V,s=t.compressionLevel===0?new a:new o.DeflateRaw({level:t.compressionLevel}),c=new V;n.pipe(r).pipe(i).pipe(s).pipe(c).pipe(e.outputStream,{end:!1}),c.on(`end`,function(){if(t.crc32=r.crc32,t.uncompressedSize==null)t.uncompressedSize=i.byteCount;else if(t.uncompressedSize!==i.byteCount)return e.emit(`error`,Error(`file data stream has unexpected number of bytes`));t.compressedSize=c.byteCount,e.outputStreamCursor+=t.compressedSize,p(e,t.getDataDescriptor()),t.state=T.FILE_DATA_DONE,g(e)})}function h(e){if(e.compress!=null&&e.compressionLevel!=null&&!!e.compress!=!!e.compressionLevel)throw Error(`conflicting settings for compress and compressionLevel`);return e.compressionLevel==null?e.compress===!1?0:6:e.compressionLevel}function g(e){if(e.allDone||e.errored)return;if(e.ended&&e.calculatedTotalSizeCallback!=null){var t=_(e);t!=null&&(e.calculatedTotalSizeCallback(t),e.calculatedTotalSizeCallback=null)}var n=r();function r(){for(var t=0;t<e.entries.length;t++){var n=e.entries[t];if(n.state<T.FILE_DATA_DONE)return n}return null}if(n!=null){if(n.state<T.READY_TO_PUMP_FILE_DATA||n.state===T.FILE_DATA_IN_PROGRESS)return;n.relativeOffsetOfLocalHeader=e.outputStreamCursor,p(e,n.getLocalFileHeader()),n.doFileDataPump()}else e.ended&&(e.offsetOfStartOfCentralDirectory=e.outputStreamCursor,e.entries.forEach(function(t){p(e,t.getCentralDirectoryRecord())}),p(e,S(e)),e.outputStream.end(),e.allDone=!0)}function _(e){for(var t=0,n=0,r=0;r<e.entries.length;r++){var i=e.entries[r];if(i.compressionLevel!==0)return-1;if(i.state>=T.READY_TO_PUMP_FILE_DATA){if(i.uncompressedSize==null)return-1}else if(i.uncompressedSize==null)return null;i.relativeOffsetOfLocalHeader=t;var a=i.useZip64Format();t+=E+i.utf8FileName.length,t+=i.uncompressedSize,i.crcAndFileSizeKnown||(a?t+=N:t+=M),n+=P+i.utf8FileName.length+i.fileComment.length,i.forceDosTimestamp||(n+=F),a&&(n+=I)}var o=0;return(e.forceZip64Eocd||e.entries.length>=65535||n>=65535||t>=4294967295)&&(o+=y+b),o+=x+e.comment.length,t+n+o}function v(e){if(e.ended)throw Error(`cannot add entries after calling end()`);return!!e.errored}var y=56,b=20,x=22;function S(e,t){var n=!1,r=e.entries.length;(e.forceZip64Eocd||e.entries.length>=65535)&&(r=65535,n=!0);var i=e.outputStreamCursor-e.offsetOfStartOfCentralDirectory,a=i;(e.forceZip64Eocd||i>=4294967295)&&(a=4294967295,n=!0);var o=e.offsetOfStartOfCentralDirectory;if((e.forceZip64Eocd||e.offsetOfStartOfCentralDirectory>=4294967295)&&(o=4294967295,n=!0),t)return n?y+b+x:x;var s=K(x+e.comment.length);if(s.writeUInt32LE(101010256,0),s.writeUInt16LE(0,4),s.writeUInt16LE(0,6),s.writeUInt16LE(r,8),s.writeUInt16LE(r,10),s.writeUInt32LE(a,12),s.writeUInt32LE(o,16),s.writeUInt16LE(e.comment.length,20),e.comment.copy(s,22),!n)return s;var c=K(y);c.writeUInt32LE(101075792,0),B(c,y-12,4),c.writeUInt16LE(k,12),c.writeUInt16LE(O,14),c.writeUInt32LE(0,16),c.writeUInt32LE(0,20),B(c,e.entries.length,24),B(c,e.entries.length,32),B(c,i,40),B(c,e.offsetOfStartOfCentralDirectory,48);var l=K(b);return l.writeUInt32LE(117853008,0),l.writeUInt32LE(0,4),B(l,e.outputStreamCursor,8),l.writeUInt32LE(1,16),Buffer.concat([c,l,s])}function C(e,t){if(e===``)throw Error(`empty metadataPath`);if(e=e.replace(/\\/g,`/`),/^[a-zA-Z]:/.test(e)||/^\//.test(e))throw Error(`absolute path: `+e);if(e.split(`/`).indexOf(`..`)!==-1)throw Error(`invalid relative path: `+e);var n=/\/$/.test(e);if(t)n||(e+=`/`);else if(n)throw Error(`file path cannot end with '/': `+e);return e}var w=K(0);function T(e,t,n){if(this.utf8FileName=q(e),this.utf8FileName.length>65535)throw Error(`utf8 file name too long. `+utf8FileName.length+` > 65535`);if(this.isDirectory=t,this.state=T.WAITING_FOR_METADATA,this.setLastModDate(n.mtime==null?new Date:n.mtime),this.forceDosTimestamp=!!n.forceDosTimestamp,n.mode==null?this.setFileAttributesMode(t?16893:33204):this.setFileAttributesMode(n.mode),t?(this.crcAndFileSizeKnown=!0,this.crc32=0,this.uncompressedSize=0,this.compressedSize=0):(this.crcAndFileSizeKnown=!1,this.crc32=null,this.uncompressedSize=null,this.compressedSize=null,n.size!=null&&(this.uncompressedSize=n.size)),t?this.compressionLevel=0:this.compressionLevel=h(n),this.forceZip64Format=!!n.forceZip64Format,n.fileComment){if(typeof n.fileComment==`string`?this.fileComment=q(n.fileComment,`utf-8`):this.fileComment=n.fileComment,this.fileComment.length>65535)throw Error(`fileComment is too large`)}else this.fileComment=w}T.WAITING_FOR_METADATA=0,T.READY_TO_PUMP_FILE_DATA=1,T.FILE_DATA_IN_PROGRESS=2,T.FILE_DATA_DONE=3,T.prototype.setLastModDate=function(e){this.mtime=e;var t=z(e);this.lastModFileTime=t.time,this.lastModFileDate=t.date},T.prototype.setFileAttributesMode=function(e){if((e&65535)!==e)throw Error(`invalid mode. expected: 0 <= `+e+` <= 65535`);this.externalFileAttributes=e<<16>>>0},T.prototype.setFileDataPumpFunction=function(e){this.doFileDataPump=e,this.state=T.READY_TO_PUMP_FILE_DATA},T.prototype.useZip64Format=function(){return this.forceZip64Format||this.uncompressedSize!=null&&this.uncompressedSize>4294967294||this.compressedSize!=null&&this.compressedSize>4294967294||this.relativeOffsetOfLocalHeader!=null&&this.relativeOffsetOfLocalHeader>4294967294};var E=30,D=20,O=45,k=831,A=2048,j=8;T.prototype.getLocalFileHeader=function(){var e=0,t=0,n=0;this.crcAndFileSizeKnown&&(e=this.crc32,t=this.compressedSize,n=this.uncompressedSize);var r=K(E),i=A;return this.crcAndFileSizeKnown||(i|=j),r.writeUInt32LE(67324752,0),r.writeUInt16LE(D,4),r.writeUInt16LE(i,6),r.writeUInt16LE(this.getCompressionMethod(),8),r.writeUInt16LE(this.lastModFileTime,10),r.writeUInt16LE(this.lastModFileDate,12),r.writeUInt32LE(e,14),r.writeUInt32LE(t,18),r.writeUInt32LE(n,22),r.writeUInt16LE(this.utf8FileName.length,26),r.writeUInt16LE(0,28),Buffer.concat([r,this.utf8FileName])};var M=16,N=24;T.prototype.getDataDescriptor=function(){if(this.crcAndFileSizeKnown)return w;if(this.useZip64Format()){var e=K(N);return e.writeUInt32LE(134695760,0),e.writeUInt32LE(this.crc32,4),B(e,this.compressedSize,8),B(e,this.uncompressedSize,16),e}else{var e=K(M);return e.writeUInt32LE(134695760,0),e.writeUInt32LE(this.crc32,4),e.writeUInt32LE(this.compressedSize,8),e.writeUInt32LE(this.uncompressedSize,12),e}};var P=46,F=9,I=28;T.prototype.getCentralDirectoryRecord=function(){var e=K(P),t=A;this.crcAndFileSizeKnown||(t|=j);var n=w;if(!this.forceDosTimestamp){n=K(F),n.writeUInt16LE(21589,0),n.writeUInt16LE(F-4,2),n.writeUInt8(3,4);var r=Math.floor(this.mtime.getTime()/1e3);r<-2147483648&&(r=-2147483648),r>2147483647&&(r=2147483647),n.writeUInt32LE(r,5)}var i=this.compressedSize,a=this.uncompressedSize,o=this.relativeOffsetOfLocalHeader,s=D,c=w;return this.useZip64Format()&&(i=4294967295,a=4294967295,o=4294967295,s=O,c=K(I),c.writeUInt16LE(1,0),c.writeUInt16LE(I-4,2),B(c,this.uncompressedSize,4),B(c,this.compressedSize,12),B(c,this.relativeOffsetOfLocalHeader,20)),e.writeUInt32LE(33639248,0),e.writeUInt16LE(k,4),e.writeUInt16LE(s,6),e.writeUInt16LE(t,8),e.writeUInt16LE(this.getCompressionMethod(),10),e.writeUInt16LE(this.lastModFileTime,12),e.writeUInt16LE(this.lastModFileDate,14),e.writeUInt32LE(this.crc32,16),e.writeUInt32LE(i,20),e.writeUInt32LE(a,24),e.writeUInt16LE(this.utf8FileName.length,28),e.writeUInt16LE(n.length+c.length,30),e.writeUInt16LE(this.fileComment.length,32),e.writeUInt16LE(0,34),e.writeUInt16LE(0,36),e.writeUInt32LE(this.externalFileAttributes,38),e.writeUInt32LE(o,42),Buffer.concat([e,this.utf8FileName,n,c,this.fileComment])},T.prototype.getCompressionMethod=function(){return this.compressionLevel===0?0:8};var L=new Date(1980,0,1),R=new Date(2107,11,31,23,59,58);function z(e){e<L?e=L:e>R&&(e=R);var t=0;t|=e.getDate()&31,t|=(e.getMonth()+1&15)<<5,t|=(e.getFullYear()-1980&127)<<9;var n=0;return n|=Math.floor(e.getSeconds()/2),n|=(e.getMinutes()&63)<<5,n|=(e.getHours()&31)<<11,{date:t,time:n}}function B(e,t,n){var r=Math.floor(t/4294967296),i=t%4294967296;e.writeUInt32LE(i,n),e.writeUInt32LE(r,n+4)}s.inherits(V,i);function V(e){i.call(this,e),this.byteCount=0}V.prototype._transform=function(e,t,n){this.byteCount+=e.length,n(null,e)},s.inherits(H,i);function H(e){i.call(this,e),this.crc32=0}H.prototype._transform=function(e,t,n){this.crc32=u.unsigned(e,this.crc32),n(null,e)};var U=`\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0`;if(U.length!==256)throw Error(`assertion failure`);var W=null;function G(e){if(/^[\x20-\x7e]*$/.test(e))return q(e,`utf-8`);if(W==null){W={};for(var t=0;t<U.length;t++)W[U[t]]=t}for(var n=K(e.length),t=0;t<e.length;t++){var r=W[e[t]];if(r==null)throw Error(`character not encodable in CP437: `+JSON.stringify(e[t]));n[t]=r}return n}function K(e){K=t;try{return K(e)}catch{return K=n,K(e)}function t(e){return Buffer.allocUnsafe(e)}function n(e){return new Buffer(e)}}function q(e,t){q=n;try{return q(e,t)}catch{return q=r,q(e,t)}function n(e,t){return Buffer.from(e,t)}function r(e,t){return new Buffer(e,t)}}function J(e,t){J=n;try{return J(e,t)}catch{return J=r,J(e,t)}function n(e,t){return e.includes(t)}function r(e,t){for(var n=0;n<=e.length-t.length;n++)for(var r=0;;r++){if(r===t.length)return!0;if(e[n+r]!==t[r])break}return!1}}}));export{r as t};
2
+ //# sourceMappingURL=yazl-BKdvfH0Q.mjs.map
@@ -0,0 +1 @@
1
+ import{t as e}from"./yazl-BKdvfH0Q.mjs";export default e();export{};
@@ -0,0 +1 @@
1
+ import"./chunk-YNYSPYQ5-DzToRSq3.mjs";import"./chunk-DXB73IDG-DiBHw8JN.mjs";import"./chunk-5QMZ5MUS-BQ6AJ7O6.mjs";import"./chunk-24IMIIXA-BPYIgkX5.mjs";import"./chunk-SYMJJMQ4-N8usXlyn.mjs";import"./chunk-7TSDKFEO-CVXHdZlP.mjs";import"./chunk-BBXLRYSX-mzBO0XWz.mjs";import{t as e}from"./chunk-XORM457F-DPa9UklK.mjs";export{e as yqCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/open-knowledge",
3
- "version": "0.8.0-beta.17",
3
+ "version": "0.8.0-beta.19",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{r as e,t}from"./chunk-VOBGTVA6-BT7gUxqf.mjs";export{e as aliasCommand,t as unaliasCommand};
@@ -1 +0,0 @@
1
- import"./chunk-YNYSPYQ5-Dq-BWW-f.mjs";import"./chunk-DXB73IDG-DfmyzFzL.mjs";import"./chunk-5QMZ5MUS-SLhNX8t9.mjs";import"./chunk-24IMIIXA-_PX4ITYZ.mjs";import{n as e}from"./chunk-OARHFVLG-DGpNgI6K.mjs";export{e as awkCommand2};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as e}from"./chunk-QJ7O6ZN3-BH67tCjg.mjs";export{e as base64Command};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as e}from"./chunk-ALLTKNUZ-BMiTDN50.mjs";export{e as basenameCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{i as e,t}from"./chunk-D6CWQ5DW-BudNEuOo.mjs";export{e as bashCommand,t as shCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as e}from"./chunk-TXBZCHCQ-l48TczF5.mjs";export{e as catCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as e}from"./chunk-4GTNDTRF-_OVmXcJ-.mjs";export{e as chmodCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{n as e}from"./chunk-LL3S3NLB-DxXgE3kY.mjs";export{e as clearCommand};
@@ -1 +0,0 @@
1
- import{n as e,r as t,s as n}from"./colors-D0wh7lK1.mjs";export{e as dim,t as error,n as warning};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as e}from"./chunk-LWEGUNWT-BALY4RLC.mjs";export{e as column};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as e}from"./chunk-Z7JVV2SM-BzR-yvwK.mjs";export{e as commCommand};
@@ -1,2 +0,0 @@
1
- import"./dist-DikIN25T.mjs";var e=`0.8.0-beta.17`;const t=`config.yml`,n=e;export{n,t};
2
- //# sourceMappingURL=constants-EVa8rJ0p.mjs.map
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as e}from"./chunk-NUYSJFDK-BVw8oahq.mjs";export{e as cpCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{n as e}from"./chunk-SDNKECQQ-C3GEf3VZ.mjs";export{e as cutCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{n as e}from"./chunk-D7MEQ3VN-Csvth_Ss.mjs";export{e as dateCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as e}from"./chunk-TLSUDHID-6EWOySH2.mjs";export{e as diffCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{n as e}from"./chunk-4Q4SM6WR-DDQRsilN.mjs";export{e as dirnameCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as e}from"./chunk-RPNGRAAP-BughPjdR.mjs";export{e as duCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as e}from"./chunk-GCTKCWKD-Deqi1D_N.mjs";export{e as echoCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{i as e,t}from"./chunk-NAERJDUW-B3fduMx2.mjs";export{e as envCommand,t as printenvCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as e}from"./chunk-VJFXDYWH-IiUXkKX0.mjs";export{e as expand};
@@ -1 +0,0 @@
1
- import"./chunk-YNYSPYQ5-Dq-BWW-f.mjs";import{w as e}from"./chunk-FEIOJCZD-Vm1q1kLH.mjs";import"./chunk-DXB73IDG-DfmyzFzL.mjs";export{e as isArray};
@@ -1 +0,0 @@
1
- import"./chunk-YNYSPYQ5-Dq-BWW-f.mjs";import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{n as e}from"./chunk-YFG2CMIF-CVDz5Fsh.mjs";export{e as exprCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as e}from"./chunk-CR5AFCPT-BBd9E4Jo.mjs";export{e as fileCommand};
@@ -1 +0,0 @@
1
- import"./chunk-YNYSPYQ5-Dq-BWW-f.mjs";import"./chunk-DXB73IDG-DfmyzFzL.mjs";import"./chunk-J642UCRS-D2hPh3Cf.mjs";import{n as e}from"./chunk-LPQPILI2-8E8WwnE3.mjs";export{e as findCommand};
@@ -1,2 +0,0 @@
1
- import"./chunk-YNYSPYQ5-Dq-BWW-f.mjs";import"./chunk-CWQS3NFK-BQ5SUtd7.mjs";import"./chunk-DXB73IDG-DfmyzFzL.mjs";import"./chunk-5QMZ5MUS-SLhNX8t9.mjs";import"./chunk-A5O5YHGN-DQP-O5US.mjs";import"./chunk-24IMIIXA-_PX4ITYZ.mjs";import{i as e,n as t}from"./chunk-VOBGTVA6-BT7gUxqf.mjs";import{t as n}from"./chunk-OARHFVLG-DGpNgI6K.mjs";import{n as r}from"./chunk-QJ7O6ZN3-BH67tCjg.mjs";import{n as i}from"./chunk-ALLTKNUZ-BMiTDN50.mjs";import{n as ee,r as te}from"./chunk-D6CWQ5DW-BudNEuOo.mjs";import{n as a}from"./chunk-TXBZCHCQ-l48TczF5.mjs";import{n as o}from"./chunk-4GTNDTRF-_OVmXcJ-.mjs";import{t as s}from"./chunk-LL3S3NLB-DxXgE3kY.mjs";import{n as c}from"./chunk-LWEGUNWT-BALY4RLC.mjs";import{n as l}from"./chunk-Z7JVV2SM-BzR-yvwK.mjs";import{n as u}from"./chunk-NUYSJFDK-BVw8oahq.mjs";import{t as d}from"./chunk-SDNKECQQ-C3GEf3VZ.mjs";import{t as f}from"./chunk-D7MEQ3VN-Csvth_Ss.mjs";import{n as p}from"./chunk-TLSUDHID-6EWOySH2.mjs";import{t as m}from"./chunk-4Q4SM6WR-DDQRsilN.mjs";import{n as h}from"./chunk-RPNGRAAP-BughPjdR.mjs";import{n as g}from"./chunk-GCTKCWKD-Deqi1D_N.mjs";import{n as _,r as v}from"./chunk-NAERJDUW-B3fduMx2.mjs";import{n as y}from"./chunk-VJFXDYWH-IiUXkKX0.mjs";import{t as b}from"./chunk-YFG2CMIF-CVDz5Fsh.mjs";import{n as x}from"./chunk-CR5AFCPT-BBd9E4Jo.mjs";import"./chunk-J642UCRS-D2hPh3Cf.mjs";import{t as S}from"./chunk-LPQPILI2-8E8WwnE3.mjs";import{t as C}from"./chunk-BRGMQKJV-Dr9Z7G7y.mjs";import"./chunk-SYMJJMQ4-0QtKvQIP.mjs";import"./chunk-7TSDKFEO-a-GUGBTu.mjs";import"./chunk-BBXLRYSX-Cxoye6wj.mjs";import{n as w}from"./chunk-XORM457F-BAW3OKIy.mjs";import"./chunk-F55TLFGB-CezmwFJN.mjs";import{t as T}from"./chunk-UNYNJIFU-BbdoO4yb.mjs";import{r as E}from"./chunk-HWBSOZZR-B0-Qfe0T.mjs";import{n as D}from"./chunk-MDLLFABN-oBQf6bGE.mjs";import{n as O}from"./chunk-MLXIYONF-CQ5Q9uTP.mjs";import{n as k}from"./chunk-A65PWWJC-D7J5l9eq.mjs";import{t as A}from"./chunk-MHTUABJP-dKmK6Hw7.mjs";import{n as j}from"./chunk-4HHKTUW3-Dm69hDaZ.mjs";import{n as M}from"./chunk-HJQJAYMS-Ci3vsKQW.mjs";import{n as N}from"./chunk-PP6PSHAB-DMC_XCfO.mjs";import{i as P,n as F,o as I}from"./chunk-LTZRCH7N-GAjTFNwG.mjs";import{t as L}from"./chunk-YTNYSM6T-KUvMCIKS.mjs";import{t as R}from"./chunk-Z6LRHWXI-CF_r-CgG.mjs";import{n as z}from"./chunk-A7A2DBEE-PLfkXLI4.mjs";import{t as B}from"./chunk-APT7OOP2-CXHnSuct.mjs";import{n as V}from"./chunk-XKQRETAK-cVWA9gEB.mjs";import{n as H}from"./chunk-5V6VZH6T-BCr5_GDF.mjs";import{n as U,r as W}from"./chunk-R6QSAL5T-CtbJTvt9.mjs";import{n as G}from"./chunk-YCFVLTST-PFJX6AMj.mjs";import{t as K}from"./chunk-GOV5EKKI-DNFJiYJI.mjs";import{t as q}from"./chunk-XVDPCNWR-CtK-Xs2O.mjs";import{n as J}from"./chunk-NCNPKYJZ-BFGan4lR.mjs";import{t as ne}from"./chunk-TOMNU26N-BjLxRX8P.mjs";import{t as Y}from"./chunk-PYSFUGCK-CY7pclEB.mjs";import{t as X}from"./chunk-VYOJP4TV-BvibOnKG.mjs";import{t as Z}from"./chunk-MYE6AGBJ-B4pRo9ma.mjs";import{t as re}from"./chunk-A7ICOL4V-Drb3XsEL.mjs";import{t as ie}from"./chunk-55VFSPNA-DVZfQAzN.mjs";import{n as ae}from"./chunk-WKFATFPP-DCZdrA8x.mjs";import{n as oe}from"./chunk-JVPRLUMK-DnQCNjpq.mjs";import{t as se}from"./chunk-62RKD26F-Xy18vjr1.mjs";import{t as ce}from"./chunk-QCDB2VPH-D1RuXtOm.mjs";import{t as le}from"./chunk-F23WWYKW-DST0dB7V.mjs";import{n as ue}from"./chunk-D4J545R4-C8nMOauR.mjs";import{t as de}from"./chunk-DCAAORBQ-BdrR5ttw.mjs";import{n as fe}from"./chunk-GXVXFKBA-993FoPmq.mjs";import{n as pe}from"./chunk-5QVNJEHU-BvsipSFW.mjs";import"./chunk-VLGZJRPG-B678hnuU.mjs";import{a as me,n as he,o as ge}from"./chunk-YS3AZT3J-DRSVwRFh.mjs";import{n as _e}from"./chunk-NYQYO467-nPa6J2DD.mjs";import{n as ve}from"./chunk-OL3S66CO-DtsweltN.mjs";import{t as ye}from"./chunk-KMEYNNUA-DfdK88O_.mjs";import{t as be}from"./chunk-MIZPJHVH-BPfxJ3C2.mjs";import{n as xe}from"./chunk-A4JSPFCI-D3-Pg2lq.mjs";import{t as Q}from"./chunk-PBXLG62G-Ci7A7XGA.mjs";import{t as Se}from"./chunk-A4HU7SVR-hefV_YmW.mjs";import{t as Ce}from"./chunk-HJWBQKYG-UZig4wUt.mjs";import{t as we}from"./chunk-64BAICW3-CTJNEx4Q.mjs";import{n as Te}from"./chunk-T56QNPHK-DjHqXy9T.mjs";import{n as Ee}from"./chunk-V7TAPXDL-CnKUp2df.mjs";import{n as De}from"./chunk-MDDMCKUK-DD6paciv.mjs";import{t as Oe}from"./chunk-OCS6LSEM-WwUGJ0am.mjs";import{n as ke}from"./chunk-OCLXQMOG-Bktk24jL.mjs";var Ae=[g,a,Te,Ee,De,Oe,ke,be,u,xe,Q,o,Se,Ce,we,de,fe,pe,ge,he,me,_e,ve,n,ye,ae,l,d,oe,se,ce,le,ue,y,Y,X,Z,c,re,ie,S,i,m,q,h,_,v,e,t,J,ne,W,U,s,te,ee,G,r,p,f,K,L,R,z,b,B,V,H,x,D,O,k,A,j,M,N,P,F,I,C,w,T,E];function je(){return Ae}var $=new Map;for(let e of je())$.set(e.name,new Set(e.flags.map(e=>e.flag)));function Me(e,t,n){let r=$.get(t);if(!(!r||r.size===0))for(let i of n)r.has(i)&&e.hit(`cmd:flag:${t}:${i}`)}export{Me as emitFlagCoverage};
2
- //# sourceMappingURL=flag-coverage-QT4N2Z44-g6MqLsWy.mjs.map
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as e}from"./chunk-D4J545R4-C8nMOauR.mjs";export{e as fold};
@@ -1 +0,0 @@
1
- import"./chunk-YNYSPYQ5-Dq-BWW-f.mjs";import"./chunk-DXB73IDG-DfmyzFzL.mjs";import"./chunk-J642UCRS-D2hPh3Cf.mjs";import"./chunk-VLGZJRPG-B678hnuU.mjs";import{i as e,r as t,t as n}from"./chunk-YS3AZT3J-DRSVwRFh.mjs";export{t as egrepCommand,n as fgrepCommand,e as grepCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{a as e,r as t,t as n}from"./chunk-LTZRCH7N-GAjTFNwG.mjs";export{t as gunzipCommand,n as gzipCommand,e as zcatCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{n as e}from"./chunk-64BAICW3-CTJNEx4Q.mjs";export{e as headCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as e}from"./chunk-MLXIYONF-CQ5Q9uTP.mjs";export{e as helpCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as e}from"./chunk-NCNPKYJZ-BFGan4lR.mjs";export{e as historyCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as e}from"./chunk-4HHKTUW3-Dm69hDaZ.mjs";export{e as hostname};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as e}from"./chunk-MDLLFABN-oBQf6bGE.mjs";export{e as htmlToMarkdownCommand};