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

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 (323) hide show
  1. package/dist/alias-JE7RI5QX-efDjrMx2.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-DtLpXdjb.mjs +1 -0
  5. package/dist/{banner-BEKwr_uU.mjs → banner-B50dFv2P.mjs} +2 -2
  6. package/dist/base64-4YMZCVJ5-CU8ZX5_r.mjs +1 -0
  7. package/dist/basename-AA2KJYZQ-DhzFpliQ.mjs +1 -0
  8. package/dist/bash-IJWYRKFO-CFhCRRDI.mjs +1 -0
  9. package/dist/cat-RDUMLXKC-C7bPj8CX.mjs +1 -0
  10. package/dist/chmod-SYMGL4JA-Vd4mNaO6.mjs +1 -0
  11. package/dist/{chokidar-CblsKfnx.mjs → chokidar-bodkFATS.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-CZwQds6b.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-Cj9xwx5n.mjs} +2 -2
  17. package/dist/{chunk-4HHKTUW3-Dm69hDaZ.mjs → chunk-4HHKTUW3-vl2VvrxO.mjs} +1 -1
  18. package/dist/{chunk-4Q4SM6WR-DDQRsilN.mjs → chunk-4Q4SM6WR-CnjKels7.mjs} +2 -2
  19. package/dist/{chunk-55VFSPNA-DVZfQAzN.mjs → chunk-55VFSPNA-CpHWiNKz.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-VDWAYjZp.mjs} +2 -2
  22. package/dist/{chunk-5V6VZH6T-BCr5_GDF.mjs → chunk-5V6VZH6T-do4s5rfi.mjs} +2 -2
  23. package/dist/{chunk-62RKD26F-Xy18vjr1.mjs → chunk-62RKD26F-BHqwRw1Q.mjs} +2 -2
  24. package/dist/{chunk-64BAICW3-CTJNEx4Q.mjs → chunk-64BAICW3-BMdE0f5T.mjs} +2 -2
  25. package/dist/{chunk-74CEPOFO-D1bzz49u.mjs → chunk-74CEPOFO-C0z9lC1m.mjs} +1 -1
  26. package/dist/{chunk-7L36YK2X-RiPZFKaV.mjs → chunk-7L36YK2X-Dz64z21y.mjs} +1 -1
  27. package/dist/{chunk-7TSDKFEO-a-GUGBTu.mjs → chunk-7TSDKFEO-BgtXzRmn.mjs} +1 -1
  28. package/dist/{chunk-A4HU7SVR-hefV_YmW.mjs → chunk-A4HU7SVR-BA6O5dmE.mjs} +1 -1
  29. package/dist/{chunk-A4JSPFCI-D3-Pg2lq.mjs → chunk-A4JSPFCI-CjuaDMI4.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-DZi-5uJJ.mjs} +2 -2
  32. package/dist/{chunk-A7A2DBEE-PLfkXLI4.mjs → chunk-A7A2DBEE-DjuP9mRq.mjs} +1 -1
  33. package/dist/{chunk-A7ICOL4V-Drb3XsEL.mjs → chunk-A7ICOL4V-CsNH10Cj.mjs} +2 -2
  34. package/dist/{chunk-ALLTKNUZ-BMiTDN50.mjs → chunk-ALLTKNUZ-ktG1E2JV.mjs} +2 -2
  35. package/dist/{chunk-APT7OOP2-CXHnSuct.mjs → chunk-APT7OOP2-DDXAV5aW.mjs} +2 -2
  36. package/dist/{chunk-BBXLRYSX-Cxoye6wj.mjs → chunk-BBXLRYSX-CHIwxnbE.mjs} +2 -2
  37. package/dist/{chunk-BRGMQKJV-Dr9Z7G7y.mjs → chunk-BRGMQKJV-B6o8heJU.mjs} +3 -3
  38. package/dist/{chunk-CR5AFCPT-BBd9E4Jo.mjs → chunk-CR5AFCPT-BIq9uUAS.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-CCIO-cVd.mjs} +2 -2
  41. package/dist/{chunk-D6CWQ5DW-BudNEuOo.mjs → chunk-D6CWQ5DW-SPYYN2W9.mjs} +2 -2
  42. package/dist/{chunk-D7MEQ3VN-Csvth_Ss.mjs → chunk-D7MEQ3VN-DyTkhA0O.mjs} +2 -2
  43. package/dist/{chunk-DCAAORBQ-BdrR5ttw.mjs → chunk-DCAAORBQ-B0zEOPfX.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-BI0Hwpu4.mjs} +1 -1
  46. package/dist/{chunk-EIZGF4BS-8bsVXqW0.mjs → chunk-EIZGF4BS-CFSJBS7X.mjs} +2 -2
  47. package/dist/{chunk-F23WWYKW-DST0dB7V.mjs → chunk-F23WWYKW-PCCeTXC0.mjs} +2 -2
  48. package/dist/{chunk-F55TLFGB-CezmwFJN.mjs → chunk-F55TLFGB-BjLmVjUv.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-BmcxuuIb.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-ZQnP1CHh.mjs} +2 -2
  53. package/dist/{chunk-GXVXFKBA-993FoPmq.mjs → chunk-GXVXFKBA-BjCr3n0J.mjs} +2 -2
  54. package/dist/{chunk-HDQ56CKY-pGV4pOJA.mjs → chunk-HDQ56CKY-CAa8lpsa.mjs} +2 -2
  55. package/dist/{chunk-HJQJAYMS-Ci3vsKQW.mjs → chunk-HJQJAYMS-BJ6mQDtx.mjs} +1 -1
  56. package/dist/{chunk-HJWBQKYG-UZig4wUt.mjs → chunk-HJWBQKYG-bXsUFwYJ.mjs} +2 -2
  57. package/dist/{chunk-HWBSOZZR-B0-Qfe0T.mjs → chunk-HWBSOZZR-BnBmxxbP.mjs} +2 -2
  58. package/dist/{chunk-HWKDQ44K-CPSjqtR_.mjs → chunk-HWKDQ44K-CqYAsq6Y.mjs} +2 -2
  59. package/dist/{chunk-I57KEIP3-C9JW7Nfp.mjs → chunk-I57KEIP3-DdVxuzFq.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-C2r2kMIX.mjs} +2 -2
  62. package/dist/{chunk-JVPRLUMK-DnQCNjpq.mjs → chunk-JVPRLUMK-DnW5xoEm.mjs} +2 -2
  63. package/dist/{chunk-KMEYNNUA-DfdK88O_.mjs → chunk-KMEYNNUA-CfJzbe7x.mjs} +2 -2
  64. package/dist/{chunk-LL3S3NLB-DxXgE3kY.mjs → chunk-LL3S3NLB-Bp5rf7JW.mjs} +2 -2
  65. package/dist/{chunk-LPQPILI2-8E8WwnE3.mjs → chunk-LPQPILI2-Cl53lL3L.mjs} +2 -2
  66. package/dist/{chunk-LTZRCH7N-GAjTFNwG.mjs → chunk-LTZRCH7N-DfJJkPJx.mjs} +2 -2
  67. package/dist/{chunk-LWEGUNWT-BALY4RLC.mjs → chunk-LWEGUNWT-n161vC8o.mjs} +2 -2
  68. package/dist/{chunk-MDDMCKUK-DD6paciv.mjs → chunk-MDDMCKUK-UpbrlSCD.mjs} +2 -2
  69. package/dist/{chunk-MDLLFABN-oBQf6bGE.mjs → chunk-MDLLFABN-CIG4752Q.mjs} +2 -2
  70. package/dist/{chunk-MHTUABJP-dKmK6Hw7.mjs → chunk-MHTUABJP-BiNIIeiL.mjs} +1 -1
  71. package/dist/{chunk-MIZPJHVH-BPfxJ3C2.mjs → chunk-MIZPJHVH-By4LVz-q.mjs} +2 -2
  72. package/dist/{chunk-MLXIYONF-CQ5Q9uTP.mjs → chunk-MLXIYONF-BJ3-HbsZ.mjs} +2 -2
  73. package/dist/{chunk-MYE6AGBJ-B4pRo9ma.mjs → chunk-MYE6AGBJ-COyVApLY.mjs} +2 -2
  74. package/dist/{chunk-NAERJDUW-B3fduMx2.mjs → chunk-NAERJDUW-DcGhS608.mjs} +2 -2
  75. package/dist/{chunk-NCNPKYJZ-BFGan4lR.mjs → chunk-NCNPKYJZ-JlutMoZM.mjs} +2 -2
  76. package/dist/{chunk-NUYSJFDK-BVw8oahq.mjs → chunk-NUYSJFDK-jeYiSRAd.mjs} +2 -2
  77. package/dist/{chunk-NYQYO467-nPa6J2DD.mjs → chunk-NYQYO467-DQEO-iaQ.mjs} +2 -2
  78. package/dist/{chunk-OARHFVLG-DGpNgI6K.mjs → chunk-OARHFVLG-D1pHiDZC.mjs} +2 -2
  79. package/dist/{chunk-OCLXQMOG-Bktk24jL.mjs → chunk-OCLXQMOG-D-READ60.mjs} +2 -2
  80. package/dist/{chunk-OCS6LSEM-WwUGJ0am.mjs → chunk-OCS6LSEM-DMu6gG4t.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-Do34XRUA.mjs} +2 -2
  83. package/dist/{chunk-PBXLG62G-Ci7A7XGA.mjs → chunk-PBXLG62G-NJKzdzyr.mjs} +2 -2
  84. package/dist/{chunk-PP6PSHAB-DMC_XCfO.mjs → chunk-PP6PSHAB-BvF0x4iT.mjs} +1 -1
  85. package/dist/{chunk-PYSFUGCK-CY7pclEB.mjs → chunk-PYSFUGCK-BcoxeVCt.mjs} +2 -2
  86. package/dist/{chunk-QCDB2VPH-D1RuXtOm.mjs → chunk-QCDB2VPH-C_N5kL_7.mjs} +2 -2
  87. package/dist/{chunk-QJ7O6ZN3-BH67tCjg.mjs → chunk-QJ7O6ZN3-jalYE6Co.mjs} +2 -2
  88. package/dist/{chunk-R6QSAL5T-CtbJTvt9.mjs → chunk-R6QSAL5T-Dz1OE9ug.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-DxUHXpZJ.mjs} +2 -2
  91. package/dist/{chunk-SDNKECQQ-C3GEf3VZ.mjs → chunk-SDNKECQQ-Ck1aHlYw.mjs} +2 -2
  92. package/dist/{chunk-SYMJJMQ4-0QtKvQIP.mjs → chunk-SYMJJMQ4-D6SUINQk.mjs} +2 -2
  93. package/dist/{chunk-T56QNPHK-DjHqXy9T.mjs → chunk-T56QNPHK-Ct_sA5lO.mjs} +2 -2
  94. package/dist/{chunk-TLSUDHID-6EWOySH2.mjs → chunk-TLSUDHID-G7DnssPc.mjs} +2 -2
  95. package/dist/{chunk-TOMNU26N-BjLxRX8P.mjs → chunk-TOMNU26N-BrhIF6tP.mjs} +2 -2
  96. package/dist/{chunk-TXBZCHCQ-l48TczF5.mjs → chunk-TXBZCHCQ-CeEp-Se9.mjs} +2 -2
  97. package/dist/{chunk-UNYNJIFU-BbdoO4yb.mjs → chunk-UNYNJIFU-0JK7xrZ6.mjs} +3 -3
  98. package/dist/{chunk-V7TAPXDL-CnKUp2df.mjs → chunk-V7TAPXDL-BoOBWTu6.mjs} +2 -2
  99. package/dist/{chunk-VJFXDYWH-IiUXkKX0.mjs → chunk-VJFXDYWH-BNgd594C.mjs} +2 -2
  100. package/dist/{chunk-VLGZJRPG-B678hnuU.mjs → chunk-VLGZJRPG-CL-TEQ8j.mjs} +2 -2
  101. package/dist/{chunk-VOBGTVA6-BT7gUxqf.mjs → chunk-VOBGTVA6-D3aGZV4E.mjs} +2 -2
  102. package/dist/{chunk-VYOJP4TV-BvibOnKG.mjs → chunk-VYOJP4TV-CdetNLoW.mjs} +2 -2
  103. package/dist/{chunk-WKFATFPP-DCZdrA8x.mjs → chunk-WKFATFPP-DjPLTf4Y.mjs} +2 -2
  104. package/dist/{chunk-X2AJGDEF-BaH6i1Rq.mjs → chunk-X2AJGDEF-B6jpFFxc.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-M6LmX8sD.mjs} +2 -2
  107. package/dist/{chunk-XORM457F-BAW3OKIy.mjs → chunk-XORM457F-cqdokA2L.mjs} +2 -2
  108. package/dist/{chunk-XVDPCNWR-CtK-Xs2O.mjs → chunk-XVDPCNWR-Cmfwb_-1.mjs} +2 -2
  109. package/dist/{chunk-YCFVLTST-PFJX6AMj.mjs → chunk-YCFVLTST-BmaROM0X.mjs} +2 -2
  110. package/dist/{chunk-YFG2CMIF-CVDz5Fsh.mjs → chunk-YFG2CMIF-BkByVZEv.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-UyG_PuPK.mjs} +2 -2
  113. package/dist/{chunk-YTNYSM6T-KUvMCIKS.mjs → chunk-YTNYSM6T-DTKgzm9i.mjs} +2 -2
  114. package/dist/{chunk-Z6LRHWXI-CF_r-CgG.mjs → chunk-Z6LRHWXI-cGXlZt55.mjs} +2 -2
  115. package/dist/{chunk-Z7JVV2SM-BzR-yvwK.mjs → chunk-Z7JVV2SM-Bl6lCuB7.mjs} +2 -2
  116. package/dist/clear-5CZ5X4YR-CZTiTamg.mjs +1 -0
  117. package/dist/cli.d.mts +1 -3
  118. package/dist/cli.mjs +6 -6
  119. package/dist/colors-B75xIh3W.mjs +1 -0
  120. package/dist/{colors-D0wh7lK1.mjs → colors-DEbd2OH6.mjs} +1 -1
  121. package/dist/column-WLPMMSTS-CNuhilhH.mjs +1 -0
  122. package/dist/comm-5SLSESQG-vHQEXlij.mjs +1 -0
  123. package/dist/constants-wXFGHCVz.mjs +2 -0
  124. package/dist/cp-XOYR4ABJ-0aLgdfH1.mjs +1 -0
  125. package/dist/{curl-47BFPSFW-Dq2QRfS5.mjs → curl-47BFPSFW-BMxjPnYW.mjs} +2 -2
  126. package/dist/cut-OPC3VAGB-CxrqvGsD.mjs +1 -0
  127. package/dist/date-DD7FVA2V-D4GonULP.mjs +1 -0
  128. package/dist/diff-HJF2MPDN-sr89vCG1.mjs +1 -0
  129. package/dist/dirname-LEMTZZFS-CIb4bOmS.mjs +1 -0
  130. package/dist/{dist-3m799Jis.mjs → dist-BuzCfp9X.mjs} +1 -1
  131. package/dist/{dist-DikIN25T.mjs → dist-DPw5LLnH.mjs} +20 -16
  132. package/dist/du-WO2ENHXQ-3VzxtHpI.mjs +1 -0
  133. package/dist/echo-O45JWWI2-mKZHqSMQ.mjs +1 -0
  134. package/dist/env-5EPCWSXR-C7Bq-yJ_.mjs +1 -0
  135. package/dist/{execAsync-0jii24p9.mjs → execAsync-BIFHQBc2.mjs} +1 -1
  136. package/dist/{execAsync-Czqc-yAz.mjs → execAsync-CulVJBMN.mjs} +1 -1
  137. package/dist/{execAsync-DgmLXmTx.mjs → execAsync-DuQoqWaW.mjs} +1 -1
  138. package/dist/expand-DTNXU4LQ-DFXcR3nQ.mjs +1 -0
  139. package/dist/expansion-ENLSRCXJ-Cy_aJotT.mjs +1 -0
  140. package/dist/expr-5T3UU5KE-scZx9pzK.mjs +1 -0
  141. package/dist/file-ZIGAJ4YS-fs-KxMzG.mjs +1 -0
  142. package/dist/find-TPUOAIUQ-CuIPK3QM.mjs +1 -0
  143. package/dist/flag-coverage-QT4N2Z44-BekNEYqX.mjs +2 -0
  144. package/dist/fold-LDSORVYE-CeR-eCN3.mjs +1 -0
  145. package/dist/{getMachineId-bsd-BCJXEJCn.mjs → getMachineId-bsd-2L5G7_su.mjs} +2 -2
  146. package/dist/{getMachineId-bsd-D7C80Q-x.mjs → getMachineId-bsd-B3tMTZYU.mjs} +2 -2
  147. package/dist/{getMachineId-bsd-GIcY1fmf.mjs → getMachineId-bsd-Cvzi8KBq.mjs} +2 -2
  148. package/dist/{getMachineId-darwin-C9wsuHP1.mjs → getMachineId-darwin-Bd5VzCjY.mjs} +2 -2
  149. package/dist/{getMachineId-darwin-D9y6ky_l.mjs → getMachineId-darwin-CfwcXGb7.mjs} +2 -2
  150. package/dist/{getMachineId-darwin-DG876t7S.mjs → getMachineId-darwin-DeoHX7qP.mjs} +2 -2
  151. package/dist/{getMachineId-linux-Bt9mk0EE.mjs → getMachineId-linux-CcNWtamz.mjs} +1 -1
  152. package/dist/{getMachineId-linux-D9atImpV.mjs → getMachineId-linux-D9IxoAS_.mjs} +1 -1
  153. package/dist/{getMachineId-linux-BJESQahL.mjs → getMachineId-linux-DorHqq4U.mjs} +1 -1
  154. package/dist/{getMachineId-unsupported-Dabs3aBp.mjs → getMachineId-unsupported-4tj3lZwx.mjs} +1 -1
  155. package/dist/{getMachineId-unsupported-cApRznzG.mjs → getMachineId-unsupported-BsUPTpLT.mjs} +1 -1
  156. package/dist/{getMachineId-unsupported-DAbsbHrs.mjs → getMachineId-unsupported-DVyR99z0.mjs} +1 -1
  157. package/dist/{getMachineId-win-CH98qgwX.mjs → getMachineId-win-B1TmJQki.mjs} +2 -2
  158. package/dist/{getMachineId-win-CU_iAQo9.mjs → getMachineId-win-BV76TOt2.mjs} +2 -2
  159. package/dist/{getMachineId-win-1MPHaim9.mjs → getMachineId-win-CHw6qIdR.mjs} +2 -2
  160. package/dist/{gh-detect-DaEGWQM-.mjs → gh-detect-Dpt-CKPz.mjs} +2 -2
  161. package/dist/grep-3AIAIJVR-yltZlbkq.mjs +1 -0
  162. package/dist/gzip-AQXSGOVS-C2aodsua.mjs +1 -0
  163. package/dist/head-HT2B6D2J-D34dk9fJ.mjs +1 -0
  164. package/dist/help-VVWX7SA5-DgXbjOE6.mjs +1 -0
  165. package/dist/history-J4QRNGRO-BR1Zfnqd.mjs +1 -0
  166. package/dist/hostname-BK6HG2DE-BVkYaPRN.mjs +1 -0
  167. package/dist/html-to-markdown-TFCECAGV-CBxYKUOK.mjs +1 -0
  168. package/dist/index.mjs +1 -1
  169. package/dist/init-BTX_U9QM.mjs +1 -0
  170. package/dist/{init-DX-Cg7hF.mjs → init-GoEmWzaD.mjs} +4 -4
  171. package/dist/{is-object-BXWpSxBI.mjs → is-object-Cg453afR.mjs} +1 -1
  172. package/dist/join-GG2LDHE5-DHW7DZDo.mjs +1 -0
  173. package/dist/jq-ODXZBPLY-CrgXuOBN.mjs +1 -0
  174. package/dist/{js-exec-M6UR76J5-D6BVeQcA.mjs → js-exec-M6UR76J5-uFKSo4_t.mjs} +2 -2
  175. package/dist/{lib-Dl2j2VNl.mjs → lib-BwSMLHoo.mjs} +1 -1
  176. package/dist/ln-4TRFBYAT-CyQo_n4E.mjs +1 -0
  177. package/dist/loader-D9Nu6hds.mjs +1 -0
  178. package/dist/{loader-0yiiW-5-.mjs → loader-Dt2XpPBT.mjs} +2 -2
  179. package/dist/ls-KSXFZCWH-CRodiNh-.mjs +1 -0
  180. package/dist/{lzma-BSHkPrAt.mjs → lzma-DTmD1JZZ.mjs} +1 -1
  181. package/dist/md5sum-INMIK4DX-QmiH_MJL.mjs +1 -0
  182. package/dist/mkdir-TDEMSB6C-CR1CBosg.mjs +1 -0
  183. package/dist/mv-Z6MORUFL-BgiBKbP1.mjs +1 -0
  184. package/dist/nl-U5YJDM32-KF_RCDUd.mjs +1 -0
  185. package/dist/od-VJEF2UR5-C6xKBu2X.mjs +1 -0
  186. package/dist/{open-browser-C6LU_1mt.mjs → open-browser-BmvueRdP.mjs} +1 -1
  187. package/dist/paste-7N6AFSDS-Dg1QibsE.mjs +1 -0
  188. package/dist/preview-B5VPbEKG.mjs +1 -0
  189. package/dist/{preview-Cm1-EGf1.mjs → preview-JGh7QSiL.mjs} +2 -2
  190. package/dist/printf-CX64KX2P-DrsckbmU.mjs +1 -0
  191. package/dist/pwd-D4OZ7N27-D1wV-oci.mjs +1 -0
  192. package/dist/{python3-AUFTPCU6-CcfVkAVy.mjs → python3-AUFTPCU6-C5b4hhkC.mjs} +2 -2
  193. package/dist/readlink-MI4GCHJF-DonlYCHU.mjs +1 -0
  194. package/dist/{repair-launch-json-DIJDH5Tl.mjs → repair-launch-json-CS3UWoZE.mjs} +2 -2
  195. package/dist/{repair-mcp-configs-DisocOil.mjs → repair-mcp-configs-DYJWbOWA.mjs} +2 -2
  196. package/dist/repair-skills-AKWqlVA5.mjs +1 -0
  197. package/dist/{repair-skills-B0q960oj.mjs → repair-skills-C-YEuEjC.mjs} +2 -2
  198. package/dist/rev-XOSYPP45--2K1Tisa.mjs +1 -0
  199. package/dist/rg-FOQSCCX3-Cgtjn0UI.mjs +1 -0
  200. package/dist/rm-RTZG23RL-C8BHrpVS.mjs +1 -0
  201. package/dist/rmdir-XTQXT7RK-BO-eezpO.mjs +1 -0
  202. package/dist/sed-VFTTATXJ-2o3hfWr4.mjs +1 -0
  203. package/dist/seq-RN5ZUASB-CcN3L-vl.mjs +1 -0
  204. package/dist/sha1sum-VJPNLNU6-DOXpkMaW.mjs +1 -0
  205. package/dist/sha256sum-PI32XWXY-XhAjHRaY.mjs +1 -0
  206. package/dist/sleep-VZFPZFWA-Cs8-arC9.mjs +1 -0
  207. package/dist/sort-DCNRDA7U-CtCi04dh.mjs +1 -0
  208. package/dist/split-SITCSYCZ-DCc0Mzxk.mjs +1 -0
  209. package/dist/sqlite3-56UMWEY3-DJCXsRqc.mjs +1 -0
  210. package/dist/{src-Q5deioVX.mjs → src-CO_kNOTR.mjs} +2 -2
  211. package/dist/{start-DUoyJgxA.mjs → start-B1bWSW7K.mjs} +2 -2
  212. package/dist/start-DXl7Y4c8.mjs +1 -0
  213. package/dist/stat-BT5A227F-DMRGj-aP.mjs +1 -0
  214. package/dist/strings-7PLOGTPD-BGCDhJ6U.mjs +1 -0
  215. package/dist/tac-SJGXQ4T2-C6_7XTfI.mjs +1 -0
  216. package/dist/tail-S5ULNTJU-Bev1L5kg.mjs +1 -0
  217. package/dist/tar-ANUBEFJY-B1DlCntf.mjs +1 -0
  218. package/dist/tee-O7VXZDCO-BKK17j9A.mjs +1 -0
  219. package/dist/time-DEUO3QV2-mftoFlTH.mjs +1 -0
  220. package/dist/timeout-VRKMCG72-CYIDroN4.mjs +1 -0
  221. package/dist/touch-DX2IJOQ4-wJOgRjyR.mjs +1 -0
  222. package/dist/tr-2HXZRDSW-BgDxTr5P.mjs +1 -0
  223. package/dist/tree-LYXBS7DC-BthnNlsm.mjs +1 -0
  224. package/dist/true-WHJNXCHG-Bpxwx17E.mjs +1 -0
  225. package/dist/unexpand-RGTMIGZM-Bto0CLOO.mjs +1 -0
  226. package/dist/uniq-SUNANL47-tcAfY8Zs.mjs +1 -0
  227. package/dist/wc-TQB3VNOX-DKTKEtPE.mjs +1 -0
  228. package/dist/which-XZHEH76L-CZE6nZUS.mjs +1 -0
  229. package/dist/whoami-DGKU3D2X-Bc_v2Wnp.mjs +1 -0
  230. package/dist/{write-project-skill-Bh1t5k11.mjs → write-project-skill-Gn1-HXPi.mjs} +2 -2
  231. package/dist/xan-BXDXYEIB-ONXMA6qS.mjs +1 -0
  232. package/dist/xan-view-ECQUO7AJ-ygrmONWn.mjs +1 -0
  233. package/dist/xargs-I6EZUCYF-DM25L0ls.mjs +1 -0
  234. package/dist/yazl-BKdvfH0Q.mjs +2 -0
  235. package/dist/yazl-Cw7cic8l.mjs +1 -0
  236. package/dist/yq-MJMAR36V-D-T0W2QB.mjs +1 -0
  237. package/package.json +1 -1
  238. package/dist/alias-JE7RI5QX-CjsckksZ.mjs +0 -1
  239. package/dist/awk2-POPGKRAI-DeuggFRh.mjs +0 -1
  240. package/dist/base64-4YMZCVJ5-Cj7j5Pz8.mjs +0 -1
  241. package/dist/basename-AA2KJYZQ-DSRxx5mc.mjs +0 -1
  242. package/dist/bash-IJWYRKFO-DFBZjU3V.mjs +0 -1
  243. package/dist/cat-RDUMLXKC-CI2IrKwx.mjs +0 -1
  244. package/dist/chmod-SYMGL4JA-D31pO-B4.mjs +0 -1
  245. package/dist/clear-5CZ5X4YR-CwAD0ujG.mjs +0 -1
  246. package/dist/colors-Dl3c2q5r.mjs +0 -1
  247. package/dist/column-WLPMMSTS-OtgXQJPP.mjs +0 -1
  248. package/dist/comm-5SLSESQG-Dbe_0JM-.mjs +0 -1
  249. package/dist/constants-EVa8rJ0p.mjs +0 -2
  250. package/dist/cp-XOYR4ABJ-Fs-BUNPK.mjs +0 -1
  251. package/dist/cut-OPC3VAGB-QytesYLS.mjs +0 -1
  252. package/dist/date-DD7FVA2V-Cg5stPCO.mjs +0 -1
  253. package/dist/diff-HJF2MPDN-DRmjT8LD.mjs +0 -1
  254. package/dist/dirname-LEMTZZFS-BU2v6Jk9.mjs +0 -1
  255. package/dist/du-WO2ENHXQ-BcC6aUKa.mjs +0 -1
  256. package/dist/echo-O45JWWI2-D_LDH8mS.mjs +0 -1
  257. package/dist/env-5EPCWSXR-C4ozdy42.mjs +0 -1
  258. package/dist/expand-DTNXU4LQ-CHt1YsOk.mjs +0 -1
  259. package/dist/expansion-ENLSRCXJ-CcahEplO.mjs +0 -1
  260. package/dist/expr-5T3UU5KE-BL4xVSIz.mjs +0 -1
  261. package/dist/file-ZIGAJ4YS-CT98h277.mjs +0 -1
  262. package/dist/find-TPUOAIUQ-BE_RhPSK.mjs +0 -1
  263. package/dist/flag-coverage-QT4N2Z44-g6MqLsWy.mjs +0 -2
  264. package/dist/fold-LDSORVYE-CnErgTj9.mjs +0 -1
  265. package/dist/grep-3AIAIJVR-02E3dSfi.mjs +0 -1
  266. package/dist/gzip-AQXSGOVS-UkVql__3.mjs +0 -1
  267. package/dist/head-HT2B6D2J-C2sNM7Dv.mjs +0 -1
  268. package/dist/help-VVWX7SA5-CZumUR0P.mjs +0 -1
  269. package/dist/history-J4QRNGRO-rwbd7U40.mjs +0 -1
  270. package/dist/hostname-BK6HG2DE-BQG1bQvh.mjs +0 -1
  271. package/dist/html-to-markdown-TFCECAGV-Db230ZWS.mjs +0 -1
  272. package/dist/init-DaWRJoym.mjs +0 -1
  273. package/dist/join-GG2LDHE5-Bc_GxS8t.mjs +0 -1
  274. package/dist/jq-ODXZBPLY-B5VN-dXM.mjs +0 -1
  275. package/dist/ln-4TRFBYAT-oG2zzF3W.mjs +0 -1
  276. package/dist/loader-D7lxInHP.mjs +0 -1
  277. package/dist/ls-KSXFZCWH-BWWIeWvm.mjs +0 -1
  278. package/dist/md5sum-INMIK4DX-lBp2yvEW.mjs +0 -1
  279. package/dist/mkdir-TDEMSB6C-DbpQ_xq6.mjs +0 -1
  280. package/dist/mv-Z6MORUFL-CH8FstC-.mjs +0 -1
  281. package/dist/nl-U5YJDM32-VxSz_iJ4.mjs +0 -1
  282. package/dist/od-VJEF2UR5-BniMheOA.mjs +0 -1
  283. package/dist/paste-7N6AFSDS-C1AAbgf8.mjs +0 -1
  284. package/dist/preview-MhkMMvsI.mjs +0 -1
  285. package/dist/printf-CX64KX2P-DjH-DHsP.mjs +0 -1
  286. package/dist/pwd-D4OZ7N27-VQ3RwUo8.mjs +0 -1
  287. package/dist/readlink-MI4GCHJF-L50-Upms.mjs +0 -1
  288. package/dist/repair-skills-oNUU16Sj.mjs +0 -1
  289. package/dist/rev-XOSYPP45-CwKU0j6Z.mjs +0 -1
  290. package/dist/rg-FOQSCCX3-BrvjgaMQ.mjs +0 -1
  291. package/dist/rm-RTZG23RL-_UcxChNg.mjs +0 -1
  292. package/dist/rmdir-XTQXT7RK-BRaqkv9Z.mjs +0 -1
  293. package/dist/sed-VFTTATXJ-CZsNmySp.mjs +0 -1
  294. package/dist/seq-RN5ZUASB-Cg0b6SeB.mjs +0 -1
  295. package/dist/sha1sum-VJPNLNU6-CAg7QQIj.mjs +0 -1
  296. package/dist/sha256sum-PI32XWXY-CFFtkep9.mjs +0 -1
  297. package/dist/sleep-VZFPZFWA-D3Ph1Gn6.mjs +0 -1
  298. package/dist/sort-DCNRDA7U-BePJiuxU.mjs +0 -1
  299. package/dist/split-SITCSYCZ-COiAX9LF.mjs +0 -1
  300. package/dist/sqlite3-56UMWEY3-DN8JOqf2.mjs +0 -1
  301. package/dist/start-DpTR2AVF.mjs +0 -1
  302. package/dist/stat-BT5A227F-NmZL1hMB.mjs +0 -1
  303. package/dist/strings-7PLOGTPD-CUJSASTo.mjs +0 -1
  304. package/dist/tac-SJGXQ4T2-B-fSXHB1.mjs +0 -1
  305. package/dist/tail-S5ULNTJU-CG1c0Pxf.mjs +0 -1
  306. package/dist/tar-ANUBEFJY-DH18Zmoc.mjs +0 -1
  307. package/dist/tee-O7VXZDCO-D_NgfJcm.mjs +0 -1
  308. package/dist/time-DEUO3QV2-DdyaxseS.mjs +0 -1
  309. package/dist/timeout-VRKMCG72-LxpBVg0M.mjs +0 -1
  310. package/dist/touch-DX2IJOQ4-BdSZnvQi.mjs +0 -1
  311. package/dist/tr-2HXZRDSW-QjngBhOg.mjs +0 -1
  312. package/dist/tree-LYXBS7DC-CsfD1mRM.mjs +0 -1
  313. package/dist/true-WHJNXCHG-DJUeGOw7.mjs +0 -1
  314. package/dist/unexpand-RGTMIGZM-gIXCkWyw.mjs +0 -1
  315. package/dist/uniq-SUNANL47-CiH7i9-p.mjs +0 -1
  316. package/dist/wc-TQB3VNOX-D1U1S7L6.mjs +0 -1
  317. package/dist/which-XZHEH76L-CRVfCXCP.mjs +0 -1
  318. package/dist/whoami-DGKU3D2X-COB3yQf8.mjs +0 -1
  319. package/dist/xan-BXDXYEIB-iFQjU_f2.mjs +0 -1
  320. package/dist/xan-view-ECQUO7AJ-BGX-rpom.mjs +0 -1
  321. package/dist/xargs-I6EZUCYF-CqFBjjSK.mjs +0 -1
  322. package/dist/yq-MJMAR36V-B5nTz8YA.mjs +0 -1
  323. /package/dist/{build-GAD37AZK.mjs → build-5_QDpj2G.mjs} +0 -0
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-YNYSPYQ5-Dq-BWW-f.mjs";function t(e,t){return e.replace(/\$(&|\d+|<([^>]+)>)/g,(e,n,r)=>n===`&`?t[0]:r===void 0?t[parseInt(n,10)]??``:t.groups?.[r]??``)}function n(e,n,i={}){let{invertMatch:a=!1,showLineNumbers:o=!1,countOnly:s=!1,countMatches:c=!1,filename:l=``,onlyMatching:u=!1,beforeContext:d=0,afterContext:f=0,maxCount:p=0,contextSeparator:m=`--`,showColumn:h=!1,vimgrep:g=!1,showByteOffset:_=!1,replace:v=null,passthru:y=!1,multiline:b=!1,kResetGroup:x}=i;if(b)return r(e,n,{invertMatch:a,showLineNumbers:o,countOnly:s,countMatches:c,filename:l,onlyMatching:u,beforeContext:d,afterContext:f,maxCount:p,contextSeparator:m,showColumn:h,showByteOffset:_,replace:v,kResetGroup:x});let S=e.split(`
1
+ import{t as e}from"./chunk-YNYSPYQ5-DzToRSq3.mjs";function t(e,t){return e.replace(/\$(&|\d+|<([^>]+)>)/g,(e,n,r)=>n===`&`?t[0]:r===void 0?t[parseInt(n,10)]??``:t.groups?.[r]??``)}function n(e,n,i={}){let{invertMatch:a=!1,showLineNumbers:o=!1,countOnly:s=!1,countMatches:c=!1,filename:l=``,onlyMatching:u=!1,beforeContext:d=0,afterContext:f=0,maxCount:p=0,contextSeparator:m=`--`,showColumn:h=!1,vimgrep:g=!1,showByteOffset:_=!1,replace:v=null,passthru:y=!1,multiline:b=!1,kResetGroup:x}=i;if(b)return r(e,n,{invertMatch:a,showLineNumbers:o,countOnly:s,countMatches:c,filename:l,onlyMatching:u,beforeContext:d,afterContext:f,maxCount:p,contextSeparator:m,showColumn:h,showByteOffset:_,replace:v,kResetGroup:x});let S=e.split(`
2
2
  `),C=S.length,w=C>0&&S[C-1]===``?C-1:C;if(s||c){let e=0,t=(c||u)&&!a;for(let r=0;r<w;r++)if(n.lastIndex=0,t)for(let t=n.exec(S[r]);t!==null;t=n.exec(S[r]))e++,t[0].length===0&&n.lastIndex++;else n.test(S[r])!==a&&e++;return{output:`${l?`${l}:${e}`:String(e)}
3
3
  `,matched:e>0,matchCount:e}}if(d===0&&f===0&&!y){let e=[],r=!1,i=0,s=0;for(let c=0;c<w&&!(p>0&&i>=p);c++){let d=S[c];if(n.lastIndex=0,n.test(d)!==a)if(r=!0,i++,u){n.lastIndex=0;for(let r=n.exec(d);r!==null;r=n.exec(d)){let i=x===void 0?r[0]:r[x]??``,a=v===null?i:t(v,r),u=l?`${l}:`:``;_&&(u+=`${s+r.index}:`),o&&(u+=`${c+1}:`),h&&(u+=`${r.index+1}:`),e.push(u+a),r[0].length===0&&n.lastIndex++}}else if(g){n.lastIndex=0;for(let t=n.exec(d);t!==null;t=n.exec(d)){let r=l?`${l}:`:``;_&&(r+=`${s+t.index}:`),o&&(r+=`${c+1}:`),h&&(r+=`${t.index+1}:`),e.push(r+d),t[0].length===0&&n.lastIndex++}}else{n.lastIndex=0;let r=n.exec(d),i=r?r.index+1:1,a=d;v!==null&&(n.lastIndex=0,a=n.replace(d,(...e)=>{if(e[0].length===0)return``;let n=e,r=e[e.length-1];return typeof r==`object`&&r?(n.groups=r,n.input=e[e.length-2],n.index=e[e.length-3]):(n.input=e[e.length-1],n.index=e[e.length-2]),t(v,n)}));let u=l?`${l}:`:``;_&&(u+=`${s+(r?r.index:0)}:`),o&&(u+=`${c+1}:`),h&&(u+=`${i}:`),e.push(u+a)}s+=d.length+1}return{output:e.length>0?`${e.join(`
4
4
  `)}
@@ -14,4 +14,4 @@ import{t as e}from"./chunk-YNYSPYQ5-Dq-BWW-f.mjs";function t(e,t){return e.repla
14
14
  `:``,matched:t.length>0,matchCount:t.length}}if(C.length===0)return{output:``,matched:!1,matchCount:0};let w=new Set,T=-1,E=[];for(let e of C){let n=Math.max(0,e.startLine-l),r=Math.min(y-1,e.endLine+u);T>=0&&n>T+1&&E.push(f);for(let t=n;t<e.startLine;t++)if(!w.has(t)){w.add(t),T=t;let e=_[t];i&&(e=`${t+1}-${e}`),s&&(e=`${s}-${e}`),E.push(e)}if(c){let t=h===null?e.matchText:h,n=s?`${s}:`:``;m&&(n+=`${e.byteOffset}:`),i&&(n+=`${e.startLine+1}:`),p&&(n+=`${e.column}:`),E.push(n+t);for(let t=e.startLine;t<=e.endLine;t++)w.add(t),T=t}else for(let n=e.startLine;n<=e.endLine&&n<y;n++)if(!w.has(n)){w.add(n),T=n;let r=_[n];h!==null&&n===e.startLine&&(t.lastIndex=0,r=t.replace(r,h));let a=s?`${s}:`:``;m&&n===e.startLine&&(a+=`${e.byteOffset}:`),i&&(a+=`${n+1}:`),p&&n===e.startLine&&(a+=`${e.column}:`),E.push(a+r)}for(let t=e.endLine+1;t<=r;t++)if(!w.has(t)){w.add(t),T=t;let e=_[t];i&&(e=`${t+1}-${e}`),s&&(e=`${s}-${e}`),E.push(e)}}return{output:E.length>0?`${E.join(`
15
15
  `)}
16
16
  `:``,matched:!0,matchCount:C.length}}var i=new Map([[`alpha`,`a-zA-Z`],[`digit`,`0-9`],[`alnum`,`a-zA-Z0-9`],[`lower`,`a-z`],[`upper`,`A-Z`],[`xdigit`,`0-9A-Fa-f`],[`space`,` \\t\\n\\r\\f\\v`],[`blank`,` \\t`],[`punct`,"!-/:-@\\[-`{-~"],[`graph`,`!-~`],[`print`,` -~`],[`cntrl`,`\\x00-\\x1F\\x7F`],[`ascii`,`\\x00-\\x7F`],[`word`,`a-zA-Z0-9_`]]);function a(e){let t=``,n=0;for(;n<e.length;){if(e.slice(n,n+7)===`[[:<:]]`){t+=`\\b`,n+=7;continue}if(e.slice(n,n+7)===`[[:>:]]`){t+=`\\b`,n+=7;continue}if(e[n]===`[`){let r=`[`;for(n++,n<e.length&&(e[n]===`^`||e[n]===`!`)&&(r+=`^`,n++),n<e.length&&e[n]===`]`&&(r+=`\\]`,n++);n<e.length&&e[n]!==`]`;){if(e[n]===`[`&&n+1<e.length&&e[n+1]===`:`){let t=e.indexOf(`:]`,n+2);if(t!==-1){let a=e.slice(n+2,t),o=i.get(a);if(o){r+=o,n=t+2;continue}}}if(e[n]===`\\`&&n+1<e.length){r+=e[n]+e[n+1],n+=2;continue}r+=e[n],n++}n<e.length&&e[n]===`]`&&(r+=`]`,n++),t+=r;continue}if(e[n]===`\\`&&n+1<e.length){t+=e[n]+e[n+1],n+=2;continue}t+=e[n],n++}return t}function o(t,n){let r,i;switch(n.mode){case`fixed`:r=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);break;case`extended`:case`perl`:if(r=a(t),r=r.replace(/\(\?P<([^>]+)>/g,`(?<$1>`),n.mode===`perl`){r=s(r),r=c(r),r=l(r);let e=p(r);r=e.pattern,i=e.kResetGroup}break;default:r=a(t),r=_(r);break}n.wholeWord&&(r=`\\b(?:${r})\\b`),n.lineRegexp&&(r=`^${r}$`);let o=/\\u\{[0-9A-Fa-f]+\}/.test(r),u=`g`+(n.ignoreCase?`i`:``)+(n.multiline?`m`:``)+(n.multilineDotall?`s`:``)+(o?`u`:``);return{regex:e(r,u),kResetGroup:i}}function s(e){let t=``,n=0;for(;n<e.length;)if(e[n]===`\\`&&n+1<e.length&&e[n+1]===`Q`){n+=2;let r=``;for(;n<e.length;){if(e[n]===`\\`&&n+1<e.length&&e[n+1]===`E`){n+=2;break}r+=e[n],n++}t+=r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}else t+=e[n],n++;return t}function c(e){return e.replace(/\\x\{([0-9A-Fa-f]+)\}/g,`\\u{$1}`)}function l(e){let t=``,n=0;for(;n<e.length;){if(e[n]===`(`&&n+1<e.length&&e[n+1]===`?`){let r=e.slice(n).match(/^\(\?([imsx]*)(-[imsx]*)?(:|$|\))/);if(r){let i=r[1]||``,a=r[2]||``,o=r[3];if(o===`:`){let o=n+r[0].length-1,s=u(e,n);if(s!==-1){let r=d(e.slice(o+1,s),i,a);t+=`(?:${r})`,n=s+1;continue}}else if(o===`)`||o===``){n+=r[0].length;continue}}}t+=e[n],n++}return t}function u(e,t){let n=0,r=t;for(;r<e.length;){if(e[r]===`\\`){r+=2;continue}if(e[r]===`[`){for(r++;r<e.length&&e[r]!==`]`;)e[r]===`\\`&&r++,r++;r++;continue}if(e[r]===`(`)n++;else if(e[r]===`)`&&(n--,n===0))return r;r++}return-1}function d(e,t,n){let r=e;return t.includes(`i`)&&(r=f(r)),r}function f(e){let t=``,n=0;for(;n<e.length;){let r=e[n];if(r===`\\`){n+1<e.length?(t+=r+e[n+1],n+=2):(t+=r,n++);continue}if(r===`[`){t+=r,n++,n<e.length&&e[n]===`^`&&(t+=e[n],n++);let i=[];for(;n<e.length&&e[n]!==`]`;)if(e[n]===`\\`)i.push(e[n]),n++,n<e.length&&(i.push(e[n]),n++);else if(e[n]===`-`&&i.length>0&&n+1<e.length&&e[n+1]!==`]`){let t=i[i.length-1],r=e[n+1];i.push(`-`),i.push(r),/[a-z]/.test(t)&&/[a-z]/.test(r)?(i.push(t.toUpperCase()),i.push(`-`),i.push(r.toUpperCase())):/[A-Z]/.test(t)&&/[A-Z]/.test(r)&&(i.push(t.toLowerCase()),i.push(`-`),i.push(r.toLowerCase())),n+=2}else{let t=e[n];if(i.push(t),/[a-zA-Z]/.test(t)){let e=t===t.toLowerCase()?t.toUpperCase():t.toLowerCase();i.includes(e)||i.push(e)}n++}t+=i.join(``),n<e.length&&(t+=e[n],n++);continue}if(/[a-zA-Z]/.test(r)){let e=r.toLowerCase(),n=r.toUpperCase();t+=`[${n}${e}]`}else t+=r;n++}return t}function p(e){let t=m(e);if(t===-1)return{pattern:e};let n=e.slice(0,t),r=e.slice(t+2),i=h(n);return{pattern:`(?:${n})(${r})`,kResetGroup:i+1}}function m(e){let t=0;for(;t<e.length-1;)if(e[t]===`\\`){if(e[t+1]===`K`){let n=0,r=t-1;for(;r>=0&&e[r]===`\\`;)n++,r--;if(n%2==0)return t}t+=2}else t++;return-1}function h(e){let t=0,n=0;for(;n<e.length;){if(e[n]===`\\`){n+=2;continue}if(e[n]===`[`){for(n++;n<e.length&&e[n]!==`]`;)e[n]===`\\`&&n++,n++;n++;continue}if(e[n]===`(`)if(n+1<e.length&&e[n+1]===`?`){if(n+2<e.length){let r=e[n+2];if(r===`:`||r===`=`||r===`!`){n++;continue}if(r===`<`&&n+3<e.length){let r=e[n+3];if(r===`=`||r===`!`){n++;continue}t++,n++;continue}}}else t++;n++}return t}function g(e){let t=e.replace(/\$\{0\}|\$0(?![0-9])/g,`$$&`);return t=t.replace(/\$\{([^0-9}][^}]*)\}/g,`$$<$1>`),t=t.replace(/\$([a-zA-Z_][a-zA-Z0-9_]*)(?![>0-9])/g,`$$<$1>`),t}function _(e){let t=``,n=0,r=!0,i=0;for(;n<e.length;){let a=e[n];if(a===`[`){for(t+=a,n++,n<e.length&&(e[n]===`^`||e[n]===`!`)&&(t+=e[n],n++),n<e.length&&e[n]===`]`&&(t+=e[n],n++);n<e.length&&e[n]!==`]`;)e[n]===`\\`&&n+1<e.length?(t+=e[n]+e[n+1],n+=2):(t+=e[n],n++);n<e.length&&e[n]===`]`&&(t+=e[n],n++),r=!1;continue}if(a===`\\`&&n+1<e.length){let o=e[n+1];if(o===`|`){t+=`|`,n+=2,r=!0;continue}if(o===`(`){t+=`(`,n+=2,i++,r=!0;continue}if(o===`)`){t+=`)`,n+=2,i=Math.max(0,i-1),r=!1;continue}if(o===`{`){let i=e.slice(n).match(/^\\{(\d+)(,(\d*)?)?\\}/);if(i){let e=i[1],a=i[2]!==void 0,o=i[3]||``;a?t+=`{${e},${o}}`:t+=`{${e}}`,n+=i[0].length,r=!1;continue}t+=`\\{`,n+=2,r=!1;continue}if(o===`}`){t+=`\\}`,n+=2,r=!1;continue}t+=a+o,n+=2,r=!1;continue}if(a===`*`&&r){t+=`\\*`,n++;continue}if(a===`^`){if(r){t+=`^`,n++;continue}t+=`\\^`,n++;continue}if(a===`$`){let i=n===e.length-1,a=n+2<e.length&&e[n+1]===`\\`&&e[n+2]===`)`;i||a?t+=`$`:t+=`\\$`,n++,r=!1;continue}a===`+`||a===`?`||a===`|`||a===`(`||a===`)`||a===`{`||a===`}`?t+=`\\${a}`:t+=a,n++,r=!1}return t}export{o as n,g as r,n as t};
17
- //# sourceMappingURL=chunk-VLGZJRPG-B678hnuU.mjs.map
17
+ //# sourceMappingURL=chunk-VLGZJRPG-CL-TEQ8j.mjs.map
@@ -1,7 +1,7 @@
1
- import{r as e,t}from"./chunk-74CEPOFO-D1bzz49u.mjs";var n={name:`alias`,summary:`define or display aliases`,usage:`alias [name[=value] ...]`,options:[` --help display this help and exit`]},r=`BASH_ALIAS_`,i={name:`alias`,async execute(i,a){if(t(i))return e(n);if(i.length===0){let e=``;for(let[t,n]of a.env)if(t.startsWith(r)){let i=t.slice(r.length);e+=`alias ${i}='${n}'
1
+ import{r as e,t}from"./chunk-74CEPOFO-C0z9lC1m.mjs";var n={name:`alias`,summary:`define or display aliases`,usage:`alias [name[=value] ...]`,options:[` --help display this help and exit`]},r=`BASH_ALIAS_`,i={name:`alias`,async execute(i,a){if(t(i))return e(n);if(i.length===0){let e=``;for(let[t,n]of a.env)if(t.startsWith(r)){let i=t.slice(r.length);e+=`alias ${i}='${n}'
2
2
  `}return{stdout:e,stderr:``,exitCode:0}}let o=i[0]===`--`?i.slice(1):i;for(let e of o){let t=e.indexOf(`=`);if(t===-1){let t=r+e;return a.env.get(t)?{stdout:`alias ${e}='${a.env.get(t)}'
3
3
  `,stderr:``,exitCode:0}:{stdout:``,stderr:`alias: ${e}: not found
4
4
  `,exitCode:1}}else{let n=e.slice(0,t),i=e.slice(t+1);(i.startsWith(`'`)&&i.endsWith(`'`)||i.startsWith(`"`)&&i.endsWith(`"`))&&(i=i.slice(1,-1)),a.env.set(r+n,i)}}return{stdout:``,stderr:``,exitCode:0}}},a={name:`unalias`,async execute(n,i){if(t(n))return e({name:`unalias`,summary:`remove alias definitions`,usage:`unalias name [name ...]`,options:[`-a remove all aliases`,` --help display this help and exit`]});if(n.length===0)return{stdout:``,stderr:`unalias: usage: unalias [-a] name [name ...]
5
5
  `,exitCode:1};if(n[0]===`-a`){for(let e of i.env.keys())e.startsWith(r)&&i.env.delete(e);return{stdout:``,stderr:``,exitCode:0}}let a=n[0]===`--`?n.slice(1):n,o=!1,s=``;for(let e of a){let t=r+e;i.env.get(t)?i.env.delete(t):(s+=`unalias: ${e}: not found
6
6
  `,o=!0)}return{stdout:``,stderr:s,exitCode:o?1:0}}},o={name:`alias`,flags:[]},s={name:`unalias`,flags:[{flag:`-a`,type:`boolean`}]};export{o as i,s as n,i as r,a as t};
7
- //# sourceMappingURL=chunk-VOBGTVA6-BT7gUxqf.mjs.map
7
+ //# sourceMappingURL=chunk-VOBGTVA6-D3aGZV4E.mjs.map
@@ -1,4 +1,4 @@
1
- import{n as e,r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";var r={name:`strings`,summary:`print the sequences of printable characters in files`,usage:`strings [OPTION]... [FILE]...`,description:`For each FILE, print the printable character sequences that are at least MIN characters long. If no FILE is specified, standard input is read.`,options:[`-n MIN Print sequences of at least MIN characters (default: 4)`,`-t FORMAT Print offset before each string (o=octal, x=hex, d=decimal)`,`-a Scan the entire file (default behavior)`,`-e ENCODING Select character encoding (s=7-bit, S=8-bit)`],examples:[`strings file.bin # Extract strings (min 4 chars)`,`strings -n 8 file.bin # Extract strings (min 8 chars)`,`strings -t x file.bin # Show hex offset`,`echo 'hello' | strings # Read from stdin`]};function i(e){return e>=32&&e<=126||e===9}function a(e,t){if(t===null)return``;switch(t){case`o`:return`${e.toString(8).padStart(7,` `)} `;case`x`:return`${e.toString(16).padStart(7,` `)} `;case`d`:return`${e.toString(10).padStart(7,` `)} `;default:return t}}function o(e,t){let n=[],r=``,o=0,s=typeof e==`string`?new TextEncoder().encode(e):e;for(let e=0;e<s.length;e++){let c=s[e];if(i(c))r.length===0&&(o=e),r+=String.fromCharCode(c);else{if(r.length>=t.minLength){let e=a(o,t.offsetFormat);n.push(`${e}${r}`)}r=``}}if(r.length>=t.minLength){let e=a(o,t.offsetFormat);n.push(`${e}${r}`)}return n}var s={name:`strings`,execute:async(i,a)=>{if(n(i))return t(r);let s={minLength:4,offsetFormat:null},c=[],l=0;for(;l<i.length;){let t=i[l];if(t===`-n`&&l+1<i.length){let e=Number.parseInt(i[l+1],10);if(Number.isNaN(e)||e<1)return{exitCode:1,stdout:``,stderr:`strings: invalid minimum string length: '${i[l+1]}'
1
+ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-C0z9lC1m.mjs";var r={name:`strings`,summary:`print the sequences of printable characters in files`,usage:`strings [OPTION]... [FILE]...`,description:`For each FILE, print the printable character sequences that are at least MIN characters long. If no FILE is specified, standard input is read.`,options:[`-n MIN Print sequences of at least MIN characters (default: 4)`,`-t FORMAT Print offset before each string (o=octal, x=hex, d=decimal)`,`-a Scan the entire file (default behavior)`,`-e ENCODING Select character encoding (s=7-bit, S=8-bit)`],examples:[`strings file.bin # Extract strings (min 4 chars)`,`strings -n 8 file.bin # Extract strings (min 8 chars)`,`strings -t x file.bin # Show hex offset`,`echo 'hello' | strings # Read from stdin`]};function i(e){return e>=32&&e<=126||e===9}function a(e,t){if(t===null)return``;switch(t){case`o`:return`${e.toString(8).padStart(7,` `)} `;case`x`:return`${e.toString(16).padStart(7,` `)} `;case`d`:return`${e.toString(10).padStart(7,` `)} `;default:return t}}function o(e,t){let n=[],r=``,o=0,s=typeof e==`string`?new TextEncoder().encode(e):e;for(let e=0;e<s.length;e++){let c=s[e];if(i(c))r.length===0&&(o=e),r+=String.fromCharCode(c);else{if(r.length>=t.minLength){let e=a(o,t.offsetFormat);n.push(`${e}${r}`)}r=``}}if(r.length>=t.minLength){let e=a(o,t.offsetFormat);n.push(`${e}${r}`)}return n}var s={name:`strings`,execute:async(i,a)=>{if(n(i))return t(r);let s={minLength:4,offsetFormat:null},c=[],l=0;for(;l<i.length;){let t=i[l];if(t===`-n`&&l+1<i.length){let e=Number.parseInt(i[l+1],10);if(Number.isNaN(e)||e<1)return{exitCode:1,stdout:``,stderr:`strings: invalid minimum string length: '${i[l+1]}'
2
2
  `};s.minLength=e,l+=2}else if(t.match(/^-n\d+$/)){let e=Number.parseInt(t.slice(2),10);if(Number.isNaN(e)||e<1)return{exitCode:1,stdout:``,stderr:`strings: invalid minimum string length: '${t.slice(2)}'
3
3
  `};s.minLength=e,l++}else if(t.match(/^-\d+$/)){let e=Number.parseInt(t.slice(1),10);if(Number.isNaN(e)||e<1)return{exitCode:1,stdout:``,stderr:`strings: invalid minimum string length: '${t.slice(1)}'
4
4
  `};s.minLength=e,l++}else if(t===`-t`&&l+1<i.length){let e=i[l+1];if(e!==`o`&&e!==`x`&&e!==`d`)return{exitCode:1,stdout:``,stderr:`strings: invalid radix: '${e}'
@@ -11,4 +11,4 @@ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";var r={name:`str
11
11
  `}}let n=o(t,s);n.length>0&&(u+=`${n.join(`
12
12
  `)}
13
13
  `)}return{exitCode:0,stdout:u,stderr:``}}},c={name:`strings`,flags:[{flag:`-n`,type:`value`,valueHint:`number`},{flag:`-t`,type:`value`,valueHint:`string`},{flag:`-a`,type:`boolean`},{flag:`-e`,type:`value`,valueHint:`string`}],stdinType:`text`,needsFiles:!0};export{s as n,c as t};
14
- //# sourceMappingURL=chunk-VYOJP4TV-BvibOnKG.mjs.map
14
+ //# sourceMappingURL=chunk-VYOJP4TV-CdetNLoW.mjs.map
@@ -1,5 +1,5 @@
1
- import{r as e,t}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as n}from"./chunk-HWKDQ44K-CPSjqtR_.mjs";import{t as r}from"./chunk-7L36YK2X-RiPZFKaV.mjs";var i={name:`uniq`,summary:`report or omit repeated lines`,usage:`uniq [OPTION]... [INPUT [OUTPUT]]`,options:[`-c, --count prefix lines by the number of occurrences`,`-d, --repeated only print duplicate lines`,`-i, --ignore-case ignore case when comparing`,`-u, --unique only print unique lines`,` --help display this help and exit`]},a={count:{short:`c`,long:`count`,type:`boolean`},duplicatesOnly:{short:`d`,long:`repeated`,type:`boolean`},uniqueOnly:{short:`u`,long:`unique`,type:`boolean`},ignoreCase:{short:`i`,long:`ignore-case`,type:`boolean`}},o={name:`uniq`,async execute(o,s){if(t(o))return e(i);let c=n(`uniq`,o,a);if(!c.ok)return c.error;let{count:l,duplicatesOnly:u,uniqueOnly:d,ignoreCase:f}=c.result.flags,p=c.result.positional,m=await r(s,p,{cmdName:`uniq`});if(!m.ok)return m.error;let h=m.content.split(`
1
+ import{r as e,t}from"./chunk-74CEPOFO-C0z9lC1m.mjs";import{t as n}from"./chunk-HWKDQ44K-CqYAsq6Y.mjs";import{t as r}from"./chunk-7L36YK2X-Dz64z21y.mjs";var i={name:`uniq`,summary:`report or omit repeated lines`,usage:`uniq [OPTION]... [INPUT [OUTPUT]]`,options:[`-c, --count prefix lines by the number of occurrences`,`-d, --repeated only print duplicate lines`,`-i, --ignore-case ignore case when comparing`,`-u, --unique only print unique lines`,` --help display this help and exit`]},a={count:{short:`c`,long:`count`,type:`boolean`},duplicatesOnly:{short:`d`,long:`repeated`,type:`boolean`},uniqueOnly:{short:`u`,long:`unique`,type:`boolean`},ignoreCase:{short:`i`,long:`ignore-case`,type:`boolean`}},o={name:`uniq`,async execute(o,s){if(t(o))return e(i);let c=n(`uniq`,o,a);if(!c.ok)return c.error;let{count:l,duplicatesOnly:u,uniqueOnly:d,ignoreCase:f}=c.result.flags,p=c.result.positional,m=await r(s,p,{cmdName:`uniq`});if(!m.ok)return m.error;let h=m.content.split(`
2
2
  `);if(h.length>0&&h[h.length-1]===``&&h.pop(),h.length===0)return{stdout:``,stderr:``,exitCode:0};let g=[],_=h[0],v=1,y=(e,t)=>f?e.toLowerCase()===t.toLowerCase():e===t;for(let e=1;e<h.length;e++)y(h[e],_)?v++:(g.push({line:_,count:v}),_=h[e],v=1);g.push({line:_,count:v});let b=g;u?b=g.filter(e=>e.count>1):d&&(b=g.filter(e=>e.count===1));let x=``;for(let{line:e,count:t}of b)l?x+=`${String(t).padStart(4)} ${e}
3
3
  `:x+=`${e}
4
4
  `;return{stdout:x,stderr:``,exitCode:0,stdoutEncoding:`binary`}}},s={name:`uniq`,flags:[{flag:`-c`,type:`boolean`},{flag:`-d`,type:`boolean`},{flag:`-u`,type:`boolean`},{flag:`-i`,type:`boolean`}],stdinType:`text`,needsFiles:!0};export{s as n,o as t};
5
- //# sourceMappingURL=chunk-WKFATFPP-DCZdrA8x.mjs.map
5
+ //# sourceMappingURL=chunk-WKFATFPP-DjPLTf4Y.mjs.map
@@ -1,2 +1,2 @@
1
1
  function e(e,t){return(t?`d`:`-`)+[e&256?`r`:`-`,e&128?`w`:`-`,e&64?`x`:`-`,e&32?`r`:`-`,e&16?`w`:`-`,e&8?`x`:`-`,e&4?`r`:`-`,e&2?`w`:`-`,e&1?`x`:`-`].join(``)}export{e as t};
2
- //# sourceMappingURL=chunk-X2AJGDEF-BaH6i1Rq.mjs.map
2
+ //# sourceMappingURL=chunk-X2AJGDEF-B6jpFFxc.mjs.map
@@ -1,2 +1,2 @@
1
1
  import*as e from"node:path";import*as t from"node:fs";function n(e){if(!e||e===`/`)return`/`;let t=e.endsWith(`/`)&&e!==`/`?e.slice(0,-1):e;t.startsWith(`/`)||(t=`/${t}`);let n=t.split(`/`).filter(e=>e&&e!==`.`),r=[];for(let e of n)e===`..`?r.pop():r.push(e);return`/${r.join(`/`)}`||`/`}function r(e,t){if(e.includes(`\0`))throw Error(`ENOENT: path contains null byte, ${t} '${e}'`)}function i(e){let t=n(e);if(t===`/`)return`/`;let r=t.lastIndexOf(`/`);return r===0?`/`:t.slice(0,r)}function a(e,t){return t.startsWith(`/`)?n(t):n(e===`/`?`/${t}`:`${e}/${t}`)}function o(e,t){return e===`/`?`/${t}`:`${e}/${t}`}function s(e,t){return t.startsWith(`/`)?n(t):n(o(i(e),t))}function c(e,t){return e===t||e.startsWith(`${t}/`)}function l(n,r){try{let e=t.realpathSync(n);return c(e,r)?e:null}catch(i){if(i.code===`ENOENT`){let i=e.dirname(n);if(i===n)return null;let a=l(i,r);if(a===null)return null;try{if(t.lstatSync(n).isSymbolicLink()){let i=t.readlinkSync(n);if(l(e.isAbsolute(i)?i:e.resolve(e.dirname(n),i),r)===null)return null}}catch{}return e.join(a,e.basename(n))}return null}}function u(n,r,i){let a=l(n,i);if(a===null)return null;let o=e.resolve(n);if(o.slice(r.length)!==a.slice(i.length))return null;try{if(t.lstatSync(o).isSymbolicLink())return null}catch{}return a}function d(e,n){if(!t.existsSync(e))throw Error(`${n} root does not exist`);if(!t.statSync(e).isDirectory())throw Error(`${n} root is not a directory`)}function f(e,t,n,r){let i=e;if(i.path===void 0){for(let t of r)if(i.message?.includes(t))throw e}let a=i.code||`EIO`;throw Error(`${a}: ${n} '${t}'`)}export{c as a,i as c,a as d,n as i,o as l,f as n,l as o,u as r,r as s,d as t,s as u};
2
- //# sourceMappingURL=chunk-XHM67O4N-Cd7Fiqsb.mjs.map
2
+ //# sourceMappingURL=chunk-XHM67O4N-VMZIJhmy.mjs.map
@@ -1,2 +1,2 @@
1
- import{t as e}from"./chunk-EIZGF4BS-8bsVXqW0.mjs";var t=e(`sha1sum`,`sha1`,`compute SHA1 message digest`),n={name:`sha1sum`,flags:[{flag:`-c`,type:`boolean`}],needsFiles:!0};export{n,t};
2
- //# sourceMappingURL=chunk-XKQRETAK-cVWA9gEB.mjs.map
1
+ import{t as e}from"./chunk-EIZGF4BS-CFSJBS7X.mjs";var t=e(`sha1sum`,`sha1`,`compute SHA1 message digest`),n={name:`sha1sum`,flags:[{flag:`-c`,type:`boolean`}],needsFiles:!0};export{n,t};
2
+ //# sourceMappingURL=chunk-XKQRETAK-M6LmX8sD.mjs.map
@@ -1,4 +1,4 @@
1
- import{i as e}from"./chunk-GFQRA5P5-CkMj9l7f.mjs";import{a as t,r as n,t as r}from"./chunk-DXB73IDG-DfmyzFzL.mjs";import{n as i}from"./chunk-5QMZ5MUS-SLhNX8t9.mjs";import{r as a,t as o}from"./chunk-24IMIIXA-_PX4ITYZ.mjs";import{n as s}from"./chunk-3THT3N7L-DrzOuTpA.mjs";import{n as c,r as l,t as u}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as d}from"./chunk-SYMJJMQ4-0QtKvQIP.mjs";import{t as f}from"./chunk-7TSDKFEO-a-GUGBTu.mjs";import{n as p,t as m}from"./chunk-BBXLRYSX-Cxoye6wj.mjs";var h=n((e,t)=>{var{hasOwnProperty:n}=Object.prototype,r=(e,t={})=>{typeof t==`string`&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<`u`&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let n=t.platform===`win32`?`\r
1
+ import{i as e}from"./chunk-GFQRA5P5-Cud1eg4y.mjs";import{a as t,r as n,t as r}from"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as i}from"./chunk-5QMZ5MUS-BQ6AJ7O6.mjs";import{r as a,t as o}from"./chunk-24IMIIXA-BPYIgkX5.mjs";import{n as s}from"./chunk-3THT3N7L-DJBUbZXN.mjs";import{n as c,r as l,t as u}from"./chunk-74CEPOFO-C0z9lC1m.mjs";import{t as d}from"./chunk-SYMJJMQ4-D6SUINQk.mjs";import{t as f}from"./chunk-7TSDKFEO-BgtXzRmn.mjs";import{n as p,t as m}from"./chunk-BBXLRYSX-CHIwxnbE.mjs";var h=n((e,t)=>{var{hasOwnProperty:n}=Object.prototype,r=(e,t={})=>{typeof t==`string`&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<`u`&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let n=t.platform===`win32`?`\r
2
2
  `:`
3
3
  `,a=t.whitespace?` = `:`=`,o=[],c=t.sort?Object.keys(e).sort():Object.keys(e),l=0;t.align&&(l=s(c.filter(t=>e[t]===null||Array.isArray(e[t])||typeof e[t]!=`object`).map(t=>Array.isArray(e[t])?`${t}[]`:t).concat([``]).reduce((e,t)=>s(e).length>=s(t).length?e:t)).length);let u=``,d=t.bracketedArray?`[]`:``;for(let t of c){let r=e[t];if(r&&Array.isArray(r))for(let e of r)u+=s(`${t}${d}`).padEnd(l,` `)+a+s(e)+n;else r&&typeof r==`object`?o.push(t):u+=s(t).padEnd(l,` `)+a+s(r)+n}t.section&&u.length&&(u=`[`+s(t.section)+`]`+(t.newline?n+n:n)+u);for(let a of o){let o=i(a,`.`).join(`\\.`),s=(t.section?t.section+`.`:``)+o,c=r(e[a],{...t,section:s});u.length&&c.length&&(u+=n),u+=c}return u};function i(e,t){var n=0,r=0,i=0,a=[];do if(i=e.indexOf(t,n),i!==-1){if(n=i+t.length,i>0&&e[i-1]===`\\`)continue;a.push(e.slice(r,i)),r=i+t.length}while(i!==-1);return a.push(e.slice(r)),a}var a=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;let r=Object.create(null),a=r,o=null,s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,l=e.split(/[\r\n]+/g),u={};for(let e of l){if(!e||e.match(/^\s*[;#]/)||e.match(/^\s*$/))continue;let i=e.match(s);if(!i)continue;if(i[1]!==void 0){if(o=c(i[1]),o===`__proto__`){a=Object.create(null);continue}a=r[o]=r[o]||Object.create(null);continue}let l=c(i[2]),d;t.bracketedArray?d=l.length>2&&l.slice(-2)===`[]`:(u[l]=(u?.[l]||0)+1,d=u[l]>1);let f=d&&l.endsWith(`[]`)?l.slice(0,-2):l;if(f===`__proto__`)continue;let p=i[3]?c(i[4]):!0,m=p===`true`||p===`false`||p===`null`?JSON.parse(p):p;d&&(n.call(a,f)?Array.isArray(a[f])||(a[f]=[a[f]]):a[f]=[]),Array.isArray(a[f])?a[f].push(m):a[f]=m}let d=[];for(let e of Object.keys(r)){if(!n.call(r,e)||typeof r[e]!=`object`||Array.isArray(r[e]))continue;let t=i(e,`.`);a=r;let o=t.pop(),s=o.replace(/\\\./g,`.`);for(let e of t)e!==`__proto__`&&((!n.call(a,e)||typeof a[e]!=`object`)&&(a[e]=Object.create(null)),a=a[e]);a===r&&s===o||(a[s]=r[e],d.push(e))}for(let e of d)delete r[e];return r},o=e=>e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`),s=e=>typeof e!=`string`||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&o(e)||e!==e.trim()?JSON.stringify(e):e.split(`;`).join(`\\;`).split(`#`).join(`\\#`),c=e=>{if(e=(e||``).trim(),o(e)){e.charAt(0)===`'`&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let t=!1,n=``;for(let r=0,i=e.length;r<i;r++){let i=e.charAt(r);if(t)`\\;#`.indexOf(i)===-1?n+=`\\`+i:n+=i,t=!1;else{if(`;#`.indexOf(i)!==-1)break;i===`\\`?t=!0:n+=i}}return t&&(n+=`\\`),n.trim()}return e};t.exports={parse:a,decode:a,stringify:r,encode:r,safe:s,unsafe:c}}),g=n(e=>{var t=Symbol.for(`yaml.alias`),n=Symbol.for(`yaml.document`),r=Symbol.for(`yaml.map`),i=Symbol.for(`yaml.pair`),a=Symbol.for(`yaml.scalar`),o=Symbol.for(`yaml.seq`),s=Symbol.for(`yaml.node.type`),c=e=>!!e&&typeof e==`object`&&e[s]===t,l=e=>!!e&&typeof e==`object`&&e[s]===n,u=e=>!!e&&typeof e==`object`&&e[s]===r,d=e=>!!e&&typeof e==`object`&&e[s]===i,f=e=>!!e&&typeof e==`object`&&e[s]===a,p=e=>!!e&&typeof e==`object`&&e[s]===o;function m(e){if(e&&typeof e==`object`)switch(e[s]){case r:case o:return!0}return!1}function h(e){if(e&&typeof e==`object`)switch(e[s]){case t:case r:case a:case o:return!0}return!1}e.ALIAS=t,e.DOC=n,e.MAP=r,e.NODE_TYPE=s,e.PAIR=i,e.SCALAR=a,e.SEQ=o,e.hasAnchor=e=>(f(e)||m(e))&&!!e.anchor,e.isAlias=c,e.isCollection=m,e.isDocument=l,e.isMap=u,e.isNode=h,e.isPair=d,e.isScalar=f,e.isSeq=p}),_=n(e=>{var t=g(),n=Symbol(`break visit`),r=Symbol(`skip children`),i=Symbol(`remove node`);function a(e,n){let r=l(n);t.isDocument(e)?o(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):o(null,e,r,Object.freeze([]))}a.BREAK=n,a.SKIP=r,a.REMOVE=i;function o(e,r,a,s){let c=u(e,r,a,s);if(t.isNode(c)||t.isPair(c))return d(e,s,c),o(e,c,a,s);if(typeof c!=`symbol`){if(t.isCollection(r)){s=Object.freeze(s.concat(r));for(let e=0;e<r.items.length;++e){let t=o(e,r.items[e],a,s);if(typeof t==`number`)e=t-1;else{if(t===n)return n;t===i&&(r.items.splice(e,1),--e)}}}else if(t.isPair(r)){s=Object.freeze(s.concat(r));let e=o(`key`,r.key,a,s);if(e===n)return n;e===i&&(r.key=null);let t=o(`value`,r.value,a,s);if(t===n)return n;t===i&&(r.value=null)}}return c}async function s(e,n){let r=l(n);t.isDocument(e)?await c(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):await c(null,e,r,Object.freeze([]))}s.BREAK=n,s.SKIP=r,s.REMOVE=i;async function c(e,r,a,o){let s=await u(e,r,a,o);if(t.isNode(s)||t.isPair(s))return d(e,o,s),c(e,s,a,o);if(typeof s!=`symbol`){if(t.isCollection(r)){o=Object.freeze(o.concat(r));for(let e=0;e<r.items.length;++e){let t=await c(e,r.items[e],a,o);if(typeof t==`number`)e=t-1;else{if(t===n)return n;t===i&&(r.items.splice(e,1),--e)}}}else if(t.isPair(r)){o=Object.freeze(o.concat(r));let e=await c(`key`,r.key,a,o);if(e===n)return n;e===i&&(r.key=null);let t=await c(`value`,r.value,a,o);if(t===n)return n;t===i&&(r.value=null)}}return s}function l(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function u(e,n,r,i){if(typeof r==`function`)return r(e,n,i);if(t.isMap(n))return r.Map?.(e,n,i);if(t.isSeq(n))return r.Seq?.(e,n,i);if(t.isPair(n))return r.Pair?.(e,n,i);if(t.isScalar(n))return r.Scalar?.(e,n,i);if(t.isAlias(n))return r.Alias?.(e,n,i)}function d(e,n,r){let i=n[n.length-1];if(t.isCollection(i))i.items[e]=r;else if(t.isPair(i))e===`key`?i.key=r:i.value=r;else if(t.isDocument(i))i.contents=r;else{let e=t.isAlias(i)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}e.visit=a,e.visitAsync=s}),v=n(e=>{var t=g(),n=_(),r={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},i=e=>e.replace(/[!,[\]{}]/g,e=>r[e]),a=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+i(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],i=Object.entries(this.tags),a;if(e&&i.length>0&&t.isNode(e.contents)){let r={};n.visit(e.contents,(e,n)=>{t.isNode(n)&&n.tag&&(r[n.tag]=!0)}),a=Object.keys(r)}else a=[];for(let[t,n]of i)t===`!!`&&n===`tag:yaml.org,2002:`||(!e||a.some(e=>e.startsWith(n)))&&r.push(`%TAG ${t} ${n}`);return r.join(`
4
4
  `)}};a.defaultYaml={explicit:!1,version:`1.2`},a.defaultTags={"!!":`tag:yaml.org,2002:`},e.Directives=a}),y=n(e=>{var t=g(),n=_();function r(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function i(e){let t=new Set;return n.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function a(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function o(e,n){let r=[],o=new Map,s=null;return{onAnchor:t=>{r.push(t),s??=i(e);let o=a(n,s);return s.add(o),o},setAnchors:()=>{for(let e of r){let n=o.get(e);if(typeof n==`object`&&n.anchor&&(t.isScalar(n.node)||t.isCollection(n.node)))n.node.anchor=n.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:o}}e.anchorIsValid=r,e.anchorNames=i,e.createNodeAnchors=o,e.findNewAnchor=a}),b=n(e=>{function t(e,n,r,i){if(i&&typeof i==`object`)if(Array.isArray(i))for(let n=0,r=i.length;n<r;++n){let r=i[n],a=t(e,i,String(n),r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}else if(i instanceof Map)for(let n of Array.from(i.keys())){let r=i.get(n),a=t(e,i,n,r);a===void 0?i.delete(n):a!==r&&i.set(n,a)}else if(i instanceof Set)for(let n of Array.from(i)){let r=t(e,i,n,n);r===void 0?i.delete(n):r!==n&&(i.delete(n),i.add(r))}else for(let[n,r]of Object.entries(i)){let a=t(e,i,n,r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}return e.call(n,r,i)}e.applyReviver=t}),x=n(e=>{var t=g();function n(e,r,i){if(Array.isArray(e))return e.map((e,t)=>n(e,String(t),i));if(e&&typeof e.toJSON==`function`){if(!i||!t.hasAnchor(e))return e.toJSON(r,i);let n={aliasCount:0,count:1,res:void 0};i.anchors.set(e,n),i.onCreate=e=>{n.res=e,delete i.onCreate};let a=e.toJSON(r,i);return i.onCreate&&i.onCreate(a),a}return typeof e==`bigint`&&!i?.keep?Number(e):e}e.toJS=n}),S=n(e=>{var t=b(),n=g(),r=x();e.NodeBase=class{constructor(e){Object.defineProperty(this,n.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:i,maxAliasCount:a,onAnchor:o,reviver:s}={}){if(!n.isDocument(e))throw TypeError(`A document argument is required`);let c={anchors:new Map,doc:e,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof a==`number`?a:100},l=r.toJS(this,``,c);if(typeof o==`function`)for(let{count:e,res:t}of c.anchors.values())o(t,e);return typeof s==`function`?t.applyReviver(s,{"":l},``,l):l}}}),C=n(e=>{var t=y(),n=_(),r=g(),i=S(),a=x(),o=class extends i.NodeBase{constructor(e){super(r.ALIAS),this.source=e,Object.defineProperty(this,`tag`,{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){let i;t?.aliasResolveCache?i=t.aliasResolveCache:(i=[],n.visit(e,{Node:(e,t)=>{(r.isAlias(t)||r.hasAnchor(t))&&i.push(t)}}),t&&(t.aliasResolveCache=i));let a;for(let e of i){if(e===this)break;e.anchor===this.source&&(a=e)}return a}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r,t);if(!o){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let c=n.get(o);if(c||=(a.toJS(o,null,t),n.get(o)),c?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=s(r,o,n)),c.count*c.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return c.res}toString(e,n,r){let i=`*${this.source}`;if(e){if(t.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${i} `}return i}};function s(e,t,n){if(r.isAlias(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(r.isCollection(t)){let r=0;for(let i of t.items){let t=s(e,i,n);t>r&&(r=t)}return r}else if(r.isPair(t)){let r=s(e,t.key,n),i=s(e,t.value,n);return Math.max(r,i)}return 1}e.Alias=o}),w=n(e=>{var t=g(),n=S(),r=x(),i=e=>!e||typeof e!=`function`&&typeof e!=`object`,a=class extends n.NodeBase{constructor(e){super(t.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:r.toJS(this.value,e,t)}toString(){return String(this.value)}};a.BLOCK_FOLDED=`BLOCK_FOLDED`,a.BLOCK_LITERAL=`BLOCK_LITERAL`,a.PLAIN=`PLAIN`,a.QUOTE_DOUBLE=`QUOTE_DOUBLE`,a.QUOTE_SINGLE=`QUOTE_SINGLE`,e.Scalar=a,e.isScalarValue=i}),T=n(e=>{var t=C(),n=g(),r=w(),i=`tag:yaml.org,2002:`;function a(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function o(e,o,s){if(n.isDocument(e)&&(e=e.contents),n.isNode(e))return e;if(n.isPair(e)){let t=s.schema[n.MAP].createNode?.(s.schema,null,s);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:c,onAnchor:l,onTagObj:u,schema:d,sourceObjects:f}=s,p;if(c&&e&&typeof e==`object`){if(p=f.get(e),p)return p.anchor??=l(e),new t.Alias(p.anchor);p={anchor:null,node:null},f.set(e,p)}o?.startsWith(`!!`)&&(o=i+o.slice(2));let m=a(e,o,d.tags);if(!m){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new r.Scalar(e);return p&&(p.node=t),t}m=e instanceof Map?d[n.MAP]:Symbol.iterator in Object(e)?d[n.SEQ]:d[n.MAP]}u&&(u(m),delete s.onTagObj);let h=m?.createNode?m.createNode(s.schema,e,s):typeof m?.nodeClass?.from==`function`?m.nodeClass.from(s.schema,e,s):new r.Scalar(e);return o?h.tag=o:m.default||(h.tag=m.tag),p&&(p.node=h),h}e.createNode=o}),E=n(e=>{var t=T(),n=g(),r=S();function i(e,n,r){let i=r;for(let e=n.length-1;e>=0;--e){let t=n[e];if(typeof t==`number`&&Number.isInteger(t)&&t>=0){let e=[];e[t]=i,i=e}else i=new Map([[t,i]])}return t.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var a=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done;e.Collection=class extends r.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,`schema`,{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>n.isNode(t)||n.isPair(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(a(e))this.add(t);else{let[r,...a]=e,o=this.get(r,!0);if(n.isCollection(o))o.addIn(a,t);else if(o===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}deleteIn(e){let[t,...r]=e;if(r.length===0)return this.delete(t);let i=this.get(t,!0);if(n.isCollection(i))return i.deleteIn(r);throw Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...i]=e,a=this.get(r,!0);return i.length===0?!t&&n.isScalar(a)?a.value:a:n.isCollection(a)?a.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!n.isPair(t))return!1;let r=t.value;return r==null||e&&n.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(r.length===0)return this.has(t);let i=this.get(t,!0);return n.isCollection(i)?i.hasIn(r):!1}setIn(e,t){let[r,...a]=e;if(a.length===0)this.set(r,t);else{let e=this.get(r,!0);if(n.isCollection(e))e.setIn(a,t);else if(e===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}},e.collectionFromPath=i,e.isEmptyPath=a}),D=n(e=>{var t=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function n(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}e.indentComment=n,e.lineComment=(e,t,r)=>e.endsWith(`
@@ -285,4 +285,4 @@ smol-toml/dist/index.js:
285
285
  *)
286
286
  */
287
287
  export{rr as n,nr as t};
288
- //# sourceMappingURL=chunk-XORM457F-BAW3OKIy.mjs.map
288
+ //# sourceMappingURL=chunk-XORM457F-cqdokA2L.mjs.map
@@ -1,4 +1,4 @@
1
- import{r as e,t}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as n}from"./chunk-HWKDQ44K-CPSjqtR_.mjs";var r={name:`tree`,summary:`list contents of directories in a tree-like format`,usage:`tree [OPTION]... [DIRECTORY]...`,options:[`-a include hidden files`,`-d list directories only`,`-L LEVEL limit depth of directory tree`,`-f print full path prefix for each file`,` --help display this help and exit`]},i={showHidden:{short:`a`,type:`boolean`},directoriesOnly:{short:`d`,type:`boolean`},fullPath:{short:`f`,type:`boolean`},maxDepth:{short:`L`,type:`number`}},a={name:`tree`,async execute(a,s){if(t(a))return e(r);let c=n(`tree`,a,i);if(!c.ok)return c.error;let l={showHidden:c.result.flags.showHidden,directoriesOnly:c.result.flags.directoriesOnly,maxDepth:c.result.flags.maxDepth??null,fullPath:c.result.flags.fullPath},u=c.result.positional;u.length===0&&u.push(`.`);let d=``,f=``,p=0,m=0;for(let e of u){let t=await o(s,e,l,``,0);d+=t.output,f+=t.stderr,p+=t.dirCount,m+=t.fileCount}return d+=`
1
+ import{r as e,t}from"./chunk-74CEPOFO-C0z9lC1m.mjs";import{t as n}from"./chunk-HWKDQ44K-CqYAsq6Y.mjs";var r={name:`tree`,summary:`list contents of directories in a tree-like format`,usage:`tree [OPTION]... [DIRECTORY]...`,options:[`-a include hidden files`,`-d list directories only`,`-L LEVEL limit depth of directory tree`,`-f print full path prefix for each file`,` --help display this help and exit`]},i={showHidden:{short:`a`,type:`boolean`},directoriesOnly:{short:`d`,type:`boolean`},fullPath:{short:`f`,type:`boolean`},maxDepth:{short:`L`,type:`number`}},a={name:`tree`,async execute(a,s){if(t(a))return e(r);let c=n(`tree`,a,i);if(!c.ok)return c.error;let l={showHidden:c.result.flags.showHidden,directoriesOnly:c.result.flags.directoriesOnly,maxDepth:c.result.flags.maxDepth??null,fullPath:c.result.flags.fullPath},u=c.result.positional;u.length===0&&u.push(`.`);let d=``,f=``,p=0,m=0;for(let e of u){let t=await o(s,e,l,``,0);d+=t.output,f+=t.stderr,p+=t.dirCount,m+=t.fileCount}return d+=`
2
2
  ${p} director${p===1?`y`:`ies`}`,l.directoriesOnly||(d+=`, ${m} file${m===1?``:`s`}`),d+=`
3
3
  `,{stdout:d,stderr:f,exitCode:f?1:0}}};async function o(e,t,n,r,i){let a={output:``,stderr:``,dirCount:0,fileCount:0},o=e.fs.resolvePath(e.cwd,t);try{if(!(await e.fs.stat(o)).isDirectory)return a.output=`${t}
4
4
  `,a.fileCount=1,a}catch{return a.stderr=`tree: ${t}: No such file or directory
@@ -9,4 +9,4 @@ ${p} director${p===1?`y`:`ies`}`,l.directoriesOnly||(d+=`, ${m} file${m===1?``:`
9
9
  `}return a}async function s(e,t,n,r,i){let a={output:``,stderr:``,dirCount:0,fileCount:0};if(n.maxDepth!==null&&i>=n.maxDepth)return a;try{let o=[];if(e.fs.readdirWithFileTypes)o=(await e.fs.readdirWithFileTypes(t)).map(e=>({name:e.name,isDirectory:e.isDirectory}));else{let n=await e.fs.readdir(t);for(let r=0;r<n.length;r+=100){let i=n.slice(r,r+100),a=await Promise.all(i.map(async n=>{let r=t===`/`?`/${n}`:`${t}/${n}`;try{return{name:n,isDirectory:(await e.fs.stat(r)).isDirectory}}catch{return null}}));o.push(...a.filter(e=>e!==null))}}let c=o.filter(e=>!(!n.showHidden&&e.name.startsWith(`.`)||n.directoriesOnly&&!e.isDirectory));c.sort((e,t)=>e.name.localeCompare(t.name));for(let o=0;o<c.length;o++){let l=c[o],u=t===`/`?`/${l.name}`:`${t}/${l.name}`,d=o===c.length-1,f=d?"`-- ":`|-- `,p=r+(d?` `:`| `);if(l.isDirectory){a.dirCount++;let t=n.fullPath?u:l.name;a.output+=`${r+f+t}
10
10
  `;let o=await s(e,u,n,p,i+1);a.output+=o.output,a.dirCount+=o.dirCount,a.fileCount+=o.fileCount}else{a.fileCount++;let e=n.fullPath?u:l.name;a.output+=`${r+f+e}
11
11
  `}}}catch{}return a}var c={name:`tree`,flags:[{flag:`-a`,type:`boolean`},{flag:`-d`,type:`boolean`},{flag:`-f`,type:`boolean`},{flag:`-L`,type:`value`,valueHint:`number`}],needsFiles:!0};export{a as n,c as t};
12
- //# sourceMappingURL=chunk-XVDPCNWR-CtK-Xs2O.mjs.map
12
+ //# sourceMappingURL=chunk-XVDPCNWR-Cmfwb_-1.mjs.map
@@ -1,4 +1,4 @@
1
- import{i as e}from"./chunk-GFQRA5P5-CkMj9l7f.mjs";import{n as t}from"./chunk-5QMZ5MUS-SLhNX8t9.mjs";import{r as n,t as r}from"./chunk-24IMIIXA-_PX4ITYZ.mjs";import{n as i}from"./chunk-3THT3N7L-DrzOuTpA.mjs";import{n as a,r as o,t as s}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{n as c}from"./chunk-7L36YK2X-RiPZFKaV.mjs";import{t as l}from"./chunk-7TSDKFEO-a-GUGBTu.mjs";import{n as u,t as d}from"./chunk-BBXLRYSX-Cxoye6wj.mjs";function f(e){let t=[],n=0,r=e.length;for(;n<r;){for(;n<r&&/\s/.test(e[n]);)n++;if(n>=r)break;let i=n,a=e[n];if(a===`{`||a===`[`){let o=a,s=a===`{`?`}`:`]`,c=1,u=!1,d=!1;for(n++;n<r&&c>0;){let t=e[n];d?d=!1:t===`\\`?d=!0:t===`"`?u=!u:u||(t===o?c++:t===s&&c--),n++}if(c!==0)throw Error(`Unexpected end of JSON input at position ${n} (unclosed ${o})`);t.push(l(JSON.parse(e.slice(i,n))))}else if(a===`"`){let a=!1;for(n++;n<r;){let t=e[n];if(a)a=!1;else if(t===`\\`)a=!0;else if(t===`"`){n++;break}n++}t.push(l(JSON.parse(e.slice(i,n))))}else if(a===`-`||a>=`0`&&a<=`9`){for(;n<r&&/[\d.eE+-]/.test(e[n]);)n++;t.push(l(JSON.parse(e.slice(i,n))))}else if(e.slice(n,n+4)===`true`)t.push(!0),n+=4;else if(e.slice(n,n+5)===`false`)t.push(!1),n+=5;else if(e.slice(n,n+4)===`null`)t.push(null),n+=4;else{let t=e.slice(n,n+10);throw Error(`Invalid JSON at position ${i}: unexpected '${t.split(/\s/)[0]}'`)}}return t}var p={name:`jq`,summary:`command-line JSON processor`,usage:`jq [OPTIONS] FILTER [FILE]`,options:[`-r, --raw-output output strings without quotes`,`-c, --compact compact output (no pretty printing)`,`-e, --exit-status set exit status based on output`,`-s, --slurp read entire input into array`,`-n, --null-input don't read any input`,`-j, --join-output don't print newlines after each output`,`-a, --ascii force ASCII output`,`-S, --sort-keys sort object keys`,`-C, --color colorize output (ignored)`,`-M, --monochrome monochrome output (ignored)`,` --tab use tabs for indentation`,` --help display this help and exit`]};function m(e,t,n,r,i,a=0){if(e==null)return`null`;if(typeof e==`boolean`)return String(e);if(typeof e==`number`)return Number.isFinite(e)?String(e):`null`;if(typeof e==`string`)return n?e:JSON.stringify(e);let o=i?` `:` `;if(Array.isArray(e))return e.length===0?`[]`:t?`[${e.map(e=>m(e,!0,!1,r,i)).join(`,`)}]`:`[
1
+ import{i as e}from"./chunk-GFQRA5P5-Cud1eg4y.mjs";import{n as t}from"./chunk-5QMZ5MUS-BQ6AJ7O6.mjs";import{r as n,t as r}from"./chunk-24IMIIXA-BPYIgkX5.mjs";import{n as i}from"./chunk-3THT3N7L-DJBUbZXN.mjs";import{n as a,r as o,t as s}from"./chunk-74CEPOFO-C0z9lC1m.mjs";import{n as c}from"./chunk-7L36YK2X-Dz64z21y.mjs";import{t as l}from"./chunk-7TSDKFEO-BgtXzRmn.mjs";import{n as u,t as d}from"./chunk-BBXLRYSX-CHIwxnbE.mjs";function f(e){let t=[],n=0,r=e.length;for(;n<r;){for(;n<r&&/\s/.test(e[n]);)n++;if(n>=r)break;let i=n,a=e[n];if(a===`{`||a===`[`){let o=a,s=a===`{`?`}`:`]`,c=1,u=!1,d=!1;for(n++;n<r&&c>0;){let t=e[n];d?d=!1:t===`\\`?d=!0:t===`"`?u=!u:u||(t===o?c++:t===s&&c--),n++}if(c!==0)throw Error(`Unexpected end of JSON input at position ${n} (unclosed ${o})`);t.push(l(JSON.parse(e.slice(i,n))))}else if(a===`"`){let a=!1;for(n++;n<r;){let t=e[n];if(a)a=!1;else if(t===`\\`)a=!0;else if(t===`"`){n++;break}n++}t.push(l(JSON.parse(e.slice(i,n))))}else if(a===`-`||a>=`0`&&a<=`9`){for(;n<r&&/[\d.eE+-]/.test(e[n]);)n++;t.push(l(JSON.parse(e.slice(i,n))))}else if(e.slice(n,n+4)===`true`)t.push(!0),n+=4;else if(e.slice(n,n+5)===`false`)t.push(!1),n+=5;else if(e.slice(n,n+4)===`null`)t.push(null),n+=4;else{let t=e.slice(n,n+10);throw Error(`Invalid JSON at position ${i}: unexpected '${t.split(/\s/)[0]}'`)}}return t}var p={name:`jq`,summary:`command-line JSON processor`,usage:`jq [OPTIONS] FILTER [FILE]`,options:[`-r, --raw-output output strings without quotes`,`-c, --compact compact output (no pretty printing)`,`-e, --exit-status set exit status based on output`,`-s, --slurp read entire input into array`,`-n, --null-input don't read any input`,`-j, --join-output don't print newlines after each output`,`-a, --ascii force ASCII output`,`-S, --sort-keys sort object keys`,`-C, --color colorize output (ignored)`,`-M, --monochrome monochrome output (ignored)`,` --tab use tabs for indentation`,` --help display this help and exit`]};function m(e,t,n,r,i,a=0){if(e==null)return`null`;if(typeof e==`boolean`)return String(e);if(typeof e==`number`)return Number.isFinite(e)?String(e):`null`;if(typeof e==`string`)return n?e:JSON.stringify(e);let o=i?` `:` `;if(Array.isArray(e))return e.length===0?`[]`:t?`[${e.map(e=>m(e,!0,!1,r,i)).join(`,`)}]`:`[
2
2
  ${e.map(e=>o.repeat(a+1)+m(e,!1,!1,r,i,a+1)).join(`,
3
3
  `)}
4
4
  ${o.repeat(a)}]`;if(typeof e==`object`){let n=Object.keys(e);return r&&(n=n.sort()),n.length===0?`{}`:t?`{${n.map(t=>`${JSON.stringify(t)}:${m(e[t],!0,!1,r,i)}`).join(`,`)}}`:`{
@@ -10,4 +10,4 @@ ${o.repeat(a)}}`}return String(e)}var h={name:`jq`,async execute(l,h){r(h.requir
10
10
  `,exitCode:e.EXIT_CODE};let r=i(n.message);return r.includes(`Unknown function`)?{stdout:``,stderr:`jq: error: ${r}
11
11
  `,exitCode:3}:{stdout:``,stderr:`jq: parse error: ${r}
12
12
  `,exitCode:5}}}},g={name:`jq`,flags:[{flag:`-r`,type:`boolean`},{flag:`-c`,type:`boolean`},{flag:`-e`,type:`boolean`},{flag:`-s`,type:`boolean`},{flag:`-n`,type:`boolean`},{flag:`-j`,type:`boolean`},{flag:`-S`,type:`boolean`},{flag:`--tab`,type:`boolean`}],stdinType:`json`,needsArgs:!0};export{g as n,h as t};
13
- //# sourceMappingURL=chunk-YCFVLTST-PFJX6AMj.mjs.map
13
+ //# sourceMappingURL=chunk-YCFVLTST-BmaROM0X.mjs.map
@@ -1,5 +1,5 @@
1
- import{t as e}from"./chunk-YNYSPYQ5-Dq-BWW-f.mjs";import{n as t}from"./chunk-3THT3N7L-DrzOuTpA.mjs";var n={name:`expr`,async execute(e,n){if(e.length===0)return{stdout:``,stderr:`expr: missing operand
1
+ import{t as e}from"./chunk-YNYSPYQ5-DzToRSq3.mjs";import{n as t}from"./chunk-3THT3N7L-DJBUbZXN.mjs";var n={name:`expr`,async execute(e,n){if(e.length===0)return{stdout:``,stderr:`expr: missing operand
2
2
  `,exitCode:2};try{let t=r(e),n=t===`0`||t===``?1:0;return{stdout:`${t}
3
3
  `,stderr:``,exitCode:n}}catch(e){return{stdout:``,stderr:`expr: ${t(e.message)}
4
4
  `,exitCode:2}}}};function r(t){if(t.length===1)return t[0];let n=0;function r(){let e=i();for(;n<t.length&&t[n]===`|`;){n++;let t=i();if(e!==`0`&&e!==``)return e;e=t}return e}function i(){let e=a();for(;n<t.length&&t[n]===`&`;){n++;let t=a();(e===`0`||e===``||t===`0`||t===``)&&(e=`0`)}return e}function a(){let e=o();for(;n<t.length;){let r=t[n];if([`=`,`!=`,`<`,`>`,`<=`,`>=`].includes(r)){n++;let t=o(),i=parseInt(e,10),a=parseInt(t,10),s=!Number.isNaN(i)&&!Number.isNaN(a),c;c=r===`=`?s?i===a:e===t:r===`!=`?s?i!==a:e!==t:r===`<`?s?i<a:e<t:r===`>`?s?i>a:e>t:r===`<=`?s?i<=a:e<=t:s?i>=a:e>=t,e=c?`1`:`0`}else break}return e}function o(){let e=s();for(;n<t.length;){let r=t[n];if(r===`+`||r===`-`){n++;let t=s(),i=parseInt(e,10),a=parseInt(t,10);if(Number.isNaN(i)||Number.isNaN(a))throw Error(`non-integer argument`);e=String(r===`+`?i+a:i-a)}else break}return e}function s(){let e=c();for(;n<t.length;){let r=t[n];if(r===`*`||r===`/`||r===`%`){n++;let t=c(),i=parseInt(e,10),a=parseInt(t,10);if(Number.isNaN(i)||Number.isNaN(a))throw Error(`non-integer argument`);if((r===`/`||r===`%`)&&a===0)throw Error(`division by zero`);e=String(r===`*`?i*a:r===`/`?Math.trunc(i/a):i%a)}else break}return e}function c(){let r=l();for(;n<t.length&&t[n]===`:`;){n++;let t=e(`^${l()}`).match(r);r=t?t[1]===void 0?String(t[0].length):t[1]:`0`}return r}function l(){if(n>=t.length)throw Error(`syntax error`);let i=t[n];if(i===`match`){n++;let t=l(),r=e(l()).match(t);return r?r[1]===void 0?String(r[0].length):r[1]:`0`}if(i===`substr`){n++;let e=l(),t=parseInt(l(),10),r=parseInt(l(),10);if(Number.isNaN(t)||Number.isNaN(r))throw Error(`non-integer argument`);return e.substring(t-1,t-1+r)}if(i===`index`){n++;let e=l(),t=l();for(let n=0;n<e.length;n++)if(t.includes(e[n]))return String(n+1);return`0`}if(i===`length`){n++;let e=l();return String(e.length)}if(i===`(`){n++;let e=r();if(n>=t.length||t[n]!==`)`)throw Error(`syntax error`);return n++,e}return n++,i}return r()}var i={name:`expr`,flags:[],needsArgs:!0};export{n,i as t};
5
- //# sourceMappingURL=chunk-YFG2CMIF-CVDz5Fsh.mjs.map
5
+ //# sourceMappingURL=chunk-YFG2CMIF-BkByVZEv.mjs.map
@@ -31,4 +31,4 @@ re2js/build/index.esm.js:
31
31
  *)
32
32
  */
33
33
  export{ce as n,se as t};
34
- //# sourceMappingURL=chunk-YNYSPYQ5-Dq-BWW-f.mjs.map
34
+ //# sourceMappingURL=chunk-YNYSPYQ5-DzToRSq3.mjs.map
@@ -1,4 +1,4 @@
1
- import{n as e,r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as r}from"./chunk-J642UCRS-D2hPh3Cf.mjs";import{n as i,t as a}from"./chunk-VLGZJRPG-B678hnuU.mjs";var o={name:`grep`,summary:`print lines that match patterns`,usage:`grep [OPTION]... PATTERN [FILE]...`,options:[`-E, --extended-regexp PATTERN is an extended regular expression`,`-P, --perl-regexp PATTERN is a Perl regular expression`,`-F, --fixed-strings PATTERN is a set of newline-separated strings`,`-i, --ignore-case ignore case distinctions`,`-v, --invert-match select non-matching lines`,`-w, --word-regexp match only whole words`,`-x, --line-regexp match only whole lines`,`-c, --count print only a count of matching lines`,`-l, --files-with-matches print only names of files with matches`,`-L, --files-without-match print names of files with no matches`,`-m NUM, --max-count=NUM stop after NUM matches`,`-n, --line-number print line number with output lines`,`-h, --no-filename suppress the file name prefix on output`,`-o, --only-matching show only nonempty parts of lines that match`,`-q, --quiet, --silent suppress all normal output`,`-r, -R, --recursive search directories recursively`,`-A NUM print NUM lines of trailing context`,`-B NUM print NUM lines of leading context`,`-C NUM print NUM lines of context`,`-e PATTERN use PATTERN for matching`,` --include=GLOB search only files matching GLOB`,` --exclude=GLOB skip files matching GLOB`,` --exclude-dir=DIR skip directories matching DIR`,` --help display this help and exit`]},s={name:`grep`,async execute(s,c){if(n(s))return t(o);let l=!1,f=!1,p=!1,m=!1,h=!1,g=!1,_=!1,v=!1,y=!1,b=!1,x=!1,S=!1,C=!1,w=!1,T=!1,E=0,D=0,O=0,k=[],A=[],j=[],M=null,N=[];for(let t=0;t<s.length;t++){let n=s[t];if(n.startsWith(`-`)&&n!==`-`){if(n===`-e`&&t+1<s.length){M=s[++t];continue}if(n.startsWith(`--include=`)){k.push(n.slice(10));continue}if(n.startsWith(`--exclude=`)){A.push(n.slice(10));continue}if(n.startsWith(`--exclude-dir=`)){j.push(n.slice(14));continue}if(n.startsWith(`--max-count=`)){E=parseInt(n.slice(12),10);continue}let r=n.match(/^-m(\d+)$/);if(r){E=parseInt(r[1],10);continue}if(n===`-m`&&t+1<s.length){E=parseInt(s[++t],10);continue}let i=n.match(/^-([ABC])(\d+)$/);if(i){let e=parseInt(i[2],10);i[1]===`A`?O=e:i[1]===`B`?D=e:i[1]===`C`&&(D=e,O=e);continue}if((n===`-A`||n===`-B`||n===`-C`)&&t+1<s.length){let e=parseInt(s[++t],10);n===`-A`?O=e:n===`-B`?D=e:(D=e,O=e);continue}let a=n.startsWith(`--`)?[n]:n.slice(1).split(``);for(let t of a)if(t===`i`||t===`--ignore-case`)l=!0;else if(t===`n`||t===`--line-number`)f=!0;else if(t===`v`||t===`--invert-match`)p=!0;else if(t===`c`||t===`--count`)m=!0;else if(t===`l`||t===`--files-with-matches`)h=!0;else if(t===`L`||t===`--files-without-match`)g=!0;else if(t===`r`||t===`R`||t===`--recursive`)_=!0;else if(t===`w`||t===`--word-regexp`)v=!0;else if(t===`x`||t===`--line-regexp`)y=!0;else if(t===`E`||t===`--extended-regexp`)b=!0;else if(t===`P`||t===`--perl-regexp`)x=!0;else if(t===`F`||t===`--fixed-strings`)S=!0;else if(t===`o`||t===`--only-matching`)C=!0;else if(t===`h`||t===`--no-filename`)w=!0;else if(t===`q`||t===`--quiet`||t===`--silent`)T=!0;else{if(t.startsWith(`--`))return e(`grep`,t);if(t.length===1)return e(`grep`,`-${t}`)}}else M===null?M=n:N.push(n)}if(M===null)return{stdout:``,stderr:`grep: missing pattern
1
+ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-C0z9lC1m.mjs";import{t as r}from"./chunk-J642UCRS-C2r2kMIX.mjs";import{n as i,t as a}from"./chunk-VLGZJRPG-CL-TEQ8j.mjs";var o={name:`grep`,summary:`print lines that match patterns`,usage:`grep [OPTION]... PATTERN [FILE]...`,options:[`-E, --extended-regexp PATTERN is an extended regular expression`,`-P, --perl-regexp PATTERN is a Perl regular expression`,`-F, --fixed-strings PATTERN is a set of newline-separated strings`,`-i, --ignore-case ignore case distinctions`,`-v, --invert-match select non-matching lines`,`-w, --word-regexp match only whole words`,`-x, --line-regexp match only whole lines`,`-c, --count print only a count of matching lines`,`-l, --files-with-matches print only names of files with matches`,`-L, --files-without-match print names of files with no matches`,`-m NUM, --max-count=NUM stop after NUM matches`,`-n, --line-number print line number with output lines`,`-h, --no-filename suppress the file name prefix on output`,`-o, --only-matching show only nonempty parts of lines that match`,`-q, --quiet, --silent suppress all normal output`,`-r, -R, --recursive search directories recursively`,`-A NUM print NUM lines of trailing context`,`-B NUM print NUM lines of leading context`,`-C NUM print NUM lines of context`,`-e PATTERN use PATTERN for matching`,` --include=GLOB search only files matching GLOB`,` --exclude=GLOB skip files matching GLOB`,` --exclude-dir=DIR skip directories matching DIR`,` --help display this help and exit`]},s={name:`grep`,async execute(s,c){if(n(s))return t(o);let l=!1,f=!1,p=!1,m=!1,h=!1,g=!1,_=!1,v=!1,y=!1,b=!1,x=!1,S=!1,C=!1,w=!1,T=!1,E=0,D=0,O=0,k=[],A=[],j=[],M=null,N=[];for(let t=0;t<s.length;t++){let n=s[t];if(n.startsWith(`-`)&&n!==`-`){if(n===`-e`&&t+1<s.length){M=s[++t];continue}if(n.startsWith(`--include=`)){k.push(n.slice(10));continue}if(n.startsWith(`--exclude=`)){A.push(n.slice(10));continue}if(n.startsWith(`--exclude-dir=`)){j.push(n.slice(14));continue}if(n.startsWith(`--max-count=`)){E=parseInt(n.slice(12),10);continue}let r=n.match(/^-m(\d+)$/);if(r){E=parseInt(r[1],10);continue}if(n===`-m`&&t+1<s.length){E=parseInt(s[++t],10);continue}let i=n.match(/^-([ABC])(\d+)$/);if(i){let e=parseInt(i[2],10);i[1]===`A`?O=e:i[1]===`B`?D=e:i[1]===`C`&&(D=e,O=e);continue}if((n===`-A`||n===`-B`||n===`-C`)&&t+1<s.length){let e=parseInt(s[++t],10);n===`-A`?O=e:n===`-B`?D=e:(D=e,O=e);continue}let a=n.startsWith(`--`)?[n]:n.slice(1).split(``);for(let t of a)if(t===`i`||t===`--ignore-case`)l=!0;else if(t===`n`||t===`--line-number`)f=!0;else if(t===`v`||t===`--invert-match`)p=!0;else if(t===`c`||t===`--count`)m=!0;else if(t===`l`||t===`--files-with-matches`)h=!0;else if(t===`L`||t===`--files-without-match`)g=!0;else if(t===`r`||t===`R`||t===`--recursive`)_=!0;else if(t===`w`||t===`--word-regexp`)v=!0;else if(t===`x`||t===`--line-regexp`)y=!0;else if(t===`E`||t===`--extended-regexp`)b=!0;else if(t===`P`||t===`--perl-regexp`)x=!0;else if(t===`F`||t===`--fixed-strings`)S=!0;else if(t===`o`||t===`--only-matching`)C=!0;else if(t===`h`||t===`--no-filename`)w=!0;else if(t===`q`||t===`--quiet`||t===`--silent`)T=!0;else{if(t.startsWith(`--`))return e(`grep`,t);if(t.length===1)return e(`grep`,`-${t}`)}}else M===null?M=n:N.push(n)}if(M===null)return{stdout:``,stderr:`grep: missing pattern
2
2
  `,exitCode:2};let P=S?`fixed`:b?`extended`:x?`perl`:`basic`,F,I;try{let e=i(M,{mode:P,ignoreCase:l,wholeWord:v,lineRegexp:y});F=e.regex,I=e.kResetGroup}catch{return{stdout:``,stderr:`grep: invalid regular expression: ${M}
3
3
  `,exitCode:2}}if(N.length===0&&c.stdin!==void 0){let e=a(c.stdin,F,{invertMatch:p,showLineNumbers:f,countOnly:m,filename:``,onlyMatching:C,beforeContext:D,afterContext:O,maxCount:E,kResetGroup:I});return T?{stdout:``,stderr:``,exitCode:e.matched?0:1}:{stdout:e.output,stderr:``,exitCode:e.matched?0:1}}if(N.length===0)return{stdout:``,stderr:`grep: no input files
4
4
  `,exitCode:2};let L=``,R=``,z=!1,B=!1,V=[];for(let e of N)if(e.includes(`*`)||e.includes(`?`)||e.includes(`[`)){let t=await u(e,c);if(_)for(let e of t){let t=await d(e.path,c,k,A,j,e.isFile);V.push(...t)}else V.push(...t)}else if(_){let t=await d(e,c,k,A,j);V.push(...t)}else V.push({path:e});let H=(V.length>1||_)&&!w;for(let e=0;e<V.length;e+=50){let t=V.slice(e,e+50),n=await Promise.all(t.map(async e=>{let t=e.path,n=t.split(`/`).pop()||t;if(A.length>0&&!_&&A.some(e=>r(n,e,{stripQuotes:!0}))||k.length>0&&!_&&!k.some(e=>r(n,e,{stripQuotes:!0})))return null;try{let n=c.fs.resolvePath(c.cwd,t),r=!1;return r=e.isFile===void 0?(await c.fs.stat(n)).isDirectory:!e.isFile,r?_?null:{error:`grep: ${t}: Is a directory
@@ -6,4 +6,4 @@ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as r}fr
6
6
  `}}}));for(let e of n){if(e===null)continue;if(`error`in e&&e.error){R+=e.error,e.error.includes(`Is a directory`)||(B=!0);continue}if(!(`file`in e)||!e.result)continue;let{file:t,result:n}=e;if(n.matched){if(z=!0,T)return{stdout:``,stderr:``,exitCode:0};h?L+=`${t}
7
7
  `:g||(L+=n.output)}else g?L+=`${t}
8
8
  `:m&&!h&&(L+=n.output)}}let U;return U=B?2:g?L.length>0?0:1:z?0:1,T?{stdout:``,stderr:``,exitCode:U}:{stdout:L,stderr:R,exitCode:U}}},c=256;async function l(e,t,n,i,a=0){if(a>=c)return;let o=n.fs.resolvePath(n.cwd,e);try{if(!(await n.fs.stat(o)).isDirectory){let n=e.split(`/`).pop()||``;t&&r(n,t.replace(/^\//,``),{stripQuotes:!0})&&i.push(e);return}let s=await n.fs.readdir(o);for(let o of s){let s=e===`.`?o:`${e}/${o}`,c=n.fs.resolvePath(n.cwd,s);(await n.fs.stat(c)).isDirectory?await l(s,t,n,i,a+1):t&&r(o,t.replace(/^\//,``),{stripQuotes:!0})&&i.push(s)}}catch{}}async function u(e,t){let n=[],i=e.lastIndexOf(`/`),a,o;if(i===-1?(a=t.cwd,o=e):(a=e.slice(0,i)||`/`,o=e.slice(i+1)),e.includes(`**`)){let n=[],r=e.split(`**`);return await l(r[0].replace(/\/$/,``)||`.`,r[1]||``,t,n),n.map(e=>({path:e}))}let s=t.fs.resolvePath(t.cwd,a);try{if(t.fs.readdirWithFileTypes){let e=await t.fs.readdirWithFileTypes(s);for(let t of e)if(r(t.name,o,{stripQuotes:!0})){let e=i===-1?t.name:`${a}/${t.name}`;n.push({path:e,isFile:t.isFile})}}else{let e=await t.fs.readdir(s);for(let t of e)if(r(t,o,{stripQuotes:!0})){let e=i===-1?t:`${a}/${t}`;n.push({path:e})}}}catch{}return n.sort((e,t)=>e.path.localeCompare(t.path))}async function d(e,t,n=[],i=[],a=[],o,s=0){if(s>=c)return[];let l=t.fs.resolvePath(t.cwd,e),u=[];try{let c,f;if(o!==void 0)c=o,f=!o;else{let e=await t.fs.stat(l);c=e.isFile,f=e.isDirectory}if(c){let t=e.split(`/`).pop()||e;return i.length>0&&i.some(e=>r(t,e,{stripQuotes:!0}))||n.length>0&&!n.some(e=>r(t,e,{stripQuotes:!0}))?[]:[{path:e,isFile:!0}]}if(!f)return[];let p=e.split(`/`).pop()||e;if(a.length>0&&a.some(e=>r(p,e,{stripQuotes:!0})))return[];if(t.fs.readdirWithFileTypes){let r=await t.fs.readdirWithFileTypes(l);for(let o of r){if(o.name.startsWith(`.`))continue;let r=await d(e===`.`?o.name:`${e}/${o.name}`,t,n,i,a,o.isFile,s+1);u.push(...r)}}else{let r=await t.fs.readdir(l);for(let o of r){if(o.startsWith(`.`))continue;let r=await d(e===`.`?o:`${e}/${o}`,t,n,i,a,void 0,s+1);u.push(...r)}}}catch{}return u}var f={name:`fgrep`,async execute(e,t){return s.execute([`-F`,...e],t)}},p={name:`egrep`,async execute(e,t){return s.execute([`-E`,...e],t)}},m={name:`grep`,flags:[{flag:`-E`,type:`boolean`},{flag:`-F`,type:`boolean`},{flag:`-P`,type:`boolean`},{flag:`-i`,type:`boolean`},{flag:`-v`,type:`boolean`},{flag:`-w`,type:`boolean`},{flag:`-x`,type:`boolean`},{flag:`-c`,type:`boolean`},{flag:`-l`,type:`boolean`},{flag:`-L`,type:`boolean`},{flag:`-n`,type:`boolean`},{flag:`-h`,type:`boolean`},{flag:`-o`,type:`boolean`},{flag:`-q`,type:`boolean`},{flag:`-r`,type:`boolean`},{flag:`-m`,type:`value`,valueHint:`number`},{flag:`-A`,type:`value`,valueHint:`number`},{flag:`-B`,type:`value`,valueHint:`number`},{flag:`-C`,type:`value`,valueHint:`number`},{flag:`-e`,type:`value`,valueHint:`pattern`}],stdinType:`text`,needsArgs:!0},h={name:`fgrep`,flags:[],stdinType:`text`,needsArgs:!0},g={name:`egrep`,flags:[],stdinType:`text`,needsArgs:!0};export{g as a,s as i,h as n,m as o,p as r,f as t};
9
- //# sourceMappingURL=chunk-YS3AZT3J-DRSVwRFh.mjs.map
9
+ //# sourceMappingURL=chunk-YS3AZT3J-UyG_PuPK.mjs.map
@@ -1,4 +1,4 @@
1
- import{n as e,t}from"./chunk-A5O5YHGN-DQP-O5US.mjs";import{t as n}from"./chunk-IPJHKYVM-orb6vjJ1.mjs";import{n as r,r as i,t as a}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{t as o}from"./chunk-3ZUFRYJ4-C93H8j0V.mjs";var s={name:`timeout`,summary:`run a command with a time limit`,usage:`timeout [OPTION] DURATION COMMAND [ARG]...`,description:`Start COMMAND, and kill it if still running after DURATION.
1
+ import{n as e,t}from"./chunk-A5O5YHGN-C4hFXTXp.mjs";import{t as n}from"./chunk-IPJHKYVM-CkYRWt-S.mjs";import{n as r,r as i,t as a}from"./chunk-74CEPOFO-C0z9lC1m.mjs";import{t as o}from"./chunk-3ZUFRYJ4-CZwQds6b.mjs";var s={name:`timeout`,summary:`run a command with a time limit`,usage:`timeout [OPTION] DURATION COMMAND [ARG]...`,description:`Start COMMAND, and kill it if still running after DURATION.
2
2
 
3
3
  DURATION is a number with optional suffix:
4
4
  s - seconds (default)
@@ -9,4 +9,4 @@ DURATION is a number with optional suffix:
9
9
  `,exitCode:1};let m=d.slice(1);if(m.length===0)return{stdout:``,stderr:`timeout: missing operand
10
10
  `,exitCode:1};if(!l.exec)return{stdout:``,stderr:`timeout: exec not available
11
11
  `,exitCode:1};let h=new AbortController,g;try{let e=new Promise(e=>{g=t(()=>{h.abort(),e({timedOut:!0})},p)}),r=l.exec(n([m[0]]),{cwd:l.cwd,signal:h.signal,stdin:l.stdin,args:m.slice(1)}).then(e=>({timedOut:!1,result:e})),i=await Promise.race([e,r]);return i.timedOut?{stdout:``,stderr:``,exitCode:124}:i.result}finally{g!==void 0&&e(g)}}},l={name:`timeout`,flags:[{flag:`-k`,type:`value`,valueHint:`string`},{flag:`-s`,type:`value`,valueHint:`string`},{flag:`--preserve-status`,type:`boolean`},{flag:`--foreground`,type:`boolean`}],needsArgs:!0,minArgs:2};export{c as n,l as t};
12
- //# sourceMappingURL=chunk-YTNYSM6T-KUvMCIKS.mjs.map
12
+ //# sourceMappingURL=chunk-YTNYSM6T-DTKgzm9i.mjs.map
@@ -1,4 +1,4 @@
1
- import{r as e}from"./chunk-CWQS3NFK-BQ5SUtd7.mjs";import{t}from"./chunk-IPJHKYVM-orb6vjJ1.mjs";import{r as n}from"./chunk-OJDRYQWQ-D4lSWh0K.mjs";import{n as r}from"./chunk-3THT3N7L-DrzOuTpA.mjs";var i={name:`time`,async execute(i,o){let s=`%e %M`,c=null,l=!1,u=!1,d=0;for(;d<i.length;){let e=i[d];if(e===`-f`||e===`--format`){if(d++,d>=i.length)return{stdout:``,stderr:`time: missing argument to '-f'
1
+ import{r as e}from"./chunk-CWQS3NFK-CKoiDb4a.mjs";import{t}from"./chunk-IPJHKYVM-CkYRWt-S.mjs";import{r as n}from"./chunk-OJDRYQWQ-XHSNzsVx.mjs";import{n as r}from"./chunk-3THT3N7L-DJBUbZXN.mjs";var i={name:`time`,async execute(i,o){let s=`%e %M`,c=null,l=!1,u=!1,d=0;for(;d<i.length;){let e=i[d];if(e===`-f`||e===`--format`){if(d++,d>=i.length)return{stdout:``,stderr:`time: missing argument to '-f'
2
2
  `,exitCode:1};s=i[d],d++}else if(e===`-o`||e===`--output`){if(d++,d>=i.length)return{stdout:``,stderr:`time: missing argument to '-o'
3
3
  `,exitCode:1};c=i[d],d++}else if(e===`-a`||e===`--append`)l=!0,d++;else if(e===`-v`||e===`--verbose`)s=`Command being timed: %C
4
4
  Elapsed (wall clock) time: %e seconds
@@ -11,4 +11,4 @@ sys 0.00
11
11
  `)||(_+=`
12
12
  `)),c)try{let e=o.fs.resolvePath(o.cwd,c);if(l&&await o.fs.exists(e)){let t=await o.fs.readFile(e);await o.fs.writeFile(e,t+_)}else await o.fs.writeFile(e,_)}catch(e){let t=r(e.message);return{stdout:h.stdout,stderr:h.stderr+`time: cannot write to '${c}': ${t}
13
13
  `,exitCode:h.exitCode}}else h={...h,stderr:h.stderr+_};return h}};function a(e){let t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60;return t>0?`${t}:${n.toString().padStart(2,`0`)}:${r.toFixed(2).padStart(5,`0`)}`:`${n}:${r.toFixed(2).padStart(5,`0`)}`}var o={name:`time`,flags:[{flag:`-p`,type:`boolean`}],needsArgs:!0};export{i as n,o as t};
14
- //# sourceMappingURL=chunk-Z6LRHWXI-CF_r-CgG.mjs.map
14
+ //# sourceMappingURL=chunk-Z6LRHWXI-cGXlZt55.mjs.map
@@ -1,4 +1,4 @@
1
- import{n as e,r as t,t as n}from"./chunk-74CEPOFO-D1bzz49u.mjs";var r={name:`comm`,summary:`compare two sorted files line by line`,usage:`comm [OPTION]... FILE1 FILE2`,options:[`-1 suppress column 1 (lines unique to FILE1)`,`-2 suppress column 2 (lines unique to FILE2)`,`-3 suppress column 3 (lines that appear in both files)`,` --help display this help and exit`]},i={name:`comm`,async execute(i,a){if(n(i))return t(r);let o=!1,s=!1,c=!1,l=[];for(let t of i)if(t===`-1`)o=!0;else if(t===`-2`)s=!0;else if(t===`-3`)c=!0;else if(t===`-12`||t===`-21`)o=!0,s=!0;else if(t===`-13`||t===`-31`)o=!0,c=!0;else if(t===`-23`||t===`-32`)s=!0,c=!0;else if(t===`-123`||t===`-132`||t===`-213`||t===`-231`||t===`-312`||t===`-321`)o=!0,s=!0,c=!0;else{if(t.startsWith(`-`)&&t!==`-`)return e(`comm`,t);l.push(t)}if(l.length!==2)return{stdout:``,stderr:`comm: missing operand
1
+ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-C0z9lC1m.mjs";var r={name:`comm`,summary:`compare two sorted files line by line`,usage:`comm [OPTION]... FILE1 FILE2`,options:[`-1 suppress column 1 (lines unique to FILE1)`,`-2 suppress column 2 (lines unique to FILE2)`,`-3 suppress column 3 (lines that appear in both files)`,` --help display this help and exit`]},i={name:`comm`,async execute(i,a){if(n(i))return t(r);let o=!1,s=!1,c=!1,l=[];for(let t of i)if(t===`-1`)o=!0;else if(t===`-2`)s=!0;else if(t===`-3`)c=!0;else if(t===`-12`||t===`-21`)o=!0,s=!0;else if(t===`-13`||t===`-31`)o=!0,c=!0;else if(t===`-23`||t===`-32`)s=!0,c=!0;else if(t===`-123`||t===`-132`||t===`-213`||t===`-231`||t===`-312`||t===`-321`)o=!0,s=!0,c=!0;else{if(t.startsWith(`-`)&&t!==`-`)return e(`comm`,t);l.push(t)}if(l.length!==2)return{stdout:``,stderr:`comm: missing operand
2
2
  Try 'comm --help' for more information.
3
3
  `,exitCode:1};let u=async e=>{if(e===`-`)return a.stdin;try{let t=a.fs.resolvePath(a.cwd,e);return await a.fs.readFile(t)}catch{return null}},d=await u(l[0]);if(d===null)return{stdout:``,stderr:`comm: ${l[0]}: No such file or directory
4
4
  `,exitCode:1};let f=await u(l[1]);if(f===null)return{stdout:``,stderr:`comm: ${l[1]}: No such file or directory
@@ -9,4 +9,4 @@ Try 'comm --help' for more information.
9
9
  `),h++):p[h]>m[g]?(s||(_+=`${v}${m[g]}
10
10
  `),g++):(c||(_+=`${y}${p[h]}
11
11
  `),h++,g++);return{stdout:_,stderr:``,exitCode:0}}},a={name:`comm`,flags:[{flag:`-1`,type:`boolean`},{flag:`-2`,type:`boolean`},{flag:`-3`,type:`boolean`}],needsArgs:!0,minArgs:2};export{a as n,i as t};
12
- //# sourceMappingURL=chunk-Z7JVV2SM-BzR-yvwK.mjs.map
12
+ //# sourceMappingURL=chunk-Z7JVV2SM-Bl6lCuB7.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-LL3S3NLB-Bp5rf7JW.mjs";export{e as clearCommand};
package/dist/cli.d.mts CHANGED
@@ -1,7 +1,5 @@
1
- import { Logger } from "pino";
2
-
3
1
  //#region src/cli.d.ts
4
- declare function getCliLogger(): Logger | undefined;
2
+ declare function getCliLogger(): PinoLoggerInstance | undefined;
5
3
  //#endregion
6
4
  export { getCliLogger };
7
5
  //# sourceMappingURL=cli.d.mts.map
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{o as e}from"./chunk-FK9Q3tQk.mjs";import{t}from"./esm-CEs3LWY3.mjs";import{$ as n,$r as r,Ai as i,Bi as a,D as o,Ei as s,Et as c,Fi as l,G as u,H as d,Hi as f,Ii as p,Jt as m,Kn as h,Li as g,Mi as _,Ni as v,O as ee,Oi as te,Pi as y,Pn as b,Qn as ne,Qr as re,Ri as x,Si as ie,Ui as ae,V as oe,Vi as se,Wi as ce,Zr as le,ai as ue,an as de,cn as fe,ei as pe,gr as me,h as he,it as ge,ni as _e,si as ve,st as ye,ti as be,tr as xe,yn as Se,zi as S}from"./dist-DikIN25T.mjs";import{a as Ce,n as we,r as Te,t as Ee}from"./gh-detect-DaEGWQM-.mjs";import{n as De,r as Oe,t as C}from"./dist-bundle-BK4P1EQn.mjs";import{C as ke,D as Ae,E as je,O as Me,S as Ne,T as Pe,b as Fe,k as Ie,o as Le,p as Re,w as ze,x as Be,y as Ve}from"./init-DX-Cg7hF.mjs";import{c as He,f as Ue,l as We,n as Ge,s as w}from"./server-lock-BniQ3qki-C_0QTo_r.mjs";import{i as Ke}from"./git-handle-CjyGVy33-B_7lAMm9.mjs";import{n as qe}from"./constants-EVa8rJ0p.mjs";import{i as Je}from"./src-Q5deioVX.mjs";import{n as Ye,t as Xe}from"./loader-0yiiW-5-.mjs";import{c as Ze,f as Qe,h as $e,m as et,p as tt,u as nt}from"./start-DUoyJgxA.mjs";import{c as rt,i as it,n as T,o as E,r as D,s as at,t as O}from"./colors-D0wh7lK1.mjs";import{n as ot}from"./repair-skills-B0q960oj.mjs";import{execSync as st,spawn as k,spawnSync as A}from"node:child_process";import ct,{basename as lt,dirname as ut,isAbsolute as dt,join as j,relative as ft,resolve as M}from"node:path";import{closeSync as pt,createWriteStream as mt,existsSync as N,lstatSync as ht,mkdirSync as gt,mkdtempSync as _t,openSync as vt,readFileSync as P,readdirSync as yt,realpathSync as bt,rmSync as xt,statSync as St,unlinkSync as Ct,writeFileSync as wt}from"node:fs";import Tt from"node:process";import{freemem as Et,homedir as Dt,hostname as Ot,platform as kt,release as At,tmpdir as jt,totalmem as Mt,type as Nt,uptime as Pt}from"node:os";import{fileURLToPath as Ft}from"node:url";import{AsyncLocalStorage as It,AsyncResource as Lt}from"node:async_hooks";import{stripVTControlCharacters as Rt,styleText as F}from"node:util";import*as zt from"node:readline";import{createHash as Bt,randomUUID as Vt}from"node:crypto";import{realpath as Ht}from"node:fs/promises";import{setTimeout as Ut}from"node:timers/promises";import{createInterface as Wt}from"node:readline/promises";async function Gt(e,t,n){let r=Kt(await qt(e)).host??``;if(!r)return 1;let i=await n.get(r);if(i==null)return 1;let a=e=>e.replace(/[\r\n]/g,``);return t.write(`username=${a(i.login)}\npassword=${a(i.token)}\n`),0}function Kt(e){let t={};for(let n of e.split(`
2
+ import{o as e}from"./chunk-FK9Q3tQk.mjs";import{t}from"./esm-CEs3LWY3.mjs";import{$ as n,$r as r,Ai as i,Bi as a,D as o,Ei as s,Et as c,Fi as l,G as u,H as d,Hi as f,Ii as p,Jt as m,Kn as h,Li as g,Mi as _,Ni as v,O as ee,Oi as te,Pi as y,Pn as b,Qn as ne,Qr as re,Ri as x,Si as ie,Ui as ae,V as oe,Vi as se,Wi as ce,Zr as le,ai as ue,an as de,cn as fe,ei as pe,gr as me,h as he,it as ge,ni as _e,si as ve,st as ye,ti as be,tr as xe,yn as Se,zi as S}from"./dist-DPw5LLnH.mjs";import{a as Ce,n as we,r as Te,t as Ee}from"./gh-detect-Dpt-CKPz.mjs";import{n as De,r as Oe,t as C}from"./dist-bundle-BK4P1EQn.mjs";import{C as ke,D as Ae,E as je,O as Me,S as Ne,T as Pe,b as Fe,k as Ie,o as Le,p as Re,w as ze,x as Be,y as Ve}from"./init-GoEmWzaD.mjs";import{c as He,f as Ue,l as We,n as Ge,s as w}from"./server-lock-BniQ3qki-C_0QTo_r.mjs";import{i as Ke}from"./git-handle-CjyGVy33-B_7lAMm9.mjs";import{n as qe}from"./constants-wXFGHCVz.mjs";import{i as Je}from"./src-CO_kNOTR.mjs";import{n as Ye,t as Xe}from"./loader-Dt2XpPBT.mjs";import{c as Ze,f as Qe,h as $e,m as et,p as tt,u as nt}from"./start-B1bWSW7K.mjs";import{c as rt,i as it,n as T,o as E,r as D,s as at,t as O}from"./colors-DEbd2OH6.mjs";import{n as ot}from"./repair-skills-C-YEuEjC.mjs";import{execSync as st,spawn as k,spawnSync as A}from"node:child_process";import ct,{basename as lt,dirname as ut,isAbsolute as dt,join as j,relative as ft,resolve as M}from"node:path";import{closeSync as pt,createWriteStream as mt,existsSync as N,lstatSync as ht,mkdirSync as gt,mkdtempSync as _t,openSync as vt,readFileSync as P,readdirSync as yt,realpathSync as bt,rmSync as xt,statSync as St,unlinkSync as Ct,writeFileSync as wt}from"node:fs";import Tt from"node:process";import{freemem as Et,homedir as Dt,hostname as Ot,platform as kt,release as At,tmpdir as jt,totalmem as Mt,type as Nt,uptime as Pt}from"node:os";import{fileURLToPath as Ft}from"node:url";import{AsyncLocalStorage as It,AsyncResource as Lt}from"node:async_hooks";import{stripVTControlCharacters as Rt,styleText as F}from"node:util";import*as zt from"node:readline";import{createHash as Bt,randomUUID as Vt}from"node:crypto";import{realpath as Ht}from"node:fs/promises";import{setTimeout as Ut}from"node:timers/promises";import{createInterface as Wt}from"node:readline/promises";async function Gt(e,t,n){let r=Kt(await qt(e)).host??``;if(!r)return 1;let i=await n.get(r);if(i==null)return 1;let a=e=>e.replace(/[\r\n]/g,``);return t.write(`username=${a(i.login)}\npassword=${a(i.token)}\n`),0}function Kt(e){let t={};for(let n of e.split(`
3
3
  `)){let e=n.trim();if(e===``)continue;let r=e.indexOf(`=`);r!==-1&&(t[e.slice(0,r)]=e.slice(r+1))}return t}function qt(e){return new Promise((t,n)=>{let r=[];e.on(`data`,e=>r.push(e)),e.on(`end`,()=>t(Buffer.concat(r).toString(`utf-8`))),e.on(`error`,n)})}function Jt(e){let n=new t(`git-credential`);return n.description(`Git credential helper (git credential-helper protocol)`),n.command(`get`).description(`Lookup credentials from TokenStore (called by git)`).action(async()=>{let t=await e(),n=await Gt(process.stdin,process.stdout,t);process.exit(n)}),n}function Yt(e){let t=e.endpoint.DEFAULTS;return/^https:\/\/(api\.)?github\.com$/.test(t.baseUrl)?`https://github.com`:t.baseUrl.replace(`/api/v3`,``)}async function Xt(e,t,n){let r={baseUrl:Yt(e),headers:{accept:`application/json`},...n},i=await e(t,r);if(`error`in i.data){let n=new De(`${i.data.error_description} (${i.data.error}, ${i.data.error_uri})`,400,{request:e.endpoint.merge(t,r)});throw n.response=i,n}return i}async function Zt(e){let t=e.request||C,n={client_id:e.clientId};return`scopes`in e&&Array.isArray(e.scopes)&&(n.scope=e.scopes.join(` `)),Xt(t,`POST /login/device/code`,n)}async function Qt(e){let t=await Xt(e.request||C,`POST /login/oauth/access_token`,{client_id:e.clientId,device_code:e.code,grant_type:`urn:ietf:params:oauth:grant-type:device_code`}),n={clientType:e.clientType,clientId:e.clientId,token:t.data.access_token,scopes:t.data.scope.split(/\s+/).filter(Boolean)};if(`clientSecret`in e&&(n.clientSecret=e.clientSecret),e.clientType===`github-app`){if(`refresh_token`in t.data){let e=new Date(t.headers.date).getTime();n.refreshToken=t.data.refresh_token,n.expiresAt=$t(e,t.data.expires_in),n.refreshTokenExpiresAt=$t(e,t.data.refresh_token_expires_in)}delete n.scopes}return{...t,authentication:n}}function $t(e,t){return new Date(e+t*1e3).toISOString()}async function en(e,t){let n=tn(e,t.auth);if(n)return n;let{data:r}=await Zt({clientType:e.clientType,clientId:e.clientId,request:t.request||e.request,scopes:t.auth.scopes||e.scopes});await e.onVerification(r);let i=await rn(t.request||e.request,e.clientId,e.clientType,r);return e.authentication=i,i}function tn(e,t){if(t.refresh===!0||!e.authentication)return!1;if(e.clientType===`github-app`)return e.authentication;let n=e.authentication;return(`scopes`in t&&t.scopes||e.scopes).join(` `)===n.scopes.join(` `)?n:!1}async function nn(e){await new Promise(t=>setTimeout(t,e*1e3))}async function rn(e,t,n,r){try{let i={clientId:t,request:e,code:r.device_code},{authentication:a}=n===`oauth-app`?await Qt({...i,clientType:`oauth-app`}):await Qt({...i,clientType:`github-app`});return{type:`token`,tokenType:`oauth`,...a}}catch(i){if(!i.response)throw i;let a=i.response.data.error;if(a===`authorization_pending`)return await nn(r.interval),rn(e,t,n,r);if(a===`slow_down`)return await nn(r.interval+7),rn(e,t,n,r);throw i}}async function an(e,t){return en(e,{auth:t})}async function on(e,t,n,r){let i=t.endpoint.merge(n,r);if(/\/login\/(oauth\/access_token|device\/code)$/.test(i.url))return t(i);let{token:a}=await en(e,{request:t,auth:{type:`oauth`}});return i.headers.authorization=`token ${a}`,t(i)}var sn=`0.0.0-development`;function cn(e){let t=e.request||C.defaults({headers:{"user-agent":`octokit-auth-oauth-device.js/${sn} ${Oe()}`}}),{request:n=t,...r}=e,i=e.clientType===`github-app`?{...r,clientType:`github-app`,request:n}:{...r,clientType:`oauth-app`,request:n,scopes:e.scopes||[]};if(!e.clientId)throw Error(`[@octokit/auth-oauth-device] "clientId" option must be set (https://github.com/octokit/auth-oauth-device.js#usage)`);if(!e.onVerification)throw Error(`[@octokit/auth-oauth-device] "onVerification" option must be a function (https://github.com/octokit/auth-oauth-device.js#usage)`);return Object.assign(an.bind(null,i),{hook:on.bind(null,i)})}async function ln(e){let{clientId:t,scopes:n=[`repo`,`read:user`,`user:email`],onVerification:r,host:i}=e,a=i&&i!==`github.com`?`https://${i}/api/v3`:`https://api.github.com`,o=cn({clientType:`oauth-app`,clientId:t,scopes:n,onVerification:async e=>{await r({verificationUri:e.verification_uri,userCode:e.user_code,expiresIn:e.expires_in,interval:e.interval})},request:a===`https://api.github.com`?void 0:(await import(`./dist-bundle-CjV1Pdeo.mjs`)).request.defaults({baseUrl:a})}),s;try{s=await o({type:`oauth`})}catch(e){if(e instanceof Error){let t=e.message.toLowerCase();throw t.includes(`access_denied`)?Error(`Device-flow authorization was denied.`):t.includes(`expired_token`)||t.includes(`timeout`)||t.includes(`timed out`)?Error(`Device-flow code expired before authorization — please try again.`):Error(`GitHub sign-in failed: ${e.message}`)}throw e}return{token:s.token,tokenType:s.tokenType,scopes:s.scopes??[]}}const un={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`};var dn;(function(e){})(dn||={});function fn(e){return f(_,e)}function pn(){return process.env.OPEN_KNOWLEDGE_GITHUB_CLIENT_ID??`Ov23liqlSd0V1MwR6rhI`}const mn=new Set([`gitlab.com`,`bitbucket.org`,`codeberg.org`,`gitea.com`,`sr.ht`,`sourcehut.org`]);function I(e){let t=e.toLowerCase().replace(/:\d+$/,``);mn.has(t)&&(process.stderr.write(`Error: ${e} is not a GitHub host. Only GitHub and GitHub Enterprise Server are supported.\n`),process.exit(1))}function hn(e,t){e&&process.stdout.write(`${JSON.stringify(t)}\n`)}async function gn(e,t,n=ln){let r=pn(),{host:i,json:a}=e;I(i),a||process.stderr.write(`Logging in to ${i}\n`);let o=await n({clientId:r,host:i===`github.com`?void 0:i,onVerification:e=>{e.userCode,e.verificationUri,a?hn(!0,{type:`verification`,user_code:e.userCode,verification_uri:e.verificationUri,expires_in:e.expiresIn}):process.stderr.write(`Open: ${e.verificationUri}\nEnter code: ${e.userCode}\n`)}}),s=`unknown`,c,l;try{let e=i===`github.com`?`https://api.github.com`:`https://${i}/api/v3`,t=await fetch(`${e}/user`,{headers:{Authorization:`Bearer ${o.token}`,"User-Agent":`open-knowledge-cli`,Accept:`application/vnd.github+json`}});if(t.ok){let e=await t.json();s=e.login??s,c=e.name??void 0,l=e.email??void 0}}catch{}await t.set(i,s,o.token,{gitProtocol:`https`,name:c,email:l}),a?hn(!0,{type:`complete`,host:i,login:s}):process.stderr.write(`✓ Logged in as ${s} on ${i}\n`)}function _n(e){return new t(`login`).description(`Authenticate with GitHub via Device Flow`).option(`--host <host>`,`GitHub or GitHub Enterprise hostname`,`github.com`).option(`--json`,`Output JSONL progress events`,!1).action(async t=>{await gn(t,await e())})}const vn=e=>e.name===`enter`||e.name===`return`;var yn=class extends Error{name=`AbortPromptError`;message=`Prompt was aborted`;constructor(e){super(),this.cause=e?.cause}},bn=class extends Error{name=`CancelPromptError`;message=`Prompt was canceled`},xn=class extends Error{name=`ExitPromptError`},Sn=class extends Error{name=`HookError`},Cn=class extends Error{name=`ValidationError`};const wn=new It;function Tn(e){return{rl:e,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function En(e,t){let n=Tn(e);return wn.run(n,()=>{function e(e){n.handleChange=()=>{n.index=0,e()},n.handleChange()}return t(e)})}function L(){let e=wn.getStore();if(!e)throw new Sn(`[Inquirer] Hook functions can only be called from within a prompt`);return e}function Dn(){return L().rl}function On(e){return Lt.bind((...t)=>{let n=L(),r=!1,i=n.handleChange;n.handleChange=()=>{r=!0};let a=e(...t);return r&&i(),n.handleChange=i,a})}function kn(e){let t=L(),{index:n}=t,r=e({get(){return t.hooks[n]},set(e){t.hooks[n]=e},initialized:n in t.hooks});return t.index++,r}function An(){L().handleChange()}const jn={queue(e){let t=L(),{index:n}=t;t.hooksEffect.push(()=>{t.hooksCleanup[n]?.();let r=e(Dn());if(r!=null&&typeof r!=`function`)throw new Cn(`useEffect return value must be a cleanup function or nothing.`);t.hooksCleanup[n]=r})},run(){let e=L();On(()=>{e.hooksEffect.forEach(e=>{e()}),e.hooksEffect.length=0})()},clearAll(){let e=L();e.hooksCleanup.forEach(e=>{e?.()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}};function Mn(e){return typeof e==`function`}function R(e){return kn(t=>{let n=Lt.bind(function(e){t.get()!==e&&(t.set(e),An())});if(t.initialized)return[t.get(),n];let r=Mn(e)?e():e;return t.set(r),[r,n]})}function Nn(e,t){kn(n=>{let r=n.get();(!Array.isArray(r)||t.some((e,t)=>!Object.is(e,r[t])))&&jn.queue(e),n.set(t)})}const Pn={prefix:{idle:F(`blue`,`?`),done:F(`green`,Ie.tick)},spinner:{interval:80,frames:[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`].map(e=>F(`yellow`,e))},style:{answer:e=>F(`cyan`,e),message:e=>F(`bold`,e),error:e=>F(`red`,`> ${e}`),defaultAnswer:e=>F(`dim`,`(${e})`),help:e=>F(`dim`,e),highlight:e=>F(`cyan`,e),key:e=>F(`cyan`,F(`bold`,`<${e}>`))}};function Fn(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function In(...e){let t={};for(let n of e)for(let[e,r]of Object.entries(n)){let n=t[e];t[e]=Fn(n)&&Fn(r)?In(n,r):r}return t}function Ln(...e){return In(Pn,...e.filter(e=>e!=null))}function Rn({status:e=`idle`,theme:t}){let[n,r]=R(!1),[i,a]=R(0),{prefix:o,spinner:s}=Ln(t);return Nn(()=>{if(e===`loading`){let e,t=-1,n=setTimeout(()=>{r(!0),e=setInterval(()=>{t+=1,a(t%s.frames.length)},s.interval)},300);return()=>{clearTimeout(n),clearInterval(e)}}else r(!1)},[e]),n?s.frames[i]:typeof o==`string`?o:o[e===`loading`?`idle`:e]??o.idle}function zn(e){return R({current:e})[0]}function Bn(e){let t=zn(e);t.current=e,Nn(e=>{let n=!1,r=On((r,i)=>{n||t.current(i,e)});return e.input.on(`keypress`,r),()=>{n=!0,e.input.removeListener(`keypress`,r)}},[])}var Vn=e(Me(),1);function Hn(e,t){return e.split(`
4
4
  `).flatMap(e=>Ae(e,t,{trim:!1,hard:!0}).split(`
5
5
  `).map(e=>e.trimEnd())).join(`
@@ -17,13 +17,13 @@ import{o as e}from"./chunk-FK9Q3tQk.mjs";import{t}from"./esm-CEs3LWY3.mjs";impor
17
17
  `)}function $r(){return new t(`signout`).description(`Remove stored credentials`).option(`--host <host>`,`GitHub hostname`,`github.com`).action(async e=>{await Qr(e)})}async function ei(e,t,n=Ee){let r=n(e);if(r.available&&r.token)return{tier:`A`,token:r.token};let i=await t.get(e);return i==null?{tier:`none`}:{tier:i.gitProtocol===`ssh`?`C`:`B`,token:i.token}}async function ti(e,t){let{host:n,json:r}=e;I(n);let i=await ei(n,t);i.tier===`none`&&(r?process.stdout.write(`${JSON.stringify({type:`status`,host:n,authenticated:!1})}\n`):process.stderr.write(`Not logged in to ${n}\n`),process.exit(1));let a=n===`github.com`?void 0:`https://${n}/api/v3`,o=new B({auth:i.token,...a?{baseUrl:a}:{}});try{let{data:e}=await o.users.getAuthenticated();r?process.stdout.write(`${JSON.stringify({type:`status`,host:n,authenticated:!0,tier:i.tier,login:e.login,name:e.name,email:e.email})}\n`):process.stderr.write(`✓ Logged in as ${e.login} on ${n}\n`)}catch{r?process.stdout.write(JSON.stringify({type:`status`,host:n,authenticated:!1,error:`token invalid`})+`
18
18
  `):process.stderr.write(`✗ Token invalid for ${n}\n`),process.exit(1)}}function ni(e){return new t(`status`).description(`Show authentication status`).option(`--host <host>`,`GitHub or GitHub Enterprise hostname`,`github.com`).option(`--json`,`Output JSON`,!1).action(async t=>{await ti(t,await e())})}function ri(){let e=new t(`auth`);e.description(`GitHub authentication management`);let n=()=>Te();return e.addCommand(_n(n)),e.addCommand(ni(n)),e.addCommand(Zr(n)),e.addCommand($r()),e.addCommand(Jr(n)),e.addCommand(Jt(n)),e}const ii=j(Dt(),`.ok`,`logs`),ai=j(Dt(),`.ok`,`bug-reports`),oi=[{name:`macos-home-path`,regex:/\/Users\/[^/]+\//g,replacement:`~/`},{name:`linux-home-path`,regex:/\/home\/[^/]+\//g,replacement:`~/`},{name:`github-pat`,regex:/\b(ghp_|gho_|ghu_|ghs_|ghr_)[A-Za-z0-9]{36,}\b/g,replacement:`[REDACTED-GH-PAT]`},{name:`aws-access-key`,regex:/\b(AKIA|ASIA|ABIA)[A-Z2-7]{16}\b/g,replacement:`[REDACTED-AWS-KEY]`},{name:`anthropic-key`,regex:/\bsk-ant-api03-[A-Za-z0-9_-]{20,}\b/g,replacement:`[REDACTED-ANTHROPIC]`},{name:`openai-key`,regex:/\bsk-[A-Za-z0-9]{20,}\b/g,replacement:`[REDACTED-OPENAI]`},{name:`bearer-token`,regex:/([Aa]uthorization:\s*[Bb]earer\s+)\S+/g,replacement:`$1[REDACTED]`}];function si(e){let t=new Set,n=0;return{redacted:e.split(`
19
19
  `).map(e=>{let r=e;for(let{name:e,regex:i,replacement:a}of oi)i.lastIndex=0,i.test(r)&&(t.add(e),n++,i.lastIndex=0,r=r.replace(i,a));return r}).join(`
20
- `),patterns:[...t],lineCount:n}}function ci(e){let t=j(e,`.ok`,`config.yml`);if(N(t))try{let e=P(t,`utf8`).match(/^\s*name:\s*['"]?(.+?)['"]?\s*$/m);if(e?.[1])return e[1]}catch{}return N(j(e,`.ok`))?Bt(`sha256`).update(M(e)).digest(`hex`).slice(0,12):null}function li(){let e={timestamp:new Date().toISOString(),platform:kt(),osType:Nt(),osRelease:At(),hostname:`[redacted]`,uptime:Pt(),freeMem:Et(),totalMem:Mt(),nodeVersion:process.version,bunVersion:process.versions.bun??null,v8Version:process.versions.v8??null,pid:process.pid};try{e.macosVersion=st(`sw_vers -productVersion 2>/dev/null`,{encoding:`utf8`}).trim()}catch{}try{let t=j(__dirname,`..`,`..`,`package.json`);N(t)&&(e.okVersion=JSON.parse(P(t,`utf8`)).version)}catch{}return e}function ui(e){if(!N(ii))return{files:[],dir:ii};let t=yt(ii).filter(e=>e.endsWith(`.log`)||/\.log\.\d+$/.test(e)).map(e=>j(ii,e));if(e&&t.length>0){let n=t.filter(t=>{try{return P(t,`utf8`).includes(`"project":"${e}"`)}catch{return!0}});n.length>0&&(t=n)}return{files:t,dir:ii}}function di(e){let t=j(e,`.ok`,`local`);return N(t)?{files:[`server.lock`,`last-spawn-error.log`].map(e=>j(t,e)).filter(e=>N(e)),dir:t}:{files:[],dir:null}}async function fi(e){let t=bc();gt(ai,{recursive:!0});let n=j(ai,`${new Date().toISOString().replace(/[:.]/g,`-`)}-bugreport.zip`);t?.info({projectSlug:e.projectSlug},`gathering diagnostic data`);let r=li(),{files:i}=ui(e.projectSlug),{files:a}=di(e.cwd);t?.info({logFileCount:i.length,lockFileCount:a.length},`files collected`);let o=[],s=[],{ZipFile:c}=await import(`yazl`),l=new c;for(let e of i)try{let{redacted:t,patterns:n,lineCount:r}=si(P(e,`utf8`)),i=`logs/${lt(e)}`;l.addBuffer(Buffer.from(t,`utf8`),i),s.push(i),n.length>0&&o.push({file:i,lineCount:r,patterns:n})}catch{}for(let e of a)try{let{redacted:t,patterns:n,lineCount:r}=si(P(e,`utf8`)),i=`lockdir/${lt(e)}`;l.addBuffer(Buffer.from(t,`utf8`),i),s.push(i),n.length>0&&o.push({file:i,lineCount:r,patterns:n})}catch{}let u=JSON.stringify(r,null,2);l.addBuffer(Buffer.from(u,`utf8`),`sysinfo.json`),s.push(`sysinfo.json`);let d={generatedAt:new Date().toISOString(),disciplineVersion:`1.0.0`,projectSlug:e.projectSlug,files:s,redactions:o,sysinfo:r};l.addBuffer(Buffer.from(JSON.stringify(d,null,2),`utf8`),`MANIFEST.json`);let f=o.reduce((e,t)=>e+t.lineCount,0),p=[`# Bug Report Bundle`,``,`Generated: ${d.generatedAt}`,`Project: ${e.projectSlug??`(unscoped)`}`,`Discipline version: ${d.disciplineVersion}`,``,`## Contents`,``,...s.map(e=>`- ${e}`),``,`## Privacy`,``,`This bundle was auto-redacted before packaging.`,`Patterns checked: ${oi.map(e=>e.name).join(`, `)}`,f>0?`${f} line(s) were scrubbed across ${o.length} file(s).`:`No redactions were needed.`,`See MANIFEST.json for the full redaction audit report.`,``,`This bundle is safe to attach to a GitHub issue.`].join(`
21
- `);l.addBuffer(Buffer.from(p,`utf8`),`README.md`),l.end();let m=mt(n);if(l.outputStream.pipe(m),await new Promise((e,t)=>{m.on(`close`,e),m.on(`error`,t)}),t?.info({bundlePath:n,fileCount:s.length,redactionCount:f},`bundle written`),process.stdout.write(`${n}\n`),f>0&&process.stderr.write(`ok bug-report: ${f} line(s) auto-redacted across ${o.length} file(s)\n`),!e.noReveal&&kt()===`darwin`)try{k(`/usr/bin/open`,[`-R`,n],{detached:!0,stdio:`ignore`}).unref()}catch{}return n}function pi(){return new t(`bug-report`).description(`Generate a diagnostic bundle for bug reporting`).option(`--reveal`,`Reveal the bundle in Finder (default: true)`,!0).option(`--no-reveal`,`Do not reveal the bundle in Finder`).action(async e=>{let t=process.cwd(),n=ci(t);try{await fi({projectSlug:n,cwd:t,noReveal:!e.reveal})}catch(e){let t=e instanceof Error?e.message:String(e);process.stderr.write(`ok bug-report: failed — ${t}\n`),process.exitCode=1}})}function V(e,t,n={}){let r=We(e,t);if(!N(r))return{status:`missing`,lockPath:r};let i;try{i=JSON.parse(P(r,`utf-8`))}catch{return{status:`corrupt`,lockPath:r}}if(!i||typeof i!=`object`||!He(i.pid))return{status:`corrupt`,lockPath:r};let a=i;if(!(n.isAlive??w)(a.pid))return{status:`dead-pid`,lockPath:r,lock:a};let o=n.host??Ot();return a.hostname===o?{status:`alive`,lockPath:r,lock:a}:{status:`foreign-host`,lockPath:r,lock:a}}function mi(e,t){let n=[];for(let[r,i]of[[`server`,e],[`ui`,t]])(i.status===`dead-pid`||i.status===`corrupt`)&&n.push({name:r,lockPath:i.lockPath,reason:i.status});return{prune:n}}function hi(e){let t=e.inspect??(t=>V(e.lockDir,t)),n=e.unlink??(e=>Ct(e)),r=e.log??(e=>console.log(e)),i=e.error??(e=>console.error(e)),a=mi(t(`server`),t(`ui`));if(a.prune.length===0)return r(`No stale locks.`),{pruned:[],failed:[]};let o=[],s=[];for(let e of a.prune)try{n(e.lockPath),o.push(e)}catch(t){s.push({target:e,error:t instanceof Error?t.message:String(t)})}if(o.length>0){let e=o.map(e=>`${e.name} (${e.reason})`).join(`, `);r(`Pruned ${o.length} stale lock${o.length===1?``:`s`}: ${e}`)}return s.length>0&&i(`Failed to prune: ${s.map(({target:e,error:t})=>`${e.name} (${e.lockPath}): ${t}`).join(`; `)}`),{pruned:o,failed:s}}function gi(e){return new t(`clean`).description(`Prune stale / corrupt open-knowledge lock files (never touches live locks)`).action(()=>{e(),hi({lockDir:xe(process.cwd())}).failed.length>0&&(process.exitCode=1)})}async function _i(e,t,n={},r=Ee){if(!n.skipGhDetect&&r().available)return{tier:`A`,credentialArgs:[`-c`,`credential.helper=!gh auth git-credential`]};let i=await t.get(e);return i==null?{tier:`none`,credentialArgs:[]}:{tier:i.gitProtocol===`ssh`?`C`:`B`,credentialArgs:[`-c`,`credential.helper=!open-knowledge auth git-credential`]}}async function vi(e,t,n=fetch){let r=new AbortController,i=setTimeout(()=>r.abort(),5e3);try{return(await n(`https://api.github.com/repos/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{signal:r.signal,headers:{"User-Agent":`open-knowledge-cli`,Accept:`application/vnd.github+json`}})).status===200}catch{return!1}finally{clearTimeout(i)}}const yi=[[`count`,0,10],[`compress`,10,20],[`receiv`,20,60],[`resolv`,60,100]];function bi(e){let t=/^([\w ]+):\s+(\d+)%/.exec(e.trim());if(!t)return null;let n=t[1].toLowerCase(),r=Number(t[2]);for(let[e,i,a]of yi)if(n.includes(e))return{stage:t[1],pct:Math.round(i+r/100*(a-i))};return null}function H(e,t){e&&process.stdout.write(`${JSON.stringify(t)}\n`)}function xi(e){return typeof e!=`string`||e.length===0?[`--progress`]:[`--progress`,`-b`,e]}const Si=te;async function Ci(e){try{return await e.clone(xi(e.branch)),{fellBack:!1}}catch(t){if(e.branch!==null&&Si(t))return e.onFallback(e.branch),await e.clone(xi(null)),{fellBack:!0};throw t}}function wi(e,t,n){return e===`https`&&t===`github.com`&&n}async function Ti(e,t,n,r=process.cwd()){let i=Je(e);if(!i)throw Error(`Invalid git URL: ${e}`);let a=t.dir?M(r,t.dir):M(r,i.name);if(N(a)&&yt(a).length>0)throw Error(`Target directory is not empty: ${a}`);let o=Ce(),s=i.protocol===`https`&&i.hostname===`github.com`?await vi(i.owner,i.name):!1,c=wi(i.protocol,i.hostname,s)?{tier:`none`,credentialArgs:[]}:await _i(i.hostname,o,{}),l=Ke({baseDir:r,config:c.credentialArgs.length>=2?[c.credentialArgs[1]]:[],unsafe:{allowUnsafeCredentialHelper:!0}}).env({GIT_TERMINAL_PROMPT:`0`}),u=-1;l.outputHandler((e,n,r)=>{r.on(`data`,e=>{let n=e.toString(`utf-8`);for(let e of n.split(`
20
+ `),patterns:[...t],lineCount:n}}function ci(e){let t=j(e,`.ok`,`config.yml`);if(N(t))try{let e=P(t,`utf8`).match(/^\s*name:\s*['"]?(.+?)['"]?\s*$/m);if(e?.[1])return e[1]}catch{}return N(j(e,`.ok`))?Bt(`sha256`).update(M(e)).digest(`hex`).slice(0,12):null}function li(){let e={timestamp:new Date().toISOString(),platform:kt(),osType:Nt(),osRelease:At(),hostname:`[redacted]`,uptime:Pt(),freeMem:Et(),totalMem:Mt(),nodeVersion:process.version,bunVersion:process.versions.bun??null,v8Version:process.versions.v8??null,pid:process.pid};try{e.macosVersion=st(`sw_vers -productVersion 2>/dev/null`,{encoding:`utf8`}).trim()}catch{}try{let t=j(__dirname,`..`,`..`,`package.json`);N(t)&&(e.okVersion=JSON.parse(P(t,`utf8`)).version)}catch{}return e}function ui(e){if(!N(ii))return{files:[],dir:ii};let t=yt(ii).filter(e=>e.endsWith(`.log`)||/\.log\.\d+$/.test(e)).map(e=>j(ii,e));if(e&&t.length>0){let n=t.filter(t=>{try{return P(t,`utf8`).includes(`"project":"${e}"`)}catch{return!0}});n.length>0&&(t=n)}return{files:t,dir:ii}}function di(e){let t=j(e,`.ok`,`local`);return N(t)?{files:[`server.lock`,`last-spawn-error.log`].map(e=>j(t,e)).filter(e=>N(e)),dir:t}:{files:[],dir:null}}async function fi(t){let n=bc();gt(ai,{recursive:!0});let r=j(ai,`${new Date().toISOString().replace(/[:.]/g,`-`)}-bugreport.zip`);n?.info({projectSlug:t.projectSlug},`gathering diagnostic data`);let i=li(),{files:a}=ui(t.projectSlug),{files:o}=di(t.cwd);n?.info({logFileCount:a.length,lockFileCount:o.length},`files collected`);let s=[],c=[],{ZipFile:l}=await import(`./yazl-Cw7cic8l.mjs`).then(t=>e(t.default,1)),u=new l;for(let e of a)try{let{redacted:t,patterns:n,lineCount:r}=si(P(e,`utf8`)),i=`logs/${lt(e)}`;u.addBuffer(Buffer.from(t,`utf8`),i),c.push(i),n.length>0&&s.push({file:i,lineCount:r,patterns:n})}catch{}for(let e of o)try{let{redacted:t,patterns:n,lineCount:r}=si(P(e,`utf8`)),i=`lockdir/${lt(e)}`;u.addBuffer(Buffer.from(t,`utf8`),i),c.push(i),n.length>0&&s.push({file:i,lineCount:r,patterns:n})}catch{}let d=JSON.stringify(i,null,2);u.addBuffer(Buffer.from(d,`utf8`),`sysinfo.json`),c.push(`sysinfo.json`);let f={generatedAt:new Date().toISOString(),disciplineVersion:`1.0.0`,projectSlug:t.projectSlug,files:c,redactions:s,sysinfo:i};u.addBuffer(Buffer.from(JSON.stringify(f,null,2),`utf8`),`MANIFEST.json`);let p=s.reduce((e,t)=>e+t.lineCount,0),m=[`# Bug Report Bundle`,``,`Generated: ${f.generatedAt}`,`Project: ${t.projectSlug??`(unscoped)`}`,`Discipline version: ${f.disciplineVersion}`,``,`## Contents`,``,...c.map(e=>`- ${e}`),``,`## Privacy`,``,`This bundle was auto-redacted before packaging.`,`Patterns checked: ${oi.map(e=>e.name).join(`, `)}`,p>0?`${p} line(s) were scrubbed across ${s.length} file(s).`:`No redactions were needed.`,`See MANIFEST.json for the full redaction audit report.`,``,`This bundle is safe to attach to a GitHub issue.`].join(`
21
+ `);u.addBuffer(Buffer.from(m,`utf8`),`README.md`),u.end();let h=mt(r);if(u.outputStream.pipe(h),await new Promise((e,t)=>{h.on(`close`,e),h.on(`error`,t)}),n?.info({bundlePath:r,fileCount:c.length,redactionCount:p},`bundle written`),process.stdout.write(`${r}\n`),p>0&&process.stderr.write(`ok bug-report: ${p} line(s) auto-redacted across ${s.length} file(s)\n`),!t.noReveal&&kt()===`darwin`)try{k(`/usr/bin/open`,[`-R`,r],{detached:!0,stdio:`ignore`}).unref()}catch{}return r}function pi(){return new t(`bug-report`).description(`Generate a diagnostic bundle for bug reporting`).option(`--reveal`,`Reveal the bundle in Finder (default: true)`,!0).option(`--no-reveal`,`Do not reveal the bundle in Finder`).action(async e=>{let t=process.cwd(),n=ci(t);try{await fi({projectSlug:n,cwd:t,noReveal:!e.reveal})}catch(e){let t=e instanceof Error?e.message:String(e);process.stderr.write(`ok bug-report: failed — ${t}\n`),process.exitCode=1}})}function V(e,t,n={}){let r=We(e,t);if(!N(r))return{status:`missing`,lockPath:r};let i;try{i=JSON.parse(P(r,`utf-8`))}catch{return{status:`corrupt`,lockPath:r}}if(!i||typeof i!=`object`||!He(i.pid))return{status:`corrupt`,lockPath:r};let a=i;if(!(n.isAlive??w)(a.pid))return{status:`dead-pid`,lockPath:r,lock:a};let o=n.host??Ot();return a.hostname===o?{status:`alive`,lockPath:r,lock:a}:{status:`foreign-host`,lockPath:r,lock:a}}function mi(e,t){let n=[];for(let[r,i]of[[`server`,e],[`ui`,t]])(i.status===`dead-pid`||i.status===`corrupt`)&&n.push({name:r,lockPath:i.lockPath,reason:i.status});return{prune:n}}function hi(e){let t=e.inspect??(t=>V(e.lockDir,t)),n=e.unlink??(e=>Ct(e)),r=e.log??(e=>console.log(e)),i=e.error??(e=>console.error(e)),a=mi(t(`server`),t(`ui`));if(a.prune.length===0)return r(`No stale locks.`),{pruned:[],failed:[]};let o=[],s=[];for(let e of a.prune)try{n(e.lockPath),o.push(e)}catch(t){s.push({target:e,error:t instanceof Error?t.message:String(t)})}if(o.length>0){let e=o.map(e=>`${e.name} (${e.reason})`).join(`, `);r(`Pruned ${o.length} stale lock${o.length===1?``:`s`}: ${e}`)}return s.length>0&&i(`Failed to prune: ${s.map(({target:e,error:t})=>`${e.name} (${e.lockPath}): ${t}`).join(`; `)}`),{pruned:o,failed:s}}function gi(e){return new t(`clean`).description(`Prune stale / corrupt open-knowledge lock files (never touches live locks)`).action(()=>{e(),hi({lockDir:xe(process.cwd())}).failed.length>0&&(process.exitCode=1)})}async function _i(e,t,n={},r=Ee){if(!n.skipGhDetect&&r().available)return{tier:`A`,credentialArgs:[`-c`,`credential.helper=!gh auth git-credential`]};let i=await t.get(e);return i==null?{tier:`none`,credentialArgs:[]}:{tier:i.gitProtocol===`ssh`?`C`:`B`,credentialArgs:[`-c`,`credential.helper=!open-knowledge auth git-credential`]}}async function vi(e,t,n=fetch){let r=new AbortController,i=setTimeout(()=>r.abort(),5e3);try{return(await n(`https://api.github.com/repos/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{signal:r.signal,headers:{"User-Agent":`open-knowledge-cli`,Accept:`application/vnd.github+json`}})).status===200}catch{return!1}finally{clearTimeout(i)}}const yi=[[`count`,0,10],[`compress`,10,20],[`receiv`,20,60],[`resolv`,60,100]];function bi(e){let t=/^([\w ]+):\s+(\d+)%/.exec(e.trim());if(!t)return null;let n=t[1].toLowerCase(),r=Number(t[2]);for(let[e,i,a]of yi)if(n.includes(e))return{stage:t[1],pct:Math.round(i+r/100*(a-i))};return null}function H(e,t){e&&process.stdout.write(`${JSON.stringify(t)}\n`)}function xi(e){return typeof e!=`string`||e.length===0?[`--progress`]:[`--progress`,`-b`,e]}const Si=te;async function Ci(e){try{return await e.clone(xi(e.branch)),{fellBack:!1}}catch(t){if(e.branch!==null&&Si(t))return e.onFallback(e.branch),await e.clone(xi(null)),{fellBack:!0};throw t}}function wi(e,t,n){return e===`https`&&t===`github.com`&&n}async function Ti(e,t,n,r=process.cwd()){let i=Je(e);if(!i)throw Error(`Invalid git URL: ${e}`);let a=t.dir?M(r,t.dir):M(r,i.name);if(N(a)&&yt(a).length>0)throw Error(`Target directory is not empty: ${a}`);let o=Ce(),s=i.protocol===`https`&&i.hostname===`github.com`?await vi(i.owner,i.name):!1,c=wi(i.protocol,i.hostname,s)?{tier:`none`,credentialArgs:[]}:await _i(i.hostname,o,{}),l=Ke({baseDir:r,config:c.credentialArgs.length>=2?[c.credentialArgs[1]]:[],unsafe:{allowUnsafeCredentialHelper:!0}}).env({GIT_TERMINAL_PROMPT:`0`}),u=-1;l.outputHandler((e,n,r)=>{r.on(`data`,e=>{let n=e.toString(`utf-8`);for(let e of n.split(`
22
22
  `)){let n=bi(e);n&&n.pct!==u&&(u=n.pct,H(t.json,{type:`progress`,pct:n.pct,stage:n.stage}),t.json||process.stderr.write(`\r Cloning ${n.pct}%`))}})}),await Ci({branch:typeof t.branch==`string`&&t.branch.length>0?t.branch:null,clone:t=>l.clone(e,a,t),onFallback:e=>{H(t.json,{type:`branch-fallback`,branch:e}),t.json||process.stderr.write(`\n Branch '${e}' not found upstream — cloning default branch instead.\n`)}}),t.json||process.stderr.write(`
23
- `);try{let{runInit:e}=await import(`./init-DaWRJoym.mjs`),n=await e({cwd:a,mcp:!1});if(n.contentUpdated.length>0){let e=`auto-init: updated ${n.contentUpdated.join(`, `)}`;t.json?H(!0,{type:`warning`,message:e}):process.stderr.write(` ${e}\n`)}}catch(e){let n=e instanceof Error?e.message:String(e);t.json?H(!0,{type:`warning`,message:`auto-init: ${n}`}):process.stderr.write(` auto-init: ${n}\n`)}try{Ei(a)}catch(e){let n=e instanceof Error?e.message:String(e);t.json?H(!0,{type:`warning`,message:`git-exclude: ${n}`}):process.stderr.write(` git-exclude: ${n}\n`)}return a}function Ei(e){let t=j(e,`.git`,`info`,`exclude`);if(!N(t))return`no-exclude`;let n=P(t,`utf-8`),r=new Set([`.ok`,`.ok/`,`/.ok`,`/.ok/`]);return n.split(`
23
+ `);try{let{runInit:e}=await import(`./init-BTX_U9QM.mjs`),n=await e({cwd:a,mcp:!1});if(n.contentUpdated.length>0){let e=`auto-init: updated ${n.contentUpdated.join(`, `)}`;t.json?H(!0,{type:`warning`,message:e}):process.stderr.write(` ${e}\n`)}}catch(e){let n=e instanceof Error?e.message:String(e);t.json?H(!0,{type:`warning`,message:`auto-init: ${n}`}):process.stderr.write(` auto-init: ${n}\n`)}try{Ei(a)}catch(e){let n=e instanceof Error?e.message:String(e);t.json?H(!0,{type:`warning`,message:`git-exclude: ${n}`}):process.stderr.write(` git-exclude: ${n}\n`)}return a}function Ei(e){let t=j(e,`.git`,`info`,`exclude`);if(!N(t))return`no-exclude`;let n=P(t,`utf-8`),r=new Set([`.ok`,`.ok/`,`/.ok`,`/.ok/`]);return n.split(`
24
24
  `).map(e=>e.trim()).some(e=>r.has(e))?`already-present`:(wt(t,`${n}${n.length===0||n.endsWith(`
25
25
  `)?``:`
26
- `}.ok/\n`,`utf-8`),`appended`)}function Di(e){return new t(`clone`).description(`Clone a git repository and open it`).argument(`<url>`,`Repository URL or owner/repo shorthand`).argument(`[dir]`,`Target directory (default: ./<repo-name>)`).option(`--json`,`Output JSONL progress events`,!1).option(`-b, --branch <branch>`,`Branch to check out (falls back to default if missing)`).action(async(t,n,r)=>{let i=e();try{let a=await Ti(t,{json:r.json,dir:n,branch:r.branch??null},i);if(r.json)H(!0,{type:`complete`,dir:a});else{process.stderr.write(`✓ Cloned to ${a}\n`),process.chdir(a);let{startCommand:t}=await import(`./start-DpTR2AVF.mjs`);await t(e).parseAsync([],{from:`user`})}}catch(e){let t=e instanceof Error?e.message:String(e);r.json?H(!0,{type:`error`,message:t}):process.stderr.write(`✗ ${t}\n`),process.exitCode=1}})}var Oi=ce();const ki=[[`sync`],[`persistence`,`debounceMs`],[`persistence`,`maxDebounceMs`],[`server`,`port`],[`content`,`include`],[`content`,`exclude`]];function Ai(e={}){let t=e.log??(e=>console.error(e)),n=e.error??(e=>console.error(e)),r=e.loadConfigFn??Ye;try{let{sources:n}=r(e.cwd);return t(`✓ Configuration valid (sources: ${n.length===0?`defaults only`:n.join(`, `)})`),{ok:!0}}catch(e){return n(e instanceof Error?e.message:String(e)),{ok:!1}}}function ji(e){let t=(0,Oi.parseDocument)(P(e,`utf-8`));if(t.errors.length>0)throw Error(`Could not parse ${e}: ${t.errors.map(e=>e.message).join(`; `)}`);let n=[];for(let e of ki)t.hasIn(e)&&n.push(e.join(`.`));return n}function Mi(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Ni(e){let t={};for(let n of e){let e=t;for(let t=0;t<n.length-1;t++){let r=n[t],i=e[r],a=Mi(i)?i:{};e[r]=a,e=a}e[n[n.length-1]]=null}return t}async function Pi(e={}){let t=e.log??(e=>console.log(e)),n=e.error??(e=>console.error(e)),r=e.scope??`both`,i=e.dryRun??!1,a=e.cwd??process.cwd(),o=e.writeConfigPatchFn??ve,c=[];(r===`project`||r===`both`)&&c.push({scope:`project`,absPath:ue(`project`,a,e.homedirOverride)}),(r===`user`||r===`both`)&&c.push({scope:`user`,absPath:ue(`user`,a,e.homedirOverride)});let l=[],u=!0;for(let{scope:t,absPath:n}of c){if(!N(n)){l.push({path:n,scope:t,found:[],removed:[]});continue}let r;try{r=ji(n)}catch(e){let r=e instanceof Error?e.message:String(e);l.push({path:n,scope:t,found:[],removed:[],error:r}),u=!1;continue}if(r.length===0||i){l.push({path:n,scope:t,found:r,removed:[]});continue}let c=await o({cwd:a,scope:t,patch:Ni(ki.filter(e=>r.includes(e.join(`.`)))),homedirOverride:e.homedirOverride});if(!c.ok){l.push({path:n,scope:t,found:r,removed:[],error:s(c.error)}),u=!1;continue}l.push({path:n,scope:t,found:r,removed:r})}for(let e of l)e.error&&n(`✗ ${e.path}: ${e.error}`);let d=l.some(e=>e.error!==void 0),f=l.reduce((e,t)=>e+t.found.length,0);if(f===0&&!d)t(`No deprecated fields found.`);else if(f>0)for(let e of l)e.error||(e.found.length===0?t(` ${e.path}: no deprecated fields`):t(i?`[dry-run] ${e.path}: would remove ${e.found.length} field(s): ${e.found.join(`, `)}`:`✓ ${e.path}: removed ${e.removed.length} field(s): ${e.removed.join(`, `)}`));return{outcomes:l,ok:u}}function Fi(){let e=new t(`config`).description(`Inspect and maintain Open Knowledge configuration files`);return e.command(`validate`).description(`Validate the merged config (defaults → user → project)`).action(()=>{Ai({}).ok||(process.exitCode=1)}),e.command(`migrate`).description(`Remove deprecated config fields (sync.*, persistence.{debounceMs,maxDebounceMs}, server.port, content.{include,exclude}) idempotently`).option(`--scope <scope>`,`Which scope to migrate: project | user | both`,`both`).option(`--dry-run`,`Preview without writing`,!1).action(async e=>{let t=e.scope;if(t!==`project`&&t!==`user`&&t!==`both`){console.error(`Invalid --scope: ${t}. Expected: project | user | both`),process.exitCode=2;return}(await Pi({scope:t,dryRun:e.dryRun})).ok||(process.exitCode=1)}),e}var U=e(rt(),1);const W=2e3,Ii=2e3,Li=[/cli\.mjs/,/(^|[\s/])(open-knowledge|ok)\s+(start|mcp|ui)(\s|$)/,/Open Knowledge(?:\.app| Helper)/,/(^|[\s/])bun([\s/]).*?(run dev|packages\/app|vite|hocuspocus)/,/(^|[\s/])node([\s/]).*?(packages\/(cli|app)|vite|hocuspocus)/,/(^|\s)--ok-lock-dir-b64=/,/(^|\s)--ok-project-path=/];function Ri(e){return Li.some(t=>t.test(e))}function zi(e){let t=e.trim().split(/\s+/).find(e=>e.startsWith(`--ok-lock-dir-b64=`));if(t==null)return null;let n=t.slice(18);if(!n)return null;try{let e=Buffer.from(n,`base64url`).toString(`utf8`);return dt(e)?e:null}catch{return null}}function Bi(e){let t=e.indexOf(`--ok-project-path=`);if(t===-1)return null;let n=t+18,r=e.slice(n),i=r.search(/\s--/),a=(i===-1?r:r.slice(0,i)).trim();return a&&dt(a)?a:null}function Vi(e){let t=[];for(let n of e.split(`
26
+ `}.ok/\n`,`utf-8`),`appended`)}function Di(e){return new t(`clone`).description(`Clone a git repository and open it`).argument(`<url>`,`Repository URL or owner/repo shorthand`).argument(`[dir]`,`Target directory (default: ./<repo-name>)`).option(`--json`,`Output JSONL progress events`,!1).option(`-b, --branch <branch>`,`Branch to check out (falls back to default if missing)`).action(async(t,n,r)=>{let i=e();try{let a=await Ti(t,{json:r.json,dir:n,branch:r.branch??null},i);if(r.json)H(!0,{type:`complete`,dir:a});else{process.stderr.write(`✓ Cloned to ${a}\n`),process.chdir(a);let{startCommand:t}=await import(`./start-DXl7Y4c8.mjs`);await t(e).parseAsync([],{from:`user`})}}catch(e){let t=e instanceof Error?e.message:String(e);r.json?H(!0,{type:`error`,message:t}):process.stderr.write(`✗ ${t}\n`),process.exitCode=1}})}var Oi=ce();const ki=[[`sync`],[`persistence`,`debounceMs`],[`persistence`,`maxDebounceMs`],[`server`,`port`],[`content`,`include`],[`content`,`exclude`]];function Ai(e={}){let t=e.log??(e=>console.error(e)),n=e.error??(e=>console.error(e)),r=e.loadConfigFn??Ye;try{let{sources:n}=r(e.cwd);return t(`✓ Configuration valid (sources: ${n.length===0?`defaults only`:n.join(`, `)})`),{ok:!0}}catch(e){return n(e instanceof Error?e.message:String(e)),{ok:!1}}}function ji(e){let t=(0,Oi.parseDocument)(P(e,`utf-8`));if(t.errors.length>0)throw Error(`Could not parse ${e}: ${t.errors.map(e=>e.message).join(`; `)}`);let n=[];for(let e of ki)t.hasIn(e)&&n.push(e.join(`.`));return n}function Mi(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Ni(e){let t={};for(let n of e){let e=t;for(let t=0;t<n.length-1;t++){let r=n[t],i=e[r],a=Mi(i)?i:{};e[r]=a,e=a}e[n[n.length-1]]=null}return t}async function Pi(e={}){let t=e.log??(e=>console.log(e)),n=e.error??(e=>console.error(e)),r=e.scope??`both`,i=e.dryRun??!1,a=e.cwd??process.cwd(),o=e.writeConfigPatchFn??ve,c=[];(r===`project`||r===`both`)&&c.push({scope:`project`,absPath:ue(`project`,a,e.homedirOverride)}),(r===`user`||r===`both`)&&c.push({scope:`user`,absPath:ue(`user`,a,e.homedirOverride)});let l=[],u=!0;for(let{scope:t,absPath:n}of c){if(!N(n)){l.push({path:n,scope:t,found:[],removed:[]});continue}let r;try{r=ji(n)}catch(e){let r=e instanceof Error?e.message:String(e);l.push({path:n,scope:t,found:[],removed:[],error:r}),u=!1;continue}if(r.length===0||i){l.push({path:n,scope:t,found:r,removed:[]});continue}let c=await o({cwd:a,scope:t,patch:Ni(ki.filter(e=>r.includes(e.join(`.`)))),homedirOverride:e.homedirOverride});if(!c.ok){l.push({path:n,scope:t,found:r,removed:[],error:s(c.error)}),u=!1;continue}l.push({path:n,scope:t,found:r,removed:r})}for(let e of l)e.error&&n(`✗ ${e.path}: ${e.error}`);let d=l.some(e=>e.error!==void 0),f=l.reduce((e,t)=>e+t.found.length,0);if(f===0&&!d)t(`No deprecated fields found.`);else if(f>0)for(let e of l)e.error||(e.found.length===0?t(` ${e.path}: no deprecated fields`):t(i?`[dry-run] ${e.path}: would remove ${e.found.length} field(s): ${e.found.join(`, `)}`:`✓ ${e.path}: removed ${e.removed.length} field(s): ${e.removed.join(`, `)}`));return{outcomes:l,ok:u}}function Fi(){let e=new t(`config`).description(`Inspect and maintain Open Knowledge configuration files`);return e.command(`validate`).description(`Validate the merged config (defaults → user → project)`).action(()=>{Ai({}).ok||(process.exitCode=1)}),e.command(`migrate`).description(`Remove deprecated config fields (sync.*, persistence.{debounceMs,maxDebounceMs}, server.port, content.{include,exclude}) idempotently`).option(`--scope <scope>`,`Which scope to migrate: project | user | both`,`both`).option(`--dry-run`,`Preview without writing`,!1).action(async e=>{let t=e.scope;if(t!==`project`&&t!==`user`&&t!==`both`){console.error(`Invalid --scope: ${t}. Expected: project | user | both`),process.exitCode=2;return}(await Pi({scope:t,dryRun:e.dryRun})).ok||(process.exitCode=1)}),e}var U=e(rt(),1);const W=2e3,Ii=2e3,Li=[/cli\.mjs/,/(^|[\s/])(open-knowledge|ok)\s+(start|mcp|ui)(\s|$)/,/Open Knowledge(?:\.app| Helper)/,/(^|[\s/])bun([\s/]).*?(run dev|packages\/app|vite|hocuspocus)/,/(^|[\s/])node([\s/]).*?(packages\/(cli|app)|vite|hocuspocus)/,/(^|\s)--ok-lock-dir-b64=/,/(^|\s)--ok-project-path=/];function Ri(e){return Li.some(t=>t.test(e))}function zi(e){let t=e.trim().split(/\s+/).find(e=>e.startsWith(`--ok-lock-dir-b64=`));if(t==null)return null;let n=t.slice(18);if(!n)return null;try{let e=Buffer.from(n,`base64url`).toString(`utf8`);return dt(e)?e:null}catch{return null}}function Bi(e){let t=e.indexOf(`--ok-project-path=`);if(t===-1)return null;let n=t+18,r=e.slice(n),i=r.search(/\s--/),a=(i===-1?r:r.slice(0,i)).trim();return a&&dt(a)?a:null}function Vi(e){let t=[];for(let n of e.split(`
27
27
  `)){let e=n.trim();if(!e)continue;let r=e.indexOf(` `);if(r===-1)continue;let i=e.slice(0,r),a=e.slice(r+1),o=Number.parseInt(i,10);!Number.isNaN(o)&&Ri(a)&&t.push({pid:o,command:a})}return t}function Hi(e){let t=[],n=e.split(`
28
28
  `);for(let e=1;e<n.length;e++){let r=n[e]?.trim();if(!r)continue;let i=r.indexOf(` `);if(i===-1)continue;let a=r.slice(0,i),o=r.slice(i+1).trim(),s=Number.parseInt(a,10);!Number.isNaN(s)&&Ri(o)&&t.push({pid:s,command:o})}return t}async function Ui(){let e=A(`pgrep`,[`-a`,`-f`,`cli\\.mjs|open-knowledge|Open Knowledge(\\.app| Helper)|--ok-lock-dir-b64=|--ok-project-path=|(^|[ /])ok[ ]+(start|mcp|ui)([ ]|$)|packages/(cli|app)|hocuspocus|vite`],{encoding:`utf-8`,timeout:W});if(!(e.error!=null&&e.error.code===`ENOENT`)){let t=e.stdout??``,n=Vi(t);if(n.length>0||t.trim()===``)return n}let t=A(`ps`,[`-axo`,`pid,command`],{encoding:`utf-8`,timeout:W});return t.error!=null||!t.stdout?[]:Hi(t.stdout)}function Wi(e){let t=e.trim().split(/\s+/).filter(Boolean);for(let e of t){if(e.startsWith(`@`))continue;let t=lt(e);if(t===`open-knowledge`||t===`ok`||e.endsWith(`/packages/cli/src/cli.ts`)||e.endsWith(`/packages/cli/dist/cli.mjs`)||t===`cli.mjs`||t===`cli.ts`)return e}return null}function Gi(e){let t=A(`ps`,[`-p`,String(e),`-o`,`command=`],{encoding:`utf-8`,timeout:W});return t.error!=null||!t.stdout?null:t.stdout.trim()||null}function Ki(e){let t=A(`ps`,[`-p`,String(e),`-o`,`%cpu=,%mem=`],{encoding:`utf-8`,timeout:W});if(t.error!=null||!t.stdout)return null;let[n,r]=t.stdout.trim().split(/\s+/),i=Number.parseFloat(n??``),a=Number.parseFloat(r??``);return Number.isNaN(i)||Number.isNaN(a)?null:{cpuPercent:i,memPercent:a}}async function qi(e){let t=A(`lsof`,[`-p`,String(e),`-a`,`-d`,`cwd`,`-Fn`],{encoding:`utf-8`,timeout:W});if(t.error!=null)return null;let n=t.stdout??``;for(let e of n.split(`
29
29
  `))if(e.startsWith(`n`)&&e.length>1)return e.slice(1);return null}function Ji(e){let t=[],n=e.split(`
@@ -60,7 +60,7 @@ setTimeout(() => process.exit(2), ${t+1e4});
60
60
  `,r),o=-1;if(i!==-1&&a!==-1?o=Math.min(i,a):i===-1?a!==-1&&(o=a):o=i===e.length-1?-1:i,o===-1){n=e.slice(r);break}else{let n=e.slice(r,o);t.push(n),r=o+1,e[r-1]===`\r`&&e[r]===`
61
61
  `&&r++}}return[t,n]}var Jo=class extends TransformStream{constructor({onError:e,onRetry:t,onComment:n}={}){let r;super({start(i){r=Ko({onEvent:e=>{i.enqueue(e)},onError(t){e===`terminate`?i.error(t):typeof e==`function`&&e(t)},onRetry:t,onComment:n})},transform(e){r.feed(e)}})}};const Yo={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2};var Y=class extends Error{constructor(e,t){super(`Streamable HTTP error: ${t}`),this.code=e}},Xo=class{constructor(e,t){this._hasCompletedAuthFlow=!1,this._url=e,this._resourceMetadataUrl=void 0,this._scope=void 0,this._requestInit=t?.requestInit,this._authProvider=t?.authProvider,this._fetch=t?.fetch,this._fetchWithInit=Ma(t?.fetch,t?.requestInit),this._sessionId=t?.sessionId,this._reconnectionOptions=t?.reconnectionOptions??Yo}async _authThenStart(){if(!this._authProvider)throw new J(`No auth provider`);let e;try{e=await Co(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(e){throw this.onerror?.(e),e}if(e!==`AUTHORIZED`)throw new J;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){let e={};if(this._authProvider){let t=await this._authProvider.tokens();t&&(e.Authorization=`Bearer ${t.access_token}`)}this._sessionId&&(e[`mcp-session-id`]=this._sessionId),this._protocolVersion&&(e[`mcp-protocol-version`]=this._protocolVersion);let t=ja(this._requestInit?.headers);return new Headers({...e,...t})}async _startOrAuthSse(e){let{resumptionToken:t}=e;try{let n=await this._commonHeaders();n.set(`Accept`,`text/event-stream`),t&&n.set(`last-event-id`,t);let r=await(this._fetch??fetch)(this._url,{method:`GET`,headers:n,signal:this._abortController?.signal});if(!r.ok){if(await r.body?.cancel(),r.status===401&&this._authProvider)return await this._authThenStart();if(r.status===405)return;throw new Y(r.status,`Failed to open SSE stream: ${r.statusText}`)}this._handleSseStream(r.body,e,!0)}catch(e){throw this.onerror?.(e),e}}_getNextReconnectionDelay(e){if(this._serverRetryMs!==void 0)return this._serverRetryMs;let t=this._reconnectionOptions.initialReconnectionDelay,n=this._reconnectionOptions.reconnectionDelayGrowFactor,r=this._reconnectionOptions.maxReconnectionDelay;return Math.min(t*n**+e,r)}_scheduleReconnection(e,t=0){let n=this._reconnectionOptions.maxRetries;if(t>=n){this.onerror?.(Error(`Maximum reconnection attempts (${n}) exceeded.`));return}let r=this._getNextReconnectionDelay(t);this._reconnectionTimeout=setTimeout(()=>{this._startOrAuthSse(e).catch(n=>{this.onerror?.(Error(`Failed to reconnect SSE stream: ${n instanceof Error?n.message:String(n)}`)),this._scheduleReconnection(e,t+1)})},r)}_handleSseStream(e,t,n){if(!e)return;let{onresumptiontoken:r,replayMessageId:i}=t,a,o=!1,s=!1;(async()=>{try{let t=e.pipeThrough(new TextDecoderStream).pipeThrough(new Jo({onRetry:e=>{this._serverRetryMs=e}})).getReader();for(;;){let{value:e,done:n}=await t.read();if(n)break;if(e.id&&(a=e.id,o=!0,r?.(e.id)),e.data&&(!e.event||e.event===`message`))try{let t=re.parse(JSON.parse(e.data));_e(t)&&(s=!0,i!==void 0&&(t.id=i)),this.onmessage?.(t)}catch(e){this.onerror?.(e)}}(n||o)&&!s&&this._abortController&&!this._abortController.signal.aborted&&this._scheduleReconnection({resumptionToken:a,onresumptiontoken:r,replayMessageId:i},0)}catch(e){if(this.onerror?.(Error(`SSE stream disconnected: ${e}`)),(n||o)&&!s&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:a,onresumptiontoken:r,replayMessageId:i},0)}catch(e){this.onerror?.(Error(`Failed to reconnect: ${e instanceof Error?e.message:String(e)}`))}}})()}async start(){if(this._abortController)throw Error(`StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.`);this._abortController=new AbortController}async finishAuth(e){if(!this._authProvider)throw new J(`No auth provider`);if(await Co(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!==`AUTHORIZED`)throw new J(`Failed to authorize`)}async close(){this._reconnectionTimeout&&=(clearTimeout(this._reconnectionTimeout),void 0),this._abortController?.abort(),this.onclose?.()}async send(e,t){try{let{resumptionToken:n,onresumptiontoken:r}=t||{};if(n){this._startOrAuthSse({resumptionToken:n,replayMessageId:be(e)?e.id:void 0}).catch(e=>this.onerror?.(e));return}let i=await this._commonHeaders();i.set(`content-type`,`application/json`),i.set(`accept`,`application/json, text/event-stream`);let a={...this._requestInit,method:`POST`,headers:i,body:JSON.stringify(e),signal:this._abortController?.signal},o=await(this._fetch??fetch)(this._url,a),s=o.headers.get(`mcp-session-id`);if(s&&(this._sessionId=s),!o.ok){let t=await o.text().catch(()=>null);if(o.status===401&&this._authProvider){if(this._hasCompletedAuthFlow)throw new Y(401,`Server returned 401 after successful authentication`);let{resourceMetadataUrl:t,scope:n}=Do(o);if(this._resourceMetadataUrl=t,this._scope=n,await Co(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!==`AUTHORIZED`)throw new J;return this._hasCompletedAuthFlow=!0,this.send(e)}if(o.status===403&&this._authProvider){let{resourceMetadataUrl:t,scope:n,error:r}=Do(o);if(r===`insufficient_scope`){let r=o.headers.get(`WWW-Authenticate`);if(this._lastUpscopingHeader===r)throw new Y(403,`Server returned 403 after trying upscoping`);if(n&&(this._scope=n),t&&(this._resourceMetadataUrl=t),this._lastUpscopingHeader=r??void 0,await Co(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetch})!==`AUTHORIZED`)throw new J;return this.send(e)}}throw new Y(o.status,`Error POSTing to endpoint: ${t}`)}if(this._hasCompletedAuthFlow=!1,this._lastUpscopingHeader=void 0,o.status===202){await o.body?.cancel(),pe(e)&&this._startOrAuthSse({resumptionToken:void 0}).catch(e=>this.onerror?.(e));return}let c=(Array.isArray(e)?e:[e]).filter(e=>`method`in e&&`id`in e&&e.id!==void 0).length>0,l=o.headers.get(`content-type`);if(c)if(l?.includes(`text/event-stream`))this._handleSseStream(o.body,{onresumptiontoken:r},!1);else if(l?.includes(`application/json`)){let e=await o.json(),t=Array.isArray(e)?e.map(e=>re.parse(e)):[re.parse(e)];for(let e of t)this.onmessage?.(e)}else throw await o.body?.cancel(),new Y(-1,`Unexpected content type: ${l}`);else await o.body?.cancel()}catch(e){throw this.onerror?.(e),e}}get sessionId(){return this._sessionId}async terminateSession(){if(this._sessionId)try{let e=await this._commonHeaders(),t={...this._requestInit,method:`DELETE`,headers:e,signal:this._abortController?.signal},n=await(this._fetch??fetch)(this._url,t);if(await n.body?.cancel(),!n.ok&&n.status!==405)throw new Y(n.status,`Failed to terminate session: ${n.statusText}`);this._sessionId=void 0}catch(e){throw this.onerror?.(e),e}}setProtocolVersion(e){this._protocolVersion=e}get protocolVersion(){return this._protocolVersion}async resumeStream(e,t){await this._startOrAuthSse({resumptionToken:e,onresumptiontoken:t?.onresumptiontoken})}};function Zo(e){return(t,n)=>{if((n?.method??`GET`).toUpperCase()===`GET`)return globalThis.fetch(t,n);let r=new AbortController,i=setTimeout(()=>r.abort(Error(`MCP request timed out after ${e}ms`)),e),a=n?.signal instanceof AbortSignal?AbortSignal.any([n.signal,r.signal]):r.signal;return globalThis.fetch(t,{...n,signal:a}).finally(()=>clearTimeout(i))}}function Qo(e){if(e===void 0||e===``)return;let t=Number.parseInt(e,10);if(!(Number.isNaN(t)||t<=0))return t}function $o(e){return e===`0.0.0.0`||e===`::`?`localhost`:e.includes(`:`)&&!e.startsWith(`[`)?`[${e}]`:e}function es(e,t){return`http://${$o(e)}:${t}/mcp`}function ts(e,t){return`ws://${$o(e)}:${t}`}function ns(e){let t=new URL(e);return t.protocol=t.protocol===`https:`?`wss:`:`ws:`,t.pathname=``,t.search=``,t.hash=``,t.toString().replace(/\/$/,``)}function rs(e,t){if(!(!e||e.port<=0)&&t(e.pid))return e.port}function is(e){return N(e)?P(e,`utf-8`).trim():``}function as(e,t){return`server did not start within ${e}ms${t?` stderr:\n${t}`:``}`}function os(e){if(e&&typeof e==`object`&&`method`in e&&`id`in e)return e.id}function ss(e){if(!e||typeof e!=`object`||!(`result`in e))return;let t=e.result;if(!t||typeof t!=`object`||!(`protocolVersion`in t))return;let n=t.protocolVersion;return typeof n==`string`?n:void 0}function cs(e,t){return{jsonrpc:`2.0`,id:e,error:{code:-32e3,message:t instanceof Error?t.message:String(t)}}}async function ls(e){let t=e.readLock??(()=>Ue(e.lockDir)),n=e.isAlive??w,r=e.sleep??(e=>Ut(e)),i=e.spawn??k,a=e.readErrorLog??is,o=e.openErrorLog??(e=>vt(e,`w`)),s=e.closeFd??pt,c=e.timeoutMs??5e3,l=e.pollIntervalMs??100;if(e.portOverride!==void 0){let t=Number.parseInt(e.portOverride,10);if(Number.isNaN(t)||t<=0)throw Error(`invalid --port value '${e.portOverride}' — HTTP MCP shim requires a positive port`);return es(`localhost`,t)}let u=rs(t(),n);if(u!==void 0)return es(`localhost`,u);if(e.envAutoStart===`0`)throw Error(`Open Knowledge server is not running and OK_MCP_AUTOSTART=0 disables auto-start.`);N(e.lockDir)||gt(e.lockDir,{recursive:!0});let d=j(e.lockDir,ie),f=o(d),p,m,h=Qe();try{try{p=i(h.command,[...h.prefixArgs,`start`],{detached:!0,stdio:[`ignore`,`ignore`,f],cwd:e.contentDir,env:{...process.env,OK_LOCK_KIND:`mcp-spawned`}}),p.on(`error`,e=>{m=e instanceof Error?e.message:String(e)}),p.unref()}catch(e){m=e instanceof Error?e.message:String(e)}}finally{try{s(f)}catch{}}let g=Date.now()+c;for(;Date.now()<g;){if(m){let e=a(d),t=e?` stderr:\n${e}`:``;throw Error(`spawn failed: ${m}${t}`)}await r(l);let e=rs(t(),n);if(e!==void 0)return es(`localhost`,e)}if(m){let e=a(d),t=e?` stderr:\n${e}`:``;throw Error(`spawn failed: ${m}${t}`)}throw Error(as(c,a(d)))}function us(e,t){if(e.portOverride!==void 0)return ns(t);let n=e.readLock??(()=>Ue(e.lockDir)),r=e.isAlive??w,i=rs(n(),r);if(i!==void 0)return ts(`localhost`,i)}async function ds(e,t={}){let n=t.stderr??process.stderr,r=t.requestTimeoutMs??12e4,i=t.createStdioTransport?t.createStdioTransport(t.stdin,t.stdout):new Ea(t.stdin,t.stdout),a=t.createHttpTransport?t.createHttpTransport(new URL(e)):new Xo(new URL(e),{fetch:Zo(r),...t.connectionId===void 0?{}:{requestInit:{headers:{[o]:t.connectionId}}}}),s=!1,c=async()=>{s||(s=!0,t.onclose?.(),await Promise.allSettled([i.close(),a.close()]))};i.onerror=e=>{n.write(`[mcp-shim] stdio error: ${e.message}\n`)},a.onerror=e=>{n.write(`[mcp-shim] HTTP transport error: ${e.message}\n`)},i.onclose=()=>{c()},a.onclose=()=>{c()};let l=Promise.resolve();i.onmessage=e=>{l=l.then(async()=>{try{await a.send(e)}catch(t){let r=os(e);if(r===void 0){n.write(`[mcp-shim] failed to forward stdio notification: ${t instanceof Error?t.message:String(t)}\n`);return}await i.send(cs(r,t)).catch(e=>{n.write(`[mcp-shim] failed to write stdio error response: ${e instanceof Error?e.message:String(e)}\n`)})}}).catch(e=>{n.write(`[mcp-shim] unexpected stdio forwarding failure: ${e instanceof Error?e.message:String(e)}\n`)})},a.onmessage=e=>{let t=ss(e);t&&a.setProtocolVersion?.(t),i.send(e).catch(e=>{n.write(`[mcp-shim] failed to write stdio response: ${e instanceof Error?e.message:String(e)}\n`)})};try{await a.start(),await i.start()}catch(e){throw await c(),e}return{close:c}}async function fs(e){let t=e.stderr??process.stderr,n=e.bridgeFn??ds,r=await ls(e),i=e.createConnectionId?.()??Vt(),a=!1,o=(e.startKeepalive??Sa)({connectionId:i,resolveWsUrl:async()=>us(e,r),log:e=>t.write(`[mcp-shim] keepalive: ${e}\n`)});t.write(`[mcp-shim] proxying stdio to ${r}\n`);let s;try{s=await n(r,{stderr:t,connectionId:i,onclose:()=>{a||(o.close(),process.exit(0))}})}catch(e){throw o.close(),e}let c=()=>{a=!0,o.close(),s.close().finally(()=>{process.exit(0)})};process.once(`SIGINT`,c),process.once(`SIGTERM`,c)}const ps=Ft(import.meta.url);function ms(e){let t=M(e);for(;;){if(Se(t))return t;let n=ut(t);if(n===t)throw Error(`No Open Knowledge project found at or above ${e}. Pass an explicit \`cwd\` argument that points inside an OK project (a directory with a \`${i}\`).`);t=n}}function hs(e){try{let t=new URL(e);return t.protocol===`file:`?Ft(t):void 0}catch{return}}async function gs(e){if(!e.getClientCapabilities()?.roots)return;let t;try{t=await e.listRoots()}catch(t){e.log?.(`listRoots fallback failed: ${t instanceof Error?t.message:String(t)}`);return}let n=t.roots??[];if(n.length!==1)return;let r=hs(n[0].uri);return r===void 0&&e.log?.(`single root URI not usable as fs path: ${n[0].uri}`),r}async function _s(e,t){if(e!==void 0)return ms(e);let n=await t();if(n!==void 0)return ms(n);throw Error("`cwd` is required for tool calls against the global MCP server. Pass an absolute path inside an Open Knowledge project, or have the MCP client advertise a single root.")}async function vs(e){let t=process.stderr,n=e.spawnTimeoutMs??Qo(process.env.OK_MCP_SPAWN_TIMEOUT_MS),r=e.envAutoStart??process.env.OK_MCP_AUTOSTART,i=Xe({startupCwd:e.startupCwd,startupConfig:e.startupConfig}),a=new le({name:ee,version:Ge},{instructions:ye({dir:`.`})});fe(a);let o=Vt(),s={current:{connectionId:o,displayName:o,colorSeed:o}},c=new Map,l=e=>{if(c.has(e))return;let n=m(e),r=s.current,i=Sa({connectionId:o,displayName:r.displayName,clientName:r.clientInfo?.name??r.displayName,colorSeed:r.colorSeed,resolveWsUrl:async()=>us({lockDir:n,contentDir:e},``),log:n=>t.write(`[mcp] keepalive[${e}]: ${n}\n`)});c.set(e,i)},u=()=>gs({getClientCapabilities:()=>a.server.getClientCapabilities(),listRoots:()=>a.server.listRoots(),log:e=>t.write(`[mcp] ${e}\n`)}),d=e=>_s(e,u),f=async e=>{let t;if(e===void 0){let e=await u();if(e===void 0)return;t=ms(e)}else t=ms(e);let a=await i(t),o=await ls({lockDir:m(t),contentDir:ne(a,t),envAutoStart:r,...n===void 0?{}:{timeoutMs:n}});return l(t),o.replace(/\/mcp$/,``)};a.server.oninitialized=()=>{let e=a.server.getClientVersion(),t=me(e?.name,o);s.current={connectionId:o,clientInfo:e?{name:t,version:e.version}:void 0,displayName:t,colorSeed:t}},h(a,{serverUrl:f,resolveCwd:d,config:i,identityRef:s});let p=new Ea,g=!1,_,v=async()=>{if(g)return;g=!0,_?.stop();for(let e of c.values())try{e.close()}catch(e){t.write(`[mcp] keepalive close error: ${e instanceof Error?e.message:String(e)}\n`)}c.clear();let e=await Promise.allSettled([a.close(),p.close()]);for(let n of e)if(n.status===`rejected`){let e=n.reason;t.write(`[mcp] shutdown close error: ${e instanceof Error?e.message:String(e)}\n`)}};await a.connect(p),t.write(`[mcp] global stdio server ready (per-call project routing)
62
62
  `);let te=!1,y=()=>{te||(te=!0,setTimeout(()=>{t.write(`[mcp] shutdown deadline (5s) reached — forcing exit(1)
63
- `),process.exit(1)},5e3).unref(),v().finally(()=>{process.exit(0)}))};if(process.once(`SIGINT`,y),process.once(`SIGTERM`,y),Aa({log:e=>t.write(`${e}\n`),transport:p,process,stdin:process.stdin}),process.platform===`darwin`){let e=ka(ps,{realpathSync:bt,statInoSync:e=>St(e).ino,log:e=>t.write(`${e}\n`)});if(e!==void 0){t.write(`[mcp] bundle identity anchor=${e.resolvedPath} inode=${e.inode} version=${Ge}\n`);let{resolvedPath:n,inode:r}=e;_=Oa({detect:()=>Da({bundleAnchorPath:ps,currentInode:r,platform:process.platform,realpath:bt,statInode:e=>St(e).ino}),onReplaced:e=>{t.write(`[mcp] bundle replaced anchor=${n} bootInode=${e.currentInode} onDiskInode=${e.onDiskInode} version=${Ge} — exiting for host respawn\n`),y()},log:e=>t.write(`[mcp] ${e}\n`)})}}return{close:v}}function ys(e){return new t(`mcp`).description(`Start MCP stdio server for project knowledge base`).option(`-p, --port <port>`,`Override per-call routing and proxy stdio to this HTTP MCP port (skips bundle proxy)`,void 0).option(`--no-bundle-proxy`,`Run the npm-fetched MCP server in-process instead of proxying to the macOS Desktop bundle (equivalent: OK_BUNDLE_PROXY=0)`).action(async t=>{try{let n=e(),r=process.cwd();if(t.port!==void 0){let e=Qo(process.env.OK_MCP_SPAWN_TIMEOUT_MS);await fs({lockDir:``,contentDir:``,portOverride:t.port,envAutoStart:process.env.OK_MCP_AUTOSTART,timeoutMs:e});return}let i=t.bundleProxy===!1?[...process.argv,`--no-bundle-proxy`]:process.argv,a=ya(process.env,i,process.platform);if(a.proxy){let e=va(process.platform,Dt(),{existsSync:N});if(e===null)ba({stderr:process.stderr,mode:`fallback-absent`,bundlePath:null,reason:`no installed Open Knowledge.app bundle found`});else try{await xa({bundlePath:e,argv:process.argv.slice(2),env:process.env,stderr:process.stderr});return}catch(t){ba({stderr:process.stderr,mode:`fallback-exec-failed`,bundlePath:e,reason:t instanceof Error?t.message:String(t)})}}else{let e=a.suppressedBy===`env`?`suppressed-env`:a.suppressedBy===`flag`?`suppressed-flag`:a.suppressedBy===`self`?`suppressed-self`:`suppressed-platform`;ba({stderr:process.stderr,mode:e,bundlePath:null,reason:null})}await vs({startupCwd:r,startupConfig:n})}catch(e){process.stderr.write(`MCP server failed to start: ${e instanceof Error?e.message:String(e)}\n`),process.exitCode=1}})}function bs(e){return new t(`preview`).description(`Show what content the watcher will track (read-only)`).action(async()=>{let{previewContent:t,formatPreviewBlock:n}=await import(`./preview-MhkMMvsI.mjs`),r=e(),i=process.cwd(),a=ne(r,i),o;try{o=t({projectDir:i,contentDir:a})}catch(e){console.error(`Content preview failed: ${e instanceof Error?e.message:String(e)}`),process.exitCode=1;return}process.stdout.write(`${n(o,i)}\n`),o.totalCount===0&&o.warnings.length>0&&(process.exitCode=1)})}function xs(e){return e==null?!1:e.includes(`--type=utility`)&&e.includes(`--utility-sub-type=node.mojom.NodeService`)}function Ss(e,t=Date.now()){let n=new Date(e).getTime();if(Number.isNaN(n))return`—`;let r=t-n,i=Math.floor(r/1e3);if(i<60)return`${i}s`;let a=Math.floor(i/60);if(a<60)return`${a}m ago`;let o=Math.floor(a/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function Cs(e,t,n,r,i,a){if(t.status===`missing`||t.status===`corrupt`)return null;let o=t.lock,s=null;if(n.status!==`missing`&&n.status!==`corrupt`){let e=n.lock;s={port:e.port,status:n.status,pid:e.pid,startedAt:e.startedAt,usage:a}}return{directory:o.worktreeRoot,server:{port:o.port,status:t.status,pid:o.pid,startedAt:o.startedAt,usage:i},ui:s,hostname:o.hostname,lockPath:t.lockPath,binary:r==null?null:Wi(r),command:r,isDesktop:xs(r)}}function ws(e){return e.ui==null?!1:e.ui.status===`alive`||e.ui.status===`foreign-host`}function Ts(e){let t=e.server.status;return t===`alive`||t===`foreign-host`?e.isDesktop?`desktop`:t===`alive`?`running`:`foreign`:t===`dead-pid`&&ws(e)?`ui-orphan`:`stale`}const Es=new Set([`running`,`desktop`,`foreign`,`ui-orphan`]);function Ds(e){switch(e){case`running`:return U.default.green(e);case`desktop`:return U.default.blue(e);case`foreign`:return U.default.cyan(e);case`ui-orphan`:return U.default.magenta(e);case`stale`:return U.default.yellow(e)}}function Os(e){return e==null?`—`:`${e.cpuPercent.toFixed(1)}% / ${e.memPercent.toFixed(1)}%`}function ks(e){return`${Os(e.server.usage)} | ${Os(e.ui?.usage??null)}`}function As(e){return`${e.server.port===0?`(starting)`:String(e.server.port)} / ${e.ui==null||e.ui.status===`dead-pid`?`—`:String(e.ui.port)}`}function js(e){if(e.length===0)return`No open-knowledge servers found.`;let t=[`DIRECTORY`,`PORTS (API/UI)`,`CPU/MEM (API | UI)`,`STATUS`,`PID`,`STARTED`,`BINARY`],n=e.map(e=>{let t=Ts(e),n=t===`ui-orphan`&&e.ui!=null?e.ui.pid:e.server.pid;return[e.directory,As(e),ks(e),t,String(n),Ss(e.server.startedAt),e.binary??`—`]}),r=t.length,i=t.map(e=>e.length);for(let e of n)for(let t=0;t<r;t++)i[t]=Math.max(i[t]??0,(e[t]??``).length);let a=t.map((e,t)=>e.padEnd(i[t]??0)).join(` `).trimEnd(),o=e.map((e,t)=>{let a=n[t]??[],o=[];for(let t=0;t<r;t++){let n=(a[t]??``).padEnd(i[t]??0);if(t===3){let r=a[t]??``;n=Ds(Ts(e))+` `.repeat(Math.max(0,(i[t]??0)-r.length))}o.push(n)}return o.join(` `).trimEnd()}),s=U.default.dim(`To stop a server: ok stop <port|pid|directory|all>`);return[a,...o,``,s].join(`
63
+ `),process.exit(1)},5e3).unref(),v().finally(()=>{process.exit(0)}))};if(process.once(`SIGINT`,y),process.once(`SIGTERM`,y),Aa({log:e=>t.write(`${e}\n`),transport:p,process,stdin:process.stdin}),process.platform===`darwin`){let e=ka(ps,{realpathSync:bt,statInoSync:e=>St(e).ino,log:e=>t.write(`${e}\n`)});if(e!==void 0){t.write(`[mcp] bundle identity anchor=${e.resolvedPath} inode=${e.inode} version=${Ge}\n`);let{resolvedPath:n,inode:r}=e;_=Oa({detect:()=>Da({bundleAnchorPath:ps,currentInode:r,platform:process.platform,realpath:bt,statInode:e=>St(e).ino}),onReplaced:e=>{t.write(`[mcp] bundle replaced anchor=${n} bootInode=${e.currentInode} onDiskInode=${e.onDiskInode} version=${Ge} — exiting for host respawn\n`),y()},log:e=>t.write(`[mcp] ${e}\n`)})}}return{close:v}}function ys(e){return new t(`mcp`).description(`Start MCP stdio server for project knowledge base`).option(`-p, --port <port>`,`Override per-call routing and proxy stdio to this HTTP MCP port (skips bundle proxy)`,void 0).option(`--no-bundle-proxy`,`Run the npm-fetched MCP server in-process instead of proxying to the macOS Desktop bundle (equivalent: OK_BUNDLE_PROXY=0)`).action(async t=>{try{let n=e(),r=process.cwd();if(t.port!==void 0){let e=Qo(process.env.OK_MCP_SPAWN_TIMEOUT_MS);await fs({lockDir:``,contentDir:``,portOverride:t.port,envAutoStart:process.env.OK_MCP_AUTOSTART,timeoutMs:e});return}let i=t.bundleProxy===!1?[...process.argv,`--no-bundle-proxy`]:process.argv,a=ya(process.env,i,process.platform);if(a.proxy){let e=va(process.platform,Dt(),{existsSync:N});if(e===null)ba({stderr:process.stderr,mode:`fallback-absent`,bundlePath:null,reason:`no installed Open Knowledge.app bundle found`});else try{await xa({bundlePath:e,argv:process.argv.slice(2),env:process.env,stderr:process.stderr});return}catch(t){ba({stderr:process.stderr,mode:`fallback-exec-failed`,bundlePath:e,reason:t instanceof Error?t.message:String(t)})}}else{let e=a.suppressedBy===`env`?`suppressed-env`:a.suppressedBy===`flag`?`suppressed-flag`:a.suppressedBy===`self`?`suppressed-self`:`suppressed-platform`;ba({stderr:process.stderr,mode:e,bundlePath:null,reason:null})}await vs({startupCwd:r,startupConfig:n})}catch(e){process.stderr.write(`MCP server failed to start: ${e instanceof Error?e.message:String(e)}\n`),process.exitCode=1}})}function bs(e){return new t(`preview`).description(`Show what content the watcher will track (read-only)`).action(async()=>{let{previewContent:t,formatPreviewBlock:n}=await import(`./preview-B5VPbEKG.mjs`),r=e(),i=process.cwd(),a=ne(r,i),o;try{o=t({projectDir:i,contentDir:a})}catch(e){console.error(`Content preview failed: ${e instanceof Error?e.message:String(e)}`),process.exitCode=1;return}process.stdout.write(`${n(o,i)}\n`),o.totalCount===0&&o.warnings.length>0&&(process.exitCode=1)})}function xs(e){return e==null?!1:e.includes(`--type=utility`)&&e.includes(`--utility-sub-type=node.mojom.NodeService`)}function Ss(e,t=Date.now()){let n=new Date(e).getTime();if(Number.isNaN(n))return`—`;let r=t-n,i=Math.floor(r/1e3);if(i<60)return`${i}s`;let a=Math.floor(i/60);if(a<60)return`${a}m ago`;let o=Math.floor(a/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function Cs(e,t,n,r,i,a){if(t.status===`missing`||t.status===`corrupt`)return null;let o=t.lock,s=null;if(n.status!==`missing`&&n.status!==`corrupt`){let e=n.lock;s={port:e.port,status:n.status,pid:e.pid,startedAt:e.startedAt,usage:a}}return{directory:o.worktreeRoot,server:{port:o.port,status:t.status,pid:o.pid,startedAt:o.startedAt,usage:i},ui:s,hostname:o.hostname,lockPath:t.lockPath,binary:r==null?null:Wi(r),command:r,isDesktop:xs(r)}}function ws(e){return e.ui==null?!1:e.ui.status===`alive`||e.ui.status===`foreign-host`}function Ts(e){let t=e.server.status;return t===`alive`||t===`foreign-host`?e.isDesktop?`desktop`:t===`alive`?`running`:`foreign`:t===`dead-pid`&&ws(e)?`ui-orphan`:`stale`}const Es=new Set([`running`,`desktop`,`foreign`,`ui-orphan`]);function Ds(e){switch(e){case`running`:return U.default.green(e);case`desktop`:return U.default.blue(e);case`foreign`:return U.default.cyan(e);case`ui-orphan`:return U.default.magenta(e);case`stale`:return U.default.yellow(e)}}function Os(e){return e==null?`—`:`${e.cpuPercent.toFixed(1)}% / ${e.memPercent.toFixed(1)}%`}function ks(e){return`${Os(e.server.usage)} | ${Os(e.ui?.usage??null)}`}function As(e){return`${e.server.port===0?`(starting)`:String(e.server.port)} / ${e.ui==null||e.ui.status===`dead-pid`?`—`:String(e.ui.port)}`}function js(e){if(e.length===0)return`No open-knowledge servers found.`;let t=[`DIRECTORY`,`PORTS (API/UI)`,`CPU/MEM (API | UI)`,`STATUS`,`PID`,`STARTED`,`BINARY`],n=e.map(e=>{let t=Ts(e),n=t===`ui-orphan`&&e.ui!=null?e.ui.pid:e.server.pid;return[e.directory,As(e),ks(e),t,String(n),Ss(e.server.startedAt),e.binary??`—`]}),r=t.length,i=t.map(e=>e.length);for(let e of n)for(let t=0;t<r;t++)i[t]=Math.max(i[t]??0,(e[t]??``).length);let a=t.map((e,t)=>e.padEnd(i[t]??0)).join(` `).trimEnd(),o=e.map((e,t)=>{let a=n[t]??[],o=[];for(let t=0;t<r;t++){let n=(a[t]??``).padEnd(i[t]??0);if(t===3){let r=a[t]??``;n=Ds(Ts(e))+` `.repeat(Math.max(0,(i[t]??0)-r.length))}o.push(n)}return o.join(` `).trimEnd()}),s=U.default.dim(`To stop a server: ok stop <port|pid|directory|all>`);return[a,...o,``,s].join(`
64
64
  `)}async function Ms(e={}){let t=e.discover??Qi,n=e.inspect??V,r=e.log??(e=>console.log(e)),i=e.resolveCommand??Gi,a=e.resolveUsage??Ki,o=await t(),s=[];for(let e of o){let t=n(e,`server`),r=n(e,`ui`),o=Cs(e,t,r,t.status===`missing`||t.status===`corrupt`?null:i(t.lock.pid),t.status===`missing`||t.status===`corrupt`?null:a(t.lock.pid),r.status===`missing`||r.status===`corrupt`?null:a(r.lock.pid));o!=null&&s.push(o)}if(e.json){let e=s.map(e=>({...e,displayStatus:Ts(e)}));r(JSON.stringify(e,null,2));return}r(js(e.all?s:s.filter(e=>Es.has(Ts(e)))))}function Ns(){return new t(`ps`).description(`List all running open-knowledge servers`).argument(`[modifier]`,`"all" to include stale (dead-pid) entries`).option(`--all`,`Include stale (dead-pid) entries (foreign-host shows by default)`).option(`--json`,`Emit structured JSON (always includes all statuses)`).action(async(e,t)=>{await Ms({all:t.all===!0||e===`all`,json:t.json===!0})})}function X(e,t){e&&process.stdout.write(`${JSON.stringify(t)}\n`)}async function Ps(e,t,n=process.cwd()){let r=e.op??`sync`,i=Ue(xe(n));if(i&&i.port>0){let t=`http://127.0.0.1:${i.port}/api/sync/trigger`;e.json||process.stderr.write(`Triggering ${r} via running server (port ${i.port})\n`);try{let n=await fetch(t,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({op:r})});if(!n.ok){let e=await n.json().catch(()=>({}));throw Error(e.title??e.error??e.message??`Server responded with ${n.status}`)}X(e.json,{type:`triggered`,op:r,port:i.port}),e.json||process.stderr.write(`✓ ${r} triggered\n`);return}catch(t){let n=t instanceof Error?t.message:String(t);e.json||process.stderr.write(`Server trigger failed (${n}), running directly\n`)}}e.json||process.stderr.write(`Running ${r} directly (no live server)\n`);let a=Ke({baseDir:n});if(r===`sync`||r===`pull`){X(e.json,{type:`step`,step:`pull`});let t=await a.pull();X(e.json,{type:`pull`,summary:t.summary}),e.json||process.stderr.write(` pull: ${t.summary.changes} changes\n`)}(r===`sync`||r===`push`)&&(X(e.json,{type:`step`,step:`push`}),await a.push(),X(e.json,{type:`push`,ok:!0}),e.json||process.stderr.write(` push: ok
65
65
  `)),X(e.json,{type:`complete`,op:r}),e.json||process.stderr.write(`✓ ${r} complete\n`)}function Fs(e){return new t(`sync`).description(`Commit, pull, and push to the remote`).option(`--json`,`Output JSONL progress events`,!1).action(async t=>{try{await Ps({json:t.json,op:`sync`},e())}catch(e){let n=e instanceof Error?e.message:String(e);t.json?process.stdout.write(`${JSON.stringify({type:`error`,message:n})}\n`):process.stderr.write(`✗ sync failed: ${n}\n`),process.exit(1)}})}function Is(e){return new t(`pull`).description(`Pull changes from the remote`).option(`--json`,`Output JSONL progress events`,!1).action(async t=>{try{await Ps({json:t.json,op:`pull`},e())}catch(e){let n=e instanceof Error?e.message:String(e);t.json?process.stdout.write(`${JSON.stringify({type:`error`,message:n})}\n`):process.stderr.write(`✗ pull failed: ${n}\n`),process.exit(1)}})}function Ls(e){return new t(`push`).description(`Push commits to the remote`).option(`--json`,`Output JSONL progress events`,!1).action(async t=>{try{await Ps({json:t.json,op:`push`},e())}catch(e){let n=e instanceof Error?e.message:String(e);t.json?process.stdout.write(`${JSON.stringify({type:`error`,message:n})}\n`):process.stderr.write(`✗ push failed: ${n}\n`),process.exit(1)}})}function Rs(e){return typeof e==`string`&&d.includes(e)}async function zs(e={}){let t=M(e.cwd??process.cwd()),r=e.pack??`knowledge-base`;if(!oe[r])return{status:`failed`,message:`${D(`Error:`)} Unknown pack "${r}". Available: ${d.join(`, `)}`,exitCode:1};let i;try{i=await b({projectDir:t,rootDir:e.root,packId:r})}catch(e){return e instanceof u?{status:`prerequisite-missing`,message:`${D(`Error:`)} ${e.message}`,exitCode:1}:{status:`failed`,message:`${D(`Error:`)} ${e instanceof Error?e.message:String(e)}`,exitCode:1}}if(i.created.length===0){let e=oe[r].name;return{status:`no-op`,message:`${E(`Your ${e} pack is already seeded.`)}\n${T(`Nothing to do.`)}`,plan:i,exitCode:0}}if(e.dryRun)return{status:`dry-run`,message:`${O(`Plan (dry-run — no changes made):`)}\n\n${Vs(i,t)}`,plan:i,exitCode:0};if(!e.yes&&!await Hs(`${O(`Plan:`)}\n\n${Vs(i,t)}\n\n${O(`Apply?`)} ${T(`[Y/n] `)}`,e.confirmStream))return{status:`cancelled`,message:T(`Cancelled.`),plan:i,exitCode:0};let a=await n(i,{projectDir:t,packId:r});if(a.errors.length>0){let e=a.errors.map(e=>` ${D(`✗`)} ${e.path}: ${e.error}`);return{status:`failed`,message:[`${at(`Applied`)} ${a.applied} entries, ${at(String(a.errors.length))} error(s):`,...e].join(`
66
66
  `),plan:i,exitCode:1}}let o=oe[r].name;return{status:`applied`,message:`${E(`✓ Seeded ${o}`)} ${T(`(${a.applied} entries, ${a.durationMs}ms)`)}`,plan:i,exitCode:0}}function Bs(){let e=[O(`Available packs:`)];for(let t of d){let n=oe[t];e.push(` ${E(t)} ${T(`—`)} ${n.name}: ${n.description}`)}return e.join(`
@@ -0,0 +1 @@
1
+ import{n as e,r as t,s as n}from"./colors-DEbd2OH6.mjs";export{e as dim,t as error,n as warning};
@@ -1,2 +1,2 @@
1
1
  import{o as e,t}from"./chunk-FK9Q3tQk.mjs";var n=t(((e,t)=>{let n=process||{},r=n.argv||[],i=n.env||{},a=!(i.NO_COLOR||r.includes(`--no-color`))&&(!!i.FORCE_COLOR||r.includes(`--color`)||n.platform===`win32`||(n.stdout||{}).isTTY&&i.TERM!==`dumb`||!!i.CI),o=(e,t,n=e)=>r=>{let i=``+r,a=i.indexOf(t,e.length);return~a?e+s(i,t,n,a)+t:e+i+t},s=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},c=(e=a)=>{let t=e?o:()=>String;return{isColorSupported:e,reset:t(`\x1B[0m`,`\x1B[0m`),bold:t(`\x1B[1m`,`\x1B[22m`,`\x1B[22m\x1B[1m`),dim:t(`\x1B[2m`,`\x1B[22m`,`\x1B[22m\x1B[2m`),italic:t(`\x1B[3m`,`\x1B[23m`),underline:t(`\x1B[4m`,`\x1B[24m`),inverse:t(`\x1B[7m`,`\x1B[27m`),hidden:t(`\x1B[8m`,`\x1B[28m`),strikethrough:t(`\x1B[9m`,`\x1B[29m`),black:t(`\x1B[30m`,`\x1B[39m`),red:t(`\x1B[31m`,`\x1B[39m`),green:t(`\x1B[32m`,`\x1B[39m`),yellow:t(`\x1B[33m`,`\x1B[39m`),blue:t(`\x1B[34m`,`\x1B[39m`),magenta:t(`\x1B[35m`,`\x1B[39m`),cyan:t(`\x1B[36m`,`\x1B[39m`),white:t(`\x1B[37m`,`\x1B[39m`),gray:t(`\x1B[90m`,`\x1B[39m`),bgBlack:t(`\x1B[40m`,`\x1B[49m`),bgRed:t(`\x1B[41m`,`\x1B[49m`),bgGreen:t(`\x1B[42m`,`\x1B[49m`),bgYellow:t(`\x1B[43m`,`\x1B[49m`),bgBlue:t(`\x1B[44m`,`\x1B[49m`),bgMagenta:t(`\x1B[45m`,`\x1B[49m`),bgCyan:t(`\x1B[46m`,`\x1B[49m`),bgWhite:t(`\x1B[47m`,`\x1B[49m`),blackBright:t(`\x1B[90m`,`\x1B[39m`),redBright:t(`\x1B[91m`,`\x1B[39m`),greenBright:t(`\x1B[92m`,`\x1B[39m`),yellowBright:t(`\x1B[93m`,`\x1B[39m`),blueBright:t(`\x1B[94m`,`\x1B[39m`),magentaBright:t(`\x1B[95m`,`\x1B[39m`),cyanBright:t(`\x1B[96m`,`\x1B[39m`),whiteBright:t(`\x1B[97m`,`\x1B[39m`),bgBlackBright:t(`\x1B[100m`,`\x1B[49m`),bgRedBright:t(`\x1B[101m`,`\x1B[49m`),bgGreenBright:t(`\x1B[102m`,`\x1B[49m`),bgYellowBright:t(`\x1B[103m`,`\x1B[49m`),bgBlueBright:t(`\x1B[104m`,`\x1B[49m`),bgMagentaBright:t(`\x1B[105m`,`\x1B[49m`),bgCyanBright:t(`\x1B[106m`,`\x1B[49m`),bgWhiteBright:t(`\x1B[107m`,`\x1B[49m`)}};t.exports=c(),t.exports.createColors=c})),r=e(n(),1);const i=e=>r.default.red(e),a=e=>r.default.yellow(e),o=e=>r.default.green(e),s=e=>r.default.cyan(e),c=e=>r.default.gray(e),l=e=>r.default.bold(e);function u(e,t){return r.default.isColorSupported?`\u001B]8;;${t}\u0007${e}\u001B]8;;\u0007`:e}export{u as a,n as c,s as i,c as n,o,i as r,a as s,l as t};
2
- //# sourceMappingURL=colors-D0wh7lK1.mjs.map
2
+ //# sourceMappingURL=colors-DEbd2OH6.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-LWEGUNWT-n161vC8o.mjs";export{e as column};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-Z7JVV2SM-Bl6lCuB7.mjs";export{e as commCommand};
@@ -0,0 +1,2 @@
1
+ import"./dist-DPw5LLnH.mjs";var e=`0.8.0-beta.18`;const t=`config.yml`,n=e;export{n,t};
2
+ //# sourceMappingURL=constants-wXFGHCVz.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-NUYSJFDK-jeYiSRAd.mjs";export{e as cpCommand};
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-R6VWJ2ZL-DSqbA7Rj.mjs";import{t}from"./chunk-CWQS3NFK-BQ5SUtd7.mjs";import"./chunk-DXB73IDG-DfmyzFzL.mjs";import{t as n}from"./chunk-44UOCSGV-BbZqjKvt.mjs";import{n as r,r as i,t as a}from"./chunk-74CEPOFO-D1bzz49u.mjs";function o(e){let t=e.indexOf(`=`);if(t>=0){let n=e.slice(0,t),r=e.slice(t+1);return n?`${encodeURIComponent(n)}=${encodeURIComponent(r)}`:encodeURIComponent(r)}return encodeURIComponent(e)}function s(e){let t=e.indexOf(`=`);if(t<0)return null;let n=e.slice(0,t),r=e.slice(t+1),i,a,o=r.match(/;type=([^;]+)$/);o&&(a=o[1],r=r.slice(0,-o[0].length));let s=r.match(/;filename=([^;]+)/);return s&&(i=s[1],r=r.replace(s[0],``)),(r.startsWith(`@`)||r.startsWith(`<`))&&(i??=r.slice(1).split(`/`).pop()),{name:n,value:r,filename:i,contentType:a}}function c(e,t){let n=`----CurlFormBoundary${Date.now().toString(36)}`,r=[];for(let i of e){let e=i.value;if(e.startsWith(`@`)||e.startsWith(`<`)){let n=e.slice(1);e=t.get(n)??``}let a=`--${n}\r
1
+ import{t as e}from"./chunk-R6VWJ2ZL-DIztW2nG.mjs";import{t}from"./chunk-CWQS3NFK-CKoiDb4a.mjs";import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as n}from"./chunk-44UOCSGV-Bldn7atv.mjs";import{n as r,r as i,t as a}from"./chunk-74CEPOFO-C0z9lC1m.mjs";function o(e){let t=e.indexOf(`=`);if(t>=0){let n=e.slice(0,t),r=e.slice(t+1);return n?`${encodeURIComponent(n)}=${encodeURIComponent(r)}`:encodeURIComponent(r)}return encodeURIComponent(e)}function s(e){let t=e.indexOf(`=`);if(t<0)return null;let n=e.slice(0,t),r=e.slice(t+1),i,a,o=r.match(/;type=([^;]+)$/);o&&(a=o[1],r=r.slice(0,-o[0].length));let s=r.match(/;filename=([^;]+)/);return s&&(i=s[1],r=r.replace(s[0],``)),(r.startsWith(`@`)||r.startsWith(`<`))&&(i??=r.slice(1).split(`/`).pop()),{name:n,value:r,filename:i,contentType:a}}function c(e,t){let n=`----CurlFormBoundary${Date.now().toString(36)}`,r=[];for(let i of e){let e=i.value;if(e.startsWith(`@`)||e.startsWith(`<`)){let n=e.slice(1);e=t.get(n)??``}let a=`--${n}\r
2
2
  `;i.filename?(a+=`Content-Disposition: form-data; name="${i.name}"; filename="${i.filename}"\r
3
3
  `,i.contentType&&(a+=`Content-Type: ${i.contentType}\r
4
4
  `)):a+=`Content-Disposition: form-data; name="${i.name}"\r
@@ -23,4 +23,4 @@ ${e}\r
23
23
  `,exitCode:1};let s=o.url;s.match(/^https?:\/\//)||(s=`https://${s}`);try{let{body:e,contentType:n}=await m(o,t),r=h(o,n),i=await t.fetch(s,{method:o.method,headers:r,body:e,followRedirects:o.followRedirects,timeoutMs:o.timeoutMs});if(await g(o,i.headers,t),o.failSilently&&i.status>=400)return{stdout:``,stderr:o.showError||!o.silent?`curl: (22) The requested URL returned error: ${i.status}
24
24
  `:``,exitCode:22};let a=v(o,i,s);if(o.outputFile||o.useRemoteName){let e=o.outputFile||f(s),n=t.fs.resolvePath(t.cwd,e);await t.fs.writeFile(n,o.headOnly?``:i.body),o.verbose||(a=``),o.writeOut&&(a=p(o.writeOut,{status:i.status,headers:i.headers,url:i.url,bodyLength:i.body.byteLength}))}return{stdout:a,stderr:``,exitCode:0}}catch(e){let t=n(e),r=1;return t.includes(`Network access denied`)?r=7:t.includes(`HTTP method`)&&t.includes(`not allowed`)?r=3:t.includes(`Redirect target not in allow-list`)||t.includes(`Too many redirects`)?r=47:t.includes(`aborted`)&&(r=28),{stdout:``,stderr:!o.silent||o.showError?`curl: (${r}) ${t}
25
25
  `:``,exitCode:r}}}};export{y as curlCommand};
26
- //# sourceMappingURL=curl-47BFPSFW-Dq2QRfS5.mjs.map
26
+ //# sourceMappingURL=curl-47BFPSFW-BMxjPnYW.mjs.map